(self["webpackChunkpatch_based_motion_synthesis"]=self["webpackChunkpatch_based_motion_synthesis"]||[]).push([[998],{9662:function(e,t,n){var r=n(614),i=n(6330),o=TypeError;e.exports=function(e){if(r(e))return e;throw o(i(e)+" is not a function")}},6077:function(e,t,n){var r=n(614),i=String,o=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw o("Can't set "+i(e)+" as a prototype")}},5787:function(e,t,n){var r=n(7976),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw i("Incorrect invocation")}},9670:function(e,t,n){var r=n(111),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw o(i(e)+" is not an object")}},3013:function(e){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},260:function(e,t,n){"use strict";var r,i,o,a=n(3013),s=n(9781),l=n(7854),u=n(614),c=n(111),d=n(2597),p=n(648),h=n(6330),f=n(8880),m=n(8052),g=n(7045),v=n(7976),y=n(9518),b=n(7674),w=n(5112),S=n(9711),x=n(9909),_=x.enforce,C=x.get,E=l.Int8Array,M=E&&E.prototype,k=l.Uint8ClampedArray,T=k&&k.prototype,A=E&&y(E),U=M&&y(M),I=Object.prototype,D=l.TypeError,O=w("toStringTag"),P=S("TYPED_ARRAY_TAG"),L="TypedArrayConstructor",R=a&&!!b&&"Opera"!==p(l.opera),N=!1,F={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},z={BigInt64Array:8,BigUint64Array:8},B=function(e){if(!c(e))return!1;var t=p(e);return"DataView"===t||d(F,t)||d(z,t)},H=function(e){var t=y(e);if(c(t)){var n=C(t);return n&&d(n,L)?n[L]:H(t)}},j=function(e){if(!c(e))return!1;var t=p(e);return d(F,t)||d(z,t)},V=function(e){if(j(e))return e;throw D("Target is not a typed array")},W=function(e){if(u(e)&&(!b||v(A,e)))return e;throw D(h(e)+" is not a typed array constructor")},$=function(e,t,n,r){if(s){if(n)for(var i in F){var o=l[i];if(o&&d(o.prototype,e))try{delete o.prototype[e]}catch(a){try{o.prototype[e]=t}catch(u){}}}U[e]&&!n||m(U,e,n?t:R&&M[e]||t,r)}},q=function(e,t,n){var r,i;if(s){if(b){if(n)for(r in F)if(i=l[r],i&&d(i,e))try{delete i[e]}catch(o){}if(A[e]&&!n)return;try{return m(A,e,n?t:R&&A[e]||t)}catch(o){}}for(r in F)i=l[r],!i||i[e]&&!n||m(i,e,t)}};for(r in F)i=l[r],o=i&&i.prototype,o?_(o)[L]=i:R=!1;for(r in z)i=l[r],o=i&&i.prototype,o&&(_(o)[L]=i);if((!R||!u(A)||A===Function.prototype)&&(A=function(){throw D("Incorrect invocation")},R))for(r in F)l[r]&&b(l[r],A);if((!R||!U||U===I)&&(U=A.prototype,R))for(r in F)l[r]&&b(l[r].prototype,U);if(R&&y(T)!==U&&b(T,U),s&&!d(U,O))for(r in N=!0,g(U,O,{configurable:!0,get:function(){return c(this)?this[P]:void 0}}),F)l[r]&&f(l[r],P,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:R,TYPED_ARRAY_TAG:N&&P,aTypedArray:V,aTypedArrayConstructor:W,exportTypedArrayMethod:$,exportTypedArrayStaticMethod:q,getTypedArrayConstructor:H,isView:B,isTypedArray:j,TypedArray:A,TypedArrayPrototype:U}},7745:function(e,t,n){var r=n(6244);e.exports=function(e,t){var n=0,i=r(t),o=new e(i);while(i>n)o[n]=t[n++];return o}},1318:function(e,t,n){var r=n(5656),i=n(1400),o=n(6244),a=function(e){return function(t,n,a){var s,l=r(t),u=o(l),c=i(a,u);if(e&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},3658:function(e,t,n){"use strict";var r=n(9781),i=n(3157),o=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(i(e)&&!a(e,"length").writable)throw o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},1843:function(e,t,n){var r=n(6244);e.exports=function(e,t){for(var n=r(e),i=new t(n),o=0;o=s||u<0)throw o("Incorrect index");for(var c=new t(s),d=0;dn)throw t("Maximum allowed index exceeded");return e}},3678:function(e){e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},8113:function(e){e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:function(e,t,n){var r,i,o=n(7854),a=n(8113),s=o.process,l=o.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(r=c.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),e.exports=i},748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1060:function(e,t,n){var r=n(1702),i=Error,o=r("".replace),a=function(e){return String(i(e).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(a);e.exports=function(e,t){if(l&&"string"==typeof e&&!i.prepareStackTrace)while(t--)e=o(e,s,"");return e}},2109:function(e,t,n){var r=n(7854),i=n(1236).f,o=n(8880),a=n(8052),s=n(3072),l=n(9920),u=n(4705);e.exports=function(e,t){var n,c,d,p,h,f,m=e.target,g=e.global,v=e.stat;if(c=g?r:v?r[m]||s(m,{}):(r[m]||{}).prototype,c)for(d in t){if(h=t[d],e.dontCallGetSet?(f=i(c,d),p=f&&f.value):p=c[d],n=u(g?d:m+(v?".":"#")+d,e.forced),!n&&void 0!==p){if(typeof h==typeof p)continue;l(h,p)}(e.sham||p&&p.sham)&&o(h,"sham",!0),a(c,d,h,e)}}},7293:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},4374:function(e,t,n){var r=n(7293);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6916:function(e,t,n){var r=n(4374),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},6530:function(e,t,n){var r=n(9781),i=n(2597),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),l=s&&"something"===function(){}.name,u=s&&(!r||r&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},5668:function(e,t,n){var r=n(1702),i=n(9662);e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(o){}}},1702:function(e,t,n){var r=n(4374),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);e.exports=r?a:function(e){return function(){return o.apply(e,arguments)}}},5005:function(e,t,n){var r=n(7854),i=n(614),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e]):r[e]&&r[e][t]}},8173:function(e,t,n){var r=n(9662),i=n(8554);e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},7854:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||this||Function("return this")()},2597:function(e,t,n){var r=n(1702),i=n(7908),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},3501:function(e){e.exports={}},4664:function(e,t,n){var r=n(9781),i=n(7293),o=n(317);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:function(e,t,n){var r=n(1702),i=n(7293),o=n(4326),a=Object,s=r("".split);e.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?s(e,""):a(e)}:a},9587:function(e,t,n){var r=n(614),i=n(111),o=n(7674);e.exports=function(e,t,n){var a,s;return o&&r(a=t.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},2788:function(e,t,n){var r=n(1702),i=n(614),o=n(5465),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},9909:function(e,t,n){var r,i,o,a=n(4811),s=n(7854),l=n(111),u=n(8880),c=n(2597),d=n(5465),p=n(6200),h=n(3501),f="Object already initialized",m=s.TypeError,g=s.WeakMap,v=function(e){return o(e)?i(e):r(e,{})},y=function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}};if(a||d.state){var b=d.state||(d.state=new g);b.get=b.get,b.has=b.has,b.set=b.set,r=function(e,t){if(b.has(e))throw m(f);return t.facade=e,b.set(e,t),t},i=function(e){return b.get(e)||{}},o=function(e){return b.has(e)}}else{var w=p("state");h[w]=!0,r=function(e,t){if(c(e,w))throw m(f);return t.facade=e,u(e,w,t),t},i=function(e){return c(e,w)?e[w]:{}},o=function(e){return c(e,w)}}e.exports={set:r,get:i,has:o,enforce:v,getterFor:y}},3157:function(e,t,n){var r=n(4326);e.exports=Array.isArray||function(e){return"Array"==r(e)}},4067:function(e,t,n){var r=n(648);e.exports=function(e){var t=r(e);return"BigInt64Array"==t||"BigUint64Array"==t}},614:function(e,t,n){var r=n(4154),i=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===i}:function(e){return"function"==typeof e}},4705:function(e,t,n){var r=n(7293),i=n(614),o=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n==c||n!=u&&(i(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},8554:function(e){e.exports=function(e){return null===e||void 0===e}},111:function(e,t,n){var r=n(614),i=n(4154),o=i.all;e.exports=i.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===o}:function(e){return"object"==typeof e?null!==e:r(e)}},1913:function(e){e.exports=!1},2190:function(e,t,n){var r=n(5005),i=n(614),o=n(7976),a=n(3307),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,s(e))}},6244:function(e,t,n){var r=n(7466);e.exports=function(e){return r(e.length)}},6339:function(e,t,n){var r=n(1702),i=n(7293),o=n(614),a=n(2597),s=n(9781),l=n(6530).CONFIGURABLE,u=n(2788),c=n(9909),d=c.enforce,p=c.get,h=String,f=Object.defineProperty,m=r("".slice),g=r("".replace),v=r([].join),y=s&&!i((function(){return 8!==f((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=e.exports=function(e,t,n){"Symbol("===m(h(t),0,7)&&(t="["+g(h(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?f(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&a(n,"arity")&&e.length!==n.arity&&f(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var r=d(e);return a(r,"source")||(r.source=v(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return o(this)&&p(this).source||u(this)}),"toString")},4758:function(e){var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},6277:function(e,t,n){var r=n(1340);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},3070:function(e,t,n){var r=n(9781),i=n(4664),o=n(3353),a=n(9670),s=n(4948),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",h="writable";t.f=r?o?function(e,t,n){if(a(e),t=s(t),a(n),"function"===typeof e&&"prototype"===t&&"value"in n&&h in n&&!n[h]){var r=c(e,t);r&&r[h]&&(e[t]=n.value,n={configurable:p in n?n[p]:r[p],enumerable:d in n?n[d]:r[d],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(a(e),t=s(t),a(n),i)try{return u(e,t,n)}catch(r){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1236:function(e,t,n){var r=n(9781),i=n(6916),o=n(5296),a=n(9114),s=n(5656),l=n(4948),u=n(2597),c=n(4664),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=l(t),c)try{return d(e,t)}catch(n){}if(u(e,t))return a(!i(o.f,e,t),e[t])}},8006:function(e,t,n){var r=n(6324),i=n(748),o=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},5181:function(e,t){t.f=Object.getOwnPropertySymbols},9518:function(e,t,n){var r=n(2597),i=n(614),o=n(7908),a=n(6200),s=n(8544),l=a("IE_PROTO"),u=Object,c=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=o(e);if(r(t,l))return t[l];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},7976:function(e,t,n){var r=n(1702);e.exports=r({}.isPrototypeOf)},6324:function(e,t,n){var r=n(1702),i=n(2597),o=n(5656),a=n(1318).indexOf,s=n(3501),l=r([].push);e.exports=function(e,t){var n,r=o(e),u=0,c=[];for(n in r)!i(s,n)&&i(r,n)&&l(c,n);while(t.length>u)i(r,n=t[u++])&&(~a(c,n)||l(c,n));return c}},5296:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},7674:function(e,t,n){var r=n(5668),i=n(9670),o=n(6077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=r(Object.prototype,"__proto__","set"),e(n,[]),t=n instanceof Array}catch(a){}return function(n,r){return i(n),o(r),t?e(n,r):n.__proto__=r,n}}():void 0)},2140:function(e,t,n){var r=n(6916),i=n(614),o=n(111),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!o(s=r(n,e)))return s;if(i(n=e.valueOf)&&!o(s=r(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!o(s=r(n,e)))return s;throw a("Can't convert object to primitive value")}},3887:function(e,t,n){var r=n(5005),i=n(1702),o=n(8006),a=n(5181),s=n(9670),l=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?l(t,n(e)):t}},7066:function(e,t,n){"use strict";var r=n(9670);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},4488:function(e,t,n){var r=n(8554),i=TypeError;e.exports=function(e){if(r(e))throw i("Can't call method on "+e);return e}},6200:function(e,t,n){var r=n(2309),i=n(9711),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},5465:function(e,t,n){var r=n(7854),i=n(3072),o="__core-js_shared__",a=r[o]||i(o,{});e.exports=a},2309:function(e,t,n){var r=n(1913),i=n(5465);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.2",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"})},6293:function(e,t,n){var r=n(7392),i=n(7293),o=n(7854),a=o.String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},1400:function(e,t,n){var r=n(9303),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},4599:function(e,t,n){var r=n(7593),i=TypeError;e.exports=function(e){var t=r(e,"number");if("number"==typeof t)throw i("Can't convert number to bigint");return BigInt(t)}},5656:function(e,t,n){var r=n(8361),i=n(4488);e.exports=function(e){return r(i(e))}},9303:function(e,t,n){var r=n(4758);e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},7466:function(e,t,n){var r=n(9303),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},7908:function(e,t,n){var r=n(4488),i=Object;e.exports=function(e){return i(r(e))}},7593:function(e,t,n){var r=n(6916),i=n(111),o=n(2190),a=n(8173),s=n(2140),l=n(5112),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var n,l=a(e,c);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!i(n)||o(n))return n;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},4948:function(e,t,n){var r=n(7593),i=n(2190);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},1694:function(e,t,n){var r=n(5112),i=r("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},1340:function(e,t,n){var r=n(648),i=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},6330:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(n){return"Object"}}},9711:function(e,t,n){var r=n(1702),i=0,o=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},3307:function(e,t,n){var r=n(6293);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(e,t,n){var r=n(9781),i=n(7293);e.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4811:function(e,t,n){var r=n(7854),i=n(614),o=r.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},5112:function(e,t,n){var r=n(7854),i=n(2309),o=n(2597),a=n(9711),s=n(6293),l=n(3307),u=r.Symbol,c=i("wks"),d=l?u["for"]||u:u&&u.withoutSetter||a;e.exports=function(e){return o(c,e)||(c[e]=s&&o(u,e)?u[e]:d("Symbol."+e)),c[e]}},7658:function(e,t,n){"use strict";var r=n(2109),i=n(7908),o=n(6244),a=n(3658),s=n(7207),l=n(7293),u=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),c=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},d=u||!c();r({target:"Array",proto:!0,arity:1,forced:d},{push:function(e){var t=i(this),n=o(t),r=arguments.length;s(n+r);for(var l=0;l{const t=new Set(e);return t.w=0,t.n=0,t},d=e=>(e.w&v)>0,p=e=>(e.n&v)>0,h=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{("length"===n||n>=e)&&l.push(t)}))}else switch(void 0!==n&&l.push(s.get(n)),t){case"add":(0,r.kJ)(e)?(0,r.S0)(n)&&l.push(s.get("length")):(l.push(s.get(w)),(0,r._N)(e)&&l.push(s.get(S)));break;case"delete":(0,r.kJ)(e)||(l.push(s.get(w)),(0,r._N)(e)&&l.push(s.get(S)));break;case"set":(0,r._N)(e)&&l.push(s.get(w));break}if(1===l.length)l[0]&&I(l[0]);else{const e=[];for(const t of l)t&&e.push(...t);I(c(e))}}function I(e,t){const n=(0,r.kJ)(e)?e:[...e];for(const r of n)r.computed&&D(r,t);for(const r of n)r.computed||D(r,t)}function D(e,t){(e!==b||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function O(e,t){var n;return null==(n=m.get(e))?void 0:n.get(t)}const P=(0,r.fY)("__proto__,__v_isRef,__isVue"),L=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(r.yk)),R=j(),N=j(!1,!0),F=j(!0),z=B();function B(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Oe(this);for(let t=0,i=this.length;t{e[t]=function(...e){M();const n=Oe(this)[t].apply(this,e);return k(),n}})),e}function H(e){const t=Oe(this);return T(t,"has",e),t.hasOwnProperty(e)}function j(e=!1,t=!1){return function(n,i,o){if("__v_isReactive"===i)return!e;if("__v_isReadonly"===i)return e;if("__v_isShallow"===i)return t;if("__v_raw"===i&&o===(e?t?xe:Se:t?we:be).get(n))return n;const a=(0,r.kJ)(n);if(!e){if(a&&(0,r.RI)(z,i))return Reflect.get(z,i,o);if("hasOwnProperty"===i)return H}const s=Reflect.get(n,i,o);return((0,r.yk)(i)?L.has(i):P(i))?s:(e||T(n,"get",i),t?s:ze(s)?a&&(0,r.S0)(i)?s:s.value:(0,r.Kn)(s)?e?ke(s):Ee(s):s)}}const V=$(),W=$(!0);function $(e=!1){return function(t,n,i,o){let a=t[n];if(Ue(a)&&ze(a)&&!ze(i))return!1;if(!e&&(Ie(i)||Ue(i)||(a=Oe(a),i=Oe(i)),!(0,r.kJ)(t)&&ze(a)&&!ze(i)))return a.value=i,!0;const s=(0,r.kJ)(t)&&(0,r.S0)(n)?Number(n)e,Q=e=>Reflect.getPrototypeOf(e);function ee(e,t,n=!1,r=!1){e=e["__v_raw"];const i=Oe(e),o=Oe(t);n||(t!==o&&T(i,"get",t),T(i,"get",o));const{has:a}=Q(i),s=r?J:n?Re:Le;return a.call(i,t)?s(e.get(t)):a.call(i,o)?s(e.get(o)):void(e!==i&&e.get(t))}function te(e,t=!1){const n=this["__v_raw"],r=Oe(n),i=Oe(e);return t||(e!==i&&T(r,"has",e),T(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function ne(e,t=!1){return e=e["__v_raw"],!t&&T(Oe(e),"iterate",w),Reflect.get(e,"size",e)}function re(e){e=Oe(e);const t=Oe(this),n=Q(t),r=n.has.call(t,e);return r||(t.add(e),U(t,"add",e,e)),this}function ie(e,t){t=Oe(t);const n=Oe(this),{has:i,get:o}=Q(n);let a=i.call(n,e);a||(e=Oe(e),a=i.call(n,e));const s=o.call(n,e);return n.set(e,t),a?(0,r.aU)(t,s)&&U(n,"set",e,t,s):U(n,"add",e,t),this}function oe(e){const t=Oe(this),{has:n,get:r}=Q(t);let i=n.call(t,e);i||(e=Oe(e),i=n.call(t,e));const o=r?r.call(t,e):void 0,a=t.delete(e);return i&&U(t,"delete",e,void 0,o),a}function ae(){const e=Oe(this),t=0!==e.size,n=void 0,r=e.clear();return t&&U(e,"clear",void 0,void 0,n),r}function se(e,t){return function(n,r){const i=this,o=i["__v_raw"],a=Oe(o),s=t?J:e?Re:Le;return!e&&T(a,"iterate",w),o.forEach(((e,t)=>n.call(r,s(e),s(t),i)))}}function le(e,t,n){return function(...i){const o=this["__v_raw"],a=Oe(o),s=(0,r._N)(a),l="entries"===e||e===Symbol.iterator&&s,u="keys"===e&&s,c=o[e](...i),d=n?J:t?Re:Le;return!t&&T(a,"iterate",u?S:w),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:l?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}function ue(e){return function(...t){return"delete"!==e&&this}}function ce(){const e={get(e){return ee(this,e)},get size(){return ne(this)},has:te,add:re,set:ie,delete:oe,clear:ae,forEach:se(!1,!1)},t={get(e){return ee(this,e,!1,!0)},get size(){return ne(this)},has:te,add:re,set:ie,delete:oe,clear:ae,forEach:se(!1,!0)},n={get(e){return ee(this,e,!0)},get size(){return ne(this,!0)},has(e){return te.call(this,e,!0)},add:ue("add"),set:ue("set"),delete:ue("delete"),clear:ue("clear"),forEach:se(!0,!1)},r={get(e){return ee(this,e,!0,!0)},get size(){return ne(this,!0)},has(e){return te.call(this,e,!0)},add:ue("add"),set:ue("set"),delete:ue("delete"),clear:ue("clear"),forEach:se(!0,!0)},i=["keys","values","entries",Symbol.iterator];return i.forEach((i=>{e[i]=le(i,!1,!1),n[i]=le(i,!0,!1),t[i]=le(i,!1,!0),r[i]=le(i,!0,!0)})),[e,n,t,r]}const[de,pe,he,fe]=ce();function me(e,t){const n=t?e?fe:he:e?pe:de;return(t,i,o)=>"__v_isReactive"===i?!e:"__v_isReadonly"===i?e:"__v_raw"===i?t:Reflect.get((0,r.RI)(n,i)&&i in t?n:t,i,o)}const ge={get:me(!1,!1)},ve={get:me(!1,!0)},ye={get:me(!0,!1)};const be=new WeakMap,we=new WeakMap,Se=new WeakMap,xe=new WeakMap;function _e(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ce(e){return e["__v_skip"]||!Object.isExtensible(e)?0:_e((0,r.W7)(e))}function Ee(e){return Ue(e)?e:Te(e,!1,Y,ge,be)}function Me(e){return Te(e,!1,X,ve,we)}function ke(e){return Te(e,!0,K,ye,Se)}function Te(e,t,n,i,o){if(!(0,r.Kn)(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const a=o.get(e);if(a)return a;const s=Ce(e);if(0===s)return e;const l=new Proxy(e,2===s?i:n);return o.set(e,l),l}function Ae(e){return Ue(e)?Ae(e["__v_raw"]):!(!e||!e["__v_isReactive"])}function Ue(e){return!(!e||!e["__v_isReadonly"])}function Ie(e){return!(!e||!e["__v_isShallow"])}function De(e){return Ae(e)||Ue(e)}function Oe(e){const t=e&&e["__v_raw"];return t?Oe(t):e}function Pe(e){return(0,r.Nj)(e,"__v_skip",!0),e}const Le=e=>(0,r.Kn)(e)?Ee(e):e,Re=e=>(0,r.Kn)(e)?ke(e):e;function Ne(e){C&&b&&(e=Oe(e),A(e.dep||(e.dep=c())))}function Fe(e,t){e=Oe(e);const n=e.dep;n&&I(n)}function ze(e){return!(!e||!0!==e.__v_isRef)}function Be(e){return je(e,!1)}function He(e){return je(e,!0)}function je(e,t){return ze(e)?e:new Ve(e,t)}class Ve{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Oe(e),this._value=t?e:Le(e)}get value(){return Ne(this),this._value}set value(e){const t=this.__v_isShallow||Ie(e)||Ue(e);e=t?e:Oe(e),(0,r.aU)(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Le(e),Fe(this,e))}}function We(e){Fe(e,void 0)}function $e(e){return ze(e)?e.value:e}const qe={get:(e,t,n)=>$e(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return ze(i)&&!ze(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Ge(e){return Ae(e)?e:new Proxy(e,qe)}function Ze(e){const t=(0,r.kJ)(e)?new Array(e.length):{};for(const n in e)t[n]=Je(e,n);return t}class Ye{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return O(Oe(this._object),this._key)}}class Ke{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Xe(e,t,n){return ze(e)?e:(0,r.mf)(e)?new Ke(e):(0,r.Kn)(e)&&arguments.length>1?Je(e,t,n):Be(e)}function Je(e,t,n){const r=e[t];return ze(r)?r:new Ye(e,t,n)}class Qe{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this["__v_isReadonly"]=!1,this._dirty=!0,this.effect=new x(e,(()=>{this._dirty||(this._dirty=!0,Fe(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this["__v_isReadonly"]=n}get value(){const e=Oe(this);return Ne(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function et(e,t,n=!1){let i,o;const a=(0,r.mf)(e);a?(i=e,o=r.dG):(i=e.get,o=e.set);const s=new Qe(i,o,a||!o,n);return s}},3396:function(e,t,n){"use strict";n.d(t,{$d:function(){return l},Ah:function(){return Ie},Cn:function(){return F},F4:function(){return En},FN:function(){return zn},Fl:function(){return ir},HY:function(){return rn},Ho:function(){return Mn},JJ:function(){return xt},Jd:function(){return Ue},Ko:function(){return We},LL:function(){return Be},Nv:function(){return $e},P$:function(){return se},Q2:function(){return He},Q6:function(){return he},Rr:function(){return Qe},U2:function(){return ue},Uk:function(){return kn},Us:function(){return Vt},WI:function(){return qe},Wm:function(){return _n},Xn:function(){return Te},Y3:function(){return w},Y8:function(){return re},YP:function(){return K},ZK:function(){return a},_:function(){return xn},aZ:function(){return fe},bv:function(){return ke},dD:function(){return N},dG:function(){return On},f3:function(){return _t},h:function(){return or},iD:function(){return mn},ic:function(){return Ae},j4:function(){return gn},kq:function(){return An},l1:function(){return et},lA:function(){return vn},lR:function(){return tn},m0:function(){return Z},mx:function(){return Ze},nJ:function(){return oe},nK:function(){return pe},se:function(){return be},sv:function(){return an},uE:function(){return Tn},up:function(){return Fe},w5:function(){return z},wF:function(){return Me},wg:function(){return cn},wy:function(){return te},xv:function(){return on}});n(7658);var r=n(4870),i=n(7139),o=n(5941);function a(e,...t){}function s(e,t,n,r){let i;try{i=r?e(...r):e()}catch(o){u(o,t,n)}return i}function l(e,t,n,r){if((0,i.mf)(e)){const o=s(e,t,n,r);return o&&(0,i.tI)(o)&&o.catch((e=>{u(e,t,n)})),o}const o=[];for(let i=0;i>>1,i=T(h[r]);if&&h.splice(t,1)}function E(e){(0,i.kJ)(e)?m.push(...e):g&&g.includes(e,e.allowRecurse?v+1:v)||m.push(e),_()}function M(e,t=(d?f+1:0)){for(0;tT(e)-T(t))),v=0;vnull==e.id?1/0:e.id,A=(e,t)=>{const n=T(e)-T(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function U(e){p=!1,d=!0,h.sort(A);i.dG;try{for(f=0;f(0,i.HD)(e)?e.trim():e))),t&&(o=n.map(i.h5))}let u;let c=r[u=(0,i.hR)(t)]||r[u=(0,i.hR)((0,i._A)(t))];!c&&a&&(c=r[u=(0,i.hR)((0,i.rs)(t))]),c&&l(c,e,6,o);const d=r[u+"Once"];if(d){if(e.emitted){if(e.emitted[u])return}else e.emitted={};e.emitted[u]=!0,l(d,e,6,o)}}function D(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(void 0!==o)return o;const a=e.emits;let s={},l=!1;if(!(0,i.mf)(e)){const r=e=>{const n=D(e,t,!0);n&&(l=!0,(0,i.l7)(s,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return a||l?((0,i.kJ)(a)?a.forEach((e=>s[e]=null)):(0,i.l7)(s,a),(0,i.Kn)(e)&&r.set(e,s),s):((0,i.Kn)(e)&&r.set(e,null),null)}function O(e,t){return!(!e||!(0,i.F7)(t))&&(t=t.slice(2).replace(/Once$/,""),(0,i.RI)(e,t[0].toLowerCase()+t.slice(1))||(0,i.RI)(e,(0,i.rs)(t))||(0,i.RI)(e,t))}let P=null,L=null;function R(e){const t=P;return P=e,L=e&&e.type.__scopeId||null,t}function N(e){L=e}function F(){L=null}function z(e,t=P,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&hn(-1);const i=R(t);let o;try{o=e(...n)}finally{R(i),r._d&&hn(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function B(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:a,propsOptions:[s],slots:l,attrs:c,emit:d,render:p,renderCache:h,data:f,setupState:m,ctx:g,inheritAttrs:v}=e;let y,b;const w=R(e);try{if(4&n.shapeFlag){const e=o||r;y=Un(p.call(e,e,h,a,m,f,g)),b=c}else{const e=t;0,y=Un(e.length>1?e(a,{attrs:c,slots:l,emit:d}):e(a,null)),b=t.props?c:H(c)}}catch(x){ln.length=0,u(x,e,1),y=_n(an)}let S=y;if(b&&!1!==v){const e=Object.keys(b),{shapeFlag:t}=S;e.length&&7&t&&(s&&e.some(i.tR)&&(b=j(b,s)),S=Mn(S,b))}return n.dirs&&(S=Mn(S),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&(S.transition=n.transition),y=S,R(w),y}const H=e=>{let t;for(const n in e)("class"===n||"style"===n||(0,i.F7)(n))&&((t||(t={}))[n]=e[n]);return t},j=(e,t)=>{const n={};for(const r in e)(0,i.tR)(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function V(e,t,n){const{props:r,children:i,component:o}=e,{props:a,children:s,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!i&&!s||s&&s.$stable)||r!==a&&(r?!a||W(r,a,u):!!a);if(1024&l)return!0;if(16&l)return r?W(r,a,u):!!a;if(8&l){const e=t.dynamicProps;for(let t=0;te.__isSuspense;function G(e,t){t&&t.pendingBranch?(0,i.kJ)(e)?t.effects.push(...e):t.effects.push(e):E(e)}function Z(e,t){return X(e,null,t)}const Y={};function K(e,t,n){return X(e,t,n)}function X(e,t,{immediate:n,deep:o,flush:a,onTrack:u,onTrigger:c}=i.kT){var d;const p=(0,r.nZ)()===(null==(d=Fn)?void 0:d.scope)?Fn:null;let h,f,m=!1,g=!1;if((0,r.dq)(e)?(h=()=>e.value,m=(0,r.yT)(e)):(0,r.PG)(e)?(h=()=>e,o=!0):(0,i.kJ)(e)?(g=!0,m=e.some((e=>(0,r.PG)(e)||(0,r.yT)(e))),h=()=>e.map((e=>(0,r.dq)(e)?e.value:(0,r.PG)(e)?ee(e):(0,i.mf)(e)?s(e,p,2):void 0))):h=(0,i.mf)(e)?t?()=>s(e,p,2):()=>{if(!p||!p.isUnmounted)return f&&f(),l(e,p,3,[y])}:i.dG,t&&o){const e=h;h=()=>ee(e())}let v,y=e=>{f=_.onStop=()=>{s(e,p,4)}};if(Zn){if(y=i.dG,t?n&&l(t,p,3,[h(),g?[]:void 0,y]):h(),"sync"!==a)return i.dG;{const e=sr();v=e.__watcherHandles||(e.__watcherHandles=[])}}let b=g?new Array(e.length).fill(Y):Y;const w=()=>{if(_.active)if(t){const e=_.run();(o||m||(g?e.some(((e,t)=>(0,i.aU)(e,b[t]))):(0,i.aU)(e,b)))&&(f&&f(),l(t,p,3,[e,b===Y?void 0:g&&b[0]===Y?[]:b,y]),b=e)}else _.run()};let S;w.allowRecurse=!!t,"sync"===a?S=w:"post"===a?S=()=>jt(w,p&&p.suspense):(w.pre=!0,p&&(w.id=p.uid),S=()=>x(w));const _=new r.qq(h,S);t?n?w():b=_.run():"post"===a?jt(_.run.bind(_),p&&p.suspense):_.run();const C=()=>{_.stop(),p&&p.scope&&(0,i.Od)(p.scope.effects,_)};return v&&v.push(C),C}function J(e,t,n){const r=this.proxy,o=(0,i.HD)(e)?e.includes(".")?Q(r,e):()=>r[e]:e.bind(r,r);let a;(0,i.mf)(t)?a=t:(a=t.handler,n=t);const s=Fn;Vn(this);const l=X(o,a.bind(r),n);return s?Vn(s):Wn(),l}function Q(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{ee(e,t)}));else if((0,i.PO)(e))for(const n in e)ee(e[n],t);return e}function te(e,t){const n=P;if(null===n)return e;const r=tr(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let a=0;a{e.isMounted=!0})),Ue((()=>{e.isUnmounting=!0})),e}const ie=[Function,Array],oe={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ie,onEnter:ie,onAfterEnter:ie,onEnterCancelled:ie,onBeforeLeave:ie,onLeave:ie,onAfterLeave:ie,onLeaveCancelled:ie,onBeforeAppear:ie,onAppear:ie,onAfterAppear:ie,onAppearCancelled:ie},ae={name:"BaseTransition",props:oe,setup(e,{slots:t}){const n=zn(),i=re();let o;return()=>{const a=t.default&&he(t.default(),!0);if(!a||!a.length)return;let s=a[0];if(a.length>1){let e=!1;for(const t of a)if(t.type!==an){0,s=t,e=!0;break}}const l=(0,r.IU)(e),{mode:u}=l;if(i.isLeaving)return ce(s);const c=de(s);if(!c)return ce(s);const d=ue(c,l,i,n);pe(c,d);const p=n.subTree,h=p&&de(p);let f=!1;const{getTransitionKey:m}=c.type;if(m){const e=m();void 0===o?o=e:e!==o&&(o=e,f=!0)}if(h&&h.type!==an&&(!yn(c,h)||f)){const e=ue(h,l,i,n);if(pe(h,e),"out-in"===u)return i.isLeaving=!0,e.afterLeave=()=>{i.isLeaving=!1,!1!==n.update.active&&n.update()},ce(s);"in-out"===u&&c.type!==an&&(e.delayLeave=(e,t,n)=>{const r=le(i,h);r[String(h.key)]=h,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=n})}return s}}},se=ae;function le(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ue(e,t,n,r){const{appear:o,mode:a,persisted:s=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:d,onEnterCancelled:p,onBeforeLeave:h,onLeave:f,onAfterLeave:m,onLeaveCancelled:g,onBeforeAppear:v,onAppear:y,onAfterAppear:b,onAppearCancelled:w}=t,S=String(e.key),x=le(n,e),_=(e,t)=>{e&&l(e,r,9,t)},C=(e,t)=>{const n=t[1];_(e,t),(0,i.kJ)(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},E={mode:a,persisted:s,beforeEnter(t){let r=u;if(!n.isMounted){if(!o)return;r=v||u}t._leaveCb&&t._leaveCb(!0);const i=x[S];i&&yn(e,i)&&i.el._leaveCb&&i.el._leaveCb(),_(r,[t])},enter(e){let t=c,r=d,i=p;if(!n.isMounted){if(!o)return;t=y||c,r=b||d,i=w||p}let a=!1;const s=e._enterCb=t=>{a||(a=!0,_(t?i:r,[e]),E.delayedLeave&&E.delayedLeave(),e._enterCb=void 0)};t?C(t,[e,s]):s()},leave(t,r){const i=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();_(h,[t]);let o=!1;const a=t._leaveCb=n=>{o||(o=!0,r(),_(n?g:m,[t]),t._leaveCb=void 0,x[i]===e&&delete x[i])};x[i]=e,f?C(f,[t,a]):a()},clone(e){return ue(e,t,n,r)}};return E}function ce(e){if(ge(e))return e=Mn(e),e.children=null,e}function de(e){return ge(e)?e.children?e.children[0]:void 0:e}function pe(e,t){6&e.shapeFlag&&e.component?pe(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function he(e,t=!1,n){let r=[],i=0;for(let o=0;o1)for(let o=0;o(0,i.l7)({name:e.name},t,{setup:e}))():e}const me=e=>!!e.type.__asyncLoader;const ge=e=>e.type.__isKeepAlive;RegExp,RegExp;function ve(e,t){return(0,i.kJ)(e)?e.some((e=>ve(e,t))):(0,i.HD)(e)?e.split(",").includes(t):!!(0,i.Kj)(e)&&e.test(t)}function ye(e,t){we(e,"a",t)}function be(e,t){we(e,"da",t)}function we(e,t,n=Fn){const r=e.__wdc||(e.__wdc=()=>{let t=n;while(t){if(t.isDeactivated)return;t=t.parent}return e()});if(Ce(t,r,n),n){let e=n.parent;while(e&&e.parent)ge(e.parent.vnode)&&Se(r,t,n,e),e=e.parent}}function Se(e,t,n,r){const o=Ce(t,e,r,!0);Ie((()=>{(0,i.Od)(r[t],o)}),n)}function xe(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function _e(e){return 128&e.shapeFlag?e.ssContent:e}function Ce(e,t,n=Fn,i=!1){if(n){const o=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;(0,r.Jd)(),Vn(n);const o=l(t,n,e,i);return Wn(),(0,r.lk)(),o});return i?o.unshift(a):o.push(a),a}}const Ee=e=>(t,n=Fn)=>(!Zn||"sp"===e)&&Ce(e,((...e)=>t(...e)),n),Me=Ee("bm"),ke=Ee("m"),Te=Ee("bu"),Ae=Ee("u"),Ue=Ee("bum"),Ie=Ee("um"),De=Ee("sp"),Oe=Ee("rtg"),Pe=Ee("rtc");function Le(e,t=Fn){Ce("ec",e,t)}const Re="components",Ne="directives";function Fe(e,t){return je(Re,e,!0,t)||e}const ze=Symbol.for("v-ndc");function Be(e){return(0,i.HD)(e)?je(Re,e,!1)||e:e||ze}function He(e){return je(Ne,e)}function je(e,t,n=!0,r=!1){const o=P||Fn;if(o){const n=o.type;if(e===Re){const e=nr(n,!1);if(e&&(e===t||e===(0,i._A)(t)||e===(0,i.kC)((0,i._A)(t))))return n}const a=Ve(o[e]||n[e],t)||Ve(o.appContext[e],t);return!a&&r?n:a}}function Ve(e,t){return e&&(e[t]||e[(0,i._A)(t)]||e[(0,i.kC)((0,i._A)(t))])}function We(e,t,n,r){let o;const a=n&&n[r];if((0,i.kJ)(e)||(0,i.HD)(e)){o=new Array(e.length);for(let n=0,r=e.length;nt(e,n,void 0,a&&a[n])));else{const n=Object.keys(e);o=new Array(n.length);for(let r=0,i=n.length;r{const t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function qe(e,t,n={},r,i){if(P.isCE||P.parent&&me(P.parent)&&P.parent.isCE)return"default"!==t&&(n.name=t),_n("slot",n,r&&r());let o=e[t];o&&o._c&&(o._d=!1),cn();const a=o&&Ge(o(n)),s=gn(rn,{key:n.key||a&&a.key||`_${t}`},a||(r?r():[]),a&&1===e._?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),o&&o._c&&(o._d=!0),s}function Ge(e){return e.some((e=>!vn(e)||e.type!==an&&!(e.type===rn&&!Ge(e.children))))?e:null}function Ze(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:(0,i.hR)(r)]=e[r];return n}const Ye=e=>e?$n(e)?tr(e)||e.proxy:Ye(e.parent):null,Ke=(0,i.l7)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ye(e.parent),$root:e=>Ye(e.root),$emit:e=>e.emit,$options:e=>lt(e),$forceUpdate:e=>e.f||(e.f=()=>x(e.update)),$nextTick:e=>e.n||(e.n=w.bind(e.proxy)),$watch:e=>J.bind(e)}),Xe=(e,t)=>e!==i.kT&&!e.__isScriptSetup&&(0,i.RI)(e,t),Je={get({_:e},t){const{ctx:n,setupState:o,data:a,props:s,accessCache:l,type:u,appContext:c}=e;let d;if("$"!==t[0]){const r=l[t];if(void 0!==r)switch(r){case 1:return o[t];case 2:return a[t];case 4:return n[t];case 3:return s[t]}else{if(Xe(o,t))return l[t]=1,o[t];if(a!==i.kT&&(0,i.RI)(a,t))return l[t]=2,a[t];if((d=e.propsOptions[0])&&(0,i.RI)(d,t))return l[t]=3,s[t];if(n!==i.kT&&(0,i.RI)(n,t))return l[t]=4,n[t];rt&&(l[t]=0)}}const p=Ke[t];let h,f;return p?("$attrs"===t&&(0,r.j)(e,"get",t),p(e)):(h=u.__cssModules)&&(h=h[t])?h:n!==i.kT&&(0,i.RI)(n,t)?(l[t]=4,n[t]):(f=c.config.globalProperties,(0,i.RI)(f,t)?f[t]:void 0)},set({_:e},t,n){const{data:r,setupState:o,ctx:a}=e;return Xe(o,t)?(o[t]=n,!0):r!==i.kT&&(0,i.RI)(r,t)?(r[t]=n,!0):!(0,i.RI)(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(a[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:a}},s){let l;return!!n[s]||e!==i.kT&&(0,i.RI)(e,s)||Xe(t,s)||(l=a[0])&&(0,i.RI)(l,s)||(0,i.RI)(r,s)||(0,i.RI)(Ke,s)||(0,i.RI)(o.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:(0,i.RI)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Qe(){return tt().slots}function et(){return tt().attrs}function tt(){const e=zn();return e.setupContext||(e.setupContext=er(e))}function nt(e){return(0,i.kJ)(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}let rt=!0;function it(e){const t=lt(e),n=e.proxy,o=e.ctx;rt=!1,t.beforeCreate&&at(t.beforeCreate,e,"bc");const{data:a,computed:s,methods:l,watch:u,provide:c,inject:d,created:p,beforeMount:h,mounted:f,beforeUpdate:m,updated:g,activated:v,deactivated:y,beforeDestroy:b,beforeUnmount:w,destroyed:S,unmounted:x,render:_,renderTracked:C,renderTriggered:E,errorCaptured:M,serverPrefetch:k,expose:T,inheritAttrs:A,components:U,directives:I,filters:D}=t,O=null;if(d&&ot(d,o,O),l)for(const r in l){const e=l[r];(0,i.mf)(e)&&(o[r]=e.bind(n))}if(a){0;const t=a.call(n,n);0,(0,i.Kn)(t)&&(e.data=(0,r.qj)(t))}if(rt=!0,s)for(const r in s){const e=s[r],t=(0,i.mf)(e)?e.bind(n,n):(0,i.mf)(e.get)?e.get.bind(n,n):i.dG;0;const a=!(0,i.mf)(e)&&(0,i.mf)(e.set)?e.set.bind(n):i.dG,l=ir({get:t,set:a});Object.defineProperty(o,r,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e})}if(u)for(const r in u)st(u[r],o,n,r);if(c){const e=(0,i.mf)(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{xt(t,e[t])}))}function P(e,t){(0,i.kJ)(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(p&&at(p,e,"c"),P(Me,h),P(ke,f),P(Te,m),P(Ae,g),P(ye,v),P(be,y),P(Le,M),P(Pe,C),P(Oe,E),P(Ue,w),P(Ie,x),P(De,k),(0,i.kJ)(T))if(T.length){const t=e.exposed||(e.exposed={});T.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});_&&e.render===i.dG&&(e.render=_),null!=A&&(e.inheritAttrs=A),U&&(e.components=U),I&&(e.directives=I)}function ot(e,t,n=i.dG){(0,i.kJ)(e)&&(e=ht(e));for(const o in e){const n=e[o];let a;a=(0,i.Kn)(n)?"default"in n?_t(n.from||o,n.default,!0):_t(n.from||o):_t(n),(0,r.dq)(a)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e}):t[o]=a}}function at(e,t,n){l((0,i.kJ)(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function st(e,t,n,r){const o=r.includes(".")?Q(n,r):()=>n[r];if((0,i.HD)(e)){const n=t[e];(0,i.mf)(n)&&K(o,n)}else if((0,i.mf)(e))K(o,e.bind(n));else if((0,i.Kn)(e))if((0,i.kJ)(e))e.forEach((e=>st(e,t,n,r)));else{const r=(0,i.mf)(e.handler)?e.handler.bind(n):t[e.handler];(0,i.mf)(r)&&K(o,r,e)}else 0}function lt(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:a,config:{optionMergeStrategies:s}}=e.appContext,l=a.get(t);let u;return l?u=l:o.length||n||r?(u={},o.length&&o.forEach((e=>ut(u,e,s,!0))),ut(u,t,s)):u=t,(0,i.Kn)(t)&&a.set(t,u),u}function ut(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&ut(e,o,n,!0),i&&i.forEach((t=>ut(e,t,n,!0)));for(const a in t)if(r&&"expose"===a);else{const r=ct[a]||n&&n[a];e[a]=r?r(e[a],t[a]):t[a]}return e}const ct={data:dt,props:gt,emits:gt,methods:mt,computed:mt,beforeCreate:ft,created:ft,beforeMount:ft,mounted:ft,beforeUpdate:ft,updated:ft,beforeDestroy:ft,beforeUnmount:ft,destroyed:ft,unmounted:ft,activated:ft,deactivated:ft,errorCaptured:ft,serverPrefetch:ft,components:mt,directives:mt,watch:vt,provide:dt,inject:pt};function dt(e,t){return t?e?function(){return(0,i.l7)((0,i.mf)(e)?e.call(this,this):e,(0,i.mf)(t)?t.call(this,this):t)}:t:e}function pt(e,t){return mt(ht(e),ht(t))}function ht(e){if((0,i.kJ)(e)){const t={};for(let n=0;n1)return n&&(0,i.mf)(t)?t.call(r&&r.proxy):t}else 0}function Ct(e,t,n,o=!1){const a={},s={};(0,i.Nj)(s,bn,1),e.propsDefaults=Object.create(null),Mt(e,t,a,s);for(const r in e.propsOptions[0])r in a||(a[r]=void 0);n?e.props=o?a:(0,r.Um)(a):e.type.props?e.props=a:e.props=s,e.attrs=s}function Et(e,t,n,o){const{props:a,attrs:s,vnode:{patchFlag:l}}=e,u=(0,r.IU)(a),[c]=e.propsOptions;let d=!1;if(!(o||l>0)||16&l){let r;Mt(e,t,a,s)&&(d=!0);for(const o in u)t&&((0,i.RI)(t,o)||(r=(0,i.rs)(o))!==o&&(0,i.RI)(t,r))||(c?!n||void 0===n[o]&&void 0===n[r]||(a[o]=kt(c,u,o,void 0,e,!0)):delete a[o]);if(s!==u)for(const e in s)t&&(0,i.RI)(t,e)||(delete s[e],d=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let r=0;r{u=!0;const[n,r]=Tt(e,t,!0);(0,i.l7)(s,n),r&&l.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!a&&!u)return(0,i.Kn)(e)&&r.set(e,i.Z6),i.Z6;if((0,i.kJ)(a))for(let d=0;d-1,r[1]=n<0||e-1||(0,i.RI)(r,"default"))&&l.push(t)}}}}const c=[s,l];return(0,i.Kn)(e)&&r.set(e,c),c}function At(e){return"$"!==e[0]}function Ut(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:null===e?"null":""}function It(e,t){return Ut(e)===Ut(t)}function Dt(e,t){return(0,i.kJ)(t)?t.findIndex((t=>It(t,e))):(0,i.mf)(t)&&It(t,e)?0:-1}const Ot=e=>"_"===e[0]||"$stable"===e,Pt=e=>(0,i.kJ)(e)?e.map(Un):[Un(e)],Lt=(e,t,n)=>{if(t._n)return t;const r=z(((...e)=>Pt(t(...e))),n);return r._c=!1,r},Rt=(e,t,n)=>{const r=e._ctx;for(const o in e){if(Ot(o))continue;const n=e[o];if((0,i.mf)(n))t[o]=Lt(o,n,r);else if(null!=n){0;const e=Pt(n);t[o]=()=>e}}},Nt=(e,t)=>{const n=Pt(t);e.slots.default=()=>n},Ft=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=(0,r.IU)(t),(0,i.Nj)(t,"_",n)):Rt(t,e.slots={})}else e.slots={},t&&Nt(e,t);(0,i.Nj)(e.slots,bn,1)},zt=(e,t,n)=>{const{vnode:r,slots:o}=e;let a=!0,s=i.kT;if(32&r.shapeFlag){const e=t._;e?n&&1===e?a=!1:((0,i.l7)(o,t),n||1!==e||delete o._):(a=!t.$stable,Rt(t,o)),s=t}else t&&(Nt(e,t),s={default:1});if(a)for(const i in o)Ot(i)||i in s||delete o[i]};function Bt(e,t,n,o,a=!1){if((0,i.kJ)(e))return void e.forEach(((e,r)=>Bt(e,t&&((0,i.kJ)(t)?t[r]:t),n,o,a)));if(me(o)&&!a)return;const l=4&o.shapeFlag?tr(o.component)||o.component.proxy:o.el,u=a?null:l,{i:c,r:d}=e;const p=t&&t.r,h=c.refs===i.kT?c.refs={}:c.refs,f=c.setupState;if(null!=p&&p!==d&&((0,i.HD)(p)?(h[p]=null,(0,i.RI)(f,p)&&(f[p]=null)):(0,r.dq)(p)&&(p.value=null)),(0,i.mf)(d))s(d,c,12,[u,h]);else{const t=(0,i.HD)(d),o=(0,r.dq)(d);if(t||o){const r=()=>{if(e.f){const n=t?(0,i.RI)(f,d)?f[d]:h[d]:d.value;a?(0,i.kJ)(n)&&(0,i.Od)(n,l):(0,i.kJ)(n)?n.includes(l)||n.push(l):t?(h[d]=[l],(0,i.RI)(f,d)&&(f[d]=h[d])):(d.value=[l],e.k&&(h[e.k]=d.value))}else t?(h[d]=u,(0,i.RI)(f,d)&&(f[d]=u)):o&&(d.value=u,e.k&&(h[e.k]=u))};u?(r.id=-1,jt(r,n)):r()}else 0}}function Ht(){}const jt=G;function Vt(e){return Wt(e)}function Wt(e,t){Ht();const n=(0,i.E9)();n.__VUE__=!0;const{insert:o,remove:a,patchProp:s,createElement:l,createText:u,createComment:c,setText:d,setElementText:p,parentNode:h,nextSibling:f,setScopeId:m=i.dG,insertStaticContent:g}=e,v=(e,t,n,r=null,i=null,o=null,a=!1,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!yn(e,t)&&(r=J(e),G(e,i,o,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:u,ref:c,shapeFlag:d}=t;switch(u){case on:y(e,t,n,r);break;case an:b(e,t,n,r);break;case sn:null==e&&w(t,n,r,a);break;case rn:P(e,t,n,r,i,o,a,s,l);break;default:1&d?E(e,t,n,r,i,o,a,s,l):6&d?L(e,t,n,r,i,o,a,s,l):(64&d||128&d)&&u.process(e,t,n,r,i,o,a,s,l,ee)}null!=c&&i&&Bt(c,e&&e.ref,o,t||e,!t)},y=(e,t,n,r)=>{if(null==e)o(t.el=u(t.children),n,r);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},b=(e,t,n,r)=>{null==e?o(t.el=c(t.children||""),n,r):t.el=e.el},w=(e,t,n,r)=>{[e.el,e.anchor]=g(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;while(e&&e!==t)i=f(e),o(e,n,r),e=i;o(t,n,r)},_=({el:e,anchor:t})=>{let n;while(e&&e!==t)n=f(e),a(e),e=n;a(t)},E=(e,t,n,r,i,o,a,s,l)=>{a=a||"svg"===t.type,null==e?T(t,n,r,i,o,a,s,l):I(e,t,i,o,a,s,l)},T=(e,t,n,r,a,u,c,d)=>{let h,f;const{type:m,props:g,shapeFlag:v,transition:y,dirs:b}=e;if(h=e.el=l(e.type,u,g&&g.is,g),8&v?p(h,e.children):16&v&&U(e.children,h,null,r,a,u&&"foreignObject"!==m,c,d),b&&ne(e,null,r,"created"),A(h,e,e.scopeId,c,r),g){for(const t in g)"value"===t||(0,i.Gg)(t)||s(h,t,null,g[t],u,e.children,r,a,X);"value"in g&&s(h,"value",null,g.value),(f=g.onVnodeBeforeMount)&&Pn(f,r,e)}b&&ne(e,null,r,"beforeMount");const w=(!a||a&&!a.pendingBranch)&&y&&!y.persisted;w&&y.beforeEnter(h),o(h,t,n),((f=g&&g.onVnodeMounted)||w||b)&&jt((()=>{f&&Pn(f,r,e),w&&y.enter(h),b&&ne(e,null,r,"mounted")}),a)},A=(e,t,n,r,i)=>{if(n&&m(e,n),r)for(let o=0;o{for(let u=l;u{const u=t.el=e.el;let{patchFlag:c,dynamicChildren:d,dirs:h}=t;c|=16&e.patchFlag;const f=e.props||i.kT,m=t.props||i.kT;let g;n&&$t(n,!1),(g=m.onVnodeBeforeUpdate)&&Pn(g,n,t,e),h&&ne(t,e,n,"beforeUpdate"),n&&$t(n,!0);const v=o&&"foreignObject"!==t.type;if(d?D(e.dynamicChildren,d,u,n,r,v,a):l||H(e,t,u,null,n,r,v,a,!1),c>0){if(16&c)O(u,t,f,m,n,r,o);else if(2&c&&f.class!==m.class&&s(u,"class",null,m.class,o),4&c&&s(u,"style",f.style,m.style,o),8&c){const i=t.dynamicProps;for(let t=0;t{g&&Pn(g,n,t,e),h&&ne(t,e,n,"updated")}),r)},D=(e,t,n,r,i,o,a)=>{for(let s=0;s{if(n!==r){if(n!==i.kT)for(const u in n)(0,i.Gg)(u)||u in r||s(e,u,n[u],null,l,t.children,o,a,X);for(const u in r){if((0,i.Gg)(u))continue;const c=r[u],d=n[u];c!==d&&"value"!==u&&s(e,u,d,c,l,t.children,o,a,X)}"value"in r&&s(e,"value",n.value,r.value)}},P=(e,t,n,r,i,a,s,l,c)=>{const d=t.el=e?e.el:u(""),p=t.anchor=e?e.anchor:u("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(l=l?l.concat(m):m),null==e?(o(d,n,r),o(p,n,r),U(t.children,n,p,i,a,s,l,c)):h>0&&64&h&&f&&e.dynamicChildren?(D(e.dynamicChildren,f,n,i,a,s,l),(null!=t.key||i&&t===i.subTree)&&qt(e,t,!0)):H(e,t,n,p,i,a,s,l,c)},L=(e,t,n,r,i,o,a,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,a,l):R(t,n,r,i,o,a,l):N(e,t,l)},R=(e,t,n,r,i,o,a)=>{const s=e.component=Nn(e,r,i);if(ge(e)&&(s.ctx.renderer=ee),Yn(s),s.asyncDep){if(i&&i.registerDep(s,F),!e.el){const e=s.subTree=_n(an);b(null,e,t,n)}}else F(s,e,t,n,i,o,a)},N=(e,t,n)=>{const r=t.component=e.component;if(V(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void z(r,t,n);r.next=t,C(r.update),r.update()}else t.el=e.el,r.vnode=t},F=(e,t,n,o,a,s,l)=>{const u=()=>{if(e.isMounted){let t,{next:n,bu:r,u:o,parent:u,vnode:c}=e,d=n;0,$t(e,!1),n?(n.el=c.el,z(e,n,l)):n=c,r&&(0,i.ir)(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&Pn(t,u,n,c),$t(e,!0);const p=B(e);0;const f=e.subTree;e.subTree=p,v(f,p,h(f.el),J(f),e,a,s),n.el=p.el,null===d&&$(e,p.el),o&&jt(o,a),(t=n.props&&n.props.onVnodeUpdated)&&jt((()=>Pn(t,u,n,c)),a)}else{let r;const{el:l,props:u}=t,{bm:c,m:d,parent:p}=e,h=me(t);if($t(e,!1),c&&(0,i.ir)(c),!h&&(r=u&&u.onVnodeBeforeMount)&&Pn(r,p,t),$t(e,!0),l&&re){const n=()=>{e.subTree=B(e),re(l,e.subTree,e,a,null)};h?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{0;const r=e.subTree=B(e);0,v(null,r,n,o,e,a,s),t.el=r.el}if(d&&jt(d,a),!h&&(r=u&&u.onVnodeMounted)){const e=t;jt((()=>Pn(r,p,e)),a)}(256&t.shapeFlag||p&&me(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&jt(e.a,a),e.isMounted=!0,t=n=o=null}},c=e.effect=new r.qq(u,(()=>x(d)),e.scope),d=e.update=()=>c.run();d.id=e.uid,$t(e,!0),d()},z=(e,t,n)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,Et(e,t.props,i,n),zt(e,t.children,n),(0,r.Jd)(),M(),(0,r.lk)()},H=(e,t,n,r,i,o,a,s,l=!1)=>{const u=e&&e.children,c=e?e.shapeFlag:0,d=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void W(u,d,n,r,i,o,a,s,l);if(256&h)return void j(u,d,n,r,i,o,a,s,l)}8&f?(16&c&&X(u,i,o),d!==u&&p(n,d)):16&c?16&f?W(u,d,n,r,i,o,a,s,l):X(u,i,o,!0):(8&c&&p(n,""),16&f&&U(d,n,r,i,o,a,s,l))},j=(e,t,n,r,o,a,s,l,u)=>{e=e||i.Z6,t=t||i.Z6;const c=e.length,d=t.length,p=Math.min(c,d);let h;for(h=0;hd?X(e,o,a,!0,!1,p):U(t,n,r,o,a,s,l,u,p)},W=(e,t,n,r,o,a,s,l,u)=>{let c=0;const d=t.length;let p=e.length-1,h=d-1;while(c<=p&&c<=h){const r=e[c],i=t[c]=u?In(t[c]):Un(t[c]);if(!yn(r,i))break;v(r,i,n,null,o,a,s,l,u),c++}while(c<=p&&c<=h){const r=e[p],i=t[h]=u?In(t[h]):Un(t[h]);if(!yn(r,i))break;v(r,i,n,null,o,a,s,l,u),p--,h--}if(c>p){if(c<=h){const e=h+1,i=eh)while(c<=p)G(e[c],o,a,!0),c++;else{const f=c,m=c,g=new Map;for(c=m;c<=h;c++){const e=t[c]=u?In(t[c]):Un(t[c]);null!=e.key&&g.set(e.key,c)}let y,b=0;const w=h-m+1;let S=!1,x=0;const _=new Array(w);for(c=0;c=w){G(r,o,a,!0);continue}let i;if(null!=r.key)i=g.get(r.key);else for(y=m;y<=h;y++)if(0===_[y-m]&&yn(r,t[y])){i=y;break}void 0===i?G(r,o,a,!0):(_[i-m]=c+1,i>=x?x=i:S=!0,v(r,t[i],n,null,o,a,s,l,u),b++)}const C=S?Gt(_):i.Z6;for(y=C.length-1,c=w-1;c>=0;c--){const e=m+c,i=t[e],p=e+1{const{el:a,type:s,transition:l,children:u,shapeFlag:c}=e;if(6&c)return void q(e.component.subTree,t,n,r);if(128&c)return void e.suspense.move(t,n,r);if(64&c)return void s.move(e,t,n,ee);if(s===rn){o(a,t,n);for(let e=0;el.enter(a)),i);else{const{leave:e,delayLeave:r,afterLeave:i}=l,s=()=>o(a,t,n),u=()=>{e(a,(()=>{s(),i&&i()}))};r?r(a,s,u):u()}else o(a,t,n)},G=(e,t,n,r=!1,i=!1)=>{const{type:o,props:a,ref:s,children:l,dynamicChildren:u,shapeFlag:c,patchFlag:d,dirs:p}=e;if(null!=s&&Bt(s,null,n,e,!0),256&c)return void t.ctx.deactivate(e);const h=1&c&&p,f=!me(e);let m;if(f&&(m=a&&a.onVnodeBeforeUnmount)&&Pn(m,t,e),6&c)K(e.component,n,r);else{if(128&c)return void e.suspense.unmount(n,r);h&&ne(e,null,t,"beforeUnmount"),64&c?e.type.remove(e,t,n,i,ee,r):u&&(o!==rn||d>0&&64&d)?X(u,t,n,!1,!0):(o===rn&&384&d||!i&&16&c)&&X(l,t,n),r&&Z(e)}(f&&(m=a&&a.onVnodeUnmounted)||h)&&jt((()=>{m&&Pn(m,t,e),h&&ne(e,null,t,"unmounted")}),n)},Z=e=>{const{type:t,el:n,anchor:r,transition:i}=e;if(t===rn)return void Y(n,r);if(t===sn)return void _(e);const o=()=>{a(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:r}=i,a=()=>t(n,o);r?r(e.el,o,a):a()}else o()},Y=(e,t)=>{let n;while(e!==t)n=f(e),a(e),e=n;a(t)},K=(e,t,n)=>{const{bum:r,scope:o,update:a,subTree:s,um:l}=e;r&&(0,i.ir)(r),o.stop(),a&&(a.active=!1,G(s,e,t,n)),l&&jt(l,t),jt((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},X=(e,t,n,r=!1,i=!1,o=0)=>{for(let a=o;a6&e.shapeFlag?J(e.component.subTree):128&e.shapeFlag?e.suspense.next():f(e.anchor||e.el),Q=(e,t,n)=>{null==e?t._vnode&&G(t._vnode,null,null,!0):v(t._vnode||null,e,t,null,null,null,n),M(),k(),t._vnode=e},ee={p:v,um:G,m:q,r:Z,mt:R,mc:U,pc:H,pbc:D,n:J,o:e};let te,re;return t&&([te,re]=t(ee)),{render:Q,hydrate:te,createApp:wt(Q,te)}}function $t({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function qt(e,t,n=!1){const r=e.children,o=t.children;if((0,i.kJ)(r)&&(0,i.kJ)(o))for(let i=0;i>1,e[n[s]]0&&(t[r]=n[o-1]),n[o]=r)}}o=n.length,a=n[o-1];while(o-- >0)n[o]=a,a=t[a];return n}const Zt=e=>e.__isTeleport,Yt=e=>e&&(e.disabled||""===e.disabled),Kt=e=>"undefined"!==typeof SVGElement&&e instanceof SVGElement,Xt=(e,t)=>{const n=e&&e.to;if((0,i.HD)(n)){if(t){const e=t(n);return e}return null}return n},Jt={__isTeleport:!0,process(e,t,n,r,i,o,a,s,l,u){const{mc:c,pc:d,pbc:p,o:{insert:h,querySelector:f,createText:m,createComment:g}}=u,v=Yt(t.props);let{shapeFlag:y,children:b,dynamicChildren:w}=t;if(null==e){const e=t.el=m(""),u=t.anchor=m("");h(e,n,r),h(u,n,r);const d=t.target=Xt(t.props,f),p=t.targetAnchor=m("");d&&(h(p,d),a=a||Kt(d));const g=(e,t)=>{16&y&&c(b,e,t,i,o,a,s,l)};v?g(n,u):d&&g(d,p)}else{t.el=e.el;const r=t.anchor=e.anchor,c=t.target=e.target,h=t.targetAnchor=e.targetAnchor,m=Yt(e.props),g=m?n:c,y=m?r:h;if(a=a||Kt(c),w?(p(e.dynamicChildren,w,g,i,o,a,s),qt(e,t,!0)):l||d(e,t,g,y,i,o,a,s,!1),v)m||Qt(t,n,r,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Xt(t.props,f);e&&Qt(t,e,null,u,0)}else m&&Qt(t,c,h,u,1)}nn(t)},remove(e,t,n,r,{um:i,o:{remove:o}},a){const{shapeFlag:s,children:l,anchor:u,targetAnchor:c,target:d,props:p}=e;if(d&&o(c),(a||!Yt(p))&&(o(u),16&s))for(let h=0;h0?un||i.Z6:null,dn(),pn>0&&un&&un.push(e),e}function mn(e,t,n,r,i,o){return fn(xn(e,t,n,r,i,o,!0))}function gn(e,t,n,r,i){return fn(_n(e,t,n,r,i,!0))}function vn(e){return!!e&&!0===e.__v_isVNode}function yn(e,t){return e.type===t.type&&e.key===t.key}const bn="__vInternal",wn=({key:e})=>null!=e?e:null,Sn=({ref:e,ref_key:t,ref_for:n})=>("number"===typeof e&&(e=""+e),null!=e?(0,i.HD)(e)||(0,r.dq)(e)||(0,i.mf)(e)?{i:P,r:e,k:t,f:!!n}:e:null);function xn(e,t=null,n=null,r=0,o=null,a=(e===rn?0:1),s=!1,l=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&wn(t),ref:t&&Sn(t),scopeId:L,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:a,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:P};return l?(Dn(u,n),128&a&&e.normalize(u)):n&&(u.shapeFlag|=(0,i.HD)(n)?8:16),pn>0&&!s&&un&&(u.patchFlag>0||6&a)&&32!==u.patchFlag&&un.push(u),u}const _n=Cn;function Cn(e,t=null,n=null,o=0,a=null,s=!1){if(e&&e!==ze||(e=an),vn(e)){const r=Mn(e,t,!0);return n&&Dn(r,n),pn>0&&!s&&un&&(6&r.shapeFlag?un[un.indexOf(e)]=r:un.push(r)),r.patchFlag|=-2,r}if(rr(e)&&(e=e.__vccOpts),t){t=En(t);let{class:e,style:n}=t;e&&!(0,i.HD)(e)&&(t.class=(0,i.C_)(e)),(0,i.Kn)(n)&&((0,r.X3)(n)&&!(0,i.kJ)(n)&&(n=(0,i.l7)({},n)),t.style=(0,i.j5)(n))}const l=(0,i.HD)(e)?1:q(e)?128:Zt(e)?64:(0,i.Kn)(e)?4:(0,i.mf)(e)?2:0;return xn(e,t,n,o,a,l,s,!0)}function En(e){return e?(0,r.X3)(e)||bn in e?(0,i.l7)({},e):e:null}function Mn(e,t,n=!1){const{props:r,ref:o,patchFlag:a,children:s}=e,l=t?On(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&wn(l),ref:t&&t.ref?n&&o?(0,i.kJ)(o)?o.concat(Sn(t)):[o,Sn(t)]:Sn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==rn?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Mn(e.ssContent),ssFallback:e.ssFallback&&Mn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u}function kn(e=" ",t=0){return _n(on,null,e,t)}function Tn(e,t){const n=_n(sn,null,e);return n.staticCount=t,n}function An(e="",t=!1){return t?(cn(),gn(an,null,e)):_n(an,null,e)}function Un(e){return null==e||"boolean"===typeof e?_n(an):(0,i.kJ)(e)?_n(rn,null,e.slice()):"object"===typeof e?In(e):_n(on,null,String(e))}function In(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Mn(e)}function Dn(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if((0,i.kJ)(t))n=16;else if("object"===typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),Dn(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||bn in t?3===r&&P&&(1===P.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=P}}else(0,i.mf)(t)?(t={default:t,_ctx:P},n=32):(t=String(t),64&r?(n=16,t=[kn(t)]):n=8);e.children=t,e.shapeFlag|=n}function On(...e){const t={};for(let n=0;nFn||P;let Bn,Hn,jn="__VUE_INSTANCE_SETTERS__";(Hn=(0,i.E9)()[jn])||(Hn=(0,i.E9)()[jn]=[]),Hn.push((e=>Fn=e)),Bn=e=>{Hn.length>1?Hn.forEach((t=>t(e))):Hn[0](e)};const Vn=e=>{Bn(e),e.scope.on()},Wn=()=>{Fn&&Fn.scope.off(),Bn(null)};function $n(e){return 4&e.vnode.shapeFlag}let qn,Gn,Zn=!1;function Yn(e,t=!1){Zn=t;const{props:n,children:r}=e.vnode,i=$n(e);Ct(e,n,i,t),Ft(e,r);const o=i?Kn(e,t):void 0;return Zn=!1,o}function Kn(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=(0,r.Xl)(new Proxy(e.ctx,Je));const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?er(e):null;Vn(e),(0,r.Jd)();const a=s(o,e,0,[e.props,n]);if((0,r.lk)(),Wn(),(0,i.tI)(a)){if(a.then(Wn,Wn),t)return a.then((n=>{Xn(e,n,t)})).catch((t=>{u(t,e,0)}));e.asyncDep=a}else Xn(e,a,t)}else Jn(e,t)}function Xn(e,t,n){(0,i.mf)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:(0,i.Kn)(t)&&(e.setupState=(0,r.WL)(t)),Jn(e,n)}function Jn(e,t,n){const o=e.type;if(!e.render){if(!t&&qn&&!o.render){const t=o.template||lt(e).template;if(t){0;const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:s}=o,l=(0,i.l7)((0,i.l7)({isCustomElement:n,delimiters:a},r),s);o.render=qn(t,l)}}e.render=o.render||i.dG,Gn&&Gn(e)}Vn(e),(0,r.Jd)(),it(e),(0,r.lk)(),Wn()}function Qn(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return(0,r.j)(e,"get","$attrs"),t[n]}}))}function er(e){const t=t=>{e.exposed=t||{}};return{get attrs(){return Qn(e)},slots:e.slots,emit:e.emit,expose:t}}function tr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((0,r.WL)((0,r.Xl)(e.exposed)),{get(t,n){return n in t?t[n]:n in Ke?Ke[n](e):void 0},has(e,t){return t in e||t in Ke}}))}function nr(e,t=!0){return(0,i.mf)(e)?e.displayName||e.name:e.name||t&&e.__name}function rr(e){return(0,i.mf)(e)&&"__vccOpts"in e}const ir=(e,t)=>(0,r.Fl)(e,t,Zn);function or(e,t,n){const r=arguments.length;return 2===r?(0,i.Kn)(t)&&!(0,i.kJ)(t)?vn(t)?_n(e,null,[t]):_n(e,t):_n(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&vn(n)&&(n=[n]),_n(e,t,n))}const ar=Symbol.for("v-scx"),sr=()=>{{const e=_t(ar);return e}};const lr="3.3.4"},3862:function(e,t,n){"use strict";n.d(t,{D2:function(){return be},F8:function(){return we},G2:function(){return pe},W3:function(){return te},e8:function(){return ce},iM:function(){return ve},nr:function(){return ue},ri:function(){return Me},sY:function(){return Ee},uT:function(){return L}});n(7658);var r=n(7139),i=n(3396),o=n(4870);const a="http://www.w3.org/2000/svg",s="undefined"!==typeof document?document:null,l=s&&s.createElement("template"),u={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t?s.createElementNS(a,e):s.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:e=>s.createTextNode(e),createComment:e=>s.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>s.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,o){const a=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling)){while(1)if(t.insertBefore(i.cloneNode(!0),n),i===o||!(i=i.nextSibling))break}else{l.innerHTML=r?`${e}`:e;const i=l.content;if(r){const e=i.firstChild;while(e.firstChild)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function c(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function d(e,t,n){const i=e.style,o=(0,r.HD)(n);if(n&&!o){if(t&&!(0,r.HD)(t))for(const e in t)null==n[e]&&h(i,e,"");for(const e in n)h(i,e,n[e])}else{const r=i.display;o?t!==n&&(i.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(i.display=r)}}const p=/\s*!important$/;function h(e,t,n){if((0,r.kJ)(n))n.forEach((n=>h(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=g(e,t);p.test(n)?e.setProperty((0,r.rs)(i),n.replace(p,""),"important"):e[i]=n}}const f=["Webkit","Moz","ms"],m={};function g(e,t){const n=m[t];if(n)return n;let i=(0,r._A)(t);if("filter"!==i&&i in e)return m[t]=i;i=(0,r.kC)(i);for(let r=0;rE||(M.then((()=>E=0)),E=Date.now());function T(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();(0,i.$d)(A(e,n.value),t,5,[e])};return n.value=e,n.attached=k(),n}function A(e,t){if((0,r.kJ)(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}const U=/^on[a-z]/,I=(e,t,n,i,o=!1,a,s,l,u)=>{"class"===t?c(e,i,o):"style"===t?d(e,n,i):(0,r.F7)(t)?(0,r.tR)(t)||x(e,t,n,i,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):D(e,t,i,o))?b(e,t,i,a,s,l,u):("true-value"===t?e._trueValue=i:"false-value"===t&&(e._falseValue=i),y(e,t,i,o))};function D(e,t,n,i){return i?"innerHTML"===t||"textContent"===t||!!(t in e&&U.test(t)&&(0,r.mf)(n)):"spellcheck"!==t&&"draggable"!==t&&"translate"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!U.test(t)||!(0,r.HD)(n))&&t in e))))}"undefined"!==typeof HTMLElement&&HTMLElement;const O="transition",P="animation",L=(e,{slots:t})=>(0,i.h)(i.P$,B(e),t);L.displayName="Transition";const R={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},N=L.props=(0,r.l7)({},i.nJ,R),F=(e,t=[])=>{(0,r.kJ)(e)?e.forEach((e=>e(...t))):e&&e(...t)},z=e=>!!e&&((0,r.kJ)(e)?e.some((e=>e.length>1)):e.length>1);function B(e){const t={};for(const r in e)r in R||(t[r]=e[r]);if(!1===e.css)return t;const{name:n="v",type:i,duration:o,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:u=a,appearActiveClass:c=s,appearToClass:d=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,m=H(o),g=m&&m[0],v=m&&m[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:w,onLeave:S,onLeaveCancelled:x,onBeforeAppear:_=y,onAppear:C=b,onAppearCancelled:E=w}=t,M=(e,t,n)=>{W(e,t?d:l),W(e,t?c:s),n&&n()},k=(e,t)=>{e._isLeaving=!1,W(e,p),W(e,f),W(e,h),t&&t()},T=e=>(t,n)=>{const r=e?C:b,o=()=>M(t,e,n);F(r,[t,o]),$((()=>{W(t,e?u:a),V(t,e?d:l),z(r)||G(t,i,g,o)}))};return(0,r.l7)(t,{onBeforeEnter(e){F(y,[e]),V(e,a),V(e,s)},onBeforeAppear(e){F(_,[e]),V(e,u),V(e,c)},onEnter:T(!1),onAppear:T(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>k(e,t);V(e,p),X(),V(e,h),$((()=>{e._isLeaving&&(W(e,p),V(e,f),z(S)||G(e,i,v,n))})),F(S,[e,n])},onEnterCancelled(e){M(e,!1),F(w,[e])},onAppearCancelled(e){M(e,!0),F(E,[e])},onLeaveCancelled(e){k(e),F(x,[e])}})}function H(e){if(null==e)return null;if((0,r.Kn)(e))return[j(e.enter),j(e.leave)];{const t=j(e);return[t,t]}}function j(e){const t=(0,r.He)(e);return t}function V(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function W(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function $(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let q=0;function G(e,t,n,r){const i=e._endId=++q,o=()=>{i===e._endId&&r()};if(n)return setTimeout(o,n);const{type:a,timeout:s,propCount:l}=Z(e,t);if(!a)return r();const u=a+"end";let c=0;const d=()=>{e.removeEventListener(u,p),o()},p=t=>{t.target===e&&++c>=l&&d()};setTimeout((()=>{c(n[e]||"").split(", "),i=r(`${O}Delay`),o=r(`${O}Duration`),a=Y(i,o),s=r(`${P}Delay`),l=r(`${P}Duration`),u=Y(s,l);let c=null,d=0,p=0;t===O?a>0&&(c=O,d=a,p=o.length):t===P?u>0&&(c=P,d=u,p=l.length):(d=Math.max(a,u),c=d>0?a>u?O:P:null,p=c?c===O?o.length:l.length:0);const h=c===O&&/\b(transform|all)(,|$)/.test(r(`${O}Property`).toString());return{type:c,timeout:d,propCount:p,hasTransform:h}}function Y(e,t){while(e.lengthK(t)+K(e[n]))))}function K(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function X(){return document.body.offsetHeight}const J=new WeakMap,Q=new WeakMap,ee={name:"TransitionGroup",props:(0,r.l7)({},N,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=(0,i.FN)(),r=(0,i.Y8)();let a,s;return(0,i.ic)((()=>{if(!a.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!oe(a[0].el,n.vnode.el,t))return;a.forEach(ne),a.forEach(re);const r=a.filter(ie);X(),r.forEach((e=>{const n=e.el,r=n.style;V(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const i=n._moveCb=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",i),n._moveCb=null,W(n,t))};n.addEventListener("transitionend",i)}))})),()=>{const l=(0,o.IU)(e),u=B(l);let c=l.tag||i.HY;a=s,s=t.default?(0,i.Q6)(t.default()):[];for(let e=0;e{e.split(/\s+/).forEach((e=>e&&r.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&r.classList.add(e))),r.style.display="none";const i=1===t.nodeType?t:t.parentNode;i.appendChild(r);const{hasTransform:o}=Z(r);return i.removeChild(r),o}const ae=e=>{const t=e.props["onUpdate:modelValue"]||!1;return(0,r.kJ)(t)?e=>(0,r.ir)(t,e):t};function se(e){e.target.composing=!0}function le(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ue={created(e,{modifiers:{lazy:t,trim:n,number:i}},o){e._assign=ae(o);const a=i||o.props&&"number"===o.props.type;w(e,t?"change":"input",(t=>{if(t.target.composing)return;let i=e.value;n&&(i=i.trim()),a&&(i=(0,r.h5)(i)),e._assign(i)})),n&&w(e,"change",(()=>{e.value=e.value.trim()})),t||(w(e,"compositionstart",se),w(e,"compositionend",le),w(e,"change",le))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:i,number:o}},a){if(e._assign=ae(a),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(n)return;if(i&&e.value.trim()===t)return;if((o||"number"===e.type)&&(0,r.h5)(e.value)===t)return}const s=null==t?"":t;e.value!==s&&(e.value=s)}},ce={deep:!0,created(e,t,n){e._assign=ae(n),w(e,"change",(()=>{const t=e._modelValue,n=he(e),i=e.checked,o=e._assign;if((0,r.kJ)(t)){const e=(0,r.hq)(t,n),a=-1!==e;if(i&&!a)o(t.concat(n));else if(!i&&a){const n=[...t];n.splice(e,1),o(n)}}else if((0,r.DM)(t)){const e=new Set(t);i?e.add(n):e.delete(n),o(e)}else o(fe(e,i))}))},mounted:de,beforeUpdate(e,t,n){e._assign=ae(n),de(e,t,n)}};function de(e,{value:t,oldValue:n},i){e._modelValue=t,(0,r.kJ)(t)?e.checked=(0,r.hq)(t,i.props.value)>-1:(0,r.DM)(t)?e.checked=t.has(i.props.value):t!==n&&(e.checked=(0,r.WV)(t,fe(e,!0)))}const pe={created(e,{value:t},n){e.checked=(0,r.WV)(t,n.props.value),e._assign=ae(n),w(e,"change",(()=>{e._assign(he(e))}))},beforeUpdate(e,{value:t,oldValue:n},i){e._assign=ae(i),t!==n&&(e.checked=(0,r.WV)(t,i.props.value))}};function he(e){return"_value"in e?e._value:e.value}function fe(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const me=["ctrl","shift","alt","meta"],ge={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>me.some((n=>e[`${n}Key`]&&!t.includes(n)))},ve=(e,t)=>(n,...r)=>{for(let e=0;en=>{if(!("key"in n))return;const i=(0,r.rs)(n.key);return t.some((e=>e===i||ye[e]===i))?e(n):void 0},we={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Se(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!==!n&&(r?t?(r.beforeEnter(e),Se(e,!0),r.enter(e)):r.leave(e,(()=>{Se(e,!1)})):Se(e,t))},beforeUnmount(e,{value:t}){Se(e,t)}};function Se(e,t){e.style.display=t?e._vod:"none"}const xe=(0,r.l7)({patchProp:I},u);let _e;function Ce(){return _e||(_e=(0,i.Us)(xe))}const Ee=(...e)=>{Ce().render(...e)},Me=(...e)=>{const t=Ce().createApp(...e);const{mount:n}=t;return t.mount=e=>{const i=ke(e);if(!i)return;const o=t._component;(0,r.mf)(o)||o.render||o.template||(o.template=i.innerHTML),i.innerHTML="";const a=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},t};function ke(e){if((0,r.HD)(e)){const t=document.querySelector(e);return t}return e}},7139:function(e,t,n){"use strict";n.d(t,{C_:function(){return J},DM:function(){return v},E9:function(){return W},F7:function(){return u},Gg:function(){return U},HD:function(){return S},He:function(){return j},J_:function(){return y},Kj:function(){return b},Kn:function(){return _},NO:function(){return s},Nj:function(){return B},Od:function(){return p},PO:function(){return T},Pq:function(){return te},RI:function(){return f},S0:function(){return A},W7:function(){return k},WV:function(){return ie},Z6:function(){return o},_A:function(){return O},_N:function(){return g},aU:function(){return F},dG:function(){return a},e1:function(){return q},fY:function(){return r},h5:function(){return H},hR:function(){return N},hq:function(){return oe},ir:function(){return z},j5:function(){return G},kC:function(){return R},kJ:function(){return m},kT:function(){return i},l7:function(){return d},mf:function(){return w},rs:function(){return L},tI:function(){return C},tR:function(){return c},vs:function(){return Q},yA:function(){return ne},yk:function(){return x},zw:function(){return ae}});n(7658),n(5941);function r(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i!!n[e.toLowerCase()]:e=>!!n[e]}const i={},o=[],a=()=>{},s=()=>!1,l=/^on[^a-z]/,u=e=>l.test(e),c=e=>e.startsWith("onUpdate:"),d=Object.assign,p=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},h=Object.prototype.hasOwnProperty,f=(e,t)=>h.call(e,t),m=Array.isArray,g=e=>"[object Map]"===M(e),v=e=>"[object Set]"===M(e),y=e=>"[object Date]"===M(e),b=e=>"[object RegExp]"===M(e),w=e=>"function"===typeof e,S=e=>"string"===typeof e,x=e=>"symbol"===typeof e,_=e=>null!==e&&"object"===typeof e,C=e=>_(e)&&w(e.then)&&w(e.catch),E=Object.prototype.toString,M=e=>E.call(e),k=e=>M(e).slice(8,-1),T=e=>"[object Object]"===M(e),A=e=>S(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,U=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),I=e=>{const t=Object.create(null);return n=>{const r=t[n];return r||(t[n]=e(n))}},D=/-(\w)/g,O=I((e=>e.replace(D,((e,t)=>t?t.toUpperCase():"")))),P=/\B([A-Z])/g,L=I((e=>e.replace(P,"-$1").toLowerCase())),R=I((e=>e.charAt(0).toUpperCase()+e.slice(1))),N=I((e=>e?`on${R(e)}`:"")),F=(e,t)=>!Object.is(e,t),z=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},H=e=>{const t=parseFloat(e);return isNaN(t)?e:t},j=e=>{const t=S(e)?Number(e):NaN;return isNaN(t)?e:t};let V;const W=()=>V||(V="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{});const $="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",q=r($);function G(e){if(m(e)){const t={};for(let n=0;n{if(e){const n=e.split(Y);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function J(e){let t="";if(S(e))t=e;else if(m(e))for(let n=0;nie(e,t)))}const ae=e=>S(e)?e:null==e?"":m(e)||_(e)&&(e.toString===E||!w(e.toString))?JSON.stringify(e,se,2):String(e),se=(e,t)=>t&&t.__v_isRef?se(e,t.value):g(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:v(t)?{[`Set(${t.size})`]:[...t.values()]}:!_(t)||m(t)||T(t)?t:String(t)},5130:function(e,t,n){"use strict";var r=n(6027),i=n(5941);function o(e){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n(7658);var s,l,u=n(3326),c=u.codes,d=c.ERR_AMBIGUOUS_ARGUMENT,p=c.ERR_INVALID_ARG_TYPE,h=c.ERR_INVALID_ARG_VALUE,f=c.ERR_INVALID_RETURN_VALUE,m=c.ERR_MISSING_ARGS,g=n(1891),v=n(9242),y=v.inspect,b=n(9242).types,w=b.isPromise,S=b.isRegExp,x=Object.assign?Object.assign:n(336).assign,_=Object.is?Object.is:n(7004);new Map;function C(){var e=n(3184);s=e.isDeepEqual,l=e.isDeepStrictEqual}var E=!1,M=e.exports=I,k={};function T(e){if(e.message instanceof Error)throw e.message;throw new g(e)}function A(e,t,n,o,a){var s,l=arguments.length;if(0===l)s="Failed";else if(1===l)n=e,e=void 0;else{if(!1===E){E=!0;var u=r.emitWarning?r.emitWarning:i.warn.bind(i);u("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===l&&(o="!=")}if(n instanceof Error)throw n;var c={actual:e,expected:t,operator:void 0===o?"fail":o,stackStartFn:a||A};void 0!==n&&(c.message=n);var d=new g(c);throw s&&(d.message=s,d.generatedMessage=!0),d}function U(e,t,n,r){if(!n){var i=!1;if(0===t)i=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var o=new g({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw o.generatedMessage=i,o}}function I(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;ie.length)&&(n=e.length),e.substring(n-t.length,n)===t}function C(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;t=Math.floor(Math.log(t)/Math.log(2));while(t)e+=e,t--;return e+=e.substring(0,n-e.length),e}var E="",M="",k="",T="",A={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},U=10;function I(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){n[t]=e[t]})),Object.defineProperty(n,"message",{value:e.message}),n}function D(e){return w(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function O(e,t,n){var i="",o="",a=0,s="",l=!1,u=D(e),c=u.split("\n"),d=D(t).split("\n"),p=0,h="";if("strictEqual"===n&&"object"===y(e)&&"object"===y(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===c.length&&1===d.length&&c[0]!==d[0]){var f=c[0].length+d[0].length;if(f<=U){if(("object"!==y(e)||null===e)&&("object"!==y(t)||null===t)&&(0!==e||0!==t))return"".concat(A[n],"\n\n")+"".concat(c[0]," !== ").concat(d[0],"\n")}else if("strictEqualObject"!==n){var m=r.stderr&&r.stderr.isTTY?r.stderr.columns:80;if(f2&&(h="\n ".concat(C(" ",p),"^"),p=0)}}}var g=c[c.length-1],v=d[d.length-1];while(g===v){if(p++<2?s="\n ".concat(g).concat(s):i=g,c.pop(),d.pop(),0===c.length||0===d.length)break;g=c[c.length-1],v=d[d.length-1]}var b=Math.max(c.length,d.length);if(0===b){var w=u.split("\n");if(w.length>30){w[26]="".concat(E,"...").concat(T);while(w.length>27)w.pop()}return"".concat(A.notIdentical,"\n\n").concat(w.join("\n"),"\n")}p>3&&(s="\n".concat(E,"...").concat(T).concat(s),l=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var S=0,x=A[n]+"\n".concat(M,"+ actual").concat(T," ").concat(k,"- expected").concat(T),I=" ".concat(E,"...").concat(T," Lines skipped");for(p=0;p1&&p>2&&(O>4?(o+="\n".concat(E,"...").concat(T),l=!0):O>3&&(o+="\n ".concat(d[p-2]),S++),o+="\n ".concat(d[p-1]),S++),a=p,i+="\n".concat(k,"-").concat(T," ").concat(d[p]),S++;else if(d.length1&&p>2&&(O>4?(o+="\n".concat(E,"...").concat(T),l=!0):O>3&&(o+="\n ".concat(c[p-2]),S++),o+="\n ".concat(c[p-1]),S++),a=p,o+="\n".concat(M,"+").concat(T," ").concat(c[p]),S++;else{var P=d[p],L=c[p],R=L!==P&&(!_(L,",")||L.slice(0,-1)!==P);R&&_(P,",")&&P.slice(0,-1)===L&&(R=!1,L+=","),R?(O>1&&p>2&&(O>4?(o+="\n".concat(E,"...").concat(T),l=!0):O>3&&(o+="\n ".concat(c[p-2]),S++),o+="\n ".concat(c[p-1]),S++),a=p,o+="\n".concat(M,"+").concat(T," ").concat(L),i+="\n".concat(k,"-").concat(T," ").concat(P),S+=2):(o+=i,i="",1!==O&&0!==p||(o+="\n ".concat(L),S++))}if(S>20&&p30){f[26]="".concat(E,"...").concat(T);while(f.length>27)f.pop()}n=1===f.length?u(this,v(t).call(this,"".concat(h," ").concat(f[0]))):u(this,v(t).call(this,"".concat(h,"\n\n").concat(f.join("\n"),"\n")))}else{var m=D(l),g="",b=A[o];"notDeepEqual"===o||"notEqual"===o?(m="".concat(A[o],"\n\n").concat(m),m.length>1024&&(m="".concat(m.slice(0,1021),"..."))):(g="".concat(D(d)),m.length>512&&(m="".concat(m.slice(0,509),"...")),g.length>512&&(g="".concat(g.slice(0,509),"...")),"deepEqual"===o||"equal"===o?m="".concat(b,"\n\n").concat(m,"\n\nshould equal\n\n"):g=" ".concat(o," ").concat(g)),n=u(this,v(t).call(this,"".concat(m).concat(g)))}return Error.stackTraceLimit=p,n.generatedMessage=!i,Object.defineProperty(c(n),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),n.code="ERR_ASSERTION",n.actual=l,n.expected=d,n.operator=o,Error.captureStackTrace&&Error.captureStackTrace(c(n),s),n.stack,n.name="AssertionError",u(n)}return d(t,e),l(t,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:w.custom,value:function(e,t){return w(this,i({},t,{customInspect:!1,depth:0}))}}]),t}(p(Error));e.exports=P},3326:function(e,t,n){"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?a(e):t}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}var c,d,p={};function h(e,t,n){function r(e,n,r){return"string"===typeof t?t:t(e,n,r)}n||(n=Error);var a=function(t){function n(t,a,l){var u;return i(this,n),u=o(this,s(n).call(this,r(t,a,l))),u.code=e,u}return l(n,t),n}(n);p[e]=a}function f(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}function m(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function g(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function v(e,t,n){return"number"!==typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}h("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),h("ERR_INVALID_ARG_TYPE",(function(e,t,i){var o,a;if(void 0===c&&(c=n(5130)),c("string"===typeof e,"'name' must be a string"),"string"===typeof t&&m(t,"not ")?(o="must not be",t=t.replace(/^not /,"")):o="must be",g(e," argument"))a="The ".concat(e," ").concat(o," ").concat(f(t,"type"));else{var s=v(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(s," ").concat(o," ").concat(f(t,"type"))}return a+=". Received type ".concat(r(i)),a}),TypeError),h("ERR_INVALID_ARG_VALUE",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===d&&(d=n(9242));var i=d.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)}),TypeError,RangeError),h("ERR_INVALID_RETURN_VALUE",(function(e,t,n){var i;return i=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")}),TypeError),h("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),r=0;r0,"At least one arg needs to be specified");var i="The ",o=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),o){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,o-1).join(", "),i+=", and ".concat(t[o-1]," arguments");break}return"".concat(i," must be specified")}),TypeError),e.exports.codes=p},3184:function(e,t,n){"use strict";function r(e,t){return a(e)||o(e,t)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function o(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}function a(e){if(Array.isArray(e))return e}function s(e){return s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}n(7658),n(2087),n(1439),n(7585),n(5315);var l=void 0!==/a/g.flags,u=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},c=function(e){var t=[];return e.forEach((function(e,n){return t.push([n,e])})),t},d=Object.is?Object.is:n(7004),p=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},h=Number.isNaN?Number.isNaN:n(1185);function f(e){return e.call.bind(e)}var m=f(Object.prototype.hasOwnProperty),g=f(Object.prototype.propertyIsEnumerable),v=f(Object.prototype.toString),y=n(9242).types,b=y.isAnyArrayBuffer,w=y.isArrayBufferView,S=y.isDate,x=y.isMap,_=y.isRegExp,C=y.isSet,E=y.isNativeError,M=y.isBoxedPrimitive,k=y.isNumberObject,T=y.isStringObject,A=y.isBooleanObject,U=y.isBigIntObject,I=y.isSymbolObject,D=y.isFloat32Array,O=y.isFloat64Array;function P(e){if(0===e.length||e.length>10)return!0;for(var t=0;t57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function L(e){return Object.keys(e).filter(P).concat(p(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))} /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */function R(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function d(e,t,n){return 3*(t+n)/4-n}function p(e){var t,n,r=u(e),a=r[0],s=r[1],l=new o(d(e,a,s)),c=0,p=s>0?a-4:a;for(n=0;n>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[c++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l}function h(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function f(e,t,n){for(var r,i=[],o=t;ol?l:s+a));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},5361:function(e,t,n){"use strict";var r=n(5941); /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */n(1439),n(7585),n(5315),n(7658);const i=n(1271),o=n(7055),a="function"===typeof Symbol&&"function"===typeof Symbol["for"]?Symbol["for"]("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=S,t.INSPECT_MAX_BYTES=50;const s=2147483647;function l(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}function u(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return d(e,t,n)}function d(e,t,n){if("string"===typeof e)return m(e,t);if(ArrayBuffer.isView(e))return v(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(se(e,ArrayBuffer)||e&&se(e.buffer,ArrayBuffer))return y(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(se(e,SharedArrayBuffer)||e&&se(e.buffer,SharedArrayBuffer)))return y(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return c.from(r,t,n);const i=b(e);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function p(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function h(e,t,n){return p(e),e<=0?u(e):void 0!==t?"string"===typeof n?u(e).fill(t,n):u(e).fill(t):u(e)}function f(e){return p(e),u(e<0?0:0|w(e))}function m(e,t){if("string"===typeof t&&""!==t||(t="utf8"),!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|x(e,t);let r=u(n);const i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function g(e){const t=e.length<0?0:0|w(e.length),n=u(t);for(let r=0;r=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function S(e){return+e!=e&&(e=0),c.alloc(+e)}function x(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||se(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return ne(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return oe(e).length;default:if(i)return r?-1:ne(e).length;t=(""+t).toLowerCase(),i=!0}}function _(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return F(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return R(this,t,n);case"latin1":case"binary":return N(this,t,n);case"base64":return D(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function C(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function E(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,le(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:M(e,t,n,r,i);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):M(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function M(e,t,n,r,i){let o,a=1,s=e.length,l=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){let n=!0;for(let r=0;ri&&(r=i)):r=i;const o=t.length;let a;for(r>o/2&&(r=o/2),a=0;a239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,l;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128===(192&n)&&(l=(31&t)<<6|63&n,l>127&&(o=l));break;case 3:n=e[i+1],r=e[i+2],128===(192&n)&&128===(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128===(192&n)&&128===(192&r)&&128===(192&s)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return L(r)}t.kMaxLength=s,c.TYPED_ARRAY_SUPPORT=l(),c.TYPED_ARRAY_SUPPORT||"undefined"===typeof r||"function"!==typeof r.error||r.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,n){return d(e,t,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,n){return h(e,t,n)},c.allocUnsafe=function(e){return f(e)},c.allocUnsafeSlow=function(e){return f(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(se(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),se(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,o=Math.min(n,r);ir.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},c.byteLength=x,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tn&&(e+=" ... "),""},a&&(c.prototype[a]=c.prototype.inspect),c.prototype.compare=function(e,t,n,r,i){if(se(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;let o=i-r,a=n-t;const s=Math.min(o,a),l=this.slice(r,i),u=e.slice(t,n);for(let c=0;c>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return k(this,e,t,n);case"utf8":case"utf-8":return T(this,e,t,n);case"ascii":case"latin1":case"binary":return A(this,e,t,n);case"base64":return U(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const P=4096;function L(e){const t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);let n="",r=0;while(rr)&&(n=r);let i="";for(let o=t;on)throw new RangeError("Trying to access beyond buffer length")}function H(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function j(e,t,n,r,i){X(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function V(e,t,n,r,i){X(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function W(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function $(e,t,n,r,i){return t=+t,n>>>=0,i||W(e,t,n,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,n,r,23,4),n+4}function q(e,t,n,r,i){return t=+t,n>>>=0,i||W(e,t,n,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){const n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t>>=0,t>>>=0,n||B(e,t,this.length);let r=this[e],i=1,o=0;while(++o>>=0,t>>>=0,n||B(e,t,this.length);let r=this[e+--t],i=1;while(t>0&&(i*=256))r+=this[e+--t]*i;return r},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||B(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||B(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||B(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||B(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||B(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=ce((function(e){e>>>=0,J(e,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Q(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<>>=0,J(e,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Q(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<>>=0,t>>>=0,n||B(e,t,this.length);let r=this[e],i=1,o=0;while(++o=i&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||B(e,t,this.length);let r=t,i=1,o=this[e+--r];while(r>0&&(i*=256))o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||B(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||B(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){e>>>=0,t||B(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||B(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||B(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=ce((function(e){e>>>=0,J(e,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Q(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<>>=0,J(e,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Q(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,t||B(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||B(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||B(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||B(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){const r=Math.pow(2,8*n)-1;H(this,e,t,n,r,0)}let i=1,o=0;this[t]=255&e;while(++o>>=0,n>>>=0,!r){const r=Math.pow(2,8*n)-1;H(this,e,t,n,r,0)}let i=n-1,o=1;this[t+i]=255&e;while(--i>=0&&(o*=256))this[t+i]=e/o&255;return t+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||H(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||H(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||H(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||H(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||H(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=ce((function(e,t=0){return j(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=ce((function(e,t=0){return V(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);H(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;this[t]=255&e;while(++i>0)-a&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);H(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;this[t+i]=255&e;while(--i>=0&&(o*=256))e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||H(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||H(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||H(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||H(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||H(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=ce((function(e,t=0){return j(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=ce((function(e,t=0){return V(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(e,t,n){return $(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return $(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return q(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return q(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function K(e,t,n){J(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||Q(t,e.length-(n+1))}function X(e,t,n,r,i,o){if(e>n||e3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new G.ERR_OUT_OF_RANGE("value",i,e)}K(r,i,o)}function J(e,t){if("number"!==typeof e)throw new G.ERR_INVALID_ARG_TYPE(t,"number",e)}function Q(e,t,n){if(Math.floor(e)!==e)throw J(e,n),new G.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new G.ERR_BUFFER_OUT_OF_BOUNDS;throw new G.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}Z("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),Z("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),Z("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=Y(String(n)):"bigint"===typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=Y(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r}),RangeError);const ee=/[^+/0-9A-Za-z-_]/g;function te(e){if(e=e.split("=")[0],e=e.trim().replace(ee,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function ne(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let a=0;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function re(e){const t=[];for(let n=0;n>8,i=n%256,o.push(i),o.push(r)}return o}function oe(e){return i.toByteArray(te(e))}function ae(e,t,n,r){let i;for(i=0;i=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function se(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function le(e){return e!==e}const ue=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function ce(e){return"undefined"===typeof BigInt?de:e}function de(){throw new Error("BigInt not supported")}},5477:function(e,t,n){"use strict";var r=n(8692),i=n(1542),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&o(e,".prototype.")>-1?i(n):n}},1542:function(e,t,n){"use strict";var r=n(9148),i=n(8692),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(a,o),l=i("%Object.getOwnPropertyDescriptor%",!0),u=i("%Object.defineProperty%",!0),c=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(p){u=null}e.exports=function(e){var t=s(r,a,arguments);if(l&&u){var n=l(t,"length");n.configurable&&u(t,"length",{value:1+c(0,e.length-(arguments.length-1))})}return t};var d=function(){return s(r,o,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},5941:function(e,t,n){var r=n(9242),i=n(5130);function o(){return(new Date).getTime()}var a,s=Array.prototype.slice,l={};a="undefined"!==typeof n.g&&n.g.console?n.g.console:"undefined"!==typeof window&&window.console?window.console:{};for(var u=[[f,"log"],[m,"info"],[g,"warn"],[v,"error"],[y,"time"],[b,"timeEnd"],[w,"trace"],[S,"dir"],[x,"assert"]],c=0;c=t?e:""+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(i,2,"0")},m:function e(t,n){if(t.date()1)return e(a[0])}else{var s=t.name;w[s]=t,i=s}return!r&&i&&(b=i),i||!r&&b},_=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},C=y;C.l=x,C.i=S,C.w=function(e,t){return _(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=x(e.locale,null,!0),this.parse(e)}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(f);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return C},v.isValid=function(){return!(this.$d.toString()===h)},v.isSame=function(e,t){var n=_(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return _(e)68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},c=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[i,function(e){this.afternoon=c(e,!1)}],a:[i,function(e){this.afternoon=c(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[i,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,s("month")],MM:[n,s("month")],MMM:[i,function(e){var t=u("months"),n=(u("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,s("year")],Z:l,ZZ:l};function p(n){var r,i;r=n,i=o&&o.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,l=0;l-1)return new Date(("X"===t?1e3:1)*e);var r=p(t)(e),i=r.year,o=r.month,a=r.day,s=r.hours,l=r.minutes,u=r.seconds,c=r.milliseconds,d=r.zone,h=new Date,f=a||(i||o?1:h.getDate()),m=i||h.getFullYear(),g=0;i&&!o||(g=o>0?o-1:h.getMonth());var v=s||0,y=l||0,b=u||0,w=c||0;return d?new Date(Date.UTC(m,g,f,v,y,b,w+60*d.offset*1e3)):n?new Date(Date.UTC(m,g,f,v,y,b,w)):new Date(m,g,f,v,y,b,w)}catch(e){return new Date("")}}(t,s,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),c&&t!=this.format(s)&&(this.$d=new Date("")),o={}}else if(s instanceof Array)for(var h=s.length,f=1;f<=h;f+=1){a[1]=s[f-1];var m=n.apply(this,a);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}f===h&&(this.$d=new Date(""))}else i.call(this,e)}}}))},5093:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t,n){t.prototype.dayOfYear=function(e){var t=Math.round((n(this).startOf("day")-n(this).startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"day")}}}))},1294:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}}))},2643:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}}}))},225:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t,n){var r=t.prototype,i=function(e){return e&&(e.indexOf?e:e.s)},o=function(e,t,n,r,o){var a=e.name?e:e.$locale(),s=i(a[t]),l=i(a[n]),u=s||l.map((function(e){return e.slice(0,r)}));if(!o)return u;var c=a.weekStart;return u.map((function(e,t){return u[(t+(c||0))%7]}))},a=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},l=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):o(e,"months")},monthsShort:function(t){return t?t.format("MMM"):o(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):o(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):o(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):o(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return l.bind(this)()},n.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return o(a(),"months")},n.monthsShort=function(){return o(a(),"monthsShort","months",3)},n.weekdays=function(e){return o(a(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return o(a(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return o(a(),"weekdaysMin","weekdays",2,e)}}}))},6245:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";var e="week",t="year";return function(n,r,i){var o=r.prototype;o.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var o=i(this).startOf(t).add(1,t).date(r),a=i(this).endOf(e);if(o.isBefore(a))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),l=this.diff(s,e,!0);return l<0?i(this).startOf("week").week():Math.ceil(l)},o.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}))},5227:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}}))},9980:function(e,t,n){"use strict";var r=n(2034),i="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,l=function(e){return"function"===typeof e&&"[object Function]"===o.call(e)},u=n(6049)(),c=s&&u,d=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if(!l(r)||!r())return;c?s(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n},p=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s]/;function n(e){var n,r=""+e,i=t.exec(r);if(!i)return r;var o="",a=0,s=0;for(a=i.index;a=3&&(o=n),"[object Array]"===i.call(e)?a(e,t,o):"string"===typeof e?s(e,t,o):l(e,t,o)};e.exports=u},5847:function(e,t,n){"use strict";n(7658);var r="Function.prototype.bind called on incompatible ",i=Array.prototype.slice,o=Object.prototype.toString,a="[object Function]";e.exports=function(e){var t=this;if("function"!==typeof t||o.call(t)!==a)throw new TypeError(r+t);for(var n,s=i.call(arguments,1),l=function(){if(this instanceof n){var r=t.apply(this,s.concat(i.call(arguments)));return Object(r)===r?r:this}return t.apply(e,s.concat(i.call(arguments)))},u=Math.max(0,t.length-s.length),c=[],d=0;d1&&"boolean"!==typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===M(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=A(e),r=n.length>0?n[0]:"",o=U("%"+r+"%",t),s=o.name,u=o.value,c=!1,d=o.alias;d&&(r=d[0],_(n,x([0,1],d)));for(var p=1,h=!0;p=n.length){var y=l(u,f);h=!!y,u=h&&"get"in y&&!("originalValue"in y.get)?y.get:u[f]}else h=S(u,f),u=u[f];h&&!c&&(g[s]=u)}}return u}},2810:function(e,t,n){"use strict";var r=n(8692),i=r("%Object.getOwnPropertyDescriptor%",!0);if(i)try{i([],"length")}catch(o){i=null}e.exports=i},6049:function(e,t,n){"use strict";var r=n(8692),i=r("%Object.defineProperty%",!0),o=function(){if(i)try{return i({},"a",{value:1}),!0}catch(e){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==i([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},7182:function(e){"use strict";var t={foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof n)}},2763:function(e,t,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n(3994);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},3994:function(e){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;var r=42;for(t in e[t]=r,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||!0!==o.enumerable)return!1}return!0}},2582:function(e,t,n){"use strict";var r=n(3994);e.exports=function(){return r()&&!!Symbol.toStringTag}},5769:function(e,t,n){"use strict";var r=n(9148);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},7055:function(e,t){ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,c=-7,d=n?i-1:0,p=n?-1:1,h=e[t+d];for(d+=p,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=p,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=p,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),t+=a+d>=1?p/l:p*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=f,s/=256,i-=8);for(a=a<0;e[n+h]=255&a,h+=f,a/=256,u-=8);e[n+h-f]|=128*m}},1923:function(e){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},2773:function(e,t,n){"use strict";var r=n(2582)(),i=n(5477),o=i("Object.prototype.toString"),a=function(e){return!(r&&e&&"object"===typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},s=function(e){return!!a(e)||null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},l=function(){return a(arguments)}();a.isLegacyArguments=s,e.exports=l?a:s},5037:function(e){"use strict";var t,n,r=Function.prototype.toString,i="object"===typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"===typeof i&&"function"===typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i((function(){throw 42}),null,t)}catch(b){b!==n&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=r.call(e);return o.test(t)}catch(n){return!1}},s=function(e){try{return!a(e)&&(r.call(e),!0)}catch(t){return!1}},l=Object.prototype.toString,u="[object Object]",c="[object Function]",d="[object GeneratorFunction]",p="[object HTMLAllCollection]",h="[object HTML document.all class]",f="[object HTMLCollection]",m="function"===typeof Symbol&&!!Symbol.toStringTag,g=!(0 in[,]),v=function(){return!1};if("object"===typeof document){var y=document.all;l.call(y)===l.call(document.all)&&(v=function(e){if((g||!e)&&("undefined"===typeof e||"object"===typeof e))try{var t=l.call(e);return(t===p||t===h||t===f||t===u)&&null==e("")}catch(n){}return!1})}e.exports=i?function(e){if(v(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;try{i(e,null,t)}catch(r){if(r!==n)return!1}return!a(e)&&s(e)}:function(e){if(v(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;if(m)return s(e);if(a(e))return!1;var t=l.call(e);return!(t!==c&&t!==d&&!/^\[object HTML/.test(t))&&s(e)}},4784:function(e,t,n){"use strict";var r,i=Object.prototype.toString,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=n(2582)(),l=Object.getPrototypeOf,u=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}};e.exports=function(e){if("function"!==typeof e)return!1;if(a.test(o.call(e)))return!0;if(!s){var t=i.call(e);return"[object GeneratorFunction]"===t}if(!l)return!1;if("undefined"===typeof r){var n=u();r=!!n&&l(n)}return l(e)===r}},301:function(e){"use strict";e.exports=function(e){return e!==e}},1185:function(e,t,n){"use strict";var r=n(1542),i=n(9980),o=n(301),a=n(8040),s=n(6431),l=r(a(),Number);i(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},8040:function(e,t,n){"use strict";var r=n(301);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},6431:function(e,t,n){"use strict";var r=n(9980),i=n(8040);e.exports=function(){var e=i();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},8300:function(e,t,n){"use strict";var r=n(2979),i=n(4647),o=n(5477),a=o("Object.prototype.toString"),s=n(2582)(),l=n(2810),u="undefined"===typeof globalThis?n.g:globalThis,c=i(),d=o("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n-1}return!!l&&m(e)}},7489:function(e){"use strict";var t=function(e){return e!==e};e.exports=function(e,n){return 0===e&&0===n?1/e===1/n:e===n||!(!t(e)||!t(n))}},7004:function(e,t,n){"use strict";var r=n(9980),i=n(1542),o=n(7489),a=n(3344),s=n(5212),l=i(a(),Object);r(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},3344:function(e,t,n){"use strict";var r=n(7489);e.exports=function(){return"function"===typeof Object.is?Object.is:r}},5212:function(e,t,n){"use strict";var r=n(3344),i=n(9980);e.exports=function(){var e=r();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},5564:function(e,t,n){"use strict";var r;if(n(7658),!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n(9833),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),u=s.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"===typeof window)return!1;for(var e in window)try{if(!p["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"===typeof window[e])try{d(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),f=function(e){if("undefined"===typeof window||!h)return d(e);try{return d(e)}catch(t){return!1}};r=function(e){var t=null!==e&&"object"===typeof e,n="[object Function]"===o.call(e),r=a(e),s=t&&"[object String]"===o.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var p=u&&n;if(s&&e.length>0&&!i.call(e,0))for(var h=0;h0)for(var m=0;m=0&&"[object Function]"===t.call(e.callee)),r}},6027:function(e,t,n){n(7658);var r,i,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}function u(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{return i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(function(){try{r="function"===typeof setTimeout?setTimeout:a}catch(e){r=a}try{i="function"===typeof clearTimeout?clearTimeout:s}catch(e){i=s}})();var c,d=[],p=!1,h=-1;function f(){p&&c&&(p=!1,c.length?d=c.concat(d):h=-1,d.length&&m())}function m(){if(!p){var e=l(f);p=!0;var t=d.length;while(t){c=d,d=[];while(++h1)for(var n=1;n=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}})),s=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),S(n)?r.showHidden=n:n&&t._extend(r,n),k(r.showHidden)&&(r.showHidden=!1),k(r.depth)&&(r.depth=2),k(r.colors)&&(r.colors=!1),k(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=d),f(r,e,r.depth)}function d(e,t){var n=c.styles[t];return n?"["+c.colors[n][0]+"m"+e+"["+c.colors[n][1]+"m":e}function p(e,t){return e}function h(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}function f(e,n,r){if(e.customInspect&&n&&D(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return E(i)||(i=f(e,i,r)),i}var o=m(e,n);if(o)return o;var a=Object.keys(n),s=h(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),I(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return g(n);if(0===a.length){if(D(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(T(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(U(n))return e.stylize(Date.prototype.toString.call(n),"date");if(I(n))return g(n)}var u,c="",d=!1,p=["{","}"];if(w(n)&&(d=!0,p=["[","]"]),D(n)){var S=n.name?": "+n.name:"";c=" [Function"+S+"]"}return T(n)&&(c=" "+RegExp.prototype.toString.call(n)),U(n)&&(c=" "+Date.prototype.toUTCString.call(n)),I(n)&&(c=" "+g(n)),0!==a.length||d&&0!=n.length?r<0?T(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=d?v(e,n,r,s,a):a.map((function(t){return y(e,n,r,s,t,d)})),e.seen.pop(),b(u,c,p)):p[0]+c+p[1]}function m(e,t){if(k(t))return e.stylize("undefined","undefined");if(E(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return C(t)?e.stylize(""+t,"number"):S(t)?e.stylize(""+t,"boolean"):x(t)?e.stylize("null","null"):void 0}function g(e){return"["+Error.prototype.toString.call(e)+"]"}function v(e,t,n,r,i){for(var o=[],a=0,s=t.length;a-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n"))):s=e.stylize("[Circular]","special")),k(a)){if(o&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function b(e,t,n){var r=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return r>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function w(e){return Array.isArray(e)}function S(e){return"boolean"===typeof e}function x(e){return null===e}function _(e){return null==e}function C(e){return"number"===typeof e}function E(e){return"string"===typeof e}function M(e){return"symbol"===typeof e}function k(e){return void 0===e}function T(e){return A(e)&&"[object RegExp]"===P(e)}function A(e){return"object"===typeof e&&null!==e}function U(e){return A(e)&&"[object Date]"===P(e)}function I(e){return A(e)&&("[object Error]"===P(e)||e instanceof Error)}function D(e){return"function"===typeof e}function O(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function P(e){return Object.prototype.toString.call(e)}function L(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!s[e])if(l.test(e)){var n=r.pid;s[e]=function(){var r=t.format.apply(t,arguments);i.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(606),t.isArray=w,t.isBoolean=S,t.isNull=x,t.isNullOrUndefined=_,t.isNumber=C,t.isString=E,t.isSymbol=M,t.isUndefined=k,t.isRegExp=T,t.types.isRegExp=T,t.isObject=A,t.isDate=U,t.types.isDate=U,t.isError=I,t.types.isNativeError=I,t.isFunction=D,t.isPrimitive=O,t.isBuffer=n(2051);var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function N(){var e=new Date,t=[L(e.getHours()),L(e.getMinutes()),L(e.getSeconds())].join(":");return[e.getDate(),R[e.getMonth()],t].join(" ")}function F(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){i.log("%s - %s",N(),t.format.apply(t,arguments))},t.inherits=n(1923),t._extend=function(e,t){if(!t||!A(t))return e;var n=Object.keys(t),r=n.length;while(r--)e[n[r]]=t[n[r]];return e};var z="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function B(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}function H(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n}},2591:function(e,t,n){"use strict";var r=n(2979),i=n(4647),o=n(5477),a=n(2810),s=o("Object.prototype.toString"),l=n(2582)(),u="undefined"===typeof globalThis?n.g:globalThis,c=i(),d=o("String.prototype.slice"),p={},h=Object.getPrototypeOf;l&&a&&h&&r(c,(function(e){if("function"===typeof u[e]){var t=new u[e];if(Symbol.toStringTag in t){var n=h(t),r=a(n,Symbol.toStringTag);if(!r){var i=h(n);r=a(i,Symbol.toStringTag)}p[e]=r.get}}}));var f=function(e){var t=!1;return r(p,(function(n,r){if(!t)try{var i=n.call(e);i===r&&(t=i)}catch(o){}})),t},m=n(8300);e.exports=function(e){return!!m(e)&&(l&&Symbol.toStringTag in e?f(e):d(s(e),8,-1))}},4647:function(e,t,n){"use strict";var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"===typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t{let n=e.__vccOpts||e;for(let[r,i]of t)n[r]=i;return n}; /*! Element Plus Icons Vue v2.1.0 */var o={name:"ArrowDown"},a={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},s=(0,r._)("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),l=[s];function u(e,t,n,i,o,s){return(0,r.wg)(),(0,r.iD)("svg",a,l)}var c=i(o,[["render",u],["__file","arrow-down.vue"]]);var d={name:"ArrowLeft"},p={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},h=(0,r._)("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"},null,-1),f=[h];function m(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",p,f)}var g=i(d,[["render",m],["__file","arrow-left.vue"]]);var v={name:"ArrowRight"},y={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},b=(0,r._)("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1),w=[b];function S(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",y,w)}var x=i(v,[["render",S],["__file","arrow-right.vue"]]);var _={name:"ArrowUp"},C={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},E=(0,r._)("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1),M=[E];function k(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",C,M)}var T=i(_,[["render",k],["__file","arrow-up.vue"]]);var A={name:"Back"},U={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},I=(0,r._)("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z"},null,-1),D=(0,r._)("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312L237.248 512z"},null,-1),O=[I,D];function P(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",U,O)}var L=i(A,[["render",P],["__file","back.vue"]]);var R={name:"Calendar"},N={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},F=(0,r._)("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64H128zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0v32zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64z"},null,-1),z=[F];function B(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",N,z)}var H=i(R,[["render",B],["__file","calendar.vue"]]);var j={name:"CaretRight"},V={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},W=(0,r._)("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1),$=[W];function q(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",V,$)}var G=i(j,[["render",q],["__file","caret-right.vue"]]),Z={name:"CaretTop"},Y={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},K=(0,r._)("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"},null,-1),X=[K];function J(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",Y,X)}var Q=i(Z,[["render",J],["__file","caret-top.vue"]]);var ee={name:"Check"},te={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ne=(0,r._)("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"},null,-1),re=[ne];function ie(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",te,re)}var oe=i(ee,[["render",ie],["__file","check.vue"]]);var ae={name:"CircleCheckFilled"},se={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},le=(0,r._)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),ue=[le];function ce(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",se,ue)}var de=i(ae,[["render",ce],["__file","circle-check-filled.vue"]]),pe={name:"CircleCheck"},he={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},fe=(0,r._)("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),me=(0,r._)("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),ge=[fe,me];function ve(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",he,ge)}var ye=i(pe,[["render",ve],["__file","circle-check.vue"]]),be={name:"CircleCloseFilled"},we={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Se=(0,r._)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),xe=[Se];function _e(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",we,xe)}var Ce=i(be,[["render",_e],["__file","circle-close-filled.vue"]]),Ee={name:"CircleClose"},Me={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ke=(0,r._)("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),Te=(0,r._)("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),Ae=[ke,Te];function Ue(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",Me,Ae)}var Ie=i(Ee,[["render",Ue],["__file","circle-close.vue"]]);var De={name:"Clock"},Oe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Pe=(0,r._)("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),Le=(0,r._)("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"},null,-1),Re=(0,r._)("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"},null,-1),Ne=[Pe,Le,Re];function Fe(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",Oe,Ne)}var ze=i(De,[["render",Fe],["__file","clock.vue"]]);var Be={name:"Close"},He={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},je=(0,r._)("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),Ve=[je];function We(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",He,Ve)}var $e=i(Be,[["render",We],["__file","close.vue"]]);var qe={name:"DArrowLeft"},Ge={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ze=(0,r._)("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"},null,-1),Ye=[Ze];function Ke(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",Ge,Ye)}var Xe=i(qe,[["render",Ke],["__file","d-arrow-left.vue"]]),Je={name:"DArrowRight"},Qe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},et=(0,r._)("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688zm-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"},null,-1),tt=[et];function nt(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",Qe,tt)}var rt=i(Je,[["render",nt],["__file","d-arrow-right.vue"]]);var it={name:"Delete"},ot={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},at=(0,r._)("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),st=[at];function lt(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",ot,st)}var ut=i(it,[["render",lt],["__file","delete.vue"]]);var ct={name:"Document"},dt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},pt=(0,r._)("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"},null,-1),ht=[pt];function ft(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",dt,ht)}var mt=i(ct,[["render",ft],["__file","document.vue"]]);var gt={name:"FullScreen"},vt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},yt=(0,r._)("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64v-.064z"},null,-1),bt=[yt];function wt(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",vt,bt)}var St=i(gt,[["render",wt],["__file","full-screen.vue"]]);var xt={name:"Hide"},_t={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ct=(0,r._)("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"},null,-1),Et=(0,r._)("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"},null,-1),Mt=[Ct,Et];function kt(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",_t,Mt)}var Tt=i(xt,[["render",kt],["__file","hide.vue"]]);var At={name:"InfoFilled"},Ut={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},It=(0,r._)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),Dt=[It];function Ot(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",Ut,Dt)}var Pt=i(At,[["render",Ot],["__file","info-filled.vue"]]);var Lt={name:"Loading"},Rt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Nt=(0,r._)("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),Ft=[Nt];function zt(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",Rt,Ft)}var Bt=i(Lt,[["render",zt],["__file","loading.vue"]]);var Ht={name:"MagicStick"},jt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Vt=(0,r._)("path",{fill:"currentColor",d:"M512 64h64v192h-64V64zm0 576h64v192h-64V640zM160 480v-64h192v64H160zm576 0v-64h192v64H736zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248L657.152 606.4zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248-316.8 316.8zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248L702.4 334.848z"},null,-1),Wt=[Vt];function $t(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",jt,Wt)}var qt=i(Ht,[["render",$t],["__file","magic-stick.vue"]]);var Gt={name:"Minus"},Zt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Yt=(0,r._)("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1),Kt=[Yt];function Xt(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",Zt,Kt)}var Jt=i(Gt,[["render",Xt],["__file","minus.vue"]]);var Qt={name:"MoreFilled"},en={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},tn=(0,r._)("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224z"},null,-1),nn=[tn];function rn(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",en,nn)}var on=i(Qt,[["render",rn],["__file","more-filled.vue"]]),an={name:"More"},sn={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ln=(0,r._)("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"},null,-1),un=[ln];function cn(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",sn,un)}var dn=i(an,[["render",cn],["__file","more.vue"]]);var pn={name:"PictureFilled"},hn={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},fn=(0,r._)("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32H96zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112zM256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384z"},null,-1),mn=[fn];function gn(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",hn,mn)}var vn=i(pn,[["render",gn],["__file","picture-filled.vue"]]);var yn={name:"Plus"},bn={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wn=(0,r._)("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1),Sn=[wn];function xn(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",bn,Sn)}var _n=i(yn,[["render",xn],["__file","plus.vue"]]);var Cn={name:"QuestionFilled"},En={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Mn=(0,r._)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"},null,-1),kn=[Mn];function Tn(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",En,kn)}var An=i(Cn,[["render",Tn],["__file","question-filled.vue"]]);var Un={name:"RefreshLeft"},In={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Dn=(0,r._)("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"},null,-1),On=[Dn];function Pn(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",In,On)}var Ln=i(Un,[["render",Pn],["__file","refresh-left.vue"]]),Rn={name:"RefreshRight"},Nn={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Fn=(0,r._)("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"},null,-1),zn=[Fn];function Bn(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",Nn,zn)}var Hn=i(Rn,[["render",Bn],["__file","refresh-right.vue"]]);var jn={name:"ScaleToOriginal"},Vn={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Wn=(0,r._)("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zM512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412zM512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512z"},null,-1),$n=[Wn];function qn(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",Vn,$n)}var Gn=i(jn,[["render",qn],["__file","scale-to-original.vue"]]);var Zn={name:"Search"},Yn={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Kn=(0,r._)("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"},null,-1),Xn=[Kn];function Jn(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",Yn,Xn)}var Qn=i(Zn,[["render",Jn],["__file","search.vue"]]);var er={name:"SortDown"},tr={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},nr=(0,r._)("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0z"},null,-1),rr=[nr];function ir(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",tr,rr)}var or=i(er,[["render",ir],["__file","sort-down.vue"]]),ar={name:"SortUp"},sr={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lr=(0,r._)("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248z"},null,-1),ur=[lr];function cr(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",sr,ur)}var dr=i(ar,[["render",cr],["__file","sort-up.vue"]]);var pr={name:"StarFilled"},hr={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},fr=(0,r._)("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"},null,-1),mr=[fr];function gr(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",hr,mr)}var vr=i(pr,[["render",gr],["__file","star-filled.vue"]]),yr={name:"Star"},br={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wr=(0,r._)("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72L512 747.84zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"},null,-1),Sr=[wr];function xr(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",br,Sr)}var _r=i(yr,[["render",xr],["__file","star.vue"]]);var Cr={name:"SuccessFilled"},Er={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Mr=(0,r._)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),kr=[Mr];function Tr(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",Er,kr)}var Ar=i(Cr,[["render",Tr],["__file","success-filled.vue"]]);var Ur={name:"VideoPause"},Ir={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Dr=(0,r._)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32zm192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32z"},null,-1),Or=[Dr];function Pr(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",Ir,Or)}var Lr=i(Ur,[["render",Pr],["__file","video-pause.vue"]]),Rr={name:"VideoPlay"},Nr={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Fr=(0,r._)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm-48-247.616L668.608 512 464 375.616v272.768zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"},null,-1),zr=[Fr];function Br(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",Nr,zr)}var Hr=i(Rr,[["render",Br],["__file","video-play.vue"]]),jr={name:"View"},Vr={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Wr=(0,r._)("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),$r=[Wr];function qr(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",Vr,$r)}var Gr=i(jr,[["render",qr],["__file","view.vue"]]);var Zr={name:"WarningFilled"},Yr={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Kr=(0,r._)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),Xr=[Kr];function Jr(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",Yr,Xr)}var Qr=i(Zr,[["render",Jr],["__file","warning-filled.vue"]]);var ei={name:"ZoomIn"},ti={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ni=(0,r._)("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z"},null,-1),ri=[ni];function ii(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",ti,ri)}var oi=i(ei,[["render",ii],["__file","zoom-in.vue"]]),ai={name:"ZoomOut"},si={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},li=(0,r._)("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zM352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),ui=[li];function ci(e,t,n,i,o,a){return(0,r.wg)(),(0,r.iD)("svg",si,ui)}var di=i(ai,[["render",ci],["__file","zoom-out.vue"]])},1288:function(e,t,n){"use strict";n.d(t,{Lp:function(){return b}});n(2062),n(7658);var r=n(5941),i=n(5361)["Buffer"],o=new Intl.Collator(0,{numeric:1}).compare;function a(e,t,n){return e=e.split("."),t=t.split("."),o(e[0],t[0])||o(e[1],t[1])||(t[2]=t.slice(2).join("."),n=/[.-]/.test(e[2]=e.slice(2).join(".")),n==/[.-]/.test(t[2])?o(e[2],t[2]):n?-1:1)}function s(e){if(e.startsWith("http")){const{protocol:t,host:n}=new URL(e);return n.endsWith("hf.space")?{ws_protocol:"wss",host:n,http_protocol:t}:{ws_protocol:"https:"===t?"wss":"ws",http_protocol:t,host:n}}return{ws_protocol:"wss",http_protocol:"https:",host:e}}const l=/^[^\/]*\/[^\/]*$/,u=/.*hf\.space\/{0,1}$/;async function c(e,t){const n={};t&&(n.Authorization=`Bearer ${t}`);const r=e.trim();if(l.test(r))try{const t=await fetch(`https://huggingface.co./api/spaces/${r}/host`,{headers:n});if(200!==t.status)throw new Error("Space metadata could not be loaded.");const i=(await t.json()).host;return{space_id:e,...s(i)}}catch(i){throw new Error("Space metadata could not be loaded."+i.message)}if(u.test(r)){const{ws_protocol:e,http_protocol:t,host:n}=s(r);return{space_id:n.replace(".hf.space",""),ws_protocol:e,http_protocol:t,host:n}}return{space_id:!1,...s(r)}}function d(e){let t={};return e.forEach((({api_name:e},n)=>{e&&(t[e]=n)})),t}const p=/^(?=[^]*\b[dD]iscussions{0,1}\b)(?=[^]*\b[dD]isabled\b)[^]*$/;async function h(e){try{const t=await fetch(`https://huggingface.co./api/spaces/${e}/discussions`,{method:"HEAD"}),n=t.headers.get("x-error-message");return!n||!p.test(n)}catch(t){return!1}}const f="This application is too busy. Keep trying!",m="Connection errored out.";async function g(e,t,n){const r={"Content-Type":"application/json"};n&&(r.Authorization=`Bearer ${n}`);try{var i=await fetch(e,{method:"POST",body:JSON.stringify(t),headers:r})}catch(a){return[{error:m},500]}const o=await i.json();return[o,i.status]}let v;async function y(e,t,n){const r={};n&&(r.Authorization=`Bearer ${n}`);const i=new FormData;t.forEach((e=>{i.append("files",e)}));try{var o=await fetch(`${e}/upload`,{method:"POST",body:i,headers:r})}catch(s){return{error:m}}const a=await o.json();return{files:a}}async function b(e,t={normalise_files:!0}){return new Promise((async i=>{const{status_callback:o,hf_token:s,normalise_files:u}=t,p={predict:N,submit:F,view_api:z};let h=u??!0;if("undefined"===typeof window||!("WebSocket"in window)){const e=await n.e(681).then(n.bind(n,2681));v=(await Promise.resolve().then(n.t.bind(n,5361,19))).Blob,global.WebSocket=e.WebSocket}const{ws_protocol:f,http_protocol:y,host:b,space_id:S}=await c(e,s),x=Math.random().toString(36).substring(2),_={};let k,T,A={},P=!1;async function L(e){k=e,A=d((null==e?void 0:e.dependencies)||[]);try{T=await z(k)}catch(t){r.error(`Could not get api details: ${t.message}`)}return{config:k,...p}}async function R(e){if(o&&o(e),"running"===e.status)try{k=await I(`${y}//${b}`,s);const e=await L(k);i(e)}catch(t){o&&o({status:"error",message:"Could not load this space.",load_status:"error",detail:"NOT_FOUND"})}}s&&S&&(P=await E(S,s));try{k=await I(`${y}//${b}`,s);const e=await L(k);i(e)}catch(B){S?D(S,l.test(S)?"space_name":"subdomain",R):o&&o({status:"error",message:"Could not load this space.",load_status:"error",detail:"NOT_FOUND"})}function N(e,t,n){let r=!1,i=!1;return new Promise(((o,a)=>{const s=F(e,t,n);s.on("data",(e=>{r=!0,i&&s.destroy(),o(e)})).on("status",(e=>{"error"===e.stage&&a(e),"complete"===e.stage&&r&&s.destroy(),"complete"===e.stage&&(i=!0)}))}))}function F(e,t,n){let i,o,l;if("number"===typeof e)i=e,o=T.unnamed_endpoints[i];else{const t=e.replace(/^\//,"");i=A[t],o=T.named_endpoints[e.trim()]}if("number"!==typeof i)throw new Error("There is no endpoint matching that name of fn_index matching that number.");const u="number"===typeof e?"/predict":e;let c,d=!1;const p={};function v(e){const t=p;let n=t[e.type]||[];null==n||n.forEach((t=>t(e)))}function S(e,t){const n=p;let r=n[e]||[];return n[e]=r,null==r||r.push(t),{on:S,off:C,cancel:E,destroy:I}}function C(e,t){const n=p;let r=n[e]||[];return r=null==r?void 0:r.filter((e=>e!==t)),n[e]=r,{on:S,off:C,cancel:E,destroy:I}}async function E(){const e={stage:"complete",queue:!1,time:new Date};d=e,v({...e,type:"status",endpoint:u,fn_index:i}),l&&0===l.readyState?l.addEventListener("open",(()=>{l.close()})):l.close();try{await fetch(`${y}//${b+k.path}/reset`,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify({fn_index:i,session_hash:x})})}catch(B){r.warn("The `/reset` endpoint could not be called. Subsequent endpoint results may be unreliable.")}}function I(){for(const e in p)p[e].forEach((t=>{C(e,t)}))}return M(`${y}//${b+k.path}`,t,o,s).then((e=>{if(c={data:e||[],event_data:n,fn_index:i},U(i,k))v({type:"status",endpoint:u,stage:"pending",queue:!1,fn_index:i,time:new Date}),g(`${y}//${b+k.path}/run${u.startsWith("/")?u:`/${u}`}`,{...c,session_hash:x},s).then((([e,t])=>{const n=h?w(e.data,o,k.root,k.root_url):e.data;200==t?(v({type:"data",endpoint:u,fn_index:i,data:n,time:new Date}),v({type:"status",endpoint:u,fn_index:i,stage:"complete",eta:e.average_duration,queue:!1,time:new Date})):v({type:"status",stage:"error",endpoint:u,fn_index:i,message:e.error,queue:!1,time:new Date})})).catch((e=>{v({type:"status",stage:"error",message:e.message,endpoint:u,fn_index:i,queue:!1,time:new Date})}));else{v({type:"status",stage:"pending",queue:!0,endpoint:u,fn_index:i,time:new Date});let e=new URL(`${f}://${b}${k.path}\n\t\t\t\t\t\t/queue/join`);P&&e.searchParams.set("__sign",P),l=new WebSocket(e),l.onclose=e=>{e.wasClean||v({type:"status",stage:"error",message:m,queue:!0,endpoint:u,fn_index:i,time:new Date})},l.onmessage=function(e){const t=JSON.parse(e.data),{type:n,status:r,data:a}=O(t,_[i]);if("update"===n&&r&&!d)v({type:"status",endpoint:u,fn_index:i,time:new Date,...r}),"error"===r.stage&&l.close();else{if("hash"===n)return void l.send(JSON.stringify({fn_index:i,session_hash:x}));"data"===n?l.send(JSON.stringify({...c,session_hash:x})):"complete"===n?d=r:"generating"===n&&v({type:"status",time:new Date,...r,stage:null==r?void 0:r.stage,queue:!0,endpoint:u,fn_index:i})}a&&(v({type:"data",time:new Date,data:h?w(a.data,o,k.root,k.root_url):a.data,endpoint:u,fn_index:i}),d&&(v({type:"status",time:new Date,...d,stage:null==r?void 0:r.stage,queue:!0,endpoint:u,fn_index:i}),l.close()))},a(k.version||"2.0.0","3.6")<0&&addEventListener("open",(()=>l.send(JSON.stringify({hash:x}))))}})),{on:S,off:C,cancel:E,destroy:I}}async function z(e){if(T)return T;const t={"Content-Type":"application/json"};s&&(t.Authorization=`Bearer ${s}`);try{let n;n=a(e.version||"2.0.0","3.30")<0?await fetch("https://gradio-space-api-fetcher-v2.hf.space/api",{method:"POST",body:JSON.stringify({serialize:!1,config:JSON.stringify(e)}),headers:t}):await fetch(`${e.root}/info`,{headers:t});let r=await n.json();"api"in r&&(r=r.api),r.named_endpoints["/predict"]&&!r.unnamed_endpoints["0"]&&(r.unnamed_endpoints[0]=r.named_endpoints["/predict"]);const i=C(r,e,A);return i}catch(B){return[{error:m},500]}}}))}function w(e,t,n,r){let i=e.map(((e,i)=>{var o,a,s,l;return"File"===(null==(a=null==(o=t.returns)?void 0:o[i])?void 0:a.component)?S(e,n,r):"Gallery"===(null==(l=null==(s=t.returns)?void 0:s[i])?void 0:l.component)?e.map((e=>Array.isArray(e)?[S(e[0],n,r),e[1]]:[S(e,n,r),null])):"object"===typeof e&&e.is_file?S(e,n,r):e}));return i}function S(e,t,n){if(null==e)return null;if("string"===typeof e)return{name:"file_data",data:e};if(Array.isArray(e)){const r=[];for(const i of e)null===i?r.push(null):r.push(S(i,t,n));return r}return e.is_file&&(e.data=n?"/proxy="+n+"/file="+e.name:t+"/file="+e.name),e}function x(e,t,n,r){switch(e.type){case"string":return"string";case"boolean":return"boolean";case"number":return"number"}return"JSONSerializable"===n||"StringSerializable"===n?"any":"ListStringSerializable"===n?"string[]":"Image"===t?"parameter"===r?"Blob | File | Buffer":"string":"FileSerializable"===n?"array"===(null==e?void 0:e.type)?"parameter"===r?"(Blob | File | Buffer)[]":"{ name: string; data: string; size?: number; is_file?: boolean; orig_name?: string}[]":"parameter"===r?"Blob | File | Buffer":"{ name: string; data: string; size?: number; is_file?: boolean; orig_name?: string}":"GallerySerializable"===n?"parameter"===r?"[(Blob | File | Buffer), (string | null)][]":"[{ name: string; data: string; size?: number; is_file?: boolean; orig_name?: string}, (string | null))][]":void 0}function _(e,t){return"GallerySerializable"===t?"array of [file, label] tuples":"ListStringSerializable"===t?"array of strings":"FileSerializable"===t?"array of files or single file":e.description}function C(e,t,n){const r={named_endpoints:{},unnamed_endpoints:{}};for(const i in e){const o=e[i];for(const e in o){const a=t.dependencies[e]?e:n[e.replace("/","")],s=o[e];r[i][e]={},r[i][e].parameters={},r[i][e].returns={},r[i][e].type=t.dependencies[a].types,r[i][e].parameters=s.parameters.map((({label:e,component:t,type:n,serializer:r})=>({label:e,component:t,type:x(n,t,r,"parameter"),description:_(n,r)}))),r[i][e].returns=s.returns.map((({label:e,component:t,type:n,serializer:r})=>({label:e,component:t,type:x(n,t,r,"return"),description:_(n,r)})))}}return r}async function E(e,t){try{const n=await fetch(`https://huggingface.co./api/spaces/${e}/jwt`,{headers:{Authorization:`Bearer ${t}`}}),r=(await n.json()).token;return r||!1}catch(n){return r.error(n),!1}}async function M(e,t,n,i){const o=await T(t,void 0,[],!0,n);return new Promise((n=>{Promise.all(o.map((async({path:t,blob:n,data:r,type:o})=>{if(n){const r=(await y(e,[n],i)).files[0];return{path:t,file_url:r,type:o}}return{path:t,base64:r,type:o}}))).then((e=>{e.forEach((({path:e,file_url:n,base64:r,type:i})=>{if(r)k(t,r,e);else if("Gallery"===i)k(t,n,e);else if(n){const r={is_file:!0,name:`${n}`,data:null};k(t,r,e)}})),n(t)})).catch(r.log)}))}function k(e,t,n){while(n.length>1)e=e[n.shift()];e[n.shift()]=t}async function T(e,t=void 0,n=[],r=!1,o=void 0){if(Array.isArray(e)){let i=[];return await Promise.all(e.map((async(a,s)=>{var l;let u=n.slice();u.push(s);const c=await T(e[s],r?(null==(l=null==o?void 0:o.parameters[s])?void 0:l.component)||void 0:t,u,!1,o);i=i.concat(c)}))),i}if(globalThis.Buffer&&e instanceof globalThis.Buffer){const r="Image"===t;return[{path:n,blob:!r&&new v([e]),data:!!r&&`${e.toString("base64")}`,type:t}]}if(e instanceof Blob||"undefined"!==typeof window&&e instanceof File){if("Image"===t){let r;if("undefined"!==typeof window)r=await A(e);else{const t=await e.arrayBuffer();r=i.from(t).toString("base64")}return[{path:n,data:r,type:t}]}return[{path:n,blob:e,type:t}]}if("object"===typeof e){let t=[];for(let r in e)if(e.hasOwnProperty(r)){let i=n.slice();i.push(r),t=t.concat(await T(e[r],void 0,i,!1,o))}return t}return[]}function A(e){return new Promise(((t,n)=>{const r=new FileReader;r.onloadend=()=>t(r.result),r.readAsDataURL(e)}))}function U(e,t){var n,r,i,o;return!(null===(null==(r=null==(n=null==t?void 0:t.dependencies)?void 0:n[e])?void 0:r.queue)?t.enable_queue:null==(o=null==(i=null==t?void 0:t.dependencies)?void 0:i[e])?void 0:o.queue)||!1}async function I(e,t){const n={};if(t&&(n.Authorization=`Bearer ${t}`),"undefined"!==typeof window&&window.gradio_config&&"http://localhost:9876"!==location.origin){const t=window.gradio_config.root,n=window.gradio_config;return n.root=e+n.root,{...n,path:t}}if(e){let t=await fetch(`${e}/config`,{headers:n});if(200===t.status){const n=await t.json();return n.path=n.path??"",n.root=e,n}throw new Error("Could not get config.")}throw new Error("No config or app endpoint found")}async function D(e,t,n){let r,i,o="subdomain"===t?`https://huggingface.co./api/spaces/by-subdomain/${e}`:`https://huggingface.co./api/spaces/${e}`;try{if(r=await fetch(o),i=r.status,200!==i)throw new Error;r=await r.json()}catch(l){return void n({status:"error",load_status:"error",message:"Could not get space status",detail:"NOT_FOUND"})}if(!r||200!==i)return;const{runtime:{stage:a},id:s}=r;switch(a){case"STOPPED":case"SLEEPING":n({status:"sleeping",load_status:"pending",message:"Space is asleep. Waking it up...",detail:a}),setTimeout((()=>{D(e,t,n)}),1e3);break;case"RUNNING":case"RUNNING_BUILDING":n({status:"running",load_status:"complete",message:"",detail:a});break;case"BUILDING":n({status:"building",load_status:"pending",message:"Space is building...",detail:a}),setTimeout((()=>{D(e,t,n)}),1e3);break;default:n({status:"space_error",load_status:"error",message:"This space is experiencing an issue.",detail:a,discussions_enabled:await h(s)});break}}function O(e,t){const n=!0;switch(e.msg){case"send_data":return{type:"data"};case"send_hash":return{type:"hash"};case"queue_full":return{type:"update",status:{queue:n,message:f,stage:"error",code:e.code,success:e.success}};case"estimation":return{type:"update",status:{queue:n,stage:t||"pending",code:e.code,size:e.queue_size,position:e.rank,eta:e.rank_eta,success:e.success}};case"progress":return{type:"update",status:{queue:n,stage:"pending",code:e.code,progress_data:e.progress_data,success:e.success}};case"process_generating":return{type:"generating",status:{queue:n,message:e.success?null:e.output.error,stage:e.success?"generating":"error",code:e.code,progress_data:e.progress_data,eta:e.average_duration},data:e.success?e.output:null};case"process_completed":return"error"in e.output?{type:"update",status:{queue:n,message:e.output.error,stage:"error",code:e.code,success:e.success}}:{type:"complete",status:{queue:n,message:e.success?void 0:e.output.error,stage:e.success?"complete":"error",code:e.code,progress_data:e.progress_data,eta:e.output.average_duration},data:e.success?e.output:null};case"process_starts":return{type:"update",status:{queue:n,stage:"pending",code:e.code,size:e.rank,position:0,success:e.success}}}return{type:"none",status:{stage:"error",queue:n}}}},5119:function(e,t,n){"use strict";n.d(t,{i9H:function(){return p},NXq:function(){return s},Zaf:function(){return v},xKQ:function(){return y},rBN:function(){return C},ORN:function(){return c},yU7:function(){return _},NCN:function(){return O},vou:function(){return P},iPe:function(){return L}});n(7658),n(2801),n(1439),n(7585),n(5315),n(2062);var r=n(6413),i=n(3396),o=n(4870),a=!1;n(5941);function s(e){var t;const n=(0,r.Ly)(e);return null!=(t=null==n?void 0:n.$el)?t:n}const l=r.C5?window:void 0,u=r.C5?window.document:void 0;r.C5&&window.navigator,r.C5&&window.location;function c(...e){let t,n,o,a;if((0,r.HD)(e[0])||Array.isArray(e[0])?([n,o,a]=e,t=l):[t,n,o,a]=e,!t)return r.ZT;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const u=[],c=()=>{u.forEach((e=>e())),u.length=0},d=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),p=(0,i.YP)((()=>[s(t),(0,r.Ly)(a)]),(([e,t])=>{c(),e&&u.push(...n.flatMap((n=>o.map((r=>d(e,n,r,t))))))}),{immediate:!0,flush:"post"}),h=()=>{p(),c()};return(0,r.IY)(h),h}let d=!1;function p(e,t,n={}){const{window:i=l,ignore:o=[],capture:a=!0,detectIframe:u=!1}=n;if(!i)return;r.gn&&!d&&(d=!0,Array.from(i.document.body.children).forEach((e=>e.addEventListener("click",r.ZT))));let p=!0;const h=e=>o.some((t=>{if("string"===typeof t)return Array.from(i.document.querySelectorAll(t)).some((t=>t===e.target||e.composedPath().includes(t)));{const n=s(t);return n&&(e.target===n||e.composedPath().includes(n))}})),f=n=>{const r=s(e);r&&r!==n.target&&!n.composedPath().includes(r)&&(0===n.detail&&(p=!h(n)),p?t(n):p=!0)},m=[c(i,"click",f,{passive:!0,capture:a}),c(i,"pointerdown",(t=>{const n=s(e);n&&(p=!t.composedPath().includes(n)&&!h(t))}),{passive:!0}),u&&c(i,"blur",(n=>{var r;const o=s(e);"IFRAME"!==(null==(r=i.document.activeElement)?void 0:r.tagName)||(null==o?void 0:o.contains(i.document.activeElement))||t(n)}))].filter(Boolean),g=()=>m.forEach((e=>e()));return g}Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function h(e,t=!1){const n=(0,o.iH)(),i=()=>n.value=Boolean(e());return i(),(0,r.u7)(i,t),n}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function f(e){return JSON.parse(JSON.stringify(e))}const m="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{},g="__vueuse_ssr_handlers__";m[g]=m[g]||{};m[g];Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function v(e,t,{window:n=l,initialValue:a=""}={}){const u=(0,o.iH)(a),c=(0,i.Fl)((()=>{var e;return s(t)||(null==(e=null==n?void 0:n.document)?void 0:e.documentElement)}));return(0,i.YP)([c,()=>(0,r.Ly)(e)],(([e,t])=>{var r;if(e&&n){const i=null==(r=n.getComputedStyle(e).getPropertyValue(t))?void 0:r.trim();u.value=i||a}}),{immediate:!0}),(0,i.YP)(u,(t=>{var n;(null==(n=c.value)?void 0:n.style)&&c.value.style.setProperty((0,r.Ly)(e),t)})),u}Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function y({document:e=u}={}){if(!e)return(0,o.iH)("visible");const t=(0,o.iH)(e.visibilityState);return c(e,"visibilitychange",(()=>{t.value=e.visibilityState})),t}Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var b=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable,x=(e,t)=>{var n={};for(var r in e)w.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&b)for(var r of b(e))t.indexOf(r)<0&&S.call(e,r)&&(n[r]=e[r]);return n};function _(e,t,n={}){const o=n,{window:a=l}=o,u=x(o,["window"]);let c;const d=h((()=>a&&"ResizeObserver"in a)),p=()=>{c&&(c.disconnect(),c=void 0)},f=(0,i.YP)((()=>s(e)),(e=>{p(),d.value&&a&&e&&(c=new ResizeObserver(t),c.observe(e,u))}),{immediate:!0,flush:"post"}),m=()=>{p(),f()};return(0,r.IY)(m),{isSupported:d,stop:m}}function C(e,t={}){const{reset:n=!0,windowResize:a=!0,windowScroll:l=!0,immediate:u=!0}=t,d=(0,o.iH)(0),p=(0,o.iH)(0),h=(0,o.iH)(0),f=(0,o.iH)(0),m=(0,o.iH)(0),g=(0,o.iH)(0),v=(0,o.iH)(0),y=(0,o.iH)(0);function b(){const t=s(e);if(!t)return void(n&&(d.value=0,p.value=0,h.value=0,f.value=0,m.value=0,g.value=0,v.value=0,y.value=0));const r=t.getBoundingClientRect();d.value=r.height,p.value=r.bottom,h.value=r.left,f.value=r.right,m.value=r.top,g.value=r.width,v.value=r.x,y.value=r.y}return _(e,b),(0,i.YP)((()=>s(e)),(e=>!e&&b())),l&&c("scroll",b,{capture:!0,passive:!0}),a&&c("resize",b,{passive:!0}),(0,r.u7)((()=>{u&&b()})),{height:d,bottom:p,left:h,right:f,top:m,width:g,x:v,y:y,update:b}}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;new Map;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var E;(function(e){e["UP"]="UP",e["RIGHT"]="RIGHT",e["DOWN"]="DOWN",e["LEFT"]="LEFT",e["NONE"]="NONE"})(E||(E={}));Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var M=Object.defineProperty,k=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable,U=(e,t,n)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,I=(e,t)=>{for(var n in t||(t={}))T.call(t,n)&&U(e,n,t[n]);if(k)for(var n of k(t))A.call(t,n)&&U(e,n,t[n]);return e};const D={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};I({linear:r.yR},D);function O(e,t,n,s={}){var l,u,c,d,p;const{clone:h=!1,passive:m=!1,eventName:g,deep:v=!1,defaultValue:y}=s,b=(0,i.FN)(),w=n||(null==b?void 0:b.emit)||(null==(l=null==b?void 0:b.$emit)?void 0:l.bind(b))||(null==(c=null==(u=null==b?void 0:b.proxy)?void 0:u.$emit)?void 0:c.bind(null==b?void 0:b.proxy));let S=g;if(!t)if(a){const e=null==(p=null==(d=null==b?void 0:b.proxy)?void 0:d.$options)?void 0:p.model;t=(null==e?void 0:e.value)||"value",g||(S=(null==e?void 0:e.event)||"input")}else t="modelValue";S=g||S||`update:${t.toString()}`;const x=e=>h?(0,r.mf)(h)?h(e):f(e):e,_=()=>(0,r.Xq)(e[t])?x(e[t]):y;if(m){const n=_(),r=(0,o.iH)(n);return(0,i.YP)((()=>e[t]),(e=>r.value=x(e))),(0,i.YP)(r,(n=>{(n!==e[t]||v)&&w(S,n)}),{deep:v}),r}return(0,i.Fl)({get(){return _()},set(e){w(S,e)}})}function P({window:e=l}={}){if(!e)return(0,o.iH)(!1);const t=(0,o.iH)(e.document.hasFocus());return c(e,"blur",(()=>{t.value=!1})),c(e,"focus",(()=>{t.value=!0})),t}function L(e={}){const{window:t=l,initialWidth:n=1/0,initialHeight:i=1/0,listenOrientation:a=!0,includeScrollbar:s=!0}=e,u=(0,o.iH)(n),d=(0,o.iH)(i),p=()=>{t&&(s?(u.value=t.innerWidth,d.value=t.innerHeight):(u.value=t.document.documentElement.clientWidth,d.value=t.document.documentElement.clientHeight))};return p(),(0,r.u7)(p),c("resize",p,{passive:!0}),a&&c("orientationchange",p,{passive:!0}),{width:u,height:d}}},6413:function(e,t,n){"use strict";n.d(t,{Rc:function(){return m},yR:function(){return M},C5:function(){return g},Xq:function(){return v},mf:function(){return y},gn:function(){return S},HD:function(){return b},ZT:function(){return w},Dp:function(){return A},Ly:function(){return x},u7:function(){return I},IY:function(){return k},vA:function(){return U},eM:function(){return D}});n(7658);var r=n(4870),i=n(3396);n(5941);var o,a=Object.defineProperty,s=Object.defineProperties,l=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,p=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t)=>{for(var n in t||(t={}))c.call(t,n)&&p(e,n,t[n]);if(u)for(var n of u(t))d.call(t,n)&&p(e,n,t[n]);return e},f=(e,t)=>s(e,l(t));function m(e,t){var n;const o=(0,r.XI)();return(0,i.m0)((()=>{o.value=e()}),f(h({},t),{flush:null!=(n=null==t?void 0:t.flush)?n:"sync"})),(0,r.OT)(o)}const g="undefined"!==typeof window,v=e=>"undefined"!==typeof e,y=(Object.prototype.toString,e=>"function"===typeof e),b=e=>"string"===typeof e,w=()=>{},S=g&&(null==(o=null==window?void 0:window.navigator)?void 0:o.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function x(e){return"function"===typeof e?e():(0,r.SU)(e)}function _(e,t){function n(...n){return new Promise(((r,i)=>{Promise.resolve(e((()=>t.apply(this,n)),{fn:t,thisArg:this,args:n})).then(r).catch(i)}))}return n}function C(e,t={}){let n,r,i=w;const o=e=>{clearTimeout(e),i(),i=w},a=a=>{const s=x(e),l=x(t.maxWait);return n&&o(n),s<=0||void 0!==l&&l<=0?(r&&(o(r),r=null),Promise.resolve(a())):new Promise(((e,u)=>{i=t.rejectOnCancel?u:e,l&&!r&&(r=setTimeout((()=>{n&&o(n),r=null,e(a())}),l)),n=setTimeout((()=>{r&&o(r),r=null,e(a())}),s)}))};return a}function E(e,t=!0,n=!0,r=!1){let i,o,a=0,s=!0,l=w;const u=()=>{i&&(clearTimeout(i),i=void 0,l(),l=w)},c=c=>{const d=x(e),p=Date.now()-a,h=()=>o=c();return u(),d<=0?(a=Date.now(),h()):(p>d&&(n||!s)?(a=Date.now(),h()):t&&(o=new Promise(((e,t)=>{l=r?t:e,i=setTimeout((()=>{a=Date.now(),s=!0,e(h()),u()}),Math.max(0,d-p))}))),n||i||(i=setTimeout((()=>s=!0),d)),s=!1,o)};return c}function M(e){return e}function k(e){return!!(0,r.nZ)()&&((0,r.EB)(e),!0)}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function T(e,t=200,n={}){return _(C(t,n),e)}function A(e,t=200,n={}){const o=(0,r.iH)(e.value),a=T((()=>{o.value=e.value}),t,n);return(0,i.YP)(e,(()=>a())),o}function U(e,t=200,n=!1,r=!0,i=!1){return _(E(t,n,r,i),e)}Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function I(e,t=!0){(0,i.FN)()?(0,i.bv)(e):t?e():(0,i.Y3)(e)}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function D(e,t,n={}){const{immediate:i=!0}=n,o=(0,r.iH)(!1);let a=null;function s(){a&&(clearTimeout(a),a=null)}function l(){o.value=!1,s()}function u(...n){s(),o.value=!0,a=setTimeout((()=>{o.value=!1,a=null,e(...n)}),x(t))}return i&&(o.value=!0,g&&u()),k(l),{isPending:(0,r.OT)(o),start:u,stop:l}}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable},5989:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n}},1183:function(e,t,n){"use strict";n.d(t,{dQ:function(){return v}});var r=n(3396),i=n(7139),o=n(4870),a=n(3862),s=n(5994);const l=(0,s.o8)({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}});var u=n(5989),c=n(6734),d=n(7354);const p=["textContent"],h=(0,r.aZ)({name:"ElBadge"}),f=(0,r.aZ)({...h,props:l,setup(e,{expose:t}){const n=e,s=(0,c.s3)("badge"),l=(0,r.Fl)((()=>n.isDot?"":(0,d.hj)(n.value)&&(0,d.hj)(n.max)&&n.max((0,r.wg)(),(0,r.iD)("div",{class:(0,i.C_)((0,o.SU)(s).b())},[(0,r.WI)(e.$slots,"default"),(0,r.Wm)(a.uT,{name:`${(0,o.SU)(s).namespace.value}-zoom-in-center`,persisted:""},{default:(0,r.w5)((()=>[(0,r.wy)((0,r._)("sup",{class:(0,i.C_)([(0,o.SU)(s).e("content"),(0,o.SU)(s).em("content",e.type),(0,o.SU)(s).is("fixed",!!e.$slots.default),(0,o.SU)(s).is("dot",e.isDot)]),textContent:(0,i.zw)((0,o.SU)(l))},null,10,p),[[a.F8,!e.hidden&&((0,o.SU)(l)||e.isDot)]])])),_:1},8,["name"])],2))}});var m=(0,u.Z)(f,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]),g=n(9015);const v=(0,g.nz)(m)},5869:function(e,t,n){"use strict";n.d(t,{Z:function(){return u},I:function(){return l}});var r=n(3396),i=n(3965),o=n(5994),a=n(4689);const s=(0,o.o8)({a11y:{type:Boolean,default:!0},locale:{type:(0,o.Cq)(Object)},size:a.Pp,button:{type:(0,o.Cq)(Object)},experimentalFeatures:{type:(0,o.Cq)(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:(0,o.Cq)(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),l={},u=(0,r.aZ)({name:"ElConfigProvider",props:s,setup(e,{slots:t}){(0,r.YP)((()=>e.message),(e=>{Object.assign(l,null!=e?e:{})}),{immediate:!0,deep:!0});const n=(0,i.AR)(e);return()=>(0,r.WI)(t,"default",{config:null==n?void 0:n.value})}})},3965:function(e,t,n){"use strict";n.d(t,{AR:function(){return m},cU:function(){return f},WS:function(){return h}});var r=n(4870),i=n(3396);const o=Symbol();var a=n(6734),s=n(2137),l=n(7750),u=n(4620),c=n(4689),d=n(984);const p=(0,r.iH)();function h(e,t=void 0){const n=(0,i.FN)()?(0,i.f3)(o,p):p;return e?(0,i.Fl)((()=>{var r,i;return null!=(i=null==(r=n.value)?void 0:r[e])?i:t})):n}function f(e,t){const n=h(),o=(0,a.s3)(e,(0,i.Fl)((()=>{var e;return(null==(e=n.value)?void 0:e.namespace)||a.tL}))),u=(0,s.bU)((0,i.Fl)((()=>{var e;return null==(e=n.value)?void 0:e.locale}))),c=(0,l.Cn)((0,i.Fl)((()=>{var e;return(null==(e=n.value)?void 0:e.zIndex)||l.DA}))),d=(0,i.Fl)((()=>{var e;return(0,r.SU)(t)||(null==(e=n.value)?void 0:e.size)||""}));return m((0,i.Fl)((()=>(0,r.SU)(n)||{}))),{ns:o,locale:u,zIndex:c,size:d}}const m=(e,t,n=!1)=>{var d;const f=!!(0,i.FN)(),m=f?h():void 0,v=null!=(d=null==t?void 0:t.provide)?d:f?i.JJ:void 0;if(!v)return void(0,u.N)("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");const y=(0,i.Fl)((()=>{const t=(0,r.SU)(e);return(null==m?void 0:m.value)?g(m.value,t):t}));return v(o,y),v(s._N,(0,i.Fl)((()=>y.value.locale))),v(a.dP,(0,i.Fl)((()=>y.value.namespace))),v(l.KM,(0,i.Fl)((()=>y.value.zIndex))),v(c.m8,{size:(0,i.Fl)((()=>y.value.size||""))}),!n&&p.value||(p.value=y.value),y},g=(e,t)=>{var n;const r=[...new Set([...(0,d.uc)(e),...(0,d.uc)(t)])],i={};for(const o of r)i[o]=null!=(n=t[o])?n:e[o];return i}},1015:function(e,t,n){"use strict";n.d(t,{gn:function(){return m}});var r=n(3396),i=n(4870),o=n(5994);const a=(0,o.o8)({size:{type:(0,o.Cq)([Number,String])},color:{type:String}});var s=n(5989),l=n(6734),u=n(7354),c=n(529);const d=(0,r.aZ)({name:"ElIcon",inheritAttrs:!1}),p=(0,r.aZ)({...d,props:a,setup(e){const t=e,n=(0,l.s3)("icon"),o=(0,r.Fl)((()=>{const{size:e,color:n}=t;return e||n?{fontSize:(0,u.o8)(e)?void 0:(0,c.Nn)(e),"--color":n}:{}}));return(e,t)=>((0,r.wg)(),(0,r.iD)("i",(0,r.dG)({class:(0,i.SU)(n).b(),style:(0,i.SU)(o)},e.$attrs),[(0,r.WI)(e.$slots,"default")],16))}});var h=(0,s.Z)(p,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]),f=n(9015);const m=(0,f.nz)(h)},7178:function(e,t,n){"use strict";n.d(t,{z8:function(){return B}});n(7658);var r=n(3396),i=n(3862),o=n(4870),a=n(7139),s=n(6413),l=n(5119),u=n(1183),c=n(1015),d=n(3071),p=n(5994),h=n(2039);const f=["success","info","warning","error"],m=(0,d.N)({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:s.C5?document.body:void 0}),g=(0,p.o8)({customClass:{type:String,default:m.customClass},center:{type:Boolean,default:m.center},dangerouslyUseHTMLString:{type:Boolean,default:m.dangerouslyUseHTMLString},duration:{type:Number,default:m.duration},icon:{type:h.AA,default:m.icon},id:{type:String,default:m.id},message:{type:(0,p.Cq)([String,Object,Function]),default:m.message},onClose:{type:(0,p.Cq)(Function),required:!1},showClose:{type:Boolean,default:m.showClose},type:{type:String,values:f,default:m.type},offset:{type:Number,default:m.offset},zIndex:{type:Number,default:m.zIndex},grouping:{type:Boolean,default:m.grouping},repeatNum:{type:Number,default:m.repeatNum}}),v={destroy:()=>!0},y=(0,o.Um)([]),b=e=>{const t=y.findIndex((t=>t.id===e)),n=y[t];let r;return t>0&&(r=y[t-1]),{current:n,prev:r}},w=e=>{const{prev:t}=b(e);return t?t.vm.exposed.bottom.value:0},S=(e,t)=>{const n=y.findIndex((t=>t.id===e));return n>0?20:t};var x=n(5989),_=n(3965),C=n(9619);const E=["id"],M=["innerHTML"],k=(0,r.aZ)({name:"ElMessage"}),T=(0,r.aZ)({...k,props:g,emits:v,setup(e,{expose:t}){const n=e,{Close:d}=h.TypeComponents,{ns:p,zIndex:f}=(0,_.cU)("message"),{currentZIndex:m,nextZIndex:g}=f,v=(0,o.iH)(),y=(0,o.iH)(!1),b=(0,o.iH)(0);let x;const k=(0,r.Fl)((()=>n.type?"error"===n.type?"danger":n.type:"info")),T=(0,r.Fl)((()=>{const e=n.type;return{[p.bm("icon",e)]:e&&h.Rp[e]}})),A=(0,r.Fl)((()=>n.icon||h.Rp[n.type]||"")),U=(0,r.Fl)((()=>w(n.id))),I=(0,r.Fl)((()=>S(n.id,n.offset)+U.value)),D=(0,r.Fl)((()=>b.value+I.value)),O=(0,r.Fl)((()=>({top:`${I.value}px`,zIndex:m.value})));function P(){0!==n.duration&&({stop:x}=(0,s.eM)((()=>{R()}),n.duration))}function L(){null==x||x()}function R(){y.value=!1}function N({code:e}){e===C.EVENT_CODE.esc&&R()}return(0,r.bv)((()=>{P(),g(),y.value=!0})),(0,r.YP)((()=>n.repeatNum),(()=>{L(),P()})),(0,l.ORN)(document,"keydown",N),(0,l.yU7)(v,(()=>{b.value=v.value.getBoundingClientRect().height})),t({visible:y,bottom:D,close:R}),(e,t)=>((0,r.wg)(),(0,r.j4)(i.uT,{name:(0,o.SU)(p).b("fade"),onBeforeLeave:e.onClose,onAfterLeave:t[0]||(t[0]=t=>e.$emit("destroy")),persisted:""},{default:(0,r.w5)((()=>[(0,r.wy)((0,r._)("div",{id:e.id,ref_key:"messageRef",ref:v,class:(0,a.C_)([(0,o.SU)(p).b(),{[(0,o.SU)(p).m(e.type)]:e.type&&!e.icon},(0,o.SU)(p).is("center",e.center),(0,o.SU)(p).is("closable",e.showClose),e.customClass]),style:(0,a.j5)((0,o.SU)(O)),role:"alert",onMouseenter:L,onMouseleave:P},[e.repeatNum>1?((0,r.wg)(),(0,r.j4)((0,o.SU)(u.dQ),{key:0,value:e.repeatNum,type:(0,o.SU)(k),class:(0,a.C_)((0,o.SU)(p).e("badge"))},null,8,["value","type","class"])):(0,r.kq)("v-if",!0),(0,o.SU)(A)?((0,r.wg)(),(0,r.j4)((0,o.SU)(c.gn),{key:1,class:(0,a.C_)([(0,o.SU)(p).e("icon"),(0,o.SU)(T)])},{default:(0,r.w5)((()=>[((0,r.wg)(),(0,r.j4)((0,r.LL)((0,o.SU)(A))))])),_:1},8,["class"])):(0,r.kq)("v-if",!0),(0,r.WI)(e.$slots,"default",{},(()=>[e.dangerouslyUseHTMLString?((0,r.wg)(),(0,r.iD)(r.HY,{key:1},[(0,r.kq)(" Caution here, message could've been compromised, never use user's input as message "),(0,r._)("p",{class:(0,a.C_)((0,o.SU)(p).e("content")),innerHTML:e.message},null,10,M)],2112)):((0,r.wg)(),(0,r.iD)("p",{key:0,class:(0,a.C_)((0,o.SU)(p).e("content"))},(0,a.zw)(e.message),3))])),e.showClose?((0,r.wg)(),(0,r.j4)((0,o.SU)(c.gn),{key:2,class:(0,a.C_)((0,o.SU)(p).e("closeBtn")),onClick:(0,i.iM)(R,["stop"])},{default:(0,r.w5)((()=>[(0,r.Wm)((0,o.SU)(d))])),_:1},8,["class","onClick"])):(0,r.kq)("v-if",!0)],46,E),[[i.F8,y.value]])])),_:3},8,["name","onBeforeLeave"]))}});var A=(0,x.Z)(T,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]),U=n(7354),I=n(4620),D=n(5869);let O=1;const P=e=>{const t=!e||(0,a.HD)(e)||(0,r.lA)(e)||(0,a.mf)(e)?{message:e}:e,n={...m,...t};if(n.appendTo){if((0,a.HD)(n.appendTo)){let e=document.querySelector(n.appendTo);(0,U.kK)(e)||((0,I.N)("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),e=document.body),n.appendTo=e}}else n.appendTo=document.body;return n},L=e=>{const t=y.indexOf(e);if(-1===t)return;y.splice(t,1);const{handler:n}=e;n.close()},R=({appendTo:e,...t},n)=>{const o="message_"+O++,s=t.onClose,l=document.createElement("div"),u={...t,id:o,onClose:()=>{null==s||s(),L(h)},onDestroy:()=>{(0,i.sY)(null,l)}},c=(0,r.Wm)(A,u,(0,a.mf)(u.message)||(0,r.lA)(u.message)?{default:(0,a.mf)(u.message)?u.message:()=>u.message}:null);c.appContext=n||N._context,(0,i.sY)(c,l),e.appendChild(l.firstElementChild);const d=c.component,p={close:()=>{d.exposed.visible.value=!1}},h={id:o,vnode:c,vm:d,handler:p,props:c.component.props};return h},N=(e={},t)=>{if(!s.C5)return{close:()=>{}};if((0,U.hj)(D.I.max)&&y.length>=D.I.max)return{close:()=>{}};const n=P(e);if(n.grouping&&y.length){const e=y.find((({vnode:e})=>{var t;return(null==(t=e.props)?void 0:t.message)===n.message}));if(e)return e.props.repeatNum+=1,e.props.type=n.type,e.handler}const r=R(n,t);return y.push(r),r.handler};function F(e){for(const t of y)e&&e!==t.props.type||t.handler.close()}f.forEach((e=>{N[e]=(t={},n)=>{const r=P(t);return N({...r,type:e},n)}})),N.closeAll=F,N._context=null;var z=n(9015);const B=(0,z.oN)(N,"$message")},9619:function(e,t,n){"use strict";n.d(t,{EVENT_CODE:function(){return r}});const r={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"}},7609:function(e,t,n){"use strict";n.d(t,{V:function(){return i},k:function(){return r}});const r=["","default","small","large"],i={large:40,default:32,small:24}},4252:function(e,t,n){"use strict";n.d(t,{Z:function(){return sW}});const r="2.3.6",i=Symbol("INSTALLED_KEY");var o=n(3965);const a=(e=[])=>{const t=(t,n)=>{t[i]||(t[i]=!0,e.forEach((e=>t.use(e))),n&&(0,o.AR)(n,t,!0))};return{version:r,install:t}};var s=n(3396),l=n(4870),u=n(7139),c=n(5119),d=n(5994),p=n(7354);const h="update:modelValue",f="change",m="input",g=(0,d.o8)({zIndex:{type:(0,d.Cq)([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),v={scroll:({scrollTop:e,fixed:t})=>(0,p.hj)(e)&&(0,p.jn)(t),[f]:e=>(0,p.jn)(e)};var y=n(5989),b=n(6734),w=n(529),S=n(4620),x=(n(7658),n(6413));const _=(e,t)=>{if(!x.C5)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=(0,w.C2)(e,n);return["scroll","auto","overlay"].some((e=>r.includes(e)))},C=(e,t)=>{if(!x.C5)return;let n=e;while(n){if([window,document,document.documentElement].includes(n))return window;if(_(n,t))return n;n=n.parentNode}return n};let E;const M=e=>{var t;if(!x.C5)return 0;if(void 0!==E)return E;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const i=document.createElement("div");i.style.width="100%",n.appendChild(i);const o=i.offsetWidth;return null==(t=n.parentNode)||t.removeChild(n),E=r-o,E};function k(e,t){if(!x.C5)return;if(!t)return void(e.scrollTop=0);const n=[];let r=t.offsetParent;while(null!==r&&e!==r&&e.contains(r))n.push(r),r=r.offsetParent;const i=t.offsetTop+n.reduce(((e,t)=>e+t.offsetTop),0),o=i+t.offsetHeight,a=e.scrollTop,s=a+e.clientHeight;is&&(e.scrollTop=o-e.clientHeight)}const T="ElAffix",A=(0,s.aZ)({name:T}),U=(0,s.aZ)({...A,props:g,emits:v,setup(e,{expose:t,emit:n}){const r=e,i=(0,b.s3)("affix"),o=(0,l.XI)(),a=(0,l.XI)(),d=(0,l.XI)(),{height:p}=(0,c.iPe)(),{height:h,width:f,top:m,bottom:g,update:v}=(0,c.rBN)(a,{windowScroll:!1}),y=(0,c.rBN)(o),x=(0,l.iH)(!1),_=(0,l.iH)(0),E=(0,l.iH)(0),M=(0,s.Fl)((()=>({height:x.value?`${h.value}px`:"",width:x.value?`${f.value}px`:""}))),k=(0,s.Fl)((()=>{if(!x.value)return{};const e=r.offset?(0,w.Nn)(r.offset):0;return{height:`${h.value}px`,width:`${f.value}px`,top:"top"===r.position?e:"",bottom:"bottom"===r.position?e:"",transform:E.value?`translateY(${E.value}px)`:"",zIndex:r.zIndex}})),A=()=>{if(d.value)if(_.value=d.value instanceof Window?document.documentElement.scrollTop:d.value.scrollTop||0,"top"===r.position)if(r.target){const e=y.bottom.value-r.offset-h.value;x.value=r.offset>m.value&&y.bottom.value>0,E.value=e<0?e:0}else x.value=r.offset>m.value;else if(r.target){const e=p.value-y.top.value-r.offset-h.value;x.value=p.value-r.offsety.top.value,E.value=e<0?-e:0}else x.value=p.value-r.offset{v(),n("scroll",{scrollTop:_.value,fixed:x.value})};return(0,s.YP)(x,(e=>n("change",e))),(0,s.bv)((()=>{var e;r.target?(o.value=null!=(e=document.querySelector(r.target))?e:void 0,o.value||(0,S._)(T,`Target is not existed: ${r.target}`)):o.value=document.documentElement,d.value=C(a.value,!0),v()})),(0,c.ORN)(d,"scroll",U),(0,s.m0)(A),t({update:A,updateRoot:v}),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{ref_key:"root",ref:a,class:(0,u.C_)((0,l.SU)(i).b()),style:(0,u.j5)((0,l.SU)(M))},[(0,s._)("div",{class:(0,u.C_)({[(0,l.SU)(i).m("fixed")]:x.value}),style:(0,u.j5)((0,l.SU)(k))},[(0,s.WI)(e.$slots,"default")],6)],6))}});var I=(0,y.Z)(U,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]),D=n(9015);const O=(0,D.nz)(I);var P=n(3862),L=n(1015),R=n(984),N=n(2039);const F=["light","dark"],z=(0,d.o8)({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:(0,R.uc)(N.Rp),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:F,default:"light"}}),B={close:e=>e instanceof MouseEvent},H=(0,s.aZ)({name:"ElAlert"}),j=(0,s.aZ)({...H,props:z,emits:B,setup(e,{emit:t}){const n=e,{Close:r}=N.TypeComponents,i=(0,s.Rr)(),o=(0,b.s3)("alert"),a=(0,l.iH)(!0),c=(0,s.Fl)((()=>N.Rp[n.type])),d=(0,s.Fl)((()=>[o.e("icon"),{[o.is("big")]:!!n.description||!!i.default}])),p=(0,s.Fl)((()=>({[o.is("bold")]:n.description||i.default}))),h=e=>{a.value=!1,t("close",e)};return(e,t)=>((0,s.wg)(),(0,s.j4)(P.uT,{name:(0,l.SU)(o).b("fade"),persisted:""},{default:(0,s.w5)((()=>[(0,s.wy)((0,s._)("div",{class:(0,u.C_)([(0,l.SU)(o).b(),(0,l.SU)(o).m(e.type),(0,l.SU)(o).is("center",e.center),(0,l.SU)(o).is(e.effect)]),role:"alert"},[e.showIcon&&(0,l.SU)(c)?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:0,class:(0,u.C_)((0,l.SU)(d))},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)((0,l.SU)(c))))])),_:1},8,["class"])):(0,s.kq)("v-if",!0),(0,s._)("div",{class:(0,u.C_)((0,l.SU)(o).e("content"))},[e.title||e.$slots.title?((0,s.wg)(),(0,s.iD)("span",{key:0,class:(0,u.C_)([(0,l.SU)(o).e("title"),(0,l.SU)(p)])},[(0,s.WI)(e.$slots,"title",{},(()=>[(0,s.Uk)((0,u.zw)(e.title),1)]))],2)):(0,s.kq)("v-if",!0),e.$slots.default||e.description?((0,s.wg)(),(0,s.iD)("p",{key:1,class:(0,u.C_)((0,l.SU)(o).e("description"))},[(0,s.WI)(e.$slots,"default",{},(()=>[(0,s.Uk)((0,u.zw)(e.description),1)]))],2)):(0,s.kq)("v-if",!0),e.closable?((0,s.wg)(),(0,s.iD)(s.HY,{key:2},[e.closeText?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)([(0,l.SU)(o).e("close-btn"),(0,l.SU)(o).is("customed")]),onClick:h},(0,u.zw)(e.closeText),3)):((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:1,class:(0,u.C_)((0,l.SU)(o).e("close-btn")),onClick:h},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(r))])),_:1},8,["class"]))],64)):(0,s.kq)("v-if",!0)],2)],2),[[P.F8,a.value]])])),_:3},8,["name"]))}});var V=(0,y.Z)(j,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const W=(0,D.nz)(V);var $=n(7091),q=n(8345),G=function(){return q.Z.Date.now()},Z=G,Y=/\s/;function K(e){var t=e.length;while(t--&&Y.test(e.charAt(t)));return t}var X=K,J=/^\s+/;function Q(e){return e?e.slice(0,X(e)+1).replace(J,""):e}var ee=Q,te=n(8590),ne=NaN,re=/^[-+]0x[0-9a-f]+$/i,ie=/^0b[01]+$/i,oe=/^0o[0-7]+$/i,ae=parseInt;function se(e){if("number"==typeof e)return e;if((0,te.Z)(e))return ne;if((0,$.Z)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=(0,$.Z)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=ee(e);var n=ie.test(e);return n||oe.test(e)?ae(e.slice(2),n?2:8):re.test(e)?ne:+e}var le=se,ue="Expected a function",ce=Math.max,de=Math.min;function pe(e,t,n){var r,i,o,a,s,l,u=0,c=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError(ue);function h(t){var n=r,o=i;return r=i=void 0,u=t,a=e.apply(o,n),a}function f(e){return u=e,s=setTimeout(v,t),c?h(e):a}function m(e){var n=e-l,r=e-u,i=t-n;return d?de(i,o-r):i}function g(e){var n=e-l,r=e-u;return void 0===l||n>=t||n<0||d&&r>=o}function v(){var e=Z();if(g(e))return y(e);s=setTimeout(v,m(e))}function y(e){return s=void 0,p&&r?h(e):(r=i=void 0,a)}function b(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0}function w(){return void 0===s?a:y(Z())}function S(){var e=Z(),n=g(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return f(l);if(d)return clearTimeout(s),s=setTimeout(v,t),h(l)}return void 0===s&&(s=setTimeout(v,t)),a}return t=le(t)||0,(0,$.Z)(n)&&(c=!!n.leading,d="maxWait"in n,o=d?ce(le(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),S.cancel=b,S.flush=w,S}var he=pe,fe=n(2748),me=n(1727);const ge=()=>x.C5&&/firefox/i.test(window.navigator.userAgent);let ve;const ye=`\n height:0 !important;\n visibility:hidden !important;\n ${ge()?"":"overflow:hidden !important;"}\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n`,be=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function we(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),i=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width")),o=be.map((e=>`${e}:${t.getPropertyValue(e)}`)).join(";");return{contextStyle:o,paddingSize:r,borderSize:i,boxSizing:n}}function Se(e,t=1,n){var r;ve||(ve=document.createElement("textarea"),document.body.appendChild(ve));const{paddingSize:i,borderSize:o,boxSizing:a,contextStyle:s}=we(e);ve.setAttribute("style",`${s};${ye}`),ve.value=e.value||e.placeholder||"";let l=ve.scrollHeight;const u={};"border-box"===a?l+=o:"content-box"===a&&(l-=i),ve.value="";const c=ve.scrollHeight-i;if((0,p.hj)(t)){let e=c*t;"border-box"===a&&(e=e+i+o),l=Math.max(e,l),u.minHeight=`${e}px`}if((0,p.hj)(n)){let e=c*n;"border-box"===a&&(e=e+i+o),l=Math.min(e,l)}return u.height=`${l}px`,null==(r=ve.parentNode)||r.removeChild(ve),ve=void 0,u}var xe=n(4689),_e=n(3071);const Ce=(0,d.o8)({id:{type:String,default:void 0},size:xe.Pp,disabled:Boolean,modelValue:{type:(0,d.Cq)([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:(0,d.Cq)([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:N.AA},prefixIcon:{type:N.AA},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:(0,d.Cq)([Object,Array,String]),default:()=>(0,_e.N)({})}}),Ee={[h]:e=>(0,u.HD)(e),input:e=>(0,u.HD)(e),change:e=>(0,u.HD)(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent};var Me=n(8149);const ke=["class","style"],Te=/^on[A-Z]/,Ae=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=(0,s.Fl)((()=>((null==n?void 0:n.value)||[]).concat(ke))),i=(0,s.FN)();return i?(0,s.Fl)((()=>{var e;return(0,Me.Z)(Object.entries(null==(e=i.proxy)?void 0:e.$attrs).filter((([e])=>!r.value.includes(e)&&!(t&&Te.test(e)))))})):((0,S.N)("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),(0,s.Fl)((()=>({}))))},Ue=Symbol("formContextKey"),Ie=Symbol("formItemContextKey"),De={prefix:Math.floor(1e4*Math.random()),current:0},Oe=Symbol("elIdInjection"),Pe=()=>(0,s.FN)()?(0,s.f3)(Oe,De):De,Le=e=>{const t=Pe();x.C5||t!==De||(0,S.N)("IdInjection","Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed\nusage: app.provide(ID_INJECTION_KEY, {\n prefix: number,\n current: number,\n})");const n=(0,b.u_)(),r=(0,s.Fl)((()=>(0,l.SU)(e)||`${n.value}-id-${t.prefix}-${t.current++}`));return r},Re=()=>{const e=(0,s.f3)(Ue,void 0),t=(0,s.f3)(Ie,void 0);return{form:e,formItem:t}},Ne=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=(0,l.iH)(!1)),r||(r=(0,l.iH)(!1));const i=(0,l.iH)();let o;const a=(0,s.Fl)((()=>{var n;return!!(!e.label&&t&&t.inputIds&&(null==(n=t.inputIds)?void 0:n.length)<=1)}));return(0,s.bv)((()=>{o=(0,s.YP)([(0,l.Vh)(e,"id"),n],(([e,n])=>{const o=null!=e?e:n?void 0:Le().value;o!==i.value&&((null==t?void 0:t.removeInputId)&&(i.value&&t.removeInputId(i.value),(null==r?void 0:r.value)||n||!o||t.addInputId(o)),i.value=o)}),{immediate:!0})})),(0,s.Ah)((()=>{o&&o(),(null==t?void 0:t.removeInputId)&&i.value&&t.removeInputId(i.value)})),{isLabeledByFormItem:a,inputId:i}},Fe=e=>{const t=(0,s.FN)();return(0,s.Fl)((()=>{var n,r;return null==(r=null==(n=null==t?void 0:t.proxy)?void 0:n.$props)?void 0:r[e]}))},ze=(e,t={})=>{const n=(0,l.iH)(void 0),r=t.prop?n:Fe("size"),i=t.global?n:(0,xe.fl)(),o=t.form?{size:void 0}:(0,s.f3)(Ue,void 0),a=t.formItem?{size:void 0}:(0,s.f3)(Ie,void 0);return(0,s.Fl)((()=>r.value||(0,l.SU)(e)||(null==a?void 0:a.size)||(null==o?void 0:o.size)||i.value||""))},Be=e=>{const t=Fe("disabled"),n=(0,s.f3)(Ue,void 0);return(0,s.Fl)((()=>t.value||(0,l.SU)(e)||(null==n?void 0:n.disabled)||!1))};function He(e){const t=(0,l.iH)();function n(){if(void 0==e.value)return;const{selectionStart:n,selectionEnd:r,value:i}=e.value;if(null==n||null==r)return;const o=i.slice(0,Math.max(0,n)),a=i.slice(Math.max(0,r));t.value={selectionStart:n,selectionEnd:r,value:i,beforeTxt:o,afterTxt:a}}function r(){if(void 0==e.value||void 0==t.value)return;const{value:n}=e.value,{beforeTxt:r,afterTxt:i,selectionStart:o}=t.value;if(void 0==r||void 0==i||void 0==o)return;let a=n.length;if(n.endsWith(i))a=n.length-i.length;else if(n.startsWith(r))a=r.length;else{const e=r[o-1],t=n.indexOf(e,o-1);-1!==t&&(a=t+1)}e.value.setSelectionRange(a,a)}return[n,r]}const je=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),Ve=["role"],We=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],$e=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],qe=(0,s.aZ)({name:"ElInput",inheritAttrs:!1}),Ge=(0,s.aZ)({...qe,props:Ce,emits:Ee,setup(e,{expose:t,emit:n}){const r=e,i=(0,s.l1)(),o=(0,s.Rr)(),a=(0,s.Fl)((()=>{const e={};return"combobox"===r.containerRole&&(e["aria-haspopup"]=i["aria-haspopup"],e["aria-owns"]=i["aria-owns"],e["aria-expanded"]=i["aria-expanded"]),e})),d=(0,s.Fl)((()=>["textarea"===r.type?C.b():_.b(),_.m(y.value),_.is("disabled",w.value),_.is("exceed",Z.value),{[_.b("group")]:o.prepend||o.append,[_.bm("group","append")]:o.append,[_.bm("group","prepend")]:o.prepend,[_.m("prefix")]:o.prefix||r.prefixIcon,[_.m("suffix")]:o.suffix||r.suffixIcon||r.clearable||r.showPassword,[_.bm("suffix","password-clear")]:W.value&&$.value},i.class])),p=(0,s.Fl)((()=>[_.e("wrapper"),_.is("focus",k.value)])),f=Ae({excludeKeys:(0,s.Fl)((()=>Object.keys(a.value)))}),{form:m,formItem:g}=Re(),{inputId:v}=Ne(r,{formItemContext:g}),y=ze(),w=Be(),_=(0,b.s3)("input"),C=(0,b.s3)("textarea"),E=(0,l.XI)(),M=(0,l.XI)(),k=(0,l.iH)(!1),T=(0,l.iH)(!1),A=(0,l.iH)(!1),U=(0,l.iH)(!1),I=(0,l.iH)(),D=(0,l.XI)(r.inputStyle),O=(0,s.Fl)((()=>E.value||M.value)),R=(0,s.Fl)((()=>{var e;return null!=(e=null==m?void 0:m.statusIcon)&&e})),F=(0,s.Fl)((()=>(null==g?void 0:g.validateState)||"")),z=(0,s.Fl)((()=>F.value&&N.rU[F.value])),B=(0,s.Fl)((()=>U.value?fe.G7x:fe.caK)),H=(0,s.Fl)((()=>[i.style,r.inputStyle])),j=(0,s.Fl)((()=>[r.inputStyle,D.value,{resize:r.resize}])),V=(0,s.Fl)((()=>(0,me.Z)(r.modelValue)?"":String(r.modelValue))),W=(0,s.Fl)((()=>r.clearable&&!w.value&&!r.readonly&&!!V.value&&(k.value||T.value))),$=(0,s.Fl)((()=>r.showPassword&&!w.value&&!r.readonly&&!!V.value&&(!!V.value||k.value))),q=(0,s.Fl)((()=>r.showWordLimit&&!!f.value.maxlength&&("text"===r.type||"textarea"===r.type)&&!w.value&&!r.readonly&&!r.showPassword)),G=(0,s.Fl)((()=>V.value.length)),Z=(0,s.Fl)((()=>!!q.value&&G.value>Number(f.value.maxlength))),Y=(0,s.Fl)((()=>!!o.suffix||!!r.suffixIcon||W.value||r.showPassword||q.value||!!F.value&&R.value)),[K,X]=He(E);(0,c.yU7)(M,(e=>{if(ee(),!q.value||"both"!==r.resize)return;const t=e[0],{width:n}=t.contentRect;I.value={right:`calc(100% - ${n+15+6}px)`}}));const J=()=>{const{type:e,autosize:t}=r;if(x.C5&&"textarea"===e&&M.value)if(t){const e=(0,u.Kn)(t)?t.minRows:void 0,n=(0,u.Kn)(t)?t.maxRows:void 0,r=Se(M.value,e,n);D.value={overflowY:"hidden",...r},(0,s.Y3)((()=>{M.value.offsetHeight,D.value=r}))}else D.value={minHeight:Se(M.value).minHeight}},Q=e=>{let t=!1;return()=>{var n;if(t||!r.autosize)return;const i=null===(null==(n=M.value)?void 0:n.offsetParent);i||(e(),t=!0)}},ee=Q(J),te=()=>{const e=O.value;e&&e.value!==V.value&&(e.value=V.value)},ne=async e=>{K();let{value:t}=e.target;r.formatter&&(t=r.parser?r.parser(t):t,t=r.formatter(t)),A.value||(t!==V.value?(n(h,t),n("input",t),await(0,s.Y3)(),te(),X()):te())},re=e=>{n("change",e.target.value)},ie=e=>{n("compositionstart",e),A.value=!0},oe=e=>{var t;n("compositionupdate",e);const r=null==(t=e.target)?void 0:t.value,i=r[r.length-1]||"";A.value=!je(i)},ae=e=>{n("compositionend",e),A.value&&(A.value=!1,ne(e))},se=()=>{U.value=!U.value,le()},le=async()=>{var e;await(0,s.Y3)(),null==(e=O.value)||e.focus()},ue=()=>{var e;return null==(e=O.value)?void 0:e.blur()},ce=e=>{k.value=!0,n("focus",e)},de=e=>{var t;k.value=!1,n("blur",e),r.validateEvent&&(null==(t=null==g?void 0:g.validate)||t.call(g,"blur").catch((e=>(0,S.N)(e))))},pe=e=>{T.value=!1,n("mouseleave",e)},he=e=>{T.value=!0,n("mouseenter",e)},ge=e=>{n("keydown",e)},ve=()=>{var e;null==(e=O.value)||e.select()},ye=()=>{n(h,""),n("change",""),n("clear"),n("input","")};return(0,s.YP)((()=>r.modelValue),(()=>{var e;(0,s.Y3)((()=>J())),r.validateEvent&&(null==(e=null==g?void 0:g.validate)||e.call(g,"change").catch((e=>(0,S.N)(e))))})),(0,s.YP)(V,(()=>te())),(0,s.YP)((()=>r.type),(async()=>{await(0,s.Y3)(),te(),J()})),(0,s.bv)((()=>{!r.formatter&&r.parser&&(0,S.N)("ElInput","If you set the parser, you also need to set the formatter."),te(),(0,s.Y3)(J)})),t({input:E,textarea:M,ref:O,textareaStyle:j,autosize:(0,l.Vh)(r,"autosize"),focus:le,blur:ue,select:ve,clear:ye,resizeTextarea:J}),(e,t)=>(0,s.wy)(((0,s.wg)(),(0,s.iD)("div",(0,s.dG)((0,l.SU)(a),{class:(0,l.SU)(d),style:(0,l.SU)(H),role:e.containerRole,onMouseenter:he,onMouseleave:pe}),[(0,s.kq)(" input "),"textarea"!==e.type?((0,s.wg)(),(0,s.iD)(s.HY,{key:0},[(0,s.kq)(" prepend slot "),e.$slots.prepend?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)((0,l.SU)(_).be("group","prepend"))},[(0,s.WI)(e.$slots,"prepend")],2)):(0,s.kq)("v-if",!0),(0,s._)("div",{class:(0,u.C_)((0,l.SU)(p))},[(0,s.kq)(" prefix slot "),e.$slots.prefix||e.prefixIcon?((0,s.wg)(),(0,s.iD)("span",{key:0,class:(0,u.C_)((0,l.SU)(_).e("prefix"))},[(0,s._)("span",{class:(0,u.C_)((0,l.SU)(_).e("prefix-inner")),onClick:le},[(0,s.WI)(e.$slots,"prefix"),e.prefixIcon?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:0,class:(0,u.C_)((0,l.SU)(_).e("icon"))},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.prefixIcon)))])),_:1},8,["class"])):(0,s.kq)("v-if",!0)],2)],2)):(0,s.kq)("v-if",!0),(0,s._)("input",(0,s.dG)({id:(0,l.SU)(v),ref_key:"input",ref:E,class:(0,l.SU)(_).e("inner")},(0,l.SU)(f),{type:e.showPassword?U.value?"text":"password":e.type,disabled:(0,l.SU)(w),formatter:e.formatter,parser:e.parser,readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.label,placeholder:e.placeholder,style:e.inputStyle,form:r.form,onCompositionstart:ie,onCompositionupdate:oe,onCompositionend:ae,onInput:ne,onFocus:ce,onBlur:de,onChange:re,onKeydown:ge}),null,16,We),(0,s.kq)(" suffix slot "),(0,l.SU)(Y)?((0,s.wg)(),(0,s.iD)("span",{key:1,class:(0,u.C_)((0,l.SU)(_).e("suffix"))},[(0,s._)("span",{class:(0,u.C_)((0,l.SU)(_).e("suffix-inner")),onClick:le},[(0,l.SU)(W)&&(0,l.SU)($)&&(0,l.SU)(q)?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)(s.HY,{key:0},[(0,s.WI)(e.$slots,"suffix"),e.suffixIcon?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:0,class:(0,u.C_)((0,l.SU)(_).e("icon"))},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.suffixIcon)))])),_:1},8,["class"])):(0,s.kq)("v-if",!0)],64)),(0,l.SU)(W)?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:1,class:(0,u.C_)([(0,l.SU)(_).e("icon"),(0,l.SU)(_).e("clear")]),onMousedown:(0,P.iM)((0,l.SU)(u.dG),["prevent"]),onClick:ye},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.K41))])),_:1},8,["class","onMousedown"])):(0,s.kq)("v-if",!0),(0,l.SU)($)?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:2,class:(0,u.C_)([(0,l.SU)(_).e("icon"),(0,l.SU)(_).e("password")]),onClick:se},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)((0,l.SU)(B))))])),_:1},8,["class"])):(0,s.kq)("v-if",!0),(0,l.SU)(q)?((0,s.wg)(),(0,s.iD)("span",{key:3,class:(0,u.C_)((0,l.SU)(_).e("count"))},[(0,s._)("span",{class:(0,u.C_)((0,l.SU)(_).e("count-inner"))},(0,u.zw)((0,l.SU)(G))+" / "+(0,u.zw)((0,l.SU)(f).maxlength),3)],2)):(0,s.kq)("v-if",!0),(0,l.SU)(F)&&(0,l.SU)(z)&&(0,l.SU)(R)?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:4,class:(0,u.C_)([(0,l.SU)(_).e("icon"),(0,l.SU)(_).e("validateIcon"),(0,l.SU)(_).is("loading","validating"===(0,l.SU)(F))])},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)((0,l.SU)(z))))])),_:1},8,["class"])):(0,s.kq)("v-if",!0)],2)],2)):(0,s.kq)("v-if",!0)],2),(0,s.kq)(" append slot "),e.$slots.append?((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,u.C_)((0,l.SU)(_).be("group","append"))},[(0,s.WI)(e.$slots,"append")],2)):(0,s.kq)("v-if",!0)],64)):((0,s.wg)(),(0,s.iD)(s.HY,{key:1},[(0,s.kq)(" textarea "),(0,s._)("textarea",(0,s.dG)({id:(0,l.SU)(v),ref_key:"textarea",ref:M,class:(0,l.SU)(C).e("inner")},(0,l.SU)(f),{tabindex:e.tabindex,disabled:(0,l.SU)(w),readonly:e.readonly,autocomplete:e.autocomplete,style:(0,l.SU)(j),"aria-label":e.label,placeholder:e.placeholder,form:r.form,onCompositionstart:ie,onCompositionupdate:oe,onCompositionend:ae,onInput:ne,onFocus:ce,onBlur:de,onChange:re,onKeydown:ge}),null,16,$e),(0,l.SU)(q)?((0,s.wg)(),(0,s.iD)("span",{key:0,style:(0,u.j5)(I.value),class:(0,u.C_)((0,l.SU)(_).e("count"))},(0,u.zw)((0,l.SU)(G))+" / "+(0,u.zw)((0,l.SU)(f).maxlength),7)):(0,s.kq)("v-if",!0)],64))],16,Ve)),[[P.F8,"hidden"!==e.type]])}});var Ze=(0,y.Z)(Ge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const Ye=(0,D.nz)(Ze),Ke=4,Xe={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},Je=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),Qe=Symbol("scrollbarContextKey"),et=(0,d.o8)({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),tt="Thumb",nt=(0,s.aZ)({__name:"thumb",props:et,setup(e){const t=e,n=(0,s.f3)(Qe),r=(0,b.s3)("scrollbar");n||(0,S._)(tt,"can not inject scrollbar context");const i=(0,l.iH)(),o=(0,l.iH)(),a=(0,l.iH)({}),d=(0,l.iH)(!1);let p=!1,h=!1,f=x.C5?document.onselectstart:null;const m=(0,s.Fl)((()=>Xe[t.vertical?"vertical":"horizontal"])),g=(0,s.Fl)((()=>Je({size:t.size,move:t.move,bar:m.value}))),v=(0,s.Fl)((()=>i.value[m.value.offset]**2/n.wrapElement[m.value.scrollSize]/t.ratio/o.value[m.value.offset])),y=e=>{var t;if(e.stopPropagation(),e.ctrlKey||[1,2].includes(e.button))return;null==(t=window.getSelection())||t.removeAllRanges(),_(e);const n=e.currentTarget;n&&(a.value[m.value.axis]=n[m.value.offset]-(e[m.value.client]-n.getBoundingClientRect()[m.value.direction]))},w=e=>{if(!o.value||!i.value||!n.wrapElement)return;const t=Math.abs(e.target.getBoundingClientRect()[m.value.direction]-e[m.value.client]),r=o.value[m.value.offset]/2,a=100*(t-r)*v.value/i.value[m.value.offset];n.wrapElement[m.value.scroll]=a*n.wrapElement[m.value.scrollSize]/100},_=e=>{e.stopImmediatePropagation(),p=!0,document.addEventListener("mousemove",C),document.addEventListener("mouseup",E),f=document.onselectstart,document.onselectstart=()=>!1},C=e=>{if(!i.value||!o.value)return;if(!1===p)return;const t=a.value[m.value.axis];if(!t)return;const r=-1*(i.value.getBoundingClientRect()[m.value.direction]-e[m.value.client]),s=o.value[m.value.offset]-t,l=100*(r-s)*v.value/i.value[m.value.offset];n.wrapElement[m.value.scroll]=l*n.wrapElement[m.value.scrollSize]/100},E=()=>{p=!1,a.value[m.value.axis]=0,document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",E),T(),h&&(d.value=!1)},M=()=>{h=!1,d.value=!!t.size},k=()=>{h=!0,d.value=p};(0,s.Jd)((()=>{T(),document.removeEventListener("mouseup",E)}));const T=()=>{document.onselectstart!==f&&(document.onselectstart=f)};return(0,c.ORN)((0,l.Vh)(n,"scrollbarElement"),"mousemove",M),(0,c.ORN)((0,l.Vh)(n,"scrollbarElement"),"mouseleave",k),(e,t)=>((0,s.wg)(),(0,s.j4)(P.uT,{name:(0,l.SU)(r).b("fade"),persisted:""},{default:(0,s.w5)((()=>[(0,s.wy)((0,s._)("div",{ref_key:"instance",ref:i,class:(0,u.C_)([(0,l.SU)(r).e("bar"),(0,l.SU)(r).is((0,l.SU)(m).key)]),onMousedown:w},[(0,s._)("div",{ref_key:"thumb",ref:o,class:(0,u.C_)((0,l.SU)(r).e("thumb")),style:(0,u.j5)((0,l.SU)(g)),onMousedown:y},null,38)],34),[[P.F8,e.always||d.value]])])),_:1},8,["name"]))}});var rt=(0,y.Z)(nt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const it=(0,d.o8)({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),ot=(0,s.aZ)({__name:"bar",props:it,setup(e,{expose:t}){const n=e,r=(0,l.iH)(0),i=(0,l.iH)(0),o=e=>{if(e){const t=e.offsetHeight-Ke,o=e.offsetWidth-Ke;i.value=100*e.scrollTop/t*n.ratioY,r.value=100*e.scrollLeft/o*n.ratioX}};return t({handleScroll:o}),(e,t)=>((0,s.wg)(),(0,s.iD)(s.HY,null,[(0,s.Wm)(rt,{move:r.value,ratio:e.ratioX,size:e.width,always:e.always},null,8,["move","ratio","size","always"]),(0,s.Wm)(rt,{move:i.value,ratio:e.ratioY,size:e.height,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64))}});var at=(0,y.Z)(ot,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const st=(0,d.o8)({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:(0,d.Cq)([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20}}),lt={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(p.hj)},ut="ElScrollbar",ct=(0,s.aZ)({name:ut}),dt=(0,s.aZ)({...ct,props:st,emits:lt,setup(e,{expose:t,emit:n}){const r=e,i=(0,b.s3)("scrollbar");let o,a;const d=(0,l.iH)(),h=(0,l.iH)(),f=(0,l.iH)(),m=(0,l.iH)("0"),g=(0,l.iH)("0"),v=(0,l.iH)(),y=(0,l.iH)(1),x=(0,l.iH)(1),_=(0,s.Fl)((()=>{const e={};return r.height&&(e.height=(0,w.Nn)(r.height)),r.maxHeight&&(e.maxHeight=(0,w.Nn)(r.maxHeight)),[r.wrapStyle,e]})),C=(0,s.Fl)((()=>[r.wrapClass,i.e("wrap"),{[i.em("wrap","hidden-default")]:!r.native}])),E=(0,s.Fl)((()=>[i.e("view"),r.viewClass])),M=()=>{var e;h.value&&(null==(e=v.value)||e.handleScroll(h.value),n("scroll",{scrollTop:h.value.scrollTop,scrollLeft:h.value.scrollLeft}))};function k(e,t){(0,u.Kn)(e)?h.value.scrollTo(e):(0,p.hj)(e)&&(0,p.hj)(t)&&h.value.scrollTo(e,t)}const T=e=>{(0,p.hj)(e)?h.value.scrollTop=e:(0,S.N)(ut,"value must be a number")},A=e=>{(0,p.hj)(e)?h.value.scrollLeft=e:(0,S.N)(ut,"value must be a number")},U=()=>{if(!h.value)return;const e=h.value.offsetHeight-Ke,t=h.value.offsetWidth-Ke,n=e**2/h.value.scrollHeight,i=t**2/h.value.scrollWidth,o=Math.max(n,r.minSize),a=Math.max(i,r.minSize);y.value=n/(e-n)/(o/(e-o)),x.value=i/(t-i)/(a/(t-a)),g.value=o+Ker.noresize),(e=>{e?(null==o||o(),null==a||a()):(({stop:o}=(0,c.yU7)(f,U)),a=(0,c.ORN)("resize",U))}),{immediate:!0}),(0,s.YP)((()=>[r.maxHeight,r.height]),(()=>{r.native||(0,s.Y3)((()=>{var e;U(),h.value&&(null==(e=v.value)||e.handleScroll(h.value))}))})),(0,s.JJ)(Qe,(0,l.qj)({scrollbarElement:d,wrapElement:h})),(0,s.bv)((()=>{r.native||(0,s.Y3)((()=>{U()}))})),(0,s.ic)((()=>U())),t({wrapRef:h,update:U,scrollTo:k,setScrollTop:T,setScrollLeft:A,handleScroll:M}),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{ref_key:"scrollbarRef",ref:d,class:(0,u.C_)((0,l.SU)(i).b())},[(0,s._)("div",{ref_key:"wrapRef",ref:h,class:(0,u.C_)((0,l.SU)(C)),style:(0,u.j5)((0,l.SU)(_)),onScroll:M},[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.tag),{ref_key:"resizeRef",ref:f,class:(0,u.C_)((0,l.SU)(E)),style:(0,u.j5)(e.viewStyle)},{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default")])),_:3},8,["class","style"]))],38),e.native?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.j4)(at,{key:0,ref_key:"barRef",ref:v,height:g.value,width:m.value,always:e.always,"ratio-x":x.value,"ratio-y":y.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var pt=(0,y.Z)(dt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const ht=(0,D.nz)(pt),ft=Symbol("popper"),mt=Symbol("popperContent"),gt=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],vt=(0,d.o8)({role:{type:String,values:gt,default:"tooltip"}}),yt=(0,s.aZ)({name:"ElPopper",inheritAttrs:!1}),bt=(0,s.aZ)({...yt,props:vt,setup(e,{expose:t}){const n=e,r=(0,l.iH)(),i=(0,l.iH)(),o=(0,l.iH)(),a=(0,l.iH)(),u=(0,s.Fl)((()=>n.role)),c={triggerRef:r,popperInstanceRef:i,contentRef:o,referenceRef:a,role:u};return t(c),(0,s.JJ)(ft,c),(e,t)=>(0,s.WI)(e.$slots,"default")}});var wt=(0,y.Z)(bt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const St=(0,D.nz)(wt),xt=Symbol("elTooltip");function _t(){let e;const t=(t,r)=>{n(),e=window.setTimeout(t,r)},n=()=>window.clearTimeout(e);return(0,x.IY)((()=>n())),{registerTimeout:t,cancelTimeout:n}}const Ct=(0,d.o8)({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),Et=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:i})=>{const{registerTimeout:o}=_t(),{registerTimeout:a,cancelTimeout:s}=_t(),u=t=>{o((()=>{r(t);const e=(0,l.SU)(n);(0,p.hj)(e)&&e>0&&a((()=>{i(t)}),e)}),(0,l.SU)(e))},c=e=>{s(),o((()=>{i(e)}),(0,l.SU)(t))};return{onOpen:u,onClose:c}};var Mt="top",kt="bottom",Tt="right",At="left",Ut="auto",It=[Mt,kt,Tt,At],Dt="start",Ot="end",Pt="clippingParents",Lt="viewport",Rt="popper",Nt="reference",Ft=It.reduce((function(e,t){return e.concat([t+"-"+Dt,t+"-"+Ot])}),[]),zt=[].concat(It,[Ut]).reduce((function(e,t){return e.concat([t,t+"-"+Dt,t+"-"+Ot])}),[]),Bt="beforeRead",Ht="read",jt="afterRead",Vt="beforeMain",Wt="main",$t="afterMain",qt="beforeWrite",Gt="write",Zt="afterWrite",Yt=[Bt,Ht,jt,Vt,Wt,$t,qt,Gt,Zt];function Kt(e){return e?(e.nodeName||"").toLowerCase():null}function Xt(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Jt(e){var t=Xt(e).Element;return e instanceof t||e instanceof Element}function Qt(e){var t=Xt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function en(e){if("undefined"==typeof ShadowRoot)return!1;var t=Xt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function tn(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!Qt(i)||!Kt(i)||(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))}function nn(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]),a=o.reduce((function(e,t){return e[t]="",e}),{});!Qt(r)||!Kt(r)||(Object.assign(r.style,a),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}}var rn={name:"applyStyles",enabled:!0,phase:"write",fn:tn,effect:nn,requires:["computeStyles"]};function on(e){return e.split("-")[0]}var an=Math.max,sn=Math.min,ln=Math.round;function un(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if(Qt(e)&&t){var o=e.offsetHeight,a=e.offsetWidth;a>0&&(r=ln(n.width)/a||1),o>0&&(i=ln(n.height)/o||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function cn(e){var t=un(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function dn(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&en(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function pn(e){return Xt(e).getComputedStyle(e)}function hn(e){return["table","td","th"].indexOf(Kt(e))>=0}function fn(e){return((Jt(e)?e.ownerDocument:e.document)||window.document).documentElement}function mn(e){return"html"===Kt(e)?e:e.assignedSlot||e.parentNode||(en(e)?e.host:null)||fn(e)}function gn(e){return Qt(e)&&"fixed"!==pn(e).position?e.offsetParent:null}function vn(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox"),n=-1!==navigator.userAgent.indexOf("Trident");if(n&&Qt(e)){var r=pn(e);if("fixed"===r.position)return null}var i=mn(e);for(en(i)&&(i=i.host);Qt(i)&&["html","body"].indexOf(Kt(i))<0;){var o=pn(i);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return i;i=i.parentNode}return null}function yn(e){for(var t=Xt(e),n=gn(e);n&&hn(n)&&"static"===pn(n).position;)n=gn(n);return n&&("html"===Kt(n)||"body"===Kt(n)&&"static"===pn(n).position)?t:n||vn(e)||t}function bn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function wn(e,t,n){return an(e,sn(t,n))}function Sn(e,t,n){var r=wn(e,t,n);return r>n?n:r}function xn(){return{top:0,right:0,bottom:0,left:0}}function _n(e){return Object.assign({},xn(),e)}function Cn(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var En=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,_n("number"!=typeof e?e:Cn(e,It))};function Mn(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=on(n.placement),l=bn(s),u=[At,Tt].indexOf(s)>=0,c=u?"height":"width";if(o&&a){var d=En(i.padding,n),p=cn(o),h="y"===l?Mt:At,f="y"===l?kt:Tt,m=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],g=a[l]-n.rects.reference[l],v=yn(o),y=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,b=m/2-g/2,w=d[h],S=y-p[c]-d[f],x=y/2-p[c]/2+b,_=wn(w,x,S),C=l;n.modifiersData[r]=(t={},t[C]=_,t.centerOffset=_-x,t)}}function kn(e){var t=e.state,n=e.options,r=n.element,i=void 0===r?"[data-popper-arrow]":r;null!=i&&("string"==typeof i&&(i=t.elements.popper.querySelector(i),!i)||!dn(t.elements.popper,i)||(t.elements.arrow=i))}var Tn={name:"arrow",enabled:!0,phase:"main",fn:Mn,effect:kn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function An(e){return e.split("-")[1]}var Un={top:"auto",right:"auto",bottom:"auto",left:"auto"};function In(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:ln(t*i)/i||0,y:ln(n*i)/i||0}}function Dn(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=a.x,h=void 0===p?0:p,f=a.y,m=void 0===f?0:f,g="function"==typeof c?c({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var v=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=At,w=Mt,S=window;if(u){var x=yn(n),_="clientHeight",C="clientWidth";if(x===Xt(n)&&(x=fn(n),"static"!==pn(x).position&&"absolute"===s&&(_="scrollHeight",C="scrollWidth")),i===Mt||(i===At||i===Tt)&&o===Ot){w=kt;var E=d&&x===S&&S.visualViewport?S.visualViewport.height:x[_];m-=E-r.height,m*=l?1:-1}if(i===At||(i===Mt||i===kt)&&o===Ot){b=Tt;var M=d&&x===S&&S.visualViewport?S.visualViewport.width:x[C];h-=M-r.width,h*=l?1:-1}}var k,T=Object.assign({position:s},u&&Un),A=!0===c?In({x:h,y:m}):{x:h,y:m};return h=A.x,m=A.y,l?Object.assign({},T,(k={},k[w]=y?"0":"",k[b]=v?"0":"",k.transform=(S.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",k)):Object.assign({},T,(t={},t[w]=y?m+"px":"",t[b]=v?h+"px":"",t.transform="",t))}function On(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,u={placement:on(t.placement),variation:An(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Dn(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Dn(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Pn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:On,data:{}},Ln={passive:!0};function Rn(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,l=Xt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach((function(e){e.addEventListener("scroll",n.update,Ln)})),s&&l.addEventListener("resize",n.update,Ln),function(){o&&u.forEach((function(e){e.removeEventListener("scroll",n.update,Ln)})),s&&l.removeEventListener("resize",n.update,Ln)}}var Nn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Rn,data:{}},Fn={left:"right",right:"left",bottom:"top",top:"bottom"};function zn(e){return e.replace(/left|right|bottom|top/g,(function(e){return Fn[e]}))}var Bn={start:"end",end:"start"};function Hn(e){return e.replace(/start|end/g,(function(e){return Bn[e]}))}function jn(e){var t=Xt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Vn(e){return un(fn(e)).left+jn(e).scrollLeft}function Wn(e){var t=Xt(e),n=fn(e),r=t.visualViewport,i=n.clientWidth,o=n.clientHeight,a=0,s=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:i,height:o,x:a+Vn(e),y:s}}function $n(e){var t,n=fn(e),r=jn(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=an(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=an(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Vn(e),l=-r.scrollTop;return"rtl"===pn(i||n).direction&&(s+=an(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function qn(e){var t=pn(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Gn(e){return["html","body","#document"].indexOf(Kt(e))>=0?e.ownerDocument.body:Qt(e)&&qn(e)?e:Gn(mn(e))}function Zn(e,t){var n;void 0===t&&(t=[]);var r=Gn(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=Xt(r),a=i?[o].concat(o.visualViewport||[],qn(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Zn(mn(a)))}function Yn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Kn(e){var t=un(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Xn(e,t){return t===Lt?Yn(Wn(e)):Jt(t)?Kn(t):Yn($n(fn(e)))}function Jn(e){var t=Zn(mn(e)),n=["absolute","fixed"].indexOf(pn(e).position)>=0,r=n&&Qt(e)?yn(e):e;return Jt(r)?t.filter((function(e){return Jt(e)&&dn(e,r)&&"body"!==Kt(e)})):[]}function Qn(e,t,n){var r="clippingParents"===t?Jn(e):[].concat(t),i=[].concat(r,[n]),o=i[0],a=i.reduce((function(t,n){var r=Xn(e,n);return t.top=an(r.top,t.top),t.right=sn(r.right,t.right),t.bottom=sn(r.bottom,t.bottom),t.left=an(r.left,t.left),t}),Xn(e,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function er(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?on(i):null,a=i?An(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case Mt:t={x:s,y:n.y-r.height};break;case kt:t={x:s,y:n.y+n.height};break;case Tt:t={x:n.x+n.width,y:l};break;case At:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=o?bn(o):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case Dt:t[u]=t[u]-(n[c]/2-r[c]/2);break;case Ot:t[u]=t[u]+(n[c]/2-r[c]/2);break}}return t}function tr(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.boundary,a=void 0===o?Pt:o,s=n.rootBoundary,l=void 0===s?Lt:s,u=n.elementContext,c=void 0===u?Rt:u,d=n.altBoundary,p=void 0!==d&&d,h=n.padding,f=void 0===h?0:h,m=_n("number"!=typeof f?f:Cn(f,It)),g=c===Rt?Nt:Rt,v=e.rects.popper,y=e.elements[p?g:c],b=Qn(Jt(y)?y:y.contextElement||fn(e.elements.popper),a,l),w=un(e.elements.reference),S=er({reference:w,element:v,strategy:"absolute",placement:i}),x=Yn(Object.assign({},v,S)),_=c===Rt?x:w,C={top:b.top-_.top+m.top,bottom:_.bottom-b.bottom+m.bottom,left:b.left-_.left+m.left,right:_.right-b.right+m.right},E=e.modifiersData.offset;if(c===Rt&&E){var M=E[i];Object.keys(C).forEach((function(e){var t=[Tt,kt].indexOf(e)>=0?1:-1,n=[Mt,kt].indexOf(e)>=0?"y":"x";C[e]+=M[n]*t}))}return C}function nr(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?zt:l,c=An(r),d=c?s?Ft:Ft.filter((function(e){return An(e)===c})):It,p=d.filter((function(e){return u.indexOf(e)>=0}));0===p.length&&(p=d);var h=p.reduce((function(t,n){return t[n]=tr(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[on(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}function rr(e){if(on(e)===Ut)return[];var t=zn(e);return[Hn(e),t,Hn(t)]}function ir(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,f=void 0===h||h,m=n.allowedAutoPlacements,g=t.options.placement,v=on(g),y=v===g,b=l||(y||!f?[zn(g)]:rr(g)),w=[g].concat(b).reduce((function(e,n){return e.concat(on(n)===Ut?nr(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:f,allowedAutoPlacements:m}):n)}),[]),S=t.rects.reference,x=t.rects.popper,_=new Map,C=!0,E=w[0],M=0;M=0,I=U?"width":"height",D=tr(t,{placement:k,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),O=U?A?Tt:At:A?kt:Mt;S[I]>x[I]&&(O=zn(O));var P=zn(O),L=[];if(o&&L.push(D[T]<=0),s&&L.push(D[O]<=0,D[P]<=0),L.every((function(e){return e}))){E=k,C=!1;break}_.set(k,L)}if(C)for(var R=f?3:1,N=function(e){var t=w.find((function(t){var n=_.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},F=R;F>0;F--){var z=N(F);if("break"===z)break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}}var or={name:"flip",enabled:!0,phase:"main",fn:ir,requiresIfExists:["offset"],data:{_skip:!1}};function ar(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function sr(e){return[Mt,Tt,kt,At].some((function(t){return e[t]>=0}))}function lr(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=tr(t,{elementContext:"reference"}),s=tr(t,{altBoundary:!0}),l=ar(a,r),u=ar(s,i,o),c=sr(l),d=sr(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}var ur={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:lr};function cr(e,t,n){var r=on(e),i=[At,Mt].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[At,Tt].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function dr(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=zt.reduce((function(e,n){return e[n]=cr(n,t.rects,o),e}),{}),s=a[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}var pr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:dr};function hr(e){var t=e.state,n=e.name;t.modifiersData[n]=er({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var fr={name:"popperOffsets",enabled:!0,phase:"read",fn:hr,data:{}};function mr(e){return"x"===e?"y":"x"}function gr(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,h=void 0===p||p,f=n.tetherOffset,m=void 0===f?0:f,g=tr(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),v=on(t.placement),y=An(t.placement),b=!y,w=bn(v),S=mr(w),x=t.modifiersData.popperOffsets,_=t.rects.reference,C=t.rects.popper,E="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,M="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(x){if(o){var A,U="y"===w?Mt:At,I="y"===w?kt:Tt,D="y"===w?"height":"width",O=x[w],P=O+g[U],L=O-g[I],R=h?-C[D]/2:0,N=y===Dt?_[D]:C[D],F=y===Dt?-C[D]:-_[D],z=t.elements.arrow,B=h&&z?cn(z):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:xn(),j=H[U],V=H[I],W=wn(0,_[D],B[D]),$=b?_[D]/2-R-W-j-M.mainAxis:N-W-j-M.mainAxis,q=b?-_[D]/2+R+W+V+M.mainAxis:F+W+V+M.mainAxis,G=t.elements.arrow&&yn(t.elements.arrow),Z=G?"y"===w?G.clientTop||0:G.clientLeft||0:0,Y=null!=(A=null==k?void 0:k[w])?A:0,K=O+$-Y-Z,X=O+q-Y,J=wn(h?sn(P,K):P,O,h?an(L,X):L);x[w]=J,T[w]=J-O}if(s){var Q,ee="x"===w?Mt:At,te="x"===w?kt:Tt,ne=x[S],re="y"===S?"height":"width",ie=ne+g[ee],oe=ne-g[te],ae=-1!==[Mt,At].indexOf(v),se=null!=(Q=null==k?void 0:k[S])?Q:0,le=ae?ie:ne-_[re]-C[re]-se+M.altAxis,ue=ae?ne+_[re]+C[re]-se-M.altAxis:oe,ce=h&&ae?Sn(le,ne,ue):wn(h?le:ie,ne,h?ue:oe);x[S]=ce,T[S]=ce-ne}t.modifiersData[r]=T}}var vr={name:"preventOverflow",enabled:!0,phase:"main",fn:gr,requiresIfExists:["offset"]};function yr(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function br(e){return e!==Xt(e)&&Qt(e)?yr(e):jn(e)}function wr(e){var t=e.getBoundingClientRect(),n=ln(t.width)/e.offsetWidth||1,r=ln(t.height)/e.offsetHeight||1;return 1!==n||1!==r}function Sr(e,t,n){void 0===n&&(n=!1);var r=Qt(t),i=Qt(t)&&wr(t),o=fn(t),a=un(e,i),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Kt(t)||qn(o))&&(s=br(t)),Qt(t)?(l=un(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Vn(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function xr(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name);var o=[].concat(e.requires||[],e.requiresIfExists||[]);o.forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function _r(e){var t=xr(e);return Yt.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}function Cr(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}function Er(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}var Mr={placement:"bottom",modifiers:[],strategy:"absolute"};function kr(){for(var e=arguments.length,t=new Array(e),n=0;n({})},strategy:{type:String,values:Dr,default:"absolute"}}),Pr=(0,d.o8)({...Or,id:String,style:{type:(0,d.Cq)([String,Array,Object])},className:{type:(0,d.Cq)([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:(0,d.Cq)([String,Array,Object])},popperStyle:{type:(0,d.Cq)([String,Array,Object])},referenceEl:{type:(0,d.Cq)(Object)},triggerTargetEl:{type:(0,d.Cq)(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),Lr={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Rr=(0,d.o8)({...Ct,...Pr,appendTo:{type:(0,d.Cq)([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:(0,d.Cq)(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),Nr=(0,d.o8)({virtualRef:{type:(0,d.Cq)(Object)},virtualTriggering:Boolean,onMouseenter:{type:(0,d.Cq)(Function)},onMouseleave:{type:(0,d.Cq)(Function)},onClick:{type:(0,d.Cq)(Function)},onKeydown:{type:(0,d.Cq)(Function)},onFocus:{type:(0,d.Cq)(Function)},onBlur:{type:(0,d.Cq)(Function)},onContextmenu:{type:(0,d.Cq)(Function)},id:String,open:Boolean});var Fr=n(9619);const zr=(0,d.o8)({...Nr,disabled:Boolean,trigger:{type:(0,d.Cq)([String,Array]),default:"hover"},triggerKeys:{type:(0,d.Cq)(Array),default:()=>[Fr.EVENT_CODE.enter,Fr.EVENT_CODE.space]}}),Br=(0,d.l0)({type:(0,d.Cq)(Boolean),default:null}),Hr=(0,d.l0)({type:(0,d.Cq)(Function)}),jr=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],i={[e]:Br,[n]:Hr},o=({indicator:r,toggleReason:i,shouldHideWhenRouteChanges:o,shouldProceed:a,onShow:l,onHide:c})=>{const d=(0,s.FN)(),{emit:h}=d,f=d.props,m=(0,s.Fl)((()=>(0,u.mf)(f[n]))),g=(0,s.Fl)((()=>null===f[e])),v=e=>{!0!==r.value&&(r.value=!0,i&&(i.value=e),(0,u.mf)(l)&&l(e))},y=e=>{!1!==r.value&&(r.value=!1,i&&(i.value=e),(0,u.mf)(c)&&c(e))},b=e=>{if(!0===f.disabled||(0,u.mf)(a)&&!a())return;const n=m.value&&x.C5;n&&h(t,!0),!g.value&&n||v(e)},w=e=>{if(!0===f.disabled||!x.C5)return;const n=m.value&&x.C5;n&&h(t,!1),!g.value&&n||y(e)},S=e=>{(0,p.jn)(e)&&(f.disabled&&e?m.value&&h(t,!1):r.value!==e&&(e?v():y()))},_=()=>{r.value?w():b()};return(0,s.YP)((()=>f[e]),S),o&&void 0!==d.appContext.config.globalProperties.$route&&(0,s.YP)((()=>({...d.proxy.$route})),(()=>{o.value&&r.value&&w()})),(0,s.bv)((()=>{S(f[e])})),{hide:w,show:b,toggle:_,hasUpdateHandler:m}};return{useModelToggle:o,useModelToggleProps:i,useModelToggleEmits:r}},{useModelToggle:Vr,useModelToggleProps:Wr,useModelToggleEmits:$r}=jr("modelValue"),qr=(0,d.o8)({arrowOffset:{type:Number,default:5}}),{useModelToggleProps:Gr,useModelToggleEmits:Zr,useModelToggle:Yr}=jr("visible"),Kr=(0,d.o8)({...vt,...Gr,...Rr,...zr,...qr,showArrow:{type:Boolean,default:!0}}),Xr=[...Zr,"before-show","before-hide","show","hide","open","close"],Jr=(e,t)=>(0,u.kJ)(e)?e.includes(t):e===t,Qr=(e,t,n)=>r=>{Jr((0,l.SU)(e),t)&&n(r)},ei=(e,t,{checkForDefaultPrevented:n=!0}={})=>{const r=r=>{const i=null==e?void 0:e(r);if(!1===n||!i)return null==t?void 0:t(r)};return r},ti=e=>t=>"mouse"===t.pointerType?e(t):void 0,ni=Symbol("elForwardRef"),ri=e=>{const t=t=>{e.value=t};(0,s.JJ)(ni,{setForwardRef:t})},ii=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),oi="ElOnlyChild",ai=(0,s.aZ)({name:oi,setup(e,{slots:t,attrs:n}){var r;const i=(0,s.f3)(ni),o=ii(null!=(r=null==i?void 0:i.setForwardRef)?r:u.dG);return()=>{var e;const r=null==(e=t.default)?void 0:e.call(t,n);if(!r)return null;if(r.length>1)return(0,S.N)(oi,"requires exact only one valid child."),null;const i=si(r);return i?(0,s.wy)((0,s.Ho)(i,n),[[o]]):((0,S.N)(oi,"no valid child node found"),null)}}});function si(e){if(!e)return null;const t=e;for(const n of t){if((0,u.Kn)(n))switch(n.type){case s.sv:continue;case s.xv:case"svg":return li(n);case s.HY:return si(n.children);default:return n}return li(n)}return null}function li(e){const t=(0,b.s3)("only-child");return(0,s.Wm)("span",{class:t.e("content")},[e])}const ui=(0,s.aZ)({name:"ElPopperTrigger",inheritAttrs:!1}),ci=(0,s.aZ)({...ui,props:Nr,setup(e,{expose:t}){const n=e,{role:r,triggerRef:i}=(0,s.f3)(ft,void 0);ri(i);const o=(0,s.Fl)((()=>u.value?n.id:void 0)),a=(0,s.Fl)((()=>{if(r&&"tooltip"===r.value)return n.open&&n.id?n.id:void 0})),u=(0,s.Fl)((()=>{if(r&&"tooltip"!==r.value)return r.value})),d=(0,s.Fl)((()=>u.value?`${n.open}`:void 0));let h;return(0,s.bv)((()=>{(0,s.YP)((()=>n.virtualRef),(e=>{e&&(i.value=(0,c.NXq)(e))}),{immediate:!0}),(0,s.YP)(i,((e,t)=>{null==h||h(),h=void 0,(0,p.kK)(e)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach((r=>{var i;const o=n[r];o&&(e.addEventListener(r.slice(2).toLowerCase(),o),null==(i=null==t?void 0:t.removeEventListener)||i.call(t,r.slice(2).toLowerCase(),o))})),h=(0,s.YP)([o,a,u,d],(t=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(((n,r)=>{(0,me.Z)(t[r])?e.removeAttribute(n):e.setAttribute(n,t[r])}))}),{immediate:!0})),(0,p.kK)(t)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((e=>t.removeAttribute(e)))}),{immediate:!0})})),(0,s.Jd)((()=>{null==h||h(),h=void 0})),t({triggerRef:i}),(e,t)=>e.virtualTriggering?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.j4)((0,l.SU)(ai),(0,s.dG)({key:0},e.$attrs,{"aria-controls":(0,l.SU)(o),"aria-describedby":(0,l.SU)(a),"aria-expanded":(0,l.SU)(d),"aria-haspopup":(0,l.SU)(u)}),{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default")])),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var di=(0,y.Z)(ci,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const pi=(0,s.aZ)({name:"ElTooltipTrigger"}),hi=(0,s.aZ)({...pi,props:zr,setup(e,{expose:t}){const n=e,r=(0,b.s3)("tooltip"),{controlled:i,id:o,open:a,onOpen:c,onClose:d,onToggle:p}=(0,s.f3)(xt,void 0),h=(0,l.iH)(null),f=()=>{if((0,l.SU)(i)||n.disabled)return!0},m=(0,l.Vh)(n,"trigger"),g=ei(f,Qr(m,"hover",c)),v=ei(f,Qr(m,"hover",d)),y=ei(f,Qr(m,"click",(e=>{0===e.button&&p(e)}))),w=ei(f,Qr(m,"focus",c)),S=ei(f,Qr(m,"focus",d)),x=ei(f,Qr(m,"contextmenu",(e=>{e.preventDefault(),p(e)}))),_=ei(f,(e=>{const{code:t}=e;n.triggerKeys.includes(t)&&(e.preventDefault(),p(e))}));return t({triggerRef:h}),(e,t)=>((0,s.wg)(),(0,s.j4)((0,l.SU)(di),{id:(0,l.SU)(o),"virtual-ref":e.virtualRef,open:(0,l.SU)(a),"virtual-triggering":e.virtualTriggering,class:(0,u.C_)((0,l.SU)(r).e("trigger")),onBlur:(0,l.SU)(S),onClick:(0,l.SU)(y),onContextmenu:(0,l.SU)(x),onFocus:(0,l.SU)(w),onMouseenter:(0,l.SU)(g),onMouseleave:(0,l.SU)(v),onKeydown:(0,l.SU)(_)},{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default")])),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var fi=(0,y.Z)(hi,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);let mi;const gi=()=>{const e=(0,b.u_)(),t=Pe(),n=(0,s.Fl)((()=>`${e.value}-popper-container-${t.prefix}`)),r=(0,s.Fl)((()=>`#${n.value}`));return{id:n,selector:r}},vi=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},yi=()=>{const{id:e,selector:t}=gi();return(0,s.wF)((()=>{x.C5&&(mi||document.body.querySelector(t.value)||(mi=vi(e.value)))})),{id:e,selector:t}},bi=(e,t)=>{const n=(0,l.iH)(!1),r=(0,l.iH)(),i=()=>{t("focus")},o=e=>{var n;"pointer"!==(null==(n=e.detail)?void 0:n.focusReason)&&(r.value="first",t("blur"))},a=t=>{e.visible&&!n.value&&(t.target&&(r.value=t.target),n.value=!0)},s=t=>{e.trapping||("pointer"===t.detail.focusReason&&t.preventDefault(),n.value=!1)},u=()=>{n.value=!1,t("close")};return{focusStartRef:r,trapped:n,onFocusAfterReleased:o,onFocusAfterTrapped:i,onFocusInTrap:a,onFocusoutPrevented:s,onReleaseRequested:u}};function wi(e){return void 0===e}var Si=wi;const xi=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:i}=e,o={placement:n,strategy:r,...i,modifiers:[...Ci(e),...t]};return Ei(o,null==i?void 0:i.modifiers),o},_i=e=>{if(x.C5)return(0,c.NXq)(e)};function Ci(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,null!=t?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function Ei(e,t){t&&(e.modifiers=[...e.modifiers,...null!=t?t:[]])}const Mi=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:e})=>{const t=ki(e);Object.assign(a.value,t)},requires:["computeStyles"]},i=(0,s.Fl)((()=>{const{onFirstUpdate:e,placement:t,strategy:i,modifiers:o}=(0,l.SU)(n);return{onFirstUpdate:e,placement:t||"bottom",strategy:i||"absolute",modifiers:[...o||[],r,{name:"applyStyles",enabled:!1}]}})),o=(0,l.XI)(),a=(0,l.iH)({styles:{popper:{position:(0,l.SU)(i).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),u=()=>{o.value&&(o.value.destroy(),o.value=void 0)};return(0,s.YP)(i,(e=>{const t=(0,l.SU)(o);t&&t.setOptions(e)}),{deep:!0}),(0,s.YP)([e,t],(([e,t])=>{u(),e&&t&&(o.value=Ir(e,t,(0,l.SU)(i)))})),(0,s.Jd)((()=>{u()})),{state:(0,s.Fl)((()=>{var e;return{...(null==(e=(0,l.SU)(o))?void 0:e.state)||{}}})),styles:(0,s.Fl)((()=>(0,l.SU)(a).styles)),attributes:(0,s.Fl)((()=>(0,l.SU)(a).attributes)),update:()=>{var e;return null==(e=(0,l.SU)(o))?void 0:e.update()},forceUpdate:()=>{var e;return null==(e=(0,l.SU)(o))?void 0:e.forceUpdate()},instanceRef:(0,s.Fl)((()=>(0,l.SU)(o)))}};function ki(e){const t=Object.keys(e.elements),n=(0,Me.Z)(t.map((t=>[t,e.styles[t]||{}]))),r=(0,Me.Z)(t.map((t=>[t,e.attributes[t]])));return{styles:n,attributes:r}}const Ti=0,Ai=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:i}=(0,s.f3)(ft,void 0),o=(0,l.iH)(),a=(0,l.iH)(),u=(0,s.Fl)((()=>({name:"eventListeners",enabled:!!e.visible}))),c=(0,s.Fl)((()=>{var e;const t=(0,l.SU)(o),n=null!=(e=(0,l.SU)(a))?e:Ti;return{name:"arrow",enabled:!Si(t),options:{element:t,padding:n}}})),d=(0,s.Fl)((()=>({onFirstUpdate:()=>{g()},...xi(e,[(0,l.SU)(c),(0,l.SU)(u)])}))),p=(0,s.Fl)((()=>_i(e.referenceEl)||(0,l.SU)(r))),{attributes:h,state:f,styles:m,update:g,forceUpdate:v,instanceRef:y}=Mi(p,n,d);return(0,s.YP)(y,(e=>t.value=e)),(0,s.bv)((()=>{(0,s.YP)((()=>{var e;return null==(e=(0,l.SU)(p))?void 0:e.getBoundingClientRect()}),(()=>{g()}))})),{attributes:h,arrowRef:o,contentRef:n,instanceRef:y,state:f,styles:m,role:i,forceUpdate:v,update:g}};var Ui=n(7750);const Ii=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:i}=(0,Ui.Cn)(),o=(0,b.s3)("popper"),a=(0,s.Fl)((()=>(0,l.SU)(t).popper)),u=(0,l.iH)(e.zIndex||i()),c=(0,s.Fl)((()=>[o.b(),o.is("pure",e.pure),o.is(e.effect),e.popperClass])),d=(0,s.Fl)((()=>[{zIndex:(0,l.SU)(u)},(0,l.SU)(n).popper,e.popperStyle||{}])),p=(0,s.Fl)((()=>"dialog"===r.value?"false":void 0)),h=(0,s.Fl)((()=>(0,l.SU)(n).arrow||{})),f=()=>{u.value=e.zIndex||i()};return{ariaModal:p,arrowStyle:h,contentAttrs:a,contentClass:c,contentStyle:d,contentZIndex:u,updateZIndex:f}},Di="focus-trap.focus-after-trapped",Oi="focus-trap.focus-after-released",Pi="focus-trap.focusout-prevented",Li={cancelable:!0,bubbles:!1},Ri={cancelable:!0,bubbles:!1},Ni="focusAfterTrapped",Fi="focusAfterReleased",zi=Symbol("elFocusTrap"),Bi=(0,l.iH)(),Hi=(0,l.iH)(0),ji=(0,l.iH)(0);let Vi=0;const Wi=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0||e===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});while(n.nextNode())t.push(n.currentNode);return t},$i=(e,t)=>{for(const n of e)if(!qi(n,t))return n},qi=(e,t)=>{if("hidden"===getComputedStyle(e).visibility)return!0;while(e){if(t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1},Gi=e=>{const t=Wi(e),n=$i(t,e),r=$i(t.reverse(),e);return[n,r]},Zi=e=>e instanceof HTMLInputElement&&"select"in e,Yi=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),ji.value=window.performance.now(),e!==n&&Zi(e)&&t&&e.select()}};function Ki(e,t){const n=[...e],r=e.indexOf(t);return-1!==r&&n.splice(r,1),n}const Xi=()=>{let e=[];const t=t=>{const n=e[0];n&&t!==n&&n.pause(),e=Ki(e,t),e.unshift(t)},n=t=>{var n,r;e=Ki(e,t),null==(r=null==(n=e[0])?void 0:n.resume)||r.call(n)};return{push:t,remove:n}},Ji=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(Yi(r,t),document.activeElement!==n)return},Qi=Xi(),eo=()=>Hi.value>ji.value,to=()=>{Bi.value="pointer",Hi.value=window.performance.now()},no=()=>{Bi.value="keyboard",Hi.value=window.performance.now()},ro=()=>((0,s.bv)((()=>{0===Vi&&(document.addEventListener("mousedown",to),document.addEventListener("touchstart",to),document.addEventListener("keydown",no)),Vi++})),(0,s.Jd)((()=>{Vi--,Vi<=0&&(document.removeEventListener("mousedown",to),document.removeEventListener("touchstart",to),document.removeEventListener("keydown",no))})),{focusReason:Bi,lastUserFocusTimestamp:Hi,lastAutomatedFocusTimestamp:ji}),io=e=>new CustomEvent(Pi,{...Ri,detail:e});let oo=[];const ao=e=>{const t=e;t.key===Fr.EVENT_CODE.esc&&oo.forEach((e=>e(t)))},so=e=>{(0,s.bv)((()=>{0===oo.length&&document.addEventListener("keydown",ao),x.C5&&oo.push(e)})),(0,s.Jd)((()=>{oo=oo.filter((t=>t!==e)),0===oo.length&&x.C5&&document.removeEventListener("keydown",ao)}))},lo=(0,s.aZ)({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Ni,Fi,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=(0,l.iH)();let r,i;const{focusReason:o}=ro();so((n=>{e.trapped&&!a.paused&&t("release-requested",n)}));const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},c=n=>{if(!e.loop&&!e.trapped)return;if(a.paused)return;const{key:r,altKey:i,ctrlKey:s,metaKey:l,currentTarget:u,shiftKey:c}=n,{loop:d}=e,p=r===Fr.EVENT_CODE.tab&&!i&&!s&&!l,h=document.activeElement;if(p&&h){const e=u,[r,i]=Gi(e),a=r&&i;if(a)if(c||h!==i){if(c&&[r,e].includes(h)){const e=io({focusReason:o.value});t("focusout-prevented",e),e.defaultPrevented||(n.preventDefault(),d&&Yi(i,!0))}}else{const e=io({focusReason:o.value});t("focusout-prevented",e),e.defaultPrevented||(n.preventDefault(),d&&Yi(r,!0))}else if(h===e){const e=io({focusReason:o.value});t("focusout-prevented",e),e.defaultPrevented||n.preventDefault()}}};(0,s.JJ)(zi,{focusTrapRef:n,onKeydown:c}),(0,s.YP)((()=>e.focusTrapEl),(e=>{e&&(n.value=e)}),{immediate:!0}),(0,s.YP)([n],(([e],[t])=>{e&&(e.addEventListener("keydown",c),e.addEventListener("focusin",h),e.addEventListener("focusout",f)),t&&(t.removeEventListener("keydown",c),t.removeEventListener("focusin",h),t.removeEventListener("focusout",f))}));const d=e=>{t(Ni,e)},p=e=>t(Fi,e),h=o=>{const s=(0,l.SU)(n);if(!s)return;const u=o.target,c=o.relatedTarget,d=u&&s.contains(u);if(!e.trapped){const e=c&&s.contains(c);e||(r=c)}d&&t("focusin",o),a.paused||e.trapped&&(d?i=u:Yi(i,!0))},f=r=>{const s=(0,l.SU)(n);if(!a.paused&&s)if(e.trapped){const n=r.relatedTarget;(0,me.Z)(n)||s.contains(n)||setTimeout((()=>{if(!a.paused&&e.trapped){const e=io({focusReason:o.value});t("focusout-prevented",e),e.defaultPrevented||Yi(i,!0)}}),0)}else{const e=r.target,n=e&&s.contains(e);n||t("focusout",r)}};async function m(){await(0,s.Y3)();const t=(0,l.SU)(n);if(t){Qi.push(a);const n=t.contains(document.activeElement)?r:document.activeElement;r=n;const i=t.contains(n);if(!i){const r=new Event(Di,Li);t.addEventListener(Di,d),t.dispatchEvent(r),r.defaultPrevented||(0,s.Y3)((()=>{let r=e.focusStartEl;(0,u.HD)(r)||(Yi(r),document.activeElement!==r&&(r="first")),"first"===r&&Ji(Wi(t),!0),document.activeElement!==n&&"container"!==r||Yi(t)}))}}}function g(){const e=(0,l.SU)(n);if(e){e.removeEventListener(Di,d);const t=new CustomEvent(Oi,{...Li,detail:{focusReason:o.value}});e.addEventListener(Oi,p),e.dispatchEvent(t),t.defaultPrevented||"keyboard"!=o.value&&eo()&&!e.contains(document.activeElement)||Yi(null!=r?r:document.body),e.removeEventListener(Oi,d),Qi.remove(a)}}return(0,s.bv)((()=>{e.trapped&&m(),(0,s.YP)((()=>e.trapped),(e=>{e?m():g()}))})),(0,s.Jd)((()=>{e.trapped&&g()})),{onKeydown:c}}});function uo(e,t,n,r,i,o){return(0,s.WI)(e.$slots,"default",{handleKeydown:e.onKeydown})}var co=(0,y.Z)(lo,[["render",uo],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const po=(0,s.aZ)({name:"ElPopperContent"}),ho=(0,s.aZ)({...po,props:Pr,emits:Lr,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:i,trapped:o,onFocusAfterReleased:a,onFocusAfterTrapped:c,onFocusInTrap:d,onFocusoutPrevented:h,onReleaseRequested:f}=bi(r,n),{attributes:m,arrowRef:g,contentRef:v,styles:y,instanceRef:b,role:w,update:S}=Ai(r),{ariaModal:x,arrowStyle:_,contentAttrs:C,contentClass:E,contentStyle:M,updateZIndex:k}=Ii(r,{styles:y,attributes:m,role:w}),T=(0,s.f3)(Ie,void 0),A=(0,l.iH)();let U;(0,s.JJ)(mt,{arrowStyle:_,arrowRef:g,arrowOffset:A}),T&&(T.addInputId||T.removeInputId)&&(0,s.JJ)(Ie,{...T,addInputId:u.dG,removeInputId:u.dG});const I=(e=!0)=>{S(),e&&k()},D=()=>{I(!1),r.visible&&r.focusOnShow?o.value=!0:!1===r.visible&&(o.value=!1)};return(0,s.bv)((()=>{(0,s.YP)((()=>r.triggerTargetEl),((e,t)=>{null==U||U(),U=void 0;const n=(0,l.SU)(e||v.value),i=(0,l.SU)(t||v.value);(0,p.kK)(n)&&(U=(0,s.YP)([w,()=>r.ariaLabel,x,()=>r.id],(e=>{["role","aria-label","aria-modal","id"].forEach(((t,r)=>{(0,me.Z)(e[r])?n.removeAttribute(t):n.setAttribute(t,e[r])}))}),{immediate:!0})),i!==n&&(0,p.kK)(i)&&["role","aria-label","aria-modal","id"].forEach((e=>{i.removeAttribute(e)}))}),{immediate:!0}),(0,s.YP)((()=>r.visible),D,{immediate:!0})})),(0,s.Jd)((()=>{null==U||U(),U=void 0})),t({popperContentRef:v,popperInstanceRef:b,updatePopper:I,contentStyle:M}),(e,t)=>((0,s.wg)(),(0,s.iD)("div",(0,s.dG)({ref_key:"contentRef",ref:v},(0,l.SU)(C),{style:(0,l.SU)(M),class:(0,l.SU)(E),tabindex:"-1",onMouseenter:t[0]||(t[0]=t=>e.$emit("mouseenter",t)),onMouseleave:t[1]||(t[1]=t=>e.$emit("mouseleave",t))}),[(0,s.Wm)((0,l.SU)(co),{trapped:(0,l.SU)(o),"trap-on-focus-in":!0,"focus-trap-el":(0,l.SU)(v),"focus-start-el":(0,l.SU)(i),onFocusAfterTrapped:(0,l.SU)(c),onFocusAfterReleased:(0,l.SU)(a),onFocusin:(0,l.SU)(d),onFocusoutPrevented:(0,l.SU)(h),onReleaseRequested:(0,l.SU)(f)},{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default")])),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var fo=(0,y.Z)(ho,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const mo=(0,s.aZ)({name:"ElTooltipContent",inheritAttrs:!1}),go=(0,s.aZ)({...mo,props:Rr,setup(e,{expose:t}){const n=e,{selector:r}=gi(),i=(0,b.s3)("tooltip"),o=(0,l.iH)(null),a=(0,l.iH)(!1),{controlled:u,id:d,open:p,trigger:h,onClose:f,onOpen:m,onShow:g,onHide:v,onBeforeShow:y,onBeforeHide:w}=(0,s.f3)(xt,void 0),S=(0,s.Fl)((()=>n.transition||`${i.namespace.value}-fade-in-linear`)),x=(0,s.Fl)((()=>n.persistent));(0,s.Jd)((()=>{a.value=!0}));const _=(0,s.Fl)((()=>!!(0,l.SU)(x)||(0,l.SU)(p))),C=(0,s.Fl)((()=>!n.disabled&&(0,l.SU)(p))),E=(0,s.Fl)((()=>n.appendTo||r.value)),M=(0,s.Fl)((()=>{var e;return null!=(e=n.style)?e:{}})),k=(0,s.Fl)((()=>!(0,l.SU)(p))),T=()=>{v()},A=()=>{if((0,l.SU)(u))return!0},U=ei(A,(()=>{n.enterable&&"hover"===(0,l.SU)(h)&&m()})),I=ei(A,(()=>{"hover"===(0,l.SU)(h)&&f()})),D=()=>{var e,t;null==(t=null==(e=o.value)?void 0:e.updatePopper)||t.call(e),null==y||y()},O=()=>{null==w||w()},L=()=>{g(),N=(0,c.i9H)((0,s.Fl)((()=>{var e;return null==(e=o.value)?void 0:e.popperContentRef})),(()=>{if((0,l.SU)(u))return;const e=(0,l.SU)(h);"hover"!==e&&f()}))},R=()=>{n.virtualTriggering||f()};let N;return(0,s.YP)((()=>(0,l.SU)(p)),(e=>{e||null==N||N()}),{flush:"post"}),(0,s.YP)((()=>n.content),(()=>{var e,t;null==(t=null==(e=o.value)?void 0:e.updatePopper)||t.call(e)})),t({contentRef:o}),(e,t)=>((0,s.wg)(),(0,s.j4)(s.lR,{disabled:!e.teleported,to:(0,l.SU)(E)},[(0,s.Wm)(P.uT,{name:(0,l.SU)(S),onAfterLeave:T,onBeforeEnter:D,onAfterEnter:L,onBeforeLeave:O},{default:(0,s.w5)((()=>[(0,l.SU)(_)?(0,s.wy)(((0,s.wg)(),(0,s.j4)((0,l.SU)(fo),(0,s.dG)({key:0,id:(0,l.SU)(d),ref_key:"contentRef",ref:o},e.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":(0,l.SU)(k),"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,(0,l.SU)(M)],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:(0,l.SU)(C),"z-index":e.zIndex,onMouseenter:(0,l.SU)(U),onMouseleave:(0,l.SU)(I),onBlur:R,onClose:(0,l.SU)(f)}),{default:(0,s.w5)((()=>[a.value?(0,s.kq)("v-if",!0):(0,s.WI)(e.$slots,"default",{key:0})])),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[P.F8,(0,l.SU)(C)]]):(0,s.kq)("v-if",!0)])),_:3},8,["name"])],8,["disabled","to"]))}});var vo=(0,y.Z)(go,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const yo=(0,s.aZ)({name:"ElPopperArrow",inheritAttrs:!1}),bo=(0,s.aZ)({...yo,props:qr,setup(e,{expose:t}){const n=e,r=(0,b.s3)("popper"),{arrowOffset:i,arrowRef:o,arrowStyle:a}=(0,s.f3)(mt,void 0);return(0,s.YP)((()=>n.arrowOffset),(e=>{i.value=e})),(0,s.Jd)((()=>{o.value=void 0})),t({arrowRef:o}),(e,t)=>((0,s.wg)(),(0,s.iD)("span",{ref_key:"arrowRef",ref:o,class:(0,u.C_)((0,l.SU)(r).e("arrow")),style:(0,u.j5)((0,l.SU)(a)),"data-popper-arrow":""},null,6))}});var wo=(0,y.Z)(bo,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const So=["innerHTML"],xo={key:1},_o=(0,s.aZ)({name:"ElTooltip"}),Co=(0,s.aZ)({..._o,props:Kr,emits:Xr,setup(e,{expose:t,emit:n}){const r=e;yi();const i=Le(),o=(0,l.iH)(),a=(0,l.iH)(),c=()=>{var e;const t=(0,l.SU)(o);t&&(null==(e=t.popperInstanceRef)||e.update())},d=(0,l.iH)(!1),h=(0,l.iH)(),{show:f,hide:m,hasUpdateHandler:g}=Yr({indicator:d,toggleReason:h}),{onOpen:v,onClose:y}=Et({showAfter:(0,l.Vh)(r,"showAfter"),hideAfter:(0,l.Vh)(r,"hideAfter"),autoClose:(0,l.Vh)(r,"autoClose"),open:f,close:m}),b=(0,s.Fl)((()=>(0,p.jn)(r.visible)&&!g.value));(0,s.JJ)(xt,{controlled:b,id:i,open:(0,l.OT)(d),trigger:(0,l.Vh)(r,"trigger"),onOpen:e=>{v(e)},onClose:e=>{y(e)},onToggle:e=>{(0,l.SU)(d)?y(e):v(e)},onShow:()=>{n("show",h.value)},onHide:()=>{n("hide",h.value)},onBeforeShow:()=>{n("before-show",h.value)},onBeforeHide:()=>{n("before-hide",h.value)},updatePopper:c}),(0,s.YP)((()=>r.disabled),(e=>{e&&d.value&&(d.value=!1)}));const w=()=>{var e,t;const n=null==(t=null==(e=a.value)?void 0:e.contentRef)?void 0:t.popperContentRef;return n&&n.contains(document.activeElement)};return(0,s.se)((()=>d.value&&m())),t({popperRef:o,contentRef:a,isFocusInsideContent:w,updatePopper:c,onOpen:v,onClose:y,hide:m}),(e,t)=>((0,s.wg)(),(0,s.j4)((0,l.SU)(St),{ref_key:"popperRef",ref:o,role:e.role},{default:(0,s.w5)((()=>[(0,s.Wm)(fi,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:(0,s.w5)((()=>[e.$slots.default?(0,s.WI)(e.$slots,"default",{key:0}):(0,s.kq)("v-if",!0)])),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),(0,s.Wm)(vo,{ref_key:"contentRef",ref:a,"aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":e.popperClass,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.showAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo},{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"content",{},(()=>[e.rawContent?((0,s.wg)(),(0,s.iD)("span",{key:0,innerHTML:e.content},null,8,So)):((0,s.wg)(),(0,s.iD)("span",xo,(0,u.zw)(e.content),1))])),e.showArrow?((0,s.wg)(),(0,s.j4)((0,l.SU)(wo),{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):(0,s.kq)("v-if",!0)])),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])])),_:3},8,["role"]))}});var Eo=(0,y.Z)(Co,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Mo=(0,D.nz)(Eo),ko=(0,d.o8)({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:(0,d.Cq)(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:(0,d.Cq)([Function,Array]),default:u.dG},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:Rr.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String}),To={[h]:e=>(0,u.HD)(e),[m]:e=>(0,u.HD)(e),[f]:e=>(0,u.HD)(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>(0,u.Kn)(e)},Ao=()=>Math.floor(1e4*Math.random()),Uo=["aria-expanded","aria-owns"],Io={key:0},Do=["id","aria-selected","onClick"],Oo="ElAutocomplete",Po=(0,s.aZ)({name:Oo,inheritAttrs:!1}),Lo=(0,s.aZ)({...Po,props:ko,emits:To,setup(e,{expose:t,emit:n}){const r=e,i=Ae(),o=(0,s.l1)(),a=Be(),d=(0,b.s3)("autocomplete"),p=(0,l.iH)(),g=(0,l.iH)(),v=(0,l.iH)(),y=(0,l.iH)();let w=!1,x=!1;const _=(0,l.iH)([]),C=(0,l.iH)(-1),E=(0,l.iH)(""),M=(0,l.iH)(!1),k=(0,l.iH)(!1),T=(0,l.iH)(!1),A=(0,s.Fl)((()=>d.b(String(Ao())))),U=(0,s.Fl)((()=>o.style)),I=(0,s.Fl)((()=>{const e=_.value.length>0;return(e||T.value)&&M.value})),D=(0,s.Fl)((()=>!r.hideLoading&&T.value)),O=(0,s.Fl)((()=>p.value?Array.from(p.value.$el.querySelectorAll("input")):[])),R=async()=>{await(0,s.Y3)(),I.value&&(E.value=`${p.value.$el.offsetWidth}px`)},N=()=>{C.value=-1},F=async e=>{if(k.value)return;const t=e=>{T.value=!1,k.value||((0,u.kJ)(e)?(_.value=e,C.value=r.highlightFirstItem?0:-1):(0,S._)(Oo,"autocomplete suggestions must be an array"))};if(T.value=!0,(0,u.kJ)(r.fetchSuggestions))t(r.fetchSuggestions);else{const n=await r.fetchSuggestions(e,t);(0,u.kJ)(n)&&t(n)}},z=he(F,r.debounce),B=e=>{const t=!!e;if(n(m,e),n(h,e),k.value=!1,M.value||(M.value=t),!r.triggerOnFocus&&!e)return k.value=!0,void(_.value=[]);z(e)},H=e=>{var t;a.value||("INPUT"!==(null==(t=e.target)?void 0:t.tagName)||O.value.includes(document.activeElement))&&(M.value=!0)},j=e=>{n(f,e)},V=e=>{x?x=!1:(M.value=!0,n("focus",e),r.triggerOnFocus&&!w&&z(String(r.modelValue)))},W=e=>{setTimeout((()=>{var t;(null==(t=v.value)?void 0:t.isFocusInsideContent())?x=!0:(M.value&&Z(),n("blur",e))}))},$=()=>{M.value=!1,n(h,""),n("clear")},q=async()=>{I.value&&C.value>=0&&C.value<_.value.length?X(_.value[C.value]):r.selectWhenUnmatched&&(n("select",{value:r.modelValue}),_.value=[],C.value=-1)},G=e=>{I.value&&(e.preventDefault(),e.stopPropagation(),Z())},Z=()=>{M.value=!1},Y=()=>{var e;null==(e=p.value)||e.focus()},K=()=>{var e;null==(e=p.value)||e.blur()},X=async e=>{n(m,e[r.valueKey]),n(h,e[r.valueKey]),n("select",e),_.value=[],C.value=-1},J=e=>{if(!I.value||T.value)return;if(e<0)return void(C.value=-1);e>=_.value.length&&(e=_.value.length-1);const t=g.value.querySelector(`.${d.be("suggestion","wrap")}`),n=t.querySelectorAll(`.${d.be("suggestion","list")} li`),r=n[e],i=t.scrollTop,{offsetTop:o,scrollHeight:a}=r;o+a>i+t.clientHeight&&(t.scrollTop+=a),o{I.value&&Z()})),(0,s.bv)((()=>{p.value.ref.setAttribute("role","textbox"),p.value.ref.setAttribute("aria-autocomplete","list"),p.value.ref.setAttribute("aria-controls","id"),p.value.ref.setAttribute("aria-activedescendant",`${A.value}-item-${C.value}`),w=p.value.ref.hasAttribute("readonly")})),t({highlightedIndex:C,activated:M,loading:T,inputRef:p,popperRef:v,suggestions:_,handleSelect:X,handleKeyEnter:q,focus:Y,blur:K,close:Z,highlight:J}),(e,t)=>((0,s.wg)(),(0,s.j4)((0,l.SU)(Mo),{ref_key:"popperRef",ref:v,visible:(0,l.SU)(I),placement:e.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[(0,l.SU)(d).e("popper"),e.popperClass],teleported:e.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${(0,l.SU)(d).namespace.value}-zoom-in-top`,persistent:"",onBeforeShow:R,onHide:N},{content:(0,s.w5)((()=>[(0,s._)("div",{ref_key:"regionRef",ref:g,class:(0,u.C_)([(0,l.SU)(d).b("suggestion"),(0,l.SU)(d).is("loading",(0,l.SU)(D))]),style:(0,u.j5)({[e.fitInputWidth?"width":"minWidth"]:E.value,outline:"none"}),role:"region"},[(0,s.Wm)((0,l.SU)(ht),{id:(0,l.SU)(A),tag:"ul","wrap-class":(0,l.SU)(d).be("suggestion","wrap"),"view-class":(0,l.SU)(d).be("suggestion","list"),role:"listbox"},{default:(0,s.w5)((()=>[(0,l.SU)(D)?((0,s.wg)(),(0,s.iD)("li",Io,[(0,s.Wm)((0,l.SU)(L.gn),{class:(0,u.C_)((0,l.SU)(d).is("loading"))},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.gbz))])),_:1},8,["class"])])):((0,s.wg)(!0),(0,s.iD)(s.HY,{key:1},(0,s.Ko)(_.value,((t,n)=>((0,s.wg)(),(0,s.iD)("li",{id:`${(0,l.SU)(A)}-item-${n}`,key:n,class:(0,u.C_)({highlighted:C.value===n}),role:"option","aria-selected":C.value===n,onClick:e=>X(t)},[(0,s.WI)(e.$slots,"default",{item:t},(()=>[(0,s.Uk)((0,u.zw)(t[e.valueKey]),1)]))],10,Do)))),128))])),_:3},8,["id","wrap-class","view-class"])],6)])),default:(0,s.w5)((()=>[(0,s._)("div",{ref_key:"listboxRef",ref:y,class:(0,u.C_)([(0,l.SU)(d).b(),e.$attrs.class]),style:(0,u.j5)((0,l.SU)(U)),role:"combobox","aria-haspopup":"listbox","aria-expanded":(0,l.SU)(I),"aria-owns":(0,l.SU)(A)},[(0,s.Wm)((0,l.SU)(Ye),(0,s.dG)({ref_key:"inputRef",ref:p},(0,l.SU)(i),{clearable:e.clearable,disabled:(0,l.SU)(a),name:e.name,"model-value":e.modelValue,onInput:B,onChange:j,onFocus:V,onBlur:W,onClear:$,onKeydown:[t[0]||(t[0]=(0,P.D2)((0,P.iM)((e=>J(C.value-1)),["prevent"]),["up"])),t[1]||(t[1]=(0,P.D2)((0,P.iM)((e=>J(C.value+1)),["prevent"]),["down"])),(0,P.D2)(q,["enter"]),(0,P.D2)(Z,["tab"]),(0,P.D2)(G,["esc"])],onMousedown:H}),(0,s.Nv)({_:2},[e.$slots.prepend?{name:"prepend",fn:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"prepend")]))}:void 0,e.$slots.append?{name:"append",fn:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"append")]))}:void 0,e.$slots.prefix?{name:"prefix",fn:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"prefix")]))}:void 0,e.$slots.suffix?{name:"suffix",fn:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"suffix")]))}:void 0]),1040,["clearable","disabled","name","model-value","onKeydown"])],14,Uo)])),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var Ro=(0,y.Z)(Lo,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const No=(0,D.nz)(Ro);var Fo=n(7609);const zo=(0,d.o8)({size:{type:[Number,String],values:Fo.k,default:"",validator:e=>(0,p.hj)(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:N.AA},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:(0,d.Cq)(String),default:"cover"}}),Bo={error:e=>e instanceof Event},Ho=["src","alt","srcset"],jo=(0,s.aZ)({name:"ElAvatar"}),Vo=(0,s.aZ)({...jo,props:zo,emits:Bo,setup(e,{emit:t}){const n=e,r=(0,b.s3)("avatar"),i=(0,l.iH)(!1),o=(0,s.Fl)((()=>{const{size:e,icon:t,shape:i}=n,o=[r.b()];return(0,u.HD)(e)&&o.push(r.m(e)),t&&o.push(r.m("icon")),i&&o.push(r.m(i)),o})),a=(0,s.Fl)((()=>{const{size:e}=n;return(0,p.hj)(e)?r.cssVarBlock({size:(0,w.Nn)(e)||""}):void 0})),c=(0,s.Fl)((()=>({objectFit:n.fit})));function d(e){i.value=!0,t("error",e)}return(0,s.YP)((()=>n.src),(()=>i.value=!1)),(e,t)=>((0,s.wg)(),(0,s.iD)("span",{class:(0,u.C_)((0,l.SU)(o)),style:(0,u.j5)((0,l.SU)(a))},[!e.src&&!e.srcSet||i.value?e.icon?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:1},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.icon)))])),_:1})):(0,s.WI)(e.$slots,"default",{key:2}):((0,s.wg)(),(0,s.iD)("img",{key:0,src:e.src,alt:e.alt,srcset:e.srcSet,style:(0,u.j5)((0,l.SU)(c)),onError:d},null,44,Ho))],6))}});var Wo=(0,y.Z)(Vo,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);const $o=(0,D.nz)(Wo),qo={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},Go={click:e=>e instanceof MouseEvent},Zo=(e,t,n)=>{const r=(0,l.XI)(),i=(0,l.XI)(),o=(0,l.iH)(!1),a=()=>{r.value&&(o.value=r.value.scrollTop>=e.visibilityHeight)},u=e=>{var n;null==(n=r.value)||n.scrollTo({top:0,behavior:"smooth"}),t("click",e)},d=(0,x.vA)(a,300,!0);return(0,c.ORN)(i,"scroll",d),(0,s.bv)((()=>{var t;i.value=document,r.value=document.documentElement,e.target&&(r.value=null!=(t=document.querySelector(e.target))?t:void 0,r.value||(0,S._)(n,`target does not exist: ${e.target}`),i.value=r.value)})),{visible:o,handleClick:u}},Yo="ElBacktop",Ko=(0,s.aZ)({name:Yo}),Xo=(0,s.aZ)({...Ko,props:qo,emits:Go,setup(e,{emit:t}){const n=e,r=(0,b.s3)("backtop"),{handleClick:i,visible:o}=Zo(n,t,Yo),a=(0,s.Fl)((()=>({right:`${n.right}px`,bottom:`${n.bottom}px`})));return(e,t)=>((0,s.wg)(),(0,s.j4)(P.uT,{name:`${(0,l.SU)(r).namespace.value}-fade-in`},{default:(0,s.w5)((()=>[(0,l.SU)(o)?((0,s.wg)(),(0,s.iD)("div",{key:0,style:(0,u.j5)((0,l.SU)(a)),class:(0,u.C_)((0,l.SU)(r).b()),onClick:t[0]||(t[0]=(0,P.iM)(((...e)=>(0,l.SU)(i)&&(0,l.SU)(i)(...e)),["stop"]))},[(0,s.WI)(e.$slots,"default",{},(()=>[(0,s.Wm)((0,l.SU)(L.gn),{class:(0,u.C_)((0,l.SU)(r).e("icon"))},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.Vx7))])),_:1},8,["class"])]))],6)):(0,s.kq)("v-if",!0)])),_:3},8,["name"]))}});var Jo=(0,y.Z)(Xo,[["__file","/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]]);const Qo=(0,D.nz)(Jo);var ea=n(1183);const ta=Symbol("breadcrumbKey"),na=(0,d.o8)({separator:{type:String,default:"/"},separatorIcon:{type:N.AA}}),ra=(0,s.aZ)({name:"ElBreadcrumb"}),ia=(0,s.aZ)({...ra,props:na,setup(e){const t=e,n=(0,b.s3)("breadcrumb"),r=(0,l.iH)();return(0,s.JJ)(ta,t),(0,s.bv)((()=>{const e=r.value.querySelectorAll(`.${n.e("item")}`);e.length&&e[e.length-1].setAttribute("aria-current","page")})),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{ref_key:"breadcrumb",ref:r,class:(0,u.C_)((0,l.SU)(n).b()),"aria-label":"Breadcrumb",role:"navigation"},[(0,s.WI)(e.$slots,"default")],2))}});var oa=(0,y.Z)(ia,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const aa=(0,d.o8)({to:{type:(0,d.Cq)([String,Object]),default:""},replace:{type:Boolean,default:!1}}),sa=(0,s.aZ)({name:"ElBreadcrumbItem"}),la=(0,s.aZ)({...sa,props:aa,setup(e){const t=e,n=(0,s.FN)(),r=(0,s.f3)(ta,void 0),i=(0,b.s3)("breadcrumb"),{separator:o,separatorIcon:a}=(0,l.BK)(r),c=n.appContext.config.globalProperties.$router,d=(0,l.iH)(),p=()=>{t.to&&c&&(t.replace?c.replace(t.to):c.push(t.to))};return(e,t)=>((0,s.wg)(),(0,s.iD)("span",{class:(0,u.C_)((0,l.SU)(i).e("item"))},[(0,s._)("span",{ref_key:"link",ref:d,class:(0,u.C_)([(0,l.SU)(i).e("inner"),(0,l.SU)(i).is("link",!!e.to)]),role:"link",onClick:p},[(0,s.WI)(e.$slots,"default")],2),(0,l.SU)(a)?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:0,class:(0,u.C_)((0,l.SU)(i).e("separator"))},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)((0,l.SU)(a))))])),_:1},8,["class"])):((0,s.wg)(),(0,s.iD)("span",{key:1,class:(0,u.C_)((0,l.SU)(i).e("separator")),role:"presentation"},(0,u.zw)((0,l.SU)(o)),3))],2))}});var ua=(0,y.Z)(la,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const ca=(0,D.nz)(oa,{BreadcrumbItem:ua}),da=(0,D.dp)(ua),pa=Symbol("buttonGroupContextKey"),ha=({from:e,replacement:t,scope:n,version:r,ref:i,type:o="API"},a)=>{(0,s.YP)((()=>(0,l.SU)(a)),(a=>{a&&(0,S.N)(n,`[${o}] ${e} is about to be deprecated in version ${r}, please use ${t} instead.\nFor more detail, please visit: ${i}\n`)}),{immediate:!0})},fa=(e,t)=>{ha({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},(0,s.Fl)((()=>"text"===e.type)));const n=(0,s.f3)(pa,void 0),r=(0,o.WS)("button"),{form:i}=Re(),a=ze((0,s.Fl)((()=>null==n?void 0:n.size))),u=Be(),c=(0,l.iH)(),d=(0,s.Rr)(),p=(0,s.Fl)((()=>e.type||(null==n?void 0:n.type)||"")),h=(0,s.Fl)((()=>{var t,n,i;return null!=(i=null!=(n=e.autoInsertSpace)?n:null==(t=r.value)?void 0:t.autoInsertSpace)&&i})),f=(0,s.Fl)((()=>"button"===e.tag?{ariaDisabled:u.value||e.loading,disabled:u.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{})),m=(0,s.Fl)((()=>{var e;const t=null==(e=d.default)?void 0:e.call(d);if(h.value&&1===(null==t?void 0:t.length)){const e=t[0];if((null==e?void 0:e.type)===s.xv){const t=e.children;return/^\p{Unified_Ideograph}{2}$/u.test(t.trim())}}return!1})),g=n=>{"reset"===e.nativeType&&(null==i||i.resetFields()),t("click",n)};return{_disabled:u,_size:a,_type:p,_ref:c,_props:f,shouldAddSpace:m,handleClick:g}},ma=["default","primary","success","warning","info","danger","text",""],ga=["button","submit","reset"],va=(0,d.o8)({size:xe.Pp,disabled:Boolean,type:{type:String,values:ma,default:""},icon:{type:N.AA},nativeType:{type:String,values:ga,default:"button"},loading:Boolean,loadingIcon:{type:N.AA,default:()=>fe.gbz},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:(0,d.Cq)([String,Object]),default:"button"}}),ya={click:e=>e instanceof MouseEvent};function ba(e,t){Sa(e)&&(e="100%");var n=xa(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t)),e)}function wa(e){return Math.min(1,Math.max(0,e))}function Sa(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)}function xa(e){return"string"===typeof e&&-1!==e.indexOf("%")}function _a(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ca(e){return e<=1?"".concat(100*Number(e),"%"):e}function Ea(e){return 1===e.length?"0"+e:String(e)}function Ma(e,t,n){return{r:255*ba(e,255),g:255*ba(t,255),b:255*ba(n,255)}}function ka(e,t,n){e=ba(e,255),t=ba(t,255),n=ba(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=0,s=(r+i)/2;if(r===i)a=0,o=0;else{var l=r-i;switch(a=s>.5?l/(2-r-i):l/(r+i),r){case e:o=(t-n)/l+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Aa(e,t,n){var r,i,o;if(e=ba(e,360),t=ba(t,100),n=ba(n,100),0===t)i=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=Ta(s,a,e+1/3),i=Ta(s,a,e),o=Ta(s,a,e-1/3)}return{r:255*r,g:255*i,b:255*o}}function Ua(e,t,n){e=ba(e,255),t=ba(t,255),n=ba(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=r,s=r-i,l=0===r?0:s/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/s+(t>16,g:(65280&e)>>8,b:255&e}}var Fa={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",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:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",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:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",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:"#ff0000",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:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function za(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return"string"===typeof e&&(e=qa(e)),"object"===typeof e&&(Ga(e.r)&&Ga(e.g)&&Ga(e.b)?(t=Ma(e.r,e.g,e.b),a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):Ga(e.h)&&Ga(e.s)&&Ga(e.v)?(r=Ca(e.s),i=Ca(e.v),t=Ia(e.h,r,i),a=!0,s="hsv"):Ga(e.h)&&Ga(e.s)&&Ga(e.l)&&(r=Ca(e.s),o=Ca(e.l),t=Aa(e.h,r,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=_a(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Ba="[-\\+]?\\d+%?",Ha="[-\\+]?\\d*\\.\\d+%?",ja="(?:".concat(Ha,")|(?:").concat(Ba,")"),Va="[\\s|\\(]+(".concat(ja,")[,|\\s]+(").concat(ja,")[,|\\s]+(").concat(ja,")\\s*\\)?"),Wa="[\\s|\\(]+(".concat(ja,")[,|\\s]+(").concat(ja,")[,|\\s]+(").concat(ja,")[,|\\s]+(").concat(ja,")\\s*\\)?"),$a={CSS_UNIT:new RegExp(ja),rgb:new RegExp("rgb"+Va),rgba:new RegExp("rgba"+Wa),hsl:new RegExp("hsl"+Va),hsla:new RegExp("hsla"+Wa),hsv:new RegExp("hsv"+Va),hsva:new RegExp("hsva"+Wa),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 qa(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(Fa[e])e=Fa[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=$a.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=$a.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=$a.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=$a.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=$a.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=$a.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=$a.hex8.exec(e),n?{r:Ra(n[1]),g:Ra(n[2]),b:Ra(n[3]),a:La(n[4]),format:t?"name":"hex8"}:(n=$a.hex6.exec(e),n?{r:Ra(n[1]),g:Ra(n[2]),b:Ra(n[3]),format:t?"name":"hex"}:(n=$a.hex4.exec(e),n?{r:Ra(n[1]+n[1]),g:Ra(n[2]+n[2]),b:Ra(n[3]+n[3]),a:La(n[4]+n[4]),format:t?"name":"hex8"}:(n=$a.hex3.exec(e),!!n&&{r:Ra(n[1]+n[1]),g:Ra(n[2]+n[2]),b:Ra(n[3]+n[3]),format:t?"name":"hex"})))))))))}function Ga(e){return Boolean($a.CSS_UNIT.exec(String(e)))}var Za=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"===typeof t&&(t=Na(t)),this.originalInput=t;var i=za(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:i.format,this.gradientType=n.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.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e,t,n,r=this.toRgb(),i=r.r/255,o=r.g/255,a=r.b/255;return e=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4),t=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),n=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4),.2126*e+.7152*t+.0722*n},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=_a(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var e=this.toHsl().s;return 0===e},e.prototype.toHsv=function(){var e=Ua(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=Ua(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=ka(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=ka(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),Da(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),Oa(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*ba(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*ba(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+Da(this.r,this.g,this.b,!1),t=0,n=Object.entries(Fa);t=0,i=!t&&r&&(e.startsWith("hex")||"name"===e);return i?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=wa(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=wa(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=wa(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=wa(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),o=n/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return new e(a)},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);var n=this.toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;while(t--)a.push(new e({h:r,s:i,v:o})),o=(o+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],o=360/t,a=1;a{let r={};const i=e.color;if(i){const o=new Za(i),a=e.dark?o.tint(20).toString():Ya(o,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?Ya(o,90):o.tint(90).toString(),"text-color":i,"border-color":e.dark?Ya(o,50):o.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":i,"hover-border-color":i,"active-bg-color":a,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":a}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?Ya(o,90):o.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?Ya(o,50):o.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?Ya(o,80):o.tint(80).toString());else{const s=e.dark?Ya(o,30):o.tint(30).toString(),l=o.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":i,"text-color":l,"border-color":i,"hover-bg-color":s,"hover-text-color":l,"hover-border-color":s,"active-bg-color":a,"active-border-color":a}),t.value){const t=e.dark?Ya(o,50):o.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=t,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=t}}}return r}))}const Xa=(0,s.aZ)({name:"ElButton"}),Ja=(0,s.aZ)({...Xa,props:va,emits:ya,setup(e,{expose:t,emit:n}){const r=e,i=Ka(r),o=(0,b.s3)("button"),{_ref:a,_size:c,_type:d,_disabled:p,_props:h,shouldAddSpace:f,handleClick:m}=fa(r,n);return t({ref:a,size:c,type:d,disabled:p,shouldAddSpace:f}),(e,t)=>((0,s.wg)(),(0,s.j4)((0,s.LL)(e.tag),(0,s.dG)({ref_key:"_ref",ref:a},(0,l.SU)(h),{class:[(0,l.SU)(o).b(),(0,l.SU)(o).m((0,l.SU)(d)),(0,l.SU)(o).m((0,l.SU)(c)),(0,l.SU)(o).is("disabled",(0,l.SU)(p)),(0,l.SU)(o).is("loading",e.loading),(0,l.SU)(o).is("plain",e.plain),(0,l.SU)(o).is("round",e.round),(0,l.SU)(o).is("circle",e.circle),(0,l.SU)(o).is("text",e.text),(0,l.SU)(o).is("link",e.link),(0,l.SU)(o).is("has-bg",e.bg)],style:(0,l.SU)(i),onClick:(0,l.SU)(m)}),{default:(0,s.w5)((()=>[e.loading?((0,s.wg)(),(0,s.iD)(s.HY,{key:0},[e.$slots.loading?(0,s.WI)(e.$slots,"loading",{key:0}):((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:1,class:(0,u.C_)((0,l.SU)(o).is("loading"))},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.loadingIcon)))])),_:1},8,["class"]))],64)):e.icon||e.$slots.icon?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:1},{default:(0,s.w5)((()=>[e.icon?((0,s.wg)(),(0,s.j4)((0,s.LL)(e.icon),{key:0})):(0,s.WI)(e.$slots,"icon",{key:1})])),_:3})):(0,s.kq)("v-if",!0),e.$slots.default?((0,s.wg)(),(0,s.iD)("span",{key:2,class:(0,u.C_)({[(0,l.SU)(o).em("text","expand")]:(0,l.SU)(f)})},[(0,s.WI)(e.$slots,"default")],2)):(0,s.kq)("v-if",!0)])),_:3},16,["class","style","onClick"]))}});var Qa=(0,y.Z)(Ja,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const es={size:va.size,type:va.type},ts=(0,s.aZ)({name:"ElButtonGroup"}),ns=(0,s.aZ)({...ts,props:es,setup(e){const t=e;(0,s.JJ)(pa,(0,l.qj)({size:(0,l.Vh)(t,"size"),type:(0,l.Vh)(t,"type")}));const n=(0,b.s3)("button");return(e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)(`${(0,l.SU)(n).b("group")}`)},[(0,s.WI)(e.$slots,"default")],2))}});var rs=(0,y.Z)(ns,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const is=(0,D.nz)(Qa,{ButtonGroup:rs}),os=(0,D.dp)(rs);var as=n(5743);const ss=(e,t)=>[e>0?e-1:void 0,e,eArray.from(Array.from({length:e}).keys()),us=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),cs=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),ds=function(e,t){const n=(0,u.J_)(e),r=(0,u.J_)(t);return n&&r?e.getTime()===t.getTime():!n&&!r&&e===t},ps=function(e,t){const n=(0,u.kJ)(e),r=(0,u.kJ)(t);return n&&r?e.length===t.length&&e.every(((e,n)=>ds(e,t[n]))):!n&&!r&&ds(e,t)},hs=function(e,t,n){const r=(0,p.xb)(t)||"x"===t?as(e).locale(n):as(e,t).locale(n);return r.isValid()?r:void 0},fs=function(e,t,n){return(0,p.xb)(t)?e:"x"===t?+e:as(e).locale(n).format(t)},ms=(e,t)=>{var n;const r=[],i=null==t?void 0:t();for(let o=0;o{const n=e.subtract(1,"month").endOf("month").date();return ls(t).map(((e,r)=>n-(t-r-1)))},vs=e=>{const t=e.daysInMonth();return ls(t).map(((e,t)=>t+1))},ys=e=>ls(e.length/7).map((t=>{const n=7*t;return e.slice(n,n+7)})),bs=(0,d.o8)({selectedDay:{type:(0,d.Cq)(Object)},range:{type:(0,d.Cq)(Array)},date:{type:(0,d.Cq)(Object),required:!0},hideHeader:{type:Boolean}}),ws={pick:e=>(0,u.Kn)(e)};var Ss=n(225),xs=n(2137);const _s=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],Cs=["sun","mon","tue","wed","thu","fri","sat"],Es=(e,t)=>{as.extend(Ss);const n=as.localeData().firstDayOfWeek(),{t:r,lang:i}=(0,xs.bU)(),o=as().locale(i.value),a=(0,s.Fl)((()=>!!e.range&&!!e.range.length)),l=(0,s.Fl)((()=>{let t=[];if(a.value){const[n,r]=e.range,i=ls(r.date()-n.date()+1).map((e=>({text:n.date()+e,type:"current"})));let o=i.length%7;o=0===o?0:7-o;const a=ls(o).map(((e,t)=>({text:t+1,type:"next"})));t=i.concat(a)}else{const r=e.date.startOf("month").day(),i=gs(e.date,(r-n+7)%7).map((e=>({text:e,type:"prev"}))),o=vs(e.date).map((e=>({text:e,type:"current"})));t=[...i,...o];const a=7-(t.length%7||7),s=ls(a).map(((e,t)=>({text:t+1,type:"next"})));t=t.concat(s)}return ys(t)})),u=(0,s.Fl)((()=>{const e=n;return 0===e?Cs.map((e=>r(`el.datepicker.weeks.${e}`))):Cs.slice(e).concat(Cs.slice(0,e)).map((e=>r(`el.datepicker.weeks.${e}`)))})),c=(t,n)=>{switch(n){case"prev":return e.date.startOf("month").subtract(1,"month").date(t);case"next":return e.date.startOf("month").add(1,"month").date(t);case"current":return e.date.date(t)}},d=({text:e,type:n})=>{const r=c(e,n);t("pick",r)},p=({text:t,type:n})=>{const r=c(t,n);return{isSelected:r.isSame(e.selectedDay),type:`${n}-month`,day:r.format("YYYY-MM-DD"),date:r.toDate()}};return{now:o,isInRange:a,rows:l,weekDays:u,getFormattedDate:c,handlePickDay:d,getSlotData:p}},Ms={key:0},ks=["onClick"],Ts=(0,s.aZ)({name:"DateTable"}),As=(0,s.aZ)({...Ts,props:bs,emits:ws,setup(e,{expose:t,emit:n}){const r=e,{isInRange:i,now:o,rows:a,weekDays:c,getFormattedDate:d,handlePickDay:p,getSlotData:h}=Es(r,n),f=(0,b.s3)("calendar-table"),m=(0,b.s3)("calendar-day"),g=({text:e,type:t})=>{const n=[t];if("current"===t){const i=d(e,t);i.isSame(r.selectedDay,"day")&&n.push(m.is("selected")),i.isSame(o,"day")&&n.push(m.is("today"))}return n};return t({getFormattedDate:d}),(e,t)=>((0,s.wg)(),(0,s.iD)("table",{class:(0,u.C_)([(0,l.SU)(f).b(),(0,l.SU)(f).is("range",(0,l.SU)(i))]),cellspacing:"0",cellpadding:"0"},[e.hideHeader?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)("thead",Ms,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)((0,l.SU)(c),(e=>((0,s.wg)(),(0,s.iD)("th",{key:e},(0,u.zw)(e),1)))),128))])),(0,s._)("tbody",null,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)((0,l.SU)(a),((t,n)=>((0,s.wg)(),(0,s.iD)("tr",{key:n,class:(0,u.C_)({[(0,l.SU)(f).e("row")]:!0,[(0,l.SU)(f).em("row","hide-border")]:0===n&&e.hideHeader})},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(t,((t,n)=>((0,s.wg)(),(0,s.iD)("td",{key:n,class:(0,u.C_)(g(t)),onClick:e=>(0,l.SU)(p)(t)},[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(m).b())},[(0,s.WI)(e.$slots,"date-cell",{data:(0,l.SU)(h)(t)},(()=>[(0,s._)("span",null,(0,u.zw)(t.text),1)]))],2)],10,ks)))),128))],2)))),128))])],2))}});var Us=(0,y.Z)(As,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]);const Is=(e,t)=>{const n=e.endOf("month"),r=t.startOf("month"),i=n.isSame(r,"week"),o=i?r.add(1,"week"):r;return[[e,n],[o.startOf("week"),t]]},Ds=(e,t)=>{const n=e.endOf("month"),r=e.add(1,"month").startOf("month"),i=n.isSame(r,"week")?r.add(1,"week"):r,o=i.endOf("month"),a=t.startOf("month"),s=o.isSame(a,"week")?a.add(1,"week"):a;return[[e,n],[i.startOf("week"),o],[s.startOf("week"),t]]},Os=(e,t,n)=>{const r=(0,s.Rr)(),{lang:i}=(0,xs.bU)(),o=(0,l.iH)(),a=as().locale(i.value),u=(0,s.Fl)({get(){return e.modelValue?d.value:o.value},set(e){if(!e)return;o.value=e;const n=e.toDate();t(m,n),t(h,n)}}),c=(0,s.Fl)((()=>{if(!e.range)return[];const t=e.range.map((e=>as(e).locale(i.value))),[r,o]=t;return r.isAfter(o)?((0,S.N)(n,"end time should be greater than start time"),[]):r.isSame(o,"month")?y(r,o):r.add(1,"month").month()!==o.month()?((0,S.N)(n,"start time and end time interval must not exceed two months"),[]):y(r,o)})),d=(0,s.Fl)((()=>e.modelValue?as(e.modelValue).locale(i.value):u.value||(c.value.length?c.value[0][0]:a))),p=(0,s.Fl)((()=>d.value.subtract(1,"month").date(1))),f=(0,s.Fl)((()=>d.value.add(1,"month").date(1))),g=(0,s.Fl)((()=>d.value.subtract(1,"year").date(1))),v=(0,s.Fl)((()=>d.value.add(1,"year").date(1))),y=(e,t)=>{const r=e.startOf("week"),i=t.endOf("week"),o=r.get("month"),a=i.get("month");return o===a?[[r,i]]:(o+1)%12===a?Is(r,i):o+2===a||(o+1)%11===a?Ds(r,i):((0,S.N)(n,"start time and end time interval must not exceed two months"),[])},b=e=>{u.value=e},w=e=>{const t={"prev-month":p.value,"next-month":f.value,"prev-year":g.value,"next-year":v.value,today:a},n=t[e];n.isSame(d.value,"day")||b(n)};return ha({from:'"dateCell"',replacement:'"date-cell"',scope:"ElCalendar",version:"2.3.0",ref:"https://element-plus.org/en-US/component/calendar.html#slots",type:"Slot"},(0,s.Fl)((()=>!!r.dateCell))),{calculateValidatedDateRange:y,date:d,realSelectedDay:u,pickDay:b,selectDate:w,validatedRange:c}},Ps=e=>(0,u.kJ)(e)&&2===e.length&&e.every((e=>(0,u.J_)(e))),Ls=(0,d.o8)({modelValue:{type:Date},range:{type:(0,d.Cq)(Array),validator:Ps}}),Rs={[h]:e=>(0,u.J_)(e),[m]:e=>(0,u.J_)(e)},Ns="ElCalendar",Fs=(0,s.aZ)({name:Ns}),zs=(0,s.aZ)({...Fs,props:Ls,emits:Rs,setup(e,{expose:t,emit:n}){const r=e,i=(0,b.s3)("calendar"),{calculateValidatedDateRange:o,date:a,pickDay:c,realSelectedDay:d,selectDate:p,validatedRange:h}=Os(r,n,Ns),{t:f}=(0,xs.bU)(),m=(0,s.Fl)((()=>{const e=`el.datepicker.month${a.value.format("M")}`;return`${a.value.year()} ${f("el.datepicker.year")} ${f(e)}`}));return t({selectedDay:d,pickDay:c,selectDate:p,calculateValidatedDateRange:o}),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)((0,l.SU)(i).b())},[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(i).e("header"))},[(0,s.WI)(e.$slots,"header",{date:(0,l.SU)(m)},(()=>[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(i).e("title"))},(0,u.zw)((0,l.SU)(m)),3),0===(0,l.SU)(h).length?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)((0,l.SU)(i).e("button-group"))},[(0,s.Wm)((0,l.SU)(os),null,{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(is),{size:"small",onClick:t[0]||(t[0]=e=>(0,l.SU)(p)("prev-month"))},{default:(0,s.w5)((()=>[(0,s.Uk)((0,u.zw)((0,l.SU)(f)("el.datepicker.prevMonth")),1)])),_:1}),(0,s.Wm)((0,l.SU)(is),{size:"small",onClick:t[1]||(t[1]=e=>(0,l.SU)(p)("today"))},{default:(0,s.w5)((()=>[(0,s.Uk)((0,u.zw)((0,l.SU)(f)("el.datepicker.today")),1)])),_:1}),(0,s.Wm)((0,l.SU)(is),{size:"small",onClick:t[2]||(t[2]=e=>(0,l.SU)(p)("next-month"))},{default:(0,s.w5)((()=>[(0,s.Uk)((0,u.zw)((0,l.SU)(f)("el.datepicker.nextMonth")),1)])),_:1})])),_:1})],2)):(0,s.kq)("v-if",!0)]))],2),0===(0,l.SU)(h).length?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)((0,l.SU)(i).e("body"))},[(0,s.Wm)(Us,{date:(0,l.SU)(a),"selected-day":(0,l.SU)(d),onPick:(0,l.SU)(c)},(0,s.Nv)({_:2},[e.$slots["date-cell"]||e.$slots.dateCell?{name:"date-cell",fn:(0,s.w5)((t=>[e.$slots["date-cell"]?(0,s.WI)(e.$slots,"date-cell",(0,u.vs)((0,s.dG)({key:0},t))):(0,s.WI)(e.$slots,"dateCell",(0,u.vs)((0,s.dG)({key:1},t)))]))}:void 0]),1032,["date","selected-day","onPick"])],2)):((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,u.C_)((0,l.SU)(i).e("body"))},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)((0,l.SU)(h),((t,n)=>((0,s.wg)(),(0,s.j4)(Us,{key:n,date:t[0],"selected-day":(0,l.SU)(d),range:t,"hide-header":0!==n,onPick:(0,l.SU)(c)},(0,s.Nv)({_:2},[e.$slots["date-cell"]||e.$slots.dateCell?{name:"date-cell",fn:(0,s.w5)((t=>[e.$slots["date-cell"]?(0,s.WI)(e.$slots,"date-cell",(0,u.vs)((0,s.dG)({key:0},t))):(0,s.WI)(e.$slots,"dateCell",(0,u.vs)((0,s.dG)({key:1},t)))]))}:void 0]),1032,["date","selected-day","range","hide-header","onPick"])))),128))],2))],2))}});var Bs=(0,y.Z)(zs,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);const Hs=(0,D.nz)(Bs),js=(0,d.o8)({header:{type:String,default:""},bodyStyle:{type:(0,d.Cq)([String,Object,Array]),default:""},shadow:{type:String,values:["always","hover","never"],default:"always"}}),Vs=(0,s.aZ)({name:"ElCard"}),Ws=(0,s.aZ)({...Vs,props:js,setup(e){const t=(0,b.s3)("card");return(e,n)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)([(0,l.SU)(t).b(),(0,l.SU)(t).is(`${e.shadow}-shadow`)])},[e.$slots.header||e.header?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)((0,l.SU)(t).e("header"))},[(0,s.WI)(e.$slots,"header",{},(()=>[(0,s.Uk)((0,u.zw)(e.header),1)]))],2)):(0,s.kq)("v-if",!0),(0,s._)("div",{class:(0,u.C_)((0,l.SU)(t).e("body")),style:(0,u.j5)(e.bodyStyle)},[(0,s.WI)(e.$slots,"default")],6)],2))}});var $s=(0,y.Z)(Ws,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const qs=(0,D.nz)($s),Gs=(0,d.o8)({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0}}),Zs={change:(e,t)=>[e,t].every(p.hj)};var Ys="Expected a function";function Ks(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError(Ys);return(0,$.Z)(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),he(e,t,{leading:r,maxWait:t,trailing:i})}var Xs=Ks;const Js=Symbol("carouselContextKey"),Qs="utils/vue/vnode";var el=(e=>(e[e["TEXT"]=1]="TEXT",e[e["CLASS"]=2]="CLASS",e[e["STYLE"]=4]="STYLE",e[e["PROPS"]=8]="PROPS",e[e["FULL_PROPS"]=16]="FULL_PROPS",e[e["HYDRATE_EVENTS"]=32]="HYDRATE_EVENTS",e[e["STABLE_FRAGMENT"]=64]="STABLE_FRAGMENT",e[e["KEYED_FRAGMENT"]=128]="KEYED_FRAGMENT",e[e["UNKEYED_FRAGMENT"]=256]="UNKEYED_FRAGMENT",e[e["NEED_PATCH"]=512]="NEED_PATCH",e[e["DYNAMIC_SLOTS"]=1024]="DYNAMIC_SLOTS",e[e["HOISTED"]=-1]="HOISTED",e[e["BAIL"]=-2]="BAIL",e))(el||{});function tl(e){return(0,s.lA)(e)&&e.type===s.HY}function nl(e){return(0,s.lA)(e)&&e.type===s.sv}function rl(e){return(0,s.lA)(e)&&!tl(e)&&!nl(e)}const il=e=>{if(!(0,s.lA)(e))return(0,S.N)(Qs,"[getNormalizedProps] must be a VNode"),{};const t=e.props||{},n=((0,s.lA)(e.type)?e.type.props:void 0)||{},r={};return Object.keys(n).forEach((e=>{(0,u.RI)(n[e],"default")&&(r[e]=n[e].default)})),Object.keys(t).forEach((e=>{r[(0,u._A)(e)]=t[e]})),r},ol=e=>{if(!(0,u.kJ)(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},al=e=>{const t=(0,u.kJ)(e)?e:[e],n=[];return t.forEach((e=>{var t;(0,u.kJ)(e)?n.push(...al(e)):(0,s.lA)(e)&&(0,u.kJ)(e.children)?n.push(...al(e.children)):(n.push(e),(0,s.lA)(e)&&(null==(t=e.component)?void 0:t.subTree)&&n.push(...al(e.component.subTree)))})),n},sl=(e,t,n)=>{const r=al(e.subTree).filter((e=>{var n;return(0,s.lA)(e)&&(null==(n=e.type)?void 0:n.name)===t&&!!e.component})),i=r.map((e=>e.component.uid));return i.map((e=>n[e])).filter((e=>!!e))},ll=(e,t)=>{const n={},r=(0,l.XI)([]),i=i=>{n[i.uid]=i,r.value=sl(e,t,n)},o=e=>{delete n[e],r.value=r.value.filter((t=>t.uid!==e))};return{children:r,addChild:i,removeChild:o}},ul=300,cl=(e,t,n)=>{const{children:r,addChild:i,removeChild:o}=ll((0,s.FN)(),"ElCarouselItem"),a=(0,l.iH)(-1),d=(0,l.iH)(null),p=(0,l.iH)(!1),h=(0,l.iH)(),f=(0,l.iH)(0),m=(0,s.Fl)((()=>"never"!==e.arrow&&!(0,l.SU)(y))),g=(0,s.Fl)((()=>r.value.some((e=>e.props.label.toString().length>0)))),v=(0,s.Fl)((()=>"card"===e.type)),y=(0,s.Fl)((()=>"vertical"===e.direction)),b=(0,s.Fl)((()=>"auto"!==e.height?{height:e.height}:{height:`${f.value}px`,overflow:"hidden"})),w=Xs((e=>{M(e)}),ul,{trailing:!0}),x=Xs((e=>{P(e)}),ul);function _(){d.value&&(clearInterval(d.value),d.value=null)}function C(){e.interval<=0||!e.autoplay||d.value||(d.value=setInterval((()=>E()),e.interval))}const E=()=>{a.valuee.props.name===t));e.length>0&&(t=r.value.indexOf(e[0]))}if(t=Number(t),Number.isNaN(t)||t!==Math.floor(t))return void(0,S.N)(n,"index must be integer.");const i=r.value.length,o=a.value;a.value=t<0?e.loop?i-1:0:t>=i?e.loop?0:i-1:t,o===a.value&&k(o),N()}function k(e){r.value.forEach(((t,n)=>{t.translateItem(n,a.value,e)}))}function T(e,t){var n,i,o,a;const s=(0,l.SU)(r),u=s.length;if(0===u||!e.states.inStage)return!1;const c=t+1,d=t-1,p=u-1,h=s[p].states.active,f=s[0].states.active,m=null==(i=null==(n=s[c])?void 0:n.states)?void 0:i.active,g=null==(a=null==(o=s[d])?void 0:o.states)?void 0:a.active;return t===p&&f||m?"left":!!(0===t&&h||g)&&"right"}function A(){p.value=!0,e.pauseOnHover&&_()}function U(){p.value=!1,C()}function I(e){(0,l.SU)(y)||r.value.forEach(((t,n)=>{e===T(t,n)&&(t.states.hover=!0)}))}function D(){(0,l.SU)(y)||r.value.forEach((e=>{e.states.hover=!1}))}function O(e){a.value=e}function P(t){"hover"===e.trigger&&t!==a.value&&(a.value=t)}function L(){M(a.value-1)}function R(){M(a.value+1)}function N(){_(),C()}function F(t){"auto"===e.height&&(f.value=t)}(0,s.YP)((()=>a.value),((e,n)=>{k(n),n>-1&&t("change",e,n)})),(0,s.YP)((()=>e.autoplay),(e=>{e?C():_()})),(0,s.YP)((()=>e.loop),(()=>{M(a.value)})),(0,s.YP)((()=>e.interval),(()=>{N()})),(0,s.YP)((()=>r.value),(()=>{r.value.length>0&&M(e.initialIndex)}));const z=(0,l.XI)();return(0,s.bv)((()=>{z.value=(0,c.yU7)(h.value,(()=>{k()})),C()})),(0,s.Jd)((()=>{_(),h.value&&z.value&&z.value.stop()})),(0,s.JJ)(Js,{root:h,isCardType:v,isVertical:y,items:r,loop:e.loop,addItem:i,removeItem:o,setActiveItem:M,setContainerHeight:F}),{root:h,activeIndex:a,arrowDisplay:m,hasLabel:g,hover:p,isCardType:v,items:r,isVertical:y,containerStyle:b,handleButtonEnter:I,handleButtonLeave:D,handleIndicatorClick:O,handleMouseEnter:A,handleMouseLeave:U,setActiveItem:M,prev:L,next:R,throttledArrowClick:w,throttledIndicatorHover:x}},dl=["onMouseenter","onClick"],pl={key:0},hl="ElCarousel",fl=(0,s.aZ)({name:hl}),ml=(0,s.aZ)({...fl,props:Gs,emits:Zs,setup(e,{expose:t,emit:n}){const r=e,{root:i,activeIndex:o,arrowDisplay:a,hasLabel:c,hover:d,isCardType:p,items:h,isVertical:f,containerStyle:m,handleButtonEnter:g,handleButtonLeave:v,handleIndicatorClick:y,handleMouseEnter:w,handleMouseLeave:S,setActiveItem:x,prev:_,next:C,throttledArrowClick:E,throttledIndicatorHover:M}=cl(r,n,hl),k=(0,b.s3)("carousel"),T=(0,s.Fl)((()=>{const e=[k.b(),k.m(r.direction)];return(0,l.SU)(p)&&e.push(k.m("card")),e})),A=(0,s.Fl)((()=>{const e=[k.e("indicators"),k.em("indicators",r.direction)];return(0,l.SU)(c)&&e.push(k.em("indicators","labels")),"outside"===r.indicatorPosition&&e.push(k.em("indicators","outside")),(0,l.SU)(f)&&e.push(k.em("indicators","right")),e}));return t({setActiveItem:x,prev:_,next:C}),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{ref_key:"root",ref:i,class:(0,u.C_)((0,l.SU)(T)),onMouseenter:t[6]||(t[6]=(0,P.iM)(((...e)=>(0,l.SU)(w)&&(0,l.SU)(w)(...e)),["stop"])),onMouseleave:t[7]||(t[7]=(0,P.iM)(((...e)=>(0,l.SU)(S)&&(0,l.SU)(S)(...e)),["stop"]))},[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(k).e("container")),style:(0,u.j5)((0,l.SU)(m))},[(0,l.SU)(a)?((0,s.wg)(),(0,s.j4)(P.uT,{key:0,name:"carousel-arrow-left",persisted:""},{default:(0,s.w5)((()=>[(0,s.wy)((0,s._)("button",{type:"button",class:(0,u.C_)([(0,l.SU)(k).e("arrow"),(0,l.SU)(k).em("arrow","left")]),onMouseenter:t[0]||(t[0]=e=>(0,l.SU)(g)("left")),onMouseleave:t[1]||(t[1]=(...e)=>(0,l.SU)(v)&&(0,l.SU)(v)(...e)),onClick:t[2]||(t[2]=(0,P.iM)((e=>(0,l.SU)(E)((0,l.SU)(o)-1)),["stop"]))},[(0,s.Wm)((0,l.SU)(L.gn),null,{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.XdH))])),_:1})],34),[[P.F8,("always"===e.arrow||(0,l.SU)(d))&&(r.loop||(0,l.SU)(o)>0)]])])),_:1})):(0,s.kq)("v-if",!0),(0,l.SU)(a)?((0,s.wg)(),(0,s.j4)(P.uT,{key:1,name:"carousel-arrow-right",persisted:""},{default:(0,s.w5)((()=>[(0,s.wy)((0,s._)("button",{type:"button",class:(0,u.C_)([(0,l.SU)(k).e("arrow"),(0,l.SU)(k).em("arrow","right")]),onMouseenter:t[3]||(t[3]=e=>(0,l.SU)(g)("right")),onMouseleave:t[4]||(t[4]=(...e)=>(0,l.SU)(v)&&(0,l.SU)(v)(...e)),onClick:t[5]||(t[5]=(0,P.iM)((e=>(0,l.SU)(E)((0,l.SU)(o)+1)),["stop"]))},[(0,s.Wm)((0,l.SU)(L.gn),null,{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.olP))])),_:1})],34),[[P.F8,("always"===e.arrow||(0,l.SU)(d))&&(r.loop||(0,l.SU)(o)<(0,l.SU)(h).length-1)]])])),_:1})):(0,s.kq)("v-if",!0),(0,s.WI)(e.$slots,"default")],6),"none"!==e.indicatorPosition?((0,s.wg)(),(0,s.iD)("ul",{key:0,class:(0,u.C_)((0,l.SU)(A))},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)((0,l.SU)(h),((t,n)=>((0,s.wg)(),(0,s.iD)("li",{key:n,class:(0,u.C_)([(0,l.SU)(k).e("indicator"),(0,l.SU)(k).em("indicator",e.direction),(0,l.SU)(k).is("active",n===(0,l.SU)(o))]),onMouseenter:e=>(0,l.SU)(M)(n),onClick:(0,P.iM)((e=>(0,l.SU)(y)(n)),["stop"])},[(0,s._)("button",{class:(0,u.C_)((0,l.SU)(k).e("button"))},[(0,l.SU)(c)?((0,s.wg)(),(0,s.iD)("span",pl,(0,u.zw)(t.props.label),1)):(0,s.kq)("v-if",!0)],2)],42,dl)))),128))],2)):(0,s.kq)("v-if",!0)],34))}});var gl=(0,y.Z)(ml,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const vl=(0,d.o8)({name:{type:String,default:""},label:{type:[String,Number],default:""}}),yl=(e,t)=>{const n=(0,s.f3)(Js),r=(0,s.FN)();n||(0,S.N)(t,"usage: "),r||(0,S.N)(t,"compositional hook can only be invoked inside setups");const i=.83,o=(0,l.iH)(),a=(0,l.iH)(!1),u=(0,l.iH)(0),c=(0,l.iH)(1),d=(0,l.iH)(!1),h=(0,l.iH)(!1),f=(0,l.iH)(!1),m=(0,l.iH)(!1),{isCardType:g,isVertical:v}=n;function y(e,t,n){const r=n-1,i=t-1,o=t+1,a=n/2;return 0===t&&e===r?-1:t===r&&0===e?n:e=a?n+1:e>o&&e-t>=a?-2:e}function b(e,t){var r,o;const a=(0,l.SU)(v)?(null==(r=n.root.value)?void 0:r.offsetHeight)||0:(null==(o=n.root.value)?void 0:o.offsetWidth)||0;return f.value?a*((2-i)*(e-t)+1)/4:e{var a;const s=(0,l.SU)(g),S=null!=(a=n.items.value.length)?a:Number.NaN,x=e===t;s||(0,p.o8)(r)||(m.value=x||e===r),!x&&S>2&&n.loop&&(e=y(e,t,S));const _=(0,l.SU)(v);d.value=x,s?(f.value=Math.round(Math.abs(e-t))<=1,u.value=b(e,t),c.value=(0,l.SU)(d)?1:i):u.value=w(e,t,_),h.value=!0,x&&o.value&&n.setContainerHeight(o.value.offsetHeight)};function _(){if(n&&(0,l.SU)(g)){const e=n.items.value.findIndex((({uid:e})=>e===r.uid));n.setActiveItem(e)}}return(0,s.bv)((()=>{n.addItem({props:e,states:(0,l.qj)({hover:a,translate:u,scale:c,active:d,ready:h,inStage:f,animating:m}),uid:r.uid,translateItem:x})})),(0,s.Ah)((()=>{n.removeItem(r.uid)})),{carouselItemRef:o,active:d,animating:m,hover:a,inStage:f,isVertical:v,translate:u,isCardType:g,scale:c,ready:h,handleItemClick:_}},bl="ElCarouselItem",wl=(0,s.aZ)({name:"ElCarouselItem"}),Sl=(0,s.aZ)({...wl,props:vl,setup(e){const t=e,n=(0,b.s3)("carousel"),{carouselItemRef:r,active:i,animating:o,hover:a,inStage:c,isVertical:d,translate:p,isCardType:h,scale:f,ready:m,handleItemClick:g}=yl(t,bl),v=(0,s.Fl)((()=>{const e="translate"+((0,l.SU)(d)?"Y":"X"),t=`${e}(${(0,l.SU)(p)}px)`,n=`scale(${(0,l.SU)(f)})`,r=[t,n].join(" ");return{transform:r}}));return(e,t)=>(0,s.wy)(((0,s.wg)(),(0,s.iD)("div",{ref_key:"carouselItemRef",ref:r,class:(0,u.C_)([(0,l.SU)(n).e("item"),(0,l.SU)(n).is("active",(0,l.SU)(i)),(0,l.SU)(n).is("in-stage",(0,l.SU)(c)),(0,l.SU)(n).is("hover",(0,l.SU)(a)),(0,l.SU)(n).is("animating",(0,l.SU)(o)),{[(0,l.SU)(n).em("item","card")]:(0,l.SU)(h),[(0,l.SU)(n).em("item","card-vertical")]:(0,l.SU)(h)&&(0,l.SU)(d)}]),style:(0,u.j5)((0,l.SU)(v)),onClick:t[0]||(t[0]=(...e)=>(0,l.SU)(g)&&(0,l.SU)(g)(...e))},[(0,l.SU)(h)?(0,s.wy)(((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)((0,l.SU)(n).e("mask"))},null,2)),[[P.F8,!(0,l.SU)(i)]]):(0,s.kq)("v-if",!0),(0,s.WI)(e.$slots,"default")],6)),[[P.F8,(0,l.SU)(m)]])}});var xl=(0,y.Z)(Sl,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const _l=(0,D.nz)(gl,{CarouselItem:xl}),Cl=(0,D.dp)(xl);var El=n(3058);function Ml(){this.__data__=new El.Z,this.size=0}var kl=Ml;function Tl(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}var Al=Tl;function Ul(e){return this.__data__.get(e)}var Il=Ul;function Dl(e){return this.__data__.has(e)}var Ol=Dl,Pl=n(9795),Ll=n(9350),Rl=200;function Nl(e,t){var n=this.__data__;if(n instanceof El.Z){var r=n.__data__;if(!Pl.Z||r.length-1&&e%1==0&&e<=gu}var yu=vu,bu="[object Arguments]",wu="[object Array]",Su="[object Boolean]",xu="[object Date]",_u="[object Error]",Cu="[object Function]",Eu="[object Map]",Mu="[object Number]",ku="[object Object]",Tu="[object RegExp]",Au="[object Set]",Uu="[object String]",Iu="[object WeakMap]",Du="[object ArrayBuffer]",Ou="[object DataView]",Pu="[object Float32Array]",Lu="[object Float64Array]",Ru="[object Int8Array]",Nu="[object Int16Array]",Fu="[object Int32Array]",zu="[object Uint8Array]",Bu="[object Uint8ClampedArray]",Hu="[object Uint16Array]",ju="[object Uint32Array]",Vu={};function Wu(e){return(0,Kl.Z)(e)&&yu(e.length)&&!!Vu[(0,Yl.Z)(e)]}Vu[Pu]=Vu[Lu]=Vu[Ru]=Vu[Nu]=Vu[Fu]=Vu[zu]=Vu[Bu]=Vu[Hu]=Vu[ju]=!0,Vu[bu]=Vu[wu]=Vu[Du]=Vu[Su]=Vu[Ou]=Vu[xu]=Vu[_u]=Vu[Cu]=Vu[Eu]=Vu[Mu]=Vu[ku]=Vu[Tu]=Vu[Au]=Vu[Uu]=Vu[Iu]=!1;var $u=Wu;function qu(e){return function(t){return e(t)}}var Gu=qu,Zu=n(2701),Yu="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ku=Yu&&"object"==typeof module&&module&&!module.nodeType&&module,Xu=Ku&&Ku.exports===Yu,Ju=Xu&&Zu.Z.process,Qu=function(){try{var e=Ku&&Ku.require&&Ku.require("util").types;return e||Ju&&Ju.binding&&Ju.binding("util")}catch(hz){}}(),ec=Qu,tc=ec&&ec.isTypedArray,nc=tc?Gu(tc):$u,rc=nc,ic=Object.prototype,oc=ic.hasOwnProperty;function ac(e,t){var n=(0,ou.Z)(e),r=!n&&iu(e),i=!n&&!r&&fu(e),o=!n&&!r&&!i&&rc(e),a=n||r||i||o,s=a?Zl(e.length,String):[],l=s.length;for(var u in e)!t&&!oc.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||(0,mu.Z)(u,l))||s.push(u);return s}var sc=ac,lc=Object.prototype;function uc(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||lc;return e===n}var cc=uc;function dc(e,t){return function(n){return e(t(n))}}var pc=dc,hc=pc(Object.keys,Object),fc=hc,mc=Object.prototype,gc=mc.hasOwnProperty;function vc(e){if(!cc(e))return fc(e);var t=[];for(var n in Object(e))gc.call(e,n)&&"constructor"!=n&&t.push(n);return t}var yc=vc,bc=n(9138);function wc(e){return null!=e&&yu(e.length)&&!(0,bc.Z)(e)}var Sc=wc;function xc(e){return Sc(e)?sc(e):yc(e)}var _c=xc;function Cc(e,t){return e&&ql(t,_c(t),e)}var Ec=Cc;function Mc(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}var kc=Mc,Tc=Object.prototype,Ac=Tc.hasOwnProperty;function Uc(e){if(!(0,$.Z)(e))return kc(e);var t=cc(e),n=[];for(var r in e)("constructor"!=r||!t&&Ac.call(e,r))&&n.push(r);return n}var Ic=Uc;function Dc(e){return Sc(e)?sc(e,!0):Ic(e)}var Oc=Dc;function Pc(e,t){return e&&ql(t,Oc(t),e)}var Lc=Pc,Rc="object"==typeof exports&&exports&&!exports.nodeType&&exports,Nc=Rc&&"object"==typeof module&&module&&!module.nodeType&&module,Fc=Nc&&Nc.exports===Rc,zc=Fc?q.Z.Buffer:void 0,Bc=zc?zc.allocUnsafe:void 0;function Hc(e,t){if(t)return e.slice();var n=e.length,r=Bc?Bc(n):new e.constructor(n);return e.copy(r),r}var jc=Hc;function Vc(e,t){var n=-1,r=e.length;t||(t=Array(r));while(++ns))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,p=!0,h=n&Fh?new Dh:void 0;o.set(e,t),o.set(t,e);while(++d0&&n(s)?t>1?Uf(s,t-1,n,r,i):rd(i,s):r||(i[i.length]=s)}return i}var If=Uf,Df=1/0;function Of(e){var t=null==e?0:e.length;return t?If(e,Df):[]}var Pf=Of;const Lf={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:xe.Pp,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},Rf={[h]:e=>(0,u.HD)(e)||(0,p.hj)(e)||(0,p.jn)(e),change:e=>(0,u.HD)(e)||(0,p.hj)(e)||(0,p.jn)(e)},Nf=Symbol("checkboxGroupContextKey"),Ff=({model:e,isChecked:t})=>{const n=(0,s.f3)(Nf,void 0),r=(0,s.Fl)((()=>{var r,i;const o=null==(r=null==n?void 0:n.max)?void 0:r.value,a=null==(i=null==n?void 0:n.min)?void 0:i.value;return!(0,p.o8)(o)&&e.value.length>=o&&!t.value||!(0,p.o8)(a)&&e.value.length<=a&&t.value})),i=Be((0,s.Fl)((()=>(null==n?void 0:n.disabled.value)||r.value)));return{isDisabled:i,isLimitDisabled:r}},zf=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:i,isLabeledByFormItem:o})=>{const a=(0,s.f3)(Nf,void 0),{formItem:l}=Re(),{emit:u}=(0,s.FN)();function c(t){var n,r;return t===e.trueLabel||!0===t?null==(n=e.trueLabel)||n:null!=(r=e.falseLabel)&&r}function d(e,t){u("change",c(e),t)}function p(e){if(n.value)return;const t=e.target;u("change",c(t.checked),e)}async function h(a){if(!n.value&&!r.value&&!i.value&&o.value){const n=a.composedPath(),r=n.some((e=>"LABEL"===e.tagName));r||(t.value=c([!1,e.falseLabel].includes(t.value)),await(0,s.Y3)(),d(t.value,a))}}const f=(0,s.Fl)((()=>(null==a?void 0:a.validateEvent)||e.validateEvent));return(0,s.YP)((()=>e.modelValue),(()=>{f.value&&(null==l||l.validate("change").catch((e=>(0,S.N)(e))))})),{handleChange:p,onClickRoot:h}},Bf=e=>{const t=(0,l.iH)(!1),{emit:n}=(0,s.FN)(),r=(0,s.f3)(Nf,void 0),i=(0,s.Fl)((()=>!1===(0,p.o8)(r))),o=(0,l.iH)(!1),a=(0,s.Fl)({get(){var n,o;return i.value?null==(n=null==r?void 0:r.modelValue)?void 0:n.value:null!=(o=e.modelValue)?o:t.value},set(e){var a,s;i.value&&(0,u.kJ)(e)?(o.value=void 0!==(null==(a=null==r?void 0:r.max)?void 0:a.value)&&e.length>(null==r?void 0:r.max.value),!1===o.value&&(null==(s=null==r?void 0:r.changeEvent)||s.call(r,e))):(n(h,e),t.value=e)}});return{model:a,isGroup:i,isLimitExceeded:o}},Hf=(e,t,{model:n})=>{const r=(0,s.f3)(Nf,void 0),i=(0,l.iH)(!1),o=(0,s.Fl)((()=>{const t=n.value;return(0,p.jn)(t)?t:(0,u.kJ)(t)?(0,u.Kn)(e.label)?t.map(l.IU).some((t=>Mf(t,e.label))):t.map(l.IU).includes(e.label):null!==t&&void 0!==t?t===e.trueLabel:!!t})),a=ze((0,s.Fl)((()=>{var e;return null==(e=null==r?void 0:r.size)?void 0:e.value})),{prop:!0}),c=ze((0,s.Fl)((()=>{var e;return null==(e=null==r?void 0:r.size)?void 0:e.value}))),d=(0,s.Fl)((()=>!(!t.default&&!e.label)));return{checkboxButtonSize:a,isChecked:o,isFocused:i,checkboxSize:c,hasOwnLabel:d}},jf=(e,{model:t})=>{function n(){(0,u.kJ)(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},Vf=(e,t)=>{const{formItem:n}=Re(),{model:r,isGroup:i,isLimitExceeded:o}=Bf(e),{isFocused:a,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c}=Hf(e,t,{model:r}),{isDisabled:d}=Ff({model:r,isChecked:s}),{inputId:p,isLabeledByFormItem:h}=Ne(e,{formItemContext:n,disableIdGeneration:c,disableIdManagement:i}),{handleChange:f,onClickRoot:m}=zf(e,{model:r,isLimitExceeded:o,hasOwnLabel:c,isDisabled:d,isLabeledByFormItem:h});return jf(e,{model:r}),{inputId:p,isLabeledByFormItem:h,isChecked:s,isDisabled:d,isFocused:a,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,model:r,handleChange:f,onClickRoot:m}},Wf=["tabindex","role","aria-checked"],$f=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],qf=["id","aria-hidden","disabled","value","name","tabindex"],Gf=(0,s.aZ)({name:"ElCheckbox"}),Zf=(0,s.aZ)({...Gf,props:Lf,emits:Rf,setup(e){const t=e,n=(0,s.Rr)(),{inputId:r,isLabeledByFormItem:i,isChecked:o,isDisabled:a,isFocused:c,checkboxSize:d,hasOwnLabel:p,model:h,handleChange:f,onClickRoot:m}=Vf(t,n),g=(0,b.s3)("checkbox"),v=(0,s.Fl)((()=>[g.b(),g.m(d.value),g.is("disabled",a.value),g.is("bordered",t.border),g.is("checked",o.value)])),y=(0,s.Fl)((()=>[g.e("input"),g.is("disabled",a.value),g.is("checked",o.value),g.is("indeterminate",t.indeterminate),g.is("focus",c.value)]));return(e,t)=>((0,s.wg)(),(0,s.j4)((0,s.LL)(!(0,l.SU)(p)&&(0,l.SU)(i)?"span":"label"),{class:(0,u.C_)((0,l.SU)(v)),"aria-controls":e.indeterminate?e.controls:null,onClick:(0,l.SU)(m)},{default:(0,s.w5)((()=>[(0,s._)("span",{class:(0,u.C_)((0,l.SU)(y)),tabindex:e.indeterminate?0:void 0,role:e.indeterminate?"checkbox":void 0,"aria-checked":e.indeterminate?"mixed":void 0},[e.trueLabel||e.falseLabel?(0,s.wy)(((0,s.wg)(),(0,s.iD)("input",{key:0,id:(0,l.SU)(r),"onUpdate:modelValue":t[0]||(t[0]=e=>(0,l.dq)(h)?h.value=e:null),class:(0,u.C_)((0,l.SU)(g).e("original")),type:"checkbox","aria-hidden":e.indeterminate?"true":"false",name:e.name,tabindex:e.tabindex,disabled:(0,l.SU)(a),"true-value":e.trueLabel,"false-value":e.falseLabel,onChange:t[1]||(t[1]=(...e)=>(0,l.SU)(f)&&(0,l.SU)(f)(...e)),onFocus:t[2]||(t[2]=e=>c.value=!0),onBlur:t[3]||(t[3]=e=>c.value=!1)},null,42,$f)),[[P.e8,(0,l.SU)(h)]]):(0,s.wy)(((0,s.wg)(),(0,s.iD)("input",{key:1,id:(0,l.SU)(r),"onUpdate:modelValue":t[4]||(t[4]=e=>(0,l.dq)(h)?h.value=e:null),class:(0,u.C_)((0,l.SU)(g).e("original")),type:"checkbox","aria-hidden":e.indeterminate?"true":"false",disabled:(0,l.SU)(a),value:e.label,name:e.name,tabindex:e.tabindex,onChange:t[5]||(t[5]=(...e)=>(0,l.SU)(f)&&(0,l.SU)(f)(...e)),onFocus:t[6]||(t[6]=e=>c.value=!0),onBlur:t[7]||(t[7]=e=>c.value=!1)},null,42,qf)),[[P.e8,(0,l.SU)(h)]]),(0,s._)("span",{class:(0,u.C_)((0,l.SU)(g).e("inner"))},null,2)],10,Wf),(0,l.SU)(p)?((0,s.wg)(),(0,s.iD)("span",{key:0,class:(0,u.C_)((0,l.SU)(g).e("label"))},[(0,s.WI)(e.$slots,"default"),e.$slots.default?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)(s.HY,{key:0},[(0,s.Uk)((0,u.zw)(e.label),1)],64))],2)):(0,s.kq)("v-if",!0)])),_:3},8,["class","aria-controls","onClick"]))}});var Yf=(0,y.Z)(Zf,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const Kf=["name","tabindex","disabled","true-value","false-value"],Xf=["name","tabindex","disabled","value"],Jf=(0,s.aZ)({name:"ElCheckboxButton"}),Qf=(0,s.aZ)({...Jf,props:Lf,emits:Rf,setup(e){const t=e,n=(0,s.Rr)(),{isFocused:r,isChecked:i,isDisabled:o,checkboxButtonSize:a,model:c,handleChange:d}=Vf(t,n),p=(0,s.f3)(Nf,void 0),h=(0,b.s3)("checkbox"),f=(0,s.Fl)((()=>{var e,t,n,r;const i=null!=(t=null==(e=null==p?void 0:p.fill)?void 0:e.value)?t:"";return{backgroundColor:i,borderColor:i,color:null!=(r=null==(n=null==p?void 0:p.textColor)?void 0:n.value)?r:"",boxShadow:i?`-1px 0 0 0 ${i}`:void 0}})),m=(0,s.Fl)((()=>[h.b("button"),h.bm("button",a.value),h.is("disabled",o.value),h.is("checked",i.value),h.is("focus",r.value)]));return(e,t)=>((0,s.wg)(),(0,s.iD)("label",{class:(0,u.C_)((0,l.SU)(m))},[e.trueLabel||e.falseLabel?(0,s.wy)(((0,s.wg)(),(0,s.iD)("input",{key:0,"onUpdate:modelValue":t[0]||(t[0]=e=>(0,l.dq)(c)?c.value=e:null),class:(0,u.C_)((0,l.SU)(h).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:(0,l.SU)(o),"true-value":e.trueLabel,"false-value":e.falseLabel,onChange:t[1]||(t[1]=(...e)=>(0,l.SU)(d)&&(0,l.SU)(d)(...e)),onFocus:t[2]||(t[2]=e=>r.value=!0),onBlur:t[3]||(t[3]=e=>r.value=!1)},null,42,Kf)),[[P.e8,(0,l.SU)(c)]]):(0,s.wy)(((0,s.wg)(),(0,s.iD)("input",{key:1,"onUpdate:modelValue":t[4]||(t[4]=e=>(0,l.dq)(c)?c.value=e:null),class:(0,u.C_)((0,l.SU)(h).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:(0,l.SU)(o),value:e.label,onChange:t[5]||(t[5]=(...e)=>(0,l.SU)(d)&&(0,l.SU)(d)(...e)),onFocus:t[6]||(t[6]=e=>r.value=!0),onBlur:t[7]||(t[7]=e=>r.value=!1)},null,42,Xf)),[[P.e8,(0,l.SU)(c)]]),e.$slots.default||e.label?((0,s.wg)(),(0,s.iD)("span",{key:2,class:(0,u.C_)((0,l.SU)(h).be("button","inner")),style:(0,u.j5)((0,l.SU)(i)?(0,l.SU)(f):void 0)},[(0,s.WI)(e.$slots,"default",{},(()=>[(0,s.Uk)((0,u.zw)(e.label),1)]))],6)):(0,s.kq)("v-if",!0)],2))}});var em=(0,y.Z)(Qf,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]),tm=n(4507),nm=n(889),rm=n(650);function im(e,t,n){var r=-1,i=t.length,o={};while(++r0){if(++t>=Am)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Om=Dm,Pm=Om(Tm),Lm=Pm;function Rm(e){return Lm(Sm(e,void 0,gm),e+"")}var Nm=Rm,Fm=Nm((function(e,t){return null==e?{}:fm(e,t)})),zm=Fm;const Bm=(0,d.o8)({modelValue:{type:(0,d.Cq)(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:xe.Pp,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),Hm={[h]:e=>(0,u.kJ)(e),change:e=>(0,u.kJ)(e)},jm=(0,s.aZ)({name:"ElCheckboxGroup"}),Vm=(0,s.aZ)({...jm,props:Bm,emits:Hm,setup(e,{emit:t}){const n=e,r=(0,b.s3)("checkbox"),{formItem:i}=Re(),{inputId:o,isLabeledByFormItem:a}=Ne(n,{formItemContext:i}),c=async e=>{t(h,e),await(0,s.Y3)(),t("change",e)},d=(0,s.Fl)({get(){return n.modelValue},set(e){c(e)}});return(0,s.JJ)(Nf,{...zm((0,l.BK)(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:d,changeEvent:c}),(0,s.YP)((()=>n.modelValue),(()=>{n.validateEvent&&(null==i||i.validate("change").catch((e=>(0,S.N)(e))))})),(e,t)=>{var n;return(0,s.wg)(),(0,s.j4)((0,s.LL)(e.tag),{id:(0,l.SU)(o),class:(0,u.C_)((0,l.SU)(r).b("group")),role:"group","aria-label":(0,l.SU)(a)?void 0:e.label||"checkbox-group","aria-labelledby":(0,l.SU)(a)?null==(n=(0,l.SU)(i))?void 0:n.labelId:void 0},{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default")])),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var Wm=(0,y.Z)(Vm,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const $m=(0,D.nz)(Yf,{CheckboxButton:em,CheckboxGroup:Wm}),qm=(0,D.dp)(em),Gm=(0,D.dp)(Wm),Zm=(0,d.o8)({size:xe.Pp,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),Ym=(0,d.o8)({...Zm,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),Km={[h]:e=>(0,u.HD)(e)||(0,p.hj)(e)||(0,p.jn)(e),[f]:e=>(0,u.HD)(e)||(0,p.hj)(e)||(0,p.jn)(e)},Xm=Symbol("radioGroupKey"),Jm=(e,t)=>{const n=(0,l.iH)(),r=(0,s.f3)(Xm,void 0),i=(0,s.Fl)((()=>!!r)),o=(0,s.Fl)({get(){return i.value?r.modelValue:e.modelValue},set(o){i.value?r.changeEvent(o):t&&t(h,o),n.value.checked=e.modelValue===e.label}}),a=ze((0,s.Fl)((()=>null==r?void 0:r.size))),u=Be((0,s.Fl)((()=>null==r?void 0:r.disabled))),c=(0,l.iH)(!1),d=(0,s.Fl)((()=>u.value||i.value&&o.value!==e.label?-1:0));return{radioRef:n,isGroup:i,radioGroup:r,focus:c,size:a,disabled:u,tabIndex:d,modelValue:o}},Qm=["value","name","disabled"],eg=(0,s.aZ)({name:"ElRadio"}),tg=(0,s.aZ)({...eg,props:Ym,emits:Km,setup(e,{emit:t}){const n=e,r=(0,b.s3)("radio"),{radioRef:i,radioGroup:o,focus:a,size:c,disabled:d,modelValue:p}=Jm(n,t);function h(){(0,s.Y3)((()=>t("change",p.value)))}return(e,t)=>{var n;return(0,s.wg)(),(0,s.iD)("label",{class:(0,u.C_)([(0,l.SU)(r).b(),(0,l.SU)(r).is("disabled",(0,l.SU)(d)),(0,l.SU)(r).is("focus",(0,l.SU)(a)),(0,l.SU)(r).is("bordered",e.border),(0,l.SU)(r).is("checked",(0,l.SU)(p)===e.label),(0,l.SU)(r).m((0,l.SU)(c))])},[(0,s._)("span",{class:(0,u.C_)([(0,l.SU)(r).e("input"),(0,l.SU)(r).is("disabled",(0,l.SU)(d)),(0,l.SU)(r).is("checked",(0,l.SU)(p)===e.label)])},[(0,s.wy)((0,s._)("input",{ref_key:"radioRef",ref:i,"onUpdate:modelValue":t[0]||(t[0]=e=>(0,l.dq)(p)?p.value=e:null),class:(0,u.C_)((0,l.SU)(r).e("original")),value:e.label,name:e.name||(null==(n=(0,l.SU)(o))?void 0:n.name),disabled:(0,l.SU)(d),type:"radio",onFocus:t[1]||(t[1]=e=>a.value=!0),onBlur:t[2]||(t[2]=e=>a.value=!1),onChange:h},null,42,Qm),[[P.G2,(0,l.SU)(p)]]),(0,s._)("span",{class:(0,u.C_)((0,l.SU)(r).e("inner"))},null,2)],2),(0,s._)("span",{class:(0,u.C_)((0,l.SU)(r).e("label")),onKeydown:t[3]||(t[3]=(0,P.iM)((()=>{}),["stop"]))},[(0,s.WI)(e.$slots,"default",{},(()=>[(0,s.Uk)((0,u.zw)(e.label),1)]))],34)],2)}}});var ng=(0,y.Z)(tg,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const rg=(0,d.o8)({...Zm,name:{type:String,default:""}}),ig=["value","name","disabled"],og=(0,s.aZ)({name:"ElRadioButton"}),ag=(0,s.aZ)({...og,props:rg,setup(e){const t=e,n=(0,b.s3)("radio"),{radioRef:r,focus:i,size:o,disabled:a,modelValue:c,radioGroup:d}=Jm(t),p=(0,s.Fl)((()=>({backgroundColor:(null==d?void 0:d.fill)||"",borderColor:(null==d?void 0:d.fill)||"",boxShadow:(null==d?void 0:d.fill)?`-1px 0 0 0 ${d.fill}`:"",color:(null==d?void 0:d.textColor)||""})));return(e,t)=>{var h;return(0,s.wg)(),(0,s.iD)("label",{class:(0,u.C_)([(0,l.SU)(n).b("button"),(0,l.SU)(n).is("active",(0,l.SU)(c)===e.label),(0,l.SU)(n).is("disabled",(0,l.SU)(a)),(0,l.SU)(n).is("focus",(0,l.SU)(i)),(0,l.SU)(n).bm("button",(0,l.SU)(o))])},[(0,s.wy)((0,s._)("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":t[0]||(t[0]=e=>(0,l.dq)(c)?c.value=e:null),class:(0,u.C_)((0,l.SU)(n).be("button","original-radio")),value:e.label,type:"radio",name:e.name||(null==(h=(0,l.SU)(d))?void 0:h.name),disabled:(0,l.SU)(a),onFocus:t[1]||(t[1]=e=>i.value=!0),onBlur:t[2]||(t[2]=e=>i.value=!1)},null,42,ig),[[P.G2,(0,l.SU)(c)]]),(0,s._)("span",{class:(0,u.C_)((0,l.SU)(n).be("button","inner")),style:(0,u.j5)((0,l.SU)(c)===e.label?(0,l.SU)(p):{}),onKeydown:t[3]||(t[3]=(0,P.iM)((()=>{}),["stop"]))},[(0,s.WI)(e.$slots,"default",{},(()=>[(0,s.Uk)((0,u.zw)(e.label),1)]))],38)],2)}}});var sg=(0,y.Z)(ag,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const lg=(0,d.o8)({id:{type:String,default:void 0},size:xe.Pp,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),ug=Km,cg=["id","aria-label","aria-labelledby"],dg=(0,s.aZ)({name:"ElRadioGroup"}),pg=(0,s.aZ)({...dg,props:lg,emits:ug,setup(e,{emit:t}){const n=e,r=(0,b.s3)("radio"),i=Le(),o=(0,l.iH)(),{formItem:a}=Re(),{inputId:c,isLabeledByFormItem:d}=Ne(n,{formItemContext:a}),p=e=>{t(h,e),(0,s.Y3)((()=>t("change",e)))};(0,s.bv)((()=>{const e=o.value.querySelectorAll("[type=radio]"),t=e[0];!Array.from(e).some((e=>e.checked))&&t&&(t.tabIndex=0)}));const f=(0,s.Fl)((()=>n.name||i.value));return(0,s.JJ)(Xm,(0,l.qj)({...(0,l.BK)(n),changeEvent:p,name:f})),(0,s.YP)((()=>n.modelValue),(()=>{n.validateEvent&&(null==a||a.validate("change").catch((e=>(0,S.N)(e))))})),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{id:(0,l.SU)(c),ref_key:"radioGroupRef",ref:o,class:(0,u.C_)((0,l.SU)(r).b("group")),role:"radiogroup","aria-label":(0,l.SU)(d)?void 0:e.label||"radio-group","aria-labelledby":(0,l.SU)(d)?(0,l.SU)(a).labelId:void 0},[(0,s.WI)(e.$slots,"default")],10,cg))}});var hg=(0,y.Z)(pg,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const fg=(0,D.nz)(ng,{RadioButton:sg,RadioGroup:hg}),mg=(0,D.dp)(hg),gg=(0,D.dp)(sg);var vg=(0,s.aZ)({name:"NodeContent",setup(){const e=(0,b.s3)("cascader-node");return{ns:e}},render(){const{ns:e}=this,{node:t,panel:n}=this.$parent,{data:r,label:i}=t,{renderLabelFn:o}=n;return(0,s.h)("span",{class:e.e("label")},o?o({node:t,data:r}):i)}});const yg=Symbol(),bg=(0,s.aZ)({name:"ElCascaderNode",components:{ElCheckbox:$m,ElRadio:fg,NodeContent:vg,ElIcon:L.gn,Check:fe.JrY,Loading:fe.gbz,ArrowRight:fe.olP},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=(0,s.f3)(yg),r=(0,b.s3)("cascader-node"),i=(0,s.Fl)((()=>n.isHoverMenu)),o=(0,s.Fl)((()=>n.config.multiple)),a=(0,s.Fl)((()=>n.config.checkStrictly)),l=(0,s.Fl)((()=>{var e;return null==(e=n.checkedNodes[0])?void 0:e.uid})),u=(0,s.Fl)((()=>e.node.isDisabled)),c=(0,s.Fl)((()=>e.node.isLeaf)),d=(0,s.Fl)((()=>a.value&&!c.value||!u.value)),p=(0,s.Fl)((()=>f(n.expandingNode))),h=(0,s.Fl)((()=>a.value&&n.checkedNodes.some(f))),f=t=>{var n;const{level:r,uid:i}=e.node;return(null==(n=null==t?void 0:t.pathNodes[r-1])?void 0:n.uid)===i},m=()=>{p.value||n.expandNode(e.node)},g=t=>{const{node:r}=e;t!==r.checked&&n.handleCheckChange(r,t)},v=()=>{n.lazyLoad(e.node,(()=>{c.value||m()}))},y=e=>{i.value&&(w(),!c.value&&t("expand",e))},w=()=>{const{node:t}=e;d.value&&!t.loading&&(t.loaded?m():v())},S=()=>{i.value&&!c.value||(!c.value||u.value||a.value||o.value?w():_(!0))},x=t=>{a.value?(g(t),e.node.loaded&&m()):_(t)},_=t=>{e.node.loaded?(g(t),!a.value&&m()):v()};return{panel:n,isHoverMenu:i,multiple:o,checkStrictly:a,checkedNodeId:l,isDisabled:u,isLeaf:c,expandable:d,inExpandingPath:p,inCheckedPath:h,ns:r,handleHoverExpand:y,handleExpand:w,handleClick:S,handleCheck:_,handleSelectCheck:x}}}),wg=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],Sg=(0,s._)("span",null,null,-1);function xg(e,t,n,r,i,o){const a=(0,s.up)("el-checkbox"),l=(0,s.up)("el-radio"),c=(0,s.up)("check"),d=(0,s.up)("el-icon"),p=(0,s.up)("node-content"),h=(0,s.up)("loading"),f=(0,s.up)("arrow-right");return(0,s.wg)(),(0,s.iD)("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!e.isLeaf,"aria-owns":e.isLeaf?null:e.menuId,"aria-expanded":e.inExpandingPath,tabindex:e.expandable?-1:void 0,class:(0,u.C_)([e.ns.b(),e.ns.is("selectable",e.checkStrictly),e.ns.is("active",e.node.checked),e.ns.is("disabled",!e.expandable),e.inExpandingPath&&"in-active-path",e.inCheckedPath&&"in-checked-path"]),onMouseenter:t[2]||(t[2]=(...t)=>e.handleHoverExpand&&e.handleHoverExpand(...t)),onFocus:t[3]||(t[3]=(...t)=>e.handleHoverExpand&&e.handleHoverExpand(...t)),onClick:t[4]||(t[4]=(...t)=>e.handleClick&&e.handleClick(...t))},[(0,s.kq)(" prefix "),e.multiple?((0,s.wg)(),(0,s.j4)(a,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:t[0]||(t[0]=(0,P.iM)((()=>{}),["stop"])),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):e.checkStrictly?((0,s.wg)(),(0,s.j4)(l,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:t[1]||(t[1]=(0,P.iM)((()=>{}),["stop"]))},{default:(0,s.w5)((()=>[(0,s.kq)("\n Add an empty element to avoid render label,\n do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485\n "),Sg])),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?((0,s.wg)(),(0,s.j4)(d,{key:2,class:(0,u.C_)(e.ns.e("prefix"))},{default:(0,s.w5)((()=>[(0,s.Wm)(c)])),_:1},8,["class"])):(0,s.kq)("v-if",!0),(0,s.kq)(" content "),(0,s.Wm)(p),(0,s.kq)(" postfix "),e.isLeaf?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)(s.HY,{key:3},[e.node.loading?((0,s.wg)(),(0,s.j4)(d,{key:0,class:(0,u.C_)([e.ns.is("loading"),e.ns.e("postfix")])},{default:(0,s.w5)((()=>[(0,s.Wm)(h)])),_:1},8,["class"])):((0,s.wg)(),(0,s.j4)(d,{key:1,class:(0,u.C_)(["arrow-right",e.ns.e("postfix")])},{default:(0,s.w5)((()=>[(0,s.Wm)(f)])),_:1},8,["class"]))],64))],42,wg)}var _g=(0,y.Z)(bg,[["render",xg],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const Cg=(0,s.aZ)({name:"ElCascaderMenu",components:{Loading:fe.gbz,ElIcon:L.gn,ElScrollbar:ht,ElCascaderNode:_g},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=(0,s.FN)(),n=(0,b.s3)("cascader-menu"),{t:r}=(0,xs.bU)(),i=Ao();let o=null,a=null;const u=(0,s.f3)(yg),c=(0,l.iH)(null),d=(0,s.Fl)((()=>!e.nodes.length)),p=(0,s.Fl)((()=>!u.initialLoaded)),h=(0,s.Fl)((()=>`cascader-menu-${i}-${e.index}`)),f=e=>{o=e.target},m=e=>{if(u.isHoverMenu&&o&&c.value)if(o.contains(e.target)){g();const n=t.vnode.el,{left:r}=n.getBoundingClientRect(),{offsetWidth:i,offsetHeight:a}=n,s=e.clientX-r,l=o.offsetTop,u=l+o.offsetHeight;c.value.innerHTML=`\n \n \n `}else a||(a=window.setTimeout(v,u.config.hoverThreshold))},g=()=>{a&&(clearTimeout(a),a=null)},v=()=>{c.value&&(c.value.innerHTML="",g())};return{ns:n,panel:u,hoverZone:c,isEmpty:d,isLoading:p,menuId:h,t:r,handleExpand:f,handleMouseMove:m,clearHoverZone:v}}});function Eg(e,t,n,r,i,o){const a=(0,s.up)("el-cascader-node"),l=(0,s.up)("loading"),c=(0,s.up)("el-icon"),d=(0,s.up)("el-scrollbar");return(0,s.wg)(),(0,s.j4)(d,{key:e.menuId,tag:"ul",role:"menu",class:(0,u.C_)(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:(0,s.w5)((()=>{var t;return[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.nodes,(t=>((0,s.wg)(),(0,s.j4)(a,{key:t.uid,node:t,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"])))),128)),e.isLoading?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)(e.ns.e("empty-text"))},[(0,s.Wm)(c,{size:"14",class:(0,u.C_)(e.ns.is("loading"))},{default:(0,s.w5)((()=>[(0,s.Wm)(l)])),_:1},8,["class"]),(0,s.Uk)(" "+(0,u.zw)(e.t("el.cascader.loading")),1)],2)):e.isEmpty?((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,u.C_)(e.ns.e("empty-text"))},(0,u.zw)(e.t("el.cascader.noData")),3)):(null==(t=e.panel)?void 0:t.isHoverMenu)?((0,s.wg)(),(0,s.iD)("svg",{key:2,ref:"hoverZone",class:(0,u.C_)(e.ns.e("hover-zone"))},null,2)):(0,s.kq)("v-if",!0)]})),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var Mg=(0,y.Z)(Cg,[["render",Eg],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]);const kg=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Tg=e=>(0,u.kC)(e);let Ag=0;const Ug=e=>{const t=[e];let{parent:n}=e;while(n)t.unshift(n),n=n.parent;return t};class Ig{constructor(e,t,n,r=!1){this.data=e,this.config=t,this.parent=n,this.root=r,this.uid=Ag++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:i,label:o,children:a}=t,s=e[a],l=Ug(this);this.level=r?0:n?n.level+1:1,this.value=e[i],this.label=e[o],this.pathNodes=l,this.pathValues=l.map((e=>e.value)),this.pathLabels=l.map((e=>e.label)),this.childrenData=s,this.children=(s||[]).map((e=>new Ig(e,t,this))),this.loaded=!t.lazy||this.isLeaf||!(0,p.xb)(s)}get isDisabled(){const{data:e,parent:t,config:n}=this,{disabled:r,checkStrictly:i}=n,o=(0,u.mf)(r)?r(e,this):!!e[r];return o||!i&&(null==t?void 0:t.isDisabled)}get isLeaf(){const{data:e,config:t,childrenData:n,loaded:r}=this,{lazy:i,leaf:o}=t,a=(0,u.mf)(o)?o(e,this):e[o];return(0,p.o8)(a)?!(i&&!r)&&!(Array.isArray(n)&&n.length):!!a}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(e){const{childrenData:t,children:n}=this,r=new Ig(e,this.config,this);return Array.isArray(t)?t.push(e):this.childrenData=[e],n.push(r),r}calcText(e,t){const n=e?this.pathLabels.join(t):this.label;return this.text=n,n}broadcast(e,...t){const n=`onParent${Tg(e)}`;this.children.forEach((r=>{r&&(r.broadcast(e,...t),r[n]&&r[n](...t))}))}emit(e,...t){const{parent:n}=this,r=`onChild${Tg(e)}`;n&&(n[r]&&n[r](...t),n.emit(e,...t))}onParentCheck(e){this.isDisabled||this.setCheckState(e)}onChildCheck(){const{children:e}=this,t=e.filter((e=>!e.isDisabled)),n=!!t.length&&t.every((e=>e.checked));this.setCheckState(n)}setCheckState(e){const t=this.children.length,n=this.children.reduce(((e,t)=>{const n=t.checked?1:t.indeterminate?.5:0;return e+n}),0);this.checked=this.loaded&&this.children.filter((e=>!e.isDisabled)).every((e=>e.loaded&&e.checked))&&e,this.indeterminate=this.loaded&&n!==t&&n>0}doCheck(e){if(this.checked===e)return;const{checkStrictly:t,multiple:n}=this.config;t||!n?this.checked=e:(this.broadcast("check",e),this.setCheckState(e),this.emit("check"))}}const Dg=(e,t)=>e.reduce(((e,n)=>(n.isLeaf?e.push(n):(!t&&e.push(n),e=e.concat(Dg(n.children,t))),e)),[]);class Og{constructor(e,t){this.config=t;const n=(e||[]).map((e=>new Ig(e,this.config)));this.nodes=n,this.allNodes=Dg(n,!1),this.leafNodes=Dg(n,!0)}getNodes(){return this.nodes}getFlattedNodes(e){return e?this.leafNodes:this.allNodes}appendNode(e,t){const n=t?t.appendChild(e):new Ig(e,this.config);t||this.nodes.push(n),this.allNodes.push(n),n.isLeaf&&this.leafNodes.push(n)}appendNodes(e,t){e.forEach((e=>this.appendNode(e,t)))}getNodeByValue(e,t=!1){if(!e&&0!==e)return null;const n=this.getFlattedNodes(t).find((t=>Mf(t.value,e)||Mf(t.pathValues,e)));return n||null}getSameNode(e){if(!e)return null;const t=this.getFlattedNodes(!1).find((({value:t,level:n})=>Mf(e.value,t)&&e.level===n));return t||null}}const Pg=(0,d.o8)({modelValue:{type:(0,d.Cq)([Number,String,Array])},options:{type:(0,d.Cq)(Array),default:()=>[]},props:{type:(0,d.Cq)(Object),default:()=>({})}}),Lg={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:u.dG,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},Rg=e=>(0,s.Fl)((()=>({...Lg,...e.props}))),Ng='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',Fg=e=>{const t=getComputedStyle(e);return"fixed"!==t.position&&null!==e.offsetParent},zg=e=>Array.from(e.querySelectorAll(Ng)).filter((e=>Bg(e)&&Fg(e))),Bg=e=>{if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return!("hidden"===e.type||"file"===e.type);case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Hg=function(e,t,...n){let r;r=t.includes("mouse")||t.includes("click")?"MouseEvents":t.includes("key")?"KeyboardEvent":"HTMLEvents";const i=document.createEvent(r);return i.initEvent(t,...n),e.dispatchEvent(i),e},jg=e=>!e.getAttribute("aria-owns"),Vg=(e,t,n)=>{const{parentNode:r}=e;if(!r)return null;const i=r.querySelectorAll(n),o=Array.prototype.indexOf.call(i,e);return i[o+t]||null},Wg=e=>{e&&(e.focus(),!jg(e)&&e.click())},$g=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},qg=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():jg(e)&&e.click()},Gg=(e,t)=>{const n=t.slice(0),r=n.map((e=>e.uid)),i=e.reduce(((e,t)=>{const i=r.indexOf(t.uid);return i>-1&&(e.push(t),n.splice(i,1),r.splice(i,1)),e}),[]);return i.push(...n),i},Zg=e=>[...new Set(e)],Yg=e=>e||0===e?Array.isArray(e)?e:[e]:[],Kg=(0,s.aZ)({name:"ElCascaderPanel",components:{ElCascaderMenu:Mg},props:{...Pg,border:{type:Boolean,default:!0},renderLabel:Function},emits:[h,f,"close","expand-change"],setup(e,{emit:t,slots:n}){let r=!1;const i=(0,b.s3)("cascader"),o=Rg(e);let a=null;const u=(0,l.iH)(!0),c=(0,l.iH)([]),d=(0,l.iH)(null),m=(0,l.iH)([]),g=(0,l.iH)(null),v=(0,l.iH)([]),y=(0,s.Fl)((()=>"hover"===o.value.expandTrigger)),w=(0,s.Fl)((()=>e.renderLabel||n.default)),S=()=>{const{options:t}=e,n=o.value;r=!1,a=new Og(t,n),m.value=[a.getNodes()],n.lazy&&(0,p.xb)(e.options)?(u.value=!1,_(void 0,(e=>{e&&(a=new Og(e,n),m.value=[a.getNodes()]),u.value=!0,D(!1,!0)}))):D(!1,!0)},_=(e,t)=>{const n=o.value;e=e||new Ig({},n,void 0,!0),e.loading=!0;const r=n=>{const r=e,i=r.root?null:r;n&&(null==a||a.appendNodes(n,i)),r.loading=!1,r.loaded=!0,r.childrenData=r.childrenData||[],t&&t(n)};n.lazyLoad(e,r)},C=(e,n)=>{var r;const{level:i}=e,o=m.value.slice(0,i);let a;e.isLeaf?a=e.pathNodes[i-2]:(a=e,o.push(e.children)),(null==(r=g.value)?void 0:r.uid)!==(null==a?void 0:a.uid)&&(g.value=e,m.value=o,!n&&t("expand-change",(null==e?void 0:e.pathValues)||[]))},E=(e,n,i=!0)=>{const{checkStrictly:a,multiple:s}=o.value,l=v.value[0];r=!0,!s&&(null==l||l.doCheck(!1)),e.doCheck(n),I(),i&&!s&&!a&&t("close"),!i&&!s&&!a&&M(e)},M=e=>{e&&(e=e.parent,M(e),e&&C(e))},T=e=>null==a?void 0:a.getFlattedNodes(e),A=e=>{var t;return null==(t=T(e))?void 0:t.filter((e=>!1!==e.checked))},U=()=>{v.value.forEach((e=>e.doCheck(!1))),I(),m.value=m.value.slice(0,1),g.value=null,t("expand-change",[])},I=()=>{var e;const{checkStrictly:t,multiple:n}=o.value,r=v.value,i=A(!t),a=Gg(r,i),s=a.map((e=>e.valueByOption));v.value=a,d.value=n?s:null!=(e=s[0])?e:null},D=(t=!1,n=!1)=>{const{modelValue:i}=e,{lazy:s,multiple:l,checkStrictly:c}=o.value,p=!c;if(u.value&&!r&&(n||!Mf(i,d.value)))if(s&&!t){const e=Zg(Pf(Yg(i))),t=e.map((e=>null==a?void 0:a.getNodeByValue(e))).filter((e=>!!e&&!e.loaded&&!e.loading));t.length?t.forEach((e=>{_(e,(()=>D(!1,n)))})):D(!0,n)}else{const e=l?Yg(i):[i],t=Zg(e.map((e=>null==a?void 0:a.getNodeByValue(e,p))));O(t,n),d.value=Eh(i)}},O=(e,t=!0)=>{const{checkStrictly:n}=o.value,r=v.value,i=e.filter((e=>!!e&&(n||e.isLeaf))),l=null==a?void 0:a.getSameNode(g.value),u=t&&l||i[0];u?u.pathNodes.forEach((e=>C(e,!0))):g.value=null,r.forEach((e=>e.doCheck(!1))),i.forEach((e=>e.doCheck(!0))),v.value=i,(0,s.Y3)(P)},P=()=>{x.C5&&c.value.forEach((e=>{const t=null==e?void 0:e.$el;if(t){const e=t.querySelector(`.${i.namespace.value}-scrollbar__wrap`),n=t.querySelector(`.${i.b("node")}.${i.is("active")}`)||t.querySelector(`.${i.b("node")}.in-active-path`);k(e,n)}}))},L=e=>{const t=e.target,{code:n}=e;switch(n){case Fr.EVENT_CODE.up:case Fr.EVENT_CODE.down:{e.preventDefault();const r=n===Fr.EVENT_CODE.up?-1:1;Wg(Vg(t,r,`.${i.b("node")}[tabindex="-1"]`));break}case Fr.EVENT_CODE.left:{e.preventDefault();const n=c.value[$g(t)-1],r=null==n?void 0:n.$el.querySelector(`.${i.b("node")}[aria-expanded="true"]`);Wg(r);break}case Fr.EVENT_CODE.right:{e.preventDefault();const n=c.value[$g(t)+1],r=null==n?void 0:n.$el.querySelector(`.${i.b("node")}[tabindex="-1"]`);Wg(r);break}case Fr.EVENT_CODE.enter:qg(t);break}};return(0,s.JJ)(yg,(0,l.qj)({config:o,expandingNode:g,checkedNodes:v,isHoverMenu:y,initialLoaded:u,renderLabelFn:w,lazyLoad:_,expandNode:C,handleCheckChange:E})),(0,s.YP)([o,()=>e.options],S,{deep:!0,immediate:!0}),(0,s.YP)((()=>e.modelValue),(()=>{r=!1,D()}),{deep:!0}),(0,s.YP)((()=>d.value),(n=>{Mf(n,e.modelValue)||(t(h,n),t(f,n))})),(0,s.Xn)((()=>c.value=[])),(0,s.bv)((()=>!(0,p.xb)(e.modelValue)&&D())),{ns:i,menuList:c,menus:m,checkedNodes:v,handleKeyDown:L,handleCheckChange:E,getFlattedNodes:T,getCheckedNodes:A,clearCheckedNodes:U,calculateCheckedValue:I,scrollToExpandingNode:P}}});function Xg(e,t,n,r,i,o){const a=(0,s.up)("el-cascader-menu");return(0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:t[0]||(t[0]=(...t)=>e.handleKeyDown&&e.handleKeyDown(...t))},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.menus,((t,n)=>((0,s.wg)(),(0,s.j4)(a,{key:n,ref_for:!0,ref:t=>e.menuList[n]=t,index:n,nodes:[...t]},null,8,["index","nodes"])))),128))],34)}var Jg=(0,y.Z)(Kg,[["render",Xg],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/index.vue"]]);Jg.install=e=>{e.component(Jg.name,Jg)};const Qg=Jg,ev=Qg,tv=(0,d.o8)({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:Fo.k,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),nv={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},rv=(0,s.aZ)({name:"ElTag"}),iv=(0,s.aZ)({...rv,props:tv,emits:nv,setup(e,{emit:t}){const n=e,r=ze(),i=(0,b.s3)("tag"),o=(0,s.Fl)((()=>{const{type:e,hit:t,effect:o,closable:a,round:s}=n;return[i.b(),i.is("closable",a),i.m(e),i.m(r.value),i.m(o),i.is("hit",t),i.is("round",s)]})),a=e=>{t("close",e)},c=e=>{t("click",e)};return(e,t)=>e.disableTransitions?((0,s.wg)(),(0,s.iD)("span",{key:0,class:(0,u.C_)((0,l.SU)(o)),style:(0,u.j5)({backgroundColor:e.color}),onClick:c},[(0,s._)("span",{class:(0,u.C_)((0,l.SU)(i).e("content"))},[(0,s.WI)(e.$slots,"default")],2),e.closable?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:0,class:(0,u.C_)((0,l.SU)(i).e("close")),onClick:(0,P.iM)(a,["stop"])},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.x8P))])),_:1},8,["class","onClick"])):(0,s.kq)("v-if",!0)],6)):((0,s.wg)(),(0,s.j4)(P.uT,{key:1,name:`${(0,l.SU)(i).namespace.value}-zoom-in-center`,appear:""},{default:(0,s.w5)((()=>[(0,s._)("span",{class:(0,u.C_)((0,l.SU)(o)),style:(0,u.j5)({backgroundColor:e.color}),onClick:c},[(0,s._)("span",{class:(0,u.C_)((0,l.SU)(i).e("content"))},[(0,s.WI)(e.$slots,"default")],2),e.closable?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:0,class:(0,u.C_)((0,l.SU)(i).e("close")),onClick:(0,P.iM)(a,["stop"])},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.x8P))])),_:1},8,["class","onClick"])):(0,s.kq)("v-if",!0)],6)])),_:3},8,["name"]))}});var ov=(0,y.Z)(iv,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const av=(0,D.nz)(ov),sv=(0,d.o8)({...Pg,size:xe.Pp,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:(0,d.Cq)(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:(0,d.Cq)(Function),default:()=>!0},popperClass:{type:String,default:""},teleported:Rr.teleported,tagType:{...tv.type,default:"info"},validateEvent:{type:Boolean,default:!0}}),lv={[h]:e=>!!e||null===e,[f]:e=>!!e||null===e,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,visibleChange:e=>(0,p.jn)(e),expandChange:e=>!!e,removeTag:e=>!!e},uv=new Map;let cv;function dv(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:(0,p.kK)(t.arg)&&n.push(t.arg),function(r,i){const o=t.instance.popperRef,a=r.target,s=null==i?void 0:i.target,l=!t||!t.instance,u=!a||!s,c=e.contains(a)||e.contains(s),d=e===a,p=n.length&&n.some((e=>null==e?void 0:e.contains(a)))||n.length&&n.includes(s),h=o&&(o.contains(a)||o.contains(s));l||u||c||d||p||h||t.value(r,i)}}x.C5&&(document.addEventListener("mousedown",(e=>cv=e)),document.addEventListener("mouseup",(e=>{for(const t of uv.values())for(const{documentHandler:n}of t)n(e,cv)})));const pv={beforeMount(e,t){uv.has(e)||uv.set(e,[]),uv.get(e).push({documentHandler:dv(e,t),bindingFn:t.value})},updated(e,t){uv.has(e)||uv.set(e,[]);const n=uv.get(e),r=n.findIndex((e=>e.bindingFn===t.oldValue)),i={documentHandler:dv(e,t),bindingFn:t.value};r>=0?n.splice(r,1,i):n.push(i)},unmounted(e){uv.delete(e)}},hv={key:0},fv=["placeholder","onKeydown"],mv=["onClick"],gv="ElCascader",vv=(0,s.aZ)({name:gv}),yv=(0,s.aZ)({...vv,props:sv,emits:lv,setup(e,{expose:t,emit:n}){const r=e,i={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:e})=>{const{modifiersData:t,placement:n}=e;["right","left","bottom","top"].includes(n)||(t.arrow.x=35)},requires:["arrow"]}]},o=(0,s.l1)();let a=0,d=0;const p=(0,b.s3)("cascader"),m=(0,b.s3)("input"),{t:g}=(0,xs.bU)(),{form:v,formItem:y}=Re(),w=(0,l.iH)(null),_=(0,l.iH)(null),C=(0,l.iH)(null),E=(0,l.iH)(null),M=(0,l.iH)(null),k=(0,l.iH)(!1),T=(0,l.iH)(!1),A=(0,l.iH)(!1),U=(0,l.iH)(!1),I=(0,l.iH)(""),D=(0,l.iH)(""),O=(0,l.iH)([]),R=(0,l.iH)([]),N=(0,l.iH)([]),F=(0,l.iH)(!1),z=(0,s.Fl)((()=>o.style)),B=(0,s.Fl)((()=>r.disabled||(null==v?void 0:v.disabled))),H=(0,s.Fl)((()=>r.placeholder||g("el.cascader.placeholder"))),j=(0,s.Fl)((()=>D.value||O.value.length>0||F.value?"":H.value)),V=ze(),W=(0,s.Fl)((()=>["small"].includes(V.value)?"small":"default")),$=(0,s.Fl)((()=>!!r.props.multiple)),q=(0,s.Fl)((()=>!r.filterable||$.value)),G=(0,s.Fl)((()=>$.value?D.value:I.value)),Z=(0,s.Fl)((()=>{var e;return(null==(e=E.value)?void 0:e.checkedNodes)||[]})),Y=(0,s.Fl)((()=>!(!r.clearable||B.value||A.value||!T.value)&&!!Z.value.length)),K=(0,s.Fl)((()=>{const{showAllLevels:e,separator:t}=r,n=Z.value;return n.length?$.value?"":n[0].calcText(e,t):""})),X=(0,s.Fl)({get(){return Eh(r.modelValue)},set(e){n(h,e),n(f,e),r.validateEvent&&(null==y||y.validate("change").catch((e=>(0,S.N)(e))))}}),J=(0,s.Fl)((()=>[p.b(),p.m(V.value),p.is("disabled",B.value),o.class])),Q=(0,s.Fl)((()=>[m.e("icon"),"icon-arrow-down",p.is("reverse",k.value)])),ee=(0,s.Fl)((()=>p.is("focus",k.value||U.value))),te=(0,s.Fl)((()=>{var e,t;return null==(t=null==(e=w.value)?void 0:e.popperRef)?void 0:t.contentRef})),ne=e=>{var t,i,o;B.value||(e=null!=e?e:!k.value,e!==k.value&&(k.value=e,null==(i=null==(t=_.value)?void 0:t.input)||i.setAttribute("aria-expanded",`${e}`),e?(re(),(0,s.Y3)(null==(o=E.value)?void 0:o.scrollToExpandingNode)):r.filterable&&ye(),n("visibleChange",e)))},re=()=>{(0,s.Y3)((()=>{var e;null==(e=w.value)||e.updatePopper()}))},ie=()=>{A.value=!1},oe=e=>{const{showAllLevels:t,separator:n}=r;return{node:e,key:e.uid,text:e.calcText(t,n),hitState:!1,closable:!B.value&&!e.isDisabled,isCollapseTag:!1}},ae=e=>{var t;const r=e.node;r.doCheck(!1),null==(t=E.value)||t.calculateCheckedValue(),n("removeTag",r.valueByOption)},se=()=>{if(!$.value)return;const e=Z.value,t=[],n=[];if(e.forEach((e=>n.push(oe(e)))),R.value=n,e.length){const[n,...i]=e,o=i.length;t.push(oe(n)),o&&(r.collapseTags?t.push({key:-1,text:`+ ${o}`,closable:!1,isCollapseTag:!0}):i.forEach((e=>t.push(oe(e)))))}O.value=t},le=()=>{var e,t;const{filterMethod:n,showAllLevels:i,separator:o}=r,a=null==(t=null==(e=E.value)?void 0:e.getFlattedNodes(!r.props.checkStrictly))?void 0:t.filter((e=>!e.isDisabled&&(e.calcText(i,o),n(e,G.value))));$.value&&(O.value.forEach((e=>{e.hitState=!1})),R.value.forEach((e=>{e.hitState=!1}))),A.value=!0,N.value=a,re()},ue=()=>{var e;let t;t=A.value&&M.value?M.value.$el.querySelector(`.${p.e("suggestion-item")}`):null==(e=E.value)?void 0:e.$el.querySelector(`.${p.b("node")}[tabindex="-1"]`),t&&(t.focus(),!A.value&&t.click())},ce=()=>{var e,t;const n=null==(e=_.value)?void 0:e.input,r=C.value,i=null==(t=M.value)?void 0:t.$el;if(x.C5&&n){if(i){const e=i.querySelector(`.${p.e("suggestion-list")}`);e.style.minWidth=`${n.offsetWidth}px`}if(r){const{offsetHeight:e}=r,t=O.value.length>0?`${Math.max(e+6,a)}px`:`${a}px`;n.style.height=t,re()}}},de=e=>{var t;return null==(t=E.value)?void 0:t.getCheckedNodes(e)},pe=e=>{re(),n("expandChange",e)},me=e=>{var t;const n=null==(t=e.target)?void 0:t.value;if("compositionend"===e.type)F.value=!1,(0,s.Y3)((()=>Ee(n)));else{const e=n[n.length-1]||"";F.value=!je(e)}},ge=e=>{if(!F.value)switch(e.code){case Fr.EVENT_CODE.enter:ne();break;case Fr.EVENT_CODE.down:ne(!0),(0,s.Y3)(ue),e.preventDefault();break;case Fr.EVENT_CODE.esc:!0===k.value&&(e.preventDefault(),e.stopPropagation(),ne(!1));break;case Fr.EVENT_CODE.tab:ne(!1);break}},ve=()=>{var e;null==(e=E.value)||e.clearCheckedNodes(),!k.value&&r.filterable&&ye(),ne(!1)},ye=()=>{const{value:e}=K;I.value=e,D.value=e},be=e=>{var t,n;const{checked:r}=e;$.value?null==(t=E.value)||t.handleCheckChange(e,!r,!1):(!r&&(null==(n=E.value)||n.handleCheckChange(e,!0,!1)),ne(!1))},we=e=>{const t=e.target,{code:n}=e;switch(n){case Fr.EVENT_CODE.up:case Fr.EVENT_CODE.down:{const e=n===Fr.EVENT_CODE.up?-1:1;Wg(Vg(t,e,`.${p.e("suggestion-item")}[tabindex="-1"]`));break}case Fr.EVENT_CODE.enter:t.click();break}},Se=()=>{const e=O.value,t=e[e.length-1];d=D.value?0:d+1,!t||!d||r.collapseTags&&e.length>1||(t.hitState?ae(t):t.hitState=!0)},xe=e=>{const t=e.target,r=p.e("search-input");t.className===r&&(U.value=!0),n("focus",e)},_e=e=>{U.value=!1,n("blur",e)},Ce=he((()=>{const{value:e}=G;if(!e)return;const t=r.beforeFilter(e);(0,u.tI)(t)?t.then(le).catch((()=>{})):!1!==t?le():ie()}),r.debounce),Ee=(e,t)=>{!k.value&&ne(!0),(null==t?void 0:t.isComposing)||(e?Ce():ie())};return(0,s.YP)(A,re),(0,s.YP)([Z,B],se),(0,s.YP)(O,(()=>{(0,s.Y3)((()=>ce()))})),(0,s.YP)(K,ye,{immediate:!0}),(0,s.bv)((()=>{const e=_.value.input,t=Number.parseFloat((0,c.Zaf)(m.cssVarName("input-height"),e).value)-2;a=e.offsetHeight||t,(0,c.yU7)(e,ce)})),t({getCheckedNodes:de,cascaderPanelRef:E,togglePopperVisible:ne,contentRef:te}),(e,t)=>((0,s.wg)(),(0,s.j4)((0,l.SU)(Mo),{ref_key:"tooltipRef",ref:w,visible:k.value,teleported:e.teleported,"popper-class":[(0,l.SU)(p).e("dropdown"),e.popperClass],"popper-options":i,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:`${(0,l.SU)(p).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:ie},{default:(0,s.w5)((()=>[(0,s.wy)(((0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)((0,l.SU)(J)),style:(0,u.j5)((0,l.SU)(z)),onClick:t[5]||(t[5]=()=>ne(!(0,l.SU)(q)||void 0)),onKeydown:ge,onMouseenter:t[6]||(t[6]=e=>T.value=!0),onMouseleave:t[7]||(t[7]=e=>T.value=!1)},[(0,s.Wm)((0,l.SU)(Ye),{ref_key:"input",ref:_,modelValue:I.value,"onUpdate:modelValue":t[1]||(t[1]=e=>I.value=e),placeholder:(0,l.SU)(j),readonly:(0,l.SU)(q),disabled:(0,l.SU)(B),"validate-event":!1,size:(0,l.SU)(V),class:(0,u.C_)((0,l.SU)(ee)),tabindex:(0,l.SU)($)&&e.filterable&&!(0,l.SU)(B)?-1:void 0,onCompositionstart:me,onCompositionupdate:me,onCompositionend:me,onFocus:xe,onBlur:_e,onInput:Ee},{suffix:(0,s.w5)((()=>[(0,l.SU)(Y)?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:"clear",class:(0,u.C_)([(0,l.SU)(m).e("icon"),"icon-circle-close"]),onClick:(0,P.iM)(ve,["stop"])},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.K41))])),_:1},8,["class","onClick"])):((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:"arrow-down",class:(0,u.C_)((0,l.SU)(Q)),onClick:t[0]||(t[0]=(0,P.iM)((e=>ne()),["stop"]))},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.K5e))])),_:1},8,["class"]))])),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","tabindex"]),(0,l.SU)($)?((0,s.wg)(),(0,s.iD)("div",{key:0,ref_key:"tagWrapper",ref:C,class:(0,u.C_)((0,l.SU)(p).e("tags"))},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(O.value,(t=>((0,s.wg)(),(0,s.j4)((0,l.SU)(av),{key:t.key,type:e.tagType,size:(0,l.SU)(W),hit:t.hitState,closable:t.closable,"disable-transitions":"",onClose:e=>ae(t)},{default:(0,s.w5)((()=>[!1===t.isCollapseTag?((0,s.wg)(),(0,s.iD)("span",hv,(0,u.zw)(t.text),1)):((0,s.wg)(),(0,s.j4)((0,l.SU)(Mo),{key:1,disabled:k.value||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:(0,s.w5)((()=>[(0,s._)("span",null,(0,u.zw)(t.text),1)])),content:(0,s.w5)((()=>[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(p).e("collapse-tags"))},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(R.value.slice(1),((t,n)=>((0,s.wg)(),(0,s.iD)("div",{key:n,class:(0,u.C_)((0,l.SU)(p).e("collapse-tag"))},[((0,s.wg)(),(0,s.j4)((0,l.SU)(av),{key:t.key,class:"in-tooltip",type:e.tagType,size:(0,l.SU)(W),hit:t.hitState,closable:t.closable,"disable-transitions":"",onClose:e=>ae(t)},{default:(0,s.w5)((()=>[(0,s._)("span",null,(0,u.zw)(t.text),1)])),_:2},1032,["type","size","hit","closable","onClose"]))],2)))),128))],2)])),_:2},1032,["disabled"]))])),_:2},1032,["type","size","hit","closable","onClose"])))),128)),e.filterable&&!(0,l.SU)(B)?(0,s.wy)(((0,s.wg)(),(0,s.iD)("input",{key:0,"onUpdate:modelValue":t[2]||(t[2]=e=>D.value=e),type:"text",class:(0,u.C_)((0,l.SU)(p).e("search-input")),placeholder:(0,l.SU)(K)?"":(0,l.SU)(H),onInput:t[3]||(t[3]=e=>Ee(D.value,e)),onClick:t[4]||(t[4]=(0,P.iM)((e=>ne(!0)),["stop"])),onKeydown:(0,P.D2)(Se,["delete"]),onCompositionstart:me,onCompositionupdate:me,onCompositionend:me,onFocus:xe,onBlur:_e},null,42,fv)),[[P.nr,D.value]]):(0,s.kq)("v-if",!0)],2)):(0,s.kq)("v-if",!0)],38)),[[(0,l.SU)(pv),()=>ne(!1),(0,l.SU)(te)]])])),content:(0,s.w5)((()=>[(0,s.wy)((0,s.Wm)((0,l.SU)(Qg),{ref_key:"cascaderPanelRef",ref:E,modelValue:(0,l.SU)(X),"onUpdate:modelValue":t[8]||(t[8]=e=>(0,l.dq)(X)?X.value=e:null),options:e.options,props:r.props,border:!1,"render-label":e.$slots.default,onExpandChange:pe,onClose:t[9]||(t[9]=t=>e.$nextTick((()=>ne(!1))))},null,8,["modelValue","options","props","render-label"]),[[P.F8,!A.value]]),e.filterable?(0,s.wy)(((0,s.wg)(),(0,s.j4)((0,l.SU)(ht),{key:0,ref_key:"suggestionPanel",ref:M,tag:"ul",class:(0,u.C_)((0,l.SU)(p).e("suggestion-panel")),"view-class":(0,l.SU)(p).e("suggestion-list"),onKeydown:we},{default:(0,s.w5)((()=>[N.value.length?((0,s.wg)(!0),(0,s.iD)(s.HY,{key:0},(0,s.Ko)(N.value,(e=>((0,s.wg)(),(0,s.iD)("li",{key:e.uid,class:(0,u.C_)([(0,l.SU)(p).e("suggestion-item"),(0,l.SU)(p).is("checked",e.checked)]),tabindex:-1,onClick:t=>be(e)},[(0,s._)("span",null,(0,u.zw)(e.text),1),e.checked?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:0},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.JrY))])),_:1})):(0,s.kq)("v-if",!0)],10,mv)))),128)):(0,s.WI)(e.$slots,"empty",{key:1},(()=>[(0,s._)("li",{class:(0,u.C_)((0,l.SU)(p).e("empty-text"))},(0,u.zw)((0,l.SU)(g)("el.cascader.noMatch")),3)]))])),_:3},8,["class","view-class"])),[[P.F8,A.value]]):(0,s.kq)("v-if",!0)])),_:3},8,["visible","teleported","popper-class","transition"]))}});var bv=(0,y.Z)(yv,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader/src/cascader.vue"]]);bv.install=e=>{e.component(bv.name,bv)};const wv=bv,Sv=wv,xv=(0,d.o8)({checked:{type:Boolean,default:!1}}),_v={"update:checked":e=>(0,p.jn)(e),[f]:e=>(0,p.jn)(e)},Cv=(0,s.aZ)({name:"ElCheckTag"}),Ev=(0,s.aZ)({...Cv,props:xv,emits:_v,setup(e,{emit:t}){const n=e,r=(0,b.s3)("check-tag"),i=(0,s.Fl)((()=>[r.b(),r.is("checked",n.checked)])),o=()=>{const e=!n.checked;t(f,e),t("update:checked",e)};return(e,t)=>((0,s.wg)(),(0,s.iD)("span",{class:(0,u.C_)((0,l.SU)(i)),onClick:o},[(0,s.WI)(e.$slots,"default")],2))}});var Mv=(0,y.Z)(Ev,[["__file","/home/runner/work/element-plus/element-plus/packages/components/check-tag/src/check-tag.vue"]]);const kv=(0,D.nz)(Mv),Tv=(0,d.o8)({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:(0,d.Cq)([Number,Object]),default:()=>(0,_e.N)({})},sm:{type:(0,d.Cq)([Number,Object]),default:()=>(0,_e.N)({})},md:{type:(0,d.Cq)([Number,Object]),default:()=>(0,_e.N)({})},lg:{type:(0,d.Cq)([Number,Object]),default:()=>(0,_e.N)({})},xl:{type:(0,d.Cq)([Number,Object]),default:()=>(0,_e.N)({})}}),Av=Symbol("rowContextKey"),Uv=(0,s.aZ)({name:"ElCol"}),Iv=(0,s.aZ)({...Uv,props:Tv,setup(e){const t=e,{gutter:n}=(0,s.f3)(Av,{gutter:(0,s.Fl)((()=>0))}),r=(0,b.s3)("col"),i=(0,s.Fl)((()=>{const e={};return n.value&&(e.paddingLeft=e.paddingRight=n.value/2+"px"),e})),o=(0,s.Fl)((()=>{const e=[],i=["span","offset","pull","push"];i.forEach((n=>{const i=t[n];(0,p.hj)(i)&&("span"===n?e.push(r.b(`${t[n]}`)):i>0&&e.push(r.b(`${n}-${t[n]}`)))}));const o=["xs","sm","md","lg","xl"];return o.forEach((n=>{(0,p.hj)(t[n])?e.push(r.b(`${n}-${t[n]}`)):(0,u.Kn)(t[n])&&Object.entries(t[n]).forEach((([t,i])=>{e.push("span"!==t?r.b(`${n}-${t}-${i}`):r.b(`${n}-${i}`))}))})),n.value&&e.push(r.is("guttered")),[r.b(),e]}));return(e,t)=>((0,s.wg)(),(0,s.j4)((0,s.LL)(e.tag),{class:(0,u.C_)((0,l.SU)(o)),style:(0,u.j5)((0,l.SU)(i))},{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default")])),_:3},8,["class","style"]))}});var Dv=(0,y.Z)(Iv,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const Ov=(0,D.nz)(Dv),Pv=e=>typeof(0,p.hj)(e),Lv=(0,d.o8)({accordion:Boolean,modelValue:{type:(0,d.Cq)([Array,String,Number]),default:()=>(0,_e.N)([])}}),Rv={[h]:Pv,[f]:Pv},Nv=Symbol("collapseContextKey");function Fv(){if(!arguments.length)return[];var e=arguments[0];return(0,ou.Z)(e)?e:[e]}var zv=Fv;const Bv=(e,t)=>{const n=(0,l.iH)(zv(e.modelValue)),r=r=>{n.value=r;const i=e.accordion?n.value[0]:n.value;t(h,i),t(f,i)},i=t=>{if(e.accordion)r([n.value[0]===t?"":t]);else{const e=[...n.value],i=e.indexOf(t);i>-1?e.splice(i,1):e.push(t),r(e)}};return(0,s.YP)((()=>e.modelValue),(()=>n.value=zv(e.modelValue)),{deep:!0}),(0,s.JJ)(Nv,{activeNames:n,handleItemClick:i}),{activeNames:n,setActiveNames:r}},Hv=()=>{const e=(0,b.s3)("collapse"),t=(0,s.Fl)((()=>e.b()));return{rootKls:t}},jv=(0,s.aZ)({name:"ElCollapse"}),Vv=(0,s.aZ)({...jv,props:Lv,emits:Rv,setup(e,{expose:t,emit:n}){const r=e,{activeNames:i,setActiveNames:o}=Bv(r,n),{rootKls:a}=Hv();return t({activeNames:i,setActiveNames:o}),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)((0,l.SU)(a)),role:"tablist","aria-multiselectable":"true"},[(0,s.WI)(e.$slots,"default")],2))}});var Wv=(0,y.Z)(Vv,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const $v=(0,s.aZ)({name:"ElCollapseTransition"}),qv=(0,s.aZ)({...$v,setup(e){const t=(0,b.s3)("collapse-transition"),n={beforeEnter(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0},enter(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?(e.style.maxHeight=`${e.scrollHeight}px`,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom):(e.style.maxHeight=0,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom),e.style.overflow="hidden"},afterEnter(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow},beforeLeave(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.maxHeight=`${e.scrollHeight}px`,e.style.overflow="hidden"},leave(e){0!==e.scrollHeight&&(e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0)},afterLeave(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom}};return(e,r)=>((0,s.wg)(),(0,s.j4)(P.uT,(0,s.dG)({name:(0,l.SU)(t).b()},(0,s.mx)(n)),{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default")])),_:3},16,["name"]))}});var Gv=(0,y.Z)(qv,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);Gv.install=e=>{e.component(Gv.name,Gv)};const Zv=Gv,Yv=Zv,Kv=(0,d.o8)({title:{type:String,default:""},name:{type:(0,d.Cq)([String,Number]),default:()=>Ao()},disabled:Boolean}),Xv=e=>{const t=(0,s.f3)(Nv),n=(0,l.iH)(!1),r=(0,l.iH)(!1),i=(0,l.iH)(Ao()),o=(0,s.Fl)((()=>null==t?void 0:t.activeNames.value.includes(e.name))),a=()=>{setTimeout((()=>{r.value?r.value=!1:n.value=!0}),50)},u=()=>{e.disabled||(null==t||t.handleItemClick(e.name),n.value=!1,r.value=!0)},c=()=>{null==t||t.handleItemClick(e.name)};return{focusing:n,id:i,isActive:o,handleFocus:a,handleHeaderClick:u,handleEnterClick:c}},Jv=(e,{focusing:t,isActive:n,id:r})=>{const i=(0,b.s3)("collapse"),o=(0,s.Fl)((()=>[i.b("item"),i.is("active",(0,l.SU)(n)),i.is("disabled",e.disabled)])),a=(0,s.Fl)((()=>[i.be("item","header"),i.is("active",(0,l.SU)(n)),{focusing:(0,l.SU)(t)&&!e.disabled}])),u=(0,s.Fl)((()=>[i.be("item","arrow"),i.is("active",(0,l.SU)(n))])),c=(0,s.Fl)((()=>i.be("item","wrap"))),d=(0,s.Fl)((()=>i.be("item","content"))),p=(0,s.Fl)((()=>i.b(`content-${(0,l.SU)(r)}`))),h=(0,s.Fl)((()=>i.b(`head-${(0,l.SU)(r)}`)));return{arrowKls:u,headKls:a,rootKls:o,itemWrapperKls:c,itemContentKls:d,scopedContentId:p,scopedHeadId:h}},Qv=["aria-expanded","aria-controls","aria-describedby"],ey=["id","tabindex"],ty=["id","aria-hidden","aria-labelledby"],ny=(0,s.aZ)({name:"ElCollapseItem"}),ry=(0,s.aZ)({...ny,props:Kv,setup(e,{expose:t}){const n=e,{focusing:r,id:i,isActive:o,handleFocus:a,handleHeaderClick:c,handleEnterClick:d}=Xv(n),{arrowKls:p,headKls:h,rootKls:f,itemWrapperKls:m,itemContentKls:g,scopedContentId:v,scopedHeadId:y}=Jv(n,{focusing:r,isActive:o,id:i});return t({isActive:o}),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)((0,l.SU)(f))},[(0,s._)("div",{role:"tab","aria-expanded":(0,l.SU)(o),"aria-controls":(0,l.SU)(v),"aria-describedby":(0,l.SU)(v)},[(0,s._)("div",{id:(0,l.SU)(y),class:(0,u.C_)((0,l.SU)(h)),role:"button",tabindex:e.disabled?-1:0,onClick:t[0]||(t[0]=(...e)=>(0,l.SU)(c)&&(0,l.SU)(c)(...e)),onKeypress:t[1]||(t[1]=(0,P.D2)((0,P.iM)(((...e)=>(0,l.SU)(d)&&(0,l.SU)(d)(...e)),["stop","prevent"]),["space","enter"])),onFocus:t[2]||(t[2]=(...e)=>(0,l.SU)(a)&&(0,l.SU)(a)(...e)),onBlur:t[3]||(t[3]=e=>r.value=!1)},[(0,s.WI)(e.$slots,"title",{},(()=>[(0,s.Uk)((0,u.zw)(e.title),1)])),(0,s.Wm)((0,l.SU)(L.gn),{class:(0,u.C_)((0,l.SU)(p))},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.olP))])),_:1},8,["class"])],42,ey)],8,Qv),(0,s.Wm)((0,l.SU)(Zv),null,{default:(0,s.w5)((()=>[(0,s.wy)((0,s._)("div",{id:(0,l.SU)(v),class:(0,u.C_)((0,l.SU)(m)),role:"tabpanel","aria-hidden":!(0,l.SU)(o),"aria-labelledby":(0,l.SU)(y)},[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(g))},[(0,s.WI)(e.$slots,"default")],2)],10,ty),[[P.F8,(0,l.SU)(o)]])])),_:3})],2))}});var iy=(0,y.Z)(ry,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const oy=(0,D.nz)(Wv,{CollapseItem:iy}),ay=(0,D.dp)(iy),sy=(0,d.o8)({color:{type:(0,d.Cq)(Object),required:!0},vertical:{type:Boolean,default:!1}});let ly=!1;function uy(e,t){if(!x.C5)return;const n=function(e){var n;null==(n=t.drag)||n.call(t,e)},r=function(e){var i;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,ly=!1,null==(i=t.end)||i.call(t,e)},i=function(e){var i;ly||(e.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),ly=!0,null==(i=t.start)||i.call(t,e))};e.addEventListener("mousedown",i),e.addEventListener("touchstart",i)}const cy=(e,t)=>{if(!x.C5||!e||!t)return!1;const n=e.getBoundingClientRect();let r;return r=t instanceof Element?t.getBoundingClientRect():{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.topr.top&&n.right>r.left&&n.left{let t=0,n=e;while(n)t+=n.offsetTop,n=n.offsetParent;return t},py=(e,t)=>Math.abs(dy(e)-dy(t)),hy=e=>{let t,n;return"touchend"===e.type?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},fy=e=>{const t=(0,s.FN)(),n=(0,l.XI)(),r=(0,l.XI)();function i(e){const t=e.target;t!==n.value&&o(e)}function o(i){if(!r.value||!n.value)return;const o=t.vnode.el,a=o.getBoundingClientRect(),{clientX:s,clientY:l}=hy(i);if(e.vertical){let t=l-a.top;t=Math.max(n.value.offsetHeight/2,t),t=Math.min(t,a.height-n.value.offsetHeight/2),e.color.set("alpha",Math.round((t-n.value.offsetHeight/2)/(a.height-n.value.offsetHeight)*100))}else{let t=s-a.left;t=Math.max(n.value.offsetWidth/2,t),t=Math.min(t,a.width-n.value.offsetWidth/2),e.color.set("alpha",Math.round((t-n.value.offsetWidth/2)/(a.width-n.value.offsetWidth)*100))}}return{thumb:n,bar:r,handleDrag:o,handleClick:i}},my=(e,{bar:t,thumb:n,handleDrag:r})=>{const i=(0,s.FN)(),o=(0,b.s3)("color-alpha-slider"),a=(0,l.iH)(0),u=(0,l.iH)(0),c=(0,l.iH)();function d(){if(!n.value)return 0;if(e.vertical)return 0;const t=i.vnode.el,r=e.color.get("alpha");return t?Math.round(r*(t.offsetWidth-n.value.offsetWidth/2)/100):0}function p(){if(!n.value)return 0;const t=i.vnode.el;if(!e.vertical)return 0;const r=e.color.get("alpha");return t?Math.round(r*(t.offsetHeight-n.value.offsetHeight/2)/100):0}function h(){if(e.color&&e.color.value){const{r:t,g:n,b:r}=e.color.toRgb();return`linear-gradient(to right, rgba(${t}, ${n}, ${r}, 0) 0%, rgba(${t}, ${n}, ${r}, 1) 100%)`}return""}function f(){a.value=d(),u.value=p(),c.value=h()}(0,s.bv)((()=>{if(!t.value||!n.value)return;const e={drag:e=>{r(e)},end:e=>{r(e)}};uy(t.value,e),uy(n.value,e),f()})),(0,s.YP)((()=>e.color.get("alpha")),(()=>f())),(0,s.YP)((()=>e.color.value),(()=>f()));const m=(0,s.Fl)((()=>[o.b(),o.is("vertical",e.vertical)])),g=(0,s.Fl)((()=>o.e("bar"))),v=(0,s.Fl)((()=>o.e("thumb"))),y=(0,s.Fl)((()=>({background:c.value}))),S=(0,s.Fl)((()=>({left:(0,w.Nn)(a.value),top:(0,w.Nn)(u.value)})));return{rootKls:m,barKls:g,barStyle:y,thumbKls:v,thumbStyle:S,update:f}},gy="ElColorAlphaSlider",vy=(0,s.aZ)({name:gy}),yy=(0,s.aZ)({...vy,props:sy,setup(e,{expose:t}){const n=e,{bar:r,thumb:i,handleDrag:o,handleClick:a}=fy(n),{rootKls:c,barKls:d,barStyle:p,thumbKls:h,thumbStyle:f,update:m}=my(n,{bar:r,thumb:i,handleDrag:o});return t({update:m,bar:r,thumb:i}),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)((0,l.SU)(c))},[(0,s._)("div",{ref_key:"bar",ref:r,class:(0,u.C_)((0,l.SU)(d)),style:(0,u.j5)((0,l.SU)(p)),onClick:t[0]||(t[0]=(...e)=>(0,l.SU)(a)&&(0,l.SU)(a)(...e))},null,6),(0,s._)("div",{ref_key:"thumb",ref:i,class:(0,u.C_)((0,l.SU)(h)),style:(0,u.j5)((0,l.SU)(f))},null,6)],2))}});var by=(0,y.Z)(yy,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const wy=(0,s.aZ)({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=(0,b.s3)("color-hue-slider"),n=(0,s.FN)(),r=(0,l.iH)(),i=(0,l.iH)(),o=(0,l.iH)(0),a=(0,l.iH)(0),u=(0,s.Fl)((()=>e.color.get("hue")));function c(e){const t=e.target;t!==r.value&&d(e)}function d(t){if(!i.value||!r.value)return;const o=n.vnode.el,a=o.getBoundingClientRect(),{clientX:s,clientY:l}=hy(t);let u;if(e.vertical){let e=l-a.top;e=Math.min(e,a.height-r.value.offsetHeight/2),e=Math.max(r.value.offsetHeight/2,e),u=Math.round((e-r.value.offsetHeight/2)/(a.height-r.value.offsetHeight)*360)}else{let e=s-a.left;e=Math.min(e,a.width-r.value.offsetWidth/2),e=Math.max(r.value.offsetWidth/2,e),u=Math.round((e-r.value.offsetWidth/2)/(a.width-r.value.offsetWidth)*360)}e.color.set("hue",u)}function p(){if(!r.value)return 0;const t=n.vnode.el;if(e.vertical)return 0;const i=e.color.get("hue");return t?Math.round(i*(t.offsetWidth-r.value.offsetWidth/2)/360):0}function h(){if(!r.value)return 0;const t=n.vnode.el;if(!e.vertical)return 0;const i=e.color.get("hue");return t?Math.round(i*(t.offsetHeight-r.value.offsetHeight/2)/360):0}function f(){o.value=p(),a.value=h()}return(0,s.YP)((()=>u.value),(()=>{f()})),(0,s.bv)((()=>{if(!i.value||!r.value)return;const e={drag:e=>{d(e)},end:e=>{d(e)}};uy(i.value,e),uy(r.value,e),f()})),{bar:i,thumb:r,thumbLeft:o,thumbTop:a,hueValue:u,handleClick:c,update:f,ns:t}}});function Sy(e,t,n,r,i,o){return(0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)([e.ns.b(),e.ns.is("vertical",e.vertical)])},[(0,s._)("div",{ref:"bar",class:(0,u.C_)(e.ns.e("bar")),onClick:t[0]||(t[0]=(...t)=>e.handleClick&&e.handleClick(...t))},null,2),(0,s._)("div",{ref:"thumb",class:(0,u.C_)(e.ns.e("thumb")),style:(0,u.j5)({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var xy=(0,y.Z)(wy,[["render",Sy],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const _y=(0,d.o8)({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:xe.Pp,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:(0,d.Cq)(Array)},validateEvent:{type:Boolean,default:!0}}),Cy={[h]:e=>(0,u.HD)(e)||(0,me.Z)(e),[f]:e=>(0,u.HD)(e)||(0,me.Z)(e),activeChange:e=>(0,u.HD)(e)||(0,me.Z)(e)},Ey=Symbol("colorPickerContextKey"),My=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},ky=function(e){return"string"===typeof e&&e.includes(".")&&1===Number.parseFloat(e)},Ty=function(e){return"string"===typeof e&&e.includes("%")},Ay=function(e,t){ky(e)&&(e="100%");const n=Ty(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),n&&(e=Number.parseInt(""+e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},Uy={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Iy=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${Uy[t]||t}${Uy[n]||n}`},Dy=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${Iy(e)}${Iy(t)}${Iy(n)}`},Oy={A:10,B:11,C:12,D:13,E:14,F:15},Py=function(e){return 2===e.length?16*(Oy[e[0].toUpperCase()]||+e[0])+(Oy[e[1].toUpperCase()]||+e[1]):Oy[e[1].toUpperCase()]||+e[1]},Ly=function(e,t,n){t/=100,n/=100;let r=t;const i=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,r*=i<=1?i:2-i;const o=(n+t)/2,a=0===n?2*r/(i+r):2*t/(n+t);return{h:e,s:100*a,v:100*o}},Ry=(e,t,n)=>{e=Ay(e,255),t=Ay(t,255),n=Ay(n,255);const r=Math.max(e,t,n),i=Math.min(e,t,n);let o;const a=r,s=r-i,l=0===r?0:s/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/s+(t{this._hue=Math.max(0,Math.min(360,e)),this._saturation=Math.max(0,Math.min(100,t)),this._value=Math.max(0,Math.min(100,n)),this.doOnChange()};if(e.includes("hsl")){const n=e.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));if(4===n.length?this._alpha=100*Number.parseFloat(n[3]):3===n.length&&(this._alpha=100),n.length>=3){const{h:e,s:r,v:i}=Ly(n[0],n[1],n[2]);t(e,r,i)}}else if(e.includes("hsv")){const n=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));4===n.length?this._alpha=100*Number.parseFloat(n[3]):3===n.length&&(this._alpha=100),n.length>=3&&t(n[0],n[1],n[2])}else if(e.includes("rgb")){const n=e.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));if(4===n.length?this._alpha=100*Number.parseFloat(n[3]):3===n.length&&(this._alpha=100),n.length>=3){const{h:e,s:r,v:i}=Ry(n[0],n[1],n[2]);t(e,r,i)}}else if(e.includes("#")){const n=e.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(n))return;let r,i,o;3===n.length?(r=Py(n[0]+n[0]),i=Py(n[1]+n[1]),o=Py(n[2]+n[2])):6!==n.length&&8!==n.length||(r=Py(n.slice(0,2)),i=Py(n.slice(2,4)),o=Py(n.slice(4,6))),8===n.length?this._alpha=Py(n.slice(6))/255*100:3!==n.length&&6!==n.length||(this._alpha=100);const{h:a,s:s,v:l}=Ry(r,i,o);t(a,s,l)}}compare(e){return Math.abs(e._hue-this._hue)<2&&Math.abs(e._saturation-this._saturation)<1&&Math.abs(e._value-this._value)<1&&Math.abs(e._alpha-this._alpha)<1}doOnChange(){const{_hue:e,_saturation:t,_value:n,_alpha:r,format:i}=this;if(this.enableAlpha)switch(i){case"hsl":{const r=My(e,t/100,n/100);this.value=`hsla(${e}, ${Math.round(100*r[1])}%, ${Math.round(100*r[2])}%, ${this.get("alpha")/100})`;break}case"hsv":this.value=`hsva(${e}, ${Math.round(t)}%, ${Math.round(n)}%, ${this.get("alpha")/100})`;break;case"hex":this.value=`${Dy(Ny(e,t,n))}${Iy(255*r/100)}`;break;default:{const{r:r,g:i,b:o}=Ny(e,t,n);this.value=`rgba(${r}, ${i}, ${o}, ${this.get("alpha")/100})`}}else switch(i){case"hsl":{const r=My(e,t/100,n/100);this.value=`hsl(${e}, ${Math.round(100*r[1])}%, ${Math.round(100*r[2])}%)`;break}case"hsv":this.value=`hsv(${e}, ${Math.round(t)}%, ${Math.round(n)}%)`;break;case"rgb":{const{r:r,g:i,b:o}=Ny(e,t,n);this.value=`rgb(${r}, ${i}, ${o})`;break}default:this.value=Dy(Ny(e,t,n))}}}const zy=(0,s.aZ)({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=(0,b.s3)("color-predefine"),{currentColor:n}=(0,s.f3)(Ey),r=(0,l.iH)(o(e.colors,e.color));function i(t){e.color.fromString(e.colors[t])}function o(e,t){return e.map((e=>{const n=new Fy;return n.enableAlpha=!0,n.format="rgba",n.fromString(e),n.selected=n.value===t.value,n}))}return(0,s.YP)((()=>n.value),(e=>{const t=new Fy;t.fromString(e),r.value.forEach((e=>{e.selected=t.compare(e)}))})),(0,s.m0)((()=>{r.value=o(e.colors,e.color)})),{rgbaColors:r,handleSelect:i,ns:t}}}),By=["onClick"];function Hy(e,t,n,r,i,o){return(0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)(e.ns.b())},[(0,s._)("div",{class:(0,u.C_)(e.ns.e("colors"))},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.rgbaColors,((t,n)=>((0,s.wg)(),(0,s.iD)("div",{key:e.colors[n],class:(0,u.C_)([e.ns.e("color-selector"),e.ns.is("alpha",t._alpha<100),{selected:t.selected}]),onClick:t=>e.handleSelect(n)},[(0,s._)("div",{style:(0,u.j5)({backgroundColor:t.value})},null,4)],10,By)))),128))],2)],2)}var jy=(0,y.Z)(zy,[["render",Hy],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const Vy=(0,s.aZ)({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=(0,b.s3)("color-svpanel"),n=(0,s.FN)(),r=(0,l.iH)(0),i=(0,l.iH)(0),o=(0,l.iH)("hsl(0, 100%, 50%)"),a=(0,s.Fl)((()=>{const t=e.color.get("hue"),n=e.color.get("value");return{hue:t,value:n}}));function u(){const t=e.color.get("saturation"),a=e.color.get("value"),s=n.vnode.el,{clientWidth:l,clientHeight:u}=s;i.value=t*l/100,r.value=(100-a)*u/100,o.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function c(t){const o=n.vnode.el,a=o.getBoundingClientRect(),{clientX:s,clientY:l}=hy(t);let u=s-a.left,c=l-a.top;u=Math.max(0,u),u=Math.min(u,a.width),c=Math.max(0,c),c=Math.min(c,a.height),i.value=u,r.value=c,e.color.set({saturation:u/a.width*100,value:100-c/a.height*100})}return(0,s.YP)((()=>a.value),(()=>{u()})),(0,s.bv)((()=>{uy(n.vnode.el,{drag:e=>{c(e)},end:e=>{c(e)}}),u()})),{cursorTop:r,cursorLeft:i,background:o,colorValue:a,handleDrag:c,update:u,ns:t}}}),Wy=(0,s._)("div",null,null,-1),$y=[Wy];function qy(e,t,n,r,i,o){return(0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)(e.ns.b()),style:(0,u.j5)({backgroundColor:e.background})},[(0,s._)("div",{class:(0,u.C_)(e.ns.e("white"))},null,2),(0,s._)("div",{class:(0,u.C_)(e.ns.e("black"))},null,2),(0,s._)("div",{class:(0,u.C_)(e.ns.e("cursor")),style:(0,u.j5)({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},$y,6)],6)}var Gy=(0,y.Z)(Vy,[["render",qy],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const Zy=["id","aria-label","aria-labelledby","aria-description","tabindex","onKeydown"],Yy=(0,s.aZ)({name:"ElColorPicker"}),Ky=(0,s.aZ)({...Yy,props:_y,emits:Cy,setup(e,{expose:t,emit:n}){const r=e,{t:i}=(0,xs.bU)(),o=(0,b.s3)("color"),{formItem:a}=Re(),c=ze(),d=Be(),{inputId:p,isLabeledByFormItem:f}=Ne(r,{formItemContext:a}),m=(0,l.iH)(),g=(0,l.iH)(),v=(0,l.iH)(),y=(0,l.iH)();let w=!0;const x=(0,l.qj)(new Fy({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue})),_=(0,l.iH)(!1),C=(0,l.iH)(!1),E=(0,l.iH)(""),M=(0,s.Fl)((()=>r.modelValue||C.value?I(x,r.showAlpha):"transparent")),k=(0,s.Fl)((()=>r.modelValue||C.value?x.value:"")),T=(0,s.Fl)((()=>f.value?void 0:r.label||i("el.colorpicker.defaultLabel"))),A=(0,s.Fl)((()=>f.value?null==a?void 0:a.labelId:void 0)),U=(0,s.Fl)((()=>[o.b("picker"),o.is("disabled",d.value),o.bm("picker",c.value)]));function I(e,t){if(!(e instanceof Fy))throw new TypeError("color should be instance of _color Class");const{r:n,g:r,b:i}=e.toRgb();return t?`rgba(${n}, ${r}, ${i}, ${e.get("alpha")/100})`:`rgb(${n}, ${r}, ${i})`}function D(e){_.value=e}const O=he(D,100);function R(){d.value||D(!0)}function N(){O(!1),F()}function F(){(0,s.Y3)((()=>{r.modelValue?x.fromString(r.modelValue):(x.value="",(0,s.Y3)((()=>{C.value=!1})))}))}function z(){d.value||O(!_.value)}function B(){x.fromString(E.value)}function H(){const e=x.value;n(h,e),n("change",e),r.validateEvent&&(null==a||a.validate("change").catch((e=>(0,S.N)(e)))),O(!1),(0,s.Y3)((()=>{const e=new Fy({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});x.compare(e)||F()}))}function j(){O(!1),n(h,null),n("change",null),null!==r.modelValue&&r.validateEvent&&(null==a||a.validate("change").catch((e=>(0,S.N)(e)))),F()}return(0,s.bv)((()=>{r.modelValue&&(E.value=k.value)})),(0,s.YP)((()=>r.modelValue),(e=>{e?e&&e!==x.value&&(w=!1,x.fromString(e)):C.value=!1})),(0,s.YP)((()=>k.value),(e=>{E.value=e,w&&n("activeChange",e),w=!0})),(0,s.YP)((()=>x.value),(()=>{r.modelValue||C.value||(C.value=!0)})),(0,s.YP)((()=>_.value),(()=>{(0,s.Y3)((()=>{var e,t,n;null==(e=m.value)||e.update(),null==(t=g.value)||t.update(),null==(n=v.value)||n.update()}))})),(0,s.JJ)(Ey,{currentColor:k}),t({color:x,show:R,hide:N}),(e,t)=>((0,s.wg)(),(0,s.j4)((0,l.SU)(Mo),{ref_key:"popper",ref:y,visible:_.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[(0,l.SU)(o).be("picker","panel"),(0,l.SU)(o).b("dropdown"),e.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${(0,l.SU)(o).namespace.value}-zoom-in-top`,persistent:""},{content:(0,s.w5)((()=>[(0,s.wy)(((0,s.wg)(),(0,s.iD)("div",null,[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(o).be("dropdown","main-wrapper"))},[(0,s.Wm)(xy,{ref_key:"hue",ref:m,class:"hue-slider",color:(0,l.SU)(x),vertical:""},null,8,["color"]),(0,s.Wm)(Gy,{ref:"svPanel",color:(0,l.SU)(x)},null,8,["color"])],2),e.showAlpha?((0,s.wg)(),(0,s.j4)(by,{key:0,ref_key:"alpha",ref:v,color:(0,l.SU)(x)},null,8,["color"])):(0,s.kq)("v-if",!0),e.predefine?((0,s.wg)(),(0,s.j4)(jy,{key:1,ref:"predefine",color:(0,l.SU)(x),colors:e.predefine},null,8,["color","colors"])):(0,s.kq)("v-if",!0),(0,s._)("div",{class:(0,u.C_)((0,l.SU)(o).be("dropdown","btns"))},[(0,s._)("span",{class:(0,u.C_)((0,l.SU)(o).be("dropdown","value"))},[(0,s.Wm)((0,l.SU)(Ye),{modelValue:E.value,"onUpdate:modelValue":t[0]||(t[0]=e=>E.value=e),"validate-event":!1,size:"small",onKeyup:(0,P.D2)(B,["enter"]),onBlur:B},null,8,["modelValue","onKeyup"])],2),(0,s.Wm)((0,l.SU)(is),{class:(0,u.C_)((0,l.SU)(o).be("dropdown","link-btn")),text:"",size:"small",onClick:j},{default:(0,s.w5)((()=>[(0,s.Uk)((0,u.zw)((0,l.SU)(i)("el.colorpicker.clear")),1)])),_:1},8,["class"]),(0,s.Wm)((0,l.SU)(is),{plain:"",size:"small",class:(0,u.C_)((0,l.SU)(o).be("dropdown","btn")),onClick:H},{default:(0,s.w5)((()=>[(0,s.Uk)((0,u.zw)((0,l.SU)(i)("el.colorpicker.confirm")),1)])),_:1},8,["class"])],2)])),[[(0,l.SU)(pv),N]])])),default:(0,s.w5)((()=>[(0,s._)("div",{id:(0,l.SU)(p),class:(0,u.C_)((0,l.SU)(U)),role:"button","aria-label":(0,l.SU)(T),"aria-labelledby":(0,l.SU)(A),"aria-description":(0,l.SU)(i)("el.colorpicker.description",{color:e.modelValue||""}),tabindex:e.tabindex,onKeydown:(0,P.D2)(z,["enter"])},[(0,l.SU)(d)?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)((0,l.SU)(o).be("picker","mask"))},null,2)):(0,s.kq)("v-if",!0),(0,s._)("div",{class:(0,u.C_)((0,l.SU)(o).be("picker","trigger")),onClick:z},[(0,s._)("span",{class:(0,u.C_)([(0,l.SU)(o).be("picker","color"),(0,l.SU)(o).is("alpha",e.showAlpha)])},[(0,s._)("span",{class:(0,u.C_)((0,l.SU)(o).be("picker","color-inner")),style:(0,u.j5)({backgroundColor:(0,l.SU)(M)})},[(0,s.wy)((0,s.Wm)((0,l.SU)(L.gn),{class:(0,u.C_)([(0,l.SU)(o).be("picker","icon"),(0,l.SU)(o).is("icon-arrow-down")])},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.K5e))])),_:1},8,["class"]),[[P.F8,e.modelValue||C.value]]),e.modelValue||C.value?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:0,class:(0,u.C_)([(0,l.SU)(o).be("picker","empty"),(0,l.SU)(o).is("icon-close")])},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.x8P))])),_:1},8,["class"]))],6)],2)],2)],42,Zy)])),_:1},8,["visible","popper-class","transition"]))}});var Xy=(0,y.Z)(Ky,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/color-picker.vue"]]);const Jy=(0,D.nz)(Xy);var Qy=n(5869);const eb=(0,D.nz)(Qy.Z),tb=(0,s.aZ)({name:"ElContainer"}),nb=(0,s.aZ)({...tb,props:{direction:{type:String}},setup(e){const t=e,n=(0,s.Rr)(),r=(0,b.s3)("container"),i=(0,s.Fl)((()=>{if("vertical"===t.direction)return!0;if("horizontal"===t.direction)return!1;if(n&&n.default){const e=n.default();return e.some((e=>{const t=e.type.name;return"ElHeader"===t||"ElFooter"===t}))}return!1}));return(e,t)=>((0,s.wg)(),(0,s.iD)("section",{class:(0,u.C_)([(0,l.SU)(r).b(),(0,l.SU)(r).is("vertical",(0,l.SU)(i))])},[(0,s.WI)(e.$slots,"default")],2))}});var rb=(0,y.Z)(nb,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const ib=(0,s.aZ)({name:"ElAside"}),ob=(0,s.aZ)({...ib,props:{width:{type:String,default:null}},setup(e){const t=e,n=(0,b.s3)("aside"),r=(0,s.Fl)((()=>t.width?n.cssVarBlock({width:t.width}):{}));return(e,t)=>((0,s.wg)(),(0,s.iD)("aside",{class:(0,u.C_)((0,l.SU)(n).b()),style:(0,u.j5)((0,l.SU)(r))},[(0,s.WI)(e.$slots,"default")],6))}});var ab=(0,y.Z)(ob,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const sb=(0,s.aZ)({name:"ElFooter"}),lb=(0,s.aZ)({...sb,props:{height:{type:String,default:null}},setup(e){const t=e,n=(0,b.s3)("footer"),r=(0,s.Fl)((()=>t.height?n.cssVarBlock({height:t.height}):{}));return(e,t)=>((0,s.wg)(),(0,s.iD)("footer",{class:(0,u.C_)((0,l.SU)(n).b()),style:(0,u.j5)((0,l.SU)(r))},[(0,s.WI)(e.$slots,"default")],6))}});var ub=(0,y.Z)(lb,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const cb=(0,s.aZ)({name:"ElHeader"}),db=(0,s.aZ)({...cb,props:{height:{type:String,default:null}},setup(e){const t=e,n=(0,b.s3)("header"),r=(0,s.Fl)((()=>t.height?n.cssVarBlock({height:t.height}):{}));return(e,t)=>((0,s.wg)(),(0,s.iD)("header",{class:(0,u.C_)((0,l.SU)(n).b()),style:(0,u.j5)((0,l.SU)(r))},[(0,s.WI)(e.$slots,"default")],6))}});var pb=(0,y.Z)(db,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const hb=(0,s.aZ)({name:"ElMain"}),fb=(0,s.aZ)({...hb,setup(e){const t=(0,b.s3)("main");return(e,n)=>((0,s.wg)(),(0,s.iD)("main",{class:(0,u.C_)((0,l.SU)(t).b())},[(0,s.WI)(e.$slots,"default")],2))}});var mb=(0,y.Z)(fb,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const gb=(0,D.nz)(rb,{Aside:ab,Footer:ub,Header:pb,Main:mb}),vb=(0,D.dp)(ab),yb=(0,D.dp)(ub),bb=(0,D.dp)(pb),wb=(0,D.dp)(mb);var Sb=n(841),xb=n(9169),_b=n(6245),Cb=n(5227),Eb=n(5093),Mb=n(1294),kb=n(2643);const Tb=Symbol(),Ab=(0,d.o8)({disabledHours:{type:(0,d.Cq)(Function)},disabledMinutes:{type:(0,d.Cq)(Function)},disabledSeconds:{type:(0,d.Cq)(Function)}}),Ub=(0,d.o8)({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),Ib=(0,d.o8)({id:{type:(0,d.Cq)([Array,String])},name:{type:(0,d.Cq)([Array,String]),default:""},popperClass:{type:String,default:""},format:String,valueFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:(0,d.Cq)([String,Object]),default:fe.K41},editable:{type:Boolean,default:!0},prefixIcon:{type:(0,d.Cq)([String,Object]),default:""},size:xe.Pp,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},popperOptions:{type:(0,d.Cq)(Object),default:()=>({})},modelValue:{type:(0,d.Cq)([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:(0,d.Cq)([Date,Array])},defaultTime:{type:(0,d.Cq)([Date,Array])},isRange:{type:Boolean,default:!1},...Ab,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:{type:Boolean,default:!1},label:{type:String,default:void 0},tabindex:{type:(0,d.Cq)([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),Db=(0,d.o8)({...Ib,type:{type:(0,d.Cq)(String),default:"date"}}),Ob=["date","dates","year","month","week","range"],Pb=(0,d.o8)({disabledDate:{type:(0,d.Cq)(Function)},date:{type:(0,d.Cq)(Object),required:!0},minDate:{type:(0,d.Cq)(Object)},maxDate:{type:(0,d.Cq)(Object)},parsedValue:{type:(0,d.Cq)([Object,Array])},rangeState:{type:(0,d.Cq)(Object),default:()=>({endDate:null,selecting:!1})}}),Lb=(0,d.o8)({type:{type:(0,d.Cq)(String),required:!0,values:_s}}),Rb=(0,d.o8)({unlinkPanels:Boolean,parsedValue:{type:(0,d.Cq)(Array)}}),Nb=e=>({type:String,values:Ob,default:e}),Fb=(0,d.o8)({...Lb,parsedValue:{type:(0,d.Cq)([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),zb=(0,d.o8)({...Pb,cellClassName:{type:(0,d.Cq)(Function)},showWeekNumber:Boolean,selectionMode:Nb("date")}),Bb=e=>{if(!(0,u.kJ)(e))return!1;const[t,n]=e;return as.isDayjs(t)&&as.isDayjs(n)&&t.isSameOrBefore(n)},Hb=(e,{lang:t,unit:n,unlinkPanels:r})=>{let i;if((0,u.kJ)(e)){let[i,o]=e.map((e=>as(e).locale(t)));return r||(o=i.add(1,n)),[i,o]}return i=e?as(e):as(),i=i.locale(t),[i,i.add(1,n)]},jb=(e,t,{columnIndexOffset:n,startDate:r,nextEndDate:i,now:o,unit:a,relativeDateGetter:s,setCellMetadata:l,setRowMetadata:u})=>{for(let c=0;c{const{cell:r}=e;if(n.default){const e=n.default(r).filter((e=>-2!==e.patchFlag&&"Symbol(Comment)"!==e.type.toString()));if(e.length)return e}return(0,s.Wm)("div",{class:t.b()},[(0,s.Wm)("span",{class:t.e("text")},[null==r?void 0:r.text])])}}});const $b=["aria-label","onMousedown"],qb={key:0,scope:"col"},Gb=["aria-label"],Zb=["aria-current","aria-selected","tabindex"],Yb=(0,s.aZ)({__name:"basic-date-table",props:zb,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,i=(0,b.s3)("date-table"),{t:o,lang:a}=(0,xs.bU)(),c=(0,l.iH)(),d=(0,l.iH)(),p=(0,l.iH)(),h=(0,l.iH)(),f=(0,l.iH)([[],[],[],[],[],[]]);let m=!1;const g=r.date.$locale().weekStart||7,v=r.date.locale("en").localeData().weekdaysShort().map((e=>e.toLowerCase())),y=(0,s.Fl)((()=>g>3?7-g:-g)),w=(0,s.Fl)((()=>{const e=r.date.startOf("month");return e.subtract(e.day()||7,"day")})),S=(0,s.Fl)((()=>v.concat(v).slice(g,g+7))),x=(0,s.Fl)((()=>gm(T.value).some((e=>e.isCurrent)))),_=(0,s.Fl)((()=>{const e=r.date.startOf("month"),t=e.day()||7,n=e.daysInMonth(),i=e.subtract(1,"month").daysInMonth();return{startOfMonthDay:t,dateCountOfMonth:n,dateCountOfLastMonth:i}})),C=(0,s.Fl)((()=>"dates"===r.selectionMode?Yg(r.parsedValue):[])),E=(e,{count:t,rowIndex:n,columnIndex:r})=>{const{startOfMonthDay:i,dateCountOfMonth:o,dateCountOfLastMonth:a}=(0,l.SU)(_),s=(0,l.SU)(y);if(!(n>=0&&n<=1))return t<=o?e.text=t:(e.text=t-o,e.type="next-month"),!0;{const o=i+s<0?7+i+s:i+s;if(r+7*n>=o)return e.text=t,!0;e.text=a-(o-r%7)+1+7*n,e.type="prev-month"}return!1},M=(e,{columnIndex:t,rowIndex:n},i)=>{const{disabledDate:o,cellClassName:a}=r,s=(0,l.SU)(C),u=E(e,{count:i,rowIndex:n,columnIndex:t}),c=e.dayjs.toDate();return e.selected=s.find((t=>t.valueOf()===e.dayjs.valueOf())),e.isSelected=!!e.selected,e.isCurrent=I(e),e.disabled=null==o?void 0:o(c),e.customClass=null==a?void 0:a(c),u},k=e=>{if("week"===r.selectionMode){const[t,n]=r.showWeekNumber?[1,7]:[0,6],i=j(e[t+1]);e[t].inRange=i,e[t].start=i,e[n].inRange=i,e[n].end=i}},T=(0,s.Fl)((()=>{const{minDate:e,maxDate:t,rangeState:n,showWeekNumber:i}=r,o=y.value,s=f.value,u="day";let c=1;if(i)for(let r=0;r<6;r++)s[r][0]||(s[r][0]={type:"week",text:w.value.add(7*r+1,u).week()});return jb({row:6,column:7},s,{startDate:e,columnIndexOffset:i?1:0,nextEndDate:n.endDate||t||n.selecting&&e||null,now:as().locale((0,l.SU)(a)).startOf(u),unit:u,relativeDateGetter:e=>w.value.add(e-o,u),setCellMetadata:(...e)=>{M(...e,c)&&(c+=1)},setRowMetadata:k}),s}));(0,s.YP)((()=>r.date),(async()=>{var e,t;(null==(e=c.value)?void 0:e.contains(document.activeElement))&&(await(0,s.Y3)(),null==(t=d.value)||t.focus())}));const A=async()=>{var e;null==(e=d.value)||e.focus()},U=(e="")=>["normal","today"].includes(e),I=e=>"date"===r.selectionMode&&U(e.type)&&D(e,r.parsedValue),D=(e,t)=>!!t&&as(t).locale(a.value).isSame(r.date.date(Number(e.text)),"day"),O=e=>{const t=[];return U(e.type)&&!e.disabled?(t.push("available"),"today"===e.type&&t.push("today")):t.push(e.type),I(e)&&t.push("current"),e.inRange&&(U(e.type)||"week"===r.selectionMode)&&(t.push("in-range"),e.start&&t.push("start-date"),e.end&&t.push("end-date")),e.disabled&&t.push("disabled"),e.selected&&t.push("selected"),e.customClass&&t.push(e.customClass),t.join(" ")},L=(e,t)=>{const n=7*e+(t-(r.showWeekNumber?1:0))-y.value;return w.value.add(n,"day")},R=e=>{var t;if(!r.rangeState.selecting)return;let i=e.target;if("SPAN"===i.tagName&&(i=null==(t=i.parentNode)?void 0:t.parentNode),"DIV"===i.tagName&&(i=i.parentNode),"TD"!==i.tagName)return;const o=i.parentNode.rowIndex-1,a=i.cellIndex;T.value[o][a].disabled||o===p.value&&a===h.value||(p.value=o,h.value=a,n("changerange",{selecting:!0,endDate:L(o,a)}))},N=e=>!x.value&&1===(null==e?void 0:e.text)&&"normal"===e.type||e.isCurrent,F=e=>{m||x.value||"date"!==r.selectionMode||H(e,!0)},z=e=>{const t=e.target.closest("td");t&&(m=!0)},B=e=>{const t=e.target.closest("td");t&&(m=!1)},H=(e,t=!1)=>{const i=e.target.closest("td");if(!i)return;const o=i.parentNode.rowIndex-1,a=i.cellIndex,s=T.value[o][a];if(s.disabled||"week"===s.type)return;const l=L(o,a);if("range"===r.selectionMode)r.rangeState.selecting&&r.minDate?(l>=r.minDate?n("pick",{minDate:r.minDate,maxDate:l}):n("pick",{minDate:l,maxDate:r.minDate}),n("select",!1)):(n("pick",{minDate:l,maxDate:null}),n("select",!0));else if("date"===r.selectionMode)n("pick",l,t);else if("week"===r.selectionMode){const e=l.week(),t=`${l.year()}w${e}`;n("pick",{year:l.year(),week:e,value:t,date:l.startOf("week")})}else if("dates"===r.selectionMode){const e=s.selected?Yg(r.parsedValue).filter((e=>(null==e?void 0:e.valueOf())!==l.valueOf())):Yg(r.parsedValue).concat([l]);n("pick",e)}},j=e=>{if("week"!==r.selectionMode)return!1;let t=r.date.startOf("day");if("prev-month"===e.type&&(t=t.subtract(1,"month")),"next-month"===e.type&&(t=t.add(1,"month")),t=t.date(Number.parseInt(e.text,10)),r.parsedValue&&!Array.isArray(r.parsedValue)){const e=(r.parsedValue.day()-g+7)%7-1,n=r.parsedValue.subtract(e,"day");return n.isSame(t,"day")}return!1};return t({focus:A}),(e,t)=>((0,s.wg)(),(0,s.iD)("table",{role:"grid","aria-label":(0,l.SU)(o)("el.datepicker.dateTablePrompt"),cellspacing:"0",cellpadding:"0",class:(0,u.C_)([(0,l.SU)(i).b(),{"is-week-mode":"week"===e.selectionMode}]),onClick:H,onMousemove:R,onMousedown:(0,P.iM)(z,["prevent"]),onMouseup:B},[(0,s._)("tbody",{ref_key:"tbodyRef",ref:c},[(0,s._)("tr",null,[e.showWeekNumber?((0,s.wg)(),(0,s.iD)("th",qb,(0,u.zw)((0,l.SU)(o)("el.datepicker.week")),1)):(0,s.kq)("v-if",!0),((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)((0,l.SU)(S),((e,t)=>((0,s.wg)(),(0,s.iD)("th",{key:t,scope:"col","aria-label":(0,l.SU)(o)("el.datepicker.weeksFull."+e)},(0,u.zw)((0,l.SU)(o)("el.datepicker.weeks."+e)),9,Gb)))),128))]),((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)((0,l.SU)(T),((e,t)=>((0,s.wg)(),(0,s.iD)("tr",{key:t,class:(0,u.C_)([(0,l.SU)(i).e("row"),{current:j(e[1])}])},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e,((e,n)=>((0,s.wg)(),(0,s.iD)("td",{key:`${t}.${n}`,ref_for:!0,ref:t=>N(e)&&(d.value=t),class:(0,u.C_)(O(e)),"aria-current":e.isCurrent?"date":void 0,"aria-selected":e.isCurrent,tabindex:N(e)?0:-1,onFocus:F},[(0,s.Wm)((0,l.SU)(Wb),{cell:e},null,8,["cell"])],42,Zb)))),128))],2)))),128))],512)],42,$b))}});var Kb=(0,y.Z)(Yb,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-date-table.vue"]]);const Xb=(0,d.o8)({...Pb,selectionMode:Nb("month")}),Jb=["aria-label"],Qb=["aria-selected","aria-label","tabindex","onKeydown"],ew={class:"cell"},tw=(0,s.aZ)({__name:"basic-month-table",props:Xb,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,i=(e,t,n)=>{const r=as().locale(n).startOf("month").month(t).year(e),i=r.daysInMonth();return ls(i).map((e=>r.add(e,"day").toDate()))},o=(0,b.s3)("month-table"),{t:a,lang:c}=(0,xs.bU)(),d=(0,l.iH)(),p=(0,l.iH)(),h=(0,l.iH)(r.date.locale("en").localeData().monthsShort().map((e=>e.toLowerCase()))),f=(0,l.iH)([[],[],[]]),m=(0,l.iH)(),g=(0,l.iH)(),v=(0,s.Fl)((()=>{var e,t;const n=f.value,i=as().locale(c.value).startOf("month");for(let o=0;o<3;o++){const a=n[o];for(let n=0;n<4;n++){const s=a[n]||(a[n]={row:o,column:n,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});s.type="normal";const l=4*o+n,u=r.date.startOf("year").month(l),c=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;s.inRange=!!(r.minDate&&u.isSameOrAfter(r.minDate,"month")&&c&&u.isSameOrBefore(c,"month"))||!!(r.minDate&&u.isSameOrBefore(r.minDate,"month")&&c&&u.isSameOrAfter(c,"month")),(null==(e=r.minDate)?void 0:e.isSameOrAfter(c))?(s.start=!(!c||!u.isSame(c,"month")),s.end=r.minDate&&u.isSame(r.minDate,"month")):(s.start=!(!r.minDate||!u.isSame(r.minDate,"month")),s.end=!(!c||!u.isSame(c,"month")));const d=i.isSame(u);d&&(s.type="today"),s.text=l,s.disabled=(null==(t=r.disabledDate)?void 0:t.call(r,u.toDate()))||!1}}return n})),y=()=>{var e;null==(e=p.value)||e.focus()},S=e=>{const t={},n=r.date.year(),o=new Date,a=e.text;return t.disabled=!!r.disabledDate&&i(n,a,c.value).every(r.disabledDate),t.current=Yg(r.parsedValue).findIndex((e=>as.isDayjs(e)&&e.year()===n&&e.month()===a))>=0,t.today=o.getFullYear()===n&&o.getMonth()===a,e.inRange&&(t["in-range"]=!0,e.start&&(t["start-date"]=!0),e.end&&(t["end-date"]=!0)),t},x=e=>{const t=r.date.year(),n=e.text;return Yg(r.date).findIndex((e=>e.year()===t&&e.month()===n))>=0},_=e=>{var t;if(!r.rangeState.selecting)return;let i=e.target;if("A"===i.tagName&&(i=null==(t=i.parentNode)?void 0:t.parentNode),"DIV"===i.tagName&&(i=i.parentNode),"TD"!==i.tagName)return;const o=i.parentNode.rowIndex,a=i.cellIndex;v.value[o][a].disabled||o===m.value&&a===g.value||(m.value=o,g.value=a,n("changerange",{selecting:!0,endDate:r.date.startOf("year").month(4*o+a)}))},C=e=>{var t;const i=null==(t=e.target)?void 0:t.closest("td");if("TD"!==(null==i?void 0:i.tagName))return;if((0,w.pv)(i,"disabled"))return;const o=i.cellIndex,a=i.parentNode.rowIndex,s=4*a+o,l=r.date.startOf("year").month(s);"range"===r.selectionMode?r.rangeState.selecting?(r.minDate&&l>=r.minDate?n("pick",{minDate:r.minDate,maxDate:l}):n("pick",{minDate:l,maxDate:r.minDate}),n("select",!1)):(n("pick",{minDate:l,maxDate:null}),n("select",!0)):n("pick",s)};return(0,s.YP)((()=>r.date),(async()=>{var e,t;(null==(e=d.value)?void 0:e.contains(document.activeElement))&&(await(0,s.Y3)(),null==(t=p.value)||t.focus())})),t({focus:y}),(e,t)=>((0,s.wg)(),(0,s.iD)("table",{role:"grid","aria-label":(0,l.SU)(a)("el.datepicker.monthTablePrompt"),class:(0,u.C_)((0,l.SU)(o).b()),onClick:C,onMousemove:_},[(0,s._)("tbody",{ref_key:"tbodyRef",ref:d},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)((0,l.SU)(v),((e,t)=>((0,s.wg)(),(0,s.iD)("tr",{key:t},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e,((e,t)=>((0,s.wg)(),(0,s.iD)("td",{key:t,ref_for:!0,ref:t=>x(e)&&(p.value=t),class:(0,u.C_)(S(e)),"aria-selected":`${x(e)}`,"aria-label":(0,l.SU)(a)("el.datepicker.month"+(+e.text+1)),tabindex:x(e)?0:-1,onKeydown:[(0,P.D2)((0,P.iM)(C,["prevent","stop"]),["space"]),(0,P.D2)((0,P.iM)(C,["prevent","stop"]),["enter"])]},[(0,s._)("div",null,[(0,s._)("span",ew,(0,u.zw)((0,l.SU)(a)("el.datepicker.months."+h.value[e.text])),1)])],42,Qb)))),128))])))),128))],512)],42,Jb))}});var nw=(0,y.Z)(tw,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-month-table.vue"]]);const{date:rw,disabledDate:iw,parsedValue:ow}=Pb,aw=(0,d.o8)({date:rw,disabledDate:iw,parsedValue:ow}),sw=["aria-label"],lw=["aria-selected","tabindex","onKeydown"],uw={class:"cell"},cw={key:1},dw=(0,s.aZ)({__name:"basic-year-table",props:aw,emits:["pick"],setup(e,{expose:t,emit:n}){const r=e,i=(e,t)=>{const n=as(String(e)).locale(t).startOf("year"),r=n.endOf("year"),i=r.dayOfYear();return ls(i).map((e=>n.add(e,"day").toDate()))},o=(0,b.s3)("year-table"),{t:a,lang:c}=(0,xs.bU)(),d=(0,l.iH)(),p=(0,l.iH)(),h=(0,s.Fl)((()=>10*Math.floor(r.date.year()/10))),f=()=>{var e;null==(e=p.value)||e.focus()},m=e=>{const t={},n=as().locale(c.value);return t.disabled=!!r.disabledDate&&i(e,c.value).every(r.disabledDate),t.current=Yg(r.parsedValue).findIndex((t=>t.year()===e))>=0,t.today=n.year()===e,t},g=e=>e===h.value&&r.date.year()h.value+9||Yg(r.date).findIndex((t=>t.year()===e))>=0,v=e=>{const t=e.target,r=t.closest("td");if(r&&r.textContent){if((0,w.pv)(r,"disabled"))return;const e=r.textContent||r.innerText;n("pick",Number(e))}};return(0,s.YP)((()=>r.date),(async()=>{var e,t;(null==(e=d.value)?void 0:e.contains(document.activeElement))&&(await(0,s.Y3)(),null==(t=p.value)||t.focus())})),t({focus:f}),(e,t)=>((0,s.wg)(),(0,s.iD)("table",{role:"grid","aria-label":(0,l.SU)(a)("el.datepicker.yearTablePrompt"),class:(0,u.C_)((0,l.SU)(o).b()),onClick:v},[(0,s._)("tbody",{ref_key:"tbodyRef",ref:d},[((0,s.wg)(),(0,s.iD)(s.HY,null,(0,s.Ko)(3,((e,t)=>(0,s._)("tr",{key:t},[((0,s.wg)(),(0,s.iD)(s.HY,null,(0,s.Ko)(4,((e,n)=>((0,s.wg)(),(0,s.iD)(s.HY,{key:t+"_"+n},[4*t+n<10?((0,s.wg)(),(0,s.iD)("td",{key:0,ref_for:!0,ref:e=>g((0,l.SU)(h)+4*t+n)&&(p.value=e),class:(0,u.C_)(["available",m((0,l.SU)(h)+4*t+n)]),"aria-selected":`${g((0,l.SU)(h)+4*t+n)}`,tabindex:g((0,l.SU)(h)+4*t+n)?0:-1,onKeydown:[(0,P.D2)((0,P.iM)(v,["prevent","stop"]),["space"]),(0,P.D2)((0,P.iM)(v,["prevent","stop"]),["enter"])]},[(0,s._)("span",uw,(0,u.zw)((0,l.SU)(h)+4*t+n),1)],42,lw)):((0,s.wg)(),(0,s.iD)("td",cw))],64)))),64))]))),64))],512)],10,sw))}});var pw=(0,y.Z)(dw,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-year-table.vue"]]);const hw=(0,d.o8)({...Ub,datetimeRole:String,parsedValue:{type:(0,d.Cq)(Object)}}),fw=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const r=(r,i,o,a)=>{const s={hour:e,minute:t,second:n};let l=r;return["hour","minute","second"].forEach((e=>{if(s[e]){let t;const n=s[e];switch(e){case"minute":t=n(l.hour(),i,a);break;case"second":t=n(l.hour(),l.minute(),i,a);break;default:t=n(i,a);break}if((null==t?void 0:t.length)&&!t.includes(l[e]())){const n=o?0:t.length-1;l=l[e](t[n])}}})),l},i={},o=([e,t])=>{i[e]=t};return{timePickerOptions:i,getAvailableTime:r,onSetOption:o}},mw=e=>{const t=(e,t)=>e||t,n=e=>!0!==e;return e.map(t).filter(n)},gw=(e,t,n)=>{const r=(t,n)=>ms(24,e&&(()=>null==e?void 0:e(t,n))),i=(e,n,r)=>ms(60,t&&(()=>null==t?void 0:t(e,n,r))),o=(e,t,r,i)=>ms(60,n&&(()=>null==n?void 0:n(e,t,r,i)));return{getHoursList:r,getMinutesList:i,getSecondsList:o}},vw=(e,t,n)=>{const{getHoursList:r,getMinutesList:i,getSecondsList:o}=gw(e,t,n),a=(e,t)=>mw(r(e,t)),s=(e,t,n)=>mw(i(e,t,n)),l=(e,t,n,r)=>mw(o(e,t,n,r));return{getAvailableHours:a,getAvailableMinutes:s,getAvailableSeconds:l}},yw=e=>{const t=(0,l.iH)(e.parsedValue);return(0,s.YP)((()=>e.visible),(n=>{n||(t.value=e.parsedValue)})),t},bw=["hours","minutes","seconds"],ww="HH:mm:ss",Sw="YYYY-MM-DD",xw={date:Sw,dates:Sw,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${Sw} ${ww}`,monthrange:"YYYY-MM",daterange:Sw,datetimerange:`${Sw} ${ww}`},_w=(0,d.o8)({role:{type:String,required:!0},spinnerDate:{type:(0,d.Cq)(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:(0,d.Cq)(String),default:""},...Ab}),Cw=100,Ew=600,Mw={beforeMount(e,t){const n=t.value,{interval:r=Cw,delay:i=Ew}=(0,u.mf)(n)?{}:n;let o,a;const s=()=>(0,u.mf)(n)?n():n.handler(),l=()=>{a&&(clearTimeout(a),a=void 0),o&&(clearInterval(o),o=void 0)};e.addEventListener("mousedown",(e=>{0===e.button&&(l(),s(),document.addEventListener("mouseup",(()=>l()),{once:!0}),a=setTimeout((()=>{o=setInterval((()=>{s()}),r)}),i))}))}},kw=["onClick"],Tw=["onMouseenter"],Aw=(0,s.aZ)({__name:"basic-time-spinner",props:_w,emits:["change","select-range","set-option"],setup(e,{emit:t}){const n=e,r=(0,b.s3)("time"),{getHoursList:i,getMinutesList:o,getSecondsList:a}=gw(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let c=!1;const d=(0,l.iH)(),p=(0,l.iH)(),h=(0,l.iH)(),f=(0,l.iH)(),m={hours:p,minutes:h,seconds:f},g=(0,s.Fl)((()=>n.showSeconds?bw:bw.slice(0,2))),v=(0,s.Fl)((()=>{const{spinnerDate:e}=n,t=e.hour(),r=e.minute(),i=e.second();return{hours:t,minutes:r,seconds:i}})),y=(0,s.Fl)((()=>{const{hours:e,minutes:t}=(0,l.SU)(v);return{hours:i(n.role),minutes:o(e,n.role),seconds:a(e,t,n.role)}})),w=(0,s.Fl)((()=>{const{hours:e,minutes:t,seconds:n}=(0,l.SU)(v);return{hours:ss(e,23),minutes:ss(t,59),seconds:ss(n,59)}})),S=he((e=>{c=!1,C(e)}),200),x=e=>{const t=!!n.amPmMode;if(!t)return"";const r="A"===n.amPmMode;let i=e<12?" am":" pm";return r&&(i=i.toUpperCase()),i},_=e=>{let n;switch(e){case"hours":n=[0,2];break;case"minutes":n=[3,5];break;case"seconds":n=[6,8];break}const[r,i]=n;t("select-range",r,i),d.value=e},C=e=>{k(e,(0,l.SU)(v)[e])},E=()=>{C("hours"),C("minutes"),C("seconds")},M=e=>e.querySelector(`.${r.namespace.value}-scrollbar__wrap`),k=(e,t)=>{if(n.arrowControl)return;const r=(0,l.SU)(m[e]);r&&r.$el&&(M(r.$el).scrollTop=Math.max(0,t*T(e)))},T=e=>{const t=(0,l.SU)(m[e]);return(null==t?void 0:t.$el.querySelector("li").offsetHeight)||0},A=()=>{I(1)},U=()=>{I(-1)},I=e=>{d.value||_("hours");const t=d.value,n=(0,l.SU)(v)[t],r="hours"===d.value?24:60,i=D(t,n,e,r);O(t,i),k(t,i),(0,s.Y3)((()=>_(t)))},D=(e,t,n,r)=>{let i=(t+n+r)%r;const o=(0,l.SU)(y)[e];while(o[i]&&i!==t)i=(i+n+r)%r;return i},O=(e,r)=>{const i=(0,l.SU)(y)[e],o=i[r];if(o)return;const{hours:a,minutes:s,seconds:u}=(0,l.SU)(v);let c;switch(e){case"hours":c=n.spinnerDate.hour(r).minute(s).second(u);break;case"minutes":c=n.spinnerDate.hour(a).minute(r).second(u);break;case"seconds":c=n.spinnerDate.hour(a).minute(s).second(r);break}t("change",c)},P=(e,{value:t,disabled:n})=>{n||(O(e,t),_(e),k(e,t))},R=e=>{c=!0,S(e);const t=Math.min(Math.round((M((0,l.SU)(m[e]).$el).scrollTop-(.5*N(e)-10)/T(e)+3)/T(e)),"hours"===e?23:59);O(e,t)},N=e=>(0,l.SU)(m[e]).$el.offsetHeight,F=()=>{const e=e=>{const t=(0,l.SU)(m[e]);t&&t.$el&&(M(t.$el).onscroll=()=>{R(e)})};e("hours"),e("minutes"),e("seconds")};(0,s.bv)((()=>{(0,s.Y3)((()=>{!n.arrowControl&&F(),E(),"start"===n.role&&_("hours")}))}));const z=(e,t)=>{m[t].value=e};return t("set-option",[`${n.role}_scrollDown`,I]),t("set-option",[`${n.role}_emitSelectRange`,_]),(0,s.YP)((()=>n.spinnerDate),(()=>{c||E()})),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)([(0,l.SU)(r).b("spinner"),{"has-seconds":e.showSeconds}])},[e.arrowControl?(0,s.kq)("v-if",!0):((0,s.wg)(!0),(0,s.iD)(s.HY,{key:0},(0,s.Ko)((0,l.SU)(g),(t=>((0,s.wg)(),(0,s.j4)((0,l.SU)(ht),{key:t,ref_for:!0,ref:e=>z(e,t),class:(0,u.C_)((0,l.SU)(r).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":(0,l.SU)(r).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:e=>_(t),onMousemove:e=>C(t)},{default:(0,s.w5)((()=>[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)((0,l.SU)(y)[t],((n,i)=>((0,s.wg)(),(0,s.iD)("li",{key:i,class:(0,u.C_)([(0,l.SU)(r).be("spinner","item"),(0,l.SU)(r).is("active",i===(0,l.SU)(v)[t]),(0,l.SU)(r).is("disabled",n)]),onClick:e=>P(t,{value:i,disabled:n})},["hours"===t?((0,s.wg)(),(0,s.iD)(s.HY,{key:0},[(0,s.Uk)((0,u.zw)(("0"+(e.amPmMode?i%12||12:i)).slice(-2))+(0,u.zw)(x(i)),1)],64)):((0,s.wg)(),(0,s.iD)(s.HY,{key:1},[(0,s.Uk)((0,u.zw)(("0"+i).slice(-2)),1)],64))],10,kw)))),128))])),_:2},1032,["class","view-class","onMouseenter","onMousemove"])))),128)),e.arrowControl?((0,s.wg)(!0),(0,s.iD)(s.HY,{key:1},(0,s.Ko)((0,l.SU)(g),(t=>((0,s.wg)(),(0,s.iD)("div",{key:t,class:(0,u.C_)([(0,l.SU)(r).be("spinner","wrapper"),(0,l.SU)(r).is("arrow")]),onMouseenter:e=>_(t)},[(0,s.wy)(((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{class:(0,u.C_)(["arrow-up",(0,l.SU)(r).be("spinner","arrow")])},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.a2Z))])),_:1},8,["class"])),[[(0,l.SU)(Mw),U]]),(0,s.wy)(((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{class:(0,u.C_)(["arrow-down",(0,l.SU)(r).be("spinner","arrow")])},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.K5e))])),_:1},8,["class"])),[[(0,l.SU)(Mw),A]]),(0,s._)("ul",{class:(0,u.C_)((0,l.SU)(r).be("spinner","list"))},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)((0,l.SU)(w)[t],((n,i)=>((0,s.wg)(),(0,s.iD)("li",{key:i,class:(0,u.C_)([(0,l.SU)(r).be("spinner","item"),(0,l.SU)(r).is("active",n===(0,l.SU)(v)[t]),(0,l.SU)(r).is("disabled",(0,l.SU)(y)[t][n])])},["number"===typeof n?((0,s.wg)(),(0,s.iD)(s.HY,{key:0},["hours"===t?((0,s.wg)(),(0,s.iD)(s.HY,{key:0},[(0,s.Uk)((0,u.zw)(("0"+(e.amPmMode?n%12||12:n)).slice(-2))+(0,u.zw)(x(n)),1)],64)):((0,s.wg)(),(0,s.iD)(s.HY,{key:1},[(0,s.Uk)((0,u.zw)(("0"+n).slice(-2)),1)],64))],64)):(0,s.kq)("v-if",!0)],2)))),128))],2)],42,Tw)))),128)):(0,s.kq)("v-if",!0)],2))}});var Uw=(0,y.Z)(Aw,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const Iw=(0,s.aZ)({__name:"panel-time-pick",props:hw,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=(0,s.f3)("EP_PICKER_BASE"),{arrowControl:i,disabledHours:o,disabledMinutes:a,disabledSeconds:c,defaultValue:d}=r.props,{getAvailableHours:h,getAvailableMinutes:f,getAvailableSeconds:m}=vw(o,a,c),g=(0,b.s3)("time"),{t:v,lang:y}=(0,xs.bU)(),w=(0,l.iH)([0,2]),S=yw(n),x=(0,s.Fl)((()=>(0,p.o8)(n.actualVisible)?`${g.namespace.value}-zoom-in-top`:"")),_=(0,s.Fl)((()=>n.format.includes("ss"))),C=(0,s.Fl)((()=>n.format.includes("A")?"A":n.format.includes("a")?"a":"")),E=e=>{const t=as(e).locale(y.value),n=R(t);return t.isSame(n)},M=()=>{t("pick",S.value,!1)},k=(e=!1,r=!1)=>{r||t("pick",n.parsedValue,e)},T=e=>{if(!n.visible)return;const r=R(e).millisecond(0);t("pick",r,!0)},A=(e,n)=>{t("select-range",e,n),w.value=[e,n]},U=e=>{const t=[0,3].concat(_.value?[6]:[]),n=["hours","minutes"].concat(_.value?["seconds"]:[]),r=t.indexOf(w.value[0]),i=(r+e+t.length)%t.length;D["start_emitSelectRange"](n[i])},I=e=>{const t=e.code,{left:n,right:r,up:i,down:o}=Fr.EVENT_CODE;if([n,r].includes(t)){const r=t===n?-1:1;return U(r),void e.preventDefault()}if([i,o].includes(t)){const n=t===i?-1:1;return D["start_scrollDown"](n),void e.preventDefault()}},{timePickerOptions:D,onSetOption:O,getAvailableTime:L}=fw({getAvailableHours:h,getAvailableMinutes:f,getAvailableSeconds:m}),R=e=>L(e,n.datetimeRole||"",!0),N=e=>e?as(e,n.format).locale(y.value):null,F=e=>e?e.format(n.format):null,z=()=>as(d).locale(y.value);return t("set-picker-option",["isValidValue",E]),t("set-picker-option",["formatToString",F]),t("set-picker-option",["parseUserInput",N]),t("set-picker-option",["handleKeydownInput",I]),t("set-picker-option",["getRangeAvailableTime",R]),t("set-picker-option",["getDefaultValue",z]),(e,t)=>((0,s.wg)(),(0,s.j4)(P.uT,{name:(0,l.SU)(x)},{default:(0,s.w5)((()=>[e.actualVisible||e.visible?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)((0,l.SU)(g).b("panel"))},[(0,s._)("div",{class:(0,u.C_)([(0,l.SU)(g).be("panel","content"),{"has-seconds":(0,l.SU)(_)}])},[(0,s.Wm)(Uw,{ref:"spinner",role:e.datetimeRole||"start","arrow-control":(0,l.SU)(i),"show-seconds":(0,l.SU)(_),"am-pm-mode":(0,l.SU)(C),"spinner-date":e.parsedValue,"disabled-hours":(0,l.SU)(o),"disabled-minutes":(0,l.SU)(a),"disabled-seconds":(0,l.SU)(c),onChange:T,onSetOption:(0,l.SU)(O),onSelectRange:A},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),(0,s._)("div",{class:(0,u.C_)((0,l.SU)(g).be("panel","footer"))},[(0,s._)("button",{type:"button",class:(0,u.C_)([(0,l.SU)(g).be("panel","btn"),"cancel"]),onClick:M},(0,u.zw)((0,l.SU)(v)("el.datepicker.cancel")),3),(0,s._)("button",{type:"button",class:(0,u.C_)([(0,l.SU)(g).be("panel","btn"),"confirm"]),onClick:t[0]||(t[0]=e=>k())},(0,u.zw)((0,l.SU)(v)("el.datepicker.confirm")),3)],2)],2)):(0,s.kq)("v-if",!0)])),_:1},8,["name"]))}});var Dw=(0,y.Z)(Iw,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-pick.vue"]]);const Ow=["onClick"],Pw=["aria-label"],Lw=["aria-label"],Rw=["aria-label"],Nw=["aria-label"],Fw=(0,s.aZ)({__name:"panel-date-pick",props:Fb,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=e,r=(e,t,n)=>!0,i=(0,b.s3)("picker-panel"),o=(0,b.s3)("date-picker"),a=(0,s.l1)(),c=(0,s.Rr)(),{t:d,lang:p}=(0,xs.bU)(),h=(0,s.f3)("EP_PICKER_BASE"),f=(0,s.f3)(xt),{shortcuts:m,disabledDate:g,cellClassName:v,defaultTime:y,arrowControl:w}=h.props,S=(0,l.Vh)(h.props,"defaultValue"),x=(0,l.iH)(),_=(0,l.iH)(as().locale(p.value)),C=(0,l.iH)(!1),E=(0,s.Fl)((()=>as(y).locale(p.value))),M=(0,s.Fl)((()=>_.value.month())),k=(0,s.Fl)((()=>_.value.year())),T=(0,l.iH)([]),A=(0,l.iH)(null),U=(0,l.iH)(null),I=e=>!(T.value.length>0)||r(e,T.value,n.format||"HH:mm:ss"),D=e=>!y||ee.value||C.value?Z.value?e.millisecond(0):e.startOf("day"):E.value.year(e.year()).month(e.month()).date(e.date()),O=(e,...n)=>{if(e)if((0,u.kJ)(e)){const r=e.map(D);t("pick",r,...n)}else t("pick",D(e),...n);else t("pick",e,...n);A.value=null,U.value=null,C.value=!1},R=(e,t)=>{if("date"===j.value){let r=n.parsedValue?n.parsedValue.year(e.year()).month(e.month()).date(e.date()):e;I(r)||(r=T.value[0][0].year(e.year()).month(e.month()).date(e.date())),_.value=r,O(r,Z.value||t)}else"week"===j.value?O(e.date):"dates"===j.value&&O(e,!0)},N=e=>{const t=e?"add":"subtract";_.value=_.value[t](1,"month"),ve("month")},F=e=>{const t=_.value,n=e?"add":"subtract";_.value="year"===z.value?t[n](10,"year"):t[n](1,"year"),ve("year")},z=(0,l.iH)("date"),B=(0,s.Fl)((()=>{const e=d("el.datepicker.year");if("year"===z.value){const t=10*Math.floor(k.value/10);return e?`${t} ${e} - ${t+9} ${e}`:`${t} - ${t+9}`}return`${k.value} ${e}`})),H=e=>{const n=(0,u.mf)(e.value)?e.value():e.value;n?O(as(n).locale(p.value)):e.onClick&&e.onClick({attrs:a,slots:c,emit:t})},j=(0,s.Fl)((()=>{const{type:e}=n;return["week","month","year","dates"].includes(e)?e:"date"})),V=(0,s.Fl)((()=>"date"===j.value?z.value:j.value)),W=(0,s.Fl)((()=>!!m.length)),$=async e=>{_.value=_.value.startOf("month").month(e),"month"===j.value?O(_.value,!1):(z.value="date",["month","year","date","week"].includes(j.value)&&(O(_.value,!0),await(0,s.Y3)(),he())),ve("month")},q=async e=>{"year"===j.value?(_.value=_.value.startOf("year").year(e),O(_.value,!1)):(_.value=_.value.year(e),z.value="month",["month","year","date","week"].includes(j.value)&&(O(_.value,!0),await(0,s.Y3)(),he())),ve("year")},G=async e=>{z.value=e,await(0,s.Y3)(),he()},Z=(0,s.Fl)((()=>"datetime"===n.type||"datetimerange"===n.type)),Y=(0,s.Fl)((()=>Z.value||"dates"===j.value)),K=()=>{if("dates"===j.value)O(n.parsedValue);else{let e=n.parsedValue;if(!e){const t=as(y).locale(p.value),n=pe();e=t.year(n.year()).month(n.month()).date(n.date())}_.value=e,O(e)}},X=()=>{const e=as().locale(p.value),t=e.toDate();C.value=!0,g&&g(t)||!I(t)||(_.value=as().locale(p.value),O(_.value))},J=(0,s.Fl)((()=>cs(n.format))),Q=(0,s.Fl)((()=>us(n.format))),ee=(0,s.Fl)((()=>U.value?U.value:n.parsedValue||S.value?(n.parsedValue||_.value).format(J.value):void 0)),te=(0,s.Fl)((()=>A.value?A.value:n.parsedValue||S.value?(n.parsedValue||_.value).format(Q.value):void 0)),ne=(0,l.iH)(!1),re=()=>{ne.value=!0},ie=()=>{ne.value=!1},oe=e=>({hour:e.hour(),minute:e.minute(),second:e.second(),year:e.year(),month:e.month(),date:e.date()}),ae=(e,t,r)=>{const{hour:i,minute:o,second:a}=oe(e),s=n.parsedValue?n.parsedValue.hour(i).minute(o).second(a):e;_.value=s,O(_.value,!0),r||(ne.value=t)},se=e=>{const t=as(e,J.value).locale(p.value);if(t.isValid()&&I(t)){const{year:e,month:n,date:r}=oe(_.value);_.value=t.year(e).month(n).date(r),U.value=null,ne.value=!1,O(_.value,!0)}},le=e=>{const t=as(e,Q.value).locale(p.value);if(t.isValid()){if(g&&g(t.toDate()))return;const{hour:e,minute:n,second:r}=oe(_.value);_.value=t.hour(e).minute(n).second(r),A.value=null,O(_.value,!0)}},ue=e=>as.isDayjs(e)&&e.isValid()&&(!g||!g(e.toDate())),ce=e=>"dates"===j.value?e.map((e=>e.format(n.format))):e.format(n.format),de=e=>as(e,n.format).locale(p.value),pe=()=>{const e=as(S.value).locale(p.value);if(!S.value){const e=E.value;return as().hour(e.hour()).minute(e.minute()).second(e.second()).locale(p.value)}return e},he=async()=>{var e;["week","month","year","date"].includes(j.value)&&(null==(e=x.value)||e.focus(),"week"===j.value&&ge(Fr.EVENT_CODE.down))},me=e=>{const{code:t}=e,n=[Fr.EVENT_CODE.up,Fr.EVENT_CODE.down,Fr.EVENT_CODE.left,Fr.EVENT_CODE.right,Fr.EVENT_CODE.home,Fr.EVENT_CODE.end,Fr.EVENT_CODE.pageUp,Fr.EVENT_CODE.pageDown];n.includes(t)&&(ge(t),e.stopPropagation(),e.preventDefault()),[Fr.EVENT_CODE.enter,Fr.EVENT_CODE.space,Fr.EVENT_CODE.numpadEnter].includes(t)&&null===A.value&&null===U.value&&(e.preventDefault(),O(_.value,!1))},ge=e=>{var n;const{up:r,down:i,left:o,right:a,home:s,end:l,pageUp:c,pageDown:d}=Fr.EVENT_CODE,h={year:{[r]:-4,[i]:4,[o]:-1,[a]:1,offset:(e,t)=>e.setFullYear(e.getFullYear()+t)},month:{[r]:-4,[i]:4,[o]:-1,[a]:1,offset:(e,t)=>e.setMonth(e.getMonth()+t)},week:{[r]:-1,[i]:1,[o]:-1,[a]:1,offset:(e,t)=>e.setDate(e.getDate()+7*t)},date:{[r]:-7,[i]:7,[o]:-1,[a]:1,[s]:e=>-e.getDay(),[l]:e=>6-e.getDay(),[c]:e=>-new Date(e.getFullYear(),e.getMonth(),0).getDate(),[d]:e=>new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),offset:(e,t)=>e.setDate(e.getDate()+t)}},f=_.value.toDate();while(Math.abs(_.value.diff(f,"year",!0))<1){const r=h[V.value];if(!r)return;if(r.offset(f,(0,u.mf)(r[e])?r[e](f):null!=(n=r[e])?n:0),g&&g(f))break;const i=as(f).locale(p.value);_.value=i,t("pick",i,!0);break}},ve=e=>{t("panel-change",_.value.toDate(),e,z.value)};return(0,s.YP)((()=>j.value),(e=>{["month","year"].includes(e)?z.value=e:z.value="date"}),{immediate:!0}),(0,s.YP)((()=>z.value),(()=>{null==f||f.updatePopper()})),(0,s.YP)((()=>S.value),(e=>{e&&(_.value=pe())}),{immediate:!0}),(0,s.YP)((()=>n.parsedValue),(e=>{if(e){if("dates"===j.value)return;if(Array.isArray(e))return;_.value=e}else _.value=pe()}),{immediate:!0}),t("set-picker-option",["isValidValue",ue]),t("set-picker-option",["formatToString",ce]),t("set-picker-option",["parseUserInput",de]),t("set-picker-option",["handleFocusPicker",he]),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)([(0,l.SU)(i).b(),(0,l.SU)(o).b(),{"has-sidebar":e.$slots.sidebar||(0,l.SU)(W),"has-time":(0,l.SU)(Z)}])},[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(i).e("body-wrapper"))},[(0,s.WI)(e.$slots,"sidebar",{class:(0,u.C_)((0,l.SU)(i).e("sidebar"))}),(0,l.SU)(W)?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)((0,l.SU)(i).e("sidebar"))},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)((0,l.SU)(m),((e,t)=>((0,s.wg)(),(0,s.iD)("button",{key:t,type:"button",class:(0,u.C_)((0,l.SU)(i).e("shortcut")),onClick:t=>H(e)},(0,u.zw)(e.text),11,Ow)))),128))],2)):(0,s.kq)("v-if",!0),(0,s._)("div",{class:(0,u.C_)((0,l.SU)(i).e("body"))},[(0,l.SU)(Z)?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)((0,l.SU)(o).e("time-header"))},[(0,s._)("span",{class:(0,u.C_)((0,l.SU)(o).e("editor-wrap"))},[(0,s.Wm)((0,l.SU)(Ye),{placeholder:(0,l.SU)(d)("el.datepicker.selectDate"),"model-value":(0,l.SU)(te),size:"small","validate-event":!1,onInput:t[0]||(t[0]=e=>A.value=e),onChange:le},null,8,["placeholder","model-value"])],2),(0,s.wy)(((0,s.wg)(),(0,s.iD)("span",{class:(0,u.C_)((0,l.SU)(o).e("editor-wrap"))},[(0,s.Wm)((0,l.SU)(Ye),{placeholder:(0,l.SU)(d)("el.datepicker.selectTime"),"model-value":(0,l.SU)(ee),size:"small","validate-event":!1,onFocus:re,onInput:t[1]||(t[1]=e=>U.value=e),onChange:se},null,8,["placeholder","model-value"]),(0,s.Wm)((0,l.SU)(Dw),{visible:ne.value,format:(0,l.SU)(J),"time-arrow-control":(0,l.SU)(w),"parsed-value":_.value,onPick:ae},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[(0,l.SU)(pv),ie]])],2)):(0,s.kq)("v-if",!0),(0,s.wy)((0,s._)("div",{class:(0,u.C_)([(0,l.SU)(o).e("header"),("year"===z.value||"month"===z.value)&&(0,l.SU)(o).e("header--bordered")])},[(0,s._)("span",{class:(0,u.C_)((0,l.SU)(o).e("prev-btn"))},[(0,s._)("button",{type:"button","aria-label":(0,l.SU)(d)("el.datepicker.prevYear"),class:(0,u.C_)(["d-arrow-left",(0,l.SU)(i).e("icon-btn")]),onClick:t[2]||(t[2]=e=>F(!1))},[(0,s.Wm)((0,l.SU)(L.gn),null,{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.BAP))])),_:1})],10,Pw),(0,s.wy)((0,s._)("button",{type:"button","aria-label":(0,l.SU)(d)("el.datepicker.prevMonth"),class:(0,u.C_)([(0,l.SU)(i).e("icon-btn"),"arrow-left"]),onClick:t[3]||(t[3]=e=>N(!1))},[(0,s.Wm)((0,l.SU)(L.gn),null,{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.XdH))])),_:1})],10,Lw),[[P.F8,"date"===z.value]])],2),(0,s._)("span",{role:"button",class:(0,u.C_)((0,l.SU)(o).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:t[4]||(t[4]=(0,P.D2)((e=>G("year")),["enter"])),onClick:t[5]||(t[5]=e=>G("year"))},(0,u.zw)((0,l.SU)(B)),35),(0,s.wy)((0,s._)("span",{role:"button","aria-live":"polite",tabindex:"0",class:(0,u.C_)([(0,l.SU)(o).e("header-label"),{active:"month"===z.value}]),onKeydown:t[6]||(t[6]=(0,P.D2)((e=>G("month")),["enter"])),onClick:t[7]||(t[7]=e=>G("month"))},(0,u.zw)((0,l.SU)(d)(`el.datepicker.month${(0,l.SU)(M)+1}`)),35),[[P.F8,"date"===z.value]]),(0,s._)("span",{class:(0,u.C_)((0,l.SU)(o).e("next-btn"))},[(0,s.wy)((0,s._)("button",{type:"button","aria-label":(0,l.SU)(d)("el.datepicker.nextMonth"),class:(0,u.C_)([(0,l.SU)(i).e("icon-btn"),"arrow-right"]),onClick:t[8]||(t[8]=e=>N(!0))},[(0,s.Wm)((0,l.SU)(L.gn),null,{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.olP))])),_:1})],10,Rw),[[P.F8,"date"===z.value]]),(0,s._)("button",{type:"button","aria-label":(0,l.SU)(d)("el.datepicker.nextYear"),class:(0,u.C_)([(0,l.SU)(i).e("icon-btn"),"d-arrow-right"]),onClick:t[9]||(t[9]=e=>F(!0))},[(0,s.Wm)((0,l.SU)(L.gn),null,{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.tsQ))])),_:1})],10,Nw)],2)],2),[[P.F8,"time"!==z.value]]),(0,s._)("div",{class:(0,u.C_)((0,l.SU)(i).e("content")),onKeydown:me},["date"===z.value?((0,s.wg)(),(0,s.j4)(Kb,{key:0,ref_key:"currentViewRef",ref:x,"selection-mode":(0,l.SU)(j),date:_.value,"parsed-value":e.parsedValue,"disabled-date":(0,l.SU)(g),"cell-class-name":(0,l.SU)(v),onPick:R},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):(0,s.kq)("v-if",!0),"year"===z.value?((0,s.wg)(),(0,s.j4)(pw,{key:1,ref_key:"currentViewRef",ref:x,date:_.value,"disabled-date":(0,l.SU)(g),"parsed-value":e.parsedValue,onPick:q},null,8,["date","disabled-date","parsed-value"])):(0,s.kq)("v-if",!0),"month"===z.value?((0,s.wg)(),(0,s.j4)(nw,{key:2,ref_key:"currentViewRef",ref:x,date:_.value,"parsed-value":e.parsedValue,"disabled-date":(0,l.SU)(g),onPick:$},null,8,["date","parsed-value","disabled-date"])):(0,s.kq)("v-if",!0)],34)],2)],2),(0,s.wy)((0,s._)("div",{class:(0,u.C_)((0,l.SU)(i).e("footer"))},[(0,s.wy)((0,s.Wm)((0,l.SU)(is),{text:"",size:"small",class:(0,u.C_)((0,l.SU)(i).e("link-btn")),onClick:X},{default:(0,s.w5)((()=>[(0,s.Uk)((0,u.zw)((0,l.SU)(d)("el.datepicker.now")),1)])),_:1},8,["class"]),[[P.F8,"dates"!==(0,l.SU)(j)]]),(0,s.Wm)((0,l.SU)(is),{plain:"",size:"small",class:(0,u.C_)((0,l.SU)(i).e("link-btn")),onClick:K},{default:(0,s.w5)((()=>[(0,s.Uk)((0,u.zw)((0,l.SU)(d)("el.datepicker.confirm")),1)])),_:1},8,["class"])],2),[[P.F8,(0,l.SU)(Y)&&"date"===z.value]])],2))}});var zw=(0,y.Z)(Fw,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"]]);const Bw=(0,d.o8)({...Lb,...Rb}),Hw=e=>{const{emit:t}=(0,s.FN)(),n=(0,s.l1)(),r=(0,s.Rr)(),i=i=>{const o=(0,u.mf)(i.value)?i.value():i.value;o?t("pick",[as(o[0]).locale(e.value),as(o[1]).locale(e.value)]):i.onClick&&i.onClick({attrs:n,slots:r,emit:t})};return i},jw=(e,{defaultValue:t,leftDate:n,rightDate:r,unit:i,onParsedValueChanged:o})=>{const{emit:a}=(0,s.FN)(),{pickerNs:c}=(0,s.f3)(Tb),d=(0,b.s3)("date-range-picker"),{t:p,lang:h}=(0,xs.bU)(),f=Hw(h),m=(0,l.iH)(),g=(0,l.iH)(),v=(0,l.iH)({endDate:null,selecting:!1}),y=e=>{v.value=e},w=(e=!1)=>{const t=(0,l.SU)(m),n=(0,l.SU)(g);Bb([t,n])&&a("pick",[t,n],e)},S=e=>{v.value.selecting=e,e||(v.value.endDate=null)},x=()=>{const[o,a]=Hb((0,l.SU)(t),{lang:(0,l.SU)(h),unit:i,unlinkPanels:e.unlinkPanels});m.value=void 0,g.value=void 0,n.value=o,r.value=a};return(0,s.YP)(t,(e=>{e&&x()}),{immediate:!0}),(0,s.YP)((()=>e.parsedValue),(e=>{if((0,u.kJ)(e)&&2===e.length){const[t,r]=e;m.value=t,n.value=t,g.value=r,o((0,l.SU)(m),(0,l.SU)(g))}else x()}),{immediate:!0}),{minDate:m,maxDate:g,rangeState:v,lang:h,ppNs:c,drpNs:d,handleChangeRange:y,handleRangeConfirm:w,handleShortcutClick:f,onSelect:S,t:p}},Vw=["onClick"],Ww=["disabled"],$w=["disabled"],qw=["disabled"],Gw=["disabled"],Zw="month",Yw=(0,s.aZ)({__name:"panel-date-range",props:Bw,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const n=e,r=(0,s.f3)("EP_PICKER_BASE"),{disabledDate:i,cellClassName:o,format:a,defaultTime:c,arrowControl:d,clearable:p}=r.props,h=(0,l.Vh)(r.props,"shortcuts"),f=(0,l.Vh)(r.props,"defaultValue"),{lang:m}=(0,xs.bU)(),g=(0,l.iH)(as().locale(m.value)),v=(0,l.iH)(as().locale(m.value).add(1,Zw)),{minDate:y,maxDate:b,rangeState:w,ppNs:S,drpNs:x,handleChangeRange:_,handleRangeConfirm:C,handleShortcutClick:E,onSelect:M,t:k}=jw(n,{defaultValue:f,leftDate:g,rightDate:v,unit:Zw,onParsedValueChanged:be}),T=(0,l.iH)({min:null,max:null}),A=(0,l.iH)({min:null,max:null}),U=(0,s.Fl)((()=>`${g.value.year()} ${k("el.datepicker.year")} ${k(`el.datepicker.month${g.value.month()+1}`)}`)),I=(0,s.Fl)((()=>`${v.value.year()} ${k("el.datepicker.year")} ${k(`el.datepicker.month${v.value.month()+1}`)}`)),D=(0,s.Fl)((()=>g.value.year())),O=(0,s.Fl)((()=>g.value.month())),P=(0,s.Fl)((()=>v.value.year())),R=(0,s.Fl)((()=>v.value.month())),N=(0,s.Fl)((()=>!!h.value.length)),F=(0,s.Fl)((()=>null!==T.value.min?T.value.min:y.value?y.value.format(V.value):"")),z=(0,s.Fl)((()=>null!==T.value.max?T.value.max:b.value||y.value?(b.value||y.value).format(V.value):"")),B=(0,s.Fl)((()=>null!==A.value.min?A.value.min:y.value?y.value.format(j.value):"")),H=(0,s.Fl)((()=>null!==A.value.max?A.value.max:b.value||y.value?(b.value||y.value).format(j.value):"")),j=(0,s.Fl)((()=>cs(a))),V=(0,s.Fl)((()=>us(a))),W=()=>{g.value=g.value.subtract(1,"year"),n.unlinkPanels||(v.value=g.value.add(1,"month")),J("year")},$=()=>{g.value=g.value.subtract(1,"month"),n.unlinkPanels||(v.value=g.value.add(1,"month")),J("month")},q=()=>{n.unlinkPanels?v.value=v.value.add(1,"year"):(g.value=g.value.add(1,"year"),v.value=g.value.add(1,"month")),J("year")},G=()=>{n.unlinkPanels?v.value=v.value.add(1,"month"):(g.value=g.value.add(1,"month"),v.value=g.value.add(1,"month")),J("month")},Z=()=>{g.value=g.value.add(1,"year"),J("year")},Y=()=>{g.value=g.value.add(1,"month"),J("month")},K=()=>{v.value=v.value.subtract(1,"year"),J("year")},X=()=>{v.value=v.value.subtract(1,"month"),J("month")},J=e=>{t("panel-change",[g.value.toDate(),v.value.toDate()],e)},Q=(0,s.Fl)((()=>{const e=(O.value+1)%12,t=O.value+1>=12?1:0;return n.unlinkPanels&&new Date(D.value+t,e)n.unlinkPanels&&12*P.value+R.value-(12*D.value+O.value+1)>=12)),te=(0,s.Fl)((()=>!(y.value&&b.value&&!w.value.selecting&&Bb([y.value,b.value])))),ne=(0,s.Fl)((()=>"datetime"===n.type||"datetimerange"===n.type)),re=(e,t)=>{if(e){if(c){const n=as(c[t]||c).locale(m.value);return n.year(e.year()).month(e.month()).date(e.date())}return e}},ie=(e,n=!0)=>{const r=e.minDate,i=e.maxDate,o=re(r,0),a=re(i,1);b.value===a&&y.value===o||(t("calendar-change",[r.toDate(),i&&i.toDate()]),b.value=a,y.value=o,n&&!ne.value&&C())},oe=(0,l.iH)(!1),ae=(0,l.iH)(!1),se=()=>{oe.value=!1},le=()=>{ae.value=!1},ue=(e,t)=>{T.value[t]=e;const r=as(e,V.value).locale(m.value);if(r.isValid()){if(i&&i(r.toDate()))return;"min"===t?(g.value=r,y.value=(y.value||g.value).year(r.year()).month(r.month()).date(r.date()),n.unlinkPanels||(v.value=r.add(1,"month"),b.value=y.value.add(1,"month"))):(v.value=r,b.value=(b.value||v.value).year(r.year()).month(r.month()).date(r.date()),n.unlinkPanels||(g.value=r.subtract(1,"month"),y.value=b.value.subtract(1,"month")))}},ce=(e,t)=>{T.value[t]=null},de=(e,t)=>{A.value[t]=e;const n=as(e,j.value).locale(m.value);n.isValid()&&("min"===t?(oe.value=!0,y.value=(y.value||g.value).hour(n.hour()).minute(n.minute()).second(n.second()),b.value&&!b.value.isBefore(y.value)||(b.value=y.value)):(ae.value=!0,b.value=(b.value||v.value).hour(n.hour()).minute(n.minute()).second(n.second()),v.value=b.value,b.value&&b.value.isBefore(y.value)&&(y.value=b.value)))},pe=(e,t)=>{A.value[t]=null,"min"===t?(g.value=y.value,oe.value=!1):(v.value=b.value,ae.value=!1)},he=(e,t,n)=>{A.value.min||(e&&(g.value=e,y.value=(y.value||g.value).hour(e.hour()).minute(e.minute()).second(e.second())),n||(oe.value=t),b.value&&!b.value.isBefore(y.value)||(b.value=y.value,v.value=e))},me=(e,t,n)=>{A.value.max||(e&&(v.value=e,b.value=(b.value||v.value).hour(e.hour()).minute(e.minute()).second(e.second())),n||(ae.value=t),b.value&&b.value.isBefore(y.value)&&(y.value=b.value))},ge=()=>{g.value=Hb((0,l.SU)(f),{lang:(0,l.SU)(m),unit:"month",unlinkPanels:n.unlinkPanels})[0],v.value=g.value.add(1,"month"),t("pick",null)},ve=e=>(0,u.kJ)(e)?e.map((e=>e.format(a))):e.format(a),ye=e=>(0,u.kJ)(e)?e.map((e=>as(e,a).locale(m.value))):as(e,a).locale(m.value);function be(e,t){if(n.unlinkPanels&&t){const n=(null==e?void 0:e.year())||0,r=(null==e?void 0:e.month())||0,i=t.year(),o=t.month();v.value=n===i&&r===o?t.add(1,Zw):t}else v.value=g.value.add(1,Zw),t&&(v.value=v.value.hour(t.hour()).minute(t.minute()).second(t.second()))}return t("set-picker-option",["isValidValue",Bb]),t("set-picker-option",["parseUserInput",ye]),t("set-picker-option",["formatToString",ve]),t("set-picker-option",["handleClear",ge]),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)([(0,l.SU)(S).b(),(0,l.SU)(x).b(),{"has-sidebar":e.$slots.sidebar||(0,l.SU)(N),"has-time":(0,l.SU)(ne)}])},[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(S).e("body-wrapper"))},[(0,s.WI)(e.$slots,"sidebar",{class:(0,u.C_)((0,l.SU)(S).e("sidebar"))}),(0,l.SU)(N)?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)((0,l.SU)(S).e("sidebar"))},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)((0,l.SU)(h),((e,t)=>((0,s.wg)(),(0,s.iD)("button",{key:t,type:"button",class:(0,u.C_)((0,l.SU)(S).e("shortcut")),onClick:t=>(0,l.SU)(E)(e)},(0,u.zw)(e.text),11,Vw)))),128))],2)):(0,s.kq)("v-if",!0),(0,s._)("div",{class:(0,u.C_)((0,l.SU)(S).e("body"))},[(0,l.SU)(ne)?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)((0,l.SU)(x).e("time-header"))},[(0,s._)("span",{class:(0,u.C_)((0,l.SU)(x).e("editors-wrap"))},[(0,s._)("span",{class:(0,u.C_)((0,l.SU)(x).e("time-picker-wrap"))},[(0,s.Wm)((0,l.SU)(Ye),{size:"small",disabled:(0,l.SU)(w).selecting,placeholder:(0,l.SU)(k)("el.datepicker.startDate"),class:(0,u.C_)((0,l.SU)(x).e("editor")),"model-value":(0,l.SU)(F),"validate-event":!1,onInput:t[0]||(t[0]=e=>ue(e,"min")),onChange:t[1]||(t[1]=e=>ce(e,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),(0,s.wy)(((0,s.wg)(),(0,s.iD)("span",{class:(0,u.C_)((0,l.SU)(x).e("time-picker-wrap"))},[(0,s.Wm)((0,l.SU)(Ye),{size:"small",class:(0,u.C_)((0,l.SU)(x).e("editor")),disabled:(0,l.SU)(w).selecting,placeholder:(0,l.SU)(k)("el.datepicker.startTime"),"model-value":(0,l.SU)(B),"validate-event":!1,onFocus:t[2]||(t[2]=e=>oe.value=!0),onInput:t[3]||(t[3]=e=>de(e,"min")),onChange:t[4]||(t[4]=e=>pe(e,"min"))},null,8,["class","disabled","placeholder","model-value"]),(0,s.Wm)((0,l.SU)(Dw),{visible:oe.value,format:(0,l.SU)(j),"datetime-role":"start","time-arrow-control":(0,l.SU)(d),"parsed-value":g.value,onPick:he},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[(0,l.SU)(pv),se]])],2),(0,s._)("span",null,[(0,s.Wm)((0,l.SU)(L.gn),null,{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.olP))])),_:1})]),(0,s._)("span",{class:(0,u.C_)([(0,l.SU)(x).e("editors-wrap"),"is-right"])},[(0,s._)("span",{class:(0,u.C_)((0,l.SU)(x).e("time-picker-wrap"))},[(0,s.Wm)((0,l.SU)(Ye),{size:"small",class:(0,u.C_)((0,l.SU)(x).e("editor")),disabled:(0,l.SU)(w).selecting,placeholder:(0,l.SU)(k)("el.datepicker.endDate"),"model-value":(0,l.SU)(z),readonly:!(0,l.SU)(y),"validate-event":!1,onInput:t[5]||(t[5]=e=>ue(e,"max")),onChange:t[6]||(t[6]=e=>ce(e,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),(0,s.wy)(((0,s.wg)(),(0,s.iD)("span",{class:(0,u.C_)((0,l.SU)(x).e("time-picker-wrap"))},[(0,s.Wm)((0,l.SU)(Ye),{size:"small",class:(0,u.C_)((0,l.SU)(x).e("editor")),disabled:(0,l.SU)(w).selecting,placeholder:(0,l.SU)(k)("el.datepicker.endTime"),"model-value":(0,l.SU)(H),readonly:!(0,l.SU)(y),"validate-event":!1,onFocus:t[7]||(t[7]=e=>(0,l.SU)(y)&&(ae.value=!0)),onInput:t[8]||(t[8]=e=>de(e,"max")),onChange:t[9]||(t[9]=e=>pe(e,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),(0,s.Wm)((0,l.SU)(Dw),{"datetime-role":"end",visible:ae.value,format:(0,l.SU)(j),"time-arrow-control":(0,l.SU)(d),"parsed-value":v.value,onPick:me},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[(0,l.SU)(pv),le]])],2)],2)):(0,s.kq)("v-if",!0),(0,s._)("div",{class:(0,u.C_)([[(0,l.SU)(S).e("content"),(0,l.SU)(x).e("content")],"is-left"])},[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(x).e("header"))},[(0,s._)("button",{type:"button",class:(0,u.C_)([(0,l.SU)(S).e("icon-btn"),"d-arrow-left"]),onClick:W},[(0,s.Wm)((0,l.SU)(L.gn),null,{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.BAP))])),_:1})],2),(0,s._)("button",{type:"button",class:(0,u.C_)([(0,l.SU)(S).e("icon-btn"),"arrow-left"]),onClick:$},[(0,s.Wm)((0,l.SU)(L.gn),null,{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.XdH))])),_:1})],2),e.unlinkPanels?((0,s.wg)(),(0,s.iD)("button",{key:0,type:"button",disabled:!(0,l.SU)(ee),class:(0,u.C_)([[(0,l.SU)(S).e("icon-btn"),{"is-disabled":!(0,l.SU)(ee)}],"d-arrow-right"]),onClick:Z},[(0,s.Wm)((0,l.SU)(L.gn),null,{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.tsQ))])),_:1})],10,Ww)):(0,s.kq)("v-if",!0),e.unlinkPanels?((0,s.wg)(),(0,s.iD)("button",{key:1,type:"button",disabled:!(0,l.SU)(Q),class:(0,u.C_)([[(0,l.SU)(S).e("icon-btn"),{"is-disabled":!(0,l.SU)(Q)}],"arrow-right"]),onClick:Y},[(0,s.Wm)((0,l.SU)(L.gn),null,{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.olP))])),_:1})],10,$w)):(0,s.kq)("v-if",!0),(0,s._)("div",null,(0,u.zw)((0,l.SU)(U)),1)],2),(0,s.Wm)(Kb,{"selection-mode":"range",date:g.value,"min-date":(0,l.SU)(y),"max-date":(0,l.SU)(b),"range-state":(0,l.SU)(w),"disabled-date":(0,l.SU)(i),"cell-class-name":(0,l.SU)(o),onChangerange:(0,l.SU)(_),onPick:ie,onSelect:(0,l.SU)(M)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),(0,s._)("div",{class:(0,u.C_)([[(0,l.SU)(S).e("content"),(0,l.SU)(x).e("content")],"is-right"])},[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(x).e("header"))},[e.unlinkPanels?((0,s.wg)(),(0,s.iD)("button",{key:0,type:"button",disabled:!(0,l.SU)(ee),class:(0,u.C_)([[(0,l.SU)(S).e("icon-btn"),{"is-disabled":!(0,l.SU)(ee)}],"d-arrow-left"]),onClick:K},[(0,s.Wm)((0,l.SU)(L.gn),null,{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.BAP))])),_:1})],10,qw)):(0,s.kq)("v-if",!0),e.unlinkPanels?((0,s.wg)(),(0,s.iD)("button",{key:1,type:"button",disabled:!(0,l.SU)(Q),class:(0,u.C_)([[(0,l.SU)(S).e("icon-btn"),{"is-disabled":!(0,l.SU)(Q)}],"arrow-left"]),onClick:X},[(0,s.Wm)((0,l.SU)(L.gn),null,{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.XdH))])),_:1})],10,Gw)):(0,s.kq)("v-if",!0),(0,s._)("button",{type:"button",class:(0,u.C_)([(0,l.SU)(S).e("icon-btn"),"d-arrow-right"]),onClick:q},[(0,s.Wm)((0,l.SU)(L.gn),null,{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.tsQ))])),_:1})],2),(0,s._)("button",{type:"button",class:(0,u.C_)([(0,l.SU)(S).e("icon-btn"),"arrow-right"]),onClick:G},[(0,s.Wm)((0,l.SU)(L.gn),null,{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.olP))])),_:1})],2),(0,s._)("div",null,(0,u.zw)((0,l.SU)(I)),1)],2),(0,s.Wm)(Kb,{"selection-mode":"range",date:v.value,"min-date":(0,l.SU)(y),"max-date":(0,l.SU)(b),"range-state":(0,l.SU)(w),"disabled-date":(0,l.SU)(i),"cell-class-name":(0,l.SU)(o),onChangerange:(0,l.SU)(_),onPick:ie,onSelect:(0,l.SU)(M)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),(0,l.SU)(ne)?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)((0,l.SU)(S).e("footer"))},[(0,l.SU)(p)?((0,s.wg)(),(0,s.j4)((0,l.SU)(is),{key:0,text:"",size:"small",class:(0,u.C_)((0,l.SU)(S).e("link-btn")),onClick:ge},{default:(0,s.w5)((()=>[(0,s.Uk)((0,u.zw)((0,l.SU)(k)("el.datepicker.clear")),1)])),_:1},8,["class"])):(0,s.kq)("v-if",!0),(0,s.Wm)((0,l.SU)(is),{plain:"",size:"small",class:(0,u.C_)((0,l.SU)(S).e("link-btn")),disabled:(0,l.SU)(te),onClick:t[10]||(t[10]=e=>(0,l.SU)(C)(!1))},{default:(0,s.w5)((()=>[(0,s.Uk)((0,u.zw)((0,l.SU)(k)("el.datepicker.confirm")),1)])),_:1},8,["class","disabled"])],2)):(0,s.kq)("v-if",!0)],2))}});var Kw=(0,y.Z)(Yw,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-range.vue"]]);const Xw=(0,d.o8)({...Rb}),Jw=["pick","set-picker-option"],Qw=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:r}=(0,xs.bU)(),i=()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},o=()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},a=()=>{t.value=t.value.add(1,"year")},l=()=>{n.value=n.value.subtract(1,"year")},u=(0,s.Fl)((()=>`${t.value.year()} ${r("el.datepicker.year")}`)),c=(0,s.Fl)((()=>`${n.value.year()} ${r("el.datepicker.year")}`)),d=(0,s.Fl)((()=>t.value.year())),p=(0,s.Fl)((()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year()));return{leftPrevYear:i,rightNextYear:o,leftNextYear:a,rightPrevYear:l,leftLabel:u,rightLabel:c,leftYear:d,rightYear:p}},eS=["onClick"],tS=["disabled"],nS=["disabled"],rS="year",iS=(0,s.aZ)({name:"DatePickerMonthRange"}),oS=(0,s.aZ)({...iS,props:Xw,emits:Jw,setup(e,{emit:t}){const n=e,{lang:r}=(0,xs.bU)(),i=(0,s.f3)("EP_PICKER_BASE"),{shortcuts:o,disabledDate:a,format:c}=i.props,d=(0,l.Vh)(i.props,"defaultValue"),p=(0,l.iH)(as().locale(r.value)),h=(0,l.iH)(as().locale(r.value).add(1,rS)),{minDate:f,maxDate:m,rangeState:g,ppNs:v,drpNs:y,handleChangeRange:b,handleRangeConfirm:w,handleShortcutClick:S,onSelect:x}=jw(n,{defaultValue:d,leftDate:p,rightDate:h,unit:rS,onParsedValueChanged:R}),_=(0,s.Fl)((()=>!!o.length)),{leftPrevYear:C,rightNextYear:E,leftNextYear:M,rightPrevYear:k,leftLabel:T,rightLabel:A,leftYear:U,rightYear:I}=Qw({unlinkPanels:(0,l.Vh)(n,"unlinkPanels"),leftDate:p,rightDate:h}),D=(0,s.Fl)((()=>n.unlinkPanels&&I.value>U.value+1)),O=(e,t=!0)=>{const n=e.minDate,r=e.maxDate;m.value===r&&f.value===n||(m.value=r,f.value=n,t&&w())},P=e=>e.map((e=>e.format(c)));function R(e,t){if(n.unlinkPanels&&t){const n=(null==e?void 0:e.year())||0,r=t.year();h.value=n===r?t.add(1,rS):t}else h.value=p.value.add(1,rS)}return t("set-picker-option",["formatToString",P]),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)([(0,l.SU)(v).b(),(0,l.SU)(y).b(),{"has-sidebar":Boolean(e.$slots.sidebar)||(0,l.SU)(_)}])},[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(v).e("body-wrapper"))},[(0,s.WI)(e.$slots,"sidebar",{class:(0,u.C_)((0,l.SU)(v).e("sidebar"))}),(0,l.SU)(_)?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)((0,l.SU)(v).e("sidebar"))},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)((0,l.SU)(o),((e,t)=>((0,s.wg)(),(0,s.iD)("button",{key:t,type:"button",class:(0,u.C_)((0,l.SU)(v).e("shortcut")),onClick:t=>(0,l.SU)(S)(e)},(0,u.zw)(e.text),11,eS)))),128))],2)):(0,s.kq)("v-if",!0),(0,s._)("div",{class:(0,u.C_)((0,l.SU)(v).e("body"))},[(0,s._)("div",{class:(0,u.C_)([[(0,l.SU)(v).e("content"),(0,l.SU)(y).e("content")],"is-left"])},[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(y).e("header"))},[(0,s._)("button",{type:"button",class:(0,u.C_)([(0,l.SU)(v).e("icon-btn"),"d-arrow-left"]),onClick:t[0]||(t[0]=(...e)=>(0,l.SU)(C)&&(0,l.SU)(C)(...e))},[(0,s.Wm)((0,l.SU)(L.gn),null,{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.BAP))])),_:1})],2),e.unlinkPanels?((0,s.wg)(),(0,s.iD)("button",{key:0,type:"button",disabled:!(0,l.SU)(D),class:(0,u.C_)([[(0,l.SU)(v).e("icon-btn"),{[(0,l.SU)(v).is("disabled")]:!(0,l.SU)(D)}],"d-arrow-right"]),onClick:t[1]||(t[1]=(...e)=>(0,l.SU)(M)&&(0,l.SU)(M)(...e))},[(0,s.Wm)((0,l.SU)(L.gn),null,{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.tsQ))])),_:1})],10,tS)):(0,s.kq)("v-if",!0),(0,s._)("div",null,(0,u.zw)((0,l.SU)(T)),1)],2),(0,s.Wm)(nw,{"selection-mode":"range",date:p.value,"min-date":(0,l.SU)(f),"max-date":(0,l.SU)(m),"range-state":(0,l.SU)(g),"disabled-date":(0,l.SU)(a),onChangerange:(0,l.SU)(b),onPick:O,onSelect:(0,l.SU)(x)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),(0,s._)("div",{class:(0,u.C_)([[(0,l.SU)(v).e("content"),(0,l.SU)(y).e("content")],"is-right"])},[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(y).e("header"))},[e.unlinkPanels?((0,s.wg)(),(0,s.iD)("button",{key:0,type:"button",disabled:!(0,l.SU)(D),class:(0,u.C_)([[(0,l.SU)(v).e("icon-btn"),{"is-disabled":!(0,l.SU)(D)}],"d-arrow-left"]),onClick:t[2]||(t[2]=(...e)=>(0,l.SU)(k)&&(0,l.SU)(k)(...e))},[(0,s.Wm)((0,l.SU)(L.gn),null,{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.BAP))])),_:1})],10,nS)):(0,s.kq)("v-if",!0),(0,s._)("button",{type:"button",class:(0,u.C_)([(0,l.SU)(v).e("icon-btn"),"d-arrow-right"]),onClick:t[3]||(t[3]=(...e)=>(0,l.SU)(E)&&(0,l.SU)(E)(...e))},[(0,s.Wm)((0,l.SU)(L.gn),null,{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.tsQ))])),_:1})],2),(0,s._)("div",null,(0,u.zw)((0,l.SU)(A)),1)],2),(0,s.Wm)(nw,{"selection-mode":"range",date:h.value,"min-date":(0,l.SU)(f),"max-date":(0,l.SU)(m),"range-state":(0,l.SU)(g),"disabled-date":(0,l.SU)(a),onChangerange:(0,l.SU)(b),onPick:O,onSelect:(0,l.SU)(x)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var aS=(0,y.Z)(oS,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-month-range.vue"]]);const sS=function(e){switch(e){case"daterange":case"datetimerange":return Kw;case"monthrange":return aS;default:return zw}},lS=["id","name","placeholder","value","disabled","readonly"],uS=["id","name","placeholder","value","disabled","readonly"],cS=(0,s.aZ)({name:"Picker"}),dS=(0,s.aZ)({...cS,props:Ib,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const r=e,{lang:i}=(0,xs.bU)(),o=(0,b.s3)("date"),a=(0,b.s3)("input"),d=(0,b.s3)("range"),{form:p,formItem:h}=Re(),f=(0,s.f3)("ElPopperOptions",{}),m=(0,l.iH)(),g=(0,l.iH)(),v=(0,l.iH)(!1),y=(0,l.iH)(!1),w=(0,l.iH)(null);let x=!1,_=!1;(0,s.YP)(v,(e=>{e?(0,s.Y3)((()=>{e&&(w.value=r.modelValue)})):(se.value=null,(0,s.Y3)((()=>{C(r.modelValue)})))}));const C=(e,t)=>{!t&&ps(e,w.value)||(n("change",e),r.validateEvent&&(null==h||h.validate("change").catch((e=>(0,S.N)(e)))))},E=e=>{if(!ps(r.modelValue,e)){let t;(0,u.kJ)(e)?t=e.map((e=>fs(e,r.valueFormat,i.value))):e&&(t=fs(e,r.valueFormat,i.value)),n("update:modelValue",e?t:e,i.value)}},M=e=>{n("keydown",e)},k=(0,s.Fl)((()=>{if(g.value){const e=re.value?g.value:g.value.$el;return Array.from(e.querySelectorAll("input"))}return[]})),T=(e,t,n)=>{const r=k.value;r.length&&(n&&"min"!==n?"max"===n&&(r[1].setSelectionRange(e,t),r[1].focus()):(r[0].setSelectionRange(e,t),r[0].focus()))},A=()=>{z(!0,!0),(0,s.Y3)((()=>{_=!1}))},U=(e="",t=!1)=>{let n;t||(_=!0),v.value=t,n=(0,u.kJ)(e)?e.map((e=>e.toDate())):e?e.toDate():e,se.value=null,E(n)},I=()=>{y.value=!0},D=()=>{n("visible-change",!0)},O=e=>{(null==e?void 0:e.key)===Fr.EVENT_CODE.esc&&z(!0,!0)},R=()=>{y.value=!1,v.value=!1,_=!1,n("visible-change",!1)},N=()=>{v.value=!0},F=()=>{v.value=!1},z=(e=!0,t=!1)=>{_=t;const[n,r]=(0,l.SU)(k);let i=n;!e&&re.value&&(i=r),i&&i.focus()},B=e=>{r.readonly||V.value||v.value||_||(v.value=!0,n("focus",e))};let H;const j=e=>{const t=async()=>{setTimeout((()=>{var i;H===t&&((null==(i=m.value)?void 0:i.isFocusInsideContent())&&!x||0!==k.value.filter((e=>e.contains(document.activeElement))).length||(le(),v.value=!1,n("blur",e),r.validateEvent&&(null==h||h.validate("blur").catch((e=>(0,S.N)(e))))),x=!1)}),0)};H=t,t()},V=(0,s.Fl)((()=>r.disabled||(null==p?void 0:p.disabled))),W=(0,s.Fl)((()=>{let e;if(J.value?be.value.getDefaultValue&&(e=be.value.getDefaultValue()):e=(0,u.kJ)(r.modelValue)?r.modelValue.map((e=>hs(e,r.valueFormat,i.value))):hs(r.modelValue,r.valueFormat,i.value),be.value.getRangeAvailableTime){const t=be.value.getRangeAvailableTime(e);Mf(t,e)||(e=t,E((0,u.kJ)(e)?e.map((e=>e.toDate())):e.toDate()))}return(0,u.kJ)(e)&&e.some((e=>!e))&&(e=[]),e})),$=(0,s.Fl)((()=>{if(!be.value.panelReady)return"";const e=ce(W.value);return(0,u.kJ)(se.value)?[se.value[0]||e&&e[0]||"",se.value[1]||e&&e[1]||""]:null!==se.value?se.value:!G.value&&J.value||!v.value&&J.value?"":e?Z.value?e.join(", "):e:""})),q=(0,s.Fl)((()=>r.type.includes("time"))),G=(0,s.Fl)((()=>r.type.startsWith("time"))),Z=(0,s.Fl)((()=>"dates"===r.type)),Y=(0,s.Fl)((()=>r.prefixIcon||(q.value?fe.SUY:fe.faS))),K=(0,l.iH)(!1),X=e=>{r.readonly||V.value||K.value&&(e.stopPropagation(),A(),E(null),C(null,!0),K.value=!1,v.value=!1,be.value.handleClear&&be.value.handleClear())},J=(0,s.Fl)((()=>{const{modelValue:e}=r;return!e||(0,u.kJ)(e)&&!e.filter(Boolean).length})),Q=async e=>{var t;r.readonly||V.value||("INPUT"!==(null==(t=e.target)?void 0:t.tagName)||k.value.includes(document.activeElement))&&(v.value=!0)},ee=()=>{r.readonly||V.value||!J.value&&r.clearable&&(K.value=!0)},te=()=>{K.value=!1},ne=e=>{var t;r.readonly||V.value||("INPUT"!==(null==(t=e.touches[0].target)?void 0:t.tagName)||k.value.includes(document.activeElement))&&(v.value=!0)},re=(0,s.Fl)((()=>r.type.includes("range"))),ie=ze(),oe=(0,s.Fl)((()=>{var e,t;return null==(t=null==(e=(0,l.SU)(m))?void 0:e.popperRef)?void 0:t.contentRef})),ae=(0,s.Fl)((()=>{var e;return(0,l.SU)(re)?(0,l.SU)(g):null==(e=(0,l.SU)(g))?void 0:e.$el}));(0,c.i9H)(ae,(e=>{const t=(0,l.SU)(oe),n=(0,l.SU)(ae);t&&(e.target===t||e.composedPath().includes(t))||e.target===n||e.composedPath().includes(n)||(v.value=!1)}));const se=(0,l.iH)(null),le=()=>{if(se.value){const e=ue($.value);e&&de(e)&&(E((0,u.kJ)(e)?e.map((e=>e.toDate())):e.toDate()),se.value=null)}""===se.value&&(E(null),C(null),se.value=null)},ue=e=>e?be.value.parseUserInput(e):null,ce=e=>e?be.value.formatToString(e):null,de=e=>be.value.isValidValue(e),pe=async e=>{if(r.readonly||V.value)return;const{code:t}=e;if(M(e),t!==Fr.EVENT_CODE.esc)if(t===Fr.EVENT_CODE.down&&(be.value.handleFocusPicker&&(e.preventDefault(),e.stopPropagation()),!1===v.value&&(v.value=!0,await(0,s.Y3)()),be.value.handleFocusPicker))be.value.handleFocusPicker();else{if(t!==Fr.EVENT_CODE.tab)return t===Fr.EVENT_CODE.enter||t===Fr.EVENT_CODE.numpadEnter?((null===se.value||""===se.value||de(ue($.value)))&&(le(),v.value=!1),void e.stopPropagation()):void(se.value?e.stopPropagation():be.value.handleKeydownInput&&be.value.handleKeydownInput(e));x=!0}else!0===v.value&&(v.value=!1,e.preventDefault(),e.stopPropagation())},he=e=>{se.value=e,v.value||(v.value=!0)},me=e=>{const t=e.target;se.value?se.value=[t.value,se.value[1]]:se.value=[t.value,null]},ge=e=>{const t=e.target;se.value?se.value=[se.value[0],t.value]:se.value=[null,t.value]},ve=()=>{var e;const t=se.value,n=ue(t&&t[0]),r=(0,l.SU)(W);if(n&&n.isValid()){se.value=[ce(n),(null==(e=$.value)?void 0:e[1])||null];const t=[n,r&&(r[1]||null)];de(t)&&(E(t),se.value=null)}},ye=()=>{var e;const t=(0,l.SU)(se),n=ue(t&&t[1]),r=(0,l.SU)(W);if(n&&n.isValid()){se.value=[(null==(e=(0,l.SU)($))?void 0:e[0])||null,ce(n)];const t=[r&&r[0],n];de(t)&&(E(t),se.value=null)}},be=(0,l.iH)({}),we=e=>{be.value[e[0]]=e[1],be.value.panelReady=!0},Se=e=>{n("calendar-change",e)},xe=(e,t,r)=>{n("panel-change",e,t,r)};return(0,s.JJ)("EP_PICKER_BASE",{props:r}),t({focus:z,handleFocusInput:B,handleBlurInput:j,handleOpen:N,handleClose:F,onPick:U}),(e,t)=>((0,s.wg)(),(0,s.j4)((0,l.SU)(Mo),(0,s.dG)({ref_key:"refPopper",ref:m,visible:v.value,effect:"light",pure:"",trigger:"click"},e.$attrs,{role:"dialog",teleported:"",transition:`${(0,l.SU)(o).namespace.value}-zoom-in-top`,"popper-class":[`${(0,l.SU)(o).namespace.value}-picker__popper`,e.popperClass],"popper-options":(0,l.SU)(f),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:I,onShow:D,onHide:R}),{default:(0,s.w5)((()=>[(0,l.SU)(re)?((0,s.wg)(),(0,s.iD)("div",{key:1,ref_key:"inputRef",ref:g,class:(0,u.C_)([(0,l.SU)(o).b("editor"),(0,l.SU)(o).bm("editor",e.type),(0,l.SU)(a).e("wrapper"),(0,l.SU)(o).is("disabled",(0,l.SU)(V)),(0,l.SU)(o).is("active",v.value),(0,l.SU)(d).b("editor"),(0,l.SU)(ie)?(0,l.SU)(d).bm("editor",(0,l.SU)(ie)):"",e.$attrs.class]),style:(0,u.j5)(e.$attrs.style),onClick:B,onMouseenter:ee,onMouseleave:te,onTouchstart:ne,onKeydown:pe},[(0,l.SU)(Y)?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:0,class:(0,u.C_)([(0,l.SU)(a).e("icon"),(0,l.SU)(d).e("icon")]),onMousedown:(0,P.iM)(Q,["prevent"]),onTouchstart:ne},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)((0,l.SU)(Y))))])),_:1},8,["class","onMousedown"])):(0,s.kq)("v-if",!0),(0,s._)("input",{id:e.id&&e.id[0],autocomplete:"off",name:e.name&&e.name[0],placeholder:e.startPlaceholder,value:(0,l.SU)($)&&(0,l.SU)($)[0],disabled:(0,l.SU)(V),readonly:!e.editable||e.readonly,class:(0,u.C_)((0,l.SU)(d).b("input")),onMousedown:Q,onInput:me,onChange:ve,onFocus:B,onBlur:j},null,42,lS),(0,s.WI)(e.$slots,"range-separator",{},(()=>[(0,s._)("span",{class:(0,u.C_)((0,l.SU)(d).b("separator"))},(0,u.zw)(e.rangeSeparator),3)])),(0,s._)("input",{id:e.id&&e.id[1],autocomplete:"off",name:e.name&&e.name[1],placeholder:e.endPlaceholder,value:(0,l.SU)($)&&(0,l.SU)($)[1],disabled:(0,l.SU)(V),readonly:!e.editable||e.readonly,class:(0,u.C_)((0,l.SU)(d).b("input")),onMousedown:Q,onFocus:B,onBlur:j,onInput:ge,onChange:ye},null,42,uS),e.clearIcon?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:1,class:(0,u.C_)([(0,l.SU)(a).e("icon"),(0,l.SU)(d).e("close-icon"),{[(0,l.SU)(d).e("close-icon--hidden")]:!K.value}]),onClick:X},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.clearIcon)))])),_:1},8,["class"])):(0,s.kq)("v-if",!0)],38)):((0,s.wg)(),(0,s.j4)((0,l.SU)(Ye),{key:0,id:e.id,ref_key:"inputRef",ref:g,"container-role":"combobox","model-value":(0,l.SU)($),name:e.name,size:(0,l.SU)(ie),disabled:(0,l.SU)(V),placeholder:e.placeholder,class:(0,u.C_)([(0,l.SU)(o).b("editor"),(0,l.SU)(o).bm("editor",e.type),e.$attrs.class]),style:(0,u.j5)(e.$attrs.style),readonly:!e.editable||e.readonly||(0,l.SU)(Z)||"week"===e.type,label:e.label,tabindex:e.tabindex,"validate-event":!1,onInput:he,onFocus:B,onBlur:j,onKeydown:pe,onChange:le,onMousedown:Q,onMouseenter:ee,onMouseleave:te,onTouchstart:ne,onClick:t[0]||(t[0]=(0,P.iM)((()=>{}),["stop"]))},{prefix:(0,s.w5)((()=>[(0,l.SU)(Y)?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:0,class:(0,u.C_)((0,l.SU)(a).e("icon")),onMousedown:(0,P.iM)(Q,["prevent"]),onTouchstart:ne},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)((0,l.SU)(Y))))])),_:1},8,["class","onMousedown"])):(0,s.kq)("v-if",!0)])),suffix:(0,s.w5)((()=>[K.value&&e.clearIcon?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:0,class:(0,u.C_)(`${(0,l.SU)(a).e("icon")} clear-icon`),onClick:(0,P.iM)(X,["stop"])},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.clearIcon)))])),_:1},8,["class","onClick"])):(0,s.kq)("v-if",!0)])),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","onKeydown"]))])),content:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default",{visible:v.value,actualVisible:y.value,parsedValue:(0,l.SU)(W),format:e.format,unlinkPanels:e.unlinkPanels,type:e.type,defaultValue:e.defaultValue,onPick:U,onSelectRange:T,onSetPickerOption:we,onCalendarChange:Se,onPanelChange:xe,onKeydown:O,onMousedown:t[1]||(t[1]=(0,P.iM)((()=>{}),["stop"]))})])),_:3},16,["visible","transition","popper-class","popper-options"]))}});var pS=(0,y.Z)(dS,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker.vue"]]);as.extend(Ss),as.extend(xb),as.extend(Sb),as.extend(_b),as.extend(Cb),as.extend(Eb),as.extend(Mb),as.extend(kb);var hS=(0,s.aZ)({name:"ElDatePicker",install:null,props:Db,emits:["update:modelValue"],setup(e,{expose:t,emit:n,slots:r}){const i=(0,b.s3)("picker-panel");(0,s.JJ)("ElPopperOptions",(0,l.qj)((0,l.Vh)(e,"popperOptions"))),(0,s.JJ)(Tb,{slots:r,pickerNs:i});const o=(0,l.iH)(),a={focus:(e=!0)=>{var t;null==(t=o.value)||t.focus(e)},handleOpen:()=>{var e;null==(e=o.value)||e.handleOpen()},handleClose:()=>{var e;null==(e=o.value)||e.handleClose()}};t(a);const u=e=>{n("update:modelValue",e)};return()=>{var t;const n=null!=(t=e.format)?t:xw[e.type]||Sw,i=sS(e.type);return(0,s.Wm)(pS,(0,s.dG)(e,{format:n,type:e.type,ref:o,"onUpdate:modelValue":u}),{default:e=>(0,s.Wm)(i,e,null),"range-separator":r["range-separator"]})}}});const fS=hS;fS.install=e=>{e.component(fS.name,fS)};const mS=fS,gS=Symbol("elDescriptions");var vS=(0,s.aZ)({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String},type:{type:String}},setup(){const e=(0,s.f3)(gS,{});return{descriptions:e}},render(){var e,t,n,r,i,o;const a=il(this.cell),{border:l,direction:u}=this.descriptions,c="vertical"===u,d=(null==(n=null==(t=null==(e=this.cell)?void 0:e.children)?void 0:t.label)?void 0:n.call(t))||a.label,p=null==(o=null==(i=null==(r=this.cell)?void 0:r.children)?void 0:i.default)?void 0:o.call(i),h=a.span,f=a.align?`is-${a.align}`:"",m=a.labelAlign?`is-${a.labelAlign}`:f,g=a.className,v=a.labelClassName,y={width:(0,w.Nn)(a.width),minWidth:(0,w.Nn)(a.minWidth)},S=(0,b.s3)("descriptions");switch(this.type){case"label":return(0,s.h)(this.tag,{style:y,class:[S.e("cell"),S.e("label"),S.is("bordered-label",l),S.is("vertical-label",c),m,v],colSpan:c?h:1},d);case"content":return(0,s.h)(this.tag,{style:y,class:[S.e("cell"),S.e("content"),S.is("bordered-content",l),S.is("vertical-content",c),f,g],colSpan:c?h:2*h-1},p);default:return(0,s.h)("td",{style:y,class:[S.e("cell"),f],colSpan:h},[(0,me.Z)(d)?void 0:(0,s.h)("span",{class:[S.e("label"),v]},d),(0,s.h)("span",{class:[S.e("content"),g]},p)])}}});const yS=(0,d.o8)({row:{type:Array,default:()=>[]}}),bS={key:1},wS=(0,s.aZ)({name:"ElDescriptionsRow"}),SS=(0,s.aZ)({...wS,props:yS,setup(e){const t=(0,s.f3)(gS,{});return(e,n)=>"vertical"===(0,l.SU)(t).direction?((0,s.wg)(),(0,s.iD)(s.HY,{key:0},[(0,s._)("tr",null,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.row,((e,t)=>((0,s.wg)(),(0,s.j4)((0,l.SU)(vS),{key:`tr1-${t}`,cell:e,tag:"th",type:"label"},null,8,["cell"])))),128))]),(0,s._)("tr",null,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.row,((e,t)=>((0,s.wg)(),(0,s.j4)((0,l.SU)(vS),{key:`tr2-${t}`,cell:e,tag:"td",type:"content"},null,8,["cell"])))),128))])],64)):((0,s.wg)(),(0,s.iD)("tr",bS,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.row,((e,n)=>((0,s.wg)(),(0,s.iD)(s.HY,{key:`tr3-${n}`},[(0,l.SU)(t).border?((0,s.wg)(),(0,s.iD)(s.HY,{key:0},[(0,s.Wm)((0,l.SU)(vS),{cell:e,tag:"td",type:"label"},null,8,["cell"]),(0,s.Wm)((0,l.SU)(vS),{cell:e,tag:"td",type:"content"},null,8,["cell"])],64)):((0,s.wg)(),(0,s.j4)((0,l.SU)(vS),{key:1,cell:e,tag:"td",type:"both"},null,8,["cell"]))],64)))),128))]))}});var xS=(0,y.Z)(SS,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const _S=(0,d.o8)({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:xe.Pp,title:{type:String,default:""},extra:{type:String,default:""}}),CS=(0,s.aZ)({name:"ElDescriptions"}),ES=(0,s.aZ)({...CS,props:_S,setup(e){const t=e,n=(0,b.s3)("descriptions"),r=ze(),i=(0,s.Rr)();(0,s.JJ)(gS,t);const o=(0,s.Fl)((()=>[n.b(),n.m(r.value)])),a=(e,t,n,r=!1)=>(e.props||(e.props={}),t>n&&(e.props.span=n),r&&(e.props.span=t),e),c=()=>{var e;const n=al(null==(e=i.default)?void 0:e.call(i)).filter((e=>{var t;return"ElDescriptionsItem"===(null==(t=null==e?void 0:e.type)?void 0:t.name)})),r=[];let o=[],s=t.column,l=0;return n.forEach(((e,i)=>{var u;const c=(null==(u=e.props)?void 0:u.span)||1;if(is?s:c),i===n.length-1){const n=t.column-l%t.column;return o.push(a(e,n,s,!0)),void r.push(o)}c((0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)((0,l.SU)(o))},[e.title||e.extra||e.$slots.title||e.$slots.extra?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)((0,l.SU)(n).e("header"))},[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(n).e("title"))},[(0,s.WI)(e.$slots,"title",{},(()=>[(0,s.Uk)((0,u.zw)(e.title),1)]))],2),(0,s._)("div",{class:(0,u.C_)((0,l.SU)(n).e("extra"))},[(0,s.WI)(e.$slots,"extra",{},(()=>[(0,s.Uk)((0,u.zw)(e.extra),1)]))],2)],2)):(0,s.kq)("v-if",!0),(0,s._)("div",{class:(0,u.C_)((0,l.SU)(n).e("body"))},[(0,s._)("table",{class:(0,u.C_)([(0,l.SU)(n).e("table"),(0,l.SU)(n).is("bordered",e.border)])},[(0,s._)("tbody",null,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(c(),((e,t)=>((0,s.wg)(),(0,s.j4)(xS,{key:t,row:e},null,8,["row"])))),128))])],2)],2)],2))}});var MS=(0,y.Z)(ES,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]),kS=(0,s.aZ)({name:"ElDescriptionsItem",props:{label:{type:String,default:""},span:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}});const TS=(0,D.nz)(MS,{DescriptionsItem:kS}),AS=(0,D.dp)(kS),US=e=>{if(!e)return{onClick:u.dG,onMousedown:u.dG,onMouseup:u.dG};let t=!1,n=!1;const r=r=>{t&&n&&e(r),t=n=!1},i=e=>{t=e.target===e.currentTarget},o=e=>{n=e.target===e.currentTarget};return{onClick:r,onMousedown:i,onMouseup:o}},IS=(0,d.o8)({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:(0,d.Cq)([String,Array,Object])},zIndex:{type:(0,d.Cq)([String,Number])}}),DS={click:e=>e instanceof MouseEvent},OS="overlay";var PS=(0,s.aZ)({name:"ElOverlay",props:IS,emits:DS,setup(e,{slots:t,emit:n}){const r=(0,b.s3)(OS),i=e=>{n("click",e)},{onClick:o,onMousedown:a,onMouseup:l}=US(e.customMaskEvent?void 0:i);return()=>e.mask?(0,s.Wm)("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:o,onMousedown:a,onMouseup:l},[(0,s.WI)(t,"default")],el.STYLE|el.CLASS|el.PROPS,["onClick","onMouseup","onMousedown"]):(0,s.h)("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[(0,s.WI)(t,"default")])}});const LS=PS,RS=Symbol("dialogInjectionKey"),NS=(0,d.o8)({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:N.AA},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),FS={close:()=>!0},zS=(...e)=>t=>{e.forEach((e=>{(0,u.mf)(e)?e(t):e.value=t}))},BS=(e,t,n)=>{let r={offsetX:0,offsetY:0};const i=t=>{const n=t.clientX,i=t.clientY,{offsetX:o,offsetY:a}=r,s=e.value.getBoundingClientRect(),l=s.left,u=s.top,c=s.width,d=s.height,p=document.documentElement.clientWidth,h=document.documentElement.clientHeight,f=-l+o,m=-u+a,g=p-l-c+o,v=h-u-d+a,y=t=>{const s=Math.min(Math.max(o+t.clientX-n,f),g),l=Math.min(Math.max(a+t.clientY-i,m),v);r={offsetX:s,offsetY:l},e.value.style.transform=`translate(${(0,w.Nn)(s)}, ${(0,w.Nn)(l)})`},b=()=>{document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",b)};document.addEventListener("mousemove",y),document.addEventListener("mouseup",b)},o=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",i)},a=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",i)};(0,s.bv)((()=>{(0,s.m0)((()=>{n.value?o():a()}))})),(0,s.Jd)((()=>{a()}))},HS=["aria-label"],jS=["id"],VS=(0,s.aZ)({name:"ElDialogContent"}),WS=(0,s.aZ)({...VS,props:NS,emits:FS,setup(e){const t=e,{t:n}=(0,xs.bU)(),{Close:r}=N.CloseComponents,{dialogRef:i,headerRef:o,bodyId:a,ns:c,style:d}=(0,s.f3)(RS),{focusTrapRef:p}=(0,s.f3)(zi),h=zS(p,i),f=(0,s.Fl)((()=>t.draggable));return BS(i,o,f),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{ref:(0,l.SU)(h),class:(0,u.C_)([(0,l.SU)(c).b(),(0,l.SU)(c).is("fullscreen",e.fullscreen),(0,l.SU)(c).is("draggable",(0,l.SU)(f)),(0,l.SU)(c).is("align-center",e.alignCenter),{[(0,l.SU)(c).m("center")]:e.center},e.customClass]),style:(0,u.j5)((0,l.SU)(d)),tabindex:"-1"},[(0,s._)("header",{ref_key:"headerRef",ref:o,class:(0,u.C_)((0,l.SU)(c).e("header"))},[(0,s.WI)(e.$slots,"header",{},(()=>[(0,s._)("span",{role:"heading",class:(0,u.C_)((0,l.SU)(c).e("title"))},(0,u.zw)(e.title),3)])),e.showClose?((0,s.wg)(),(0,s.iD)("button",{key:0,"aria-label":(0,l.SU)(n)("el.dialog.close"),class:(0,u.C_)((0,l.SU)(c).e("headerbtn")),type:"button",onClick:t[0]||(t[0]=t=>e.$emit("close"))},[(0,s.Wm)((0,l.SU)(L.gn),{class:(0,u.C_)((0,l.SU)(c).e("close"))},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.closeIcon||(0,l.SU)(r))))])),_:1},8,["class"])],10,HS)):(0,s.kq)("v-if",!0)],2),(0,s._)("div",{id:(0,l.SU)(a),class:(0,u.C_)((0,l.SU)(c).e("body"))},[(0,s.WI)(e.$slots,"default")],10,jS),e.$slots.footer?((0,s.wg)(),(0,s.iD)("footer",{key:0,class:(0,u.C_)((0,l.SU)(c).e("footer"))},[(0,s.WI)(e.$slots,"footer")],2)):(0,s.kq)("v-if",!0)],6))}});var $S=(0,y.Z)(WS,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const qS=(0,d.o8)({...NS,appendToBody:{type:Boolean,default:!1},beforeClose:{type:(0,d.Cq)(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),GS={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[h]:e=>(0,p.jn)(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},ZS=(e,t={})=>{(0,l.dq)(e)||(0,S._)("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||(0,b.s3)("popup"),r=(0,l.Fl)((()=>n.bm("parent","hidden")));if(!x.C5||(0,w.pv)(document.body,r.value))return;let i=0,o=!1,a="0";const u=()=>{setTimeout((()=>{(0,w.IV)(null==document?void 0:document.body,r.value),o&&document&&(document.body.style.width=a)}),200)};(0,s.YP)(e,(e=>{if(!e)return void u();o=!(0,w.pv)(document.body,r.value),o&&(a=document.body.style.width),i=M(n.namespace.value);const t=document.documentElement.clientHeight0&&(t||"scroll"===s)&&o&&(document.body.style.width=`calc(100% - ${i}px)`),(0,w.cn)(document.body,r.value)})),(0,l.EB)((()=>u()))},YS=(e,t)=>{const n=(0,s.FN)(),r=n.emit,{nextZIndex:i}=(0,Ui.Cn)();let a="";const u=Le(),c=Le(),d=(0,l.iH)(!1),p=(0,l.iH)(!1),f=(0,l.iH)(!1),m=(0,l.iH)(e.zIndex||i());let g,v;const y=(0,o.WS)("namespace",b.tL),S=(0,s.Fl)((()=>{const t={},n=`--${y.value}-dialog`;return e.fullscreen||(e.top&&(t[`${n}-margin-top`]=e.top),e.width&&(t[`${n}-width`]=(0,w.Nn)(e.width))),t})),_=(0,s.Fl)((()=>e.alignCenter?{display:"flex"}:{}));function C(){r("opened")}function E(){r("closed"),r(h,!1),e.destroyOnClose&&(f.value=!1)}function M(){r("close")}function k(){null==v||v(),null==g||g(),e.openDelay&&e.openDelay>0?({stop:g}=(0,x.eM)((()=>I()),e.openDelay)):I()}function T(){null==g||g(),null==v||v(),e.closeDelay&&e.closeDelay>0?({stop:v}=(0,x.eM)((()=>D()),e.closeDelay)):D()}function A(){function t(e){e||(p.value=!0,d.value=!1)}e.beforeClose?e.beforeClose(t):T()}function U(){e.closeOnClickModal&&A()}function I(){x.C5&&(d.value=!0)}function D(){d.value=!1}function O(){r("openAutoFocus")}function P(){r("closeAutoFocus")}function L(e){var t;"pointer"===(null==(t=e.detail)?void 0:t.focusReason)&&e.preventDefault()}function R(){e.closeOnPressEscape&&A()}return e.lockScroll&&ZS(d),(0,s.YP)((()=>e.modelValue),(n=>{n?(p.value=!1,k(),f.value=!0,m.value=e.zIndex?m.value++:i(),(0,s.Y3)((()=>{r("open"),t.value&&(t.value.scrollTop=0)}))):d.value&&T()})),(0,s.YP)((()=>e.fullscreen),(e=>{t.value&&(e?(a=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=a)})),(0,s.bv)((()=>{e.modelValue&&(d.value=!0,f.value=!0,k())})),{afterEnter:C,afterLeave:E,beforeLeave:M,handleClose:A,onModalClick:U,close:T,doClose:D,onOpenAutoFocus:O,onCloseAutoFocus:P,onCloseRequested:R,onFocusoutPrevented:L,titleId:u,bodyId:c,closed:p,style:S,overlayDialogStyle:_,rendered:f,visible:d,zIndex:m}},KS=["aria-label","aria-labelledby","aria-describedby"],XS=(0,s.aZ)({name:"ElDialog",inheritAttrs:!1}),JS=(0,s.aZ)({...XS,props:qS,emits:GS,setup(e,{expose:t}){const n=e,r=(0,s.Rr)();ha({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},(0,s.Fl)((()=>!!r.title))),ha({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},(0,s.Fl)((()=>!!n.customClass)));const i=(0,b.s3)("dialog"),o=(0,l.iH)(),a=(0,l.iH)(),c=(0,l.iH)(),{visible:d,titleId:p,bodyId:h,style:f,overlayDialogStyle:m,rendered:g,zIndex:v,afterEnter:y,afterLeave:w,beforeLeave:S,handleClose:x,onModalClick:_,onOpenAutoFocus:C,onCloseAutoFocus:E,onCloseRequested:M,onFocusoutPrevented:k}=YS(n,o);(0,s.JJ)(RS,{dialogRef:o,headerRef:a,bodyId:h,ns:i,rendered:g,style:f});const T=US(_),A=(0,s.Fl)((()=>n.draggable&&!n.fullscreen));return t({visible:d,dialogContentRef:c}),(e,t)=>((0,s.wg)(),(0,s.j4)(s.lR,{to:"body",disabled:!e.appendToBody},[(0,s.Wm)(P.uT,{name:"dialog-fade",onAfterEnter:(0,l.SU)(y),onAfterLeave:(0,l.SU)(w),onBeforeLeave:(0,l.SU)(S),persisted:""},{default:(0,s.w5)((()=>[(0,s.wy)((0,s.Wm)((0,l.SU)(LS),{"custom-mask-event":"",mask:e.modal,"overlay-class":e.modalClass,"z-index":(0,l.SU)(v)},{default:(0,s.w5)((()=>[(0,s._)("div",{role:"dialog","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:(0,l.SU)(p),"aria-describedby":(0,l.SU)(h),class:(0,u.C_)(`${(0,l.SU)(i).namespace.value}-overlay-dialog`),style:(0,u.j5)((0,l.SU)(m)),onClick:t[0]||(t[0]=(...e)=>(0,l.SU)(T).onClick&&(0,l.SU)(T).onClick(...e)),onMousedown:t[1]||(t[1]=(...e)=>(0,l.SU)(T).onMousedown&&(0,l.SU)(T).onMousedown(...e)),onMouseup:t[2]||(t[2]=(...e)=>(0,l.SU)(T).onMouseup&&(0,l.SU)(T).onMouseup(...e))},[(0,s.Wm)((0,l.SU)(co),{loop:"",trapped:(0,l.SU)(d),"focus-start-el":"container",onFocusAfterTrapped:(0,l.SU)(C),onFocusAfterReleased:(0,l.SU)(E),onFocusoutPrevented:(0,l.SU)(k),onReleaseRequested:(0,l.SU)(M)},{default:(0,s.w5)((()=>[(0,l.SU)(g)?((0,s.wg)(),(0,s.j4)($S,(0,s.dG)({key:0,ref_key:"dialogContentRef",ref:c},e.$attrs,{"custom-class":e.customClass,center:e.center,"align-center":e.alignCenter,"close-icon":e.closeIcon,draggable:(0,l.SU)(A),fullscreen:e.fullscreen,"show-close":e.showClose,title:e.title,onClose:(0,l.SU)(x)}),(0,s.Nv)({header:(0,s.w5)((()=>[e.$slots.title?(0,s.WI)(e.$slots,"title",{key:1}):(0,s.WI)(e.$slots,"header",{key:0,close:(0,l.SU)(x),titleId:(0,l.SU)(p),titleClass:(0,l.SU)(i).e("title")})])),default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default")])),_:2},[e.$slots.footer?{name:"footer",fn:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"footer")]))}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):(0,s.kq)("v-if",!0)])),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,KS)])),_:3},8,["mask","overlay-class","z-index"]),[[P.F8,(0,l.SU)(d)]])])),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var QS=(0,y.Z)(JS,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const ex=(0,D.nz)(QS),tx=(0,d.o8)({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:(0,d.Cq)(String),default:"solid"}}),nx=(0,s.aZ)({name:"ElDivider"}),rx=(0,s.aZ)({...nx,props:tx,setup(e){const t=e,n=(0,b.s3)("divider"),r=(0,s.Fl)((()=>n.cssVar({"border-style":t.borderStyle})));return(e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)([(0,l.SU)(n).b(),(0,l.SU)(n).m(e.direction)]),style:(0,u.j5)((0,l.SU)(r)),role:"separator"},[e.$slots.default&&"vertical"!==e.direction?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)([(0,l.SU)(n).e("text"),(0,l.SU)(n).is(e.contentPosition)])},[(0,s.WI)(e.$slots,"default")],2)):(0,s.kq)("v-if",!0)],6))}});var ix=(0,y.Z)(rx,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const ox=(0,D.nz)(ix),ax=(0,d.o8)({...qS,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0}}),sx=GS,lx=(0,s.aZ)({name:"ElDrawer",components:{ElOverlay:LS,ElFocusTrap:co,ElIcon:L.gn,Close:fe.x8P},inheritAttrs:!1,props:ax,emits:sx,setup(e,{slots:t}){ha({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},(0,s.Fl)((()=>!!t.title))),ha({scope:"el-drawer",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/drawer.html#attributes",type:"Attribute"},(0,s.Fl)((()=>!!e.customClass)));const n=(0,l.iH)(),r=(0,l.iH)(),i=(0,b.s3)("drawer"),{t:o}=(0,xs.bU)(),a=(0,s.Fl)((()=>"rtl"===e.direction||"ltr"===e.direction)),u=(0,s.Fl)((()=>(0,w.Nn)(e.size)));return{...YS(e,n),drawerRef:n,focusStartRef:r,isHorizontal:a,drawerSize:u,ns:i,t:o}}}),ux=["aria-label","aria-labelledby","aria-describedby"],cx=["id"],dx=["aria-label"],px=["id"];function hx(e,t,n,r,i,o){const a=(0,s.up)("close"),l=(0,s.up)("el-icon"),c=(0,s.up)("el-focus-trap"),d=(0,s.up)("el-overlay");return(0,s.wg)(),(0,s.j4)(s.lR,{to:"body",disabled:!e.appendToBody},[(0,s.Wm)(P.uT,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:(0,s.w5)((()=>[(0,s.wy)((0,s.Wm)(d,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:(0,s.w5)((()=>[(0,s.Wm)(c,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:(0,s.w5)((()=>[(0,s._)("div",(0,s.dG)({ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId},e.$attrs,{class:[e.ns.b(),e.direction,e.visible&&"open",e.customClass],style:e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize,role:"dialog",onClick:t[1]||(t[1]=(0,P.iM)((()=>{}),["stop"]))}),[(0,s._)("span",{ref:"focusStartRef",class:(0,u.C_)(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?((0,s.wg)(),(0,s.iD)("header",{key:0,class:(0,u.C_)(e.ns.e("header"))},[e.$slots.title?(0,s.WI)(e.$slots,"title",{key:1},(()=>[(0,s.kq)(" DEPRECATED SLOT ")])):(0,s.WI)(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},(()=>[e.$slots.title?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)("span",{key:0,id:e.titleId,role:"heading",class:(0,u.C_)(e.ns.e("title"))},(0,u.zw)(e.title),11,cx))])),e.showClose?((0,s.wg)(),(0,s.iD)("button",{key:2,"aria-label":e.t("el.drawer.close"),class:(0,u.C_)(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...t)=>e.handleClose&&e.handleClose(...t))},[(0,s.Wm)(l,{class:(0,u.C_)(e.ns.e("close"))},{default:(0,s.w5)((()=>[(0,s.Wm)(a)])),_:1},8,["class"])],10,dx)):(0,s.kq)("v-if",!0)],2)):(0,s.kq)("v-if",!0),e.rendered?((0,s.wg)(),(0,s.iD)("div",{key:1,id:e.bodyId,class:(0,u.C_)(e.ns.e("body"))},[(0,s.WI)(e.$slots,"default")],10,px)):(0,s.kq)("v-if",!0),e.$slots.footer?((0,s.wg)(),(0,s.iD)("div",{key:2,class:(0,u.C_)(e.ns.e("footer"))},[(0,s.WI)(e.$slots,"footer")],2)):(0,s.kq)("v-if",!0)],16,ux)])),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])])),_:3},8,["mask","overlay-class","z-index","onClick"]),[[P.F8,e.visible]])])),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var fx=(0,y.Z)(lx,[["render",hx],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const mx=(0,D.nz)(fx),gx=(0,s.aZ)({inheritAttrs:!1});function vx(e,t,n,r,i,o){return(0,s.WI)(e.$slots,"default")}var yx=(0,y.Z)(gx,[["render",vx],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const bx=(0,s.aZ)({name:"ElCollectionItem",inheritAttrs:!1});function wx(e,t,n,r,i,o){return(0,s.WI)(e.$slots,"default")}var Sx=(0,y.Z)(bx,[["render",wx],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const xx="data-el-collection-item",_x=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),i=Symbol(n),o={...yx,name:t,setup(){const e=(0,l.iH)(null),t=new Map,n=()=>{const n=(0,l.SU)(e);if(!n)return[];const r=Array.from(n.querySelectorAll(`[${xx}]`)),i=[...t.values()];return i.sort(((e,t)=>r.indexOf(e.ref)-r.indexOf(t.ref)))};(0,s.JJ)(r,{itemMap:t,getItems:n,collectionRef:e})}},a={...Sx,name:n,setup(e,{attrs:t}){const n=(0,l.iH)(null),o=(0,s.f3)(r,void 0);(0,s.JJ)(i,{collectionItemRef:n}),(0,s.bv)((()=>{const e=(0,l.SU)(n);e&&o.itemMap.set(e,{ref:e,...t})})),(0,s.Jd)((()=>{const e=(0,l.SU)(n);o.itemMap.delete(e)}))}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:i,ElCollection:o,ElCollectionItem:a}},Cx=(0,d.o8)({trigger:zr.trigger,effect:{...Rr.effect,default:"light"},type:{type:(0,d.Cq)(String)},placement:{type:(0,d.Cq)(String),default:"bottom"},popperOptions:{type:(0,d.Cq)(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:(0,d.Cq)([Number,String]),default:0},maxHeight:{type:(0,d.Cq)([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:(0,d.Cq)(Object)},teleported:Rr.teleported}),Ex=(0,d.o8)({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:N.AA}}),Mx=(0,d.o8)({onKeydown:{type:(0,d.Cq)(Function)}}),kx=[Fr.EVENT_CODE.down,Fr.EVENT_CODE.pageDown,Fr.EVENT_CODE.home],Tx=[Fr.EVENT_CODE.up,Fr.EVENT_CODE.pageUp,Fr.EVENT_CODE.end],Ax=[...kx,...Tx],{ElCollection:Ux,ElCollectionItem:Ix,COLLECTION_INJECTION_KEY:Dx,COLLECTION_ITEM_INJECTION_KEY:Ox}=_x("Dropdown"),Px=Symbol("elDropdown"),Lx=(0,d.o8)({style:{type:(0,d.Cq)([String,Array,Object])},currentTabId:{type:(0,d.Cq)(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:(0,d.Cq)(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:Rx,ElCollectionItem:Nx,COLLECTION_INJECTION_KEY:Fx,COLLECTION_ITEM_INJECTION_KEY:zx}=_x("RovingFocusGroup"),Bx=Symbol("elRovingFocusGroup"),Hx=Symbol("elRovingFocusGroupItem"),jx={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},Vx=(e,t)=>{if("rtl"!==t)return e;switch(e){case Fr.EVENT_CODE.right:return Fr.EVENT_CODE.left;case Fr.EVENT_CODE.left:return Fr.EVENT_CODE.right;default:return e}},Wx=(e,t,n)=>{const r=Vx(e.key,n);if(("vertical"!==t||![Fr.EVENT_CODE.left,Fr.EVENT_CODE.right].includes(r))&&("horizontal"!==t||![Fr.EVENT_CODE.up,Fr.EVENT_CODE.down].includes(r)))return jx[r]},$x=(e,t)=>e.map(((n,r)=>e[(r+t)%e.length])),qx=e=>{const{activeElement:t}=document;for(const n of e){if(n===t)return;if(n.focus(),t!==document.activeElement)return}},Gx="currentTabIdChange",Zx="rovingFocusGroup.entryFocus",Yx={bubbles:!1,cancelable:!0},Kx=(0,s.aZ)({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:Lx,emits:[Gx,"entryFocus"],setup(e,{emit:t}){var n;const r=(0,l.iH)(null!=(n=e.currentTabId||e.defaultCurrentTabId)?n:null),i=(0,l.iH)(!1),o=(0,l.iH)(!1),a=(0,l.iH)(null),{getItems:u}=(0,s.f3)(Fx,void 0),d=(0,s.Fl)((()=>[{outline:"none"},e.style])),p=e=>{t(Gx,e)},h=()=>{i.value=!0},f=ei((t=>{var n;null==(n=e.onMousedown)||n.call(e,t)}),(()=>{o.value=!0})),m=ei((t=>{var n;null==(n=e.onFocus)||n.call(e,t)}),(e=>{const t=!(0,l.SU)(o),{target:n,currentTarget:a}=e;if(n===a&&t&&!(0,l.SU)(i)){const e=new Event(Zx,Yx);if(null==a||a.dispatchEvent(e),!e.defaultPrevented){const e=u().filter((e=>e.focusable)),t=e.find((e=>e.active)),n=e.find((e=>e.id===(0,l.SU)(r))),i=[t,n,...e].filter(Boolean),o=i.map((e=>e.ref));qx(o)}}o.value=!1})),g=ei((t=>{var n;null==(n=e.onBlur)||n.call(e,t)}),(()=>{i.value=!1})),v=(...e)=>{t("entryFocus",...e)};(0,s.JJ)(Bx,{currentTabbedId:(0,l.OT)(r),loop:(0,l.Vh)(e,"loop"),tabIndex:(0,s.Fl)((()=>(0,l.SU)(i)?-1:0)),rovingFocusGroupRef:a,rovingFocusGroupRootStyle:d,orientation:(0,l.Vh)(e,"orientation"),dir:(0,l.Vh)(e,"dir"),onItemFocus:p,onItemShiftTab:h,onBlur:g,onFocus:m,onMousedown:f}),(0,s.YP)((()=>e.currentTabId),(e=>{r.value=null!=e?e:null})),(0,c.ORN)(a,Zx,v)}});function Xx(e,t,n,r,i,o){return(0,s.WI)(e.$slots,"default")}var Jx=(0,y.Z)(Kx,[["render",Xx],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const Qx=(0,s.aZ)({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:Rx,ElRovingFocusGroupImpl:Jx}});function e_(e,t,n,r,i,o){const a=(0,s.up)("el-roving-focus-group-impl"),l=(0,s.up)("el-focus-group-collection");return(0,s.wg)(),(0,s.j4)(l,null,{default:(0,s.w5)((()=>[(0,s.Wm)(a,(0,u.vs)((0,s.F4)(e.$attrs)),{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default")])),_:3},16)])),_:3})}var t_=(0,y.Z)(Qx,[["render",e_],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const{ButtonGroup:n_}=is,r_=(0,s.aZ)({name:"ElDropdown",components:{ElButton:is,ElButtonGroup:n_,ElScrollbar:ht,ElDropdownCollection:Ux,ElTooltip:Mo,ElRovingFocusGroup:t_,ElOnlyChild:ai,ElIcon:L.gn,ArrowDown:fe.K5e},props:Cx,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=(0,s.FN)(),r=(0,b.s3)("dropdown"),{t:i}=(0,xs.bU)(),o=(0,l.iH)(),a=(0,l.iH)(),c=(0,l.iH)(null),d=(0,l.iH)(null),p=(0,l.iH)(null),h=(0,l.iH)(null),f=(0,l.iH)(!1),m=[Fr.EVENT_CODE.enter,Fr.EVENT_CODE.space,Fr.EVENT_CODE.down],g=(0,s.Fl)((()=>({maxHeight:(0,w.Nn)(e.maxHeight)}))),v=(0,s.Fl)((()=>[r.m(E.value)])),y=Le().value,S=(0,s.Fl)((()=>e.id||y));function x(){_()}function _(){var e;null==(e=c.value)||e.onClose()}function C(){var e;null==(e=c.value)||e.onOpen()}(0,s.YP)([o,(0,l.Vh)(e,"trigger")],(([e,t],[n])=>{var r,i,o;const a=(0,u.kJ)(t)?t:[t];(null==(r=null==n?void 0:n.$el)?void 0:r.removeEventListener)&&n.$el.removeEventListener("pointerenter",k),(null==(i=null==e?void 0:e.$el)?void 0:i.removeEventListener)&&e.$el.removeEventListener("pointerenter",k),(null==(o=null==e?void 0:e.$el)?void 0:o.addEventListener)&&a.includes("hover")&&e.$el.addEventListener("pointerenter",k)}),{immediate:!0}),(0,s.Jd)((()=>{var e,t;(null==(t=null==(e=o.value)?void 0:e.$el)?void 0:t.removeEventListener)&&o.value.$el.removeEventListener("pointerenter",k)}));const E=ze();function M(...e){t("command",...e)}function k(){var e,t;null==(t=null==(e=o.value)?void 0:e.$el)||t.focus()}function T(){}function A(){const e=(0,l.SU)(d);null==e||e.focus(),h.value=null}function U(e){h.value=e}function I(e){f.value||(e.preventDefault(),e.stopImmediatePropagation())}function D(){t("visible-change",!0)}function O(e){"keydown"===(null==e?void 0:e.type)&&d.value.focus()}function P(){t("visible-change",!1)}(0,s.JJ)(Px,{contentRef:d,role:(0,s.Fl)((()=>e.role)),triggerId:S,isUsingKeyboard:f,onItemEnter:T,onItemLeave:A}),(0,s.JJ)("elDropdown",{instance:n,dropdownSize:E,handleClick:x,commandHandler:M,trigger:(0,l.Vh)(e,"trigger"),hideOnClick:(0,l.Vh)(e,"hideOnClick")});const L=e=>{var t,n;e.preventDefault(),null==(n=null==(t=d.value)?void 0:t.focus)||n.call(t,{preventScroll:!0})},R=e=>{t("click",e)};return{t:i,ns:r,scrollbar:p,wrapStyle:g,dropdownTriggerKls:v,dropdownSize:E,triggerId:S,triggerKeys:m,currentTabId:h,handleCurrentTabIdChange:U,handlerMainButtonClick:R,handleEntryFocus:I,handleClose:_,handleOpen:C,handleBeforeShowTooltip:D,handleShowTooltip:O,handleBeforeHideTooltip:P,onFocusAfterTrapped:L,popperRef:c,contentRef:d,triggeringElementRef:o,referenceElementRef:a}}});function i_(e,t,n,r,i,o){var a;const l=(0,s.up)("el-dropdown-collection"),c=(0,s.up)("el-roving-focus-group"),d=(0,s.up)("el-scrollbar"),p=(0,s.up)("el-only-child"),h=(0,s.up)("el-tooltip"),f=(0,s.up)("el-button"),m=(0,s.up)("arrow-down"),g=(0,s.up)("el-icon"),v=(0,s.up)("el-button-group");return(0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)([e.ns.b(),e.ns.is("disabled",e.disabled)])},[(0,s.Wm)(h,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":"hover"===e.trigger?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":null==(a=e.referenceElementRef)?void 0:a.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":"hover"===e.trigger?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},(0,s.Nv)({content:(0,s.w5)((()=>[(0,s.Wm)(d,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:(0,s.w5)((()=>[(0,s.Wm)(c,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:(0,s.w5)((()=>[(0,s.Wm)(l,null,{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"dropdown")])),_:3})])),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])])),_:3},8,["wrap-style","view-class"])])),_:2},[e.splitButton?void 0:{name:"default",fn:(0,s.w5)((()=>[(0,s.Wm)(p,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default")])),_:3},8,["id","tabindex"])]))}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?((0,s.wg)(),(0,s.j4)(v,{key:0},{default:(0,s.w5)((()=>[(0,s.Wm)(f,(0,s.dG)({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default")])),_:3},16,["size","type","disabled","tabindex","onClick"]),(0,s.Wm)(f,(0,s.dG)({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:(0,s.w5)((()=>[(0,s.Wm)(g,{class:(0,u.C_)(e.ns.e("icon"))},{default:(0,s.w5)((()=>[(0,s.Wm)(m)])),_:1},8,["class"])])),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])])),_:3})):(0,s.kq)("v-if",!0)],2)}var o_=(0,y.Z)(r_,[["render",i_],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const a_=(0,s.aZ)({name:"DropdownItemImpl",components:{ElIcon:L.gn},props:Ex,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=(0,b.s3)("dropdown"),{role:r}=(0,s.f3)(Px,void 0),{collectionItemRef:i}=(0,s.f3)(Ox,void 0),{collectionItemRef:o}=(0,s.f3)(zx,void 0),{rovingFocusGroupItemRef:a,tabIndex:l,handleFocus:u,handleKeydown:c,handleMousedown:d}=(0,s.f3)(Hx,void 0),p=zS(i,o,a),h=(0,s.Fl)((()=>"menu"===r.value?"menuitem":"navigation"===r.value?"link":"button")),f=ei((e=>{const{code:n}=e;if(n===Fr.EVENT_CODE.enter||n===Fr.EVENT_CODE.space)return e.preventDefault(),e.stopImmediatePropagation(),t("clickimpl",e),!0}),c);return{ns:n,itemRef:p,dataset:{[xx]:""},role:h,tabIndex:l,handleFocus:u,handleKeydown:f,handleMousedown:d}}}),s_=["aria-disabled","tabindex","role"];function l_(e,t,n,r,i,o){const a=(0,s.up)("el-icon");return(0,s.wg)(),(0,s.iD)(s.HY,null,[e.divided?((0,s.wg)(),(0,s.iD)("li",(0,s.dG)({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):(0,s.kq)("v-if",!0),(0,s._)("li",(0,s.dG)({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=t=>e.$emit("clickimpl",t)),onFocus:t[1]||(t[1]=(...t)=>e.handleFocus&&e.handleFocus(...t)),onKeydown:t[2]||(t[2]=(0,P.iM)(((...t)=>e.handleKeydown&&e.handleKeydown(...t)),["self"])),onMousedown:t[3]||(t[3]=(...t)=>e.handleMousedown&&e.handleMousedown(...t)),onPointermove:t[4]||(t[4]=t=>e.$emit("pointermove",t)),onPointerleave:t[5]||(t[5]=t=>e.$emit("pointerleave",t))}),[e.icon?((0,s.wg)(),(0,s.j4)(a,{key:0},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.icon)))])),_:1})):(0,s.kq)("v-if",!0),(0,s.WI)(e.$slots,"default")],16,s_)],64)}var u_=(0,y.Z)(a_,[["render",l_],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const c_=()=>{const e=(0,s.f3)("elDropdown",{}),t=(0,s.Fl)((()=>null==e?void 0:e.dropdownSize));return{elDropdown:e,_elDropdownSize:t}},d_=(0,s.aZ)({components:{ElRovingFocusCollectionItem:Nx},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,loop:r,onItemFocus:i,onItemShiftTab:o}=(0,s.f3)(Bx,void 0),{getItems:a}=(0,s.f3)(Fx,void 0),u=Le(),c=(0,l.iH)(null),d=ei((e=>{t("mousedown",e)}),(t=>{e.focusable?i((0,l.SU)(u)):t.preventDefault()})),p=ei((e=>{t("focus",e)}),(()=>{i((0,l.SU)(u))})),h=ei((e=>{t("keydown",e)}),(e=>{const{key:t,shiftKey:n,target:i,currentTarget:l}=e;if(t===Fr.EVENT_CODE.tab&&n)return void o();if(i!==l)return;const u=Wx(e);if(u){e.preventDefault();const t=a().filter((e=>e.focusable));let n=t.map((e=>e.ref));switch(u){case"last":n.reverse();break;case"prev":case"next":{"prev"===u&&n.reverse();const e=n.indexOf(l);n=r.value?$x(n,e+1):n.slice(e+1);break}default:break}(0,s.Y3)((()=>{qx(n)}))}})),f=(0,s.Fl)((()=>n.value===(0,l.SU)(u)));return(0,s.JJ)(Hx,{rovingFocusGroupItemRef:c,tabIndex:(0,s.Fl)((()=>(0,l.SU)(f)?0:-1)),handleMousedown:d,handleFocus:p,handleKeydown:h}),{id:u,handleKeydown:h,handleFocus:p,handleMousedown:d}}});function p_(e,t,n,r,i,o){const a=(0,s.up)("el-roving-focus-collection-item");return(0,s.wg)(),(0,s.j4)(a,{id:e.id,focusable:e.focusable,active:e.active},{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default")])),_:3},8,["id","focusable","active"])}var h_=(0,y.Z)(d_,[["render",p_],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const f_=(0,s.aZ)({name:"ElDropdownItem",components:{ElDropdownCollectionItem:Ix,ElRovingFocusItem:h_,ElDropdownItemImpl:u_},inheritAttrs:!1,props:Ex,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:r}=c_(),i=(0,s.FN)(),o=(0,l.iH)(null),a=(0,s.Fl)((()=>{var e,t;return null!=(t=null==(e=(0,l.SU)(o))?void 0:e.textContent)?t:""})),{onItemEnter:u,onItemLeave:c}=(0,s.f3)(Px,void 0),d=ei((e=>(t("pointermove",e),e.defaultPrevented)),ti((t=>{if(e.disabled)return void c(t);const n=t.currentTarget;n===document.activeElement||n.contains(document.activeElement)||(u(t),t.defaultPrevented||null==n||n.focus())}))),p=ei((e=>(t("pointerleave",e),e.defaultPrevented)),ti((e=>{c(e)}))),h=ei((n=>{if(!e.disabled)return t("click",n),"keydown"!==n.type&&n.defaultPrevented}),(t=>{var n,o,a;e.disabled?t.stopImmediatePropagation():((null==(n=null==r?void 0:r.hideOnClick)?void 0:n.value)&&(null==(o=r.handleClick)||o.call(r)),null==(a=r.commandHandler)||a.call(r,e.command,i,t))})),f=(0,s.Fl)((()=>({...e,...n})));return{handleClick:h,handlePointerMove:d,handlePointerLeave:p,textContent:a,propsAndAttrs:f}}});function m_(e,t,n,r,i,o){var a;const l=(0,s.up)("el-dropdown-item-impl"),u=(0,s.up)("el-roving-focus-item"),c=(0,s.up)("el-dropdown-collection-item");return(0,s.wg)(),(0,s.j4)(c,{disabled:e.disabled,"text-value":null!=(a=e.textValue)?a:e.textContent},{default:(0,s.w5)((()=>[(0,s.Wm)(u,{focusable:!e.disabled},{default:(0,s.w5)((()=>[(0,s.Wm)(l,(0,s.dG)(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default")])),_:3},16,["onPointerleave","onPointermove","onClickimpl"])])),_:3},8,["focusable"])])),_:3},8,["disabled","text-value"])}var g_=(0,y.Z)(f_,[["render",m_],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const v_=(0,s.aZ)({name:"ElDropdownMenu",props:Mx,setup(e){const t=(0,b.s3)("dropdown"),{_elDropdownSize:n}=c_(),r=n.value,{focusTrapRef:i,onKeydown:o}=(0,s.f3)(zi,void 0),{contentRef:a,role:u,triggerId:c}=(0,s.f3)(Px,void 0),{collectionRef:d,getItems:p}=(0,s.f3)(Dx,void 0),{rovingFocusGroupRef:h,rovingFocusGroupRootStyle:f,tabIndex:m,onBlur:g,onFocus:v,onMousedown:y}=(0,s.f3)(Bx,void 0),{collectionRef:w}=(0,s.f3)(Fx,void 0),S=(0,s.Fl)((()=>[t.b("menu"),t.bm("menu",null==r?void 0:r.value)])),x=zS(a,d,i,h,w),_=ei((t=>{var n;null==(n=e.onKeydown)||n.call(e,t)}),(e=>{const{currentTarget:t,code:n,target:r}=e;t.contains(r);if(Fr.EVENT_CODE.tab===n&&e.stopImmediatePropagation(),e.preventDefault(),r!==(0,l.SU)(a))return;if(!Ax.includes(n))return;const i=p().filter((e=>!e.disabled)),o=i.map((e=>e.ref));Tx.includes(n)&&o.reverse(),qx(o)})),C=e=>{_(e),o(e)};return{size:r,rovingFocusGroupRootStyle:f,tabIndex:m,dropdownKls:S,role:u,triggerId:c,dropdownListWrapperRef:x,handleKeydown:C,onBlur:g,onFocus:v,onMousedown:y}}}),y_=["role","aria-labelledby"];function b_(e,t,n,r,i,o){return(0,s.wg)(),(0,s.iD)("ul",{ref:e.dropdownListWrapperRef,class:(0,u.C_)(e.dropdownKls),style:(0,u.j5)(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:t[0]||(t[0]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:t[1]||(t[1]=(...t)=>e.onFocus&&e.onFocus(...t)),onKeydown:t[2]||(t[2]=(0,P.iM)(((...t)=>e.handleKeydown&&e.handleKeydown(...t)),["self"])),onMousedown:t[3]||(t[3]=(0,P.iM)(((...t)=>e.onMousedown&&e.onMousedown(...t)),["self"]))},[(0,s.WI)(e.$slots,"default")],46,y_)}var w_=(0,y.Z)(v_,[["render",b_],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const S_=(0,D.nz)(o_,{DropdownItem:g_,DropdownMenu:w_}),x_=(0,D.dp)(g_),__=(0,D.dp)(w_),C_={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},E_=["id"],M_=["stop-color"],k_=["stop-color"],T_=["id"],A_=["stop-color"],U_=["stop-color"],I_=["id"],D_={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},O_={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},P_={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},L_=["fill"],R_=["fill"],N_={id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},F_=["fill"],z_=["fill"],B_=["fill"],H_=["fill"],j_=["fill"],V_={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},W_=["fill","xlink:href"],$_=["fill","mask"],q_=["fill"],G_=(0,s.aZ)({name:"ImgEmpty"}),Z_=(0,s.aZ)({...G_,setup(e){const t=(0,b.s3)("empty"),n=Le();return(e,r)=>((0,s.wg)(),(0,s.iD)("svg",C_,[(0,s._)("defs",null,[(0,s._)("linearGradient",{id:`linearGradient-1-${(0,l.SU)(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[(0,s._)("stop",{"stop-color":`var(${(0,l.SU)(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,M_),(0,s._)("stop",{"stop-color":`var(${(0,l.SU)(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,k_)],8,E_),(0,s._)("linearGradient",{id:`linearGradient-2-${(0,l.SU)(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[(0,s._)("stop",{"stop-color":`var(${(0,l.SU)(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,A_),(0,s._)("stop",{"stop-color":`var(${(0,l.SU)(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,U_)],8,T_),(0,s._)("rect",{id:`path-3-${(0,l.SU)(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,I_)]),(0,s._)("g",D_,[(0,s._)("g",O_,[(0,s._)("g",P_,[(0,s._)("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${(0,l.SU)(t).cssVarBlockName("fill-color-3")})`},null,8,L_),(0,s._)("polygon",{id:"Rectangle-Copy-14",fill:`var(${(0,l.SU)(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,R_),(0,s._)("g",N_,[(0,s._)("polygon",{id:"Rectangle-Copy-10",fill:`var(${(0,l.SU)(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,F_),(0,s._)("polygon",{id:"Rectangle-Copy-11",fill:`var(${(0,l.SU)(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,z_),(0,s._)("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${(0,l.SU)(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,B_),(0,s._)("polygon",{id:"Rectangle-Copy-13",fill:`var(${(0,l.SU)(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,H_)]),(0,s._)("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${(0,l.SU)(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,j_),(0,s._)("g",V_,[(0,s._)("use",{id:"Mask",fill:`var(${(0,l.SU)(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${(0,l.SU)(n)}`},null,8,W_),(0,s._)("polygon",{id:"Rectangle-Copy",fill:`var(${(0,l.SU)(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${(0,l.SU)(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,$_)]),(0,s._)("polygon",{id:"Rectangle-Copy-18",fill:`var(${(0,l.SU)(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,q_)])])])]))}});var Y_=(0,y.Z)(Z_,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const K_=(0,d.o8)({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),X_=["src"],J_={key:1},Q_=(0,s.aZ)({name:"ElEmpty"}),eC=(0,s.aZ)({...Q_,props:K_,setup(e){const t=e,{t:n}=(0,xs.bU)(),r=(0,b.s3)("empty"),i=(0,s.Fl)((()=>t.description||n("el.table.emptyText"))),o=(0,s.Fl)((()=>({width:(0,w.Nn)(t.imageSize)})));return(e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)((0,l.SU)(r).b())},[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(r).e("image")),style:(0,u.j5)((0,l.SU)(o))},[e.image?((0,s.wg)(),(0,s.iD)("img",{key:0,src:e.image,ondragstart:"return false"},null,8,X_)):(0,s.WI)(e.$slots,"image",{key:1},(()=>[(0,s.Wm)(Y_)]))],6),(0,s._)("div",{class:(0,u.C_)((0,l.SU)(r).e("description"))},[e.$slots.description?(0,s.WI)(e.$slots,"description",{key:0}):((0,s.wg)(),(0,s.iD)("p",J_,(0,u.zw)((0,l.SU)(i)),1))],2),e.$slots.default?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)((0,l.SU)(r).e("bottom"))},[(0,s.WI)(e.$slots,"default")],2)):(0,s.kq)("v-if",!0)],2))}});var tC=(0,y.Z)(eC,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const nC=(0,D.nz)(tC),rC=(0,d.o8)({size:{type:String,values:Fo.k},disabled:Boolean}),iC=(0,d.o8)({...rC,model:Object,rules:{type:(0,d.Cq)(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),oC={validate:(e,t,n)=>((0,u.kJ)(e)||(0,u.HD)(e))&&(0,p.jn)(t)&&(0,u.HD)(n)},aC="ElForm";function sC(){const e=(0,l.iH)([]),t=(0,s.Fl)((()=>{if(!e.value.length)return"0";const t=Math.max(...e.value);return t?`${t}px`:""}));function n(n){const r=e.value.indexOf(n);return-1===r&&"0"===t.value&&(0,S.N)(aC,`unexpected width ${n}`),r}function r(t,r){if(t&&r){const i=n(r);e.value.splice(i,1,t)}else t&&e.value.push(t)}function i(t){const r=n(t);r>-1&&e.value.splice(r,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:i}}const lC=(e,t)=>{const n=zv(t);return n.length>0?e.filter((e=>e.prop&&n.includes(e.prop))):e},uC="ElForm",cC=(0,s.aZ)({name:uC}),dC=(0,s.aZ)({...cC,props:iC,emits:oC,setup(e,{expose:t,emit:n}){const r=e,i=[],o=ze(),a=(0,b.s3)("form"),c=(0,s.Fl)((()=>{const{labelPosition:e,inline:t}=r;return[a.b(),a.m(o.value||"default"),{[a.m(`label-${e}`)]:e,[a.m("inline")]:t}]})),d=e=>{i.push(e)},p=e=>{e.prop&&i.splice(i.indexOf(e),1)},h=(e=[])=>{r.model?lC(i,e).forEach((e=>e.resetField())):(0,S.N)(uC,"model is required for resetFields to work.")},f=(e=[])=>{lC(i,e).forEach((e=>e.clearValidate()))},m=(0,s.Fl)((()=>{const e=!!r.model;return e||(0,S.N)(uC,"model is required for validate to work."),e})),g=e=>{if(0===i.length)return[];const t=lC(i,e);return t.length?t:((0,S.N)(uC,"please pass correct props!"),[])},v=async e=>w(void 0,e),y=async(e=[])=>{if(!m.value)return!1;const t=g(e);if(0===t.length)return!0;let n={};for(const i of t)try{await i.validate("")}catch(r){n={...n,...r}}return 0===Object.keys(n).length||Promise.reject(n)},w=async(e=[],t)=>{const n=!(0,u.mf)(t);try{const n=await y(e);return!0===n&&(null==t||t(n)),n}catch(hz){if(hz instanceof Error)throw hz;const i=hz;return r.scrollToError&&x(Object.keys(i)[0]),null==t||t(!1,i),n&&Promise.reject(i)}},x=e=>{var t;const n=lC(i,e)[0];n&&(null==(t=n.$el)||t.scrollIntoView(r.scrollIntoViewOptions))};return(0,s.YP)((()=>r.rules),(()=>{r.validateOnRuleChange&&v().catch((e=>(0,S.N)(e)))}),{deep:!0}),(0,s.JJ)(Ue,(0,l.qj)({...(0,l.BK)(r),emit:n,resetFields:h,clearValidate:f,validateField:w,addField:d,removeField:p,...sC()})),t({validate:v,validateField:w,resetFields:h,clearValidate:f,scrollToField:x}),(e,t)=>((0,s.wg)(),(0,s.iD)("form",{class:(0,u.C_)((0,l.SU)(c))},[(0,s.WI)(e.$slots,"default")],2))}});var pC=(0,y.Z)(dC,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]),hC=(n(6027),n(5941));function fC(){return fC=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?t-1:0),r=1;r=o)return e;switch(e){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(hL){return"[Circular]"}break;default:return e}}));return a}return e}function MC(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}function kC(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!MC(t)||"string"!==typeof e||e))}function TC(e,t,n){var r=[],i=0,o=e.length;function a(e){r.push.apply(r,e||[]),i++,i===o&&n(r)}e.forEach((function(e){t(e,a)}))}function AC(e,t,n){var r=0,i=e.length;function o(a){if(a&&a.length)n(a);else{var s=r;r+=1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},jC={integer:function(e){return jC.number(e)&&parseInt(e,10)===e},float:function(e){return jC.number(e)&&!jC.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(hz){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===typeof e&&!jC.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&e.length<=320&&!!e.match(HC.email)},url:function(e){return"string"===typeof e&&e.length<=2048&&!!e.match(BC())},hex:function(e){return"string"===typeof e&&!!e.match(HC.hex)}},VC=function(e,t,n,r,i){if(e.required&&void 0===t)FC(e,t,n,r,i);else{var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=e.type;o.indexOf(a)>-1?jC[a](t)||r.push(EC(i.messages.types[a],e.fullField,e.type)):a&&typeof t!==e.type&&r.push(EC(i.messages.types[a],e.fullField,e.type))}},WC=function(e,t,n,r,i){var o="number"===typeof e.len,a="number"===typeof e.min,s="number"===typeof e.max,l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=t,c=null,d="number"===typeof t,p="string"===typeof t,h=Array.isArray(t);if(d?c="number":p?c="string":h&&(c="array"),!c)return!1;h&&(u=t.length),p&&(u=t.replace(l,"_").length),o?u!==e.len&&r.push(EC(i.messages[c].len,e.fullField,e.len)):a&&!s&&ue.max?r.push(EC(i.messages[c].max,e.fullField,e.max)):a&&s&&(ue.max)&&r.push(EC(i.messages[c].range,e.fullField,e.min,e.max))},$C="enum",qC=function(e,t,n,r,i){e[$C]=Array.isArray(e[$C])?e[$C]:[],-1===e[$C].indexOf(t)&&r.push(EC(i.messages[$C],e.fullField,e[$C].join(", ")))},GC=function(e,t,n,r,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(EC(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var o=new RegExp(e.pattern);o.test(t)||r.push(EC(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}},ZC={required:FC,whitespace:zC,type:VC,range:WC,enum:qC,pattern:GC},YC=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(kC(t,"string")&&!e.required)return n();ZC.required(e,t,r,o,i,"string"),kC(t,"string")||(ZC.type(e,t,r,o,i),ZC.range(e,t,r,o,i),ZC.pattern(e,t,r,o,i),!0===e.whitespace&&ZC.whitespace(e,t,r,o,i))}n(o)},KC=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(kC(t)&&!e.required)return n();ZC.required(e,t,r,o,i),void 0!==t&&ZC.type(e,t,r,o,i)}n(o)},XC=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(""===t&&(t=void 0),kC(t)&&!e.required)return n();ZC.required(e,t,r,o,i),void 0!==t&&(ZC.type(e,t,r,o,i),ZC.range(e,t,r,o,i))}n(o)},JC=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(kC(t)&&!e.required)return n();ZC.required(e,t,r,o,i),void 0!==t&&ZC.type(e,t,r,o,i)}n(o)},QC=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(kC(t)&&!e.required)return n();ZC.required(e,t,r,o,i),kC(t)||ZC.type(e,t,r,o,i)}n(o)},eE=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(kC(t)&&!e.required)return n();ZC.required(e,t,r,o,i),void 0!==t&&(ZC.type(e,t,r,o,i),ZC.range(e,t,r,o,i))}n(o)},tE=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(kC(t)&&!e.required)return n();ZC.required(e,t,r,o,i),void 0!==t&&(ZC.type(e,t,r,o,i),ZC.range(e,t,r,o,i))}n(o)},nE=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if((void 0===t||null===t)&&!e.required)return n();ZC.required(e,t,r,o,i,"array"),void 0!==t&&null!==t&&(ZC.type(e,t,r,o,i),ZC.range(e,t,r,o,i))}n(o)},rE=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(kC(t)&&!e.required)return n();ZC.required(e,t,r,o,i),void 0!==t&&ZC.type(e,t,r,o,i)}n(o)},iE="enum",oE=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(kC(t)&&!e.required)return n();ZC.required(e,t,r,o,i),void 0!==t&&ZC[iE](e,t,r,o,i)}n(o)},aE=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(kC(t,"string")&&!e.required)return n();ZC.required(e,t,r,o,i),kC(t,"string")||ZC.pattern(e,t,r,o,i)}n(o)},sE=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(kC(t,"date")&&!e.required)return n();var s;if(ZC.required(e,t,r,o,i),!kC(t,"date"))s=t instanceof Date?t:new Date(t),ZC.type(e,s,r,o,i),s&&ZC.range(e,s.getTime(),r,o,i)}n(o)},lE=function(e,t,n,r,i){var o=[],a=Array.isArray(t)?"array":typeof t;ZC.required(e,t,r,o,i,a),n(o)},uE=function(e,t,n,r,i){var o=e.type,a=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(kC(t,o)&&!e.required)return n();ZC.required(e,t,r,a,i,o),kC(t,o)||ZC.type(e,t,r,a,i)}n(a)},cE=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(kC(t)&&!e.required)return n();ZC.required(e,t,r,o,i)}n(o)},dE={string:YC,method:KC,number:XC,boolean:JC,regexp:QC,integer:eE,float:tE,array:nE,object:rE,enum:oE,pattern:aE,date:sE,url:uE,hex:uE,email:uE,required:lE,any:cE};function pE(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var hE=pE(),fE=function(){function e(e){this.rules=null,this._messages=hE,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))},t.messages=function(e){return e&&(this._messages=RC(pE(),e)),this._messages},t.validate=function(t,n,r){var i=this;void 0===n&&(n={}),void 0===r&&(r=function(){});var o=t,a=n,s=r;if("function"===typeof a&&(s=a,a={}),!this.rules||0===Object.keys(this.rules).length)return s&&s(null,o),Promise.resolve(o);function l(e){var t=[],n={};function r(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,e):t.push(e)}for(var i=0;i");const i=(0,b.s3)("form"),o=(0,l.iH)(),a=(0,l.iH)(0),u=()=>{var e;if(null==(e=o.value)?void 0:e.firstElementChild){const e=window.getComputedStyle(o.value.firstElementChild).width;return Math.ceil(Number.parseFloat(e))}return 0},d=(r="update")=>{(0,s.Y3)((()=>{t.default&&e.isAutoWidth&&("update"===r?a.value=u():"remove"===r&&(null==n||n.deregisterLabelWidth(a.value)))}))},p=()=>d("update");return(0,s.bv)((()=>{p()})),(0,s.Jd)((()=>{d("remove")})),(0,s.ic)((()=>p())),(0,s.YP)(a,((t,r)=>{e.updateAll&&(null==n||n.registerLabelWidth(t,r))})),(0,c.yU7)((0,s.Fl)((()=>{var e,t;return null!=(t=null==(e=o.value)?void 0:e.firstElementChild)?t:null})),p),()=>{var l,u;if(!t)return null;const{isAutoWidth:c}=e;if(c){const e=null==n?void 0:n.autoLabelWidth,u=null==r?void 0:r.hasLabel,c={};if(u&&e&&"auto"!==e){const t=Math.max(0,Number.parseInt(e,10)-a.value),r="left"===n.labelPosition?"marginRight":"marginLeft";t&&(c[r]=`${t}px`)}return(0,s.Wm)("div",{ref:o,class:[i.be("item","label-wrap")],style:c},[null==(l=t.default)?void 0:l.call(t)])}return(0,s.Wm)(s.HY,{ref:o},[null==(u=t.default)?void 0:u.call(t)])}}}),xE=n(5941);const _E=["role","aria-labelledby"],CE=(0,s.aZ)({name:"ElFormItem"}),EE=(0,s.aZ)({...CE,props:bE,setup(e,{expose:t}){const n=e,r=(0,s.Rr)(),i=(0,s.f3)(Ue,void 0),o=(0,s.f3)(Ie,void 0),a=ze(void 0,{formItem:!1}),c=(0,b.s3)("form-item"),d=Le().value,h=(0,l.iH)([]),f=(0,l.iH)(""),m=(0,x.Dp)(f,100),g=(0,l.iH)(""),v=(0,l.iH)();let y,S=!1;const _=(0,s.Fl)((()=>{if("top"===(null==i?void 0:i.labelPosition))return{};const e=(0,w.Nn)(n.labelWidth||(null==i?void 0:i.labelWidth)||"");return e?{width:e}:{}})),C=(0,s.Fl)((()=>{if("top"===(null==i?void 0:i.labelPosition)||(null==i?void 0:i.inline))return{};if(!n.label&&!n.labelWidth&&D)return{};const e=(0,w.Nn)(n.labelWidth||(null==i?void 0:i.labelWidth)||"");return n.label||r.label?{}:{marginLeft:e}})),E=(0,s.Fl)((()=>[c.b(),c.m(a.value),c.is("error","error"===f.value),c.is("validating","validating"===f.value),c.is("success","success"===f.value),c.is("required",z.value||n.required),c.is("no-asterisk",null==i?void 0:i.hideRequiredAsterisk),"right"===(null==i?void 0:i.requireAsteriskPosition)?"asterisk-right":"asterisk-left",{[c.m("feedback")]:null==i?void 0:i.statusIcon}])),M=(0,s.Fl)((()=>(0,p.jn)(n.inlineMessage)?n.inlineMessage:(null==i?void 0:i.inlineMessage)||!1)),k=(0,s.Fl)((()=>[c.e("error"),{[c.em("error","inline")]:M.value}])),T=(0,s.Fl)((()=>n.prop?(0,u.HD)(n.prop)?n.prop:n.prop.join("."):"")),A=(0,s.Fl)((()=>!(!n.label&&!r.label))),U=(0,s.Fl)((()=>n.for||1===h.value.length?h.value[0]:void 0)),I=(0,s.Fl)((()=>!U.value&&A.value)),D=!!o,O=(0,s.Fl)((()=>{const e=null==i?void 0:i.model;if(e&&n.prop)return(0,R.WJ)(e,n.prop).value})),L=(0,s.Fl)((()=>{const{required:e}=n,t=[];n.rules&&t.push(...zv(n.rules));const r=null==i?void 0:i.rules;if(r&&n.prop){const e=(0,R.WJ)(r,n.prop).value;e&&t.push(...zv(e))}if(void 0!==e){const n=t.map(((e,t)=>[e,t])).filter((([e])=>Object.keys(e).includes("required")));if(n.length>0)for(const[r,i]of n)r.required!==e&&(t[i]={...r,required:e});else t.push({required:e})}return t})),N=(0,s.Fl)((()=>L.value.length>0)),F=e=>{const t=L.value;return t.filter((t=>!t.trigger||!e||(Array.isArray(t.trigger)?t.trigger.includes(e):t.trigger===e))).map((({trigger:e,...t})=>t))},z=(0,s.Fl)((()=>L.value.some((e=>e.required)))),B=(0,s.Fl)((()=>{var e;return"error"===m.value&&n.showMessage&&(null==(e=null==i?void 0:i.showMessage)||e)})),H=(0,s.Fl)((()=>`${n.label||""}${(null==i?void 0:i.labelSuffix)||""}`)),j=e=>{f.value=e},V=e=>{var t,r;const{errors:o,fields:a}=e;o&&a||xE.error(e),j("error"),g.value=o?null!=(r=null==(t=null==o?void 0:o[0])?void 0:t.message)?r:`${n.prop} is required`:"",null==i||i.emit("validate",n.prop,!1,g.value)},W=()=>{j("success"),null==i||i.emit("validate",n.prop,!0,"")},$=async e=>{const t=T.value,n=new fE({[t]:e});return n.validate({[t]:O.value},{firstFields:!0}).then((()=>(W(),!0))).catch((e=>(V(e),Promise.reject(e))))},q=async(e,t)=>{if(S||!n.prop)return!1;const r=(0,u.mf)(t);if(!N.value)return null==t||t(!1),!1;const i=F(e);return 0===i.length?(null==t||t(!0),!0):(j("validating"),$(i).then((()=>(null==t||t(!0),!0))).catch((e=>{const{fields:n}=e;return null==t||t(!1,n),!r&&Promise.reject(n)})))},G=()=>{j(""),g.value="",S=!1},Z=async()=>{const e=null==i?void 0:i.model;if(!e||!n.prop)return;const t=(0,R.WJ)(e,n.prop);S=!0,t.value=vE(y),await(0,s.Y3)(),G(),S=!1},Y=e=>{h.value.includes(e)||h.value.push(e)},K=e=>{h.value=h.value.filter((t=>t!==e))};(0,s.YP)((()=>n.error),(e=>{g.value=e||"",j(e?"error":"")}),{immediate:!0}),(0,s.YP)((()=>n.validateStatus),(e=>j(e||"")));const X=(0,l.qj)({...(0,l.BK)(n),$el:v,size:a,validateState:f,labelId:d,inputIds:h,isGroup:I,hasLabel:A,addInputId:Y,removeInputId:K,resetField:Z,clearValidate:G,validate:q});return(0,s.JJ)(Ie,X),(0,s.bv)((()=>{n.prop&&(null==i||i.addField(X),y=vE(O.value))})),(0,s.Jd)((()=>{null==i||i.removeField(X)})),t({size:a,validateMessage:g,validateState:f,validate:q,clearValidate:G,resetField:Z}),(e,t)=>{var n;return(0,s.wg)(),(0,s.iD)("div",{ref_key:"formItemRef",ref:v,class:(0,u.C_)((0,l.SU)(E)),role:(0,l.SU)(I)?"group":void 0,"aria-labelledby":(0,l.SU)(I)?(0,l.SU)(d):void 0},[(0,s.Wm)((0,l.SU)(SE),{"is-auto-width":"auto"===(0,l.SU)(_).width,"update-all":"auto"===(null==(n=(0,l.SU)(i))?void 0:n.labelWidth)},{default:(0,s.w5)((()=>[(0,l.SU)(A)?((0,s.wg)(),(0,s.j4)((0,s.LL)((0,l.SU)(U)?"label":"div"),{key:0,id:(0,l.SU)(d),for:(0,l.SU)(U),class:(0,u.C_)((0,l.SU)(c).e("label")),style:(0,u.j5)((0,l.SU)(_))},{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"label",{label:(0,l.SU)(H)},(()=>[(0,s.Uk)((0,u.zw)((0,l.SU)(H)),1)]))])),_:3},8,["id","for","class","style"])):(0,s.kq)("v-if",!0)])),_:3},8,["is-auto-width","update-all"]),(0,s._)("div",{class:(0,u.C_)((0,l.SU)(c).e("content")),style:(0,u.j5)((0,l.SU)(C))},[(0,s.WI)(e.$slots,"default"),(0,s.Wm)(P.W3,{name:`${(0,l.SU)(c).namespace.value}-zoom-in-top`},{default:(0,s.w5)((()=>[(0,l.SU)(B)?(0,s.WI)(e.$slots,"error",{key:0,error:g.value},(()=>[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(k))},(0,u.zw)(g.value),3)])):(0,s.kq)("v-if",!0)])),_:3},8,["name"])],6)],10,_E)}}});var ME=(0,y.Z)(EE,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const kE=(0,D.nz)(pC,{FormItem:ME}),TE=(0,D.dp)(ME),AE=(0,d.o8)({urlList:{type:(0,d.Cq)(Array),default:()=>(0,_e.N)([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:{type:Boolean,default:!1},teleported:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),UE={close:()=>!0,switch:e=>(0,p.hj)(e)},IE=["src"],DE=(0,s.aZ)({name:"ElImageViewer"}),OE=(0,s.aZ)({...DE,props:AE,emits:UE,setup(e,{expose:t,emit:n}){const r=e,i={CONTAIN:{name:"contain",icon:(0,l.Xl)(fe.ITT)},ORIGINAL:{name:"original",icon:(0,l.Xl)(fe.rGh)}},{t:o}=(0,xs.bU)(),a=(0,b.s3)("image-viewer"),{nextZIndex:d}=(0,Ui.Cn)(),h=(0,l.iH)(),f=(0,l.iH)([]),m=(0,l.B)(),g=(0,l.iH)(!0),v=(0,l.iH)(r.initialIndex),y=(0,l.XI)(i.CONTAIN),w=(0,l.iH)({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),S=(0,s.Fl)((()=>{const{urlList:e}=r;return e.length<=1})),x=(0,s.Fl)((()=>0===v.value)),_=(0,s.Fl)((()=>v.value===r.urlList.length-1)),C=(0,s.Fl)((()=>r.urlList[v.value])),E=(0,s.Fl)((()=>{const{scale:e,deg:t,offsetX:n,offsetY:r,enableTransition:o}=w.value;let a=n/e,s=r/e;switch(t%360){case 90:case-270:[a,s]=[s,-a];break;case 180:case-180:[a,s]=[-a,-s];break;case 270:case-90:[a,s]=[-s,a];break}const l={transform:`scale(${e}) rotate(${t}deg) translate(${a}px, ${s}px)`,transition:o?"transform .3s":""};return y.value.name===i.CONTAIN.name&&(l.maxWidth=l.maxHeight="100%"),l})),M=(0,s.Fl)((()=>(0,p.hj)(r.zIndex)?r.zIndex:d()));function k(){A(),n("close")}function T(){const e=Xs((e=>{switch(e.code){case Fr.EVENT_CODE.esc:r.closeOnPressEscape&&k();break;case Fr.EVENT_CODE.space:N();break;case Fr.EVENT_CODE.left:z();break;case Fr.EVENT_CODE.up:H("zoomIn");break;case Fr.EVENT_CODE.right:B();break;case Fr.EVENT_CODE.down:H("zoomOut");break}})),t=Xs((e=>{const t=e.deltaY||e.deltaX;H(t<0?"zoomIn":"zoomOut",{zoomRate:r.zoomRate,enableTransition:!1})}));m.run((()=>{(0,c.ORN)(document,"keydown",e),(0,c.ORN)(document,"wheel",t)}))}function A(){m.stop()}function U(){g.value=!1}function I(e){g.value=!1,e.target.alt=o("el.image.error")}function D(e){if(g.value||0!==e.button||!h.value)return;w.value.enableTransition=!1;const{offsetX:t,offsetY:n}=w.value,r=e.pageX,i=e.pageY,o=Xs((e=>{w.value={...w.value,offsetX:t+e.pageX-r,offsetY:n+e.pageY-i}})),a=(0,c.ORN)(document,"mousemove",o);(0,c.ORN)(document,"mouseup",(()=>{a()})),e.preventDefault()}function O(){w.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function N(){if(g.value)return;const e=(0,R.uc)(i),t=Object.values(i),n=y.value.name,r=t.findIndex((e=>e.name===n)),o=(r+1)%e.length;y.value=i[e[o]],O()}function F(e){const t=r.urlList.length;v.value=(e+t)%t}function z(){x.value&&!r.infinite||F(v.value-1)}function B(){_.value&&!r.infinite||F(v.value+1)}function H(e,t={}){if(g.value)return;const{zoomRate:n,rotateDeg:i,enableTransition:o}={zoomRate:r.zoomRate,rotateDeg:90,enableTransition:!0,...t};switch(e){case"zoomOut":w.value.scale>.2&&(w.value.scale=Number.parseFloat((w.value.scale/n).toFixed(3)));break;case"zoomIn":w.value.scale<7&&(w.value.scale=Number.parseFloat((w.value.scale*n).toFixed(3)));break;case"clockwise":w.value.deg+=i;break;case"anticlockwise":w.value.deg-=i;break}w.value.enableTransition=o}return(0,s.YP)(C,(()=>{(0,s.Y3)((()=>{const e=f.value[0];(null==e?void 0:e.complete)||(g.value=!0)}))})),(0,s.YP)(v,(e=>{O(),n("switch",e)})),(0,s.bv)((()=>{var e,t;T(),null==(t=null==(e=h.value)?void 0:e.focus)||t.call(e)})),t({setActiveItem:F}),(e,t)=>((0,s.wg)(),(0,s.j4)(s.lR,{to:"body",disabled:!e.teleported},[(0,s.Wm)(P.uT,{name:"viewer-fade",appear:""},{default:(0,s.w5)((()=>[(0,s._)("div",{ref_key:"wrapper",ref:h,tabindex:-1,class:(0,u.C_)((0,l.SU)(a).e("wrapper")),style:(0,u.j5)({zIndex:(0,l.SU)(M)})},[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(a).e("mask")),onClick:t[0]||(t[0]=(0,P.iM)((t=>e.hideOnClickModal&&k()),["self"]))},null,2),(0,s.kq)(" CLOSE "),(0,s._)("span",{class:(0,u.C_)([(0,l.SU)(a).e("btn"),(0,l.SU)(a).e("close")]),onClick:k},[(0,s.Wm)((0,l.SU)(L.gn),null,{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.x8P))])),_:1})],2),(0,s.kq)(" ARROW "),(0,l.SU)(S)?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)(s.HY,{key:0},[(0,s._)("span",{class:(0,u.C_)([(0,l.SU)(a).e("btn"),(0,l.SU)(a).e("prev"),(0,l.SU)(a).is("disabled",!e.infinite&&(0,l.SU)(x))]),onClick:z},[(0,s.Wm)((0,l.SU)(L.gn),null,{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.XdH))])),_:1})],2),(0,s._)("span",{class:(0,u.C_)([(0,l.SU)(a).e("btn"),(0,l.SU)(a).e("next"),(0,l.SU)(a).is("disabled",!e.infinite&&(0,l.SU)(_))]),onClick:B},[(0,s.Wm)((0,l.SU)(L.gn),null,{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.olP))])),_:1})],2)],64)),(0,s.kq)(" ACTIONS "),(0,s._)("div",{class:(0,u.C_)([(0,l.SU)(a).e("btn"),(0,l.SU)(a).e("actions")])},[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(a).e("actions__inner"))},[(0,s.Wm)((0,l.SU)(L.gn),{onClick:t[1]||(t[1]=e=>H("zoomOut"))},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.H9A))])),_:1}),(0,s.Wm)((0,l.SU)(L.gn),{onClick:t[2]||(t[2]=e=>H("zoomIn"))},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.DYM))])),_:1}),(0,s._)("i",{class:(0,u.C_)((0,l.SU)(a).e("actions__divider"))},null,2),(0,s.Wm)((0,l.SU)(L.gn),{onClick:N},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)((0,l.SU)(y).icon)))])),_:1}),(0,s._)("i",{class:(0,u.C_)((0,l.SU)(a).e("actions__divider"))},null,2),(0,s.Wm)((0,l.SU)(L.gn),{onClick:t[3]||(t[3]=e=>H("anticlockwise"))},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.Ufu))])),_:1}),(0,s.Wm)((0,l.SU)(L.gn),{onClick:t[4]||(t[4]=e=>H("clockwise"))},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.Vyf))])),_:1})],2)],2),(0,s.kq)(" CANVAS "),(0,s._)("div",{class:(0,u.C_)((0,l.SU)(a).e("canvas"))},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.urlList,((e,t)=>(0,s.wy)(((0,s.wg)(),(0,s.iD)("img",{ref_for:!0,ref:e=>f.value[t]=e,key:e,src:e,style:(0,u.j5)((0,l.SU)(E)),class:(0,u.C_)((0,l.SU)(a).e("img")),onLoad:U,onError:I,onMousedown:D},null,46,IE)),[[P.F8,t===v.value]]))),128))],2),(0,s.WI)(e.$slots,"default")],6)])),_:3})],8,["disabled"]))}});var PE=(0,y.Z)(OE,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const LE=(0,D.nz)(PE),RE=(0,d.o8)({hideOnClickModal:{type:Boolean,default:!1},src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:{type:Boolean,default:!1},scrollContainer:{type:(0,d.Cq)([String,Object])},previewSrcList:{type:(0,d.Cq)(Array),default:()=>(0,_e.N)([])},previewTeleported:{type:Boolean,default:!1},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),NE={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>(0,p.hj)(e),close:()=>!0,show:()=>!0},FE=["src","loading"],zE={key:0},BE=(0,s.aZ)({name:"ElImage",inheritAttrs:!1}),HE=(0,s.aZ)({...BE,props:RE,emits:NE,setup(e,{emit:t}){const n=e;let r="";const{t:i}=(0,xs.bU)(),o=(0,b.s3)("image"),a=(0,s.l1)(),d=Ae(),h=(0,l.iH)(),f=(0,l.iH)(!1),m=(0,l.iH)(!0),g=(0,l.iH)(!1),v=(0,l.iH)(),y=(0,l.iH)(),w=x.C5&&"loading"in HTMLImageElement.prototype;let S,_;const E=(0,s.Fl)((()=>a.style)),M=(0,s.Fl)((()=>{const{fit:e}=n;return x.C5&&e?{objectFit:e}:{}})),k=(0,s.Fl)((()=>{const{previewSrcList:e}=n;return Array.isArray(e)&&e.length>0})),T=(0,s.Fl)((()=>{const{previewSrcList:e,initialIndex:t}=n;let r=t;return t>e.length-1&&(r=0),r})),A=(0,s.Fl)((()=>"eager"!==n.loading&&(!w&&"lazy"===n.loading||n.lazy))),U=()=>{x.C5&&(m.value=!0,f.value=!1,h.value=n.src)};function I(e){m.value=!1,f.value=!1,t("load",e)}function D(e){m.value=!1,f.value=!0,t("error",e)}function O(){cy(v.value,y.value)&&(U(),R())}const P=(0,x.vA)(O,200,!0);async function L(){var e;if(!x.C5)return;await(0,s.Y3)();const{scrollContainer:t}=n;(0,p.kK)(t)?y.value=t:(0,u.HD)(t)&&""!==t?y.value=null!=(e=document.querySelector(t))?e:void 0:v.value&&(y.value=C(v.value)),y.value&&(S=(0,c.ORN)(y,"scroll",P),setTimeout((()=>O()),100))}function R(){x.C5&&y.value&&P&&(null==S||S(),y.value=void 0)}function N(e){if(e.ctrlKey)return e.deltaY<0||e.deltaY>0?(e.preventDefault(),!1):void 0}function F(){k.value&&(_=(0,c.ORN)("wheel",N,{passive:!1}),r=document.body.style.overflow,document.body.style.overflow="hidden",g.value=!0,t("show"))}function z(){null==_||_(),document.body.style.overflow=r,g.value=!1,t("close")}function B(e){t("switch",e)}return(0,s.YP)((()=>n.src),(()=>{A.value?(m.value=!0,f.value=!1,R(),L()):U()})),(0,s.bv)((()=>{A.value?L():U()})),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{ref_key:"container",ref:v,class:(0,u.C_)([(0,l.SU)(o).b(),e.$attrs.class]),style:(0,u.j5)((0,l.SU)(E))},[f.value?(0,s.WI)(e.$slots,"error",{key:0},(()=>[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(o).e("error"))},(0,u.zw)((0,l.SU)(i)("el.image.error")),3)])):((0,s.wg)(),(0,s.iD)(s.HY,{key:1},[void 0!==h.value?((0,s.wg)(),(0,s.iD)("img",(0,s.dG)({key:0},(0,l.SU)(d),{src:h.value,loading:e.loading,style:(0,l.SU)(M),class:[(0,l.SU)(o).e("inner"),(0,l.SU)(k)&&(0,l.SU)(o).e("preview"),m.value&&(0,l.SU)(o).is("loading")],onClick:F,onLoad:I,onError:D}),null,16,FE)):(0,s.kq)("v-if",!0),m.value?((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,u.C_)((0,l.SU)(o).e("wrapper"))},[(0,s.WI)(e.$slots,"placeholder",{},(()=>[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(o).e("placeholder"))},null,2)]))],2)):(0,s.kq)("v-if",!0)],64)),(0,l.SU)(k)?((0,s.wg)(),(0,s.iD)(s.HY,{key:2},[g.value?((0,s.wg)(),(0,s.j4)((0,l.SU)(LE),{key:0,"z-index":e.zIndex,"initial-index":(0,l.SU)(T),infinite:e.infinite,"zoom-rate":e.zoomRate,"url-list":e.previewSrcList,"hide-on-click-modal":e.hideOnClickModal,teleported:e.previewTeleported,"close-on-press-escape":e.closeOnPressEscape,onClose:z,onSwitch:B},{default:(0,s.w5)((()=>[e.$slots.viewer?((0,s.wg)(),(0,s.iD)("div",zE,[(0,s.WI)(e.$slots,"viewer")])):(0,s.kq)("v-if",!0)])),_:3},8,["z-index","initial-index","infinite","zoom-rate","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):(0,s.kq)("v-if",!0)],64)):(0,s.kq)("v-if",!0)],6))}});var jE=(0,y.Z)(HE,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const VE=(0,D.nz)(jE),WE=(0,d.o8)({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:xe.Pp,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>null===e||(0,p.hj)(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),$E={[f]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[m]:e=>(0,p.hj)(e)||(0,me.Z)(e),[h]:e=>(0,p.hj)(e)||(0,me.Z)(e)},qE=["aria-label","onKeydown"],GE=["aria-label","onKeydown"],ZE=(0,s.aZ)({name:"ElInputNumber"}),YE=(0,s.aZ)({...ZE,props:WE,emits:$E,setup(e,{expose:t,emit:n}){const r=e,{t:i}=(0,xs.bU)(),o=(0,b.s3)("input-number"),a=(0,l.iH)(),c=(0,l.qj)({currentValue:r.modelValue,userInput:null}),{formItem:d}=Re(),g=(0,s.Fl)((()=>(0,p.hj)(r.modelValue)&&r.modelValue<=r.min)),v=(0,s.Fl)((()=>(0,p.hj)(r.modelValue)&&r.modelValue>=r.max)),y=(0,s.Fl)((()=>{const e=M(r.step);return(0,p.o8)(r.precision)?Math.max(M(r.modelValue),e):(e>r.precision&&(0,S.N)("InputNumber","precision should not be less than the decimal places of step"),r.precision)})),w=(0,s.Fl)((()=>r.controls&&"right"===r.controlsPosition)),x=ze(),_=Be(),C=(0,s.Fl)((()=>{if(null!==c.userInput)return c.userInput;let e=c.currentValue;if((0,me.Z)(e))return"";if((0,p.hj)(e)){if(Number.isNaN(e))return"";(0,p.o8)(r.precision)||(e=e.toFixed(r.precision))}return e})),E=(e,t)=>{if((0,p.o8)(t)&&(t=y.value),0===t)return Math.round(e);let n=String(e);const r=n.indexOf(".");if(-1===r)return e;const i=n.replace(".","").split(""),o=i[r+t];if(!o)return e;const a=n.length;return"5"===n.charAt(a-1)&&(n=`${n.slice(0,Math.max(0,a-1))}6`),Number.parseFloat(Number(n).toFixed(t))},M=e=>{if((0,me.Z)(e))return 0;const t=e.toString(),n=t.indexOf(".");let r=0;return-1!==n&&(r=t.length-n-1),r},k=(e,t=1)=>(0,p.hj)(e)?E(e+r.step*t):c.currentValue,T=()=>{if(r.readonly||_.value||v.value)return;const e=Number(C.value)||0,t=k(e);I(t),n(m,c.currentValue)},A=()=>{if(r.readonly||_.value||g.value)return;const e=Number(C.value)||0,t=k(e,-1);I(t),n(m,c.currentValue)},U=(e,t)=>{const{max:i,min:o,step:a,precision:s,stepStrictly:l,valueOnClear:c}=r;ii||di?i:o,t&&n(h,d)),d},I=(e,t=!0)=>{var i;const o=c.currentValue,a=U(e);t?o!==a&&(c.userInput=null,n(h,a),n(f,a,o),r.validateEvent&&(null==(i=null==d?void 0:d.validate)||i.call(d,"change").catch((e=>(0,S.N)(e)))),c.currentValue=a):n(h,a)},D=e=>{c.userInput=e;const t=""===e?null:Number(e);n(m,t),I(t,!1)},O=e=>{const t=""!==e?Number(e):"";((0,p.hj)(t)&&!Number.isNaN(t)||""===e)&&I(t),c.userInput=null},R=()=>{var e,t;null==(t=null==(e=a.value)?void 0:e.focus)||t.call(e)},N=()=>{var e,t;null==(t=null==(e=a.value)?void 0:e.blur)||t.call(e)},F=e=>{n("focus",e)},z=e=>{var t;n("blur",e),r.validateEvent&&(null==(t=null==d?void 0:d.validate)||t.call(d,"blur").catch((e=>(0,S.N)(e))))};return(0,s.YP)((()=>r.modelValue),(e=>{const t=U(c.userInput),n=U(e,!0);(0,p.hj)(t)||t&&t===n||(c.currentValue=n,c.userInput=null)}),{immediate:!0}),(0,s.bv)((()=>{var e;const{min:t,max:i,modelValue:o}=r,s=null==(e=a.value)?void 0:e.input;if(s.setAttribute("role","spinbutton"),Number.isFinite(i)?s.setAttribute("aria-valuemax",String(i)):s.removeAttribute("aria-valuemax"),Number.isFinite(t)?s.setAttribute("aria-valuemin",String(t)):s.removeAttribute("aria-valuemin"),s.setAttribute("aria-valuenow",String(c.currentValue)),s.setAttribute("aria-disabled",String(_.value)),!(0,p.hj)(o)&&null!=o){let e=Number(o);Number.isNaN(e)&&(e=null),n(h,e)}})),(0,s.ic)((()=>{var e;const t=null==(e=a.value)?void 0:e.input;null==t||t.setAttribute("aria-valuenow",`${c.currentValue}`)})),t({focus:R,blur:N}),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)([(0,l.SU)(o).b(),(0,l.SU)(o).m((0,l.SU)(x)),(0,l.SU)(o).is("disabled",(0,l.SU)(_)),(0,l.SU)(o).is("without-controls",!e.controls),(0,l.SU)(o).is("controls-right",(0,l.SU)(w))]),onDragstart:t[1]||(t[1]=(0,P.iM)((()=>{}),["prevent"]))},[e.controls?(0,s.wy)(((0,s.wg)(),(0,s.iD)("span",{key:0,role:"button","aria-label":(0,l.SU)(i)("el.inputNumber.decrease"),class:(0,u.C_)([(0,l.SU)(o).e("decrease"),(0,l.SU)(o).is("disabled",(0,l.SU)(g))]),onKeydown:(0,P.D2)(A,["enter"])},[(0,s.Wm)((0,l.SU)(L.gn),null,{default:(0,s.w5)((()=>[(0,l.SU)(w)?((0,s.wg)(),(0,s.j4)((0,l.SU)(fe.K5e),{key:0})):((0,s.wg)(),(0,s.j4)((0,l.SU)(fe.WF_),{key:1}))])),_:1})],42,qE)),[[(0,l.SU)(Mw),A]]):(0,s.kq)("v-if",!0),e.controls?(0,s.wy)(((0,s.wg)(),(0,s.iD)("span",{key:1,role:"button","aria-label":(0,l.SU)(i)("el.inputNumber.increase"),class:(0,u.C_)([(0,l.SU)(o).e("increase"),(0,l.SU)(o).is("disabled",(0,l.SU)(v))]),onKeydown:(0,P.D2)(T,["enter"])},[(0,s.Wm)((0,l.SU)(L.gn),null,{default:(0,s.w5)((()=>[(0,l.SU)(w)?((0,s.wg)(),(0,s.j4)((0,l.SU)(fe.a2Z),{key:0})):((0,s.wg)(),(0,s.j4)((0,l.SU)(fe.v37),{key:1}))])),_:1})],42,GE)),[[(0,l.SU)(Mw),T]]):(0,s.kq)("v-if",!0),(0,s.Wm)((0,l.SU)(Ye),{id:e.id,ref_key:"input",ref:a,type:"number",step:e.step,"model-value":(0,l.SU)(C),placeholder:e.placeholder,readonly:e.readonly,disabled:(0,l.SU)(_),size:(0,l.SU)(x),max:e.max,min:e.min,name:e.name,label:e.label,"validate-event":!1,onWheel:t[0]||(t[0]=(0,P.iM)((()=>{}),["prevent"])),onKeydown:[(0,P.D2)((0,P.iM)(T,["prevent"]),["up"]),(0,P.D2)((0,P.iM)(A,["prevent"]),["down"])],onBlur:z,onFocus:F,onInput:D,onChange:O},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var KE=(0,y.Z)(YE,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const XE=(0,D.nz)(KE),JE=(0,d.o8)({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:N.AA}}),QE={click:e=>e instanceof MouseEvent},eM=["href"],tM=(0,s.aZ)({name:"ElLink"}),nM=(0,s.aZ)({...tM,props:JE,emits:QE,setup(e,{emit:t}){const n=e,r=(0,b.s3)("link"),i=(0,s.Fl)((()=>[r.b(),r.m(n.type),r.is("disabled",n.disabled),r.is("underline",n.underline&&!n.disabled)]));function o(e){n.disabled||t("click",e)}return(e,t)=>((0,s.wg)(),(0,s.iD)("a",{class:(0,u.C_)((0,l.SU)(i)),href:e.disabled||!e.href?void 0:e.href,onClick:o},[e.icon?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:0},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.icon)))])),_:1})):(0,s.kq)("v-if",!0),e.$slots.default?((0,s.wg)(),(0,s.iD)("span",{key:1,class:(0,u.C_)((0,l.SU)(r).e("inner"))},[(0,s.WI)(e.$slots,"default")],2)):(0,s.kq)("v-if",!0),e.$slots.icon?(0,s.WI)(e.$slots,"icon",{key:2}):(0,s.kq)("v-if",!0)],10,eM))}});var rM=(0,y.Z)(nM,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const iM=(0,D.nz)(rM);class oM{constructor(e,t){this.parent=e,this.domNode=t,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e}addListeners(){const e=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,(t=>{t.addEventListener("keydown",(t=>{let n=!1;switch(t.code){case Fr.EVENT_CODE.down:this.gotoSubIndex(this.subIndex+1),n=!0;break;case Fr.EVENT_CODE.up:this.gotoSubIndex(this.subIndex-1),n=!0;break;case Fr.EVENT_CODE.tab:Hg(e,"mouseleave");break;case Fr.EVENT_CODE.enter:case Fr.EVENT_CODE.space:n=!0,t.currentTarget.click();break}return n&&(t.preventDefault(),t.stopPropagation()),!1}))}))}}class aM{constructor(e,t){this.domNode=e,this.submenu=null,this.submenu=null,this.init(t)}init(e){this.domNode.setAttribute("tabindex","0");const t=this.domNode.querySelector(`.${e}-menu`);t&&(this.submenu=new oM(this,t)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",(e=>{let t=!1;switch(e.code){case Fr.EVENT_CODE.down:Hg(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),t=!0;break;case Fr.EVENT_CODE.up:Hg(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),t=!0;break;case Fr.EVENT_CODE.tab:Hg(e.currentTarget,"mouseleave");break;case Fr.EVENT_CODE.enter:case Fr.EVENT_CODE.space:t=!0,e.currentTarget.click();break}t&&e.preventDefault()}))}}class sM{constructor(e,t){this.domNode=e,this.init(t)}init(e){const t=this.domNode.childNodes;Array.from(t).forEach((t=>{1===t.nodeType&&new aM(t,e)}))}}const lM=(0,s.aZ)({name:"ElMenuCollapseTransition",setup(){const e=(0,b.s3)("menu"),t={onBeforeEnter:e=>e.style.opacity="0.2",onEnter(t,n){(0,w.cn)(t,`${e.namespace.value}-opacity-transition`),t.style.opacity="1",n()},onAfterEnter(t){(0,w.IV)(t,`${e.namespace.value}-opacity-transition`),t.style.opacity=""},onBeforeLeave(t){t.dataset||(t.dataset={}),(0,w.pv)(t,e.m("collapse"))?((0,w.IV)(t,e.m("collapse")),t.dataset.oldOverflow=t.style.overflow,t.dataset.scrollWidth=t.clientWidth.toString(),(0,w.cn)(t,e.m("collapse"))):((0,w.cn)(t,e.m("collapse")),t.dataset.oldOverflow=t.style.overflow,t.dataset.scrollWidth=t.clientWidth.toString(),(0,w.IV)(t,e.m("collapse"))),t.style.width=`${t.scrollWidth}px`,t.style.overflow="hidden"},onLeave(e){(0,w.cn)(e,"horizontal-collapse-transition"),e.style.width=`${e.dataset.scrollWidth}px`}};return{listeners:t}}});function uM(e,t,n,r,i,o){return(0,s.wg)(),(0,s.j4)(P.uT,(0,s.dG)({mode:"out-in"},e.listeners),{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default")])),_:3},16)}var cM=(0,y.Z)(lM,[["render",uM],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function dM(e,t){const n=(0,s.Fl)((()=>{let n=e.parent;const r=[t.value];while("ElMenu"!==n.type.name)n.props.index&&r.unshift(n.props.index),n=n.parent;return r})),r=(0,s.Fl)((()=>{let t=e.parent;while(t&&!["ElMenu","ElSubMenu"].includes(t.type.name))t=t.parent;return t}));return{parentMenu:r,indexPath:n}}function pM(e){const t=(0,s.Fl)((()=>{const t=e.backgroundColor;return t?new Za(t).shade(20).toString():""}));return t}const hM=(e,t)=>{const n=(0,b.s3)("menu");return(0,s.Fl)((()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":pM(e).value||"","active-color":e.activeTextColor||"",level:`${t}`})))},fM=(0,d.o8)({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},teleported:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:N.AA},expandOpenIcon:{type:N.AA},collapseCloseIcon:{type:N.AA},collapseOpenIcon:{type:N.AA}}),mM="ElSubMenu";var gM=(0,s.aZ)({name:mM,props:fM,setup(e,{slots:t,expose:n}){ha({from:"popper-append-to-body",replacement:"teleported",scope:mM,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},(0,s.Fl)((()=>void 0!==e.popperAppendToBody)));const r=(0,s.FN)(),{indexPath:i,parentMenu:o}=dM(r,(0,s.Fl)((()=>e.index))),a=(0,b.s3)("menu"),c=(0,b.s3)("sub-menu"),d=(0,s.f3)("rootMenu");d||(0,S._)(mM,"can not inject root menu");const p=(0,s.f3)(`subMenu:${o.value.uid}`);p||(0,S._)(mM,"can not inject sub menu");const h=(0,l.iH)({}),f=(0,l.iH)({});let m;const g=(0,l.iH)(!1),v=(0,l.iH)(),y=(0,l.iH)(null),w=(0,s.Fl)((()=>"horizontal"===O.value&&C.value?"bottom-start":"right-start")),_=(0,s.Fl)((()=>"horizontal"===O.value&&C.value||"vertical"===O.value&&!d.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?T.value?e.expandOpenIcon:e.expandCloseIcon:fe.K5e:e.collapseCloseIcon&&e.collapseOpenIcon?T.value?e.collapseOpenIcon:e.collapseCloseIcon:fe.olP)),C=(0,s.Fl)((()=>0===p.level)),E=(0,s.Fl)((()=>{var t;const n=null!=(t=e.teleported)?t:e.popperAppendToBody;return void 0===n?C.value:n})),M=(0,s.Fl)((()=>d.props.collapse?`${a.namespace.value}-zoom-in-left`:`${a.namespace.value}-zoom-in-top`)),k=(0,s.Fl)((()=>"horizontal"===O.value&&C.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","left-start","bottom-start","bottom-end","top-start","top-end"])),T=(0,s.Fl)((()=>d.openedMenus.includes(e.index))),A=(0,s.Fl)((()=>{let e=!1;return Object.values(h.value).forEach((t=>{t.active&&(e=!0)})),Object.values(f.value).forEach((t=>{t.active&&(e=!0)})),e})),U=(0,s.Fl)((()=>d.props.backgroundColor||"")),I=(0,s.Fl)((()=>d.props.activeTextColor||"")),D=(0,s.Fl)((()=>d.props.textColor||"")),O=(0,s.Fl)((()=>d.props.mode)),R=(0,l.qj)({index:e.index,indexPath:i,active:A}),N=hM(d.props,p.level+1),F=(0,s.Fl)((()=>"horizontal"!==O.value?{color:D.value}:{borderBottomColor:A.value?d.props.activeTextColor?I.value:"":"transparent",color:A.value?I.value:D.value})),z=()=>{var e,t,n;return null==(n=null==(t=null==(e=y.value)?void 0:e.popperRef)?void 0:t.popperInstanceRef)?void 0:n.destroy()},B=e=>{e||z()},H=()=>{"hover"===d.props.menuTrigger&&"horizontal"===d.props.mode||d.props.collapse&&"vertical"===d.props.mode||e.disabled||d.handleSubMenuClick({index:e.index,indexPath:i.value,active:A.value})},j=(t,n=e.showTimeout)=>{var r;"focus"!==t.type&&("click"===d.props.menuTrigger&&"horizontal"===d.props.mode||!d.props.collapse&&"vertical"===d.props.mode||e.disabled||(p.mouseInChild.value=!0,null==m||m(),({stop:m}=(0,x.eM)((()=>{d.openMenu(e.index,i.value)}),n)),E.value&&(null==(r=o.value.vnode.el)||r.dispatchEvent(new MouseEvent("mouseenter")))))},V=(t=!1)=>{var n,o;"click"===d.props.menuTrigger&&"horizontal"===d.props.mode||!d.props.collapse&&"vertical"===d.props.mode||(null==m||m(),p.mouseInChild.value=!1,({stop:m}=(0,x.eM)((()=>!g.value&&d.closeMenu(e.index,i.value)),e.hideTimeout)),E.value&&t&&"ElSubMenu"===(null==(n=r.parent)?void 0:n.type.name)&&(null==(o=p.handleMouseleave)||o.call(p,!0)))};(0,s.YP)((()=>d.props.collapse),(e=>B(Boolean(e))));{const e=e=>{f.value[e.index]=e},t=e=>{delete f.value[e.index]};(0,s.JJ)(`subMenu:${r.uid}`,{addSubMenu:e,removeSubMenu:t,handleMouseleave:V,mouseInChild:g,level:p.level+1})}return n({opened:T}),(0,s.bv)((()=>{d.addSubMenu(R),p.addSubMenu(R)})),(0,s.Jd)((()=>{p.removeSubMenu(R),d.removeSubMenu(R)})),()=>{var n;const i=[null==(n=t.title)?void 0:n.call(t),(0,s.h)(L.gn,{class:c.e("icon-arrow"),style:{transform:T.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&d.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>(0,u.HD)(_.value)?(0,s.h)(r.appContext.components[_.value]):(0,s.h)(_.value)})],o=d.isMenuPopup?(0,s.h)(Mo,{ref:y,visible:T.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:w.value,teleported:E.value,fallbackPlacements:k.value,transition:M.value,gpuAcceleration:!1},{content:()=>{var n;return(0,s.h)("div",{class:[a.m(O.value),a.m("popup-container"),e.popperClass],onMouseenter:e=>j(e,100),onMouseleave:()=>V(!0),onFocus:e=>j(e,100)},[(0,s.h)("ul",{class:[a.b(),a.m("popup"),a.m(`popup-${w.value}`)],style:N.value},[null==(n=t.default)?void 0:n.call(t)])])},default:()=>(0,s.h)("div",{class:c.e("title"),style:[F.value,{backgroundColor:U.value}],onClick:H},i)}):(0,s.h)(s.HY,{},[(0,s.h)("div",{class:c.e("title"),style:[F.value,{backgroundColor:U.value}],ref:v,onClick:H},i),(0,s.h)(Zv,{},{default:()=>{var e;return(0,s.wy)((0,s.h)("ul",{role:"menu",class:[a.b(),a.m("inline")],style:N.value},[null==(e=t.default)?void 0:e.call(t)]),[[P.F8,T.value]])}})]);return(0,s.h)("li",{class:[c.b(),c.is("active",A.value),c.is("opened",T.value),c.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:T.value,onMouseenter:j,onMouseleave:()=>V(!0),onFocus:j},[o])}}});const vM=(0,d.o8)({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:(0,d.Cq)(Array),default:()=>(0,_e.N)([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperEffect:{type:String,values:["dark","light"],default:"dark"}}),yM=e=>Array.isArray(e)&&e.every((e=>(0,u.HD)(e))),bM={close:(e,t)=>(0,u.HD)(e)&&yM(t),open:(e,t)=>(0,u.HD)(e)&&yM(t),select:(e,t,n,r)=>(0,u.HD)(e)&&yM(t)&&(0,u.Kn)(n)&&(void 0===r||r instanceof Promise)};var wM=(0,s.aZ)({name:"ElMenu",props:vM,emits:bM,setup(e,{emit:t,slots:n,expose:r}){const i=(0,s.FN)(),o=i.appContext.config.globalProperties.$router,a=(0,l.iH)(),u=(0,b.s3)("menu"),d=(0,b.s3)("sub-menu"),p=(0,l.iH)(-1),h=(0,l.iH)(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),f=(0,l.iH)(e.defaultActive),m=(0,l.iH)({}),g=(0,l.iH)({}),v=(0,s.Fl)((()=>"horizontal"===e.mode||"vertical"===e.mode&&e.collapse)),y=()=>{const t=f.value&&m.value[f.value];if(!t||"horizontal"===e.mode||e.collapse)return;const n=t.indexPath;n.forEach((e=>{const t=g.value[e];t&&w(e,t.indexPath)}))},w=(n,r)=>{h.value.includes(n)||(e.uniqueOpened&&(h.value=h.value.filter((e=>r.includes(e)))),h.value.push(n),t("open",n,r))},S=e=>{const t=h.value.indexOf(e);-1!==t&&h.value.splice(t,1)},x=(e,n)=>{S(e),t("close",e,n)},_=({index:e,indexPath:t})=>{const n=h.value.includes(e);n?x(e,t):w(e,t)},C=n=>{("horizontal"===e.mode||e.collapse)&&(h.value=[]);const{index:r,indexPath:i}=n;if(!(0,me.Z)(r)&&!(0,me.Z)(i))if(e.router&&o){const e=n.route||r,a=o.push(e).then((e=>(e||(f.value=r),e)));t("select",r,i,{index:r,indexPath:i,route:e},a)}else f.value=r,t("select",r,i,{index:r,indexPath:i})},E=t=>{const n=m.value,r=n[t]||f.value&&n[f.value]||n[e.defaultActive];f.value=r?r.index:t},M=()=>{var e,t;if(!a.value)return-1;const n=Array.from(null!=(t=null==(e=a.value)?void 0:e.childNodes)?t:[]).filter((e=>"#comment"!==e.nodeName&&("#text"!==e.nodeName||e.nodeValue))),r=64,i=Number.parseInt(getComputedStyle(a.value).paddingLeft,10),o=Number.parseInt(getComputedStyle(a.value).paddingRight,10),s=a.value.clientWidth-i-o;let l=0,u=0;return n.forEach(((e,t)=>{l+=e.offsetWidth||0,l<=s-r&&(u=t+1)})),u===n.length?-1:u},k=(e,t=33.34)=>{let n;return()=>{n&&clearTimeout(n),n=setTimeout((()=>{e()}),t)}};let T=!0;const A=()=>{const e=()=>{p.value=-1,(0,s.Y3)((()=>{p.value=M()}))};T?e():k(e)(),T=!1};let U;(0,s.YP)((()=>e.defaultActive),(e=>{m.value[e]||(f.value=""),E(e)})),(0,s.YP)((()=>e.collapse),(e=>{e&&(h.value=[])})),(0,s.YP)(m.value,y),(0,s.m0)((()=>{"horizontal"===e.mode&&e.ellipsis?U=(0,c.yU7)(a,A).stop:null==U||U()}));{const t=e=>{g.value[e.index]=e},n=e=>{delete g.value[e.index]},r=e=>{m.value[e.index]=e},o=e=>{delete m.value[e.index]};(0,s.JJ)("rootMenu",(0,l.qj)({props:e,openedMenus:h,items:m,subMenus:g,activeIndex:f,isMenuPopup:v,addMenuItem:r,removeMenuItem:o,addSubMenu:t,removeSubMenu:n,openMenu:w,closeMenu:x,handleMenuItemClick:C,handleSubMenuClick:_})),(0,s.JJ)(`subMenu:${i.uid}`,{addSubMenu:t,removeSubMenu:n,mouseInChild:(0,l.iH)(!1),level:0})}(0,s.bv)((()=>{"horizontal"===e.mode&&new sM(i.vnode.el,u.namespace.value)}));{const e=e=>{const{indexPath:t}=g.value[e];t.forEach((e=>w(e,t)))};r({open:e,close:S,handleResize:A})}return()=>{var t,r;let i=null!=(r=null==(t=n.default)?void 0:t.call(n))?r:[];const o=[];if("horizontal"===e.mode&&a.value){const t=al(i),n=-1===p.value?t:t.slice(0,p.value),r=-1===p.value?[]:t.slice(p.value);(null==r?void 0:r.length)&&e.ellipsis&&(i=n,o.push((0,s.h)(gM,{index:"sub-menu-more",class:d.e("hide-arrow")},{title:()=>(0,s.h)(L.gn,{class:d.e("icon-more")},{default:()=>(0,s.h)(fe.Tkc)}),default:()=>r})))}const l=hM(e,0),c=(0,s.h)("ul",{key:String(e.collapse),role:"menubar",ref:a,style:l.value,class:{[u.b()]:!0,[u.m(e.mode)]:!0,[u.m("collapse")]:e.collapse}},[...i,...o]);return e.collapseTransition&&"vertical"===e.mode?(0,s.h)(cM,(()=>c)):c}}});const SM=(0,d.o8)({index:{type:(0,d.Cq)([String,null]),default:null},route:{type:(0,d.Cq)([String,Object])},disabled:Boolean}),xM={click:e=>(0,u.HD)(e.index)&&Array.isArray(e.indexPath)},_M="ElMenuItem",CM=(0,s.aZ)({name:_M,components:{ElTooltip:Mo},props:SM,emits:xM,setup(e,{emit:t}){const n=(0,s.FN)(),r=(0,s.f3)("rootMenu"),i=(0,b.s3)("menu"),o=(0,b.s3)("menu-item");r||(0,S._)(_M,"can not inject root menu");const{parentMenu:a,indexPath:u}=dM(n,(0,l.Vh)(e,"index")),c=(0,s.f3)(`subMenu:${a.value.uid}`);c||(0,S._)(_M,"can not inject sub menu");const d=(0,s.Fl)((()=>e.index===r.activeIndex)),p=(0,l.qj)({index:e.index,indexPath:u,active:d}),h=()=>{e.disabled||(r.handleMenuItemClick({index:e.index,indexPath:u.value,route:e.route}),t("click",p))};return(0,s.bv)((()=>{c.addSubMenu(p),r.addMenuItem(p)})),(0,s.Jd)((()=>{c.removeSubMenu(p),r.removeMenuItem(p)})),{parentMenu:a,rootMenu:r,active:d,nsMenu:i,nsMenuItem:o,handleClick:h}}});function EM(e,t,n,r,i,o){const a=(0,s.up)("el-tooltip");return(0,s.wg)(),(0,s.iD)("li",{class:(0,u.C_)([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...t)=>e.handleClick&&e.handleClick(...t))},["ElMenu"===e.parentMenu.type.name&&e.rootMenu.props.collapse&&e.$slots.title?((0,s.wg)(),(0,s.j4)(a,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"title")])),default:(0,s.w5)((()=>[(0,s._)("div",{class:(0,u.C_)(e.nsMenu.be("tooltip","trigger"))},[(0,s.WI)(e.$slots,"default")],2)])),_:3},8,["effect"])):((0,s.wg)(),(0,s.iD)(s.HY,{key:1},[(0,s.WI)(e.$slots,"default"),(0,s.WI)(e.$slots,"title")],64))],2)}var MM=(0,y.Z)(CM,[["render",EM],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const kM={title:String},TM="ElMenuItemGroup",AM=(0,s.aZ)({name:TM,props:kM,setup(){const e=(0,b.s3)("menu-item-group");return{ns:e}}});function UM(e,t,n,r,i,o){return(0,s.wg)(),(0,s.iD)("li",{class:(0,u.C_)(e.ns.b())},[(0,s._)("div",{class:(0,u.C_)(e.ns.e("title"))},[e.$slots.title?(0,s.WI)(e.$slots,"title",{key:1}):((0,s.wg)(),(0,s.iD)(s.HY,{key:0},[(0,s.Uk)((0,u.zw)(e.title),1)],64))],2),(0,s._)("ul",null,[(0,s.WI)(e.$slots,"default")])],2)}var IM=(0,y.Z)(AM,[["render",UM],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const DM=(0,D.nz)(wM,{MenuItem:MM,MenuItemGroup:IM,SubMenu:gM}),OM=(0,D.dp)(MM),PM=(0,D.dp)(IM),LM=(0,D.dp)(gM),RM=(0,d.o8)({icon:{type:N.AA,default:()=>fe.eJh},title:String,content:{type:String,default:""}}),NM={back:()=>!0},FM=["aria-label"],zM=(0,s.aZ)({name:"ElPageHeader"}),BM=(0,s.aZ)({...zM,props:RM,emits:NM,setup(e,{emit:t}){const n=(0,s.Rr)(),{t:r}=(0,xs.bU)(),i=(0,b.s3)("page-header"),o=(0,s.Fl)((()=>[i.b(),{[i.m("has-breadcrumb")]:!!n.breadcrumb,[i.m("has-extra")]:!!n.extra,[i.is("contentful")]:!!n.default}]));function a(){t("back")}return(e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)((0,l.SU)(o))},[e.$slots.breadcrumb?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)((0,l.SU)(i).e("breadcrumb"))},[(0,s.WI)(e.$slots,"breadcrumb")],2)):(0,s.kq)("v-if",!0),(0,s._)("div",{class:(0,u.C_)((0,l.SU)(i).e("header"))},[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(i).e("left"))},[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(i).e("back")),role:"button",tabindex:"0",onClick:a},[e.icon||e.$slots.icon?((0,s.wg)(),(0,s.iD)("div",{key:0,"aria-label":e.title||(0,l.SU)(r)("el.pageHeader.title"),class:(0,u.C_)((0,l.SU)(i).e("icon"))},[(0,s.WI)(e.$slots,"icon",{},(()=>[e.icon?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:0},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.icon)))])),_:1})):(0,s.kq)("v-if",!0)]))],10,FM)):(0,s.kq)("v-if",!0),(0,s._)("div",{class:(0,u.C_)((0,l.SU)(i).e("title"))},[(0,s.WI)(e.$slots,"title",{},(()=>[(0,s.Uk)((0,u.zw)(e.title||(0,l.SU)(r)("el.pageHeader.title")),1)]))],2)],2),(0,s.Wm)((0,l.SU)(ox),{direction:"vertical"}),(0,s._)("div",{class:(0,u.C_)((0,l.SU)(i).e("content"))},[(0,s.WI)(e.$slots,"content",{},(()=>[(0,s.Uk)((0,u.zw)(e.content),1)]))],2)],2),e.$slots.extra?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)((0,l.SU)(i).e("extra"))},[(0,s.WI)(e.$slots,"extra")],2)):(0,s.kq)("v-if",!0)],2),e.$slots.default?((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,u.C_)((0,l.SU)(i).e("main"))},[(0,s.WI)(e.$slots,"default")],2)):(0,s.kq)("v-if",!0)],2))}});var HM=(0,y.Z)(BM,[["__file","/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]]);const jM=(0,D.nz)(HM),VM=Symbol("elPaginationKey"),WM=(0,d.o8)({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:N.AA}}),$M={click:e=>e instanceof MouseEvent},qM=["disabled","aria-label","aria-disabled"],GM={key:0},ZM=(0,s.aZ)({name:"ElPaginationPrev"}),YM=(0,s.aZ)({...ZM,props:WM,emits:$M,setup(e){const t=e,{t:n}=(0,xs.bU)(),r=(0,s.Fl)((()=>t.disabled||t.currentPage<=1));return(e,t)=>((0,s.wg)(),(0,s.iD)("button",{type:"button",class:"btn-prev",disabled:(0,l.SU)(r),"aria-label":e.prevText||(0,l.SU)(n)("el.pagination.prev"),"aria-disabled":(0,l.SU)(r),onClick:t[0]||(t[0]=t=>e.$emit("click",t))},[e.prevText?((0,s.wg)(),(0,s.iD)("span",GM,(0,u.zw)(e.prevText),1)):((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:1},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.prevIcon)))])),_:1}))],8,qM))}});var KM=(0,y.Z)(YM,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const XM=(0,d.o8)({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:N.AA}}),JM=["disabled","aria-label","aria-disabled"],QM={key:0},ek=(0,s.aZ)({name:"ElPaginationNext"}),tk=(0,s.aZ)({...ek,props:XM,emits:["click"],setup(e){const t=e,{t:n}=(0,xs.bU)(),r=(0,s.Fl)((()=>t.disabled||t.currentPage===t.pageCount||0===t.pageCount));return(e,t)=>((0,s.wg)(),(0,s.iD)("button",{type:"button",class:"btn-next",disabled:(0,l.SU)(r),"aria-label":e.nextText||(0,l.SU)(n)("el.pagination.next"),"aria-disabled":(0,l.SU)(r),onClick:t[0]||(t[0]=t=>e.$emit("click",t))},[e.nextText?((0,s.wg)(),(0,s.iD)("span",QM,(0,u.zw)(e.nextText),1)):((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:1},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.nextIcon)))])),_:1}))],8,JM))}});var nk=(0,y.Z)(tk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]),rk=n(2262);const ik=Symbol("ElSelectGroup"),ok=Symbol("ElSelect");function ak(e,t){const n=(0,s.f3)(ok),r=(0,s.f3)(ik,{disabled:!1}),i=(0,s.Fl)((()=>"[object object]"===Object.prototype.toString.call(e.value).toLowerCase())),o=(0,s.Fl)((()=>n.props.multiple?h(n.props.modelValue,e.value):f(e.value,n.props.modelValue))),a=(0,s.Fl)((()=>{if(n.props.multiple){const e=n.props.modelValue||[];return!o.value&&e.length>=n.props.multipleLimit&&n.props.multipleLimit>0}return!1})),u=(0,s.Fl)((()=>e.label||(i.value?"":e.value))),c=(0,s.Fl)((()=>e.value||e.label||"")),d=(0,s.Fl)((()=>e.disabled||t.groupDisabled||a.value)),p=(0,s.FN)(),h=(e=[],t)=>{if(i.value){const r=n.props.valueKey;return e&&e.some((e=>(0,l.IU)((0,rk.Z)(e,r))===(0,rk.Z)(t,r)))}return e&&e.includes(t)},f=(e,t)=>{if(i.value){const{valueKey:r}=n.props;return(0,rk.Z)(e,r)===(0,rk.Z)(t,r)}return e===t},m=()=>{e.disabled||r.disabled||(n.hoverIndex=n.optionsArray.indexOf(p.proxy))};(0,s.YP)((()=>u.value),(()=>{e.created||n.props.remote||n.setSelected()})),(0,s.YP)((()=>e.value),((t,r)=>{const{remote:i,valueKey:o}=n.props;if(Object.is(t,r)||(n.onOptionDestroy(r,p.proxy),n.onOptionCreate(p.proxy)),!e.created&&!i){if(o&&"object"===typeof t&&"object"===typeof r&&t[o]===r[o])return;n.setSelected()}})),(0,s.YP)((()=>r.disabled),(()=>{t.groupDisabled=r.disabled}),{immediate:!0});const{queryChange:g}=(0,l.IU)(n);return(0,s.YP)(g,(r=>{const{query:i}=(0,l.SU)(r),o=new RegExp(kg(i),"i");t.visible=o.test(u.value)||e.created,t.visible||n.filteredOptionsCount--}),{immediate:!0}),{select:n,currentLabel:u,currentValue:c,itemSelected:o,isDisabled:d,hoverItem:m}}const sk=(0,s.aZ)({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup(e){const t=(0,b.s3)("select"),n=(0,l.qj)({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:r,itemSelected:i,isDisabled:o,select:a,hoverItem:u}=ak(e,n),{visible:c,hover:d}=(0,l.BK)(n),p=(0,s.FN)().proxy;function h(){!0!==e.disabled&&!0!==n.groupDisabled&&a.handleOptionSelect(p)}return a.onOptionCreate(p),(0,s.Jd)((()=>{const e=p.value,{selected:t}=a,n=a.props.multiple?t:[t],r=n.some((e=>e.value===p.value));(0,s.Y3)((()=>{a.cachedOptions.get(e)!==p||r||a.cachedOptions.delete(e)})),a.onOptionDestroy(e,p)})),{ns:t,currentLabel:r,itemSelected:i,isDisabled:o,select:a,hoverItem:u,visible:c,hover:d,selectOptionClick:h,states:n}}});function lk(e,t,n,r,i,o){return(0,s.wy)(((0,s.wg)(),(0,s.iD)("li",{class:(0,u.C_)([e.ns.be("dropdown","item"),e.ns.is("disabled",e.isDisabled),{selected:e.itemSelected,hover:e.hover}]),onMouseenter:t[0]||(t[0]=(...t)=>e.hoverItem&&e.hoverItem(...t)),onClick:t[1]||(t[1]=(0,P.iM)(((...t)=>e.selectOptionClick&&e.selectOptionClick(...t)),["stop"]))},[(0,s.WI)(e.$slots,"default",{},(()=>[(0,s._)("span",null,(0,u.zw)(e.currentLabel),1)]))],34)),[[P.F8,e.visible]])}var uk=(0,y.Z)(sk,[["render",lk],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const ck=(0,s.aZ)({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=(0,s.f3)(ok),t=(0,b.s3)("select"),n=(0,s.Fl)((()=>e.props.popperClass)),r=(0,s.Fl)((()=>e.props.multiple)),i=(0,s.Fl)((()=>e.props.fitInputWidth)),o=(0,l.iH)("");function a(){var t;o.value=`${null==(t=e.selectWrapper)?void 0:t.offsetWidth}px`}return(0,s.bv)((()=>{a(),(0,c.yU7)(e.selectWrapper,a)})),{ns:t,minWidth:o,popperClass:n,isMultiple:r,isFitInputWidth:i}}});function dk(e,t,n,r,i,o){return(0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:(0,u.j5)({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[(0,s.WI)(e.$slots,"default")],6)}var pk=(0,y.Z)(ck,[["render",dk],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);const hk=e=>Fo.V[e||"default"];function fk(e){const{t:t}=(0,xs.bU)();return(0,l.qj)({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,prefixWidth:11,tagInMultiLine:!1,mouseEnter:!1})}let mk=!1;const gk=(e,t,n)=>{const{t:r}=(0,xs.bU)(),i=(0,b.s3)("select");ha({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},(0,s.Fl)((()=>!1===e.suffixTransition)));const o=(0,l.iH)(null),a=(0,l.iH)(null),c=(0,l.iH)(null),d=(0,l.iH)(null),m=(0,l.iH)(null),g=(0,l.iH)(null),v=(0,l.iH)(null),y=(0,l.iH)(-1),w=(0,l.XI)({query:""}),_=(0,l.XI)(""),C=(0,l.iH)([]);let E=0;const{form:M,formItem:T}=Re(),A=(0,s.Fl)((()=>!e.filterable||e.multiple||!t.visible)),U=(0,s.Fl)((()=>e.disabled||(null==M?void 0:M.disabled))),I=(0,s.Fl)((()=>{const n=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:void 0!==e.modelValue&&null!==e.modelValue&&""!==e.modelValue,r=e.clearable&&!U.value&&t.inputHovering&&n;return r})),D=(0,s.Fl)((()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon)),O=(0,s.Fl)((()=>i.is("reverse",D.value&&t.visible&&e.suffixTransition))),P=(0,s.Fl)((()=>e.remote?300:0)),L=(0,s.Fl)((()=>e.loading?e.loadingText||r("el.select.loading"):(!e.remote||""!==t.query||0!==t.options.size)&&(e.filterable&&t.query&&t.options.size>0&&0===t.filteredOptionsCount?e.noMatchText||r("el.select.noMatch"):0===t.options.size?e.noDataText||r("el.select.noData"):null))),R=(0,s.Fl)((()=>{const e=Array.from(t.options.values()),n=[];return C.value.forEach((t=>{const r=e.findIndex((e=>e.currentLabel===t));r>-1&&n.push(e[r])})),n.length?n:e})),N=(0,s.Fl)((()=>Array.from(t.cachedOptions.values()))),F=(0,s.Fl)((()=>{const n=R.value.filter((e=>!e.created)).some((e=>e.currentLabel===t.query));return e.filterable&&e.allowCreate&&""!==t.query&&!n})),z=ze(),B=(0,s.Fl)((()=>["small"].includes(z.value)?"small":"default")),H=(0,s.Fl)({get(){return t.visible&&!1!==L.value},set(e){t.visible=e}});(0,s.YP)([()=>U.value,()=>z.value,()=>null==M?void 0:M.size],(()=>{(0,s.Y3)((()=>{j()}))})),(0,s.YP)((()=>e.placeholder),(n=>{t.cachedPlaceHolder=t.currentPlaceholder=n;const r=e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0;r&&(t.currentPlaceholder="")})),(0,s.YP)((()=>e.modelValue),((n,r)=>{e.multiple&&(j(),n&&n.length>0||a.value&&""!==t.query?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",V(t.query))),q(),e.filterable&&!e.multiple&&(t.inputLength=20),!Mf(n,r)&&e.validateEvent&&(null==T||T.validate("change").catch((e=>(0,S.N)(e))))}),{flush:"post",deep:!0}),(0,s.YP)((()=>t.visible),(r=>{var i,o,p,h,f;r?(null==(o=null==(i=d.value)?void 0:i.updatePopper)||o.call(i),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,null==(h=null==(p=c.value)?void 0:p.focus)||h.call(p),e.multiple?null==(f=a.value)||f.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),V(t.query),e.multiple||e.remote||(w.value.query="",(0,l.oR)(w),(0,l.oR)(_)))):(e.filterable&&((0,u.mf)(e.filterMethod)&&e.filterMethod(""),(0,u.mf)(e.remoteMethod)&&e.remoteMethod("")),a.value&&a.value.blur(),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,Z(),(0,s.Y3)((()=>{a.value&&""===a.value.value&&0===t.selected.length&&(t.currentPlaceholder=t.cachedPlaceHolder)})),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),n.emit("visible-change",r)})),(0,s.YP)((()=>t.options.entries()),(()=>{var n,r,i;if(!x.C5)return;null==(r=null==(n=d.value)?void 0:n.updatePopper)||r.call(n),e.multiple&&j();const o=(null==(i=g.value)?void 0:i.querySelectorAll("input"))||[];Array.from(o).includes(document.activeElement)||q(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&$()}),{flush:"post"}),(0,s.YP)((()=>t.hoverIndex),(e=>{(0,p.hj)(e)&&e>-1?y.value=R.value[e]||{}:y.value={},R.value.forEach((e=>{e.hover=y.value===e}))}));const j=()=>{(0,s.Y3)((()=>{var e,n;if(!o.value)return;const r=o.value.$el.querySelector("input");E=E||(r.clientHeight>0?r.clientHeight+2:0);const i=m.value,a=hk(z.value||(null==M?void 0:M.size)),s=z.value||a===E||E<=0?a:E,l=null===r.offsetParent;!l&&(r.style.height=(0===t.selected.length?s:Math.max(i?i.clientHeight+(i.clientHeight>s?6:0):0,s))-2+"px"),t.tagInMultiLine=Number.parseFloat(r.style.height)>=s,t.visible&&!1!==L.value&&(null==(n=null==(e=d.value)?void 0:e.updatePopper)||n.call(e))}))},V=async n=>{t.previousQuery===n||t.isOnComposition||(null!==t.previousQuery||!(0,u.mf)(e.filterMethod)&&!(0,u.mf)(e.remoteMethod)?(t.previousQuery=n,(0,s.Y3)((()=>{var e,n;t.visible&&(null==(n=null==(e=d.value)?void 0:e.updatePopper)||n.call(e))})),t.hoverIndex=-1,e.multiple&&e.filterable&&(0,s.Y3)((()=>{const n=15*a.value.value.length+20;t.inputLength=e.collapseTags?Math.min(50,n):n,W(),j()})),e.remote&&(0,u.mf)(e.remoteMethod)?(t.hoverIndex=-1,e.remoteMethod(n)):(0,u.mf)(e.filterMethod)?(e.filterMethod(n),(0,l.oR)(_)):(t.filteredOptionsCount=t.optionsCount,w.value.query=n,(0,l.oR)(w),(0,l.oR)(_)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await(0,s.Y3)(),$())):t.previousQuery=n)},W=()=>{""!==t.currentPlaceholder&&(t.currentPlaceholder=a.value.value?"":t.cachedPlaceHolder)},$=()=>{const e=R.value.filter((e=>e.visible&&!e.disabled&&!e.states.groupDisabled)),n=e.find((e=>e.created)),r=e[0];t.hoverIndex=oe(R.value,n||r)},q=()=>{var n;if(!e.multiple){const r=G(e.modelValue);return(null==(n=r.props)?void 0:n.created)?(t.createdLabel=r.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=r.currentLabel,t.selected=r,void(e.filterable&&(t.query=t.selectedLabel))}t.selectedLabel="";const r=[];Array.isArray(e.modelValue)&&e.modelValue.forEach((e=>{r.push(G(e))})),t.selected=r,(0,s.Y3)((()=>{j()}))},G=n=>{let r;const i="object"===(0,u.W7)(n).toLowerCase(),o="null"===(0,u.W7)(n).toLowerCase(),a="undefined"===(0,u.W7)(n).toLowerCase();for(let u=t.cachedOptions.size-1;u>=0;u--){const t=N.value[u],o=i?(0,rk.Z)(t.value,e.valueKey)===(0,rk.Z)(n,e.valueKey):t.value===n;if(o){r={value:n,currentLabel:t.currentLabel,isDisabled:t.isDisabled};break}}if(r)return r;const s=i?n.label:o||a?"":n,l={value:n,currentLabel:s};return e.multiple&&(l.hitState=!1),l},Z=()=>{setTimeout((()=>{const n=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map((e=>R.value.findIndex((t=>(0,rk.Z)(t,n)===(0,rk.Z)(e,n)))))):t.hoverIndex=-1:t.hoverIndex=R.value.findIndex((e=>_e(e)===_e(t.selected)))}),300)},Y=()=>{var t,n;K(),null==(n=null==(t=d.value)?void 0:t.updatePopper)||n.call(t),e.multiple&&j()},K=()=>{var e;t.inputWidth=null==(e=o.value)?void 0:e.$el.offsetWidth},X=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,V(t.query))},J=he((()=>{X()}),P.value),Q=he((e=>{V(e.target.value)}),P.value),ee=t=>{Mf(e.modelValue,t)||n.emit(f,t)},te=r=>{if(r.code!==Fr.EVENT_CODE.delete){if(r.target.value.length<=0&&!de()){const t=e.modelValue.slice();t.pop(),n.emit(h,t),ee(t)}1===r.target.value.length&&0===e.modelValue.length&&(t.currentPlaceholder=t.cachedPlaceHolder)}},ne=(r,i)=>{const o=t.selected.indexOf(i);if(o>-1&&!U.value){const t=e.modelValue.slice();t.splice(o,1),n.emit(h,t),ee(t),n.emit("remove-tag",i.value)}r.stopPropagation()},re=r=>{r.stopPropagation();const i=e.multiple?[]:"";if(!(0,u.HD)(i))for(const e of t.selected)e.isDisabled&&i.push(e.value);n.emit(h,i),ee(i),t.hoverIndex=-1,t.visible=!1,n.emit("clear")},ie=r=>{var i;if(e.multiple){const o=(e.modelValue||[]).slice(),s=oe(o,r.value);s>-1?o.splice(s,1):(e.multipleLimit<=0||o.length{se(r)}))},oe=(t=[],n)=>{if(!(0,u.Kn)(n))return t.indexOf(n);const r=e.valueKey;let i=-1;return t.some(((e,t)=>(0,l.IU)((0,rk.Z)(e,r))===(0,rk.Z)(n,r)&&(i=t,!0))),i},ae=()=>{const e=a.value||o.value;e&&(null==e||e.focus())},se=e=>{var t,n,r,o,a;const s=Array.isArray(e)?e[0]:e;let l=null;if(null==s?void 0:s.value){const e=R.value.filter((e=>e.value===s.value));e.length>0&&(l=e[0].$el)}if(d.value&&l){const e=null==(o=null==(r=null==(n=null==(t=d.value)?void 0:t.popperRef)?void 0:n.contentRef)?void 0:r.querySelector)?void 0:o.call(r,`.${i.be("dropdown","wrap")}`);e&&k(e,l)}null==(a=v.value)||a.handleScroll()},le=e=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(e.value,e),t.cachedOptions.set(e.value,e)},ue=(e,n)=>{t.options.get(e)===n&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(e))},ce=e=>{e.code!==Fr.EVENT_CODE.backspace&&de(!1),t.inputLength=15*a.value.value.length+20,j()},de=e=>{if(!Array.isArray(t.selected))return;const n=t.selected[t.selected.length-1];return n?!0===e||!1===e?(n.hitState=e,e):(n.hitState=!n.hitState,n.hitState):void 0},pe=e=>{const n=e.target.value;if("compositionend"===e.type)t.isOnComposition=!1,(0,s.Y3)((()=>V(n)));else{const e=n[n.length-1]||"";t.isOnComposition=!je(e)}},fe=()=>{(0,s.Y3)((()=>se(t.selected)))},me=r=>{mk?mk=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),n.emit("focus",r))},ge=()=>{var e,n,r;t.visible=!1,null==(e=o.value)||e.blur(),null==(r=null==(n=c.value)?void 0:n.blur)||r.call(n)},ve=e=>{setTimeout((()=>{var r;(null==(r=d.value)?void 0:r.isFocusInsideContent())?mk=!0:(t.visible&&be(),n.emit("blur",e))}))},ye=e=>{re(e)},be=()=>{t.visible=!1},we=e=>{t.visible&&(e.preventDefault(),e.stopPropagation(),t.visible=!1)},Se=e=>{var n;e&&!t.mouseEnter||U.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:d.value&&d.value.isFocusInsideContent()||(t.visible=!t.visible),t.visible&&(null==(n=a.value||o.value)||n.focus()))},xe=()=>{t.visible?R.value[t.hoverIndex]&&ie(R.value[t.hoverIndex]):Se()},_e=t=>(0,u.Kn)(t.value)?(0,rk.Z)(t.value,e.valueKey):t.value,Ce=(0,s.Fl)((()=>R.value.filter((e=>e.visible)).every((e=>e.disabled)))),Ee=(0,s.Fl)((()=>t.selected.slice(0,e.maxCollapseTags))),Me=(0,s.Fl)((()=>t.selected.slice(e.maxCollapseTags))),ke=e=>{if(t.visible){if(0!==t.options.size&&0!==t.filteredOptionsCount&&!t.isOnComposition&&!Ce.value){"next"===e?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):"prev"===e&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const n=R.value[t.hoverIndex];!0!==n.disabled&&!0!==n.states.groupDisabled&&n.visible||ke(e),(0,s.Y3)((()=>se(y.value)))}}else t.visible=!0},Te=()=>{t.mouseEnter=!0},Ae=()=>{t.mouseEnter=!1};return{optionList:C,optionsArray:R,selectSize:z,handleResize:Y,debouncedOnInputChange:J,debouncedQueryChange:Q,deletePrevTag:te,deleteTag:ne,deleteSelected:re,handleOptionSelect:ie,scrollToOption:se,readonly:A,resetInputHeight:j,showClose:I,iconComponent:D,iconReverse:O,showNewOption:F,collapseTagSize:B,setSelected:q,managePlaceholder:W,selectDisabled:U,emptyText:L,toggleLastOptionHitState:de,resetInputState:ce,handleComposition:pe,onOptionCreate:le,onOptionDestroy:ue,handleMenuEnter:fe,handleFocus:me,blur:ge,handleBlur:ve,handleClearClick:ye,handleClose:be,handleKeydownEscape:we,toggleMenu:Se,selectOption:xe,getValueKey:_e,navigateOptions:ke,dropMenuVisible:H,queryChange:w,groupQueryChange:_,showTagList:Ee,collapseTagList:Me,reference:o,input:a,iOSInput:c,tooltipRef:d,tags:m,selectWrapper:g,scrollbar:v,handleMouseEnter:Te,handleMouseLeave:Ae}};var vk=(0,s.aZ)({name:"ElOptions",emits:["update-options"],setup(e,{slots:t,emit:n}){let r=[];function i(e,t){if(e.length!==t.length)return!1;for(const[n]of e.entries())if(e[n]!=t[n])return!1;return!0}return()=>{var e,o;const a=null==(e=t.default)?void 0:e.call(t),s=[];function l(e){Array.isArray(e)&&e.forEach((e=>{var t,n,r,i;const o=null==(t=(null==e?void 0:e.type)||{})?void 0:t.name;"ElOptionGroup"===o?l((0,u.HD)(e.children)||Array.isArray(e.children)||!(0,u.mf)(null==(n=e.children)?void 0:n.default)?e.children:null==(r=e.children)?void 0:r.default()):"ElOption"===o?s.push(null==(i=e.props)?void 0:i.label):Array.isArray(e.children)&&l(e.children)}))}return a.length&&l(null==(o=a[0])?void 0:o.children),i(s,r)||(r=s,n("update-options",s)),a}}});const yk=e=>["",...Fo.k].includes(e),bk=e=>({focus:()=>{var t,n;null==(n=null==(t=e.value)?void 0:t.focus)||n.call(t)}}),wk="ElSelect",Sk=(0,s.aZ)({name:wk,componentName:wk,components:{ElInput:Ye,ElSelectMenu:pk,ElOption:uk,ElOptions:vk,ElTag:av,ElScrollbar:ht,ElTooltip:Mo,ElIcon:L.gn},directives:{ClickOutside:pv},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:yk},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},teleported:Rr.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:N.AA,default:fe.K41},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:N.AA,default:fe.K5e},tagType:{...tv.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:{type:Boolean,default:!1},suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:zt,default:"bottom-start"}},emits:[h,f,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const n=(0,b.s3)("select"),r=(0,b.s3)("input"),{t:i}=(0,xs.bU)(),o=fk(e),{optionList:a,optionsArray:u,selectSize:d,readonly:p,handleResize:f,collapseTagSize:m,debouncedOnInputChange:g,debouncedQueryChange:v,deletePrevTag:y,deleteTag:w,deleteSelected:S,handleOptionSelect:_,scrollToOption:C,setSelected:E,resetInputHeight:M,managePlaceholder:k,showClose:T,selectDisabled:A,iconComponent:U,iconReverse:I,showNewOption:D,emptyText:O,toggleLastOptionHitState:P,resetInputState:L,handleComposition:R,onOptionCreate:N,onOptionDestroy:F,handleMenuEnter:z,handleFocus:B,blur:H,handleBlur:j,handleClearClick:V,handleClose:W,handleKeydownEscape:$,toggleMenu:q,selectOption:G,getValueKey:Z,navigateOptions:Y,dropMenuVisible:K,reference:X,input:J,iOSInput:Q,tooltipRef:ee,tags:te,selectWrapper:ne,scrollbar:re,queryChange:ie,groupQueryChange:oe,handleMouseEnter:ae,handleMouseLeave:se,showTagList:le,collapseTagList:ue}=gk(e,o,t),{focus:ce}=bk(X),{inputWidth:de,selected:pe,inputLength:he,filteredOptionsCount:fe,visible:me,selectedLabel:ge,hoverIndex:ve,query:ye,inputHovering:be,currentPlaceholder:we,menuVisibleOnFocus:Se,isOnComposition:xe,options:_e,cachedOptions:Ce,optionsCount:Ee,prefixWidth:Me,tagInMultiLine:ke}=(0,l.BK)(o),Te=(0,s.Fl)((()=>{const t=[n.b()],r=(0,l.SU)(d);return r&&t.push(n.m(r)),e.disabled&&t.push(n.m("disabled")),t})),Ae=(0,s.Fl)((()=>({maxWidth:(0,l.SU)(de)-32+"px",width:"100%"}))),Ue=(0,s.Fl)((()=>{const e=(0,l.SU)(de)>123?(0,l.SU)(de)-123:(0,l.SU)(de)-75;return{maxWidth:`${e}px`}}));(0,s.JJ)(ok,(0,l.qj)({props:e,options:_e,optionsArray:u,cachedOptions:Ce,optionsCount:Ee,filteredOptionsCount:fe,hoverIndex:ve,handleOptionSelect:_,onOptionCreate:N,onOptionDestroy:F,selectWrapper:ne,selected:pe,setSelected:E,queryChange:ie,groupQueryChange:oe})),(0,s.bv)((()=>{o.cachedPlaceHolder=we.value=e.placeholder||(()=>i("el.select.placeholder")),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(we.value=""),(0,c.yU7)(ne,f),e.remote&&e.multiple&&M(),(0,s.Y3)((()=>{const e=X.value&&X.value.$el;if(e&&(de.value=e.getBoundingClientRect().width,t.slots.prefix)){const t=e.querySelector(`.${r.e("prefix")}`);Me.value=Math.max(t.getBoundingClientRect().width+5,30)}})),E()})),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(h,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(h,"");const Ie=(0,s.Fl)((()=>{var e,t;return null==(t=null==(e=ee.value)?void 0:e.popperRef)?void 0:t.contentRef})),De=e=>{a.value=e};return{isIOS:x.gn,onOptionsRendered:De,tagInMultiLine:ke,prefixWidth:Me,selectSize:d,readonly:p,handleResize:f,collapseTagSize:m,debouncedOnInputChange:g,debouncedQueryChange:v,deletePrevTag:y,deleteTag:w,deleteSelected:S,handleOptionSelect:_,scrollToOption:C,inputWidth:de,selected:pe,inputLength:he,filteredOptionsCount:fe,visible:me,selectedLabel:ge,hoverIndex:ve,query:ye,inputHovering:be,currentPlaceholder:we,menuVisibleOnFocus:Se,isOnComposition:xe,options:_e,resetInputHeight:M,managePlaceholder:k,showClose:T,selectDisabled:A,iconComponent:U,iconReverse:I,showNewOption:D,emptyText:O,toggleLastOptionHitState:P,resetInputState:L,handleComposition:R,handleMenuEnter:z,handleFocus:B,blur:H,handleBlur:j,handleClearClick:V,handleClose:W,handleKeydownEscape:$,toggleMenu:q,selectOption:G,getValueKey:Z,navigateOptions:Y,dropMenuVisible:K,focus:ce,reference:X,input:J,iOSInput:Q,tooltipRef:ee,popperPaneRef:Ie,tags:te,selectWrapper:ne,scrollbar:re,wrapperKls:Te,selectTagsStyle:Ae,nsSelect:n,tagTextStyle:Ue,handleMouseEnter:ae,handleMouseLeave:se,showTagList:le,collapseTagList:ue}}}),xk=["disabled","autocomplete"],_k=["disabled"],Ck={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function Ek(e,t,n,r,i,o){const a=(0,s.up)("el-tag"),l=(0,s.up)("el-tooltip"),c=(0,s.up)("el-icon"),d=(0,s.up)("el-input"),p=(0,s.up)("el-option"),h=(0,s.up)("el-options"),f=(0,s.up)("el-scrollbar"),m=(0,s.up)("el-select-menu"),g=(0,s.Q2)("click-outside");return(0,s.wy)(((0,s.wg)(),(0,s.iD)("div",{ref:"selectWrapper",class:(0,u.C_)(e.wrapperKls),onMouseenter:t[21]||(t[21]=(...t)=>e.handleMouseEnter&&e.handleMouseEnter(...t)),onMouseleave:t[22]||(t[22]=(...t)=>e.handleMouseLeave&&e.handleMouseLeave(...t)),onClick:t[23]||(t[23]=(0,P.iM)(((...t)=>e.toggleMenu&&e.toggleMenu(...t)),["stop"]))},[(0,s.Wm)(l,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:(0,s.w5)((()=>[(0,s._)("div",{class:"select-trigger",onMouseenter:t[19]||(t[19]=t=>e.inputHovering=!0),onMouseleave:t[20]||(t[20]=t=>e.inputHovering=!1)},[e.multiple?((0,s.wg)(),(0,s.iD)("div",{key:0,ref:"tags",class:(0,u.C_)([e.nsSelect.e("tags"),e.nsSelect.is("disabled",e.selectDisabled)]),style:(0,u.j5)(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?((0,s.wg)(),(0,s.j4)(P.uT,{key:0,onAfterLeave:e.resetInputHeight},{default:(0,s.w5)((()=>[(0,s._)("span",{class:(0,u.C_)([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.showTagList,(t=>((0,s.wg)(),(0,s.j4)(a,{key:e.getValueKey(t),closable:!e.selectDisabled&&!t.isDisabled,size:e.collapseTagSize,hit:t.hitState,type:e.tagType,"disable-transitions":"",onClose:n=>e.deleteTag(n,t)},{default:(0,s.w5)((()=>[(0,s._)("span",{class:(0,u.C_)(e.nsSelect.e("tags-text")),style:(0,u.j5)(e.tagTextStyle)},(0,u.zw)(t.currentLabel),7)])),_:2},1032,["closable","size","hit","type","onClose"])))),128)),e.selected.length>e.maxCollapseTags?((0,s.wg)(),(0,s.j4)(a,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:(0,s.w5)((()=>[e.collapseTagsTooltip?((0,s.wg)(),(0,s.j4)(l,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:(0,s.w5)((()=>[(0,s._)("span",{class:(0,u.C_)(e.nsSelect.e("tags-text"))},"+ "+(0,u.zw)(e.selected.length-e.maxCollapseTags),3)])),content:(0,s.w5)((()=>[(0,s._)("div",{class:(0,u.C_)(e.nsSelect.e("collapse-tags"))},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.collapseTagList,(t=>((0,s.wg)(),(0,s.iD)("div",{key:e.getValueKey(t),class:(0,u.C_)(e.nsSelect.e("collapse-tag"))},[(0,s.Wm)(a,{class:"in-tooltip",closable:!e.selectDisabled&&!t.isDisabled,size:e.collapseTagSize,hit:t.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:n=>e.deleteTag(n,t)},{default:(0,s.w5)((()=>[(0,s._)("span",{class:(0,u.C_)(e.nsSelect.e("tags-text")),style:(0,u.j5)({maxWidth:e.inputWidth-75+"px"})},(0,u.zw)(t.currentLabel),7)])),_:2},1032,["closable","size","hit","type","onClose"])],2)))),128))],2)])),_:1},8,["disabled","effect","teleported"])):((0,s.wg)(),(0,s.iD)("span",{key:1,class:(0,u.C_)(e.nsSelect.e("tags-text"))},"+ "+(0,u.zw)(e.selected.length-e.maxCollapseTags),3))])),_:1},8,["size","type"])):(0,s.kq)("v-if",!0)],2)])),_:1},8,["onAfterLeave"])):(0,s.kq)("v-if",!0),e.collapseTags?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.j4)(P.uT,{key:1,onAfterLeave:e.resetInputHeight},{default:(0,s.w5)((()=>[(0,s._)("span",{class:(0,u.C_)([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.selected,(t=>((0,s.wg)(),(0,s.j4)(a,{key:e.getValueKey(t),closable:!e.selectDisabled&&!t.isDisabled,size:e.collapseTagSize,hit:t.hitState,type:e.tagType,"disable-transitions":"",onClose:n=>e.deleteTag(n,t)},{default:(0,s.w5)((()=>[(0,s._)("span",{class:(0,u.C_)(e.nsSelect.e("tags-text")),style:(0,u.j5)({maxWidth:e.inputWidth-75+"px"})},(0,u.zw)(t.currentLabel),7)])),_:2},1032,["closable","size","hit","type","onClose"])))),128))],2)])),_:1},8,["onAfterLeave"])),e.filterable?(0,s.wy)(((0,s.wg)(),(0,s.iD)("input",{key:2,ref:"input","onUpdate:modelValue":t[0]||(t[0]=t=>e.query=t),type:"text",class:(0,u.C_)([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize),e.nsSelect.is("disabled",e.selectDisabled)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:(0,u.j5)({marginLeft:e.prefixWidth&&!e.selected.length||e.tagInMultiLine?`${e.prefixWidth}px`:"",flexGrow:1,width:e.inputLength/(e.inputWidth-32)+"%",maxWidth:e.inputWidth-42+"px"}),onFocus:t[1]||(t[1]=(...t)=>e.handleFocus&&e.handleFocus(...t)),onBlur:t[2]||(t[2]=(...t)=>e.handleBlur&&e.handleBlur(...t)),onKeyup:t[3]||(t[3]=(...t)=>e.managePlaceholder&&e.managePlaceholder(...t)),onKeydown:[t[4]||(t[4]=(...t)=>e.resetInputState&&e.resetInputState(...t)),t[5]||(t[5]=(0,P.D2)((0,P.iM)((t=>e.navigateOptions("next")),["prevent"]),["down"])),t[6]||(t[6]=(0,P.D2)((0,P.iM)((t=>e.navigateOptions("prev")),["prevent"]),["up"])),t[7]||(t[7]=(0,P.D2)(((...t)=>e.handleKeydownEscape&&e.handleKeydownEscape(...t)),["esc"])),t[8]||(t[8]=(0,P.D2)((0,P.iM)(((...t)=>e.selectOption&&e.selectOption(...t)),["stop","prevent"]),["enter"])),t[9]||(t[9]=(0,P.D2)(((...t)=>e.deletePrevTag&&e.deletePrevTag(...t)),["delete"])),t[10]||(t[10]=(0,P.D2)((t=>e.visible=!1),["tab"]))],onCompositionstart:t[11]||(t[11]=(...t)=>e.handleComposition&&e.handleComposition(...t)),onCompositionupdate:t[12]||(t[12]=(...t)=>e.handleComposition&&e.handleComposition(...t)),onCompositionend:t[13]||(t[13]=(...t)=>e.handleComposition&&e.handleComposition(...t)),onInput:t[14]||(t[14]=(...t)=>e.debouncedQueryChange&&e.debouncedQueryChange(...t))},null,46,xk)),[[P.nr,e.query]]):(0,s.kq)("v-if",!0)],6)):(0,s.kq)("v-if",!0),(0,s.kq)(" fix: https://github.com/element-plus/element-plus/issues/11415 "),e.isIOS&&!e.multiple&&e.filterable&&e.readonly?((0,s.wg)(),(0,s.iD)("input",{key:1,ref:"iOSInput",class:(0,u.C_)([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize),e.nsSelect.em("input","iOS")]),disabled:e.selectDisabled,type:"text"},null,10,_k)):(0,s.kq)("v-if",!0),(0,s.Wm)(d,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[15]||(t[15]=t=>e.selectedLabel=t),type:"text",placeholder:"function"===typeof e.currentPlaceholder?e.currentPlaceholder():e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:(0,u.C_)([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[16]||(t[16]=(0,P.D2)((0,P.iM)((t=>e.navigateOptions("next")),["stop","prevent"]),["down"])),t[17]||(t[17]=(0,P.D2)((0,P.iM)((t=>e.navigateOptions("prev")),["stop","prevent"]),["up"])),(0,P.D2)((0,P.iM)(e.selectOption,["stop","prevent"]),["enter"]),(0,P.D2)(e.handleKeydownEscape,["esc"]),t[18]||(t[18]=(0,P.D2)((t=>e.visible=!1),["tab"]))]},(0,s.Nv)({suffix:(0,s.w5)((()=>[e.iconComponent&&!e.showClose?((0,s.wg)(),(0,s.j4)(c,{key:0,class:(0,u.C_)([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.iconComponent)))])),_:1},8,["class"])):(0,s.kq)("v-if",!0),e.showClose&&e.clearIcon?((0,s.wg)(),(0,s.j4)(c,{key:1,class:(0,u.C_)([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.clearIcon)))])),_:1},8,["class","onClick"])):(0,s.kq)("v-if",!0)])),_:2},[e.$slots.prefix?{name:"prefix",fn:(0,s.w5)((()=>[(0,s._)("div",Ck,[(0,s.WI)(e.$slots,"prefix")])]))}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)])),content:(0,s.w5)((()=>[(0,s.Wm)(m,null,{default:(0,s.w5)((()=>[(0,s.wy)((0,s.Wm)(f,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:(0,u.C_)([e.nsSelect.is("empty",!e.allowCreate&&Boolean(e.query)&&0===e.filteredOptionsCount)])},{default:(0,s.w5)((()=>[e.showNewOption?((0,s.wg)(),(0,s.j4)(p,{key:0,value:e.query,created:!0},null,8,["value"])):(0,s.kq)("v-if",!0),(0,s.Wm)(h,{onUpdateOptions:e.onOptionsRendered},{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default")])),_:3},8,["onUpdateOptions"])])),_:3},8,["wrap-class","view-class","class"]),[[P.F8,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&0===e.options.size)?((0,s.wg)(),(0,s.iD)(s.HY,{key:0},[e.$slots.empty?(0,s.WI)(e.$slots,"empty",{key:0}):((0,s.wg)(),(0,s.iD)("p",{key:1,class:(0,u.C_)(e.nsSelect.be("dropdown","empty"))},(0,u.zw)(e.emptyText),3))],64)):(0,s.kq)("v-if",!0)])),_:3})])),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[g,e.handleClose,e.popperPaneRef]])}var Mk=(0,y.Z)(Sk,[["render",Ek],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const kk=(0,s.aZ)({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const t=(0,b.s3)("select"),n=(0,l.iH)(!0),r=(0,s.FN)(),i=(0,l.iH)([]);(0,s.JJ)(ik,(0,l.qj)({...(0,l.BK)(e)}));const o=(0,s.f3)(ok);(0,s.bv)((()=>{i.value=a(r.subTree)}));const a=e=>{const t=[];return Array.isArray(e.children)&&e.children.forEach((e=>{var n;e.type&&"ElOption"===e.type.name&&e.component&&e.component.proxy?t.push(e.component.proxy):(null==(n=e.children)?void 0:n.length)&&t.push(...a(e))})),t},{groupQueryChange:u}=(0,l.IU)(o);return(0,s.YP)(u,(()=>{n.value=i.value.some((e=>!0===e.visible))}),{flush:"post"}),{visible:n,ns:t}}});function Tk(e,t,n,r,i,o){return(0,s.wy)(((0,s.wg)(),(0,s.iD)("ul",{class:(0,u.C_)(e.ns.be("group","wrap"))},[(0,s._)("li",{class:(0,u.C_)(e.ns.be("group","title"))},(0,u.zw)(e.label),3),(0,s._)("li",null,[(0,s._)("ul",{class:(0,u.C_)(e.ns.b("group"))},[(0,s.WI)(e.$slots,"default")],2)])],2)),[[P.F8,e.visible]])}var Ak=(0,y.Z)(kk,[["render",Tk],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const Uk=(0,D.nz)(Mk,{Option:uk,OptionGroup:Ak}),Ik=(0,D.dp)(uk),Dk=(0,D.dp)(Ak),Ok=()=>(0,s.f3)(VM,{}),Pk=(0,d.o8)({pageSize:{type:Number,required:!0},pageSizes:{type:(0,d.Cq)(Array),default:()=>(0,_e.N)([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,size:{type:String,values:Fo.k}}),Lk=(0,s.aZ)({name:"ElPaginationSizes"}),Rk=(0,s.aZ)({...Lk,props:Pk,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:r}=(0,xs.bU)(),i=(0,b.s3)("pagination"),o=Ok(),a=(0,l.iH)(n.pageSize);(0,s.YP)((()=>n.pageSizes),((e,r)=>{if(!Mf(e,r)&&Array.isArray(e)){const r=e.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",r)}})),(0,s.YP)((()=>n.pageSize),(e=>{a.value=e}));const c=(0,s.Fl)((()=>n.pageSizes));function d(e){var t;e!==a.value&&(a.value=e,null==(t=o.handleSizeChange)||t.call(o,Number(e)))}return(e,t)=>((0,s.wg)(),(0,s.iD)("span",{class:(0,u.C_)((0,l.SU)(i).e("sizes"))},[(0,s.Wm)((0,l.SU)(Uk),{"model-value":a.value,disabled:e.disabled,"popper-class":e.popperClass,size:e.size,"validate-event":!1,onChange:d},{default:(0,s.w5)((()=>[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)((0,l.SU)(c),(e=>((0,s.wg)(),(0,s.j4)((0,l.SU)(Ik),{key:e,value:e,label:e+(0,l.SU)(r)("el.pagination.pagesize")},null,8,["value","label"])))),128))])),_:1},8,["model-value","disabled","popper-class","size"])],2))}});var Nk=(0,y.Z)(Rk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const Fk=(0,d.o8)({size:{type:String,values:Fo.k}}),zk=["disabled"],Bk=(0,s.aZ)({name:"ElPaginationJumper"}),Hk=(0,s.aZ)({...Bk,props:Fk,setup(e){const{t:t}=(0,xs.bU)(),n=(0,b.s3)("pagination"),{pageCount:r,disabled:i,currentPage:o,changeEvent:a}=Ok(),c=(0,l.iH)(),d=(0,s.Fl)((()=>{var e;return null!=(e=c.value)?e:null==o?void 0:o.value}));function p(e){c.value=e?+e:""}function h(e){e=Math.trunc(+e),null==a||a(e),c.value=void 0}return(e,o)=>((0,s.wg)(),(0,s.iD)("span",{class:(0,u.C_)((0,l.SU)(n).e("jump")),disabled:(0,l.SU)(i)},[(0,s._)("span",{class:(0,u.C_)([(0,l.SU)(n).e("goto")])},(0,u.zw)((0,l.SU)(t)("el.pagination.goto")),3),(0,s.Wm)((0,l.SU)(Ye),{size:e.size,class:(0,u.C_)([(0,l.SU)(n).e("editor"),(0,l.SU)(n).is("in-pagination")]),min:1,max:(0,l.SU)(r),disabled:(0,l.SU)(i),"model-value":(0,l.SU)(d),"validate-event":!1,label:(0,l.SU)(t)("el.pagination.page"),type:"number","onUpdate:modelValue":p,onChange:h},null,8,["size","class","max","disabled","model-value","label"]),(0,s._)("span",{class:(0,u.C_)([(0,l.SU)(n).e("classifier")])},(0,u.zw)((0,l.SU)(t)("el.pagination.pageClassifier")),3)],10,zk))}});var jk=(0,y.Z)(Hk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const Vk=(0,d.o8)({total:{type:Number,default:1e3}}),Wk=["disabled"],$k=(0,s.aZ)({name:"ElPaginationTotal"}),qk=(0,s.aZ)({...$k,props:Vk,setup(e){const{t:t}=(0,xs.bU)(),n=(0,b.s3)("pagination"),{disabled:r}=Ok();return(e,i)=>((0,s.wg)(),(0,s.iD)("span",{class:(0,u.C_)((0,l.SU)(n).e("total")),disabled:(0,l.SU)(r)},(0,u.zw)((0,l.SU)(t)("el.pagination.total",{total:e.total})),11,Wk))}});var Gk=(0,y.Z)(qk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const Zk=(0,d.o8)({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),Yk=["onKeyup"],Kk=["aria-current","aria-label","tabindex"],Xk=["tabindex","aria-label"],Jk=["aria-current","aria-label","tabindex"],Qk=["tabindex","aria-label"],eT=["aria-current","aria-label","tabindex"],tT=(0,s.aZ)({name:"ElPaginationPager"}),nT=(0,s.aZ)({...tT,props:Zk,emits:["change"],setup(e,{emit:t}){const n=e,r=(0,b.s3)("pager"),i=(0,b.s3)("icon"),{t:o}=(0,xs.bU)(),a=(0,l.iH)(!1),c=(0,l.iH)(!1),d=(0,l.iH)(!1),p=(0,l.iH)(!1),h=(0,l.iH)(!1),f=(0,l.iH)(!1),m=(0,s.Fl)((()=>{const e=n.pagerCount,t=(e-1)/2,r=Number(n.currentPage),i=Number(n.pageCount);let o=!1,a=!1;i>e&&(r>e-t&&(o=!0),r["more","btn-quickprev",i.b(),r.is("disabled",n.disabled)])),v=(0,s.Fl)((()=>["more","btn-quicknext",i.b(),r.is("disabled",n.disabled)])),y=(0,s.Fl)((()=>n.disabled?-1:0));function w(e=!1){n.disabled||(e?d.value=!0:p.value=!0)}function S(e=!1){e?h.value=!0:f.value=!0}function x(e){const r=e.target;if("li"===r.tagName.toLowerCase()&&Array.from(r.classList).includes("number")){const e=Number(r.textContent);e!==n.currentPage&&t("change",e)}else"li"===r.tagName.toLowerCase()&&Array.from(r.classList).includes("more")&&_(e)}function _(e){const r=e.target;if("ul"===r.tagName.toLowerCase()||n.disabled)return;let i=Number(r.textContent);const o=n.pageCount,a=n.currentPage,s=n.pagerCount-2;r.className.includes("more")&&(r.className.includes("quickprev")?i=a-s:r.className.includes("quicknext")&&(i=a+s)),Number.isNaN(+i)||(i<1&&(i=1),i>o&&(i=o)),i!==a&&t("change",i)}return(0,s.m0)((()=>{const e=(n.pagerCount-1)/2;a.value=!1,c.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-e&&(a.value=!0),n.currentPage((0,s.wg)(),(0,s.iD)("ul",{class:(0,u.C_)((0,l.SU)(r).b()),onClick:_,onKeyup:(0,P.D2)(x,["enter"])},[e.pageCount>0?((0,s.wg)(),(0,s.iD)("li",{key:0,class:(0,u.C_)([[(0,l.SU)(r).is("active",1===e.currentPage),(0,l.SU)(r).is("disabled",e.disabled)],"number"]),"aria-current":1===e.currentPage,"aria-label":(0,l.SU)(o)("el.pagination.currentPage",{pager:1}),tabindex:(0,l.SU)(y)}," 1 ",10,Kk)):(0,s.kq)("v-if",!0),a.value?((0,s.wg)(),(0,s.iD)("li",{key:1,class:(0,u.C_)((0,l.SU)(g)),tabindex:(0,l.SU)(y),"aria-label":(0,l.SU)(o)("el.pagination.prevPages",{pager:e.pagerCount-2}),onMouseenter:t[0]||(t[0]=e=>w(!0)),onMouseleave:t[1]||(t[1]=e=>d.value=!1),onFocus:t[2]||(t[2]=e=>S(!0)),onBlur:t[3]||(t[3]=e=>h.value=!1)},[!d.value&&!h.value||e.disabled?((0,s.wg)(),(0,s.j4)((0,l.SU)(fe.ohl),{key:1})):((0,s.wg)(),(0,s.j4)((0,l.SU)(fe.BAP),{key:0}))],42,Xk)):(0,s.kq)("v-if",!0),((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)((0,l.SU)(m),(t=>((0,s.wg)(),(0,s.iD)("li",{key:t,class:(0,u.C_)([[(0,l.SU)(r).is("active",e.currentPage===t),(0,l.SU)(r).is("disabled",e.disabled)],"number"]),"aria-current":e.currentPage===t,"aria-label":(0,l.SU)(o)("el.pagination.currentPage",{pager:t}),tabindex:(0,l.SU)(y)},(0,u.zw)(t),11,Jk)))),128)),c.value?((0,s.wg)(),(0,s.iD)("li",{key:2,class:(0,u.C_)((0,l.SU)(v)),tabindex:(0,l.SU)(y),"aria-label":(0,l.SU)(o)("el.pagination.nextPages",{pager:e.pagerCount-2}),onMouseenter:t[4]||(t[4]=e=>w()),onMouseleave:t[5]||(t[5]=e=>p.value=!1),onFocus:t[6]||(t[6]=e=>S()),onBlur:t[7]||(t[7]=e=>f.value=!1)},[!p.value&&!f.value||e.disabled?((0,s.wg)(),(0,s.j4)((0,l.SU)(fe.ohl),{key:1})):((0,s.wg)(),(0,s.j4)((0,l.SU)(fe.tsQ),{key:0}))],42,Qk)):(0,s.kq)("v-if",!0),e.pageCount>1?((0,s.wg)(),(0,s.iD)("li",{key:3,class:(0,u.C_)([[(0,l.SU)(r).is("active",e.currentPage===e.pageCount),(0,l.SU)(r).is("disabled",e.disabled)],"number"]),"aria-current":e.currentPage===e.pageCount,"aria-label":(0,l.SU)(o)("el.pagination.currentPage",{pager:e.pageCount}),tabindex:(0,l.SU)(y)},(0,u.zw)(e.pageCount),11,eT)):(0,s.kq)("v-if",!0)],42,Yk))}});var rT=(0,y.Z)(nT,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const iT=e=>"number"!==typeof e,oT=(0,d.o8)({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>(0,p.hj)(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:(0,d.Cq)(Array),default:()=>(0,_e.N)([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:N.AA,default:()=>fe.XdH},nextText:{type:String,default:""},nextIcon:{type:N.AA,default:()=>fe.olP},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),aT={"update:current-page":e=>(0,p.hj)(e),"update:page-size":e=>(0,p.hj)(e),"size-change":e=>(0,p.hj)(e),"current-change":e=>(0,p.hj)(e),"prev-click":e=>(0,p.hj)(e),"next-click":e=>(0,p.hj)(e)},sT="ElPagination";var lT=(0,s.aZ)({name:sT,props:oT,emits:aT,setup(e,{emit:t,slots:n}){const{t:r}=(0,xs.bU)(),i=(0,b.s3)("pagination"),o=(0,s.FN)().vnode.props||{},a="onUpdate:currentPage"in o||"onUpdate:current-page"in o||"onCurrentChange"in o,u="onUpdate:pageSize"in o||"onUpdate:page-size"in o||"onSizeChange"in o,c=(0,s.Fl)((()=>{if(iT(e.total)&&iT(e.pageCount))return!1;if(!iT(e.currentPage)&&!a)return!1;if(e.layout.includes("sizes"))if(iT(e.pageCount)){if(!iT(e.total)&&!iT(e.pageSize)&&!u)return!1}else if(!u)return!1;return!0})),d=(0,l.iH)(iT(e.defaultPageSize)?10:e.defaultPageSize),p=(0,l.iH)(iT(e.defaultCurrentPage)?1:e.defaultCurrentPage),h=(0,s.Fl)({get(){return iT(e.pageSize)?d.value:e.pageSize},set(n){iT(e.pageSize)&&(d.value=n),u&&(t("update:page-size",n),t("size-change",n))}}),f=(0,s.Fl)((()=>{let t=0;return iT(e.pageCount)?iT(e.total)||(t=Math.max(1,Math.ceil(e.total/h.value))):t=e.pageCount,t})),m=(0,s.Fl)({get(){return iT(e.currentPage)?p.value:e.currentPage},set(n){let r=n;n<1?r=1:n>f.value&&(r=f.value),iT(e.currentPage)&&(p.value=r),a&&(t("update:current-page",r),t("current-change",r))}});function g(e){m.value=e}function v(e){h.value=e;const t=f.value;m.value>t&&(m.value=t)}function y(){e.disabled||(m.value-=1,t("prev-click",m.value))}function w(){e.disabled||(m.value+=1,t("next-click",m.value))}function x(e,t){e&&(e.props||(e.props={}),e.props.class=[e.props.class,t].join(" "))}return(0,s.YP)(f,(e=>{m.value>e&&(m.value=e)})),(0,s.JJ)(VM,{pageCount:f,disabled:(0,s.Fl)((()=>e.disabled)),currentPage:m,changeEvent:g,handleSizeChange:v}),()=>{var t,o;if(!c.value)return(0,S.N)(sT,r("el.pagination.deprecationWarning")),null;if(!e.layout)return null;if(e.hideOnSinglePage&&f.value<=1)return null;const a=[],l=[],u=(0,s.h)("div",{class:i.e("rightwrapper")},l),d={prev:(0,s.h)(KM,{disabled:e.disabled,currentPage:m.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:y}),jumper:(0,s.h)(jk,{size:e.small?"small":"default"}),pager:(0,s.h)(rT,{currentPage:m.value,pageCount:f.value,pagerCount:e.pagerCount,onChange:g,disabled:e.disabled}),next:(0,s.h)(nk,{disabled:e.disabled,currentPage:m.value,pageCount:f.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:w}),sizes:(0,s.h)(Nk,{pageSize:h.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,size:e.small?"small":"default"}),slot:null!=(o=null==(t=null==n?void 0:n.default)?void 0:t.call(n))?o:null,total:(0,s.h)(Gk,{total:iT(e.total)?0:e.total})},p=e.layout.split(",").map((e=>e.trim()));let v=!1;return p.forEach((e=>{"->"!==e?v?l.push(d[e]):a.push(d[e]):v=!0})),x(a[0],i.is("first")),x(a[a.length-1],i.is("last")),v&&l.length>0&&(x(l[0],i.is("first")),x(l[l.length-1],i.is("last")),a.push(u)),(0,s.h)("div",{class:[i.b(),i.is("background",e.background),{[i.m("small")]:e.small}]},a)}}});const uT=(0,D.nz)(lT),cT=(0,d.o8)({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:ma,default:"primary"},cancelButtonType:{type:String,values:ma,default:"text"},icon:{type:N.AA,default:()=>fe.Ruj},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:Rr.teleported,persistent:Rr.persistent,width:{type:[String,Number],default:150}}),dT={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},pT=(0,s.aZ)({name:"ElPopconfirm"}),hT=(0,s.aZ)({...pT,props:cT,emits:dT,setup(e,{emit:t}){const n=e,{t:r}=(0,xs.bU)(),i=(0,b.s3)("popconfirm"),o=(0,l.iH)(),a=()=>{var e,t;null==(t=null==(e=o.value)?void 0:e.onClose)||t.call(e)},c=(0,s.Fl)((()=>({width:(0,w.Nn)(n.width)}))),d=e=>{t("confirm",e),a()},p=e=>{t("cancel",e),a()},h=(0,s.Fl)((()=>n.confirmButtonText||r("el.popconfirm.confirmButtonText"))),f=(0,s.Fl)((()=>n.cancelButtonText||r("el.popconfirm.cancelButtonText")));return(e,t)=>((0,s.wg)(),(0,s.j4)((0,l.SU)(Mo),(0,s.dG)({ref_key:"tooltipRef",ref:o,trigger:"click",effect:"light"},e.$attrs,{"popper-class":`${(0,l.SU)(i).namespace.value}-popover`,"popper-style":(0,l.SU)(c),teleported:e.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":e.hideAfter,persistent:e.persistent}),{content:(0,s.w5)((()=>[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(i).b())},[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(i).e("main"))},[!e.hideIcon&&e.icon?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:0,class:(0,u.C_)((0,l.SU)(i).e("icon")),style:(0,u.j5)({color:e.iconColor})},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.icon)))])),_:1},8,["class","style"])):(0,s.kq)("v-if",!0),(0,s.Uk)(" "+(0,u.zw)(e.title),1)],2),(0,s._)("div",{class:(0,u.C_)((0,l.SU)(i).e("action"))},[(0,s.Wm)((0,l.SU)(is),{size:"small",type:"text"===e.cancelButtonType?"":e.cancelButtonType,text:"text"===e.cancelButtonType,onClick:p},{default:(0,s.w5)((()=>[(0,s.Uk)((0,u.zw)((0,l.SU)(f)),1)])),_:1},8,["type","text"]),(0,s.Wm)((0,l.SU)(is),{size:"small",type:"text"===e.confirmButtonType?"":e.confirmButtonType,text:"text"===e.confirmButtonType,onClick:d},{default:(0,s.w5)((()=>[(0,s.Uk)((0,u.zw)((0,l.SU)(h)),1)])),_:1},8,["type","text"])],2)],2)])),default:(0,s.w5)((()=>[e.$slots.reference?(0,s.WI)(e.$slots,"reference",{key:0}):(0,s.kq)("v-if",!0)])),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var fT=(0,y.Z)(hT,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const mT=(0,D.nz)(fT),gT=(0,d.o8)({trigger:zr.trigger,placement:Cx.placement,disabled:zr.disabled,visible:Rr.visible,transition:Rr.transition,popperOptions:Cx.popperOptions,tabindex:Cx.tabindex,content:Rr.content,popperStyle:Rr.popperStyle,popperClass:Rr.popperClass,enterable:{...Rr.enterable,default:!0},effect:{...Rr.effect,default:"light"},teleported:Rr.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),vT={"update:visible":e=>(0,p.jn)(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},yT="onUpdate:visible",bT=(0,s.aZ)({name:"ElPopover"}),wT=(0,s.aZ)({...bT,props:gT,emits:vT,setup(e,{expose:t,emit:n}){const r=e,i=(0,s.Fl)((()=>r[yT])),o=(0,b.s3)("popover"),a=(0,l.iH)(),c=(0,s.Fl)((()=>{var e;return null==(e=(0,l.SU)(a))?void 0:e.popperRef})),d=(0,s.Fl)((()=>[{width:(0,w.Nn)(r.width)},r.popperStyle])),p=(0,s.Fl)((()=>[o.b(),r.popperClass,{[o.m("plain")]:!!r.content}])),h=(0,s.Fl)((()=>r.transition===`${o.namespace.value}-fade-in-linear`)),f=()=>{var e;null==(e=a.value)||e.hide()},m=()=>{n("before-enter")},g=()=>{n("before-leave")},v=()=>{n("after-enter")},y=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:c,hide:f}),(e,t)=>((0,s.wg)(),(0,s.j4)((0,l.SU)(Mo),(0,s.dG)({ref_key:"tooltipRef",ref:a},e.$attrs,{trigger:e.trigger,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":(0,l.SU)(p),"popper-style":(0,l.SU)(d),teleported:e.teleported,persistent:e.persistent,"gpu-acceleration":(0,l.SU)(h),"onUpdate:visible":(0,l.SU)(i),onBeforeShow:m,onBeforeHide:g,onShow:v,onHide:y}),{content:(0,s.w5)((()=>[e.title?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)((0,l.SU)(o).e("title")),role:"title"},(0,u.zw)(e.title),3)):(0,s.kq)("v-if",!0),(0,s.WI)(e.$slots,"default",{},(()=>[(0,s.Uk)((0,u.zw)(e.content),1)]))])),default:(0,s.w5)((()=>[e.$slots.reference?(0,s.WI)(e.$slots,"reference",{key:0}):(0,s.kq)("v-if",!0)])),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var ST=(0,y.Z)(wT,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const xT=(e,t)=>{const n=t.arg||t.value,r=null==n?void 0:n.popperRef;r&&(r.triggerRef=e)};var _T={mounted(e,t){xT(e,t)},updated(e,t){xT(e,t)}};const CT="popover",ET=(0,D.dH)(_T,CT),MT=(0,D.nz)(ST,{directive:ET}),kT=(0,d.o8)({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:(0,d.Cq)(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:(0,d.Cq)([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:(0,d.Cq)(Function),default:e=>`${e}%`}}),TT=["aria-valuenow"],AT={viewBox:"0 0 100 100"},UT=["d","stroke","stroke-width"],IT=["d","stroke","opacity","stroke-linecap","stroke-width"],DT={key:0},OT=(0,s.aZ)({name:"ElProgress"}),PT=(0,s.aZ)({...OT,props:kT,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=(0,b.s3)("progress"),i=(0,s.Fl)((()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:x(t.percentage)}))),o=(0,s.Fl)((()=>(t.strokeWidth/t.width*100).toFixed(1))),a=(0,s.Fl)((()=>["circle","dashboard"].includes(t.type)?Number.parseInt(""+(50-Number.parseFloat(o.value)/2),10):0)),c=(0,s.Fl)((()=>{const e=a.value,n="dashboard"===t.type;return`\n M 50 50\n m 0 ${n?"":"-"}${e}\n a ${e} ${e} 0 1 1 0 ${n?"-":""}${2*e}\n a ${e} ${e} 0 1 1 0 ${n?"":"-"}${2*e}\n `})),d=(0,s.Fl)((()=>2*Math.PI*a.value)),p=(0,s.Fl)((()=>"dashboard"===t.type?.75:1)),h=(0,s.Fl)((()=>{const e=-1*d.value*(1-p.value)/2;return`${e}px`})),f=(0,s.Fl)((()=>({strokeDasharray:`${d.value*p.value}px, ${d.value}px`,strokeDashoffset:h.value}))),m=(0,s.Fl)((()=>({strokeDasharray:`${d.value*p.value*(t.percentage/100)}px, ${d.value}px`,strokeDashoffset:h.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"}))),g=(0,s.Fl)((()=>{let e;return e=t.color?x(t.percentage):n[t.status]||n.default,e})),v=(0,s.Fl)((()=>"warning"===t.status?fe.Rrw:"line"===t.type?"success"===t.status?fe.yGk:fe.K41:"success"===t.status?fe.JrY:fe.x8P)),y=(0,s.Fl)((()=>"line"===t.type?12+.4*t.strokeWidth:.111111*t.width+2)),w=(0,s.Fl)((()=>t.format(t.percentage)));function S(e){const t=100/e.length,n=e.map(((e,n)=>(0,u.HD)(e)?{color:e,percentage:(n+1)*t}:e));return n.sort(((e,t)=>e.percentage-t.percentage))}const x=e=>{var n;const{color:r}=t;if((0,u.mf)(r))return r(e);if((0,u.HD)(r))return r;{const t=S(r);for(const n of t)if(n.percentage>e)return n.color;return null==(n=t[t.length-1])?void 0:n.color}};return(e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)([(0,l.SU)(r).b(),(0,l.SU)(r).m(e.type),(0,l.SU)(r).is(e.status),{[(0,l.SU)(r).m("without-text")]:!e.showText,[(0,l.SU)(r).m("text-inside")]:e.textInside}]),role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"},["line"===e.type?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)((0,l.SU)(r).b("bar"))},[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(r).be("bar","outer")),style:(0,u.j5)({height:`${e.strokeWidth}px`})},[(0,s._)("div",{class:(0,u.C_)([(0,l.SU)(r).be("bar","inner"),{[(0,l.SU)(r).bem("bar","inner","indeterminate")]:e.indeterminate},{[(0,l.SU)(r).bem("bar","inner","striped")]:e.striped},{[(0,l.SU)(r).bem("bar","inner","striped-flow")]:e.stripedFlow}]),style:(0,u.j5)((0,l.SU)(i))},[(e.showText||e.$slots.default)&&e.textInside?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)((0,l.SU)(r).be("bar","innerText"))},[(0,s.WI)(e.$slots,"default",{percentage:e.percentage},(()=>[(0,s._)("span",null,(0,u.zw)((0,l.SU)(w)),1)]))],2)):(0,s.kq)("v-if",!0)],6)],6)],2)):((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,u.C_)((0,l.SU)(r).b("circle")),style:(0,u.j5)({height:`${e.width}px`,width:`${e.width}px`})},[((0,s.wg)(),(0,s.iD)("svg",AT,[(0,s._)("path",{class:(0,u.C_)((0,l.SU)(r).be("circle","track")),d:(0,l.SU)(c),stroke:`var(${(0,l.SU)(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":(0,l.SU)(o),fill:"none",style:(0,u.j5)((0,l.SU)(f))},null,14,UT),(0,s._)("path",{class:(0,u.C_)((0,l.SU)(r).be("circle","path")),d:(0,l.SU)(c),stroke:(0,l.SU)(g),fill:"none",opacity:e.percentage?1:0,"stroke-linecap":e.strokeLinecap,"stroke-width":(0,l.SU)(o),style:(0,u.j5)((0,l.SU)(m))},null,14,IT)]))],6)),!e.showText&&!e.$slots.default||e.textInside?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)("div",{key:2,class:(0,u.C_)((0,l.SU)(r).e("text")),style:(0,u.j5)({fontSize:`${(0,l.SU)(y)}px`})},[(0,s.WI)(e.$slots,"default",{percentage:e.percentage},(()=>[e.status?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:1},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)((0,l.SU)(v))))])),_:1})):((0,s.wg)(),(0,s.iD)("span",DT,(0,u.zw)((0,l.SU)(w)),1))]))],6))],10,TT))}});var LT=(0,y.Z)(PT,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const RT=(0,D.nz)(LT),NT=(0,d.o8)({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:(0,d.Cq)([Array,Object]),default:()=>(0,_e.N)(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:(0,d.Cq)([Array,Object]),default:()=>[fe.RhE,fe.RhE,fe.RhE]},voidIcon:{type:N.AA,default:()=>fe.Uxw},disabledVoidIcon:{type:N.AA,default:()=>fe.RhE},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:(0,d.Cq)(Array),default:()=>(0,_e.N)(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:xe.Pp,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),FT={[f]:e=>(0,p.hj)(e),[h]:e=>(0,p.hj)(e)},zT=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],BT=["onMousemove","onClick"],HT=(0,s.aZ)({name:"ElRate"}),jT=(0,s.aZ)({...HT,props:NT,emits:FT,setup(e,{expose:t,emit:n}){const r=e;function i(e,t){const n=e=>(0,u.Kn)(e),r=Object.keys(t).map((e=>+e)).filter((r=>{const i=t[r],o=!!n(i)&&i.excluded;return o?ee-t)),i=t[r[0]];return n(i)&&i.value||i}const o=(0,s.f3)(Ue,void 0),a=(0,s.f3)(Ie,void 0),c=ze(),d=(0,b.s3)("rate"),{inputId:p,isLabeledByFormItem:f}=Ne(r,{formItemContext:a}),m=(0,l.iH)(r.modelValue),g=(0,l.iH)(-1),v=(0,l.iH)(!0),y=(0,s.Fl)((()=>[d.b(),d.m(c.value)])),S=(0,s.Fl)((()=>r.disabled||(null==o?void 0:o.disabled))),x=(0,s.Fl)((()=>d.cssVarBlock({"void-color":r.voidColor,"disabled-void-color":r.disabledVoidColor,"fill-color":M.value}))),_=(0,s.Fl)((()=>{let e="";return r.showScore?e=r.scoreTemplate.replace(/\{\s*value\s*\}/,S.value?`${r.modelValue}`:`${m.value}`):r.showText&&(e=r.texts[Math.ceil(m.value)-1]),e})),C=(0,s.Fl)((()=>100*r.modelValue-100*Math.floor(r.modelValue))),E=(0,s.Fl)((()=>(0,u.kJ)(r.colors)?{[r.lowThreshold]:r.colors[0],[r.highThreshold]:{value:r.colors[1],excluded:!0},[r.max]:r.colors[2]}:r.colors)),M=(0,s.Fl)((()=>{const e=i(m.value,E.value);return(0,u.Kn)(e)?"":e})),k=(0,s.Fl)((()=>{let e="";return S.value?e=`${C.value}%`:r.allowHalf&&(e="50%"),{color:M.value,width:e}})),T=(0,s.Fl)((()=>{let e=(0,u.kJ)(r.icons)?[...r.icons]:{...r.icons};return e=(0,l.Xl)(e),(0,u.kJ)(e)?{[r.lowThreshold]:e[0],[r.highThreshold]:{value:e[1],excluded:!0},[r.max]:e[2]}:e})),A=(0,s.Fl)((()=>i(r.modelValue,T.value))),U=(0,s.Fl)((()=>S.value?(0,u.HD)(r.disabledVoidIcon)?r.disabledVoidIcon:(0,l.Xl)(r.disabledVoidIcon):(0,u.HD)(r.voidIcon)?r.voidIcon:(0,l.Xl)(r.voidIcon))),I=(0,s.Fl)((()=>i(m.value,T.value)));function D(e){const t=S.value&&C.value>0&&e-1r.modelValue,n=r.allowHalf&&v.value&&e-.5<=m.value&&e>m.value;return t||n}function O(e){r.clearable&&e===r.modelValue&&(e=0),n(h,e),r.modelValue!==e&&n("change",e)}function R(e){S.value||(r.allowHalf&&v.value?O(m.value):O(e))}function N(e){if(S.value)return;let t=m.value;const i=e.code;return i===Fr.EVENT_CODE.up||i===Fr.EVENT_CODE.right?(r.allowHalf?t+=.5:t+=1,e.stopPropagation(),e.preventDefault()):i!==Fr.EVENT_CODE.left&&i!==Fr.EVENT_CODE.down||(r.allowHalf?t-=.5:t-=1,e.stopPropagation(),e.preventDefault()),t=t<0?0:t,t=t>r.max?r.max:t,n(h,t),n("change",t),t}function F(e,t){if(!S.value){if(r.allowHalf&&t){let n=t.target;(0,w.pv)(n,d.e("item"))&&(n=n.querySelector(`.${d.e("icon")}`)),(0===n.clientWidth||(0,w.pv)(n,d.e("decimal")))&&(n=n.parentNode),v.value=2*t.offsetX<=n.clientWidth,m.value=v.value?e-.5:e}else m.value=e;g.value=e}}function z(){S.value||(r.allowHalf&&(v.value=r.modelValue!==Math.floor(r.modelValue)),m.value=r.modelValue,g.value=-1)}return(0,s.YP)((()=>r.modelValue),(e=>{m.value=e,v.value=r.modelValue!==Math.floor(r.modelValue)})),r.modelValue||n(h,0),t({setCurrentValue:F,resetCurrentValue:z}),(e,t)=>{var n;return(0,s.wg)(),(0,s.iD)("div",{id:(0,l.SU)(p),class:(0,u.C_)([(0,l.SU)(y),(0,l.SU)(d).is("disabled",(0,l.SU)(S))]),role:"slider","aria-label":(0,l.SU)(f)?void 0:e.label||"rating","aria-labelledby":(0,l.SU)(f)?null==(n=(0,l.SU)(a))?void 0:n.labelId:void 0,"aria-valuenow":m.value,"aria-valuetext":(0,l.SU)(_)||void 0,"aria-valuemin":"0","aria-valuemax":e.max,tabindex:"0",style:(0,u.j5)((0,l.SU)(x)),onKeydown:N},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.max,((e,t)=>((0,s.wg)(),(0,s.iD)("span",{key:t,class:(0,u.C_)((0,l.SU)(d).e("item")),onMousemove:t=>F(e,t),onMouseleave:z,onClick:t=>R(e)},[(0,s.Wm)((0,l.SU)(L.gn),{class:(0,u.C_)([(0,l.SU)(d).e("icon"),{hover:g.value===e},(0,l.SU)(d).is("active",e<=m.value)])},{default:(0,s.w5)((()=>[D(e)?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)(s.HY,{key:0},[(0,s.wy)(((0,s.wg)(),(0,s.j4)((0,s.LL)((0,l.SU)(I)),null,null,512)),[[P.F8,e<=m.value]]),(0,s.wy)(((0,s.wg)(),(0,s.j4)((0,s.LL)((0,l.SU)(U)),null,null,512)),[[P.F8,!(e<=m.value)]])],64)),D(e)?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:1,style:(0,u.j5)((0,l.SU)(k)),class:(0,u.C_)([(0,l.SU)(d).e("icon"),(0,l.SU)(d).e("decimal")])},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)((0,l.SU)(A))))])),_:1},8,["style","class"])):(0,s.kq)("v-if",!0)])),_:2},1032,["class"])],42,BT)))),128)),e.showText||e.showScore?((0,s.wg)(),(0,s.iD)("span",{key:0,class:(0,u.C_)((0,l.SU)(d).e("text"))},(0,u.zw)((0,l.SU)(_)),3)):(0,s.kq)("v-if",!0)],46,zT)}}});var VT=(0,y.Z)(jT,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const WT=(0,D.nz)(VT),$T={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},qT={[$T.success]:fe.rV3,[$T.warning]:fe.Rrw,[$T.error]:fe.Tw$,[$T.info]:fe.cEj},GT=(0,d.o8)({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),ZT=(0,s.aZ)({name:"ElResult"}),YT=(0,s.aZ)({...ZT,props:GT,setup(e){const t=e,n=(0,b.s3)("result"),r=(0,s.Fl)((()=>{const e=t.icon,n=e&&$T[e]?$T[e]:"icon-info",r=qT[n]||qT["icon-info"];return{class:n,component:r}}));return(e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)((0,l.SU)(n).b())},[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(n).e("icon"))},[(0,s.WI)(e.$slots,"icon",{},(()=>[(0,l.SU)(r).component?((0,s.wg)(),(0,s.j4)((0,s.LL)((0,l.SU)(r).component),{key:0,class:(0,u.C_)((0,l.SU)(r).class)},null,8,["class"])):(0,s.kq)("v-if",!0)]))],2),e.title||e.$slots.title?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)((0,l.SU)(n).e("title"))},[(0,s.WI)(e.$slots,"title",{},(()=>[(0,s._)("p",null,(0,u.zw)(e.title),1)]))],2)):(0,s.kq)("v-if",!0),e.subTitle||e.$slots["sub-title"]?((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,u.C_)((0,l.SU)(n).e("subtitle"))},[(0,s.WI)(e.$slots,"sub-title",{},(()=>[(0,s._)("p",null,(0,u.zw)(e.subTitle),1)]))],2)):(0,s.kq)("v-if",!0),e.$slots.extra?((0,s.wg)(),(0,s.iD)("div",{key:2,class:(0,u.C_)((0,l.SU)(n).e("extra"))},[(0,s.WI)(e.$slots,"extra")],2)):(0,s.kq)("v-if",!0)],2))}});var KT=(0,y.Z)(YT,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const XT=(0,D.nz)(KT),JT=["start","center","end","space-around","space-between","space-evenly"],QT=["top","middle","bottom"],eA=(0,d.o8)({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:JT,default:"start"},align:{type:String,values:QT,default:"top"}}),tA=(0,s.aZ)({name:"ElRow"}),nA=(0,s.aZ)({...tA,props:eA,setup(e){const t=e,n=(0,b.s3)("row"),r=(0,s.Fl)((()=>t.gutter));(0,s.JJ)(Av,{gutter:r});const i=(0,s.Fl)((()=>{const e={};return t.gutter?(e.marginRight=e.marginLeft=`-${t.gutter/2}px`,e):e})),o=(0,s.Fl)((()=>[n.b(),n.is(`justify-${t.justify}`,"start"!==t.justify),n.is(`align-${t.align}`,"top"!==t.align)]));return(e,t)=>((0,s.wg)(),(0,s.j4)((0,s.LL)(e.tag),{class:(0,u.C_)((0,l.SU)(o)),style:(0,u.j5)((0,l.SU)(i))},{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default")])),_:3},8,["class","style"]))}});var rA=(0,y.Z)(nA,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const iA=(0,D.nz)(rA),oA=(0,s.aZ)({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){const e=(0,b.s3)("select");return{ns:e}}});function aA(e,t,n,r,i,o){return e.item.isTitle?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)(e.ns.be("group","title")),style:(0,u.j5)([e.style,{lineHeight:`${e.height}px`}])},(0,u.zw)(e.item.label),7)):((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,u.C_)(e.ns.be("group","split")),style:(0,u.j5)(e.style)},[(0,s._)("span",{class:(0,u.C_)(e.ns.be("group","split-dash")),style:(0,u.j5)({top:e.height/2+"px"})},null,6)],6))}var sA=(0,y.Z)(oA,[["render",aA],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function lA(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const uA={allowCreate:Boolean,autocomplete:{type:String,default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:[String,Object],default:fe.K41},effect:{type:String,default:"light"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:170},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,label:String,modelValue:[Array,String,Number,Boolean,Object],multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:Array,required:!0},placeholder:{type:String},teleported:Rr.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,size:{type:String,validator:yk},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},placement:{type:(0,d.Cq)(String),values:zt,default:"bottom-start"}},cA={data:Array,disabled:Boolean,hovering:Boolean,item:Object,index:Number,style:Object,selected:Boolean,created:Boolean},dA=(0,s.aZ)({props:cA,emits:["select","hover"],setup(e,{emit:t}){const n=(0,b.s3)("select"),{hoverItem:r,selectOptionClick:i}=lA(e,{emit:t});return{ns:n,hoverItem:r,selectOptionClick:i}}}),pA=["aria-selected"];function hA(e,t,n,r,i,o){return(0,s.wg)(),(0,s.iD)("li",{"aria-selected":e.selected,style:(0,u.j5)(e.style),class:(0,u.C_)([e.ns.be("dropdown","option-item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),{hover:e.hovering}]),onMouseenter:t[0]||(t[0]=(...t)=>e.hoverItem&&e.hoverItem(...t)),onClick:t[1]||(t[1]=(0,P.iM)(((...t)=>e.selectOptionClick&&e.selectOptionClick(...t)),["stop"]))},[(0,s.WI)(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},(()=>[(0,s._)("span",null,(0,u.zw)(e.item.label),1)]))],46,pA)}var fA=(0,y.Z)(dA,[["render",hA],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const mA=Symbol("ElSelectV2Injection");var gA=n(4861),vA=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function yA(e,t){return e===t||!(!vA(e)||!vA(t))}function bA(e,t){if(e.length!==t.length)return!1;for(var n=0;n{const e=(0,s.FN)(),t=e.proxy.$props;return(0,s.Fl)((()=>{const e=(e,t,n)=>({});return t.perfMode?(0,gA.Z)(e):wA(e)}))},xA=50,_A="itemRendered",CA="scroll",EA="forward",MA="backward",kA="auto",TA="smart",AA="start",UA="center",IA="end",DA="horizontal",OA="vertical",PA="ltr",LA="rtl",RA="negative",NA="positive-ascending",FA="positive-descending",zA={[DA]:"left",[OA]:"top"},BA=20,HA=e=>x.C5?window.requestAnimationFrame(e):setTimeout(e,16),jA=e=>x.C5?window.cancelAnimationFrame(e):clearTimeout(e),VA={[DA]:"deltaX",[OA]:"deltaY"},WA=({atEndEdge:e,atStartEdge:t,layout:n},r)=>{let i,o=0;const a=n=>{const r=n<0&&t.value||n>0&&e.value;return r},s=e=>{jA(i);const t=e[VA[n.value]];a(o)&&a(o+t)||(o+=t,ge()||e.preventDefault(),i=HA((()=>{r(o),o=0})))};return{hasReachedEdge:a,onWheel:s}},$A=(0,d.l0)({type:(0,d.Cq)([Number,Function]),required:!0}),qA=(0,d.l0)({type:Number}),GA=(0,d.l0)({type:Number,default:2}),ZA=(0,d.l0)({type:String,values:["ltr","rtl"],default:"ltr"}),YA=(0,d.l0)({type:Number,default:0}),KA=(0,d.l0)({type:Number,required:!0}),XA=(0,d.l0)({type:String,values:["horizontal","vertical"],default:OA}),JA=(0,d.o8)({className:{type:String,default:""},containerElement:{type:(0,d.Cq)([String,Object]),default:"div"},data:{type:(0,d.Cq)(Array),default:()=>(0,_e.N)([])},direction:ZA,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:(0,d.Cq)([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),QA=(0,d.o8)({cache:GA,estimatedItemSize:qA,layout:XA,initScrollOffset:YA,total:KA,itemSize:$A,...JA}),eU={type:Number,default:6},tU={type:Number,default:0},nU={type:Number,default:2},rU=(0,d.o8)({columnCache:GA,columnWidth:$A,estimatedColumnWidth:qA,estimatedRowHeight:qA,initScrollLeft:YA,initScrollTop:YA,itemKey:{type:(0,d.Cq)(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:GA,rowHeight:$A,totalColumn:KA,totalRow:KA,hScrollbarSize:eU,vScrollbarSize:eU,scrollbarStartGap:tU,scrollbarEndGap:nU,role:String,...JA}),iU=(0,d.o8)({alwaysOn:Boolean,class:String,layout:XA,total:KA,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:eU,startGap:tU,endGap:nU,visible:Boolean}),oU=(e,t)=>ee===PA||e===LA||e===DA,sU=e=>e===LA;let lU=null;function uU(e=!1){if(null===lU||e){const e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";const n=document.createElement("div"),r=n.style;return r.width="100px",r.height="100px",e.appendChild(n),document.body.appendChild(e),e.scrollLeft>0?lU=FA:(e.scrollLeft=1,lU=0===e.scrollLeft?RA:NA),document.body.removeChild(e),lU}return lU}function cU({move:e,size:t,bar:n},r){const i={},o=`translate${n.axis}(${e}px)`;return i[n.size]=t,i.transform=o,i.msTransform=o,i.webkitTransform=o,"horizontal"===r?i.height="100%":i.width="100%",i}const dU=(0,s.aZ)({name:"ElVirtualScrollBar",props:iU,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=(0,s.Fl)((()=>e.startGap+e.endGap)),r=(0,b.s3)("virtual-scrollbar"),i=(0,b.s3)("scrollbar"),o=(0,l.iH)(),a=(0,l.iH)();let u=null,c=null;const d=(0,l.qj)({isDragging:!1,traveled:0}),p=(0,s.Fl)((()=>Xe[e.layout])),h=(0,s.Fl)((()=>e.clientSize-(0,l.SU)(n))),f=(0,s.Fl)((()=>({position:"absolute",width:`${DA===e.layout?h.value:e.scrollbarSize}px`,height:`${DA===e.layout?e.scrollbarSize:h.value}px`,[zA[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"}))),m=(0,s.Fl)((()=>{const t=e.ratio,n=e.clientSize;if(t>=100)return Number.POSITIVE_INFINITY;if(t>=50)return t*n/100;const r=n/3;return Math.floor(Math.min(Math.max(t*n,BA),r))})),g=(0,s.Fl)((()=>{if(!Number.isFinite(m.value))return{display:"none"};const t=`${m.value}px`,n=cU({bar:p.value,size:t,move:d.traveled},e.layout);return n})),v=(0,s.Fl)((()=>Math.floor(e.clientSize-m.value-(0,l.SU)(n)))),y=()=>{window.addEventListener("mousemove",_),window.addEventListener("mouseup",x);const e=(0,l.SU)(a);e&&(c=document.onselectstart,document.onselectstart=()=>!1,e.addEventListener("touchmove",_),e.addEventListener("touchend",x))},w=()=>{window.removeEventListener("mousemove",_),window.removeEventListener("mouseup",x),document.onselectstart=c,c=null;const e=(0,l.SU)(a);e&&(e.removeEventListener("touchmove",_),e.removeEventListener("touchend",x))},S=e=>{e.stopImmediatePropagation(),e.ctrlKey||[1,2].includes(e.button)||(d.isDragging=!0,d[p.value.axis]=e.currentTarget[p.value.offset]-(e[p.value.client]-e.currentTarget.getBoundingClientRect()[p.value.direction]),t("start-move"),y())},x=()=>{d.isDragging=!1,d[p.value.axis]=0,t("stop-move"),w()},_=n=>{const{isDragging:r}=d;if(!r)return;if(!a.value||!o.value)return;const i=d[p.value.axis];if(!i)return;jA(u);const s=-1*(o.value.getBoundingClientRect()[p.value.direction]-n[p.value.client]),l=a.value[p.value.offset]-i,c=s-l;u=HA((()=>{d.traveled=Math.max(e.startGap,Math.min(c,v.value)),t("scroll",c,v.value)}))},C=e=>{const n=Math.abs(e.target.getBoundingClientRect()[p.value.direction]-e[p.value.client]),r=a.value[p.value.offset]/2,i=n-r;d.traveled=Math.max(0,Math.min(i,v.value)),t("scroll",i,v.value)};return(0,s.YP)((()=>e.scrollFrom),(e=>{d.isDragging||(d.traveled=Math.ceil(e*v.value))})),(0,s.Jd)((()=>{w()})),()=>(0,s.h)("div",{role:"presentation",ref:o,class:[r.b(),e.class,(e.alwaysOn||d.isDragging)&&"always-on"],style:f.value,onMousedown:(0,P.iM)(C,["stop","prevent"]),onTouchstartPrevent:S},(0,s.h)("div",{ref:a,class:i.e("thumb"),style:g.value,onMousedown:S},[]))}}),pU=({name:e,getOffset:t,getItemSize:n,getItemOffset:r,getEstimatedTotalSize:i,getStartIndexForOffset:o,getStopIndexForStartIndex:a,initCache:c,clearCache:d,validateProps:h})=>(0,s.aZ)({name:null!=e?e:"ElVirtualList",props:QA,emits:[_A,CA],setup(e,{emit:f,expose:m}){h(e);const g=(0,s.FN)(),v=(0,b.s3)("vl"),y=(0,l.iH)(c(e,g)),w=SA(),S=(0,l.iH)(),_=(0,l.iH)(),C=(0,l.iH)(),E=(0,l.iH)({isScrolling:!1,scrollDir:"forward",scrollOffset:(0,p.hj)(e.initScrollOffset)?e.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:e.scrollbarAlwaysOn}),M=(0,s.Fl)((()=>{const{total:t,cache:n}=e,{isScrolling:r,scrollDir:i,scrollOffset:s}=(0,l.SU)(E);if(0===t)return[0,0,0,0];const u=o(e,s,(0,l.SU)(y)),c=a(e,u,s,(0,l.SU)(y)),d=r&&i!==MA?1:Math.max(1,n),p=r&&i!==EA?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]})),k=(0,s.Fl)((()=>i(e,(0,l.SU)(y)))),T=(0,s.Fl)((()=>aU(e.layout))),A=(0,s.Fl)((()=>[{position:"relative",["overflow-"+(T.value?"x":"y")]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:e.direction,height:(0,p.hj)(e.height)?`${e.height}px`:e.height,width:(0,p.hj)(e.width)?`${e.width}px`:e.width},e.style])),U=(0,s.Fl)((()=>{const e=(0,l.SU)(k),t=(0,l.SU)(T);return{height:t?"100%":`${e}px`,pointerEvents:(0,l.SU)(E).isScrolling?"none":void 0,width:t?`${e}px`:"100%"}})),I=(0,s.Fl)((()=>T.value?e.width:e.height)),{onWheel:D}=WA({atStartEdge:(0,s.Fl)((()=>E.value.scrollOffset<=0)),atEndEdge:(0,s.Fl)((()=>E.value.scrollOffset>=k.value)),layout:(0,s.Fl)((()=>e.layout))},(e=>{var t,n;null==(n=(t=C.value).onMouseUp)||n.call(t),F(Math.min(E.value.scrollOffset+e,k.value-I.value))})),O=()=>{const{total:t}=e;if(t>0){const[e,t,n,r]=(0,l.SU)(M);f(_A,e,t,n,r)}const{scrollDir:n,scrollOffset:r,updateRequested:i}=(0,l.SU)(E);f(CA,n,r,i)},P=e=>{const{clientHeight:t,scrollHeight:n,scrollTop:r}=e.currentTarget,i=(0,l.SU)(E);if(i.scrollOffset===r)return;const o=Math.max(0,Math.min(r,n-t));E.value={...i,isScrolling:!0,scrollDir:oU(i.scrollOffset,o),scrollOffset:o,updateRequested:!1},(0,s.Y3)(H)},L=t=>{const{clientWidth:n,scrollLeft:r,scrollWidth:i}=t.currentTarget,o=(0,l.SU)(E);if(o.scrollOffset===r)return;const{direction:a}=e;let u=r;if(a===LA)switch(uU()){case RA:u=-r;break;case FA:u=i-n-r;break}u=Math.max(0,Math.min(u,i-n)),E.value={...o,isScrolling:!0,scrollDir:oU(o.scrollOffset,u),scrollOffset:u,updateRequested:!1},(0,s.Y3)(H)},R=e=>{(0,l.SU)(T)?L(e):P(e),O()},N=(e,t)=>{const n=(k.value-I.value)/t*e;F(Math.min(k.value-I.value,n))},F=e=>{e=Math.max(e,0),e!==(0,l.SU)(E).scrollOffset&&(E.value={...(0,l.SU)(E),scrollOffset:e,scrollDir:oU((0,l.SU)(E).scrollOffset,e),updateRequested:!0},(0,s.Y3)(H))},z=(n,r=kA)=>{const{scrollOffset:i}=(0,l.SU)(E);n=Math.max(0,Math.min(n,e.total-1)),F(t(e,n,r,i,(0,l.SU)(y)))},B=t=>{const{direction:i,itemSize:o,layout:a}=e,s=w.value(d&&o,d&&a,d&&i);let c;if((0,u.RI)(s,String(t)))c=s[t];else{const o=r(e,t,(0,l.SU)(y)),a=n(e,t,(0,l.SU)(y)),u=(0,l.SU)(T),d=i===LA,p=u?o:0;s[t]=c={position:"absolute",left:d?void 0:`${p}px`,right:d?`${p}px`:void 0,top:u?0:`${o}px`,height:u?"100%":`${a}px`,width:u?`${a}px`:"100%"}}return c},H=()=>{E.value.isScrolling=!1,(0,s.Y3)((()=>{w.value(-1,null,null)}))},j=()=>{const e=S.value;e&&(e.scrollTop=0)};(0,s.bv)((()=>{if(!x.C5)return;const{initScrollOffset:t}=e,n=(0,l.SU)(S);(0,p.hj)(t)&&n&&((0,l.SU)(T)?n.scrollLeft=t:n.scrollTop=t),O()})),(0,s.ic)((()=>{const{direction:t,layout:n}=e,{scrollOffset:r,updateRequested:i}=(0,l.SU)(E),o=(0,l.SU)(S);if(i&&o)if(n===DA)if(t===LA)switch(uU()){case RA:o.scrollLeft=-r;break;case NA:o.scrollLeft=r;break;default:{const{clientWidth:e,scrollWidth:t}=o;o.scrollLeft=t-e-r;break}}else o.scrollLeft=r;else o.scrollTop=r}));const V={ns:v,clientSize:I,estimatedTotalSize:k,windowStyle:A,windowRef:S,innerRef:_,innerStyle:U,itemsToRender:M,scrollbarRef:C,states:E,getItemStyle:B,onScroll:R,onScrollbarScroll:N,onWheel:D,scrollTo:F,scrollToItem:z,resetScrollTop:j};return m({windowRef:S,innerRef:_,getItemStyleCache:w,scrollTo:F,scrollToItem:z,resetScrollTop:j,states:E}),V},render(e){var t;const{$slots:n,className:r,clientSize:i,containerElement:o,data:a,getItemStyle:l,innerElement:c,itemsToRender:d,innerStyle:p,layout:h,total:f,onScroll:m,onScrollbarScroll:g,onWheel:v,states:y,useIsScrolling:b,windowStyle:w,ns:S}=e,[x,_]=d,C=(0,s.LL)(o),E=(0,s.LL)(c),M=[];if(f>0)for(let s=x;s<=_;s++)M.push(null==(t=n.default)?void 0:t.call(n,{data:a,key:s,index:s,isScrolling:b?y.isScrolling:void 0,style:l(s)}));const k=[(0,s.h)(E,{style:p,ref:"innerRef"},(0,u.HD)(E)?M:{default:()=>M})],T=(0,s.h)(dU,{ref:"scrollbarRef",clientSize:i,layout:h,onScroll:g,ratio:100*i/this.estimatedTotalSize,scrollFrom:y.scrollOffset/(this.estimatedTotalSize-i),total:f}),A=(0,s.h)(C,{class:[S.e("window"),r],style:w,onScroll:m,onWheel:v,ref:"windowRef",key:0},(0,u.HD)(C)?[k]:{default:()=>[k]});return(0,s.h)("div",{key:0,class:[S.e("wrapper"),y.scrollbarAlwaysOn?"always-on":""]},[A,T])}}),hU=pU({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:r,width:i},o,a,s)=>{const l=aU(r)?i:e;const u=Math.max(0,t*n-l),c=Math.min(u,o*n),d=Math.max(0,(o+1)*n-l);switch(a===TA&&(a=s>=d-l&&s<=c+l?kA:UA),a){case AA:return c;case IA:return d;case UA:{const e=Math.round(d+(c-d)/2);return eu+Math.floor(l/2)?u:e}case kA:default:return s>=d&&s<=c?s:sMath.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:r,width:i},o,a)=>{const s=o*n,l=aU(r)?i:e,u=Math.ceil((l+a-s)/n);return Math.max(0,Math.min(t-1,o+u-1))},initCache(){},clearCache:!0,validateProps(){}}),fU=(e,t,n)=>{const{itemSize:r}=e,{items:i,lastVisitedIndex:o}=n;if(t>o){let e=0;if(o>=0){const t=i[o];e=t.offset+t.size}for(let n=o+1;n<=t;n++){const t=r(n);i[n]={offset:e,size:t},e+=t}n.lastVisitedIndex=t}return i[t]},mU=(e,t,n)=>{const{items:r,lastVisitedIndex:i}=t,o=i>0?r[i].offset:0;return o>=n?gU(e,t,0,i,n):vU(e,t,Math.max(0,i),n)},gU=(e,t,n,r,i)=>{while(n<=r){const o=n+Math.floor((r-n)/2),a=fU(e,o,t).offset;if(a===i)return o;ai&&(r=o-1)}return Math.max(0,n-1)},vU=(e,t,n,r)=>{const{total:i}=e;let o=1;while(n{let i=0;if(r>=e&&(r=e-1),r>=0){const e=t[r];i=e.offset+e.size}const o=e-r-1,a=o*n;return i+a},bU=pU({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>fU(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:yU,getOffset:(e,t,n,r,i)=>{const{height:o,layout:a,width:s}=e,l=aU(a)?s:o,u=fU(e,t,i),c=yU(e,i),d=Math.max(0,Math.min(c-l,u.offset)),p=Math.max(0,u.offset-l+u.size);switch(n===TA&&(n=r>=p-l&&r<=d+l?kA:UA),n){case AA:return d;case IA:return p;case UA:return Math.round(p+(d-p)/2);case kA:default:return r>=p&&r<=d?r:rmU(e,n,t),getStopIndexForStartIndex:(e,t,n,r)=>{const{height:i,total:o,layout:a,width:s}=e,l=aU(a)?s:i,u=fU(e,t,r),c=n+l;let d=u.offset+u.size,p=t;while(p{var i,o;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,e-1),null==(i=t.exposed)||i.getItemStyleCache(-1),r&&(null==(o=t.proxy)||o.$forceUpdate())}};return n},clearCache:!1,validateProps:({itemSize:e})=>{0}});var wU=(0,s.aZ)({name:"ElSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(e,{slots:t,expose:n}){const r=(0,s.f3)(mA),i=(0,b.s3)("select"),o=(0,l.iH)([]),a=(0,l.iH)(),c=(0,s.Fl)((()=>e.data.length));(0,s.YP)((()=>c.value),(()=>{var e,t;null==(t=(e=r.popper.value).updatePopper)||t.call(e)}));const d=(0,s.Fl)((()=>(0,p.o8)(r.props.estimatedOptionHeight))),h=(0,s.Fl)((()=>d.value?{itemSize:r.props.itemHeight}:{estimatedSize:r.props.estimatedOptionHeight,itemSize:e=>o.value[e]})),f=(e=[],t)=>{const{props:{valueKey:n}}=r;return(0,u.Kn)(t)?e&&e.some((e=>(0,rk.Z)(e,n)===(0,rk.Z)(t,n))):e.includes(t)},m=(e,t)=>{if((0,u.Kn)(t)){const{valueKey:n}=r.props;return(0,rk.Z)(e,n)===(0,rk.Z)(t,n)}return e===t},g=(e,t)=>{const{valueKey:n}=r.props;return r.props.multiple?f(e,(0,rk.Z)(t,n)):m(e,(0,rk.Z)(t,n))},v=(e,t)=>{const{disabled:n,multiple:i,multipleLimit:o}=r.props;return n||!t&&!!i&&o>0&&e.length>=o},y=t=>e.hoveringIndex===t,w=e=>{const t=a.value;t&&t.scrollToItem(e)},S=()=>{const e=a.value;e&&e.resetScrollTop()};n({listRef:a,isSized:d,isItemDisabled:v,isItemHovering:y,isItemSelected:g,scrollToItem:w,resetScrollTop:S});const x=e=>{const{index:n,data:i,style:o}=e,a=(0,l.SU)(d),{itemSize:u,estimatedSize:c}=(0,l.SU)(h),{modelValue:p}=r.props,{onSelect:f,onHover:m}=r,b=i[n];if("Group"===b.type)return(0,s.Wm)(sA,{item:b,style:o,height:a?u:c},null);const w=g(p,b),S=v(p,w),x=y(n);return(0,s.Wm)(fA,(0,s.dG)(e,{selected:w,disabled:b.disabled||S,created:!!b.created,hovering:x,item:b,onSelect:f,onHover:m}),{default:e=>{var n;return(null==(n=t.default)?void 0:n.call(t,e))||(0,s.Wm)("span",null,[b.label])}})},{onKeyboardNavigate:_,onKeyboardSelect:C}=r,E=()=>{_("forward")},M=()=>{_("backward")},k=()=>{r.expanded=!1},T=e=>{const{code:t}=e,{tab:n,esc:r,down:i,up:o,enter:a}=Fr.EVENT_CODE;switch(t!==n&&(e.preventDefault(),e.stopPropagation()),t){case n:case r:k();break;case i:E();break;case o:M();break;case a:C();break}};return()=>{var n;const{data:o,width:u}=e,{height:c,multiple:p,scrollbarAlwaysOn:f}=r.props;if(0===o.length)return(0,s.Wm)("div",{class:i.b("dropdown"),style:{width:`${u}px`}},[null==(n=t.empty)?void 0:n.call(t)]);const m=(0,l.SU)(d)?hU:bU;return(0,s.Wm)("div",{class:[i.b("dropdown"),i.is("multiple",p)]},[(0,s.Wm)(m,(0,s.dG)({ref:a},(0,l.SU)(h),{className:i.be("dropdown","list"),scrollbarAlwaysOn:f,data:o,height:c,width:u,total:o.length,onKeydown:T}),{default:e=>(0,s.Wm)(x,e,null)})])}}});function SU(e,t){const n=(0,l.iH)(0),r=(0,l.iH)(null),i=(0,s.Fl)((()=>e.allowCreate&&e.filterable));function o(n){const r=e=>e.value===n;return e.options&&e.options.some(r)||t.createdOptions.some(r)}function a(t){i.value&&(e.multiple&&t.created?n.value++:r.value=t)}function u(a){if(i.value)if(a&&a.length>0&&!o(a)){const e={value:a,label:a,created:!0,disabled:!1};t.createdOptions.length>=n.value?t.createdOptions[n.value]=e:t.createdOptions.push(e)}else if(e.multiple)t.createdOptions.length=n.value;else{const e=r.value;t.createdOptions.length=0,e&&e.created&&t.createdOptions.push(e)}}function c(r){if(!i.value||!r||!r.created||r.created&&e.reserveKeyword&&t.inputValue===r.label)return;const o=t.createdOptions.findIndex((e=>e.value===r.value));~o&&(t.createdOptions.splice(o,1),n.value--)}function d(){i.value&&(t.createdOptions.length=0,n.value=0)}return{createNewOption:u,removeNewOption:c,selectNewOption:a,clearAllNewOption:d}}const xU=e=>{const t=[];return e.forEach((e=>{(0,u.kJ)(e.options)?(t.push({label:e.label,isTitle:!0,type:"Group"}),e.options.forEach((e=>{t.push(e)})),t.push({type:"Group"})):t.push(e)})),t};function _U(e){const t=(0,l.iH)(!1),n=()=>{t.value=!0},r=e=>{const n=e.target.value,r=n[n.length-1]||"";t.value=!je(r)},i=n=>{t.value&&(t.value=!1,(0,u.mf)(e)&&e(n))};return{handleCompositionStart:n,handleCompositionUpdate:r,handleCompositionEnd:i}}const CU="",EU=11,MU={larget:51,default:42,small:33},kU=(e,t)=>{const{t:n}=(0,xs.bU)(),r=(0,b.s3)("select-v2"),i=(0,b.s3)("input"),{form:o,formItem:a}=Re(),d=(0,l.qj)({inputValue:CU,displayInputValue:CU,calculatedWidth:0,cachedPlaceholder:"",cachedOptions:[],createdOptions:[],createdLabel:"",createdSelected:!1,currentPlaceholder:"",hoveringIndex:-1,comboBoxHovering:!1,isOnComposition:!1,isSilentBlur:!1,isComposing:!1,inputLength:20,selectWidth:200,initialInputHeight:0,previousQuery:null,previousValue:void 0,query:"",selectedLabel:"",softFocus:!1,tagInMultiLine:!1}),p=(0,l.iH)(-1),m=(0,l.iH)(-1),g=(0,l.iH)(null),v=(0,l.iH)(null),y=(0,l.iH)(null),w=(0,l.iH)(null),x=(0,l.iH)(null),_=(0,l.iH)(null),C=(0,l.iH)(null),E=(0,l.iH)(!1),M=(0,s.Fl)((()=>e.disabled||(null==o?void 0:o.disabled))),k=(0,s.Fl)((()=>{const t=34*R.value.length;return t>e.height?e.height:t})),T=(0,s.Fl)((()=>!(0,me.Z)(e.modelValue))),A=(0,s.Fl)((()=>{const t=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:T.value,n=e.clearable&&!M.value&&d.comboBoxHovering&&t;return n})),U=(0,s.Fl)((()=>e.remote&&e.filterable?"":fe.a2Z)),I=(0,s.Fl)((()=>U.value&&r.is("reverse",E.value))),D=(0,s.Fl)((()=>(null==a?void 0:a.validateState)||"")),O=(0,s.Fl)((()=>N.rU[D.value])),P=(0,s.Fl)((()=>e.remote?300:0)),L=(0,s.Fl)((()=>{const t=R.value;return e.loading?e.loadingText||n("el.select.loading"):(!e.remote||""!==d.inputValue||0!==t.length)&&(e.filterable&&d.inputValue&&t.length>0?e.noMatchText||n("el.select.noMatch"):0===t.length?e.noDataText||n("el.select.noData"):null)})),R=(0,s.Fl)((()=>{const t=e=>{const t=d.inputValue,n=new RegExp(kg(t),"i"),r=!t||n.test(e.label||"");return r};return e.loading?[]:xU(e.options.concat(d.createdOptions).map((n=>{if((0,u.kJ)(n.options)){const e=n.options.filter(t);if(e.length>0)return{...n,options:e}}else if(e.remote||t(n))return n;return null})).filter((e=>null!==e)))})),F=(0,s.Fl)((()=>R.value.every((e=>e.disabled)))),z=ze(),B=(0,s.Fl)((()=>"small"===z.value?"small":"default")),H=(0,s.Fl)((()=>{const e=_.value,t=B.value||"default",n=e?Number.parseInt(getComputedStyle(e).paddingLeft):0,r=e?Number.parseInt(getComputedStyle(e).paddingRight):0;return d.selectWidth-r-n-MU[t]})),j=()=>{var e;m.value=(null==(e=x.value)?void 0:e.offsetWidth)||200},V=(0,s.Fl)((()=>({width:`${0===d.calculatedWidth?EU:Math.ceil(d.calculatedWidth)+EU}px`}))),W=(0,s.Fl)((()=>(0,u.kJ)(e.modelValue)?0===e.modelValue.length&&!d.displayInputValue:!e.filterable||0===d.displayInputValue.length)),$=(0,s.Fl)((()=>{const t=e.placeholder||n("el.select.placeholder");return e.multiple||(0,me.Z)(e.modelValue)?t:d.selectedLabel})),q=(0,s.Fl)((()=>{var e,t;return null==(t=null==(e=w.value)?void 0:e.popperRef)?void 0:t.contentRef})),G=(0,s.Fl)((()=>{if(e.multiple){const t=e.modelValue.length;if(e.modelValue.length>0)return R.value.findIndex((n=>n.value===e.modelValue[t-1]))}else if(e.modelValue)return R.value.findIndex((t=>t.value===e.modelValue));return-1})),Z=(0,s.Fl)({get(){return E.value&&!1!==L.value},set(e){E.value=e}}),Y=(0,s.Fl)((()=>d.cachedOptions.slice(0,e.maxCollapseTags))),K=(0,s.Fl)((()=>d.cachedOptions.slice(e.maxCollapseTags))),{createNewOption:X,removeNewOption:J,selectNewOption:Q,clearAllNewOption:ee}=SU(e,d),{handleCompositionStart:te,handleCompositionUpdate:ne,handleCompositionEnd:re}=_U((e=>Oe(e))),ie=()=>{var e,t,n;null==(t=null==(e=v.value)?void 0:e.focus)||t.call(e),null==(n=w.value)||n.updatePopper()},oe=()=>{if(!e.automaticDropdown)return M.value?void 0:(d.isComposing&&(d.softFocus=!0),(0,s.Y3)((()=>{var e,t;E.value=!E.value,null==(t=null==(e=v.value)?void 0:e.focus)||t.call(e)})))},ae=()=>(e.filterable&&d.inputValue!==d.selectedLabel&&(d.query=d.selectedLabel),le(d.inputValue),(0,s.Y3)((()=>{X(d.inputValue)}))),se=he(ae,P.value),le=t=>{d.previousQuery!==t&&(d.previousQuery=t,e.filterable&&(0,u.mf)(e.filterMethod)?e.filterMethod(t):e.filterable&&e.remote&&(0,u.mf)(e.remoteMethod)&&e.remoteMethod(t))},ue=n=>{Mf(e.modelValue,n)||t(f,n)},ce=e=>{t(h,e),ue(e),d.previousValue=null==e?void 0:e.toString()},de=(t=[],n)=>{if(!(0,u.Kn)(n))return t.indexOf(n);const r=e.valueKey;let i=-1;return t.some(((e,t)=>(0,rk.Z)(e,r)===(0,rk.Z)(n,r)&&(i=t,!0))),i},pe=t=>(0,u.Kn)(t)?(0,rk.Z)(t,e.valueKey):t,ge=e=>(0,u.Kn)(e)?e.label:e,ve=()=>(0,s.Y3)((()=>{var e,t;if(!v.value)return;const n=_.value;x.value.height=n.offsetHeight,E.value&&!1!==L.value&&(null==(t=null==(e=w.value)?void 0:e.updatePopper)||t.call(e))})),ye=()=>{var t,n;if(be(),j(),null==(n=null==(t=w.value)?void 0:t.updatePopper)||n.call(t),e.multiple)return ve()},be=()=>{const e=_.value;e&&(d.selectWidth=e.getBoundingClientRect().width)},we=(t,n,r=!0)=>{var i,o;if(e.multiple){let r=e.modelValue.slice();const a=de(r,pe(t));a>-1?(r=[...r.slice(0,a),...r.slice(a+1)],d.cachedOptions.splice(a,1),J(t)):(e.multipleLimit<=0||r.length{const{valueKey:i}=e,o=e.modelValue.indexOf((0,rk.Z)(r,i));if(o>-1&&!M.value){const n=[...e.modelValue.slice(0,o),...e.modelValue.slice(o+1)];return d.cachedOptions.splice(o,1),ce(n),t("remove-tag",(0,rk.Z)(r,i)),d.softFocus=!0,J(r),(0,s.Y3)(ie)}n.stopPropagation()},xe=e=>{const n=d.isComposing;d.isComposing=!0,d.softFocus?d.softFocus=!1:n||t("focus",e)},_e=e=>(d.softFocus=!1,(0,s.Y3)((()=>{var n,r;null==(r=null==(n=v.value)?void 0:n.blur)||r.call(n),C.value&&(d.calculatedWidth=C.value.getBoundingClientRect().width),d.isSilentBlur?d.isSilentBlur=!1:d.isComposing&&t("blur",e),d.isComposing=!1}))),Ce=()=>{d.displayInputValue.length>0?ke(""):E.value=!1},Ee=t=>{if(0===d.displayInputValue.length){t.preventDefault();const n=e.modelValue.slice();n.pop(),J(d.cachedOptions.pop()),ce(n)}},Me=()=>{let n;return n=(0,u.kJ)(e.modelValue)?[]:void 0,d.softFocus=!0,e.multiple?d.cachedOptions=[]:d.selectedLabel="",E.value=!1,ce(n),t("clear"),ee(),(0,s.Y3)(ie)},ke=e=>{d.displayInputValue=e,d.inputValue=e},Te=(e,t=void 0)=>{const n=R.value;if(!["forward","backward"].includes(e)||M.value||n.length<=0||F.value)return;if(!E.value)return oe();void 0===t&&(t=d.hoveringIndex);let r=-1;"forward"===e?(r=t+1,r>=n.length&&(r=0)):"backward"===e&&(r=t-1,(r<0||r>=n.length)&&(r=n.length-1));const i=n[r];if(i.disabled||"Group"===i.type)return Te(e,r);Ue(r),Ne(r)},Ae=()=>{if(!E.value)return oe();~d.hoveringIndex&&R.value[d.hoveringIndex]&&we(R.value[d.hoveringIndex],d.hoveringIndex,!1)},Ue=e=>{d.hoveringIndex=e},Ie=()=>{d.hoveringIndex=-1},De=()=>{var e;const t=v.value;t&&(null==(e=t.focus)||e.call(t))},Oe=t=>{const n=t.target.value;if(ke(n),d.displayInputValue.length>0&&!E.value&&(E.value=!0),d.calculatedWidth=C.value.getBoundingClientRect().width,e.multiple&&ve(),!e.remote)return ae();se()},Pe=()=>(E.value=!1,_e()),Le=()=>(d.inputValue=d.displayInputValue,(0,s.Y3)((()=>{~G.value&&(Ue(G.value),Ne(d.hoveringIndex))}))),Ne=e=>{y.value.scrollToItem(e)},Fe=()=>{if(Ie(),e.multiple)if(e.modelValue.length>0){let t=!1;d.cachedOptions.length=0,d.previousValue=e.modelValue.toString(),e.modelValue.forEach((e=>{const n=R.value.findIndex((t=>pe(t)===e));~n&&(d.cachedOptions.push(R.value[n]),t||Ue(n),t=!0)}))}else d.cachedOptions=[],d.previousValue=void 0;else if(T.value){d.previousValue=e.modelValue;const t=R.value,n=t.findIndex((t=>pe(t)===pe(e.modelValue)));~n?(d.selectedLabel=t[n].label,Ue(n)):d.selectedLabel=`${e.modelValue}`}else d.selectedLabel="",d.previousValue=void 0;ee(),j()};return(0,s.YP)(E,(e=>{var n,r;t("visible-change",e),e?null==(r=(n=w.value).update)||r.call(n):(d.displayInputValue="",d.previousQuery=null,X(""))})),(0,s.YP)((()=>e.modelValue),((t,n)=>{var r;t&&t.toString()===d.previousValue||Fe(),!Mf(t,n)&&e.validateEvent&&(null==(r=null==a?void 0:a.validate)||r.call(a,"change").catch((e=>(0,S.N)(e))))}),{deep:!0}),(0,s.YP)((()=>e.options),(()=>{const e=v.value;(!e||e&&document.activeElement!==e)&&Fe()}),{deep:!0}),(0,s.YP)(R,(()=>(0,s.Y3)(y.value.resetScrollTop))),(0,s.YP)((()=>Z.value),(e=>{e||Ie()})),(0,s.bv)((()=>{Fe()})),(0,c.yU7)(x,ye),{collapseTagSize:B,currentPlaceholder:$,expanded:E,emptyText:L,popupHeight:k,debounce:P,filteredOptions:R,iconComponent:U,iconReverse:I,inputWrapperStyle:V,popperSize:m,dropdownMenuVisible:Z,hasModelValue:T,shouldShowPlaceholder:W,selectDisabled:M,selectSize:z,showClearBtn:A,states:d,tagMaxWidth:H,nsSelectV2:r,nsInput:i,calculatorRef:C,controlRef:g,inputRef:v,menuRef:y,popper:w,selectRef:x,selectionRef:_,popperRef:q,validateState:D,validateIcon:O,showTagList:Y,collapseTagList:K,debouncedOnInputChange:se,deleteTag:Se,getLabel:ge,getValueKey:pe,handleBlur:_e,handleClear:Me,handleClickOutside:Pe,handleDel:Ee,handleEsc:Ce,handleFocus:xe,handleMenuEnter:Le,handleResize:ye,toggleMenu:oe,scrollTo:Ne,onInput:Oe,onKeyboardNavigate:Te,onKeyboardSelect:Ae,onSelect:we,onHover:Ue,onUpdateInputValue:ke,handleCompositionStart:te,handleCompositionEnd:re,handleCompositionUpdate:ne}},TU=(0,s.aZ)({name:"ElSelectV2",components:{ElSelectMenu:wU,ElTag:av,ElTooltip:Mo,ElIcon:L.gn},directives:{ClickOutside:pv,ModelText:P.nr},props:uA,emits:[h,f,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=(0,s.Fl)((()=>{const{modelValue:t,multiple:n}=e,r=n?[]:void 0;return(0,u.kJ)(t)?n?t:r:n?r:t})),r=kU((0,l.qj)({...(0,l.BK)(e),modelValue:n}),t);return(0,s.JJ)(mA,{props:(0,l.qj)({...(0,l.BK)(e),height:r.popupHeight,modelValue:n}),popper:r.popper,onSelect:r.onSelect,onHover:r.onHover,onKeyboardNavigate:r.onKeyboardNavigate,onKeyboardSelect:r.onKeyboardSelect}),{...r,modelValue:n}}}),AU={key:0},UU=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],IU=["textContent"],DU=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],OU=["textContent"];function PU(e,t,n,r,i,o){const a=(0,s.up)("el-tag"),l=(0,s.up)("el-tooltip"),c=(0,s.up)("el-icon"),d=(0,s.up)("el-select-menu"),p=(0,s.Q2)("model-text"),h=(0,s.Q2)("click-outside");return(0,s.wy)(((0,s.wg)(),(0,s.iD)("div",{ref:"selectRef",class:(0,u.C_)([e.nsSelectV2.b(),e.nsSelectV2.m(e.selectSize)]),onClick:t[24]||(t[24]=(0,P.iM)(((...t)=>e.toggleMenu&&e.toggleMenu(...t)),["stop"])),onMouseenter:t[25]||(t[25]=t=>e.states.comboBoxHovering=!0),onMouseleave:t[26]||(t[26]=t=>e.states.comboBoxHovering=!1)},[(0,s.Wm)(l,{ref:"popper",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelectV2.e("popper"),e.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelectV2.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:t[23]||(t[23]=t=>e.states.inputValue=e.states.displayInputValue)},{default:(0,s.w5)((()=>[(0,s._)("div",{ref:"selectionRef",class:(0,u.C_)([e.nsSelectV2.e("wrapper"),e.nsSelectV2.is("focused",e.states.isComposing||e.expanded),e.nsSelectV2.is("hovering",e.states.comboBoxHovering),e.nsSelectV2.is("filterable",e.filterable),e.nsSelectV2.is("disabled",e.selectDisabled)])},[e.$slots.prefix?((0,s.wg)(),(0,s.iD)("div",AU,[(0,s.WI)(e.$slots,"prefix")])):(0,s.kq)("v-if",!0),e.multiple?((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,u.C_)(e.nsSelectV2.e("selection"))},[e.collapseTags&&e.modelValue.length>0?((0,s.wg)(),(0,s.iD)(s.HY,{key:0},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.showTagList,(t=>((0,s.wg)(),(0,s.iD)("div",{key:e.getValueKey(t),class:(0,u.C_)(e.nsSelectV2.e("selected-item"))},[(0,s.Wm)(a,{closable:!e.selectDisabled&&!(null==t?void 0:t.disable),size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:n=>e.deleteTag(n,t)},{default:(0,s.w5)((()=>[(0,s._)("span",{class:(0,u.C_)(e.nsSelectV2.e("tags-text")),style:(0,u.j5)({maxWidth:`${e.tagMaxWidth}px`})},(0,u.zw)(null==t?void 0:t.label),7)])),_:2},1032,["closable","size","onClose"])],2)))),128)),(0,s._)("div",{class:(0,u.C_)(e.nsSelectV2.e("selected-item"))},[e.modelValue.length>e.maxCollapseTags?((0,s.wg)(),(0,s.j4)(a,{key:0,closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""},{default:(0,s.w5)((()=>[e.collapseTagsTooltip?((0,s.wg)(),(0,s.j4)(l,{key:0,disabled:e.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:(0,s.w5)((()=>[(0,s._)("span",{class:(0,u.C_)(e.nsSelectV2.e("tags-text")),style:(0,u.j5)({maxWidth:`${e.tagMaxWidth}px`})},"+ "+(0,u.zw)(e.modelValue.length-e.maxCollapseTags),7)])),content:(0,s.w5)((()=>[(0,s._)("div",{class:(0,u.C_)(e.nsSelectV2.e("selection"))},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.collapseTagList,(t=>((0,s.wg)(),(0,s.iD)("div",{key:e.getValueKey(t),class:(0,u.C_)(e.nsSelectV2.e("selected-item"))},[(0,s.Wm)(a,{closable:!e.selectDisabled&&!t.disabled,size:e.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:n=>e.deleteTag(n,t)},{default:(0,s.w5)((()=>[(0,s._)("span",{class:(0,u.C_)(e.nsSelectV2.e("tags-text")),style:(0,u.j5)({maxWidth:`${e.tagMaxWidth}px`})},(0,u.zw)(e.getLabel(t)),7)])),_:2},1032,["closable","size","onClose"])],2)))),128))],2)])),_:1},8,["disabled","effect"])):((0,s.wg)(),(0,s.iD)("span",{key:1,class:(0,u.C_)(e.nsSelectV2.e("tags-text")),style:(0,u.j5)({maxWidth:`${e.tagMaxWidth}px`})},"+ "+(0,u.zw)(e.modelValue.length-e.maxCollapseTags),7))])),_:1},8,["size"])):(0,s.kq)("v-if",!0)],2)],64)):((0,s.wg)(!0),(0,s.iD)(s.HY,{key:1},(0,s.Ko)(e.states.cachedOptions,(t=>((0,s.wg)(),(0,s.iD)("div",{key:e.getValueKey(t),class:(0,u.C_)(e.nsSelectV2.e("selected-item"))},[(0,s.Wm)(a,{closable:!e.selectDisabled&&!t.disabled,size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:n=>e.deleteTag(n,t)},{default:(0,s.w5)((()=>[(0,s._)("span",{class:(0,u.C_)(e.nsSelectV2.e("tags-text")),style:(0,u.j5)({maxWidth:`${e.tagMaxWidth}px`})},(0,u.zw)(e.getLabel(t)),7)])),_:2},1032,["closable","size","onClose"])],2)))),128)),(0,s._)("div",{class:(0,u.C_)([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")]),style:(0,u.j5)(e.inputWrapperStyle)},[(0,s.wy)((0,s._)("input",{id:e.id,ref:"inputRef",autocomplete:e.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-labelledby":e.label,class:(0,u.C_)([e.nsSelectV2.is(e.selectSize),e.nsSelectV2.e("combobox-input")]),disabled:e.disabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,unselectable:e.expanded?"on":void 0,"onUpdate:modelValue":t[0]||(t[0]=(...t)=>e.onUpdateInputValue&&e.onUpdateInputValue(...t)),onFocus:t[1]||(t[1]=(...t)=>e.handleFocus&&e.handleFocus(...t)),onBlur:t[2]||(t[2]=(...t)=>e.handleBlur&&e.handleBlur(...t)),onInput:t[3]||(t[3]=(...t)=>e.onInput&&e.onInput(...t)),onCompositionstart:t[4]||(t[4]=(...t)=>e.handleCompositionStart&&e.handleCompositionStart(...t)),onCompositionupdate:t[5]||(t[5]=(...t)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...t)),onCompositionend:t[6]||(t[6]=(...t)=>e.handleCompositionEnd&&e.handleCompositionEnd(...t)),onKeydown:[t[7]||(t[7]=(0,P.D2)((0,P.iM)((t=>e.onKeyboardNavigate("backward")),["stop","prevent"]),["up"])),t[8]||(t[8]=(0,P.D2)((0,P.iM)((t=>e.onKeyboardNavigate("forward")),["stop","prevent"]),["down"])),t[9]||(t[9]=(0,P.D2)((0,P.iM)(((...t)=>e.onKeyboardSelect&&e.onKeyboardSelect(...t)),["stop","prevent"]),["enter"])),t[10]||(t[10]=(0,P.D2)((0,P.iM)(((...t)=>e.handleEsc&&e.handleEsc(...t)),["stop","prevent"]),["esc"])),t[11]||(t[11]=(0,P.D2)((0,P.iM)(((...t)=>e.handleDel&&e.handleDel(...t)),["stop"]),["delete"]))]},null,42,UU),[[p,e.states.displayInputValue]]),e.filterable?((0,s.wg)(),(0,s.iD)("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:(0,u.C_)(e.nsSelectV2.e("input-calculator")),textContent:(0,u.zw)(e.states.displayInputValue)},null,10,IU)):(0,s.kq)("v-if",!0)],6)],2)):((0,s.wg)(),(0,s.iD)(s.HY,{key:2},[(0,s._)("div",{class:(0,u.C_)([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")])},[(0,s.wy)((0,s._)("input",{id:e.id,ref:"inputRef","aria-autocomplete":"list","aria-haspopup":"listbox","aria-labelledby":e.label,"aria-expanded":e.expanded,autocapitalize:"off",autocomplete:e.autocomplete,class:(0,u.C_)(e.nsSelectV2.e("combobox-input")),disabled:e.disabled,name:e.name,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",unselectable:e.expanded?"on":void 0,onCompositionstart:t[12]||(t[12]=(...t)=>e.handleCompositionStart&&e.handleCompositionStart(...t)),onCompositionupdate:t[13]||(t[13]=(...t)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...t)),onCompositionend:t[14]||(t[14]=(...t)=>e.handleCompositionEnd&&e.handleCompositionEnd(...t)),onFocus:t[15]||(t[15]=(...t)=>e.handleFocus&&e.handleFocus(...t)),onBlur:t[16]||(t[16]=(...t)=>e.handleBlur&&e.handleBlur(...t)),onInput:t[17]||(t[17]=(...t)=>e.onInput&&e.onInput(...t)),onKeydown:[t[18]||(t[18]=(0,P.D2)((0,P.iM)((t=>e.onKeyboardNavigate("backward")),["stop","prevent"]),["up"])),t[19]||(t[19]=(0,P.D2)((0,P.iM)((t=>e.onKeyboardNavigate("forward")),["stop","prevent"]),["down"])),t[20]||(t[20]=(0,P.D2)((0,P.iM)(((...t)=>e.onKeyboardSelect&&e.onKeyboardSelect(...t)),["stop","prevent"]),["enter"])),t[21]||(t[21]=(0,P.D2)((0,P.iM)(((...t)=>e.handleEsc&&e.handleEsc(...t)),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":t[22]||(t[22]=(...t)=>e.onUpdateInputValue&&e.onUpdateInputValue(...t))},null,42,DU),[[p,e.states.displayInputValue]])],2),e.filterable?((0,s.wg)(),(0,s.iD)("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:(0,u.C_)([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-calculator")]),textContent:(0,u.zw)(e.states.displayInputValue)},null,10,OU)):(0,s.kq)("v-if",!0)],64)),e.shouldShowPlaceholder?((0,s.wg)(),(0,s.iD)("span",{key:3,class:(0,u.C_)([e.nsSelectV2.e("placeholder"),e.nsSelectV2.is("transparent",e.multiple?0===e.modelValue.length:!e.hasModelValue)])},(0,u.zw)(e.currentPlaceholder),3)):(0,s.kq)("v-if",!0),(0,s._)("span",{class:(0,u.C_)(e.nsSelectV2.e("suffix"))},[e.iconComponent?(0,s.wy)(((0,s.wg)(),(0,s.j4)(c,{key:0,class:(0,u.C_)([e.nsSelectV2.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.iconComponent)))])),_:1},8,["class"])),[[P.F8,!e.showClearBtn]]):(0,s.kq)("v-if",!0),e.showClearBtn&&e.clearIcon?((0,s.wg)(),(0,s.j4)(c,{key:1,class:(0,u.C_)([e.nsSelectV2.e("caret"),e.nsInput.e("icon")]),onClick:(0,P.iM)(e.handleClear,["prevent","stop"])},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.clearIcon)))])),_:1},8,["class","onClick"])):(0,s.kq)("v-if",!0),e.validateState&&e.validateIcon?((0,s.wg)(),(0,s.j4)(c,{key:2,class:(0,u.C_)([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.validateIcon)))])),_:1},8,["class"])):(0,s.kq)("v-if",!0)],2)],2)])),content:(0,s.w5)((()=>[(0,s.Wm)(d,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:(0,s.w5)((t=>[(0,s.WI)(e.$slots,"default",(0,u.vs)((0,s.F4)(t)))])),empty:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"empty",{},(()=>[(0,s._)("p",{class:(0,u.C_)(e.nsSelectV2.e("empty"))},(0,u.zw)(e.emptyText?e.emptyText:""),3)]))])),_:3},8,["data","width","hovering-index","scrollbar-always-on"])])),_:3},8,["visible","teleported","popper-class","popper-options","effect","placement","transition","persistent","onBeforeShow"])],34)),[[h,e.handleClickOutside,e.popperRef]])}var LU=(0,y.Z)(TU,[["render",PU],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);LU.install=e=>{e.component(LU.name,LU)};const RU=LU,NU=RU,FU=(0,d.o8)({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),zU=(0,d.o8)({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),BU=(0,s.aZ)({name:"ElSkeletonItem"}),HU=(0,s.aZ)({...BU,props:zU,setup(e){const t=(0,b.s3)("skeleton");return(e,n)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)([(0,l.SU)(t).e("item"),(0,l.SU)(t).e(e.variant)])},["image"===e.variant?((0,s.wg)(),(0,s.j4)((0,l.SU)(fe.D5R),{key:0})):(0,s.kq)("v-if",!0)],2))}});var jU=(0,y.Z)(HU,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const VU=(e,t=0)=>{if(0===t)return e;const n=(0,l.iH)(!1);let r=0;const i=()=>{r&&clearTimeout(r),r=window.setTimeout((()=>{n.value=e.value}),t)};return(0,s.bv)(i),(0,s.YP)((()=>e.value),(e=>{e?i():n.value=e})),n},WU=(0,s.aZ)({name:"ElSkeleton"}),$U=(0,s.aZ)({...WU,props:FU,setup(e,{expose:t}){const n=e,r=(0,b.s3)("skeleton"),i=VU((0,l.Vh)(n,"loading"),n.throttle);return t({uiLoading:i}),(e,t)=>(0,l.SU)(i)?((0,s.wg)(),(0,s.iD)("div",(0,s.dG)({key:0,class:[(0,l.SU)(r).b(),(0,l.SU)(r).is("animated",e.animated)]},e.$attrs),[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.count,(t=>((0,s.wg)(),(0,s.iD)(s.HY,{key:t},[e.loading?(0,s.WI)(e.$slots,"template",{key:t},(()=>[(0,s.Wm)(jU,{class:(0,u.C_)((0,l.SU)(r).is("first")),variant:"p"},null,8,["class"]),((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.rows,(t=>((0,s.wg)(),(0,s.j4)(jU,{key:t,class:(0,u.C_)([(0,l.SU)(r).e("paragraph"),(0,l.SU)(r).is("last",t===e.rows&&e.rows>1)]),variant:"p"},null,8,["class"])))),128))])):(0,s.kq)("v-if",!0)],64)))),128))],16)):(0,s.WI)(e.$slots,"default",(0,u.vs)((0,s.dG)({key:1},e.$attrs)))}});var qU=(0,y.Z)($U,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const GU=(0,D.nz)(qU,{SkeletonItem:jU}),ZU=(0,D.dp)(jU),YU=Symbol("sliderContextKey"),KU=(0,d.o8)({modelValue:{type:(0,d.Cq)([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:xe.Pp,inputSize:xe.Pp,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:(0,d.Cq)(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:(0,d.Cq)(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:zt,default:"top"},marks:{type:(0,d.Cq)(Object)},validateEvent:{type:Boolean,default:!0}}),XU=e=>(0,p.hj)(e)||(0,u.kJ)(e)&&e.every(p.hj),JU={[h]:XU,[m]:XU,[f]:XU},QU=(0,d.o8)({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:zt,default:"top"}}),eI={[h]:e=>(0,p.hj)(e)},{left:tI,down:nI,right:rI,up:iI,home:oI,end:aI,pageUp:sI,pageDown:lI}=Fr.EVENT_CODE,uI=(e,t,n)=>{const r=(0,l.iH)(),i=(0,l.iH)(!1),o=(0,s.Fl)((()=>t.value instanceof Function)),a=(0,s.Fl)((()=>o.value&&t.value(e.modelValue)||e.modelValue)),u=he((()=>{n.value&&(i.value=!0)}),50),c=he((()=>{n.value&&(i.value=!1)}),50);return{tooltip:r,tooltipVisible:i,formatValue:a,displayTooltip:u,hideTooltip:c}},cI=(e,t,n)=>{const{disabled:r,min:i,max:o,step:a,showTooltip:u,precision:c,sliderSize:d,formatTooltip:p,emitChange:f,resetSize:m,updateDragging:g}=(0,s.f3)(YU),{tooltip:v,tooltipVisible:y,formatValue:b,displayTooltip:w,hideTooltip:S}=uI(e,p,u),x=(0,l.iH)(),_=(0,s.Fl)((()=>(e.modelValue-i.value)/(o.value-i.value)*100+"%")),C=(0,s.Fl)((()=>e.vertical?{bottom:_.value}:{left:_.value})),E=()=>{t.hovering=!0,w()},M=()=>{t.hovering=!1,t.dragging||S()},k=e=>{r.value||(e.preventDefault(),N(e),window.addEventListener("mousemove",F),window.addEventListener("touchmove",F),window.addEventListener("mouseup",z),window.addEventListener("touchend",z),window.addEventListener("contextmenu",z),x.value.focus())},T=e=>{r.value||(t.newPosition=Number.parseFloat(_.value)+e/(o.value-i.value)*100,B(t.newPosition),f())},A=()=>{T(-a.value)},U=()=>{T(a.value)},I=()=>{T(4*-a.value)},D=()=>{T(4*a.value)},O=()=>{r.value||(B(0),f())},P=()=>{r.value||(B(100),f())},L=e=>{let t=!0;[tI,nI].includes(e.key)?A():[rI,iI].includes(e.key)?U():e.key===oI?O():e.key===aI?P():e.key===lI?I():e.key===sI?D():t=!1,t&&e.preventDefault()},R=e=>{let t,n;return e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},N=n=>{t.dragging=!0,t.isClick=!0;const{clientX:r,clientY:i}=R(n);e.vertical?t.startY=i:t.startX=r,t.startPosition=Number.parseFloat(_.value),t.newPosition=t.startPosition},F=n=>{if(t.dragging){let r;t.isClick=!1,w(),m();const{clientX:i,clientY:o}=R(n);e.vertical?(t.currentY=o,r=(t.startY-t.currentY)/d.value*100):(t.currentX=i,r=(t.currentX-t.startX)/d.value*100),t.newPosition=t.startPosition+r,B(t.newPosition)}},z=()=>{t.dragging&&(setTimeout((()=>{t.dragging=!1,t.hovering||S(),t.isClick||B(t.newPosition),f()}),0),window.removeEventListener("mousemove",F),window.removeEventListener("touchmove",F),window.removeEventListener("mouseup",z),window.removeEventListener("touchend",z),window.removeEventListener("contextmenu",z))},B=async r=>{if(null===r||Number.isNaN(+r))return;r<0?r=0:r>100&&(r=100);const l=100/((o.value-i.value)/a.value),u=Math.round(r/l);let d=u*l*(o.value-i.value)*.01+i.value;d=Number.parseFloat(d.toFixed(c.value)),d!==e.modelValue&&n(h,d),t.dragging||e.modelValue===t.oldValue||(t.oldValue=e.modelValue),await(0,s.Y3)(),t.dragging&&w(),v.value.updatePopper()};return(0,s.YP)((()=>t.dragging),(e=>{g(e)})),{disabled:r,button:x,tooltip:v,tooltipVisible:y,showTooltip:u,wrapperStyle:C,formatValue:b,handleMouseEnter:E,handleMouseLeave:M,onButtonDown:k,onKeyDown:L,setPosition:B}},dI=["tabindex"],pI=(0,s.aZ)({name:"ElSliderButton"}),hI=(0,s.aZ)({...pI,props:QU,emits:eI,setup(e,{expose:t,emit:n}){const r=e,i=(0,b.s3)("slider"),o=(0,l.qj)({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),{disabled:a,button:c,tooltip:d,showTooltip:p,tooltipVisible:h,wrapperStyle:f,formatValue:m,handleMouseEnter:g,handleMouseLeave:v,onButtonDown:y,onKeyDown:w,setPosition:S}=cI(r,o,n),{hovering:x,dragging:_}=(0,l.BK)(o);return t({onButtonDown:y,onKeyDown:w,setPosition:S,hovering:x,dragging:_}),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{ref_key:"button",ref:c,class:(0,u.C_)([(0,l.SU)(i).e("button-wrapper"),{hover:(0,l.SU)(x),dragging:(0,l.SU)(_)}]),style:(0,u.j5)((0,l.SU)(f)),tabindex:(0,l.SU)(a)?-1:0,onMouseenter:t[0]||(t[0]=(...e)=>(0,l.SU)(g)&&(0,l.SU)(g)(...e)),onMouseleave:t[1]||(t[1]=(...e)=>(0,l.SU)(v)&&(0,l.SU)(v)(...e)),onMousedown:t[2]||(t[2]=(...e)=>(0,l.SU)(y)&&(0,l.SU)(y)(...e)),onTouchstart:t[3]||(t[3]=(...e)=>(0,l.SU)(y)&&(0,l.SU)(y)(...e)),onFocus:t[4]||(t[4]=(...e)=>(0,l.SU)(g)&&(0,l.SU)(g)(...e)),onBlur:t[5]||(t[5]=(...e)=>(0,l.SU)(v)&&(0,l.SU)(v)(...e)),onKeydown:t[6]||(t[6]=(...e)=>(0,l.SU)(w)&&(0,l.SU)(w)(...e))},[(0,s.Wm)((0,l.SU)(Mo),{ref_key:"tooltip",ref:d,visible:(0,l.SU)(h),placement:e.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":e.tooltipClass,disabled:!(0,l.SU)(p),persistent:""},{content:(0,s.w5)((()=>[(0,s._)("span",null,(0,u.zw)((0,l.SU)(m)),1)])),default:(0,s.w5)((()=>[(0,s._)("div",{class:(0,u.C_)([(0,l.SU)(i).e("button"),{hover:(0,l.SU)(x),dragging:(0,l.SU)(_)}])},null,2)])),_:1},8,["visible","placement","popper-class","disabled"])],46,dI))}});var fI=(0,y.Z)(hI,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const mI=(0,d.o8)({mark:{type:(0,d.Cq)([String,Object]),default:void 0}});var gI=(0,s.aZ)({name:"ElSliderMarker",props:mI,setup(e){const t=(0,b.s3)("slider"),n=(0,s.Fl)((()=>(0,u.HD)(e.mark)?e.mark:e.mark.label)),r=(0,s.Fl)((()=>(0,u.HD)(e.mark)?void 0:e.mark.style));return()=>(0,s.h)("div",{class:t.e("marks-text"),style:r.value},n.value)}});const vI=(e,t,n)=>{const{form:r,formItem:i}=Re(),o=(0,l.XI)(),a=(0,l.iH)(),u=(0,l.iH)(),c={firstButton:a,secondButton:u},d=(0,s.Fl)((()=>e.disabled||(null==r?void 0:r.disabled)||!1)),p=(0,s.Fl)((()=>Math.min(t.firstValue,t.secondValue))),g=(0,s.Fl)((()=>Math.max(t.firstValue,t.secondValue))),v=(0,s.Fl)((()=>e.range?100*(g.value-p.value)/(e.max-e.min)+"%":100*(t.firstValue-e.min)/(e.max-e.min)+"%")),y=(0,s.Fl)((()=>e.range?100*(p.value-e.min)/(e.max-e.min)+"%":"0%")),b=(0,s.Fl)((()=>e.vertical?{height:e.height}:{})),w=(0,s.Fl)((()=>e.vertical?{height:v.value,bottom:y.value}:{width:v.value,left:y.value})),S=()=>{o.value&&(t.sliderSize=o.value["client"+(e.vertical?"Height":"Width")])},x=n=>{const r=e.min+n*(e.max-e.min)/100;if(!e.range)return a;let i;return i=Math.abs(p.value-r)t.secondValue?"firstButton":"secondButton",c[i]},_=e=>{const t=x(e);return t.value.setPosition(e),t},C=n=>{t.firstValue=n,M(e.range?[p.value,g.value]:n)},E=n=>{t.secondValue=n,e.range&&M([p.value,g.value])},M=e=>{n(h,e),n(m,e)},k=async()=>{await(0,s.Y3)(),n(f,e.range?[p.value,g.value]:e.modelValue)},T=n=>{var r,i,a,s,l,u;if(d.value||t.dragging)return;S();let c=0;if(e.vertical){const e=null!=(a=null==(i=null==(r=n.touches)?void 0:r.item(0))?void 0:i.clientY)?a:n.clientY,s=o.value.getBoundingClientRect().bottom;c=(s-e)/t.sliderSize*100}else{const e=null!=(u=null==(l=null==(s=n.touches)?void 0:s.item(0))?void 0:l.clientX)?u:n.clientX,r=o.value.getBoundingClientRect().left;c=(e-r)/t.sliderSize*100}return c<0||c>100?void 0:_(c)},A=e=>{var t,n;((null==(t=c["firstButton"].value)?void 0:t.dragging)||(null==(n=c["secondButton"].value)?void 0:n.dragging))&&e.preventDefault()},U=async e=>{const t=T(e);t&&(await(0,s.Y3)(),t.value.onButtonDown(e))},I=e=>{const t=T(e);t&&k()};return{elFormItem:i,slider:o,firstButton:a,secondButton:u,sliderDisabled:d,minValue:p,maxValue:g,runwayStyle:b,barStyle:w,resetSize:S,setPosition:_,emitChange:k,onSliderWrapperPrevent:A,onSliderClick:I,onSliderDown:U,setFirstValue:C,setSecondValue:E}},yI=(e,t,n,r)=>{const i=(0,s.Fl)((()=>{if(!e.showStops||e.min>e.max)return[];if(0===e.step)return(0,S.N)("ElSlider","step should not be 0."),[];const i=(e.max-e.min)/e.step,o=100*e.step/(e.max-e.min),a=Array.from({length:i-1}).map(((e,t)=>(t+1)*o));return e.range?a.filter((t=>t<100*(n.value-e.min)/(e.max-e.min)||t>100*(r.value-e.min)/(e.max-e.min))):a.filter((n=>n>100*(t.firstValue-e.min)/(e.max-e.min)))})),o=t=>e.vertical?{bottom:`${t}%`}:{left:`${t}%`};return{stops:i,getStopStyle:o}},bI=e=>(0,s.Fl)((()=>{if(!e.marks)return[];const t=Object.keys(e.marks);return t.map(Number.parseFloat).sort(((e,t)=>e-t)).filter((t=>t<=e.max&&t>=e.min)).map((t=>({point:t,position:100*(t-e.min)/(e.max-e.min),mark:e.marks[t]})))})),wI=(e,t,n,r,i,o)=>{const a=e=>{i(h,e),i(m,e)},l=()=>e.range?![n.value,r.value].every(((e,n)=>e===t.oldValue[n])):e.modelValue!==t.oldValue,u=()=>{var n,r;e.min>e.max&&(0,S._)("Slider","min should not be greater than max.");const i=e.modelValue;e.range&&Array.isArray(i)?i[1]e.max?a([e.max,e.max]):i[0]e.max?a([i[0],e.max]):(t.firstValue=i[0],t.secondValue=i[1],l()&&(e.validateEvent&&(null==(n=null==o?void 0:o.validate)||n.call(o,"change").catch((e=>(0,S.N)(e)))),t.oldValue=i.slice())):e.range||"number"!==typeof i||Number.isNaN(i)||(ie.max?a(e.max):(t.firstValue=i,l()&&(e.validateEvent&&(null==(r=null==o?void 0:o.validate)||r.call(o,"change").catch((e=>(0,S.N)(e)))),t.oldValue=i)))};u(),(0,s.YP)((()=>t.dragging),(e=>{e||u()})),(0,s.YP)((()=>e.modelValue),((e,n)=>{t.dragging||Array.isArray(e)&&Array.isArray(n)&&e.every(((e,t)=>e===n[t]))&&t.firstValue===e[0]&&t.secondValue===e[1]||u()}),{deep:!0}),(0,s.YP)((()=>[e.min,e.max]),(()=>{u()}))},SI=(e,t,n)=>{const r=(0,l.iH)();return(0,s.bv)((async()=>{e.range?(Array.isArray(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):("number"!==typeof e.modelValue||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),(0,c.ORN)(window,"resize",n),await(0,s.Y3)(),n()})),{sliderWrapper:r}},xI=["id","role","aria-label","aria-labelledby"],_I={key:1},CI=(0,s.aZ)({name:"ElSlider"}),EI=(0,s.aZ)({...CI,props:KU,emits:JU,setup(e,{expose:t,emit:n}){const r=e,i=(0,b.s3)("slider"),{t:o}=(0,xs.bU)(),a=(0,l.qj)({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:c,slider:d,firstButton:p,secondButton:h,sliderDisabled:f,minValue:m,maxValue:g,runwayStyle:v,barStyle:y,resetSize:w,emitChange:S,onSliderWrapperPrevent:x,onSliderClick:_,onSliderDown:C,setFirstValue:E,setSecondValue:M}=vI(r,a,n),{stops:k,getStopStyle:T}=yI(r,a,m,g),{inputId:A,isLabeledByFormItem:U}=Ne(r,{formItemContext:c}),I=ze(),D=(0,s.Fl)((()=>r.inputSize||I.value)),O=(0,s.Fl)((()=>r.label||o("el.slider.defaultLabel",{min:r.min,max:r.max}))),P=(0,s.Fl)((()=>r.range?r.rangeStartLabel||o("el.slider.defaultRangeStartLabel"):O.value)),L=(0,s.Fl)((()=>r.formatValueText?r.formatValueText(j.value):`${j.value}`)),R=(0,s.Fl)((()=>r.rangeEndLabel||o("el.slider.defaultRangeEndLabel"))),N=(0,s.Fl)((()=>r.formatValueText?r.formatValueText(V.value):`${V.value}`)),F=(0,s.Fl)((()=>[i.b(),i.m(I.value),i.is("vertical",r.vertical),{[i.m("with-input")]:r.showInput}])),z=bI(r);wI(r,a,m,g,n,c);const B=(0,s.Fl)((()=>{const e=[r.min,r.max,r.step].map((e=>{const t=`${e}`.split(".")[1];return t?t.length:0}));return Math.max.apply(null,e)})),{sliderWrapper:H}=SI(r,a,w),{firstValue:j,secondValue:V,sliderSize:W}=(0,l.BK)(a),$=e=>{a.dragging=e};return(0,s.JJ)(YU,{...(0,l.BK)(r),sliderSize:W,disabled:f,precision:B,emitChange:S,resetSize:w,updateDragging:$}),t({onSliderClick:_}),(e,t)=>{var n,r;return(0,s.wg)(),(0,s.iD)("div",{id:e.range?(0,l.SU)(A):void 0,ref_key:"sliderWrapper",ref:H,class:(0,u.C_)((0,l.SU)(F)),role:e.range?"group":void 0,"aria-label":e.range&&!(0,l.SU)(U)?(0,l.SU)(O):void 0,"aria-labelledby":e.range&&(0,l.SU)(U)?null==(n=(0,l.SU)(c))?void 0:n.labelId:void 0,onTouchstart:t[2]||(t[2]=(...e)=>(0,l.SU)(x)&&(0,l.SU)(x)(...e)),onTouchmove:t[3]||(t[3]=(...e)=>(0,l.SU)(x)&&(0,l.SU)(x)(...e))},[(0,s._)("div",{ref_key:"slider",ref:d,class:(0,u.C_)([(0,l.SU)(i).e("runway"),{"show-input":e.showInput&&!e.range},(0,l.SU)(i).is("disabled",(0,l.SU)(f))]),style:(0,u.j5)((0,l.SU)(v)),onMousedown:t[0]||(t[0]=(...e)=>(0,l.SU)(C)&&(0,l.SU)(C)(...e)),onTouchstart:t[1]||(t[1]=(...e)=>(0,l.SU)(C)&&(0,l.SU)(C)(...e))},[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(i).e("bar")),style:(0,u.j5)((0,l.SU)(y))},null,6),(0,s.Wm)(fI,{id:e.range?void 0:(0,l.SU)(A),ref_key:"firstButton",ref:p,"model-value":(0,l.SU)(j),vertical:e.vertical,"tooltip-class":e.tooltipClass,placement:e.placement,role:"slider","aria-label":e.range||!(0,l.SU)(U)?(0,l.SU)(P):void 0,"aria-labelledby":!e.range&&(0,l.SU)(U)?null==(r=(0,l.SU)(c))?void 0:r.labelId:void 0,"aria-valuemin":e.min,"aria-valuemax":e.range?(0,l.SU)(V):e.max,"aria-valuenow":(0,l.SU)(j),"aria-valuetext":(0,l.SU)(L),"aria-orientation":e.vertical?"vertical":"horizontal","aria-disabled":(0,l.SU)(f),"onUpdate:modelValue":(0,l.SU)(E)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),e.range?((0,s.wg)(),(0,s.j4)(fI,{key:0,ref_key:"secondButton",ref:h,"model-value":(0,l.SU)(V),vertical:e.vertical,"tooltip-class":e.tooltipClass,placement:e.placement,role:"slider","aria-label":(0,l.SU)(R),"aria-valuemin":(0,l.SU)(j),"aria-valuemax":e.max,"aria-valuenow":(0,l.SU)(V),"aria-valuetext":(0,l.SU)(N),"aria-orientation":e.vertical?"vertical":"horizontal","aria-disabled":(0,l.SU)(f),"onUpdate:modelValue":(0,l.SU)(M)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):(0,s.kq)("v-if",!0),e.showStops?((0,s.wg)(),(0,s.iD)("div",_I,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)((0,l.SU)(k),((e,t)=>((0,s.wg)(),(0,s.iD)("div",{key:t,class:(0,u.C_)((0,l.SU)(i).e("stop")),style:(0,u.j5)((0,l.SU)(T)(e))},null,6)))),128))])):(0,s.kq)("v-if",!0),(0,l.SU)(z).length>0?((0,s.wg)(),(0,s.iD)(s.HY,{key:2},[(0,s._)("div",null,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)((0,l.SU)(z),((e,t)=>((0,s.wg)(),(0,s.iD)("div",{key:t,style:(0,u.j5)((0,l.SU)(T)(e.position)),class:(0,u.C_)([(0,l.SU)(i).e("stop"),(0,l.SU)(i).e("marks-stop")])},null,6)))),128))]),(0,s._)("div",{class:(0,u.C_)((0,l.SU)(i).e("marks"))},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)((0,l.SU)(z),((e,t)=>((0,s.wg)(),(0,s.j4)((0,l.SU)(gI),{key:t,mark:e.mark,style:(0,u.j5)((0,l.SU)(T)(e.position))},null,8,["mark","style"])))),128))],2)],64)):(0,s.kq)("v-if",!0)],38),e.showInput&&!e.range?((0,s.wg)(),(0,s.j4)((0,l.SU)(XE),{key:0,ref:"input","model-value":(0,l.SU)(j),class:(0,u.C_)((0,l.SU)(i).e("input")),step:e.step,disabled:(0,l.SU)(f),controls:e.showInputControls,min:e.min,max:e.max,debounce:e.debounce,size:(0,l.SU)(D),"onUpdate:modelValue":(0,l.SU)(E),onChange:(0,l.SU)(S)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):(0,s.kq)("v-if",!0)],42,xI)}}});var MI=(0,y.Z)(EI,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const kI=(0,D.nz)(MI),TI=(0,d.o8)({prefixCls:{type:String}}),AI=(0,s.aZ)({name:"ElSpaceItem",props:TI,setup(e,{slots:t}){const n=(0,b.s3)("space"),r=(0,s.Fl)((()=>`${e.prefixCls||n.b()}__item`));return()=>(0,s.h)("div",{class:r.value},(0,s.WI)(t,"default"))}}),UI={small:8,default:12,large:16};function II(e){const t=(0,b.s3)("space"),n=(0,s.Fl)((()=>[t.b(),t.m(e.direction),e.class])),r=(0,l.iH)(0),i=(0,l.iH)(0),o=(0,s.Fl)((()=>{const t=e.wrap||e.fill?{flexWrap:"wrap",marginBottom:`-${i.value}px`}:{},n={alignItems:e.alignment};return[t,n,e.style]})),a=(0,s.Fl)((()=>{const t={paddingBottom:`${i.value}px`,marginRight:`${r.value}px`},n=e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{};return[t,n]}));return(0,s.m0)((()=>{const{size:t="small",wrap:n,direction:o,fill:a}=e;if((0,u.kJ)(t)){const[e=0,n=0]=t;r.value=e,i.value=n}else{let e;e=(0,p.hj)(t)?t:UI[t||"small"]||UI.small,(n||a)&&"horizontal"===o?r.value=i.value=e:"horizontal"===o?(r.value=e,i.value=0):(i.value=e,r.value=0)}})),{classes:n,containerStyle:o,itemStyle:a}}const DI=(0,d.o8)({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:(0,d.Cq)([String,Object,Array]),default:""},style:{type:(0,d.Cq)([String,Array,Object]),default:""},alignment:{type:(0,d.Cq)(String),default:"center"},prefixCls:{type:String},spacer:{type:(0,d.Cq)([Object,String,Number,Array]),default:null,validator:e=>(0,s.lA)(e)||(0,p.hj)(e)||(0,u.HD)(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:Fo.k,validator:e=>(0,p.hj)(e)||(0,u.kJ)(e)&&2===e.length&&e.every(p.hj)}}),OI=(0,s.aZ)({name:"ElSpace",props:DI,setup(e,{slots:t}){const{classes:n,containerStyle:r,itemStyle:i}=II(e);function o(t,n="",r=[]){const{prefixCls:a}=e;return t.forEach(((e,t)=>{tl(e)?(0,u.kJ)(e.children)&&e.children.forEach(((e,t)=>{tl(e)&&(0,u.kJ)(e.children)?o(e.children,`${n+t}-`,r):r.push((0,s.Wm)(AI,{style:i.value,prefixCls:a,key:`nested-${n+t}`},{default:()=>[e]},el.PROPS|el.STYLE,["style","prefixCls"]))})):rl(e)&&r.push((0,s.Wm)(AI,{style:i.value,prefixCls:a,key:`LoopKey${n+t}`},{default:()=>[e]},el.PROPS|el.STYLE,["style","prefixCls"]))})),r}return()=>{var a;const{spacer:l,direction:c}=e,d=(0,s.WI)(t,"default",{key:0},(()=>[]));if(0===(null!=(a=d.children)?a:[]).length)return null;if((0,u.kJ)(d.children)){let e=o(d.children);if(l){const t=e.length-1;e=e.reduce(((e,n,r)=>{const o=[...e,n];return r!==t&&o.push((0,s.Wm)("span",{style:[i.value,"vertical"===c?"width: 100%":null],key:r},[(0,s.lA)(l)?l:(0,s.Uk)(l,el.TEXT)],el.STYLE)),o}),[])}return(0,s.Wm)("div",{class:n.value,style:r.value},e,el.STYLE|el.CLASS)}return d.children}}}),PI=(0,D.nz)(OI),LI=(0,d.o8)({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:(0,d.Cq)([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:(0,d.Cq)([String,Object,Array])}}),RI=(0,s.aZ)({name:"ElStatistic"}),NI=(0,s.aZ)({...RI,props:LI,setup(e,{expose:t}){const n=e,r=(0,b.s3)("statistic"),i=(0,s.Fl)((()=>{const{value:e,formatter:t,precision:r,decimalSeparator:i,groupSeparator:o}=n;if((0,u.mf)(t))return t(e);if(!(0,p.hj)(e))return e;let[a,s=""]=String(e).split(".");return s=s.padEnd(r,"0").slice(0,r>0?r:0),a=a.replace(/\B(?=(\d{3})+(?!\d))/g,o),[a,s].join(s?i:"")}));return t({displayValue:i}),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)((0,l.SU)(r).b())},[e.$slots.title||e.title?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)((0,l.SU)(r).e("head"))},[(0,s.WI)(e.$slots,"title",{},(()=>[(0,s.Uk)((0,u.zw)(e.title),1)]))],2)):(0,s.kq)("v-if",!0),(0,s._)("div",{class:(0,u.C_)((0,l.SU)(r).e("content"))},[e.$slots.prefix||e.prefix?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)((0,l.SU)(r).e("prefix"))},[(0,s.WI)(e.$slots,"prefix",{},(()=>[(0,s._)("span",null,(0,u.zw)(e.prefix),1)]))],2)):(0,s.kq)("v-if",!0),(0,s._)("span",{class:(0,u.C_)((0,l.SU)(r).e("number")),style:(0,u.j5)(e.valueStyle)},(0,u.zw)((0,l.SU)(i)),7),e.$slots.suffix||e.suffix?((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,u.C_)((0,l.SU)(r).e("suffix"))},[(0,s.WI)(e.$slots,"suffix",{},(()=>[(0,s._)("span",null,(0,u.zw)(e.suffix),1)]))],2)):(0,s.kq)("v-if",!0)],2)],2))}});var FI=(0,y.Z)(NI,[["__file","/home/runner/work/element-plus/element-plus/packages/components/statistic/src/statistic.vue"]]);const zI=(0,D.nz)(FI),BI=(0,d.o8)({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:(0,d.Cq)([Number,Object]),default:0},valueStyle:{type:(0,d.Cq)([String,Object,Array])}}),HI={finish:()=>!0,[f]:e=>(0,p.hj)(e)},jI=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]],VI=e=>(0,p.hj)(e)?new Date(e).getTime():e.valueOf(),WI=(e,t)=>{let n=e;const r=/\[([^\]]*)]/g,i=jI.reduce(((e,[t,r])=>{const i=new RegExp(`${t}+(?![^\\[\\]]*\\])`,"g");if(i.test(e)){const t=Math.floor(n/r);return n-=t*r,e.replace(i,(e=>String(t).padStart(e.length,"0")))}return e}),t);return i.replace(r,"$1")},$I=(0,s.aZ)({name:"ElCountdown"}),qI=(0,s.aZ)({...$I,props:BI,emits:HI,setup(e,{expose:t,emit:n}){const r=e;let i;const o=(0,l.iH)(VI(r.value)-Date.now()),a=(0,s.Fl)((()=>WI(o.value,r.format))),u=e=>WI(e,r.format),c=()=>{i&&(jA(i),i=void 0)},d=()=>{const e=VI(r.value),t=()=>{let r=e-Date.now();n("change",r),r<=0?(r=0,c(),n("finish")):i=HA(t),o.value=r};i=HA(t)};return(0,s.YP)((()=>[r.value,r.format]),(()=>{c(),d()}),{immediate:!0}),(0,s.Jd)((()=>{c()})),t({displayValue:a}),(e,t)=>((0,s.wg)(),(0,s.j4)((0,l.SU)(zI),{value:o.value,title:e.title,prefix:e.prefix,suffix:e.suffix,"value-style":e.valueStyle,formatter:u},(0,s.Nv)({_:2},[(0,s.Ko)(e.$slots,((t,n)=>({name:n,fn:(0,s.w5)((()=>[(0,s.WI)(e.$slots,n)]))})))]),1032,["value","title","prefix","suffix","value-style"]))}});var GI=(0,y.Z)(qI,[["__file","/home/runner/work/element-plus/element-plus/packages/components/countdown/src/countdown.vue"]]);const ZI=(0,D.nz)(GI),YI=(0,d.o8)({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),KI={[f]:(e,t)=>[e,t].every(p.hj)},XI=(0,s.aZ)({name:"ElSteps"}),JI=(0,s.aZ)({...XI,props:YI,emits:KI,setup(e,{emit:t}){const n=e,r=(0,b.s3)("steps"),{children:i,addChild:o,removeChild:a}=ll((0,s.FN)(),"ElStep");return(0,s.YP)(i,(()=>{i.value.forEach(((e,t)=>{e.setIndex(t)}))})),(0,s.JJ)("ElSteps",{props:n,steps:i,addStep:o,removeStep:a}),(0,s.YP)((()=>n.active),((e,n)=>{t(f,e,n)})),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)([(0,l.SU)(r).b(),(0,l.SU)(r).m(e.simple?"simple":e.direction)])},[(0,s.WI)(e.$slots,"default")],2))}});var QI=(0,y.Z)(JI,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const eD=(0,d.o8)({title:{type:String,default:""},icon:{type:N.AA},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),tD=(0,s.aZ)({name:"ElStep"}),nD=(0,s.aZ)({...tD,props:eD,setup(e){const t=e,n=(0,b.s3)("step"),r=(0,l.iH)(-1),i=(0,l.iH)({}),o=(0,l.iH)(""),a=(0,s.f3)("ElSteps"),c=(0,s.FN)();(0,s.bv)((()=>{(0,s.YP)([()=>a.props.active,()=>a.props.processStatus,()=>a.props.finishStatus],(([e])=>{E(e)}),{immediate:!0})})),(0,s.Jd)((()=>{a.removeStep(M.uid)}));const d=(0,s.Fl)((()=>t.status||o.value)),h=(0,s.Fl)((()=>{const e=a.steps.value[r.value-1];return e?e.currentStatus:"wait"})),f=(0,s.Fl)((()=>a.props.alignCenter)),m=(0,s.Fl)((()=>"vertical"===a.props.direction)),g=(0,s.Fl)((()=>a.props.simple)),v=(0,s.Fl)((()=>a.steps.value.length)),y=(0,s.Fl)((()=>{var e;return(null==(e=a.steps.value[v.value-1])?void 0:e.uid)===(null==c?void 0:c.uid)})),w=(0,s.Fl)((()=>g.value?"":a.props.space)),S=(0,s.Fl)((()=>[n.b(),n.is(g.value?"simple":a.props.direction),n.is("flex",y.value&&!w.value&&!f.value),n.is("center",f.value&&!m.value&&!g.value)])),x=(0,s.Fl)((()=>{const e={flexBasis:(0,p.hj)(w.value)?`${w.value}px`:w.value?w.value:100/(v.value-(f.value?0:1))+"%"};return m.value||y.value&&(e.maxWidth=100/v.value+"%"),e})),_=e=>{r.value=e},C=e=>{const t="wait"===e,n={transitionDelay:`${t?"-":""}${150*r.value}ms`},o=e===a.props.processStatus||t?0:100;n.borderWidth=o&&!g.value?"1px":0,n["vertical"===a.props.direction?"height":"width"]=`${o}%`,i.value=n},E=e=>{e>r.value?o.value=a.props.finishStatus:e===r.value&&"error"!==h.value?o.value=a.props.processStatus:o.value="wait";const t=a.steps.value[r.value-1];t&&t.calcProgress(o.value)},M=(0,l.qj)({uid:c.uid,currentStatus:d,setIndex:_,calcProgress:C});return a.addStep(M),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{style:(0,u.j5)((0,l.SU)(x)),class:(0,u.C_)((0,l.SU)(S))},[(0,s.kq)(" icon & line "),(0,s._)("div",{class:(0,u.C_)([(0,l.SU)(n).e("head"),(0,l.SU)(n).is((0,l.SU)(d))])},[(0,l.SU)(g)?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)((0,l.SU)(n).e("line"))},[(0,s._)("i",{class:(0,u.C_)((0,l.SU)(n).e("line-inner")),style:(0,u.j5)(i.value)},null,6)],2)),(0,s._)("div",{class:(0,u.C_)([(0,l.SU)(n).e("icon"),(0,l.SU)(n).is(e.icon||e.$slots.icon?"icon":"text")])},[(0,s.WI)(e.$slots,"icon",{},(()=>[e.icon?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:0,class:(0,u.C_)((0,l.SU)(n).e("icon-inner"))},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.icon)))])),_:1},8,["class"])):"success"===(0,l.SU)(d)?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:1,class:(0,u.C_)([(0,l.SU)(n).e("icon-inner"),(0,l.SU)(n).is("status")])},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.JrY))])),_:1},8,["class"])):"error"===(0,l.SU)(d)?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:2,class:(0,u.C_)([(0,l.SU)(n).e("icon-inner"),(0,l.SU)(n).is("status")])},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.x8P))])),_:1},8,["class"])):(0,l.SU)(g)?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)("div",{key:3,class:(0,u.C_)((0,l.SU)(n).e("icon-inner"))},(0,u.zw)(r.value+1),3))]))],2)],2),(0,s.kq)(" title & description "),(0,s._)("div",{class:(0,u.C_)((0,l.SU)(n).e("main"))},[(0,s._)("div",{class:(0,u.C_)([(0,l.SU)(n).e("title"),(0,l.SU)(n).is((0,l.SU)(d))])},[(0,s.WI)(e.$slots,"title",{},(()=>[(0,s.Uk)((0,u.zw)(e.title),1)]))],2),(0,l.SU)(g)?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)((0,l.SU)(n).e("arrow"))},null,2)):((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,u.C_)([(0,l.SU)(n).e("description"),(0,l.SU)(n).is((0,l.SU)(d))])},[(0,s.WI)(e.$slots,"description",{},(()=>[(0,s.Uk)((0,u.zw)(e.description),1)]))],2))],2)],6))}});var rD=(0,y.Z)(nD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const iD=(0,D.nz)(QI,{Step:rD}),oD=(0,D.dp)(rD),aD=(0,d.o8)({modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:N.AA},inactiveIcon:{type:N.AA},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:(0,d.Cq)(Function)},size:{type:String,validator:yk},tabindex:{type:[String,Number]}}),sD={[h]:e=>(0,p.jn)(e)||(0,u.HD)(e)||(0,p.hj)(e),[f]:e=>(0,p.jn)(e)||(0,u.HD)(e)||(0,p.hj)(e),[m]:e=>(0,p.jn)(e)||(0,u.HD)(e)||(0,p.hj)(e)},lD=["onClick"],uD=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],cD=["aria-hidden"],dD=["aria-hidden"],pD=["aria-hidden"],hD="ElSwitch",fD=(0,s.aZ)({name:hD}),mD=(0,s.aZ)({...fD,props:aD,emits:sD,setup(e,{expose:t,emit:n}){const r=e,i=(0,s.FN)(),{formItem:o}=Re(),a=ze(),c=(0,b.s3)("switch");ha({from:'"value"',replacement:'"model-value" or "v-model"',scope:hD,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},(0,s.Fl)((()=>{var e;return!!(null==(e=i.vnode.props)?void 0:e.value)})));const{inputId:d}=Ne(r,{formItemContext:o}),g=Be((0,s.Fl)((()=>r.loading))),v=(0,l.iH)(!1!==r.modelValue),y=(0,l.iH)(),x=(0,l.iH)(),_=(0,s.Fl)((()=>[c.b(),c.m(a.value),c.is("disabled",g.value),c.is("checked",M.value)])),C=(0,s.Fl)((()=>({width:(0,w.Nn)(r.width)})));(0,s.YP)((()=>r.modelValue),(()=>{v.value=!0})),(0,s.YP)((()=>r.value),(()=>{v.value=!1}));const E=(0,s.Fl)((()=>v.value?r.modelValue:r.value)),M=(0,s.Fl)((()=>E.value===r.activeValue));[r.activeValue,r.inactiveValue].includes(E.value)||(n(h,r.inactiveValue),n(f,r.inactiveValue),n(m,r.inactiveValue)),(0,s.YP)(M,(e=>{var t;y.value.checked=e,r.validateEvent&&(null==(t=null==o?void 0:o.validate)||t.call(o,"change").catch((e=>(0,S.N)(e))))}));const k=()=>{const e=M.value?r.inactiveValue:r.activeValue;n(h,e),n(f,e),n(m,e),(0,s.Y3)((()=>{y.value.checked=M.value}))},T=()=>{if(g.value)return;const{beforeChange:e}=r;if(!e)return void k();const t=e(),n=[(0,u.tI)(t),(0,p.jn)(t)].includes(!0);n||(0,S._)(hD,"beforeChange must return type `Promise` or `boolean`"),(0,u.tI)(t)?t.then((e=>{e&&k()})).catch((e=>{(0,S.N)(hD,`some error occurred: ${e}`)})):t&&k()},A=(0,s.Fl)((()=>c.cssVarBlock({...r.activeColor?{"on-color":r.activeColor}:null,...r.inactiveColor?{"off-color":r.inactiveColor}:null,...r.borderColor?{"border-color":r.borderColor}:null}))),U=()=>{var e,t;null==(t=null==(e=y.value)?void 0:e.focus)||t.call(e)};return(0,s.bv)((()=>{y.value.checked=M.value})),t({focus:U,checked:M}),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)((0,l.SU)(_)),style:(0,u.j5)((0,l.SU)(A)),onClick:(0,P.iM)(T,["prevent"])},[(0,s._)("input",{id:(0,l.SU)(d),ref_key:"input",ref:y,class:(0,u.C_)((0,l.SU)(c).e("input")),type:"checkbox",role:"switch","aria-checked":(0,l.SU)(M),"aria-disabled":(0,l.SU)(g),name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:(0,l.SU)(g),tabindex:e.tabindex,onChange:k,onKeydown:(0,P.D2)(T,["enter"])},null,42,uD),e.inlinePrompt||!e.inactiveIcon&&!e.inactiveText?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)("span",{key:0,class:(0,u.C_)([(0,l.SU)(c).e("label"),(0,l.SU)(c).em("label","left"),(0,l.SU)(c).is("active",!(0,l.SU)(M))])},[e.inactiveIcon?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:0},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.inactiveIcon)))])),_:1})):(0,s.kq)("v-if",!0),!e.inactiveIcon&&e.inactiveText?((0,s.wg)(),(0,s.iD)("span",{key:1,"aria-hidden":(0,l.SU)(M)},(0,u.zw)(e.inactiveText),9,cD)):(0,s.kq)("v-if",!0)],2)),(0,s._)("span",{ref_key:"core",ref:x,class:(0,u.C_)((0,l.SU)(c).e("core")),style:(0,u.j5)((0,l.SU)(C))},[e.inlinePrompt?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)((0,l.SU)(c).e("inner"))},[e.activeIcon||e.inactiveIcon?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:0,class:(0,u.C_)((0,l.SU)(c).is("icon"))},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)((0,l.SU)(M)?e.activeIcon:e.inactiveIcon)))])),_:1},8,["class"])):e.activeText||e.inactiveText?((0,s.wg)(),(0,s.iD)("span",{key:1,class:(0,u.C_)((0,l.SU)(c).is("text")),"aria-hidden":!(0,l.SU)(M)},(0,u.zw)((0,l.SU)(M)?e.activeText:e.inactiveText),11,dD)):(0,s.kq)("v-if",!0)],2)):(0,s.kq)("v-if",!0),(0,s._)("div",{class:(0,u.C_)((0,l.SU)(c).e("action"))},[e.loading?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:0,class:(0,u.C_)((0,l.SU)(c).is("loading"))},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.gbz))])),_:1},8,["class"])):(0,s.kq)("v-if",!0)],2)],6),e.inlinePrompt||!e.activeIcon&&!e.activeText?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)("span",{key:1,class:(0,u.C_)([(0,l.SU)(c).e("label"),(0,l.SU)(c).em("label","right"),(0,l.SU)(c).is("active",(0,l.SU)(M))])},[e.activeIcon?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:0},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.activeIcon)))])),_:1})):(0,s.kq)("v-if",!0),!e.activeIcon&&e.activeText?((0,s.wg)(),(0,s.iD)("span",{key:1,"aria-hidden":!(0,l.SU)(M)},(0,u.zw)(e.activeText),9,pD)):(0,s.kq)("v-if",!0)],2))],14,lD))}});var gD=(0,y.Z)(mD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const vD=(0,D.nz)(gD);function yD(e,t,n){(void 0!==n&&!(0,Hh.Z)(e[t],n)||void 0===n&&!(t in e))&&(0,Wl.Z)(e,t,n)}var bD=yD;function wD(e){return function(t,n,r){var i=-1,o=Object(t),a=r(t),s=a.length;while(s--){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}var SD=wD,xD=SD(),_D=xD;function CD(e){return(0,Kl.Z)(e)&&Sc(e)}var ED=CD,MD="[object Object]",kD=Function.prototype,TD=Object.prototype,AD=kD.toString,UD=TD.hasOwnProperty,ID=AD.call(Object);function DD(e){if(!(0,Kl.Z)(e)||(0,Yl.Z)(e)!=MD)return!1;var t=od(e);if(null===t)return!0;var n=UD.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&AD.call(n)==ID}var OD=DD;function PD(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var LD=PD;function RD(e){return ql(e,Oc(e))}var ND=RD;function FD(e,t,n,r,i,o,a){var s=LD(e,n),l=LD(t,n),u=a.get(l);if(u)bD(e,n,u);else{var c=o?o(s,l,n+"",e,t,a):void 0,d=void 0===c;if(d){var p=(0,ou.Z)(l),h=!p&&fu(l),f=!p&&!h&&rc(l);c=l,p||h||f?(0,ou.Z)(s)?c=s:ED(s)?c=Wc(s):h?(d=!1,c=jc(l,!0)):f?(d=!1,c=op(l,!0)):c=[]:OD(l)||iu(l)?(c=s,iu(s)?c=ND(s):(0,$.Z)(s)&&!(0,bc.Z)(s)||(c=Ip(l))):d=!1}d&&(a.set(l,c),i(c,l,r,o,a),a["delete"](l)),bD(e,n,c)}}var zD=FD;function BD(e,t,n,r,i){e!==t&&_D(t,(function(o,a){if(i||(i=new Bl),(0,$.Z)(o))zD(e,t,a,n,BD,r,i);else{var s=r?r(LD(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),bD(e,a,s)}}),Oc)}var HD=BD;function jD(e,t){return Lm(Sm(e,t,Mm),e+"")}var VD=jD;function WD(e,t,n){if(!(0,$.Z)(n))return!1;var r=typeof t;return!!("number"==r?Sc(n)&&(0,mu.Z)(t,n.length):"string"==r&&t in n)&&(0,Hh.Z)(n[t],e)}var $D=WD;function qD(e){return VD((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&$D(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);while(++r"string"===typeof t?(0,rk.Z)(n,t):t(n,r,e)))):("$key"!==t&&(0,u.Kn)(n)&&"$value"in n&&(n=n.$value),[(0,u.Kn)(n)?(0,rk.Z)(n,t):n])},a=function(e,t){if(r)return r(e.value,t.value);for(let n=0,r=e.key.length;nt.key[n])return 1}return 0};return e.map(((e,t)=>({value:e,index:t,key:o?o(e,t):null}))).sort(((e,t)=>{let r=a(e,t);return r||(r=e.index-t.index),r*+n})).map((e=>e.value))},NO=function(e,t){let n=null;return e.columns.forEach((e=>{e.id===t&&(n=e)})),n},FO=function(e,t){let n=null;for(let r=0;r{if(!e)throw new Error("Row is required when get row identity");if("string"===typeof t){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let r=e;for(const e of n)r=r[e];return`${r}`}if("function"===typeof t)return t.call(null,e)},HO=function(e,t){const n={};return(e||[]).forEach(((e,r)=>{n[BO(e,t)]={row:e,index:r}})),n};function jO(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if((0,u.RI)(t,r)){const e=t[r];"undefined"!==typeof e&&(n[r]=e)}return n}function VO(e){return""===e||void 0!==e&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function WO(e){return""===e||void 0!==e&&(e=VO(e),Number.isNaN(e)&&(e=80)),e}function $O(e){return"number"===typeof e?e:"string"===typeof e?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function qO(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function GO(e,t,n){let r=!1;const i=e.indexOf(t),o=-1!==i,a=a=>{"add"===a?e.push(t):e.splice(i,1),r=!0,(0,u.kJ)(t.children)&&t.children.forEach((t=>{GO(e,t,null!=n?n:!o)}))};return(0,p.jn)(n)?n&&!o?a("add"):!n&&o&&a("remove"):a(o?"remove":"add"),r}function ZO(e,t,n="children",r="hasChildren"){const i=e=>!(Array.isArray(e)&&e.length);function o(e,a,s){t(e,a,s),a.forEach((e=>{if(e[r])return void t(e,null,s+1);const a=e[n];i(a)||o(e,a,s+1)}))}e.forEach((e=>{if(e[r])return void t(e,null,0);const a=e[n];i(a)||o(e,a,0)}))}let YO;function KO(e,t,n,r,i){i=YD({enterable:!0,showArrow:!0},i);const o=null==e?void 0:e.dataset.prefix,a=null==e?void 0:e.querySelector(`.${o}-scrollbar__wrap`);function s(){const t="light"===i.effect,a=document.createElement("div");return a.className=[`${o}-popper`,t?"is-light":"is-dark",i.popperClass||""].join(" "),n=PO(n),a.innerHTML=n,a.style.zIndex=String(r()),null==e||e.appendChild(a),a}function l(){const e=document.createElement("div");return e.className=`${o}-popper__arrow`,e}function u(){c&&c.update()}null==YO||YO(),YO=()=>{try{c&&c.destroy(),h&&(null==e||e.removeChild(h)),t.removeEventListener("mouseenter",d),t.removeEventListener("mouseleave",p),null==a||a.removeEventListener("scroll",YO),YO=void 0}catch(hz){}};let c=null,d=u,p=YO;i.enterable&&({onOpen:d,onClose:p}=Et({showAfter:i.showAfter,hideAfter:i.hideAfter,open:u,close:YO}));const h=s();h.onmouseenter=d,h.onmouseleave=p;const f=[];if(i.offset&&f.push({name:"offset",options:{offset:[0,i.offset]}}),i.showArrow){const e=h.appendChild(l());f.push({name:"arrow",options:{element:e,padding:10}})}const m=i.popperOptions||{};return c=Ir(t,h,{placement:i.placement||"top",strategy:"fixed",...m,modifiers:m.modifiers?f.concat(m.modifiers):f}),t.addEventListener("mouseenter",d),t.addEventListener("mouseleave",p),null==a||a.addEventListener("scroll",YO),c}function XO(e){return e.children?OO(e.children,XO):[e]}function JO(e,t){return e+t.colSpan}const QO=(e,t,n,r)=>{let i=0,o=e;const a=n.states.columns.value;if(r){const t=XO(r[e]),n=a.slice(0,a.indexOf(t[0]));i=n.reduce(JO,0),o=i+t.reduce(JO,0)-1}else i=e;let s;switch(t){case"left":o=a.length-n.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:o=a.length-n.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:i,after:o}:{}},eP=(e,t,n,r,i,o=0)=>{const a=[],{direction:s,start:l,after:u}=QO(t,n,r,i);if(s){const t="left"===s;a.push(`${e}-fixed-column--${s}`),t&&u+o===r.states.fixedLeafColumnsLength.value-1?a.push("is-last-column"):t||l-o!==r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value||a.push("is-first-column")}return a};function tP(e,t){return e+(null===t.realWidth||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const nP=(e,t,n,r)=>{const{direction:i,start:o=0,after:a=0}=QO(e,t,n,r);if(!i)return;const s={},l="left"===i,u=n.states.columns.value;return l?s.left=u.slice(0,o).reduce(tP,0):s.right=u.slice(a+1).reverse().reduce(tP,0),s},rP=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function iP(e){const t=(0,s.FN)(),n=(0,l.iH)(!1),r=(0,l.iH)([]),i=()=>{const t=e.data.value||[],i=e.rowKey.value;if(n.value)r.value=t.slice();else if(i){const e=HO(r.value,i);r.value=t.reduce(((t,n)=>{const r=BO(n,i),o=e[r];return o&&t.push(n),t}),[])}else r.value=[]},o=(e,n)=>{const i=GO(r.value,e,n);i&&t.emit("expand-change",e,r.value.slice())},a=n=>{t.store.assertRowKey();const i=e.data.value||[],o=e.rowKey.value,a=HO(i,o);r.value=n.reduce(((e,t)=>{const n=a[t];return n&&e.push(n.row),e}),[])},u=t=>{const n=e.rowKey.value;if(n){const e=HO(r.value,n);return!!e[BO(t,n)]}return r.value.includes(t)};return{updateExpandRows:i,toggleRowExpansion:o,setExpandRowKeys:a,isRowExpanded:u,states:{expandRows:r,defaultExpandAll:n}}}function oP(e){const t=(0,s.FN)(),n=(0,l.iH)(null),r=(0,l.iH)(null),i=e=>{t.store.assertRowKey(),n.value=e,a(e)},o=()=>{n.value=null},a=n=>{const{data:i,rowKey:o}=e;let a=null;o.value&&(a=((0,l.SU)(i)||[]).find((e=>BO(e,o.value)===n))),r.value=a,t.emit("current-change",r.value,null)},u=e=>{const n=r.value;if(e&&e!==n)return r.value=e,void t.emit("current-change",r.value,n);!e&&n&&(r.value=null,t.emit("current-change",null,n))},c=()=>{const i=e.rowKey.value,s=e.data.value||[],l=r.value;if(!s.includes(l)&&l){if(i){const e=BO(l,i);a(e)}else r.value=null;null===r.value&&t.emit("current-change",null,l)}else n.value&&(a(n.value),o())};return{setCurrentRowKey:i,restoreCurrentRowKey:o,setCurrentRowByKey:a,updateCurrentRow:u,updateCurrentRowData:c,states:{_currentRowKey:n,currentRow:r}}}function aP(e){const t=(0,l.iH)([]),n=(0,l.iH)({}),r=(0,l.iH)(16),i=(0,l.iH)(!1),o=(0,l.iH)({}),a=(0,l.iH)("hasChildren"),u=(0,l.iH)("children"),c=(0,s.FN)(),d=(0,s.Fl)((()=>{if(!e.rowKey.value)return{};const t=e.data.value||[];return h(t)})),p=(0,s.Fl)((()=>{const t=e.rowKey.value,n=Object.keys(o.value),r={};return n.length?(n.forEach((e=>{if(o.value[e].length){const n={children:[]};o.value[e].forEach((e=>{const i=BO(e,t);n.children.push(i),e[a.value]&&!r[i]&&(r[i]={children:[]})})),r[e]=n}})),r):r})),h=t=>{const n=e.rowKey.value,r={};return ZO(t,((e,t,o)=>{const a=BO(e,n);Array.isArray(t)?r[a]={children:t.map((e=>BO(e,n))),level:o}:i.value&&(r[a]={children:[],lazy:!0,level:o})}),u.value,a.value),r},f=(e=!1,r=(e=>null==(e=c.store)?void 0:e.states.defaultExpandAll.value)())=>{var o;const a=d.value,s=p.value,u=Object.keys(a),h={};if(u.length){const o=(0,l.SU)(n),c=[],d=(n,i)=>{if(e)return t.value?r||t.value.includes(i):!(!r&&!(null==n?void 0:n.expanded));{const e=r||t.value&&t.value.includes(i);return!(!(null==n?void 0:n.expanded)&&!e)}};u.forEach((e=>{const t=o[e],n={...a[e]};if(n.expanded=d(t,e),n.lazy){const{loaded:r=!1,loading:i=!1}=t||{};n.loaded=!!r,n.loading=!!i,c.push(e)}h[e]=n}));const p=Object.keys(s);i.value&&p.length&&c.length&&p.forEach((e=>{const t=o[e],n=s[e].children;if(c.includes(e)){if(0!==h[e].children.length)throw new Error("[ElTable]children must be an empty array.");h[e].children=n}else{const{loaded:r=!1,loading:i=!1}=t||{};h[e]={lazy:!0,loaded:!!r,loading:!!i,expanded:d(t,e),children:n,level:""}}}))}n.value=h,null==(o=c.store)||o.updateTableScrollY()};(0,s.YP)((()=>t.value),(()=>{f(!0)})),(0,s.YP)((()=>d.value),(()=>{f()})),(0,s.YP)((()=>p.value),(()=>{f()}));const m=e=>{t.value=e,f()},g=(t,r)=>{c.store.assertRowKey();const i=e.rowKey.value,o=BO(t,i),a=o&&n.value[o];if(o&&a&&"expanded"in a){const e=a.expanded;r="undefined"===typeof r?!a.expanded:r,n.value[o].expanded=r,e!==r&&c.emit("expand-change",t,r),c.store.updateTableScrollY()}},v=t=>{c.store.assertRowKey();const r=e.rowKey.value,o=BO(t,r),a=n.value[o];i.value&&a&&"loaded"in a&&!a.loaded?y(t,o,a):g(t,void 0)},y=(e,t,r)=>{const{load:i}=c.props;i&&!n.value[t].loaded&&(n.value[t].loading=!0,i(e,r,(r=>{if(!Array.isArray(r))throw new TypeError("[ElTable] data must be an array");n.value[t].loading=!1,n.value[t].loaded=!0,n.value[t].expanded=!0,r.length&&(o.value[t]=r),c.emit("expand-change",e,!0)})))};return{loadData:y,loadOrToggle:v,toggleTreeExpansion:g,updateTreeExpandKeys:m,updateTreeData:f,normalize:h,states:{expandRowKeys:t,treeData:n,indent:r,lazy:i,lazyTreeNodeMap:o,lazyColumnIdentifier:a,childrenColumnName:u}}}const sP=(e,t)=>{const n=t.sortingColumn;return n&&"string"!==typeof n.sortable?RO(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy):e},lP=e=>{const t=[];return e.forEach((e=>{e.children?t.push.apply(t,lP(e.children)):t.push(e)})),t};function uP(){var e;const t=(0,s.FN)(),{size:n}=(0,l.BK)(null==(e=t.proxy)?void 0:e.$props),r=(0,l.iH)(null),i=(0,l.iH)([]),o=(0,l.iH)([]),a=(0,l.iH)(!1),c=(0,l.iH)([]),d=(0,l.iH)([]),p=(0,l.iH)([]),h=(0,l.iH)([]),f=(0,l.iH)([]),m=(0,l.iH)([]),g=(0,l.iH)([]),v=(0,l.iH)([]),y=[],b=(0,l.iH)(0),w=(0,l.iH)(0),S=(0,l.iH)(0),x=(0,l.iH)(!1),_=(0,l.iH)([]),C=(0,l.iH)(!1),E=(0,l.iH)(!1),M=(0,l.iH)(null),k=(0,l.iH)({}),T=(0,l.iH)(null),A=(0,l.iH)(null),U=(0,l.iH)(null),I=(0,l.iH)(null),D=(0,l.iH)(null);(0,s.YP)(i,(()=>t.state&&R(!1)),{deep:!0});const O=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},P=e=>{var t;null==(t=e.children)||t.forEach((t=>{t.fixed=e.fixed,P(t)}))},L=()=>{c.value.forEach((e=>{P(e)})),h.value=c.value.filter((e=>!0===e.fixed||"left"===e.fixed)),f.value=c.value.filter((e=>"right"===e.fixed)),h.value.length>0&&c.value[0]&&"selection"===c.value[0].type&&!c.value[0].fixed&&(c.value[0].fixed=!0,h.value.unshift(c.value[0]));const e=c.value.filter((e=>!e.fixed));d.value=[].concat(h.value).concat(e).concat(f.value);const t=lP(e),n=lP(h.value),r=lP(f.value);b.value=t.length,w.value=n.length,S.value=r.length,p.value=[].concat(n).concat(t).concat(r),a.value=h.value.length>0||f.value.length>0},R=(e,n=!1)=>{e&&L(),n?t.state.doLayout():t.state.debouncedUpdateLayout()},N=e=>_.value.includes(e),F=()=>{x.value=!1;const e=_.value;e.length&&(_.value=[],t.emit("selection-change",[]))},z=()=>{let e;if(r.value){e=[];const t=HO(_.value,r.value),n=HO(i.value,r.value);for(const r in t)(0,u.RI)(t,r)&&!n[r]&&e.push(t[r].row)}else e=_.value.filter((e=>!i.value.includes(e)));if(e.length){const n=_.value.filter((t=>!e.includes(t)));_.value=n,t.emit("selection-change",n.slice())}},B=()=>(_.value||[]).slice(),H=(e,n=void 0,r=!0)=>{const i=GO(_.value,e,n);if(i){const n=(_.value||[]).slice();r&&t.emit("select",n,e),t.emit("selection-change",n)}},j=()=>{var e,n;const r=E.value?!x.value:!(x.value||_.value.length);x.value=r;let o=!1,a=0;const s=null==(n=null==(e=null==t?void 0:t.store)?void 0:e.states)?void 0:n.rowKey.value;i.value.forEach(((e,t)=>{const n=t+a;M.value?M.value.call(null,e,n)&&GO(_.value,e,r)&&(o=!0):GO(_.value,e,r)&&(o=!0),a+=$(BO(e,s))})),o&&t.emit("selection-change",_.value?_.value.slice():[]),t.emit("select-all",_.value)},V=()=>{const e=HO(_.value,r.value);i.value.forEach((t=>{const n=BO(t,r.value),i=e[n];i&&(_.value[i.index]=t)}))},W=()=>{var e,n,o;if(0===(null==(e=i.value)?void 0:e.length))return void(x.value=!1);let a;r.value&&(a=HO(_.value,r.value));const s=function(e){return a?!!a[BO(e,r.value)]:_.value.includes(e)};let l=!0,u=0,c=0;for(let r=0,d=(i.value||[]).length;r{var n;if(!t||!t.store)return 0;const{treeData:r}=t.store.states;let i=0;const o=null==(n=r.value[e])?void 0:n.children;return o&&(i+=o.length,o.forEach((e=>{i+=$(e)}))),i},q=(e,t)=>{Array.isArray(e)||(e=[e]);const n={};return e.forEach((e=>{k.value[e.id]=t,n[e.columnKey||e.id]=t})),n},G=(e,t,n)=>{A.value&&A.value!==e&&(A.value.order=null),A.value=e,U.value=t,I.value=n},Z=()=>{let e=(0,l.SU)(o);Object.keys(k.value).forEach((t=>{const n=k.value[t];if(!n||0===n.length)return;const r=NO({columns:p.value},t);r&&r.filterMethod&&(e=e.filter((e=>n.some((t=>r.filterMethod.call(null,t,e,r))))))})),T.value=e},Y=()=>{i.value=sP(T.value,{sortingColumn:A.value,sortProp:U.value,sortOrder:I.value})},K=(e=void 0)=>{e&&e.filter||Z(),Y()},X=e=>{const{tableHeaderRef:n}=t.refs;if(!n)return;const r=Object.assign({},n.filterPanels),i=Object.keys(r);if(i.length)if("string"===typeof e&&(e=[e]),Array.isArray(e)){const n=e.map((e=>FO({columns:p.value},e)));i.forEach((e=>{const t=n.find((t=>t.id===e));t&&(t.filteredValue=[])})),t.store.commit("filterChange",{column:n,values:[],silent:!0,multi:!0})}else i.forEach((e=>{const t=p.value.find((t=>t.id===e));t&&(t.filteredValue=[])})),k.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},J=()=>{A.value&&(G(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:Q,toggleRowExpansion:ee,updateExpandRows:te,states:ne,isRowExpanded:re}=iP({data:i,rowKey:r}),{updateTreeExpandKeys:ie,toggleTreeExpansion:oe,updateTreeData:ae,loadOrToggle:se,states:le}=aP({data:i,rowKey:r}),{updateCurrentRowData:ue,updateCurrentRow:ce,setCurrentRowKey:de,states:pe}=oP({data:i,rowKey:r}),he=e=>{Q(e),ie(e)},fe=(e,t)=>{const n=p.value.some((({type:e})=>"expand"===e));n?ee(e,t):oe(e,t)};return{assertRowKey:O,updateColumns:L,scheduleLayout:R,isSelected:N,clearSelection:F,cleanSelection:z,getSelectionRows:B,toggleRowSelection:H,_toggleAllSelection:j,toggleAllSelection:null,updateSelectionByRowKey:V,updateAllSelected:W,updateFilters:q,updateCurrentRow:ce,updateSort:G,execFilter:Z,execSort:Y,execQuery:K,clearFilter:X,clearSort:J,toggleRowExpansion:ee,setExpandRowKeysAdapter:he,setCurrentRowKey:de,toggleRowExpansionAdapter:fe,isRowExpanded:re,updateExpandRows:te,updateCurrentRowData:ue,loadOrToggle:se,updateTreeData:ae,states:{tableSize:n,rowKey:r,data:i,_data:o,isComplex:a,_columns:c,originColumns:d,columns:p,fixedColumns:h,rightFixedColumns:f,leafColumns:m,fixedLeafColumns:g,rightFixedLeafColumns:v,updateOrderFns:y,leafColumnsLength:b,fixedLeafColumnsLength:w,rightFixedLeafColumnsLength:S,isAllSelected:x,selection:_,reserveSelection:C,selectOnIndeterminate:E,selectable:M,filters:k,filteredData:T,sortingColumn:A,sortProp:U,sortOrder:I,hoverRow:D,...ne,...le,...pe}}}function cP(e,t){return e.map((e=>{var n;return e.id===t.id?t:((null==(n=e.children)?void 0:n.length)&&(e.children=cP(e.children,t)),e)}))}function dP(e){e.forEach((e=>{var t,n;e.no=null==(t=e.getColumnIndex)?void 0:t.call(e),(null==(n=e.children)?void 0:n.length)&&dP(e.children)})),e.sort(((e,t)=>e.no-t.no))}function pP(){const e=(0,s.FN)(),t=uP(),n=(0,b.s3)("table"),r={setData(t,n){const r=(0,l.SU)(t._data)!==n;t.data.value=n,t._data.value=n,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),(0,l.SU)(t.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):r?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(t,n,r,i){const o=(0,l.SU)(t._columns);let a=[];r?(r&&!r.children&&(r.children=[]),r.children.push(n),a=cP(o,r)):(o.push(n),a=o),dP(a),t._columns.value=a,t.updateOrderFns.push(i),"selection"===n.type&&(t.selectable.value=n.selectable,t.reserveSelection.value=n.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(t,n){var r;const i=null==(r=n.getColumnIndex)?void 0:r.call(n);i!==n.no&&(dP(t._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(t,n,r,i){const o=(0,l.SU)(t._columns)||[];if(r)r.children.splice(r.children.findIndex((e=>e.id===n.id)),1),(0,s.Y3)((()=>{var e;0===(null==(e=r.children)?void 0:e.length)&&delete r.children})),t._columns.value=cP(o,r);else{const e=o.indexOf(n);e>-1&&(o.splice(e,1),t._columns.value=o)}const a=t.updateOrderFns.indexOf(i);a>-1&&t.updateOrderFns.splice(a,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(t,n){const{prop:r,order:i,init:o}=n;if(r){const n=(0,l.SU)(t.columns).find((e=>e.property===r));n&&(n.order=i,e.store.updateSort(n,r,i),e.store.commit("changeSortCondition",{init:o}))}},changeSortCondition(t,n){const{sortingColumn:r,sortProp:i,sortOrder:o}=t,a=(0,l.SU)(r),s=(0,l.SU)(i),u=(0,l.SU)(o);null===u&&(t.sortingColumn.value=null,t.sortProp.value=null);const c={filter:!0};e.store.execQuery(c),n&&(n.silent||n.init)||e.emit("sort-change",{column:a,prop:s,order:u}),e.store.updateTableScrollY()},filterChange(t,n){const{column:r,values:i,silent:o}=n,a=e.store.updateFilters(r,i);e.store.execQuery(),o||e.emit("filter-change",a),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(t,n){e.store.toggleRowSelection(n),e.store.updateAllSelected()},setHoverRow(e,t){e.hoverRow.value=t},setCurrentRow(t,n){e.store.updateCurrentRow(n)}},i=function(t,...n){const r=e.store.mutations;if(!r[t])throw new Error(`Action not found: ${t}`);r[t].apply(e,[e.store.states].concat(n))},o=function(){(0,s.Y3)((()=>e.layout.updateScrollY.apply(e.layout)))};return{ns:n,...t,mutations:r,commit:i,updateTableScrollY:o}}const hP={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"}};function fP(e,t){if(!e)throw new Error("Table is required.");const n=pP();return n.toggleAllSelection=he(n._toggleAllSelection,10),Object.keys(hP).forEach((e=>{gP(vP(t,e),e,n)})),mP(n,t),n}function mP(e,t){Object.keys(hP).forEach((n=>{(0,s.YP)((()=>vP(t,n)),(t=>{gP(t,n,e)}))}))}function gP(e,t,n){let r=e,i=hP[t];"object"===typeof hP[t]&&(i=i.key,r=r||hP[t].default),n.states[i].value=r}function vP(e,t){if(t.includes(".")){const n=t.split(".");let r=e;return n.forEach((e=>{r=r[e]})),r}return e[t]}class yP{constructor(e){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=(0,l.iH)(null),this.scrollX=(0,l.iH)(!1),this.scrollY=(0,l.iH)(!1),this.bodyWidth=(0,l.iH)(null),this.fixedWidth=(0,l.iH)(null),this.rightFixedWidth=(0,l.iH)(null),this.gutterWidth=0;for(const t in e)(0,u.RI)(e,t)&&((0,l.dq)(this[t])?this[t].value=e[t]:this[t]=e[t]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){const e=this.height.value;if(null===e)return!1;const t=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(null==t?void 0:t.wrapRef)){let e=!0;const n=this.scrollY.value;return e=t.wrapRef.scrollHeight>t.wrapRef.clientHeight,this.scrollY.value=e,n!==e}return!1}setHeight(e,t="height"){if(!x.C5)return;const n=this.table.vnode.el;if(e=$O(e),this.height.value=Number(e),!n&&(e||0===e))return(0,s.Y3)((()=>this.setHeight(e,t)));"number"===typeof e?(n.style[t]=`${e}px`,this.updateElsHeight()):"string"===typeof e&&(n.style[t]=e,this.updateElsHeight())}setMaxHeight(e){this.setHeight(e,"max-height")}getFlattenColumns(){const e=[],t=this.table.store.states.columns.value;return t.forEach((t=>{t.isColumnGroup?e.push.apply(e,t.columns):e.push(t)})),e}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(e){if(!e)return!0;let t=e;while("DIV"!==t.tagName){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}updateColumnsWidth(){if(!x.C5)return;const e=this.fit,t=this.table.vnode.el.clientWidth;let n=0;const r=this.getFlattenColumns(),i=r.filter((e=>"number"!==typeof e.width));if(r.forEach((e=>{"number"===typeof e.width&&e.realWidth&&(e.realWidth=null)})),i.length>0&&e){if(r.forEach((e=>{n+=Number(e.width||e.minWidth||80)})),n<=t){this.scrollX.value=!1;const e=t-n;if(1===i.length)i[0].realWidth=Number(i[0].minWidth||80)+e;else{const t=i.reduce(((e,t)=>e+Number(t.minWidth||80)),0),n=e/t;let r=0;i.forEach(((e,t)=>{if(0===t)return;const i=Math.floor(Number(e.minWidth||80)*n);r+=i,e.realWidth=Number(e.minWidth||80)+i})),i[0].realWidth=Number(i[0].minWidth||80)+e-r}}else this.scrollX.value=!0,i.forEach((e=>{e.realWidth=Number(e.minWidth)}));this.bodyWidth.value=Math.max(n,t),this.table.state.resizeState.value.width=this.bodyWidth.value}else r.forEach((e=>{e.width||e.minWidth?e.realWidth=Number(e.width||e.minWidth):e.realWidth=80,n+=e.realWidth})),this.scrollX.value=n>t,this.bodyWidth.value=n;const o=this.store.states.fixedColumns.value;if(o.length>0){let e=0;o.forEach((t=>{e+=Number(t.realWidth||t.width)})),this.fixedWidth.value=e}const a=this.store.states.rightFixedColumns.value;if(a.length>0){let e=0;a.forEach((t=>{e+=Number(t.realWidth||t.width)})),this.rightFixedWidth.value=e}this.notifyObservers("columns")}addObserver(e){this.observers.push(e)}removeObserver(e){const t=this.observers.indexOf(e);-1!==t&&this.observers.splice(t,1)}notifyObservers(e){const t=this.observers;t.forEach((t=>{var n,r;switch(e){case"columns":null==(n=t.state)||n.onColumnsChange(this);break;case"scrollable":null==(r=t.state)||r.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${e}.`)}}))}}const{CheckboxGroup:bP}=$m,wP=(0,s.aZ)({name:"ElTableFilterPanel",components:{ElCheckbox:$m,ElCheckboxGroup:bP,ElScrollbar:ht,ElTooltip:Mo,ElIcon:L.gn,ArrowDown:fe.K5e,ArrowUp:fe.a2Z},directives:{ClickOutside:pv},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=(0,s.FN)(),{t:n}=(0,xs.bU)(),r=(0,b.s3)("table-filter"),i=null==t?void 0:t.parent;i.filterPanels.value[e.column.id]||(i.filterPanels.value[e.column.id]=t);const o=(0,l.iH)(!1),a=(0,l.iH)(null),u=(0,s.Fl)((()=>e.column&&e.column.filters)),c=(0,s.Fl)({get:()=>{var t;return((null==(t=e.column)?void 0:t.filteredValue)||[])[0]},set:e=>{d.value&&("undefined"!==typeof e&&null!==e?d.value.splice(0,1,e):d.value.splice(0,1))}}),d=(0,s.Fl)({get(){return e.column&&e.column.filteredValue||[]},set(t){e.column&&e.upDataColumn("filteredValue",t)}}),p=(0,s.Fl)((()=>!e.column||e.column.filterMultiple)),h=e=>e.value===c.value,f=()=>{o.value=!1},m=e=>{e.stopPropagation(),o.value=!o.value},g=()=>{o.value=!1},v=()=>{S(d.value),f()},y=()=>{d.value=[],S(d.value),f()},w=e=>{c.value=e,S("undefined"!==typeof e&&null!==e?d.value:[]),f()},S=t=>{e.store.commit("filterChange",{column:e.column,values:t}),e.store.updateAllSelected()};(0,s.YP)(o,(t=>{e.column&&e.upDataColumn("filterOpened",t)}),{immediate:!0});const x=(0,s.Fl)((()=>{var e,t;return null==(t=null==(e=a.value)?void 0:e.popperRef)?void 0:t.contentRef}));return{tooltipVisible:o,multiple:p,filteredValue:d,filterValue:c,filters:u,handleConfirm:v,handleReset:y,handleSelect:w,isActive:h,t:n,ns:r,showFilterPanel:m,hideFilterPanel:g,popperPaneRef:x,tooltip:a}}}),SP={key:0},xP=["disabled"],_P=["label","onClick"];function CP(e,t,n,r,i,o){const a=(0,s.up)("el-checkbox"),l=(0,s.up)("el-checkbox-group"),c=(0,s.up)("el-scrollbar"),d=(0,s.up)("arrow-up"),p=(0,s.up)("arrow-down"),h=(0,s.up)("el-icon"),f=(0,s.up)("el-tooltip"),m=(0,s.Q2)("click-outside");return(0,s.wg)(),(0,s.j4)(f,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:(0,s.w5)((()=>[e.multiple?((0,s.wg)(),(0,s.iD)("div",SP,[(0,s._)("div",{class:(0,u.C_)(e.ns.e("content"))},[(0,s.Wm)(c,{"wrap-class":e.ns.e("wrap")},{default:(0,s.w5)((()=>[(0,s.Wm)(l,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=t=>e.filteredValue=t),class:(0,u.C_)(e.ns.e("checkbox-group"))},{default:(0,s.w5)((()=>[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.filters,(e=>((0,s.wg)(),(0,s.j4)(a,{key:e.value,label:e.value},{default:(0,s.w5)((()=>[(0,s.Uk)((0,u.zw)(e.text),1)])),_:2},1032,["label"])))),128))])),_:1},8,["modelValue","class"])])),_:1},8,["wrap-class"])],2),(0,s._)("div",{class:(0,u.C_)(e.ns.e("bottom"))},[(0,s._)("button",{class:(0,u.C_)({[e.ns.is("disabled")]:0===e.filteredValue.length}),disabled:0===e.filteredValue.length,type:"button",onClick:t[1]||(t[1]=(...t)=>e.handleConfirm&&e.handleConfirm(...t))},(0,u.zw)(e.t("el.table.confirmFilter")),11,xP),(0,s._)("button",{type:"button",onClick:t[2]||(t[2]=(...t)=>e.handleReset&&e.handleReset(...t))},(0,u.zw)(e.t("el.table.resetFilter")),1)],2)])):((0,s.wg)(),(0,s.iD)("ul",{key:1,class:(0,u.C_)(e.ns.e("list"))},[(0,s._)("li",{class:(0,u.C_)([e.ns.e("list-item"),{[e.ns.is("active")]:void 0===e.filterValue||null===e.filterValue}]),onClick:t[3]||(t[3]=t=>e.handleSelect(null))},(0,u.zw)(e.t("el.table.clearFilter")),3),((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.filters,(t=>((0,s.wg)(),(0,s.iD)("li",{key:t.value,class:(0,u.C_)([e.ns.e("list-item"),e.ns.is("active",e.isActive(t))]),label:t.value,onClick:n=>e.handleSelect(t.value)},(0,u.zw)(t.text),11,_P)))),128))],2))])),default:(0,s.w5)((()=>[(0,s.wy)(((0,s.wg)(),(0,s.iD)("span",{class:(0,u.C_)([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...t)=>e.showFilterPanel&&e.showFilterPanel(...t))},[(0,s.Wm)(h,null,{default:(0,s.w5)((()=>[e.column.filterOpened?((0,s.wg)(),(0,s.j4)(d,{key:0})):((0,s.wg)(),(0,s.j4)(p,{key:1}))])),_:1})],2)),[[m,e.hideFilterPanel,e.popperPaneRef]])])),_:1},8,["visible","placement","popper-class"])}var EP=(0,y.Z)(wP,[["render",CP],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function MP(e){const t=(0,s.FN)();(0,s.wF)((()=>{n.value.addObserver(t)})),(0,s.bv)((()=>{r(n.value),i(n.value)})),(0,s.ic)((()=>{r(n.value),i(n.value)})),(0,s.Ah)((()=>{n.value.removeObserver(t)}));const n=(0,s.Fl)((()=>{const t=e.layout;if(!t)throw new Error("Can not find table layout.");return t})),r=t=>{var n;const r=(null==(n=e.vnode.el)?void 0:n.querySelectorAll("colgroup > col"))||[];if(!r.length)return;const i=t.getFlattenColumns(),o={};i.forEach((e=>{o[e.id]=e}));for(let e=0,a=r.length;e{var n,r;const i=(null==(n=e.vnode.el)?void 0:n.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let e=0,a=i.length;e{e.stopPropagation()},o=(e,t)=>{!t.filters&&t.sortable?v(e,t,!1):t.filterable&&!t.sortable&&i(e),null==r||r.emit("header-click",t,e)},a=(e,t)=>{null==r||r.emit("header-contextmenu",t,e)},u=(0,l.iH)(null),c=(0,l.iH)(!1),d=(0,l.iH)({}),h=(i,o)=>{if(x.C5&&!(o.children&&o.children.length>0)&&u.value&&e.border){c.value=!0;const a=r;t("set-drag-visible",!0);const s=null==a?void 0:a.vnode.el,l=s.getBoundingClientRect().left,p=n.vnode.el.querySelector(`th.${o.id}`),h=p.getBoundingClientRect(),f=h.left-l+30;(0,w.cn)(p,"noclick"),d.value={startMouseLeft:i.clientX,startLeft:h.right-l,startColumnLeft:h.left-l,tableLeft:l};const m=null==a?void 0:a.refs.resizeProxy;m.style.left=`${d.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const g=e=>{const t=e.clientX-d.value.startMouseLeft,n=d.value.startLeft+t;m.style.left=`${Math.max(f,n)}px`},v=()=>{if(c.value){const{startColumnLeft:n,startLeft:r}=d.value,s=Number.parseInt(m.style.left,10),l=s-n;o.width=o.realWidth=l,null==a||a.emit("header-dragend",o.width,r-n,o,i),requestAnimationFrame((()=>{e.store.scheduleLayout(!1,!0)})),document.body.style.cursor="",c.value=!1,u.value=null,d.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",v),document.onselectstart=null,document.ondragstart=null,setTimeout((()=>{(0,w.IV)(p,"noclick")}),0)};document.addEventListener("mousemove",g),document.addEventListener("mouseup",v)}},f=(t,n)=>{if(n.children&&n.children.length>0)return;const r=t.target;if(!(0,p.kK)(r))return;const i=null==r?void 0:r.closest("th");if(n&&n.resizable&&!c.value&&e.border){const e=i.getBoundingClientRect(),r=document.body.style;e.width>12&&e.right-t.pageX<8?(r.cursor="col-resize",(0,w.pv)(i,"is-sortable")&&(i.style.cursor="col-resize"),u.value=n):c.value||(r.cursor="",(0,w.pv)(i,"is-sortable")&&(i.style.cursor="pointer"),u.value=null)}},m=()=>{x.C5&&(document.body.style.cursor="")},g=({order:e,sortOrders:t})=>{if(""===e)return t[0];const n=t.indexOf(e||null);return t[n>t.length-2?0:n+1]},v=(t,n,i)=>{var o;t.stopPropagation();const a=n.order===i?null:i||g(n),s=null==(o=t.target)?void 0:o.closest("th");if(s&&(0,w.pv)(s,"noclick"))return void(0,w.IV)(s,"noclick");if(!n.sortable)return;const l=e.store.states;let u,c=l.sortProp.value;const d=l.sortingColumn.value;(d!==n||d===n&&null===d.order)&&(d&&(d.order=null),l.sortingColumn.value=n,c=n.property),u=n.order=a||null,l.sortProp.value=c,l.sortOrder.value=u,null==r||r.store.commit("changeSortCondition")};return{handleHeaderClick:o,handleHeaderContextMenu:a,handleMouseDown:h,handleMouseMove:f,handleMouseOut:m,handleSortClick:v,handleFilterClick:i}}function AP(e){const t=(0,s.f3)(kP),n=(0,b.s3)("table"),r=e=>{const n=null==t?void 0:t.props.headerRowStyle;return"function"===typeof n?n.call(null,{rowIndex:e}):n},i=e=>{const n=[],r=null==t?void 0:t.props.headerRowClassName;return"string"===typeof r?n.push(r):"function"===typeof r&&n.push(r.call(null,{rowIndex:e})),n.join(" ")},o=(n,r,i,o)=>{var a;let s=null!=(a=null==t?void 0:t.props.headerCellStyle)?a:{};"function"===typeof s&&(s=s.call(null,{rowIndex:n,columnIndex:r,row:i,column:o}));const l=nP(r,o.fixed,e.store,i);return rP(l,"left"),rP(l,"right"),Object.assign({},s,l)},a=(r,i,o,a)=>{const s=eP(n.b(),i,a.fixed,e.store,o),l=[a.id,a.order,a.headerAlign,a.className,a.labelClassName,...s];a.children||l.push("is-leaf"),a.sortable&&l.push("is-sortable");const u=null==t?void 0:t.props.headerCellClassName;return"string"===typeof u?l.push(u):"function"===typeof u&&l.push(u.call(null,{rowIndex:r,columnIndex:i,row:o,column:a})),l.push(n.e("cell")),l.filter((e=>Boolean(e))).join(" ")};return{getHeaderRowStyle:r,getHeaderRowClass:i,getHeaderCellStyle:o,getHeaderCellClass:a}}const UP=e=>{const t=[];return e.forEach((e=>{e.children?(t.push(e),t.push.apply(t,UP(e.children))):t.push(e)})),t},IP=e=>{let t=1;const n=(e,r)=>{if(r&&(e.level=r.level+1,t{n(r,e),t+=r.colSpan})),e.colSpan=t}else e.colSpan=1};e.forEach((e=>{e.level=1,n(e,void 0)}));const r=[];for(let o=0;o{e.children?(e.rowSpan=1,e.children.forEach((e=>e.isSubColumn=!0))):e.rowSpan=t-e.level+1,r[e.level-1].push(e)})),r};function DP(e){const t=(0,s.f3)(kP),n=(0,s.Fl)((()=>IP(e.store.states.originColumns.value))),r=(0,s.Fl)((()=>{const e=n.value.length>1;return e&&t&&(t.state.isGroup.value=!0),e})),i=e=>{e.stopPropagation(),null==t||t.store.commit("toggleAllSelection")};return{isGroup:r,toggleAllSelection:i,columnRows:n}}var OP=(0,s.aZ)({name:"ElTableHeader",components:{ElCheckbox:$m},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=(0,s.FN)(),r=(0,s.f3)(kP),i=(0,b.s3)("table"),o=(0,l.iH)({}),{onColumnsChange:a,onScrollableChange:u}=MP(r);(0,s.bv)((async()=>{await(0,s.Y3)(),await(0,s.Y3)();const{prop:t,order:n}=e.defaultSort;null==r||r.store.commit("sort",{prop:t,order:n,init:!0})}));const{handleHeaderClick:c,handleHeaderContextMenu:d,handleMouseDown:p,handleMouseMove:h,handleMouseOut:f,handleSortClick:m,handleFilterClick:g}=TP(e,t),{getHeaderRowStyle:v,getHeaderRowClass:y,getHeaderCellStyle:w,getHeaderCellClass:S}=AP(e),{isGroup:x,toggleAllSelection:_,columnRows:C}=DP(e);return n.state={onColumnsChange:a,onScrollableChange:u},n.filterPanels=o,{ns:i,filterPanels:o,onColumnsChange:a,onScrollableChange:u,columnRows:C,getHeaderRowClass:y,getHeaderRowStyle:v,getHeaderCellClass:S,getHeaderCellStyle:w,handleHeaderClick:c,handleHeaderContextMenu:d,handleMouseDown:p,handleMouseMove:h,handleMouseOut:f,handleSortClick:m,handleFilterClick:g,isGroup:x,toggleAllSelection:_}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:r,getHeaderCellClass:i,getHeaderRowClass:o,getHeaderRowStyle:a,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:d,handleSortClick:p,handleMouseOut:h,store:f,$parent:m}=this;let g=1;return(0,s.h)("thead",{class:{[e.is("group")]:t}},n.map(((e,t)=>(0,s.h)("tr",{class:o(t),key:t,style:a(t)},e.map(((n,o)=>(n.rowSpan>g&&(g=n.rowSpan),(0,s.h)("th",{class:i(t,o,e,n),colspan:n.colSpan,key:`${n.id}-thead`,rowspan:n.rowSpan,style:r(t,o,e,n),onClick:e=>l(e,n),onContextmenu:e=>u(e,n),onMousedown:e=>c(e,n),onMousemove:e=>d(e,n),onMouseout:h},[(0,s.h)("div",{class:["cell",n.filteredValue&&n.filteredValue.length>0?"highlight":""]},[n.renderHeader?n.renderHeader({column:n,$index:o,store:f,_self:m}):n.label,n.sortable&&(0,s.h)("span",{onClick:e=>p(e,n),class:"caret-wrapper"},[(0,s.h)("i",{onClick:e=>p(e,n,"ascending"),class:"sort-caret ascending"}),(0,s.h)("i",{onClick:e=>p(e,n,"descending"),class:"sort-caret descending"})]),n.filterable&&(0,s.h)(EP,{store:f,placement:n.filterPlacement||"bottom-start",column:n,upDataColumn:(e,t)=>{n[e]=t}})])]))))))))}});function PP(e){const t=(0,s.f3)(kP),n=(0,l.iH)(""),r=(0,l.iH)((0,s.h)("div")),{nextZIndex:i}=(0,Ui.Cn)(),o=(n,r,i)=>{var o;const a=t,s=LO(n);let l;const u=null==(o=null==a?void 0:a.vnode.el)?void 0:o.dataset.prefix;s&&(l=zO({columns:e.store.states.columns.value},s,u),l&&(null==a||a.emit(`cell-${i}`,r,l,s,n))),null==a||a.emit(`row-${i}`,r,l,n)},a=(e,t)=>{o(e,t,"dblclick")},u=(t,n)=>{e.store.commit("setCurrentRow",n),o(t,n,"click")},c=(e,t)=>{o(e,t,"contextmenu")},d=he((t=>{e.store.commit("setHoverRow",t)}),30),p=he((()=>{e.store.commit("setHoverRow",null)}),30),h=(n,r,o)=>{var a;const s=t,l=LO(n),u=null==(a=null==s?void 0:s.vnode.el)?void 0:a.dataset.prefix;if(l){const t=zO({columns:e.store.states.columns.value},l,u),i=s.hoverState={cell:l,column:t,row:r};null==s||s.emit("cell-mouse-enter",i.row,i.column,i.cell,n)}if(!o)return;const c=n.target.querySelector(".cell");if(!(0,w.pv)(c,`${u}-tooltip`)||!c.childNodes.length)return;const d=document.createRange();d.setStart(c,0),d.setEnd(c,c.childNodes.length);const p=Math.round(d.getBoundingClientRect().width),h=(Number.parseInt((0,w.C2)(c,"paddingLeft"),10)||0)+(Number.parseInt((0,w.C2)(c,"paddingRight"),10)||0);(p+h>c.offsetWidth||c.scrollWidth>c.offsetWidth)&&KO(null==t?void 0:t.refs.tableWrapper,l,l.innerText||l.textContent,i,o)},f=e=>{const n=LO(e);if(!n)return;const r=null==t?void 0:t.hoverState;null==t||t.emit("cell-mouse-leave",null==r?void 0:r.row,null==r?void 0:r.column,null==r?void 0:r.cell,e)};return{handleDoubleClick:a,handleClick:u,handleContextMenu:c,handleMouseEnter:d,handleMouseLeave:p,handleCellMouseEnter:h,handleCellMouseLeave:f,tooltipContent:n,tooltipTrigger:r}}function LP(e){const t=(0,s.f3)(kP),n=(0,b.s3)("table"),r=(e,n)=>{const r=null==t?void 0:t.props.rowStyle;return"function"===typeof r?r.call(null,{row:e,rowIndex:n}):r||null},i=(r,i)=>{const o=[n.e("row")];(null==t?void 0:t.props.highlightCurrentRow)&&r===e.store.states.currentRow.value&&o.push("current-row"),e.stripe&&i%2===1&&o.push(n.em("row","striped"));const a=null==t?void 0:t.props.rowClassName;return"string"===typeof a?o.push(a):"function"===typeof a&&o.push(a.call(null,{row:r,rowIndex:i})),o},o=(n,r,i,o)=>{const a=null==t?void 0:t.props.cellStyle;let s=null!=a?a:{};"function"===typeof a&&(s=a.call(null,{rowIndex:n,columnIndex:r,row:i,column:o}));const l=nP(r,null==e?void 0:e.fixed,e.store);return rP(l,"left"),rP(l,"right"),Object.assign({},s,l)},a=(r,i,o,a,s)=>{const l=eP(n.b(),i,null==e?void 0:e.fixed,e.store,void 0,s),u=[a.id,a.align,a.className,...l],c=null==t?void 0:t.props.cellClassName;return"string"===typeof c?u.push(c):"function"===typeof c&&u.push(c.call(null,{rowIndex:r,columnIndex:i,row:o,column:a})),u.push(n.e("cell")),u.filter((e=>Boolean(e))).join(" ")},l=(e,n,r,i)=>{let o=1,a=1;const s=null==t?void 0:t.props.spanMethod;if("function"===typeof s){const t=s({row:e,column:n,rowIndex:r,columnIndex:i});Array.isArray(t)?(o=t[0],a=t[1]):"object"===typeof t&&(o=t.rowspan,a=t.colspan)}return{rowspan:o,colspan:a}},u=(e,t,n)=>{if(t<1)return e[n].realWidth;const r=e.map((({realWidth:e,width:t})=>e||t)).slice(n,n+t);return Number(r.reduce(((e,t)=>Number(e)+Number(t)),-1))};return{getRowStyle:r,getRowClass:i,getCellStyle:o,getCellClass:a,getSpan:l,getColspanRealWidth:u}}var RP=n(5941);function NP(e){const t=(0,s.f3)(kP),n=(0,b.s3)("table"),{handleDoubleClick:r,handleClick:i,handleContextMenu:o,handleMouseEnter:a,handleMouseLeave:l,handleCellMouseEnter:u,handleCellMouseLeave:c,tooltipContent:d,tooltipTrigger:p}=PP(e),{getRowStyle:h,getRowClass:f,getCellStyle:m,getCellClass:g,getSpan:v,getColspanRealWidth:y}=LP(e),w=(0,s.Fl)((()=>e.store.states.columns.value.findIndex((({type:e})=>"default"===e)))),S=(e,n)=>{const r=t.props.rowKey;return r?BO(e,r):n},x=(d,p,b,x=!1)=>{const{tooltipEffect:C,tooltipOptions:E,store:M}=e,{indent:k,columns:T}=M.states,A=f(d,p);let U=!0;b&&(A.push(n.em("row",`level-${b.level}`)),U=b.display);const I=U?null:{display:"none"};return(0,s.h)("tr",{style:[I,h(d,p)],class:A,key:S(d,p),onDblclick:e=>r(e,d),onClick:e=>i(e,d),onContextmenu:e=>o(e,d),onMouseenter:()=>a(p),onMouseleave:l},T.value.map(((n,r)=>{const{rowspan:i,colspan:o}=v(d,n,p,r);if(!i||!o)return null;const a={...n};a.realWidth=y(T.value,o,r);const l={store:e.store,_self:e.context||t,column:a,row:d,$index:p,cellIndex:r,expanded:x};r===w.value&&b&&(l.treeNode={indent:b.level*k.value,level:b.level},"boolean"===typeof b.expanded&&(l.treeNode.expanded=b.expanded,"loading"in b&&(l.treeNode.loading=b.loading),"noLazyChildren"in b&&(l.treeNode.noLazyChildren=b.noLazyChildren)));const h=`${p},${r}`,f=a.columnKey||a.rawColumnKey||"",S=_(r,n,l),M=n.showOverflowTooltip&&YD({effect:C},E,n.showOverflowTooltip);return(0,s.h)("td",{style:m(p,r,d,n),class:g(p,r,d,n,o-1),key:`${f}${h}`,rowspan:i,colspan:o,onMouseenter:e=>u(e,d,M),onMouseleave:c},[S])})))},_=(e,t,n)=>t.renderCell(n),C=(r,i)=>{const o=e.store,{isRowExpanded:a,assertRowKey:l}=o,{treeData:u,lazyTreeNodeMap:c,childrenColumnName:d,rowKey:p}=o.states,h=o.states.columns.value,f=h.some((({type:e})=>"expand"===e));if(f){const e=a(r),l=x(r,i,void 0,e),u=t.renderExpanded;return e?u?[[l,(0,s.h)("tr",{key:`expanded-row__${l.key}`},[(0,s.h)("td",{colspan:h.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[u({row:r,$index:i,store:o,expanded:e})])])]]:(RP.error("[Element Error]renderExpanded is required."),l):[[l]]}if(Object.keys(u.value).length){l();const e=BO(r,p.value);let t=u.value[e],n=null;t&&(n={expanded:t.expanded,level:t.level,display:!0},"boolean"===typeof t.lazy&&("boolean"===typeof t.loaded&&t.loaded&&(n.noLazyChildren=!(t.children&&t.children.length)),n.loading=t.loading));const o=[x(r,i,n)];if(t){let n=0;const a=(e,r)=>{e&&e.length&&r&&e.forEach((e=>{const s={display:r.display&&r.expanded,level:r.level+1,expanded:!1,noLazyChildren:!1,loading:!1},l=BO(e,p.value);if(void 0===l||null===l)throw new Error("For nested data item, row-key is required.");if(t={...u.value[l]},t&&(s.expanded=t.expanded,t.level=t.level||s.level,t.display=!(!t.expanded||!s.display),"boolean"===typeof t.lazy&&("boolean"===typeof t.loaded&&t.loaded&&(s.noLazyChildren=!(t.children&&t.children.length)),s.loading=t.loading)),n++,o.push(x(e,i+n,s)),t){const n=c.value[l]||e[d.value];a(n,t)}}))};t.display=!0;const s=c.value[e]||r[d.value];a(s,t)}return o}return x(r,i,void 0)};return{wrappedRowRender:C,tooltipContent:d,tooltipTrigger:p}}const FP={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var zP=(0,s.aZ)({name:"ElTableBody",props:FP,setup(e){const t=(0,s.FN)(),n=(0,s.f3)(kP),r=(0,b.s3)("table"),{wrappedRowRender:i,tooltipContent:o,tooltipTrigger:a}=NP(e),{onColumnsChange:l,onScrollableChange:u}=MP(n);return(0,s.YP)(e.store.states.hoverRow,((n,i)=>{if(!e.store.states.isComplex.value||!x.C5)return;let o=window.requestAnimationFrame;o||(o=e=>window.setTimeout(e,16)),o((()=>{const e=null==t?void 0:t.vnode.el,o=Array.from((null==e?void 0:e.children)||[]).filter((e=>null==e?void 0:e.classList.contains(`${r.e("row")}`))),a=o[i],s=o[n];a&&(0,w.IV)(a,"hover-row"),s&&(0,w.cn)(s,"hover-row")}))})),(0,s.Ah)((()=>{var e;null==(e=YO)||e()})),{ns:r,onColumnsChange:l,onScrollableChange:u,wrappedRowRender:i,tooltipContent:o,tooltipTrigger:a}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return(0,s.h)("tbody",{},[n.reduce(((t,n)=>t.concat(e(n,t.length))),[])])}});function BP(e){const t="auto"===e.tableLayout;let n=e.columns||[];t&&n.every((e=>void 0===e.width))&&(n=[]);const r=n=>{const r={key:`${e.tableLayout}_${n.id}`,style:{},name:void 0};return t?r.style={width:`${n.width}px`}:r.name=n.id,r};return(0,s.h)("colgroup",{},n.map((e=>(0,s.h)("col",r(e)))))}function HP(){const e=(0,s.f3)(kP),t=null==e?void 0:e.store,n=(0,s.Fl)((()=>t.states.fixedLeafColumnsLength.value)),r=(0,s.Fl)((()=>t.states.rightFixedColumns.value.length)),i=(0,s.Fl)((()=>t.states.columns.value.length)),o=(0,s.Fl)((()=>t.states.fixedColumns.value.length)),a=(0,s.Fl)((()=>t.states.rightFixedColumns.value.length));return{leftFixedLeafCount:n,rightFixedLeafCount:r,columnsCount:i,leftFixedCount:o,rightFixedCount:a,columns:t.states.columns}}function jP(e){const{columns:t}=HP(),n=(0,b.s3)("table"),r=(t,r)=>{const i=t[r],o=[n.e("cell"),i.id,i.align,i.labelClassName,...eP(n.b(),r,i.fixed,e.store)];return i.className&&o.push(i.className),i.children||o.push(n.is("leaf")),o},i=(t,n)=>{const r=nP(n,t.fixed,e.store);return rP(r,"left"),rP(r,"right"),r};return{getCellClasses:r,getCellStyles:i,columns:t}}BP.props=["columns","tableLayout"];var VP=(0,s.aZ)({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:n,columns:r}=jP(e),i=(0,b.s3)("table");return{ns:i,getCellClasses:t,getCellStyles:n,columns:r}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:r,sumText:i,ns:o}=this,a=this.store.states.data.value;let l=[];return r?l=r({columns:e,data:a}):e.forEach(((e,t)=>{if(0===t)return void(l[t]=i);const n=a.map((t=>Number(t[e.property]))),r=[];let o=!0;n.forEach((e=>{if(!Number.isNaN(+e)){o=!1;const t=`${e}`.split(".")[1];r.push(t?t.length:0)}}));const s=Math.max.apply(null,r);l[t]=o?"":n.reduce(((e,t)=>{const n=Number(t);return Number.isNaN(+n)?e:Number.parseFloat((e+t).toFixed(Math.min(s,20)))}),0)})),(0,s.h)("table",{class:o.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[BP({columns:e}),(0,s.h)("tbody",[(0,s.h)("tr",{},[...e.map(((r,i)=>(0,s.h)("td",{key:i,colspan:r.colSpan,rowspan:r.rowSpan,class:n(e,i),style:t(r,i)},[(0,s.h)("div",{class:["cell",r.labelClassName]},[l[i]])])))])])])}});function WP(e){const t=t=>{e.commit("setCurrentRow",t)},n=()=>e.getSelectionRows(),r=(t,n)=>{e.toggleRowSelection(t,n,!1),e.updateAllSelected()},i=()=>{e.clearSelection()},o=t=>{e.clearFilter(t)},a=()=>{e.commit("toggleAllSelection")},s=(t,n)=>{e.toggleRowExpansionAdapter(t,n)},l=()=>{e.clearSort()},u=(t,n)=>{e.commit("sort",{prop:t,order:n})};return{setCurrentRow:t,getSelectionRows:n,toggleRowSelection:r,clearSelection:i,clearFilter:o,toggleAllSelection:a,toggleRowExpansion:s,clearSort:l,sort:u}}function $P(e,t,n,r){const i=(0,l.iH)(!1),o=(0,l.iH)(null),a=(0,l.iH)(!1),u=e=>{a.value=e},d=(0,l.iH)({width:null,height:null,headerHeight:null}),p=(0,l.iH)(!1),h={display:"inline-block",verticalAlign:"middle"},f=(0,l.iH)(),m=(0,l.iH)(0),g=(0,l.iH)(0),v=(0,l.iH)(0),y=(0,l.iH)(0);(0,s.m0)((()=>{t.setHeight(e.height)})),(0,s.m0)((()=>{t.setMaxHeight(e.maxHeight)})),(0,s.YP)((()=>[e.currentRowKey,n.states.rowKey]),(([e,t])=>{(0,l.SU)(t)&&(0,l.SU)(e)&&n.setCurrentRowKey(`${e}`)}),{immediate:!0}),(0,s.YP)((()=>e.data),(e=>{r.store.commit("setData",e)}),{immediate:!0,deep:!0}),(0,s.m0)((()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)}));const b=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},w=(e,t)=>{const{pixelX:n,pixelY:i}=t;Math.abs(n)>=Math.abs(i)&&(r.refs.bodyWrapper.scrollLeft+=t.pixelX/5)},S=(0,s.Fl)((()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0)),x=(0,s.Fl)((()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""}))),_=()=>{S.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(k)};(0,s.bv)((async()=>{await(0,s.Y3)(),n.updateColumns(),T(),requestAnimationFrame(_);const t=r.vnode.el,i=r.refs.headerWrapper;e.flexible&&t&&t.parentElement&&(t.parentElement.style.minWidth="0"),d.value={width:f.value=t.offsetWidth,height:t.offsetHeight,headerHeight:e.showHeader&&i?i.offsetHeight:null},n.states.columns.value.forEach((e=>{e.filteredValue&&e.filteredValue.length&&r.store.commit("filterChange",{column:e,values:e.filteredValue,silent:!0})})),r.$ready=!0}));const C=(e,n)=>{if(!e)return;const r=Array.from(e.classList).filter((e=>!e.startsWith("is-scrolling-")));r.push(t.scrollX.value?n:"is-scrolling-none"),e.className=r.join(" ")},E=e=>{const{tableWrapper:t}=r.refs;C(t,e)},M=e=>{const{tableWrapper:t}=r.refs;return!(!t||!t.classList.contains(e))},k=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const e="is-scrolling-none";return void(M(e)||E(e))}const e=r.refs.scrollBarRef.wrapRef;if(!e)return;const{scrollLeft:n,offsetWidth:i,scrollWidth:o}=e,{headerWrapper:a,footerWrapper:s}=r.refs;a&&(a.scrollLeft=n),s&&(s.scrollLeft=n);const l=o-i-1;E(n>=l?"is-scrolling-right":0===n?"is-scrolling-left":"is-scrolling-middle")},T=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&(0,c.ORN)(r.refs.scrollBarRef.wrapRef,"scroll",k,{passive:!0}),e.fit?(0,c.yU7)(r.vnode.el,A):(0,c.ORN)(window,"resize",A),(0,c.yU7)(r.refs.bodyWrapper,(()=>{var e,t;A(),null==(t=null==(e=r.refs)?void 0:e.scrollBarRef)||t.update()})))},A=()=>{var t,n,i;const o=r.vnode.el;if(!r.$ready||!o)return;let a=!1;const{width:s,height:l,headerHeight:u}=d.value,c=f.value=o.offsetWidth;s!==c&&(a=!0);const p=o.offsetHeight;(e.height||S.value)&&l!==p&&(a=!0);const h="fixed"===e.tableLayout?r.refs.headerWrapper:null==(t=r.refs.tableHeaderRef)?void 0:t.$el;e.showHeader&&(null==h?void 0:h.offsetHeight)!==u&&(a=!0),m.value=(null==(n=r.refs.tableWrapper)?void 0:n.scrollHeight)||0,v.value=(null==h?void 0:h.scrollHeight)||0,y.value=(null==(i=r.refs.footerWrapper)?void 0:i.offsetHeight)||0,g.value=m.value-v.value-y.value,a&&(d.value={width:c,height:p,headerHeight:e.showHeader&&(null==h?void 0:h.offsetHeight)||0},_())},U=ze(),I=(0,s.Fl)((()=>{const{bodyWidth:e,scrollY:n,gutterWidth:r}=t;return e.value?e.value-(n.value?r:0)+"px":""})),D=(0,s.Fl)((()=>e.maxHeight?"fixed":e.tableLayout)),O=(0,s.Fl)((()=>{if(e.data&&e.data.length)return null;let t="100%";e.height&&g.value&&(t=`${g.value}px`);const n=f.value;return{width:n?`${n}px`:"",height:t}})),P=(0,s.Fl)((()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{})),L=(0,s.Fl)((()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${v.value+y.value}px)`}:{maxHeight:e.maxHeight-v.value-y.value+"px"}:{})),R=(e,t)=>{const n=r.refs.bodyWrapper;if(Math.abs(t.spinY)>0){const r=n.scrollTop;t.pixelY<0&&0!==r&&e.preventDefault(),t.pixelY>0&&n.scrollHeight-n.clientHeight>r&&e.preventDefault(),n.scrollTop+=Math.ceil(t.pixelY/5)}else n.scrollLeft+=Math.ceil(t.pixelX/5)};return{isHidden:i,renderExpanded:o,setDragVisible:u,isGroup:p,handleMouseLeave:b,handleHeaderFooterMousewheel:w,tableSize:U,emptyBlockStyle:O,handleFixedMousewheel:R,resizeProxyVisible:a,bodyWidth:I,resizeState:d,doLayout:_,tableBodyStyles:x,tableLayout:D,scrollbarViewStyle:h,tableInnerStyle:P,scrollbarStyle:L}}function qP(e){const t=(0,l.iH)(),n=()=>{const n=e.vnode.el,r=n.querySelector(".hidden-columns"),i={childList:!0,subtree:!0},o=e.store.states.updateOrderFns;t.value=new MutationObserver((()=>{o.forEach((e=>e()))})),t.value.observe(r,i)};(0,s.bv)((()=>{n()})),(0,s.Ah)((()=>{var e;null==(e=t.value)||e.disconnect()}))}var GP={data:{type:Array,default:()=>[]},size:xe.Pp,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean};const ZP=()=>{const e=(0,l.iH)(),t=(t,n)=>{const r=e.value;r&&r.scrollTo(t,n)},n=(t,n)=>{const r=e.value;r&&(0,p.hj)(n)&&["Top","Left"].includes(t)&&r[`setScroll${t}`](n)},r=e=>n("Top",e),i=e=>n("Left",e);return{scrollBarRef:e,scrollTo:t,setScrollTop:r,setScrollLeft:i}};var YP,KP,XP,JP,QP,eL,tL,nL,rL,iL,oL,aL,sL,lL,uL,cL=!1;function dL(){if(!cL){cL=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(aL=/\b(iPhone|iP[ao]d)/.exec(e),sL=/\b(iP[ao]d)/.exec(e),iL=/Android/i.exec(e),lL=/FBAN\/\w+;/i.exec(e),uL=/Mobile/i.exec(e),oL=!!/Win64/.exec(e),t){YP=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,YP&&document&&document.documentMode&&(YP=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);eL=r?parseFloat(r[1])+4:YP,KP=t[2]?parseFloat(t[2]):NaN,XP=t[3]?parseFloat(t[3]):NaN,JP=t[4]?parseFloat(t[4]):NaN,JP?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),QP=t&&t[1]?parseFloat(t[1]):NaN):QP=NaN}else YP=KP=XP=QP=JP=NaN;if(n){if(n[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);tL=!i||parseFloat(i[1].replace("_","."))}else tL=!1;nL=!!n[2],rL=!!n[3]}else tL=nL=rL=!1}}var pL,hL={ie:function(){return dL()||YP},ieCompatibilityMode:function(){return dL()||eL>YP},ie64:function(){return hL.ie()&&oL},firefox:function(){return dL()||KP},opera:function(){return dL()||XP},webkit:function(){return dL()||JP},safari:function(){return hL.webkit()},chrome:function(){return dL()||QP},windows:function(){return dL()||nL},osx:function(){return dL()||tL},linux:function(){return dL()||rL},iphone:function(){return dL()||aL},mobile:function(){return dL()||aL||sL||iL||uL},nativeApp:function(){return dL()||lL},android:function(){return dL()||iL},ipad:function(){return dL()||sL}},fL=hL,mL=!!(typeof window<"u"&&window.document&&window.document.createElement),gL={canUseDOM:mL,canUseWorkers:typeof Worker<"u",canUseEventListeners:mL&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:mL&&!!window.screen,isInWorker:!mL},vL=gL;function yL(e,t){if(!vL.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var i=document.createElement("div");i.setAttribute(n,"return;"),r="function"==typeof i[n]}return!r&&pL&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}vL.canUseDOM&&(pL=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));var bL=yL,wL=10,SL=40,xL=800;function _L(e){var t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*wL,i=n*wL,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||i)&&e.deltaMode&&(1==e.deltaMode?(r*=SL,i*=SL):(r*=xL,i*=xL)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}_L.getEventType=function(){return fL.firefox()?"DOMMouseScroll":bL("wheel")?"wheel":"mousewheel"};var CL=_L; /** * Checks if an event is supported in the current execution environment. * * NOTE: This will not work correctly for non-generic events such as `change`, * `reset`, `load`, `error`, and `select`. * * Borrows from Modernizr. * * @param {string} eventNameSuffix Event name, e.g. "click". * @param {?boolean} capture Check if the capture phase is supported. * @return {boolean} True if the event is supported. * @internal * @license Modernizr 3.0.0pre (Custom Build) | MIT */const EL=function(e,t){if(e&&e.addEventListener){const n=function(e){const n=CL(e);t&&Reflect.apply(t,this,[e,n])};e.addEventListener("wheel",n,{passive:!0})}},ML={beforeMount(e,t){EL(e,t.value)}};let kL=1;const TL=(0,s.aZ)({name:"ElTable",directives:{Mousewheel:ML},components:{TableHeader:OP,TableBody:zP,TableFooter:VP,ElScrollbar:ht,hColgroup:BP},props:GP,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t:t}=(0,xs.bU)(),n=(0,b.s3)("table"),r=(0,s.FN)();(0,s.JJ)(kP,r);const i=fP(r,e);r.store=i;const o=new yP({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=o;const a=(0,s.Fl)((()=>0===(i.states.data.value||[]).length)),{setCurrentRow:l,getSelectionRows:u,toggleRowSelection:c,clearSelection:d,clearFilter:p,toggleAllSelection:h,toggleRowExpansion:f,clearSort:m,sort:g}=WP(i),{isHidden:v,renderExpanded:y,setDragVisible:w,isGroup:S,handleMouseLeave:x,handleHeaderFooterMousewheel:_,tableSize:C,emptyBlockStyle:E,handleFixedMousewheel:M,resizeProxyVisible:k,bodyWidth:T,resizeState:A,doLayout:U,tableBodyStyles:I,tableLayout:D,scrollbarViewStyle:O,tableInnerStyle:P,scrollbarStyle:L}=$P(e,o,i,r),{scrollBarRef:R,scrollTo:N,setScrollLeft:F,setScrollTop:z}=ZP(),B=he(U,50),H=`${n.namespace.value}-table_${kL++}`;r.tableId=H,r.state={isGroup:S,resizeState:A,doLayout:U,debouncedUpdateLayout:B};const j=(0,s.Fl)((()=>e.sumText||t("el.table.sumText"))),V=(0,s.Fl)((()=>e.emptyText||t("el.table.emptyText")));return qP(r),{ns:n,layout:o,store:i,handleHeaderFooterMousewheel:_,handleMouseLeave:x,tableId:H,tableSize:C,isHidden:v,isEmpty:a,renderExpanded:y,resizeProxyVisible:k,resizeState:A,isGroup:S,bodyWidth:T,tableBodyStyles:I,emptyBlockStyle:E,debouncedUpdateLayout:B,handleFixedMousewheel:M,setCurrentRow:l,getSelectionRows:u,toggleRowSelection:c,clearSelection:d,clearFilter:p,toggleAllSelection:h,toggleRowExpansion:f,clearSort:m,doLayout:U,sort:g,t:t,setDragVisible:w,context:r,computedSumText:j,computedEmptyText:V,tableLayout:D,scrollbarViewStyle:O,tableInnerStyle:P,scrollbarStyle:L,scrollBarRef:R,scrollTo:N,setScrollLeft:F,setScrollTop:z}}}),AL=["data-prefix"],UL={ref:"hiddenColumns",class:"hidden-columns"};function IL(e,t,n,r,i,o){const a=(0,s.up)("hColgroup"),l=(0,s.up)("table-header"),c=(0,s.up)("table-body"),d=(0,s.up)("el-scrollbar"),p=(0,s.up)("table-footer"),h=(0,s.Q2)("mousewheel");return(0,s.wg)(),(0,s.iD)("div",{ref:"tableWrapper",class:(0,u.C_)([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:0!==(e.store.states.data.value||[]).length&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:(0,u.j5)(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=(...t)=>e.handleMouseLeave&&e.handleMouseLeave(...t))},[(0,s._)("div",{class:(0,u.C_)(e.ns.e("inner-wrapper")),style:(0,u.j5)(e.tableInnerStyle)},[(0,s._)("div",UL,[(0,s.WI)(e.$slots,"default")],512),e.showHeader&&"fixed"===e.tableLayout?(0,s.wy)(((0,s.wg)(),(0,s.iD)("div",{key:0,ref:"headerWrapper",class:(0,u.C_)(e.ns.e("header-wrapper"))},[(0,s._)("table",{ref:"tableHeader",class:(0,u.C_)(e.ns.e("header")),style:(0,u.j5)(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[(0,s.Wm)(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),(0,s.Wm)(l,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[h,e.handleHeaderFooterMousewheel]]):(0,s.kq)("v-if",!0),(0,s._)("div",{ref:"bodyWrapper",class:(0,u.C_)(e.ns.e("body-wrapper"))},[(0,s.Wm)(d,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:(0,s.w5)((()=>[(0,s._)("table",{ref:"tableBody",class:(0,u.C_)(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:(0,u.j5)({width:e.bodyWidth,tableLayout:e.tableLayout})},[(0,s.Wm)(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&"auto"===e.tableLayout?((0,s.wg)(),(0,s.j4)(l,{key:0,ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):(0,s.kq)("v-if",!0),(0,s.Wm)(c,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"])],6),e.isEmpty?((0,s.wg)(),(0,s.iD)("div",{key:0,ref:"emptyBlock",style:(0,u.j5)(e.emptyBlockStyle),class:(0,u.C_)(e.ns.e("empty-block"))},[(0,s._)("span",{class:(0,u.C_)(e.ns.e("empty-text"))},[(0,s.WI)(e.$slots,"empty",{},(()=>[(0,s.Uk)((0,u.zw)(e.computedEmptyText),1)]))],2)],6)):(0,s.kq)("v-if",!0),e.$slots.append?((0,s.wg)(),(0,s.iD)("div",{key:1,ref:"appendWrapper",class:(0,u.C_)(e.ns.e("append-wrapper"))},[(0,s.WI)(e.$slots,"append")],2)):(0,s.kq)("v-if",!0)])),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary?(0,s.wy)(((0,s.wg)(),(0,s.iD)("div",{key:1,ref:"footerWrapper",class:(0,u.C_)(e.ns.e("footer-wrapper"))},[(0,s.Wm)(p,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:(0,u.j5)(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[P.F8,!e.isEmpty],[h,e.handleHeaderFooterMousewheel]]):(0,s.kq)("v-if",!0),e.border||e.isGroup?((0,s.wg)(),(0,s.iD)("div",{key:2,class:(0,u.C_)(e.ns.e("border-left-patch"))},null,2)):(0,s.kq)("v-if",!0)],6),(0,s.wy)((0,s._)("div",{ref:"resizeProxy",class:(0,u.C_)(e.ns.e("column-resize-proxy"))},null,2),[[P.F8,e.resizeProxyVisible]])],46,AL)}var DL=(0,y.Z)(TL,[["render",IL],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const OL={selection:"table-column--selection",expand:"table__expand-column"},PL={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},LL=e=>OL[e]||"",RL={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&0===e.states.data.value.length}return(0,s.h)($m,{disabled:t(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value})},renderCell({row:e,column:t,store:n,$index:r}){return(0,s.h)($m,{disabled:!!t.selectable&&!t.selectable.call(null,e,r),size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:e=>e.stopPropagation(),modelValue:n.isSelected(e)})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const r=e.index;return"number"===typeof r?n=t+r:"function"===typeof r&&(n=r(t)),(0,s.h)("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:n}){const{ns:r}=t,i=[r.e("expand-icon")];n&&i.push(r.em("expand-icon","expanded"));const o=function(n){n.stopPropagation(),t.toggleRowExpansion(e)};return(0,s.h)("div",{class:i,onClick:o},{default:()=>[(0,s.h)(L.gn,null,{default:()=>[(0,s.h)(fe.olP)]})]})},sortable:!1,resizable:!1}};function NL({row:e,column:t,$index:n}){var r;const i=t.property,o=i&&(0,R.WJ)(e,i).value;return t&&t.formatter?t.formatter(e,t,o,n):(null==(r=null==o?void 0:o.toString)?void 0:r.call(o))||""}function FL({row:e,treeNode:t,store:n},r=!1){const{ns:i}=n;if(!t)return r?[(0,s.h)("span",{class:i.e("placeholder")})]:null;const o=[],a=function(r){r.stopPropagation(),t.loading||n.loadOrToggle(e)};if(t.indent&&o.push((0,s.h)("span",{class:i.e("indent"),style:{"padding-left":`${t.indent}px`}})),"boolean"!==typeof t.expanded||t.noLazyChildren)o.push((0,s.h)("span",{class:i.e("placeholder")}));else{const e=[i.e("expand-icon"),t.expanded?i.em("expand-icon","expanded"):""];let n=fe.olP;t.loading&&(n=fe.gbz),o.push((0,s.h)("div",{class:e,onClick:a},{default:()=>[(0,s.h)(L.gn,{class:{[i.is("loading")]:t.loading}},{default:()=>[(0,s.h)(n)]})]}))}return o}function zL(e,t){return e.reduce(((e,t)=>(e[t]=t,e)),t)}function BL(e,t){const n=(0,s.FN)(),r=()=>{const r=["fixed"],i={realWidth:"width",realMinWidth:"minWidth"},o=zL(r,i);Object.keys(o).forEach((r=>{const o=i[r];(0,u.RI)(t,o)&&(0,s.YP)((()=>t[o]),(t=>{let i=t;"width"===o&&"realWidth"===r&&(i=VO(t)),"minWidth"===o&&"realMinWidth"===r&&(i=WO(t)),n.columnConfig.value[o]=i,n.columnConfig.value[r]=i;const a="fixed"===o;e.value.store.scheduleLayout(a)}))}))},i=()=>{const e=["label","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],r={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},i=zL(e,r);Object.keys(i).forEach((e=>{const i=r[e];(0,u.RI)(t,i)&&(0,s.YP)((()=>t[i]),(t=>{n.columnConfig.value[e]=t}))}))};return{registerComplexWatchers:r,registerNormalWatchers:i}}function HL(e,t,n){const r=(0,s.FN)(),i=(0,l.iH)(""),o=(0,l.iH)(!1),a=(0,l.iH)(),u=(0,l.iH)(),c=(0,b.s3)("table");(0,s.m0)((()=>{a.value=e.align?`is-${e.align}`:null,a.value})),(0,s.m0)((()=>{u.value=e.headerAlign?`is-${e.headerAlign}`:a.value,u.value}));const d=(0,s.Fl)((()=>{let e=r.vnode.vParent||r.parent;while(e&&!e.tableId&&!e.columnId)e=e.vnode.vParent||e.parent;return e})),p=(0,s.Fl)((()=>{const{store:e}=r.parent;if(!e)return!1;const{treeData:t}=e.states,n=t.value;return n&&Object.keys(n).length>0})),h=(0,l.iH)(VO(e.width)),f=(0,l.iH)(WO(e.minWidth)),m=e=>(h.value&&(e.width=h.value),f.value&&(e.minWidth=f.value),!h.value&&f.value&&(e.width=void 0),e.minWidth||(e.minWidth=80),e.realWidth=Number(void 0===e.width?e.minWidth:e.width),e),g=e=>{const t=e.type,n=RL[t]||{};Object.keys(n).forEach((t=>{const r=n[t];"className"!==t&&void 0!==r&&(e[t]=r)}));const r=LL(t);if(r){const t=`${(0,l.SU)(c.namespace)}-${r}`;e.className=e.className?`${e.className} ${t}`:t}return e},v=e=>{function t(e){var t;"ElTableColumn"===(null==(t=null==e?void 0:e.type)?void 0:t.name)&&(e.vParent=r)}Array.isArray(e)?e.forEach((e=>t(e))):t(e)},y=i=>{e.renderHeader?(0,S.N)("TableColumn","Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header."):"selection"!==i.type&&(i.renderHeader=e=>{r.columnConfig.value["label"];const n=t.header;return n?n(e):i.label});let o=i.renderCell;return"expand"===i.type?(i.renderCell=e=>(0,s.h)("div",{class:"cell"},[o(e)]),n.value.renderExpanded=e=>t.default?t.default(e):t.default):(o=o||NL,i.renderCell=e=>{let r=null;if(t.default){const n=t.default(e);r=n.some((e=>e.type!==s.sv))?n:o(e)}else r=o(e);const{columns:a}=n.value.store.states,u=a.value.findIndex((e=>"default"===e.type)),d=p.value&&e.cellIndex===u,h=FL(e,d),f={class:"cell",style:{}};return i.showOverflowTooltip&&(f.class=`${f.class} ${(0,l.SU)(c.namespace)}-tooltip`,f.style={width:(e.column.realWidth||Number(e.column.width))-1+"px"}),v(r),(0,s.h)("div",f,[h,r])}),i},w=(...t)=>t.reduce(((t,n)=>(Array.isArray(n)&&n.forEach((n=>{t[n]=e[n]})),t)),{}),x=(e,t)=>Array.prototype.indexOf.call(e,t),_=()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)};return{columnId:i,realAlign:a,isSubColumn:o,realHeaderAlign:u,columnOrTableParent:d,setColumnWidth:m,setColumnForcedProps:g,setColumnRenders:y,getPropsData:w,getColumnElIndex:x,updateColumnOrder:_}}var jL={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:[Boolean,Object],fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every((e=>["ascending","descending",null].includes(e)))}};let VL=1;var WL=(0,s.aZ)({name:"ElTableColumn",components:{ElCheckbox:$m},props:jL,setup(e,{slots:t}){const n=(0,s.FN)(),r=(0,l.iH)({}),i=(0,s.Fl)((()=>{let e=n.parent;while(e&&!e.tableId)e=e.parent;return e})),{registerNormalWatchers:o,registerComplexWatchers:a}=BL(i,e),{columnId:u,isSubColumn:c,realHeaderAlign:d,columnOrTableParent:p,setColumnWidth:h,setColumnForcedProps:f,setColumnRenders:m,getPropsData:g,getColumnElIndex:v,realAlign:y,updateColumnOrder:b}=HL(e,t,i),w=p.value;u.value=`${w.tableId||w.columnId}_column_${VL++}`,(0,s.wF)((()=>{c.value=i.value!==w;const t=e.type||"default",s=""===e.sortable||e.sortable,l={...PL[t],id:u.value,type:t,property:e.prop||e.property,align:y,headerAlign:d,showOverflowTooltip:e.showOverflowTooltip,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:s,index:e.index,rawColumnKey:n.vnode.key},p=["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],v=["sortMethod","sortBy","sortOrders"],b=["selectable","reserveSelection"],S=["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"];let x=g(p,v,b,S);x=jO(l,x);const _=qO(m,h,f);x=_(x),r.value=x,o(),a()})),(0,s.bv)((()=>{var e;const t=p.value,o=c.value?t.vnode.el.children:null==(e=t.refs.hiddenColumns)?void 0:e.children,a=()=>v(o||[],n.vnode.el);r.value.getColumnIndex=a;const s=a();s>-1&&i.value.store.commit("insertColumn",r.value,c.value?t.columnConfig.value:null,b)})),(0,s.Jd)((()=>{i.value.store.commit("removeColumn",r.value,c.value?w.columnConfig.value:null,b)})),n.columnId=u.value,n.columnConfig=r},render(){var e,t,n;try{const r=null==(t=(e=this.$slots).default)?void 0:t.call(e,{row:{},column:{},$index:-1}),i=[];if(Array.isArray(r))for(const e of r)"ElTableColumn"===(null==(n=e.type)?void 0:n.name)||2&e.shapeFlag?i.push(e):e.type===s.HY&&Array.isArray(e.children)&&e.children.forEach((e=>{1024===(null==e?void 0:e.patchFlag)||(0,u.HD)(null==e?void 0:e.children)||i.push(e)}));const o=(0,s.h)("div",i);return o}catch(hz){return(0,s.h)("div",[])}}});const $L=(0,D.nz)(DL,{TableColumn:WL}),qL=(0,D.dp)(WL);var GL=(e=>(e["ASC"]="asc",e["DESC"]="desc",e))(GL||{}),ZL=(e=>(e["CENTER"]="center",e["RIGHT"]="right",e))(ZL||{}),YL=(e=>(e["LEFT"]="left",e["RIGHT"]="right",e))(YL||{});const KL={["asc"]:"desc",["desc"]:"asc"},XL=Symbol("placeholder"),JL=(e,t,n)=>{var r;const i={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};n||(i.flexShrink=1);const o={...null!=(r=e.style)?r:{},...i,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(o.maxWidth=e.maxWidth),e.minWidth&&(o.minWidth=e.minWidth)),o};function QL(e,t,n){const r=(0,s.Fl)((()=>(0,l.SU)(t).filter((e=>!e.hidden)))),i=(0,s.Fl)((()=>(0,l.SU)(r).filter((e=>"left"===e.fixed||!0===e.fixed)))),o=(0,s.Fl)((()=>(0,l.SU)(r).filter((e=>"right"===e.fixed)))),a=(0,s.Fl)((()=>(0,l.SU)(r).filter((e=>!e.fixed)))),c=(0,s.Fl)((()=>{const e=[];return(0,l.SU)(i).forEach((t=>{e.push({...t,placeholderSign:XL})})),(0,l.SU)(a).forEach((t=>{e.push(t)})),(0,l.SU)(o).forEach((t=>{e.push({...t,placeholderSign:XL})})),e})),d=(0,s.Fl)((()=>(0,l.SU)(i).length||(0,l.SU)(o).length)),p=(0,s.Fl)((()=>{const r=(0,l.SU)(t);return r.reduce(((t,r)=>(t[r.key]=JL(r,(0,l.SU)(n),e.fixed),t)),{})})),h=(0,s.Fl)((()=>(0,l.SU)(r).reduce(((e,t)=>e+t.width),0))),f=e=>(0,l.SU)(t).find((t=>t.key===e)),m=e=>(0,l.SU)(p)[e],g=(e,t)=>{e.width=t};function v(t){var n;const{key:r}=t.currentTarget.dataset;if(!r)return;const{sortState:i,sortBy:o}=e;let a=GL.ASC;a=(0,u.Kn)(i)?KL[i[r]]:KL[o.order],null==(n=e.onColumnSort)||n.call(e,{column:f(r),key:r,order:a})}return{columns:t,columnsStyles:p,columnsTotalWidth:h,fixedColumnsOnLeft:i,fixedColumnsOnRight:o,hasFixedColumns:d,mainColumns:c,normalColumns:a,visibleColumns:r,getColumn:f,getColumnStyle:m,updateColumnWidth:g,onColumnSorted:v}}const eR=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:i})=>{const o=(0,l.iH)({scrollLeft:0,scrollTop:0});function a(e){var i,o,a;const{scrollTop:s}=e;null==(i=t.value)||i.scrollTo(e),null==(o=n.value)||o.scrollToTop(s),null==(a=r.value)||a.scrollToTop(s)}function u(e){o.value=e,a(e)}function c(e){o.value.scrollTop=e,a((0,l.SU)(o))}function d(e){var n,r;o.value.scrollLeft=e,null==(r=null==(n=t.value)?void 0:n.scrollTo)||r.call(n,(0,l.SU)(o))}function p(t){var n;u(t),null==(n=e.onScroll)||n.call(e,t)}function h({scrollTop:e}){const{scrollTop:t}=(0,l.SU)(o);e!==t&&c(e)}function f(e,n="auto"){var r;null==(r=t.value)||r.scrollToRow(e,n)}return(0,s.YP)((()=>(0,l.SU)(o).scrollTop),((e,t)=>{e>t&&i()})),{scrollPos:o,scrollTo:u,scrollToLeft:d,scrollToTop:c,scrollToRow:f,onScroll:p,onVerticalScroll:h}},tR=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r})=>{const i=(0,s.FN)(),{emit:o}=i,a=(0,l.XI)(!1),u=(0,l.XI)(null),c=(0,l.iH)(e.defaultExpandedRowKeys||[]),d=(0,l.iH)(-1),h=(0,l.XI)(null),f=(0,l.iH)({}),m=(0,l.iH)({}),g=(0,l.XI)({}),v=(0,l.XI)({}),y=(0,l.XI)({}),b=(0,s.Fl)((()=>(0,p.hj)(e.estimatedRowHeight)));function w(t){var n;null==(n=e.onRowsRendered)||n.call(e,t),t.rowCacheEnd>(0,l.SU)(d)&&(d.value=t.rowCacheEnd)}function S({hovered:e,rowKey:t}){u.value=e?t:null}function x({expanded:t,rowData:n,rowIndex:r,rowKey:i}){var a,s;const u=[...(0,l.SU)(c)],d=u.indexOf(i);t?-1===d&&u.push(i):d>-1&&u.splice(d,1),c.value=u,o("update:expandedRowKeys",u),null==(a=e.onRowExpand)||a.call(e,{expanded:t,rowData:n,rowIndex:r,rowKey:i}),null==(s=e.onExpandedRowsChange)||s.call(e,u)}const _=he((()=>{var e,o,s,u;a.value=!0,f.value={...(0,l.SU)(f),...(0,l.SU)(m)},C((0,l.SU)(h),!1),m.value={},h.value=null,null==(e=t.value)||e.forceUpdate(),null==(o=n.value)||o.forceUpdate(),null==(s=r.value)||s.forceUpdate(),null==(u=i.proxy)||u.$forceUpdate(),a.value=!1}),0);function C(e,i=!1){(0,l.SU)(b)&&[t,n,r].forEach((t=>{const n=(0,l.SU)(t);n&&n.resetAfterRowIndex(e,i)}))}function E(e,t,n){const r=(0,l.SU)(h);(null===r||r>n)&&(h.value=n),m.value[e]=t}function M({rowKey:e,height:t,rowIndex:n},r){r?r===YL.RIGHT?y.value[e]=t:g.value[e]=t:v.value[e]=t;const i=Math.max(...[g,y,v].map((t=>t.value[e]||0)));(0,l.SU)(f)[e]!==i&&(E(e,i,n),_())}return{hoveringRowKey:u,expandedRowKeys:c,lastRenderedRowIndex:d,isDynamic:b,isResetting:a,rowHeights:f,resetAfterIndex:C,onRowExpanded:x,onRowHovered:S,onRowsRendered:w,onRowHeightChange:M}},nR=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:r})=>{const i=(0,l.iH)({}),o=(0,s.Fl)((()=>{const n={},{data:r,rowKey:o}=e,a=(0,l.SU)(t);if(!a||!a.length)return r;const s=[],u=new Set;a.forEach((e=>u.add(e)));let c=r.slice();c.forEach((e=>n[e[o]]=0));while(c.length>0){const e=c.shift();s.push(e),u.has(e[o])&&Array.isArray(e.children)&&e.children.length>0&&(c=[...e.children,...c],e.children.forEach((t=>n[t[o]]=n[e[o]]+1)))}return i.value=n,s})),a=(0,s.Fl)((()=>{const{data:t,expandColumnKey:n}=e;return n?(0,l.SU)(o):t}));return(0,s.YP)(a,((e,t)=>{e!==t&&(n.value=-1,r(0,!0))})),{data:a,depthMap:i}},rR=(e,t)=>e+t,iR=e=>(0,u.kJ)(e)?e.reduce(rR,0):e,oR=(e,t,n={})=>(0,u.mf)(e)?e(t):null!=e?e:n,aR=e=>(["width","maxWidth","minWidth","height"].forEach((t=>{e[t]=(0,w.Nn)(e[t])})),e),sR=e=>(0,s.lA)(e)?t=>(0,s.h)(e,t):e,lR=(e,{columnsTotalWidth:t,data:n,fixedColumnsOnLeft:r,fixedColumnsOnRight:i})=>{const o=(0,s.Fl)((()=>{const{fixed:n,width:r,vScrollbarSize:i}=e,o=r-i;return n?Math.max(Math.round((0,l.SU)(t)),o):o})),a=(0,s.Fl)((()=>(0,l.SU)(o)+(e.fixed?e.vScrollbarSize:0))),u=(0,s.Fl)((()=>{const{height:t=0,maxHeight:n=0,footerHeight:r,hScrollbarSize:i}=e;if(n>0){const e=(0,l.SU)(v),t=(0,l.SU)(c),o=(0,l.SU)(g),a=o+e+t+i;return Math.min(a,n-r)}return t-r})),c=(0,s.Fl)((()=>{const{rowHeight:t,estimatedRowHeight:r}=e,i=(0,l.SU)(n);return(0,p.hj)(r)?i.length*r:i.length*t})),d=(0,s.Fl)((()=>{const{maxHeight:t}=e,n=(0,l.SU)(u);if((0,p.hj)(t)&&t>0)return n;const r=(0,l.SU)(c)+(0,l.SU)(g)+(0,l.SU)(v);return Math.min(n,r)})),h=e=>e.width,f=(0,s.Fl)((()=>iR((0,l.SU)(r).map(h)))),m=(0,s.Fl)((()=>iR((0,l.SU)(i).map(h)))),g=(0,s.Fl)((()=>iR(e.headerHeight))),v=(0,s.Fl)((()=>{var t;return((null==(t=e.fixedData)?void 0:t.length)||0)*e.rowHeight})),y=(0,s.Fl)((()=>(0,l.SU)(u)-(0,l.SU)(g)-(0,l.SU)(v))),b=(0,s.Fl)((()=>{const{style:t={},height:n,width:r}=e;return aR({...t,height:n,width:r})})),S=(0,s.Fl)((()=>aR({height:e.footerHeight}))),x=(0,s.Fl)((()=>({top:(0,w.Nn)((0,l.SU)(g)),bottom:(0,w.Nn)(e.footerHeight),width:(0,w.Nn)(e.width)})));return{bodyWidth:o,fixedTableHeight:d,mainTableHeight:u,leftTableWidth:f,rightTableWidth:m,headerWidth:a,rowsHeight:c,windowHeight:y,footerHeight:S,emptyStyle:x,rootStyle:b,headerHeight:g}};function uR(e){const t=(0,l.iH)(),n=(0,l.iH)(),r=(0,l.iH)(),{columns:i,columnsStyles:o,columnsTotalWidth:a,fixedColumnsOnLeft:c,fixedColumnsOnRight:d,hasFixedColumns:p,mainColumns:h,onColumnSorted:f}=QL(e,(0,l.Vh)(e,"columns"),(0,l.Vh)(e,"fixed")),{scrollTo:m,scrollToLeft:g,scrollToTop:v,scrollToRow:y,onScroll:b,onVerticalScroll:w,scrollPos:S}=eR(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:X}),{expandedRowKeys:x,hoveringRowKey:_,lastRenderedRowIndex:C,isDynamic:E,isResetting:M,rowHeights:k,resetAfterIndex:T,onRowExpanded:A,onRowHeightChange:U,onRowHovered:I,onRowsRendered:D}=tR(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r}),{data:O,depthMap:P}=nR(e,{expandedRowKeys:x,lastRenderedRowIndex:C,resetAfterIndex:T}),{bodyWidth:L,fixedTableHeight:R,mainTableHeight:N,leftTableWidth:F,rightTableWidth:z,headerWidth:B,rowsHeight:H,windowHeight:j,footerHeight:V,emptyStyle:W,rootStyle:$,headerHeight:q}=lR(e,{columnsTotalWidth:a,data:O,fixedColumnsOnLeft:c,fixedColumnsOnRight:d}),G=(0,l.XI)(!1),Z=(0,l.iH)(),Y=(0,s.Fl)((()=>{const t=0===(0,l.SU)(O).length;return(0,u.kJ)(e.fixedData)?0===e.fixedData.length&&t:t}));function K(t){const{estimatedRowHeight:n,rowHeight:r,rowKey:i}=e;return n?(0,l.SU)(k)[(0,l.SU)(O)[t][i]]||n:r}function X(){const{onEndReached:t}=e;if(!t)return;const{scrollTop:n}=(0,l.SU)(S),r=(0,l.SU)(H),i=(0,l.SU)(j),o=r-(n+i)+e.hScrollbarSize;(0,l.SU)(C)>=0&&r===n+(0,l.SU)(N)-(0,l.SU)(q)&&t(o)}return(0,s.YP)((()=>e.expandedRowKeys),(e=>x.value=e),{deep:!0}),{columns:i,containerRef:Z,mainTableRef:t,leftTableRef:n,rightTableRef:r,isDynamic:E,isResetting:M,isScrolling:G,hoveringRowKey:_,hasFixedColumns:p,columnsStyles:o,columnsTotalWidth:a,data:O,expandedRowKeys:x,depthMap:P,fixedColumnsOnLeft:c,fixedColumnsOnRight:d,mainColumns:h,bodyWidth:L,emptyStyle:W,rootStyle:$,headerWidth:B,footerHeight:V,mainTableHeight:N,fixedTableHeight:R,leftTableWidth:F,rightTableWidth:z,showEmpty:Y,getRowHeight:K,onColumnSorted:f,onRowHovered:I,onRowExpanded:A,onRowsRendered:D,onRowHeightChange:U,scrollTo:m,scrollToLeft:g,scrollToTop:v,scrollToRow:y,onScroll:b,onVerticalScroll:w}}const cR=Symbol("tableV2"),dR=String,pR={type:(0,d.Cq)(Array),required:!0},hR=((0,d.Cq)(Object),{type:(0,d.Cq)(Array)}),fR={...hR,required:!0},mR=String,gR={type:(0,d.Cq)(Array),default:()=>(0,_e.N)([])},vR={type:Number,required:!0},yR={type:(0,d.Cq)([String,Number,Symbol]),default:"id"},bR={type:(0,d.Cq)(Object)},wR=(0,d.o8)({class:String,columns:pR,columnsStyles:{type:(0,d.Cq)(Object),required:!0},depth:Number,expandColumnKey:mR,estimatedRowHeight:{...rU.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:(0,d.Cq)(Function)},onRowHover:{type:(0,d.Cq)(Function)},onRowHeightChange:{type:(0,d.Cq)(Function)},rowData:{type:(0,d.Cq)(Object),required:!0},rowEventHandlers:{type:(0,d.Cq)(Object)},rowIndex:{type:Number,required:!0},rowKey:yR,style:{type:(0,d.Cq)(Object)}}),SR={type:Number,required:!0},xR=(0,d.o8)({class:String,columns:pR,fixedHeaderData:{type:(0,d.Cq)(Array)},headerData:{type:(0,d.Cq)(Array),required:!0},headerHeight:{type:(0,d.Cq)([Number,Array]),default:50},rowWidth:SR,rowHeight:{type:Number,default:50},height:SR,width:SR}),_R=(0,d.o8)({columns:pR,data:fR,fixedData:hR,estimatedRowHeight:wR.estimatedRowHeight,width:vR,height:vR,headerWidth:vR,headerHeight:xR.headerHeight,bodyWidth:vR,rowHeight:vR,cache:QA.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:rU.scrollbarAlwaysOn,scrollbarStartGap:rU.scrollbarStartGap,scrollbarEndGap:rU.scrollbarEndGap,class:dR,style:bR,containerStyle:bR,getRowHeight:{type:(0,d.Cq)(Function),required:!0},rowKey:wR.rowKey,onRowsRendered:{type:(0,d.Cq)(Function)},onScroll:{type:(0,d.Cq)(Function)}}),CR=(0,d.o8)({cache:_R.cache,estimatedRowHeight:wR.estimatedRowHeight,rowKey:yR,headerClass:{type:(0,d.Cq)([String,Function])},headerProps:{type:(0,d.Cq)([Object,Function])},headerCellProps:{type:(0,d.Cq)([Object,Function])},headerHeight:xR.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:(0,d.Cq)([String,Function])},rowProps:{type:(0,d.Cq)([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:(0,d.Cq)([Object,Function])},columns:pR,data:fR,dataGetter:{type:(0,d.Cq)(Function)},fixedData:hR,expandColumnKey:wR.expandColumnKey,expandedRowKeys:gR,defaultExpandedRowKeys:gR,class:dR,fixed:Boolean,style:{type:(0,d.Cq)(Object)},width:vR,height:vR,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:rU.hScrollbarSize,vScrollbarSize:rU.vScrollbarSize,scrollbarAlwaysOn:iU.alwaysOn,sortBy:{type:(0,d.Cq)(Object),default:()=>({})},sortState:{type:(0,d.Cq)(Object),default:void 0},onColumnSort:{type:(0,d.Cq)(Function)},onExpandedRowsChange:{type:(0,d.Cq)(Function)},onEndReached:{type:(0,d.Cq)(Function)},onRowExpand:wR.onRowExpand,onScroll:_R.onScroll,onRowsRendered:_R.onRowsRendered,rowEventHandlers:wR.rowEventHandlers}),ER=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:r},i)=>{let o=null,a=0,s=0;const l=(i,o)=>{const a=i<=0&&t.value||i>=0&&e.value,s=o<=0&&r.value||o>=0&&n.value;return a&&s},u=e=>{jA(o);let t=e.deltaX,n=e.deltaY;Math.abs(t)>Math.abs(n)?n=0:t=0,e.shiftKey&&0!==n&&(t=n,n=0),l(a,s)&&l(a+t,s+n)||(a+=t,s+=n,e.preventDefault(),o=HA((()=>{i(a,s),a=0,s=0})))};return{hasReachedEdge:l,onWheel:u}},MR=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:r,getColumnStopIndexForStartIndex:i,getEstimatedTotalHeight:o,getEstimatedTotalWidth:a,getColumnOffset:c,getRowOffset:d,getRowPosition:h,getRowStartIndexForOffset:f,getRowStopIndexForStartIndex:m,initCache:g,injectToInstance:v,validateProps:y})=>(0,s.aZ)({name:null!=e?e:"ElVirtualList",props:rU,emits:[_A,CA],setup(e,{emit:w,expose:S,slots:_}){const C=(0,b.s3)("vl");y(e);const E=(0,s.FN)(),k=(0,l.iH)(g(e,E));null==v||v(E,k);const T=(0,l.iH)(),A=(0,l.iH)(),U=(0,l.iH)(),I=(0,l.iH)(null),D=(0,l.iH)({isScrolling:!1,scrollLeft:(0,p.hj)(e.initScrollLeft)?e.initScrollLeft:0,scrollTop:(0,p.hj)(e.initScrollTop)?e.initScrollTop:0,updateRequested:!1,xAxisScrollDir:EA,yAxisScrollDir:EA}),O=SA(),P=(0,s.Fl)((()=>Number.parseInt(`${e.height}`,10))),L=(0,s.Fl)((()=>Number.parseInt(`${e.width}`,10))),R=(0,s.Fl)((()=>{const{totalColumn:t,totalRow:n,columnCache:o}=e,{isScrolling:a,xAxisScrollDir:s,scrollLeft:u}=(0,l.SU)(D);if(0===t||0===n)return[0,0,0,0];const c=r(e,u,(0,l.SU)(k)),d=i(e,c,u,(0,l.SU)(k)),p=a&&s!==MA?1:Math.max(1,o),h=a&&s!==EA?1:Math.max(1,o);return[Math.max(0,c-p),Math.max(0,Math.min(t-1,d+h)),c,d]})),N=(0,s.Fl)((()=>{const{totalColumn:t,totalRow:n,rowCache:r}=e,{isScrolling:i,yAxisScrollDir:o,scrollTop:a}=(0,l.SU)(D);if(0===t||0===n)return[0,0,0,0];const s=f(e,a,(0,l.SU)(k)),u=m(e,s,a,(0,l.SU)(k)),c=i&&o!==MA?1:Math.max(1,r),d=i&&o!==EA?1:Math.max(1,r);return[Math.max(0,s-c),Math.max(0,Math.min(n-1,u+d)),s,u]})),F=(0,s.Fl)((()=>o(e,(0,l.SU)(k)))),z=(0,s.Fl)((()=>a(e,(0,l.SU)(k)))),B=(0,s.Fl)((()=>{var t;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:e.direction,height:(0,p.hj)(e.height)?`${e.height}px`:e.height,width:(0,p.hj)(e.width)?`${e.width}px`:e.width},null!=(t=e.style)?t:{}]})),H=(0,s.Fl)((()=>{const e=`${(0,l.SU)(z)}px`,t=`${(0,l.SU)(F)}px`;return{height:t,pointerEvents:(0,l.SU)(D).isScrolling?"none":void 0,width:e}})),j=()=>{const{totalColumn:t,totalRow:n}=e;if(t>0&&n>0){const[e,t,n,r]=(0,l.SU)(R),[i,o,a,s]=(0,l.SU)(N);w(_A,{columnCacheStart:e,columnCacheEnd:t,rowCacheStart:i,rowCacheEnd:o,columnVisibleStart:n,columnVisibleEnd:r,rowVisibleStart:a,rowVisibleEnd:s})}const{scrollLeft:r,scrollTop:i,updateRequested:o,xAxisScrollDir:a,yAxisScrollDir:s}=(0,l.SU)(D);w(CA,{xAxisScrollDir:a,scrollLeft:r,yAxisScrollDir:s,scrollTop:i,updateRequested:o})},V=t=>{const{clientHeight:n,clientWidth:r,scrollHeight:i,scrollLeft:o,scrollTop:a,scrollWidth:u}=t.currentTarget,c=(0,l.SU)(D);if(c.scrollTop===a&&c.scrollLeft===o)return;let d=o;if(sU(e.direction))switch(uU()){case RA:d=-o;break;case FA:d=u-r-o;break}D.value={...c,isScrolling:!0,scrollLeft:d,scrollTop:Math.max(0,Math.min(a,i-n)),updateRequested:!0,xAxisScrollDir:oU(c.scrollLeft,d),yAxisScrollDir:oU(c.scrollTop,a)},(0,s.Y3)((()=>K())),X(),j()},W=(e,t)=>{const n=(0,l.SU)(P),r=(F.value-n)/t*e;G({scrollTop:Math.min(F.value-n,r)})},$=(e,t)=>{const n=(0,l.SU)(L),r=(z.value-n)/t*e;G({scrollLeft:Math.min(z.value-n,r)})},{onWheel:q}=ER({atXStartEdge:(0,s.Fl)((()=>D.value.scrollLeft<=0)),atXEndEdge:(0,s.Fl)((()=>D.value.scrollLeft>=z.value-(0,l.SU)(L))),atYStartEdge:(0,s.Fl)((()=>D.value.scrollTop<=0)),atYEndEdge:(0,s.Fl)((()=>D.value.scrollTop>=F.value-(0,l.SU)(P)))},((e,t)=>{var n,r,i,o;null==(r=null==(n=A.value)?void 0:n.onMouseUp)||r.call(n),null==(o=null==(i=A.value)?void 0:i.onMouseUp)||o.call(i);const a=(0,l.SU)(L),s=(0,l.SU)(P);G({scrollLeft:Math.min(D.value.scrollLeft+e,z.value-a),scrollTop:Math.min(D.value.scrollTop+t,F.value-s)})})),G=({scrollLeft:e=D.value.scrollLeft,scrollTop:t=D.value.scrollTop})=>{e=Math.max(e,0),t=Math.max(t,0);const n=(0,l.SU)(D);t===n.scrollTop&&e===n.scrollLeft||(D.value={...n,xAxisScrollDir:oU(n.scrollLeft,e),yAxisScrollDir:oU(n.scrollTop,t),scrollLeft:e,scrollTop:t,updateRequested:!0},(0,s.Y3)((()=>K())),X(),j())},Z=(t=0,n=0,r=kA)=>{const i=(0,l.SU)(D);n=Math.max(0,Math.min(n,e.totalColumn-1)),t=Math.max(0,Math.min(t,e.totalRow-1));const s=M(C.namespace.value),u=(0,l.SU)(k),p=o(e,u),h=a(e,u);G({scrollLeft:c(e,n,r,i.scrollLeft,u,h>e.width?s:0),scrollTop:d(e,t,r,i.scrollTop,u,p>e.height?s:0)})},Y=(r,i)=>{const{columnWidth:o,direction:a,rowHeight:s}=e,c=O.value(t&&o,t&&s,t&&a),d=`${r},${i}`;if((0,u.RI)(c,d))return c[d];{const[,t]=n(e,i,(0,l.SU)(k)),o=(0,l.SU)(k),s=sU(a),[u,p]=h(e,r,o),[f]=n(e,i,o);return c[d]={position:"absolute",left:s?void 0:`${t}px`,right:s?`${t}px`:void 0,top:`${p}px`,height:`${u}px`,width:`${f}px`},c[d]}},K=()=>{D.value.isScrolling=!1,(0,s.Y3)((()=>{O.value(-1,null,null)}))};(0,s.bv)((()=>{if(!x.C5)return;const{initScrollLeft:t,initScrollTop:n}=e,r=(0,l.SU)(T);r&&((0,p.hj)(t)&&(r.scrollLeft=t),(0,p.hj)(n)&&(r.scrollTop=n)),j()}));const X=()=>{const{direction:t}=e,{scrollLeft:n,scrollTop:r,updateRequested:i}=(0,l.SU)(D),o=(0,l.SU)(T);if(i&&o){if(t===LA)switch(uU()){case RA:o.scrollLeft=-n;break;case NA:o.scrollLeft=n;break;default:{const{clientWidth:e,scrollWidth:t}=o;o.scrollLeft=t-e-n;break}}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}},{resetAfterColumnIndex:J,resetAfterRowIndex:Q,resetAfter:ee}=E.proxy;S({windowRef:T,innerRef:I,getItemStyleCache:O,scrollTo:G,scrollToItem:Z,states:D,resetAfterColumnIndex:J,resetAfterRowIndex:Q,resetAfter:ee});const te=()=>{const{scrollbarAlwaysOn:t,scrollbarStartGap:n,scrollbarEndGap:r,totalColumn:i,totalRow:o}=e,a=(0,l.SU)(L),u=(0,l.SU)(P),c=(0,l.SU)(z),d=(0,l.SU)(F),{scrollLeft:p,scrollTop:h}=(0,l.SU)(D),f=(0,s.h)(dU,{ref:A,alwaysOn:t,startGap:n,endGap:r,class:C.e("horizontal"),clientSize:a,layout:"horizontal",onScroll:$,ratio:100*a/c,scrollFrom:p/(c-a),total:o,visible:!0}),m=(0,s.h)(dU,{ref:U,alwaysOn:t,startGap:n,endGap:r,class:C.e("vertical"),clientSize:u,layout:"vertical",onScroll:W,ratio:100*u/d,scrollFrom:h/(d-u),total:i,visible:!0});return{horizontalScrollbar:f,verticalScrollbar:m}},ne=()=>{var t;const[n,r]=(0,l.SU)(R),[i,o]=(0,l.SU)(N),{data:a,totalColumn:s,totalRow:u,useIsScrolling:c,itemKey:d}=e,p=[];if(u>0&&s>0)for(let e=i;e<=o;e++)for(let i=n;i<=r;i++)p.push(null==(t=_.default)?void 0:t.call(_,{columnIndex:i,data:a,key:d({columnIndex:i,data:a,rowIndex:e}),isScrolling:c?(0,l.SU)(D).isScrolling:void 0,style:Y(e,i),rowIndex:e}));return p},re=()=>{const t=(0,s.LL)(e.innerElement),n=ne();return[(0,s.h)(t,{style:(0,l.SU)(H),ref:I},(0,u.HD)(t)?n:{default:()=>n})]},ie=()=>{const t=(0,s.LL)(e.containerElement),{horizontalScrollbar:n,verticalScrollbar:r}=te(),i=re();return(0,s.h)("div",{key:0,class:C.e("wrapper"),role:e.role},[(0,s.h)(t,{class:e.className,style:(0,l.SU)(B),onScroll:V,onWheel:q,ref:T},(0,u.HD)(t)?i:{default:()=>i}),n,r])};return ie}}),{max:kR,min:TR,floor:AR}=Math,UR={column:"columnWidth",row:"rowHeight"},IR={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},DR=(e,t,n,r)=>{const[i,o,a]=[n[r],e[UR[r]],n[IR[r]]];if(t>a){let e=0;if(a>=0){const t=i[a];e=t.offset+t.size}for(let n=a+1;n<=t;n++){const t=o(n);i[n]={offset:e,size:t},e+=t}n[IR[r]]=t}return i[t]},OR=(e,t,n,r,i,o)=>{while(n<=r){const a=n+AR((r-n)/2),s=DR(e,a,t,o).offset;if(s===i)return a;s{const o="column"===i?e.totalColumn:e.totalRow;let a=1;while(n{const[i,o]=[t[r],t[IR[r]]],a=o>0?i[o].offset:0;return a>=n?OR(e,t,0,o,n,r):PR(e,t,kR(0,o),n,r)},RR=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:r})=>{let i=0;if(n>=e&&(n=e-1),n>=0){const e=r[n];i=e.offset+e.size}const o=e-n-1,a=o*t;return i+a},NR=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:r})=>{let i=0;if(r>e&&(r=e-1),r>=0){const e=t[r];i=e.offset+e.size}const o=e-r-1,a=o*n;return i+a},FR={column:NR,row:RR},zR=(e,t,n,r,i,o,a)=>{const[s,l]=["row"===o?e.height:e.width,FR[o]],u=DR(e,t,i,o),c=l(e,i),d=kR(0,TR(c-s,u.offset)),p=kR(0,u.offset-s+a+u.size);switch(n===TA&&(n=r>=p-s&&r<=d+s?kA:UA),n){case AA:return d;case IA:return p;case UA:return Math.round(p+(d-p)/2);case kA:default:return r>=p&&r<=d?r:p>d||r{const r=DR(e,t,n,"column");return[r.size,r.offset]},getRowPosition:(e,t,n)=>{const r=DR(e,t,n,"row");return[r.size,r.offset]},getColumnOffset:(e,t,n,r,i,o)=>zR(e,t,n,r,i,"column",o),getRowOffset:(e,t,n,r,i,o)=>zR(e,t,n,r,i,"row",o),getColumnStartIndexForOffset:(e,t,n)=>LR(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,r)=>{const i=DR(e,t,r,"column"),o=n+e.width;let a=i.offset+i.size,s=t;while(sLR(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,r)=>{const{totalRow:i,height:o}=e,a=DR(e,t,r,"row"),s=n+o;let l=a.size+a.offset,u=t;while(u{const n=({columnIndex:n,rowIndex:r},i)=>{var o,a;i=!!(0,p.o8)(i)||i,(0,p.hj)(n)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,n-1)),(0,p.hj)(r)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,r-1)),null==(o=e.exposed)||o.getItemStyleCache.value(-1,null,null),i&&(null==(a=e.proxy)||a.$forceUpdate())},r=(e,t)=>{n({columnIndex:e},t)},i=(e,t)=>{n({rowIndex:e},t)};Object.assign(e.proxy,{resetAfterColumnIndex:r,resetAfterRowIndex:i,resetAfter:n})},initCache:({estimatedColumnWidth:e=xA,estimatedRowHeight:t=xA})=>{const n={column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}};return n},clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{0}}),HR=MR({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},r,i,o,a,s)=>{n=Number(n);const l=Math.max(0,e*t-n),u=Math.min(l,r*t),c=Math.max(0,r*t-n+s+t);switch("smart"===i&&(i=o>=c-n&&o<=u+n?kA:UA),i){case AA:return u;case IA:return c;case UA:{const e=Math.round(c+(u-c)/2);return el+Math.floor(n/2)?l:e}case kA:default:return o>=c&&o<=u?o:c>u||o{t=Number(t);const l=Math.max(0,n*e-t),u=Math.min(l,r*e),c=Math.max(0,r*e-t+s+e);switch(i===TA&&(i=o>=c-t&&o<=u+t?kA:UA),i){case AA:return u;case IA:return c;case UA:{const e=Math.round(c+(u-c)/2);return el+Math.floor(t/2)?l:e}case kA:default:return o>=c&&o<=u?o:c>u||oMath.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},r,i)=>{const o=r*e,a=Math.ceil((n+i-o)/e);return Math.max(0,Math.min(t-1,r+a-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},r,i)=>{const o=r*e,a=Math.ceil((n+i-o)/e);return Math.max(0,Math.min(t-1,r+a-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{0}}),jR="ElTableV2Header",VR=(0,s.aZ)({name:jR,props:xR,setup(e,{slots:t,expose:n}){const r=(0,b.s3)("table-v2"),i=(0,l.iH)(),o=(0,s.Fl)((()=>aR({width:e.width,height:e.height}))),a=(0,s.Fl)((()=>aR({width:e.rowWidth,height:e.height}))),u=(0,s.Fl)((()=>zv((0,l.SU)(e.headerHeight)))),c=e=>{const t=(0,l.SU)(i);(0,s.Y3)((()=>{(null==t?void 0:t.scroll)&&t.scroll({left:e})}))},d=()=>{const n=r.e("fixed-header-row"),{columns:i,fixedHeaderData:o,rowHeight:a}=e;return null==o?void 0:o.map(((e,r)=>{var o;const s=aR({height:a,width:"100%"});return null==(o=t.fixed)?void 0:o.call(t,{class:n,columns:i,rowData:e,rowIndex:-(r+1),style:s})}))},p=()=>{const n=r.e("dynamic-header-row"),{columns:i}=e;return(0,l.SU)(u).map(((e,r)=>{var o;const a=aR({width:"100%",height:e});return null==(o=t.dynamic)?void 0:o.call(t,{class:n,columns:i,headerIndex:r,style:a})}))};return n({scrollToLeft:c}),()=>{if(!(e.height<=0))return(0,s.Wm)("div",{ref:i,class:e.class,style:(0,l.SU)(o),role:"rowgroup"},[(0,s.Wm)("div",{style:(0,l.SU)(a),class:r.e("header")},[p(),d()])])}}}),WR="ElTableV2Grid",$R=e=>{const t=(0,l.iH)(),n=(0,l.iH)(),r=(0,s.Fl)((()=>{const{data:t,rowHeight:n,estimatedRowHeight:r}=e;if(!r)return t.length*n})),i=(0,s.Fl)((()=>{const{fixedData:t,rowHeight:n}=e;return((null==t?void 0:t.length)||0)*n})),o=(0,s.Fl)((()=>iR(e.headerHeight))),a=(0,s.Fl)((()=>{const{height:t}=e;return Math.max(0,t-(0,l.SU)(o)-(0,l.SU)(i))})),c=(0,s.Fl)((()=>(0,l.SU)(o)+(0,l.SU)(i)>0)),d=({data:t,rowIndex:n})=>t[n][e.rowKey];function p({rowCacheStart:t,rowCacheEnd:n,rowVisibleStart:r,rowVisibleEnd:i}){var o;null==(o=e.onRowsRendered)||o.call(e,{rowCacheStart:t,rowCacheEnd:n,rowVisibleStart:r,rowVisibleEnd:i})}function h(e,t){var r;null==(r=n.value)||r.resetAfterRowIndex(e,t)}function f(e,r){const i=(0,l.SU)(t),o=(0,l.SU)(n);i&&o&&((0,u.Kn)(e)?(i.scrollToLeft(e.scrollLeft),o.scrollTo(e)):(i.scrollToLeft(e),o.scrollTo({scrollLeft:e,scrollTop:r})))}function m(e){var t;null==(t=(0,l.SU)(n))||t.scrollTo({scrollTop:e})}function g(e,t){var r;null==(r=(0,l.SU)(n))||r.scrollToItem(e,1,t)}function v(){var e,r;null==(e=(0,l.SU)(n))||e.$forceUpdate(),null==(r=(0,l.SU)(t))||r.$forceUpdate()}return{bodyRef:n,forceUpdate:v,fixedRowHeight:i,gridHeight:a,hasHeader:c,headerHeight:o,headerRef:t,totalHeight:r,itemKey:d,onItemRendered:p,resetAfterRowIndex:h,scrollTo:f,scrollToTop:m,scrollToRow:g}},qR=(0,s.aZ)({name:WR,props:_R,setup(e,{slots:t,expose:n}){const{ns:r}=(0,s.f3)(cR),{bodyRef:i,fixedRowHeight:o,gridHeight:a,hasHeader:u,headerRef:c,headerHeight:d,totalHeight:h,forceUpdate:f,itemKey:m,onItemRendered:g,resetAfterRowIndex:v,scrollTo:y,scrollToTop:b,scrollToRow:w}=$R(e);n({forceUpdate:f,totalHeight:h,scrollTo:y,scrollToTop:b,scrollToRow:w,resetAfterRowIndex:v});const S=()=>e.bodyWidth;return()=>{const{cache:n,columns:h,data:f,fixedData:v,useIsScrolling:y,scrollbarAlwaysOn:b,scrollbarEndGap:w,scrollbarStartGap:x,style:_,rowHeight:C,bodyWidth:E,estimatedRowHeight:M,headerWidth:k,height:T,width:A,getRowHeight:U,onScroll:I}=e,D=(0,p.hj)(M),O=D?BR:HR,P=(0,l.SU)(d);return(0,s.Wm)("div",{role:"table",class:[r.e("table"),e.class],style:_},[(0,s.Wm)(O,{ref:i,data:f,useIsScrolling:y,itemKey:m,columnCache:0,columnWidth:D?S:E,totalColumn:1,totalRow:f.length,rowCache:n,rowHeight:D?U:C,width:A,height:(0,l.SU)(a),class:r.e("body"),role:"rowgroup",scrollbarStartGap:x,scrollbarEndGap:w,scrollbarAlwaysOn:b,onScroll:I,onItemRendered:g,perfMode:!1},{default:e=>{var n;const r=f[e.rowIndex];return null==(n=t.row)?void 0:n.call(t,{...e,columns:h,rowData:r})}}),(0,l.SU)(u)&&(0,s.Wm)(VR,{ref:c,class:r.e("header-wrapper"),columns:h,headerData:f,headerHeight:e.headerHeight,fixedHeaderData:v,rowWidth:k,rowHeight:C,width:A,height:Math.min(P+(0,l.SU)(o),T)},{dynamic:t.header,fixed:t.row})])}}});function GR(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,s.lA)(e)}const ZR=(e,{slots:t})=>{const{mainTableRef:n,...r}=e;return(0,s.Wm)(qR,(0,s.dG)({ref:n},r),GR(t)?t:{default:()=>[t]})};function YR(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,s.lA)(e)}const KR=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...r}=e;return(0,s.Wm)(qR,(0,s.dG)({ref:n},r),YR(t)?t:{default:()=>[t]})};function XR(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,s.lA)(e)}const JR=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...r}=e;return(0,s.Wm)(qR,(0,s.dG)({ref:n},r),XR(t)?t:{default:()=>[t]})},QR=e=>{const{isScrolling:t}=(0,s.f3)(cR),n=(0,l.iH)(!1),r=(0,l.iH)(),i=(0,s.Fl)((()=>(0,p.hj)(e.estimatedRowHeight)&&e.rowIndex>=0)),o=(t=!1)=>{const i=(0,l.SU)(r);if(!i)return;const{columns:o,onRowHeightChange:a,rowKey:u,rowIndex:c,style:d}=e,{height:p}=i.getBoundingClientRect();n.value=!0,(0,s.Y3)((()=>{if(t||p!==Number.parseInt(d.height)){const e=o[0],t=(null==e?void 0:e.placeholderSign)===XL;null==a||a({rowKey:u,height:p,rowIndex:c},e&&!t&&e.fixed)}}))},a=(0,s.Fl)((()=>{const{rowData:t,rowIndex:n,rowKey:r,onRowHover:i}=e,o=e.rowEventHandlers||{},a={};return Object.entries(o).forEach((([e,i])=>{(0,u.mf)(i)&&(a[e]=e=>{i({event:e,rowData:t,rowIndex:n,rowKey:r})})})),i&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach((({name:e,hovered:o})=>{const s=a[e];a[e]=e=>{i({event:e,hovered:o,rowData:t,rowIndex:n,rowKey:r}),null==s||s(e)}})),a})),c=t=>{const{onRowExpand:n,rowData:r,rowIndex:i,rowKey:o}=e;null==n||n({expanded:t,rowData:r,rowIndex:i,rowKey:o})};return(0,s.bv)((()=>{(0,l.SU)(i)&&o(!0)})),{isScrolling:t,measurable:i,measured:n,rowRef:r,eventHandlers:a,onExpand:c}},eN="ElTableV2TableRow",tN=(0,s.aZ)({name:eN,props:wR,setup(e,{expose:t,slots:n,attrs:r}){const{eventHandlers:i,isScrolling:o,measurable:a,measured:c,rowRef:d,onExpand:p}=QR(e);return t({onExpand:p}),()=>{const{columns:t,columnsStyles:h,expandColumnKey:f,depth:m,rowData:g,rowIndex:v,style:y}=e;let b=t.map(((e,r)=>{const i=(0,u.kJ)(g.children)&&g.children.length>0&&e.key===f;return n.cell({column:e,columns:t,columnIndex:r,depth:m,style:h[e.key],rowData:g,rowIndex:v,isScrolling:(0,l.SU)(o),expandIconProps:i?{rowData:g,rowIndex:v,onExpand:p}:void 0})}));if(n.row&&(b=n.row({cells:b.map((e=>(0,u.kJ)(e)&&1===e.length?e[0]:e)),style:y,columns:t,depth:m,rowData:g,rowIndex:v,isScrolling:(0,l.SU)(o)})),(0,l.SU)(a)){const{height:t,...n}=y||{},o=(0,l.SU)(c);return(0,s.Wm)("div",(0,s.dG)({ref:d,class:e.class,style:o?y:n,role:"row"},r,(0,l.SU)(i)),[b])}return(0,s.Wm)("div",(0,s.dG)(r,{ref:d,class:e.class,style:y,role:"row"},(0,l.SU)(i)),[b])}}});function nN(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,s.lA)(e)}const rN=(e,{slots:t})=>{const{columns:n,columnsStyles:r,depthMap:i,expandColumnKey:o,expandedRowKeys:a,estimatedRowHeight:l,hasFixedColumns:u,hoveringRowKey:c,rowData:d,rowIndex:p,style:h,isScrolling:f,rowProps:m,rowClass:g,rowKey:v,rowEventHandlers:y,ns:b,onRowHovered:w,onRowExpanded:S}=e,x=oR(g,{columns:n,rowData:d,rowIndex:p},""),_=oR(m,{columns:n,rowData:d,rowIndex:p}),C=d[v],E=i[C]||0,M=Boolean(o),k=p<0,T=[b.e("row"),x,{[b.e(`row-depth-${E}`)]:M&&p>=0,[b.is("expanded")]:M&&a.includes(C),[b.is("hovered")]:!f&&C===c,[b.is("fixed")]:!E&&k,[b.is("customized")]:Boolean(t.row)}],A=u?w:void 0,U={..._,columns:n,columnsStyles:r,class:T,depth:E,expandColumnKey:o,estimatedRowHeight:k?void 0:l,isScrolling:f,rowIndex:p,rowData:d,rowKey:C,rowEventHandlers:y,style:h};return(0,s.Wm)(tN,(0,s.dG)(U,{onRowHover:A,onRowExpand:S}),nN(t)?t:{default:()=>[t]})},iN=(e,{slots:t})=>{var n;const{cellData:r,style:i}=e,o=(null==(n=null==r?void 0:r.toString)?void 0:n.call(r))||"";return(0,s.Wm)("div",{class:e.class,title:o,style:i},[t.default?t.default(e):o])};iN.displayName="ElTableV2Cell",iN.inheritAttrs=!1;const oN=e=>{const{expanded:t,expandable:n,onExpand:r,style:i,size:o}=e,a={onClick:n?()=>r(!t):void 0,class:e.class};return(0,s.Wm)(L.gn,(0,s.dG)(a,{size:o,style:i}),{default:()=>[(0,s.Wm)(fe.olP,null,null)]})},aN=({columns:e,column:t,columnIndex:n,depth:r,expandIconProps:i,isScrolling:o,rowData:a,rowIndex:l,style:c,expandedRowKeys:d,ns:p,cellProps:h,expandColumnKey:f,indentSize:m,iconSize:g,rowKey:v},{slots:y})=>{const b=aR(c);if(t.placeholderSign===XL)return(0,s.Wm)("div",{class:p.em("row-cell","placeholder"),style:b},null);const{cellRenderer:w,dataKey:S,dataGetter:x}=t,_=sR(w),C=_||y.default||(e=>(0,s.Wm)(iN,e,null)),E=(0,u.mf)(x)?x({columns:e,column:t,columnIndex:n,rowData:a,rowIndex:l}):(0,rk.Z)(a,null!=S?S:""),M=oR(h,{cellData:E,columns:e,column:t,columnIndex:n,rowIndex:l,rowData:a}),k={class:p.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:E,isScrolling:o,rowData:a,rowIndex:l},T=C(k),A=[p.e("row-cell"),t.class,t.align===ZL.CENTER&&p.is("align-center"),t.align===ZL.RIGHT&&p.is("align-right")],U=l>=0&&f&&t.key===f,I=l>=0&&d.includes(a[v]);let D;const O=`margin-inline-start: ${r*m}px;`;return U&&(D=(0,u.Kn)(i)?(0,s.Wm)(oN,(0,s.dG)(i,{class:[p.e("expand-icon"),p.is("expanded",I)],size:g,expanded:I,style:O,expandable:!0}),null):(0,s.Wm)("div",{style:[O,`width: ${g}px; height: ${g}px;`].join(" ")},null)),(0,s.Wm)("div",(0,s.dG)({class:A,style:b},M,{role:"cell"}),[D,T])};aN.inheritAttrs=!1;const sN=(0,d.o8)({class:String,columns:pR,columnsStyles:{type:(0,d.Cq)(Object),required:!0},headerIndex:Number,style:{type:(0,d.Cq)(Object)}}),lN=(0,s.aZ)({name:"ElTableV2HeaderRow",props:sN,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:r,headerIndex:i,style:o}=e;let a=n.map(((e,o)=>t.cell({columns:n,column:e,columnIndex:o,headerIndex:i,style:r[e.key]})));return t.header&&(a=t.header({cells:a.map((e=>(0,u.kJ)(e)&&1===e.length?e[0]:e)),columns:n,headerIndex:i})),(0,s.Wm)("div",{class:e.class,style:o,role:"row"},[a])}}});function uN(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,s.lA)(e)}const cN=({columns:e,columnsStyles:t,headerIndex:n,style:r,headerClass:i,headerProps:o,ns:a},{slots:l})=>{const u={columns:e,headerIndex:n},c=[a.e("header-row"),oR(i,u,""),{[a.is("customized")]:Boolean(l.header)}],d={...oR(o,u),columnsStyles:t,class:c,columns:e,headerIndex:n,style:r};return(0,s.Wm)(lN,d,uN(l)?l:{default:()=>[l]})},dN=(e,{slots:t})=>{var n,r;return t.default?t.default(e):(0,s.Wm)("div",{class:e.class,title:null==(n=e.column)?void 0:n.title},[null==(r=e.column)?void 0:r.title])};dN.displayName="ElTableV2HeaderCell",dN.inheritAttrs=!1;const pN=e=>{const{sortOrder:t}=e;return(0,s.Wm)(L.gn,{size:14,class:e.class},{default:()=>[t===GL.ASC?(0,s.Wm)(fe.Ncu,null,null):(0,s.Wm)(fe.laI,null,null)]})},hN=(e,{slots:t})=>{const{column:n,ns:r,style:i,onColumnSorted:o}=e,a=aR(i);if(n.placeholderSign===XL)return(0,s.Wm)("div",{class:r.em("header-row-cell","placeholder"),style:a},null);const{headerCellRenderer:l,headerClass:u,sortable:c}=n,d={...e,class:r.e("header-cell-text")},p=sR(l)||t.default||(e=>(0,s.Wm)(dN,e,null)),h=p(d),{sortBy:f,sortState:m,headerCellProps:g}=e;let v,y;if(m){const e=m[n.key];v=Boolean(KL[e]),y=v?e:GL.ASC}else v=n.key===f.key,y=v?f.order:GL.ASC;const b=[r.e("header-cell"),oR(u,e,""),n.align===ZL.CENTER&&r.is("align-center"),n.align===ZL.RIGHT&&r.is("align-right"),c&&r.is("sortable")],w={...oR(g,e),onClick:n.sortable?o:void 0,class:b,style:a,["data-key"]:n.key};return(0,s.Wm)("div",(0,s.dG)(w,{role:"columnheader"}),[h,c&&(0,s.Wm)(pN,{class:[r.e("sort-icon"),v&&r.is("sorting")],sortOrder:y},null)])},fN=(e,{slots:t})=>{var n;return(0,s.Wm)("div",{class:e.class,style:e.style},[null==(n=t.default)?void 0:n.call(t)])};fN.displayName="ElTableV2Footer";const mN=(e,{slots:t})=>(0,s.Wm)("div",{class:e.class,style:e.style},[t.default?t.default():(0,s.Wm)(nC,null,null)]);mN.displayName="ElTableV2Empty";const gN=(e,{slots:t})=>{var n;return(0,s.Wm)("div",{class:e.class,style:e.style},[null==(n=t.default)?void 0:n.call(t)])};function vN(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,s.lA)(e)}gN.displayName="ElTableV2Overlay";const yN="ElTableV2",bN=(0,s.aZ)({name:yN,props:CR,setup(e,{slots:t,expose:n}){const r=(0,b.s3)("table-v2"),{columnsStyles:i,fixedColumnsOnLeft:o,fixedColumnsOnRight:a,mainColumns:u,mainTableHeight:c,fixedTableHeight:d,leftTableWidth:p,rightTableWidth:h,data:f,depthMap:m,expandedRowKeys:g,hasFixedColumns:v,hoveringRowKey:y,mainTableRef:w,leftTableRef:S,rightTableRef:x,isDynamic:_,isResetting:C,isScrolling:E,bodyWidth:M,emptyStyle:k,rootStyle:T,headerWidth:A,footerHeight:U,showEmpty:I,scrollTo:D,scrollToLeft:O,scrollToTop:P,scrollToRow:L,getRowHeight:R,onColumnSorted:N,onRowHeightChange:F,onRowHovered:z,onRowExpanded:B,onRowsRendered:H,onScroll:j,onVerticalScroll:V}=uR(e);return n({scrollTo:D,scrollToLeft:O,scrollToTop:P,scrollToRow:L}),(0,s.JJ)(cR,{ns:r,isResetting:C,hoveringRowKey:y,isScrolling:E}),()=>{const{cache:n,cellProps:b,estimatedRowHeight:C,expandColumnKey:E,fixedData:D,headerHeight:O,headerClass:P,headerProps:L,headerCellProps:W,sortBy:$,sortState:q,rowHeight:G,rowClass:Z,rowEventHandlers:Y,rowKey:K,rowProps:X,scrollbarAlwaysOn:J,indentSize:Q,iconSize:ee,useIsScrolling:te,vScrollbarSize:ne,width:re}=e,ie=(0,l.SU)(f),oe={cache:n,class:r.e("main"),columns:(0,l.SU)(u),data:ie,fixedData:D,estimatedRowHeight:C,bodyWidth:(0,l.SU)(M),headerHeight:O,headerWidth:(0,l.SU)(A),height:(0,l.SU)(c),mainTableRef:w,rowKey:K,rowHeight:G,scrollbarAlwaysOn:J,scrollbarStartGap:2,scrollbarEndGap:ne,useIsScrolling:te,width:re,getRowHeight:R,onRowsRendered:H,onScroll:j},ae=(0,l.SU)(p),se=(0,l.SU)(d),le={cache:n,class:r.e("left"),columns:(0,l.SU)(o),data:ie,estimatedRowHeight:C,leftTableRef:S,rowHeight:G,bodyWidth:ae,headerWidth:ae,headerHeight:O,height:se,rowKey:K,scrollbarAlwaysOn:J,scrollbarStartGap:2,scrollbarEndGap:ne,useIsScrolling:te,width:ae,getRowHeight:R,onScroll:V},ue=(0,l.SU)(h),ce=ue+ne,de={cache:n,class:r.e("right"),columns:(0,l.SU)(a),data:ie,estimatedRowHeight:C,rightTableRef:x,rowHeight:G,bodyWidth:ce,headerWidth:ce,headerHeight:O,height:se,rowKey:K,scrollbarAlwaysOn:J,scrollbarStartGap:2,scrollbarEndGap:ne,width:ce,style:`--${(0,l.SU)(r.namespace)}-table-scrollbar-size: ${ne}px`,useIsScrolling:te,getRowHeight:R,onScroll:V},pe=(0,l.SU)(i),he={ns:r,depthMap:(0,l.SU)(m),columnsStyles:pe,expandColumnKey:E,expandedRowKeys:(0,l.SU)(g),estimatedRowHeight:C,hasFixedColumns:(0,l.SU)(v),hoveringRowKey:(0,l.SU)(y),rowProps:X,rowClass:Z,rowKey:K,rowEventHandlers:Y,onRowHovered:z,onRowExpanded:B,onRowHeightChange:F},fe={cellProps:b,expandColumnKey:E,indentSize:Q,iconSize:ee,rowKey:K,expandedRowKeys:(0,l.SU)(g),ns:r},me={ns:r,headerClass:P,headerProps:L,columnsStyles:pe},ge={ns:r,sortBy:$,sortState:q,headerCellProps:W,onColumnSorted:N},ve={row:e=>(0,s.Wm)(rN,(0,s.dG)(e,he),{row:t.row,cell:e=>{let n;return t.cell?(0,s.Wm)(aN,(0,s.dG)(e,fe,{style:pe[e.column.key]}),vN(n=t.cell(e))?n:{default:()=>[n]}):(0,s.Wm)(aN,(0,s.dG)(e,fe,{style:pe[e.column.key]}),null)}}),header:e=>(0,s.Wm)(cN,(0,s.dG)(e,me),{header:t.header,cell:e=>{let n;return t["header-cell"]?(0,s.Wm)(hN,(0,s.dG)(e,ge,{style:pe[e.column.key]}),vN(n=t["header-cell"](e))?n:{default:()=>[n]}):(0,s.Wm)(hN,(0,s.dG)(e,ge,{style:pe[e.column.key]}),null)}})},ye=[e.class,r.b(),r.e("root"),{[r.is("dynamic")]:(0,l.SU)(_)}],be={class:r.e("footer"),style:(0,l.SU)(U)};return(0,s.Wm)("div",{class:ye,style:(0,l.SU)(T)},[(0,s.Wm)(ZR,oe,vN(ve)?ve:{default:()=>[ve]}),(0,s.Wm)(KR,le,vN(ve)?ve:{default:()=>[ve]}),(0,s.Wm)(JR,de,vN(ve)?ve:{default:()=>[ve]}),t.footer&&(0,s.Wm)(fN,be,{default:t.footer}),(0,l.SU)(I)&&(0,s.Wm)(mN,{class:r.e("empty"),style:(0,l.SU)(k)},{default:t.empty}),t.overlay&&(0,s.Wm)(gN,{class:r.e("overlay")},{default:t.overlay})])}}}),wN=(0,d.o8)({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:(0,d.Cq)(Function)}}),SN=e=>{const t=(0,l.iH)(),n=(0,l.iH)(0),r=(0,l.iH)(0);let i;return(0,s.bv)((()=>{i=(0,c.yU7)(t,(([e])=>{const{width:t,height:i}=e.contentRect,{paddingLeft:o,paddingRight:a,paddingTop:s,paddingBottom:l}=getComputedStyle(e.target),u=Number.parseInt(o)||0,c=Number.parseInt(a)||0,d=Number.parseInt(s)||0,p=Number.parseInt(l)||0;n.value=t-u-c,r.value=i-d-p})).stop})),(0,s.Jd)((()=>{null==i||i()})),(0,s.YP)([n,r],(([t,n])=>{var r;null==(r=e.onResize)||r.call(e,{width:t,height:n})})),{sizer:t,width:n,height:r}},xN=(0,s.aZ)({name:"ElAutoResizer",props:wN,setup(e,{slots:t}){const n=(0,b.s3)("auto-resizer"),{height:r,width:i,sizer:o}=SN(e),a={width:"100%",height:"100%"};return()=>{var e;return(0,s.Wm)("div",{ref:o,class:n.b(),style:a},[null==(e=t.default)?void 0:e.call(t,{height:r.value,width:i.value})])}}}),_N=(0,D.nz)(bN),CN=(0,D.nz)(xN),EN=Symbol("tabsRootContextKey"),MN=(0,d.o8)({tabs:{type:(0,d.Cq)(Array),default:()=>(0,_e.N)([])}}),kN="ElTabBar",TN=(0,s.aZ)({name:kN}),AN=(0,s.aZ)({...TN,props:MN,setup(e,{expose:t}){const n=e,r=(0,s.FN)(),i=(0,s.f3)(EN);i||(0,S._)(kN,"");const o=(0,b.s3)("tabs"),a=(0,l.iH)(),d=(0,l.iH)(),p=()=>{let e=0,t=0;const o=["top","bottom"].includes(i.props.tabPosition)?"width":"height",a="width"===o?"x":"y",s="x"===a?"left":"top";return n.tabs.every((i=>{var a,l;const u=null==(l=null==(a=r.parent)?void 0:a.refs)?void 0:l[`tab-${i.uid}`];if(!u)return!1;if(!i.active)return!0;e=u[`offset${Tg(s)}`],t=u[`client${Tg(o)}`];const c=window.getComputedStyle(u);return"width"===o&&(n.tabs.length>1&&(t-=Number.parseFloat(c.paddingLeft)+Number.parseFloat(c.paddingRight)),e+=Number.parseFloat(c.paddingLeft)),!1})),{[o]:`${t}px`,transform:`translate${Tg(a)}(${e}px)`}},h=()=>d.value=p();return(0,s.YP)((()=>n.tabs),(async()=>{await(0,s.Y3)(),h()}),{immediate:!0}),(0,c.yU7)(a,(()=>h())),t({ref:a,update:h}),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{ref_key:"barRef",ref:a,class:(0,u.C_)([(0,l.SU)(o).e("active-bar"),(0,l.SU)(o).is((0,l.SU)(i).props.tabPosition)]),style:(0,u.j5)(d.value)},null,6))}});var UN=(0,y.Z)(AN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const IN=(0,d.o8)({panes:{type:(0,d.Cq)(Array),default:()=>(0,_e.N)([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),DN={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},ON="ElTabNav",PN=(0,s.aZ)({name:ON,props:IN,emits:DN,setup(e,{expose:t,emit:n}){const r=(0,s.FN)(),i=(0,s.f3)(EN);i||(0,S._)(ON,"");const o=(0,b.s3)("tabs"),a=(0,c.xKQ)(),u=(0,c.vou)(),d=(0,l.iH)(),p=(0,l.iH)(),h=(0,l.iH)(),f=(0,l.iH)(),m=(0,l.iH)(!1),g=(0,l.iH)(0),v=(0,l.iH)(!1),y=(0,l.iH)(!0),w=(0,s.Fl)((()=>["top","bottom"].includes(i.props.tabPosition)?"width":"height")),x=(0,s.Fl)((()=>{const e="width"===w.value?"X":"Y";return{transform:`translate${e}(-${g.value}px)`}})),_=()=>{if(!d.value)return;const e=d.value[`offset${Tg(w.value)}`],t=g.value;if(!t)return;const n=t>e?t-e:0;g.value=n},C=()=>{if(!d.value||!p.value)return;const e=p.value[`offset${Tg(w.value)}`],t=d.value[`offset${Tg(w.value)}`],n=g.value;if(e-n<=t)return;const r=e-n>2*t?n+t:e-t;g.value=r},E=async()=>{const e=p.value;if(!m.value||!h.value||!d.value||!e)return;await(0,s.Y3)();const t=h.value.querySelector(".is-active");if(!t)return;const n=d.value,r=["top","bottom"].includes(i.props.tabPosition),o=t.getBoundingClientRect(),a=n.getBoundingClientRect(),l=r?e.offsetWidth-a.width:e.offsetHeight-a.height,u=g.value;let c=u;r?(o.lefta.right&&(c=u+o.right-a.right)):(o.topa.bottom&&(c=u+(o.bottom-a.bottom))),c=Math.max(c,0),g.value=Math.min(c,l)},M=()=>{var t;if(!p.value||!d.value)return;e.stretch&&(null==(t=f.value)||t.update());const n=p.value[`offset${Tg(w.value)}`],r=d.value[`offset${Tg(w.value)}`],i=g.value;r0&&(g.value=0))},k=e=>{const t=e.code,{up:n,down:r,left:i,right:o}=Fr.EVENT_CODE;if(![n,r,i,o].includes(t))return;const a=Array.from(e.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),s=a.indexOf(e.target);let l;l=t===i||t===n?0===s?a.length-1:s-1:s{y.value&&(v.value=!0)},A=()=>v.value=!1;return(0,s.YP)(a,(e=>{"hidden"===e?y.value=!1:"visible"===e&&setTimeout((()=>y.value=!0),50)})),(0,s.YP)(u,(e=>{e?setTimeout((()=>y.value=!0),50):y.value=!1})),(0,c.yU7)(h,M),(0,s.bv)((()=>setTimeout((()=>E()),0))),(0,s.ic)((()=>M())),t({scrollToActiveTab:E,removeFocus:A}),(0,s.YP)((()=>e.panes),(()=>r.update()),{flush:"post",deep:!0}),()=>{const t=m.value?[(0,s.Wm)("span",{class:[o.e("nav-prev"),o.is("disabled",!m.value.prev)],onClick:_},[(0,s.Wm)(L.gn,null,{default:()=>[(0,s.Wm)(fe.XdH,null,null)]})]),(0,s.Wm)("span",{class:[o.e("nav-next"),o.is("disabled",!m.value.next)],onClick:C},[(0,s.Wm)(L.gn,null,{default:()=>[(0,s.Wm)(fe.olP,null,null)]})])]:null,r=e.panes.map(((t,r)=>{var a,l,u,c;const d=t.uid,p=t.props.disabled,h=null!=(l=null!=(a=t.props.name)?a:t.index)?l:`${r}`,f=!p&&(t.isClosable||e.editable);t.index=`${r}`;const m=f?(0,s.Wm)(L.gn,{class:"is-icon-close",onClick:e=>n("tabRemove",t,e)},{default:()=>[(0,s.Wm)(fe.x8P,null,null)]}):null,g=(null==(c=(u=t.slots).label)?void 0:c.call(u))||t.props.label,y=!p&&t.active?0:-1;return(0,s.Wm)("div",{ref:`tab-${d}`,class:[o.e("item"),o.is(i.props.tabPosition),o.is("active",t.active),o.is("disabled",p),o.is("closable",f),o.is("focus",v.value)],id:`tab-${h}`,key:`tab-${d}`,"aria-controls":`pane-${h}`,role:"tab","aria-selected":t.active,tabindex:y,onFocus:()=>T(),onBlur:()=>A(),onClick:e=>{A(),n("tabClick",t,h,e)},onKeydown:e=>{!f||e.code!==Fr.EVENT_CODE.delete&&e.code!==Fr.EVENT_CODE.backspace||n("tabRemove",t,e)}},[g,m])}));return(0,s.Wm)("div",{ref:h,class:[o.e("nav-wrap"),o.is("scrollable",!!m.value),o.is(i.props.tabPosition)]},[t,(0,s.Wm)("div",{class:o.e("nav-scroll"),ref:d},[(0,s.Wm)("div",{class:[o.e("nav"),o.is(i.props.tabPosition),o.is("stretch",e.stretch&&["top","bottom"].includes(i.props.tabPosition))],ref:p,style:x.value,role:"tablist",onKeydown:k},[e.type?null:(0,s.Wm)(UN,{ref:f,tabs:[...e.panes]},null),r])])])}}}),LN=(0,d.o8)({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:(0,d.Cq)(Function),default:()=>!0},stretch:Boolean}),RN=e=>(0,u.HD)(e)||(0,p.hj)(e),NN={[h]:e=>RN(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>RN(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>RN(e),tabAdd:()=>!0};var FN=(0,s.aZ)({name:"ElTabs",props:LN,emits:NN,setup(e,{emit:t,slots:n,expose:r}){var i,o;const a=(0,b.s3)("tabs"),{children:u,addChild:c,removeChild:d}=ll((0,s.FN)(),"ElTabPane"),f=(0,l.iH)(),m=(0,l.iH)(null!=(o=null!=(i=e.modelValue)?i:e.activeName)?o:"0"),g=e=>{m.value=e,t(h,e),t("tabChange",e)},v=async t=>{var n,r,i;if(m.value!==t&&!(0,p.o8)(t))try{const o=await(null==(n=e.beforeLeave)?void 0:n.call(e,t,m.value));!1!==o&&(g(t),null==(i=null==(r=f.value)?void 0:r.removeFocus)||i.call(r))}catch(hz){}},y=(e,n,r)=>{e.props.disabled||(v(n),t("tabClick",e,r))},w=(e,n)=>{e.props.disabled||(0,p.o8)(e.props.name)||(n.stopPropagation(),t("edit",e.props.name,"remove"),t("tabRemove",e.props.name))},S=()=>{t("edit",void 0,"add"),t("tabAdd")};return ha({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},(0,s.Fl)((()=>!!e.activeName))),(0,s.YP)((()=>e.activeName),(e=>v(e))),(0,s.YP)((()=>e.modelValue),(e=>v(e))),(0,s.YP)(m,(async()=>{var e;await(0,s.Y3)(),null==(e=f.value)||e.scrollToActiveTab()})),(0,s.JJ)(EN,{props:e,currentName:m,registerPane:c,unregisterPane:d}),r({currentName:m}),()=>{const t=e.editable||e.addable?(0,s.Wm)("span",{class:a.e("new-tab"),tabindex:"0",onClick:S,onKeydown:e=>{e.code===Fr.EVENT_CODE.enter&&S()}},[(0,s.Wm)(L.gn,{class:a.is("icon-plus")},{default:()=>[(0,s.Wm)(fe.v37,null,null)]})]):null,r=(0,s.Wm)("div",{class:[a.e("header"),a.is(e.tabPosition)]},[t,(0,s.Wm)(PN,{ref:f,currentName:m.value,editable:e.editable,type:e.type,panes:u.value,stretch:e.stretch,onTabClick:y,onTabRemove:w},null)]),i=(0,s.Wm)("div",{class:a.e("content")},[(0,s.WI)(n,"default")]);return(0,s.Wm)("div",{class:[a.b(),a.m(e.tabPosition),{[a.m("card")]:"card"===e.type,[a.m("border-card")]:"border-card"===e.type}]},[..."bottom"!==e.tabPosition?[r,i]:[i,r]])}}});const zN=(0,d.o8)({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),BN=["id","aria-hidden","aria-labelledby"],HN="ElTabPane",jN=(0,s.aZ)({name:HN}),VN=(0,s.aZ)({...jN,props:zN,setup(e){const t=e,n=(0,s.FN)(),r=(0,s.Rr)(),i=(0,s.f3)(EN);i||(0,S._)(HN,"usage: ");const o=(0,b.s3)("tab-pane"),a=(0,l.iH)(),c=(0,s.Fl)((()=>t.closable||i.props.closable)),d=(0,x.Rc)((()=>{var e;return i.currentName.value===(null!=(e=t.name)?e:a.value)})),p=(0,l.iH)(d.value),h=(0,s.Fl)((()=>{var e;return null!=(e=t.name)?e:a.value})),f=(0,x.Rc)((()=>!t.lazy||p.value||d.value));(0,s.YP)(d,(e=>{e&&(p.value=!0)}));const m=(0,l.qj)({uid:n.uid,slots:r,props:t,paneName:h,active:d,index:a,isClosable:c});return(0,s.bv)((()=>{i.registerPane(m)})),(0,s.Ah)((()=>{i.unregisterPane(m.uid)})),(e,t)=>(0,l.SU)(f)?(0,s.wy)(((0,s.wg)(),(0,s.iD)("div",{key:0,id:`pane-${(0,l.SU)(h)}`,class:(0,u.C_)((0,l.SU)(o).b()),role:"tabpanel","aria-hidden":!(0,l.SU)(d),"aria-labelledby":`tab-${(0,l.SU)(h)}`},[(0,s.WI)(e.$slots,"default")],10,BN)),[[P.F8,(0,l.SU)(d)]]):(0,s.kq)("v-if",!0)}});var WN=(0,y.Z)(VN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const $N=(0,D.nz)(FN,{TabPane:WN}),qN=(0,D.dp)(WN),GN=(0,d.o8)({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:Fo.k,default:""},truncated:{type:Boolean},tag:{type:String,default:"span"}}),ZN=(0,s.aZ)({name:"ElText"}),YN=(0,s.aZ)({...ZN,props:GN,setup(e){const t=e,n=ze(),r=(0,b.s3)("text"),i=(0,s.Fl)((()=>[r.b(),r.m(t.type),r.m(n.value),r.is("truncated",t.truncated)]));return(e,t)=>((0,s.wg)(),(0,s.j4)((0,s.LL)(e.tag),{class:(0,u.C_)((0,l.SU)(i))},{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default")])),_:3},8,["class"]))}});var KN=(0,y.Z)(YN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);const XN=(0,D.nz)(KN);function JN(e,t,n,r){var i=e.length,o=n+(r?1:-1);while(r?o--:++o-1}var sF=aF;function lF(e,t,n){var r=-1,i=null==e?0:e.length;while(++r=mF){var u=t?null:fF(e);if(u)return $h(u);a=!1,i=Rh,l=new Dh}else l=t?[]:s;e:while(++r{const n=[];for(let r=e;r<=t;r++)n.push(r);return n},{t:i,lang:o}=(0,xs.bU)(),a=(0,b.s3)("time"),c=(0,b.s3)("picker"),d=(0,s.f3)("EP_PICKER_BASE"),{arrowControl:p,disabledHours:h,disabledMinutes:f,disabledSeconds:m,defaultValue:g}=d.props,v=(0,s.Fl)((()=>n.parsedValue[0])),y=(0,s.Fl)((()=>n.parsedValue[1])),w=yw(n),S=()=>{t("pick",w.value,!1)},x=(0,s.Fl)((()=>n.format.includes("ss"))),_=(0,s.Fl)((()=>n.format.includes("A")?"A":n.format.includes("a")?"a":"")),C=(e=!1)=>{t("pick",[v.value,y.value],e)},E=e=>{T(e.millisecond(0),y.value)},M=e=>{T(v.value,e.millisecond(0))},k=e=>{const t=e.map((e=>as(e).locale(o.value))),n=z(t);return t[0].isSame(n[0])&&t[1].isSame(n[1])},T=(e,n)=>{t("pick",[e,n],!0)},A=(0,s.Fl)((()=>v.value>y.value)),U=(0,l.iH)([0,2]),I=(e,n)=>{t("select-range",e,n,"min"),U.value=[e,n]},D=(0,s.Fl)((()=>x.value?11:8)),O=(e,n)=>{t("select-range",e,n,"max");const r=(0,l.SU)(D);U.value=[e+r,n+r]},P=e=>{const t=x.value?[0,3,6,11,14,17]:[0,3,8,11],n=["hours","minutes"].concat(x.value?["seconds"]:[]),r=t.indexOf(U.value[0]),i=(r+e+t.length)%t.length,o=t.length/2;i{const t=e.code,{left:n,right:r,up:i,down:o}=Fr.EVENT_CODE;if([n,r].includes(t)){const r=t===n?-1:1;return P(r),void e.preventDefault()}if([i,o].includes(t)){const n=t===i?-1:1,r=U.value[0]{const n=h?h(e):[],i="start"===e,o=t||(i?y.value:v.value),a=o.hour(),s=i?r(a+1,23):r(0,a-1);return bF(n,s)},N=(e,t,n)=>{const i=f?f(e,t):[],o="start"===t,a=n||(o?y.value:v.value),s=a.hour();if(e!==s)return i;const l=a.minute(),u=o?r(l+1,59):r(0,l-1);return bF(i,u)},F=(e,t,n,i)=>{const o=m?m(e,t,n):[],a="start"===n,s=i||(a?y.value:v.value),l=s.hour(),u=s.minute();if(e!==l||t!==u)return o;const c=s.second(),d=a?r(c+1,59):r(0,c-1);return bF(o,d)},z=([e,t])=>[W(e,"start",!0,t),W(t,"end",!1,e)],{getAvailableHours:B,getAvailableMinutes:H,getAvailableSeconds:j}=vw(R,N,F),{timePickerOptions:V,getAvailableTime:W,onSetOption:$}=fw({getAvailableHours:B,getAvailableMinutes:H,getAvailableSeconds:j}),q=e=>e?(0,u.kJ)(e)?e.map((e=>as(e,n.format).locale(o.value))):as(e,n.format).locale(o.value):null,G=e=>e?(0,u.kJ)(e)?e.map((e=>e.format(n.format))):e.format(n.format):null,Z=()=>{if((0,u.kJ)(g))return g.map((e=>as(e).locale(o.value)));const e=as(g).locale(o.value);return[e,e.add(60,"m")]};return t("set-picker-option",["formatToString",G]),t("set-picker-option",["parseUserInput",q]),t("set-picker-option",["isValidValue",k]),t("set-picker-option",["handleKeydownInput",L]),t("set-picker-option",["getDefaultValue",Z]),t("set-picker-option",["getRangeAvailableTime",z]),(e,t)=>e.actualVisible?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)([(0,l.SU)(a).b("range-picker"),(0,l.SU)(c).b("panel")])},[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(a).be("range-picker","content"))},[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(a).be("range-picker","cell"))},[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(a).be("range-picker","header"))},(0,u.zw)((0,l.SU)(i)("el.datepicker.startTime")),3),(0,s._)("div",{class:(0,u.C_)([(0,l.SU)(a).be("range-picker","body"),(0,l.SU)(a).be("panel","content"),(0,l.SU)(a).is("arrow",(0,l.SU)(p)),{"has-seconds":(0,l.SU)(x)}])},[(0,s.Wm)(Uw,{ref:"minSpinner",role:"start","show-seconds":(0,l.SU)(x),"am-pm-mode":(0,l.SU)(_),"arrow-control":(0,l.SU)(p),"spinner-date":(0,l.SU)(v),"disabled-hours":R,"disabled-minutes":N,"disabled-seconds":F,onChange:E,onSetOption:(0,l.SU)($),onSelectRange:I},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),(0,s._)("div",{class:(0,u.C_)((0,l.SU)(a).be("range-picker","cell"))},[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(a).be("range-picker","header"))},(0,u.zw)((0,l.SU)(i)("el.datepicker.endTime")),3),(0,s._)("div",{class:(0,u.C_)([(0,l.SU)(a).be("range-picker","body"),(0,l.SU)(a).be("panel","content"),(0,l.SU)(a).is("arrow",(0,l.SU)(p)),{"has-seconds":(0,l.SU)(x)}])},[(0,s.Wm)(Uw,{ref:"maxSpinner",role:"end","show-seconds":(0,l.SU)(x),"am-pm-mode":(0,l.SU)(_),"arrow-control":(0,l.SU)(p),"spinner-date":(0,l.SU)(y),"disabled-hours":R,"disabled-minutes":N,"disabled-seconds":F,onChange:M,onSetOption:(0,l.SU)($),onSelectRange:O},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),(0,s._)("div",{class:(0,u.C_)((0,l.SU)(a).be("panel","footer"))},[(0,s._)("button",{type:"button",class:(0,u.C_)([(0,l.SU)(a).be("panel","btn"),"cancel"]),onClick:t[0]||(t[0]=e=>S())},(0,u.zw)((0,l.SU)(i)("el.datepicker.cancel")),3),(0,s._)("button",{type:"button",class:(0,u.C_)([(0,l.SU)(a).be("panel","btn"),"confirm"]),disabled:(0,l.SU)(A),onClick:t[1]||(t[1]=e=>C())},(0,u.zw)((0,l.SU)(i)("el.datepicker.confirm")),11,SF)],2)],2)):(0,s.kq)("v-if",!0)}});var _F=(0,y.Z)(xF,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-range.vue"]]);as.extend(Sb);var CF=(0,s.aZ)({name:"ElTimePicker",install:null,props:{...Ib,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,t){const n=(0,l.iH)(),[r,i]=e.isRange?["timerange",_F]:["time",Dw],o=e=>t.emit("update:modelValue",e);return(0,s.JJ)("ElPopperOptions",e.popperOptions),t.expose({focus:e=>{var t;null==(t=n.value)||t.handleFocusInput(e)},blur:e=>{var t;null==(t=n.value)||t.handleBlurInput(e)},handleOpen:()=>{var e;null==(e=n.value)||e.handleOpen()},handleClose:()=>{var e;null==(e=n.value)||e.handleClose()}}),()=>{var t;const a=null!=(t=e.format)?t:ww;return(0,s.Wm)(pS,(0,s.dG)(e,{ref:n,type:r,format:a,"onUpdate:modelValue":o}),{default:e=>(0,s.Wm)(i,e,null)})}}});const EF=CF;EF.install=e=>{e.component(EF.name,EF)};const MF=EF,kF=(0,d.o8)({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:String,default:"light"},clearable:{type:Boolean,default:!0},size:xe.Pp,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,name:String,prefixIcon:{type:(0,d.Cq)([String,Object]),default:()=>fe.SUY},clearIcon:{type:(0,d.Cq)([String,Object]),default:()=>fe.K41}}),TF=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const r=Number.parseInt(t[1],10),i=e.toUpperCase();return i.includes("AM")&&12===n?n=0:i.includes("PM")&&12!==n&&(n+=12),{hours:n,minutes:r}}return null},AF=(e,t)=>{const n=TF(e);if(!n)return-1;const r=TF(t);if(!r)return-1;const i=n.minutes+60*n.hours,o=r.minutes+60*r.hours;return i===o?0:i>o?1:-1},UF=e=>`${e}`.padStart(2,"0"),IF=e=>`${UF(e.hours)}:${UF(e.minutes)}`,DF=(e,t)=>{const n=TF(e);if(!n)return"";const r=TF(t);if(!r)return"";const i={hours:n.hours,minutes:n.minutes};return i.minutes+=r.minutes,i.hours+=r.hours,i.hours+=Math.floor(i.minutes/60),i.minutes=i.minutes%60,IF(i)},OF=(0,s.aZ)({name:"ElTimeSelect"}),PF=(0,s.aZ)({...OF,props:kF,emits:["change","blur","focus","update:modelValue"],setup(e,{expose:t}){const n=e;as.extend(Sb);const{Option:r}=Uk,i=(0,b.s3)("input"),o=(0,l.iH)(),a=Be(),c=(0,s.Fl)((()=>n.modelValue)),d=(0,s.Fl)((()=>{const e=TF(n.start);return e?IF(e):null})),p=(0,s.Fl)((()=>{const e=TF(n.end);return e?IF(e):null})),h=(0,s.Fl)((()=>{const e=TF(n.step);return e?IF(e):null})),f=(0,s.Fl)((()=>{const e=TF(n.minTime||"");return e?IF(e):null})),m=(0,s.Fl)((()=>{const e=TF(n.maxTime||"");return e?IF(e):null})),g=(0,s.Fl)((()=>{const e=[];if(n.start&&n.end&&n.step){let t,r=d.value;while(r&&p.value&&AF(r,p.value)<=0)t=as(r,"HH:mm").format(n.format),e.push({value:t,disabled:AF(r,f.value||"-1:-1")<=0||AF(r,m.value||"100:100")>=0}),r=DF(r,h.value)}return e})),v=()=>{var e,t;null==(t=null==(e=o.value)?void 0:e.blur)||t.call(e)},y=()=>{var e,t;null==(t=null==(e=o.value)?void 0:e.focus)||t.call(e)};return t({blur:v,focus:y}),(e,t)=>((0,s.wg)(),(0,s.j4)((0,l.SU)(Uk),{ref_key:"select",ref:o,"model-value":(0,l.SU)(c),disabled:(0,l.SU)(a),clearable:e.clearable,"clear-icon":e.clearIcon,size:e.size,effect:e.effect,placeholder:e.placeholder,"default-first-option":"",filterable:e.editable,"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:modelValue",t)),onChange:t[1]||(t[1]=t=>e.$emit("change",t)),onBlur:t[2]||(t[2]=t=>e.$emit("blur",t)),onFocus:t[3]||(t[3]=t=>e.$emit("focus",t))},{prefix:(0,s.w5)((()=>[e.prefixIcon?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:0,class:(0,u.C_)((0,l.SU)(i).e("prefix-icon"))},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.prefixIcon)))])),_:1},8,["class"])):(0,s.kq)("v-if",!0)])),default:(0,s.w5)((()=>[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)((0,l.SU)(g),(e=>((0,s.wg)(),(0,s.j4)((0,l.SU)(r),{key:e.value,label:e.value,value:e.value,disabled:e.disabled},null,8,["label","value","disabled"])))),128))])),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable"]))}});var LF=(0,y.Z)(PF,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);LF.install=e=>{e.component(LF.name,LF)};const RF=LF,NF=RF,FF=(0,s.aZ)({name:"ElTimeline",setup(e,{slots:t}){const n=(0,b.s3)("timeline");return(0,s.JJ)("timeline",t),()=>(0,s.h)("ul",{class:[n.b()]},[(0,s.WI)(t,"default")])}}),zF=(0,d.o8)({timestamp:{type:String,default:""},hideTimestamp:{type:Boolean,default:!1},center:{type:Boolean,default:!1},placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:N.AA},hollow:{type:Boolean,default:!1}}),BF=(0,s.aZ)({name:"ElTimelineItem"}),HF=(0,s.aZ)({...BF,props:zF,setup(e){const t=e,n=(0,b.s3)("timeline-item"),r=(0,s.Fl)((()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]));return(e,t)=>((0,s.wg)(),(0,s.iD)("li",{class:(0,u.C_)([(0,l.SU)(n).b(),{[(0,l.SU)(n).e("center")]:e.center}])},[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(n).e("tail"))},null,2),e.$slots.dot?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)((0,l.SU)(r)),style:(0,u.j5)({backgroundColor:e.color})},[e.icon?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:0,class:(0,u.C_)((0,l.SU)(n).e("icon"))},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.icon)))])),_:1},8,["class"])):(0,s.kq)("v-if",!0)],6)),e.$slots.dot?((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,u.C_)((0,l.SU)(n).e("dot"))},[(0,s.WI)(e.$slots,"dot")],2)):(0,s.kq)("v-if",!0),(0,s._)("div",{class:(0,u.C_)((0,l.SU)(n).e("wrapper"))},[e.hideTimestamp||"top"!==e.placement?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)([(0,l.SU)(n).e("timestamp"),(0,l.SU)(n).is("top")])},(0,u.zw)(e.timestamp),3)),(0,s._)("div",{class:(0,u.C_)((0,l.SU)(n).e("content"))},[(0,s.WI)(e.$slots,"default")],2),e.hideTimestamp||"bottom"!==e.placement?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,u.C_)([(0,l.SU)(n).e("timestamp"),(0,l.SU)(n).is("bottom")])},(0,u.zw)(e.timestamp),3))],2)],2))}});var jF=(0,y.Z)(HF,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const VF=(0,D.nz)(FF,{TimelineItem:jF}),WF=(0,D.dp)(jF),$F=(0,d.o8)({nowrap:Boolean});var qF=(e=>(e["top"]="top",e["bottom"]="bottom",e["left"]="left",e["right"]="right",e))(qF||{});const GF=Object.values(qF),ZF=(0,d.o8)({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:(0,d.Cq)(Object),default:null}}),YF=(0,d.o8)({side:{type:(0,d.Cq)(String),values:GF,required:!0}}),KF=["absolute","fixed"],XF=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],JF=(0,d.o8)({ariaLabel:String,arrowPadding:{type:(0,d.Cq)(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:(0,d.Cq)(String),values:XF,default:"bottom"},reference:{type:(0,d.Cq)(Object),default:null},offset:{type:Number,default:8},strategy:{type:(0,d.Cq)(String),values:KF,default:"absolute"},showArrow:{type:Boolean,default:!1}}),QF=(0,d.o8)({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:(0,d.Cq)(Function)},"onUpdate:open":{type:(0,d.Cq)(Function)}}),ez={type:(0,d.Cq)(Function)},tz=(0,d.o8)({onBlur:ez,onClick:ez,onFocus:ez,onMouseDown:ez,onMouseEnter:ez,onMouseLeave:ez}),nz=(0,d.o8)({...QF,...ZF,...tz,...JF,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:(0,d.Cq)(Object),default:null},teleported:Boolean,to:{type:(0,d.Cq)(String),default:"body"}}),rz=Symbol("tooltipV2"),iz=Symbol("tooltipV2Content"),oz="tooltip_v2.open",az=(0,s.aZ)({name:"ElTooltipV2Root"}),sz=(0,s.aZ)({...az,props:QF,setup(e,{expose:t}){const n=e,r=(0,l.iH)(n.defaultOpen),i=(0,l.iH)(null),o=(0,s.Fl)({get:()=>(0,p.Cl)(n.open)?r.value:n.open,set:e=>{var t;r.value=e,null==(t=n["onUpdate:open"])||t.call(n,e)}}),a=(0,s.Fl)((()=>(0,p.hj)(n.delayDuration)&&n.delayDuration>0)),{start:u,stop:c}=(0,x.eM)((()=>{o.value=!0}),(0,s.Fl)((()=>n.delayDuration)),{immediate:!1}),d=(0,b.s3)("tooltip-v2"),h=Le(),f=()=>{c(),o.value=!0},m=()=>{(0,l.SU)(a)?u():f()},g=f,v=()=>{c(),o.value=!1},y=e=>{var t;e&&(document.dispatchEvent(new CustomEvent(oz)),g()),null==(t=n.onOpenChange)||t.call(n,e)};return(0,s.YP)(o,y),(0,s.bv)((()=>{document.addEventListener(oz,v)})),(0,s.Jd)((()=>{c(),document.removeEventListener(oz,v)})),(0,s.JJ)(rz,{contentId:h,triggerRef:i,ns:d,onClose:v,onDelayOpen:m,onOpen:g}),t({onOpen:g,onClose:v}),(e,t)=>(0,s.WI)(e.$slots,"default",{open:(0,l.SU)(o)})}});var lz=(0,y.Z)(sz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/root.vue"]]);const uz=(0,s.aZ)({name:"ElTooltipV2Arrow"}),cz=(0,s.aZ)({...uz,props:{...ZF,...YF},setup(e){const t=e,{ns:n}=(0,s.f3)(rz),{arrowRef:r}=(0,s.f3)(iz),i=(0,s.Fl)((()=>{const{style:e,width:r,height:i}=t,o=n.namespace.value;return{[`--${o}-tooltip-v2-arrow-width`]:`${r}px`,[`--${o}-tooltip-v2-arrow-height`]:`${i}px`,[`--${o}-tooltip-v2-arrow-border-width`]:r/2+"px",[`--${o}-tooltip-v2-arrow-cover-width`]:r/2-1,...e||{}}}));return(e,t)=>((0,s.wg)(),(0,s.iD)("span",{ref_key:"arrowRef",ref:r,style:(0,u.j5)((0,l.SU)(i)),class:(0,u.C_)((0,l.SU)(n).e("arrow"))},null,6))}});var dz=(0,y.Z)(cz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/arrow.vue"]]);function pz(e){return e.split("-")[1]}function hz(e){return"y"===e?"height":"width"}function fz(e){return e.split("-")[0]}function mz(e){return["top","bottom"].includes(fz(e))?"x":"y"}function gz(e,t,n){let{reference:r,floating:i}=e;const o=r.x+r.width/2-i.width/2,a=r.y+r.height/2-i.height/2,s=mz(t),l=hz(s),u=r[l]/2-i[l]/2,c="x"===s;let d;switch(fz(t)){case"top":d={x:o,y:r.y-i.height};break;case"bottom":d={x:o,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-i.width,y:a};break;default:d={x:r.x,y:r.y}}switch(pz(t)){case"start":d[s]-=u*(n&&c?-1:1);break;case"end":d[s]+=u*(n&&c?-1:1)}return d}const vz=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=gz(u,r,l),p=r,h={},f=0;for(let m=0;m({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=e||{},{x:i,y:o,placement:a,rects:s,platform:l,elements:u}=t;if(null==n)return{};const c=yz(r),d={x:i,y:o},p=mz(a),h=hz(p),f=await l.getDimensions(n),m="y"===p,g=m?"top":"left",v=m?"bottom":"right",y=m?"clientHeight":"clientWidth",b=s.reference[h]+s.reference[p]-d[p]-s.floating[h],w=d[p]-s.reference[p],S=await(null==l.getOffsetParent?void 0:l.getOffsetParent(n));let x=S?S[y]:0;x&&await(null==l.isElement?void 0:l.isElement(S))||(x=u.floating[y]||s.floating[h]);const _=b/2-w/2,C=c[g],E=x-f[h]-c[v],M=x/2-f[h]/2+_,k=xz(C,M,E),T=null!=pz(a)&&M!=k&&s.reference[h]/2-(Me.concat(t,t+"-start",t+"-end")),[]);const Ez=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,i=await async function(e,t){const{placement:n,platform:r,elements:i}=e,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),a=fz(n),s=pz(n),l="x"===mz(n),u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,d="function"==typeof t?t(e):t;let{mainAxis:p,crossAxis:h,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof f&&(h="end"===s?-1*f:f),l?{x:h*c,y:p*u}:{x:p*u,y:h*c}}(t,e);return{x:n+i.x,y:r+i.y,data:i}}}};function Mz(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function kz(e){return Mz(e).getComputedStyle(e)}function Tz(e){return e instanceof Mz(e).Node}function Az(e){return Tz(e)?(e.nodeName||"").toLowerCase():""}function Uz(e){return e instanceof Mz(e).HTMLElement}function Iz(e){return e instanceof Mz(e).Element}function Dz(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Mz(e).ShadowRoot||e instanceof ShadowRoot)}function Oz(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=kz(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Pz(e){return["table","td","th"].includes(Az(e))}function Lz(e){const t=Rz(),n=kz(e);return"none"!==n.transform||"none"!==n.perspective||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Rz(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Nz(e){return["html","body","#document"].includes(Az(e))}const Fz=Math.min,zz=Math.max,Bz=Math.round;function Hz(e){const t=kz(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Uz(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=Bz(n)!==o||Bz(r)!==a;return s&&(n=o,r=a),{width:n,height:r,fallback:s}}function jz(e){return Iz(e)?e:e.contextElement}const Vz={x:1,y:1};function Wz(e){const t=jz(e);if(!Uz(t))return Vz;const n=t.getBoundingClientRect(),{width:r,height:i,fallback:o}=Hz(t);let a=(o?Bz(n.width):n.width)/r,s=(o?Bz(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const $z={x:0,y:0};function qz(e,t,n){var r,i;if(void 0===t&&(t=!0),!Rz())return $z;const o=e?Mz(e):window;return!n||t&&n!==o?$z:{x:(null==(r=o.visualViewport)?void 0:r.offsetLeft)||0,y:(null==(i=o.visualViewport)?void 0:i.offsetTop)||0}}function Gz(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=jz(e);let a=Vz;t&&(r?Iz(r)&&(a=Wz(r)):a=Wz(e));const s=qz(o,n,r);let l=(i.left+s.x)/a.x,u=(i.top+s.y)/a.y,c=i.width/a.x,d=i.height/a.y;if(o){const e=Mz(o),t=r&&Iz(r)?Mz(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=Wz(n),t=n.getBoundingClientRect(),r=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(r.paddingTop))*e.y,l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=t.x,u+=t.y,n=Mz(n).frameElement}}return bz({width:c,height:d,x:l,y:u})}function Zz(e){return((Tz(e)?e.ownerDocument:e.document)||window.document).documentElement}function Yz(e){return Iz(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Kz(e){return Gz(Zz(e)).left+Yz(e).scrollLeft}function Xz(e){if("html"===Az(e))return e;const t=e.assignedSlot||e.parentNode||Dz(e)&&e.host||Zz(e);return Dz(t)?t.host:t}function Jz(e){const t=Xz(e);return Nz(t)?t.ownerDocument.body:Uz(t)&&Oz(t)?t:Jz(t)}function Qz(e,t){var n;void 0===t&&(t=[]);const r=Jz(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=Mz(r);return i?t.concat(o,o.visualViewport||[],Oz(r)?r:[]):t.concat(r,Qz(r))}function eB(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Mz(e),r=Zz(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const e=Rz();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Zz(e),n=Yz(e),r=e.ownerDocument.body,i=zz(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=zz(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Kz(e);const s=-n.scrollTop;return"rtl"===kz(r).direction&&(a+=zz(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}(Zz(e));else if(Iz(t))r=function(e,t){const n=Gz(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Uz(e)?Wz(e):{x:1,y:1};return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{const n=qz(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return bz(r)}function tB(e,t){const n=Xz(e);return!(n===t||!Iz(n)||Nz(n))&&("fixed"===kz(n).position||tB(n,t))}function nB(e,t){return Uz(e)&&"fixed"!==kz(e).position?t?t(e):e.offsetParent:null}function rB(e,t){const n=Mz(e);if(!Uz(e))return n;let r=nB(e,t);for(;r&&Pz(r)&&"static"===kz(r).position;)r=nB(r,t);return r&&("html"===Az(r)||"body"===Az(r)&&"static"===kz(r).position&&!Lz(r))?n:r||function(e){let t=Xz(e);for(;Uz(t)&&!Nz(t);){if(Lz(t))return t;t=Xz(t)}return null}(e)||n}function iB(e,t,n){const r=Uz(t),i=Zz(t),o="fixed"===n,a=Gz(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(r||!r&&!o)if(("body"!==Az(t)||Oz(i))&&(s=Yz(t)),Uz(t)){const e=Gz(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=Kz(i));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}const oB={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o="clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=Qz(e).filter((e=>Iz(e)&&"body"!==Az(e))),i=null;const o="fixed"===kz(e).position;let a=o?Xz(e):e;for(;Iz(a)&&!Nz(a);){const t=kz(a),n=Lz(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||Oz(a)&&!n&&tB(e,a))?r=r.filter((e=>e!==a)):i=t,a=Xz(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...o,r],s=a[0],l=a.reduce(((e,n)=>{const r=eB(t,n,i);return e.top=zz(r.top,e.top),e.right=Fz(r.right,e.right),e.bottom=Fz(r.bottom,e.bottom),e.left=zz(r.left,e.left),e}),eB(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=Uz(n),o=Zz(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0},s={x:1,y:1};const l={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==Az(n)||Oz(o))&&(a=Yz(n)),Uz(n))){const e=Gz(n);s=Wz(n),l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}},isElement:Iz,getDimensions:function(e){return Hz(e)},getOffsetParent:rB,getDocumentElement:Zz,getScale:Wz,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||rB,o=this.getDimensions;return{reference:iB(t,await i(n),r),floating:{x:0,y:0,...await o(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===kz(e).direction};const aB=(e,t,n)=>{const r=new Map,i={platform:oB,...n},o={...i.platform,_c:r};return vz(e,t,{...i,platform:o})},sB=((0,d.o8)({}),e=>{if(!x.C5)return;if(!e)return e;const t=(0,c.NXq)(e);return t||((0,l.dq)(e)?t:e)}),lB=({middleware:e,placement:t,strategy:n})=>{const r=(0,l.iH)(),i=(0,l.iH)(),o=(0,l.iH)(),a=(0,l.iH)(),u=(0,l.iH)({}),d={x:o,y:a,placement:t,strategy:n,middlewareData:u},p=async()=>{if(!x.C5)return;const o=sB(r),a=(0,c.NXq)(i);if(!o||!a)return;const s=await aB(o,a,{placement:(0,l.SU)(t),strategy:(0,l.SU)(n),middleware:(0,l.SU)(e)});(0,R.uc)(d).forEach((e=>{d[e].value=s[e]}))};return(0,s.bv)((()=>{(0,s.m0)((()=>{p()}))})),{...d,update:p,referenceRef:r,contentRef:i}},uB=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const r=(0,l.SU)(e);return r?_z({element:r,padding:t}).fn(n):{}}}),cB=(0,d.o8)({style:{type:(0,d.Cq)([String,Object,Array]),default:()=>({})}}),dB=(0,s.aZ)({name:"ElVisuallyHidden"}),pB=(0,s.aZ)({...dB,props:cB,setup(e){const t=e,n=(0,s.Fl)((()=>[t.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]));return(e,t)=>((0,s.wg)(),(0,s.iD)("span",(0,s.dG)(e.$attrs,{style:(0,l.SU)(n)}),[(0,s.WI)(e.$slots,"default")],16))}});var hB=(0,y.Z)(pB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/visual-hidden/src/visual-hidden.vue"]]);const fB=["data-side"],mB=(0,s.aZ)({name:"ElTooltipV2Content"}),gB=(0,s.aZ)({...mB,props:{...JF,...$F},setup(e){const t=e,{triggerRef:n,contentId:r}=(0,s.f3)(rz),i=(0,l.iH)(t.placement),o=(0,l.iH)(t.strategy),a=(0,l.iH)(null),{referenceRef:c,contentRef:d,middlewareData:p,x:h,y:f,update:m}=lB({placement:i,strategy:o,middleware:(0,s.Fl)((()=>{const e=[Ez(t.offset)];return t.showArrow&&e.push(uB({arrowRef:a})),e}))}),g=(0,Ui.Cn)().nextZIndex(),v=(0,b.s3)("tooltip-v2"),y=(0,s.Fl)((()=>i.value.split("-")[0])),w=(0,s.Fl)((()=>({position:(0,l.SU)(o),top:`${(0,l.SU)(f)||0}px`,left:`${(0,l.SU)(h)||0}px`,zIndex:g}))),S=(0,s.Fl)((()=>{if(!t.showArrow)return{};const{arrow:e}=(0,l.SU)(p);return{[`--${v.namespace.value}-tooltip-v2-arrow-x`]:`${null==e?void 0:e.x}px`||"",[`--${v.namespace.value}-tooltip-v2-arrow-y`]:`${null==e?void 0:e.y}px`||""}})),x=(0,s.Fl)((()=>[v.e("content"),v.is("dark","dark"===t.effect),v.is((0,l.SU)(o)),t.contentClass]));return(0,s.YP)(a,(()=>m())),(0,s.YP)((()=>t.placement),(e=>i.value=e)),(0,s.bv)((()=>{(0,s.YP)((()=>t.reference||n.value),(e=>{c.value=e||void 0}),{immediate:!0})})),(0,s.JJ)(iz,{arrowRef:a}),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{ref_key:"contentRef",ref:d,style:(0,u.j5)((0,l.SU)(w)),"data-tooltip-v2-root":""},[e.nowrap?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)("div",{key:0,"data-side":(0,l.SU)(y),class:(0,u.C_)((0,l.SU)(x))},[(0,s.WI)(e.$slots,"default",{contentStyle:(0,l.SU)(w),contentClass:(0,l.SU)(x)}),(0,s.Wm)((0,l.SU)(hB),{id:(0,l.SU)(r),role:"tooltip"},{default:(0,s.w5)((()=>[e.ariaLabel?((0,s.wg)(),(0,s.iD)(s.HY,{key:0},[(0,s.Uk)((0,u.zw)(e.ariaLabel),1)],64)):(0,s.WI)(e.$slots,"default",{key:1})])),_:3},8,["id"]),(0,s.WI)(e.$slots,"arrow",{style:(0,u.j5)((0,l.SU)(S)),side:(0,l.SU)(y)})],10,fB))],4))}});var vB=(0,y.Z)(gB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/content.vue"]]);const yB=(0,d.o8)({setRef:{type:(0,d.Cq)(Function),required:!0},onlyChild:Boolean});var bB=(0,s.aZ)({props:yB,setup(e,{slots:t}){const n=(0,l.iH)(),r=zS(n,(t=>{t?e.setRef(t.nextElementSibling):e.setRef(null)}));return()=>{var n;const[i]=(null==(n=t.default)?void 0:n.call(t))||[],o=e.onlyChild?ol(i.children):i.children;return(0,s.Wm)(s.HY,{ref:r},[o])}}});const wB=(0,s.aZ)({name:"ElTooltipV2Trigger"}),SB=(0,s.aZ)({...wB,props:{...$F,...tz},setup(e){const t=e,{onClose:n,onOpen:r,onDelayOpen:i,triggerRef:o,contentId:a}=(0,s.f3)(rz);let u=!1;const c=e=>{o.value=e},d=()=>{u=!1},p=ei(t.onMouseEnter,i),h=ei(t.onMouseLeave,n),f=ei(t.onMouseDown,(()=>{n(),u=!0,document.addEventListener("mouseup",d,{once:!0})})),m=ei(t.onFocus,(()=>{u||r()})),g=ei(t.onBlur,n),v=ei(t.onClick,(e=>{0===e.detail&&n()})),y={blur:g,click:v,focus:m,mousedown:f,mouseenter:p,mouseleave:h},b=(e,t,n)=>{e&&Object.entries(t).forEach((([t,r])=>{e[n](t,r)}))};return(0,s.YP)(o,((e,t)=>{b(e,y,"addEventListener"),b(t,y,"removeEventListener"),e&&e.setAttribute("aria-describedby",a.value)})),(0,s.Jd)((()=>{b(o.value,y,"removeEventListener"),document.removeEventListener("mouseup",d)})),(e,t)=>e.nowrap?((0,s.wg)(),(0,s.j4)((0,l.SU)(bB),{key:0,"set-ref":c,"only-child":""},{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default")])),_:3})):((0,s.wg)(),(0,s.iD)("button",(0,s.dG)({key:1,ref_key:"triggerRef",ref:o},e.$attrs),[(0,s.WI)(e.$slots,"default")],16))}});var xB=(0,y.Z)(SB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/trigger.vue"]]);const _B=(0,s.aZ)({name:"ElTooltipV2"}),CB=(0,s.aZ)({..._B,props:nz,setup(e){const t=e,n=(0,l.BK)(t),r=(0,l.qj)(zm(n,Object.keys(ZF))),i=(0,l.qj)(zm(n,Object.keys(JF))),o=(0,l.qj)(zm(n,Object.keys(QF))),a=(0,l.qj)(zm(n,Object.keys(tz)));return(e,t)=>((0,s.wg)(),(0,s.j4)(lz,(0,u.vs)((0,s.F4)(o)),{default:(0,s.w5)((({open:t})=>[(0,s.Wm)(xB,(0,s.dG)(a,{nowrap:""}),{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"trigger")])),_:3},16),((0,s.wg)(),(0,s.j4)(s.lR,{to:e.to,disabled:!e.teleported},[e.fullTransition?((0,s.wg)(),(0,s.j4)(P.uT,(0,u.vs)((0,s.dG)({key:0},e.transitionProps)),{default:(0,s.w5)((()=>[e.alwaysOn||t?((0,s.wg)(),(0,s.j4)(vB,(0,u.vs)((0,s.dG)({key:0},i)),{arrow:(0,s.w5)((({style:t,side:n})=>[e.showArrow?((0,s.wg)(),(0,s.j4)(dz,(0,s.dG)({key:0},r,{style:t,side:n}),null,16,["style","side"])):(0,s.kq)("v-if",!0)])),default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default")])),_:3},16)):(0,s.kq)("v-if",!0)])),_:2},1040)):((0,s.wg)(),(0,s.iD)(s.HY,{key:1},[e.alwaysOn||t?((0,s.wg)(),(0,s.j4)(vB,(0,u.vs)((0,s.dG)({key:0},i)),{arrow:(0,s.w5)((({style:t,side:n})=>[e.showArrow?((0,s.wg)(),(0,s.j4)(dz,(0,s.dG)({key:0},r,{style:t,side:n}),null,16,["style","side"])):(0,s.kq)("v-if",!0)])),default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default")])),_:3},16)):(0,s.kq)("v-if",!0)],64))],8,["to","disabled"]))])),_:3},16))}});var EB=(0,y.Z)(CB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/tooltip.vue"]]);const MB=(0,D.nz)(EB),kB="left-check-change",TB="right-check-change",AB=(0,d.o8)({data:{type:(0,d.Cq)(Array),default:()=>[]},titles:{type:(0,d.Cq)(Array),default:()=>[]},buttonTexts:{type:(0,d.Cq)(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:(0,d.Cq)(Function)},leftDefaultChecked:{type:(0,d.Cq)(Array),default:()=>[]},rightDefaultChecked:{type:(0,d.Cq)(Array),default:()=>[]},renderContent:{type:(0,d.Cq)(Function)},modelValue:{type:(0,d.Cq)(Array),default:()=>[]},format:{type:(0,d.Cq)(Object),default:()=>({})},filterable:Boolean,props:{type:(0,d.Cq)(Object),default:()=>(0,_e.N)({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),UB=(e,t)=>[e,t].every(u.kJ)||(0,u.kJ)(e)&&(0,me.Z)(t),IB={[f]:(e,t,n)=>[e,n].every(u.kJ)&&["left","right"].includes(t),[h]:e=>(0,u.kJ)(e),[kB]:UB,[TB]:UB},DB="checked-change",OB=(0,d.o8)({data:AB.data,optionRender:{type:(0,d.Cq)(Function)},placeholder:String,title:String,filterable:Boolean,format:AB.format,filterMethod:AB.filterMethod,defaultChecked:AB.leftDefaultChecked,props:AB.props}),PB={[DB]:UB},LB=e=>{const t={label:"label",key:"key",disabled:"disabled"};return(0,s.Fl)((()=>({...t,...e.props})))},RB=(e,t,n)=>{const r=LB(e),i=(0,s.Fl)((()=>e.data.filter((n=>{if((0,u.mf)(e.filterMethod))return e.filterMethod(t.query,n);{const e=String(n[r.value.label]||n[r.value.key]);return e.toLowerCase().includes(t.query.toLowerCase())}})))),o=(0,s.Fl)((()=>i.value.filter((e=>!e[r.value.disabled])))),a=(0,s.Fl)((()=>{const n=t.checked.length,r=e.data.length,{noChecked:i,hasChecked:o}=e.format;return i&&o?n>0?o.replace(/\${checked}/g,n.toString()).replace(/\${total}/g,r.toString()):i.replace(/\${total}/g,r.toString()):`${n}/${r}`})),l=(0,s.Fl)((()=>{const e=t.checked.length;return e>0&&e{const e=o.value.map((e=>e[r.value.key]));t.allChecked=e.length>0&&e.every((e=>t.checked.includes(e)))},d=e=>{t.checked=e?o.value.map((e=>e[r.value.key])):[]};return(0,s.YP)((()=>t.checked),((e,r)=>{if(c(),t.checkChangeByUser){const t=e.concat(r).filter((t=>!e.includes(t)||!r.includes(t)));n(DB,e,t)}else n(DB,e),t.checkChangeByUser=!0})),(0,s.YP)(o,(()=>{c()})),(0,s.YP)((()=>e.data),(()=>{const e=[],n=i.value.map((e=>e[r.value.key]));t.checked.forEach((t=>{n.includes(t)&&e.push(t)})),t.checkChangeByUser=!1,t.checked=e})),(0,s.YP)((()=>e.defaultChecked),((e,n)=>{if(n&&e.length===n.length&&e.every((e=>n.includes(e))))return;const i=[],a=o.value.map((e=>e[r.value.key]));e.forEach((e=>{a.includes(e)&&i.push(e)})),t.checkChangeByUser=!1,t.checked=i}),{immediate:!0}),{filteredData:i,checkableData:o,checkedSummary:a,isIndeterminate:l,updateAllChecked:c,handleAllCheckedChange:d}},NB=(0,s.aZ)({name:"ElTransferPanel"}),FB=(0,s.aZ)({...NB,props:OB,emits:PB,setup(e,{expose:t,emit:n}){const r=e,i=(0,s.Rr)(),o=({option:e})=>e,{t:a}=(0,xs.bU)(),c=(0,b.s3)("transfer"),d=(0,l.qj)({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),h=LB(r),{filteredData:f,checkedSummary:m,isIndeterminate:g,handleAllCheckedChange:v}=RB(r,d,n),y=(0,s.Fl)((()=>!(0,p.xb)(d.query)&&(0,p.xb)(f.value))),w=(0,s.Fl)((()=>!(0,p.xb)(i.default()[0].children))),{checked:S,allChecked:x,query:_}=(0,l.BK)(d);return t({query:_}),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)((0,l.SU)(c).b("panel"))},[(0,s._)("p",{class:(0,u.C_)((0,l.SU)(c).be("panel","header"))},[(0,s.Wm)((0,l.SU)($m),{modelValue:(0,l.SU)(x),"onUpdate:modelValue":t[0]||(t[0]=e=>(0,l.dq)(x)?x.value=e:null),indeterminate:(0,l.SU)(g),"validate-event":!1,onChange:(0,l.SU)(v)},{default:(0,s.w5)((()=>[(0,s.Uk)((0,u.zw)(e.title)+" ",1),(0,s._)("span",null,(0,u.zw)((0,l.SU)(m)),1)])),_:1},8,["modelValue","indeterminate","onChange"])],2),(0,s._)("div",{class:(0,u.C_)([(0,l.SU)(c).be("panel","body"),(0,l.SU)(c).is("with-footer",(0,l.SU)(w))])},[e.filterable?((0,s.wg)(),(0,s.j4)((0,l.SU)(Ye),{key:0,modelValue:(0,l.SU)(_),"onUpdate:modelValue":t[1]||(t[1]=e=>(0,l.dq)(_)?_.value=e:null),class:(0,u.C_)((0,l.SU)(c).be("panel","filter")),size:"default",placeholder:e.placeholder,"prefix-icon":(0,l.SU)(fe.olm),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):(0,s.kq)("v-if",!0),(0,s.wy)((0,s.Wm)((0,l.SU)(Gm),{modelValue:(0,l.SU)(S),"onUpdate:modelValue":t[2]||(t[2]=e=>(0,l.dq)(S)?S.value=e:null),"validate-event":!1,class:(0,u.C_)([(0,l.SU)(c).is("filterable",e.filterable),(0,l.SU)(c).be("panel","list")])},{default:(0,s.w5)((()=>[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)((0,l.SU)(f),(t=>((0,s.wg)(),(0,s.j4)((0,l.SU)($m),{key:t[(0,l.SU)(h).key],class:(0,u.C_)((0,l.SU)(c).be("panel","item")),label:t[(0,l.SU)(h).key],disabled:t[(0,l.SU)(h).disabled],"validate-event":!1},{default:(0,s.w5)((()=>{var n;return[(0,s.Wm)(o,{option:null==(n=e.optionRender)?void 0:n.call(e,t)},null,8,["option"])]})),_:2},1032,["class","label","disabled"])))),128))])),_:1},8,["modelValue","class"]),[[P.F8,!(0,l.SU)(y)&&!(0,l.SU)(p.xb)(e.data)]]),(0,s.wy)((0,s._)("p",{class:(0,u.C_)((0,l.SU)(c).be("panel","empty"))},(0,u.zw)((0,l.SU)(y)?(0,l.SU)(a)("el.transfer.noMatch"):(0,l.SU)(a)("el.transfer.noData")),3),[[P.F8,(0,l.SU)(y)||(0,l.SU)(p.xb)(e.data)]])],2),(0,l.SU)(w)?((0,s.wg)(),(0,s.iD)("p",{key:0,class:(0,u.C_)((0,l.SU)(c).be("panel","footer"))},[(0,s.WI)(e.$slots,"default")],2)):(0,s.kq)("v-if",!0)],2))}});var zB=(0,y.Z)(FB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const BB=e=>{const t=LB(e),n=(0,s.Fl)((()=>e.data.reduce(((e,n)=>(e[n[t.value.key]]=n)&&e),{}))),r=(0,s.Fl)((()=>e.data.filter((n=>!e.modelValue.includes(n[t.value.key]))))),i=(0,s.Fl)((()=>"original"===e.targetOrder?e.data.filter((n=>e.modelValue.includes(n[t.value.key]))):e.modelValue.reduce(((e,t)=>{const r=n.value[t];return r&&e.push(r),e}),[])));return{sourceData:r,targetData:i}},HB=(e,t)=>{const n=(n,r)=>{e.leftChecked=n,r&&t(kB,n,r)},r=(n,r)=>{e.rightChecked=n,r&&t(TB,n,r)};return{onSourceCheckedChange:n,onTargetCheckedChange:r}},jB=(e,t,n)=>{const r=LB(e),i=(e,t,r)=>{n(h,e),n(f,e,t,r)},o=()=>{const n=e.modelValue.slice();t.rightChecked.forEach((e=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)})),i(n,"left",t.rightChecked)},a=()=>{let n=e.modelValue.slice();const o=e.data.filter((n=>{const i=n[r.value.key];return t.leftChecked.includes(i)&&!e.modelValue.includes(i)})).map((e=>e[r.value.key]));n="unshift"===e.targetOrder?o.concat(n):n.concat(o),"original"===e.targetOrder&&(n=e.data.filter((e=>n.includes(e[r.value.key]))).map((e=>e[r.value.key]))),i(n,"right",t.leftChecked)};return{addToLeft:o,addToRight:a}},VB={key:0},WB={key:0},$B=(0,s.aZ)({name:"ElTransfer"}),qB=(0,s.aZ)({...$B,props:AB,emits:IB,setup(e,{expose:t,emit:n}){const r=e,i=(0,s.Rr)(),{t:o}=(0,xs.bU)(),a=(0,b.s3)("transfer"),{formItem:c}=Re(),d=(0,l.qj)({leftChecked:[],rightChecked:[]}),h=LB(r),{sourceData:f,targetData:m}=BB(r),{onSourceCheckedChange:g,onTargetCheckedChange:v}=HB(d,n),{addToLeft:y,addToRight:w}=jB(r,d,n),x=(0,l.iH)(),_=(0,l.iH)(),C=e=>{switch(e){case"left":x.value.query="";break;case"right":_.value.query="";break}},E=(0,s.Fl)((()=>2===r.buttonTexts.length)),M=(0,s.Fl)((()=>r.titles[0]||o("el.transfer.titles.0"))),k=(0,s.Fl)((()=>r.titles[1]||o("el.transfer.titles.1"))),T=(0,s.Fl)((()=>r.filterPlaceholder||o("el.transfer.filterPlaceholder")));(0,s.YP)((()=>r.modelValue),(()=>{var e;r.validateEvent&&(null==(e=null==c?void 0:c.validate)||e.call(c,"change").catch((e=>(0,S.N)(e))))}));const A=(0,s.Fl)((()=>e=>r.renderContent?r.renderContent(s.h,e):i.default?i.default({option:e}):(0,s.h)("span",e[h.value.label]||e[h.value.key])));return t({clearQuery:C,leftPanel:x,rightPanel:_}),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)((0,l.SU)(a).b())},[(0,s.Wm)(zB,{ref_key:"leftPanel",ref:x,data:(0,l.SU)(f),"option-render":(0,l.SU)(A),placeholder:(0,l.SU)(T),title:(0,l.SU)(M),filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,"default-checked":e.leftDefaultChecked,props:r.props,onCheckedChange:(0,l.SU)(g)},{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"left-footer")])),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),(0,s._)("div",{class:(0,u.C_)((0,l.SU)(a).e("buttons"))},[(0,s.Wm)((0,l.SU)(is),{type:"primary",class:(0,u.C_)([(0,l.SU)(a).e("button"),(0,l.SU)(a).is("with-texts",(0,l.SU)(E))]),disabled:(0,l.SU)(p.xb)(d.rightChecked),onClick:(0,l.SU)(y)},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(L.gn),null,{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.XdH))])),_:1}),(0,l.SU)(p.o8)(e.buttonTexts[0])?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)("span",VB,(0,u.zw)(e.buttonTexts[0]),1))])),_:1},8,["class","disabled","onClick"]),(0,s.Wm)((0,l.SU)(is),{type:"primary",class:(0,u.C_)([(0,l.SU)(a).e("button"),(0,l.SU)(a).is("with-texts",(0,l.SU)(E))]),disabled:(0,l.SU)(p.xb)(d.leftChecked),onClick:(0,l.SU)(w)},{default:(0,s.w5)((()=>[(0,l.SU)(p.o8)(e.buttonTexts[1])?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)("span",WB,(0,u.zw)(e.buttonTexts[1]),1)),(0,s.Wm)((0,l.SU)(L.gn),null,{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.olP))])),_:1})])),_:1},8,["class","disabled","onClick"])],2),(0,s.Wm)(zB,{ref_key:"rightPanel",ref:_,data:(0,l.SU)(m),"option-render":(0,l.SU)(A),placeholder:(0,l.SU)(T),filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,title:(0,l.SU)(k),"default-checked":e.rightDefaultChecked,props:r.props,onCheckedChange:(0,l.SU)(v)},{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"right-footer")])),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var GB=(0,y.Z)(qB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const ZB=(0,D.nz)(GB),YB="$treeNodeId",KB=function(e,t){t&&!t[YB]&&Object.defineProperty(t,YB,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},XB=function(e,t){return e?t[e]:t[YB]},JB=(e,t,n)=>{const r=e.value.currentNode;n();const i=e.value.currentNode;r!==i&&t("current-change",i?i.data:null,i)},QB=e=>{let t=!0,n=!0,r=!0;for(let i=0,o=e.length;i0&&e.lazy&&e.defaultExpandAll&&this.expand(),Array.isArray(this.data)||KB(this,this.data),!this.data)return;const n=e.defaultExpandedKeys,r=e.key;r&&n&&n.includes(this.key)&&this.expand(null,e.autoExpandParent),r&&void 0!==e.currentNodeKey&&this.key===e.currentNodeKey&&(e.currentNode=this,e.currentNode.isCurrent=!0),e.lazy&&e._initDefaultCheckedNode(this),this.updateLeafState(),!this.parent||1!==this.level&&!0!==this.parent.expanded||(this.canFocus=!0)}setData(e){let t;Array.isArray(e)||KB(this,e),this.data=e,this.childNodes=[],t=0===this.level&&Array.isArray(this.data)?this.data:tH(this,"children")||[];for(let n=0,r=t.length;n-1)return e.childNodes[t+1]}return null}get previousSibling(){const e=this.parent;if(e){const t=e.childNodes.indexOf(this);if(t>-1)return t>0?e.childNodes[t-1]:null}return null}contains(e,t=!0){return(this.childNodes||[]).some((n=>n===e||t&&n.contains(e)))}remove(){const e=this.parent;e&&e.removeChild(this)}insertChild(e,t,n){if(!e)throw new Error("InsertChild error: child is required.");if(!(e instanceof rH)){if(!n){const n=this.getChildren(!0);n.includes(e.data)||("undefined"===typeof t||t<0?n.push(e.data):n.splice(t,0,e.data))}Object.assign(e,{parent:this,store:this.store}),e=(0,l.qj)(new rH(e)),e instanceof rH&&e.initialize()}e.level=this.level+1,"undefined"===typeof t||t<0?this.childNodes.push(e):this.childNodes.splice(t,0,e),this.updateLeafState()}insertBefore(e,t){let n;t&&(n=this.childNodes.indexOf(t)),this.insertChild(e,n)}insertAfter(e,t){let n;t&&(n=this.childNodes.indexOf(t),-1!==n&&(n+=1)),this.insertChild(e,n)}removeChild(e){const t=this.getChildren()||[],n=t.indexOf(e.data);n>-1&&t.splice(n,1);const r=this.childNodes.indexOf(e);r>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(r,1)),this.updateLeafState()}removeChildByData(e){let t=null;for(let n=0;n{if(t){let e=this.parent;while(e.level>0)e.expanded=!0,e=e.parent}this.expanded=!0,e&&e(),this.childNodes.forEach((e=>{e.canFocus=!0}))};this.shouldLoadData()?this.loadData((e=>{Array.isArray(e)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||eH(this),n())})):n()}doCreateChildren(e,t={}){e.forEach((e=>{this.insertChild(Object.assign({data:e},t),void 0,!0)}))}collapse(){this.expanded=!1,this.childNodes.forEach((e=>{e.canFocus=!1}))}shouldLoadData(){return!0===this.store.lazy&&this.store.load&&!this.loaded}updateLeafState(){if(!0===this.store.lazy&&!0!==this.loaded&&"undefined"!==typeof this.isLeafByUser)return void(this.isLeaf=this.isLeafByUser);const e=this.childNodes;!this.store.lazy||!0===this.store.lazy&&!0===this.loaded?this.isLeaf=!e||0===e.length:this.isLeaf=!1}setChecked(e,t,n,r){if(this.indeterminate="half"===e,this.checked=!0===e,this.store.checkStrictly)return;if(!this.shouldLoadData()||this.store.checkDescendants){const{all:n,allWithoutDisable:i}=QB(this.childNodes);this.isLeaf||n||!i||(this.checked=!1,e=!1);const o=()=>{if(t){const n=this.childNodes;for(let a=0,s=n.length;a{o(),eH(this)}),{checked:!1!==e});o()}const i=this.parent;i&&0!==i.level&&(n||eH(i))}getChildren(e=!1){if(0===this.level)return this.data;const t=this.data;if(!t)return null;const n=this.store.props;let r="children";return n&&(r=n.children||"children"),void 0===t[r]&&(t[r]=null),e&&!t[r]&&(t[r]=[]),t[r]}updateChildren(){const e=this.getChildren()||[],t=this.childNodes.map((e=>e.data)),n={},r=[];e.forEach(((e,i)=>{const o=e[YB],a=!!o&&t.findIndex((e=>e[YB]===o))>=0;a?n[o]={index:i,data:e}:r.push({index:i,data:e})})),this.store.lazy||t.forEach((e=>{n[e[YB]]||this.removeChildByData(e)})),r.forEach((({index:e,data:t})=>{this.insertChild({data:t},e)})),this.updateLeafState()}loadData(e,t={}){if(!0!==this.store.lazy||!this.store.load||this.loaded||this.loading&&!Object.keys(t).length)e&&e.call(this);else{this.loading=!0;const n=n=>{this.childNodes=[],this.doCreateChildren(n,t),this.loaded=!0,this.loading=!1,this.updateLeafState(),e&&e.call(this,n)};this.store.load(this,n)}}}class iH{constructor(e){this.currentNode=null,this.currentNodeKey=null;for(const t in e)(0,u.RI)(e,t)&&(this[t]=e[t]);this.nodesMap={}}initialize(){if(this.root=new rH({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const e=this.load;e(this.root,(e=>{this.root.doCreateChildren(e),this._initDefaultCheckedNodes()}))}else this._initDefaultCheckedNodes()}filter(e){const t=this.filterNodeMethod,n=this.lazy,r=function(i){const o=i.root?i.root.childNodes:i.childNodes;if(o.forEach((n=>{n.visible=t.call(n,e,n.data,n),r(n)})),!i.visible&&o.length){let e=!0;e=!o.some((e=>e.visible)),i.root?i.root.visible=!1===e:i.visible=!1===e}e&&(!i.visible||i.isLeaf||n||i.expand())};r(this)}setData(e){const t=e!==this.root.data;t?(this.root.setData(e),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(e){if(e instanceof rH)return e;const t=(0,u.Kn)(e)?XB(this.key,e):e;return this.nodesMap[t]||null}insertBefore(e,t){const n=this.getNode(t);n.parent.insertBefore({data:e},n)}insertAfter(e,t){const n=this.getNode(t);n.parent.insertAfter({data:e},n)}remove(e){const t=this.getNode(e);t&&t.parent&&(t===this.currentNode&&(this.currentNode=null),t.parent.removeChild(t))}append(e,t){const n=t?this.getNode(t):this.root;n&&n.insertChild({data:e})}_initDefaultCheckedNodes(){const e=this.defaultCheckedKeys||[],t=this.nodesMap;e.forEach((e=>{const n=t[e];n&&n.setChecked(!0,!this.checkStrictly)}))}_initDefaultCheckedNode(e){const t=this.defaultCheckedKeys||[];t.includes(e.key)&&e.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())}registerNode(e){const t=this.key;if(e&&e.data)if(t){const t=e.key;void 0!==t&&(this.nodesMap[e.key]=e)}else this.nodesMap[e.id]=e}deregisterNode(e){const t=this.key;t&&e&&e.data&&(e.childNodes.forEach((e=>{this.deregisterNode(e)})),delete this.nodesMap[e.key])}getCheckedNodes(e=!1,t=!1){const n=[],r=function(i){const o=i.root?i.root.childNodes:i.childNodes;o.forEach((i=>{(i.checked||t&&i.indeterminate)&&(!e||e&&i.isLeaf)&&n.push(i.data),r(i)}))};return r(this),n}getCheckedKeys(e=!1){return this.getCheckedNodes(e).map((e=>(e||{})[this.key]))}getHalfCheckedNodes(){const e=[],t=function(n){const r=n.root?n.root.childNodes:n.childNodes;r.forEach((n=>{n.indeterminate&&e.push(n.data),t(n)}))};return t(this),e}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map((e=>(e||{})[this.key]))}_getAllNodes(){const e=[],t=this.nodesMap;for(const n in t)(0,u.RI)(t,n)&&e.push(t[n]);return e}updateChildren(e,t){const n=this.nodesMap[e];if(!n)return;const r=n.childNodes;for(let i=r.length-1;i>=0;i--){const e=r[i];this.remove(e.data)}for(let i=0,o=t.length;it.level-e.level)),i=Object.create(null),o=Object.keys(n);r.forEach((e=>e.setChecked(!1,!1)));for(let a=0,s=r.length;a0)i[u.data[e]]=!0,u=u.parent;if(n.isLeaf||this.checkStrictly)n.setChecked(!0,!1);else if(n.setChecked(!0,!0),t){n.setChecked(!1,!1);const e=function(t){const n=t.childNodes;n.forEach((t=>{t.isLeaf||t.setChecked(!1,!1),e(t)}))};e(n)}}}setCheckedNodes(e,t=!1){const n=this.key,r={};e.forEach((e=>{r[(e||{})[n]]=!0})),this._setCheckedKeys(n,t,r)}setCheckedKeys(e,t=!1){this.defaultCheckedKeys=e;const n=this.key,r={};e.forEach((e=>{r[e]=!0})),this._setCheckedKeys(n,t,r)}setDefaultExpandedKeys(e){e=e||[],this.defaultExpandedKeys=e,e.forEach((e=>{const t=this.getNode(e);t&&t.expand(null,this.autoExpandParent)}))}setChecked(e,t,n){const r=this.getNode(e);r&&r.setChecked(!!t,n)}getCurrentNode(){return this.currentNode}setCurrentNode(e){const t=this.currentNode;t&&(t.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0}setUserCurrentNode(e,t=!0){const n=e[this.key],r=this.nodesMap[n];this.setCurrentNode(r),t&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(e,t=!0){if(null===e||void 0===e)return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);const n=this.getNode(e);n&&(this.setCurrentNode(n),t&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const oH=(0,s.aZ)({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=(0,b.s3)("tree"),n=(0,s.f3)("NodeInstance"),r=(0,s.f3)("RootTree");return()=>{const i=e.node,{data:o,store:a}=i;return e.renderContent?e.renderContent(s.h,{_self:n,node:i,data:o,store:a}):r.ctx.slots.default?r.ctx.slots.default({node:i,data:o}):(0,s.h)("span",{class:t.be("node","label")},[i.label])}}});var aH=(0,y.Z)(oH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function sH(e){const t=(0,s.f3)("TreeNodeMap",null),n={treeNodeExpand:t=>{e.node!==t&&e.node.collapse()},children:[]};return t&&t.children.push(n),(0,s.JJ)("TreeNodeMap",n),{broadcastExpanded:t=>{if(e.accordion)for(const e of n.children)e.treeNodeExpand(t)}}}const lH=Symbol("dragEvents");function uH({props:e,ctx:t,el$:n,dropIndicator$:r,store:i}){const o=(0,b.s3)("tree"),a=(0,l.iH)({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null}),u=({event:n,treeNode:r})=>{if("function"===typeof e.allowDrag&&!e.allowDrag(r.node))return n.preventDefault(),!1;n.dataTransfer.effectAllowed="move";try{n.dataTransfer.setData("text/plain","")}catch(hz){}a.value.draggingNode=r,t.emit("node-drag-start",r.node,n)},c=({event:i,treeNode:s})=>{const l=s,u=a.value.dropNode;u&&u.node.id!==l.node.id&&(0,w.IV)(u.$el,o.is("drop-inner"));const c=a.value.draggingNode;if(!c||!l)return;let d=!0,p=!0,h=!0,f=!0;"function"===typeof e.allowDrop&&(d=e.allowDrop(c.node,l.node,"prev"),f=p=e.allowDrop(c.node,l.node,"inner"),h=e.allowDrop(c.node,l.node,"next")),i.dataTransfer.dropEffect=p||d||h?"move":"none",(d||p||h)&&(null==u?void 0:u.node.id)!==l.node.id&&(u&&t.emit("node-drag-leave",c.node,u.node,i),t.emit("node-drag-enter",c.node,l.node,i)),(d||p||h)&&(a.value.dropNode=l),l.node.nextSibling===c.node&&(h=!1),l.node.previousSibling===c.node&&(d=!1),l.node.contains(c.node,!1)&&(p=!1),(c.node===l.node||c.node.contains(l.node))&&(d=!1,p=!1,h=!1);const m=l.$el.getBoundingClientRect(),g=n.value.getBoundingClientRect();let v;const y=d?p?.25:h?.45:1:-1,b=h?p?.75:d?.55:0:1;let S=-9999;const x=i.clientY-m.top;v=xm.height*b?"after":p?"inner":"none";const _=l.$el.querySelector(`.${o.be("node","expand-icon")}`).getBoundingClientRect(),C=r.value;"before"===v?S=_.top-g.top:"after"===v&&(S=_.bottom-g.top),C.style.top=`${S}px`,C.style.left=_.right-g.left+"px","inner"===v?(0,w.cn)(l.$el,o.is("drop-inner")):(0,w.IV)(l.$el,o.is("drop-inner")),a.value.showDropIndicator="before"===v||"after"===v,a.value.allowDrop=a.value.showDropIndicator||f,a.value.dropType=v,t.emit("node-drag-over",c.node,l.node,i)},d=e=>{const{draggingNode:n,dropType:r,dropNode:s}=a.value;if(e.preventDefault(),e.dataTransfer.dropEffect="move",n&&s){const a={data:n.node.data};"none"!==r&&n.node.remove(),"before"===r?s.node.parent.insertBefore(a,s.node):"after"===r?s.node.parent.insertAfter(a,s.node):"inner"===r&&s.node.insertChild(a),"none"!==r&&i.value.registerNode(a),(0,w.IV)(s.$el,o.is("drop-inner")),t.emit("node-drag-end",n.node,s.node,r,e),"none"!==r&&t.emit("node-drop",n.node,s.node,r,e)}n&&!s&&t.emit("node-drag-end",n.node,null,r,e),a.value.showDropIndicator=!1,a.value.draggingNode=null,a.value.dropNode=null,a.value.allowDrop=!0};return(0,s.JJ)(lH,{treeNodeDragStart:u,treeNodeDragOver:c,treeNodeDragEnd:d}),{dragState:a}}const cH=(0,s.aZ)({name:"ElTreeNode",components:{ElCollapseTransition:Zv,ElCheckbox:$m,NodeContent:aH,ElIcon:L.gn,Loading:fe.gbz},props:{node:{type:rH,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const n=(0,b.s3)("tree"),{broadcastExpanded:r}=sH(e),i=(0,s.f3)("RootTree"),o=(0,l.iH)(!1),a=(0,l.iH)(!1),c=(0,l.iH)(null),d=(0,l.iH)(null),p=(0,l.iH)(null),h=(0,s.f3)(lH),f=(0,s.FN)();(0,s.JJ)("NodeInstance",f),i||(0,S.N)("Tree","Can not find node's tree."),e.node.expanded&&(o.value=!0,a.value=!0);const m=i.props["children"]||"children";(0,s.YP)((()=>{const t=e.node.data[m];return t&&[...t]}),(()=>{e.node.updateChildren()})),(0,s.YP)((()=>e.node.indeterminate),(t=>{y(e.node.checked,t)})),(0,s.YP)((()=>e.node.checked),(t=>{y(t,e.node.indeterminate)})),(0,s.YP)((()=>e.node.expanded),(e=>{(0,s.Y3)((()=>o.value=e)),e&&(a.value=!0)}));const g=e=>XB(i.props.nodeKey,e.data),v=t=>{const n=e.props.class;if(!n)return{};let r;if((0,u.mf)(n)){const{data:e}=t;r=n(e,t)}else r=n;return(0,u.HD)(r)?{[r]:!0}:r},y=(t,n)=>{c.value===t&&d.value===n||i.ctx.emit("check-change",e.node.data,t,n),c.value=t,d.value=n},w=t=>{JB(i.store,i.ctx.emit,(()=>i.store.value.setCurrentNode(e.node))),i.currentNode.value=e.node,i.props.expandOnClickNode&&_(),i.props.checkOnClickNode&&!e.node.disabled&&C(null,{target:{checked:!e.node.checked}}),i.ctx.emit("node-click",e.node.data,e.node,f,t)},x=t=>{i.instance.vnode.props["onNodeContextmenu"]&&(t.stopPropagation(),t.preventDefault()),i.ctx.emit("node-contextmenu",t,e.node.data,e.node,f)},_=()=>{e.node.isLeaf||(o.value?(i.ctx.emit("node-collapse",e.node.data,e.node,f),e.node.collapse()):(e.node.expand(),t.emit("node-expand",e.node.data,e.node,f)))},C=(t,n)=>{e.node.setChecked(n.target.checked,!i.props.checkStrictly),(0,s.Y3)((()=>{const t=i.store.value;i.ctx.emit("check",e.node.data,{checkedNodes:t.getCheckedNodes(),checkedKeys:t.getCheckedKeys(),halfCheckedNodes:t.getHalfCheckedNodes(),halfCheckedKeys:t.getHalfCheckedKeys()})}))},E=(e,t,n)=>{r(t),i.ctx.emit("node-expand",e,t,n)},M=t=>{i.props.draggable&&h.treeNodeDragStart({event:t,treeNode:e})},k=t=>{t.preventDefault(),i.props.draggable&&h.treeNodeDragOver({event:t,treeNode:{$el:p.value,node:e.node}})},T=e=>{e.preventDefault()},A=e=>{i.props.draggable&&h.treeNodeDragEnd(e)};return{ns:n,node$:p,tree:i,expanded:o,childNodeRendered:a,oldChecked:c,oldIndeterminate:d,getNodeKey:g,getNodeClass:v,handleSelectChange:y,handleClick:w,handleContextMenu:x,handleExpandIconClick:_,handleCheckChange:C,handleChildNodeExpand:E,handleDragStart:M,handleDragOver:k,handleDrop:T,handleDragEnd:A,CaretRight:fe.TZ}}}),dH=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],pH=["aria-expanded"];function hH(e,t,n,r,i,o){const a=(0,s.up)("el-icon"),l=(0,s.up)("el-checkbox"),c=(0,s.up)("loading"),d=(0,s.up)("node-content"),p=(0,s.up)("el-tree-node"),h=(0,s.up)("el-collapse-transition");return(0,s.wy)(((0,s.wg)(),(0,s.iD)("div",{ref:"node$",class:(0,u.C_)([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[1]||(t[1]=(0,P.iM)(((...t)=>e.handleClick&&e.handleClick(...t)),["stop"])),onContextmenu:t[2]||(t[2]=(...t)=>e.handleContextMenu&&e.handleContextMenu(...t)),onDragstart:t[3]||(t[3]=(0,P.iM)(((...t)=>e.handleDragStart&&e.handleDragStart(...t)),["stop"])),onDragover:t[4]||(t[4]=(0,P.iM)(((...t)=>e.handleDragOver&&e.handleDragOver(...t)),["stop"])),onDragend:t[5]||(t[5]=(0,P.iM)(((...t)=>e.handleDragEnd&&e.handleDragEnd(...t)),["stop"])),onDrop:t[6]||(t[6]=(0,P.iM)(((...t)=>e.handleDrop&&e.handleDrop(...t)),["stop"]))},[(0,s._)("div",{class:(0,u.C_)(e.ns.be("node","content")),style:(0,u.j5)({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?((0,s.wg)(),(0,s.j4)(a,{key:0,class:(0,u.C_)([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:(0,P.iM)(e.handleExpandIconClick,["stop"])},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.tree.props.icon||e.CaretRight)))])),_:1},8,["class","onClick"])):(0,s.kq)("v-if",!0),e.showCheckbox?((0,s.wg)(),(0,s.j4)(l,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=(0,P.iM)((()=>{}),["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):(0,s.kq)("v-if",!0),e.node.loading?((0,s.wg)(),(0,s.j4)(a,{key:2,class:(0,u.C_)([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:(0,s.w5)((()=>[(0,s.Wm)(c)])),_:1},8,["class"])):(0,s.kq)("v-if",!0),(0,s.Wm)(d,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),(0,s.Wm)(h,null,{default:(0,s.w5)((()=>[!e.renderAfterExpand||e.childNodeRendered?(0,s.wy)(((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.node.childNodes,(t=>((0,s.wg)(),(0,s.j4)(p,{key:e.getNodeKey(t),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:t,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"])))),128))],10,pH)),[[P.F8,e.expanded]]):(0,s.kq)("v-if",!0)])),_:1})],42,dH)),[[P.F8,e.node.visible]])}var fH=(0,y.Z)(cH,[["render",hH],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function mH({el$:e},t){const n=(0,b.s3)("tree"),r=(0,l.XI)([]),i=(0,l.XI)([]);(0,s.bv)((()=>{a()})),(0,s.ic)((()=>{r.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),i.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))})),(0,s.YP)(i,(e=>{e.forEach((e=>{e.setAttribute("tabindex","-1")}))}));const o=i=>{const o=i.target;if(!o.className.includes(n.b("node")))return;const a=i.code;r.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const s=r.value.indexOf(o);let l;if([Fr.EVENT_CODE.up,Fr.EVENT_CODE.down].includes(a)){if(i.preventDefault(),a===Fr.EVENT_CODE.up){l=-1===s?0:0!==s?s-1:r.value.length-1;const e=l;while(1){if(t.value.getNode(r.value[l].dataset.key).canFocus)break;if(l--,l===e){l=-1;break}l<0&&(l=r.value.length-1)}}else{l=-1===s?0:s=r.value.length&&(l=0)}}-1!==l&&r.value[l].focus()}[Fr.EVENT_CODE.left,Fr.EVENT_CODE.right].includes(a)&&(i.preventDefault(),o.click());const u=o.querySelector('[type="checkbox"]');[Fr.EVENT_CODE.enter,Fr.EVENT_CODE.space].includes(a)&&u&&(i.preventDefault(),u.click())};(0,c.ORN)(e,"keydown",o);const a=()=>{var t;r.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),i.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const o=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);o.length?o[0].setAttribute("tabindex","0"):null==(t=r.value[0])||t.setAttribute("tabindex","0")}}const gH=(0,s.aZ)({name:"ElTree",components:{ElTreeNode:fH},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:N.AA}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:n}=(0,xs.bU)(),r=(0,b.s3)("tree"),i=(0,l.iH)(new iH({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));i.value.initialize();const o=(0,l.iH)(i.value.root),a=(0,l.iH)(null),u=(0,l.iH)(null),c=(0,l.iH)(null),{broadcastExpanded:d}=sH(e),{dragState:p}=uH({props:e,ctx:t,el$:u,dropIndicator$:c,store:i});mH({el$:u},i);const h=(0,s.Fl)((()=>{const{childNodes:e}=o.value;return!e||0===e.length||e.every((({visible:e})=>!e))}));(0,s.YP)((()=>e.currentNodeKey),(e=>{i.value.setCurrentNodeKey(e)})),(0,s.YP)((()=>e.defaultCheckedKeys),(e=>{i.value.setDefaultCheckedKey(e)})),(0,s.YP)((()=>e.defaultExpandedKeys),(e=>{i.value.setDefaultExpandedKeys(e)})),(0,s.YP)((()=>e.data),(e=>{i.value.setData(e)}),{deep:!0}),(0,s.YP)((()=>e.checkStrictly),(e=>{i.value.checkStrictly=e}));const f=t=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");i.value.filter(t)},m=t=>XB(e.nodeKey,t.data),g=t=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const n=i.value.getNode(t);if(!n)return[];const r=[n.data];let a=n.parent;while(a&&a!==o.value)r.push(a.data),a=a.parent;return r.reverse()},v=(e,t)=>i.value.getCheckedNodes(e,t),y=e=>i.value.getCheckedKeys(e),w=()=>{const e=i.value.getCurrentNode();return e?e.data:null},S=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const t=w();return t?t[e.nodeKey]:null},x=(t,n)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");i.value.setCheckedNodes(t,n)},_=(t,n)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");i.value.setCheckedKeys(t,n)},C=(e,t,n)=>{i.value.setChecked(e,t,n)},E=()=>i.value.getHalfCheckedNodes(),M=()=>i.value.getHalfCheckedKeys(),k=(n,r=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");JB(i,t.emit,(()=>i.value.setUserCurrentNode(n,r)))},T=(n,r=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");JB(i,t.emit,(()=>i.value.setCurrentNodeKey(n,r)))},A=e=>i.value.getNode(e),U=e=>{i.value.remove(e)},I=(e,t)=>{i.value.append(e,t)},D=(e,t)=>{i.value.insertBefore(e,t)},O=(e,t)=>{i.value.insertAfter(e,t)},P=(e,n,r)=>{d(n),t.emit("node-expand",e,n,r)},L=(t,n)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");i.value.updateChildren(t,n)};return(0,s.JJ)("RootTree",{ctx:t,props:e,store:i,root:o,currentNode:a,instance:(0,s.FN)()}),(0,s.JJ)(Ie,void 0),{ns:r,store:i,root:o,currentNode:a,dragState:p,el$:u,dropIndicator$:c,isEmpty:h,filter:f,getNodeKey:m,getNodePath:g,getCheckedNodes:v,getCheckedKeys:y,getCurrentNode:w,getCurrentKey:S,setCheckedNodes:x,setCheckedKeys:_,setChecked:C,getHalfCheckedNodes:E,getHalfCheckedKeys:M,setCurrentNode:k,setCurrentKey:T,t:n,getNode:A,remove:U,append:I,insertBefore:D,insertAfter:O,handleNodeExpand:P,updateKeyChildren:L}}});function vH(e,t,n,r,i,o){const a=(0,s.up)("el-tree-node");return(0,s.wg)(),(0,s.iD)("div",{ref:"el$",class:(0,u.C_)([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner","inner"===e.dragState.dropType),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.root.childNodes,(t=>((0,s.wg)(),(0,s.j4)(a,{key:e.getNodeKey(t),node:t,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"])))),128)),e.isEmpty?((0,s.wg)(),(0,s.iD)("div",{key:0,class:(0,u.C_)(e.ns.e("empty-block"))},[(0,s.WI)(e.$slots,"empty",{},(()=>{var t;return[(0,s._)("span",{class:(0,u.C_)(e.ns.e("empty-text"))},(0,u.zw)(null!=(t=e.emptyText)?t:e.t("el.tree.emptyText")),3)]}))],2)):(0,s.kq)("v-if",!0),(0,s.wy)((0,s._)("div",{ref:"dropIndicator$",class:(0,u.C_)(e.ns.e("drop-indicator"))},null,2),[[P.F8,e.dragState.showDropIndicator]])],2)}var yH=(0,y.Z)(gH,[["render",vH],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);yH.install=e=>{e.component(yH.name,yH)};const bH=yH,wH=bH,SH=(e,{attrs:t},{tree:n,key:r})=>{const i=(0,b.s3)("tree-select"),o={...zm((0,l.BK)(e),Object.keys(Uk.props)),...t,valueKey:r,popperClass:(0,s.Fl)((()=>{const t=[i.e("popper")];return e.popperClass&&t.push(e.popperClass),t.join(" ")})),filterMethod:(t="")=>{e.filterMethod&&e.filterMethod(t),(0,s.Y3)((()=>{var e;null==(e=n.value)||e.filter(t)}))},onVisibleChange:n=>{var r;null==(r=t.onVisibleChange)||r.call(t,n),e.filterable&&n&&o.filterMethod()}};return o},xH=(0,s.aZ)({extends:Ik,setup(e,t){const n=Ik.setup(e,t);delete n.selectOptionClick;const r=(0,s.FN)().proxy;return(0,s.Y3)((()=>{n.select.cachedOptions.get(r.value)||n.select.onOptionCreate(r)})),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function _H(e){return e||0===e}function CH(e){return Array.isArray(e)&&e.length}function EH(e){return Array.isArray(e)?e:_H(e)?[e]:[]}function MH(e,t,n,r,i){for(let o=0;o{(0,s.YP)((()=>e.modelValue),(()=>{e.showCheckbox&&(0,s.Y3)((()=>{const t=o.value;t&&!Mf(t.getCheckedKeys(),EH(e.modelValue))&&t.setCheckedKeys(EH(e.modelValue))}))}),{immediate:!0,deep:!0});const c=(0,s.Fl)((()=>({value:a.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props}))),d=(e,t)=>{var n;const r=c.value[e];return(0,u.mf)(r)?r(t,null==(n=o.value)?void 0:n.getNode(d("value",t))):t[r]},p=EH(e.modelValue).map((t=>MH(e.data||[],(e=>d("value",e)===t),(e=>d("children",e)),((e,t,n,r)=>r&&d("value",r))))).filter((e=>_H(e))),f=(0,s.Fl)((()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const t=[];return kH(e.data.concat(e.cacheData),(e=>{const n=d("value",e);t.push({value:n,currentLabel:d("label",e),isDisabled:d("disabled",e)})}),(e=>d("children",e))),t})),m=(0,s.Fl)((()=>f.value.reduce(((e,t)=>({...e,[t.value]:t})),{})));return{...zm((0,l.BK)(e),Object.keys(bH.props)),...t,nodeKey:a,expandOnClickNode:(0,s.Fl)((()=>!e.checkStrictly&&e.expandOnClickNode)),defaultExpandedKeys:(0,s.Fl)((()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(p):p)),renderContent:(t,{node:r,data:i,store:o})=>t(xH,{value:d("value",i),label:d("label",i),disabled:d("disabled",i)},e.renderContent?()=>e.renderContent(t,{node:r,data:i,store:o}):n.default?()=>n.default({node:r,data:i,store:o}):void 0),filterNodeMethod:(t,n,r)=>{var i;return e.filterNodeMethod?e.filterNodeMethod(t,n,r):!t||(null==(i=d("label",n))?void 0:i.includes(t))},onNodeClick:(n,r,o)=>{var a,s,l;if(null==(a=t.onNodeClick)||a.call(t,n,r,o),!e.showCheckbox||!e.checkOnClickNode)if(e.showCheckbox||!e.checkStrictly&&!r.isLeaf)e.expandOnClickNode&&o.proxy.handleExpandIconClick();else if(!d("disabled",n)){const e=null==(s=i.value)?void 0:s.options.get(d("value",n));null==(l=i.value)||l.handleOptionSelect(e)}},onCheck:(n,i)=>{if(!e.showCheckbox)return;const a=d("value",n),l=i.checkedKeys,u=e.multiple?EH(e.modelValue).filter((e=>e in m.value&&!o.value.getNode(e)&&!l.includes(e))):[],c=l.concat(u);if(e.checkStrictly)r(h,e.multiple?c:c.includes(a)?a:void 0);else if(e.multiple)r(h,o.value.getCheckedKeys(!0));else{const t=MH([n],(e=>!CH(d("children",e))&&!d("disabled",e)),(e=>d("children",e))),i=t?d("value",t):void 0,o=_H(e.modelValue)&&!!MH([n],(t=>d("value",t)===e.modelValue),(e=>d("children",e)));r(h,i===e.modelValue||o?void 0:i)}(0,s.Y3)((()=>{var r;const i=EH(e.modelValue);o.value.setCheckedKeys(i),null==(r=t.onCheck)||r.call(t,n,{checkedKeys:o.value.getCheckedKeys(),checkedNodes:o.value.getCheckedNodes(),halfCheckedKeys:o.value.getHalfCheckedKeys(),halfCheckedNodes:o.value.getHalfCheckedNodes()})}))},cacheOptions:f}};var AH=(0,s.aZ)({props:{data:{type:Array,default:()=>[]}},setup(e){const t=(0,s.f3)(ok);return(0,s.YP)((()=>e.data),(()=>{var n;e.data.forEach((e=>{t.cachedOptions.has(e.value)||t.cachedOptions.set(e.value,e)}));const r=(null==(n=t.selectWrapper)?void 0:n.querySelectorAll("input"))||[];Array.from(r).includes(document.activeElement)||t.setSelected()}),{flush:"post",immediate:!0}),()=>{}}});const UH=(0,s.aZ)({name:"ElTreeSelect",inheritAttrs:!1,props:{...Uk.props,...bH.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:r}=t,i=(0,l.iH)(),o=(0,l.iH)(),a=(0,s.Fl)((()=>e.nodeKey||e.valueKey||"value")),u=SH(e,t,{select:i,tree:o,key:a}),{cacheOptions:c,...d}=TH(e,t,{select:i,tree:o,key:a}),p=(0,l.qj)({});return r(p),(0,s.bv)((()=>{Object.assign(p,{...zm(o.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...zm(i.value,["focus","blur"])})})),()=>(0,s.h)(Uk,(0,l.qj)({...u,ref:e=>i.value=e}),{...n,default:()=>[(0,s.h)(AH,{data:c.value}),(0,s.h)(bH,(0,l.qj)({...d,ref:e=>o.value=e}))]})}});var IH=(0,y.Z)(UH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);IH.install=e=>{e.component(IH.name,IH)};const DH=IH,OH=DH,PH=Symbol(),LH={key:-1,level:-1,data:{}};var RH=(e=>(e["KEY"]="id",e["LABEL"]="label",e["CHILDREN"]="children",e["DISABLED"]="disabled",e))(RH||{}),NH=(e=>(e["ADD"]="add",e["DELETE"]="delete",e))(NH||{});const FH={type:Number,default:26},zH=(0,d.o8)({data:{type:(0,d.Cq)(Array),default:()=>(0,_e.N)([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:(0,d.Cq)(Object),default:()=>(0,_e.N)({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:(0,d.Cq)(Array),default:()=>(0,_e.N)([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:(0,d.Cq)(Array),default:()=>(0,_e.N)([])},indent:{type:Number,default:16},itemSize:FH,icon:{type:N.AA},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:(0,d.Cq)([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:(0,d.Cq)(Function)},perfMode:{type:Boolean,default:!0}}),BH=(0,d.o8)({node:{type:(0,d.Cq)(Object),default:()=>(0,_e.N)(LH)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1},itemSize:FH}),HH=(0,d.o8)({node:{type:(0,d.Cq)(Object),required:!0}}),jH="node-click",VH="node-expand",WH="node-collapse",$H="current-change",qH="check",GH="check-change",ZH="node-contextmenu",YH={[jH]:(e,t,n)=>e&&t&&n,[VH]:(e,t)=>e&&t,[WH]:(e,t)=>e&&t,[$H]:(e,t)=>e&&t,[qH]:(e,t)=>e&&t,[GH]:(e,t)=>e&&"boolean"===typeof t,[ZH]:(e,t,n)=>e&&t&&n},KH={click:(e,t)=>!(!e||!t),toggle:e=>!!e,check:(e,t)=>e&&"boolean"===typeof t};function XH(e,t){const n=(0,l.iH)(new Set),r=(0,l.iH)(new Set),{emit:i}=(0,s.FN)();(0,s.YP)([()=>t.value,()=>e.defaultCheckedKeys],(()=>(0,s.Y3)((()=>{w(e.defaultCheckedKeys)}))),{immediate:!0});const o=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:i,maxLevel:o}=t.value,a=n.value,s=new Set;for(let e=o-1;e>=1;--e){const t=i.get(e);t&&t.forEach((e=>{const t=e.children;if(t){let n=!0,r=!1;for(const e of t){const t=e.key;if(a.has(t))r=!0;else{if(s.has(t)){n=!1,r=!0;break}n=!1}}n?a.add(e.key):r?(s.add(e.key),a.delete(e.key)):(a.delete(e.key),s.delete(e.key))}}))}r.value=s},a=e=>n.value.has(e.key),u=e=>r.value.has(e.key),c=(t,r,i=!0)=>{const a=n.value,s=(t,n)=>{a[n?NH.ADD:NH.DELETE](t.key);const r=t.children;!e.checkStrictly&&r&&r.forEach((e=>{e.disabled||s(e,n)}))};s(t,r),o(),i&&d(t,r)},d=(e,t)=>{const{checkedNodes:n,checkedKeys:r}=g(),{halfCheckedNodes:o,halfCheckedKeys:a}=v();i(qH,e.data,{checkedKeys:r,checkedNodes:n,halfCheckedKeys:a,halfCheckedNodes:o}),i(GH,e.data,t)};function p(e=!1){return g(e).checkedKeys}function h(e=!1){return g(e).checkedNodes}function f(){return v().halfCheckedKeys}function m(){return v().halfCheckedNodes}function g(r=!1){const i=[],o=[];if((null==t?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:e}=t.value;n.value.forEach((t=>{const n=e.get(t);n&&(!r||r&&n.isLeaf)&&(o.push(t),i.push(n.data))}))}return{checkedKeys:o,checkedNodes:i}}function v(){const n=[],i=[];if((null==t?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:e}=t.value;r.value.forEach((t=>{const r=e.get(t);r&&(i.push(t),n.push(r.data))}))}return{halfCheckedNodes:n,halfCheckedKeys:i}}function y(e){n.value.clear(),r.value.clear(),w(e)}function b(n,r){if((null==t?void 0:t.value)&&e.showCheckbox){const e=t.value.treeNodeMap.get(n);e&&c(e,r,!1)}}function w(n){if(null==t?void 0:t.value){const{treeNodeMap:r}=t.value;if(e.showCheckbox&&r&&n)for(const e of n){const t=r.get(e);t&&!a(t)&&c(t,!0,!1)}}}return{updateCheckedKeys:o,toggleCheckbox:c,isChecked:a,isIndeterminate:u,getCheckedKeys:p,getCheckedNodes:h,getHalfCheckedKeys:f,getHalfCheckedNodes:m,setChecked:b,setCheckedKeys:y}}function JH(e,t){const n=(0,l.iH)(new Set([])),r=(0,l.iH)(new Set([])),i=(0,s.Fl)((()=>(0,u.mf)(e.filterMethod)));function o(o){var a;if(!i.value)return;const s=new Set,l=r.value,u=n.value,c=[],d=(null==(a=t.value)?void 0:a.treeNodes)||[],p=e.filterMethod;function h(e){e.forEach((e=>{c.push(e),(null==p?void 0:p(o,e.data))?c.forEach((e=>{s.add(e.key)})):e.isLeaf&&u.add(e.key);const t=e.children;if(t&&h(t),!e.isLeaf)if(s.has(e.key)){if(t){let n=!0;for(const e of t)if(!u.has(e.key)){n=!1;break}n?l.add(e.key):l.delete(e.key)}}else u.add(e.key);c.pop()}))}return u.clear(),h(d),s}function a(e){return r.value.has(e.key)}return{hiddenExpandIconKeySet:r,hiddenNodeKeySet:n,doFilter:o,isForceHiddenExpandIcon:a}}function QH(e,t){const n=(0,l.iH)(new Set(e.defaultExpandedKeys)),r=(0,l.iH)(),i=(0,l.XI)();(0,s.YP)((()=>e.currentNodeKey),(e=>{r.value=e}),{immediate:!0}),(0,s.YP)((()=>e.data),(e=>{$(e)}),{immediate:!0});const{isIndeterminate:o,isChecked:a,toggleCheckbox:c,getCheckedKeys:d,getCheckedNodes:p,getHalfCheckedKeys:h,getHalfCheckedNodes:f,setChecked:m,setCheckedKeys:g}=XH(e,i),{doFilter:v,hiddenNodeKeySet:y,isForceHiddenExpandIcon:b}=JH(e,i),w=(0,s.Fl)((()=>{var t;return(null==(t=e.props)?void 0:t.value)||RH.KEY})),S=(0,s.Fl)((()=>{var t;return(null==(t=e.props)?void 0:t.children)||RH.CHILDREN})),x=(0,s.Fl)((()=>{var t;return(null==(t=e.props)?void 0:t.disabled)||RH.DISABLED})),_=(0,s.Fl)((()=>{var t;return(null==(t=e.props)?void 0:t.label)||RH.LABEL})),C=(0,s.Fl)((()=>{const e=n.value,t=y.value,r=[],o=i.value&&i.value.treeNodes||[];function a(){const n=[];for(let e=o.length-1;e>=0;--e)n.push(o[e]);while(n.length){const i=n.pop();if(i&&(t.has(i.key)||r.push(i),e.has(i.key))){const e=i.children;if(e){const t=e.length;for(let r=t-1;r>=0;--r)n.push(e[r])}}}}return a(),r})),E=(0,s.Fl)((()=>C.value.length>0));function M(e){const t=new Map,n=new Map;let r=1;function i(e,o=1,a=void 0){var s;const l=[];for(const r of e){const e=A(r),u={level:o,key:e,data:r};u.label=I(r),u.parent=a;const c=T(r);u.disabled=U(r),u.isLeaf=!c||0===c.length,c&&c.length&&(u.children=i(c,o+1,u)),l.push(u),t.set(e,u),n.has(o)||n.set(o,[]),null==(s=n.get(o))||s.push(u)}return o>r&&(r=o),l}const o=i(e);return{treeNodeMap:t,levelTreeNodeMap:n,maxLevel:r,treeNodes:o}}function k(e){const t=v(e);t&&(n.value=t)}function T(e){return e[S.value]}function A(e){return e?e[w.value]:""}function U(e){return e[x.value]}function I(e){return e[_.value]}function D(e){const t=n.value;t.has(e.key)?F(e):N(e)}function O(e){n.value=new Set(e)}function P(n,r){t(jH,n.data,n,r),L(n),e.expandOnClickNode&&D(n),e.showCheckbox&&e.checkOnClickNode&&!n.disabled&&c(n,!a(n),!0)}function L(e){H(e)||(r.value=e.key,t($H,e.data,e))}function R(e,t){c(e,t)}function N(r){const o=n.value;if(i.value&&e.accordion){const{treeNodeMap:e}=i.value;o.forEach((t=>{const n=e.get(t);r&&r.level===(null==n?void 0:n.level)&&o.delete(t)}))}o.add(r.key),t(VH,r.data,r)}function F(e){n.value.delete(e.key),t(WH,e.data,e)}function z(e){return n.value.has(e.key)}function B(e){return!!e.disabled}function H(e){const t=r.value;return!!t&&t===e.key}function j(){var e,t;if(r.value)return null==(t=null==(e=i.value)?void 0:e.treeNodeMap.get(r.value))?void 0:t.data}function V(){return r.value}function W(e){r.value=e}function $(e){(0,s.Y3)((()=>i.value=M(e)))}function q(e){var t;const n=(0,u.Kn)(e)?A(e):e;return null==(t=i.value)?void 0:t.treeNodeMap.get(n)}return{tree:i,flattenTree:C,isNotEmpty:E,getKey:A,getChildren:T,toggleExpand:D,toggleCheckbox:c,isExpanded:z,isChecked:a,isIndeterminate:o,isDisabled:B,isCurrent:H,isForceHiddenExpandIcon:b,handleNodeClick:P,handleNodeCheck:R,getCurrentNode:j,getCurrentKey:V,setCurrentKey:W,getCheckedKeys:d,getCheckedNodes:p,getHalfCheckedKeys:h,getHalfCheckedNodes:f,setChecked:m,setCheckedKeys:g,filter:k,setData:$,getNode:q,expandNode:N,collapseNode:F,setExpandedKeys:O}}var ej=(0,s.aZ)({name:"ElTreeNodeContent",props:HH,setup(e){const t=(0,s.f3)(PH),n=(0,b.s3)("tree");return()=>{const r=e.node,{data:i}=r;return(null==t?void 0:t.ctx.slots.default)?t.ctx.slots.default({node:r,data:i}):(0,s.h)("span",{class:n.be("node","label")},[null==r?void 0:r.label])}}});const tj=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],nj=(0,s.aZ)({name:"ElTreeNode"}),rj=(0,s.aZ)({...nj,props:BH,emits:KH,setup(e,{emit:t}){const n=e,r=(0,s.f3)(PH),i=(0,b.s3)("tree"),o=(0,s.Fl)((()=>{var e;return null!=(e=null==r?void 0:r.props.indent)?e:16})),a=(0,s.Fl)((()=>{var e;return null!=(e=null==r?void 0:r.props.icon)?e:fe.TZ})),c=e=>{t("click",n.node,e)},d=()=>{t("toggle",n.node)},p=e=>{t("check",n.node,e)},h=e=>{var t,i,o,a;(null==(o=null==(i=null==(t=null==r?void 0:r.instance)?void 0:t.vnode)?void 0:i.props)?void 0:o["onNodeContextmenu"])&&(e.stopPropagation(),e.preventDefault()),null==r||r.ctx.emit(ZH,e,null==(a=n.node)?void 0:a.data,n.node)};return(e,t)=>{var n,r,f;return(0,s.wg)(),(0,s.iD)("div",{ref:"node$",class:(0,u.C_)([(0,l.SU)(i).b("node"),(0,l.SU)(i).is("expanded",e.expanded),(0,l.SU)(i).is("current",e.current),(0,l.SU)(i).is("focusable",!e.disabled),(0,l.SU)(i).is("checked",!e.disabled&&e.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.disabled,"aria-checked":e.checked,"data-key":null==(n=e.node)?void 0:n.key,onClick:(0,P.iM)(c,["stop"]),onContextmenu:h},[(0,s._)("div",{class:(0,u.C_)((0,l.SU)(i).be("node","content")),style:(0,u.j5)({paddingLeft:(e.node.level-1)*(0,l.SU)(o)+"px",height:e.itemSize+"px"})},[(0,l.SU)(a)?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:0,class:(0,u.C_)([(0,l.SU)(i).is("leaf",!!(null==(r=e.node)?void 0:r.isLeaf)),(0,l.SU)(i).is("hidden",e.hiddenExpandIcon),{expanded:!(null==(f=e.node)?void 0:f.isLeaf)&&e.expanded},(0,l.SU)(i).be("node","expand-icon")]),onClick:(0,P.iM)(d,["stop"])},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)((0,l.SU)(a))))])),_:1},8,["class","onClick"])):(0,s.kq)("v-if",!0),e.showCheckbox?((0,s.wg)(),(0,s.j4)((0,l.SU)($m),{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,onChange:p,onClick:t[0]||(t[0]=(0,P.iM)((()=>{}),["stop"]))},null,8,["model-value","indeterminate","disabled"])):(0,s.kq)("v-if",!0),(0,s.Wm)((0,l.SU)(ej),{node:e.node},null,8,["node"])],6)],42,tj)}}});var ij=(0,y.Z)(rj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const oj=(0,s.aZ)({name:"ElTreeV2"}),aj=(0,s.aZ)({...oj,props:zH,emits:YH,setup(e,{expose:t,emit:n}){const r=e,i=(0,s.Rr)(),o=(0,s.Fl)((()=>r.itemSize));(0,s.JJ)(PH,{ctx:{emit:n,slots:i},props:r,instance:(0,s.FN)()}),(0,s.JJ)(Ie,void 0);const{t:a}=(0,xs.bU)(),c=(0,b.s3)("tree"),{flattenTree:d,isNotEmpty:p,toggleExpand:h,isExpanded:f,isIndeterminate:m,isChecked:g,isDisabled:v,isCurrent:y,isForceHiddenExpandIcon:w,handleNodeClick:S,handleNodeCheck:x,toggleCheckbox:_,getCurrentNode:C,getCurrentKey:E,setCurrentKey:M,getCheckedKeys:k,getCheckedNodes:T,getHalfCheckedKeys:A,getHalfCheckedNodes:U,setChecked:I,setCheckedKeys:D,filter:O,setData:P,getNode:L,expandNode:R,collapseNode:N,setExpandedKeys:F}=QH(r,n);return t({toggleCheckbox:_,getCurrentNode:C,getCurrentKey:E,setCurrentKey:M,getCheckedKeys:k,getCheckedNodes:T,getHalfCheckedKeys:A,getHalfCheckedNodes:U,setChecked:I,setCheckedKeys:D,filter:O,setData:P,getNode:L,expandNode:R,collapseNode:N,setExpandedKeys:F}),(e,t)=>{var n;return(0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)([(0,l.SU)(c).b(),{[(0,l.SU)(c).m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(0,l.SU)(p)?((0,s.wg)(),(0,s.j4)((0,l.SU)(hU),{key:0,"class-name":(0,l.SU)(c).b("virtual-list"),data:(0,l.SU)(d),total:(0,l.SU)(d).length,height:e.height,"item-size":(0,l.SU)(o),"perf-mode":e.perfMode},{default:(0,s.w5)((({data:t,index:n,style:r})=>[((0,s.wg)(),(0,s.j4)(ij,{key:t[n].key,style:(0,u.j5)(r),node:t[n],expanded:(0,l.SU)(f)(t[n]),"show-checkbox":e.showCheckbox,checked:(0,l.SU)(g)(t[n]),indeterminate:(0,l.SU)(m)(t[n]),"item-size":(0,l.SU)(o),disabled:(0,l.SU)(v)(t[n]),current:(0,l.SU)(y)(t[n]),"hidden-expand-icon":(0,l.SU)(w)(t[n]),onClick:(0,l.SU)(S),onToggle:(0,l.SU)(h),onCheck:(0,l.SU)(x)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))])),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,u.C_)((0,l.SU)(c).e("empty-block"))},[(0,s._)("span",{class:(0,u.C_)((0,l.SU)(c).e("empty-text"))},(0,u.zw)(null!=(n=e.emptyText)?n:(0,l.SU)(a)("el.tree.emptyText")),3)],2))],2)}}});var sj=(0,y.Z)(aj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const lj=(0,D.nz)(sj);n(2062);const uj=Symbol("uploadContextKey"),cj="ElUpload";class dj extends Error{constructor(e,t,n,r){super(e),this.name="UploadAjaxError",this.status=t,this.method=n,this.url=r}}function pj(e,t,n){let r;return r=n.response?`${n.response.error||n.response}`:n.responseText?`${n.responseText}`:`fail to ${t.method} ${e} ${n.status}`,new dj(r,n.status,t.method,e)}function hj(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(hz){return t}}const fj=e=>{"undefined"===typeof XMLHttpRequest&&(0,S._)(cj,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",(t=>{const n=t;n.percent=t.total>0?t.loaded/t.total*100:0,e.onProgress(n)}));const r=new FormData;if(e.data)for(const[o,a]of Object.entries(e.data))Array.isArray(a)?r.append(o,...a):r.append(o,a);r.append(e.filename,e.file,e.file.name),t.addEventListener("error",(()=>{e.onError(pj(n,e,t))})),t.addEventListener("load",(()=>{if(t.status<200||t.status>=300)return e.onError(pj(n,e,t));e.onSuccess(hj(t))})),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const i=e.headers||{};if(i instanceof Headers)i.forEach(((e,n)=>t.setRequestHeader(n,e)));else for(const[o,a]of Object.entries(i))(0,me.Z)(a)||t.setRequestHeader(o,String(a));return t.send(r),t},mj=["text","picture","picture-card"];let gj=1;const vj=()=>Date.now()+gj++,yj=(0,d.o8)({action:{type:String,default:"#"},headers:{type:(0,d.Cq)(Object)},method:{type:String,default:"post"},data:{type:Object,default:()=>(0,_e.N)({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},type:{type:String,default:"select"},fileList:{type:(0,d.Cq)(Array),default:()=>(0,_e.N)([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:mj,default:"text"},httpRequest:{type:(0,d.Cq)(Function),default:fj},disabled:Boolean,limit:Number}),bj=(0,d.o8)({...yj,beforeUpload:{type:(0,d.Cq)(Function),default:u.dG},beforeRemove:{type:(0,d.Cq)(Function)},onRemove:{type:(0,d.Cq)(Function),default:u.dG},onChange:{type:(0,d.Cq)(Function),default:u.dG},onPreview:{type:(0,d.Cq)(Function),default:u.dG},onSuccess:{type:(0,d.Cq)(Function),default:u.dG},onProgress:{type:(0,d.Cq)(Function),default:u.dG},onError:{type:(0,d.Cq)(Function),default:u.dG},onExceed:{type:(0,d.Cq)(Function),default:u.dG}}),wj=(0,d.o8)({files:{type:(0,d.Cq)(Array),default:()=>(0,_e.N)([])},disabled:{type:Boolean,default:!1},handlePreview:{type:(0,d.Cq)(Function),default:u.dG},listType:{type:String,values:mj,default:"text"}}),Sj={remove:e=>!!e},xj=["onKeydown"],_j=["src"],Cj=["onClick"],Ej=["onClick"],Mj=["onClick"],kj=(0,s.aZ)({name:"ElUploadList"}),Tj=(0,s.aZ)({...kj,props:wj,emits:Sj,setup(e,{emit:t}){const{t:n}=(0,xs.bU)(),r=(0,b.s3)("upload"),i=(0,b.s3)("icon"),o=(0,b.s3)("list"),a=Be(),c=(0,l.iH)(!1),d=e=>{t("remove",e)};return(e,t)=>((0,s.wg)(),(0,s.j4)(P.W3,{tag:"ul",class:(0,u.C_)([(0,l.SU)(r).b("list"),(0,l.SU)(r).bm("list",e.listType),(0,l.SU)(r).is("disabled",(0,l.SU)(a))]),name:(0,l.SU)(o).b()},{default:(0,s.w5)((()=>[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.files,(o=>((0,s.wg)(),(0,s.iD)("li",{key:o.uid||o.name,class:(0,u.C_)([(0,l.SU)(r).be("list","item"),(0,l.SU)(r).is(o.status),{focusing:c.value}]),tabindex:"0",onKeydown:(0,P.D2)((e=>!(0,l.SU)(a)&&d(o)),["delete"]),onFocus:t[0]||(t[0]=e=>c.value=!0),onBlur:t[1]||(t[1]=e=>c.value=!1),onClick:t[2]||(t[2]=e=>c.value=!1)},[(0,s.WI)(e.$slots,"default",{file:o},(()=>["picture"===e.listType||"uploading"!==o.status&&"picture-card"===e.listType?((0,s.wg)(),(0,s.iD)("img",{key:0,class:(0,u.C_)((0,l.SU)(r).be("list","item-thumbnail")),src:o.url,alt:""},null,10,_j)):(0,s.kq)("v-if",!0),"uploading"===o.status||"picture-card"!==e.listType?((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,u.C_)((0,l.SU)(r).be("list","item-info"))},[(0,s._)("a",{class:(0,u.C_)((0,l.SU)(r).be("list","item-name")),onClick:(0,P.iM)((t=>e.handlePreview(o)),["prevent"])},[(0,s.Wm)((0,l.SU)(L.gn),{class:(0,u.C_)((0,l.SU)(i).m("document"))},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.BBB))])),_:1},8,["class"]),(0,s._)("span",{class:(0,u.C_)((0,l.SU)(r).be("list","item-file-name"))},(0,u.zw)(o.name),3)],10,Cj),"uploading"===o.status?((0,s.wg)(),(0,s.j4)((0,l.SU)(RT),{key:0,type:"picture-card"===e.listType?"circle":"line","stroke-width":"picture-card"===e.listType?6:2,percentage:Number(o.percentage),style:(0,u.j5)("picture-card"===e.listType?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):(0,s.kq)("v-if",!0)],2)):(0,s.kq)("v-if",!0),(0,s._)("label",{class:(0,u.C_)((0,l.SU)(r).be("list","item-status-label"))},["text"===e.listType?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:0,class:(0,u.C_)([(0,l.SU)(i).m("upload-success"),(0,l.SU)(i).m("circle-check")])},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.yGk))])),_:1},8,["class"])):["picture-card","picture"].includes(e.listType)?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:1,class:(0,u.C_)([(0,l.SU)(i).m("upload-success"),(0,l.SU)(i).m("check")])},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.JrY))])),_:1},8,["class"])):(0,s.kq)("v-if",!0)],2),(0,l.SU)(a)?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:2,class:(0,u.C_)((0,l.SU)(i).m("close")),onClick:e=>d(o)},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.x8P))])),_:2},1032,["class","onClick"])),(0,s.kq)(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),(0,s.kq)(" This is a bug which needs to be fixed "),(0,s.kq)(" TODO: Fix the incorrect navigation interaction "),(0,l.SU)(a)?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)("i",{key:3,class:(0,u.C_)((0,l.SU)(i).m("close-tip"))},(0,u.zw)((0,l.SU)(n)("el.upload.deleteTip")),3)),"picture-card"===e.listType?((0,s.wg)(),(0,s.iD)("span",{key:4,class:(0,u.C_)((0,l.SU)(r).be("list","item-actions"))},[(0,s._)("span",{class:(0,u.C_)((0,l.SU)(r).be("list","item-preview")),onClick:t=>e.handlePreview(o)},[(0,s.Wm)((0,l.SU)(L.gn),{class:(0,u.C_)((0,l.SU)(i).m("zoom-in"))},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.DYM))])),_:1},8,["class"])],10,Ej),(0,l.SU)(a)?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)("span",{key:0,class:(0,u.C_)((0,l.SU)(r).be("list","item-delete")),onClick:e=>d(o)},[(0,s.Wm)((0,l.SU)(L.gn),{class:(0,u.C_)((0,l.SU)(i).m("delete"))},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(fe.HG3))])),_:1},8,["class"])],10,Mj))],2)):(0,s.kq)("v-if",!0)]))],42,xj)))),128)),(0,s.WI)(e.$slots,"append")])),_:3},8,["class","name"]))}});var Aj=(0,y.Z)(Tj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const Uj=(0,d.o8)({disabled:{type:Boolean,default:!1}}),Ij={file:e=>(0,u.kJ)(e)},Dj=["onDrop","onDragover"],Oj="ElUploadDrag",Pj=(0,s.aZ)({name:Oj}),Lj=(0,s.aZ)({...Pj,props:Uj,emits:Ij,setup(e,{emit:t}){const n=(0,s.f3)(uj);n||(0,S._)(Oj,"usage: ");const r=(0,b.s3)("upload"),i=(0,l.iH)(!1),o=Be(),a=e=>{if(o.value)return;i.value=!1,e.stopPropagation();const r=Array.from(e.dataTransfer.files),a=n.accept.value;if(!a)return void t("file",r);const s=r.filter((e=>{const{type:t,name:n}=e,r=n.includes(".")?`.${n.split(".").pop()}`:"",i=t.replace(/\/.*$/,"");return a.split(",").map((e=>e.trim())).filter((e=>e)).some((e=>e.startsWith(".")?r===e:/\/\*$/.test(e)?i===e.replace(/\/\*$/,""):!!/^[^/]+\/[^/]+$/.test(e)&&t===e))}));t("file",s)},c=()=>{o.value||(i.value=!0)};return(e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)([(0,l.SU)(r).b("dragger"),(0,l.SU)(r).is("dragover",i.value)]),onDrop:(0,P.iM)(a,["prevent"]),onDragover:(0,P.iM)(c,["prevent"]),onDragleave:t[0]||(t[0]=(0,P.iM)((e=>i.value=!1),["prevent"]))},[(0,s.WI)(e.$slots,"default")],42,Dj))}});var Rj=(0,y.Z)(Lj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const Nj=(0,d.o8)({...yj,beforeUpload:{type:(0,d.Cq)(Function),default:u.dG},onRemove:{type:(0,d.Cq)(Function),default:u.dG},onStart:{type:(0,d.Cq)(Function),default:u.dG},onSuccess:{type:(0,d.Cq)(Function),default:u.dG},onProgress:{type:(0,d.Cq)(Function),default:u.dG},onError:{type:(0,d.Cq)(Function),default:u.dG},onExceed:{type:(0,d.Cq)(Function),default:u.dG}}),Fj=["onKeydown"],zj=["name","multiple","accept"],Bj=(0,s.aZ)({name:"ElUploadContent",inheritAttrs:!1}),Hj=(0,s.aZ)({...Bj,props:Nj,setup(e,{expose:t}){const n=e,r=(0,b.s3)("upload"),i=Be(),o=(0,l.XI)({}),a=(0,l.XI)(),c=e=>{if(0===e.length)return;const{autoUpload:t,limit:r,fileList:i,multiple:o,onStart:a,onExceed:s}=n;if(r&&i.length+e.length>r)s(e,i);else{o||(e=e.slice(0,1));for(const n of e){const e=n;e.uid=vj(),a(e),t&&d(e)}}},d=async e=>{if(a.value.value="",!n.beforeUpload)return p(e);let t,r={};try{const i=n.data,o=n.beforeUpload(e);r=(0,u.Kn)(n.data)?Eh(n.data):n.data,t=await o,(0,u.Kn)(n.data)&&Mf(i,r)&&(r=Eh(n.data))}catch(hz){t=!1}if(!1===t)return void n.onRemove(e);let i=e;t instanceof Blob&&(i=t instanceof File?t:new File([t],e.name,{type:e.type})),p(Object.assign(i,{uid:e.uid}),r)},p=(e,t)=>{const{headers:r,data:i,method:a,withCredentials:s,name:l,action:u,onProgress:c,onSuccess:d,onError:p,httpRequest:h}=n,{uid:f}=e,m={headers:r||{},withCredentials:s,file:e,data:null!=t?t:i,method:a,filename:l,action:u,onProgress:t=>{c(t,e)},onSuccess:t=>{d(t,e),delete o.value[f]},onError:t=>{p(t,e),delete o.value[f]}},g=h(m);o.value[f]=g,g instanceof Promise&&g.then(m.onSuccess,m.onError)},h=e=>{const t=e.target.files;t&&c(Array.from(t))},f=()=>{i.value||(a.value.value="",a.value.click())},m=()=>{f()},g=e=>{const t=(0,R.vu)(o.value).filter(e?([t])=>String(e.uid)===t:()=>!0);t.forEach((([e,t])=>{t instanceof XMLHttpRequest&&t.abort(),delete o.value[e]}))};return t({abort:g,upload:d}),(e,t)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,u.C_)([(0,l.SU)(r).b(),(0,l.SU)(r).m(e.listType),(0,l.SU)(r).is("drag",e.drag)]),tabindex:"0",onClick:f,onKeydown:(0,P.D2)((0,P.iM)(m,["self"]),["enter","space"])},[e.drag?((0,s.wg)(),(0,s.j4)(Rj,{key:0,disabled:(0,l.SU)(i),onFile:c},{default:(0,s.w5)((()=>[(0,s.WI)(e.$slots,"default")])),_:3},8,["disabled"])):(0,s.WI)(e.$slots,"default",{key:1}),(0,s._)("input",{ref_key:"inputRef",ref:a,class:(0,u.C_)((0,l.SU)(r).e("input")),name:e.name,multiple:e.multiple,accept:e.accept,type:"file",onChange:h,onClick:t[0]||(t[0]=(0,P.iM)((()=>{}),["stop"]))},null,42,zj)],42,Fj))}});var jj=(0,y.Z)(Hj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]),Vj=n(5941);const Wj="ElUpload",$j=e=>{var t;(null==(t=e.url)?void 0:t.startsWith("blob:"))&&URL.revokeObjectURL(e.url)},qj=(e,t)=>{const n=(0,c.NCN)(e,"fileList",void 0,{passive:!0}),r=e=>n.value.find((t=>t.uid===e.uid));function i(e){var n;null==(n=t.value)||n.abort(e)}function o(e=["ready","uploading","success","fail"]){n.value=n.value.filter((t=>!e.includes(t.status)))}const a=(t,i)=>{const o=r(i);o&&(Vj.error(t),o.status="fail",n.value.splice(n.value.indexOf(o),1),e.onError(t,o,n.value),e.onChange(o,n.value))},l=(t,i)=>{const o=r(i);o&&(e.onProgress(t,o,n.value),o.status="uploading",o.percentage=Math.round(t.percent))},u=(t,i)=>{const o=r(i);o&&(o.status="success",o.response=t,e.onSuccess(t,o,n.value),e.onChange(o,n.value))},d=t=>{(0,me.Z)(t.uid)&&(t.uid=vj());const r={name:t.name,percentage:0,status:"ready",size:t.size,raw:t,uid:t.uid};if("picture-card"===e.listType||"picture"===e.listType)try{r.url=URL.createObjectURL(t)}catch(i){(0,S.N)(Wj,i.message),e.onError(i,r,n.value)}n.value=[...n.value,r],e.onChange(r,n.value)},p=async t=>{const o=t instanceof File?r(t):t;o||(0,S._)(Wj,"file to be removed not found");const a=t=>{i(t);const r=n.value;r.splice(r.indexOf(t),1),e.onRemove(t,r),$j(t)};if(e.beforeRemove){const t=await e.beforeRemove(o,n.value);!1!==t&&a(o)}else a(o)};function h(){n.value.filter((({status:e})=>"ready"===e)).forEach((({raw:e})=>{var n;return e&&(null==(n=t.value)?void 0:n.upload(e))}))}return(0,s.YP)((()=>e.listType),(t=>{"picture-card"!==t&&"picture"!==t||(n.value=n.value.map((t=>{const{raw:r,url:i}=t;if(!i&&r)try{t.url=URL.createObjectURL(r)}catch(o){e.onError(o,t,n.value)}return t})))})),(0,s.YP)(n,(e=>{for(const t of e)t.uid||(t.uid=vj()),t.status||(t.status="success")}),{immediate:!0,deep:!0}),{uploadFiles:n,abort:i,clearFiles:o,handleError:a,handleProgress:l,handleStart:d,handleSuccess:u,handleRemove:p,submit:h}},Gj=(0,s.aZ)({name:"ElUpload"}),Zj=(0,s.aZ)({...Gj,props:bj,setup(e,{expose:t}){const n=e,r=(0,s.Rr)(),i=Be(),o=(0,l.XI)(),{abort:a,submit:u,clearFiles:c,uploadFiles:d,handleStart:p,handleError:h,handleRemove:f,handleSuccess:m,handleProgress:g}=qj(n,o),v=(0,s.Fl)((()=>"picture-card"===n.listType)),y=(0,s.Fl)((()=>({...n,fileList:d.value,onStart:p,onProgress:g,onSuccess:m,onError:h,onRemove:f})));return(0,s.Jd)((()=>{d.value.forEach((({url:e})=>{(null==e?void 0:e.startsWith("blob:"))&&URL.revokeObjectURL(e)}))})),(0,s.JJ)(uj,{accept:(0,l.Vh)(n,"accept")}),t({abort:a,submit:u,clearFiles:c,handleStart:p,handleRemove:f}),(e,t)=>((0,s.wg)(),(0,s.iD)("div",null,[(0,l.SU)(v)&&e.showFileList?((0,s.wg)(),(0,s.j4)(Aj,{key:0,disabled:(0,l.SU)(i),"list-type":e.listType,files:(0,l.SU)(d),"handle-preview":e.onPreview,onRemove:(0,l.SU)(f)},(0,s.Nv)({append:(0,s.w5)((()=>[(0,s.Wm)(jj,(0,s.dG)({ref_key:"uploadRef",ref:o},(0,l.SU)(y)),{default:(0,s.w5)((()=>[(0,l.SU)(r).trigger?(0,s.WI)(e.$slots,"trigger",{key:0}):(0,s.kq)("v-if",!0),!(0,l.SU)(r).trigger&&(0,l.SU)(r).default?(0,s.WI)(e.$slots,"default",{key:1}):(0,s.kq)("v-if",!0)])),_:3},16)])),_:2},[e.$slots.file?{name:"default",fn:(0,s.w5)((({file:t})=>[(0,s.WI)(e.$slots,"file",{file:t})]))}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):(0,s.kq)("v-if",!0),!(0,l.SU)(v)||(0,l.SU)(v)&&!e.showFileList?((0,s.wg)(),(0,s.j4)(jj,(0,s.dG)({key:1,ref_key:"uploadRef",ref:o},(0,l.SU)(y)),{default:(0,s.w5)((()=>[(0,l.SU)(r).trigger?(0,s.WI)(e.$slots,"trigger",{key:0}):(0,s.kq)("v-if",!0),!(0,l.SU)(r).trigger&&(0,l.SU)(r).default?(0,s.WI)(e.$slots,"default",{key:1}):(0,s.kq)("v-if",!0)])),_:3},16)):(0,s.kq)("v-if",!0),e.$slots.trigger?(0,s.WI)(e.$slots,"default",{key:2}):(0,s.kq)("v-if",!0),(0,s.WI)(e.$slots,"tip"),!(0,l.SU)(v)&&e.showFileList?((0,s.wg)(),(0,s.j4)(Aj,{key:3,disabled:(0,l.SU)(i),"list-type":e.listType,files:(0,l.SU)(d),"handle-preview":e.onPreview,onRemove:(0,l.SU)(f)},(0,s.Nv)({_:2},[e.$slots.file?{name:"default",fn:(0,s.w5)((({file:t})=>[(0,s.WI)(e.$slots,"file",{file:t})]))}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):(0,s.kq)("v-if",!0)]))}});var Yj=(0,y.Z)(Zj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const Kj=(0,D.nz)(Yj);var Xj=[O,W,No,CN,$o,Qo,ea.dQ,ca,da,is,os,Hs,qs,_l,Cl,Sv,ev,kv,$m,qm,Gm,Ov,oy,ay,Yv,Jy,eb,gb,vb,yb,bb,wb,mS,TS,AS,ex,ox,mx,S_,x_,__,nC,kE,TE,L.gn,VE,LE,Ye,XE,iM,DM,OM,PM,LM,jM,uT,mT,MT,St,RT,fg,gg,mg,WT,XT,iA,ht,Uk,Ik,Dk,NU,GU,ZU,kI,PI,zI,ZI,iD,oD,vD,$L,qL,_N,$N,qN,av,XN,MF,NF,VF,WF,Mo,MB,ZB,wH,OH,lj,Kj];const Jj="ElInfiniteScroll",Qj=50,eV=200,tV=0,nV={delay:{type:Number,default:eV},distance:{type:Number,default:tV},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},rV=(e,t)=>Object.entries(nV).reduce(((n,[r,i])=>{var o,a;const{type:s,default:l}=i,u=e.getAttribute(`infinite-scroll-${r}`);let c=null!=(a=null!=(o=t[u])?o:u)?a:l;return c="false"!==c&&c,c=s(c),n[r]=Number.isNaN(c)?l:c,n}),{}),iV=e=>{const{observer:t}=e[Jj];t&&(t.disconnect(),delete e[Jj].observer)},oV=(e,t)=>{const{container:n,containerEl:r,instance:i,observer:o,lastScrollTop:a}=e[Jj],{disabled:s,distance:l}=rV(e,i),{clientHeight:u,scrollHeight:c,scrollTop:d}=r,p=d-a;if(e[Jj].lastScrollTop=d,o||s||p<0)return;let h=!1;if(n===e)h=c-(u+d)<=l;else{const{clientTop:t,scrollHeight:n}=e,i=py(e,r);h=d+u>=i+t+n-l}h&&t.call(i)};function aV(e,t){const{containerEl:n,instance:r}=e[Jj],{disabled:i}=rV(e,r);i||0===n.clientHeight||(n.scrollHeight<=n.clientHeight?t.call(r):iV(e))}const sV={async mounted(e,t){const{instance:n,value:r}=t;(0,u.mf)(r)||(0,S._)(Jj,"'v-infinite-scroll' binding value must be a function"),await(0,s.Y3)();const{delay:i,immediate:o}=rV(e,n),a=C(e,!0),l=a===window?document.documentElement:a,c=Xs(oV.bind(null,e,r),i);if(a){if(e[Jj]={instance:n,container:a,containerEl:l,delay:i,cb:r,onScroll:c,lastScrollTop:l.scrollTop},o){const t=new MutationObserver(Xs(aV.bind(null,e,r),Qj));e[Jj].observer=t,t.observe(e,{childList:!0,subtree:!0}),aV(e,r)}a.addEventListener("scroll",c)}},unmounted(e){const{container:t,onScroll:n}=e[Jj];null==t||t.removeEventListener("scroll",n),iV(e)},async updated(e){if(e[Jj]){const{containerEl:t,cb:n,observer:r}=e[Jj];t.clientHeight&&r&&aV(e,n)}else await(0,s.Y3)()}},lV=sV;lV.install=e=>{e.directive("InfiniteScroll",lV)};const uV=lV;function cV(e){let t;const n=(0,l.iH)(!1),r=(0,l.qj)({...e,originalPosition:"",originalOverflow:"",visible:!1});function i(e){r.text=e}function a(){const e=r.parent,t=f.ns;if(!e.vLoadingAddClassList){let n=e.getAttribute("loading-number");n=Number.parseInt(n)-1,n?e.setAttribute("loading-number",n.toString()):((0,w.IV)(e,t.bm("parent","relative")),e.removeAttribute("loading-number")),(0,w.IV)(e,t.bm("parent","hidden"))}u(),h.unmount()}function u(){var e,t;null==(t=null==(e=f.$el)?void 0:e.parentNode)||t.removeChild(f.$el)}function c(){var i;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=window.setTimeout(d,400),r.visible=!1,null==(i=e.closed)||i.call(e))}function d(){if(!n.value)return;const e=r.parent;n.value=!1,e.vLoadingAddClassList=void 0,a()}const p=(0,s.aZ)({name:"ElLoading",setup(e,{expose:t}){const{ns:n,zIndex:i}=(0,o.cU)("loading");return t({ns:n,zIndex:i}),()=>{const e=r.spinner||r.svg,t=(0,s.h)("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...e?{innerHTML:e}:{}},[(0,s.h)("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),i=r.text?(0,s.h)("p",{class:n.b("text")},[r.text]):void 0;return(0,s.h)(P.uT,{name:n.b("fade"),onAfterLeave:d},{default:(0,s.w5)((()=>[(0,s.wy)((0,s.Wm)("div",{style:{backgroundColor:r.background||""},class:[n.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[(0,s.h)("div",{class:n.b("spinner")},[t,i])]),[[P.F8,r.visible]])]))})}}}),h=(0,P.ri)(p),f=h.mount(document.createElement("div"));return{...(0,l.BK)(r),setText:i,removeElLoadingChild:u,close:c,handleAfterLeave:d,vm:f,get $el(){return f.$el}}}let dV;const pV=function(e={}){if(!x.C5)return;const t=hV(e);if(t.fullscreen&&dV)return dV;const n=cV({...t,closed:()=>{var e;null==(e=t.closed)||e.call(t),t.fullscreen&&(dV=void 0)}});fV(t,t.parent,n),mV(t,t.parent,n),t.parent.vLoadingAddClassList=()=>mV(t,t.parent,n);let r=t.parent.getAttribute("loading-number");return r=r?`${Number.parseInt(r)+1}`:"1",t.parent.setAttribute("loading-number",r),t.parent.appendChild(n.$el),(0,s.Y3)((()=>n.visible.value=t.visible)),t.fullscreen&&(dV=n),n},hV=e=>{var t,n,r,i;let o;return o=(0,u.HD)(e.target)?null!=(t=document.querySelector(e.target))?t:document.body:e.target||document.body,{parent:o===document.body||e.body?document.body:o,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:o===document.body&&(null==(n=e.fullscreen)||n),lock:null!=(r=e.lock)&&r,customClass:e.customClass||"",visible:null==(i=e.visible)||i,target:o}},fV=async(e,t,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,i={};if(e.fullscreen)n.originalPosition.value=(0,w.C2)(document.body,"position"),n.originalOverflow.value=(0,w.C2)(document.body,"overflow"),i.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=(0,w.C2)(document.body,"position"),await(0,s.Y3)();for(const t of["top","left"]){const n="top"===t?"scrollTop":"scrollLeft";i[t]=e.target.getBoundingClientRect()[t]+document.body[n]+document.documentElement[n]-Number.parseInt((0,w.C2)(document.body,`margin-${t}`),10)+"px"}for(const t of["height","width"])i[t]=`${e.target.getBoundingClientRect()[t]}px`}else n.originalPosition.value=(0,w.C2)(t,"position");for(const[o,a]of Object.entries(i))n.$el.style[o]=a},mV=(e,t,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?(0,w.IV)(t,r.bm("parent","relative")):(0,w.cn)(t,r.bm("parent","relative")),e.fullscreen&&e.lock?(0,w.cn)(t,r.bm("parent","hidden")):(0,w.IV)(t,r.bm("parent","hidden"))},gV=Symbol("ElLoading"),vV=(e,t)=>{var n,r,i,o;const a=t.instance,s=e=>(0,u.Kn)(t.value)?t.value[e]:void 0,c=e=>{const t=(0,u.HD)(e)&&(null==a?void 0:a[e])||e;return t?(0,l.iH)(t):t},d=t=>c(s(t)||e.getAttribute(`element-loading-${(0,u.rs)(t)}`)),p=null!=(n=s("fullscreen"))?n:t.modifiers.fullscreen,h={text:d("text"),svg:d("svg"),svgViewBox:d("svgViewBox"),spinner:d("spinner"),background:d("background"),customClass:d("customClass"),fullscreen:p,target:null!=(r=s("target"))?r:p?void 0:e,body:null!=(i=s("body"))?i:t.modifiers.body,lock:null!=(o=s("lock"))?o:t.modifiers.lock};e[gV]={options:h,instance:pV(h)}},yV=(e,t)=>{for(const n of Object.keys(t))(0,l.dq)(t[n])&&(t[n].value=e[n])},bV={mounted(e,t){t.value&&vV(e,t)},updated(e,t){const n=e[gV];t.oldValue!==t.value&&(t.value&&!t.oldValue?vV(e,t):t.value&&t.oldValue?(0,u.Kn)(t.value)&&yV(t.value,n.options):null==n||n.instance.close())},unmounted(e){var t;null==(t=e[gV])||t.instance.close()}},wV={install(e){e.directive("loading",bV),e.config.globalProperties.$loading=pV},directive:bV,service:pV};var SV=n(7178);const xV="_trap-focus-children",_V=[],CV=e=>{if(0===_V.length)return;const t=_V[_V.length-1][xV];if(t.length>0&&e.code===Fr.EVENT_CODE.tab){if(1===t.length)return e.preventDefault(),void(document.activeElement!==t[0]&&t[0].focus());const n=e.shiftKey,r=e.target===t[0],i=e.target===t[t.length-1];r&&n&&(e.preventDefault(),t[t.length-1].focus()),i&&!n&&(e.preventDefault(),t[0].focus())}},EV={beforeMount(e){e[xV]=zg(e),_V.push(e),_V.length<=1&&document.addEventListener("keydown",CV)},updated(e){(0,s.Y3)((()=>{e[xV]=zg(e)}))},unmounted(){_V.shift(),0===_V.length&&document.removeEventListener("keydown",CV)}},MV=(0,s.aZ)({name:"ElMessageBox",directives:{TrapFocus:EV},components:{ElButton:is,ElFocusTrap:co,ElInput:Ye,ElOverlay:LS,ElIcon:L.gn,...N.TypeComponents},inheritAttrs:!1,props:{buttonSize:{type:String,validator:yk},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:r,ns:i,size:a}=(0,o.cU)("message-box",(0,s.Fl)((()=>e.buttonSize))),{t:u}=n,{nextZIndex:c}=r,d=(0,l.iH)(!1),p=(0,l.qj)({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:c()}),h=(0,s.Fl)((()=>{const e=p.type;return{[i.bm("icon",e)]:e&&N.Rp[e]}})),f=Le(),m=Le(),g=(0,s.Fl)((()=>p.icon||N.Rp[p.type]||"")),v=(0,s.Fl)((()=>!!p.message)),y=(0,l.iH)(),b=(0,l.iH)(),w=(0,l.iH)(),S=(0,l.iH)(),x=(0,l.iH)(),_=(0,s.Fl)((()=>p.confirmButtonClass));(0,s.YP)((()=>p.inputValue),(async t=>{await(0,s.Y3)(),"prompt"===e.boxType&&null!==t&&U()}),{immediate:!0}),(0,s.YP)((()=>d.value),(t=>{var n,r;t&&("prompt"!==e.boxType&&(p.autofocus?w.value=null!=(r=null==(n=x.value)?void 0:n.$el)?r:y.value:w.value=y.value),p.zIndex=c()),"prompt"===e.boxType&&(t?(0,s.Y3)().then((()=>{var e;S.value&&S.value.$el&&(p.autofocus?w.value=null!=(e=I())?e:y.value:w.value=y.value)})):(p.editorErrorMessage="",p.validateError=!1))}));const C=(0,s.Fl)((()=>e.draggable));function E(){d.value&&(d.value=!1,(0,s.Y3)((()=>{p.action&&t("action",p.action)})))}BS(y,b,C),(0,s.bv)((async()=>{await(0,s.Y3)(),e.closeOnHashChange&&window.addEventListener("hashchange",E)})),(0,s.Jd)((()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",E)}));const M=()=>{e.closeOnClickModal&&A(p.distinguishCancelAndClose?"close":"cancel")},k=US(M),T=e=>{if("textarea"!==p.inputType)return e.preventDefault(),A("confirm")},A=t=>{var n;("prompt"!==e.boxType||"confirm"!==t||U())&&(p.action=t,p.beforeClose?null==(n=p.beforeClose)||n.call(p,t,p,E):E())},U=()=>{if("prompt"===e.boxType){const e=p.inputPattern;if(e&&!e.test(p.inputValue||""))return p.editorErrorMessage=p.inputErrorMessage||u("el.messagebox.error"),p.validateError=!0,!1;const t=p.inputValidator;if("function"===typeof t){const e=t(p.inputValue);if(!1===e)return p.editorErrorMessage=p.inputErrorMessage||u("el.messagebox.error"),p.validateError=!0,!1;if("string"===typeof e)return p.editorErrorMessage=e,p.validateError=!0,!1}}return p.editorErrorMessage="",p.validateError=!1,!0},I=()=>{const e=S.value.$refs;return e.input||e.textarea},D=()=>{A("close")},O=()=>{e.closeOnPressEscape&&D()};return e.lockScroll&&ZS(d),{...(0,l.BK)(p),ns:i,overlayEvent:k,visible:d,hasMessage:v,typeClass:h,contentId:f,inputId:m,btnSize:a,iconComponent:g,confirmButtonClasses:_,rootRef:y,focusStartRef:w,headerRef:b,inputRef:S,confirmRef:x,doClose:E,handleClose:D,onCloseRequested:O,handleWrapperClick:M,handleInputEnter:T,handleAction:A,t:u}}}),kV=["aria-label","aria-describedby"],TV=["aria-label"],AV=["id"];function UV(e,t,n,r,i,o){const a=(0,s.up)("el-icon"),l=(0,s.up)("close"),c=(0,s.up)("el-input"),d=(0,s.up)("el-button"),p=(0,s.up)("el-focus-trap"),h=(0,s.up)("el-overlay");return(0,s.wg)(),(0,s.j4)(P.uT,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=t=>e.$emit("vanish")),persisted:""},{default:(0,s.w5)((()=>[(0,s.wy)((0,s.Wm)(h,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:(0,s.w5)((()=>[(0,s._)("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:(0,u.C_)(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...t)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...t)),onMousedown:t[9]||(t[9]=(...t)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...t)),onMouseup:t[10]||(t[10]=(...t)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...t))},[(0,s.Wm)(p,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:(0,s.w5)((()=>[(0,s._)("div",{ref:"rootRef",class:(0,u.C_)([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:(0,u.j5)(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=(0,P.iM)((()=>{}),["stop"]))},[null!==e.title&&void 0!==e.title?((0,s.wg)(),(0,s.iD)("div",{key:0,ref:"headerRef",class:(0,u.C_)(e.ns.e("header"))},[(0,s._)("div",{class:(0,u.C_)(e.ns.e("title"))},[e.iconComponent&&e.center?((0,s.wg)(),(0,s.j4)(a,{key:0,class:(0,u.C_)([e.ns.e("status"),e.typeClass])},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.iconComponent)))])),_:1},8,["class"])):(0,s.kq)("v-if",!0),(0,s._)("span",null,(0,u.zw)(e.title),1)],2),e.showClose?((0,s.wg)(),(0,s.iD)("button",{key:0,type:"button",class:(0,u.C_)(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=t=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=(0,P.D2)((0,P.iM)((t=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),["prevent"]),["enter"]))},[(0,s.Wm)(a,{class:(0,u.C_)(e.ns.e("close"))},{default:(0,s.w5)((()=>[(0,s.Wm)(l)])),_:1},8,["class"])],42,TV)):(0,s.kq)("v-if",!0)],2)):(0,s.kq)("v-if",!0),(0,s._)("div",{id:e.contentId,class:(0,u.C_)(e.ns.e("content"))},[(0,s._)("div",{class:(0,u.C_)(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?((0,s.wg)(),(0,s.j4)(a,{key:0,class:(0,u.C_)([e.ns.e("status"),e.typeClass])},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)(e.iconComponent)))])),_:1},8,["class"])):(0,s.kq)("v-if",!0),e.hasMessage?((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,u.C_)(e.ns.e("message"))},[(0,s.WI)(e.$slots,"default",{},(()=>[e.dangerouslyUseHTMLString?((0,s.wg)(),(0,s.j4)((0,s.LL)(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):((0,s.wg)(),(0,s.j4)((0,s.LL)(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:(0,s.w5)((()=>[(0,s.Uk)((0,u.zw)(e.dangerouslyUseHTMLString?"":e.message),1)])),_:1},8,["for"]))]))],2)):(0,s.kq)("v-if",!0)],2),(0,s.wy)((0,s._)("div",{class:(0,u.C_)(e.ns.e("input"))},[(0,s.Wm)(c,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=t=>e.inputValue=t),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:(0,u.C_)({invalid:e.validateError}),onKeydown:(0,P.D2)(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),(0,s._)("div",{class:(0,u.C_)(e.ns.e("errormsg")),style:(0,u.j5)({visibility:e.editorErrorMessage?"visible":"hidden"})},(0,u.zw)(e.editorErrorMessage),7)],2),[[P.F8,e.showInput]])],10,AV),(0,s._)("div",{class:(0,u.C_)(e.ns.e("btns"))},[e.showCancelButton?((0,s.wg)(),(0,s.j4)(d,{key:0,loading:e.cancelButtonLoading,class:(0,u.C_)([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=t=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=(0,P.D2)((0,P.iM)((t=>e.handleAction("cancel")),["prevent"]),["enter"]))},{default:(0,s.w5)((()=>[(0,s.Uk)((0,u.zw)(e.cancelButtonText||e.t("el.messagebox.cancel")),1)])),_:1},8,["loading","class","round","size"])):(0,s.kq)("v-if",!0),(0,s.wy)((0,s.Wm)(d,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:(0,u.C_)([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=t=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=(0,P.D2)((0,P.iM)((t=>e.handleAction("confirm")),["prevent"]),["enter"]))},{default:(0,s.w5)((()=>[(0,s.Uk)((0,u.zw)(e.confirmButtonText||e.t("el.messagebox.confirm")),1)])),_:1},8,["loading","class","round","disabled","size"]),[[P.F8,e.showConfirmButton]])],2)],6)])),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,kV)])),_:3},8,["z-index","overlay-class","mask"]),[[P.F8,e.visible]])])),_:3})}var IV=(0,y.Z)(MV,[["render",UV],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const DV=new Map,OV=e=>{let t=document.body;return e.appendTo&&((0,u.HD)(e.appendTo)&&(t=document.querySelector(e.appendTo)),(0,p.kK)(e.appendTo)&&(t=e.appendTo),(0,p.kK)(t)||((0,S.N)("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body)),t},PV=(e,t,n=null)=>{const r=(0,s.Wm)(IV,e,(0,u.mf)(e.message)||(0,s.lA)(e.message)?{default:(0,u.mf)(e.message)?e.message:()=>e.message}:null);return r.appContext=n,(0,P.sY)(r,t),OV(e).appendChild(t.firstElementChild),r.component},LV=()=>document.createElement("div"),RV=(e,t)=>{const n=LV();e.onVanish=()=>{(0,P.sY)(null,n),DV.delete(i)},e.onAction=t=>{const n=DV.get(i);let o;o=e.showInput?{value:i.inputValue,action:t}:t,e.callback?e.callback(o,r.proxy):"cancel"===t||"close"===t?e.distinguishCancelAndClose&&"cancel"!==t?n.reject("close"):n.reject("cancel"):n.resolve(o)};const r=PV(e,n,t),i=r.proxy;for(const o in e)(0,u.RI)(e,o)&&!(0,u.RI)(i.$props,o)&&(i[o]=e[o]);return i.visible=!0,i};function NV(e,t=null){if(!x.C5)return Promise.reject();let n;return(0,u.HD)(e)||(0,s.lA)(e)?e={message:e}:n=e.callback,new Promise(((r,i)=>{const o=RV(e,null!=t?t:NV._context);DV.set(o,{options:e,callback:n,resolve:r,reject:i})}))}const FV=["alert","confirm","prompt"],zV={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};function BV(e){return(t,n,r,i)=>{let o="";return(0,u.Kn)(n)?(r=n,o=""):o=(0,p.o8)(n)?"":n,NV(Object.assign({title:o,message:t,type:"",...zV[e]},r,{boxType:e}),i)}}FV.forEach((e=>{NV[e]=BV(e)})),NV.close=()=>{DV.forEach(((e,t)=>{t.doClose()})),DV.clear()},NV._context=null;const HV=NV;HV.install=e=>{HV._context=e._context,e.config.globalProperties.$msgbox=HV,e.config.globalProperties.$messageBox=HV,e.config.globalProperties.$alert=HV.alert,e.config.globalProperties.$confirm=HV.confirm,e.config.globalProperties.$prompt=HV.prompt};const jV=HV,VV=["success","info","warning","error"],WV=(0,d.o8)({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:N.AA},id:{type:String,default:""},message:{type:(0,d.Cq)([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:(0,d.Cq)(Function),default:()=>{}},onClose:{type:(0,d.Cq)(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...VV,""],default:""},zIndex:Number}),$V={destroy:()=>!0},qV=["id"],GV=["textContent"],ZV={key:0},YV=["innerHTML"],KV=(0,s.aZ)({name:"ElNotification"}),XV=(0,s.aZ)({...KV,props:WV,emits:$V,setup(e,{expose:t}){const n=e,{ns:r,zIndex:i}=(0,o.cU)("notification"),{nextZIndex:a,currentZIndex:d}=i,{Close:p}=N.CloseComponents,h=(0,l.iH)(!1);let f;const m=(0,s.Fl)((()=>{const e=n.type;return e&&N.Rp[n.type]?r.m(e):""})),g=(0,s.Fl)((()=>n.type&&N.Rp[n.type]||n.icon)),v=(0,s.Fl)((()=>n.position.endsWith("right")?"right":"left")),y=(0,s.Fl)((()=>n.position.startsWith("top")?"top":"bottom")),b=(0,s.Fl)((()=>{var e;return{[y.value]:`${n.offset}px`,zIndex:null!=(e=n.zIndex)?e:d.value}}));function w(){n.duration>0&&({stop:f}=(0,x.eM)((()=>{h.value&&_()}),n.duration))}function S(){null==f||f()}function _(){h.value=!1}function C({code:e}){e===Fr.EVENT_CODE.delete||e===Fr.EVENT_CODE.backspace?S():e===Fr.EVENT_CODE.esc?h.value&&_():w()}return(0,s.bv)((()=>{w(),a(),h.value=!0})),(0,c.ORN)(document,"keydown",C),t({visible:h,close:_}),(e,t)=>((0,s.wg)(),(0,s.j4)(P.uT,{name:(0,l.SU)(r).b("fade"),onBeforeLeave:e.onClose,onAfterLeave:t[1]||(t[1]=t=>e.$emit("destroy")),persisted:""},{default:(0,s.w5)((()=>[(0,s.wy)((0,s._)("div",{id:e.id,class:(0,u.C_)([(0,l.SU)(r).b(),e.customClass,(0,l.SU)(v)]),style:(0,u.j5)((0,l.SU)(b)),role:"alert",onMouseenter:S,onMouseleave:w,onClick:t[0]||(t[0]=(...t)=>e.onClick&&e.onClick(...t))},[(0,l.SU)(g)?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:0,class:(0,u.C_)([(0,l.SU)(r).e("icon"),(0,l.SU)(m)])},{default:(0,s.w5)((()=>[((0,s.wg)(),(0,s.j4)((0,s.LL)((0,l.SU)(g))))])),_:1},8,["class"])):(0,s.kq)("v-if",!0),(0,s._)("div",{class:(0,u.C_)((0,l.SU)(r).e("group"))},[(0,s._)("h2",{class:(0,u.C_)((0,l.SU)(r).e("title")),textContent:(0,u.zw)(e.title)},null,10,GV),(0,s.wy)((0,s._)("div",{class:(0,u.C_)((0,l.SU)(r).e("content")),style:(0,u.j5)(e.title?void 0:{margin:0})},[(0,s.WI)(e.$slots,"default",{},(()=>[e.dangerouslyUseHTMLString?((0,s.wg)(),(0,s.iD)(s.HY,{key:1},[(0,s.kq)(" Caution here, message could've been compromised, never use user's input as message "),(0,s._)("p",{innerHTML:e.message},null,8,YV)],2112)):((0,s.wg)(),(0,s.iD)("p",ZV,(0,u.zw)(e.message),1))]))],6),[[P.F8,e.message]]),e.showClose?((0,s.wg)(),(0,s.j4)((0,l.SU)(L.gn),{key:0,class:(0,u.C_)((0,l.SU)(r).e("closeBtn")),onClick:(0,P.iM)(_,["stop"])},{default:(0,s.w5)((()=>[(0,s.Wm)((0,l.SU)(p))])),_:1},8,["class","onClick"])):(0,s.kq)("v-if",!0)],2)],46,qV),[[P.F8,h.value]])])),_:3},8,["name","onBeforeLeave"]))}});var JV=(0,y.Z)(XV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const QV={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},eW=16;let tW=1;const nW=function(e={},t=null){if(!x.C5)return{close:()=>{}};("string"===typeof e||(0,s.lA)(e))&&(e={message:e});const n=e.position||"top-right";let r=e.offset||0;QV[n].forEach((({vm:e})=>{var t;r+=((null==(t=e.el)?void 0:t.offsetHeight)||0)+eW})),r+=eW;const i="notification_"+tW++,o=e.onClose,a={...e,offset:r,id:i,onClose:()=>{rW(i,n,o)}};let l=document.body;(0,p.kK)(e.appendTo)?l=e.appendTo:(0,u.HD)(e.appendTo)&&(l=document.querySelector(e.appendTo)),(0,p.kK)(l)||((0,S.N)("ElNotification","the appendTo option is not an HTMLElement. Falling back to document.body."),l=document.body);const c=document.createElement("div"),d=(0,s.Wm)(JV,a,(0,s.lA)(a.message)?{default:()=>a.message}:null);return d.appContext=null!=t?t:nW._context,d.props.onDestroy=()=>{(0,P.sY)(null,c)},(0,P.sY)(d,c),QV[n].push({vm:d}),l.appendChild(c.firstElementChild),{close:()=>{d.component.exposed.visible.value=!1}}};function rW(e,t,n){const r=QV[t],i=r.findIndex((({vm:t})=>{var n;return(null==(n=t.component)?void 0:n.props.id)===e}));if(-1===i)return;const{vm:o}=r[i];if(!o)return;null==n||n(o);const a=o.el.offsetHeight,s=t.split("-")[0];r.splice(i,1);const l=r.length;if(!(l<1))for(let u=i;u{e.component.exposed.visible.value=!1}))}VV.forEach((e=>{nW[e]=(t={})=>(("string"===typeof t||(0,s.lA)(t))&&(t={message:t}),nW({...t,type:e}))})),nW.closeAll=iW,nW._context=null;const oW=(0,D.oN)(nW,"$notify");var aW=[uV,wV,SV.z8,jV,oW,ET],sW=a([...Xj,...aW])},2137:function(e,t,n){"use strict";n.d(t,{_N:function(){return c},bU:function(){return d}});var r=n(4870),i=n(3396),o=n(2262),a={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const s=e=>(t,n)=>l(t,n,(0,r.SU)(e)),l=(e,t,n)=>(0,o.Z)(n,e,e).replace(/\{(\w+)\}/g,((e,n)=>{var r;return`${null!=(r=null==t?void 0:t[n])?r:`{${n}}`}`})),u=e=>{const t=(0,i.Fl)((()=>(0,r.SU)(e).name)),n=(0,r.dq)(e)?e:(0,r.iH)(e);return{lang:t,locale:n,t:s(e)}},c=Symbol("localeContextKey"),d=e=>{const t=e||(0,i.f3)(c,(0,r.iH)());return u((0,i.Fl)((()=>t.value||a)))}},6734:function(e,t,n){"use strict";n.d(t,{dP:function(){return l},s3:function(){return c},tL:function(){return o},u_:function(){return u}});var r=n(3396),i=n(4870);const o="el",a="is-",s=(e,t,n,r,i)=>{let o=`${e}-${t}`;return n&&(o+=`-${n}`),r&&(o+=`__${r}`),i&&(o+=`--${i}`),o},l=Symbol("namespaceContextKey"),u=e=>{const t=e||(0,r.f3)(l,(0,i.iH)(o)),n=(0,r.Fl)((()=>(0,i.SU)(t)||o));return n},c=(e,t)=>{const n=u(t),r=(t="")=>s(n.value,e,t,"",""),i=t=>t?s(n.value,e,"",t,""):"",o=t=>t?s(n.value,e,"","",t):"",l=(t,r)=>t&&r?s(n.value,e,t,r,""):"",c=(t,r)=>t&&r?s(n.value,e,"",t,r):"",d=(t,r)=>t&&r?s(n.value,e,t,"",r):"",p=(t,r,i)=>t&&r&&i?s(n.value,e,t,r,i):"",h=(e,...t)=>{const n=!(t.length>=1)||t[0];return e&&n?`${a}${e}`:""},f=e=>{const t={};for(const r in e)e[r]&&(t[`--${n.value}-${r}`]=e[r]);return t},m=t=>{const r={};for(const i in t)t[i]&&(r[`--${n.value}-${e}-${i}`]=t[i]);return r},g=e=>`--${n.value}-${e}`,v=t=>`--${n.value}-${e}-${t}`;return{namespace:n,b:r,e:i,m:o,be:l,em:c,bm:d,bem:p,is:h,cssVar:f,cssVarName:g,cssVarBlock:m,cssVarBlockName:v}}},4689:function(e,t,n){"use strict";n.d(t,{Pp:function(){return s},fl:function(){return u},m8:function(){return l}});var r=n(3396),i=n(4870),o=n(5994),a=n(7609);const s=(0,o.l0)({type:String,values:a.k,required:!1}),l=Symbol("size"),u=()=>{const e=(0,r.f3)(l,{});return(0,r.Fl)((()=>(0,i.SU)(e.size)||""))}},7750:function(e,t,n){"use strict";n.d(t,{Cn:function(){return u},DA:function(){return s},KM:function(){return l}});var r=n(4870),i=n(3396),o=n(7354);const a=(0,r.iH)(0),s=2e3,l=Symbol("zIndexContextKey"),u=e=>{const t=e||(0,i.f3)(l,void 0),n=(0,i.Fl)((()=>{const e=(0,r.SU)(t);return(0,o.hj)(e)?e:s})),u=(0,i.Fl)((()=>n.value+a.value)),c=()=>(a.value++,u.value);return{initialZIndex:n,currentZIndex:u,nextZIndex:c}}},529:function(e,t,n){"use strict";n.d(t,{C2:function(){return p},IV:function(){return d},Nn:function(){return h},cn:function(){return c},pv:function(){return u}});var r=n(7354),i=n(4620),o=n(6413),a=n(7139);const s="utils/dom/style",l=(e="")=>e.split(" ").filter((e=>!!e.trim())),u=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},c=(e,t)=>{e&&t.trim()&&e.classList.add(...l(t))},d=(e,t)=>{e&&t.trim()&&e.classList.remove(...l(t))},p=(e,t)=>{var n;if(!o.C5||!e||!t)return"";let r=(0,a._A)(t);"float"===r&&(r="cssFloat");try{const t=e.style[r];if(t)return t;const i=null==(n=document.defaultView)?void 0:n.getComputedStyle(e,"");return i?i[r]:""}catch(i){return e.style[r]}};function h(e,t="px"){return e?(0,r.hj)(e)||(0,r.j5)(e)?`${e}${t}`:(0,a.HD)(e)?e:void(0,i.N)(s,"binding value must be a string or number"):""}},4620:function(e,t,n){"use strict";n.d(t,{N:function(){return o},_:function(){return i}});class r extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function i(e,t){throw new r(`[${e}] ${t}`)}function o(e,t){0}},984:function(e,t,n){"use strict";n.d(t,{vu:function(){return l},WJ:function(){return u},uc:function(){return s}});var r=n(2262),i=n(889);function o(e,t,n){return null==e?e:(0,i.Z)(e,t,n)}var a=o;const s=e=>Object.keys(e),l=e=>Object.entries(e),u=(e,t,n)=>({get value(){return(0,r.Z)(e,t,n)},set value(n){a(e,t,n)}})},7354:function(e,t,n){"use strict";n.d(t,{Cl:function(){return c},hj:function(){return s},j5:function(){return d},jn:function(){return a},kK:function(){return u},o8:function(){return o},xb:function(){return l}});var r=n(7139),i=n(1727);const o=e=>void 0===e,a=e=>"boolean"===typeof e,s=e=>"number"===typeof e,l=e=>!e&&0!==e||(0,r.kJ)(e)&&0===e.length||(0,r.Kn)(e)&&!Object.keys(e).length,u=e=>"undefined"!==typeof Element&&e instanceof Element,c=e=>(0,i.Z)(e),d=e=>!!(0,r.HD)(e)&&!Number.isNaN(Number(e))},3071:function(e,t,n){"use strict";n.d(t,{N:function(){return r}});const r=e=>e},2039:function(e,t,n){"use strict";n.d(t,{AA:function(){return o},CloseComponents:function(){return a},Rp:function(){return l},TypeComponents:function(){return s},rU:function(){return u}});var r=n(2748),i=n(5994);const o=(0,i.Cq)([String,Object,Function]),a={Close:r.x8P},s={Close:r.x8P,SuccessFilled:r.c5o,InfoFilled:r.cEj,WarningFilled:r.Rrw,CircleCloseFilled:r.Tw$},l={success:r.c5o,warning:r.Rrw,error:r.Tw$,info:r.cEj},u={validating:r.gbz,success:r.yGk,error:r.K41}},9015:function(e,t,n){"use strict";n.d(t,{dH:function(){return a},dp:function(){return s},nz:function(){return i},oN:function(){return o}});var r=n(7139);const i=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(null!=t?t:{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},o=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),a=(e,t)=>(e.install=n=>{n.directive(t,e)},e),s=e=>(e.install=r.dG,e)},5994:function(e,t,n){"use strict";n.d(t,{Cq:function(){return s},l0:function(){return u},o8:function(){return c}});n(7658);var r=n(3396),i=n(8149),o=n(7139);const a="__epPropKey",s=e=>e,l=e=>(0,o.Kn)(e)&&!!e[a],u=(e,t)=>{if(!(0,o.Kn)(e)||l(e))return e;const{values:n,required:i,default:s,type:u,validator:c}=e,d=n||c?i=>{let a=!1,l=[];if(n&&(l=Array.from(n),(0,o.RI)(e,"default")&&l.push(s),a||(a=l.includes(i))),c&&(a||(a=c(i))),!a&&l.length>0){const e=[...new Set(l)].map((e=>JSON.stringify(e))).join(", ");(0,r.ZK)(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${e}], got value ${JSON.stringify(i)}.`)}return a}:void 0,p={type:u,required:!!i,validator:d,[a]:!0};return(0,o.RI)(e,"default")&&(p.default=s),p},c=e=>(0,i.Z)(Object.entries(e).map((([e,t])=>[e,u(t,e)])))},3058:function(e,t,n){"use strict";function r(){this.__data__=[],this.size=0}n.d(t,{Z:function(){return b}});var i=r,o=n(202);function a(e,t){var n=e.length;while(n--)if((0,o.Z)(e[n][0],t))return n;return-1}var s=a,l=Array.prototype,u=l.splice;function c(e){var t=this.__data__,n=s(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():u.call(t,n,1),--this.size,!0}var d=c;function p(e){var t=this.__data__,n=s(t,e);return n<0?void 0:t[n][1]}var h=p;function f(e){return s(this.__data__,e)>-1}var m=f;n(7658);function g(e,t){var n=this.__data__,r=s(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var v=g;function y(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t-1&&e%1==0&&e>8&255]+Nt[e>>16&255]+Nt[e>>24&255]+"-"+Nt[255&t]+Nt[t>>8&255]+"-"+Nt[t>>16&15|64]+Nt[t>>24&255]+"-"+Nt[63&n|128]+Nt[n>>8&255]+"-"+Nt[n>>16&255]+Nt[n>>24&255]+Nt[255&r]+Nt[r>>8&255]+Nt[r>>16&255]+Nt[r>>24&255];return i.toLowerCase()}function jt(e,t,n){return Math.max(t,Math.min(n,e))}function Vt(e,t){return(e%t+t)%t}function Wt(e,t,n,r,i){return r+(e-t)*(i-r)/(n-t)}function $t(e,t,n){return e!==t?(n-e)/(t-e):0}function qt(e,t,n){return(1-n)*e+n*t}function Gt(e,t,n,r){return qt(e,t,1-Math.exp(-n*r))}function Zt(e,t=1){return t-Math.abs(Vt(e,2*t)-t)}function Yt(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t),e*e*(3-2*e))}function Kt(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t),e*e*e*(e*(6*e-15)+10))}function Xt(e,t){return e+Math.floor(Math.random()*(t-e+1))}function Jt(e,t){return e+Math.random()*(t-e)}function Qt(e){return e*(.5-Math.random())}function en(e){void 0!==e&&(Ft=e);let t=Ft+=1831565813;return t=Math.imul(t^t>>>15,1|t),t^=t+Math.imul(t^t>>>7,61|t),((t^t>>>14)>>>0)/4294967296}function tn(e){return e*zt}function nn(e){return e*Bt}function rn(e){return 0===(e&e-1)&&0!==e}function on(e){return Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))}function an(e){return Math.pow(2,Math.floor(Math.log(e)/Math.LN2))}function sn(e,t,n,i,o){const a=Math.cos,s=Math.sin,l=a(n/2),u=s(n/2),c=a((t+i)/2),d=s((t+i)/2),p=a((t-i)/2),h=s((t-i)/2),f=a((i-t)/2),m=s((i-t)/2);switch(o){case"XYX":e.set(l*d,u*p,u*h,l*c);break;case"YZY":e.set(u*h,l*d,u*p,l*c);break;case"ZXZ":e.set(u*p,u*h,l*d,l*c);break;case"XZX":e.set(l*d,u*m,u*f,l*c);break;case"YXY":e.set(u*f,l*d,u*m,l*c);break;case"ZYZ":e.set(u*m,u*f,l*d,l*c);break;default:r.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+o)}}function ln(e,t){switch(t.constructor){case Float32Array:return e;case Uint16Array:return e/65535;case Uint8Array:return e/255;case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw new Error("Invalid component type.")}}function un(e,t){switch(t.constructor){case Float32Array:return e;case Uint16Array:return Math.round(65535*e);case Uint8Array:return Math.round(255*e);case Int16Array:return Math.round(32767*e);case Int8Array:return Math.round(127*e);default:throw new Error("Invalid component type.")}}var cn=Object.freeze({__proto__:null,DEG2RAD:zt,RAD2DEG:Bt,generateUUID:Ht,clamp:jt,euclideanModulo:Vt,mapLinear:Wt,inverseLerp:$t,lerp:qt,damp:Gt,pingpong:Zt,smoothstep:Yt,smootherstep:Kt,randInt:Xt,randFloat:Jt,randFloatSpread:Qt,seededRandom:en,degToRad:tn,radToDeg:nn,isPowerOfTwo:rn,ceilPowerOfTwo:on,floorPowerOfTwo:an,setQuaternionFromProperEuler:sn,normalize:un,denormalize:ln});class dn{constructor(e=0,t=0){dn.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){const e=Math.atan2(-this.y,-this.x)+Math.PI;return e}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const n=Math.cos(t),r=Math.sin(t),i=this.x-e.x,o=this.y-e.y;return this.x=i*n-o*r+e.x,this.y=i*r+o*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class pn{constructor(){pn.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1]}set(e,t,n,r,i,o,a,s,l){const u=this.elements;return u[0]=e,u[1]=r,u[2]=a,u[3]=t,u[4]=i,u[5]=s,u[6]=n,u[7]=o,u[8]=l,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,r=t.elements,i=this.elements,o=n[0],a=n[3],s=n[6],l=n[1],u=n[4],c=n[7],d=n[2],p=n[5],h=n[8],f=r[0],m=r[3],g=r[6],v=r[1],y=r[4],b=r[7],w=r[2],S=r[5],x=r[8];return i[0]=o*f+a*v+s*w,i[3]=o*m+a*y+s*S,i[6]=o*g+a*b+s*x,i[1]=l*f+u*v+c*w,i[4]=l*m+u*y+c*S,i[7]=l*g+u*b+c*x,i[2]=d*f+p*v+h*w,i[5]=d*m+p*y+h*S,i[8]=d*g+p*b+h*x,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8];return t*o*u-t*a*l-n*i*u+n*a*s+r*i*l-r*o*s}invert(){const e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],c=u*o-a*l,d=a*s-u*i,p=l*i-o*s,h=t*c+n*d+r*p;if(0===h)return this.set(0,0,0,0,0,0,0,0,0);const f=1/h;return e[0]=c*f,e[1]=(r*l-u*n)*f,e[2]=(a*n-r*o)*f,e[3]=d*f,e[4]=(u*t-r*s)*f,e[5]=(r*i-a*t)*f,e[6]=p*f,e[7]=(n*s-l*t)*f,e[8]=(o*t-n*i)*f,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,r,i,o,a){const s=Math.cos(i),l=Math.sin(i);return this.set(n*s,n*l,-n*(s*o+l*a)+o+e,-r*l,r*s,-r*(-l*o+s*a)+a+t,0,0,1),this}scale(e,t){return this.premultiply(hn.makeScale(e,t)),this}rotate(e){return this.premultiply(hn.makeRotation(-e)),this}translate(e,t){return this.premultiply(hn.makeTranslation(e,t)),this}makeTranslation(e,t){return this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,n=e.elements;for(let r=0;r<9;r++)if(t[r]!==n[r])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return(new this.constructor).fromArray(this.elements)}}const hn=new pn;function fn(e){for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array;function mn(e){return document.createElementNS("http://www.w3.org/1999/xhtml",e)}function gn(e){return e<.04045?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}function vn(e){return e<.0031308?12.92*e:1.055*Math.pow(e,.41666)-.055}const yn={[At]:{[Ut]:gn},[Ut]:{[At]:vn}},bn={legacyMode:!0,get workingColorSpace(){return Ut},set workingColorSpace(e){r.warn("THREE.ColorManagement: .workingColorSpace is readonly.")},convert:function(e,t,n){if(this.legacyMode||t===n||!t||!n)return e;if(yn[t]&&void 0!==yn[t][n]){const r=yn[t][n];return e.r=r(e.r),e.g=r(e.g),e.b=r(e.b),e}throw new Error("Unsupported color space conversion.")},fromWorkingColorSpace:function(e,t){return this.convert(e,this.workingColorSpace,t)},toWorkingColorSpace:function(e,t){return this.convert(e,t,this.workingColorSpace)}},wn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Sn={r:0,g:0,b:0},xn={h:0,s:0,l:0},_n={h:0,s:0,l:0};function Cn(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+6*(t-e)*(2/3-n):e}function En(e,t){return t.r=e.r,t.g=e.g,t.b=e.b,t}class Mn{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,void 0===t&&void 0===n?this.set(e):this.setRGB(e,t,n)}set(e){return e&&e.isColor?this.copy(e):"number"===typeof e?this.setHex(e):"string"===typeof e&&this.setStyle(e),this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=At){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(255&e)/255,bn.toWorkingColorSpace(this,t),this}setRGB(e,t,n,r=bn.workingColorSpace){return this.r=e,this.g=t,this.b=n,bn.toWorkingColorSpace(this,r),this}setHSL(e,t,n,r=bn.workingColorSpace){if(e=Vt(e,1),t=jt(t,0,1),n=jt(n,0,1),0===t)this.r=this.g=this.b=n;else{const r=n<=.5?n*(1+t):n+t-n*t,i=2*n-r;this.r=Cn(i,r,e+1/3),this.g=Cn(i,r,e),this.b=Cn(i,r,e-1/3)}return bn.toWorkingColorSpace(this,r),this}setStyle(e,t=At){function n(t){void 0!==t&&parseFloat(t)<1&&r.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let i;if(i=/^((?:rgb|hsl)a?)\(([^\)]*)\)/.exec(e)){let e;const r=i[1],o=i[2];switch(r){case"rgb":case"rgba":if(e=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return this.r=Math.min(255,parseInt(e[1],10))/255,this.g=Math.min(255,parseInt(e[2],10))/255,this.b=Math.min(255,parseInt(e[3],10))/255,bn.toWorkingColorSpace(this,t),n(e[4]),this;if(e=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return this.r=Math.min(100,parseInt(e[1],10))/100,this.g=Math.min(100,parseInt(e[2],10))/100,this.b=Math.min(100,parseInt(e[3],10))/100,bn.toWorkingColorSpace(this,t),n(e[4]),this;break;case"hsl":case"hsla":if(e=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o)){const r=parseFloat(e[1])/360,i=parseFloat(e[2])/100,o=parseFloat(e[3])/100;return n(e[4]),this.setHSL(r,i,o,t)}break}}else if(i=/^\#([A-Fa-f\d]+)$/.exec(e)){const e=i[1],n=e.length;if(3===n)return this.r=parseInt(e.charAt(0)+e.charAt(0),16)/255,this.g=parseInt(e.charAt(1)+e.charAt(1),16)/255,this.b=parseInt(e.charAt(2)+e.charAt(2),16)/255,bn.toWorkingColorSpace(this,t),this;if(6===n)return this.r=parseInt(e.charAt(0)+e.charAt(1),16)/255,this.g=parseInt(e.charAt(2)+e.charAt(3),16)/255,this.b=parseInt(e.charAt(4)+e.charAt(5),16)/255,bn.toWorkingColorSpace(this,t),this}return e&&e.length>0?this.setColorName(e,t):this}setColorName(e,t=At){const n=wn[e.toLowerCase()];return void 0!==n?this.setHex(n,t):r.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=gn(e.r),this.g=gn(e.g),this.b=gn(e.b),this}copyLinearToSRGB(e){return this.r=vn(e.r),this.g=vn(e.g),this.b=vn(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=At){return bn.fromWorkingColorSpace(En(this,Sn),e),jt(255*Sn.r,0,255)<<16^jt(255*Sn.g,0,255)<<8^jt(255*Sn.b,0,255)<<0}getHexString(e=At){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=bn.workingColorSpace){bn.fromWorkingColorSpace(En(this,Sn),t);const n=Sn.r,r=Sn.g,i=Sn.b,o=Math.max(n,r,i),a=Math.min(n,r,i);let s,l;const u=(a+o)/2;if(a===o)s=0,l=0;else{const e=o-a;switch(l=u<=.5?e/(o+a):e/(2-o-a),o){case n:s=(r-i)/e+(r2048||t.height>2048?(r.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),t.toDataURL("image/jpeg",.6)):t.toDataURL("image/png")}static sRGBToLinear(e){if("undefined"!==typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!==typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!==typeof ImageBitmap&&e instanceof ImageBitmap){const t=mn("canvas");t.width=e.width,t.height=e.height;const n=t.getContext("2d");n.drawImage(e,0,0,e.width,e.height);const r=n.getImageData(0,0,e.width,e.height),i=r.data;for(let e=0;e0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==ne)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case le:e.x=e.x-Math.floor(e.x);break;case ue:e.x=e.x<0?0:1;break;case ce:1===Math.abs(Math.floor(e.x)%2)?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case le:e.y=e.y-Math.floor(e.y);break;case ue:e.y=e.y<0?0:1;break;case ce:1===Math.abs(Math.floor(e.y)%2)?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){!0===e&&(this.version++,this.source.needsUpdate=!0)}}Dn.DEFAULT_IMAGE=null,Dn.DEFAULT_MAPPING=ne,Dn.DEFAULT_ANISOTROPY=1;class On{constructor(e=0,t=0,n=0,r=1){On.prototype.isVector4=!0,this.x=e,this.y=t,this.z=n,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=void 0!==e.w?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,n=this.y,r=this.z,i=this.w,o=e.elements;return this.x=o[0]*t+o[4]*n+o[8]*r+o[12]*i,this.y=o[1]*t+o[5]*n+o[9]*r+o[13]*i,this.z=o[2]*t+o[6]*n+o[10]*r+o[14]*i,this.w=o[3]*t+o[7]*n+o[11]*r+o[15]*i,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,r,i;const o=.01,a=.1,s=e.elements,l=s[0],u=s[4],c=s[8],d=s[1],p=s[5],h=s[9],f=s[2],m=s[6],g=s[10];if(Math.abs(u-d)s&&e>v?ev?s=0?1:-1,r=1-t*t;if(r>Number.EPSILON){const i=Math.sqrt(r),o=Math.atan2(i,t*n);e=Math.sin(e*o)/i,a=Math.sin(a*o)/i}const i=a*n;if(s=s*e+d*i,l=l*e+p*i,u=u*e+h*i,c=c*e+f*i,e===1-a){const e=1/Math.sqrt(s*s+l*l+u*u+c*c);s*=e,l*=e,u*=e,c*=e}}e[t]=s,e[t+1]=l,e[t+2]=u,e[t+3]=c}static multiplyQuaternionsFlat(e,t,n,r,i,o){const a=n[r],s=n[r+1],l=n[r+2],u=n[r+3],c=i[o],d=i[o+1],p=i[o+2],h=i[o+3];return e[t]=a*h+u*c+s*p-l*d,e[t+1]=s*h+u*d+l*c-a*p,e[t+2]=l*h+u*p+a*d-s*c,e[t+3]=u*h-a*c-s*d-l*p,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t){const n=e._x,i=e._y,o=e._z,a=e._order,s=Math.cos,l=Math.sin,u=s(n/2),c=s(i/2),d=s(o/2),p=l(n/2),h=l(i/2),f=l(o/2);switch(a){case"XYZ":this._x=p*c*d+u*h*f,this._y=u*h*d-p*c*f,this._z=u*c*f+p*h*d,this._w=u*c*d-p*h*f;break;case"YXZ":this._x=p*c*d+u*h*f,this._y=u*h*d-p*c*f,this._z=u*c*f-p*h*d,this._w=u*c*d+p*h*f;break;case"ZXY":this._x=p*c*d-u*h*f,this._y=u*h*d+p*c*f,this._z=u*c*f+p*h*d,this._w=u*c*d-p*h*f;break;case"ZYX":this._x=p*c*d-u*h*f,this._y=u*h*d+p*c*f,this._z=u*c*f-p*h*d,this._w=u*c*d+p*h*f;break;case"YZX":this._x=p*c*d+u*h*f,this._y=u*h*d+p*c*f,this._z=u*c*f-p*h*d,this._w=u*c*d-p*h*f;break;case"XZY":this._x=p*c*d-u*h*f,this._y=u*h*d-p*c*f,this._z=u*c*f+p*h*d,this._w=u*c*d+p*h*f;break;default:r.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+a)}return!1!==t&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const n=t/2,r=Math.sin(n);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,n=t[0],r=t[4],i=t[8],o=t[1],a=t[5],s=t[9],l=t[2],u=t[6],c=t[10],d=n+a+c;if(d>0){const e=.5/Math.sqrt(d+1);this._w=.25/e,this._x=(u-s)*e,this._y=(i-l)*e,this._z=(o-r)*e}else if(n>a&&n>c){const e=2*Math.sqrt(1+n-a-c);this._w=(u-s)/e,this._x=.25*e,this._y=(r+o)/e,this._z=(i+l)/e}else if(a>c){const e=2*Math.sqrt(1+a-n-c);this._w=(i-l)/e,this._x=(r+o)/e,this._y=.25*e,this._z=(s+u)/e}else{const e=2*Math.sqrt(1+c-n-a);this._w=(o-r)/e,this._x=(i+l)/e,this._y=(s+u)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return nMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(jt(this.dot(e),-1,1)))}rotateTowards(e,t){const n=this.angleTo(e);if(0===n)return this;const r=Math.min(1,t/n);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return 0===e?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const n=e._x,r=e._y,i=e._z,o=e._w,a=t._x,s=t._y,l=t._z,u=t._w;return this._x=n*u+o*a+r*l-i*s,this._y=r*u+o*s+i*a-n*l,this._z=i*u+o*l+n*s-r*a,this._w=o*u-n*a-r*s-i*l,this._onChangeCallback(),this}slerp(e,t){if(0===t)return this;if(1===t)return this.copy(e);const n=this._x,r=this._y,i=this._z,o=this._w;let a=o*e._w+n*e._x+r*e._y+i*e._z;if(a<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,a=-a):this.copy(e),a>=1)return this._w=o,this._x=n,this._y=r,this._z=i,this;const s=1-a*a;if(s<=Number.EPSILON){const e=1-t;return this._w=e*o+t*this._w,this._x=e*n+t*this._x,this._y=e*r+t*this._y,this._z=e*i+t*this._z,this.normalize(),this._onChangeCallback(),this}const l=Math.sqrt(s),u=Math.atan2(l,a),c=Math.sin((1-t)*u)/l,d=Math.sin(t*u)/l;return this._w=o*c+this._w*d,this._x=n*c+this._x*d,this._y=r*c+this._y*d,this._z=i*c+this._z*d,this._onChangeCallback(),this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){const e=Math.random(),t=Math.sqrt(1-e),n=Math.sqrt(e),r=2*Math.PI*Math.random(),i=2*Math.PI*Math.random();return this.set(t*Math.cos(r),n*Math.sin(i),n*Math.cos(i),t*Math.sin(r))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class Fn{constructor(e=0,t=0,n=0){Fn.prototype.isVector3=!0,this.x=e,this.y=t,this.z=n}set(e,t,n){return void 0===n&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(Bn.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(Bn.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6]*r,this.y=i[1]*t+i[4]*n+i[7]*r,this.z=i[2]*t+i[5]*n+i[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,n=this.y,r=this.z,i=e.elements,o=1/(i[3]*t+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*n+i[8]*r+i[12])*o,this.y=(i[1]*t+i[5]*n+i[9]*r+i[13])*o,this.z=(i[2]*t+i[6]*n+i[10]*r+i[14])*o,this}applyQuaternion(e){const t=this.x,n=this.y,r=this.z,i=e.x,o=e.y,a=e.z,s=e.w,l=s*t+o*r-a*n,u=s*n+a*t-i*r,c=s*r+i*n-o*t,d=-i*t-o*n-a*r;return this.x=l*s+d*-i+u*-a-c*-o,this.y=u*s+d*-o+c*-i-l*-a,this.z=c*s+d*-a+l*-o-u*-i,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*n+i[8]*r,this.y=i[1]*t+i[5]*n+i[9]*r,this.z=i[2]*t+i[6]*n+i[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const n=e.x,r=e.y,i=e.z,o=t.x,a=t.y,s=t.z;return this.x=r*s-i*a,this.y=i*o-n*s,this.z=n*a-r*o,this}projectOnVector(e){const t=e.lengthSq();if(0===t)return this.set(0,0,0);const n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return zn.copy(this).projectOnVector(e),this.sub(zn)}reflect(e){return this.sub(zn.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(jt(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){const r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,4*t)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,3*t)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=2*(Math.random()-.5),t=Math.random()*Math.PI*2,n=Math.sqrt(1-e**2);return this.x=n*Math.cos(t),this.y=n*Math.sin(t),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const zn=new Fn,Bn=new Nn;class Hn{constructor(e=new Fn(1/0,1/0,1/0),t=new Fn(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){let t=1/0,n=1/0,r=1/0,i=-1/0,o=-1/0,a=-1/0;for(let s=0,l=e.length;si&&(i=l),u>o&&(o=u),c>a&&(a=c)}return this.min.set(t,n,r),this.max.set(i,o,a),this}setFromBufferAttribute(e){let t=1/0,n=1/0,r=1/0,i=-1/0,o=-1/0,a=-1/0;for(let s=0,l=e.count;si&&(i=l),u>o&&(o=u),c>a&&(a=c)}return this.min.set(t,n,r),this.max.set(i,o,a),this}setFromPoints(e){this.makeEmpty();for(let t=0,n=e.length;tthis.max.x||e.ythis.max.y||e.zthis.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y||e.max.zthis.max.z)}intersectsSphere(e){return this.clampPoint(e.center,Vn),Vn.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(Xn),Jn.subVectors(this.max,Xn),$n.subVectors(e.a,Xn),qn.subVectors(e.b,Xn),Gn.subVectors(e.c,Xn),Zn.subVectors(qn,$n),Yn.subVectors(Gn,qn),Kn.subVectors($n,Gn);let t=[0,-Zn.z,Zn.y,0,-Yn.z,Yn.y,0,-Kn.z,Kn.y,Zn.z,0,-Zn.x,Yn.z,0,-Yn.x,Kn.z,0,-Kn.x,-Zn.y,Zn.x,0,-Yn.y,Yn.x,0,-Kn.y,Kn.x,0];return!!tr(t,$n,qn,Gn,Jn)&&(t=[1,0,0,0,1,0,0,0,1],!!tr(t,$n,qn,Gn,Jn)&&(Qn.crossVectors(Zn,Yn),t=[Qn.x,Qn.y,Qn.z],tr(t,$n,qn,Gn,Jn)))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){const t=Vn.copy(e).clamp(this.min,this.max);return t.sub(e).length()}getBoundingSphere(e){return this.getCenter(e.center),e.radius=.5*this.getSize(Vn).length(),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()||(jn[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),jn[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),jn[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),jn[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),jn[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),jn[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),jn[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),jn[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(jn)),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const jn=[new Fn,new Fn,new Fn,new Fn,new Fn,new Fn,new Fn,new Fn],Vn=new Fn,Wn=new Hn,$n=new Fn,qn=new Fn,Gn=new Fn,Zn=new Fn,Yn=new Fn,Kn=new Fn,Xn=new Fn,Jn=new Fn,Qn=new Fn,er=new Fn;function tr(e,t,n,r,i){for(let o=0,a=e.length-3;o<=a;o+=3){er.fromArray(e,o);const a=i.x*Math.abs(er.x)+i.y*Math.abs(er.y)+i.z*Math.abs(er.z),s=t.dot(er),l=n.dot(er),u=r.dot(er);if(Math.max(-Math.max(s,l,u),Math.min(s,l,u))>a)return!1}return!0}const nr=new Hn,rr=new Fn,ir=new Fn;class or{constructor(e=new Fn,t=-1){this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const n=this.center;void 0!==t?n.copy(t):nr.setFromPoints(e).getCenter(n);let r=0;for(let i=0,o=e.length;ithis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;rr.subVectors(e,this.center);const t=rr.lengthSq();if(t>this.radius*this.radius){const e=Math.sqrt(t),n=.5*(e-this.radius);this.center.addScaledVector(rr,n/e),this.radius+=n}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(!0===this.center.equals(e.center)?this.radius=Math.max(this.radius,e.radius):(ir.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(rr.copy(e.center).add(ir)),this.expandByPoint(rr.copy(e.center).sub(ir))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return(new this.constructor).copy(this)}}const ar=new Fn,sr=new Fn,lr=new Fn,ur=new Fn,cr=new Fn,dr=new Fn,pr=new Fn;class hr{constructor(e=new Fn,t=new Fn(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.direction).multiplyScalar(e).add(this.origin)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,ar)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.direction).multiplyScalar(n).add(this.origin)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=ar.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(ar.copy(this.direction).multiplyScalar(t).add(this.origin),ar.distanceToSquared(e))}distanceSqToSegment(e,t,n,r){sr.copy(e).add(t).multiplyScalar(.5),lr.copy(t).sub(e).normalize(),ur.copy(this.origin).sub(sr);const i=.5*e.distanceTo(t),o=-this.direction.dot(lr),a=ur.dot(this.direction),s=-ur.dot(lr),l=ur.lengthSq(),u=Math.abs(1-o*o);let c,d,p,h;if(u>0)if(c=o*s-a,d=o*a-s,h=i*u,c>=0)if(d>=-h)if(d<=h){const e=1/u;c*=e,d*=e,p=c*(c+o*d+2*a)+d*(o*c+d+2*s)+l}else d=i,c=Math.max(0,-(o*d+a)),p=-c*c+d*(d+2*s)+l;else d=-i,c=Math.max(0,-(o*d+a)),p=-c*c+d*(d+2*s)+l;else d<=-h?(c=Math.max(0,-(-o*i+a)),d=c>0?-i:Math.min(Math.max(-i,-s),i),p=-c*c+d*(d+2*s)+l):d<=h?(c=0,d=Math.min(Math.max(-i,-s),i),p=d*(d+2*s)+l):(c=Math.max(0,-(o*i+a)),d=c>0?i:Math.min(Math.max(-i,-s),i),p=-c*c+d*(d+2*s)+l);else d=o>0?-i:i,c=Math.max(0,-(o*d+a)),p=-c*c+d*(d+2*s)+l;return n&&n.copy(this.direction).multiplyScalar(c).add(this.origin),r&&r.copy(lr).multiplyScalar(d).add(sr),p}intersectSphere(e,t){ar.subVectors(e.center,this.origin);const n=ar.dot(this.direction),r=ar.dot(ar)-n*n,i=e.radius*e.radius;if(r>i)return null;const o=Math.sqrt(i-r),a=n-o,s=n+o;return a<0&&s<0?null:a<0?this.at(s,t):this.at(a,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(0===t)return 0===e.distanceToPoint(this.origin)?0:null;const n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){const n=this.distanceToPlane(e);return null===n?null:this.at(n,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);if(0===t)return!0;const n=e.normal.dot(this.direction);return n*t<0}intersectBox(e,t){let n,r,i,o,a,s;const l=1/this.direction.x,u=1/this.direction.y,c=1/this.direction.z,d=this.origin;return l>=0?(n=(e.min.x-d.x)*l,r=(e.max.x-d.x)*l):(n=(e.max.x-d.x)*l,r=(e.min.x-d.x)*l),u>=0?(i=(e.min.y-d.y)*u,o=(e.max.y-d.y)*u):(i=(e.max.y-d.y)*u,o=(e.min.y-d.y)*u),n>o||i>r?null:((i>n||isNaN(n))&&(n=i),(o=0?(a=(e.min.z-d.z)*c,s=(e.max.z-d.z)*c):(a=(e.max.z-d.z)*c,s=(e.min.z-d.z)*c),n>s||a>r?null:((a>n||n!==n)&&(n=a),(s=0?n:r,t)))}intersectsBox(e){return null!==this.intersectBox(e,ar)}intersectTriangle(e,t,n,r,i){cr.subVectors(t,e),dr.subVectors(n,e),pr.crossVectors(cr,dr);let o,a=this.direction.dot(pr);if(a>0){if(r)return null;o=1}else{if(!(a<0))return null;o=-1,a=-a}ur.subVectors(this.origin,e);const s=o*this.direction.dot(dr.crossVectors(ur,dr));if(s<0)return null;const l=o*this.direction.dot(cr.cross(ur));if(l<0)return null;if(s+l>a)return null;const u=-o*ur.dot(pr);return u<0?null:this.at(u/a,i)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return(new this.constructor).copy(this)}}class fr{constructor(){fr.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}set(e,t,n,r,i,o,a,s,l,u,c,d,p,h,f,m){const g=this.elements;return g[0]=e,g[4]=t,g[8]=n,g[12]=r,g[1]=i,g[5]=o,g[9]=a,g[13]=s,g[2]=l,g[6]=u,g[10]=c,g[14]=d,g[3]=p,g[7]=h,g[11]=f,g[15]=m,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return(new fr).fromArray(this.elements)}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}copyPosition(e){const t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,n=e.elements,r=1/mr.setFromMatrixColumn(e,0).length(),i=1/mr.setFromMatrixColumn(e,1).length(),o=1/mr.setFromMatrixColumn(e,2).length();return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=0,t[4]=n[4]*i,t[5]=n[5]*i,t[6]=n[6]*i,t[7]=0,t[8]=n[8]*o,t[9]=n[9]*o,t[10]=n[10]*o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,n=e.x,r=e.y,i=e.z,o=Math.cos(n),a=Math.sin(n),s=Math.cos(r),l=Math.sin(r),u=Math.cos(i),c=Math.sin(i);if("XYZ"===e.order){const e=o*u,n=o*c,r=a*u,i=a*c;t[0]=s*u,t[4]=-s*c,t[8]=l,t[1]=n+r*l,t[5]=e-i*l,t[9]=-a*s,t[2]=i-e*l,t[6]=r+n*l,t[10]=o*s}else if("YXZ"===e.order){const e=s*u,n=s*c,r=l*u,i=l*c;t[0]=e+i*a,t[4]=r*a-n,t[8]=o*l,t[1]=o*c,t[5]=o*u,t[9]=-a,t[2]=n*a-r,t[6]=i+e*a,t[10]=o*s}else if("ZXY"===e.order){const e=s*u,n=s*c,r=l*u,i=l*c;t[0]=e-i*a,t[4]=-o*c,t[8]=r+n*a,t[1]=n+r*a,t[5]=o*u,t[9]=i-e*a,t[2]=-o*l,t[6]=a,t[10]=o*s}else if("ZYX"===e.order){const e=o*u,n=o*c,r=a*u,i=a*c;t[0]=s*u,t[4]=r*l-n,t[8]=e*l+i,t[1]=s*c,t[5]=i*l+e,t[9]=n*l-r,t[2]=-l,t[6]=a*s,t[10]=o*s}else if("YZX"===e.order){const e=o*s,n=o*l,r=a*s,i=a*l;t[0]=s*u,t[4]=i-e*c,t[8]=r*c+n,t[1]=c,t[5]=o*u,t[9]=-a*u,t[2]=-l*u,t[6]=n*c+r,t[10]=e-i*c}else if("XZY"===e.order){const e=o*s,n=o*l,r=a*s,i=a*l;t[0]=s*u,t[4]=-c,t[8]=l*u,t[1]=e*c+i,t[5]=o*u,t[9]=n*c-r,t[2]=r*c-n,t[6]=a*u,t[10]=i*c+e}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(vr,e,yr)}lookAt(e,t,n){const r=this.elements;return Sr.subVectors(e,t),0===Sr.lengthSq()&&(Sr.z=1),Sr.normalize(),br.crossVectors(n,Sr),0===br.lengthSq()&&(1===Math.abs(n.z)?Sr.x+=1e-4:Sr.z+=1e-4,Sr.normalize(),br.crossVectors(n,Sr)),br.normalize(),wr.crossVectors(Sr,br),r[0]=br.x,r[4]=wr.x,r[8]=Sr.x,r[1]=br.y,r[5]=wr.y,r[9]=Sr.y,r[2]=br.z,r[6]=wr.z,r[10]=Sr.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,r=t.elements,i=this.elements,o=n[0],a=n[4],s=n[8],l=n[12],u=n[1],c=n[5],d=n[9],p=n[13],h=n[2],f=n[6],m=n[10],g=n[14],v=n[3],y=n[7],b=n[11],w=n[15],S=r[0],x=r[4],_=r[8],C=r[12],E=r[1],M=r[5],k=r[9],T=r[13],A=r[2],U=r[6],I=r[10],D=r[14],O=r[3],P=r[7],L=r[11],R=r[15];return i[0]=o*S+a*E+s*A+l*O,i[4]=o*x+a*M+s*U+l*P,i[8]=o*_+a*k+s*I+l*L,i[12]=o*C+a*T+s*D+l*R,i[1]=u*S+c*E+d*A+p*O,i[5]=u*x+c*M+d*U+p*P,i[9]=u*_+c*k+d*I+p*L,i[13]=u*C+c*T+d*D+p*R,i[2]=h*S+f*E+m*A+g*O,i[6]=h*x+f*M+m*U+g*P,i[10]=h*_+f*k+m*I+g*L,i[14]=h*C+f*T+m*D+g*R,i[3]=v*S+y*E+b*A+w*O,i[7]=v*x+y*M+b*U+w*P,i[11]=v*_+y*k+b*I+w*L,i[15]=v*C+y*T+b*D+w*R,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[4],r=e[8],i=e[12],o=e[1],a=e[5],s=e[9],l=e[13],u=e[2],c=e[6],d=e[10],p=e[14],h=e[3],f=e[7],m=e[11],g=e[15];return h*(+i*s*c-r*l*c-i*a*d+n*l*d+r*a*p-n*s*p)+f*(+t*s*p-t*l*d+i*o*d-r*o*p+r*l*u-i*s*u)+m*(+t*l*c-t*a*p-i*o*c+n*o*p+i*a*u-n*l*u)+g*(-r*a*u-t*s*c+t*a*d+r*o*c-n*o*d+n*s*u)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,n){const r=this.elements;return e.isVector3?(r[12]=e.x,r[13]=e.y,r[14]=e.z):(r[12]=e,r[13]=t,r[14]=n),this}invert(){const e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],c=e[9],d=e[10],p=e[11],h=e[12],f=e[13],m=e[14],g=e[15],v=c*m*l-f*d*l+f*s*p-a*m*p-c*s*g+a*d*g,y=h*d*l-u*m*l-h*s*p+o*m*p+u*s*g-o*d*g,b=u*f*l-h*c*l+h*a*p-o*f*p-u*a*g+o*c*g,w=h*c*s-u*f*s-h*a*d+o*f*d+u*a*m-o*c*m,S=t*v+n*y+r*b+i*w;if(0===S)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const x=1/S;return e[0]=v*x,e[1]=(f*d*i-c*m*i-f*r*p+n*m*p+c*r*g-n*d*g)*x,e[2]=(a*m*i-f*s*i+f*r*l-n*m*l-a*r*g+n*s*g)*x,e[3]=(c*s*i-a*d*i-c*r*l+n*d*l+a*r*p-n*s*p)*x,e[4]=y*x,e[5]=(u*m*i-h*d*i+h*r*p-t*m*p-u*r*g+t*d*g)*x,e[6]=(h*s*i-o*m*i-h*r*l+t*m*l+o*r*g-t*s*g)*x,e[7]=(o*d*i-u*s*i+u*r*l-t*d*l-o*r*p+t*s*p)*x,e[8]=b*x,e[9]=(h*c*i-u*f*i-h*n*p+t*f*p+u*n*g-t*c*g)*x,e[10]=(o*f*i-h*a*i+h*n*l-t*f*l-o*n*g+t*a*g)*x,e[11]=(u*a*i-o*c*i-u*n*l+t*c*l+o*n*p-t*a*p)*x,e[12]=w*x,e[13]=(u*f*r-h*c*r+h*n*d-t*f*d-u*n*m+t*c*m)*x,e[14]=(h*a*r-o*f*r-h*n*s+t*f*s+o*n*m-t*a*m)*x,e[15]=(o*c*r-u*a*r+u*n*s-t*c*s-o*n*d+t*a*d)*x,this}scale(e){const t=this.elements,n=e.x,r=e.y,i=e.z;return t[0]*=n,t[4]*=r,t[8]*=i,t[1]*=n,t[5]*=r,t[9]*=i,t[2]*=n,t[6]*=r,t[10]*=i,t[3]*=n,t[7]*=r,t[11]*=i,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],r=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,r))}makeTranslation(e,t,n){return this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const n=Math.cos(t),r=Math.sin(t),i=1-n,o=e.x,a=e.y,s=e.z,l=i*o,u=i*a;return this.set(l*o+n,l*a-r*s,l*s+r*a,0,l*a+r*s,u*a+n,u*s-r*o,0,l*s-r*a,u*s+r*o,i*s*s+n,0,0,0,0,1),this}makeScale(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}makeShear(e,t,n,r,i,o){return this.set(1,n,i,0,e,1,o,0,t,r,1,0,0,0,0,1),this}compose(e,t,n){const r=this.elements,i=t._x,o=t._y,a=t._z,s=t._w,l=i+i,u=o+o,c=a+a,d=i*l,p=i*u,h=i*c,f=o*u,m=o*c,g=a*c,v=s*l,y=s*u,b=s*c,w=n.x,S=n.y,x=n.z;return r[0]=(1-(f+g))*w,r[1]=(p+b)*w,r[2]=(h-y)*w,r[3]=0,r[4]=(p-b)*S,r[5]=(1-(d+g))*S,r[6]=(m+v)*S,r[7]=0,r[8]=(h+y)*x,r[9]=(m-v)*x,r[10]=(1-(d+f))*x,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}decompose(e,t,n){const r=this.elements;let i=mr.set(r[0],r[1],r[2]).length();const o=mr.set(r[4],r[5],r[6]).length(),a=mr.set(r[8],r[9],r[10]).length(),s=this.determinant();s<0&&(i=-i),e.x=r[12],e.y=r[13],e.z=r[14],gr.copy(this);const l=1/i,u=1/o,c=1/a;return gr.elements[0]*=l,gr.elements[1]*=l,gr.elements[2]*=l,gr.elements[4]*=u,gr.elements[5]*=u,gr.elements[6]*=u,gr.elements[8]*=c,gr.elements[9]*=c,gr.elements[10]*=c,t.setFromRotationMatrix(gr),n.x=i,n.y=o,n.z=a,this}makePerspective(e,t,n,r,i,o){const a=this.elements,s=2*i/(t-e),l=2*i/(n-r),u=(t+e)/(t-e),c=(n+r)/(n-r),d=-(o+i)/(o-i),p=-2*o*i/(o-i);return a[0]=s,a[4]=0,a[8]=u,a[12]=0,a[1]=0,a[5]=l,a[9]=c,a[13]=0,a[2]=0,a[6]=0,a[10]=d,a[14]=p,a[3]=0,a[7]=0,a[11]=-1,a[15]=0,this}makeOrthographic(e,t,n,r,i,o){const a=this.elements,s=1/(t-e),l=1/(n-r),u=1/(o-i),c=(t+e)*s,d=(n+r)*l,p=(o+i)*u;return a[0]=2*s,a[4]=0,a[8]=0,a[12]=-c,a[1]=0,a[5]=2*l,a[9]=0,a[13]=-d,a[2]=0,a[6]=0,a[10]=-2*u,a[14]=-p,a[3]=0,a[7]=0,a[11]=0,a[15]=1,this}equals(e){const t=this.elements,n=e.elements;for(let r=0;r<16;r++)if(t[r]!==n[r])return!1;return!0}fromArray(e,t=0){for(let n=0;n<16;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}}const mr=new Fn,gr=new fr,vr=new Fn(0,0,0),yr=new Fn(1,1,1),br=new Fn,wr=new Fn,Sr=new Fn,xr=new fr,_r=new Nn;class Cr{constructor(e=0,t=0,n=0,r=Cr.DefaultOrder){this.isEuler=!0,this._x=e,this._y=t,this._z=n,this._order=r}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,n,r=this._order){return this._x=e,this._y=t,this._z=n,this._order=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,n=!0){const i=e.elements,o=i[0],a=i[4],s=i[8],l=i[1],u=i[5],c=i[9],d=i[2],p=i[6],h=i[10];switch(t){case"XYZ":this._y=Math.asin(jt(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(-c,h),this._z=Math.atan2(-a,o)):(this._x=Math.atan2(p,u),this._z=0);break;case"YXZ":this._x=Math.asin(-jt(c,-1,1)),Math.abs(c)<.9999999?(this._y=Math.atan2(s,h),this._z=Math.atan2(l,u)):(this._y=Math.atan2(-d,o),this._z=0);break;case"ZXY":this._x=Math.asin(jt(p,-1,1)),Math.abs(p)<.9999999?(this._y=Math.atan2(-d,h),this._z=Math.atan2(-a,u)):(this._y=0,this._z=Math.atan2(l,o));break;case"ZYX":this._y=Math.asin(-jt(d,-1,1)),Math.abs(d)<.9999999?(this._x=Math.atan2(p,h),this._z=Math.atan2(l,o)):(this._x=0,this._z=Math.atan2(-a,u));break;case"YZX":this._z=Math.asin(jt(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-c,u),this._y=Math.atan2(-d,o)):(this._x=0,this._y=Math.atan2(s,h));break;case"XZY":this._z=Math.asin(-jt(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(p,u),this._y=Math.atan2(s,o)):(this._x=Math.atan2(-c,h),this._y=0);break;default:r.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,!0===n&&this._onChangeCallback(),this}setFromQuaternion(e,t,n){return xr.makeRotationFromQuaternion(e),this.setFromRotationMatrix(xr,t,n)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return _r.setFromEuler(this),this.setFromQuaternion(_r,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],void 0!==e[3]&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}toVector3(){r.error("THREE.Euler: .toVector3() has been removed. Use Vector3.setFromEuler() instead")}}Cr.DefaultOrder="XYZ",Cr.RotationOrders=["XYZ","YZX","ZXY","XZY","YXZ","ZYX"];class Er{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<1){for(let e=0;e1){for(let e=0;e0&&(n=n.concat(i))}return n}getWorldPosition(e){return this.updateWorldMatrix(!0,!1),e.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Ir,e,Dr),e}getWorldScale(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Ir,Or,e),e}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const t=this.matrixWorld.elements;return e.set(t[8],t[9],t[10]).normalize()}raycast(){}traverse(e){e(this);const t=this.children;for(let n=0,r=t.length;n0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),!1===this.matrixAutoUpdate&&(r.matrixAutoUpdate=!1),this.isInstancedMesh&&(r.type="InstancedMesh",r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(r.instanceColor=this.instanceColor.toJSON())),this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&!0!==this.environment.isRenderTargetTexture&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(e.geometries,this.geometry);const t=this.geometry.parameters;if(void 0!==t&&void 0!==t.shapes){const n=t.shapes;if(Array.isArray(n))for(let t=0,r=n.length;t0){r.children=[];for(let t=0;t0){r.animations=[];for(let t=0;t0&&(n.geometries=t),r.length>0&&(n.materials=r),i.length>0&&(n.textures=i),a.length>0&&(n.images=a),s.length>0&&(n.shapes=s),l.length>0&&(n.skeletons=l),u.length>0&&(n.animations=u),c.length>0&&(n.nodes=c)}return n.object=r,n;function o(e){const t=[];for(const n in e){const r=e[n];delete r.metadata,t.push(r)}return t}}clone(e){return(new this.constructor).copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.userData=JSON.parse(JSON.stringify(e.userData)),!0===t)for(let n=0;n0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}static getBarycoord(e,t,n,r,i){Br.subVectors(r,t),Hr.subVectors(n,t),jr.subVectors(e,t);const o=Br.dot(Br),a=Br.dot(Hr),s=Br.dot(jr),l=Hr.dot(Hr),u=Hr.dot(jr),c=o*l-a*a;if(0===c)return i.set(-2,-1,-1);const d=1/c,p=(l*s-a*u)*d,h=(o*u-a*s)*d;return i.set(1-p-h,h,p)}static containsPoint(e,t,n,r){return this.getBarycoord(e,t,n,r,Vr),Vr.x>=0&&Vr.y>=0&&Vr.x+Vr.y<=1}static getUV(e,t,n,r,i,o,a,s){return this.getBarycoord(e,t,n,r,Vr),s.set(0,0),s.addScaledVector(i,Vr.x),s.addScaledVector(o,Vr.y),s.addScaledVector(a,Vr.z),s}static isFrontFacing(e,t,n,r){return Br.subVectors(n,t),Hr.subVectors(e,t),Br.cross(Hr).dot(r)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,r){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,n,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,r),this}clone(){return(new this.constructor).copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Br.subVectors(this.c,this.b),Hr.subVectors(this.a,this.b),.5*Br.cross(Hr).length()}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return Kr.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return Kr.getBarycoord(e,this.a,this.b,this.c,t)}getUV(e,t,n,r,i){return Kr.getUV(e,this.a,this.b,this.c,t,n,r,i)}containsPoint(e){return Kr.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return Kr.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const n=this.a,r=this.b,i=this.c;let o,a;Wr.subVectors(r,n),$r.subVectors(i,n),Gr.subVectors(e,n);const s=Wr.dot(Gr),l=$r.dot(Gr);if(s<=0&&l<=0)return t.copy(n);Zr.subVectors(e,r);const u=Wr.dot(Zr),c=$r.dot(Zr);if(u>=0&&c<=u)return t.copy(r);const d=s*c-u*l;if(d<=0&&s>=0&&u<=0)return o=s/(s-u),t.copy(n).addScaledVector(Wr,o);Yr.subVectors(e,i);const p=Wr.dot(Yr),h=$r.dot(Yr);if(h>=0&&p<=h)return t.copy(i);const f=p*l-s*h;if(f<=0&&l>=0&&h<=0)return a=l/(l-h),t.copy(n).addScaledVector($r,a);const m=u*h-p*c;if(m<=0&&c-u>=0&&p-h>=0)return qr.subVectors(i,r),a=(c-u)/(c-u+(p-h)),t.copy(r).addScaledVector(qr,a);const g=1/(m+f+d);return o=f*g,a=d*g,t.copy(n).addScaledVector(Wr,o).addScaledVector($r,a)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}let Xr=0;class Jr extends Rt{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:Xr++}),this.uuid=Ht(),this.name="",this.type="Material",this.blending=y,this.side=h,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.blendSrc=D,this.blendDst=O,this.blendEquation=_,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.depthFunc=j,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=Dt,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=It,this.stencilZFail=It,this.stencilZPass=It,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!==e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(void 0!==e)for(const t in e){const n=e[t];if(void 0===n){r.warn("THREE.Material: '"+t+"' parameter is undefined.");continue}const i=this[t];void 0!==i?i&&i.isColor?i.set(n):i&&i.isVector3&&n&&n.isVector3?i.copy(n):this[t]=n:r.warn("THREE."+this.type+": '"+t+"' is not a property of this material.")}}toJSON(e){const t=void 0===e||"string"===typeof e;t&&(e={textures:{},images:{}});const n={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};function r(e){const t=[];for(const n in e){const r=e[n];delete r.metadata,t.push(r)}return t}if(n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),void 0!==this.roughness&&(n.roughness=this.roughness),void 0!==this.metalness&&(n.metalness=this.metalness),void 0!==this.sheen&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity&&1!==this.emissiveIntensity&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(n.shininess=this.shininess),void 0!==this.clearcoat&&(n.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),void 0!==this.iridescence&&(n.iridescence=this.iridescence),void 0!==this.iridescenceIOR&&(n.iridescenceIOR=this.iridescenceIOR),void 0!==this.iridescenceThicknessRange&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,void 0!==this.combine&&(n.combine=this.combine)),void 0!==this.envMapIntensity&&(n.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(n.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),void 0!==this.transmission&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),void 0!==this.thickness&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),void 0!==this.attenuationDistance&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(n.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(n.size=this.size),null!==this.shadowSide&&(n.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==y&&(n.blending=this.blending),this.side!==h&&(n.side=this.side),this.vertexColors&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),!0===this.transparent&&(n.transparent=this.transparent),n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,n.colorWrite=this.colorWrite,n.stencilWrite=this.stencilWrite,n.stencilWriteMask=this.stencilWriteMask,n.stencilFunc=this.stencilFunc,n.stencilRef=this.stencilRef,n.stencilFuncMask=this.stencilFuncMask,n.stencilFail=this.stencilFail,n.stencilZFail=this.stencilZFail,n.stencilZPass=this.stencilZPass,void 0!==this.rotation&&0!==this.rotation&&(n.rotation=this.rotation),!0===this.polygonOffset&&(n.polygonOffset=!0),0!==this.polygonOffsetFactor&&(n.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(n.polygonOffsetUnits=this.polygonOffsetUnits),void 0!==this.linewidth&&1!==this.linewidth&&(n.linewidth=this.linewidth),void 0!==this.dashSize&&(n.dashSize=this.dashSize),void 0!==this.gapSize&&(n.gapSize=this.gapSize),void 0!==this.scale&&(n.scale=this.scale),!0===this.dithering&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),!0===this.alphaToCoverage&&(n.alphaToCoverage=this.alphaToCoverage),!0===this.premultipliedAlpha&&(n.premultipliedAlpha=this.premultipliedAlpha),!0===this.wireframe&&(n.wireframe=this.wireframe),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(n.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(n.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(n.flatShading=this.flatShading),!1===this.visible&&(n.visible=!1),!1===this.toneMapped&&(n.toneMapped=!1),!1===this.fog&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData),t){const t=r(e.textures),i=r(e.images);t.length>0&&(n.textures=t),i.length>0&&(n.images=i)}return n}clone(){return(new this.constructor).copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let n=null;if(null!==t){const e=t.length;n=new Array(e);for(let r=0;r!==e;++r)n[r]=t[r].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){!0===e&&this.version++}}class Qr extends Jr{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new Mn(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=G,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const ei=new Fn,ti=new dn;class ni{constructor(e,t,n=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=void 0!==e?e.length/t:0,this.normalized=n,this.usage=Ot,this.updateRange={offset:0,count:-1},this.version=0}onUploadCallback(){}set needsUpdate(e){!0===e&&this.version++}setUsage(e){return this.usage=e,this}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let r=0,i=this.itemSize;r0&&(e.userData=this.userData),void 0!==this.parameters){const t=this.parameters;for(const n in t)void 0!==t[n]&&(e[n]=t[n]);return e}e.data={attributes:{}};const t=this.index;null!==t&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const n=this.attributes;for(const s in n){const t=n[s];e.data.attributes[s]=t.toJSON(e.data)}const r={};let i=!1;for(const s in this.morphAttributes){const t=this.morphAttributes[s],n=[];for(let r=0,i=t.length;r0&&(r[s]=n,i=!0)}i&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(e.data.groups=JSON.parse(JSON.stringify(o)));const a=this.boundingSphere;return null!==a&&(e.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),e}clone(){return(new this.constructor).copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const n=e.index;null!==n&&this.setIndex(n.clone(t));const r=e.attributes;for(const l in r){const e=r[l];this.setAttribute(l,e.clone(t))}const i=e.morphAttributes;for(const l in i){const e=[],n=i[l];for(let r=0,i=n.length;r0){const e=t[n[0]];if(void 0!==e){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let t=0,n=e.length;tn.far?null:{distance:u,point:Mi.clone(),object:e}}function Ai(e,t,n,r,i,o,a,s,l){e.getVertexPosition(a,vi),e.getVertexPosition(s,yi),e.getVertexPosition(l,bi);const u=Ti(e,t,n,r,vi,yi,bi,Ei);if(u){i&&(xi.fromBufferAttribute(i,a),_i.fromBufferAttribute(i,s),Ci.fromBufferAttribute(i,l),u.uv=Kr.getUV(Ei,vi,yi,bi,xi,_i,Ci,new dn)),o&&(xi.fromBufferAttribute(o,a),_i.fromBufferAttribute(o,s),Ci.fromBufferAttribute(o,l),u.uv2=Kr.getUV(Ei,vi,yi,bi,xi,_i,Ci,new dn));const e={a:a,b:s,c:l,normal:new Fn,materialIndex:0};Kr.getNormal(vi,yi,bi,e.normal),u.face=e}return u}class Ui extends hi{constructor(e=1,t=1,n=1,r=1,i=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:n,widthSegments:r,heightSegments:i,depthSegments:o};const a=this;r=Math.floor(r),i=Math.floor(i),o=Math.floor(o);const s=[],l=[],u=[],c=[];let d=0,p=0;function h(e,t,n,r,i,o,h,f,m,g,v){const y=o/m,b=h/g,w=o/2,S=h/2,x=f/2,_=m+1,C=g+1;let E=0,M=0;const k=new Fn;for(let a=0;a0?1:-1,u.push(k.x,k.y,k.z),c.push(s/m),c.push(1-a/g),E+=1}}for(let a=0;a0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader;const n={};for(const r in this.extensions)!0===this.extensions[r]&&(n[r]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}}class zi extends zr{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new fr,this.projectionMatrix=new fr,this.projectionMatrixInverse=new fr}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const t=this.matrixWorld.elements;return e.set(-t[8],-t[9],-t[10]).normalize()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return(new this.constructor).copy(this)}}class Bi extends zi{constructor(e=50,t=1,n=.1,r=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=n,this.far=r,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=null===e.view?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const t=.5*this.getFilmHeight()/e;this.fov=2*Bt*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(.5*zt*this.fov);return.5*this.getFilmHeight()/e}getEffectiveFOV(){return 2*Bt*Math.atan(Math.tan(.5*zt*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}setViewOffset(e,t,n,r,i,o){this.aspect=e/t,null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(.5*zt*this.fov)/this.zoom,n=2*t,r=this.aspect*n,i=-.5*r;const o=this.view;if(null!==this.view&&this.view.enabled){const e=o.fullWidth,a=o.fullHeight;i+=o.offsetX*r/e,t-=o.offsetY*n/a,r*=o.width/e,n*=o.height/a}const a=this.filmOffset;0!==a&&(i+=e*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(i,i+r,t,t-n,e,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,null!==this.view&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}const Hi=-90,ji=1;class Vi extends zr{constructor(e,t,n){super(),this.type="CubeCamera",this.renderTarget=n;const r=new Bi(Hi,ji,e,t);r.layers=this.layers,r.up.set(0,1,0),r.lookAt(1,0,0),this.add(r);const i=new Bi(Hi,ji,e,t);i.layers=this.layers,i.up.set(0,1,0),i.lookAt(-1,0,0),this.add(i);const o=new Bi(Hi,ji,e,t);o.layers=this.layers,o.up.set(0,0,-1),o.lookAt(0,1,0),this.add(o);const a=new Bi(Hi,ji,e,t);a.layers=this.layers,a.up.set(0,0,1),a.lookAt(0,-1,0),this.add(a);const s=new Bi(Hi,ji,e,t);s.layers=this.layers,s.up.set(0,1,0),s.lookAt(0,0,1),this.add(s);const l=new Bi(Hi,ji,e,t);l.layers=this.layers,l.up.set(0,1,0),l.lookAt(0,0,-1),this.add(l)}update(e,t){null===this.parent&&this.updateMatrixWorld();const n=this.renderTarget,[r,i,o,a,s,l]=this.children,u=e.getRenderTarget(),c=e.toneMapping,d=e.xr.enabled;e.toneMapping=K,e.xr.enabled=!1;const p=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,e.setRenderTarget(n,0),e.render(t,r),e.setRenderTarget(n,1),e.render(t,i),e.setRenderTarget(n,2),e.render(t,o),e.setRenderTarget(n,3),e.render(t,a),e.setRenderTarget(n,4),e.render(t,s),n.texture.generateMipmaps=p,e.setRenderTarget(n,5),e.render(t,l),e.setRenderTarget(u),e.toneMapping=c,e.xr.enabled=d,n.texture.needsPMREMUpdate=!0}}class Wi extends Dn{constructor(e,t,n,r,i,o,a,s,l,u){e=void 0!==e?e:[],t=void 0!==t?t:re,super(e,t,n,r,i,o,a,s,l,u),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class $i extends Pn{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const n={width:e,height:e,depth:1},r=[n,n,n,n,n,n];this.texture=new Wi(r,t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.encoding),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=void 0!==t.generateMipmaps&&t.generateMipmaps,this.texture.minFilter=void 0!==t.minFilter?t.minFilter:fe}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.encoding=t.encoding,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const n={uniforms:{tEquirect:{value:null}},vertexShader:"\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\tvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n\t\t\t\t\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvWorldDirection = transformDirection( position, modelMatrix );\n\n\t\t\t\t\t#include \n\t\t\t\t\t#include \n\n\t\t\t\t}\n\t\t\t",fragmentShader:"\n\n\t\t\t\tuniform sampler2D tEquirect;\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\t#include \n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvec3 direction = normalize( vWorldDirection );\n\n\t\t\t\t\tvec2 sampleUV = equirectUv( direction );\n\n\t\t\t\t\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\n\t\t\t\t}\n\t\t\t"},r=new Ui(5,5,5),i=new Fi({name:"CubemapFromEquirect",uniforms:Ii(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:f,blending:v});i.uniforms.tEquirect.value=t;const o=new ki(r,i),a=t.minFilter;t.minFilter===ge&&(t.minFilter=fe);const s=new Vi(1,10,this);return s.update(e,o),t.minFilter=a,o.geometry.dispose(),o.material.dispose(),this}clear(e,t,n,r){const i=e.getRenderTarget();for(let o=0;o<6;o++)e.setRenderTarget(this,o),e.clear(t,n,r);e.setRenderTarget(i)}}const qi=new Fn,Gi=new Fn,Zi=new pn;class Yi{constructor(e=new Fn(1,0,0),t=0){this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,n,r){return this.normal.set(e,t,n),this.constant=r,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,n){const r=qi.subVectors(n,t).cross(Gi.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(r,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(this.normal).multiplyScalar(-this.distanceToPoint(e)).add(e)}intersectLine(e,t){const n=e.delta(qi),r=this.normal.dot(n);if(0===r)return 0===this.distanceToPoint(e.start)?t.copy(e.start):null;const i=-(e.start.dot(this.normal)+this.constant)/r;return i<0||i>1?null:t.copy(n).multiplyScalar(i).add(e.start)}intersectsLine(e){const t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const n=t||Zi.getNormalMatrix(e),r=this.coplanarPoint(qi).applyMatrix4(e),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return(new this.constructor).copy(this)}}const Ki=new or,Xi=new Fn;class Ji{constructor(e=new Yi,t=new Yi,n=new Yi,r=new Yi,i=new Yi,o=new Yi){this.planes=[e,t,n,r,i,o]}set(e,t,n,r,i,o){const a=this.planes;return a[0].copy(e),a[1].copy(t),a[2].copy(n),a[3].copy(r),a[4].copy(i),a[5].copy(o),this}copy(e){const t=this.planes;for(let n=0;n<6;n++)t[n].copy(e.planes[n]);return this}setFromProjectionMatrix(e){const t=this.planes,n=e.elements,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],l=n[5],u=n[6],c=n[7],d=n[8],p=n[9],h=n[10],f=n[11],m=n[12],g=n[13],v=n[14],y=n[15];return t[0].setComponents(a-r,c-s,f-d,y-m).normalize(),t[1].setComponents(a+r,c+s,f+d,y+m).normalize(),t[2].setComponents(a+i,c+l,f+p,y+g).normalize(),t[3].setComponents(a-i,c-l,f-p,y-g).normalize(),t[4].setComponents(a-o,c-u,f-h,y-v).normalize(),t[5].setComponents(a+o,c+u,f+h,y+v).normalize(),this}intersectsObject(e){const t=e.geometry;return null===t.boundingSphere&&t.computeBoundingSphere(),Ki.copy(t.boundingSphere).applyMatrix4(e.matrixWorld),this.intersectsSphere(Ki)}intersectsSprite(e){return Ki.center.set(0,0,0),Ki.radius=.7071067811865476,Ki.applyMatrix4(e.matrixWorld),this.intersectsSphere(Ki)}intersectsSphere(e){const t=this.planes,n=e.center,r=-e.radius;for(let i=0;i<6;i++){const e=t[i].distanceToPoint(n);if(e0?e.max.x:e.min.x,Xi.y=r.normal.y>0?e.max.y:e.min.y,Xi.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(Xi)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return(new this.constructor).copy(this)}}function Qi(){let e=null,t=!1,n=null,r=null;function i(t,o){n(t,o),r=e.requestAnimationFrame(i)}return{start:function(){!0!==t&&null!==n&&(r=e.requestAnimationFrame(i),t=!0)},stop:function(){e.cancelAnimationFrame(r),t=!1},setAnimationLoop:function(e){n=e},setContext:function(t){e=t}}}function eo(e,t){const n=t.isWebGL2,r=new WeakMap;function i(t,r){const i=t.array,o=t.usage,a=e.createBuffer();let s;if(e.bindBuffer(r,a),e.bufferData(r,i,o),t.onUploadCallback(),i instanceof Float32Array)s=5126;else if(i instanceof Uint16Array)if(t.isFloat16BufferAttribute){if(!n)throw new Error("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.");s=5131}else s=5123;else if(i instanceof Int16Array)s=5122;else if(i instanceof Uint32Array)s=5125;else if(i instanceof Int32Array)s=5124;else if(i instanceof Int8Array)s=5120;else if(i instanceof Uint8Array)s=5121;else{if(!(i instanceof Uint8ClampedArray))throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+i);s=5121}return{buffer:a,type:s,bytesPerElement:i.BYTES_PER_ELEMENT,version:t.version}}function o(t,r,i){const o=r.array,a=r.updateRange;e.bindBuffer(i,t),-1===a.count?e.bufferSubData(i,0,o):(n?e.bufferSubData(i,a.offset*o.BYTES_PER_ELEMENT,o,a.offset,a.count):e.bufferSubData(i,a.offset*o.BYTES_PER_ELEMENT,o.subarray(a.offset,a.offset+a.count)),a.count=-1),r.onUploadCallback()}function a(e){return e.isInterleavedBufferAttribute&&(e=e.data),r.get(e)}function s(t){t.isInterleavedBufferAttribute&&(t=t.data);const n=r.get(t);n&&(e.deleteBuffer(n.buffer),r.delete(t))}function l(e,t){if(e.isGLBufferAttribute){const t=r.get(e);return void((!t||t.version0;g=(e?n:t).get(g)}const y=e.xr,b=y.getSession&&y.getSession();b&&"additive"===b.environmentBlendMode&&(g=null),null===g?v(s,c):g&&g.isColor&&(v(g,1),a=!0),(e.autoClear||a)&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),g&&(g.isCubeTexture||g.mapping===se)?(void 0===u&&(u=new ki(new Ui(1,1,1),new Fi({name:"BackgroundCubeMaterial",uniforms:Ii(Ns.backgroundCube.uniforms),vertexShader:Ns.backgroundCube.vertexShader,fragmentShader:Ns.backgroundCube.fragmentShader,side:f,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),u.geometry.deleteAttribute("uv"),u.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(u.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),i.update(u)),u.material.uniforms.envMap.value=g,u.material.uniforms.flipEnvMap.value=g.isCubeTexture&&!1===g.isRenderTargetTexture?-1:1,u.material.uniforms.backgroundBlurriness.value=o.backgroundBlurriness,u.material.uniforms.backgroundIntensity.value=o.backgroundIntensity,u.material.toneMapped=g.encoding!==Ct,d===g&&p===g.version&&m===e.toneMapping||(u.material.needsUpdate=!0,d=g,p=g.version,m=e.toneMapping),u.layers.enableAll(),r.unshift(u,u.geometry,u.material,0,0,null)):g&&g.isTexture&&(void 0===l&&(l=new ki(new to(2,2),new Fi({name:"BackgroundMaterial",uniforms:Ii(Ns.background.uniforms),vertexShader:Ns.background.vertexShader,fragmentShader:Ns.background.fragmentShader,side:h,depthTest:!1,depthWrite:!1,fog:!1})),l.geometry.deleteAttribute("normal"),Object.defineProperty(l.material,"map",{get:function(){return this.uniforms.t2D.value}}),i.update(l)),l.material.uniforms.t2D.value=g,l.material.uniforms.backgroundIntensity.value=o.backgroundIntensity,l.material.toneMapped=g.encoding!==Ct,!0===g.matrixAutoUpdate&&g.updateMatrix(),l.material.uniforms.uvTransform.value.copy(g.matrix),d===g&&p===g.version&&m===e.toneMapping||(l.material.needsUpdate=!0,d=g,p=g.version,m=e.toneMapping),l.layers.enableAll(),r.unshift(l,l.geometry,l.material,0,0,null))}function v(t,n){t.getRGB(Fs,Pi(e)),r.buffers.color.setClear(Fs.r,Fs.g,Fs.b,n,a)}return{getClearColor:function(){return s},setClearColor:function(e,t=1){s.set(e),c=t,v(s,c)},getClearAlpha:function(){return c},setClearAlpha:function(e){c=e,v(s,c)},render:g}}function Bs(e,t,n,r){const i=e.getParameter(34921),o=r.isWebGL2?null:t.get("OES_vertex_array_object"),a=r.isWebGL2||null!==o,s={},l=g(null);let u=l,c=!1;function d(t,r,i,o,s){let l=!1;if(a){const e=m(o,i,r);u!==e&&(u=e,h(u.object)),l=v(t,o,i,s),l&&y(t,o,i,s)}else{const e=!0===r.wireframe;u.geometry===o.id&&u.program===i.id&&u.wireframe===e||(u.geometry=o.id,u.program=i.id,u.wireframe=e,l=!0)}null!==s&&n.update(s,34963),(l||c)&&(c=!1,C(t,r,i,o),null!==s&&e.bindBuffer(34963,n.get(s).buffer))}function p(){return r.isWebGL2?e.createVertexArray():o.createVertexArrayOES()}function h(t){return r.isWebGL2?e.bindVertexArray(t):o.bindVertexArrayOES(t)}function f(t){return r.isWebGL2?e.deleteVertexArray(t):o.deleteVertexArrayOES(t)}function m(e,t,n){const r=!0===n.wireframe;let i=s[e.id];void 0===i&&(i={},s[e.id]=i);let o=i[t.id];void 0===o&&(o={},i[t.id]=o);let a=o[r];return void 0===a&&(a=g(p()),o[r]=a),a}function g(e){const t=[],n=[],r=[];for(let o=0;o=0){const t=i[l];let n=o[l];if(void 0===n&&("instanceMatrix"===l&&e.instanceMatrix&&(n=e.instanceMatrix),"instanceColor"===l&&e.instanceColor&&(n=e.instanceColor)),void 0===t)return!0;if(t.attribute!==n)return!0;if(n&&t.data!==n.data)return!0;a++}}return u.attributesNum!==a||u.index!==r}function y(e,t,n,r){const i={},o=t.attributes;let a=0;const s=n.getAttributes();for(const l in s){const t=s[l];if(t.location>=0){let t=o[l];void 0===t&&("instanceMatrix"===l&&e.instanceMatrix&&(t=e.instanceMatrix),"instanceColor"===l&&e.instanceColor&&(t=e.instanceColor));const n={};n.attribute=t,t&&t.data&&(n.data=t.data),i[l]=n,a++}}u.attributes=i,u.attributesNum=a,u.index=r}function b(){const e=u.newAttributes;for(let t=0,n=e.length;t=0){let o=l[t];if(void 0===o&&("instanceMatrix"===t&&i.instanceMatrix&&(o=i.instanceMatrix),"instanceColor"===t&&i.instanceColor&&(o=i.instanceColor)),void 0!==o){const t=o.normalized,a=o.itemSize,l=n.get(o);if(void 0===l)continue;const u=l.buffer,c=l.type,d=l.bytesPerElement;if(o.isInterleavedBufferAttribute){const n=o.data,l=n.stride,p=o.offset;if(n.isInstancedInterleavedBuffer){for(let e=0;e0&&e.getShaderPrecisionFormat(35632,36338).precision>0)return"highp";t="mediump"}return"mediump"===t&&e.getShaderPrecisionFormat(35633,36337).precision>0&&e.getShaderPrecisionFormat(35632,36337).precision>0?"mediump":"lowp"}const s="undefined"!==typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext||"undefined"!==typeof WebGL2ComputeRenderingContext&&e instanceof WebGL2ComputeRenderingContext;let l=void 0!==n.precision?n.precision:"highp";const u=a(l);u!==l&&(r.warn("THREE.WebGLRenderer:",l,"not supported, using",u,"instead."),l=u);const c=s||t.has("WEBGL_draw_buffers"),d=!0===n.logarithmicDepthBuffer,p=e.getParameter(34930),h=e.getParameter(35660),f=e.getParameter(3379),m=e.getParameter(34076),g=e.getParameter(34921),v=e.getParameter(36347),y=e.getParameter(36348),b=e.getParameter(36349),w=h>0,S=s||t.has("OES_texture_float"),x=w&&S,_=s?e.getParameter(36183):0;return{isWebGL2:s,drawBuffers:c,getMaxAnisotropy:o,getMaxPrecision:a,precision:l,logarithmicDepthBuffer:d,maxTextures:p,maxVertexTextures:h,maxTextureSize:f,maxCubemapSize:m,maxAttributes:g,maxVertexUniforms:v,maxVaryings:y,maxFragmentUniforms:b,vertexTextures:w,floatFragmentTextures:S,floatVertexTextures:x,maxSamples:_}}function Vs(e){const t=this;let n=null,r=0,i=!1,o=!1;const a=new Yi,s=new pn,l={value:null,needsUpdate:!1};function u(){l.value!==n&&(l.value=n,l.needsUpdate=r>0),t.numPlanes=r,t.numIntersection=0}function c(e,n,r,i){const o=null!==e?e.length:0;let u=null;if(0!==o){if(u=l.value,!0!==i||null===u){const t=r+4*o,i=n.matrixWorldInverse;s.getNormalMatrix(i),(null===u||u.length0){const a=new $i(o.height/2);return a.fromEquirectangularTexture(e,r),t.set(r,a),r.addEventListener("dispose",i),n(a.texture,r.mapping)}return null}}}return r}function i(e){const n=e.target;n.removeEventListener("dispose",i);const r=t.get(n);void 0!==r&&(t.delete(n),r.dispose())}function o(){t=new WeakMap}return{get:r,dispose:o}}class $s extends zi{constructor(e=-1,t=1,n=1,r=-1,i=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=n,this.bottom=r,this.near=i,this.far=o,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=null===e.view?null:Object.assign({},e.view),this}setViewOffset(e,t,n,r,i,o){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,r=(this.top+this.bottom)/2;let i=n-e,o=n+e,a=r+t,s=r-t;if(null!==this.view&&this.view.enabled){const e=(this.right-this.left)/this.view.fullWidth/this.zoom,t=(this.top-this.bottom)/this.view.fullHeight/this.zoom;i+=e*this.view.offsetX,o=i+e*this.view.width,a-=t*this.view.offsetY,s=a-t*this.view.height}this.projectionMatrix.makeOrthographic(i,o,a,s,this.near,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,null!==this.view&&(t.object.view=Object.assign({},this.view)),t}}const qs=4,Gs=[.125,.215,.35,.446,.526,.582],Zs=20,Ys=new $s,Ks=new Mn;let Xs=null;const Js=(1+Math.sqrt(5))/2,Qs=1/Js,el=[new Fn(1,1,1),new Fn(-1,1,1),new Fn(1,1,-1),new Fn(-1,1,-1),new Fn(0,Js,Qs),new Fn(0,Js,-Qs),new Fn(Qs,0,Js),new Fn(-Qs,0,Js),new Fn(Js,Qs,0),new Fn(-Js,Qs,0)];class tl{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,n=.1,r=100){Xs=this._renderer.getRenderTarget(),this._setSize(256);const i=this._allocateTargets();return i.depthBuffer=!0,this._sceneToCubeUV(e,n,r,i),t>0&&this._blur(i,0,0,t),this._applyPMREM(i),this._cleanup(i),i}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){null===this._cubemapMaterial&&(this._cubemapMaterial=sl(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){null===this._equirectMaterial&&(this._equirectMaterial=al(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),null!==this._cubemapMaterial&&this._cubemapMaterial.dispose(),null!==this._equirectMaterial&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){null!==this._blurMaterial&&this._blurMaterial.dispose(),null!==this._pingPongRenderTarget&&this._pingPongRenderTarget.dispose();for(let e=0;e2?n:0,n,n),u.setRenderTarget(r),m&&u.render(h,a),u.render(e,a)}h.geometry.dispose(),h.material.dispose(),u.toneMapping=d,u.autoClear=c,e.background=g}_textureToCubeUV(e,t){const n=this._renderer,r=e.mapping===re||e.mapping===ie;r?(null===this._cubemapMaterial&&(this._cubemapMaterial=sl()),this._cubemapMaterial.uniforms.flipEnvMap.value=!1===e.isRenderTargetTexture?-1:1):null===this._equirectMaterial&&(this._equirectMaterial=al());const i=r?this._cubemapMaterial:this._equirectMaterial,o=new ki(this._lodPlanes[0],i),a=i.uniforms;a["envMap"].value=e;const s=this._cubeSize;il(t,0,0,3*s,2*s),n.setRenderTarget(t),n.render(o,Ys)}_applyPMREM(e){const t=this._renderer,n=t.autoClear;t.autoClear=!1;for(let r=1;rZs&&r.warn(`sigmaRadians, ${o}, is too large and will clip, as it requested ${g} samples when the maximum is set to ${Zs}`);const v=[];let y=0;for(let r=0;rb-qs?i-b+qs:0),x=4*(this._cubeSize-w);il(t,S,x,3*w,2*w),l.setRenderTarget(t),l.render(d,Ys)}}function nl(e){const t=[],n=[],r=[];let i=e;const o=e-qs+1+Gs.length;for(let a=0;ae-qs?s=Gs[a-e+qs-1]:0===a&&(s=0),r.push(s);const l=1/(o-2),u=-l,c=1+l,d=[u,u,c,u,c,c,u,u,c,c,u,c],p=6,h=6,f=3,m=2,g=1,v=new Float32Array(f*h*p),y=new Float32Array(m*h*p),b=new Float32Array(g*h*p);for(let e=0;e2?0:-1,r=[t,n,0,t+2/3,n,0,t+2/3,n+1,0,t,n,0,t+2/3,n+1,0,t,n+1,0];v.set(r,f*h*e),y.set(d,m*h*e);const i=[e,e,e,e,e,e];b.set(i,g*h*e)}const w=new hi;w.setAttribute("position",new ni(v,f)),w.setAttribute("uv",new ni(y,m)),w.setAttribute("faceIndex",new ni(b,g)),t.push(w),i>qs&&i--}return{lodPlanes:t,sizeLods:n,sigmas:r}}function rl(e,t,n){const r=new Pn(e,t,n);return r.texture.mapping=se,r.texture.name="PMREM.cubeUv",r.scissorTest=!0,r}function il(e,t,n,r,i){e.viewport.set(t,n,r,i),e.scissor.set(t,n,r,i)}function ol(e,t,n){const r=new Float32Array(Zs),i=new Fn(0,1,0),o=new Fi({name:"SphericalGaussianBlur",defines:{n:Zs,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:ll(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform int samples;\n\t\t\tuniform float weights[ n ];\n\t\t\tuniform bool latitudinal;\n\t\t\tuniform float dTheta;\n\t\t\tuniform float mipInt;\n\t\t\tuniform vec3 poleAxis;\n\n\t\t\t#define ENVMAP_TYPE_CUBE_UV\n\t\t\t#include \n\n\t\t\tvec3 getSample( float theta, vec3 axis ) {\n\n\t\t\t\tfloat cosTheta = cos( theta );\n\t\t\t\t// Rodrigues' axis-angle rotation\n\t\t\t\tvec3 sampleDirection = vOutputDirection * cosTheta\n\t\t\t\t\t+ cross( axis, vOutputDirection ) * sin( theta )\n\t\t\t\t\t+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );\n\n\t\t\t\treturn bilinearCubeUV( envMap, sampleDirection, mipInt );\n\n\t\t\t}\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );\n\n\t\t\t\tif ( all( equal( axis, vec3( 0.0 ) ) ) ) {\n\n\t\t\t\t\taxis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );\n\n\t\t\t\t}\n\n\t\t\t\taxis = normalize( axis );\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );\n\n\t\t\t\tfor ( int i = 1; i < n; i++ ) {\n\n\t\t\t\t\tif ( i >= samples ) {\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfloat theta = dTheta * float( i );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( theta, axis );\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t",blending:v,depthTest:!1,depthWrite:!1});return o}function al(){return new Fi({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:ll(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\n\t\t\t#include \n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 outputDirection = normalize( vOutputDirection );\n\t\t\t\tvec2 uv = equirectUv( outputDirection );\n\n\t\t\t\tgl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 );\n\n\t\t\t}\n\t\t",blending:v,depthTest:!1,depthWrite:!1})}function sl(){return new Fi({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:ll(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tuniform float flipEnvMap;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform samplerCube envMap;\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) );\n\n\t\t\t}\n\t\t",blending:v,depthTest:!1,depthWrite:!1})}function ll(){return"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t"}function ul(e){let t=new WeakMap,n=null;function r(r){if(r&&r.isTexture){const a=r.mapping,s=a===oe||a===ae,l=a===re||a===ie;if(s||l){if(r.isRenderTargetTexture&&!0===r.needsPMREMUpdate){r.needsPMREMUpdate=!1;let i=t.get(r);return null===n&&(n=new tl(e)),i=s?n.fromEquirectangular(r,i):n.fromCubemap(r,i),t.set(r,i),i.texture}if(t.has(r))return t.get(r).texture;{const a=r.image;if(s&&a&&a.height>0||l&&a&&i(a)){null===n&&(n=new tl(e));const i=s?n.fromEquirectangular(r):n.fromCubemap(r);return t.set(r,i),r.addEventListener("dispose",o),i.texture}return null}}}return r}function i(e){let t=0;const n=6;for(let r=0;rt.maxTextureSize&&(M=Math.ceil(E/t.maxTextureSize),E=t.maxTextureSize);const k=new Float32Array(E*M*4*f),T=new Ln(k,E,M,f);T.type=_e,T.needsUpdate=!0;const A=4*C;for(let I=0;I0)return e;const i=t*n;let o=xl[i];if(void 0===o&&(o=new Float32Array(i),xl[i]=o),0!==t){r.toArray(o,0);for(let r=1,i=0;r!==t;++r)i+=n,e[r].toArray(o,i)}return o}function Tl(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n":" "} ${e}: ${n[a]}`)}return r.join("\n")}function ku(e){switch(e){case _t:return["Linear","( value )"];case Ct:return["sRGB","( value )"];default:return r.warn("THREE.WebGLProgram: Unsupported encoding:",e),["Linear","( value )"]}}function Tu(e,t,n){const r=e.getShaderParameter(t,35713),i=e.getShaderInfoLog(t).trim();if(r&&""===i)return"";const o=/ERROR: 0:(\d+)/.exec(i);if(o){const r=parseInt(o[1]);return n.toUpperCase()+"\n\n"+i+"\n\n"+Mu(e.getShaderSource(t),r)}return i}function Au(e,t){const n=ku(t);return"vec4 "+e+"( vec4 value ) { return LinearTo"+n[0]+n[1]+"; }"}function Uu(e,t){let n;switch(t){case X:n="Linear";break;case J:n="Reinhard";break;case Q:n="OptimizedCineon";break;case ee:n="ACESFilmic";break;case te:n="Custom";break;default:r.warn("THREE.WebGLProgram: Unsupported toneMapping:",t),n="Linear"}return"vec3 "+e+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function Iu(e){const t=[e.extensionDerivatives||e.envMapCubeUVHeight||e.bumpMap||e.tangentSpaceNormalMap||e.clearcoatNormalMap||e.flatShading||"physical"===e.shaderID?"#extension GL_OES_standard_derivatives : enable":"",(e.extensionFragDepth||e.logarithmicDepthBuffer)&&e.rendererExtensionFragDepth?"#extension GL_EXT_frag_depth : enable":"",e.extensionDrawBuffers&&e.rendererExtensionDrawBuffers?"#extension GL_EXT_draw_buffers : require":"",(e.extensionShaderTextureLOD||e.envMap||e.transmission)&&e.rendererExtensionShaderTextureLod?"#extension GL_EXT_shader_texture_lod : enable":""];return t.filter(Pu).join("\n")}function Du(e){const t=[];for(const n in e){const r=e[n];!1!==r&&t.push("#define "+n+" "+r)}return t.join("\n")}function Ou(e,t){const n={},r=e.getProgramParameter(t,35721);for(let i=0;i/gm;function Fu(e){return e.replace(Nu,zu)}function zu(e,t){const n=Ls[t];if(void 0===n)throw new Error("Can not resolve #include <"+t+">");return Fu(n)}const Bu=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Hu(e){return e.replace(Bu,ju)}function ju(e,t,n,r){let i="";for(let o=parseInt(t);o0&&(v+="\n"),y=[f,m].filter(Pu).join("\n"),y.length>0&&(y+="\n")):(v=[Vu(n),"#define SHADER_NAME "+n.shaderName,m,n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.supportsVertexTextures?"#define VERTEX_TEXTURES":"",n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+d:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMap&&n.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",n.normalMap&&n.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.displacementMap&&n.supportsVertexTextures?"#define USE_DISPLACEMENTMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularIntensityMap?"#define USE_SPECULARINTENSITYMAP":"",n.specularColorMap?"#define USE_SPECULARCOLORMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEENCOLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEENROUGHNESSMAP":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs?"#define USE_UV":"",n.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&!1===n.flatShading?"#define USE_MORPHNORMALS":"",n.morphColors&&n.isWebGL2?"#define USE_MORPHCOLORS":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE_STRIDE "+n.morphTextureStride:"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+u:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","\tattribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","\tattribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_TANGENT","\tattribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","\tattribute vec4 color;","#elif defined( USE_COLOR )","\tattribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )","\tattribute vec3 morphTarget0;","\tattribute vec3 morphTarget1;","\tattribute vec3 morphTarget2;","\tattribute vec3 morphTarget3;","\t#ifdef USE_MORPHNORMALS","\t\tattribute vec3 morphNormal0;","\t\tattribute vec3 morphNormal1;","\t\tattribute vec3 morphNormal2;","\t\tattribute vec3 morphNormal3;","\t#else","\t\tattribute vec3 morphTarget4;","\t\tattribute vec3 morphTarget5;","\t\tattribute vec3 morphTarget6;","\t\tattribute vec3 morphTarget7;","\t#endif","#endif","#ifdef USE_SKINNING","\tattribute vec4 skinIndex;","\tattribute vec4 skinWeight;","#endif","\n"].filter(Pu).join("\n"),y=[f,Vu(n),"#define SHADER_NAME "+n.shaderName,m,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+c:"",n.envMap?"#define "+d:"",n.envMap?"#define "+p:"",h?"#define CUBEUV_TEXEL_WIDTH "+h.texelWidth:"",h?"#define CUBEUV_TEXEL_HEIGHT "+h.texelHeight:"",h?"#define CUBEUV_MAX_MIP "+h.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMap&&n.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",n.normalMap&&n.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescence?"#define USE_IRIDESCENCE":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularIntensityMap?"#define USE_SPECULARINTENSITYMAP":"",n.specularColorMap?"#define USE_SPECULARCOLORMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEENCOLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEENROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs?"#define USE_UV":"",n.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+u:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.physicallyCorrectLights?"#define PHYSICALLY_CORRECT_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==K?"#define TONE_MAPPING":"",n.toneMapping!==K?Ls["tonemapping_pars_fragment"]:"",n.toneMapping!==K?Uu("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",Ls["encodings_pars_fragment"],Au("linearToOutputTexel",n.outputEncoding),n.useDepthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","\n"].filter(Pu).join("\n")),s=Fu(s),s=Lu(s,n),s=Ru(s,n),l=Fu(l),l=Lu(l,n),l=Ru(l,n),s=Hu(s),l=Hu(l),n.isWebGL2&&!0!==n.isRawShaderMaterial&&(b="#version 300 es\n",v=["precision mediump sampler2DArray;","#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+v,y=["#define varying in",n.glslVersion===Pt?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===Pt?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+y);const w=b+v+s,S=b+y+l,x=Cu(o,35633,w),_=Cu(o,35632,S);if(o.attachShader(g,x),o.attachShader(g,_),void 0!==n.index0AttributeName?o.bindAttribLocation(g,0,n.index0AttributeName):!0===n.morphTargets&&o.bindAttribLocation(g,0,"position"),o.linkProgram(g),e.debug.checkShaderErrors){const e=o.getProgramInfoLog(g).trim(),t=o.getShaderInfoLog(x).trim(),n=o.getShaderInfoLog(_).trim();let i=!0,a=!0;if(!1===o.getProgramParameter(g,35714)){i=!1;const t=Tu(o,x,"vertex"),n=Tu(o,_,"fragment");r.error("THREE.WebGLProgram: Shader Error "+o.getError()+" - VALIDATE_STATUS "+o.getProgramParameter(g,35715)+"\n\nProgram Info Log: "+e+"\n"+t+"\n"+n)}else""!==e?r.warn("THREE.WebGLProgram: Program Info Log:",e):""!==t&&""!==n||(a=!1);a&&(this.diagnostics={runnable:i,programLog:e,vertexShader:{log:t,prefix:v},fragmentShader:{log:n,prefix:y}})}let C,E;return o.deleteShader(x),o.deleteShader(_),this.getUniforms=function(){return void 0===C&&(C=new _u(o,g)),C},this.getAttributes=function(){return void 0===E&&(E=Ou(o,g)),E},this.destroy=function(){i.releaseStatesOfProgram(this),o.deleteProgram(g),this.program=void 0},this.name=n.shaderName,this.id=Eu++,this.cacheKey=t,this.usedTimes=1,this.program=g,this.vertexShader=x,this.fragmentShader=_,this}let Ku=0;class Xu{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,n=e.fragmentShader,r=this._getShaderStage(t),i=this._getShaderStage(n),o=this._getShaderCacheForMaterial(e);return!1===o.has(r)&&(o.add(r),r.usedTimes++),!1===o.has(i)&&(o.add(i),i.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const n of t)n.usedTimes--,0===n.usedTimes&&this.shaderCache.delete(n.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const t=this.materialCache;let n=t.get(e);return void 0===n&&(n=new Set,t.set(e,n)),n}_getShaderStage(e){const t=this.shaderCache;let n=t.get(e);return void 0===n&&(n=new Ju(e),t.set(e,n)),n}}class Ju{constructor(e){this.id=Ku++,this.code=e,this.usedTimes=0}}function Qu(e,t,n,i,o,a,s){const l=new Er,u=new Xu,c=[],d=o.isWebGL2,p=o.logarithmicDepthBuffer,h=o.vertexTextures;let g=o.precision;const v={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function b(a,l,c,b,w){const S=b.fog,x=w.geometry,_=a.isMeshStandardMaterial?b.environment:null,C=(a.isMeshStandardMaterial?n:t).get(a.envMap||_),E=C&&C.mapping===se?C.image.height:null,M=v[a.type];null!==a.precision&&(g=o.getMaxPrecision(a.precision),g!==a.precision&&r.warn("THREE.WebGLProgram.getParameters:",a.precision,"not supported, using",g,"instead."));const k=x.morphAttributes.position||x.morphAttributes.normal||x.morphAttributes.color,T=void 0!==k?k.length:0;let A,U,I,D,O=0;if(void 0!==x.morphAttributes.position&&(O=1),void 0!==x.morphAttributes.normal&&(O=2),void 0!==x.morphAttributes.color&&(O=3),M){const e=Ns[M];A=e.vertexShader,U=e.fragmentShader}else A=a.vertexShader,U=a.fragmentShader,u.update(a),I=u.getVertexShaderID(a),D=u.getFragmentShaderID(a);const P=e.getRenderTarget(),L=a.alphaTest>0,R=a.clearcoat>0,N=a.iridescence>0,F={isWebGL2:d,shaderID:M,shaderName:a.type,vertexShader:A,fragmentShader:U,defines:a.defines,customVertexShaderID:I,customFragmentShaderID:D,isRawShaderMaterial:!0===a.isRawShaderMaterial,glslVersion:a.glslVersion,precision:g,instancing:!0===w.isInstancedMesh,instancingColor:!0===w.isInstancedMesh&&null!==w.instanceColor,supportsVertexTextures:h,outputEncoding:null===P?e.outputEncoding:!0===P.isXRRenderTarget?P.texture.encoding:_t,map:!!a.map,matcap:!!a.matcap,envMap:!!C,envMapMode:C&&C.mapping,envMapCubeUVHeight:E,lightMap:!!a.lightMap,aoMap:!!a.aoMap,emissiveMap:!!a.emissiveMap,bumpMap:!!a.bumpMap,normalMap:!!a.normalMap,objectSpaceNormalMap:a.normalMapType===Tt,tangentSpaceNormalMap:a.normalMapType===kt,decodeVideoTexture:!!a.map&&!0===a.map.isVideoTexture&&a.map.encoding===Ct,clearcoat:R,clearcoatMap:R&&!!a.clearcoatMap,clearcoatRoughnessMap:R&&!!a.clearcoatRoughnessMap,clearcoatNormalMap:R&&!!a.clearcoatNormalMap,iridescence:N,iridescenceMap:N&&!!a.iridescenceMap,iridescenceThicknessMap:N&&!!a.iridescenceThicknessMap,displacementMap:!!a.displacementMap,roughnessMap:!!a.roughnessMap,metalnessMap:!!a.metalnessMap,specularMap:!!a.specularMap,specularIntensityMap:!!a.specularIntensityMap,specularColorMap:!!a.specularColorMap,opaque:!1===a.transparent&&a.blending===y,alphaMap:!!a.alphaMap,alphaTest:L,gradientMap:!!a.gradientMap,sheen:a.sheen>0,sheenColorMap:!!a.sheenColorMap,sheenRoughnessMap:!!a.sheenRoughnessMap,transmission:a.transmission>0,transmissionMap:!!a.transmissionMap,thicknessMap:!!a.thicknessMap,combine:a.combine,vertexTangents:!!a.normalMap&&!!x.attributes.tangent,vertexColors:a.vertexColors,vertexAlphas:!0===a.vertexColors&&!!x.attributes.color&&4===x.attributes.color.itemSize,vertexUvs:!!a.map||!!a.bumpMap||!!a.normalMap||!!a.specularMap||!!a.alphaMap||!!a.emissiveMap||!!a.roughnessMap||!!a.metalnessMap||!!a.clearcoatMap||!!a.clearcoatRoughnessMap||!!a.clearcoatNormalMap||!!a.iridescenceMap||!!a.iridescenceThicknessMap||!!a.displacementMap||!!a.transmissionMap||!!a.thicknessMap||!!a.specularIntensityMap||!!a.specularColorMap||!!a.sheenColorMap||!!a.sheenRoughnessMap,uvsVertexOnly:!(a.map||a.bumpMap||a.normalMap||a.specularMap||a.alphaMap||a.emissiveMap||a.roughnessMap||a.metalnessMap||a.clearcoatNormalMap||a.iridescenceMap||a.iridescenceThicknessMap||a.transmission>0||a.transmissionMap||a.thicknessMap||a.specularIntensityMap||a.specularColorMap||a.sheen>0||a.sheenColorMap||a.sheenRoughnessMap)&&!!a.displacementMap,fog:!!S,useFog:!0===a.fog,fogExp2:S&&S.isFogExp2,flatShading:!!a.flatShading,sizeAttenuation:a.sizeAttenuation,logarithmicDepthBuffer:p,skinning:!0===w.isSkinnedMesh,morphTargets:void 0!==x.morphAttributes.position,morphNormals:void 0!==x.morphAttributes.normal,morphColors:void 0!==x.morphAttributes.color,morphTargetsCount:T,morphTextureStride:O,numDirLights:l.directional.length,numPointLights:l.point.length,numSpotLights:l.spot.length,numSpotLightMaps:l.spotLightMap.length,numRectAreaLights:l.rectArea.length,numHemiLights:l.hemi.length,numDirLightShadows:l.directionalShadowMap.length,numPointLightShadows:l.pointShadowMap.length,numSpotLightShadows:l.spotShadowMap.length,numSpotLightShadowsWithMaps:l.numSpotLightShadowsWithMaps,numClippingPlanes:s.numPlanes,numClipIntersection:s.numIntersection,dithering:a.dithering,shadowMapEnabled:e.shadowMap.enabled&&c.length>0,shadowMapType:e.shadowMap.type,toneMapping:a.toneMapped?e.toneMapping:K,physicallyCorrectLights:e.physicallyCorrectLights,premultipliedAlpha:a.premultipliedAlpha,doubleSided:a.side===m,flipSided:a.side===f,useDepthPacking:!!a.depthPacking,depthPacking:a.depthPacking||0,index0AttributeName:a.index0AttributeName,extensionDerivatives:a.extensions&&a.extensions.derivatives,extensionFragDepth:a.extensions&&a.extensions.fragDepth,extensionDrawBuffers:a.extensions&&a.extensions.drawBuffers,extensionShaderTextureLOD:a.extensions&&a.extensions.shaderTextureLOD,rendererExtensionFragDepth:d||i.has("EXT_frag_depth"),rendererExtensionDrawBuffers:d||i.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:d||i.has("EXT_shader_texture_lod"),customProgramCacheKey:a.customProgramCacheKey()};return F}function w(t){const n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.customVertexShaderID),n.push(t.customFragmentShaderID)),void 0!==t.defines)for(const e in t.defines)n.push(e),n.push(t.defines[e]);return!1===t.isRawShaderMaterial&&(S(n,t),x(n,t),n.push(e.outputEncoding)),n.push(t.customProgramCacheKey),n.join()}function S(e,t){e.push(t.precision),e.push(t.outputEncoding),e.push(t.envMapMode),e.push(t.envMapCubeUVHeight),e.push(t.combine),e.push(t.vertexUvs),e.push(t.fogExp2),e.push(t.sizeAttenuation),e.push(t.morphTargetsCount),e.push(t.morphAttributeCount),e.push(t.numDirLights),e.push(t.numPointLights),e.push(t.numSpotLights),e.push(t.numSpotLightMaps),e.push(t.numHemiLights),e.push(t.numRectAreaLights),e.push(t.numDirLightShadows),e.push(t.numPointLightShadows),e.push(t.numSpotLightShadows),e.push(t.numSpotLightShadowsWithMaps),e.push(t.shadowMapType),e.push(t.toneMapping),e.push(t.numClippingPlanes),e.push(t.numClipIntersection),e.push(t.depthPacking)}function x(e,t){l.disableAll(),t.isWebGL2&&l.enable(0),t.supportsVertexTextures&&l.enable(1),t.instancing&&l.enable(2),t.instancingColor&&l.enable(3),t.map&&l.enable(4),t.matcap&&l.enable(5),t.envMap&&l.enable(6),t.lightMap&&l.enable(7),t.aoMap&&l.enable(8),t.emissiveMap&&l.enable(9),t.bumpMap&&l.enable(10),t.normalMap&&l.enable(11),t.objectSpaceNormalMap&&l.enable(12),t.tangentSpaceNormalMap&&l.enable(13),t.clearcoat&&l.enable(14),t.clearcoatMap&&l.enable(15),t.clearcoatRoughnessMap&&l.enable(16),t.clearcoatNormalMap&&l.enable(17),t.iridescence&&l.enable(18),t.iridescenceMap&&l.enable(19),t.iridescenceThicknessMap&&l.enable(20),t.displacementMap&&l.enable(21),t.specularMap&&l.enable(22),t.roughnessMap&&l.enable(23),t.metalnessMap&&l.enable(24),t.gradientMap&&l.enable(25),t.alphaMap&&l.enable(26),t.alphaTest&&l.enable(27),t.vertexColors&&l.enable(28),t.vertexAlphas&&l.enable(29),t.vertexUvs&&l.enable(30),t.vertexTangents&&l.enable(31),t.uvsVertexOnly&&l.enable(32),e.push(l.mask),l.disableAll(),t.fog&&l.enable(0),t.useFog&&l.enable(1),t.flatShading&&l.enable(2),t.logarithmicDepthBuffer&&l.enable(3),t.skinning&&l.enable(4),t.morphTargets&&l.enable(5),t.morphNormals&&l.enable(6),t.morphColors&&l.enable(7),t.premultipliedAlpha&&l.enable(8),t.shadowMapEnabled&&l.enable(9),t.physicallyCorrectLights&&l.enable(10),t.doubleSided&&l.enable(11),t.flipSided&&l.enable(12),t.useDepthPacking&&l.enable(13),t.dithering&&l.enable(14),t.specularIntensityMap&&l.enable(15),t.specularColorMap&&l.enable(16),t.transmission&&l.enable(17),t.transmissionMap&&l.enable(18),t.thicknessMap&&l.enable(19),t.sheen&&l.enable(20),t.sheenColorMap&&l.enable(21),t.sheenRoughnessMap&&l.enable(22),t.decodeVideoTexture&&l.enable(23),t.opaque&&l.enable(24),e.push(l.mask)}function _(e){const t=v[e.type];let n;if(t){const e=Ns[t];n=Li.clone(e.uniforms)}else n=e.uniforms;return n}function C(t,n){let r;for(let e=0,i=c.length;e0?r.push(c):!0===o.transparent?i.push(c):n.push(c)}function l(e,t,o,s,l,u){const c=a(e,t,o,s,l,u);o.transmission>0?r.unshift(c):!0===o.transparent?i.unshift(c):n.unshift(c)}function u(e,t){n.length>1&&n.sort(e||tc),r.length>1&&r.sort(t||nc),i.length>1&&i.sort(t||nc)}function c(){for(let n=t,r=e.length;n=r.length?(i=new rc,r.push(i)):i=r[n],i}function n(){e=new WeakMap}return{get:t,dispose:n}}function oc(){const e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];let n;switch(t.type){case"DirectionalLight":n={direction:new Fn,color:new Mn};break;case"SpotLight":n={position:new Fn,direction:new Fn,color:new Mn,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new Fn,color:new Mn,distance:0,decay:0};break;case"HemisphereLight":n={direction:new Fn,skyColor:new Mn,groundColor:new Mn};break;case"RectAreaLight":n={color:new Mn,position:new Fn,halfWidth:new Fn,halfHeight:new Fn};break}return e[t.id]=n,n}}}function ac(){const e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];let n;switch(t.type){case"DirectionalLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new dn};break;case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new dn};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new dn,shadowCameraNear:1,shadowCameraFar:1e3};break}return e[t.id]=n,n}}}let sc=0;function lc(e,t){return(t.castShadow?2:0)-(e.castShadow?2:0)+(t.map?1:0)-(e.map?1:0)}function uc(e,t){const n=new oc,i=ac(),o={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0};for(let r=0;r<9;r++)o.probe.push(new Fn);const a=new Fn,s=new fr,l=new fr;function u(a,s){let l=0,u=0,c=0;for(let e=0;e<9;e++)o.probe[e].set(0,0,0);let d=0,p=0,h=0,f=0,m=0,g=0,v=0,y=0,b=0,w=0;a.sort(lc);const S=!0!==s?Math.PI:1;for(let e=0,t=a.length;e0&&(t.isWebGL2||!0===e.has("OES_texture_float_linear")?(o.rectAreaLTC1=Rs.LTC_FLOAT_1,o.rectAreaLTC2=Rs.LTC_FLOAT_2):!0===e.has("OES_texture_half_float_linear")?(o.rectAreaLTC1=Rs.LTC_HALF_1,o.rectAreaLTC2=Rs.LTC_HALF_2):r.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),o.ambient[0]=l,o.ambient[1]=u,o.ambient[2]=c;const x=o.hash;x.directionalLength===d&&x.pointLength===p&&x.spotLength===h&&x.rectAreaLength===f&&x.hemiLength===m&&x.numDirectionalShadows===g&&x.numPointShadows===v&&x.numSpotShadows===y&&x.numSpotMaps===b||(o.directional.length=d,o.spot.length=h,o.rectArea.length=f,o.point.length=p,o.hemi.length=m,o.directionalShadow.length=g,o.directionalShadowMap.length=g,o.pointShadow.length=v,o.pointShadowMap.length=v,o.spotShadow.length=y,o.spotShadowMap.length=y,o.directionalShadowMatrix.length=g,o.pointShadowMatrix.length=v,o.spotLightMatrix.length=y+b-w,o.spotLightMap.length=b,o.numSpotLightShadowsWithMaps=w,x.directionalLength=d,x.pointLength=p,x.spotLength=h,x.rectAreaLength=f,x.hemiLength=m,x.numDirectionalShadows=g,x.numPointShadows=v,x.numSpotShadows=y,x.numSpotMaps=b,o.version=sc++)}function c(e,t){let n=0,r=0,i=0,u=0,c=0;const d=t.matrixWorldInverse;for(let p=0,h=e.length;p=o.length?(a=new cc(e,t),o.push(a)):a=o[i],a}function i(){n=new WeakMap}return{get:r,dispose:i}}class pc extends Jr{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=Et,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class hc extends Jr{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.referencePosition=new Fn,this.nearDistance=1,this.farDistance=1e3,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.referencePosition.copy(e.referencePosition),this.nearDistance=e.nearDistance,this.farDistance=e.farDistance,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}const fc="void main() {\n\tgl_Position = vec4( position, 1.0 );\n}",mc="uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include \nvoid main() {\n\tconst float samples = float( VSM_SAMPLES );\n\tfloat mean = 0.0;\n\tfloat squared_mean = 0.0;\n\tfloat uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );\n\tfloat uvStart = samples <= 1.0 ? 0.0 : - 1.0;\n\tfor ( float i = 0.0; i < samples; i ++ ) {\n\t\tfloat uvOffset = uvStart + i * uvStride;\n\t\t#ifdef HORIZONTAL_PASS\n\t\t\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );\n\t\t\tmean += distribution.x;\n\t\t\tsquared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n\t\t#else\n\t\t\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );\n\t\t\tmean += depth;\n\t\t\tsquared_mean += depth * depth;\n\t\t#endif\n\t}\n\tmean = mean / samples;\n\tsquared_mean = squared_mean / samples;\n\tfloat std_dev = sqrt( squared_mean - mean * mean );\n\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}";function gc(e,t,n){let i=new Ji;const o=new dn,a=new dn,s=new On,l=new pc({depthPacking:Mt}),u=new hc,d={},g=n.maxTextureSize,y={0:f,1:h,2:m},b=new Fi({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new dn},radius:{value:4}},vertexShader:fc,fragmentShader:mc}),w=b.clone();w.defines.HORIZONTAL_PASS=1;const S=new hi;S.setAttribute("position",new ni(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const x=new ki(S,b),_=this;function C(n,r){const i=t.update(x);b.defines.VSM_SAMPLES!==n.blurSamples&&(b.defines.VSM_SAMPLES=n.blurSamples,w.defines.VSM_SAMPLES=n.blurSamples,b.needsUpdate=!0,w.needsUpdate=!0),null===n.mapPass&&(n.mapPass=new Pn(o.x,o.y)),b.uniforms.shadow_pass.value=n.map.texture,b.uniforms.resolution.value=n.mapSize,b.uniforms.radius.value=n.radius,e.setRenderTarget(n.mapPass),e.clear(),e.renderBufferDirect(r,null,i,b,x,null),w.uniforms.shadow_pass.value=n.mapPass.texture,w.uniforms.resolution.value=n.mapSize,w.uniforms.radius.value=n.radius,e.setRenderTarget(n.map),e.clear(),e.renderBufferDirect(r,null,i,w,x,null)}function E(t,n,r,i,o,a){let s=null;const c=!0===r.isPointLight?t.customDistanceMaterial:t.customDepthMaterial;if(void 0!==c)s=c;else if(s=!0===r.isPointLight?u:l,e.localClippingEnabled&&!0===n.clipShadows&&Array.isArray(n.clippingPlanes)&&0!==n.clippingPlanes.length||n.displacementMap&&0!==n.displacementScale||n.alphaMap&&n.alphaTest>0||n.map&&n.alphaTest>0){const e=s.uuid,t=n.uuid;let r=d[e];void 0===r&&(r={},d[e]=r);let i=r[t];void 0===i&&(i=s.clone(),r[t]=i),s=i}return s.visible=n.visible,s.wireframe=n.wireframe,s.side=a===p?null!==n.shadowSide?n.shadowSide:n.side:null!==n.shadowSide?n.shadowSide:y[n.side],s.alphaMap=n.alphaMap,s.alphaTest=n.alphaTest,s.map=n.map,s.clipShadows=n.clipShadows,s.clippingPlanes=n.clippingPlanes,s.clipIntersection=n.clipIntersection,s.displacementMap=n.displacementMap,s.displacementScale=n.displacementScale,s.displacementBias=n.displacementBias,s.wireframeLinewidth=n.wireframeLinewidth,s.linewidth=n.linewidth,!0===r.isPointLight&&!0===s.isMeshDistanceMaterial&&(s.referencePosition.setFromMatrixPosition(r.matrixWorld),s.nearDistance=i,s.farDistance=o),s}function M(n,r,o,a,s){if(!1===n.visible)return;const l=n.layers.test(r.layers);if(l&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&s===p)&&(!n.frustumCulled||i.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(o.matrixWorldInverse,n.matrixWorld);const r=t.update(n),i=n.material;if(Array.isArray(i)){const t=r.groups;for(let l=0,u=t.length;lg||o.y>g)&&(o.x>g&&(a.x=Math.floor(g/d.x),o.x=a.x*d.x,c.mapSize.x=a.x),o.y>g&&(a.y=Math.floor(g/d.y),o.y=a.y*d.y,c.mapSize.y=a.y)),null===c.map){const e=this.type!==p?{minFilter:de,magFilter:de}:{};c.map=new Pn(o.x,o.y,e),c.map.texture.name=u.name+".shadowMap",c.camera.updateProjectionMatrix()}e.setRenderTarget(c.map),e.clear();const m=c.getViewportCount();for(let e=0;e=1):-1!==ge.indexOf("OpenGL ES")&&(me=parseFloat(/^OpenGL ES (\d)/.exec(ge)[1]),fe=me>=2);let ve=null,ye={};const be=e.getParameter(3088),we=e.getParameter(2978),Se=(new On).fromArray(be),xe=(new On).fromArray(we);function _e(t,n,r){const i=new Uint8Array(4),o=e.createTexture();e.bindTexture(t,o),e.texParameteri(t,10241,9728),e.texParameteri(t,10240,9728);for(let a=0;ai||e.height>i)&&(o=i/Math.max(e.width,e.height)),o<1||!0===t){if("undefined"!==typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!==typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!==typeof ImageBitmap&&e instanceof ImageBitmap){const i=t?an:Math.floor,a=i(o*e.width),s=i(o*e.height);void 0===g&&(g=b(a,s));const l=n?b(a,s):g;l.width=a,l.height=s;const u=l.getContext("2d");return u.drawImage(e,0,0,a,s),r.warn("THREE.WebGLRenderer: Texture has been resized from ("+e.width+"x"+e.height+") to ("+a+"x"+s+")."),l}return"data"in e&&r.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+e.width+"x"+e.height+")."),e}return e}function S(e){return rn(e.width)&&rn(e.height)}function x(e){return!l&&(e.wrapS!==ue||e.wrapT!==ue||e.minFilter!==de&&e.minFilter!==fe)}function _(e,t){return e.generateMipmaps&&t&&e.minFilter!==de&&e.minFilter!==fe}function C(t){e.generateMipmap(t)}function E(n,i,o,a,s=!1){if(!1===l)return i;if(null!==n){if(void 0!==e[n])return e[n];r.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+n+"'")}let u=i;return 6403===i&&(5126===o&&(u=33326),5131===o&&(u=33325),5121===o&&(u=33321)),33319===i&&(5126===o&&(u=33328),5131===o&&(u=33327),5121===o&&(u=33323)),6408===i&&(5126===o&&(u=34836),5131===o&&(u=34842),5121===o&&(u=a===Ct&&!1===s?35907:32856),32819===o&&(u=32854),32820===o&&(u=32855)),33325!==u&&33326!==u&&33327!==u&&33328!==u&&34842!==u&&34836!==u||t.get("EXT_color_buffer_float"),u}function M(e,t,n){return!0===_(e,n)||e.isFramebufferTexture&&e.minFilter!==de&&e.minFilter!==fe?Math.log2(Math.max(t.width,t.height))+1:void 0!==e.mipmaps&&e.mipmaps.length>0?e.mipmaps.length:e.isCompressedTexture&&Array.isArray(e.image)?t.mipmaps.length:1}function k(e){return e===de||e===pe||e===he?9728:9729}function T(e){const t=e.target;t.removeEventListener("dispose",T),U(t),t.isVideoTexture&&m.delete(t)}function A(e){const t=e.target;t.removeEventListener("dispose",A),D(t)}function U(e){const t=i.get(e);if(void 0===t.__webglInit)return;const n=e.source,r=v.get(n);if(r){const i=r[t.__cacheKey];i.usedTimes--,0===i.usedTimes&&I(e),0===Object.keys(r).length&&v.delete(n)}i.remove(e)}function I(t){const n=i.get(t);e.deleteTexture(n.__webglTexture);const r=t.source,o=v.get(r);delete o[n.__cacheKey],s.memory.textures--}function D(t){const n=t.texture,r=i.get(t),o=i.get(n);if(void 0!==o.__webglTexture&&(e.deleteTexture(o.__webglTexture),s.memory.textures--),t.depthTexture&&t.depthTexture.dispose(),t.isWebGLCubeRenderTarget)for(let i=0;i<6;i++)e.deleteFramebuffer(r.__webglFramebuffer[i]),r.__webglDepthbuffer&&e.deleteRenderbuffer(r.__webglDepthbuffer[i]);else{if(e.deleteFramebuffer(r.__webglFramebuffer),r.__webglDepthbuffer&&e.deleteRenderbuffer(r.__webglDepthbuffer),r.__webglMultisampledFramebuffer&&e.deleteFramebuffer(r.__webglMultisampledFramebuffer),r.__webglColorRenderbuffer)for(let t=0;t=u&&r.warn("THREE.WebGLTextures: Trying to use "+e+" texture units while this GPU supports only "+u),O+=1,e}function R(e){const t=[];return t.push(e.wrapS),t.push(e.wrapT),t.push(e.wrapR||0),t.push(e.magFilter),t.push(e.minFilter),t.push(e.anisotropy),t.push(e.internalFormat),t.push(e.format),t.push(e.type),t.push(e.generateMipmaps),t.push(e.premultiplyAlpha),t.push(e.flipY),t.push(e.unpackAlignment),t.push(e.encoding),t.join()}function N(e,t){const o=i.get(e);if(e.isVideoTexture&&re(e),!1===e.isRenderTargetTexture&&e.version>0&&o.__version!==e.version){const n=e.image;if(null===n)r.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else{if(!1!==n.complete)return void $(o,e,t);r.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete")}}n.bindTexture(3553,o.__webglTexture,33984+t)}function F(e,t){const r=i.get(e);e.version>0&&r.__version!==e.version?$(r,e,t):n.bindTexture(35866,r.__webglTexture,33984+t)}function z(e,t){const r=i.get(e);e.version>0&&r.__version!==e.version?$(r,e,t):n.bindTexture(32879,r.__webglTexture,33984+t)}function B(e,t){const r=i.get(e);e.version>0&&r.__version!==e.version?q(r,e,t):n.bindTexture(34067,r.__webglTexture,33984+t)}const H={[le]:10497,[ue]:33071,[ce]:33648},j={[de]:9728,[pe]:9984,[he]:9986,[fe]:9729,[me]:9985,[ge]:9987};function V(n,a,s){if(s?(e.texParameteri(n,10242,H[a.wrapS]),e.texParameteri(n,10243,H[a.wrapT]),32879!==n&&35866!==n||e.texParameteri(n,32882,H[a.wrapR]),e.texParameteri(n,10240,j[a.magFilter]),e.texParameteri(n,10241,j[a.minFilter])):(e.texParameteri(n,10242,33071),e.texParameteri(n,10243,33071),32879!==n&&35866!==n||e.texParameteri(n,32882,33071),a.wrapS===ue&&a.wrapT===ue||r.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),e.texParameteri(n,10240,k(a.magFilter)),e.texParameteri(n,10241,k(a.minFilter)),a.minFilter!==de&&a.minFilter!==fe&&r.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),!0===t.has("EXT_texture_filter_anisotropic")){const r=t.get("EXT_texture_filter_anisotropic");if(a.magFilter===de)return;if(a.minFilter!==he&&a.minFilter!==ge)return;if(a.type===_e&&!1===t.has("OES_texture_float_linear"))return;if(!1===l&&a.type===Ce&&!1===t.has("OES_texture_half_float_linear"))return;(a.anisotropy>1||i.get(a).__currentAnisotropy)&&(e.texParameterf(n,r.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(a.anisotropy,o.getMaxAnisotropy())),i.get(a).__currentAnisotropy=a.anisotropy)}}function W(t,n){let r=!1;void 0===t.__webglInit&&(t.__webglInit=!0,n.addEventListener("dispose",T));const i=n.source;let o=v.get(i);void 0===o&&(o={},v.set(i,o));const a=R(n);if(a!==t.__cacheKey){void 0===o[a]&&(o[a]={texture:e.createTexture(),usedTimes:0},s.memory.textures++,r=!0),o[a].usedTimes++;const i=o[t.__cacheKey];void 0!==i&&(o[t.__cacheKey].usedTimes--,0===i.usedTimes&&I(n)),t.__cacheKey=a,t.__webglTexture=o[a].texture}return r}function $(t,o,s){let u=3553;(o.isDataArrayTexture||o.isCompressedArrayTexture)&&(u=35866),o.isData3DTexture&&(u=32879);const c=W(t,o),p=o.source;n.bindTexture(u,t.__webglTexture,33984+s);const h=i.get(p);if(p.version!==h.__version||!0===c){n.activeTexture(33984+s),e.pixelStorei(37440,o.flipY),e.pixelStorei(37441,o.premultiplyAlpha),e.pixelStorei(3317,o.unpackAlignment),e.pixelStorei(37443,0);const t=x(o)&&!1===S(o.image);let i=w(o.image,t,!1,d);i=ie(o,i);const f=S(i)||l,m=a.convert(o.format,o.encoding);let g,v=a.convert(o.type),y=E(o.internalFormat,m,v,o.encoding,o.isVideoTexture);V(u,o,f);const b=o.mipmaps,k=l&&!0!==o.isVideoTexture,T=void 0===h.__version||!0===c,A=M(o,i,f);if(o.isDepthTexture)y=6402,l?y=o.type===_e?36012:o.type===xe?33190:o.type===ke?35056:33189:o.type===_e&&r.error("WebGLRenderer: Floating point depth texture requires WebGL2."),o.format===Oe&&6402===y&&o.type!==we&&o.type!==xe&&(r.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),o.type=xe,v=a.convert(o.type)),o.format===Pe&&6402===y&&(y=34041,o.type!==ke&&(r.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),o.type=ke,v=a.convert(o.type))),T&&(k?n.texStorage2D(3553,1,y,i.width,i.height):n.texImage2D(3553,0,y,i.width,i.height,0,m,v,null));else if(o.isDataTexture)if(b.length>0&&f){k&&T&&n.texStorage2D(3553,A,y,b[0].width,b[0].height);for(let e=0,t=b.length;e>=1,t>>=1}}else if(b.length>0&&f){k&&T&&n.texStorage2D(3553,A,y,b[0].width,b[0].height);for(let e=0,t=b.length;e0&&T++,n.texStorage2D(34067,T,y,h[0].width,h[0].height));for(let e=0;e<6;e++)if(i){b?n.texSubImage2D(34069+e,0,0,0,h[e].width,h[e].height,g,v,h[e].data):n.texImage2D(34069+e,0,y,h[e].width,h[e].height,0,g,v,h[e].data);for(let t=0;t=34069&&l<=34074)&&e.framebufferTexture2D(36160,s,l,i.get(o).__webglTexture,0),n.bindFramebuffer(36160,null)}function Z(t,n,r){if(e.bindRenderbuffer(36161,t),n.depthBuffer&&!n.stencilBuffer){let i=33189;if(r||ne(n)){const t=n.depthTexture;t&&t.isDepthTexture&&(t.type===_e?i=36012:t.type===xe&&(i=33190));const r=te(n);ne(n)?h.renderbufferStorageMultisampleEXT(36161,r,i,n.width,n.height):e.renderbufferStorageMultisample(36161,r,i,n.width,n.height)}else e.renderbufferStorage(36161,i,n.width,n.height);e.framebufferRenderbuffer(36160,36096,36161,t)}else if(n.depthBuffer&&n.stencilBuffer){const i=te(n);r&&!1===ne(n)?e.renderbufferStorageMultisample(36161,i,35056,n.width,n.height):ne(n)?h.renderbufferStorageMultisampleEXT(36161,i,35056,n.width,n.height):e.renderbufferStorage(36161,34041,n.width,n.height),e.framebufferRenderbuffer(36160,33306,36161,t)}else{const t=!0===n.isWebGLMultipleRenderTargets?n.texture:[n.texture];for(let i=0;i0&&!1===ne(t)){const r=h?u:[u];c.__webglMultisampledFramebuffer=e.createFramebuffer(),c.__webglColorRenderbuffer=[],n.bindFramebuffer(36160,c.__webglMultisampledFramebuffer);for(let n=0;n0&&!1===ne(t)){const r=t.isWebGLMultipleRenderTargets?t.texture:[t.texture],o=t.width,a=t.height;let s=16384;const l=[],u=t.stencilBuffer?33306:36096,c=i.get(t),d=!0===t.isWebGLMultipleRenderTargets;if(d)for(let t=0;t0&&!0===t.has("WEBGL_multisampled_render_to_texture")&&!1!==n.__useRenderToTexture}function re(e){const t=s.render.frame;m.get(e)!==t&&(m.set(e,t),e.update())}function ie(e,n){const i=e.encoding,o=e.format,a=e.type;return!0===e.isCompressedTexture||!0===e.isVideoTexture||e.format===Lt||i!==_t&&(i===Ct?!1===l?!0===t.has("EXT_sRGB")&&o===Ue?(e.format=Lt,e.minFilter=fe,e.generateMipmaps=!1):n=Tn.sRGBToLinear(n):o===Ue&&a===ve||r.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):r.error("THREE.WebGLTextures: Unsupported texture encoding:",i)),n}this.allocateTextureUnit=L,this.resetTextureUnits=P,this.setTexture2D=N,this.setTexture2DArray=F,this.setTexture3D=z,this.setTextureCube=B,this.rebindTextures=X,this.setupRenderTarget=J,this.updateRenderTargetMipmap=Q,this.updateMultisampleRenderTarget=ee,this.setupDepthRenderbuffer=K,this.setupFrameBufferTexture=G,this.useMultisampledRTT=ne}function bc(e,t,n){const i=n.isWebGL2;function o(n,o=null){let a;if(n===ve)return 5121;if(n===Ee)return 32819;if(n===Me)return 32820;if(n===ye)return 5120;if(n===be)return 5122;if(n===we)return 5123;if(n===Se)return 5124;if(n===xe)return 5125;if(n===_e)return 5126;if(n===Ce)return i?5131:(a=t.get("OES_texture_half_float"),null!==a?a.HALF_FLOAT_OES:null);if(n===Te)return 6406;if(n===Ue)return 6408;if(n===Ie)return 6409;if(n===De)return 6410;if(n===Oe)return 6402;if(n===Pe)return 34041;if(n===Ae)return r.warn("THREE.WebGLRenderer: THREE.RGBFormat has been removed. Use THREE.RGBAFormat instead. https://github.com/mrdoob/three.js/pull/23228"),6408;if(n===Lt)return a=t.get("EXT_sRGB"),null!==a?a.SRGB_ALPHA_EXT:null;if(n===Le)return 6403;if(n===Re)return 36244;if(n===Ne)return 33319;if(n===Fe)return 33320;if(n===ze)return 36249;if(n===Be||n===He||n===je||n===Ve)if(o===Ct){if(a=t.get("WEBGL_compressed_texture_s3tc_srgb"),null===a)return null;if(n===Be)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===He)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===je)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===Ve)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else{if(a=t.get("WEBGL_compressed_texture_s3tc"),null===a)return null;if(n===Be)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===He)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===je)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===Ve)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}if(n===We||n===$e||n===qe||n===Ge){if(a=t.get("WEBGL_compressed_texture_pvrtc"),null===a)return null;if(n===We)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===$e)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===qe)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===Ge)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(n===Ze)return a=t.get("WEBGL_compressed_texture_etc1"),null!==a?a.COMPRESSED_RGB_ETC1_WEBGL:null;if(n===Ye||n===Ke){if(a=t.get("WEBGL_compressed_texture_etc"),null===a)return null;if(n===Ye)return o===Ct?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(n===Ke)return o===Ct?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}if(n===Xe||n===Je||n===Qe||n===et||n===tt||n===nt||n===rt||n===it||n===ot||n===at||n===st||n===lt||n===ut||n===ct){if(a=t.get("WEBGL_compressed_texture_astc"),null===a)return null;if(n===Xe)return o===Ct?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(n===Je)return o===Ct?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(n===Qe)return o===Ct?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(n===et)return o===Ct?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(n===tt)return o===Ct?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(n===nt)return o===Ct?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(n===rt)return o===Ct?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(n===it)return o===Ct?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(n===ot)return o===Ct?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(n===at)return o===Ct?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(n===st)return o===Ct?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(n===lt)return o===Ct?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(n===ut)return o===Ct?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(n===ct)return o===Ct?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}if(n===dt){if(a=t.get("EXT_texture_compression_bptc"),null===a)return null;if(n===dt)return o===Ct?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT}return n===ke?i?34042:(a=t.get("WEBGL_depth_texture"),null!==a?a.UNSIGNED_INT_24_8_WEBGL:null):void 0!==e[n]?e[n]:null}return{convert:o}}class wc extends Bi{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class Sc extends zr{constructor(){super(),this.isGroup=!0,this.type="Group"}}const xc={type:"move"};class _c{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return null===this._hand&&(this._hand=new Sc,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return null===this._targetRay&&(this._targetRay=new Sc,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new Fn,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new Fn),this._targetRay}getGripSpace(){return null===this._grip&&(this._grip=new Sc,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new Fn,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new Fn),this._grip}dispatchEvent(e){return null!==this._targetRay&&this._targetRay.dispatchEvent(e),null!==this._grip&&this._grip.dispatchEvent(e),null!==this._hand&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const n of e.hand.values())this._getHandJoint(t,n)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),null!==this._targetRay&&(this._targetRay.visible=!1),null!==this._grip&&(this._grip.visible=!1),null!==this._hand&&(this._hand.visible=!1),this}update(e,t,n){let r=null,i=null,o=null;const a=this._targetRay,s=this._grip,l=this._hand;if(e&&"visible-blurred"!==t.session.visibilityState){if(l&&e.hand){o=!0;for(const o of e.hand.values()){const e=t.getJointPose(o,n),r=this._getHandJoint(l,o);null!==e&&(r.matrix.fromArray(e.transform.matrix),r.matrix.decompose(r.position,r.rotation,r.scale),r.jointRadius=e.radius),r.visible=null!==e}const r=l.joints["index-finger-tip"],i=l.joints["thumb-tip"],a=r.position.distanceTo(i.position),s=.02,u=.005;l.inputState.pinching&&a>s+u?(l.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!l.inputState.pinching&&a<=s-u&&(l.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else null!==s&&e.gripSpace&&(i=t.getPose(e.gripSpace,n),null!==i&&(s.matrix.fromArray(i.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),i.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(i.linearVelocity)):s.hasLinearVelocity=!1,i.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(i.angularVelocity)):s.hasAngularVelocity=!1));null!==a&&(r=t.getPose(e.targetRaySpace,n),null===r&&null!==i&&(r=i),null!==r&&(a.matrix.fromArray(r.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),r.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(r.linearVelocity)):a.hasLinearVelocity=!1,r.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(r.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(xc)))}return null!==a&&(a.visible=null!==r),null!==s&&(s.visible=null!==i),null!==l&&(l.visible=null!==o),this}_getHandJoint(e,t){if(void 0===e.joints[t.jointName]){const n=new Sc;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}}class Cc extends Dn{constructor(e,t,n,r,i,o,a,s,l,u){if(u=void 0!==u?u:Oe,u!==Oe&&u!==Pe)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===n&&u===Oe&&(n=xe),void 0===n&&u===Pe&&(n=ke),super(null,r,i,o,a,s,u,n,l),this.isDepthTexture=!0,this.image={width:e,height:t},this.magFilter=void 0!==a?a:de,this.minFilter=void 0!==s?s:de,this.flipY=!1,this.generateMipmaps=!1}}class Ec extends Rt{constructor(e,t){super();const n=this;let i=null,o=1,a=null,s="local-floor",l=null,u=null,c=null,d=null,p=null,h=null;const f=t.getContextAttributes();let m=null,g=null;const v=[],y=[],b=new Set,w=new Map,S=new Bi;S.layers.enable(1),S.viewport=new On;const x=new Bi;x.layers.enable(2),x.viewport=new On;const _=[S,x],C=new wc;C.layers.enable(1),C.layers.enable(2);let E=null,M=null;function k(e){const t=y.indexOf(e.inputSource);if(-1===t)return;const n=v[t];void 0!==n&&n.dispatchEvent({type:e.type,data:e.inputSource})}function T(){i.removeEventListener("select",k),i.removeEventListener("selectstart",k),i.removeEventListener("selectend",k),i.removeEventListener("squeeze",k),i.removeEventListener("squeezestart",k),i.removeEventListener("squeezeend",k),i.removeEventListener("end",T),i.removeEventListener("inputsourceschange",A);for(let e=0;e=0&&(y[r]=null,v[r].disconnect(n))}for(let t=0;t=y.length){y.push(n),r=e;break}if(null===y[e]){y[e]=n,r=e;break}}if(-1===r)break}const i=v[r];i&&i.connect(n)}}this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(e){let t=v[e];return void 0===t&&(t=new _c,v[e]=t),t.getTargetRaySpace()},this.getControllerGrip=function(e){let t=v[e];return void 0===t&&(t=new _c,v[e]=t),t.getGripSpace()},this.getHand=function(e){let t=v[e];return void 0===t&&(t=new _c,v[e]=t),t.getHandSpace()},this.setFramebufferScaleFactor=function(e){o=e,!0===n.isPresenting&&r.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(e){s=e,!0===n.isPresenting&&r.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return l||a},this.setReferenceSpace=function(e){l=e},this.getBaseLayer=function(){return null!==d?d:p},this.getBinding=function(){return c},this.getFrame=function(){return h},this.getSession=function(){return i},this.setSession=async function(r){if(i=r,null!==i){if(m=e.getRenderTarget(),i.addEventListener("select",k),i.addEventListener("selectstart",k),i.addEventListener("selectend",k),i.addEventListener("squeeze",k),i.addEventListener("squeezestart",k),i.addEventListener("squeezeend",k),i.addEventListener("end",T),i.addEventListener("inputsourceschange",A),!0!==f.xrCompatible&&await t.makeXRCompatible(),void 0===i.renderState.layers||!1===e.capabilities.isWebGL2){const n={antialias:void 0!==i.renderState.layers||f.antialias,alpha:f.alpha,depth:f.depth,stencil:f.stencil,framebufferScaleFactor:o};p=new XRWebGLLayer(i,t,n),i.updateRenderState({baseLayer:p}),g=new Pn(p.framebufferWidth,p.framebufferHeight,{format:Ue,type:ve,encoding:e.outputEncoding,stencilBuffer:f.stencil})}else{let n=null,r=null,a=null;f.depth&&(a=f.stencil?35056:33190,n=f.stencil?Pe:Oe,r=f.stencil?ke:xe);const s={colorFormat:32856,depthFormat:a,scaleFactor:o};c=new XRWebGLBinding(i,t),d=c.createProjectionLayer(s),i.updateRenderState({layers:[d]}),g=new Pn(d.textureWidth,d.textureHeight,{format:Ue,type:ve,depthTexture:new Cc(d.textureWidth,d.textureHeight,r,void 0,void 0,void 0,void 0,void 0,void 0,n),stencilBuffer:f.stencil,encoding:e.outputEncoding,samples:f.antialias?4:0});const l=e.properties.get(g);l.__ignoreDepthValues=d.ignoreDepthValues}g.isXRRenderTarget=!0,this.setFoveation(1),l=null,a=await i.requestReferenceSpace(s),R.setContext(i),R.start(),n.isPresenting=!0,n.dispatchEvent({type:"sessionstart"})}};const U=new Fn,I=new Fn;function D(e,t,n){U.setFromMatrixPosition(t.matrixWorld),I.setFromMatrixPosition(n.matrixWorld);const r=U.distanceTo(I),i=t.projectionMatrix.elements,o=n.projectionMatrix.elements,a=i[14]/(i[10]-1),s=i[14]/(i[10]+1),l=(i[9]+1)/i[5],u=(i[9]-1)/i[5],c=(i[8]-1)/i[0],d=(o[8]+1)/o[0],p=a*c,h=a*d,f=r/(-c+d),m=f*-c;t.matrixWorld.decompose(e.position,e.quaternion,e.scale),e.translateX(m),e.translateZ(f),e.matrixWorld.compose(e.position,e.quaternion,e.scale),e.matrixWorldInverse.copy(e.matrixWorld).invert();const g=a+f,v=s+f,y=p-m,b=h+(r-m),w=l*s/v*g,S=u*s/v*g;e.projectionMatrix.makePerspective(y,b,w,S,g,v)}function O(e,t){null===t?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.copy(e.matrixWorld).invert()}this.updateCamera=function(e){if(null===i)return;C.near=x.near=S.near=e.near,C.far=x.far=S.far=e.far,E===C.near&&M===C.far||(i.updateRenderState({depthNear:C.near,depthFar:C.far}),E=C.near,M=C.far);const t=e.parent,n=C.cameras;O(C,t);for(let i=0;ie&&(w.set(t,t.lastChangedTime),n.dispatchEvent({type:"planechanged",data:t}))}else b.add(t),w.set(t,r.lastChangedTime),n.dispatchEvent({type:"planeadded",data:t})}h=null}const R=new Qi;R.setAnimationLoop(L),this.setAnimationLoop=function(e){P=e},this.dispose=function(){}}}function Mc(e,t){function n(t,n){n.color.getRGB(t.fogColor.value,Pi(e)),n.isFog?(t.fogNear.value=n.near,t.fogFar.value=n.far):n.isFogExp2&&(t.fogDensity.value=n.density)}function r(e,t,n,r,f){t.isMeshBasicMaterial||t.isMeshLambertMaterial?i(e,t):t.isMeshToonMaterial?(i(e,t),c(e,t)):t.isMeshPhongMaterial?(i(e,t),u(e,t)):t.isMeshStandardMaterial?(i(e,t),d(e,t),t.isMeshPhysicalMaterial&&p(e,t,f)):t.isMeshMatcapMaterial?(i(e,t),h(e,t)):t.isMeshDepthMaterial?i(e,t):t.isMeshDistanceMaterial?(i(e,t),m(e,t)):t.isMeshNormalMaterial?i(e,t):t.isLineBasicMaterial?(o(e,t),t.isLineDashedMaterial&&a(e,t)):t.isPointsMaterial?s(e,t,n,r):t.isSpriteMaterial?l(e,t):t.isShadowMaterial?(e.color.value.copy(t.color),e.opacity.value=t.opacity):t.isShaderMaterial&&(t.uniformsNeedUpdate=!1)}function i(n,r){n.opacity.value=r.opacity,r.color&&n.diffuse.value.copy(r.color),r.emissive&&n.emissive.value.copy(r.emissive).multiplyScalar(r.emissiveIntensity),r.map&&(n.map.value=r.map),r.alphaMap&&(n.alphaMap.value=r.alphaMap),r.bumpMap&&(n.bumpMap.value=r.bumpMap,n.bumpScale.value=r.bumpScale,r.side===f&&(n.bumpScale.value*=-1)),r.displacementMap&&(n.displacementMap.value=r.displacementMap,n.displacementScale.value=r.displacementScale,n.displacementBias.value=r.displacementBias),r.emissiveMap&&(n.emissiveMap.value=r.emissiveMap),r.normalMap&&(n.normalMap.value=r.normalMap,n.normalScale.value.copy(r.normalScale),r.side===f&&n.normalScale.value.negate()),r.specularMap&&(n.specularMap.value=r.specularMap),r.alphaTest>0&&(n.alphaTest.value=r.alphaTest);const i=t.get(r).envMap;if(i&&(n.envMap.value=i,n.flipEnvMap.value=i.isCubeTexture&&!1===i.isRenderTargetTexture?-1:1,n.reflectivity.value=r.reflectivity,n.ior.value=r.ior,n.refractionRatio.value=r.refractionRatio),r.lightMap){n.lightMap.value=r.lightMap;const t=!0!==e.physicallyCorrectLights?Math.PI:1;n.lightMapIntensity.value=r.lightMapIntensity*t}let o,a;r.aoMap&&(n.aoMap.value=r.aoMap,n.aoMapIntensity.value=r.aoMapIntensity),r.map?o=r.map:r.specularMap?o=r.specularMap:r.displacementMap?o=r.displacementMap:r.normalMap?o=r.normalMap:r.bumpMap?o=r.bumpMap:r.roughnessMap?o=r.roughnessMap:r.metalnessMap?o=r.metalnessMap:r.alphaMap?o=r.alphaMap:r.emissiveMap?o=r.emissiveMap:r.clearcoatMap?o=r.clearcoatMap:r.clearcoatNormalMap?o=r.clearcoatNormalMap:r.clearcoatRoughnessMap?o=r.clearcoatRoughnessMap:r.iridescenceMap?o=r.iridescenceMap:r.iridescenceThicknessMap?o=r.iridescenceThicknessMap:r.specularIntensityMap?o=r.specularIntensityMap:r.specularColorMap?o=r.specularColorMap:r.transmissionMap?o=r.transmissionMap:r.thicknessMap?o=r.thicknessMap:r.sheenColorMap?o=r.sheenColorMap:r.sheenRoughnessMap&&(o=r.sheenRoughnessMap),void 0!==o&&(o.isWebGLRenderTarget&&(o=o.texture),!0===o.matrixAutoUpdate&&o.updateMatrix(),n.uvTransform.value.copy(o.matrix)),r.aoMap?a=r.aoMap:r.lightMap&&(a=r.lightMap),void 0!==a&&(a.isWebGLRenderTarget&&(a=a.texture),!0===a.matrixAutoUpdate&&a.updateMatrix(),n.uv2Transform.value.copy(a.matrix))}function o(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity}function a(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}function s(e,t,n,r){let i;e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*n,e.scale.value=.5*r,t.map&&(e.map.value=t.map),t.alphaMap&&(e.alphaMap.value=t.alphaMap),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest),t.map?i=t.map:t.alphaMap&&(i=t.alphaMap),void 0!==i&&(!0===i.matrixAutoUpdate&&i.updateMatrix(),e.uvTransform.value.copy(i.matrix))}function l(e,t){let n;e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map),t.alphaMap&&(e.alphaMap.value=t.alphaMap),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest),t.map?n=t.map:t.alphaMap&&(n=t.alphaMap),void 0!==n&&(!0===n.matrixAutoUpdate&&n.updateMatrix(),e.uvTransform.value.copy(n.matrix))}function u(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4)}function c(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap)}function d(e,n){e.roughness.value=n.roughness,e.metalness.value=n.metalness,n.roughnessMap&&(e.roughnessMap.value=n.roughnessMap),n.metalnessMap&&(e.metalnessMap.value=n.metalnessMap);const r=t.get(n).envMap;r&&(e.envMapIntensity.value=n.envMapIntensity)}function p(e,t,n){e.ior.value=t.ior,t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap)),t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap),t.clearcoatNormalMap&&(e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),e.clearcoatNormalMap.value=t.clearcoatNormalMap,t.side===f&&e.clearcoatNormalScale.value.negate())),t.iridescence>0&&(e.iridescence.value=t.iridescence,e.iridescenceIOR.value=t.iridescenceIOR,e.iridescenceThicknessMinimum.value=t.iridescenceThicknessRange[0],e.iridescenceThicknessMaximum.value=t.iridescenceThicknessRange[1],t.iridescenceMap&&(e.iridescenceMap.value=t.iridescenceMap),t.iridescenceThicknessMap&&(e.iridescenceThicknessMap.value=t.iridescenceThicknessMap)),t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=n.texture,e.transmissionSamplerSize.value.set(n.width,n.height),t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor)),e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap),t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap)}function h(e,t){t.matcap&&(e.matcap.value=t.matcap)}function m(e,t){e.referencePosition.value.copy(t.referencePosition),e.nearDistance.value=t.nearDistance,e.farDistance.value=t.farDistance}return{refreshFogUniforms:n,refreshMaterialUniforms:r}}function kc(e,t,n,i){let o={},a={},s=[];const l=n.isWebGL2?e.getParameter(35375):0;function u(e,t){const n=t.program;i.uniformBlockBinding(e,n)}function c(e,n){let r=o[e.id];void 0===r&&(m(e),r=d(e),o[e.id]=r,e.addEventListener("dispose",v));const s=n.program;i.updateUBOMapping(e,s);const l=t.render.frame;a[e.id]!==l&&(h(e),a[e.id]=l)}function d(t){const n=p();t.__bindingPointIndex=n;const r=e.createBuffer(),i=t.__size,o=t.usage;return e.bindBuffer(35345,r),e.bufferData(35345,i,o),e.bindBuffer(35345,null),e.bindBufferBase(35345,n,r),r}function p(){for(let e=0;e0){i=n%r;const t=r-i;0!==i&&t-a.boundary<0&&(n+=r-i,e.__offset=n)}n+=a.storage}return i=n%r,i>0&&(n+=r-i),e.__size=n,e.__cache={},this}function g(e){const t={boundary:0,storage:0};return"number"===typeof e?(t.boundary=4,t.storage=4):e.isVector2?(t.boundary=8,t.storage=8):e.isVector3||e.isColor?(t.boundary=16,t.storage=12):e.isVector4?(t.boundary=16,t.storage=16):e.isMatrix3?(t.boundary=48,t.storage=48):e.isMatrix4?(t.boundary=64,t.storage=64):e.isTexture?r.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):r.warn("THREE.WebGLRenderer: Unsupported uniform value type.",e),t}function v(t){const n=t.target;n.removeEventListener("dispose",v);const r=s.indexOf(n.__bindingPointIndex);s.splice(r,1),e.deleteBuffer(o[n.id]),delete o[n.id],delete a[n.id]}function y(){for(const t in o)e.deleteBuffer(o[t]);s=[],o={},a={}}return{bind:u,update:c,dispose:y}}function Tc(){const e=mn("canvas");return e.style.display="block",e}function Ac(e={}){this.isWebGLRenderer=!0;const t=void 0!==e.canvas?e.canvas:Tc(),n=void 0!==e.context?e.context:null,o=void 0===e.depth||e.depth,a=void 0===e.stencil||e.stencil,s=void 0!==e.antialias&&e.antialias,l=void 0===e.premultipliedAlpha||e.premultipliedAlpha,u=void 0!==e.preserveDrawingBuffer&&e.preserveDrawingBuffer,c=void 0!==e.powerPreference?e.powerPreference:"default",d=void 0!==e.failIfMajorPerformanceCaveat&&e.failIfMajorPerformanceCaveat;let p;p=null!==n?n.getContextAttributes().alpha:void 0!==e.alpha&&e.alpha;let m=null,v=null;const y=[],b=[];this.domElement=t,this.debug={checkShaderErrors:!0},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.outputEncoding=_t,this.physicallyCorrectLights=!1,this.toneMapping=K,this.toneMappingExposure=1;const w=this;let S=!1,x=0,_=0,C=null,E=-1,M=null;const k=new On,T=new On;let A=null,U=t.width,I=t.height,D=1,O=null,P=null;const L=new On(0,0,U,I),R=new On(0,0,U,I);let N=!1;const F=new Ji;let z=!1,B=!1,H=null;const j=new fr,V=new dn,W=new Fn,$={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function q(){return null===C?D:1}let G,Z,Y,X,J,Q,ee,te,ne,re,ie,oe,ae,se,le,ue,ce,de,pe,he,fe,me,ye,be,we=n;function Se(e,n){for(let r=0;r0&&Be(i,t,n),r&&Y.viewport(k.copy(r)),i.length>0&&He(i,t,n),o.length>0&&He(o,t,n),a.length>0&&He(a,t,n),Y.buffers.depth.setTest(!0),Y.buffers.depth.setMask(!0),Y.buffers.color.setMask(!0),Y.setPolygonOffset(!1)}function Be(e,t,n){const r=Z.isWebGL2;null===H&&(H=new Pn(1,1,{generateMipmaps:!0,type:G.has("EXT_color_buffer_half_float")?Ce:ve,minFilter:ge,samples:r&&!0===s?4:0})),w.getDrawingBufferSize(V),r?H.setSize(V.x,V.y):H.setSize(an(V.x),an(V.y));const i=w.getRenderTarget();w.setRenderTarget(H),w.clear();const o=w.toneMapping;w.toneMapping=K,He(e,t,n),w.toneMapping=o,Q.updateMultisampleRenderTarget(H),Q.updateRenderTargetMipmap(H),w.setRenderTarget(i)}function He(e,t,n){const r=!0===t.isScene?t.overrideMaterial:null;for(let i=0,o=e.length;i0?b[b.length-1]:null,y.pop(),m=y.length>0?y[y.length-1]:null},this.getActiveCubeFace=function(){return x},this.getActiveMipmapLevel=function(){return _},this.getRenderTarget=function(){return C},this.setRenderTargetTextures=function(e,t,n){J.get(e.texture).__webglTexture=t,J.get(e.depthTexture).__webglTexture=n;const i=J.get(e);i.__hasExternalTextures=!0,i.__hasExternalTextures&&(i.__autoAllocateDepthBuffer=void 0===n,i.__autoAllocateDepthBuffer||!0===G.has("WEBGL_multisampled_render_to_texture")&&(r.warn("THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided"),i.__useRenderToTexture=!1))},this.setRenderTargetFramebuffer=function(e,t){const n=J.get(e);n.__webglFramebuffer=t,n.__useDefaultFramebuffer=void 0===t},this.setRenderTarget=function(e,t=0,n=0){C=e,x=t,_=n;let r=!0,i=null,o=!1,a=!1;if(e){const n=J.get(e);void 0!==n.__useDefaultFramebuffer?(Y.bindFramebuffer(36160,null),r=!1):void 0===n.__webglFramebuffer?Q.setupRenderTarget(e):n.__hasExternalTextures&&Q.rebindTextures(e,J.get(e.texture).__webglTexture,J.get(e.depthTexture).__webglTexture);const s=e.texture;(s.isData3DTexture||s.isDataArrayTexture||s.isCompressedArrayTexture)&&(a=!0);const l=J.get(e).__webglFramebuffer;e.isWebGLCubeRenderTarget?(i=l[t],o=!0):i=Z.isWebGL2&&e.samples>0&&!1===Q.useMultisampledRTT(e)?J.get(e).__webglMultisampledFramebuffer:l,k.copy(e.viewport),T.copy(e.scissor),A=e.scissorTest}else k.copy(L).multiplyScalar(D).floor(),T.copy(R).multiplyScalar(D).floor(),A=N;const s=Y.bindFramebuffer(36160,i);if(s&&Z.drawBuffers&&r&&Y.drawBuffers(e,i),Y.viewport(k),Y.scissor(T),Y.setScissorTest(A),o){const r=J.get(e.texture);we.framebufferTexture2D(36160,36064,34069+t,r.__webglTexture,n)}else if(a){const r=J.get(e.texture),i=t||0;we.framebufferTextureLayer(36160,36064,r.__webglTexture,n||0,i)}E=-1},this.readRenderTargetPixels=function(e,t,n,i,o,a,s){if(!e||!e.isWebGLRenderTarget)return void r.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let l=J.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&void 0!==s&&(l=l[s]),l){Y.bindFramebuffer(36160,l);try{const s=e.texture,l=s.format,u=s.type;if(l!==Ue&&me.convert(l)!==we.getParameter(35739))return void r.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");const c=u===Ce&&(G.has("EXT_color_buffer_half_float")||Z.isWebGL2&&G.has("EXT_color_buffer_float"));if(u!==ve&&me.convert(u)!==we.getParameter(35738)&&(u!==_e||!(Z.isWebGL2||G.has("OES_texture_float")||G.has("WEBGL_color_buffer_float")))&&!c)return void r.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");t>=0&&t<=e.width-i&&n>=0&&n<=e.height-o&&we.readPixels(t,n,i,o,me.convert(l),me.convert(u),a)}finally{const e=null!==C?J.get(C).__webglFramebuffer:null;Y.bindFramebuffer(36160,e)}}},this.copyFramebufferToTexture=function(e,t,n=0){const r=Math.pow(2,-n),i=Math.floor(t.image.width*r),o=Math.floor(t.image.height*r);Q.setTexture2D(t,0),we.copyTexSubImage2D(3553,n,0,0,e.x,e.y,i,o),Y.unbindTexture()},this.copyTextureToTexture=function(e,t,n,r=0){const i=t.image.width,o=t.image.height,a=me.convert(n.format),s=me.convert(n.type);Q.setTexture2D(n,0),we.pixelStorei(37440,n.flipY),we.pixelStorei(37441,n.premultiplyAlpha),we.pixelStorei(3317,n.unpackAlignment),t.isDataTexture?we.texSubImage2D(3553,r,e.x,e.y,i,o,a,s,t.image.data):t.isCompressedTexture?we.compressedTexSubImage2D(3553,r,e.x,e.y,t.mipmaps[0].width,t.mipmaps[0].height,a,t.mipmaps[0].data):we.texSubImage2D(3553,r,e.x,e.y,a,s,t.image),0===r&&n.generateMipmaps&&we.generateMipmap(3553),Y.unbindTexture()},this.copyTextureToTexture3D=function(e,t,n,i,o=0){if(w.isWebGL1Renderer)return void r.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");const a=e.max.x-e.min.x+1,s=e.max.y-e.min.y+1,l=e.max.z-e.min.z+1,u=me.convert(i.format),c=me.convert(i.type);let d;if(i.isData3DTexture)Q.setTexture3D(i,0),d=32879;else{if(!i.isDataArrayTexture)return void r.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");Q.setTexture2DArray(i,0),d=35866}we.pixelStorei(37440,i.flipY),we.pixelStorei(37441,i.premultiplyAlpha),we.pixelStorei(3317,i.unpackAlignment);const p=we.getParameter(3314),h=we.getParameter(32878),f=we.getParameter(3316),m=we.getParameter(3315),g=we.getParameter(32877),v=n.isCompressedTexture?n.mipmaps[0]:n.image;we.pixelStorei(3314,v.width),we.pixelStorei(32878,v.height),we.pixelStorei(3316,e.min.x),we.pixelStorei(3315,e.min.y),we.pixelStorei(32877,e.min.z),n.isDataTexture||n.isData3DTexture?we.texSubImage3D(d,o,t.x,t.y,t.z,a,s,l,u,c,v.data):n.isCompressedArrayTexture?(r.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),we.compressedTexSubImage3D(d,o,t.x,t.y,t.z,a,s,l,u,v.data)):we.texSubImage3D(d,o,t.x,t.y,t.z,a,s,l,u,c,v),we.pixelStorei(3314,p),we.pixelStorei(32878,h),we.pixelStorei(3316,f),we.pixelStorei(3315,m),we.pixelStorei(32877,g),0===o&&i.generateMipmaps&&we.generateMipmap(d),Y.unbindTexture()},this.initTexture=function(e){e.isCubeTexture?Q.setTextureCube(e,0):e.isData3DTexture?Q.setTexture3D(e,0):e.isDataArrayTexture||e.isCompressedArrayTexture?Q.setTexture2DArray(e,0):Q.setTexture2D(e,0),Y.unbindTexture()},this.resetState=function(){x=0,_=0,C=null,Y.reset(),ye.reset()},"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}class Uc extends Ac{}Uc.prototype.isWebGL1Renderer=!0;class Ic{constructor(e,t=25e-5){this.isFogExp2=!0,this.name="",this.color=new Mn(e),this.density=t}clone(){return new Ic(this.color,this.density)}toJSON(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}}}class Dc extends zr{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.overrideMaterial=null,"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),null!==e.background&&(this.background=e.background.clone()),null!==e.environment&&(this.environment=e.environment.clone()),null!==e.fog&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,null!==e.overrideMaterial&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return null!==this.fog&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.backgroundBlurriness=this.backgroundBlurriness),1!==this.backgroundIntensity&&(t.backgroundIntensity=this.backgroundIntensity),t}get autoUpdate(){return r.warn("THREE.Scene: autoUpdate was renamed to matrixWorldAutoUpdate in r144."),this.matrixWorldAutoUpdate}set autoUpdate(e){r.warn("THREE.Scene: autoUpdate was renamed to matrixWorldAutoUpdate in r144."),this.matrixWorldAutoUpdate=e}}class Oc{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=void 0!==e?e.length/t:0,this.usage=Ot,this.updateRange={offset:0,count:-1},this.version=0,this.uuid=Ht()}onUploadCallback(){}set needsUpdate(e){!0===e&&this.version++}setUsage(e){return this.usage=e,this}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,n){e*=this.stride,n*=t.stride;for(let r=0,i=this.stride;rs)continue;d.applyMatrix4(this.matrixWorld);const a=e.ray.origin.distanceTo(d);ae.far||t.push({distance:a,point:c.clone().applyMatrix4(this.matrixWorld),index:i,face:null,faceIndex:null,object:this})}}else{const n=Math.max(0,o.start),r=Math.min(m.count,o.start+o.count);for(let i=n,o=r-1;is)continue;d.applyMatrix4(this.matrixWorld);const r=e.ray.origin.distanceTo(d);re.far||t.push({distance:r,point:c.clone().applyMatrix4(this.matrixWorld),index:i,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const e=this.geometry,t=e.morphAttributes,n=Object.keys(t);if(n.length>0){const e=t[n[0]];if(void 0!==e){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let t=0,n=e.length;t0)){l=r;break}l=r-1}if(r=l,n[r]===o)return r/(i-1);const u=n[r],c=n[r+1],d=c-u,p=(o-u)/d,h=(r+p)/(i-1);return h}getTangent(e,t){const n=1e-4;let r=e-n,i=e+n;r<0&&(r=0),i>1&&(i=1);const o=this.getPoint(r),a=this.getPoint(i),s=t||(o.isVector2?new dn:new Fn);return s.copy(a).sub(o).normalize(),s}getTangentAt(e,t){const n=this.getUtoTmapping(e);return this.getTangent(n,t)}computeFrenetFrames(e,t){const n=new Fn,r=[],i=[],o=[],a=new Fn,s=new fr;for(let p=0;p<=e;p++){const t=p/e;r[p]=this.getTangentAt(t,new Fn)}i[0]=new Fn,o[0]=new Fn;let l=Number.MAX_VALUE;const u=Math.abs(r[0].x),c=Math.abs(r[0].y),d=Math.abs(r[0].z);u<=l&&(l=u,n.set(1,0,0)),c<=l&&(l=c,n.set(0,1,0)),d<=l&&n.set(0,0,1),a.crossVectors(r[0],n).normalize(),i[0].crossVectors(r[0],a),o[0].crossVectors(r[0],i[0]);for(let p=1;p<=e;p++){if(i[p]=i[p-1].clone(),o[p]=o[p-1].clone(),a.crossVectors(r[p-1],r[p]),a.length()>Number.EPSILON){a.normalize();const e=Math.acos(jt(r[p-1].dot(r[p]),-1,1));i[p].applyMatrix4(s.makeRotationAxis(a,e))}o[p].crossVectors(r[p],i[p])}if(!0===t){let t=Math.acos(jt(i[0].dot(i[e]),-1,1));t/=e,r[0].dot(a.crossVectors(i[0],i[e]))>0&&(t=-t);for(let n=1;n<=e;n++)i[n].applyMatrix4(s.makeRotationAxis(r[n],t*n)),o[n].crossVectors(r[n],i[n])}return{tangents:r,normals:i,binormals:o}}clone(){return(new this.constructor).copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){const e={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}class td extends hi{constructor(e=null){if(super(),this.type="WireframeGeometry",this.parameters={geometry:e},null!==e){const t=[],n=new Set,r=new Fn,i=new Fn;if(null!==e.index){const o=e.attributes.position,a=e.index;let s=e.groups;0===s.length&&(s=[{start:0,count:a.count,materialIndex:0}]);for(let e=0,l=s.length;e=i)break e;{const a=t[1];e=i)break t}o=n,n=0}}while(n>>1;et)--o;if(++o,0!==i||o!==r){i>=o&&(o=Math.max(o,1),i=o-1);const e=this.getValueSize();this.times=ad(n,i,o),this.values=ad(this.values,i*e,o*e)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!==0&&(r.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const n=this.times,i=this.values,o=n.length;0===o&&(r.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let a=null;for(let s=0;s!==o;s++){const t=n[s];if("number"===typeof t&&isNaN(t)){r.error("THREE.KeyframeTrack: Time is not a valid number.",this,s,t),e=!1;break}if(null!==a&&a>t){r.error("THREE.KeyframeTrack: Out of order keys.",this,s,t,a),e=!1;break}a=t}if(void 0!==i&&ld(i))for(let s=0,l=i.length;s!==l;++s){const t=i[s];if(isNaN(t)){r.error("THREE.KeyframeTrack: Value is not a valid number.",this,s,t),e=!1;break}}return e}optimize(){const e=ad(this.times),t=ad(this.values),n=this.getValueSize(),r=this.getInterpolation()===vt,i=e.length-1;let o=1;for(let a=1;a0){e[o]=e[i];for(let e=i*n,r=o*n,a=0;a!==n;++a)t[r+a]=t[e+a];++o}return o!==e.length?(this.times=ad(e,0,o),this.values=ad(t,0,o*n)):(this.times=e,this.values=t),this}clone(){const e=ad(this.times,0),t=ad(this.values,0),n=this.constructor,r=new n(this.name,e,t);return r.createInterpolant=this.createInterpolant,r}}gd.prototype.TimeBufferType=Float32Array,gd.prototype.ValueBufferType=Float32Array,gd.prototype.DefaultInterpolation=gt;class vd extends gd{}vd.prototype.ValueTypeName="bool",vd.prototype.ValueBufferType=Array,vd.prototype.DefaultInterpolation=mt,vd.prototype.InterpolantFactoryMethodLinear=void 0,vd.prototype.InterpolantFactoryMethodSmooth=void 0;class yd extends gd{}yd.prototype.ValueTypeName="color";class bd extends gd{}bd.prototype.ValueTypeName="number";class wd extends pd{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){const i=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=(n-t)/(r-t);let l=e*a;for(let u=l+a;l!==u;l+=4)Nn.slerpFlat(i,0,o,l-a,o,l,s);return i}}class Sd extends gd{InterpolantFactoryMethodLinear(e){return new wd(this.times,this.values,this.getValueSize(),e)}}Sd.prototype.ValueTypeName="quaternion",Sd.prototype.DefaultInterpolation=gt,Sd.prototype.InterpolantFactoryMethodSmooth=void 0;class xd extends gd{}xd.prototype.ValueTypeName="string",xd.prototype.ValueBufferType=Array,xd.prototype.DefaultInterpolation=mt,xd.prototype.InterpolantFactoryMethodLinear=void 0,xd.prototype.InterpolantFactoryMethodSmooth=void 0;class _d extends gd{}_d.prototype.ValueTypeName="vector";class Cd{constructor(e,t=-1,n,r=St){this.name=e,this.tracks=n,this.duration=t,this.blendMode=r,this.uuid=Ht(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],n=e.tracks,r=1/(e.fps||1);for(let o=0,a=n.length;o!==a;++o)t.push(Md(n[o]).scale(r));const i=new this(e.name,e.duration,t,e.blendMode);return i.uuid=e.uuid,i}static toJSON(e){const t=[],n=e.tracks,r={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let i=0,o=n.length;i!==o;++i)t.push(gd.toJSON(n[i]));return r}static CreateFromMorphTargetSequence(e,t,n,r){const i=t.length,o=[];for(let a=0;a1){const e=n[1];let i=r[e];i||(r[e]=i=[]),i.push(t)}}const o=[];for(const a in r)o.push(this.CreateFromMorphTargetSequence(a,r[a],t,n));return o}static parseAnimation(e,t){if(!e)return r.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const n=function(e,t,n,r,i){if(0!==n.length){const o=[],a=[];dd(n,o,a,r),0!==o.length&&i.push(new e(t,o,a))}},i=[],o=e.name||"default",a=e.fps||30,s=e.blendMode;let l=e.length||-1;const u=e.hierarchy||[];for(let r=0;r{t&&t(o),this.manager.itemEnd(e)}),0),o;if(void 0!==Id[e])return void Id[e].push({onLoad:t,onProgress:n,onError:i});Id[e]=[],Id[e].push({onLoad:t,onProgress:n,onError:i});const a=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),s=this.mimeType,l=this.responseType;fetch(a).then((t=>{if(200===t.status||0===t.status){if(0===t.status&&r.warn("THREE.FileLoader: HTTP Status 0 received."),"undefined"===typeof ReadableStream||void 0===t.body||void 0===t.body.getReader)return t;const n=Id[e],i=t.body.getReader(),o=t.headers.get("Content-Length")||t.headers.get("X-File-Size"),a=o?parseInt(o):0,s=0!==a;let l=0;const u=new ReadableStream({start(e){function t(){i.read().then((({done:r,value:i})=>{if(r)e.close();else{l+=i.byteLength;const r=new ProgressEvent("progress",{lengthComputable:s,loaded:l,total:a});for(let e=0,t=n.length;e{switch(l){case"arraybuffer":return e.arrayBuffer();case"blob":return e.blob();case"document":return e.text().then((e=>{const t=new DOMParser;return t.parseFromString(e,s)}));case"json":return e.json();default:if(void 0===s)return e.text();{const t=/charset="?([^;"\s]*)"?/i,n=t.exec(s),r=n&&n[1]?n[1].toLowerCase():void 0,i=new TextDecoder(r);return e.arrayBuffer().then((e=>i.decode(e)))}}})).then((t=>{kd.add(e,t);const n=Id[e];delete Id[e];for(let e=0,r=n.length;e{const n=Id[e];if(void 0===n)throw this.manager.itemError(e),t;delete Id[e];for(let e=0,r=n.length;e{this.manager.itemEnd(e)})),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class Pd extends Ud{constructor(e){super(e)}load(e,t,n,r){void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);const i=this,o=kd.get(e);if(void 0!==o)return i.manager.itemStart(e),setTimeout((function(){t&&t(o),i.manager.itemEnd(e)}),0),o;const a=mn("img");function s(){u(),kd.add(e,this),t&&t(this),i.manager.itemEnd(e)}function l(t){u(),r&&r(t),i.manager.itemError(e),i.manager.itemEnd(e)}function u(){a.removeEventListener("load",s,!1),a.removeEventListener("error",l,!1)}return a.addEventListener("load",s,!1),a.addEventListener("error",l,!1),"data:"!==e.slice(0,5)&&void 0!==this.crossOrigin&&(a.crossOrigin=this.crossOrigin),i.manager.itemStart(e),a.src=e,a}}class Ld extends Ud{constructor(e){super(e)}load(e,t,n,r){const i=new Dn,o=new Pd(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(e,(function(e){i.image=e,i.needsUpdate=!0,void 0!==t&&t(i)}),n,r),i}}class Rd extends zr{constructor(e,t=1){super(),this.isLight=!0,this.type="Light",this.color=new Mn(e),this.intensity=t}dispose(){}copy(e,t){return super.copy(e,t),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){const t=super.toJSON(e);return t.object.color=this.color.getHex(),t.object.intensity=this.intensity,void 0!==this.groundColor&&(t.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(t.object.distance=this.distance),void 0!==this.angle&&(t.object.angle=this.angle),void 0!==this.decay&&(t.object.decay=this.decay),void 0!==this.penumbra&&(t.object.penumbra=this.penumbra),void 0!==this.shadow&&(t.object.shadow=this.shadow.toJSON()),t}}class Nd extends Rd{constructor(e,t,n){super(e,n),this.isHemisphereLight=!0,this.type="HemisphereLight",this.position.copy(zr.DefaultUp),this.updateMatrix(),this.groundColor=new Mn(t)}copy(e,t){return super.copy(e,t),this.groundColor.copy(e.groundColor),this}}const Fd=new fr,zd=new Fn,Bd=new Fn;class Hd{constructor(e){this.camera=e,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new dn(512,512),this.map=null,this.mapPass=null,this.matrix=new fr,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new Ji,this._frameExtents=new dn(1,1),this._viewportCount=1,this._viewports=[new On(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const t=this.camera,n=this.matrix;zd.setFromMatrixPosition(e.matrixWorld),t.position.copy(zd),Bd.setFromMatrixPosition(e.target.matrixWorld),t.lookAt(Bd),t.updateMatrixWorld(),Fd.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Fd),n.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),n.multiply(Fd)}getViewport(e){return this._viewports[e]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(e){return this.camera=e.camera.clone(),this.bias=e.bias,this.radius=e.radius,this.mapSize.copy(e.mapSize),this}clone(){return(new this.constructor).copy(this)}toJSON(){const e={};return 0!==this.bias&&(e.bias=this.bias),0!==this.normalBias&&(e.normalBias=this.normalBias),1!==this.radius&&(e.radius=this.radius),512===this.mapSize.x&&512===this.mapSize.y||(e.mapSize=this.mapSize.toArray()),e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}}class jd extends Hd{constructor(){super(new Bi(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(e){const t=this.camera,n=2*Bt*e.angle*this.focus,r=this.mapSize.width/this.mapSize.height,i=e.distance||t.far;n===t.fov&&r===t.aspect&&i===t.far||(t.fov=n,t.aspect=r,t.far=i,t.updateProjectionMatrix()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}}class Vd extends Rd{constructor(e,t,n=0,r=Math.PI/3,i=0,o=2){super(e,t),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(zr.DefaultUp),this.updateMatrix(),this.target=new zr,this.distance=n,this.angle=r,this.penumbra=i,this.decay=o,this.map=null,this.shadow=new jd}get power(){return this.intensity*Math.PI}set power(e){this.intensity=e/Math.PI}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.angle=e.angle,this.penumbra=e.penumbra,this.decay=e.decay,this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}const Wd=new fr,$d=new Fn,qd=new Fn;class Gd extends Hd{constructor(){super(new Bi(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new dn(4,2),this._viewportCount=6,this._viewports=[new On(2,1,1,1),new On(0,1,1,1),new On(3,1,1,1),new On(1,1,1,1),new On(3,0,1,1),new On(1,0,1,1)],this._cubeDirections=[new Fn(1,0,0),new Fn(-1,0,0),new Fn(0,0,1),new Fn(0,0,-1),new Fn(0,1,0),new Fn(0,-1,0)],this._cubeUps=[new Fn(0,1,0),new Fn(0,1,0),new Fn(0,1,0),new Fn(0,1,0),new Fn(0,0,1),new Fn(0,0,-1)]}updateMatrices(e,t=0){const n=this.camera,r=this.matrix,i=e.distance||n.far;i!==n.far&&(n.far=i,n.updateProjectionMatrix()),$d.setFromMatrixPosition(e.matrixWorld),n.position.copy($d),qd.copy(n.position),qd.add(this._cubeDirections[t]),n.up.copy(this._cubeUps[t]),n.lookAt(qd),n.updateMatrixWorld(),r.makeTranslation(-$d.x,-$d.y,-$d.z),Wd.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Wd)}}class Zd extends Rd{constructor(e,t,n=0,r=2){super(e,t),this.isPointLight=!0,this.type="PointLight",this.distance=n,this.decay=r,this.shadow=new Gd}get power(){return 4*this.intensity*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}class Yd extends Hd{constructor(){super(new $s(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class Kd extends Rd{constructor(e,t){super(e,t),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(zr.DefaultUp),this.updateMatrix(),this.target=new zr,this.shadow=new Yd}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}class Xd extends Rd{constructor(e,t){super(e,t),this.isAmbientLight=!0,this.type="AmbientLight"}}class Jd{static decodeText(e){if("undefined"!==typeof TextDecoder)return(new TextDecoder).decode(e);let t="";for(let r=0,i=e.length;r0&&this._mixBufferRegionAdditive(n,r,this._addIndex*t,1,t);for(let s=t,l=t+t;s!==l;++s)if(n[s]!==n[s+t]){a.setValue(n,r);break}}saveOriginalState(){const e=this.binding,t=this.buffer,n=this.valueSize,r=n*this._origIndex;e.getValue(t,r);for(let i=n,o=r;i!==o;++i)t[i]=t[r+i%n];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){const e=3*this.valueSize;this.binding.setValue(this.buffer,e)}_setAdditiveIdentityNumeric(){const e=this._addIndex*this.valueSize,t=e+this.valueSize;for(let n=e;n=.5)for(let o=0;o!==i;++o)e[t+o]=e[n+o]}_slerp(e,t,n,r){Nn.slerpFlat(e,t,e,t,e,n,r)}_slerpAdditive(e,t,n,r,i){const o=this._workIndex*i;Nn.multiplyQuaternionsFlat(e,o,e,t,e,n),Nn.slerpFlat(e,t,e,t,e,o,r)}_lerp(e,t,n,r,i){const o=1-r;for(let a=0;a!==i;++a){const i=t+a;e[i]=e[i]*o+e[n+a]*r}}_lerpAdditive(e,t,n,r,i){for(let o=0;o!==i;++o){const i=t+o;e[i]=e[i]+e[n+o]*r}}}const rp="\\[\\]\\.:\\/",ip=new RegExp("["+rp+"]","g"),op="[^"+rp+"]",ap="[^"+rp.replace("\\.","")+"]",sp=/((?:WC+[\/:])*)/.source.replace("WC",op),lp=/(WCOD+)?/.source.replace("WCOD",ap),up=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",op),cp=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",op),dp=new RegExp("^"+sp+lp+up+cp+"$"),pp=["material","materials","bones","map"];class hp{constructor(e,t,n){const r=n||fp.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,r)}getValue(e,t){this.bind();const n=this._targetGroup.nCachedObjects_,r=this._bindings[n];void 0!==r&&r.getValue(e,t)}setValue(e,t){const n=this._bindings;for(let r=this._targetGroup.nCachedObjects_,i=n.length;r!==i;++r)n[r].setValue(e,t)}bind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()}unbind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}}class fp{constructor(e,t,n){this.path=t,this.parsedPath=n||fp.parseTrackName(t),this.node=fp.findNode(e,this.parsedPath.nodeName)||e,this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,n){return e&&e.isAnimationObjectGroup?new fp.Composite(e,t,n):new fp(e,t,n)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(ip,"")}static parseTrackName(e){const t=dp.exec(e);if(null===t)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const n={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},r=n.nodeName&&n.nodeName.lastIndexOf(".");if(void 0!==r&&-1!==r){const e=n.nodeName.substring(r+1);-1!==pp.indexOf(e)&&(n.nodeName=n.nodeName.substring(0,r),n.objectName=e)}if(null===n.propertyName||0===n.propertyName.length)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return n}static findNode(e,t){if(void 0===t||""===t||"."===t||-1===t||t===e.name||t===e.uuid)return e;if(e.skeleton){const n=e.skeleton.getBoneByName(t);if(void 0!==n)return n}if(e.children){const n=function(e){for(let r=0;r0){const e=this._interpolants,t=this._propertyBindings;switch(this.blendMode){case xt:for(let n=0,r=e.length;n!==r;++n)e[n].evaluate(o),t[n].accumulateAdditive(a);break;case St:default:for(let n=0,i=e.length;n!==i;++n)e[n].evaluate(o),t[n].accumulate(r,a)}}}_updateWeight(e){let t=0;if(this.enabled){t=this.weight;const n=this._weightInterpolant;if(null!==n){const r=n.evaluate(e)[0];t*=r,e>n.parameterPositions[1]&&(this.stopFading(),0===r&&(this.enabled=!1))}}return this._effectiveWeight=t,t}_updateTimeScale(e){let t=0;if(!this.paused){t=this.timeScale;const n=this._timeScaleInterpolant;if(null!==n){const r=n.evaluate(e)[0];t*=r,e>n.parameterPositions[1]&&(this.stopWarping(),0===t?this.paused=!0:this.timeScale=t)}}return this._effectiveTimeScale=t,t}_updateTime(e){const t=this._clip.duration,n=this.loop;let r=this.time+e,i=this._loopCount;const o=n===ft;if(0===e)return-1===i?r:o&&1===(1&i)?t-r:r;if(n===pt){-1===i&&(this._loopCount=0,this._setEndings(!0,!0,!1));e:{if(r>=t)r=t;else{if(!(r<0)){this.time=r;break e}r=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=r,this._mixer.dispatchEvent({type:"finished",action:this,direction:e<0?-1:1})}}else{if(-1===i&&(e>=0?(i=0,this._setEndings(!0,0===this.repetitions,o)):this._setEndings(0===this.repetitions,!0,o)),r>=t||r<0){const n=Math.floor(r/t);r-=t*n,i+=Math.abs(n);const a=this.repetitions-i;if(a<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,r=e>0?t:0,this.time=r,this._mixer.dispatchEvent({type:"finished",action:this,direction:e>0?1:-1});else{if(1===a){const t=e<0;this._setEndings(t,!t,o)}else this._setEndings(!1,!1,o);this._loopCount=i,this.time=r,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:n})}}else this.time=r;if(o&&1===(1&i))return t-r}return r}_setEndings(e,t,n){const r=this._interpolantSettings;n?(r.endingStart=bt,r.endingEnd=bt):(r.endingStart=e?this.zeroSlopeAtStart?bt:yt:wt,r.endingEnd=t?this.zeroSlopeAtEnd?bt:yt:wt)}_scheduleFading(e,t,n){const r=this._mixer,i=r.time;let o=this._weightInterpolant;null===o&&(o=r._lendControlInterpolant(),this._weightInterpolant=o);const a=o.parameterPositions,s=o.sampleValues;return a[0]=i,s[0]=t,a[1]=i+e,s[1]=n,this}}const gp=new Float32Array(1);class vp extends Rt{constructor(e){super(),this._root=e,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}_bindAction(e,t){const n=e._localRoot||this._root,r=e._clip.tracks,i=r.length,o=e._propertyBindings,a=e._interpolants,s=n.uuid,l=this._bindingsByRootAndName;let u=l[s];void 0===u&&(u={},l[s]=u);for(let c=0;c!==i;++c){const e=r[c],i=e.name;let l=u[i];if(void 0!==l)++l.referenceCount,o[c]=l;else{if(l=o[c],void 0!==l){null===l._cacheIndex&&(++l.referenceCount,this._addInactiveBinding(l,s,i));continue}const r=t&&t._propertyBindings[c].binding.parsedPath;l=new np(fp.create(n,i,r),e.ValueTypeName,e.getValueSize()),++l.referenceCount,this._addInactiveBinding(l,s,i),o[c]=l}a[c].resultBuffer=l.buffer}}_activateAction(e){if(!this._isActiveAction(e)){if(null===e._cacheIndex){const t=(e._localRoot||this._root).uuid,n=e._clip.uuid,r=this._actionsByClip[n];this._bindAction(e,r&&r.knownActions[0]),this._addInactiveAction(e,n,t)}const t=e._propertyBindings;for(let e=0,n=t.length;e!==n;++e){const n=t[e];0===n.useCount++&&(this._lendBinding(n),n.saveOriginalState())}this._lendAction(e)}}_deactivateAction(e){if(this._isActiveAction(e)){const t=e._propertyBindings;for(let e=0,n=t.length;e!==n;++e){const n=t[e];0===--n.useCount&&(n.restoreOriginalState(),this._takeBackBinding(n))}this._takeBackAction(e)}}_initMemoryManager(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;const e=this;this.stats={actions:{get total(){return e._actions.length},get inUse(){return e._nActiveActions}},bindings:{get total(){return e._bindings.length},get inUse(){return e._nActiveBindings}},controlInterpolants:{get total(){return e._controlInterpolants.length},get inUse(){return e._nActiveControlInterpolants}}}}_isActiveAction(e){const t=e._cacheIndex;return null!==t&&t=0;--n)e[n].stop();return this}update(e){e*=this.timeScale;const t=this._actions,n=this._nActiveActions,r=this.time+=e,i=Math.sign(e),o=this._accuIndex^=1;for(let l=0;l!==n;++l){const n=t[l];n._update(r,e,i,o)}const a=this._bindings,s=this._nActiveBindings;for(let l=0;l!==s;++l)a[l].apply(o);return this}setTime(e){this.time=0;for(let t=0;tMath.PI&&(r-=v),y<-Math.PI?y+=v:y>Math.PI&&(y-=v),d.theta=r<=y?Math.max(r,Math.min(y,d.theta)):d.theta>(r+y)/2?Math.max(r,d.theta):Math.min(y,d.theta)),d.phi=Math.max(n.minPolarAngle,Math.min(n.maxPolarAngle,d.phi)),d.makeSafe(),d.radius*=h,d.radius=Math.max(n.minDistance,Math.min(n.maxDistance,d.radius)),!0===n.enableDamping?n.target.addScaledVector(f,n.dampingFactor):n.target.add(f),t.setFromSpherical(d),t.applyQuaternion(a),e.copy(n.target).add(t),n.object.lookAt(n.target),!0===n.enableDamping?(p.theta*=1-n.dampingFactor,p.phi*=1-n.dampingFactor,f.multiplyScalar(1-n.dampingFactor)):(p.set(0,0,0),f.set(0,0,0)),h=1,!!(m||s.distanceToSquared(n.object.position)>c||8*(1-g.dot(n.object.quaternion))>c)&&(n.dispatchEvent(o),s.copy(n.object.position),g.copy(n.object.quaternion),m=!1,!0)}}(),this.dispose=function(){n.domElement.removeEventListener("contextmenu",ce),n.domElement.removeEventListener("pointerdown",ee),n.domElement.removeEventListener("pointercancel",re),n.domElement.removeEventListener("wheel",ae),n.domElement.removeEventListener("pointermove",te),n.domElement.removeEventListener("pointerup",ne),null!==n._domElementKeyEvents&&n._domElementKeyEvents.removeEventListener("keydown",se)};const n=this,l={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let u=l.NONE;const c=1e-6,d=new r.$V,p=new r.$V;let h=1;const f=new r.Pa4;let m=!1;const g=new r.FM8,v=new r.FM8,y=new r.FM8,b=new r.FM8,w=new r.FM8,S=new r.FM8,x=new r.FM8,_=new r.FM8,C=new r.FM8,E=[],M={};function k(){return 2*Math.PI/60/60*n.autoRotateSpeed}function T(){return Math.pow(.95,n.zoomSpeed)}function A(e){p.theta-=e}function U(e){p.phi-=e}const I=function(){const e=new r.Pa4;return function(t,n){e.setFromMatrixColumn(n,0),e.multiplyScalar(-t),f.add(e)}}(),D=function(){const e=new r.Pa4;return function(t,r){!0===n.screenSpacePanning?e.setFromMatrixColumn(r,1):(e.setFromMatrixColumn(r,0),e.crossVectors(n.object.up,e)),e.multiplyScalar(t),f.add(e)}}(),O=function(){const e=new r.Pa4;return function(t,r){const o=n.domElement;if(n.object.isPerspectiveCamera){const i=n.object.position;e.copy(i).sub(n.target);let a=e.length();a*=Math.tan(n.object.fov/2*Math.PI/180),I(2*t*a/o.clientHeight,n.object.matrix),D(2*r*a/o.clientHeight,n.object.matrix)}else n.object.isOrthographicCamera?(I(t*(n.object.right-n.object.left)/n.object.zoom/o.clientWidth,n.object.matrix),D(r*(n.object.top-n.object.bottom)/n.object.zoom/o.clientHeight,n.object.matrix)):(i.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),n.enablePan=!1)}}();function P(e){n.object.isPerspectiveCamera?h/=e:n.object.isOrthographicCamera?(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom*e)),n.object.updateProjectionMatrix(),m=!0):(i.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function L(e){n.object.isPerspectiveCamera?h*=e:n.object.isOrthographicCamera?(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom/e)),n.object.updateProjectionMatrix(),m=!0):(i.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function R(e){g.set(e.clientX,e.clientY)}function N(e){x.set(e.clientX,e.clientY)}function F(e){b.set(e.clientX,e.clientY)}function z(e){v.set(e.clientX,e.clientY),y.subVectors(v,g).multiplyScalar(n.rotateSpeed);const t=n.domElement;A(2*Math.PI*y.x/t.clientHeight),U(2*Math.PI*y.y/t.clientHeight),g.copy(v),n.update()}function B(e){_.set(e.clientX,e.clientY),C.subVectors(_,x),C.y>0?P(T()):C.y<0&&L(T()),x.copy(_),n.update()}function H(e){w.set(e.clientX,e.clientY),S.subVectors(w,b).multiplyScalar(n.panSpeed),O(S.x,S.y),b.copy(w),n.update()}function j(e){e.deltaY<0?L(T()):e.deltaY>0&&P(T()),n.update()}function V(e){let t=!1;switch(e.code){case n.keys.UP:e.ctrlKey||e.metaKey||e.shiftKey?U(2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):O(0,n.keyPanSpeed),t=!0;break;case n.keys.BOTTOM:e.ctrlKey||e.metaKey||e.shiftKey?U(-2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):O(0,-n.keyPanSpeed),t=!0;break;case n.keys.LEFT:e.ctrlKey||e.metaKey||e.shiftKey?A(2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):O(n.keyPanSpeed,0),t=!0;break;case n.keys.RIGHT:e.ctrlKey||e.metaKey||e.shiftKey?A(-2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):O(-n.keyPanSpeed,0),t=!0;break}t&&(e.preventDefault(),n.update())}function W(){if(1===E.length)g.set(E[0].pageX,E[0].pageY);else{const e=.5*(E[0].pageX+E[1].pageX),t=.5*(E[0].pageY+E[1].pageY);g.set(e,t)}}function $(){if(1===E.length)b.set(E[0].pageX,E[0].pageY);else{const e=.5*(E[0].pageX+E[1].pageX),t=.5*(E[0].pageY+E[1].pageY);b.set(e,t)}}function q(){const e=E[0].pageX-E[1].pageX,t=E[0].pageY-E[1].pageY,n=Math.sqrt(e*e+t*t);x.set(0,n)}function G(){n.enableZoom&&q(),n.enablePan&&$()}function Z(){n.enableZoom&&q(),n.enableRotate&&W()}function Y(e){if(1==E.length)v.set(e.pageX,e.pageY);else{const t=fe(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);v.set(n,r)}y.subVectors(v,g).multiplyScalar(n.rotateSpeed);const t=n.domElement;A(2*Math.PI*y.x/t.clientHeight),U(2*Math.PI*y.y/t.clientHeight),g.copy(v)}function K(e){if(1===E.length)w.set(e.pageX,e.pageY);else{const t=fe(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);w.set(n,r)}S.subVectors(w,b).multiplyScalar(n.panSpeed),O(S.x,S.y),b.copy(w)}function X(e){const t=fe(e),r=e.pageX-t.x,i=e.pageY-t.y,o=Math.sqrt(r*r+i*i);_.set(0,o),C.set(0,Math.pow(_.y/x.y,n.zoomSpeed)),P(C.y),x.copy(_)}function J(e){n.enableZoom&&X(e),n.enablePan&&K(e)}function Q(e){n.enableZoom&&X(e),n.enableRotate&&Y(e)}function ee(e){!1!==n.enabled&&(0===E.length&&(n.domElement.setPointerCapture(e.pointerId),n.domElement.addEventListener("pointermove",te),n.domElement.addEventListener("pointerup",ne)),de(e),"touch"===e.pointerType?le(e):ie(e))}function te(e){!1!==n.enabled&&("touch"===e.pointerType?ue(e):oe(e))}function ne(e){pe(e),0===E.length&&(n.domElement.releasePointerCapture(e.pointerId),n.domElement.removeEventListener("pointermove",te),n.domElement.removeEventListener("pointerup",ne)),n.dispatchEvent(s),u=l.NONE}function re(e){pe(e)}function ie(e){let t;switch(e.button){case 0:t=n.mouseButtons.LEFT;break;case 1:t=n.mouseButtons.MIDDLE;break;case 2:t=n.mouseButtons.RIGHT;break;default:t=-1}switch(t){case r.RsA.DOLLY:if(!1===n.enableZoom)return;N(e),u=l.DOLLY;break;case r.RsA.ROTATE:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===n.enablePan)return;F(e),u=l.PAN}else{if(!1===n.enableRotate)return;R(e),u=l.ROTATE}break;case r.RsA.PAN:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===n.enableRotate)return;R(e),u=l.ROTATE}else{if(!1===n.enablePan)return;F(e),u=l.PAN}break;default:u=l.NONE}u!==l.NONE&&n.dispatchEvent(a)}function oe(e){switch(u){case l.ROTATE:if(!1===n.enableRotate)return;z(e);break;case l.DOLLY:if(!1===n.enableZoom)return;B(e);break;case l.PAN:if(!1===n.enablePan)return;H(e);break}}function ae(e){!1!==n.enabled&&!1!==n.enableZoom&&u===l.NONE&&(e.preventDefault(),n.dispatchEvent(a),j(e),n.dispatchEvent(s))}function se(e){!1!==n.enabled&&!1!==n.enablePan&&V(e)}function le(e){switch(he(e),E.length){case 1:switch(n.touches.ONE){case r.QmN.ROTATE:if(!1===n.enableRotate)return;W(),u=l.TOUCH_ROTATE;break;case r.QmN.PAN:if(!1===n.enablePan)return;$(),u=l.TOUCH_PAN;break;default:u=l.NONE}break;case 2:switch(n.touches.TWO){case r.QmN.DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;G(),u=l.TOUCH_DOLLY_PAN;break;case r.QmN.DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;Z(),u=l.TOUCH_DOLLY_ROTATE;break;default:u=l.NONE}break;default:u=l.NONE}u!==l.NONE&&n.dispatchEvent(a)}function ue(e){switch(he(e),u){case l.TOUCH_ROTATE:if(!1===n.enableRotate)return;Y(e),n.update();break;case l.TOUCH_PAN:if(!1===n.enablePan)return;K(e),n.update();break;case l.TOUCH_DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;J(e),n.update();break;case l.TOUCH_DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;Q(e),n.update();break;default:u=l.NONE}}function ce(e){!1!==n.enabled&&e.preventDefault()}function de(e){E.push(e)}function pe(e){delete M[e.pointerId];for(let t=0;t{this.setValue(this.$input.checked),this._callOnFinishChange()})),this.$disable=this.$input,this.updateDisplay()}updateDisplay(){return this.$input.checked=this.getValue(),this}}function a(e){let t,n;return(t=e.match(/(#|0x)?([a-f0-9]{6})/i))?n=t[2]:(t=e.match(/rgb\(\s*(\d*)\s*,\s*(\d*)\s*,\s*(\d*)\s*\)/))?n=parseInt(t[1]).toString(16).padStart(2,0)+parseInt(t[2]).toString(16).padStart(2,0)+parseInt(t[3]).toString(16).padStart(2,0):(t=e.match(/^#?([a-f0-9])([a-f0-9])([a-f0-9])$/i))&&(n=t[1]+t[1]+t[2]+t[2]+t[3]+t[3]),!!n&&"#"+n}const s={isPrimitive:!0,match:e=>"string"==typeof e,fromHexString:a,toHexString:a},l={isPrimitive:!0,match:e=>"number"==typeof e,fromHexString:e=>parseInt(e.substring(1),16),toHexString:e=>"#"+e.toString(16).padStart(6,0)},u={isPrimitive:!1,match:Array.isArray,fromHexString(e,t,n=1){const r=l.fromHexString(e);t[0]=(r>>16&255)/255*n,t[1]=(r>>8&255)/255*n,t[2]=(255&r)/255*n},toHexString:([e,t,n],r=1)=>l.toHexString(e*(r=255/r)<<16^t*r<<8^n*r<<0)},c={isPrimitive:!1,match:e=>Object(e)===e,fromHexString(e,t,n=1){const r=l.fromHexString(e);t.r=(r>>16&255)/255*n,t.g=(r>>8&255)/255*n,t.b=(255&r)/255*n},toHexString:({r:e,g:t,b:n},r=1)=>l.toHexString(e*(r=255/r)<<16^t*r<<8^n*r<<0)},d=[s,l,u,c];class p extends i{constructor(e,t,n,r){var i;super(e,t,n,"color"),this.$input=document.createElement("input"),this.$input.setAttribute("type","color"),this.$input.setAttribute("tabindex",-1),this.$input.setAttribute("aria-labelledby",this.$name.id),this.$text=document.createElement("input"),this.$text.setAttribute("type","text"),this.$text.setAttribute("spellcheck","false"),this.$text.setAttribute("aria-labelledby",this.$name.id),this.$display=document.createElement("div"),this.$display.classList.add("display"),this.$display.appendChild(this.$input),this.$widget.appendChild(this.$display),this.$widget.appendChild(this.$text),this._format=(i=this.initialValue,d.find((e=>e.match(i)))),this._rgbScale=r,this._initialValueHexString=this.save(),this._textFocused=!1,this.$input.addEventListener("input",(()=>{this._setValueFromHexString(this.$input.value)})),this.$input.addEventListener("blur",(()=>{this._callOnFinishChange()})),this.$text.addEventListener("input",(()=>{const e=a(this.$text.value);e&&this._setValueFromHexString(e)})),this.$text.addEventListener("focus",(()=>{this._textFocused=!0,this.$text.select()})),this.$text.addEventListener("blur",(()=>{this._textFocused=!1,this.updateDisplay(),this._callOnFinishChange()})),this.$disable=this.$text,this.updateDisplay()}reset(){return this._setValueFromHexString(this._initialValueHexString),this}_setValueFromHexString(e){if(this._format.isPrimitive){const t=this._format.fromHexString(e);this.setValue(t)}else this._format.fromHexString(e,this.getValue(),this._rgbScale),this._callOnChange(),this.updateDisplay()}save(){return this._format.toHexString(this.getValue(),this._rgbScale)}load(e){return this._setValueFromHexString(e),this._callOnFinishChange(),this}updateDisplay(){return this.$input.value=this._format.toHexString(this.getValue(),this._rgbScale),this._textFocused||(this.$text.value=this.$input.value.substring(1)),this.$display.style.backgroundColor=this.$input.value,this}}class h extends i{constructor(e,t,n){super(e,t,n,"function"),this.$button=document.createElement("button"),this.$button.appendChild(this.$name),this.$widget.appendChild(this.$button),this.$button.addEventListener("click",(e=>{e.preventDefault(),this.getValue().call(this.object)})),this.$button.addEventListener("touchstart",(()=>{}),{passive:!0}),this.$disable=this.$button}}class f extends i{constructor(e,t,n,r,i,o){super(e,t,n,"number"),this._initInput(),this.min(r),this.max(i);const a=void 0!==o;this.step(a?o:this._getImplicitStep(),a),this.updateDisplay()}decimals(e){return this._decimals=e,this.updateDisplay(),this}min(e){return this._min=e,this._onUpdateMinMax(),this}max(e){return this._max=e,this._onUpdateMinMax(),this}step(e,t=!0){return this._step=e,this._stepExplicit=t,this}updateDisplay(){const e=this.getValue();if(this._hasSlider){let t=(e-this._min)/(this._max-this._min);t=Math.max(0,Math.min(t,1)),this.$fill.style.width=100*t+"%"}return this._inputFocused||(this.$input.value=void 0===this._decimals?e:e.toFixed(this._decimals)),this}_initInput(){this.$input=document.createElement("input"),this.$input.setAttribute("type","number"),this.$input.setAttribute("step","any"),this.$input.setAttribute("aria-labelledby",this.$name.id),this.$widget.appendChild(this.$input),this.$disable=this.$input;const e=e=>{const t=parseFloat(this.$input.value);isNaN(t)||(this._snapClampSetValue(t+e),this.$input.value=this.getValue())};let t,n,r,i,o,a=!1;const s=e=>{if(a){const r=e.clientX-t,i=e.clientY-n;Math.abs(i)>5?(e.preventDefault(),this.$input.blur(),a=!1,this._setDraggingStyle(!0,"vertical")):Math.abs(r)>5&&l()}if(!a){const t=e.clientY-r;o-=t*this._step*this._arrowKeyMultiplier(e),i+o>this._max?o=this._max-i:i+o{this._setDraggingStyle(!1,"vertical"),this._callOnFinishChange(),window.removeEventListener("mousemove",s),window.removeEventListener("mouseup",l)};this.$input.addEventListener("input",(()=>{let e=parseFloat(this.$input.value);isNaN(e)||(this._stepExplicit&&(e=this._snap(e)),this.setValue(this._clamp(e)))})),this.$input.addEventListener("keydown",(t=>{"Enter"===t.code&&this.$input.blur(),"ArrowUp"===t.code&&(t.preventDefault(),e(this._step*this._arrowKeyMultiplier(t))),"ArrowDown"===t.code&&(t.preventDefault(),e(this._step*this._arrowKeyMultiplier(t)*-1))})),this.$input.addEventListener("wheel",(t=>{this._inputFocused&&(t.preventDefault(),e(this._step*this._normalizeMouseWheel(t)))}),{passive:!1}),this.$input.addEventListener("mousedown",(e=>{t=e.clientX,n=r=e.clientY,a=!0,i=this.getValue(),o=0,window.addEventListener("mousemove",s),window.addEventListener("mouseup",l)})),this.$input.addEventListener("focus",(()=>{this._inputFocused=!0})),this.$input.addEventListener("blur",(()=>{this._inputFocused=!1,this.updateDisplay(),this._callOnFinishChange()}))}_initSlider(){this._hasSlider=!0,this.$slider=document.createElement("div"),this.$slider.classList.add("slider"),this.$fill=document.createElement("div"),this.$fill.classList.add("fill"),this.$slider.appendChild(this.$fill),this.$widget.insertBefore(this.$slider,this.$input),this.domElement.classList.add("hasSlider");const e=e=>{const t=this.$slider.getBoundingClientRect();let n=(r=e,i=t.left,o=t.right,a=this._min,s=this._max,(r-i)/(o-i)*(s-a)+a);var r,i,o,a,s;this._snapClampSetValue(n)},t=t=>{e(t.clientX)},n=()=>{this._callOnFinishChange(),this._setDraggingStyle(!1),window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",n)};let r,i,o=!1;const a=t=>{t.preventDefault(),this._setDraggingStyle(!0),e(t.touches[0].clientX),o=!1},s=t=>{if(o){const e=t.touches[0].clientX-r,n=t.touches[0].clientY-i;Math.abs(e)>Math.abs(n)?a(t):(window.removeEventListener("touchmove",s),window.removeEventListener("touchend",l))}else t.preventDefault(),e(t.touches[0].clientX)},l=()=>{this._callOnFinishChange(),this._setDraggingStyle(!1),window.removeEventListener("touchmove",s),window.removeEventListener("touchend",l)},u=this._callOnFinishChange.bind(this);let c;this.$slider.addEventListener("mousedown",(r=>{this._setDraggingStyle(!0),e(r.clientX),window.addEventListener("mousemove",t),window.addEventListener("mouseup",n)})),this.$slider.addEventListener("touchstart",(e=>{e.touches.length>1||(this._hasScrollBar?(r=e.touches[0].clientX,i=e.touches[0].clientY,o=!0):a(e),window.addEventListener("touchmove",s,{passive:!1}),window.addEventListener("touchend",l))}),{passive:!1}),this.$slider.addEventListener("wheel",(e=>{if(Math.abs(e.deltaX)this._max&&(e=this._max),e}_snapClampSetValue(e){this.setValue(this._clamp(this._snap(e)))}get _hasScrollBar(){const e=this.parent.root.$children;return e.scrollHeight>e.clientHeight}get _hasMin(){return void 0!==this._min}get _hasMax(){return void 0!==this._max}}class m extends i{constructor(e,t,n,r){super(e,t,n,"option"),this.$select=document.createElement("select"),this.$select.setAttribute("aria-labelledby",this.$name.id),this.$display=document.createElement("div"),this.$display.classList.add("display"),this._values=Array.isArray(r)?r:Object.values(r),this._names=Array.isArray(r)?r:Object.keys(r),this._names.forEach((e=>{const t=document.createElement("option");t.innerHTML=e,this.$select.appendChild(t)})),this.$select.addEventListener("change",(()=>{this.setValue(this._values[this.$select.selectedIndex]),this._callOnFinishChange()})),this.$select.addEventListener("focus",(()=>{this.$display.classList.add("focus")})),this.$select.addEventListener("blur",(()=>{this.$display.classList.remove("focus")})),this.$widget.appendChild(this.$select),this.$widget.appendChild(this.$display),this.$disable=this.$select,this.updateDisplay()}updateDisplay(){const e=this.getValue(),t=this._values.indexOf(e);return this.$select.selectedIndex=t,this.$display.innerHTML=-1===t?e:this._names[t],this}}class g extends i{constructor(e,t,n){super(e,t,n,"string"),this.$input=document.createElement("input"),this.$input.setAttribute("type","text"),this.$input.setAttribute("aria-labelledby",this.$name.id),this.$input.addEventListener("input",(()=>{this.setValue(this.$input.value)})),this.$input.addEventListener("keydown",(e=>{"Enter"===e.code&&this.$input.blur()})),this.$input.addEventListener("blur",(()=>{this._callOnFinishChange()})),this.$widget.appendChild(this.$input),this.$disable=this.$input,this.updateDisplay()}updateDisplay(){return this.$input.value=this.getValue(),this}}let v=!1;class y{constructor({parent:e,autoPlace:t=void 0===e,container:n,width:r,title:i="Controls",injectStyles:o=!0,touchStyles:a=!0}={}){if(this.parent=e,this.root=e?e.root:this,this.children=[],this.controllers=[],this.folders=[],this._closed=!1,this._hidden=!1,this.domElement=document.createElement("div"),this.domElement.classList.add("lil-gui"),this.$title=document.createElement("div"),this.$title.classList.add("title"),this.$title.setAttribute("role","button"),this.$title.setAttribute("aria-expanded",!0),this.$title.setAttribute("tabindex",0),this.$title.addEventListener("click",(()=>this.openAnimated(this._closed))),this.$title.addEventListener("keydown",(e=>{"Enter"!==e.code&&"Space"!==e.code||(e.preventDefault(),this.$title.click())})),this.$title.addEventListener("touchstart",(()=>{}),{passive:!0}),this.$children=document.createElement("div"),this.$children.classList.add("children"),this.domElement.appendChild(this.$title),this.domElement.appendChild(this.$children),this.title(i),a&&this.domElement.classList.add("allow-touch-styles"),this.parent)return this.parent.children.push(this),this.parent.folders.push(this),void this.parent.$children.appendChild(this.domElement);this.domElement.classList.add("root"),!v&&o&&(function(e){const t=document.createElement("style");t.innerHTML=e;const n=document.querySelector("head link[rel=stylesheet], head style");n?document.head.insertBefore(t,n):document.head.appendChild(t)}('.lil-gui{--background-color:#1f1f1f;--text-color:#ebebeb;--title-background-color:#111;--title-text-color:#ebebeb;--widget-color:#424242;--hover-color:#4f4f4f;--focus-color:#595959;--number-color:#2cc9ff;--string-color:#a2db3c;--font-size:11px;--input-font-size:11px;--font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;--font-family-mono:Menlo,Monaco,Consolas,"Droid Sans Mono",monospace;--padding:4px;--spacing:4px;--widget-height:20px;--name-width:45%;--slider-knob-width:2px;--slider-input-width:27%;--color-input-width:27%;--slider-input-min-width:45px;--color-input-min-width:45px;--folder-indent:7px;--widget-padding:0 0 0 3px;--widget-border-radius:2px;--checkbox-size:calc(var(--widget-height)*0.75);--scrollbar-width:5px;background-color:var(--background-color);color:var(--text-color);font-family:var(--font-family);font-size:var(--font-size);font-style:normal;font-weight:400;line-height:1;text-align:left;touch-action:manipulation;user-select:none;-webkit-user-select:none}.lil-gui,.lil-gui *{box-sizing:border-box;margin:0;padding:0}.lil-gui.root{display:flex;flex-direction:column;width:var(--width,245px)}.lil-gui.root>.title{background:var(--title-background-color);color:var(--title-text-color)}.lil-gui.root>.children{overflow-x:hidden;overflow-y:auto}.lil-gui.root>.children::-webkit-scrollbar{background:var(--background-color);height:var(--scrollbar-width);width:var(--scrollbar-width)}.lil-gui.root>.children::-webkit-scrollbar-thumb{background:var(--focus-color);border-radius:var(--scrollbar-width)}.lil-gui.force-touch-styles{--widget-height:28px;--padding:6px;--spacing:6px;--font-size:13px;--input-font-size:16px;--folder-indent:10px;--scrollbar-width:7px;--slider-input-min-width:50px;--color-input-min-width:65px}.lil-gui.autoPlace{max-height:100%;position:fixed;right:15px;top:0;z-index:1001}.lil-gui .controller{align-items:center;display:flex;margin:var(--spacing) 0;padding:0 var(--padding)}.lil-gui .controller.disabled{opacity:.5}.lil-gui .controller.disabled,.lil-gui .controller.disabled *{pointer-events:none!important}.lil-gui .controller>.name{flex-shrink:0;line-height:var(--widget-height);min-width:var(--name-width);padding-right:var(--spacing);white-space:pre}.lil-gui .controller .widget{align-items:center;display:flex;min-height:var(--widget-height);position:relative;width:100%}.lil-gui .controller.string input{color:var(--string-color)}.lil-gui .controller.boolean .widget{cursor:pointer}.lil-gui .controller.color .display{border-radius:var(--widget-border-radius);height:var(--widget-height);position:relative;width:100%}.lil-gui .controller.color input[type=color]{cursor:pointer;height:100%;opacity:0;width:100%}.lil-gui .controller.color input[type=text]{flex-shrink:0;font-family:var(--font-family-mono);margin-left:var(--spacing);min-width:var(--color-input-min-width);width:var(--color-input-width)}.lil-gui .controller.option select{max-width:100%;opacity:0;position:absolute;width:100%}.lil-gui .controller.option .display{background:var(--widget-color);border-radius:var(--widget-border-radius);height:var(--widget-height);line-height:var(--widget-height);max-width:100%;overflow:hidden;padding-left:.55em;padding-right:1.75em;pointer-events:none;position:relative;word-break:break-all}.lil-gui .controller.option .display.active{background:var(--focus-color)}.lil-gui .controller.option .display:after{bottom:0;content:"↕";font-family:lil-gui;padding-right:.375em;position:absolute;right:0;top:0}.lil-gui .controller.option .widget,.lil-gui .controller.option select{cursor:pointer}.lil-gui .controller.number input{color:var(--number-color)}.lil-gui .controller.number.hasSlider input{flex-shrink:0;margin-left:var(--spacing);min-width:var(--slider-input-min-width);width:var(--slider-input-width)}.lil-gui .controller.number .slider{background-color:var(--widget-color);border-radius:var(--widget-border-radius);cursor:ew-resize;height:var(--widget-height);overflow:hidden;padding-right:var(--slider-knob-width);touch-action:pan-y;width:100%}.lil-gui .controller.number .slider.active{background-color:var(--focus-color)}.lil-gui .controller.number .slider.active .fill{opacity:.95}.lil-gui .controller.number .fill{border-right:var(--slider-knob-width) solid var(--number-color);box-sizing:content-box;height:100%}.lil-gui-dragging .lil-gui{--hover-color:var(--widget-color)}.lil-gui-dragging *{cursor:ew-resize!important}.lil-gui-dragging.lil-gui-vertical *{cursor:ns-resize!important}.lil-gui .title{--title-height:calc(var(--widget-height) + var(--spacing)*1.25);-webkit-tap-highlight-color:transparent;text-decoration-skip:objects;cursor:pointer;font-weight:600;height:var(--title-height);line-height:calc(var(--title-height) - 4px);outline:none;padding:0 var(--padding)}.lil-gui .title:before{content:"▾";display:inline-block;font-family:lil-gui;padding-right:2px}.lil-gui .title:active{background:var(--title-background-color);opacity:.75}.lil-gui.root>.title:focus{text-decoration:none!important}.lil-gui.closed>.title:before{content:"▸"}.lil-gui.closed>.children{opacity:0;transform:translateY(-7px)}.lil-gui.closed:not(.transition)>.children{display:none}.lil-gui.transition>.children{overflow:hidden;pointer-events:none;transition-duration:.3s;transition-property:height,opacity,transform;transition-timing-function:cubic-bezier(.2,.6,.35,1)}.lil-gui .children:empty:before{content:"Empty";display:block;font-style:italic;height:var(--widget-height);line-height:var(--widget-height);margin:var(--spacing) 0;opacity:.5;padding:0 var(--padding)}.lil-gui.root>.children>.lil-gui>.title{border-width:0;border-bottom:1px solid var(--widget-color);border-left:0 solid var(--widget-color);border-right:0 solid var(--widget-color);border-top:1px solid var(--widget-color);transition:border-color .3s}.lil-gui.root>.children>.lil-gui.closed>.title{border-bottom-color:transparent}.lil-gui+.controller{border-top:1px solid var(--widget-color);margin-top:0;padding-top:var(--spacing)}.lil-gui .lil-gui .lil-gui>.title{border:none}.lil-gui .lil-gui .lil-gui>.children{border:none;border-left:2px solid var(--widget-color);margin-left:var(--folder-indent)}.lil-gui .lil-gui .controller{border:none}.lil-gui input{-webkit-tap-highlight-color:transparent;background:var(--widget-color);border:0;border-radius:var(--widget-border-radius);color:var(--text-color);font-family:var(--font-family);font-size:var(--input-font-size);height:var(--widget-height);outline:none;width:100%}.lil-gui input:disabled{opacity:1}.lil-gui input[type=number],.lil-gui input[type=text]{padding:var(--widget-padding)}.lil-gui input[type=number]:focus,.lil-gui input[type=text]:focus{background:var(--focus-color)}.lil-gui input::-webkit-inner-spin-button,.lil-gui input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.lil-gui input[type=number]{-moz-appearance:textfield}.lil-gui input[type=checkbox]{appearance:none;-webkit-appearance:none;border-radius:var(--widget-border-radius);cursor:pointer;height:var(--checkbox-size);text-align:center;width:var(--checkbox-size)}.lil-gui input[type=checkbox]:checked:before{content:"✓";font-family:lil-gui;font-size:var(--checkbox-size);line-height:var(--checkbox-size)}.lil-gui button{-webkit-tap-highlight-color:transparent;background:var(--widget-color);border:1px solid var(--widget-color);border-radius:var(--widget-border-radius);color:var(--text-color);cursor:pointer;font-family:var(--font-family);font-size:var(--font-size);height:var(--widget-height);line-height:calc(var(--widget-height) - 4px);outline:none;text-align:center;text-transform:none;width:100%}.lil-gui button:active{background:var(--focus-color)}@font-face{font-family:lil-gui;src:url("data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAAUsAAsAAAAACJwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAH4AAADAImwmYE9TLzIAAAGIAAAAPwAAAGBKqH5SY21hcAAAAcgAAAD0AAACrukyyJBnbHlmAAACvAAAAF8AAACEIZpWH2hlYWQAAAMcAAAAJwAAADZfcj2zaGhlYQAAA0QAAAAYAAAAJAC5AHhobXR4AAADXAAAABAAAABMAZAAAGxvY2EAAANsAAAAFAAAACgCEgIybWF4cAAAA4AAAAAeAAAAIAEfABJuYW1lAAADoAAAASIAAAIK9SUU/XBvc3QAAATEAAAAZgAAAJCTcMc2eJxVjbEOgjAURU+hFRBK1dGRL+ALnAiToyMLEzFpnPz/eAshwSa97517c/MwwJmeB9kwPl+0cf5+uGPZXsqPu4nvZabcSZldZ6kfyWnomFY/eScKqZNWupKJO6kXN3K9uCVoL7iInPr1X5baXs3tjuMqCtzEuagm/AAlzQgPAAB4nGNgYRBlnMDAysDAYM/gBiT5oLQBAwuDJAMDEwMrMwNWEJDmmsJwgCFeXZghBcjlZMgFCzOiKOIFAB71Bb8AeJy1kjFuwkAQRZ+DwRAwBtNQRUGKQ8OdKCAWUhAgKLhIuAsVSpWz5Bbkj3dEgYiUIszqWdpZe+Z7/wB1oCYmIoboiwiLT2WjKl/jscrHfGg/pKdMkyklC5Zs2LEfHYpjcRoPzme9MWWmk3dWbK9ObkWkikOetJ554fWyoEsmdSlt+uR0pCJR34b6t/TVg1SY3sYvdf8vuiKrpyaDXDISiegp17p7579Gp3p++y7HPAiY9pmTibljrr85qSidtlg4+l25GLCaS8e6rRxNBmsnERunKbaOObRz7N72ju5vdAjYpBXHgJylOAVsMseDAPEP8LYoUHicY2BiAAEfhiAGJgZWBgZ7RnFRdnVJELCQlBSRlATJMoLV2DK4glSYs6ubq5vbKrJLSbGrgEmovDuDJVhe3VzcXFwNLCOILB/C4IuQ1xTn5FPilBTj5FPmBAB4WwoqAHicY2BkYGAA4sk1sR/j+W2+MnAzpDBgAyEMQUCSg4EJxAEAwUgFHgB4nGNgZGBgSGFggJMhDIwMqEAYAByHATJ4nGNgAIIUNEwmAABl3AGReJxjYAACIQYlBiMGJ3wQAEcQBEV4nGNgZGBgEGZgY2BiAAEQyQWEDAz/wXwGAAsPATIAAHicXdBNSsNAHAXwl35iA0UQXYnMShfS9GPZA7T7LgIu03SSpkwzYTIt1BN4Ak/gKTyAeCxfw39jZkjymzcvAwmAW/wgwHUEGDb36+jQQ3GXGot79L24jxCP4gHzF/EIr4jEIe7wxhOC3g2TMYy4Q7+Lu/SHuEd/ivt4wJd4wPxbPEKMX3GI5+DJFGaSn4qNzk8mcbKSR6xdXdhSzaOZJGtdapd4vVPbi6rP+cL7TGXOHtXKll4bY1Xl7EGnPtp7Xy2n00zyKLVHfkHBa4IcJ2oD3cgggWvt/V/FbDrUlEUJhTn/0azVWbNTNr0Ens8de1tceK9xZmfB1CPjOmPH4kitmvOubcNpmVTN3oFJyjzCvnmrwhJTzqzVj9jiSX911FjeAAB4nG3HMRKCMBBA0f0giiKi4DU8k0V2GWbIZDOh4PoWWvq6J5V8If9NVNQcaDhyouXMhY4rPTcG7jwYmXhKq8Wz+p762aNaeYXom2n3m2dLTVgsrCgFJ7OTmIkYbwIbC6vIB7WmFfAAAA==") format("woff")}@media (pointer:coarse){.lil-gui.allow-touch-styles{--widget-height:28px;--padding:6px;--spacing:6px;--font-size:13px;--input-font-size:16px;--folder-indent:10px;--scrollbar-width:7px;--slider-input-min-width:50px;--color-input-min-width:65px}}@media (hover:hover){.lil-gui .controller.color .display:hover:before{border:1px solid #fff9;border-radius:var(--widget-border-radius);bottom:0;content:" ";display:block;left:0;position:absolute;right:0;top:0}.lil-gui .controller.option .display.focus{background:var(--focus-color)}.lil-gui .controller.option .widget:hover .display{background:var(--hover-color)}.lil-gui .controller.number .slider:hover{background-color:var(--hover-color)}body:not(.lil-gui-dragging) .lil-gui .title:hover{background:var(--title-background-color);opacity:.85}.lil-gui .title:focus{text-decoration:underline var(--focus-color)}.lil-gui input:hover{background:var(--hover-color)}.lil-gui input:active{background:var(--focus-color)}.lil-gui input[type=checkbox]:focus{box-shadow:inset 0 0 0 1px var(--focus-color)}.lil-gui button:hover{background:var(--hover-color);border-color:var(--hover-color)}.lil-gui button:focus{border-color:var(--focus-color)}}'),v=!0),n?n.appendChild(this.domElement):t&&(this.domElement.classList.add("autoPlace"),document.body.appendChild(this.domElement)),r&&this.domElement.style.setProperty("--width",r+"px"),this.domElement.addEventListener("keydown",(e=>e.stopPropagation())),this.domElement.addEventListener("keyup",(e=>e.stopPropagation()))}add(e,t,n,i,a){if(Object(n)===n)return new m(this,e,t,n);const s=e[t];switch(typeof s){case"number":return new f(this,e,t,n,i,a);case"boolean":return new o(this,e,t);case"string":return new g(this,e,t);case"function":return new h(this,e,t)}r.error("gui.add failed\n\tproperty:",t,"\n\tobject:",e,"\n\tvalue:",s)}addColor(e,t,n=1){return new p(this,e,t,n)}addFolder(e){return new y({parent:this,title:e})}load(e,t=!0){return e.controllers&&this.controllers.forEach((t=>{t instanceof h||t._name in e.controllers&&t.load(e.controllers[t._name])})),t&&e.folders&&this.folders.forEach((t=>{t._title in e.folders&&t.load(e.folders[t._title])})),this}save(e=!0){const t={controllers:{},folders:{}};return this.controllers.forEach((e=>{if(!(e instanceof h)){if(e._name in t.controllers)throw new Error(`Cannot save GUI with duplicate property "${e._name}"`);t.controllers[e._name]=e.save()}})),e&&this.folders.forEach((e=>{if(e._title in t.folders)throw new Error(`Cannot save GUI with duplicate folder "${e._title}"`);t.folders[e._title]=e.save()})),t}open(e=!0){return this._closed=!e,this.$title.setAttribute("aria-expanded",!this._closed),this.domElement.classList.toggle("closed",this._closed),this}close(){return this.open(!1)}show(e=!0){return this._hidden=!e,this.domElement.style.display=this._hidden?"none":"",this}hide(){return this.show(!1)}openAnimated(e=!0){return this._closed=!e,this.$title.setAttribute("aria-expanded",!this._closed),requestAnimationFrame((()=>{const t=this.$children.clientHeight;this.$children.style.height=t+"px",this.domElement.classList.add("transition");const n=e=>{e.target===this.$children&&(this.$children.style.height="",this.domElement.classList.remove("transition"),this.$children.removeEventListener("transitionend",n))};this.$children.addEventListener("transitionend",n);const r=e?this.$children.scrollHeight:0;this.domElement.classList.toggle("closed",!e),requestAnimationFrame((()=>{this.$children.style.height=r+"px"}))})),this}title(e){return this._title=e,this.$title.innerHTML=e,this}reset(e=!0){return(e?this.controllersRecursive():this.controllers).forEach((e=>e.reset())),this}onChange(e){return this._onChange=e,this}_callOnChange(e){this.parent&&this.parent._callOnChange(e),void 0!==this._onChange&&this._onChange.call(this,{object:e.object,property:e.property,value:e.getValue(),controller:e})}onFinishChange(e){return this._onFinishChange=e,this}_callOnFinishChange(e){this.parent&&this.parent._callOnFinishChange(e),void 0!==this._onFinishChange&&this._onFinishChange.call(this,{object:e.object,property:e.property,value:e.getValue(),controller:e})}destroy(){this.parent&&(this.parent.children.splice(this.parent.children.indexOf(this),1),this.parent.folders.splice(this.parent.folders.indexOf(this),1)),this.domElement.parentElement&&this.domElement.parentElement.removeChild(this.domElement),Array.from(this.children).forEach((e=>e.destroy()))}controllersRecursive(){let e=Array.from(this.controllers);return this.folders.forEach((t=>{e=e.concat(t.controllersRecursive())})),e}foldersRecursive(){let e=Array.from(this.folders);return this.folders.forEach((t=>{e=e.concat(t.foldersRecursive())})),e}}},3959:function(e,t){"use strict";var n=function(){var e=0,t=document.createElement("div");function r(e){return t.appendChild(e.dom),e}function i(n){for(var r=0;r=a+1e3&&(l.update(1e3*s/(e-a),100),a=e,s=0,c)){var t=performance.memory;c.update(t.usedJSHeapSize/1048576,t.jsHeapSizeLimit/1048576)}return e},update:function(){o=this.end()},domElement:t,setMode:i}};n.Panel=function(e,t,n){var r=1/0,i=0,o=Math.round,a=o(window.devicePixelRatio||1),s=80*a,l=48*a,u=3*a,c=2*a,d=3*a,p=15*a,h=74*a,f=30*a,m=document.createElement("canvas");m.width=s,m.height=l,m.style.cssText="width:80px;height:48px";var g=m.getContext("2d");return g.font="bold "+9*a+"px Helvetica,Arial,sans-serif",g.textBaseline="top",g.fillStyle=n,g.fillRect(0,0,s,l),g.fillStyle=t,g.fillText(e,u,c),g.fillRect(d,p,h,f),g.fillStyle=n,g.globalAlpha=.9,g.fillRect(d,p,h,f),{dom:m,update:function(l,v){r=Math.min(r,l),i=Math.max(i,l),g.fillStyle=n,g.globalAlpha=1,g.fillRect(0,0,s,p),g.fillStyle=t,g.fillText(o(l)+" "+e+" ("+o(r)+"-"+o(i)+")",u,c),g.drawImage(m,d+a,p,h-a,f,d,p,h-a,f),g.fillRect(d+h-a,p,a,f),g.fillStyle=n,g.globalAlpha=.9,g.fillRect(d+h-a,p,a,o((1-l/v)*f))}}},t.Z=n},677:function(e,t,n){"use strict";n.d(t,{Y:function(){return i}});var r=n(1114);r.rBU.line={worldUnits:{value:1},linewidth:{value:1},resolution:{value:new r.FM8(1,1)},dashOffset:{value:0},dashScale:{value:1},dashSize:{value:1},gapSize:{value:1}},r.Vj0["line"]={uniforms:r.rDY.merge([r.rBU.common,r.rBU.fog,r.rBU.line]),vertexShader:"\n\t\t#include \n\t\t#include \n\t\t#include \n\t\t#include \n\t\t#include \n\n\t\tuniform float linewidth;\n\t\tuniform vec2 resolution;\n\n\t\tattribute vec3 instanceStart;\n\t\tattribute vec3 instanceEnd;\n\n\t\tattribute vec3 instanceColorStart;\n\t\tattribute vec3 instanceColorEnd;\n\n\t\t#ifdef WORLD_UNITS\n\n\t\t\tvarying vec4 worldPos;\n\t\t\tvarying vec3 worldStart;\n\t\t\tvarying vec3 worldEnd;\n\n\t\t\t#ifdef USE_DASH\n\n\t\t\t\tvarying vec2 vUv;\n\n\t\t\t#endif\n\n\t\t#else\n\n\t\t\tvarying vec2 vUv;\n\n\t\t#endif\n\n\t\t#ifdef USE_DASH\n\n\t\t\tuniform float dashScale;\n\t\t\tattribute float instanceDistanceStart;\n\t\t\tattribute float instanceDistanceEnd;\n\t\t\tvarying float vLineDistance;\n\n\t\t#endif\n\n\t\tvoid trimSegment( const in vec4 start, inout vec4 end ) {\n\n\t\t\t// trim end segment so it terminates between the camera plane and the near plane\n\n\t\t\t// conservative estimate of the near plane\n\t\t\tfloat a = projectionMatrix[ 2 ][ 2 ]; // 3nd entry in 3th column\n\t\t\tfloat b = projectionMatrix[ 3 ][ 2 ]; // 3nd entry in 4th column\n\t\t\tfloat nearEstimate = - 0.5 * b / a;\n\n\t\t\tfloat alpha = ( nearEstimate - start.z ) / ( end.z - start.z );\n\n\t\t\tend.xyz = mix( start.xyz, end.xyz, alpha );\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\t#ifdef USE_COLOR\n\n\t\t\t\tvColor.xyz = ( position.y < 0.5 ) ? instanceColorStart : instanceColorEnd;\n\n\t\t\t#endif\n\n\t\t\t#ifdef USE_DASH\n\n\t\t\t\tvLineDistance = ( position.y < 0.5 ) ? dashScale * instanceDistanceStart : dashScale * instanceDistanceEnd;\n\t\t\t\tvUv = uv;\n\n\t\t\t#endif\n\n\t\t\tfloat aspect = resolution.x / resolution.y;\n\n\t\t\t// camera space\n\t\t\tvec4 start = modelViewMatrix * vec4( instanceStart, 1.0 );\n\t\t\tvec4 end = modelViewMatrix * vec4( instanceEnd, 1.0 );\n\n\t\t\t#ifdef WORLD_UNITS\n\n\t\t\t\tworldStart = start.xyz;\n\t\t\t\tworldEnd = end.xyz;\n\n\t\t\t#else\n\n\t\t\t\tvUv = uv;\n\n\t\t\t#endif\n\n\t\t\t// special case for perspective projection, and segments that terminate either in, or behind, the camera plane\n\t\t\t// clearly the gpu firmware has a way of addressing this issue when projecting into ndc space\n\t\t\t// but we need to perform ndc-space calculations in the shader, so we must address this issue directly\n\t\t\t// perhaps there is a more elegant solution -- WestLangley\n\n\t\t\tbool perspective = ( projectionMatrix[ 2 ][ 3 ] == - 1.0 ); // 4th entry in the 3rd column\n\n\t\t\tif ( perspective ) {\n\n\t\t\t\tif ( start.z < 0.0 && end.z >= 0.0 ) {\n\n\t\t\t\t\ttrimSegment( start, end );\n\n\t\t\t\t} else if ( end.z < 0.0 && start.z >= 0.0 ) {\n\n\t\t\t\t\ttrimSegment( end, start );\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// clip space\n\t\t\tvec4 clipStart = projectionMatrix * start;\n\t\t\tvec4 clipEnd = projectionMatrix * end;\n\n\t\t\t// ndc space\n\t\t\tvec3 ndcStart = clipStart.xyz / clipStart.w;\n\t\t\tvec3 ndcEnd = clipEnd.xyz / clipEnd.w;\n\n\t\t\t// direction\n\t\t\tvec2 dir = ndcEnd.xy - ndcStart.xy;\n\n\t\t\t// account for clip-space aspect ratio\n\t\t\tdir.x *= aspect;\n\t\t\tdir = normalize( dir );\n\n\t\t\t#ifdef WORLD_UNITS\n\n\t\t\t\t// get the offset direction as perpendicular to the view vector\n\t\t\t\tvec3 worldDir = normalize( end.xyz - start.xyz );\n\t\t\t\tvec3 offset;\n\t\t\t\tif ( position.y < 0.5 ) {\n\n\t\t\t\t\toffset = normalize( cross( start.xyz, worldDir ) );\n\n\t\t\t\t} else {\n\n\t\t\t\t\toffset = normalize( cross( end.xyz, worldDir ) );\n\n\t\t\t\t}\n\n\t\t\t\t// sign flip\n\t\t\t\tif ( position.x < 0.0 ) offset *= - 1.0;\n\n\t\t\t\tfloat forwardOffset = dot( worldDir, vec3( 0.0, 0.0, 1.0 ) );\n\n\t\t\t\t// don't extend the line if we're rendering dashes because we\n\t\t\t\t// won't be rendering the endcaps\n\t\t\t\t#ifndef USE_DASH\n\n\t\t\t\t\t// extend the line bounds to encompass endcaps\n\t\t\t\t\tstart.xyz += - worldDir * linewidth * 0.5;\n\t\t\t\t\tend.xyz += worldDir * linewidth * 0.5;\n\n\t\t\t\t\t// shift the position of the quad so it hugs the forward edge of the line\n\t\t\t\t\toffset.xy -= dir * forwardOffset;\n\t\t\t\t\toffset.z += 0.5;\n\n\t\t\t\t#endif\n\n\t\t\t\t// endcaps\n\t\t\t\tif ( position.y > 1.0 || position.y < 0.0 ) {\n\n\t\t\t\t\toffset.xy += dir * 2.0 * forwardOffset;\n\n\t\t\t\t}\n\n\t\t\t\t// adjust for linewidth\n\t\t\t\toffset *= linewidth * 0.5;\n\n\t\t\t\t// set the world position\n\t\t\t\tworldPos = ( position.y < 0.5 ) ? start : end;\n\t\t\t\tworldPos.xyz += offset;\n\n\t\t\t\t// project the worldpos\n\t\t\t\tvec4 clip = projectionMatrix * worldPos;\n\n\t\t\t\t// shift the depth of the projected points so the line\n\t\t\t\t// segments overlap neatly\n\t\t\t\tvec3 clipPose = ( position.y < 0.5 ) ? ndcStart : ndcEnd;\n\t\t\t\tclip.z = clipPose.z * clip.w;\n\n\t\t\t#else\n\n\t\t\t\tvec2 offset = vec2( dir.y, - dir.x );\n\t\t\t\t// undo aspect ratio adjustment\n\t\t\t\tdir.x /= aspect;\n\t\t\t\toffset.x /= aspect;\n\n\t\t\t\t// sign flip\n\t\t\t\tif ( position.x < 0.0 ) offset *= - 1.0;\n\n\t\t\t\t// endcaps\n\t\t\t\tif ( position.y < 0.0 ) {\n\n\t\t\t\t\toffset += - dir;\n\n\t\t\t\t} else if ( position.y > 1.0 ) {\n\n\t\t\t\t\toffset += dir;\n\n\t\t\t\t}\n\n\t\t\t\t// adjust for linewidth\n\t\t\t\toffset *= linewidth;\n\n\t\t\t\t// adjust for clip-space to screen-space conversion // maybe resolution should be based on viewport ...\n\t\t\t\toffset /= resolution.y;\n\n\t\t\t\t// select end\n\t\t\t\tvec4 clip = ( position.y < 0.5 ) ? clipStart : clipEnd;\n\n\t\t\t\t// back to clip space\n\t\t\t\toffset *= clip.w;\n\n\t\t\t\tclip.xy += offset;\n\n\t\t\t#endif\n\n\t\t\tgl_Position = clip;\n\n\t\t\tvec4 mvPosition = ( position.y < 0.5 ) ? start : end; // this is an approximation\n\n\t\t\t#include \n\t\t\t#include \n\t\t\t#include \n\n\t\t}\n\t\t",fragmentShader:"\n\t\tuniform vec3 diffuse;\n\t\tuniform float opacity;\n\t\tuniform float linewidth;\n\n\t\t#ifdef USE_DASH\n\n\t\t\tuniform float dashOffset;\n\t\t\tuniform float dashSize;\n\t\t\tuniform float gapSize;\n\n\t\t#endif\n\n\t\tvarying float vLineDistance;\n\n\t\t#ifdef WORLD_UNITS\n\n\t\t\tvarying vec4 worldPos;\n\t\t\tvarying vec3 worldStart;\n\t\t\tvarying vec3 worldEnd;\n\n\t\t\t#ifdef USE_DASH\n\n\t\t\t\tvarying vec2 vUv;\n\n\t\t\t#endif\n\n\t\t#else\n\n\t\t\tvarying vec2 vUv;\n\n\t\t#endif\n\n\t\t#include \n\t\t#include \n\t\t#include \n\t\t#include \n\t\t#include \n\n\t\tvec2 closestLineToLine(vec3 p1, vec3 p2, vec3 p3, vec3 p4) {\n\n\t\t\tfloat mua;\n\t\t\tfloat mub;\n\n\t\t\tvec3 p13 = p1 - p3;\n\t\t\tvec3 p43 = p4 - p3;\n\n\t\t\tvec3 p21 = p2 - p1;\n\n\t\t\tfloat d1343 = dot( p13, p43 );\n\t\t\tfloat d4321 = dot( p43, p21 );\n\t\t\tfloat d1321 = dot( p13, p21 );\n\t\t\tfloat d4343 = dot( p43, p43 );\n\t\t\tfloat d2121 = dot( p21, p21 );\n\n\t\t\tfloat denom = d2121 * d4343 - d4321 * d4321;\n\n\t\t\tfloat numer = d1343 * d4321 - d1321 * d4343;\n\n\t\t\tmua = numer / denom;\n\t\t\tmua = clamp( mua, 0.0, 1.0 );\n\t\t\tmub = ( d1343 + d4321 * ( mua ) ) / d4343;\n\t\t\tmub = clamp( mub, 0.0, 1.0 );\n\n\t\t\treturn vec2( mua, mub );\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\t#include \n\n\t\t\t#ifdef USE_DASH\n\n\t\t\t\tif ( vUv.y < - 1.0 || vUv.y > 1.0 ) discard; // discard endcaps\n\n\t\t\t\tif ( mod( vLineDistance + dashOffset, dashSize + gapSize ) > dashSize ) discard; // todo - FIX\n\n\t\t\t#endif\n\n\t\t\tfloat alpha = opacity;\n\n\t\t\t#ifdef WORLD_UNITS\n\n\t\t\t\t// Find the closest points on the view ray and the line segment\n\t\t\t\tvec3 rayEnd = normalize( worldPos.xyz ) * 1e5;\n\t\t\t\tvec3 lineDir = worldEnd - worldStart;\n\t\t\t\tvec2 params = closestLineToLine( worldStart, worldEnd, vec3( 0.0, 0.0, 0.0 ), rayEnd );\n\n\t\t\t\tvec3 p1 = worldStart + lineDir * params.x;\n\t\t\t\tvec3 p2 = rayEnd * params.y;\n\t\t\t\tvec3 delta = p1 - p2;\n\t\t\t\tfloat len = length( delta );\n\t\t\t\tfloat norm = len / linewidth;\n\n\t\t\t\t#ifndef USE_DASH\n\n\t\t\t\t\t#ifdef USE_ALPHA_TO_COVERAGE\n\n\t\t\t\t\t\tfloat dnorm = fwidth( norm );\n\t\t\t\t\t\talpha = 1.0 - smoothstep( 0.5 - dnorm, 0.5 + dnorm, norm );\n\n\t\t\t\t\t#else\n\n\t\t\t\t\t\tif ( norm > 0.5 ) {\n\n\t\t\t\t\t\t\tdiscard;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t#endif\n\n\t\t\t\t#endif\n\n\t\t\t#else\n\n\t\t\t\t#ifdef USE_ALPHA_TO_COVERAGE\n\n\t\t\t\t\t// artifacts appear on some hardware if a derivative is taken within a conditional\n\t\t\t\t\tfloat a = vUv.x;\n\t\t\t\t\tfloat b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0;\n\t\t\t\t\tfloat len2 = a * a + b * b;\n\t\t\t\t\tfloat dlen = fwidth( len2 );\n\n\t\t\t\t\tif ( abs( vUv.y ) > 1.0 ) {\n\n\t\t\t\t\t\talpha = 1.0 - smoothstep( 1.0 - dlen, 1.0 + dlen, len2 );\n\n\t\t\t\t\t}\n\n\t\t\t\t#else\n\n\t\t\t\t\tif ( abs( vUv.y ) > 1.0 ) {\n\n\t\t\t\t\t\tfloat a = vUv.x;\n\t\t\t\t\t\tfloat b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0;\n\t\t\t\t\t\tfloat len2 = a * a + b * b;\n\n\t\t\t\t\t\tif ( len2 > 1.0 ) discard;\n\n\t\t\t\t\t}\n\n\t\t\t\t#endif\n\n\t\t\t#endif\n\n\t\t\tvec4 diffuseColor = vec4( diffuse, alpha );\n\n\t\t\t#include \n\t\t\t#include \n\n\t\t\tgl_FragColor = vec4( diffuseColor.rgb, alpha );\n\n\t\t\t#include \n\t\t\t#include \n\t\t\t#include \n\t\t\t#include \n\n\t\t}\n\t\t"};class i extends r.jyz{constructor(e){super({type:"LineMaterial",uniforms:r.rDY.clone(r.Vj0["line"].uniforms),vertexShader:r.Vj0["line"].vertexShader,fragmentShader:r.Vj0["line"].fragmentShader,clipping:!0}),this.isLineMaterial=!0,Object.defineProperties(this,{color:{enumerable:!0,get:function(){return this.uniforms.diffuse.value},set:function(e){this.uniforms.diffuse.value=e}},worldUnits:{enumerable:!0,get:function(){return"WORLD_UNITS"in this.defines},set:function(e){!0===e?this.defines.WORLD_UNITS="":delete this.defines.WORLD_UNITS}},linewidth:{enumerable:!0,get:function(){return this.uniforms.linewidth.value},set:function(e){this.uniforms.linewidth.value=e}},dashed:{enumerable:!0,get:function(){return Boolean("USE_DASH"in this.defines)},set(e){Boolean(e)!==Boolean("USE_DASH"in this.defines)&&(this.needsUpdate=!0),!0===e?this.defines.USE_DASH="":delete this.defines.USE_DASH}},dashScale:{enumerable:!0,get:function(){return this.uniforms.dashScale.value},set:function(e){this.uniforms.dashScale.value=e}},dashSize:{enumerable:!0,get:function(){return this.uniforms.dashSize.value},set:function(e){this.uniforms.dashSize.value=e}},dashOffset:{enumerable:!0,get:function(){return this.uniforms.dashOffset.value},set:function(e){this.uniforms.dashOffset.value=e}},gapSize:{enumerable:!0,get:function(){return this.uniforms.gapSize.value},set:function(e){this.uniforms.gapSize.value=e}},opacity:{enumerable:!0,get:function(){return this.uniforms.opacity.value},set:function(e){this.uniforms.opacity.value=e}},resolution:{enumerable:!0,get:function(){return this.uniforms.resolution.value},set:function(e){this.uniforms.resolution.value.copy(e)}},alphaToCoverage:{enumerable:!0,get:function(){return Boolean("USE_ALPHA_TO_COVERAGE"in this.defines)},set:function(e){Boolean(e)!==Boolean("USE_ALPHA_TO_COVERAGE"in this.defines)&&(this.needsUpdate=!0),!0===e?(this.defines.USE_ALPHA_TO_COVERAGE="",this.extensions.derivatives=!0):(delete this.defines.USE_ALPHA_TO_COVERAGE,this.extensions.derivatives=!1)}}}),this.setValues(e)}}},58:function(e,t,n){"use strict";n.d(t,{w:function(){return C}});n(7658),n(1439),n(7585),n(5315);var r=n(1114),i=n(9061),o=n(677),a=n(5941);const s=new r.Pa4,l=new r.Pa4,u=new r.Ltg,c=new r.Ltg,d=new r.Ltg,p=new r.Pa4,h=new r.yGw,f=new r.Zzh,m=new r.Pa4,g=new r.ZzF,v=new r.aLr,y=new r.Ltg;let b,w;function S(e,t,n){return y.set(0,0,-t,1).applyMatrix4(e.projectionMatrix),y.multiplyScalar(1/y.w),y.x=w/n.width,y.y=w/n.height,y.applyMatrix4(e.projectionMatrixInverse),y.multiplyScalar(1/y.w),Math.abs(Math.max(y.x,y.y))}function x(e,t){const n=e.matrixWorld,i=e.geometry,o=i.attributes.instanceStart,a=i.attributes.instanceEnd,s=Math.min(i.instanceCount,o.count);for(let l=0,u=s;lS&&c.z>S;if(t)continue;if(u.z>S){const e=u.z-c.z,t=(u.z-S)/e;u.lerp(c,t)}else if(c.z>S){const e=c.z-u.z,t=(c.z-S)/e;c.lerp(u,t)}u.applyMatrix4(i),c.applyMatrix4(i),u.multiplyScalar(1/u.w),c.multiplyScalar(1/c.w),u.x*=a.x/2,u.y*=a.y/2,c.x*=a.x/2,c.y*=a.y/2,f.start.copy(u),f.start.z=0,f.end.copy(c),f.end.z=0;const o=f.closestPointToPointParameter(p,!0);f.at(o,m);const l=r.M8C.lerp(u.z,c.z,o),y=l>=-1&&l<=1,x=p.distanceTo(m)<.5*w;if(y&&x){f.start.fromBufferAttribute(g,d),f.end.fromBufferAttribute(v,d),f.start.applyMatrix4(s),f.end.applyMatrix4(s);const t=new r.Pa4,i=new r.Pa4;b.distanceSqToSegment(f.start,f.end,i,t),n.push({point:i,pointOnLine:t,distance:b.origin.distanceTo(i),object:e,face:null,faceIndex:d,uv:null,uv2:null})}}}class C extends r.Kj0{constructor(e=new i.z,t=new o.Y({color:16777215*Math.random()})){super(e,t),this.isLineSegments2=!0,this.type="LineSegments2"}computeLineDistances(){const e=this.geometry,t=e.attributes.instanceStart,n=e.attributes.instanceEnd,i=new Float32Array(2*t.count);for(let r=0,a=0,u=t.count;r>>1|(21845&y)<<1;b=(52428&b)>>>2|(13107&b)<<2,b=(61680&b)>>>4|(3855&b)<<4,v[y]=((65280&b)>>>8|(255&b)<<8)>>>1}var w=function(e,t,n){for(var r=e.length,i=0,o=new a(t);i>>u]=c}else for(s=new a(r),i=0;i>>15-e[i]);return s},S=new o(288);for(y=0;y<144;++y)S[y]=8;for(y=144;y<256;++y)S[y]=9;for(y=256;y<280;++y)S[y]=7;for(y=280;y<288;++y)S[y]=8;var x=new o(32);for(y=0;y<32;++y)x[y]=5;var _=w(S,9,1),C=w(x,5,1),E=function(e){for(var t=e[0],n=1;nt&&(t=e[n]);return t},M=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(7&t)&n},k=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},T=function(e){return(e/8|0)+(7&e&&1)},A=function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var r=new(e instanceof a?a:e instanceof s?s:o)(n-t);return r.set(e.subarray(t,n)),r},U=function(e,t,n){var r=e.length;if(!r||n&&!n.l&&r<5)return t||new o(0);var i=!t||n,a=!n||n.i;n||(n={}),t||(t=new o(3*r));var s=function(e){var n=t.length;if(e>n){var r=new o(Math.max(2*n,e));r.set(t),t=r}},d=n.f||0,p=n.p||0,f=n.b||0,m=n.l,v=n.d,y=n.m,b=n.n,S=8*r;do{if(!m){n.f=d=M(e,p,1);var x=M(e,p+1,3);if(p+=3,!x){var U=T(p)+4,I=e[U-4]|e[U-3]<<8,D=U+I;if(D>r){if(a)throw"unexpected EOF";break}i&&s(f+I),t.set(e.subarray(U,D),f),n.b=f+=I,n.p=p=8*D;continue}if(1==x)m=_,v=C,y=9,b=5;else{if(2!=x)throw"invalid block type";var O=M(e,p,31)+257,P=M(e,p+10,15)+4,L=O+M(e,p+5,31)+1;p+=14;for(var R=new o(L),N=new o(19),F=0;F>>4;if(U<16)R[F++]=U;else{var V=0,W=0;16==U?(W=3+M(e,p,3),p+=2,V=R[F-1]):17==U?(W=3+M(e,p,7),p+=3):18==U&&(W=11+M(e,p,127),p+=7);while(W--)R[F++]=V}}var $=R.subarray(0,O),q=R.subarray(O);y=E($),b=E(q),m=w($,y,1),v=w(q,b,1)}if(p>S){if(a)throw"unexpected EOF";break}}i&&s(f+131072);for(var G=(1<>>4;if(p+=15&V,p>S){if(a)throw"unexpected EOF";break}if(!V)throw"invalid length/literal";if(K<256)t[f++]=K;else{if(256==K){Y=p,m=null;break}var X=K-254;if(K>264){F=K-257;var J=l[F];X=M(e,p,(1<>>4;if(!Q)throw"invalid distance";p+=15&Q;q=g[ee];if(ee>3){J=u[ee];q+=k(e,p)&(1<S){if(a)throw"unexpected EOF";break}i&&s(f+131072);for(var te=f+X;f>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(32&e[1])throw"invalid zlib data: preset dictionaries not supported"};function O(e,t){return U((D(e),e.subarray(2,-4)),t)}var P="undefined"!=typeof TextDecoder&&new TextDecoder;try{P.decode(I,{stream:!0}),1}catch(ve){}function L(e,t,n){const r=n.length-e-1;if(t>=n[r])return r-1;if(t<=n[e])return e;let i=e,o=r,a=Math.floor((i+o)/2);while(t=n[a+1])t=o&&(i[t][0]=i[e][0]/s[u+1][l],r=i[t][0]*s[l][u]);const c=l>=-1?1:-l,p=d-1<=u?o-1:n-d;for(let n=c;n<=p;++n)i[t][n]=(i[e][n]-i[e][n-1])/s[u+1][l+n],r+=i[t][n]*s[l+n][u];d<=u&&(i[t][o]=-i[e][o-1]/s[u+1][d],r+=i[t][o]*s[d][u]),a[o][d]=r;const h=e;e=t,t=h}}let c=n;for(let d=1;d<=r;++d){for(let e=0;e<=n;++e)a[d][e]*=c;c*=n-d}return a}function z(e,t,n,i,o){const a=o0,o="string"===typeof i.Content&&""!==i.Content;if(e||o){const e=this.parseImage(n[r]);t[i.RelativeFilename||i.Filename]=e}}}}for(const n in e){const r=e[n];void 0!==t[r]?e[n]=t[r]:e[n]=e[n].split("\\").pop()}return e}parseImage(e){const t=e.Content,n=e.RelativeFilename||e.Filename,r=n.slice(n.lastIndexOf(".")+1).toLowerCase();let i;switch(r){case"bmp":i="image/bmp";break;case"jpg":case"jpeg":i="image/jpeg";break;case"png":i="image/png";break;case"tif":i="image/tiff";break;case"tga":null===this.manager.getHandler(".tga")&&W.warn("FBXLoader: TGA loader not found, skipping ",n),i="image/tga";break;default:return void W.warn('FBXLoader: Image type "'+r+'" is not supported.')}if("string"===typeof t)return"data:"+i+";base64,"+t;{const e=new Uint8Array(t);return window.URL.createObjectURL(new Blob([e],{type:i}))}}parseTextures(e){const t=new Map;if("Texture"in $.Objects){const n=$.Objects.Texture;for(const r in n){const i=this.parseTexture(n[r],e);t.set(parseInt(r),i)}}return t}parseTexture(e,t){const n=this.loadTexture(e,t);n.ID=e.id,n.name=e.attrName;const i=e.WrapModeU,o=e.WrapModeV,a=void 0!==i?i.value:0,s=void 0!==o?o.value:0;if(n.wrapS=0===a?r.rpg:r.uWy,n.wrapT=0===s?r.rpg:r.uWy,"Scaling"in e){const t=e.Scaling.value;n.repeat.x=t[0],n.repeat.y=t[1]}if("Translation"in e){const t=e.Translation.value;n.offset.x=t[0],n.offset.y=t[1]}return n}loadTexture(e,t){let n;const i=this.textureLoader.path,o=q.get(e.id).children;let a;void 0!==o&&o.length>0&&void 0!==t[o[0].ID]&&(n=t[o[0].ID],0!==n.indexOf("blob:")&&0!==n.indexOf("data:")||this.textureLoader.setPath(void 0));const s=e.FileName.slice(-3).toLowerCase();if("tga"===s){const t=this.manager.getHandler(".tga");null===t?(W.warn("FBXLoader: TGA loader not found, creating placeholder texture for",e.RelativeFilename),a=new r.xEZ):(t.setPath(this.textureLoader.path),a=t.load(n))}else"psd"===s?(W.warn("FBXLoader: PSD textures are not supported, creating placeholder texture for",e.RelativeFilename),a=new r.xEZ):a=this.textureLoader.load(n);return this.textureLoader.setPath(i),a}parseMaterials(e){const t=new Map;if("Material"in $.Objects){const n=$.Objects.Material;for(const r in n){const i=this.parseMaterial(n[r],e);null!==i&&t.set(parseInt(r),i)}}return t}parseMaterial(e,t){const n=e.id,i=e.attrName;let o=e.ShadingModel;if("object"===typeof o&&(o=o.value),!q.has(n))return null;const a=this.parseParameters(e,t,n);let s;switch(o.toLowerCase()){case"phong":s=new r.xoR;break;case"lambert":s=new r.YBo;break;default:W.warn('THREE.FBXLoader: unknown material type "%s". Defaulting to MeshPhongMaterial.',o),s=new r.xoR;break}return s.setValues(a),s.name=i,s}parseParameters(e,t,n){const i={};e.BumpFactor&&(i.bumpScale=e.BumpFactor.value),e.Diffuse?i.color=(new r.Ilk).fromArray(e.Diffuse.value):!e.DiffuseColor||"Color"!==e.DiffuseColor.type&&"ColorRGB"!==e.DiffuseColor.type||(i.color=(new r.Ilk).fromArray(e.DiffuseColor.value)),e.DisplacementFactor&&(i.displacementScale=e.DisplacementFactor.value),e.Emissive?i.emissive=(new r.Ilk).fromArray(e.Emissive.value):!e.EmissiveColor||"Color"!==e.EmissiveColor.type&&"ColorRGB"!==e.EmissiveColor.type||(i.emissive=(new r.Ilk).fromArray(e.EmissiveColor.value)),e.EmissiveFactor&&(i.emissiveIntensity=parseFloat(e.EmissiveFactor.value)),e.Opacity&&(i.opacity=parseFloat(e.Opacity.value)),i.opacity<1&&(i.transparent=!0),e.ReflectionFactor&&(i.reflectivity=e.ReflectionFactor.value),e.Shininess&&(i.shininess=e.Shininess.value),e.Specular?i.specular=(new r.Ilk).fromArray(e.Specular.value):e.SpecularColor&&"Color"===e.SpecularColor.type&&(i.specular=(new r.Ilk).fromArray(e.SpecularColor.value));const o=this;return q.get(n).children.forEach((function(e){const n=e.relationship;switch(n){case"Bump":i.bumpMap=o.getTexture(t,e.ID);break;case"Maya|TEX_ao_map":i.aoMap=o.getTexture(t,e.ID);break;case"DiffuseColor":case"Maya|TEX_color_map":i.map=o.getTexture(t,e.ID),void 0!==i.map&&(i.map.encoding=r.knz);break;case"DisplacementColor":i.displacementMap=o.getTexture(t,e.ID);break;case"EmissiveColor":i.emissiveMap=o.getTexture(t,e.ID),void 0!==i.emissiveMap&&(i.emissiveMap.encoding=r.knz);break;case"NormalMap":case"Maya|TEX_normal_map":i.normalMap=o.getTexture(t,e.ID);break;case"ReflectionColor":i.envMap=o.getTexture(t,e.ID),void 0!==i.envMap&&(i.envMap.mapping=r.dSO,i.envMap.encoding=r.knz);break;case"SpecularColor":i.specularMap=o.getTexture(t,e.ID),void 0!==i.specularMap&&(i.specularMap.encoding=r.knz);break;case"TransparentColor":case"TransparencyFactor":i.alphaMap=o.getTexture(t,e.ID),i.transparent=!0;break;case"AmbientColor":case"ShininessExponent":case"SpecularFactor":case"VectorDisplacementColor":default:W.warn("THREE.FBXLoader: %s map is not supported in three.js, skipping texture.",n);break}})),i}getTexture(e,t){return"LayeredTexture"in $.Objects&&t in $.Objects.LayeredTexture&&(W.warn("THREE.FBXLoader: layered textures are not supported in three.js. Discarding all but first layer."),t=q.get(t).children[0].ID),e.get(t)}parseDeformers(){const e={},t={};if("Deformer"in $.Objects){const n=$.Objects.Deformer;for(const r in n){const i=n[r],o=q.get(parseInt(r));if("Skin"===i.attrType){const t=this.parseSkeleton(o,n);t.ID=r,o.parents.length>1&&W.warn("THREE.FBXLoader: skeleton attached to more than one geometry is not supported."),t.geometryID=o.parents[0].ID,e[r]=t}else if("BlendShape"===i.attrType){const e={id:r};e.rawTargets=this.parseMorphTargets(o,n),e.id=r,o.parents.length>1&&W.warn("THREE.FBXLoader: morph target attached to more than one geometry is not supported."),t[r]=e}}}return{skeletons:e,morphTargets:t}}parseSkeleton(e,t){const n=[];return e.children.forEach((function(e){const i=t[e.ID];if("Cluster"!==i.attrType)return;const o={ID:e.ID,indices:[],weights:[],transformLink:(new r.yGw).fromArray(i.TransformLink.a)};"Indexes"in i&&(o.indices=i.Indexes.a,o.weights=i.Weights.a),n.push(o)})),{rawBones:n,bones:[]}}parseMorphTargets(e,t){const n=[];for(let r=0;r1?a=s:s.length>0?a=s[0]:(a=new r.xoR({color:13421772}),s.push(a)),"color"in o.attributes&&s.forEach((function(e){e.vertexColors=!0})),o.FBX_Deformer?(i=new r.TUv(o,a),i.normalizeSkinWeights()):i=new r.Kj0(o,a),i}createCurve(e,t){const n=e.children.reduce((function(e,n){return t.has(n.ID)&&(e=t.get(n.ID)),e}),null),i=new r.nls({color:3342591,linewidth:1});return new r.x12(n,i)}getTransformData(e,t){const n={};"InheritType"in t&&(n.inheritType=parseInt(t.InheritType.value)),n.eulerOrder="RotationOrder"in t?de(t.RotationOrder.value):"ZYX","Lcl_Translation"in t&&(n.translation=t.Lcl_Translation.value),"PreRotation"in t&&(n.preRotation=t.PreRotation.value),"Lcl_Rotation"in t&&(n.rotation=t.Lcl_Rotation.value),"PostRotation"in t&&(n.postRotation=t.PostRotation.value),"Lcl_Scaling"in t&&(n.scale=t.Lcl_Scaling.value),"ScalingOffset"in t&&(n.scalingOffset=t.ScalingOffset.value),"ScalingPivot"in t&&(n.scalingPivot=t.ScalingPivot.value),"RotationOffset"in t&&(n.rotationOffset=t.RotationOffset.value),"RotationPivot"in t&&(n.rotationPivot=t.RotationPivot.value),e.userData.transformData=n}setLookAtProperties(e,t){if("LookAtProperty"in t){const t=q.get(e.ID).children;t.forEach((function(t){if("LookAtProperty"===t.relationship){const n=$.Objects.Model[t.ID];if("Lcl_Translation"in n){const t=n.Lcl_Translation.value;void 0!==e.target?(e.target.position.fromArray(t),G.add(e.target)):e.lookAt((new r.Pa4).fromArray(t))}}}))}}bindSkeleton(e,t,n){const i=this.parsePoseNodes();for(const o in e){const a=e[o],s=q.get(parseInt(a.ID)).parents;s.forEach((function(e){if(t.has(e.ID)){const t=e.ID,o=q.get(t);o.parents.forEach((function(e){if(n.has(e.ID)){const t=n.get(e.ID);t.bind(new r.OdW(a.bones),i[e.ID])}}))}}))}}parsePoseNodes(){const e={};if("Pose"in $.Objects){const t=$.Objects.Pose;for(const n in t)if("BindPose"===t[n].attrType&&t[n].NbPoseNodes>0){const i=t[n].PoseNode;Array.isArray(i)?i.forEach((function(t){e[t.Node]=(new r.yGw).fromArray(t.Matrix.a)})):e[i.Node]=(new r.yGw).fromArray(i.Matrix.a)}}return e}createAmbientLight(){if("GlobalSettings"in $&&"AmbientColor"in $.GlobalSettings){const e=$.GlobalSettings.AmbientColor.value,t=e[0],n=e[1],i=e[2];if(0!==t||0!==n||0!==i){const e=new r.Ilk(t,n,i);G.add(new r.Mig(e,1))}}}}class K{constructor(){this.negativeMaterialIndices=!1}parse(e){const t=new Map;if("Geometry"in $.Objects){const n=$.Objects.Geometry;for(const r in n){const i=q.get(parseInt(r)),o=this.parseGeometry(i,n[r],e);t.set(parseInt(r),o)}}return!0===this.negativeMaterialIndices&&W.warn("THREE.FBXLoader: The FBX file contains invalid (negative) material indices. The asset might not render as expected."),t}parseGeometry(e,t,n){switch(t.attrType){case"Mesh":return this.parseMeshGeometry(e,t,n);case"NurbsCurve":return this.parseNurbsGeometry(t)}}parseMeshGeometry(e,t,n){const r=n.skeletons,i=[],o=e.parents.map((function(e){return $.Objects.Model[e.ID]}));if(0===o.length)return;const a=e.children.reduce((function(e,t){return void 0!==r[t.ID]&&(e=r[t.ID]),e}),null);e.children.forEach((function(e){void 0!==n.morphTargets[e.ID]&&i.push(n.morphTargets[e.ID])}));const s=o[0],l={};"RotationOrder"in s&&(l.eulerOrder=de(s.RotationOrder.value)),"InheritType"in s&&(l.inheritType=parseInt(s.InheritType.value)),"GeometricTranslation"in s&&(l.translation=s.GeometricTranslation.value),"GeometricRotation"in s&&(l.rotation=s.GeometricRotation.value),"GeometricScaling"in s&&(l.scale=s.GeometricScaling.value);const u=ce(l);return this.genGeometry(t,a,i,u)}genGeometry(e,t,n,i){const o=new r.u9r;e.attrName&&(o.name=e.attrName);const a=this.parseGeoNode(e,t),s=this.genBuffers(a),l=new r.a$l(s.vertex,3);if(l.applyMatrix4(i),o.setAttribute("position",l),s.colors.length>0&&o.setAttribute("color",new r.a$l(s.colors,3)),t&&(o.setAttribute("skinIndex",new r.qlB(s.weightsIndices,4)),o.setAttribute("skinWeight",new r.a$l(s.vertexWeights,4)),o.FBX_Deformer=t),s.normal.length>0){const e=(new r.Vkp).getNormalMatrix(i),t=new r.a$l(s.normal,3);t.applyNormalMatrix(e),o.setAttribute("normal",t)}if(s.uvs.forEach((function(e,t){let n="uv"+(t+1).toString();0===t&&(n="uv"),o.setAttribute(n,new r.a$l(s.uvs[t],2))})),a.material&&"AllSame"!==a.material.mappingType){let e=s.materialIndex[0],t=0;if(s.materialIndex.forEach((function(n,r){n!==e&&(o.addGroup(t,r-t,e),e=n,t=r)})),o.groups.length>0){const t=o.groups[o.groups.length-1],n=t.start+t.count;n!==s.materialIndex.length&&o.addGroup(n,s.materialIndex.length-n,e)}0===o.groups.length&&o.addGroup(0,s.materialIndex.length,s.materialIndex[0])}return this.addMorphTargets(o,e,n,i),o}parseGeoNode(e,t){const n={};if(n.vertexPositions=void 0!==e.Vertices?e.Vertices.a:[],n.vertexIndices=void 0!==e.PolygonVertexIndex?e.PolygonVertexIndex.a:[],e.LayerElementColor&&(n.color=this.parseVertexColors(e.LayerElementColor[0])),e.LayerElementMaterial&&(n.material=this.parseMaterialIndices(e.LayerElementMaterial[0])),e.LayerElementNormal&&(n.normal=this.parseNormals(e.LayerElementNormal[0])),e.LayerElementUV){n.uv=[];let t=0;while(e.LayerElementUV[t])e.LayerElementUV[t].UV&&n.uv.push(this.parseUVs(e.LayerElementUV[t])),t++}return n.weightTable={},null!==t&&(n.skeleton=t,t.rawBones.forEach((function(e,t){e.indices.forEach((function(r,i){void 0===n.weightTable[r]&&(n.weightTable[r]=[]),n.weightTable[r].push({id:t,weight:e.weights[i]})}))}))),n}genBuffers(e){const t={vertex:[],normal:[],colors:[],uvs:[],materialIndex:[],vertexWeights:[],weightsIndices:[]};let n=0,r=0,i=!1,o=[],a=[],s=[],l=[],u=[],c=[];const d=this;return e.vertexIndices.forEach((function(p,h){let f,m=!1;p<0&&(p^=-1,m=!0);let g=[],v=[];if(o.push(3*p,3*p+1,3*p+2),e.color){const t=se(h,n,p,e.color);s.push(t[0],t[1],t[2])}if(e.skeleton){if(void 0!==e.weightTable[p]&&e.weightTable[p].forEach((function(e){v.push(e.weight),g.push(e.id)})),v.length>4){i||(W.warn("THREE.FBXLoader: Vertex has more than 4 skinning weights assigned to vertex. Deleting additional weights."),i=!0);const e=[0,0,0,0],t=[0,0,0,0];v.forEach((function(n,r){let i=n,o=g[r];t.forEach((function(t,n,r){if(i>t){r[n]=i,i=t;const a=e[n];e[n]=o,o=a}}))})),g=e,v=t}while(v.length<4)v.push(0),g.push(0);for(let e=0;e<4;++e)u.push(v[e]),c.push(g[e])}if(e.normal){const t=se(h,n,p,e.normal);a.push(t[0],t[1],t[2])}e.material&&"AllSame"!==e.material.mappingType&&(f=se(h,n,p,e.material)[0],f<0&&(d.negativeMaterialIndices=!0,f=0)),e.uv&&e.uv.forEach((function(e,t){const r=se(h,n,p,e);void 0===l[t]&&(l[t]=[]),l[t].push(r[0]),l[t].push(r[1])})),r++,m&&(r>4&&W.warn("THREE.FBXLoader: Polygons with more than four sides are not supported. Make sure to triangulate the geometry during export."),d.genFace(t,e,o,f,a,s,l,u,c,r),n++,r=0,o=[],a=[],s=[],l=[],u=[],c=[])})),t}genFace(e,t,n,r,i,o,a,s,l,u){for(let c=2;c1&&W.warn("THREE.FBXLoader: Encountered an animation stack with multiple layers, this is currently not supported. Ignoring subsequent layers.");const o=e.get(i[0].ID);n[r]={name:t[r].attrName,layer:o}}return n}addClip(e){let t=[];const n=this;return e.layer.forEach((function(e){t=t.concat(n.generateTracks(e))})),new r.m7l(e.name,-1,t)}generateTracks(e){const t=[];let n=new r.Pa4,i=new r._fP,o=new r.Pa4;if(e.transform&&e.transform.decompose(n,i,o),n=n.toArray(),i=(new r.USm).setFromQuaternion(i,e.eulerOrder).toArray(),o=o.toArray(),void 0!==e.T&&Object.keys(e.T.curves).length>0){const r=this.generateVectorTrack(e.modelName,e.T.curves,n,"position");void 0!==r&&t.push(r)}if(void 0!==e.R&&Object.keys(e.R.curves).length>0){const n=this.generateRotationTrack(e.modelName,e.R.curves,i,e.preRotation,e.postRotation,e.eulerOrder);void 0!==n&&t.push(n)}if(void 0!==e.S&&Object.keys(e.S.curves).length>0){const n=this.generateVectorTrack(e.modelName,e.S.curves,o,"scale");void 0!==n&&t.push(n)}if(void 0!==e.DeformPercent){const n=this.generateMorphTrack(e);void 0!==n&&t.push(n)}return t}generateVectorTrack(e,t,n,i){const o=this.getTimesForAllAxes(t),a=this.getKeyframeTrackValues(o,t,n);return new r.yC1(e+"."+i,o,a)}generateRotationTrack(e,t,n,i,o,a){void 0!==t.x&&(this.interpolateRotations(t.x),t.x.values=t.x.values.map(r.M8C.degToRad)),void 0!==t.y&&(this.interpolateRotations(t.y),t.y.values=t.y.values.map(r.M8C.degToRad)),void 0!==t.z&&(this.interpolateRotations(t.z),t.z.values=t.z.values.map(r.M8C.degToRad));const s=this.getTimesForAllAxes(t),l=this.getKeyframeTrackValues(s,t,n);void 0!==i&&(i=i.map(r.M8C.degToRad),i.push(a),i=(new r.USm).fromArray(i),i=(new r._fP).setFromEuler(i)),void 0!==o&&(o=o.map(r.M8C.degToRad),o.push(a),o=(new r.USm).fromArray(o),o=(new r._fP).setFromEuler(o).invert());const u=new r._fP,c=new r.USm,d=[];for(let r=0;r1){let e=1,n=t[0];for(let r=1;r=180){const o=i/180,a=r/o;let s=n+a;const l=e.times[t-1],u=e.times[t]-l,c=u/o;let d=l+c;const p=[],h=[];while(d1&&(n=e[1].replace(/^(\w+)::/,""),r=e[2]),{id:t,name:n,type:r}}parseNodeProperty(e,t,n){let r=t[1].replace(/^"/,"").replace(/"$/,"").trim(),i=t[2].replace(/^"/,"").replace(/"$/,"").trim();"Content"===r&&","===i&&(i=n.replace(/"/g,"").replace(/,$/,"").trim());const o=this.getCurrentNode(),a=o.name;if("Properties70"!==a){if("C"===r){const e=i.split(",").slice(1),t=parseInt(e[0]),n=parseInt(e[1]);let a=i.split(",").slice(3);a=a.map((function(e){return e.trim().replace(/^"/,"")})),r="connections",i=[t,n],fe(i,a),void 0===o[r]&&(o[r]=[])}"Node"===r&&(o.id=i),r in o&&Array.isArray(o[r])?o[r].push(i):"a"!==r?o[r]=i:o.a=i,this.setCurrentProp(o,r),"a"===r&&","!==i.slice(-1)&&(o.a=pe(i))}else this.parseNodeSpecialProperty(e,r,i)}parseNodePropertyContinued(e){const t=this.getCurrentNode();t.a+=e,","!==e.slice(-1)&&(t.a=pe(t.a))}parseNodeSpecialProperty(e,t,n){const r=n.split('",').map((function(e){return e.trim().replace(/^\"/,"").replace(/\s/,"_")})),i=r[0],o=r[1],a=r[2],s=r[3];let l=r[4];switch(o){case"int":case"enum":case"bool":case"ULongLong":case"double":case"Number":case"FieldOfView":l=parseFloat(l);break;case"Color":case"ColorRGB":case"Vector3D":case"Lcl_Translation":case"Lcl_Rotation":case"Lcl_Scaling":l=pe(l);break}this.getPrevNode()[i]={type:o,type2:a,flag:s,value:l},this.setCurrentProp(this.getPrevNode(),i)}}class Q{parse(e){const t=new ee(e);t.skip(23);const n=t.getUint32();if(n<6400)throw new Error("THREE.FBXLoader: FBX version not supported, FileVersion: "+n);const r=new te;while(!this.endOfContent(t)){const e=this.parseNode(t,n);null!==e&&r.add(e.name,e)}return r}endOfContent(e){return e.size()%16===0?(e.getOffset()+160+16&-16)>=e.size():e.getOffset()+160+16>=e.size()}parseNode(e,t){const n={},r=t>=7500?e.getUint64():e.getUint32(),i=t>=7500?e.getUint64():e.getUint32();t>=7500?e.getUint64():e.getUint32();const o=e.getUint8(),a=e.getString(o);if(0===r)return null;const s=[];for(let d=0;d0?s[0]:"",u=s.length>1?s[1]:"",c=s.length>2?s[2]:"";n.singleProperty=1===i&&e.getOffset()===r;while(r>e.getOffset()){const r=this.parseNode(e,t);null!==r&&this.parseSubNode(a,n,r)}return n.propertyList=s,"number"===typeof l&&(n.id=l),""!==u&&(n.attrName=u),""!==c&&(n.attrType=c),""!==a&&(n.name=a),n}parseSubNode(e,t,n){if(!0===n.singleProperty){const e=n.propertyList[0];Array.isArray(e)?(t[n.name]=n,n.a=e):t[n.name]=e}else if("Connections"===e&&"C"===n.name){const e=[];n.propertyList.forEach((function(t,n){0!==n&&e.push(t)})),void 0===t.connections&&(t.connections=[]),t.connections.push(e)}else if("Properties70"===n.name){const e=Object.keys(n);e.forEach((function(e){t[e]=n[e]}))}else if("Properties70"===e&&"P"===n.name){let e=n.propertyList[0],r=n.propertyList[1];const i=n.propertyList[2],o=n.propertyList[3];let a;0===e.indexOf("Lcl ")&&(e=e.replace("Lcl ","Lcl_")),0===r.indexOf("Lcl ")&&(r=r.replace("Lcl ","Lcl_")),a="Color"===r||"ColorRGB"===r||"Vector"===r||"Vector3D"===r||0===r.indexOf("Lcl_")?[n.propertyList[4],n.propertyList[5],n.propertyList[6]]:n.propertyList[4],t[e]={type:r,type2:i,flag:o,value:a}}else void 0===t[n.name]?"number"===typeof n.id?(t[n.name]={},t[n.name][n.id]=n):t[n.name]=n:"PoseNode"===n.name?(Array.isArray(t[n.name])||(t[n.name]=[t[n.name]]),t[n.name].push(n)):void 0===t[n.name][n.id]&&(t[n.name][n.id]=n)}parseProperty(e){const t=e.getString(1);let n;switch(t){case"C":return e.getBoolean();case"D":return e.getFloat64();case"F":return e.getFloat32();case"I":return e.getInt32();case"L":return e.getInt64();case"R":return n=e.getUint32(),e.getArrayBuffer(n);case"S":return n=e.getUint32(),e.getString(n);case"Y":return e.getInt16();case"b":case"c":case"d":case"f":case"i":case"l":const r=e.getUint32(),i=e.getUint32(),o=e.getUint32();if(0===i)switch(t){case"b":case"c":return e.getBooleanArray(r);case"d":return e.getFloat64Array(r);case"f":return e.getFloat32Array(r);case"i":return e.getInt32Array(r);case"l":return e.getInt64Array(r)}const a=O(new Uint8Array(e.getArrayBuffer(o))),s=new ee(a.buffer);switch(t){case"b":case"c":return s.getBooleanArray(r);case"d":return s.getFloat64Array(r);case"f":return s.getFloat32Array(r);case"i":return s.getInt32Array(r);case"l":return s.getInt64Array(r)}break;default:throw new Error("THREE.FBXLoader: Unknown property type "+t)}}}class ee{constructor(e,t){this.dv=new DataView(e),this.offset=0,this.littleEndian=void 0===t||t}getOffset(){return this.offset}size(){return this.dv.buffer.byteLength}skip(e){this.offset+=e}getBoolean(){return 1===(1&this.getUint8())}getBooleanArray(e){const t=[];for(let n=0;n=0&&(t=t.slice(0,n)),r.Zp0.decodeText(new Uint8Array(t))}}class te{add(e,t){this[e]=t}}function ne(e){const t="Kaydara FBX Binary \0";return e.byteLength>=t.length&&t===he(e,0,t.length)}function re(e){const t=["K","a","y","d","a","r","a","\\","F","B","X","\\","B","i","n","a","r","y","\\","\\"];let n=0;function r(t){const r=e[t-1];return e=e.slice(n+t),n++,r}for(let i=0;i