@evixcard/evx-ui-kit 1.16.2 → 1.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/EvLargeImage/EvLargeImage.vue.d.ts +9 -0
- package/dist/components/EvLargeImage/index.d.ts +2 -0
- package/dist/components/EvSpecsTable/EvSpecsTable.vue.d.ts +6 -0
- package/dist/components/EvSpecsTable/index.d.ts +2 -0
- package/dist/evx-ui-kit.cjs +1 -1
- package/dist/evx-ui-kit.cjs.map +1 -1
- package/dist/evx-ui-kit.css +1 -1
- package/dist/evx-ui-kit.es.js +3074 -3015
- package/dist/evx-ui-kit.es.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/evx-ui-kit.cjs
CHANGED
|
@@ -102,5 +102,5 @@
|
|
|
102
102
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dD(A,t){if(A){if(typeof A=="string")return Gw(A,t);var f={}.toString.call(A).slice(8,-1);return f==="Object"&&A.constructor&&(f=A.constructor.name),f==="Map"||f==="Set"?Array.from(A):f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f)?Gw(A,t):void 0}}function Gw(A,t){(t==null||t>A.length)&&(t=A.length);for(var f=0,n=Array(t);f<t;f++)n[f]=A[f];return n}var cD=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function Cr(A,t,f){if(t=t||{},!(!A.country&&!A.countryCallingCode)){f=new mA(f),f.selectNumberingPlan(A.country,A.countryCallingCode);var n=t.v2?A.nationalNumber:A.phone;if(le(n,f.nationalNumberPattern())){if(Zn(n,"FIXED_LINE",f))return f.type("MOBILE")&&f.type("MOBILE").pattern()===""||!f.type("MOBILE")||Zn(n,"MOBILE",f)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var v=uD(cD),w;!(w=v()).done;){var r=w.value;if(Zn(n,r,f))return r}}}}function Zn(A,t,f){var n=f.type(t);return!n||!n.pattern()||n.possibleLengths()&&n.possibleLengths().indexOf(A.length)<0?!1:le(A,n.pattern())}function iD(A,t,f){if(t=t||{},f=new mA(f),f.selectNumberingPlan(A.country,A.countryCallingCode),f.hasTypes())return Cr(A,t,f.metadata)!==void 0;var n=t.v2?A.nationalNumber:A.phone;return le(n,f.nationalNumberPattern())}function lD(A,t,f){var n=new mA(f),v=n.getCountryCodesForCallingCode(A);return v?v.filter(function(w){return DD(t,w,f)}):[]}function DD(A,t,f){var n=new mA(f);return n.selectNumberingPlan(t),n.numberingPlan.possibleLengths().indexOf(A.length)>=0}var Pr=2,CD=17,PD=3,Ae="0-90-9٠-٩۰-۹",bD="-‐-―−ー-",XD="//",zD="..",LD=" ",MD="()()[]\\[\\]",HD="~⁓∼~",en="".concat(bD).concat(XD).concat(zD).concat(LD).concat(MD).concat(HD),br="++",YD=new RegExp("(["+Ae+"])");function mD(A,t,f,n){if(t){var v=new mA(n);v.selectNumberingPlan(t,f);var w=new RegExp(v.IDDPrefix());if(A.search(w)===0){A=A.slice(A.match(w)[0].length);var r=A.match(YD);if(!(r&&r[1]!=null&&r[1].length>0&&r[1]==="0"))return A}}}function xD(A,t){if(A&&t.numberingPlan.nationalPrefixForParsing()){var f=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),n=f.exec(A);if(n){var v,w,r=n.length-1,s=r>0&&n[r];if(t.nationalPrefixTransformRule()&&s)v=A.replace(f,t.nationalPrefixTransformRule()),r>1&&(w=n[1]);else{var g=n[0];v=A.slice(g.length),s&&(w=n[1])}var B;if(s){var a=A.indexOf(n[1]),o=A.slice(0,a);o===t.numberingPlan.nationalPrefix()&&(B=t.numberingPlan.nationalPrefix())}else B=n[0];return{nationalNumber:v,nationalPrefix:B,carrierCode:w}}}return{nationalNumber:A}}function GD(A,t){var f=typeof Symbol<"u"&&A[Symbol.iterator]||A["@@iterator"];if(f)return(f=f.call(A)).next.bind(f);if(Array.isArray(A)||(f=hD(A))||t){f&&(A=f);var n=0;return function(){return n>=A.length?{done:!0}:{done:!1,value:A[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
103
103
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hD(A,t){if(A){if(typeof A=="string")return hw(A,t);var f={}.toString.call(A).slice(8,-1);return f==="Object"&&A.constructor&&(f=A.constructor.name),f==="Map"||f==="Set"?Array.from(A):f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f)?hw(A,t):void 0}}function hw(A,t){(t==null||t>A.length)&&(t=A.length);for(var f=0,n=Array(t);f<t;f++)n[f]=A[f];return n}function ND(A,t){var f=t.countries,n=t.metadata;n=new mA(n);for(var v=GD(f),w;!(w=v()).done;){var r=w.value;if(n.selectNumberingPlan(r),n.leadingDigits()){if(A&&A.search(n.leadingDigits())===0)return r}else if(Cr({phone:A,country:r},void 0,n.metadata))return r}}function _8(A,t){var f=t.nationalNumber,n=t.metadata,v=n.getCountryCodesForCallingCode(A);if(v)return v.length===1?v[0]:ND(f,{countries:v,metadata:n.metadata})}function Xv(A,t,f){var n=xD(A,f),v=n.carrierCode,w=n.nationalNumber;if(w!==A){if(!QD(A,w,f))return{nationalNumber:A};if(f.numberingPlan.possibleLengths()&&(t||(t=_8(f.numberingPlan.callingCode(),{nationalNumber:w,metadata:f})),!FD(w,t,f)))return{nationalNumber:A}}return{nationalNumber:w,carrierCode:v}}function QD(A,t,f){return!(le(A,f.nationalNumberPattern())&&!le(t,f.nationalNumberPattern()))}function FD(A,t,f){switch(Dr(A,t,f)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function OD(A,t,f,n,v){var w=f?Gn(f,v):n;if(A.indexOf(w)===0){v=new mA(v),v.selectNumberingPlan(f,w);var r=A.slice(w.length),s=Xv(r,t,v),g=s.nationalNumber,B=Xv(A,t,v),a=B.nationalNumber;if(!le(a,v.nationalNumberPattern())&&le(g,v.nationalNumberPattern())||Dr(a,t,v)==="TOO_LONG")return{countryCallingCode:w,number:r}}return{number:A}}function AB(A,t,f,n,v){if(!A)return{};var w;if(A[0]!=="+"){var r=mD(A,f,n,v);if(r&&r!==A)w=!0,A="+"+r;else{if(f||n){var s=OD(A,t,f,n,v),g=s.countryCallingCode,B=s.number;if(g)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:g,number:B}}return{number:A}}}if(A[1]==="0")return{};v=new mA(v);for(var a=2;a-1<=PD&&a<=A.length;){var o=A.slice(1,a);if(v.hasCallingCode(o))return v.selectNumberingPlan(o),{countryCallingCodeSource:w?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:o,number:A.slice(a)};a++}return{}}function ED(A){return A.replace(new RegExp("[".concat(en,"]+"),"g")," ").trim()}var yD=/(\$\d)/;function pD(A,t,f){var n=f.useInternationalFormat,v=f.withNationalPrefix,w=A.replace(new RegExp(t.pattern()),n?t.internationalFormat():v&&t.nationalPrefixFormattingRule()?t.format().replace(yD,t.nationalPrefixFormattingRule()):t.format());return n?ED(w):w}var jD=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function ID(A,t,f){var n=new mA(f);if(n.selectNumberingPlan(A,t),n.defaultIDDPrefix())return n.defaultIDDPrefix();if(jD.test(n.IDDPrefix()))return n.IDDPrefix()}var VD=";ext=",at=function(t){return"([".concat(Ae,"]{1,").concat(t,"})")};function eB(A){var t="20",f="15",n="9",v="6",w="[ \\t,]*",r="[:\\..]?[ \\t,-]*",s="#?",g="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",B="(?:[xx##~~]|int|int)",a="[- ]+",o="[ \\t]*",u="(?:,{2}|;)",d=VD+at(t),l=w+g+r+at(t)+s,C=w+B+r+at(n)+s,c=a+at(v)+"#",D=o+u+r+at(f)+s,i=o+"(?:,)+"+r+at(n)+s;return d+"|"+l+"|"+C+"|"+c+"|"+D+"|"+i}var TD="["+Ae+"]{"+Pr+"}",WD="["+br+"]{0,1}(?:["+en+"]*["+Ae+"]){3,}["+en+Ae+"]*",ZD=new RegExp("^["+br+"]{0,1}(?:["+en+"]*["+Ae+"]){1,2}$","i"),qD=WD+"(?:"+eB()+")?",KD=new RegExp("^"+TD+"$|^"+qD+"$","i");function kD(A){return A.length>=Pr&&KD.test(A)}function RD(A){return ZD.test(A)}function JD(A){var t=A.number,f=A.ext;if(!t)return"";if(t[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(f?";ext="+f:"")}var Nw={formatExtension:function(t,f,n){return"".concat(t).concat(n.ext()).concat(f)}};function UD(A,t,f,n){if(f?f=_D({},Nw,f):f=Nw,n=new mA(n),A.country&&A.country!=="001"){if(!n.hasCountry(A.country))throw new Error("Unknown country: ".concat(A.country));n.selectNumberingPlan(A.country)}else if(A.countryCallingCode)n.selectNumberingPlan(A.countryCallingCode);else return A.phone||"";var v=n.countryCallingCode(),w=f.v2?A.nationalNumber:A.phone,r;switch(t){case"NATIONAL":return w?(r=tn(w,A.carrierCode,"NATIONAL",n,f),qn(r,A.ext,n,f.formatExtension)):"";case"INTERNATIONAL":return w?(r=tn(w,null,"INTERNATIONAL",n,f),r="+".concat(v," ").concat(r),qn(r,A.ext,n,f.formatExtension)):"+".concat(v);case"E.164":return"+".concat(v).concat(w);case"RFC3966":return JD({number:"+".concat(v).concat(w),ext:A.ext});case"IDD":if(!f.fromCountry)return;var s=$D(w,A.carrierCode,v,f.fromCountry,n);return s?qn(s,A.ext,n,f.formatExtension):void 0;default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function tn(A,t,f,n,v){var w=SD(n.formats(),A);return w?pD(A,w,{useInternationalFormat:f==="INTERNATIONAL",withNationalPrefix:!(w.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&v&&v.nationalPrefix===!1)}):A}function SD(A,t){return A4(A,function(f){if(f.leadingDigitsPatterns().length>0){var n=f.leadingDigitsPatterns()[f.leadingDigitsPatterns().length-1];if(t.search(n)!==0)return!1}return le(t,f.pattern())})}function qn(A,t,f,n){return t?n(A,t,f):A}function $D(A,t,f,n,v){var w=Gn(n,v.metadata);if(w===f){var r=tn(A,t,"NATIONAL",v);return f==="1"?f+" "+r:r}var s=ID(n,void 0,v.metadata);if(s)return"".concat(s," ").concat(f," ").concat(tn(A,null,"INTERNATIONAL",v))}function _D(){for(var A=1,t=arguments.length,f=new Array(t),n=0;n<t;n++)f[n]=arguments[n];for(;A<f.length;){if(f[A])for(var v in f[A])f[0][v]=f[A][v];A++}return f[0]}function A4(A,t){for(var f=0;f<A.length;){if(t(A[f]))return A[f];f++}}function _t(A){"@babel/helpers - typeof";return _t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_t(A)}function Qw(A,t){var f=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);t&&(n=n.filter(function(v){return Object.getOwnPropertyDescriptor(A,v).enumerable})),f.push.apply(f,n)}return f}function Fw(A){for(var t=1;t<arguments.length;t++){var f=arguments[t]!=null?arguments[t]:{};t%2?Qw(Object(f),!0).forEach(function(n){e4(A,n,f[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(f)):Qw(Object(f)).forEach(function(n){Object.defineProperty(A,n,Object.getOwnPropertyDescriptor(f,n))})}return A}function e4(A,t,f){return(t=tB(t))in A?Object.defineProperty(A,t,{value:f,enumerable:!0,configurable:!0,writable:!0}):A[t]=f,A}function t4(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}function f4(A,t){for(var f=0;f<t.length;f++){var n=t[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(A,tB(n.key),n)}}function n4(A,t,f){return t&&f4(A.prototype,t),Object.defineProperty(A,"prototype",{writable:!1}),A}function tB(A){var t=v4(A,"string");return _t(t)=="symbol"?t:t+""}function v4(A,t){if(_t(A)!="object"||!A)return A;var f=A[Symbol.toPrimitive];if(f!==void 0){var n=f.call(A,t);if(_t(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(A)}var r4=(function(){function A(t,f,n){if(t4(this,A),!t)throw new TypeError("First argument is required");if(typeof t!="string")throw new TypeError("First argument must be a string");if(t[0]==="+"&&!f)throw new TypeError("`metadata` argument not passed");if(Dt(f)&&Dt(f.countries)){n=f;var v=t;if(!g4.test(v))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var w=AB(v,void 0,void 0,void 0,n),r=w.countryCallingCode,s=w.number;if(f=s,t=r,!f)throw new Error("Invalid `number` argument passed: too short")}if(!f)throw new TypeError("`nationalNumber` argument is required");if(typeof f!="string")throw new TypeError("`nationalNumber` argument must be a string");U8(n);var g=s4(t,n),B=g.country,a=g.countryCallingCode;this.country=B,this.countryCallingCode=a,this.nationalNumber=f,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return n}}return n4(A,[{key:"setExt",value:function(f){this.ext=f}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:lD(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return oD(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return iD(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var f=new mA(this.getMetadata());return f.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(f){return this.number===f.number&&this.ext===f.ext}},{key:"getType",value:function(){return Cr(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(f,n){return UD(this,f,n?Fw(Fw({},n),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(f){return this.format("NATIONAL",f)}},{key:"formatInternational",value:function(f){return this.format("INTERNATIONAL",f)}},{key:"getURI",value:function(f){return this.format("RFC3966",f)}}])})(),w4=function(t){return/^[A-Z]{2}$/.test(t)};function s4(A,t){var f,n,v=new mA(t);return w4(A)?(f=A,v.selectNumberingPlan(f),n=v.countryCallingCode()):n=A,{country:f,countryCallingCode:n}}var g4=/^\+\d+$/;function zv(A){"@babel/helpers - typeof";return zv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zv(A)}function B4(A,t,f){return Object.defineProperty(A,"prototype",{writable:!1}),A}function a4(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}function o4(A,t,f){return t=ef(t),u4(A,Xr()?Reflect.construct(t,f||[],ef(A).constructor):t.apply(A,f))}function u4(A,t){if(t&&(zv(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d4(A)}function d4(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function c4(A,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(t&&t.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),t&&Af(A,t)}function Lv(A){var t=typeof Map=="function"?new Map:void 0;return Lv=function(n){if(n===null||!l4(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,v)}function v(){return i4(n,arguments,ef(this).constructor)}return v.prototype=Object.create(n.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),Af(v,n)},Lv(A)}function i4(A,t,f){if(Xr())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var v=new(A.bind.apply(A,n));return f&&Af(v,f.prototype),v}function Xr(){try{var A=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Xr=function(){return!!A})()}function l4(A){try{return Function.toString.call(A).indexOf("[native code]")!==-1}catch{return typeof A=="function"}}function Af(A,t){return Af=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,n){return f.__proto__=n,f},Af(A,t)}function ef(A){return ef=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ef(A)}var ie=(function(A){function t(f){var n;return a4(this,t),n=o4(this,t,[f]),Object.setPrototypeOf(n,t.prototype),n.name=n.constructor.name,n}return c4(t,A),B4(t)})(Lv(Error)),Ow=new RegExp("(?:"+eB()+")$","i");function D4(A){var t=A.search(Ow);if(t<0)return{};for(var f=A.slice(0,t),n=A.match(Ow),v=1;v<n.length;){if(n[v])return{number:f,ext:n[v]};v++}}var C4={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function P4(A){return C4[A]}function b4(A,t){var f=typeof Symbol<"u"&&A[Symbol.iterator]||A["@@iterator"];if(f)return(f=f.call(A)).next.bind(f);if(Array.isArray(A)||(f=X4(A))||t){f&&(A=f);var n=0;return function(){return n>=A.length?{done:!0}:{done:!1,value:A[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
104
104
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function X4(A,t){if(A){if(typeof A=="string")return Ew(A,t);var f={}.toString.call(A).slice(8,-1);return f==="Object"&&A.constructor&&(f=A.constructor.name),f==="Map"||f==="Set"?Array.from(A):f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f)?Ew(A,t):void 0}}function Ew(A,t){(t==null||t>A.length)&&(t=A.length);for(var f=0,n=Array(t);f<t;f++)n[f]=A[f];return n}function yw(A){for(var t="",f=b4(A.split("")),n;!(n=f()).done;){var v=n.value;t+=z4(v,t)||""}return t}function z4(A,t,f){return A==="+"?t?void 0:"+":P4(A)}var fB="+",L4="[\\-\\.\\(\\)]?",pw="(["+Ae+"]|"+L4+")",M4="^\\"+fB+pw+"*["+Ae+"]"+pw+"*$",H4=new RegExp(M4,"g"),Mv=Ae,Y4="["+Mv+"]+((\\-)*["+Mv+"])*",m4="a-zA-Z",x4="["+m4+"]+((\\-)*["+Mv+"])*",G4="^("+Y4+"\\.)*"+x4+"\\.?$",h4=new RegExp(G4,"g"),jw="tel:",Hv=";phone-context=",N4=";isub=";function Q4(A){var t=A.indexOf(Hv);if(t<0)return null;var f=t+Hv.length;if(f>=A.length)return"";var n=A.indexOf(";",f);return n>=0?A.substring(f,n):A.substring(f)}function F4(A){return A===null?!0:A.length===0?!1:H4.test(A)||h4.test(A)}function O4(A,t){var f=t.extractFormattedPhoneNumber,n=Q4(A);if(!F4(n))throw new ie("NOT_A_NUMBER");var v;if(n===null)v=f(A)||"";else{v="",n.charAt(0)===fB&&(v+=n);var w=A.indexOf(jw),r;w>=0?r=w+jw.length:r=0;var s=A.indexOf(Hv);v+=A.substring(r,s)}var g=v.indexOf(N4);if(g>0&&(v=v.substring(0,g)),v!=="")return v}var E4=250,y4=new RegExp("["+br+Ae+"]"),p4=new RegExp("[^"+Ae+"#]+$");function j4(A,t,f){if(t=t||{},f=new mA(f),t.defaultCountry&&!f.hasCountry(t.defaultCountry))throw t.v2?new ie("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var n=V4(A,t.v2,t.extract),v=n.number,w=n.ext,r=n.error;if(!v){if(t.v2)throw r==="TOO_SHORT"?new ie("TOO_SHORT"):new ie("NOT_A_NUMBER");return{}}var s=W4(v,t.defaultCountry,t.defaultCallingCode,f),g=s.country,B=s.nationalNumber,a=s.countryCallingCode,o=s.countryCallingCodeSource,u=s.carrierCode;if(!f.hasSelectedNumberingPlan()){if(t.v2)throw new ie("INVALID_COUNTRY");return{}}if(!B||B.length<Pr){if(t.v2)throw new ie("TOO_SHORT");return{}}if(B.length>CD){if(t.v2)throw new ie("TOO_LONG");return{}}if(t.v2){var d=new r4(a,B,f.metadata);return g&&(d.country=g),u&&(d.carrierCode=u),w&&(d.ext=w),d.__countryCallingCodeSource=o,d}var l=(t.extended?f.hasSelectedNumberingPlan():g)?le(B,f.nationalNumberPattern()):!1;return t.extended?{country:g,countryCallingCode:a,carrierCode:u,valid:l,possible:l?!0:!!(t.extended===!0&&f.possibleLengths()&&$8(B,g,f)),phone:B,ext:w}:l?T4(g,B,w):{}}function I4(A,t,f){if(A){if(A.length>E4){if(f)throw new ie("TOO_LONG");return}if(t===!1)return A;var n=A.search(y4);if(!(n<0))return A.slice(n).replace(p4,"")}}function V4(A,t,f){var n=O4(A,{extractFormattedPhoneNumber:function(r){return I4(r,f,t)}});if(!n)return{};if(!kD(n))return RD(n)?{error:"TOO_SHORT"}:{};var v=D4(n);return v.ext?v:{number:n}}function T4(A,t,f){var n={country:A,phone:t};return f&&(n.ext=f),n}function W4(A,t,f,n){var v=AB(yw(A),void 0,t,f,n.metadata),w=v.countryCallingCodeSource,r=v.countryCallingCode,s=v.number,g;if(r)n.selectNumberingPlan(r);else if(s&&(t||f))n.selectNumberingPlan(t,f),t&&(g=t),r=f||Gn(t,n.metadata);else return{};if(!s)return{countryCallingCodeSource:w,countryCallingCode:r};var B=Xv(yw(s),g,n),a=B.nationalNumber,o=B.carrierCode,u=_8(r,{nationalNumber:a,metadata:n});return u&&(g=u,u==="001"||n.selectNumberingPlan(g)),{country:g,countryCallingCode:r,countryCallingCodeSource:w,nationalNumber:a,carrierCode:o}}function tf(A){"@babel/helpers - typeof";return tf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tf(A)}function Iw(A,t){var f=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);t&&(n=n.filter(function(v){return Object.getOwnPropertyDescriptor(A,v).enumerable})),f.push.apply(f,n)}return f}function Vw(A){for(var t=1;t<arguments.length;t++){var f=arguments[t]!=null?arguments[t]:{};t%2?Iw(Object(f),!0).forEach(function(n){Z4(A,n,f[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(f)):Iw(Object(f)).forEach(function(n){Object.defineProperty(A,n,Object.getOwnPropertyDescriptor(f,n))})}return A}function Z4(A,t,f){return(t=q4(t))in A?Object.defineProperty(A,t,{value:f,enumerable:!0,configurable:!0,writable:!0}):A[t]=f,A}function q4(A){var t=K4(A,"string");return tf(t)=="symbol"?t:t+""}function K4(A,t){if(tf(A)!="object"||!A)return A;var f=A[Symbol.toPrimitive];if(f!==void 0){var n=f.call(A,t);if(tf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(A)}function k4(A,t,f){return j4(A,Vw(Vw({},t),{},{v2:!0}),f)}function ff(A){"@babel/helpers - typeof";return ff=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ff(A)}function Tw(A,t){var f=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);t&&(n=n.filter(function(v){return Object.getOwnPropertyDescriptor(A,v).enumerable})),f.push.apply(f,n)}return f}function R4(A){for(var t=1;t<arguments.length;t++){var f=arguments[t]!=null?arguments[t]:{};t%2?Tw(Object(f),!0).forEach(function(n){J4(A,n,f[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(f)):Tw(Object(f)).forEach(function(n){Object.defineProperty(A,n,Object.getOwnPropertyDescriptor(f,n))})}return A}function J4(A,t,f){return(t=U4(t))in A?Object.defineProperty(A,t,{value:f,enumerable:!0,configurable:!0,writable:!0}):A[t]=f,A}function U4(A){var t=S4(A,"string");return ff(t)=="symbol"?t:t+""}function S4(A,t){if(ff(A)!="object"||!A)return A;var f=A[Symbol.toPrimitive];if(f!==void 0){var n=f.call(A,t);if(ff(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(A)}function $4(A,t){return tC(A)||eC(A,t)||AC(A,t)||_4()}function _4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
105
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AC(A,t){if(A){if(typeof A=="string")return Ww(A,t);var f={}.toString.call(A).slice(8,-1);return f==="Object"&&A.constructor&&(f=A.constructor.name),f==="Map"||f==="Set"?Array.from(A):f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f)?Ww(A,t):void 0}}function Ww(A,t){(t==null||t>A.length)&&(t=A.length);for(var f=0,n=Array(t);f<t;f++)n[f]=A[f];return n}function eC(A,t){var f=A==null?null:typeof Symbol<"u"&&A[Symbol.iterator]||A["@@iterator"];if(f!=null){var n,v,w,r,s=[],g=!0,B=!1;try{if(w=(f=f.call(A)).next,t!==0)for(;!(g=(n=w.call(f)).done)&&(s.push(n.value),s.length!==t);g=!0);}catch(a){B=!0,v=a}finally{try{if(!g&&f.return!=null&&(r=f.return(),Object(r)!==r))return}finally{if(B)throw v}}return s}}function tC(A){if(Array.isArray(A))return A}function fC(A){var t=Array.prototype.slice.call(A),f=$4(t,4),n=f[0],v=f[1],w=f[2],r=f[3],s,g,B;if(typeof n=="string")s=n;else throw new TypeError("A text for parsing must be a string.");if(!v||typeof v=="string")r?(g=w,B=r):(g=void 0,B=w),v&&(g=R4({defaultCountry:v},g));else if(Dt(v))w?(g=v,B=w):B=v;else throw new Error("Invalid second argument: ".concat(v));return{text:s,options:g,metadata:B}}function nf(A){"@babel/helpers - typeof";return nf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nf(A)}function Zw(A,t){var f=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);t&&(n=n.filter(function(v){return Object.getOwnPropertyDescriptor(A,v).enumerable})),f.push.apply(f,n)}return f}function qw(A){for(var t=1;t<arguments.length;t++){var f=arguments[t]!=null?arguments[t]:{};t%2?Zw(Object(f),!0).forEach(function(n){nC(A,n,f[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(f)):Zw(Object(f)).forEach(function(n){Object.defineProperty(A,n,Object.getOwnPropertyDescriptor(f,n))})}return A}function nC(A,t,f){return(t=vC(t))in A?Object.defineProperty(A,t,{value:f,enumerable:!0,configurable:!0,writable:!0}):A[t]=f,A}function vC(A){var t=rC(A,"string");return nf(t)=="symbol"?t:t+""}function rC(A,t){if(nf(A)!="object"||!A)return A;var f=A[Symbol.toPrimitive];if(f!==void 0){var n=f.call(A,t);if(nf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(A)}function wC(A,t,f){t&&t.defaultCountry&&!BD(t.defaultCountry,f)&&(t=qw(qw({},t),{},{defaultCountry:void 0}));try{return k4(A,t,f)}catch(n){if(!(n instanceof ie))throw n}}function sC(){var A=fC(arguments),t=A.text,f=A.options,n=A.metadata;return wC(t,f,n)}function gC(A){return new mA(A).getCountries()}function zr(){return lr(sC,arguments)}function BC(){return lr(gC,arguments)}function At(){return lr(Gn,arguments)}function nB(A){const t=(A||"").trim().toUpperCase();if(!/^[A-Z]{2}$/.test(t))return null;try{return At(t),t}catch{return null}}function aC(A,t){const f=A.trim();if(!f.startsWith("+"))return f;const n=zr(f,t);if(n&&n.countryCallingCode===At(t))return n.nationalNumber;const v=`+${At(t)}`;return f.startsWith(v)?f.slice(v.length):f}function oC(A,t){const f=A.trim();if(!f.startsWith("+"))return null;const n=zr(f);return n?n.country?{country:n.country,nationalNumber:n.nationalNumber,canonical:n.number}:n.countryCallingCode===At(t)?{country:t,nationalNumber:n.nationalNumber,canonical:n.number}:null:null}function uC(A,t){const f=(A||"").trim();if(!f)return{canonical:null,errorCode:"empty"};const n=nB(t);if(!n)return{canonical:null,errorCode:"country_required"};const v=zr(f,n);if(!v||!v.isValid())return{canonical:null,errorCode:"invalid"};if(f.startsWith("+")){const w=At(n);if(v.countryCallingCode!==w)return{canonical:null,errorCode:"country_mismatch"};if(v.country&&v.country!==n)return{canonical:null,errorCode:"country_mismatch"}}return{canonical:v.format("E.164"),errorCode:null}}const dC={class:"mb-1.5 block text-[12px] font-medium text-[#6E6E6E]"},cC={class:"ev-phone-input__country"},iC={class:"ev-phone-input__selected-value"},lC={key:0,class:"ev-phone-input__flag"},DC={class:"ev-phone-input__code"},CC={class:"ev-phone-input__option-code"},PC={class:"ev-phone-input__option-name"},bC=["value","disabled","aria-label","aria-invalid","placeholder"],XC={key:0,class:"mt-1 text-[11px] text-[#C53030]",role:"alert"},zC=e.defineComponent({__name:"EvPhoneInput",props:{modelValue:{default:""},country:{default:""},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},locale:{default:void 0},strings:{default:void 0}},emits:["update:modelValue","update:country","validity"],setup(A,{emit:t}){const f=A,n=t,v={label:"Phone",placeholder:"Phone number",countryPlaceholder:"Country",countryHeaderTitle:"Country",countrySearchPlaceholder:"Search",countryNoResultsText:"No results",countrySelectorLabel:(P,L)=>P?`Country: ${P}, ${L}`:"Country",errorCountryRequired:"Select a country first",errorCountryMismatch:"Calling code does not match the selected country",errorInvalid:"Enter a valid phone number"},w=e.computed(()=>({...v,...f.strings,countrySelectorLabel:f.strings?.countrySelectorLabel??v.countrySelectorLabel})),r=e.computed(()=>f.locale??{regionNames:"en",countrySortLocale:"en"}),s=e.computed(()=>{const P=r.value,L=new Intl.DisplayNames(P.regionNames,{type:"region"});return BC().map(x=>({code:x,name:L.of(x)??x})).sort((x,z)=>x.name.localeCompare(z.name,P.countrySortLocale))});function g(P){return String.fromCodePoint(...P.toUpperCase().split("").map(L=>127397+L.charCodeAt(0)))}const B=e.computed(()=>s.value.map(({code:P,name:L})=>({value:P,title:`${g(P)} +${At(P)}`,meta:L}))),a=e.computed(()=>s.value.find(({code:P})=>P===f.country)??null),o=e.computed(()=>a.value?g(a.value.code):""),u=e.computed(()=>a.value?`+${At(a.value.code)}`:""),d=e.computed(()=>w.value.countrySelectorLabel(a.value?.name??null,u.value)),l=e.computed(()=>nB(f.country)),C=e.computed(()=>l.value?aC(f.modelValue,l.value):f.modelValue),c=e.computed(()=>uC(f.modelValue,f.country)),D=e.computed(()=>!f.modelValue||c.value.errorCode==null?"":c.value.errorCode==="country_required"?w.value.errorCountryRequired:c.value.errorCode==="country_mismatch"?w.value.errorCountryMismatch:w.value.errorInvalid);function i(P){const L=P==null?"":String(P);n("update:country",L),L!==f.country&&n("update:modelValue","")}function b(P){const L=P.target,x=L.value,z=l.value?oC(x,l.value):null;if(z){L.value=z.nationalNumber,n("update:country",z.country),n("update:modelValue",z.canonical);return}n("update:modelValue",x)}function X(){const P=c.value;n("validity",P.errorCode==null&&P.canonical!=null),P.canonical&&n("update:modelValue",P.canonical)}return(P,L)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("label",dC,e.toDisplayString(w.value.label),1),e.createElementVNode("div",{class:e.normalizeClass(["ev-phone-input",{"ev-phone-input--error":A.error||!!D.value,"ev-phone-input--disabled":A.disabled}])},[e.createElementVNode("div",cC,[e.createVNode(J8,{"model-value":A.country||null,options:B.value,disabled:A.disabled,size:"lg",teleport:"","menu-width":280,placeholder:w.value.countryPlaceholder,"header-title":w.value.countryHeaderTitle,"search-placeholder":w.value.countrySearchPlaceholder,"no-results-text":w.value.countryNoResultsText,"aria-label":d.value,class:"country-phone__select ev-phone-input__select w-auto h-[56px] min-h-[56px] border-0 rounded-l-[10px] rounded-r-none bg-transparent px-3 py-0 focus:border-0","onUpdate:modelValue":i},{"selected-value":e.withCtx(({placeholder:x})=>[e.createElementVNode("span",iC,[a.value?(e.openBlock(),e.createElementBlock("span",lC,e.toDisplayString(o.value),1)):e.createCommentVNode("",!0),e.createElementVNode("span",DC,e.toDisplayString(a.value?u.value:x),1)])]),option:e.withCtx(({option:x})=>[e.createElementVNode("span",CC,e.toDisplayString(x.title),1),e.createElementVNode("span",PC,e.toDisplayString(x.meta),1)]),_:1},8,["model-value","options","disabled","placeholder","header-title","search-placeholder","no-results-text","aria-label"])]),L[0]||(L[0]=e.createElementVNode("div",{class:"ev-phone-input__divider","aria-hidden":"true"},null,-1)),e.createElementVNode("input",{value:C.value,disabled:A.disabled,type:"tel",inputmode:"tel",autocomplete:"tel-national","aria-label":w.value.label,"aria-invalid":A.error||D.value?"true":"false",placeholder:w.value.placeholder,class:"ev-phone-input__number",onInput:b,onBlur:X},null,40,bC)],2),D.value?(e.openBlock(),e.createElementBlock("p",XC,e.toDisplayString(D.value),1)):e.createCommentVNode("",!0)]))}}),LC=wA._export_sfc(zC,[["__scopeId","data-v-70622ba2"]]),MC={class:"w-full"},HC={key:0,class:"block mb-2 text-sm-medium text-black"},YC=["disabled","aria-expanded"],mC=["aria-label"],xC={class:"flex items-center justify-between mb-2"},GC=["aria-label"],hC=["aria-label"],NC={key:0},QC={"data-test":"weekdays",class:"grid grid-cols-7 mb-1"},FC={"data-test":"days-grid",class:"grid grid-cols-7 gap-y-0.5"},OC={key:0},EC=["data-date","disabled","aria-label","aria-current","aria-pressed","onClick"],yC={key:1,class:"grid grid-cols-3 gap-1"},pC=["disabled","onClick"],jC={key:2,class:"grid grid-cols-3 gap-1"},IC=["disabled","onClick"],Kw="flex items-center justify-center w-8 h-8 rounded-[6px] text-gray-darkest hover:bg-gray-lightest transition-colors cursor-pointer",VC=e.defineComponent({inheritAttrs:!1,__name:"EvDatePicker",props:e.mergeModels({placeholder:{default:"Select date"},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},label:{},size:{default:"md"},class:{},min:{},max:{},locale:{},weekStartsOn:{default:1},dateFormatOptions:{},labels:{default:()=>({})}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(A){const t=A,f=e.useModel(A,"modelValue"),n=["January","February","March","April","May","June","July","August","September","October","November","December"],v=["Su","Mo","Tu","We","Th","Fr","Sa"],w={dialog:"Choose date",previousMonth:"Previous month",previousYear:"Previous year",previousYears:"Previous years",nextMonth:"Next month",nextYear:"Next year",nextYears:"Next years"},r=e.computed(()=>({...w,...t.labels})),s=e.computed(()=>t.locale??"en-GB");function g(y,K,$=1){return new Date(y,K,$,12)}function B(y,K){return new Intl.DateTimeFormat(s.value,K).format(y)}const a=e.computed(()=>t.locale?Array.from({length:12},(y,K)=>B(g(2024,K),{month:"long"})):n),o=e.computed(()=>t.locale?Array.from({length:12},(y,K)=>B(g(2024,K),{month:"short"})):n.map(y=>y.slice(0,3))),u=e.computed(()=>{const y=t.locale?Array.from({length:7},(K,$)=>B(g(2024,0,7+$),{weekday:"short"})):v;return Array.from({length:7},(K,$)=>y[(t.weekStartsOn+$)%7])}),d=y=>String(y).padStart(2,"0"),l=(y,K,$)=>`${y}-${d(K+1)}-${d($)}`;function C(y){if(!y)return null;const K=/^(\d{4})-(\d{2})-(\d{2})$/.exec(y);return K?{y:+K[1],m:+K[2]-1,d:+K[3]}:null}const c=e.ref(!1),D=e.ref(null),i=e.ref("days"),b=e.computed(()=>C(f.value)),X=(()=>{const y=new Date;return l(y.getFullYear(),y.getMonth(),y.getDate())})(),P=e.ref((()=>{const y=C(f.value);if(y)return{y:y.y,m:y.m};const K=new Date;return{y:K.getFullYear(),m:K.getMonth()}})());e.watch(()=>f.value,y=>{const K=C(y);K&&(P.value={y:K.y,m:K.m})});const L=e.computed(()=>{const y=b.value;return y?!t.locale&&!t.dateFormatOptions?`${d(y.d)}/${d(y.m+1)}/${y.y}`:B(g(y.y,y.m,y.d),t.dateFormatOptions??{day:"2-digit",month:"2-digit",year:"numeric"}):""}),x=e.computed(()=>t.locale?B(g(P.value.y,P.value.m),{month:"long",year:"numeric"}):`${a.value[P.value.m]} ${P.value.y}`);function z(y){const K=C(y);if(K)return B(g(K.y,K.m,K.d),{dateStyle:"long"})}function H(y){return!!(t.min&&y<t.min||t.max&&y>t.max)}const N=e.computed(()=>{const{y,m:K}=P.value,$=(new Date(y,K,1).getDay()-t.weekStartsOn+7)%7,O=new Date(y,K+1,0).getDate(),AA=[];for(let q=0;q<$;q++)AA.push(null);for(let q=1;q<=O;q++){const bA=l(y,K,q);AA.push({d:q,iso:bA,disabled:H(bA)})}return AA}),Q=e.ref(P.value.y-P.value.y%12);e.watch(i,y=>{y==="years"&&(Q.value=P.value.y-P.value.y%12)});const m=e.computed(()=>Array.from({length:12},(y,K)=>Q.value+K));function G(){t.disabled||(c.value=!c.value,c.value&&(i.value="days"))}function M(y,K){K||(f.value=y,c.value=!1)}function Y(){const{y,m:K}=P.value;P.value=K===0?{y:y-1,m:11}:{y,m:K-1}}function h(){const{y,m:K}=P.value;P.value=K===11?{y:y+1,m:0}:{y,m:K+1}}function p(y,K){const $=l(y,K,1),O=l(y,K,new Date(y,K+1,0).getDate());return!!(t.max&&$>t.max||t.min&&O<t.min)}function F(y){return!!(t.max&&`${y}-01-01`>t.max||t.min&&`${y}-12-31`<t.min)}function S(y){p(P.value.y,y)||(P.value={...P.value,m:y},i.value="days")}function nA(y){F(y)||(P.value={...P.value,y},i.value="months")}function _(){i.value==="days"?Y():i.value==="months"?P.value={...P.value,y:P.value.y-1}:Q.value-=12}function j(){i.value==="days"?h():i.value==="months"?P.value={...P.value,y:P.value.y+1}:Q.value+=12}function V(){i.value=i.value==="years"?"days":"years"}const W=e.computed(()=>i.value==="days"?r.value.previousMonth:i.value==="months"?r.value.previousYear:r.value.previousYears),vA=e.computed(()=>i.value==="days"?r.value.nextMonth:i.value==="months"?r.value.nextYear:r.value.nextYears);function BA(y){D.value&&!D.value.contains(y.target)&&(c.value=!1)}function sA(y){y.key==="Escape"&&c.value&&(c.value=!1)}e.onMounted(()=>{document.addEventListener("mousedown",BA),document.addEventListener("keydown",sA)}),e.onUnmounted(()=>{document.removeEventListener("mousedown",BA),document.removeEventListener("keydown",sA)});const k=e.computed(()=>T("w-full px-4 bg-white border rounded-[8px] text-left flex items-center justify-between gap-2 transition-colors text-[16px]",Rt[t.size],"focus:outline-none focus:border-[color:var(--ev-input-focus,#888A8D)]",c.value?"border-[color:var(--ev-input-focus,#888A8D)]":"border-[color:var(--ev-input-border,#F1F1F1)]",t.error?"border-error":"",t.disabled?"bg-background text-muted cursor-not-allowed":"cursor-pointer",t.class));return(y,K)=>(e.openBlock(),e.createElementBlock("div",MC,[A.label?(e.openBlock(),e.createElementBlock("label",HC,e.toDisplayString(A.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"root",ref:D,class:"relative"},[e.createElementVNode("button",e.mergeProps({"data-test":"trigger",type:"button",disabled:A.disabled,"aria-expanded":c.value,"aria-haspopup":"dialog",class:k.value},y.$attrs,{onClick:G}),[e.createElementVNode("span",{class:e.normalizeClass(L.value?"text-black":"text-muted")},e.toDisplayString(L.value||A.placeholder),3),K[0]||(K[0]=e.createElementVNode("svg",{class:"text-gray-darkest shrink-0",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[e.createElementVNode("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2"}),e.createElementVNode("path",{d:"M16 2v4M8 2v4M3 10h18"})],-1))],16,YC),c.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"ev-datepicker-pop ev-popover-surface fade-in absolute z-20 mt-1 w-[300px] p-3",role:"dialog","aria-label":r.value.dialog},[e.createElementVNode("div",xC,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(Kw),"aria-label":W.value,onClick:_},[...K[1]||(K[1]=[e.createElementVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"m15 18-6-6 6-6"})],-1)])],8,GC),e.createElementVNode("button",{"data-test":"header-label",type:"button",class:"px-3 py-1 rounded-[6px] text-sm-medium text-black hover:bg-gray-lightest transition-colors cursor-pointer",onClick:V},[i.value==="days"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(x.value),1)],64)):i.value==="months"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(P.value.y),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(m.value[0])+" – "+e.toDisplayString(m.value[m.value.length-1]),1)],64))]),e.createElementVNode("button",{type:"button",class:e.normalizeClass(Kw),"aria-label":vA.value,onClick:j},[...K[2]||(K[2]=[e.createElementVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"m9 18 6-6-6-6"})],-1)])],8,hC)]),i.value==="days"?(e.openBlock(),e.createElementBlock("div",NC,[e.createElementVNode("div",QC,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,$=>(e.openBlock(),e.createElementBlock("span",{key:$,class:"h-8 flex items-center justify-center text-xs text-muted"},e.toDisplayString($),1))),128))]),e.createElementVNode("div",FC,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,($,O)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:O},[$?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button","data-date":$.iso,disabled:$.disabled,"aria-label":z($.iso),"aria-current":$.iso===e.unref(X)?"date":void 0,"aria-pressed":$.iso===f.value,class:e.normalizeClass(["h-9 w-9 mx-auto flex items-center justify-center rounded-full text-sm-regular transition-colors",$.disabled?"text-muted cursor-not-allowed":$.iso===f.value?"bg-brand-blue text-white":"text-black hover:bg-gray-lightest cursor-pointer",$.iso===e.unref(X)&&$.iso!==f.value?"border border-border":""]),onClick:AA=>M($.iso,$.disabled)},e.toDisplayString($.d),11,EC)):(e.openBlock(),e.createElementBlock("span",OC))],64))),128))])])):i.value==="months"?(e.openBlock(),e.createElementBlock("div",yC,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,($,O)=>(e.openBlock(),e.createElementBlock("button",{key:$,type:"button",disabled:p(P.value.y,O),class:e.normalizeClass(["h-10 rounded-[6px] text-sm-regular transition-colors",p(P.value.y,O)?"text-muted cursor-not-allowed":O===P.value.m?"bg-info-bg text-brand-blue-active cursor-pointer":"text-black hover:bg-gray-lightest cursor-pointer"]),onClick:AA=>S(O)},e.toDisplayString($),11,pC))),128))])):(e.openBlock(),e.createElementBlock("div",jC,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,$=>(e.openBlock(),e.createElementBlock("button",{key:$,type:"button",disabled:F($),class:e.normalizeClass(["h-10 rounded-[6px] text-sm-regular transition-colors",F($)?"text-muted cursor-not-allowed":$===P.value.y?"bg-info-bg text-brand-blue-active cursor-pointer":"text-black hover:bg-gray-lightest cursor-pointer"]),onClick:O=>nA($)},e.toDisplayString($),11,IC))),128))]))],8,mC)):e.createCommentVNode("",!0)],512)]))}}),TC={class:"text-sm-regular text-gray-darkest tabular-nums"},WC=["disabled"],ZC={key:0,class:"text-gray-dark px-0.5 text-xs"},qC=["aria-current","onClick"],KC=["disabled"],kw="min-w-[96px] text-[12px] font-medium px-3 py-1.5 h-8 disabled:opacity-50 disabled:bg-[#DBDBDB] disabled:text-[#707070] disabled:border-transparent",kC=e.defineComponent({__name:"EvPagination",props:{page:{},totalPages:{},mode:{default:"numbered"},class:{}},emits:["update:page"],setup(A,{emit:t}){const f=A,n=t,v=e.computed(()=>f.page<=1),w=e.computed(()=>f.page>=f.totalPages),r=e.computed(()=>{const{page:B,totalPages:a}=f;return Array.from({length:a},(u,d)=>d+1).filter(u=>a<=7||u===1||u===a||u>=B-1&&u<=B+1)});function s(B){if(B===0)return!1;const a=r.value;return a[B]-a[B-1]>1}function g(B){B<1||B>f.totalPages||B===f.page||n("update:page",B)}return(B,a)=>A.mode==="prevnext"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(T)("inline-flex items-center gap-3",f.class))},[e.createVNode(e.unref(ge),{variant:"third",size:"sm",class:e.normalizeClass(kw+" border-0"),"is-disabled":v.value,onClick:a[0]||(a[0]=o=>g(A.page-1))},{default:e.withCtx(()=>[...a[4]||(a[4]=[e.createTextVNode(" Previous ",-1)])]),_:1},8,["class","is-disabled"]),e.createElementVNode("span",TC,"Page "+e.toDisplayString(A.page)+" of "+e.toDisplayString(A.totalPages),1),e.createVNode(e.unref(ge),{variant:"primary",size:"sm",class:e.normalizeClass(kw+" enabled:hover:bg-[#333333]"),"is-disabled":w.value,onClick:a[1]||(a[1]=o=>g(A.page+1))},{default:e.withCtx(()=>[...a[5]||(a[5]=[e.createTextVNode(" Next ",-1)])]),_:1},8,["class","is-disabled"])],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(T)("flex items-center gap-0.5",f.class))},[e.createElementVNode("button",{type:"button",disabled:v.value,class:e.normalizeClass(["w-6 h-6 flex items-center justify-center rounded-sm transition-colors",v.value?"text-gray-dark cursor-not-allowed":"text-black hover:bg-background cursor-pointer"]),"aria-label":"Previous page",onClick:a[2]||(a[2]=o=>g(A.page-1))},[...a[6]||(a[6]=[e.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[e.createElementVNode("path",{d:"m15 18-6-6 6-6"})],-1)])],10,WC),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(o,u)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"flex items-center gap-0.5"},[s(u)?(e.openBlock(),e.createElementBlock("span",ZC,"…")):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",style:{fontSize:"11px"},class:e.normalizeClass(["min-w-6 h-6 rounded-sm transition-colors px-1.5 cursor-pointer",o===A.page?"bg-black text-white":"text-black hover:bg-background"]),"aria-current":o===A.page?"page":void 0,onClick:d=>g(o)},e.toDisplayString(o),11,qC)]))),128)),e.createElementVNode("button",{type:"button",disabled:w.value,class:e.normalizeClass(["w-6 h-6 flex items-center justify-center rounded-sm transition-colors",w.value?"text-gray-dark cursor-not-allowed":"text-black hover:bg-background cursor-pointer"]),"aria-label":"Next page",onClick:a[3]||(a[3]=o=>g(A.page+1))},[...a[7]||(a[7]=[e.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[e.createElementVNode("path",{d:"m9 18 6-6-6-6"})],-1)])],10,KC)],2))}}),RC=e.defineComponent({__name:"EvFilterChip",props:{label:{},value:{},removable:{type:Boolean,default:!1},active:{type:Boolean,default:!1},class:{}},emits:["remove","click"],setup(A,{emit:t}){const f=A,n=t,v=e.computed(()=>T("group inline-flex items-center gap-1.5 px-2.5 py-1 rounded-[6px] text-sm-regular","bg-info-bg text-brand-blue-active ring-1 ring-inset ring-brand-blue/30 transition-colors","has-[button:hover]:bg-error-bg has-[button:hover]:text-brand-red-active has-[button:hover]:ring-brand-red/40",f.class)),w=e.computed(()=>T("px-2.5 h-6 rounded-[6px] text-xs-medium transition-colors inline-flex items-center cursor-pointer",f.active?"bg-info-bg text-brand-blue-active ring-1 ring-inset ring-brand-blue/30":"bg-background text-gray-darkest hover:bg-gray-light",f.class));return(r,s)=>A.removable?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(v.value)},[e.createElementVNode("span",null,[e.renderSlot(r.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(A.label)+": "+e.toDisplayString(A.value),1)])]),e.createElementVNode("button",{type:"button",class:"p-0.5 rounded-sm transition-colors cursor-pointer","aria-label":"Remove",onClick:s[0]||(s[0]=g=>n("remove"))},[e.createVNode(wA._sfc_main,{class:"w-3 h-3",color:"currentColor","aria-hidden":"true"})])],2)):(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:e.normalizeClass(w.value),onClick:s[1]||(s[1]=g=>n("click"))},[e.renderSlot(r.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(A.label),1)])],2))}}),JC={class:"w-full relative"},UC=["aria-label","onClick"],SC=["placeholder"],$C={key:0,class:"ev-tag-input-popover ev-popover-surface fade-in absolute z-20 mt-1 w-full"},_C={class:"max-h-48 overflow-auto py-1"},AP=["onMousedown"],eP=e.defineComponent({inheritAttrs:!1,__name:"EvTagInput",props:e.mergeModels({suggestions:{default:()=>[]},placeholder:{default:"Add tag…"},size:{default:"md"},class:{}},{modelValue:{default:()=>[]},modelModifiers:{}}),emits:e.mergeModels(["update:modelValue"],["update:modelValue"]),setup(A,{emit:t}){const f=A,n=t,v=e.useModel(A,"modelValue"),w=e.ref(""),r=e.ref(!1);let s;const g=e.computed(()=>v.value??[]),B=e.computed(()=>f.suggestions.filter(C=>!g.value.includes(C)&&C.toLowerCase().includes(w.value.toLowerCase())));function a(C){const c=C.trim();if(!c||g.value.includes(c)){w.value="";return}const D=[...g.value,c];v.value=D,n("update:modelValue",D),w.value=""}function o(C){const c=g.value.filter(D=>D!==C);v.value=c,n("update:modelValue",c)}function u(){s&&clearTimeout(s),r.value=!0}function d(){s=setTimeout(()=>{r.value=!1},120)}function l(C){C.key==="Enter"||C.key===","?(C.preventDefault(),a(w.value)):C.key==="Backspace"&&!w.value&&g.value.length&&o(g.value[g.value.length-1])}return(C,c)=>(e.openBlock(),e.createElementBlock("div",JC,[e.createElementVNode("div",{"data-testid":"ev-tag-input-box",class:e.normalizeClass(e.unref(T)("w-full px-2 py-1 bg-white border rounded-[8px] flex flex-wrap items-center gap-1.5 transition-colors",e.unref(ir)[f.size],r.value?"border-[color:var(--ev-input-focus,#888A8D)]":"border-[color:var(--ev-input-border,#F1F1F1)]",f.class))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,D=>(e.openBlock(),e.createElementBlock("span",{key:D,class:"inline-flex items-center gap-1 px-2 py-0.5 rounded-[6px] bg-info-bg text-brand-blue-active text-xs-medium"},[e.createTextVNode(e.toDisplayString(D)+" ",1),e.createElementVNode("button",{type:"button","aria-label":`Remove ${D}`,class:"inline-flex w-3.5 h-3.5 items-center justify-center rounded-sm hover:bg-[#DCE5FF] cursor-pointer",onClick:i=>o(D)},[e.createVNode(wA._sfc_main,{class:"w-[10px] h-[10px]",color:"currentColor"})],8,UC)]))),128)),e.withDirectives(e.createElementVNode("input",e.mergeProps(C.$attrs,{type:"text","onUpdate:modelValue":c[0]||(c[0]=D=>w.value=D),placeholder:g.value.length?"":A.placeholder,class:"flex-1 min-w-[120px] h-7 px-1 bg-transparent text-sm-regular text-black placeholder:text-gray-dark outline-none",onFocus:u,onBlur:d,onKeydown:l}),null,16,SC),[[e.vModelText,w.value]])],2),r.value&&B.value.length>0?(e.openBlock(),e.createElementBlock("div",$C,[e.createElementVNode("ul",_C,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,D=>(e.openBlock(),e.createElementBlock("li",{key:D},[e.createElementVNode("button",{type:"button",class:"w-full text-left px-3 py-1.5 text-sm-regular text-black hover:bg-gray-lightest cursor-pointer",onMousedown:e.withModifiers(i=>a(D),["prevent"])},e.toDisplayString(D),41,AP)]))),128))])])):e.createCommentVNode("",!0)]))}}),tP=["type","aria-label","disabled"],fP=e.defineComponent({__name:"EvIconButton",props:{class:{},variant:{default:"ghost"},size:{default:"md"},ariaLabel:{},type:{default:"button"},isDisabled:{type:Boolean,default:!1}},emits:["click"],setup(A,{emit:t}){const f=A,n=t,v={ghost:"rounded-sm text-gray-darkest hover:bg-background",bordered:"rounded-[6px] bg-white border border-gray-light hover:bg-gray-lightest text-black"},w={ghost:{sm:"p-1",md:"p-1.5"},bordered:{sm:"w-9 h-9",md:"w-10 h-10"}},r=e.computed(()=>T("inline-flex items-center justify-center transition-colors cursor-pointer disabled:cursor-not-allowed disabled:pointer-events-none disabled:opacity-50",v[f.variant],w[f.variant][f.size],f.class));return(s,g)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(r.value),type:f.type,"aria-label":f.ariaLabel,disabled:f.isDisabled||void 0,onClick:g[0]||(g[0]=B=>n("click",B))},[e.renderSlot(s.$slots,"default")],10,tP))}}),nP={key:0,class:"text-sm text-gray-darkest leading-relaxed"},vP={key:1,class:"mt-4 text-sm text-error",role:"alert"},rP={class:"mt-6 flex gap-3"},wP={class:"inline-flex max-w-full items-center justify-center gap-2"},sP={class:"min-w-0 break-words"},gP=e.defineComponent({__name:"EvConfirmDialog",props:{isOpen:{type:Boolean},title:{},description:{},confirmLabel:{default:"Confirm"},cancelLabel:{default:"Cancel"},loading:{type:Boolean,default:!1},loadingLabel:{default:"Loading"},closeLabel:{default:"Close"},destructive:{type:Boolean,default:!1},error:{},size:{default:"sm"},showCloseButton:{type:Boolean,default:!1},blur:{type:Boolean,default:!0}},emits:["confirm","cancel","close"],setup(A,{emit:t}){const f=A,n=t,v=e.computed(()=>f.destructive?"min-w-0 flex-1 bg-destructive px-2 sm:px-[33.5px]":"min-w-0 flex-1 px-2 sm:px-[33.5px]");function w(){f.loading||(n("cancel"),n("close"))}function r(){f.loading||n("confirm")}return(s,g)=>(e.openBlock(),e.createBlock(e.unref(R8),{"is-open":A.isOpen,title:A.title,size:A.size,"show-close-button":A.showCloseButton,"close-label":A.closeLabel,blur:A.blur,"initial-focus":A.loading?"none":"first",onClose:w},{default:e.withCtx(()=>[A.description||s.$slots.default?(e.openBlock(),e.createElementBlock("div",nP,[e.renderSlot(s.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(A.description),1)])])):e.createCommentVNode("",!0),A.error?(e.openBlock(),e.createElementBlock("p",vP,e.toDisplayString(A.error),1)):e.createCommentVNode("",!0),e.createElementVNode("div",rP,[e.createVNode(e.unref(ge),{variant:"ghost",size:"xl",class:"min-w-0 flex-1 border border-gray-light px-2 sm:px-[33.5px]","is-disabled":A.loading,onClick:w},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.cancelLabel),1)]),_:1},8,["is-disabled"]),e.createVNode(e.unref(ge),{variant:"black",size:"xl",class:e.normalizeClass(v.value),"is-disabled":A.loading,onClick:r},{default:e.withCtx(()=>[e.createElementVNode("span",wP,[A.loading?(e.openBlock(),e.createBlock(e.unref(uf),{key:0,size:"xs",color:"var(--white)",label:A.loadingLabel},null,8,["label"])):e.createCommentVNode("",!0),e.createElementVNode("span",sP,e.toDisplayString(A.confirmLabel),1)])]),_:1},8,["class","is-disabled"])])]),_:3},8,["is-open","title","size","show-close-button","close-label","blur","initial-focus"]))}}),BP={key:0,class:"absolute inset-0 overflow-hidden pointer-events-none rounded-3xl","aria-hidden":"true"},aP={class:"relative z-10 w-full"},oP=e.defineComponent({__name:"EvGlassCard",props:{variant:{default:"default"},animated:{type:Boolean,default:!0},bubbles:{default:5},class:{}},setup(A){const t=A,f={default:"rgba(15, 23, 42, 0.35)",blue:"rgba(30, 64, 175, 0.30)",purple:"rgba(88, 28, 135, 0.35)",pink:"rgba(157, 23, 77, 0.30)",dark:"rgba(0, 0, 0, 0.55)"},n=["bg-gradient-to-r from-blue-400 to-purple-500","bg-gradient-to-r from-purple-400 to-pink-500","bg-gradient-to-r from-pink-400 to-red-500","bg-gradient-to-r from-yellow-400 to-orange-500","bg-gradient-to-r from-green-400 to-blue-500","bg-gradient-to-r from-indigo-400 to-purple-500"],v=e.computed(()=>T("relative min-h-screen w-full rounded-3xl shadow-2xl overflow-hidden",t.class)),w=e.computed(()=>({backgroundColor:f[t.variant],backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",border:"1px solid rgba(255, 255, 255, 0.16)"})),r=e.computed(()=>Array.from({length:t.bubbles},(s,g)=>{const B=80+g*40,a=g*37%100,o=g*53%100,u=g*.8;return{key:g,class:n[g%n.length],style:{width:`${B}px`,height:`${B}px`,left:`${a}%`,top:`${o}%`,animationDelay:`${u}s`,animationDuration:`${8+g*2}s`}}}));return(s,g)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(v.value),style:e.normalizeStyle(w.value)},[A.animated?(e.openBlock(),e.createElementBlock("div",BP,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,B=>(e.openBlock(),e.createElementBlock("div",{key:B.key,class:e.normalizeClass(["ev-glass-bubble absolute rounded-full",B.class]),style:e.normalizeStyle(B.style)},null,6))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",aP,[e.renderSlot(s.$slots,"default",{},void 0,!0)])],6))}}),uP=wA._export_sfc(oP,[["__scopeId","data-v-b21cffb6"]]),dP=e.defineComponent({__name:"EvAppBackground",props:{desktopSrc:{},mobileSrc:{},backgroundColor:{default:"var(--color-info-bg)"},animate:{type:Boolean,default:!1},speed:{default:28}},setup(A){e.useCssVars(v=>({v3d5484ee:f.value,v52fea2a6:n.value}));const t=A,f=e.computed(()=>t.desktopSrc?`url("${t.desktopSrc}")`:"none"),n=e.computed(()=>t.mobileSrc?`url("${t.mobileSrc}")`:f.value);return(v,w)=>(e.openBlock(),e.createElementBlock("div",{class:"ev-app-background","aria-hidden":"true",style:e.normalizeStyle({backgroundColor:A.backgroundColor})},null,4))}}),cP=wA._export_sfc(dP,[["__scopeId","data-v-5ea7ea47"]]),iP={class:"mx-auto max-w-4xl rounded-2xl bg-foreground border border-white/10 px-6 py-5 flex flex-col sm:flex-row items-start sm:items-center gap-4 shadow-2xl"},lP={class:"flex-1 text-sm text-white/90 leading-relaxed"},DP=["href"],CP={class:"flex items-center gap-3 shrink-0"},PP=e.defineComponent({__name:"EvCookieBanner",props:{visible:{type:Boolean},text:{},learnMoreHref:{},learnMoreLabel:{default:"Learn more"},acceptAllLabel:{default:"Accept All"},acceptEssentialLabel:{default:"Only Essential"},class:{}},emits:["accept-all","accept-essential"],setup(A,{emit:t}){const f=A,n=t,v=e.computed(()=>T("fixed bottom-0 inset-x-0 z-40 p-4 sm:p-6",f.class));return(w,r)=>(e.openBlock(),e.createBlock(e.Transition,{"enter-active-class":"transition duration-300 ease-out","enter-from-class":"translate-y-full opacity-0","enter-to-class":"translate-y-0 opacity-100","leave-active-class":"transition duration-200 ease-in","leave-from-class":"translate-y-0 opacity-100","leave-to-class":"translate-y-full opacity-0"},{default:e.withCtx(()=>[A.visible?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(v.value)},[e.createElementVNode("div",iP,[e.createElementVNode("div",lP,[e.renderSlot(w.$slots,"text",{},()=>[e.createElementVNode("p",null,[e.createTextVNode(e.toDisplayString(A.text||"We use cookies to ensure the site works correctly and to improve your experience. Essential cookies are always active. You can choose to allow analytics cookies that help us understand how you use the site.")+" ",1),A.learnMoreHref?(e.openBlock(),e.createElementBlock("a",{key:0,href:A.learnMoreHref,class:"underline text-white hover:text-white/70 transition-colors cursor-pointer"},e.toDisplayString(A.learnMoreLabel),9,DP)):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",CP,[e.renderSlot(w.$slots,"actions",{},()=>[e.createVNode(e.unref(ge),{variant:"ghost",size:"sm",class:"text-white/80 border border-white/20",onClick:r[0]||(r[0]=s=>n("accept-essential"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.acceptEssentialLabel),1)]),_:1}),e.createVNode(e.unref(ge),{variant:"black",size:"sm",class:"bg-white text-black",onClick:r[1]||(r[1]=s=>n("accept-all"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.acceptAllLabel),1)]),_:1})])])])],2)):e.createCommentVNode("",!0)]),_:3}))}}),bP={key:0},XP={class:"flex sm:flex-col max-sm:flex-row gap-1"},zP={class:"font-bold"},LP=e.defineComponent({__name:"EvHowToStep",props:{number:{},class:{}},setup(A){const t=A,f=e.computed(()=>T("flex gap-2 sm:w-54 max-sm:w-full",t.class));return(n,v)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(f.value)},[n.$slots.icon?(e.openBlock(),e.createElementBlock("div",bP,[e.renderSlot(n.$slots,"icon")])):e.createCommentVNode("",!0),e.createElementVNode("div",XP,[e.createElementVNode("span",zP,"#"+e.toDisplayString(A.number),1),e.createElementVNode("span",null,[e.renderSlot(n.$slots,"default")])])],2))}}),vB=e.defineComponent({__name:"EvCard",props:{as:{default:"div"},selected:{type:Boolean,default:!1},interactive:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dimmed:{type:Boolean,default:!1},padding:{default:"none"},radius:{default:"lg"},class:{}},emits:["click"],setup(A,{emit:t}){const f=A,n=t,v={none:"p-0",sm:"p-3",md:"p-4"},w={md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl"},r=e.computed(()=>T("border bg-white transition-colors",w[f.radius],v[f.padding],f.selected?"border-brand-blue bg-[#F5F8FF]":"border-gray-light",f.interactive&&!f.disabled&&"cursor-pointer hover:border-[#CFCFCF]",f.dimmed&&"opacity-65",f.disabled&&"opacity-65 pointer-events-none",f.class));function s(g){if(f.disabled){g.preventDefault();return}n("click",g)}return(g,B)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(A.as),{class:e.normalizeClass(r.value),type:A.as==="button"?"button":void 0,disabled:A.as==="button"&&A.disabled?!0:void 0,"aria-disabled":A.disabled?"true":void 0,onClick:s},{default:e.withCtx(()=>[e.renderSlot(g.$slots,"default")]),_:3},8,["class","type","disabled","aria-disabled"]))}}),MP={key:1,class:"flex h-full w-full flex-col items-center justify-center gap-1 bg-[#F4F4F5] text-[#B8B8BC]"},HP={key:2,class:"pointer-events-none absolute inset-0"},YP=e.defineComponent({__name:"EvCardMedia",props:{ratio:{default:"8/5"},framed:{type:Boolean,default:!0},objectFit:{default:"cover"},class:{}},setup(A){const t=A,f=e.useSlots(),n=e.computed(()=>{const s=f.default;return(s?s():[]).some(B=>B.type!==e.Comment&&!(B.type===e.Text&&!String(B.children).trim()))}),v=e.computed(()=>({aspectRatio:t.ratio.replace("/"," / ")})),w=e.computed(()=>T(t.framed&&"p-1 pb-0",t.class)),r=e.computed(()=>T("relative overflow-hidden",t.framed&&"rounded-[4px] ring-1 ring-inset ring-black/10",t.objectFit==="cover"?"[&_img]:object-cover":"[&_img]:object-contain","[&_img]:h-full [&_img]:w-full"));return(s,g)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(w.value)},[e.createElementVNode("div",{class:e.normalizeClass(r.value),style:e.normalizeStyle(v.value)},[n.value?e.renderSlot(s.$slots,"default",{key:0}):(e.openBlock(),e.createElementBlock("div",MP,[e.renderSlot(s.$slots,"placeholder",{},()=>[g[0]||(g[0]=e.createStaticVNode('<svg viewBox="0 0 24 24" width="22" height="22" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="3" width="18" height="18" rx="2"></rect><circle cx="9" cy="9" r="2"></circle><path d="m21 15-3.86-3.86a2 2 0 0 0-2.83 0L6 20"></path></svg><span class="text-[11px]">No cover</span>',2))])])),s.$slots.overlay?(e.openBlock(),e.createElementBlock("div",HP,[e.renderSlot(s.$slots,"overlay")])):e.createCommentVNode("",!0)],6)],2))}}),mP=e.defineComponent({__name:"EvCardOverlayBadge",props:{position:{default:"top-left"},tone:{default:"dark"},class:{}},setup(A){const t=A,f={"top-left":"top-2 left-2","top-right":"top-2 right-2","bottom-left":"bottom-2 left-2","bottom-right":"bottom-2 right-2"},n=e.computed(()=>T("absolute z-10 inline-flex items-center gap-1 rounded-full px-2 py-0.5",f[t.position],t.tone==="light"?"bg-white text-[#846116]":"bg-black/70 text-white",t.class));return(v,w)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["text-xs-medium pointer-events-auto",n.value])},[e.renderSlot(v.$slots,"default")],2))}}),xP={class:"min-w-0 flex-1"},GP={key:0,class:"shrink-0"},hP=e.defineComponent({__name:"EvCardHeader",props:{align:{default:"start"},class:{}},setup(A){const t=A,f={start:"items-start",center:"items-center",end:"items-end"},n=e.computed(()=>T("flex justify-between gap-2",f[t.align],t.class));return(v,w)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(n.value)},[e.createElementVNode("div",xP,[e.renderSlot(v.$slots,"default")]),v.$slots.trailing?(e.openBlock(),e.createElementBlock("div",GP,[e.renderSlot(v.$slots,"trailing")])):e.createCommentVNode("",!0)],2))}}),NP=["title"],rB=e.defineComponent({__name:"EvCardTitle",props:{lines:{default:2},class:{}},setup(A){const t=A,f=e.useSlots();function n(s){return s?s.map(g=>{if(typeof g=="string"||typeof g=="number")return String(g);const B=g.children;return typeof B=="string"?B:Array.isArray(B)?n(B):""}).join(""):""}const v=e.computed(()=>{const s=f.default;return n(s?s():[]).trim()||void 0}),w={1:"line-clamp-1",2:"line-clamp-2",3:"line-clamp-3"},r=e.computed(()=>T("text-black",w[t.lines],t.class));return(s,g)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["text-sm-medium",r.value]),title:v.value},[e.renderSlot(s.$slots,"default")],10,NP))}}),QP=e.defineComponent({__name:"EvCardSubtitle",props:{lines:{default:1},class:{}},setup(A){const t=A,f=e.computed(()=>T("text-[#707070] mt-1.5",t.lines===2?"line-clamp-2":"truncate",t.class));return(n,v)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["text-xs-regular",f.value])},[e.renderSlot(n.$slots,"default")],2))}}),wB=e.defineComponent({__name:"EvCardSection",props:{divided:{type:Boolean,default:!1},cols:{default:1},class:{}},setup(A){const t=A,f={1:"",2:"grid grid-cols-2 gap-x-4 gap-y-3",3:"grid grid-cols-3 gap-x-4 gap-y-3"},n=e.computed(()=>T(f[t.cols],t.divided&&"border-t border-gray-light mt-3 pt-3",t.class));return(v,w)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(n.value)},[e.renderSlot(v.$slots,"default")],2))}}),FP={key:0,class:"text-[10px] font-medium uppercase leading-[1.4] tracking-[0.06em] text-gray-dark"},OP=["title"],sB=e.defineComponent({__name:"EvCardField",props:{label:{},value:{},align:{default:"start"},numeric:{type:Boolean,default:!1},truncate:{type:Boolean,default:!0},class:{}},setup(A){const t=A,f=e.computed(()=>T("min-w-0",t.align==="end"?"text-right":"text-left",t.class)),n=e.computed(()=>T("mt-1 min-w-0 text-black",t.truncate&&"truncate",t.numeric&&"tabular-nums")),v=e.computed(()=>t.truncate&&t.value!=null?String(t.value):void 0);return(w,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(f.value)},[A.label?(e.openBlock(),e.createElementBlock("div",FP,e.toDisplayString(A.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["text-sm-regular",n.value]),title:v.value},[e.renderSlot(w.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(A.value),1)])],10,OP)],2))}}),gB=e.defineComponent({__name:"EvCardActions",props:{divided:{type:Boolean,default:!1},justify:{default:"between"},class:{}},setup(A){const t=A,f={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between"},n=e.computed(()=>T("flex items-center gap-2",f[t.justify],t.divided&&"border-t border-gray-light mt-3 pt-3",t.class));return(v,w)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(n.value)},[e.renderSlot(v.$slots,"default")],2))}}),EP=e.defineComponent({__name:"EvCardMeta",props:{tabularNums:{type:Boolean,default:!0},class:{}},setup(A){const t=A,f=e.computed(()=>T("text-[#A5A5A5] truncate min-w-0",t.tabularNums&&"tabular-nums",t.class));return(n,v)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["text-xs-regular",f.value])},[e.renderSlot(n.$slots,"default")],2))}}),yP=["src","alt"],pP=e.defineComponent({__name:"EvCardAvatar",props:{src:{},name:{},class:{}},setup(A){const t=A,f=e.computed(()=>t.name?.trim().charAt(0).toUpperCase()??""),n=e.computed(()=>T("inline-flex h-8 w-8 shrink-0 items-center justify-center overflow-hidden rounded-full bg-gray-light text-[#5C505C]",t.class));return(v,w)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["text-xs-medium",n.value])},[e.renderSlot(v.$slots,"default",{},()=>[A.src?(e.openBlock(),e.createElementBlock("img",{key:0,src:A.src,alt:A.name,class:"h-full w-full object-cover"},null,8,yP)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(f.value),1)],64))])],2))}}),jP={class:"flex items-start gap-3"},IP=["checked","aria-label"],BB=e.defineComponent({__name:"EvDataCard",props:{row:{},titleColumn:{},gridColumns:{default:()=>[]},actionsColumn:{},selectable:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},selectLabel:{},gridCols:{default:2}},emits:["click","toggle"],setup(A,{emit:t}){const f=A,n=t;function v(r){return r.split(".").reduce((s,g)=>{if(s&&typeof s=="object"&&g in s)return s[g]},f.row)}const w=e.computed(()=>f.selected?"cursor-pointer":"cursor-pointer hover:bg-gray-lightest");return(r,s)=>(e.openBlock(),e.createBlock(vB,{"data-testid":"ev-data-table-card",radius:"md",padding:"md",selected:A.selected,class:e.normalizeClass(w.value),onClick:s[3]||(s[3]=g=>n("click"))},{default:e.withCtx(()=>[e.createElementVNode("div",jP,[A.selectable?(e.openBlock(),e.createElementBlock("label",{key:0,class:"inline-flex shrink-0 cursor-pointer items-center justify-center p-2 -m-1",onClick:s[1]||(s[1]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("input",{type:"checkbox",class:"h-4 w-4 cursor-pointer rounded-[3px] border-gray-medium accent-[#6888FB]",checked:A.selected,"aria-label":A.selectLabel,onChange:s[0]||(s[0]=g=>n("toggle"))},null,40,IP)])):e.createCommentVNode("",!0),A.titleColumn?(e.openBlock(),e.createBlock(rB,{key:1,lines:2,class:"min-w-0 flex-1"},{default:e.withCtx(()=>[e.renderSlot(r.$slots,`cell-${A.titleColumn.key}`,{row:A.row,value:v(A.titleColumn.key)},()=>[e.createTextVNode(e.toDisplayString(v(A.titleColumn.key)),1)])]),_:3})):e.createCommentVNode("",!0)]),A.gridColumns.length?(e.openBlock(),e.createBlock(wB,{key:0,divided:"",cols:A.gridCols},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.gridColumns,g=>(e.openBlock(),e.createBlock(sB,{key:g.key,label:g.label},{default:e.withCtx(()=>[e.renderSlot(r.$slots,`cell-${g.key}`,{row:A.row,value:v(g.key)},()=>[e.createTextVNode(e.toDisplayString(v(g.key)),1)])]),_:2},1032,["label"]))),128))]),_:3},8,["cols"])):e.createCommentVNode("",!0),A.actionsColumn?(e.openBlock(),e.createBlock(gB,{key:1,divided:"",justify:"end",onClick:s[2]||(s[2]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.renderSlot(r.$slots,`cell-${A.actionsColumn.key}`,{row:A.row,value:v(A.actionsColumn.key)})]),_:3})):e.createCommentVNode("",!0)]),_:3},8,["selected","class"]))}}),VP={class:"min-w-full divide-y divide-gray-light"},TP={class:"bg-gray-lightest"},WP={key:0,class:"px-3 py-3 w-10"},ZP={class:"inline-flex cursor-pointer items-center justify-center p-2 -m-2"},qP=["checked","indeterminate"],KP=["onClick"],kP={class:"flex items-center space-x-1"},RP={key:0,class:"flex flex-col"},JP={class:"bg-white divide-y divide-gray-light"},UP=["onClick"],SP={class:"inline-flex cursor-pointer items-center justify-center p-2 -m-2"},$P=["checked","aria-label","onChange"],_P=["onClick"],A1={key:0,"data-testid":"ev-row-expansion",class:"bg-white"},e1=["colspan"],t1={"data-expansion-inner":""},f1={key:0},n1={key:0,"data-testid":"card-select-all",class:"mb-3 flex items-center"},v1={class:"inline-flex cursor-pointer items-center gap-2 p-1 -m-1"},r1=["checked","indeterminate"],w1={class:"text-sm-regular text-gray-darkest"},s1={key:0,"data-testid":"ev-row-expansion-card",class:"col-span-full"},g1={"data-expansion-inner":""},B1={key:2},Rw=200,a1=e.defineComponent({__name:"EvDataTable",props:e.mergeModels({data:{default:()=>[]},columns:{},sortField:{default:""},sortDirection:{default:"asc"},page:{default:1},pageSize:{default:0},selectable:{type:Boolean,default:!1},selectedKeys:{default:()=>[]},rowKey:{default:"id"},mobileLayout:{default:"auto"},cardTitleKey:{},cardGridCols:{default:2},viewToggle:{type:Boolean,default:!1},selectionLabel:{},expandedKey:{default:null}},{view:{default:"table"},viewModifiers:{}}),emits:e.mergeModels(["sort","update:page","row-click","update:selectedKeys"],["update:view"]),setup(A,{emit:t}){const f=e.ref(null);let n=0,v=!1;function w(O){const q=O.target?.closest("button");q&&f.value&&f.value.contains(q)&&q.focus({preventScroll:!0})}function r(){v=!0,f.value&&(f.value.scrollLeft=n),requestAnimationFrame(()=>{v=!1})}function s(){v||f.value&&(n=f.value.scrollLeft)}e.onMounted(()=>{const O=f.value;O&&(O.addEventListener("focusin",r),O.addEventListener("scroll",s,{passive:!0}))}),e.onBeforeUnmount(()=>{const O=f.value;O&&(O.removeEventListener("focusin",r),O.removeEventListener("scroll",s))});const g=A,B=e.useModel(A,"view"),a=t,o=e.getCurrentInstance(),u=e.computed(()=>!!o?.vnode.props?.onRowClick),d=e.ref("cards"),l=e.computed(()=>g.viewToggle===!0),C=e.computed(()=>l.value?B.value:d.value);function c(O){l.value?B.value=O:d.value=O}const b=[{value:"cards",label:"",icon:()=>e.h(LA,{name:"layout-grid",size:16})},{value:"table",label:"",icon:()=>e.h(LA,{name:"list",size:16})}],X=e.computed(()=>l.value?B.value==="cards":g.mobileLayout!=="table"&&(g.mobileLayout==="cards"||d.value==="cards")),P=e.computed(()=>l.value?!0:g.mobileLayout==="auto"),L=e.computed(()=>l.value?"":"lg:hidden"),x=e.computed(()=>l.value?B.value==="cards"?"hidden":"":X.value?"hidden lg:block":""),z=e.computed(()=>l.value?"":"lg:hidden"),H=e.computed(()=>l.value?"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3":"space-y-3"),N=e.computed(()=>g.columns.find(O=>O.key===g.cardTitleKey)??g.columns[0]),Q=e.computed(()=>g.columns.find(O=>O.key==="actions")),m=e.computed(()=>g.columns.filter(O=>O!==N.value&&O.key!=="actions"));function G(O){return g.selectionLabel?g.selectionLabel(O):`Select ${String(M(O))}`}function M(O){const AA=O[g.rowKey];return typeof AA=="string"||typeof AA=="number"?AA:0}function Y(O){return g.selectedKeys.includes(M(O))}function h(O){return g.expandedKey!=null&&M(O)===g.expandedKey}const p=e.computed(()=>g.columns.length+(g.selectable?1:0));function F(){return typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(prefers-reduced-motion: reduce)").matches:!1}function S(O,AA,q,bA){const oA=O.querySelector("[data-expansion-inner]");if(!oA||F()){bA();return}oA.style.overflow="hidden",oA.style.height=AA,oA.offsetHeight,oA.style.transition=`height ${Rw}ms ease`,oA.style.height=q;let eA=!1;const uA=()=>{eA||(eA=!0,oA.removeEventListener("transitionend",dA),clearTimeout(ee),oA.style.transition="",oA.style.height="",oA.style.overflow="",bA())},dA=kA=>{kA.target===oA&&kA.propertyName==="height"&&uA()};oA.addEventListener("transitionend",dA);const ee=setTimeout(uA,Rw+60)}function nA(O,AA){const q=O.querySelector("[data-expansion-inner]");S(O,"0px",`${q?q.scrollHeight:0}px`,AA)}function _(O,AA){const q=O.querySelector("[data-expansion-inner]");S(O,`${q?q.scrollHeight:0}px`,"0px",AA)}const j=e.computed(()=>$.value.length>0&&$.value.every(O=>Y(O))),V=e.computed(()=>$.value.some(O=>Y(O)));function W(O){const AA=M(O),q=Y(O)?g.selectedKeys.filter(bA=>bA!==AA):[...g.selectedKeys,AA];a("update:selectedKeys",q)}function vA(){if(j.value){const O=new Set($.value.map(M));a("update:selectedKeys",g.selectedKeys.filter(AA=>!O.has(AA)))}else{const O=new Set(g.selectedKeys),AA=$.value.map(M).filter(q=>!O.has(q));a("update:selectedKeys",[...g.selectedKeys,...AA])}}function BA(O,AA){return AA.split(".").reduce((q,bA)=>{if(q&&typeof q=="object"&&q!==null&&bA in q)return q[bA]},O)}function sA(O,AA){return typeof O.id=="string"||typeof O.id=="number"?O.id:typeof O.key=="string"||typeof O.key=="number"?O.key:AA}function k(O){const AA=g.sortField===O&&g.sortDirection==="asc"?"desc":"asc";a("sort",O,AA)}function y(O){a("row-click",O)}function K(O,AA){return{row:O,index:AA,selected:Y(O),selectable:g.selectable,toggleSelect:()=>W(O)}}const $=e.computed(()=>{if(!g.data)return[];const O=Array.isArray(g.data)?g.data:[];if(!g.pageSize||g.pageSize<=0)return O;const AA=(g.page-1)*g.pageSize,q=AA+g.pageSize;return O.slice(AA,q)});return(O,AA)=>(e.openBlock(),e.createElementBlock("div",null,[P.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["mb-3 flex justify-end",L.value])},[e.createVNode(k8,{"data-testid":"view-toggle","model-value":C.value,options:b,toggle:"",size:"md","aria-label":"List view","onUpdate:modelValue":AA[0]||(AA[0]=q=>c(q))},null,8,["model-value"])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"wrapperRef",ref:f,class:e.normalizeClass(["overflow-x-auto rounded-lg border border-border bg-white",x.value]),onMousedown:w},[e.createElementVNode("table",VP,[e.createElementVNode("thead",TP,[e.createElementVNode("tr",null,[A.selectable?(e.openBlock(),e.createElementBlock("th",WP,[e.createElementVNode("label",ZP,[e.createElementVNode("input",{type:"checkbox",class:"h-4 w-4 cursor-pointer rounded-[3px] border-gray-medium accent-[#6888FB]",checked:j.value,indeterminate:V.value&&!j.value,"aria-label":"Select all",onChange:vA},null,40,qP)])])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.columns,q=>(e.openBlock(),e.createElementBlock("th",{key:q.key,scope:"col",class:e.normalizeClass(["px-4 py-3 text-left text-xs font-normal text-muted uppercase tracking-[0.06em]",q.sortable?"cursor-pointer hover:bg-gray-lightest":"",q.class||""]),onClick:bA=>q.sortable?k(q.key):null},[e.createElementVNode("div",kP,[e.createElementVNode("span",null,e.toDisplayString(q.label),1),q.sortable?(e.openBlock(),e.createElementBlock("span",RP,[(e.openBlock(),e.createElementBlock("svg",{viewBox:"0 0 20 20",fill:"currentColor",class:e.normalizeClass(["h-4 w-4",A.sortField===q.key&&A.sortDirection==="asc"?"text-foreground":"text-gray-dark"])},[...AA[2]||(AA[2]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M14.77 12.79a.75.75 0 0 1-1.06-.02L10 8.832 6.29 12.77a.75.75 0 1 1-1.08-1.04l4.25-4.5a.75.75 0 0 1 1.08 0l4.25 4.5a.75.75 0 0 1-.02 1.06Z","clip-rule":"evenodd"},null,-1)])],2)),(e.openBlock(),e.createElementBlock("svg",{viewBox:"0 0 20 20",fill:"currentColor",class:e.normalizeClass(["h-4 w-4 -mt-1",A.sortField===q.key&&A.sortDirection==="desc"?"text-foreground":"text-gray-dark"])},[...AA[3]||(AA[3]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.23 7.21a.75.75 0 0 1 1.06.02L10 11.168l3.71-3.938a.75.75 0 1 1 1.08 1.04l-4.25 4.5a.75.75 0 0 1-1.08 0l-4.25-4.5a.75.75 0 0 1 .02-1.06Z","clip-rule":"evenodd"},null,-1)])],2))])):e.createCommentVNode("",!0)])],10,KP))),128))])]),e.createElementVNode("tbody",JP,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.value,(q,bA)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:sA(q,bA)},[e.createElementVNode("tr",{class:e.normalizeClass(["cursor-pointer transition-colors",Y(q)?"bg-[#F5F8FF]":"bg-white hover:bg-gray-lightest"]),onClick:oA=>y(q)},[A.selectable?(e.openBlock(),e.createElementBlock("td",{key:0,class:"px-3 py-4 w-10",onClick:AA[1]||(AA[1]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("label",SP,[e.createElementVNode("input",{type:"checkbox",class:"h-4 w-4 cursor-pointer rounded-[3px] border-gray-medium accent-[#6888FB]",checked:Y(q),"aria-label":G(q),onChange:oA=>W(q)},null,40,$P)])])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.columns,oA=>(e.openBlock(),e.createElementBlock("td",{key:oA.key,class:e.normalizeClass(["px-4 py-4 whitespace-nowrap text-sm-regular text-foreground",u.value&&oA.key!=="actions"?"cursor-pointer":"",oA.class||""]),onClick:e.withModifiers(eA=>oA.key==="actions"?null:y(q),["stop"])},[e.renderSlot(O.$slots,`cell-${oA.key}`,{row:q,value:BA(q,oA.key)},()=>[e.createTextVNode(e.toDisplayString(BA(q,oA.key)),1)])],10,_P))),128))],10,UP),e.createVNode(e.Transition,{css:!1,onEnter:nA,onLeave:_},{default:e.withCtx(()=>[h(q)?(e.openBlock(),e.createElementBlock("tr",A1,[e.createElementVNode("td",{colspan:p.value,class:"p-0"},[e.createElementVNode("div",t1,[e.renderSlot(O.$slots,"row-expansion",{row:q})])],8,e1)])):e.createCommentVNode("",!0)]),_:2},1024)],64))),128))])]),$.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",f1,[e.renderSlot(O.$slots,"empty",{},()=>[AA[4]||(AA[4]=e.createElementVNode("div",{class:"text-center py-12 text-gray-darkest text-sm"},"No data",-1))])]))],34),X.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(z.value)},[A.selectable&&$.value.length?(e.openBlock(),e.createElementBlock("div",n1,[e.createElementVNode("label",v1,[e.createElementVNode("input",{type:"checkbox",class:"h-4 w-4 cursor-pointer rounded-[3px] border-gray-medium accent-[#6888FB]",checked:j.value,indeterminate:V.value&&!j.value,"aria-label":"Select all",onChange:vA},null,40,r1),e.createElementVNode("span",w1," Select all ("+e.toDisplayString($.value.length)+") ",1)])])):e.createCommentVNode("",!0),$.value.length?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(H.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.value,(q,bA)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:sA(q,bA)},[e.renderSlot(O.$slots,"card",e.mergeProps({ref_for:!0},K(q,bA)),()=>[e.createVNode(BB,{row:q,"title-column":N.value,"grid-columns":m.value,"actions-column":Q.value,selectable:A.selectable,selected:Y(q),"select-label":G(q),"grid-cols":A.cardGridCols,onClick:oA=>y(q),onToggle:oA=>W(q)},e.createSlots({_:2},[e.renderList(O.$slots,(oA,eA)=>({name:eA,fn:e.withCtx(uA=>[e.renderSlot(O.$slots,eA,e.mergeProps({ref_for:!0},uA??{}))])}))]),1032,["row","title-column","grid-columns","actions-column","selectable","selected","select-label","grid-cols","onClick","onToggle"])]),e.createVNode(e.Transition,{css:!1,onEnter:nA,onLeave:_},{default:e.withCtx(()=>[h(q)?(e.openBlock(),e.createElementBlock("div",s1,[e.createElementVNode("div",g1,[e.renderSlot(O.$slots,"row-expansion",{row:q})])])):e.createCommentVNode("",!0)]),_:2},1024)],64))),128))],2)):(e.openBlock(),e.createElementBlock("div",B1,[e.renderSlot(O.$slots,"empty",{},()=>[AA[5]||(AA[5]=e.createElementVNode("div",{class:"rounded-md border border-gray-light bg-white text-center py-12 text-gray-darkest text-sm"}," No data ",-1))])]))],2)):e.createCommentVNode("",!0)]))}}),o1=["role"],u1={key:0,width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},d1={key:1,width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},c1={key:2,width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},i1={class:"flex-1 min-w-0"},l1=["aria-label"],D1=["width","height"],C1=e.defineComponent({__name:"EvToast",props:{variant:{default:"info"},title:{},description:{},appearance:{default:"default"},icon:{type:Boolean,default:void 0},loading:{type:Boolean},loadingLabel:{default:"Loading"},dismissLabel:{default:"Dismiss"},class:{}},emits:["dismiss"],setup(A,{emit:t}){const f=A,n=t,v={info:"var(--color-brand-blue-active)",success:"#4F7A14",warning:"#846116",error:"#B93022"},w=e.computed(()=>f.appearance==="plain"),r=e.computed(()=>f.icon??!w.value),s=e.computed(()=>T(w.value?"ev-toast ev-toast--plain pointer-events-auto w-full max-w-[460px] flex items-start gap-3 px-5 py-4 rounded-lg bg-white":"ev-toast pointer-events-auto min-w-[280px] max-w-md flex items-start gap-3 px-3 py-2.5 rounded-md border border-gray-light bg-white",f.class)),g=e.computed(()=>w.value?"text-[17px] font-semibold text-[#0E1320]":"text-sm-medium text-black"),B=e.computed(()=>w.value?"text-sm-regular text-[#6A6A6A] mt-1 leading-snug":"text-xs-regular text-gray-darkest mt-0.5"),a=e.computed(()=>w.value?"flex-shrink-0 mt-0.5 inline-flex items-center justify-center text-[#A5A5A5] hover:text-black transition-colors cursor-pointer":"flex-shrink-0 w-6 h-6 inline-flex items-center justify-center rounded-sm text-gray-darkest hover:bg-background transition-colors cursor-pointer"),o=e.computed(()=>w.value?18:14),u=e.computed(()=>f.variant==="error"||f.variant==="warning"?"alert":"status");return(d,l)=>(e.openBlock(),e.createElementBlock("div",{role:u.value,class:e.normalizeClass(s.value)},[A.loading||r.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:"mt-0.5 flex-shrink-0",style:e.normalizeStyle({color:v[A.variant]})},[A.loading?(e.openBlock(),e.createBlock(e.unref(uf),{key:0,size:5,color:v[A.variant],label:A.loadingLabel},null,8,["color","label"])):e.renderSlot(d.$slots,"icon",{key:1},()=>[A.variant==="warning"?(e.openBlock(),e.createElementBlock("svg",u1,[...l[1]||(l[1]=[e.createElementVNode("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"},null,-1),e.createElementVNode("path",{d:"M12 9v4"},null,-1),e.createElementVNode("path",{d:"M12 17h.01"},null,-1)])])):A.variant==="error"?(e.openBlock(),e.createElementBlock("svg",d1,[...l[2]||(l[2]=[e.createElementVNode("circle",{cx:"12",cy:"12",r:"10"},null,-1),e.createElementVNode("line",{x1:"12",x2:"12",y1:"8",y2:"12"},null,-1),e.createElementVNode("line",{x1:"12",x2:"12.01",y1:"16",y2:"16"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",c1,[...l[3]||(l[3]=[e.createElementVNode("circle",{cx:"12",cy:"12",r:"10"},null,-1),e.createElementVNode("path",{d:"m9 12 2 2 4-4"},null,-1)])]))],!0)],4)):e.createCommentVNode("",!0),e.createElementVNode("div",i1,[A.title?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(g.value)},e.toDisplayString(A.title),3)):e.createCommentVNode("",!0),A.description?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(B.value)},e.toDisplayString(A.description),3)):e.createCommentVNode("",!0),e.renderSlot(d.$slots,"default",{},void 0,!0)]),e.createElementVNode("button",{type:"button","aria-label":A.dismissLabel,class:e.normalizeClass(a.value),onClick:l[0]||(l[0]=C=>n("dismiss"))},[(e.openBlock(),e.createElementBlock("svg",{width:o.value,height:o.value,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[...l[4]||(l[4]=[e.createElementVNode("path",{d:"M18 6 6 18"},null,-1),e.createElementVNode("path",{d:"m6 6 12 12"},null,-1)])],8,D1))],10,l1)],10,o1))}}),aB=wA._export_sfc(C1,[["__scopeId","data-v-f1c02171"]]),re=e.ref([]);let P1=0;const fn=new Map;function Lr(A){const t=fn.get(A);t!==void 0&&(clearTimeout(t),fn.delete(A))}function oB(A,t){Lr(A),t>0&&fn.set(A,setTimeout(()=>uB(A),t))}function uB(A){Lr(A),re.value=re.value.filter(t=>t.id!==A)}function zt(A={}){const t=++P1,f={id:t,variant:A.variant??"info",duration:A.duration??(A.loading?0:4e3),title:A.title,description:A.description,icon:A.icon,loading:A.loading};return re.value=[...re.value,f],oB(t,f.duration),t}function Yv(A,t={}){const f=re.value.findIndex(v=>v.id===A);if(f===-1)return;const n={...re.value[f],...t};re.value=re.value.map((v,w)=>w===f?n:v),"duration"in t&&oB(A,n.duration)}function b1(){for(const A of fn.keys())Lr(A);re.value=[]}function yf(A){return(t,f,n)=>zt(typeof t=="object"&&t!==null?{...t,variant:A}:{...n,variant:A,title:t,description:f})}function X1(A,t,f){return zt(typeof A=="object"&&A!==null?{variant:"info",...A,loading:!0}:{variant:"info",...f,title:A,description:t,loading:!0})}function Kn(A,t){const f=typeof A=="function"?A(t):A;return typeof f=="string"?{title:f}:{title:f?.title,description:f?.description}}async function z1(A,t){const f=zt({variant:"info",loading:!0,...Kn(t.loading)}),n=t.duration??4e3;try{const v=await A;return Yv(f,{loading:!1,variant:"success",icon:!0,duration:n,...Kn(t.success,v)}),v}catch(v){throw Yv(f,{loading:!1,variant:"error",icon:!0,duration:n,...Kn(t.error,v)}),v}}function dB(){return{items:e.readonly(re),push:zt,update:Yv,dismiss:uB,clear:b1,showInfo:yf("info"),showSuccess:yf("success"),showWarning:yf("warning"),showError:yf("error"),showLoading:X1,promise:z1}}const L1=e.defineComponent({__name:"EvToastContainer",props:{placement:{default:"bottom-right"},appearance:{default:"default"},notificationsLabel:{default:"Notifications"},dismissLabel:{default:"Dismiss"},loadingLabel:{default:"Loading"}},setup(A){const t=A,{items:f,dismiss:n}=dB(),v=e.computed(()=>t.placement==="top-center"?"fixed z-[80] top-4 left-1/2 -translate-x-1/2 flex flex-col items-center gap-2 pointer-events-none w-[calc(100%-2rem)] max-w-[460px]":"fixed z-[60] bottom-4 right-4 flex flex-col items-end gap-2 pointer-events-none"),w=e.computed(()=>t.appearance==="plain"?"evt-plain":"evt-default");return(r,s)=>(e.openBlock(),e.createBlock(e.TransitionGroup,{name:w.value,tag:"div",class:e.normalizeClass(v.value),role:"region","aria-label":A.notificationsLabel},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),g=>(e.openBlock(),e.createBlock(aB,{key:g.id,variant:g.variant,title:g.title,description:g.description,appearance:A.appearance,icon:g.icon,loading:g.loading,"dismiss-label":A.dismissLabel,"loading-label":A.loadingLabel,onDismiss:B=>e.unref(n)(g.id)},null,8,["variant","title","description","appearance","icon","loading","dismiss-label","loading-label","onDismiss"]))),128))]),_:1},8,["name","class","aria-label"]))}}),M1={class:"flex flex-col items-center flex-shrink-0"},H1={key:0,class:"h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},Y1={class:"flex-1 pt-0.5 min-w-0"},m1={key:0,class:"text-xs-regular text-muted mt-0.5"},x1=e.defineComponent({__name:"EvStepper",props:{steps:{},current:{default:0},class:{}},setup(A){const t=A,f=e.computed(()=>T("flex items-start gap-0 w-full",t.class));function n(w){return w<t.current?"complete":w===t.current?"active":"pending"}const v={complete:"bg-brand-blue text-white",active:"bg-black text-white",pending:"bg-white border border-border text-gray-dark"};return(w,r)=>(e.openBlock(),e.createElementBlock("ol",{class:e.normalizeClass(f.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.steps,(s,g)=>(e.openBlock(),e.createElementBlock("li",{key:g,class:"flex-1 flex items-start gap-3"},[e.createElementVNode("div",M1,[e.createElementVNode("div",{class:e.normalizeClass(e.unref(T)("w-7 h-7 rounded-full flex items-center justify-center text-xs-medium transition-colors",v[n(g)]))},[n(g)==="complete"?(e.openBlock(),e.createElementBlock("svg",H1,[...r[0]||(r[0]=[e.createElementVNode("path",{d:"M20 6 9 17l-5-5"},null,-1)])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(g+1),1)],64))],2)]),e.createElementVNode("div",Y1,[e.createElementVNode("p",{class:e.normalizeClass(["text-sm-medium leading-tight",n(g)==="pending"?"text-gray-dark":"text-black"])},e.toDisplayString(s.label),3),s.description?(e.openBlock(),e.createElementBlock("p",m1,e.toDisplayString(s.description),1)):e.createCommentVNode("",!0),g!==A.steps.length-1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["h-px mt-3 mr-3",g<A.current?"bg-brand-blue":"bg-gray-light"])},null,2)):e.createCommentVNode("",!0)])]))),128))],2))}}),G1=e.defineComponent({__name:"EvCategoryLabel",props:{label:{},color:{default:"blue"},active:{type:Boolean,default:!1},class:{}},emits:["toggle"],setup(A,{emit:t}){const f={blue:"bg-[#8FA8FF] text-[#202D75]",green:"bg-[#CBE76A] text-[#394A15]",amber:"bg-[#F6DD85] text-[#5B4211]",violet:"bg-[#FBB4F8] text-[#5E205B]",pink:"bg-[#FDCBFB] text-[#92328E]",red:"bg-[#FFBFB2] text-[#7A1E16]"},n=A,v=t,w=e.computed(()=>T("inline-flex items-center h-8 rounded-full px-4 whitespace-nowrap transition-colors","cursor-pointer select-none",n.active?f[n.color]:"bg-white text-black ring-1 ring-inset ring-black hover:bg-[#F8F8F8]",n.class));function r(){v("toggle")}function s(g){(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),v("toggle"))}return(g,B)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["text-xs-medium",w.value]),role:"button",tabindex:"0",onClick:r,onKeydown:s},[e.renderSlot(g.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(A.label),1)])],34))}}),h1={key:0,class:"block mb-2 text-sm-medium text-black"},N1={class:"flex items-stretch h-10 bg-gray-lightest border border-gray-light rounded-[8px] overflow-hidden"},Q1={class:"flex-1 px-3 flex items-center text-sm-regular text-black tabular-nums truncate font-mono"},F1=["title","aria-label"],O1=["aria-label"],E1=e.defineComponent({__name:"EvCopyField",props:{value:{},label:{},mask:{type:Boolean,default:!1},copyLabel:{default:"Copy"},copiedLabel:{default:"Copied"},revealLabel:{default:"Reveal"},hideLabel:{default:"Hide"},class:{}},setup(A){const t=A,f=e.ref(!1),n=e.ref(!t.mask);let v;const w=e.computed(()=>t.mask&&!n.value?`${t.value.slice(0,4)}••••••••••••${t.value.slice(-4)}`:t.value);async function r(){try{await navigator.clipboard.writeText(t.value),f.value=!0,v&&clearTimeout(v),v=setTimeout(()=>{f.value=!1},1600)}catch{}}function s(){n.value=!n.value}e.onBeforeUnmount(()=>{v&&clearTimeout(v)});const g=e.computed(()=>T("w-full",t.class));return(B,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(g.value)},[A.label?(e.openBlock(),e.createElementBlock("label",h1,e.toDisplayString(A.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",N1,[e.createElementVNode("code",Q1,e.toDisplayString(w.value),1),A.mask?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",title:n.value?A.hideLabel:A.revealLabel,"aria-label":n.value?A.hideLabel:A.revealLabel,class:"w-9 inline-flex items-center justify-center text-gray-darkest border-l border-gray-light hover:bg-gray-light transition-colors cursor-pointer",onClick:s},[e.createVNode(LA,{name:n.value?"eye-off":"eye",size:15},null,8,["name"])],8,F1)):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button","aria-label":f.value?A.copiedLabel:A.copyLabel,class:"w-[86px] inline-flex items-center justify-center gap-1.5 text-sm-medium text-black border-l border-gray-light hover:bg-gray-light transition-colors cursor-pointer",onClick:r},[e.createVNode(LA,{name:f.value?"check":"copy",size:14,class:e.normalizeClass(f.value?"text-[#4F7A14]":"")},null,8,["name","class"]),e.createElementVNode("span",{class:e.normalizeClass(e.unref(T)("text-xs-medium",f.value?"text-[#4F7A14]":""))},e.toDisplayString(f.value?A.copiedLabel:A.copyLabel),3)],8,O1)])],2))}}),y1={top:"bottom-full left-1/2 -translate-x-1/2 mb-2",bottom:"top-full left-1/2 -translate-x-1/2 mt-2",left:"right-full top-1/2 -translate-y-1/2 mr-2",right:"left-full top-1/2 -translate-y-1/2 ml-2"},p1={top:"left-1/2 -translate-x-1/2 -bottom-1",bottom:"left-1/2 -translate-x-1/2 -top-1",left:"top-1/2 -translate-y-1/2 -right-1",right:"top-1/2 -translate-y-1/2 -left-1"},j1=["aria-describedby"],I1=["data-placement"],V1=["tabindex"],T1=e.defineComponent({__name:"EvTooltip",props:{content:{},position:{default:"top"},disabled:{type:Boolean,default:!1},class:{},interaction:{default:"transient"}},setup(A){const t=A,f=e.useSlots(),n=e.ref(null),v=e.ref(null),w=e.ref(null),r=e.ref(!1),s=e.ref(!1),g=e.ref(!1),B=e.ref(!1),a=e.ref(!1),o=e.ref(!1),u=e.ref(t.position),d=e.ref({visibility:"hidden"}),l=e.ref({}),C=e.ref({left:0,top:0}),c=e.ref(!1),D=`ev-tooltip-${e.useId()}`,i=e.computed(()=>t.interaction==="persistent"),b=e.computed(()=>!!f.content||(t.content??"").trim().length>0),X=e.computed(()=>r.value&&!t.disabled&&b.value);let P=!1,L=null,x=null,z=null,H=0,N=null;function Q(){N!==null&&(clearTimeout(N),N=null)}function m(){Q(),N=setTimeout(()=>{N=null,h()},100)}function G(){g.value||(r.value=!0)}function M(){r.value=!1}function Y(eA=!0){Q(),r.value=!1,s.value=!1,g.value=eA}function h(){!s.value&&!B.value&&!a.value&&!o.value&&(M(),g.value=!1)}function p(){Q(),B.value=!0,G()}function F(){if(B.value=!1,!i.value){M();return}s.value||(g.value=!1),m()}function S(){Q(),a.value=!0}function nA(){a.value=!1,m()}function _(){Q(),o.value=!0,G()}function j(eA){const uA=eA.relatedTarget;uA&&(n.value?.contains(uA)||v.value?.contains(uA))||(o.value=!1,i.value?Y(!1):M())}function V(eA){if(!(!i.value||t.disabled||!b.value)&&!("isPrimary"in eA&&eA.isPrimary===!1)&&!("button"in eA&&typeof eA.button=="number"&&eA.button!==0)){if(Q(),s.value){Y();return}s.value=!0,g.value=!1,r.value=!0}}function W(eA){if(!X.value)return;const uA=eA.target;n.value?.contains(uA)||v.value?.contains(uA)||Y()}function vA(eA){eA.key==="Escape"&&X.value&&Y()}function BA(eA,uA,dA){return Math.min(Math.max(eA,uA),Math.max(uA,dA))}function sA(eA){return eA==="top"?"bottom":eA==="bottom"?"top":eA==="left"?"right":"left"}async function k(){const eA=++H;if(await e.nextTick(),eA!==H||!X.value||!i.value)return;const uA=n.value,dA=v.value,ee=w.value;if(!uA||!dA||!ee)return;dA.style.maxWidth="",ee.style.maxHeight="";const kA=window.visualViewport,Qt=kA?.offsetTop??0,ft=kA?.offsetLeft??0,nt=kA?.width??window.innerWidth,Pe=kA?.height??window.innerHeight,Ft=ft+nt,Ot=Qt+Pe,IA=8,VA=8,iA=uA.getBoundingClientRect(),vt=dA.getBoundingClientRect(),be=vt.width||dA.offsetWidth,Ne=Math.max(vt.height||dA.offsetHeight,dA.scrollHeight),Xe={top:Math.max(0,iA.top-Qt-IA-VA),bottom:Math.max(0,Ot-iA.bottom-IA-VA),left:Math.max(0,iA.left-ft-IA-VA),right:Math.max(0,Ft-iA.right-IA-VA)},Et={top:Ne,bottom:Ne,left:be,right:be},yt=sA(t.position),RA=Xe[t.position]<Et[t.position]&&Xe[yt]>Xe[t.position]?yt:t.position;u.value=RA;const rt=RA==="left"||RA==="right",ae=Math.max(0,nt-IA*2),pt=rt?Math.min(ae,Xe[RA]):ae,ze=be>pt?`${pt}px`:void 0;ze&&(dA.style.maxWidth=ze);const Le=dA.getBoundingClientRect(),Qe=Le.width||Math.min(be,pt),jt=Math.max(Le.height||dA.offsetHeight,dA.scrollHeight),EA=ee.getBoundingClientRect(),En=Math.max(EA.height||ee.offsetHeight,ee.scrollHeight),wt=Math.max(0,jt-En),It=rt?Math.max(0,Pe-IA*2):Xe[RA],Fe=jt>It,oe=Fe?Math.max(0,It-wt):void 0;oe!==void 0&&(ee.style.maxHeight=`${oe}px`);const Oe=dA.getBoundingClientRect().height||Math.min(jt,Math.max(0,It));let te=iA.left+iA.width/2-Qe/2,JA=iA.bottom+VA;RA==="top"?JA=iA.top-Oe-VA:RA==="left"?(te=iA.left-Qe-VA,JA=iA.top+iA.height/2-Oe/2):RA==="right"&&(te=iA.right+VA,JA=iA.top+iA.height/2-Oe/2),te=BA(te,ft+IA,Ft-Qe-IA),JA=BA(JA,Qt+IA,Ot-Oe-IA);const Me=8;C.value={left:BA(iA.left+iA.width/2-te,Me,Math.max(Me,Qe-Me)),top:BA(iA.top+iA.height/2-JA,Me,Math.max(Me,Oe-Me))},d.value={left:`${te}px`,top:`${JA}px`,maxWidth:ze,visibility:"visible"},l.value=oe===void 0?{}:{maxHeight:`${oe}px`},c.value=Fe,L&&(x!==uA||z!==dA)&&(L.disconnect(),L.observe(uA),L.observe(dA),x=uA,z=dA)}function y(eA){const uA=eA.target;uA&&v.value?.contains(uA)||k()}function K(){P||(P=!0,document.addEventListener("pointerdown",W,!0),document.addEventListener("keydown",vA,!0),window.addEventListener("scroll",y,!0),window.addEventListener("resize",k),window.visualViewport?.addEventListener("scroll",k),window.visualViewport?.addEventListener("resize",k),typeof ResizeObserver<"u"&&(L=new ResizeObserver(k)))}function $(){H+=1,Q(),P&&(document.removeEventListener("pointerdown",W,!0),document.removeEventListener("keydown",vA,!0),window.removeEventListener("scroll",y,!0),window.removeEventListener("resize",k),window.visualViewport?.removeEventListener("scroll",k),window.visualViewport?.removeEventListener("resize",k),P=!1),L?.disconnect(),L=null,x=null,z=null,d.value={visibility:"hidden"},l.value={},c.value=!1}e.watch([X,i],async([eA,uA])=>{eA&&uA?(K(),await k()):$()},{flush:"post"}),e.watch([()=>t.position,()=>t.content,()=>t.class],()=>{X.value&&i.value&&k()}),e.onBeforeUnmount($);const O=e.computed(()=>T("pointer-events-none absolute z-50 w-max max-w-xs","rounded bg-brand-black px-2 py-1 text-xs text-white shadow-popover",y1[t.position],t.class)),AA=e.computed(()=>T("absolute h-2 w-2 rotate-45 bg-brand-black",p1[t.position])),q=e.computed(()=>T("pointer-events-auto fixed z-50 w-max max-w-xs","rounded bg-brand-black px-2 py-1 text-xs text-white shadow-popover",t.class)),bA=e.computed(()=>{const eA="absolute h-2 w-2 rotate-45 bg-brand-black";return u.value==="top"?`${eA} -bottom-1 -translate-x-1/2`:u.value==="bottom"?`${eA} -top-1 -translate-x-1/2`:u.value==="left"?`${eA} -right-1 -translate-y-1/2`:`${eA} -left-1 -translate-y-1/2`}),oA=e.computed(()=>u.value==="top"||u.value==="bottom"?{left:`${C.value.left}px`}:{top:`${C.value.top}px`});return(eA,uA)=>(e.openBlock(),e.createElementBlock("span",{ref_key:"triggerRef",ref:n,class:"relative inline-flex","aria-describedby":X.value?D:void 0,onMouseenter:p,onMouseleave:F,onPointerdown:V,onFocusin:_,onFocusout:j},[e.renderSlot(eA.$slots,"default"),X.value&&!i.value?(e.openBlock(),e.createElementBlock("span",{key:0,id:D,role:"tooltip",class:e.normalizeClass(O.value),"data-testid":"ev-tooltip-content"},[e.renderSlot(eA.$slots,"content",{},()=>[e.createTextVNode(e.toDisplayString(A.content),1)]),e.createElementVNode("span",{class:e.normalizeClass(AA.value),"aria-hidden":"true"},null,2)],2)):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createBlock(e.Teleport,{key:1,to:"body"},[X.value?(e.openBlock(),e.createElementBlock("span",{key:0,id:D,ref_key:"bubbleRef",ref:v,role:"tooltip",class:e.normalizeClass(q.value),style:e.normalizeStyle(d.value),"data-placement":u.value,"data-testid":"ev-tooltip-content",onMouseenter:S,onMouseleave:nA,onFocusin:_,onFocusout:j},[e.createElementVNode("span",{ref_key:"contentRef",ref:w,class:"block overflow-auto overscroll-contain",style:e.normalizeStyle(l.value),tabindex:c.value?0:void 0,"data-testid":"ev-tooltip-scroll"},[e.renderSlot(eA.$slots,"content",{},()=>[e.createTextVNode(e.toDisplayString(A.content),1)])],12,V1),e.createElementVNode("span",{class:e.normalizeClass(bA.value),style:e.normalizeStyle(oA.value),"aria-hidden":"true"},null,6)],46,I1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],40,j1))}}),cB=Symbol("EvMenuContext"),W1=["aria-expanded"],Z1=e.defineComponent({inheritAttrs:!1,__name:"EvMenu",props:{align:{default:"right"},class:{}},emits:["open","close"],setup(A,{emit:t}){const f=A,n=t,v=e.ref(!1),w=e.ref(null),r=e.ref(null),s=e.ref(null);function g(){v.value&&(v.value=!1)}function B(){v.value=!v.value}function a(){return s.value?Array.from(s.value.querySelectorAll('[role="menuitem"]:not([disabled])')):[]}function o(){(r.value?.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')??r.value)?.focus()}function u(c){w.value&&!w.value.contains(c.target)&&g()}function d(c){c.key==="Escape"&&(g(),o())}function l(c){if(c.key!=="ArrowDown"&&c.key!=="ArrowUp")return;const D=a();if(D.length===0)return;c.preventDefault();const i=document.activeElement,b=i?D.indexOf(i):-1,X=c.key==="ArrowDown"?1:-1,P=(b+X+D.length)%D.length;D[P]?.focus()}e.watch(v,c=>{c?(document.addEventListener("mousedown",u),document.addEventListener("keydown",d),n("open"),e.nextTick(()=>a()[0]?.focus())):(document.removeEventListener("mousedown",u),document.removeEventListener("keydown",d),n("close"))}),e.onUnmounted(()=>{document.removeEventListener("mousedown",u),document.removeEventListener("keydown",d)}),e.provide(cB,{close:g});const C=e.computed(()=>T("absolute z-30 mt-1 min-w-[180px] p-1 ev-popover-surface fade-in",f.align==="left"?"left-0":"right-0"));return(c,D)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"root",ref:w,class:e.normalizeClass(e.unref(T)("relative inline-block",f.class))},[e.createElementVNode("div",e.mergeProps({ref_key:"triggerWrap",ref:r,class:"ev-menu-trigger cursor-pointer","aria-expanded":v.value,"aria-haspopup":"menu"},c.$attrs,{onClick:B}),[e.renderSlot(c.$slots,"trigger",{open:v.value,ariaExpanded:v.value,ariaHaspopup:"menu"},void 0,!0)],16,W1),v.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"popover",ref:s,class:e.normalizeClass(C.value),role:"menu",onKeydown:l},[e.renderSlot(c.$slots,"default",{},void 0,!0)],34)):e.createCommentVNode("",!0)],2))}}),q1=wA._export_sfc(Z1,[["__scopeId","data-v-fdc40d77"]]),K1=["disabled"],k1={class:"flex-1 truncate"},R1=e.defineComponent({__name:"EvMenuItem",props:{label:{},icon:{},destructive:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},divider:{type:Boolean,default:!1},class:{}},emits:["click"],setup(A,{emit:t}){const f=A,n=t,v=e.inject(cB,null);function w(s){f.disabled||(n("click",s),v?.close())}const r=e.computed(()=>T("w-full flex items-center gap-2.5 px-3 py-2 rounded-[8px] text-left transition-colors cursor-pointer",f.destructive?"text-error hover:bg-error-bg":"text-foreground hover:bg-gray-lightest",f.disabled&&"text-muted opacity-60 cursor-not-allowed hover:bg-transparent",f.class));return(s,g)=>A.divider?(e.openBlock(),e.createElementBlock("hr",{key:0,role:"separator",class:e.normalizeClass(e.unref(T)("my-1 border-gray-light",f.class))},null,2)):(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",role:"menuitem",class:e.normalizeClass(["text-sm-medium",r.value]),disabled:A.disabled||void 0,onClick:w},[A.icon?(e.openBlock(),e.createBlock(LA,{key:0,name:A.icon,size:16},null,8,["name"])):e.createCommentVNode("",!0),e.createElementVNode("span",k1,[e.renderSlot(s.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(A.label),1)])])],10,K1))}}),J1=e.defineComponent({__name:"EvMenuDivider",props:{class:{}},setup(A){const t=A,f=e.computed(()=>T("my-1 border-gray-light",t.class));return(n,v)=>(e.openBlock(),e.createElementBlock("hr",{role:"separator",class:e.normalizeClass(f.value)},null,2))}}),U1=.3;function S1(A,t,f,n){const v=e.ref(null),w=e.ref(null),r=e.ref(null),s=e.ref(0),g=e.ref();let B,a=!1;function o(){if(a||!A.value||!v.value||!w.value||!r.value)return;let d=v.value.getBoundingClientRect().width;if(n.value&&f.value){const b=f.value,X=getComputedStyle(b),P=b.clientWidth-(parseFloat(X.paddingLeft)||0)-(parseFloat(X.paddingRight)||0),L=parseFloat(X.columnGap)||0,x=b.lastElementChild?.getBoundingClientRect().width||0;d=P*(1-U1)-x-L*2}const l=Array.from(w.value.children),C=parseFloat(getComputedStyle(v.value).columnGap)||0,c=l.length;let D=0,i=0;g.value=void 0;for(let b=0;b<c;b++){const X=c-b-1;r.value.textContent=`+${X}`;const P=X?r.value.getBoundingClientRect().width+C:0,L=l[b].getBoundingClientRect().width,x=b===0?Math.min(L,d-P):L,z=getComputedStyle(l[b]),H=(parseFloat(z.paddingLeft)||0)+(parseFloat(z.paddingRight)||0)+(parseFloat(z.columnGap)||0)+(l[b].lastElementChild?.getBoundingClientRect().width||0)+1;if(x<H||D+(b?C:0)+x+P>d)break;D+=(b?C:0)+x,i=b+1,b===0&&(g.value=x)}s.value=i}function u(){B?.disconnect(),A.value&&(f.value&&B?.observe(f.value),v.value&&B?.observe(v.value),w.value&&B?.observe(w.value),o())}return e.watch([A,t,f,n,v,w],()=>e.nextTick(u),{flush:"post"}),e.onMounted(()=>{typeof ResizeObserver<"u"&&(B=new ResizeObserver(o)),u(),document.fonts?.ready.then(()=>o()),document.fonts?.addEventListener("loadingdone",o),window.addEventListener("resize",o)}),e.onBeforeUnmount(()=>{a=!0,B?.disconnect(),document.fonts?.removeEventListener("loadingdone",o),window.removeEventListener("resize",o)}),{containerRef:v,measureRef:w,summaryRef:r,visibleCount:s,firstChipWidth:g}}const $1={class:"w-full min-w-0 max-w-full"},_1=["id","for"],A2=["role","tabindex","aria-disabled","aria-invalid","aria-labelledby","aria-expanded","aria-controls"],e2=["title"],t2=["disabled","aria-label","onClick"],f2=["title","aria-label"],n2=["id","aria-expanded","aria-controls","aria-activedescendant","aria-label","aria-invalid","disabled","placeholder"],v2={key:2,class:"min-w-0 truncate px-1 text-sm-regular text-muted"},r2={key:0,class:"ev-multi-select-measure","aria-hidden":"true"},w2={class:"min-w-0 truncate"},s2={key:0,class:"p-2 border-b border-gray-light"},g2={class:"flex items-center gap-2 px-3 h-9 rounded-[8px] bg-white border border-[color:var(--ev-input-border,#F1F1F1)]"},B2=["aria-label"],a2=["id","aria-activedescendant"],o2=["id","data-index","aria-selected","onMouseenter","onClick"],u2={class:"truncate"},d2={key:0,class:"px-3 py-2 text-sm-regular text-muted","data-testid":"ev-multi-select-empty"},pf="ev-multi-select-tag inline-flex items-center gap-1 pl-2 pr-1 py-0.5 rounded-[6px] bg-info-bg text-brand-blue-active text-xs-medium",c2=e.defineComponent({inheritAttrs:!1,__name:"EvMultiSelect",props:e.mergeModels({options:{},inputAttrs:{},placeholder:{default:"Select options"},searchable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},label:{},size:{default:"md"},selectionDisplay:{default:"wrap"},searchPlacement:{default:"dropdown"},removeOnBackspace:{type:Boolean,default:!1},clearSearchOnSelect:{type:Boolean,default:!1},class:{}},{modelValue:{default:()=>[]},modelModifiers:{}}),emits:["update:modelValue"],setup(A){const t=A,f=e.useModel(A,"modelValue"),n=e.computed(()=>f.value??[]),v=e.computed(()=>{const j=new Set;return n.value.filter(V=>j.has(V)?!1:(j.add(V),!0)).map(V=>t.options.find(W=>W.value===V)??(t.selectionDisplay==="collapse"?{value:V,label:String(V)}:void 0)).filter(V=>!!V)});function w(j){return n.value.includes(j)}function r(j){f.value=j}function s(j){t.disabled||(w(j)?r(n.value.filter(V=>V!==j)):r([...n.value,j]),t.clearSearchOnSelect&&(a.value=""),x.value&&e.nextTick(()=>c.value?.focus()))}function g(j){t.disabled||r(n.value.filter(V=>V!==j))}const{open:B,query:a,activeIndex:o,filtered:u,rootRef:d,panelRef:l,triggerRef:C,searchRef:c,openMenu:D,toggle:i,pick:b,onTriggerKeydown:X,onListKeydown:P}=Yn({options:e.computed(()=>t.options),getValue:j=>j.value,getFilterText:j=>j.label,disabled:e.computed(()=>t.disabled),selected:f,onPick:j=>s(j.value),multiple:!0,searchable:e.computed(()=>t.searchable),focusSearchOnOpen:!1}),L=e.computed(()=>t.selectionDisplay==="collapse"),x=e.computed(()=>t.searchable&&t.searchPlacement==="inline"),{containerRef:z,measureRef:H,summaryRef:N,visibleCount:Q,firstChipWidth:m}=S1(L,e.computed(()=>v.value.map(j=>j.label)),C,x),G=e.computed(()=>L.value?v.value.slice(0,Q.value):v.value),M=e.computed(()=>v.value.length-G.value.length),Y=e.computed(()=>v.value.slice(G.value.length).map(j=>j.label).join(", "));function h(){x.value?(D(),c.value?.focus()):i()}function p(){const j=a.value;D(),a.value=j}function F(j){if(!t.disabled&&!(j.key==="Escape"&&!B.value)){if(j.stopPropagation(),t.removeOnBackspace&&j.key==="Backspace"&&!a.value&&n.value.length){r(n.value.slice(0,-1));return}!B.value&&["ArrowDown","ArrowUp","Enter"].includes(j.key)?(j.preventDefault(),D()):B.value&&P(j)}}const S=`ev-multi-select-${Math.random().toString(36).slice(2,9)}`,nA=e.computed(()=>t.inputAttrs?.id??`${S}-input`),_=e.computed(()=>T("w-full px-2 py-1 bg-white border rounded-[8px] flex flex-wrap items-center gap-1.5 text-left transition-colors cursor-pointer",L.value?Rt[t.size]:ir[t.size],L.value?"ev-multi-select-collapsed flex-nowrap overflow-hidden":"","focus:outline-none focus:border-[color:var(--ev-input-focus,#888A8D)]",B.value?"border-[color:var(--ev-input-focus,#888A8D)]":"border-[color:var(--ev-input-border,#F1F1F1)]",t.error?"border-error":"",t.disabled?"bg-gray-lightest text-muted cursor-not-allowed":"",t.class));return(j,V)=>(e.openBlock(),e.createElementBlock("div",$1,[A.label?(e.openBlock(),e.createElementBlock("label",{key:0,id:`${S}-label`,for:x.value?nA.value:void 0,class:"block mb-2 text-sm-medium text-black"},e.toDisplayString(A.label),9,_1)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"root",ref:d,class:"relative"},[e.createElementVNode("div",e.mergeProps({ref_key:"triggerRef",ref:C,role:x.value?"group":"button",tabindex:A.disabled||x.value?-1:0,"aria-disabled":A.disabled,"aria-invalid":A.error||void 0,"aria-labelledby":A.label?`${S}-label`:void 0,"aria-expanded":e.unref(B),"aria-haspopup":"listbox","aria-controls":e.unref(B)?`${S}-listbox`:void 0,"data-testid":"ev-multi-select-control",class:_.value},j.$attrs,{onClick:h,onKeydown:V[4]||(V[4]=e.withModifiers((...W)=>e.unref(X)&&e.unref(X)(...W),["self"]))}),[v.value.length?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"containerRef",ref:z,class:e.normalizeClass(L.value?["ev-multi-select-selection",x.value?"ev-multi-select-inline-selection":""]:"contents")},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G.value,(W,vA)=>(e.openBlock(),e.createElementBlock("span",{key:W.value,"data-testid":"ev-multi-select-chip",class:e.normalizeClass([pf,L.value?"ev-multi-select-bounded-tag":""]),style:e.normalizeStyle(L.value&&vA===0&&e.unref(m)!==void 0?{maxWidth:`${e.unref(m)}px`}:void 0),title:L.value?W.label:void 0},[e.createElementVNode("span",{class:e.normalizeClass(L.value?"min-w-0 truncate":"")},e.toDisplayString(W.label),3),e.createElementVNode("button",{type:"button",disabled:A.disabled,"aria-label":`Remove ${W.label}`,"data-testid":"ev-multi-select-chip-remove",class:"inline-flex w-3.5 h-3.5 shrink-0 items-center justify-center rounded-sm hover:bg-[#DCE5FF] cursor-pointer",onClick:e.withModifiers(BA=>g(W.value),["stop"]),onKeydown:V[0]||(V[0]=e.withModifiers(()=>{},["stop"]))},[e.createVNode(LA,{name:"x",size:10})],40,t2)],14,e2))),128)),M.value?(e.openBlock(),e.createElementBlock("span",{key:0,"data-testid":"ev-multi-select-overflow",class:e.normalizeClass([pf,"ev-multi-select-summary"]),title:Y.value,"aria-label":`${M.value} more selected: ${Y.value}`},"+"+e.toDisplayString(M.value),11,f2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),x.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",e.mergeProps({key:1},A.inputAttrs,{id:nA.value,ref_key:"searchRef",ref:c,"onUpdate:modelValue":V[1]||(V[1]=W=>e.isRef(a)?a.value=W:null),type:"text",role:"combobox","aria-autocomplete":"list","aria-haspopup":"listbox","aria-expanded":e.unref(B),"aria-controls":e.unref(B)?`${S}-listbox`:void 0,"aria-activedescendant":e.unref(B)&&e.unref(o)>=0?`${S}-opt-${e.unref(o)}`:void 0,"aria-label":A.label||A.placeholder,"aria-invalid":A.error||void 0,disabled:A.disabled,placeholder:v.value.length?"":A.placeholder,"data-testid":"ev-multi-select-search",class:["ev-multi-select-inline-search bg-transparent text-sm-regular text-black placeholder:text-muted outline-none",v.value.length?"ev-multi-select-with-selection":""],onFocus:V[2]||(V[2]=(...W)=>e.unref(D)&&e.unref(D)(...W)),onInput:p,onClick:V[3]||(V[3]=e.withModifiers((...W)=>e.unref(D)&&e.unref(D)(...W),["stop"])),onKeydown:F}),null,16,n2)),[[e.vModelText,e.unref(a)]]):v.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",v2,e.toDisplayString(A.placeholder),1)),e.createVNode(LA,{name:"chevron-down",size:16,class:e.normalizeClass(e.unref(T)("ml-auto shrink-0 text-muted transition-transform",e.unref(B)?"rotate-180":""))},null,8,["class"])],16,A2),L.value&&v.value.length?(e.openBlock(),e.createElementBlock("div",r2,[e.createElementVNode("div",{ref_key:"measureRef",ref:H,class:"ev-multi-select-measure-tags"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,W=>(e.openBlock(),e.createElementBlock("span",{key:W.value,class:e.normalizeClass([pf,"ev-multi-select-bounded-tag"])},[e.createElementVNode("span",w2,e.toDisplayString(W.label),1),V[9]||(V[9]=e.createElementVNode("span",{class:"inline-flex w-3.5 h-3.5 shrink-0"},null,-1))],2))),128))],512),e.createElementVNode("span",{ref_key:"summaryRef",ref:N,class:e.normalizeClass([pf,"ev-multi-select-summary"])},"+0",2)])):e.createCommentVNode("",!0),e.unref(B)?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"panelRef",ref:l,class:"ev-popover-surface fade-in absolute z-20 mt-1 w-full"},[A.searchable&&!x.value?(e.openBlock(),e.createElementBlock("div",s2,[e.createElementVNode("div",g2,[e.createVNode(LA,{name:"search",size:16,class:"text-gray-dark"}),e.withDirectives(e.createElementVNode("input",e.mergeProps(A.inputAttrs,{ref_key:"searchRef",ref:c,"onUpdate:modelValue":V[5]||(V[5]=W=>e.isRef(a)?a.value=W:null),"aria-label":A.label?`Search ${A.label}`:"Search options",type:"text",placeholder:"Search…","data-testid":"ev-multi-select-search",class:"flex-1 min-w-0 bg-transparent text-sm-regular text-black placeholder:text-muted outline-none",onClick:V[6]||(V[6]=e.withModifiers(()=>{},["stop"])),onKeydown:V[7]||(V[7]=(...W)=>e.unref(P)&&e.unref(P)(...W))}),null,16,B2),[[e.vModelText,e.unref(a)]])])])):e.createCommentVNode("",!0),e.createElementVNode("ul",{id:`${S}-listbox`,class:"max-h-60 overflow-auto py-1",role:"listbox","aria-multiselectable":"true","aria-activedescendant":e.unref(o)>=0?`${S}-opt-${e.unref(o)}`:void 0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),(W,vA)=>(e.openBlock(),e.createElementBlock("li",{key:W.value},[e.createElementVNode("button",{id:`${S}-opt-${vA}`,type:"button",role:"option","data-index":vA,"aria-selected":w(W.value),class:e.normalizeClass(["w-full text-left px-3 py-2 text-sm-regular flex items-center gap-2.5 transition-colors cursor-pointer",w(W.value)?"bg-info-bg text-brand-blue-active":vA===e.unref(o)?"bg-gray-lightest text-black":"text-black hover:bg-gray-lightest"]),onMouseenter:BA=>o.value=vA,onMousedown:V[8]||(V[8]=BA=>x.value&&BA.preventDefault()),onClick:BA=>e.unref(b)(W)},[e.createElementVNode("span",{class:e.normalizeClass(["inline-flex w-4 h-4 shrink-0 items-center justify-center rounded-[4px] border transition-colors",w(W.value)?"bg-brand-blue border-brand-blue text-white":"bg-card border-gray-light"])},[w(W.value)?(e.openBlock(),e.createBlock(LA,{key:0,name:"check",size:12})):e.createCommentVNode("",!0)],2),e.createElementVNode("span",u2,e.toDisplayString(W.label),1)],42,o2)]))),128)),e.unref(u).length===0?(e.openBlock(),e.createElementBlock("li",d2," No results ")):e.createCommentVNode("",!0)],8,a2)],512)):e.createCommentVNode("",!0)],512)]))}}),i2=wA._export_sfc(c2,[["__scopeId","data-v-53950684"]]);function Pf(A,t){const f=typeof A=="string"&&!t?`${A}Context`:t,n=Symbol(f);return[r=>{const s=e.inject(n,r);if(s===void 0)throw new Error(`Injection \`${n.toString()}\` not found. Component must be used within ${Array.isArray(A)?`one of the following components: ${A.join(", ")}`:`\`${A}\``}`);return s},r=>(e.provide(n,r),r),n]}function l2(A,t){const{layoutGroup:f,presenceContext:n,config:v}=t,w=f.id&&A.layoutId?`${f.id}-${A.layoutId}`:A.layoutId||void 0;return{...A,layoutId:w,transition:A.transition??v.transition,layoutGroup:f,motionConfig:v,inViewOptions:A.inViewOptions??v.inViewOptions,presenceContext:n,initial:n.initial===!1?n.initial:A.initial===!0?void 0:A.initial}}function Mr(A,t){A.indexOf(t)===-1&&A.push(t)}function nn(A,t){const f=A.indexOf(t);f>-1&&A.splice(f,1)}const Be=(A,t,f)=>f>t?t:f<A?A:f;function mv(A,t){return t?`${A}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:A}let bf=()=>{},et=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(bf=(A,t,f)=>{!A&&typeof console<"u"&&console.warn(mv(t,f))},et=(A,t,f)=>{if(!A)throw new Error(mv(t,f))});const Ge={},iB=A=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(A),lB=A=>typeof A=="object"&&A!==null,DB=A=>/^0[^.\s]+$/u.test(A);function CB(A){let t;return()=>(t===void 0&&(t=A()),t)}const KA=A=>A,Xf=(...A)=>A.reduce((t,f)=>n=>f(t(n))),vf=(A,t,f)=>{const n=t-A;return n?(f-A)/n:1};class Hr{constructor(){this.subscriptions=[]}add(t){return Mr(this.subscriptions,t),()=>nn(this.subscriptions,t)}notify(t,f,n){const v=this.subscriptions.length;if(v)if(v===1)this.subscriptions[0](t,f,n);else for(let w=0;w<v;w++){const r=this.subscriptions[w];r&&r(t,f,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const pA=A=>A*1e3,qA=A=>A/1e3,PB=(A,t)=>t?A*(1e3/t):0,Jw=new Set;function bB(A,t,f){A||Jw.has(t)||(console.warn(mv(t,f)),Jw.add(t))}const XB=(A,t,f)=>(((1-3*f+3*t)*A+(3*f-6*t))*A+3*t)*A,D2=1e-7,C2=12;function P2(A,t,f,n,v){let w,r,s=0;do r=t+(f-t)/2,w=XB(r,n,v)-A,w>0?f=r:t=r;while(Math.abs(w)>D2&&++s<C2);return r}function zf(A,t,f,n){if(A===t&&f===n)return KA;const v=w=>P2(w,0,1,A,f);return w=>w===0||w===1?w:XB(v(w),t,n)}const zB=A=>t=>t<=.5?A(2*t)/2:(2-A(2*(1-t)))/2,LB=A=>t=>1-A(1-t),MB=zf(.33,1.53,.69,.99),Yr=LB(MB),HB=zB(Yr),YB=A=>A>=1?1:(A*=2)<1?.5*Yr(A):.5*(2-Math.pow(2,-10*(A-1))),mr=A=>1-Math.sin(Math.acos(A)),mB=LB(mr),xB=zB(mr),b2=zf(.42,0,1,1),X2=zf(0,0,.58,1),GB=zf(.42,0,.58,1),z2=A=>Array.isArray(A)&&typeof A[0]!="number",hB=A=>Array.isArray(A)&&typeof A[0]=="number",Uw={linear:KA,easeIn:b2,easeInOut:GB,easeOut:X2,circIn:mr,circInOut:xB,circOut:mB,backIn:Yr,backInOut:HB,backOut:MB,anticipate:YB},L2=A=>typeof A=="string",Sw=A=>{if(hB(A)){et(A.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,f,n,v]=A;return zf(t,f,n,v)}else if(L2(A))return et(Uw[A]!==void 0,`Invalid easing type '${A}'`,"invalid-easing-type"),Uw[A];return A},jf=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function M2(A,t){let f=new Set,n=new Set,v=!1,w=!1;const r=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function g(a){r.has(a)&&(B.schedule(a),A()),a(s)}const B={schedule:(a,o=!1,u=!1)=>{const l=u&&v?f:n;return o&&r.add(a),l.add(a),a},cancel:a=>{n.delete(a),r.delete(a)},process:a=>{if(s=a,v){w=!0;return}v=!0;const o=f;f=n,n=o,f.forEach(g),f.clear(),v=!1,w&&(w=!1,B.process(a))}};return B}const H2=40;function NB(A,t){let f=!1,n=!0;const v={delta:0,timestamp:0,isProcessing:!1},w=()=>f=!0,r=jf.reduce((b,X)=>(b[X]=M2(w),b),{}),{setup:s,read:g,resolveKeyframes:B,preUpdate:a,update:o,preRender:u,render:d,postRender:l}=r,C=()=>{const b=Ge.useManualTiming,X=b?v.timestamp:performance.now();f=!1,b||(v.delta=n?1e3/60:Math.max(Math.min(X-v.timestamp,H2),1)),v.timestamp=X,v.isProcessing=!0,s.process(v),g.process(v),B.process(v),a.process(v),o.process(v),u.process(v),d.process(v),l.process(v),v.isProcessing=!1,f&&t&&(n=!1,A(C))},c=()=>{f=!0,n=!0,v.isProcessing||A(C)};return{schedule:jf.reduce((b,X)=>{const P=r[X];return b[X]=(L,x=!1,z=!1)=>(f||c(),P.schedule(L,x,z)),b},{}),cancel:b=>{for(let X=0;X<jf.length;X++)r[jf[X]].cancel(b)},state:v,steps:r}}const{schedule:aA,cancel:he,state:YA,steps:kn}=NB(typeof requestAnimationFrame<"u"?requestAnimationFrame:KA,!0);let kf;function Y2(){kf=void 0}const hA={now:()=>(kf===void 0&&hA.set(YA.isProcessing||Ge.useManualTiming?YA.timestamp:performance.now()),kf),set:A=>{kf=A,queueMicrotask(Y2)}},QB=A=>t=>typeof t=="string"&&t.startsWith(A),xr=QB("--"),m2=QB("var(--"),Gr=A=>m2(A)?x2.test(A.split("/*")[0].trim()):!1,x2=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function $w(A){return typeof A!="string"?!1:A.split("/*")[0].includes("var(--")}const xt={test:A=>typeof A=="number",parse:parseFloat,transform:A=>A},rf={...xt,transform:A=>Be(0,1,A)},If={...xt,default:1},Jt=A=>Math.round(A*1e5)/1e5,hr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function G2(A){return A==null}const h2=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Nr=(A,t)=>f=>!!(typeof f=="string"&&h2.test(f)&&f.startsWith(A)||t&&!G2(f)&&Object.prototype.hasOwnProperty.call(f,t)),FB=(A,t,f)=>n=>{if(typeof n!="string")return n;const[v,w,r,s]=n.match(hr);return{[A]:parseFloat(v),[t]:parseFloat(w),[f]:parseFloat(r),alpha:s!==void 0?parseFloat(s):1}},N2=A=>Be(0,255,A),Rn={...xt,transform:A=>Math.round(N2(A))},Ke={test:Nr("rgb","red"),parse:FB("red","green","blue"),transform:({red:A,green:t,blue:f,alpha:n=1})=>"rgba("+Rn.transform(A)+", "+Rn.transform(t)+", "+Rn.transform(f)+", "+Jt(rf.transform(n))+")"};function Q2(A){let t="",f="",n="",v="";return A.length>5?(t=A.substring(1,3),f=A.substring(3,5),n=A.substring(5,7),v=A.substring(7,9)):(t=A.substring(1,2),f=A.substring(2,3),n=A.substring(3,4),v=A.substring(4,5),t+=t,f+=f,n+=n,v+=v),{red:parseInt(t,16),green:parseInt(f,16),blue:parseInt(n,16),alpha:v?parseInt(v,16)/255:1}}const xv={test:Nr("#"),parse:Q2,transform:Ke.transform},Lf=A=>({test:t=>typeof t=="string"&&t.endsWith(A)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${A}`}),ce=Lf("deg"),we=Lf("%"),U=Lf("px"),F2=Lf("vh"),O2=Lf("vw"),_w={...we,parse:A=>we.parse(A)/100,transform:A=>we.transform(A*100)},ut={test:Nr("hsl","hue"),parse:FB("hue","saturation","lightness"),transform:({hue:A,saturation:t,lightness:f,alpha:n=1})=>"hsla("+Math.round(A)+", "+we.transform(Jt(t))+", "+we.transform(Jt(f))+", "+Jt(rf.transform(n))+")"},zA={test:A=>Ke.test(A)||xv.test(A)||ut.test(A),parse:A=>Ke.test(A)?Ke.parse(A):ut.test(A)?ut.parse(A):xv.parse(A),transform:A=>typeof A=="string"?A:A.hasOwnProperty("red")?Ke.transform(A):ut.transform(A),getAnimatableNone:A=>{const t=zA.parse(A);return t.alpha=0,zA.transform(t)}},E2=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function y2(A){return isNaN(A)&&typeof A=="string"&&(A.match(hr)?.length||0)+(A.match(E2)?.length||0)>0}const OB="number",EB="color",p2="var",j2="var(",As="${}",I2=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Lt(A){const t=A.toString(),f=[],n={color:[],number:[],var:[]},v=[];let w=0;const s=t.replace(I2,g=>(zA.test(g)?(n.color.push(w),v.push(EB),f.push(zA.parse(g))):g.startsWith(j2)?(n.var.push(w),v.push(p2),f.push(g)):(n.number.push(w),v.push(OB),f.push(parseFloat(g))),++w,As)).split(As);return{values:f,split:s,indexes:n,types:v}}function V2(A){return Lt(A).values}function yB({split:A,types:t}){const f=A.length;return n=>{let v="";for(let w=0;w<f;w++)if(v+=A[w],n[w]!==void 0){const r=t[w];r===OB?v+=Jt(n[w]):r===EB?v+=zA.transform(n[w]):v+=n[w]}return v}}function T2(A){return yB(Lt(A))}const W2=A=>typeof A=="number"?0:zA.test(A)?zA.getAnimatableNone(A):A,Z2=(A,t)=>typeof A=="number"?t?.trim().endsWith("/")?A:0:W2(A);function q2(A){const t=Lt(A);return yB(t)(t.values.map((n,v)=>Z2(n,t.split[v])))}const _A={test:y2,parse:V2,createTransformer:T2,getAnimatableNone:q2};function Jn(A,t,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?A+(t-A)*6*f:f<1/2?t:f<2/3?A+(t-A)*(2/3-f)*6:A}function K2({hue:A,saturation:t,lightness:f,alpha:n}){A/=360,t/=100,f/=100;let v=0,w=0,r=0;if(!t)v=w=r=f;else{const s=f<.5?f*(1+t):f+t-f*t,g=2*f-s;v=Jn(g,s,A+1/3),w=Jn(g,s,A),r=Jn(g,s,A-1/3)}return{red:Math.round(v*255),green:Math.round(w*255),blue:Math.round(r*255),alpha:n}}function vn(A,t){return f=>f>0?t:A}const cA=(A,t,f)=>A+(t-A)*f,Un=(A,t,f)=>{const n=A*A,v=f*(t*t-n)+n;return v<0?0:Math.sqrt(v)},k2=[xv,Ke,ut],R2=A=>k2.find(t=>t.test(A));function es(A){const t=R2(A);if(bf(!!t,`'${A}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let f=t.parse(A);return t===ut&&(f=K2(f)),f}const ts=(A,t)=>{const f=es(A),n=es(t);if(!f||!n)return vn(A,t);const v={...f};return w=>(v.red=Un(f.red,n.red,w),v.green=Un(f.green,n.green,w),v.blue=Un(f.blue,n.blue,w),v.alpha=cA(f.alpha,n.alpha,w),Ke.transform(v))},Gv=new Set(["none","hidden"]);function J2(A,t){return Gv.has(A)?f=>f<=0?A:t:f=>f>=1?t:A}function U2(A,t){return f=>cA(A,t,f)}function Qr(A){return typeof A=="number"?U2:typeof A=="string"?Gr(A)?vn:zA.test(A)?ts:_2:Array.isArray(A)?pB:typeof A=="object"?zA.test(A)?ts:S2:vn}function pB(A,t){const f=[...A],n=f.length,v=A.map((w,r)=>Qr(w)(w,t[r]));return w=>{for(let r=0;r<n;r++)f[r]=v[r](w);return f}}function S2(A,t){const f={...A,...t},n={};for(const v in f)A[v]!==void 0&&t[v]!==void 0&&(n[v]=Qr(A[v])(A[v],t[v]));return v=>{for(const w in n)f[w]=n[w](v);return f}}function $2(A,t){const f=[],n={color:0,var:0,number:0};for(let v=0;v<t.values.length;v++){const w=t.types[v],r=A.indexes[w][n[w]],s=A.values[r]??0;f[v]=s,n[w]++}return f}const _2=(A,t)=>{const f=_A.createTransformer(t),n=Lt(A),v=Lt(t);return n.indexes.var.length===v.indexes.var.length&&n.indexes.color.length===v.indexes.color.length&&n.indexes.number.length>=v.indexes.number.length?Gv.has(A)&&!v.values.length||Gv.has(t)&&!n.values.length?J2(A,t):Xf(pB($2(n,v),v.values),f):(bf(!0,`Complex values '${A}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),vn(A,t))};function jB(A,t,f){return typeof A=="number"&&typeof t=="number"&&typeof f=="number"?cA(A,t,f):Qr(A)(A,t)}const Ab=A=>{const t=({timestamp:f})=>A(f);return{start:(f=!0)=>aA.update(t,f),stop:()=>he(t),now:()=>YA.isProcessing?YA.timestamp:hA.now()}},IB=(A,t,f=10)=>{let n="";const v=Math.max(Math.round(t/f),2);for(let w=0;w<v;w++)n+=Math.round(A(w/(v-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},rn=2e4;function Fr(A){let t=0;const f=50;let n=A.next(t);for(;!n.done&&t<rn;)t+=f,n=A.next(t);return t>=rn?1/0:t}function eb(A,t=100,f){const n=f({...A,keyframes:[0,t]}),v=Math.min(Fr(n),rn);return{type:"keyframes",ease:w=>n.next(v*w).value/t,duration:qA(v)}}const DA={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function hv(A,t){return A*Math.sqrt(1-t*t)}const tb=12;function fb(A,t,f){let n=f;for(let v=1;v<tb;v++)n=n-A(n)/t(n);return n}const Sn=.001;function nb({duration:A=DA.duration,bounce:t=DA.bounce,velocity:f=DA.velocity,mass:n=DA.mass}){let v,w;bf(A<=pA(DA.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let r=1-t;r=Be(DA.minDamping,DA.maxDamping,r),A=Be(DA.minDuration,DA.maxDuration,qA(A)),r<1?(v=B=>{const a=B*r,o=a*A,u=a-f,d=hv(B,r),l=Math.exp(-o);return Sn-u/d*l},w=B=>{const o=B*r*A,u=o*f+f,d=Math.pow(r,2)*Math.pow(B,2)*A,l=Math.exp(-o),C=hv(Math.pow(B,2),r);return(-v(B)+Sn>0?-1:1)*((u-d)*l)/C}):(v=B=>{const a=Math.exp(-B*A),o=(B-f)*A+1;return-Sn+a*o},w=B=>{const a=Math.exp(-B*A),o=(f-B)*(A*A);return a*o});const s=5/A,g=fb(v,w,s);if(A=pA(A),isNaN(g))return{stiffness:DA.stiffness,damping:DA.damping,duration:A};{const B=Math.pow(g,2)*n;return{stiffness:B,damping:r*2*Math.sqrt(n*B),duration:A}}}const vb=["duration","bounce"],rb=["stiffness","damping","mass"];function fs(A,t){return t.some(f=>A[f]!==void 0)}function wb(A){let t={velocity:DA.velocity,stiffness:DA.stiffness,damping:DA.damping,mass:DA.mass,isResolvedFromDuration:!1,...A};if(!fs(A,rb)&&fs(A,vb))if(t.velocity=0,A.visualDuration){const f=A.visualDuration,n=2*Math.PI/(f*1.2),v=n*n,w=2*Be(.05,1,1-(A.bounce||0))*Math.sqrt(v);t={...t,mass:DA.mass,stiffness:v,damping:w}}else{const f=nb({...A,velocity:0});t={...t,...f,mass:DA.mass},t.isResolvedFromDuration=!0}return t}function wn(A=DA.visualDuration,t=DA.bounce){const f=typeof A!="object"?{visualDuration:A,keyframes:[0,1],bounce:t}:A;let{restSpeed:n,restDelta:v}=f;const w=f.keyframes[0],r=f.keyframes[f.keyframes.length-1],s={done:!1,value:w},{stiffness:g,damping:B,mass:a,duration:o,velocity:u,isResolvedFromDuration:d}=wb({...f,velocity:-qA(f.velocity||0)}),l=u||0,C=B/(2*Math.sqrt(g*a)),c=r-w,D=qA(Math.sqrt(g/a)),i=Math.abs(c)<5;n||(n=i?DA.restSpeed.granular:DA.restSpeed.default),v||(v=i?DA.restDelta.granular:DA.restDelta.default);let b,X,P,L,x,z;if(C<1)P=hv(D,C),L=(l+C*D*c)/P,b=N=>{const Q=Math.exp(-C*D*N);return r-Q*(L*Math.sin(P*N)+c*Math.cos(P*N))},x=C*D*L+c*P,z=C*D*c-L*P,X=N=>Math.exp(-C*D*N)*(x*Math.sin(P*N)+z*Math.cos(P*N));else if(C===1){b=Q=>r-Math.exp(-D*Q)*(c+(l+D*c)*Q);const N=l+D*c;X=Q=>Math.exp(-D*Q)*(D*N*Q-l)}else{const N=D*Math.sqrt(C*C-1);b=M=>{const Y=Math.exp(-C*D*M),h=Math.min(N*M,300);return r-Y*((l+C*D*c)*Math.sinh(h)+N*c*Math.cosh(h))/N};const Q=(l+C*D*c)/N,m=C*D*Q-c*N,G=C*D*c-Q*N;X=M=>{const Y=Math.exp(-C*D*M),h=Math.min(N*M,300);return Y*(m*Math.sinh(h)+G*Math.cosh(h))}}const H={calculatedDuration:d&&o||null,velocity:N=>pA(X(N)),next:N=>{if(!d&&C<1){const m=Math.exp(-C*D*N),G=Math.sin(P*N),M=Math.cos(P*N),Y=r-m*(L*G+c*M),h=pA(m*(x*G+z*M));return s.done=Math.abs(h)<=n&&Math.abs(r-Y)<=v,s.value=s.done?r:Y,s}const Q=b(N);if(d)s.done=N>=o;else{const m=pA(X(N));s.done=Math.abs(m)<=n&&Math.abs(r-Q)<=v}return s.value=s.done?r:Q,s},toString:()=>{const N=Math.min(Fr(H),rn),Q=IB(m=>H.next(N*m).value,N,30);return N+"ms "+Q},toTransition:()=>{}};return H}wn.applyToOptions=A=>{const t=eb(A,100,wn);return A.ease=t.ease,A.duration=pA(t.duration),A.type="keyframes",A};const sb=5;function VB(A,t,f){const n=Math.max(t-sb,0);return PB(f-A(n),t-n)}function Nv({keyframes:A,velocity:t=0,power:f=.8,timeConstant:n=325,bounceDamping:v=10,bounceStiffness:w=500,modifyTarget:r,min:s,max:g,restDelta:B=.5,restSpeed:a}){const o=A[0],u={done:!1,value:o},d=z=>s!==void 0&&z<s||g!==void 0&&z>g,l=z=>s===void 0?g:g===void 0||Math.abs(s-z)<Math.abs(g-z)?s:g;let C=f*t;const c=o+C,D=r===void 0?c:r(c);D!==c&&(C=D-o);const i=z=>-C*Math.exp(-z/n),b=z=>D+i(z),X=z=>{const H=i(z),N=b(z);u.done=Math.abs(H)<=B,u.value=u.done?D:N};let P,L;const x=z=>{d(u.value)&&(P=z,L=wn({keyframes:[u.value,l(u.value)],velocity:VB(b,z,u.value),damping:v,stiffness:w,restDelta:B,restSpeed:a}))};return x(0),{calculatedDuration:null,next:z=>{let H=!1;return!L&&P===void 0&&(H=!0,X(z),x(z)),P!==void 0&&z>=P?L.next(z-P):(!H&&X(z),u)}}}function gb(A,t,f){const n=[],v=f||Ge.mix||jB,w=A.length-1;for(let r=0;r<w;r++){let s=v(A[r],A[r+1]);if(t){const g=Array.isArray(t)?t[r]||KA:t;s=Xf(g,s)}n.push(s)}return n}function Bb(A,t,{clamp:f=!0,ease:n,mixer:v}={}){const w=A.length;if(et(w===t.length,"Both input and output ranges must be the same length","range-length"),w===1)return()=>t[0];if(w===2&&t[0]===t[1])return()=>t[1];const r=A[0]===A[1];A[0]>A[w-1]&&(A=[...A].reverse(),t=[...t].reverse());const s=gb(t,n,v),g=s.length,B=a=>{if(r&&a<A[0])return t[0];let o=0;if(g>1)for(;o<A.length-2&&!(a<A[o+1]);o++);const u=vf(A[o],A[o+1],a);return s[o](u)};return f?a=>B(Be(A[0],A[w-1],a)):B}function ab(A,t){const f=A[A.length-1];for(let n=1;n<=t;n++){const v=vf(0,t,n);A.push(cA(f,1,v))}}function ob(A){const t=[0];return ab(t,A.length-1),t}function ub(A,t){return A.map(f=>f*t)}function db(A,t){return A.map(()=>t||GB).splice(0,A.length-1)}function dt({duration:A=300,keyframes:t,times:f,ease:n="easeInOut"}){const v=z2(n)?n.map(Sw):Sw(n),w={done:!1,value:t[0]},r=ub(f&&f.length===t.length?f:ob(t),A),s=Bb(r,t,{ease:Array.isArray(v)?v:db(t,v)});return{calculatedDuration:A,next:g=>(w.value=s(g),w.done=g>=A,w)}}const cb=A=>A!==null;function hn(A,{repeat:t,repeatType:f="loop"},n,v=1){const w=A.filter(cb),s=v<0||t&&f!=="loop"&&t%2===1?0:w.length-1;return!s||n===void 0?w[s]:n}const ib={decay:Nv,inertia:Nv,tween:dt,keyframes:dt,spring:wn};function TB(A){typeof A.type=="string"&&(A.type=ib[A.type])}class Or{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,f){return this.finished.then(t,f)}}const lb=A=>A/100;class sn extends Or{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:f}=this.options;f&&f.updatedAt!==hA.now()&&this.tick(hA.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;TB(t);const{type:f=dt,repeat:n=0,repeatDelay:v=0,repeatType:w,velocity:r=0}=t;let{keyframes:s}=t;const g=f||dt;process.env.NODE_ENV!=="production"&&g!==dt&&et(s.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${s}`,"spring-two-frames"),g!==dt&&typeof s[0]!="number"&&(this.mixKeyframes=Xf(lb,jB(s[0],s[1])),s=[0,100]);const B=g({...t,keyframes:s});w==="mirror"&&(this.mirroredGenerator=g({...t,keyframes:[...s].reverse(),velocity:-r})),B.calculatedDuration===null&&(B.calculatedDuration=Fr(B));const{calculatedDuration:a}=B;this.calculatedDuration=a,this.resolvedDuration=a+v,this.totalDuration=this.resolvedDuration*(n+1)-v,this.generator=B}updateTime(t){const f=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=f}tick(t,f=!1){const{generator:n,totalDuration:v,mixKeyframes:w,mirroredGenerator:r,resolvedDuration:s,calculatedDuration:g}=this;if(this.startTime===null)return n.next(0);const{delay:B=0,keyframes:a,repeat:o,repeatType:u,repeatDelay:d,type:l,onUpdate:C,finalKeyframe:c}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-v/this.speed,this.startTime)),f?this.currentTime=t:this.updateTime(t);const D=this.currentTime-B*(this.playbackSpeed>=0?1:-1),i=this.playbackSpeed>=0?D<0:D>v;this.currentTime=Math.max(D,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=v);let b=this.currentTime,X=n;if(o){const z=Math.min(this.currentTime,v)/s;let H=Math.floor(z),N=z%1;!N&&z>=1&&(N=1),N===1&&H--,H=Math.min(H,o+1),!!(H%2)&&(u==="reverse"?(N=1-N,d&&(N-=d/s)):u==="mirror"&&(X=r)),b=Be(0,1,N)*s}let P;i?(this.delayState.value=a[0],P=this.delayState):P=X.next(b),w&&!i&&(P.value=w(P.value));let{done:L}=P;!i&&g!==null&&(L=this.playbackSpeed>=0?this.currentTime>=v:this.currentTime<=0);const x=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return x&&l!==Nv&&(P.value=hn(a,this.options,c,this.speed)),C&&C(P.value),x&&this.finish(),P}then(t,f){return this.finished.then(t,f)}get duration(){return qA(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+qA(t)}get time(){return qA(this.currentTime)}set time(t){t=pA(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const f=this.generator.next(t).value;return VB(n=>this.generator.next(n).value,t,f)}get speed(){return this.playbackSpeed}set speed(t){const f=this.playbackSpeed!==t;f&&this.driver&&this.updateTime(hA.now()),this.playbackSpeed=t,f&&this.driver&&(this.time=qA(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Ab,startTime:f}=this.options;this.driver||(this.driver=t(v=>this.tick(v))),this.options.onPlay?.();const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=f??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(hA.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function Db(A){for(let t=1;t<A.length;t++)A[t]??(A[t]=A[t-1])}const ke=A=>A*180/Math.PI,Qv=A=>{const t=ke(Math.atan2(A[1],A[0]));return Fv(t)},Cb={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:A=>(Math.abs(A[0])+Math.abs(A[3]))/2,rotate:Qv,rotateZ:Qv,skewX:A=>ke(Math.atan(A[1])),skewY:A=>ke(Math.atan(A[2])),skew:A=>(Math.abs(A[1])+Math.abs(A[2]))/2},Fv=A=>(A=A%360,A<0&&(A+=360),A),ns=Qv,vs=A=>Math.sqrt(A[0]*A[0]+A[1]*A[1]),rs=A=>Math.sqrt(A[4]*A[4]+A[5]*A[5]),Pb={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:vs,scaleY:rs,scale:A=>(vs(A)+rs(A))/2,rotateX:A=>Fv(ke(Math.atan2(A[6],A[5]))),rotateY:A=>Fv(ke(Math.atan2(-A[2],A[0]))),rotateZ:ns,rotate:ns,skewX:A=>ke(Math.atan(A[4])),skewY:A=>ke(Math.atan(A[1])),skew:A=>(Math.abs(A[1])+Math.abs(A[4]))/2};function Ov(A){return A.includes("scale")?1:0}function Ev(A,t){if(!A||A==="none")return Ov(t);const f=A.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,v;if(f)n=Pb,v=f;else{const s=A.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=Cb,v=s}if(!v)return Ov(t);const w=n[t],r=v[1].split(",").map(Xb);return typeof w=="function"?w(r):r[w]}const bb=(A,t)=>{const{transform:f="none"}=getComputedStyle(A);return Ev(f,t)};function Xb(A){return parseFloat(A.trim())}const Gt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ht=new Set([...Gt,"pathRotation"]),ws=A=>A===xt||A===U,zb=new Set(["x","y","z"]),Lb=Gt.filter(A=>!zb.has(A));function Mb(A){const t=[];return Lb.forEach(f=>{const n=A.getValue(f);n!==void 0&&(t.push([f,n.get()]),n.set(f.startsWith("scale")?1:0))}),t}const xe={width:({x:A},{paddingLeft:t="0",paddingRight:f="0",boxSizing:n})=>{const v=A.max-A.min;return n==="border-box"?v:v-parseFloat(t)-parseFloat(f)},height:({y:A},{paddingTop:t="0",paddingBottom:f="0",boxSizing:n})=>{const v=A.max-A.min;return n==="border-box"?v:v-parseFloat(t)-parseFloat(f)},top:(A,{top:t})=>parseFloat(t),left:(A,{left:t})=>parseFloat(t),bottom:({y:A},{top:t})=>parseFloat(t)+(A.max-A.min),right:({x:A},{left:t})=>parseFloat(t)+(A.max-A.min),x:(A,{transform:t})=>Ev(t,"x"),y:(A,{transform:t})=>Ev(t,"y")};xe.translateX=xe.x;xe.translateY=xe.y;const Ue=new Set;let yv=!1,pv=!1,jv=!1;function WB(){if(pv){const A=Array.from(Ue).filter(n=>n.needsMeasurement),t=new Set(A.map(n=>n.element)),f=new Map;t.forEach(n=>{const v=Mb(n);v.length&&(f.set(n,v),n.render())}),A.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const v=f.get(n);v&&v.forEach(([w,r])=>{n.getValue(w)?.set(r)})}),A.forEach(n=>n.measureEndState()),A.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}pv=!1,yv=!1,Ue.forEach(A=>A.complete(jv)),Ue.clear()}function ZB(){Ue.forEach(A=>{A.readKeyframes(),A.needsMeasurement&&(pv=!0)})}function Hb(){jv=!0,ZB(),WB(),jv=!1}class Er{constructor(t,f,n,v,w,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=f,this.name=n,this.motionValue=v,this.element=w,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(Ue.add(this),yv||(yv=!0,aA.read(ZB),aA.resolveKeyframes(WB))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:f,element:n,motionValue:v}=this;if(t[0]===null){const w=v?.get(),r=t[t.length-1];if(w!==void 0)t[0]=w;else if(n&&f){const s=n.readValue(f,r);s!=null&&(t[0]=s)}t[0]===void 0&&(t[0]=r),v&&w===void 0&&v.set(t[0])}Db(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ue.delete(this)}cancel(){this.state==="scheduled"&&(Ue.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Yb=A=>A.startsWith("--");function qB(A,t,f){Yb(t)?A.style.setProperty(t,f):A.style[t]=f}const mb={};function KB(A,t){const f=CB(A);return()=>mb[t]??f()}const xb=KB(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),kB=KB(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Kt=([A,t,f,n])=>`cubic-bezier(${A}, ${t}, ${f}, ${n})`,ss={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Kt([0,.65,.55,1]),circOut:Kt([.55,0,1,.45]),backIn:Kt([.31,.01,.66,-.59]),backOut:Kt([.33,1.53,.69,.99])};function RB(A,t){if(A)return typeof A=="function"?kB()?IB(A,t):"ease-out":hB(A)?Kt(A):Array.isArray(A)?A.map(f=>RB(f,t)||ss.easeOut):ss[A]}function Gb(A,t,f,{delay:n=0,duration:v=300,repeat:w=0,repeatType:r="loop",ease:s="easeOut",times:g}={},B=void 0){const a={[t]:f};g&&(a.offset=g);const o=RB(s,v);Array.isArray(o)&&(a.easing=o);const u={delay:n,duration:v,easing:Array.isArray(o)?"linear":o,fill:"both",iterations:w+1,direction:r==="reverse"?"alternate":"normal"};return B&&(u.pseudoElement=B),A.animate(a,u)}function JB(A){return typeof A=="function"&&"applyToOptions"in A}function hb({type:A,...t}){return JB(A)&&kB()?A.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class UB extends Or{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:f,name:n,keyframes:v,pseudoElement:w,allowFlatten:r=!1,finalKeyframe:s,onComplete:g}=t;this.isPseudoElement=!!w,this.allowFlatten=r,this.options=t,et(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const B=hb(t);this.animation=Gb(f,n,v,B,w),B.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!w){const a=hn(v,this.options,s,this.speed);this.updateMotionValue&&this.updateMotionValue(a),qB(f,n,a),this.animation.cancel()}g?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return qA(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+qA(t)}get time(){return qA(Number(this.animation.currentTime)||0)}set time(t){const f=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=pA(t),f&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:f,rangeEnd:n,observe:v}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&xb()?(this.animation.timeline=t,f&&(this.animation.rangeStart=f),n&&(this.animation.rangeEnd=n),KA):v(this)}}const SB={anticipate:YB,backInOut:HB,circInOut:xB};function Nb(A){return A in SB}function Qb(A){typeof A.ease=="string"&&Nb(A.ease)&&(A.ease=SB[A.ease])}const $n=10;class Fb extends UB{constructor(t){Qb(t),TB(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:f,onUpdate:n,onComplete:v,element:w,...r}=this.options;if(!f)return;if(t!==void 0){f.set(t);return}const s=new sn({...r,autoplay:!1}),g=Math.max($n,hA.now()-this.startTime),B=Be(0,$n,g-$n),a=s.sample(g).value,{name:o}=this.options;w&&o&&qB(w,o,a),f.setWithVelocity(s.sample(Math.max(0,g-B)).value,a,B),s.stop()}}const gs=(A,t)=>t==="zIndex"?!1:!!(typeof A=="number"||Array.isArray(A)||typeof A=="string"&&(_A.test(A)||A==="0")&&!A.startsWith("url("));function Ob(A){const t=A[0];if(A.length===1)return!0;for(let f=0;f<A.length;f++)if(A[f]!==t)return!0}function Eb(A,t,f,n){const v=A[0];if(v===null)return!1;if(t==="display"||t==="visibility")return!0;const w=A[A.length-1],r=gs(v,t),s=gs(w,t);return bf(r===s,`You are trying to animate ${t} from "${v}" to "${w}". "${r?w:v}" is not an animatable value.`,"value-not-animatable"),!r||!s?!1:Ob(A)||(f==="spring"||JB(f))&&n}function Iv(A){A.duration=0,A.type="keyframes"}const $B=new Set(["opacity","clipPath","filter","transform"]),yb=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function pb(A){for(let t=0;t<A.length;t++)if(typeof A[t]=="string"&&yb.test(A[t]))return!0;return!1}const jb=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Ib=CB(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Vb(A){const{motionValue:t,name:f,repeatDelay:n,repeatType:v,damping:w,type:r,keyframes:s}=A;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:B,transformTemplate:a}=t.owner.getProps();return Ib()&&f&&($B.has(f)||jb.has(f)&&pb(s))&&(f!=="transform"||!a)&&!B&&!n&&v!=="mirror"&&w!==0&&r!=="inertia"}const Tb=40;class Wb extends Or{constructor({autoplay:t=!0,delay:f=0,type:n="keyframes",repeat:v=0,repeatDelay:w=0,repeatType:r="loop",keyframes:s,name:g,motionValue:B,element:a,...o}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=hA.now();const u={autoplay:t,delay:f,type:n,repeat:v,repeatDelay:w,repeatType:r,name:g,motionValue:B,element:a,...o},d=a?.KeyframeResolver||Er;this.keyframeResolver=new d(s,(l,C,c)=>this.onKeyframesResolved(l,C,u,!c),g,B,a),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,f,n,v){this.keyframeResolver=void 0;const{name:w,type:r,velocity:s,delay:g,isHandoff:B,onUpdate:a}=n;this.resolvedAt=hA.now();let o=!0;Eb(t,w,r,s)||(o=!1,(Ge.instantAnimations||!g)&&a?.(hn(t,n,f)),t[0]=t[t.length-1],Iv(n),n.repeat=0);const d={startTime:v?this.resolvedAt?this.resolvedAt-this.createdAt>Tb?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:f,...n,keyframes:t},l=o&&!B&&Vb(d),C=d.motionValue?.owner?.current;let c;if(l)try{c=new Fb({...d,element:C})}catch{c=new sn(d)}else c=new sn(d);c.finished.then(()=>{this.notifyFinished()}).catch(KA),this.pendingTimeline&&(this.stopTimeline=c.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=c}get finished(){return this._animation?this.animation.finished:this._finished}then(t,f){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Hb()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function _B(A,t,f,n=0,v=1){const w=Array.from(A).sort((B,a)=>B.sortNodePosition(a)).indexOf(t),r=A.size,s=(r-1)*n;return typeof f=="function"?f(w,r):v===1?w*n:s-w*n}const Bs=30,Zb=A=>!isNaN(parseFloat(A));class qb{constructor(t,f={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{const v=hA.now();if(this.updatedAt!==v&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const w of this.dependents)w.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=f.owner}setCurrent(t){this.current=t,this.updatedAt=hA.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Zb(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&bB(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,f){this.events[t]||(this.events[t]=new Hr);const n=this.events[t].add(f);return t==="change"?()=>{n(),aA.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,f){this.passiveEffect=t,this.stopPassiveEffect=f}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,f,n){this.set(f),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,f=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,f&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=hA.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Bs)return 0;const f=Math.min(this.updatedAt-this.prevUpdatedAt,Bs);return PB(parseFloat(this.current)-parseFloat(this.prevFrameValue),f)}start(t){return this.stop(),new Promise(f=>{this.hasAnimated=!0,this.animation=t(f),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Mt(A,t){return new qb(A,t)}function Aa(A,t){if(A?.inherit&&t){const{inherit:f,...n}=A;return{...t,...n}}return A}function yr(A,t){const f=A?.[t]??A?.default??A;return f!==A?Aa(f,A):f}const Kb={type:"spring",stiffness:500,damping:25,restSpeed:10},kb=A=>({type:"spring",stiffness:550,damping:A===0?2*Math.sqrt(550):30,restSpeed:10}),Rb={type:"keyframes",duration:.8},Jb={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ub=(A,{keyframes:t})=>t.length>2?Rb:ht.has(A)?A.startsWith("scale")?kb(t[1]):Kb:Jb,Sb=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function $b(A){for(const t in A)if(!Sb.has(t))return!0;return!1}const pr=(A,t,f,n={},v,w)=>r=>{const s=yr(n,A)||{},g=s.delay||n.delay||0;let{elapsed:B=0}=n;B=B-pA(g);const a={keyframes:Array.isArray(f)?f:[null,f],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-B,onUpdate:u=>{t.set(u),s.onUpdate&&s.onUpdate(u)},onComplete:()=>{r(),s.onComplete&&s.onComplete()},name:A,motionValue:t,element:w?void 0:v};$b(s)||Object.assign(a,Ub(A,a)),a.duration&&(a.duration=pA(a.duration)),a.repeatDelay&&(a.repeatDelay=pA(a.repeatDelay)),a.from!==void 0&&(a.keyframes[0]=a.from);let o=!1;if((a.type===!1||a.duration===0&&!a.repeatDelay)&&(Iv(a),a.delay===0&&(o=!0)),(Ge.instantAnimations||Ge.skipAnimations||v?.shouldSkipAnimations||s.skipAnimations)&&(o=!0,Iv(a),a.delay=0),a.allowFlatten=!s.type&&!s.ease,o&&!w&&t.get()!==void 0){const u=hn(a.keyframes,s);if(u!==void 0){aA.update(()=>{a.onUpdate(u),a.onComplete()});return}}return s.isSync?new sn(a):new Wb(a)},_b=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function AX(A){const t=_b.exec(A);if(!t)return[,];const[,f,n,v]=t;return[`--${f??n}`,v]}const eX=4;function ea(A,t,f=1){et(f<=eX,`Max CSS variable fallback depth detected in property "${A}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[n,v]=AX(A);if(!n)return;const w=window.getComputedStyle(t).getPropertyValue(n);if(w){const r=w.trim();return iB(r)?parseFloat(r):r}return Gr(v)?ea(v,t,f+1):v}function as(A){const t=[{},{}];return A?.values.forEach((f,n)=>{t[0][n]=f.get(),t[1][n]=f.getVelocity()}),t}function ta(A,t,f,n){if(typeof t=="function"){const[v,w]=as(n);t=t(f!==void 0?f:A.custom,v,w)}if(typeof t=="string"&&(t=A.variants&&A.variants[t]),typeof t=="function"){const[v,w]=as(n);t=t(f!==void 0?f:A.custom,v,w)}return t}function Ct(A,t,f){const n=A.getProps();return ta(n,t,f!==void 0?f:n.custom,A)}const fa=new Set(["width","height","top","left","right","bottom",...Gt]),tX=A=>Array.isArray(A);function fX(A,t,f){A.hasValue(t)?A.getValue(t).set(f):A.addValue(t,Mt(f))}function nX(A){return tX(A)?A[A.length-1]||0:A}function vX(A,t){const f=Ct(A,t);let{transitionEnd:n={},transition:v={},...w}=f||{};w={...w,...n};for(const r in w){const s=nX(w[r]);fX(A,r,s)}}const GA=A=>!!(A&&A.getVelocity);function rX(A){return!!(GA(A)&&A.add)}function Vv(A,t){const f=A.getValue("willChange");if(rX(f))return f.add(t);if(!f&&Ge.WillChange){const n=new Ge.WillChange("auto");A.addValue("willChange",n),n.add(t)}}function jr(A){return A.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const wX="framerAppearId",sX="data-"+jr(wX);function na(A){return A.props[sX]}function gX({protectedKeys:A,needsAnimating:t},f){const n=A.hasOwnProperty(f)&&t[f]!==!0;return t[f]=!1,n}function va(A,t,{delay:f=0,transitionOverride:n,type:v}={}){let{transition:w,transitionEnd:r,...s}=t;const g=A.getDefaultTransition();w=w?Aa(w,g):g;const B=w?.reduceMotion,a=w?.skipAnimations;n&&(w=n);const o=[],u=v&&A.animationState&&A.animationState.getState()[v],d=w?.path;d&&d.animateVisualElement(A,s,w,f,o);for(const l in s){const C=A.getValue(l,A.latestValues[l]??null),c=s[l];if(c===void 0||u&&gX(u,l))continue;const D={delay:f,...yr(w||{},l)};a&&(D.skipAnimations=!0);const i=C.get();if(i!==void 0&&!C.isAnimating()&&!Array.isArray(c)&&c===i&&!D.velocity){aA.update(()=>C.set(c));continue}let b=!1;if(window.MotionHandoffAnimation){const L=na(A);if(L){const x=window.MotionHandoffAnimation(L,l,aA);x!==null&&(D.startTime=x,b=!0)}}Vv(A,l);const X=B??A.shouldReduceMotion;C.start(pr(l,C,c,X&&fa.has(l)?{type:!1}:D,A,b));const P=C.animation;P&&o.push(P)}if(r){const l=()=>aA.update(()=>{r&&vX(A,r)});o.length?Promise.all(o).then(l):l()}return o}function Tv(A,t,f={}){const n=Ct(A,t,f.type==="exit"?A.presenceContext?.custom:void 0);let{transition:v=A.getDefaultTransition()||{}}=n||{};f.transitionOverride&&(v=f.transitionOverride);const w=n?()=>Promise.all(va(A,n,f)):()=>Promise.resolve(),r=A.variantChildren&&A.variantChildren.size?(g=0)=>{const{delayChildren:B=0,staggerChildren:a,staggerDirection:o}=v;return BX(A,t,g,B,a,o,f)}:()=>Promise.resolve(),{when:s}=v;if(s){const[g,B]=s==="beforeChildren"?[w,r]:[r,w];return g().then(()=>B())}else return Promise.all([w(),r(f.delay)])}function BX(A,t,f=0,n=0,v=0,w=1,r){const s=[];for(const g of A.variantChildren)g.notify("AnimationStart",t),s.push(Tv(g,t,{...r,delay:f+(typeof n=="function"?0:n)+_B(A.variantChildren,g,n,v,w)}).then(()=>g.notify("AnimationComplete",t)));return Promise.all(s)}function aX(A,t,f={}){A.notify("AnimationStart",t);let n;if(Array.isArray(t)){const v=t.map(w=>Tv(A,w,f));n=Promise.all(v)}else if(typeof t=="string")n=Tv(A,t,f);else{const v=typeof t=="function"?Ct(A,t,f.custom):t;n=Promise.all(va(A,v,f))}return n.then(()=>{A.notify("AnimationComplete",t)})}const oX={test:A=>A==="auto",parse:A=>A},ra=A=>t=>t.test(A),wa=[xt,U,we,ce,O2,F2,oX],os=A=>wa.find(ra(A));function uX(A){return typeof A=="number"?A===0:A!==null?A==="none"||A==="0"||DB(A):!0}const dX=new Set(["brightness","contrast","saturate","opacity"]);function cX(A){const[t,f]=A.slice(0,-1).split("(");if(t==="drop-shadow")return A;const[n]=f.match(hr)||[];if(!n)return A;const v=f.replace(n,"");let w=dX.has(t)?1:0;return n!==f&&(w*=100),t+"("+w+v+")"}const iX=/\b([a-z-]*)\(.*?\)/gu,Wv={..._A,getAnimatableNone:A=>{const t=A.match(iX);return t?t.map(cX).join(" "):A}},Zv={..._A,getAnimatableNone:A=>{const t=_A.parse(A);return _A.createTransformer(A)(t.map(n=>typeof n=="number"?0:typeof n=="object"?{...n,alpha:1}:n))}},us={...xt,transform:Math.round},lX={rotate:ce,pathRotation:ce,rotateX:ce,rotateY:ce,rotateZ:ce,scale:If,scaleX:If,scaleY:If,scaleZ:If,skew:ce,skewX:ce,skewY:ce,distance:U,translateX:U,translateY:U,translateZ:U,x:U,y:U,z:U,perspective:U,transformPerspective:U,opacity:rf,originX:_w,originY:_w,originZ:U},gn={borderWidth:U,borderTopWidth:U,borderRightWidth:U,borderBottomWidth:U,borderLeftWidth:U,borderRadius:U,borderTopLeftRadius:U,borderTopRightRadius:U,borderBottomRightRadius:U,borderBottomLeftRadius:U,width:U,maxWidth:U,height:U,maxHeight:U,top:U,right:U,bottom:U,left:U,inset:U,insetBlock:U,insetBlockStart:U,insetBlockEnd:U,insetInline:U,insetInlineStart:U,insetInlineEnd:U,padding:U,paddingTop:U,paddingRight:U,paddingBottom:U,paddingLeft:U,paddingBlock:U,paddingBlockStart:U,paddingBlockEnd:U,paddingInline:U,paddingInlineStart:U,paddingInlineEnd:U,margin:U,marginTop:U,marginRight:U,marginBottom:U,marginLeft:U,marginBlock:U,marginBlockStart:U,marginBlockEnd:U,marginInline:U,marginInlineStart:U,marginInlineEnd:U,fontSize:U,backgroundPositionX:U,backgroundPositionY:U,...lX,zIndex:us,fillOpacity:rf,strokeOpacity:rf,numOctaves:us},DX={...gn,color:zA,backgroundColor:zA,outlineColor:zA,fill:zA,stroke:zA,borderColor:zA,borderTopColor:zA,borderRightColor:zA,borderBottomColor:zA,borderLeftColor:zA,filter:Wv,WebkitFilter:Wv,mask:Zv,WebkitMask:Zv},sa=A=>DX[A],CX=new Set([Wv,Zv]);function ga(A,t){let f=sa(A);return CX.has(f)||(f=_A),f.getAnimatableNone?f.getAnimatableNone(t):void 0}const PX=new Set(["auto","none","0"]);function bX(A,t,f){let n=0,v;for(;n<A.length&&!v;){const w=A[n];typeof w=="string"&&!PX.has(w)&&Lt(w).values.length&&(v=A[n]),n++}if(v&&f)for(const w of t)A[w]=ga(f,v)}class XX extends Er{constructor(t,f,n,v,w){super(t,f,n,v,w,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:f,name:n}=this;if(!f||!f.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let o=t[a];if(typeof o=="string"&&(o=o.trim(),Gr(o))){const u=ea(o,f.current);u!==void 0&&(t[a]=u),a===t.length-1&&(this.finalKeyframe=o)}}if(this.resolveNoneKeyframes(),!fa.has(n)||t.length!==2)return;const[v,w]=t,r=os(v),s=os(w),g=$w(v),B=$w(w);if(g!==B&&xe[n]){this.needsMeasurement=!0;return}if(r!==s)if(ws(r)&&ws(s))for(let a=0;a<t.length;a++){const o=t[a];typeof o=="string"&&(t[a]=parseFloat(o))}else xe[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:f}=this,n=[];for(let v=0;v<t.length;v++)(t[v]===null||uX(t[v]))&&n.push(v);n.length&&bX(t,n,f)}measureInitialState(){const{element:t,unresolvedKeyframes:f,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=xe[n](t.measureViewportBox(),window.getComputedStyle(t.current)),f[0]=this.measuredOrigin;const v=f[f.length-1];v!==void 0&&t.getValue(n,v).jump(v,!1)}measureEndState(){const{element:t,name:f,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const v=t.getValue(f);v&&v.jump(this.measuredOrigin,!1);const w=n.length-1,r=n[w];n[w]=xe[f](t.measureViewportBox(),window.getComputedStyle(t.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([s,g])=>{t.getValue(s).set(g)}),this.resolveNoneKeyframes()}}function Ba(A,t,f){if(A==null)return[];if(A instanceof EventTarget)return[A];if(typeof A=="string"){let n=document;const v=f?.[A]??n.querySelectorAll(A);return v?Array.from(v):[]}return Array.from(A).filter(n=>n!=null)}const qv=(A,t)=>t&&typeof A=="number"?t.transform(A):A;function zX(A){return lB(A)&&"offsetHeight"in A&&!("ownerSVGElement"in A)}const{schedule:aa}=NB(queueMicrotask,!1),LX={y:!1};function MX(){return LX.y}function oa(A,t){const f=Ba(A),n=new AbortController,v={passive:!0,...t,signal:n.signal};return[f,v,()=>n.abort()]}function HX(A){return!(A.pointerType==="touch"||MX())}function YX(A,t,f={}){const[n,v,w]=oa(A,f);return n.forEach(r=>{let s=!1,g=!1,B;const a=()=>{r.removeEventListener("pointerleave",l)},o=c=>{B&&(B(c),B=void 0),a()},u=c=>{s=!1,window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",u),g&&(g=!1,o(c))},d=()=>{s=!0,window.addEventListener("pointerup",u,v),window.addEventListener("pointercancel",u,v)},l=c=>{if(c.pointerType!=="touch"){if(s){g=!0;return}o(c)}},C=c=>{if(!HX(c))return;g=!1;const D=t(r,c);typeof D=="function"&&(B=D,r.addEventListener("pointerleave",l,v))};r.addEventListener("pointerenter",C,v),r.addEventListener("pointerdown",d,v)}),w}const ua=(A,t)=>t?A===t?!0:ua(A,t.parentElement):!1,mX=A=>A.pointerType==="mouse"?typeof A.button!="number"||A.button<=0:A.isPrimary!==!1,xX=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function GX(A){return xX.has(A.tagName)||A.isContentEditable===!0}const Rf=new WeakSet;function ds(A){return t=>{t.key==="Enter"&&A(t)}}function _n(A,t){A.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const hX=(A,t)=>{const f=A.currentTarget;if(!f)return;const n=ds(()=>{if(Rf.has(f))return;_n(f,"down");const v=ds(()=>{_n(f,"up")}),w=()=>_n(f,"cancel");f.addEventListener("keyup",v,t),f.addEventListener("blur",w,t)});f.addEventListener("keydown",n,t),f.addEventListener("blur",()=>f.removeEventListener("keydown",n),t)};function cs(A){return mX(A)&&!0}const is=new WeakSet;function NX(A,t,f={}){const[n,v,w]=oa(A,f),r=s=>{const g=s.currentTarget;if(!cs(s)||is.has(s))return;Rf.add(g),f.stopPropagation&&is.add(s);const B=t(g,s),a=(d,l)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",u),Rf.has(g)&&Rf.delete(g),cs(d)&&typeof B=="function"&&B(d,{success:l})},o=d=>{a(d,g===window||g===document||f.useGlobalTarget||ua(g,d.target))},u=d=>{a(d,!1)};window.addEventListener("pointerup",o,v),window.addEventListener("pointercancel",u,v)};return n.forEach(s=>{(f.useGlobalTarget?window:s).addEventListener("pointerdown",r,v),zX(s)&&(s.addEventListener("focus",B=>hX(B,v)),!GX(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),w}function da(A){return lB(A)&&"ownerSVGElement"in A}function QX(A){return da(A)&&A.tagName==="svg"}const FX=[...wa,zA,_A],OX=A=>FX.find(ra(A)),ls=()=>({translate:0,scale:1,origin:0,originPoint:0}),ct=()=>({x:ls(),y:ls()}),Ds=()=>({min:0,max:0}),HA=()=>({x:Ds(),y:Ds()}),EX=new WeakMap;function Ir(A){return A!==null&&typeof A=="object"&&typeof A.start=="function"}function Nn(A){return typeof A=="string"||Array.isArray(A)}const yX=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],pX=["initial",...yX];function ca(A){return Ir(A.animate)||pX.some(t=>Nn(A[t]))}function jX(A){return!!(ca(A)||A.variants)}function IX(A,t,f){for(const n in t){const v=t[n],w=f[n];if(GA(v))A.addValue(n,v);else if(GA(w))A.addValue(n,Mt(v,{owner:A}));else if(w!==v)if(A.hasValue(n)){const r=A.getValue(n);r.liveStyle===!0?r.jump(v):r.hasAnimated||r.set(v)}else{const r=A.getStaticValue(n);A.addValue(n,Mt(r!==void 0?r:v,{owner:A}))}}for(const n in f)t[n]===void 0&&A.removeValue(n);return t}const Kv={current:null},ia={current:!1},VX=typeof window<"u";function TX(){if(ia.current=!0,!!VX)if(window.matchMedia){const A=window.matchMedia("(prefers-reduced-motion)"),t=()=>Kv.current=A.matches;A.addEventListener("change",t),t()}else Kv.current=!1}const Cs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Ps={};class WX{scrapeMotionValuesFromProps(t,f,n){return{}}constructor({parent:t,props:f,presenceContext:n,reducedMotionConfig:v,skipAnimations:w,blockInitialAnimation:r,visualState:s},g={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Er,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=hA.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,aA.render(this.render,!1,!0))};const{latestValues:B,renderState:a}=s;this.latestValues=B,this.baseTarget={...B},this.initialValues=f.initial?{...B}:{},this.renderState=a,this.parent=t,this.props=f,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=v,this.skipAnimationsConfig=w,this.options=g,this.blockInitialAnimation=!!r,this.isControllingVariants=ca(f),this.isVariantNode=jX(f),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:o,...u}=this.scrapeMotionValuesFromProps(f,{},this);for(const d in u){const l=u[d];B[d]!==void 0&&GA(l)&&l.set(B[d])}}mount(t){if(this.hasBeenMounted)for(const f in this.initialValues)this.values.get(f)?.jump(this.initialValues[f]),this.latestValues[f]=this.initialValues[f];this.current=t,EX.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((f,n)=>this.bindToMotionValue(n,f)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(ia.current||TX(),this.shouldReduceMotion=Kv.current),process.env.NODE_ENV!=="production"&&bB(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),he(this.notifyUpdate),he(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const f=this.features[t];f&&(f.unmount(),f.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,f){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),f.accelerate&&$B.has(t)&&this.current instanceof HTMLElement){const{factory:r,keyframes:s,times:g,ease:B,duration:a}=f.accelerate,o=new UB({element:this.current,name:t,keyframes:s,times:g,ease:B,duration:pA(a)}),u=r(o);this.valueSubscriptions.set(t,()=>{u(),o.cancel()});return}const n=ht.has(t);n&&this.onBindTransform&&this.onBindTransform();const v=f.on("change",r=>{this.latestValues[t]=r,this.props.onUpdate&&aA.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let w;typeof window<"u"&&window.MotionCheckAppearSync&&(w=window.MotionCheckAppearSync(this,t,f)),this.valueSubscriptions.set(t,()=>{v(),w&&w()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ps){const f=Ps[t];if(!f)continue;const{isEnabled:n,Feature:v}=f;if(!this.features[t]&&v&&n(this.props)&&(this.features[t]=new v(this)),this.features[t]){const w=this.features[t];w.isMounted?w.update():(w.mount(),w.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):HA()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,f){this.latestValues[t]=f}update(t,f){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=f;for(let n=0;n<Cs.length;n++){const v=Cs[n];this.propEventSubscriptions[v]&&(this.propEventSubscriptions[v](),delete this.propEventSubscriptions[v]);const w="on"+v,r=t[w];r&&(this.propEventSubscriptions[v]=this.on(v,r))}this.prevMotionValues=IX(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const f=this.getClosestVariantNode();if(f)return f.variantChildren&&f.variantChildren.add(t),()=>f.variantChildren.delete(t)}addValue(t,f){const n=this.values.get(t);f!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,f),this.values.set(t,f),this.latestValues[t]=f.get())}removeValue(t){this.values.delete(t);const f=this.valueSubscriptions.get(t);f&&(f(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,f){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&f!==void 0&&(n=Mt(f===null?void 0:f,{owner:this}),this.addValue(t,n)),n}readValue(t,f){let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return n!=null&&(typeof n=="string"&&(iB(n)||DB(n))?n=parseFloat(n):!OX(n)&&_A.test(f)&&(n=ga(t,f)),this.setBaseTarget(t,GA(n)?n.get():n)),GA(n)?n.get():n}setBaseTarget(t,f){this.baseTarget[t]=f}getBaseTarget(t){const{initial:f}=this.props;let n;if(typeof f=="string"||typeof f=="object"){const w=ta(this.props,f,this.presenceContext?.custom);w&&(n=w[t])}if(f&&n!==void 0)return n;const v=this.getBaseTargetFromProps(this.props,t);return v!==void 0&&!GA(v)?v:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,f){return this.events[t]||(this.events[t]=new Hr),this.events[t].add(f)}notify(t,...f){this.events[t]&&this.events[t].notify(...f)}scheduleRenderMicrotask(){aa.render(this.render)}}class la extends WX{constructor(){super(...arguments),this.KeyframeResolver=XX}sortInstanceNodePosition(t,f){return t.compareDocumentPosition(f)&2?1:-1}getBaseTargetFromProps(t,f){const n=t.style;return n?n[f]:void 0}removeValueFromRenderState(t,{vars:f,style:n}){delete f[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;GA(t)&&(this.childSubscription=t.on("change",f=>{this.current&&(this.current.textContent=`${f}`)}))}}function Da({top:A,left:t,right:f,bottom:n}){return{x:{min:t,max:f},y:{min:A,max:n}}}function ZX({x:A,y:t}){return{top:t.min,right:A.max,bottom:t.max,left:A.min}}function qX(A,t){if(!t)return A;const f=t({x:A.left,y:A.top}),n=t({x:A.right,y:A.bottom});return{top:f.y,left:f.x,bottom:n.y,right:n.x}}function Av(A){return A===void 0||A===1}function kv({scale:A,scaleX:t,scaleY:f}){return!Av(A)||!Av(t)||!Av(f)}function Ve(A){return kv(A)||Ca(A)||A.z||A.rotate||A.rotateX||A.rotateY||A.skewX||A.skewY}function Ca(A){return bs(A.x)||bs(A.y)}function bs(A){return A&&A!=="0%"}function Bn(A,t,f){const n=A-f,v=t*n;return f+v}function Xs(A,t,f,n,v){return v!==void 0&&(A=Bn(A,v,n)),Bn(A,f,n)+t}function Rv(A,t=0,f=1,n,v){A.min=Xs(A.min,t,f,n,v),A.max=Xs(A.max,t,f,n,v)}function Pa(A,{x:t,y:f}){Rv(A.x,t.translate,t.scale,t.originPoint),Rv(A.y,f.translate,f.scale,f.originPoint)}const zs=.999999999999,Ls=1.0000000000001;function KX(A,t,f,n=!1){const v=f.length;if(!v)return;t.x=t.y=1;let w,r;for(let s=0;s<v;s++){w=f[s],r=w.projectionDelta;const{visualElement:g}=w.options;g&&g.props.style&&g.props.style.display==="contents"||(n&&w.options.layoutScroll&&w.scroll&&w!==w.root&&(ne(A.x,-w.scroll.offset.x),ne(A.y,-w.scroll.offset.y)),r&&(t.x*=r.x.scale,t.y*=r.y.scale,Pa(A,r)),n&&Ve(w.latestValues)&&Jf(A,w.latestValues,w.layout?.layoutBox))}t.x<Ls&&t.x>zs&&(t.x=1),t.y<Ls&&t.y>zs&&(t.y=1)}function ne(A,t){A.min+=t,A.max+=t}function Ms(A,t,f,n,v=.5){const w=cA(A.min,A.max,v);Rv(A,t,f,w,n)}function Hs(A,t){return typeof A=="string"?parseFloat(A)/100*(t.max-t.min):A}function Jf(A,t,f){const n=f??A;Ms(A.x,Hs(t.x,n.x),t.scaleX,t.scale,t.originX),Ms(A.y,Hs(t.y,n.y),t.scaleY,t.scale,t.originY)}function ba(A,t){return Da(qX(A.getBoundingClientRect(),t))}function kX(A,t,f){const n=ba(A,f),{scroll:v}=t;return v&&(ne(n.x,v.offset.x),ne(n.y,v.offset.y)),n}const RX={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},JX=Gt.length;function UX(A,t,f){let n="",v=!0;for(let r=0;r<JX;r++){const s=Gt[r],g=A[s];if(g===void 0)continue;let B=!0;if(typeof g=="number")B=g===(s.startsWith("scale")?1:0);else{const a=parseFloat(g);B=s.startsWith("scale")?a===1:a===0}if(!B||f){const a=qv(g,gn[s]);if(!B){v=!1;const o=RX[s]||s;n+=`${o}(${a}) `}f&&(t[s]=a)}}const w=A.pathRotation;return w&&(v=!1,n+=`rotate(${qv(w,gn.pathRotation)}) `),n=n.trim(),f?n=f(t,v?"":n):v&&(n="none"),n}function Vr(A,t,f){const{style:n,vars:v,transformOrigin:w}=A;let r=!1,s=!1;for(const g in t){const B=t[g];if(ht.has(g)){r=!0;continue}else if(xr(g)){v[g]=B;continue}else{const a=qv(B,gn[g]);g.startsWith("origin")?(s=!0,w[g]=a):n[g]=a}}if(t.transform||(r||f?n.transform=UX(t,A.transform,f):n.transform&&(n.transform="none")),s){const{originX:g="50%",originY:B="50%",originZ:a=0}=w;n.transformOrigin=`${g} ${B} ${a}`}}function Xa(A,{style:t,vars:f},n,v){const w=A.style;let r;for(r in t)w[r]=t[r];v?.applyProjectionStyles(w,n);for(r in f)w.setProperty(r,f[r])}function Ys(A,t){return t.max===t.min?0:A/(t.max-t.min)*100}const ve={correct:(A,t)=>{if(!t.target)return A;if(typeof A=="string")if(U.test(A))A=parseFloat(A);else return A;const f=Ys(A,t.target.x),n=Ys(A,t.target.y);return`${f}% ${n}%`}},za={correct:(A,{treeScale:t,projectionDelta:f})=>{const n=A,v=_A.parse(A);if(v.length>5)return n;const w=_A.createTransformer(A),r=typeof v[0]!="number"?1:0,s=f.x.scale*t.x,g=f.y.scale*t.y;v[0+r]/=s,v[1+r]/=g;const B=cA(s,g,.5);return typeof v[2+r]=="number"&&(v[2+r]/=B),typeof v[3+r]=="number"&&(v[3+r]/=B),w(v)}},wf={borderRadius:{...ve,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ve,borderTopRightRadius:ve,borderBottomLeftRadius:ve,borderBottomRightRadius:ve,boxShadow:za};function La(A){for(const t in A)wf[t]=A[t],xr(t)&&(wf[t].isCSSVariable=!0)}function SX(A,{layout:t,layoutId:f}){return ht.has(A)||A.startsWith("origin")||(t||f!==void 0)&&(!!wf[A]||A==="opacity")}function Ma(A,t,f){const n=A.style,v=t?.style,w={};if(!n)return w;for(const r in n)(GA(n[r])||v&&GA(v[r])||SX(r,A)||f?.getValue(r)?.liveStyle!==void 0)&&(w[r]=n[r]);return w}function $X(A){return window.getComputedStyle(A)}class _X extends la{constructor(){super(...arguments),this.type="html",this.renderInstance=Xa}readValueFromInstance(t,f){if(ht.has(f))return this.projection?.isProjecting?Ov(f):bb(t,f);{const n=$X(t),v=(xr(f)?n.getPropertyValue(f):n[f])||0;return typeof v=="string"?v.trim():v}}measureInstanceViewportBox(t,{transformPagePoint:f}){return ba(t,f)}build(t,f,n){Vr(t,f,n.transformTemplate)}scrapeMotionValuesFromProps(t,f,n){return Ma(t,f,n)}}const Az={offset:"stroke-dashoffset",array:"stroke-dasharray"},ez={offset:"strokeDashoffset",array:"strokeDasharray"};function tz(A,t,f=1,n=0,v=!0){A.pathLength=1;const w=v?Az:ez;A[w.offset]=`${-n}`,A[w.array]=`${t} ${f}`}const fz=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Ha(A,{attrX:t,attrY:f,attrScale:n,pathLength:v,pathSpacing:w=1,pathOffset:r=0,...s},g,B,a){if(Vr(A,s,B),g){A.style.viewBox&&(A.attrs.viewBox=A.style.viewBox);return}A.attrs=A.style,A.style={};const{attrs:o,style:u}=A;o.transform&&(u.transform=o.transform,delete o.transform),(u.transform||o.transformOrigin)&&(u.transformOrigin=o.transformOrigin??"50% 50%",delete o.transformOrigin),u.transform&&(u.transformBox=a?.transformBox??"fill-box",delete o.transformBox);for(const d of fz)o[d]!==void 0&&(u[d]=o[d],delete o[d]);t!==void 0&&(o.x=t),f!==void 0&&(o.y=f),n!==void 0&&(o.scale=n),v!==void 0&&tz(o,v,w,r,!1)}const Tr=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Ya=A=>typeof A=="string"&&A.toLowerCase()==="svg";function nz(A,t,f,n){Xa(A,t,void 0,n);for(const v in t.attrs)A.setAttribute(Tr.has(v)?v:jr(v),t.attrs[v])}function vz(A,t,f){const n=Ma(A,t,f);for(const v in A)if(GA(A[v])||GA(t[v])){const w=Gt.indexOf(v)!==-1?"attr"+v.charAt(0).toUpperCase()+v.substring(1):v;n[w]=A[v]}return n}class rz extends la{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=HA}getBaseTargetFromProps(t,f){return t[f]}readValueFromInstance(t,f){if(ht.has(f)){const n=sa(f);return n&&n.default||0}return f=Tr.has(f)?f:jr(f),t.getAttribute(f)}scrapeMotionValuesFromProps(t,f,n){return vz(t,f,n)}build(t,f,n){Ha(t,f,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,f,n,v){nz(t,f,n,v)}mount(t){this.isSVGTag=Ya(t.tagName),super.mount(t)}}function Jv(A,t){A.min=t.min,A.max=t.max}function UA(A,t){Jv(A.x,t.x),Jv(A.y,t.y)}function ms(A,t){A.translate=t.translate,A.scale=t.scale,A.originPoint=t.originPoint,A.origin=t.origin}const ma=1e-4,wz=1-ma,sz=1+ma,xa=.01,gz=0-xa,Bz=0+xa;function NA(A){return A.max-A.min}function az(A,t,f){return Math.abs(A-t)<=f}function xs(A,t,f,n=.5){A.origin=n,A.originPoint=cA(t.min,t.max,A.origin),A.scale=NA(f)/NA(t),A.translate=cA(f.min,f.max,A.origin)-A.originPoint,(A.scale>=wz&&A.scale<=sz||isNaN(A.scale))&&(A.scale=1),(A.translate>=gz&&A.translate<=Bz||isNaN(A.translate))&&(A.translate=0)}function Ut(A,t,f,n){xs(A.x,t.x,f.x,n?n.originX:void 0),xs(A.y,t.y,f.y,n?n.originY:void 0)}function Gs(A,t,f,n=0){const v=n?cA(f.min,f.max,n):f.min;A.min=v+t.min,A.max=A.min+NA(t)}function oz(A,t,f,n){Gs(A.x,t.x,f.x,n?.x),Gs(A.y,t.y,f.y,n?.y)}function hs(A,t,f,n=0){const v=n?cA(f.min,f.max,n):f.min;A.min=t.min-v,A.max=A.min+NA(t)}function an(A,t,f,n){hs(A.x,t.x,f.x,n?.x),hs(A.y,t.y,f.y,n?.y)}function Ns(A,t,f,n,v){return A-=t,A=Bn(A,1/f,n),v!==void 0&&(A=Bn(A,1/v,n)),A}function uz(A,t=0,f=1,n=.5,v,w=A,r=A){if(we.test(t)&&(t=parseFloat(t),t=cA(r.min,r.max,t/100)-r.min),typeof t!="number")return;let s=cA(w.min,w.max,n);A===w&&(s-=t),A.min=Ns(A.min,t,f,s,v),A.max=Ns(A.max,t,f,s,v)}function Qs(A,t,[f,n,v],w,r){uz(A,t[f],t[n],t[v],t.scale,w,r)}const dz=["x","scaleX","originX"],cz=["y","scaleY","originY"];function Fs(A,t,f,n){Qs(A.x,t,dz,f?f.x:void 0,n?n.x:void 0),Qs(A.y,t,cz,f?f.y:void 0,n?n.y:void 0)}function Os(A){return A.translate===0&&A.scale===1}function Ga(A){return Os(A.x)&&Os(A.y)}function Es(A,t){return A.min===t.min&&A.max===t.max}function iz(A,t){return Es(A.x,t.x)&&Es(A.y,t.y)}function ys(A,t){return Math.round(A.min)===Math.round(t.min)&&Math.round(A.max)===Math.round(t.max)}function ha(A,t){return ys(A.x,t.x)&&ys(A.y,t.y)}function ps(A){return NA(A.x)/NA(A.y)}function js(A,t){return A.translate===t.translate&&A.scale===t.scale&&A.originPoint===t.originPoint}function WA(A){return[A("x"),A("y")]}function lz(A,t,f){let n="";const v=A.x.translate/t.x,w=A.y.translate/t.y,r=f?.z||0;if((v||w||r)&&(n=`translate3d(${v}px, ${w}px, ${r}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),f){const{transformPerspective:B,rotate:a,pathRotation:o,rotateX:u,rotateY:d,skewX:l,skewY:C}=f;B&&(n=`perspective(${B}px) ${n}`),a&&(n+=`rotate(${a}deg) `),o&&(n+=`rotate(${o}deg) `),u&&(n+=`rotateX(${u}deg) `),d&&(n+=`rotateY(${d}deg) `),l&&(n+=`skewX(${l}deg) `),C&&(n+=`skewY(${C}deg) `)}const s=A.x.scale*t.x,g=A.y.scale*t.y;return(s!==1||g!==1)&&(n+=`scale(${s}, ${g})`),n||"none"}const Na=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],Dz=Na.length,Is=A=>typeof A=="string"?parseFloat(A):A,Vs=A=>typeof A=="number"||U.test(A);function Cz(A,t,f,n,v,w){v?(A.opacity=cA(0,f.opacity??1,Pz(n)),A.opacityExit=cA(t.opacity??1,0,bz(n))):w&&(A.opacity=cA(t.opacity??1,f.opacity??1,n));for(let r=0;r<Dz;r++){const s=Na[r];let g=Ts(t,s),B=Ts(f,s);if(g===void 0&&B===void 0)continue;g||(g=0),B||(B=0),g===0||B===0||Vs(g)===Vs(B)?(A[s]=Math.max(cA(Is(g),Is(B),n),0),(we.test(B)||we.test(g))&&(A[s]+="%")):A[s]=B}(t.rotate||f.rotate)&&(A.rotate=cA(t.rotate||0,f.rotate||0,n))}function Ts(A,t){return A[t]!==void 0?A[t]:A.borderRadius}const Pz=Qa(0,.5,mB),bz=Qa(.5,.95,KA);function Qa(A,t,f){return n=>n<A?0:n>t?1:f(vf(A,t,n))}function Xz(A,t,f){const n=GA(A)?A:Mt(A);return n.start(pr("",n,t,f)),n.animation}function zz(A,t,f,n={passive:!0}){return A.addEventListener(t,f,n),()=>A.removeEventListener(t,f)}const Lz=(A,t)=>A.depth-t.depth;class Mz{constructor(){this.children=[],this.isDirty=!1}add(t){Mr(this.children,t),this.isDirty=!0}remove(t){nn(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Lz),this.isDirty=!1,this.children.forEach(t)}}function Hz(A,t){const f=hA.now(),n=({timestamp:v})=>{const w=v-f;w>=t&&(he(n),A(w-t))};return aA.setup(n,!0),()=>he(n)}function ev(A){return GA(A)?A.get():A}class Yz{constructor(){this.members=[]}add(t){Mr(this.members,t);for(let f=this.members.length-1;f>=0;f--){const n=this.members[f];if(n===t||n===this.lead||n===this.prevLead)continue;const v=n.instance;(!v||v.isConnected===!1)&&!n.snapshot&&(nn(this.members,n),n.unmount())}t.scheduleRender()}remove(t){if(nn(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const f=this.members[this.members.length-1];f&&this.promote(f)}}relegate(t){for(let f=this.members.indexOf(t)-1;f>=0;f--){const n=this.members[f];if(n.isPresent!==!1&&n.instance?.isConnected!==!1)return this.promote(n),!0}return!1}promote(t,f){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.updateSnapshot(),t.scheduleRender();const{layoutDependency:v}=n.options,{layoutDependency:w}=t.options;(v===void 0||v!==w)&&(t.resumeFrom=n,f&&(n.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Uf={hasAnimatedSinceResize:!0,hasEverUpdated:!1},tv=["","X","Y","Z"],mz=1e3;let xz=0;function fv(A,t,f,n){const{latestValues:v}=t;v[A]&&(f[A]=v[A],t.setStaticValue(A,0),n&&(n[A]=0))}function Fa(A){if(A.hasCheckedOptimisedAppear=!0,A.root===A)return;const{visualElement:t}=A.options;if(!t)return;const f=na(t);if(window.MotionHasOptimisedAnimation(f,"transform")){const{layout:v,layoutId:w}=A.options;window.MotionCancelOptimisedAnimation(f,"transform",aA,!(v||w))}const{parent:n}=A;n&&!n.hasCheckedOptimisedAppear&&Fa(n)}function Oa({attachResizeListener:A,defaultParent:t,measureScroll:f,checkIsScrollRoot:n,resetTransform:v}){return class{constructor(r={},s=t?.()){this.id=xz++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Nz),this.nodes.forEach(pz),this.nodes.forEach(jz),this.nodes.forEach(Qz)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let g=0;g<this.path.length;g++)this.path[g].shouldResetTransform=!0;this.root===this&&(this.nodes=new Mz)}addEventListener(r,s){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Hr),this.eventHandlers.get(r).add(s)}notifyListeners(r,...s){const g=this.eventHandlers.get(r);g&&g.notify(...s)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=da(r)&&!QX(r),this.instance=r;const{layoutId:s,layout:g,visualElement:B}=this.options;if(B&&!B.current&&B.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(g||s)&&(this.isLayoutDirty=!0),A){let a,o=0;const u=()=>this.root.updateBlockedByResize=!1;aA.read(()=>{o=window.innerWidth}),A(r,()=>{const d=window.innerWidth;d!==o&&(o=d,this.root.updateBlockedByResize=!0,a&&a(),a=Hz(u,250),Uf.hasAnimatedSinceResize&&(Uf.hasAnimatedSinceResize=!1,this.nodes.forEach(qs)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&B&&(s||g)&&this.addEventListener("didUpdate",({delta:a,hasLayoutChanged:o,hasRelativeLayoutChanged:u,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const l=this.options.transition||B.getDefaultTransition()||Zz,{onLayoutAnimationStart:C,onLayoutAnimationComplete:c}=B.getProps(),D=!this.targetLayout||!ha(this.targetLayout,d),i=!o&&u;if(this.options.layoutRoot||this.resumeFrom||i||o&&(D||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const b={...yr(l,"layout"),onPlay:C,onComplete:c};(B.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(a,i,b.path)}else o||qs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),he(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Iz),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Fa(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let a=0;a<this.path.length;a++){const o=this.path[a];o.shouldResetTransform=!0,(typeof o.latestValues.x=="string"||typeof o.latestValues.y=="string")&&(o.isLayoutDirty=!0),o.updateScroll("snapshot"),o.options.layoutRoot&&o.willUpdate(!1)}const{layoutId:s,layout:g}=this.options;if(s===void 0&&!g)return;const B=this.getTransformTemplate();this.prevTransformTemplateValue=B?B(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const g=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),g&&this.nodes.forEach(Oz),this.nodes.forEach(Ws);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Zs);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Ez),this.nodes.forEach(yz),this.nodes.forEach(Gz),this.nodes.forEach(hz)):this.nodes.forEach(Zs),this.clearAllSnapshots();const s=hA.now();YA.delta=Be(0,1e3/60,s-YA.timestamp),YA.timestamp=s,YA.isProcessing=!0,kn.update.process(YA),kn.preRender.process(YA),kn.render.process(YA),YA.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,aa.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Fz),this.sharedNodes.forEach(Vz)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,aA.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){aA.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!NA(this.snapshot.measuredBox.x)&&!NA(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let g=0;g<this.path.length;g++)this.path[g].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=HA()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(s=!1),s&&this.instance){const g=n(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:g,offset:f(this.instance),wasRoot:this.scroll?this.scroll.isRoot:g}}}resetTransform(){if(!v)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!Ga(this.projectionDelta),g=this.getTransformTemplate(),B=g?g(this.latestValues,""):void 0,a=B!==this.prevTransformTemplateValue;r&&this.instance&&(s||Ve(this.latestValues)||a)&&(v(this.instance,B),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const s=this.measurePageBox();let g=this.removeElementScroll(s);return r&&(g=this.removeTransform(g)),qz(g),{animationId:this.root.animationId,measuredBox:s,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return HA();const s=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Kz))){const{scroll:B}=this.root;B&&(ne(s.x,B.offset.x),ne(s.y,B.offset.y))}return s}removeElementScroll(r){const s=HA();if(UA(s,r),this.scroll?.wasRoot)return s;for(let g=0;g<this.path.length;g++){const B=this.path[g],{scroll:a,options:o}=B;B!==this.root&&a&&o.layoutScroll&&(a.wasRoot&&UA(s,r),ne(s.x,a.offset.x),ne(s.y,a.offset.y))}return s}applyTransform(r,s=!1,g){const B=g||HA();UA(B,r);for(let a=0;a<this.path.length;a++){const o=this.path[a];!s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(ne(B.x,-o.scroll.offset.x),ne(B.y,-o.scroll.offset.y)),Ve(o.latestValues)&&Jf(B,o.latestValues,o.layout?.layoutBox)}return Ve(this.latestValues)&&Jf(B,this.latestValues,this.layout?.layoutBox),B}removeTransform(r){const s=HA();UA(s,r);for(let g=0;g<this.path.length;g++){const B=this.path[g];if(!Ve(B.latestValues))continue;let a;B.instance&&(kv(B.latestValues)&&B.updateSnapshot(),a=HA(),UA(a,B.measurePageBox())),Fs(s,B.latestValues,B.snapshot?.layoutBox,a)}return Ve(this.latestValues)&&Fs(s,this.latestValues),s}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==YA.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){const s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);const g=!!this.resumingFrom||this!==s;if(!(r||g&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:a,layoutId:o}=this.options;if(!this.layout||!(a||o))return;this.resolvedRelativeTargetAt=YA.timestamp;const u=this.getClosestProjectingParent();u&&this.linkedParentVersion!==u.layoutVersion&&!u.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&u&&u.layout?this.createRelativeTarget(u,this.layout.layoutBox,u.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=HA(),this.targetWithTransforms=HA()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),oz(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):UA(this.target,this.layout.layoutBox),Pa(this.target,this.targetDelta)):UA(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&u&&!!u.resumingFrom==!!this.resumingFrom&&!u.options.layoutScroll&&u.target&&this.animationProgress!==1?this.createRelativeTarget(u,this.target,u.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||kv(this.parent.latestValues)||Ca(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(r,s,g){this.relativeParent=r,this.linkedParentVersion=r.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=HA(),this.relativeTargetOrigin=HA(),an(this.relativeTargetOrigin,s,g,this.options.layoutAnchor||void 0),UA(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const r=this.getLead(),s=!!this.resumingFrom||this!==r;let g=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(g=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===YA.timestamp&&(g=!1),g)return;const{layout:B,layoutId:a}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(B||a))return;UA(this.layoutCorrected,this.layout.layoutBox);const o=this.treeScale.x,u=this.treeScale.y;KX(this.layoutCorrected,this.treeScale,this.path,s),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=HA());const{target:d}=r;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ms(this.prevProjectionDelta.x,this.projectionDelta.x),ms(this.prevProjectionDelta.y,this.projectionDelta.y)),Ut(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==o||this.treeScale.y!==u||!js(this.projectionDelta.x,this.prevProjectionDelta.x)||!js(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.visualElement?.scheduleRender(),r){const s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ct(),this.projectionDelta=ct(),this.projectionDeltaWithTransform=ct()}setAnimationOrigin(r,s=!1,g){const B=this.snapshot,a=B?B.latestValues:{},o={...this.latestValues},u=ct();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const d=HA(),l=B?B.source:void 0,C=this.layout?this.layout.source:void 0,c=l!==C,D=this.getStack(),i=!D||D.members.length<=1,b=!!(c&&!i&&this.options.crossfade===!0&&!this.path.some(Wz));this.animationProgress=0;let X;const P=g?.interpolateProjection(r);this.mixTargetDelta=L=>{const x=L/1e3,z=P?.(x);z?(u.x.translate=z.x,u.x.scale=cA(r.x.scale,1,x),u.x.origin=r.x.origin,u.x.originPoint=r.x.originPoint,u.y.translate=z.y,u.y.scale=cA(r.y.scale,1,x),u.y.origin=r.y.origin,u.y.originPoint=r.y.originPoint):(Ks(u.x,r.x,x),Ks(u.y,r.y,x)),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(an(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Tz(this.relativeTarget,this.relativeTargetOrigin,d,x),X&&iz(this.relativeTarget,X)&&(this.isProjectionDirty=!1),X||(X=HA()),UA(X,this.relativeTarget)),c&&(this.animationValues=o,Cz(o,a,this.latestValues,x,b,i)),z&&z.rotate!==void 0&&(this.animationValues||(this.animationValues=o),this.animationValues.pathRotation=z.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=x},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(he(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=aA.update(()=>{Uf.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Mt(0)),this.motionValue.jump(0,!1),this.currentAnimation=Xz(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:s=>{this.mixTargetDelta(s),r.onUpdate&&r.onUpdate(s)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(mz),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:s,target:g,layout:B,latestValues:a}=r;if(!(!s||!g||!B)){if(this!==r&&this.layout&&B&&Ea(this.options.animationType,this.layout.layoutBox,B.layoutBox)){g=this.target||HA();const o=NA(this.layout.layoutBox.x);g.x.min=r.target.x.min,g.x.max=g.x.min+o;const u=NA(this.layout.layoutBox.y);g.y.min=r.target.y.min,g.y.max=g.y.min+u}UA(s,g),Jf(s,a),Ut(this.projectionDeltaWithTransform,this.layoutCorrected,s,a)}}registerSharedNode(r,s){this.sharedNodes.has(r)||this.sharedNodes.set(r,new Yz),this.sharedNodes.get(r).add(s);const B=s.options.initialPromotionConfig;s.promote({transition:B?B.transition:void 0,preserveFollowOpacity:B&&B.shouldPreserveFollowOpacity?B.shouldPreserveFollowOpacity(s):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){const{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:r}=this.options;return r?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:s,preserveFollowOpacity:g}={}){const B=this.getStack();B&&B.promote(this,g),r&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let s=!1;const{latestValues:g}=r;if((g.z||g.rotate||g.rotateX||g.rotateY||g.rotateZ||g.skewX||g.skewY)&&(s=!0),!s)return;const B={};g.z&&fv("z",r,B,this.animationValues);for(let a=0;a<tv.length;a++)fv(`rotate${tv[a]}`,r,B,this.animationValues),fv(`skew${tv[a]}`,r,B,this.animationValues);r.render();for(const a in B)r.setStaticValue(a,B[a]),this.animationValues&&(this.animationValues[a]=B[a]);r.scheduleRender()}applyProjectionStyles(r,s){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const g=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=ev(s?.pointerEvents)||"",r.transform=g?g(this.latestValues,""):"none";return}const B=this.getLead();if(!this.projectionDelta||!this.layout||!B.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=ev(s?.pointerEvents)||""),this.hasProjected&&!Ve(this.latestValues)&&(r.transform=g?g({},""):"none",this.hasProjected=!1);return}r.visibility="";const a=B.animationValues||B.latestValues;this.applyTransformsToTarget();let o=lz(this.projectionDeltaWithTransform,this.treeScale,a);g&&(o=g(a,o)),r.transform=o;const{x:u,y:d}=this.projectionDelta;r.transformOrigin=`${u.origin*100}% ${d.origin*100}% 0`,B.animationValues?r.opacity=B===this?a.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=B===this?a.opacity!==void 0?a.opacity:"":a.opacityExit!==void 0?a.opacityExit:0;for(const l in wf){if(a[l]===void 0)continue;const{correct:C,applyTo:c,isCSSVariable:D}=wf[l],i=o==="none"?a[l]:C(a[l],B);if(c){const b=c.length;for(let X=0;X<b;X++)r[c[X]]=i}else D?this.options.visualElement.renderState.vars[l]=i:r[l]=i}this.options.layoutId&&(r.pointerEvents=B===this?ev(s?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(Ws),this.root.sharedNodes.clear()}}}function Gz(A){A.updateLayout()}function hz(A){const t=A.resumeFrom?.snapshot||A.snapshot;if(A.isLead()&&A.layout&&t&&A.hasListeners("didUpdate")){const{layoutBox:f,measuredBox:n}=A.layout,{animationType:v}=A.options,w=t.source!==A.layout.source;if(v==="size")WA(a=>{const o=w?t.measuredBox[a]:t.layoutBox[a],u=NA(o);o.min=f[a].min,o.max=o.min+u});else if(v==="x"||v==="y"){const a=v==="x"?"y":"x";Jv(w?t.measuredBox[a]:t.layoutBox[a],f[a])}else Ea(v,t.layoutBox,f)&&WA(a=>{const o=w?t.measuredBox[a]:t.layoutBox[a],u=NA(f[a]);o.max=o.min+u,A.relativeTarget&&!A.currentAnimation&&(A.isProjectionDirty=!0,A.relativeTarget[a].max=A.relativeTarget[a].min+u)});const r=ct();Ut(r,f,t.layoutBox);const s=ct();w?Ut(s,A.applyTransform(n,!0),t.measuredBox):Ut(s,f,t.layoutBox);const g=!Ga(r);let B=!1;if(!A.resumeFrom){const a=A.getClosestProjectingParent();if(a&&!a.resumeFrom){const{snapshot:o,layout:u}=a;if(o&&u){const d=A.options.layoutAnchor||void 0,l=HA();an(l,t.layoutBox,o.layoutBox,d);const C=HA();an(C,f,u.layoutBox,d),ha(l,C)||(B=!0),a.options.layoutRoot&&(A.relativeTarget=C,A.relativeTargetOrigin=l,A.relativeParent=a)}}}A.notifyListeners("didUpdate",{layout:f,snapshot:t,delta:s,layoutDelta:r,hasLayoutChanged:g,hasRelativeLayoutChanged:B})}else if(A.isLead()){const{onExitComplete:f}=A.options;f&&f()}A.options.transition=void 0}function Nz(A){A.parent&&(A.isProjecting()||(A.isProjectionDirty=A.parent.isProjectionDirty),A.isSharedProjectionDirty||(A.isSharedProjectionDirty=!!(A.isProjectionDirty||A.parent.isProjectionDirty||A.parent.isSharedProjectionDirty)),A.isTransformDirty||(A.isTransformDirty=A.parent.isTransformDirty))}function Qz(A){A.isProjectionDirty=A.isSharedProjectionDirty=A.isTransformDirty=!1}function Fz(A){A.clearSnapshot()}function Ws(A){A.clearMeasurements()}function Oz(A){A.isLayoutDirty=!0,A.updateLayout()}function Zs(A){A.isLayoutDirty=!1}function Ez(A){A.isAnimationBlocked&&A.layout&&!A.isLayoutDirty&&(A.snapshot=A.layout,A.isLayoutDirty=!0)}function yz(A){const{visualElement:t}=A.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),A.resetTransform()}function qs(A){A.finishAnimation(),A.targetDelta=A.relativeTarget=A.target=void 0,A.isProjectionDirty=!0}function pz(A){A.resolveTargetDelta()}function jz(A){A.calcProjection()}function Iz(A){A.resetSkewAndRotation()}function Vz(A){A.removeLeadSnapshot()}function Ks(A,t,f){A.translate=cA(t.translate,0,f),A.scale=cA(t.scale,1,f),A.origin=t.origin,A.originPoint=t.originPoint}function ks(A,t,f,n){A.min=cA(t.min,f.min,n),A.max=cA(t.max,f.max,n)}function Tz(A,t,f,n){ks(A.x,t.x,f.x,n),ks(A.y,t.y,f.y,n)}function Wz(A){return A.animationValues&&A.animationValues.opacityExit!==void 0}const Zz={duration:.45,ease:[.4,0,.1,1]},Rs=A=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(A),Js=Rs("applewebkit/")&&!Rs("chrome/")?Math.round:KA;function Us(A){A.min=Js(A.min),A.max=Js(A.max)}function qz(A){Us(A.x),Us(A.y)}function Ea(A,t,f){return A==="position"||A==="preserve-aspect"&&!az(ps(t),ps(f),.2)}function Kz(A){return A!==A.root&&A.scroll?.wasRoot}const kz=Oa({attachResizeListener:(A,t)=>zz(A,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),nv={current:void 0},Rz=Oa({measureScroll:A=>({x:A.scrollLeft,y:A.scrollTop}),defaultParent:()=>{if(!nv.current){const A=new kz({});A.mount(window),A.setOptions({layoutScroll:!0}),nv.current=A}return nv.current},resetTransform:(A,t)=>{A.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:A=>window.getComputedStyle(A).position==="fixed"}),Jz={some:0,all:1};function Uz(A,t,{root:f,margin:n,amount:v="some"}={}){const w=Ba(A),r=new WeakMap,s=B=>{B.forEach(a=>{const o=r.get(a.target);if(a.isIntersecting!==!!o)if(a.isIntersecting){const u=t(a.target,a);typeof u=="function"?r.set(a.target,u):g.unobserve(a.target)}else typeof o=="function"&&(o(a),r.delete(a.target))})},g=new IntersectionObserver(s,{root:f,rootMargin:n,threshold:typeof v=="number"?v:Jz[v]});return w.forEach(B=>g.observe(B)),()=>g.disconnect()}const Ss=(A,t)=>Math.abs(A-t);function Sz(A,t){const f=Ss(A.x,t.x),n=Ss(A.y,t.y);return Math.sqrt(f**2+n**2)}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const $s=A=>typeof A<"u";function ya({current:A}){return A?A.ownerDocument.defaultView:null}function Uv(A){if(A)return A.nodeType===3||A.nodeType===8?Uv(A.nextSibling):A}const[$z,_z]=Pf("Motion"),[AL]=Pf("LayoutGroup"),eL={reducedMotion:"never",transition:void 0,nonce:void 0},[tL]=Pf("MotionConfig");function fL(){return tL(e.computed(()=>eL))}var pa=function(){},Qn=function(){};process.env.NODE_ENV!=="production"&&(pa=function(A,t){!A&&typeof console<"u"&&console.warn(t)},Qn=function(A,t){if(!A)throw new Error(t)});const nL={motionAttribute:"data-ap"},Sv=[];function ja(A){for(const t of A)t&&!Sv.includes(t)&&Sv.push(t)}function Ia(A,t,f){if(Array.isArray(A))return A.reduce((n,v)=>{const w=Ia(v,t,f);return w?{...n,...w}:n},{});if(typeof A=="object")return A;if(A&&t){const n=t[A];return typeof n=="function"?n(f):n}}function vL(A,t,f){const n=Ia(A,t,f);if(!n)return;const{transition:v,transitionEnd:w,...r}=n;return{...r,...w}}function rL(A,t){const f=(A.initial===void 0&&A.variants?t?.initial:A.initial)===!1?["initial","animate"]:["initial"],n=A.custom??A.presenceContext?.custom;return f.reduce((v,w)=>({...v,...vL(A[w]||t?.[w],A.variants,n)}),{})}function Va(A,t){const f=t?.length;if(f!==A.length)return!1;for(let n=0;n<f;n++)if(t[n]!==A[n])return!1;return!0}var wL=new Set(["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]);function Ta(A){return wL.has(A)}const _s=new WeakMap;var sL=class{constructor(A,t){this.element=null,this.isExiting=!1,this.presenceContainer=null,this.children=new Set,this.features=new Map,this._context=null,this.options=A,this.parent=t,t?.children?.add(this),this.latestValues=rL(A,this.context),this.type=Ta(this.options.as)?"svg":"html"}get context(){return this._context||(this._context=new Proxy({},{get:(A,t)=>{const f=this.options[t];return Nn(f)||t==="initial"&&f===!1?f:this.parent?.context[t]}})),this._context}updateFeatures(){if(this.visualElement)for(const A of Sv){this.features.has(A.key)||this.features.set(A.key,new A(this));const t=this.features.get(A.key);this.isMounted()&&(t.isMount?t.update():(t.mount(),t.isMount=!0))}}updateOptions(A){this.options=A,this.visualElement?.update({...this.options,whileTap:this.options.whilePress},this.options.presenceContext??null)}mount(A){Qn(!!A,"Animation state must be mounted with valid Element"),_s.set(A,this),this.element=A;const t=this.options.presenceContext?.presenceId;t!==void 0&&A.setAttribute(nL.motionAttribute,t),this.visualElement?.mount(A),this.updateFeatures()}beforeUnmount(){this.getSnapshot(this.options,!1)}unmount(){this.parent?.children?.delete(this),_s.delete(this.element),this.features.forEach(A=>A.unmount?.()),this.visualElement?.unmount()}beforeUpdate(){this.getSnapshot(this.options,void 0)}update(){this.updateFeatures(),this.didUpdate()}tryExitComplete(){this.isExiting||this.options?.layoutId&&this.visualElement.projection?.currentAnimation?.state==="running"||this.options.presenceContext?.onMotionExitComplete?.(this.presenceContainer,this)}setActive(A,t){A==="exit"&&t&&(this.isExiting=!0),this.visualElement?.animationState?.setActive(A,t).then(()=>{A==="exit"&&t&&(this.isExiting=!1,this.options?.layoutId?aA.postRender(()=>this.tryExitComplete()):this.tryExitComplete())})}isMounted(){return!!this.element}initVisualElement(A){this.visualElement||(this.visualElement=A(this.options.as,{presenceContext:this.options.presenceContext??null,parent:this.parent?.visualElement,props:{...this.options,whileTap:this.options.whilePress},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{...this.latestValues}},reducedMotionConfig:this.options.motionConfig?.reducedMotion}),this.visualElement.parent?.addChild(this.visualElement),this.isMounted()&&this.visualElement.mount(this.element))}getSnapshot(A,t){}didUpdate(){}},Ce=class{constructor(A){this.state=A}mount(){}unmount(){}update(){}};const Wa=["initial","animate","exit","whileHover","whileDrag","whileFocus","whilePress"];var gL=Wa.length;function Za(A){if(!A)return;if(!A.isControllingVariants){const f=A.parent?Za(A.parent)||{}:{};return A.props.initial!==void 0&&(f.initial=A.props.initial),f}const t={};for(let f=0;f<gL;f++){const n=Wa[f],v=A.props[n];(Nn(v)||v===!1)&&(t[n]=v)}return t}var qa=["animate","whileInView","whileFocus","whileHover","whilePress","whileDrag","exit"],BL=[...qa].reverse(),aL=qa.length;function je(A=!1){return{isActive:A,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ag(){return{animate:je(!0),whileInView:je(),whileHover:je(),whilePress:je(),whileDrag:je(),whileFocus:je(),exit:je()}}function oL(A,t){return typeof t=="string"?t!==A:Array.isArray(t)?!Va(t,A):!1}function eg(A){return Array.isArray(A)}function uL(A){return t=>Promise.all(t.map(({animation:f,options:n})=>aX(A,f,n)))}function dL(A){let t=uL(A),f=Ag(),n=!0;const v=g=>(B,a)=>{const o=Ct(A,a,g==="exit"?A.presenceContext?.custom:void 0);if(o){const{transition:u,transitionEnd:d,...l}=o;B={...B,...l,...d}}return B};function w(g){t=g(A)}function r(g){const{props:B}=A,a=Za(A.parent)||{},o=[],u=new Set;let d={},l=1/0;for(let c=0;c<aL;c++){const D=BL[c],i=f[D],b=B[D]!==void 0?B[D]:a[D],X=Nn(b),P=D===g?i.isActive:null;P===!1&&(l=c);let L=b===a[D]&&b!==B[D]&&X;if(L&&n&&A.manuallyAnimateOnMount&&(L=!1),i.protectedKeys={...d},!i.isActive&&P===null||!b&&!i.prevProp||Ir(b)||typeof b=="boolean")continue;const x=oL(i.prevProp,b);let z=x||D===g&&i.isActive&&!L&&X||c>l&&X,H=!1;const N=Array.isArray(b)?b:[b];let Q=N.reduce(v(D),{});P===!1&&(Q={});const{prevResolvedValues:m={}}=i,G={...m,...Q},M=h=>{z=!0,u.has(h)&&(H=!0,u.delete(h)),i.needsAnimating[h]=!0;const p=A.getValue(h);p&&(p.liveStyle=!1)};for(const h in G){const p=Q[h],F=m[h];if(Object.hasOwnProperty.call(d,h))continue;let S=!1;eg(p)&&eg(F)?S=!Va(p,F):S=p!==F,S?p!=null?M(h):u.add(h):p!==void 0&&u.has(h)?M(h):i.protectedKeys[h]=!0}i.prevProp=b,i.prevResolvedValues=Q,i.isActive&&(d={...d,...Q}),n&&A.blockInitialAnimation&&(z=!1);const Y=L&&x;z&&(!Y||H)&&o.push(...N.map(h=>{const p={type:D};if(typeof h=="string"&&n&&!Y&&A.manuallyAnimateOnMount&&A.parent){const{parent:F}=A,S=Ct(F,h);if(F.enteringChildren&&S){const{delayChildren:nA}=S.transition||{};p.delay=_B(F.enteringChildren,A,nA)}}return{animation:h,options:p}}))}if(u.size){const c={};if(typeof B.initial!="boolean"){const D=Ct(A,Array.isArray(B.initial)?B.initial[0]:B.initial);D&&D.transition&&(c.transition=D.transition)}u.forEach(D=>{const i=A.getBaseTarget(D),b=A.getValue(D);b&&(b.liveStyle=!0),c[D]=i??null}),o.push({animation:c})}let C=!!o.length;return n&&(B.initial===!1||B.initial===B.animate)&&!A.manuallyAnimateOnMount&&(C=!1),n=!1,C?t(o):Promise.resolve()}function s(g,B){if(f[g].isActive===B)return Promise.resolve();A.variantChildren?.forEach(o=>{o.animationState?.setActive(g,B)}),f[g].isActive=B;const a=r(g);for(const o in f)f[o].protectedKeys={};return a}return{animateChanges:r,setActive:s,setAnimateFunction:w,getState:()=>f,reset:()=>{f=Ag(),n=!0}}}function Ka(A){return A.style.display==="none"||A.offsetParent===null&&window.getComputedStyle(A).position!=="fixed"}var cL=class extends Ce{static#A=this.key="animation";constructor(A){super(A);const t=A.visualElement;t.animationState||=dL(t)}updateAnimationControlsSubscription(){const{animate:A}=this.state.options;Ir(A)&&(this.unmountControls=A.subscribe(this.state.visualElement))}mount(){Ka(this.state.element)?this.state.setActive("exit",!0):this.state.visualElement.animationState?.animateChanges(),this.updateAnimationControlsSubscription()}update(){this.state.visualElement.animationState?.animateChanges();const{animate:A}=this.state.visualElement.getProps(),{animate:t}=this.state.visualElement.prevProps||{};A!==t&&this.updateAnimationControlsSubscription()}unmount(){this.state.visualElement.animationState.reset(),this.unmountControls?.()}};function iL(A,t){return Ta(A)?new rz(t):new _X(t)}function tg(A){return{point:{x:A.pageX,y:A.pageY}}}var lL=class extends Ce{static#A=this.key="press";constructor(A){super(A)}isActive(){const{whilePress:A,onPress:t,onPressCancel:f,onPressStart:n}=this.state.options;return!!(A||t||f||n)}register(){const A=this.state.element;!A||!this.isActive()||(this.removePress?.(),this.removePress=NX(A,(t,f)=>{const n=this.state.options;return this.state.setActive("whilePress",!0),n.onPressStart&&aA.postRender(()=>n.onPressStart(f,tg(f))),(v,{success:w})=>{this.state.setActive("whilePress",!1);const r=w?"onPress":"onPressCancel",s=this.state.options[r];s&&aA.postRender(()=>s(v,tg(v)))}},{useGlobalTarget:this.state.options.globalPressTarget}))}mount(){this.register()}update(){const A=this.state.visualElement.prevProps;!(A?.whilePress||A?.whileTap||A?.onPress||A?.onPressCancel||A?.onPressStart)&&this.isActive()&&this.register()}unmount(){this.removePress?.(),this.removePress=void 0}};function ka(A){return A.pointerType==="mouse"?typeof A.button!="number"||A.button<=0:A.isPrimary!==!1}function sf(A,t="page"){return{point:{x:A[`${t}X`],y:A[`${t}Y`]}}}function DL(A){return t=>ka(t)&&A(t,sf(t))}var CL=class extends Ce{static#A=this.key="hover";constructor(A){super(A)}isActive(){const{whileHover:A,onHoverStart:t,onHoverEnd:f}=this.state.options;return!!(A||t||f)}register(){const A=this.state.element;!A||!this.isActive()||(this.removeHover?.(),this.removeHover=YX(A,(t,f)=>{const n=this.state.options;return this.state.setActive("whileHover",!0),n.onHoverStart&&aA.postRender(()=>n.onHoverStart(f,sf(f))),v=>{this.state.setActive("whileHover",!1);const w=this.state.options.onHoverEnd;w&&aA.postRender(()=>w(v,sf(v)))}}))}mount(){this.register()}update(){const A=this.state.visualElement.prevProps;!(A?.whileHover||A?.onHoverStart||A?.onHoverEnd)&&this.isActive()&&this.register()}unmount(){this.removeHover?.(),this.removeHover=void 0}},PL=class extends Ce{static#A=this.key="inView";constructor(A){super(A)}isActive(){const{whileInView:A,onViewportEnter:t,onViewportLeave:f}=this.state.options;return!!(A||t||f)}startObserver(){const A=this.state.element;if(!A||!this.isActive())return;this.removeObserver?.();const{once:t,...f}=this.state.options.inViewOptions||{};this.removeObserver=Uz(A,(n,v)=>{const w=this.state.options;if(this.state.setActive("whileInView",!0),w.onViewportEnter&&aA.postRender(()=>w.onViewportEnter(v)),!t)return()=>{this.state.setActive("whileInView",!1);const r=this.state.options.onViewportLeave;r&&aA.postRender(()=>r(v))}},f)}mount(){this.startObserver()}update(){const{props:A,prevProps:t}=this.state.visualElement;["amount","margin","root"].some(f=>A.inViewOptions?.[f]!==t?.inViewOptions?.[f])&&this.startObserver()}unmount(){this.removeObserver?.(),this.removeObserver=void 0}};function on(A,t,f,n={passive:!0}){return A.addEventListener(t,f,n),()=>A.removeEventListener(t,f)}var bL=class extends Ce{static#A=this.key="focus";constructor(A){super(A),this.isFocused=!1}onFocus(){let A=!1;try{A=this.state.element.matches(":focus-visible")}catch{A=!0}A&&(this.state.setActive("whileFocus",!0),this.isFocused=!0)}onBlur(){this.isFocused&&(this.state.setActive("whileFocus",!1),this.isFocused=!1)}mount(){const A=this.state.element;this.removeFocus=Xf(on(A,"focus",()=>this.onFocus()),on(A,"blur",()=>this.onBlur()))}unmount(){this.removeFocus?.(),this.removeFocus=void 0}};function Ra(A){if(A)return A.options.allowProjection!==!1?A.projection:Ra(A.parent)}const Ja={borderRadius:{...ve,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ve,borderTopRightRadius:ve,borderBottomLeftRadius:ve,borderBottomRightRadius:ve,boxShadow:za};function kt(A){return typeof A=="object"&&A!==null&&"nodeType"in A}const XL=typeof window>"u";var zL=class extends Ce{static#A=this.key="projection";constructor(A){super(A),La(Ja),XL||this.initProjection()}initProjection(){const A=this.state.options;this.state.visualElement.projection=new Rz(this.state.visualElement.latestValues,A["data-framer-portal-id"]?void 0:Ra(this.state.visualElement.parent)),this.projection=this.state.visualElement.projection,this.projection.isPresent=!0,this.setOptions()}setOptions(){const A=this.state.options,{layoutId:t,layout:f,drag:n=!1,dragConstraints:v=!1}=A;this.projection?.setOptions({layout:f,layoutId:t,alwaysMeasureLayout:!!t||!!n||v&&kt(v),visualElement:this.state.visualElement,animationType:typeof A.layout=="string"?A.layout:"both",layoutRoot:A.layoutRoot,layoutScroll:A.layoutScroll,crossfade:A.crossfade,onExitComplete:()=>{!this.projection?.isPresent&&this.state.options.layoutId&&!this.state.isExiting&&queueMicrotask(()=>{this.state.options.presenceContext?.onMotionExitComplete?.(this.state.presenceContainer,this.state)})}})}update(){this.setOptions()}mount(){this.projection?.mount(this.state.element)}};function St(A,t,f,n){return on(A,t,DL(f),n)}var fg=new Set(["auto","scroll"]),Ua=class{constructor(A,t,{transformPagePoint:f,contextWindow:n,dragSnapToOrigin:v=!1,element:w}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.onElementScroll=a=>{this.handleScroll(a.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const a=rv(this.lastMoveEventInfo,this.history),o=this.startEvent!==null,u=Sz(a.offset,{x:0,y:0})>=3;if(!o&&!u)return;const{point:d}=a,{timestamp:l}=YA;this.history.push({...d,timestamp:l});const{onStart:C,onMove:c}=this.handlers;o||(C&&C(this.lastMoveEvent,a),this.startEvent=this.lastMoveEvent),c&&c(this.lastMoveEvent,a)},this.handlePointerMove=(a,o)=>{this.lastMoveEvent=a,this.lastMoveEventInfo=vv(o,this.transformPagePoint),aA.update(this.updatePoint,!0)},this.handlePointerUp=(a,o)=>{this.end();const{onEnd:u,onSessionEnd:d,resumeAnimation:l}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&l&&l(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=rv(a.type==="pointercancel"?this.lastMoveEventInfo:vv(o,this.transformPagePoint),this.history);this.startEvent&&u&&u(a,C),d&&d(a,C)},!ka(A))return;this.dragSnapToOrigin=v,this.handlers=t,this.transformPagePoint=f,this.contextWindow=n||window;const r=vv(sf(A),this.transformPagePoint),{point:s}=r,{timestamp:g}=YA;this.history=[{...s,timestamp:g}];const{onSessionStart:B}=t;B&&B(A,rv(r,this.history)),this.removeListeners=Xf(St(this.contextWindow,"pointermove",this.handlePointerMove),St(this.contextWindow,"pointerup",this.handlePointerUp),St(this.contextWindow,"pointercancel",this.handlePointerUp)),w&&this.startScrollTracking(w)}isScrollable(A){const t=window.getComputedStyle(A);return t.overflow==="auto"||t.overflow==="scroll"||t.overflowX==="auto"||t.overflowX==="scroll"||t.overflowY==="auto"||t.overflowY==="scroll"}startScrollTracking(A){let t=A.parentElement;for(;t;){const f=getComputedStyle(t);(fg.has(f.overflowX)||fg.has(f.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(A){const t=this.scrollPositions.get(A);if(!t)return;const f=A===window,n=f?{x:window.scrollX,y:window.scrollY}:{x:A.scrollLeft,y:A.scrollTop},v={x:n.x-t.x,y:n.y-t.y};v.x===0&&v.y===0||(f?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=v.x,this.lastMoveEventInfo.point.y+=v.y):this.history.length>0&&(this.history[0].x-=v.x,this.history[0].y-=v.y),this.scrollPositions.set(A,n),aA.update(this.updatePoint,!0))}updateHandlers(A){this.handlers=A}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners?.(),this.scrollPositions.clear(),he(this.updatePoint)}};function vv(A,t){return t?{point:t(A.point)}:A}function ng(A,t){return{x:A.x-t.x,y:A.y-t.y}}function rv({point:A},t){return{point:A,delta:ng(A,Sa(t)),offset:ng(A,LL(t)),velocity:ML(t,.1)}}function LL(A){return A[0]}function Sa(A){return A[A.length-1]}function ML(A,t){if(A.length<2)return{x:0,y:0};let f=A.length-1,n=null;const v=Sa(A);for(;f>=0&&(n=A[f],!(v.timestamp-n.timestamp>pA(t)));)f--;if(!n)return{x:0,y:0};const w=qA(v.timestamp-n.timestamp);if(w===0)return{x:0,y:0};const r={x:(v.x-n.x)/w,y:(v.y-n.y)/w};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function vg(A){return(t,f)=>{A&&aA.postRender(()=>A(t,f))}}var HL=class extends Ce{constructor(...A){super(...A),this.removePointerDownListener=KA}static#A=this.key="pan";onPointerDown(A){this.session=new Ua(A,this.createPanHandlers(),{transformPagePoint:this.state.visualElement.getTransformPagePoint(),contextWindow:ya(this.state.visualElement)})}createPanHandlers(){return{onSessionStart:vg((A,t)=>{const{onPanSessionStart:f}=this.state.options;f&&f(A,t)}),onStart:vg((A,t)=>{const{onPanStart:f}=this.state.options;f&&f(A,t)}),onMove:(A,t)=>{const{onPan:f}=this.state.options;f&&f(A,t)},onEnd:(A,t)=>{const{onPanEnd:f}=this.state.options;delete this.session,f&&aA.postRender(()=>f(A,t))}}}mount(){this.removePointerDownListener=St(this.state.element,"pointerdown",this.onPointerDown.bind(this))}update(){}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};function $a(A){let t=null;return()=>{const f=()=>{t=null};return t===null?(t=A,f):!1}}var rg=$a("dragHorizontal"),wg=$a("dragVertical");function YL(A){let t=!1;if(A==="y")t=wg();else if(A==="x")t=rg();else{const f=rg(),n=wg();f&&n?t=()=>{f(),n()}:(f&&f(),n&&n())}return t}function mL(A,{min:t,max:f},n){return t!==void 0&&A<t?A=n?cA(t,A,n.min):Math.max(A,t):f!==void 0&&A>f&&(A=n?cA(f,A,n.max):Math.min(A,f)),A}const $v=.35;function xL(A,{top:t,left:f,bottom:n,right:v}){return{x:sg(A.x,f,v),y:sg(A.y,t,n)}}function sg(A,t,f){return{min:t!==void 0?A.min+t:void 0,max:f!==void 0?A.max+f-(A.max-A.min):void 0}}function GL(A=$v){return A===!1?A=0:A===!0&&(A=$v),{x:gg(A,"left","right"),y:gg(A,"top","bottom")}}function gg(A,t,f){return{min:Bg(A,t),max:Bg(A,f)}}function Bg(A,t){return typeof A=="number"?A:A[t]||0}function hL(A,t){const f={};return t.min!==void 0&&(f.min=t.min-A.min),t.max!==void 0&&(f.max=t.max-A.min),f}function NL(A,t){return{x:ag(A.x,t.x),y:ag(A.y,t.y)}}function ag(A,t){let f=t.min-A.min,n=t.max-A.max;return t.max-t.min<A.max-A.min&&([f,n]=[n,f]),{min:f,max:n}}function QL(A,t){let f=.5;const n=NA(A),v=NA(t);return v>n?f=vf(t.min,t.max-n,A.min):n>v&&(f=vf(A.min,A.max-v,t.min)),Be(0,1,f)}const FL=new WeakMap;var OL=class{constructor(A){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=HA(),this.state=A}get visualElement(){return this.state.visualElement}start(A,{snapToCursor:t=!1}={}){const f=g=>{t?this.stopAnimation():this.pauseAnimation(),t&&this.snapToCursor(sf(g,"page").point)},n=(g,B)=>{this.stopAnimation();const{drag:a,dragPropagation:o,onDragStart:u}=this.getProps();a&&!o&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=YL(a),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),WA(d=>{let l=this.getAxisMotionValue(d).get()||0;if(we.test(l)){const{projection:C}=this.visualElement;if(C&&C.layout){const c=C.layout.layoutBox[d];c&&(l=NA(c)*(parseFloat(l)/100))}}this.originPoint[d]=l}),u&&aA.postRender(()=>u(g,B)),Vv(this.visualElement,"transform"),this.state.setActive("whileDrag",!0))},v=(g,B)=>{const{dragPropagation:a,dragDirectionLock:o,onDirectionLock:u,onDrag:d}=this.getProps();if(!a&&!this.openGlobalLock)return;const{offset:l}=B;if(o&&this.currentDirection===null){this.currentDirection=EL(l),this.currentDirection!==null&&u&&u(this.currentDirection);return}this.updateAxis("x",B.point,l),this.updateAxis("y",B.point,l),this.visualElement.render(),d&&d(g,B)},w=(g,B)=>this.stop(g,B),r=()=>WA(g=>this.getAnimationState(g)==="paused"&&this.getAxisMotionValue(g).animation?.play()),{dragSnapToOrigin:s}=this.getProps();this.panSession=new Ua(A,{onSessionStart:f,onStart:n,onMove:v,onSessionEnd:w,resumeAnimation:r},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,contextWindow:ya(this.visualElement),element:this.state.element})}stop(A,t){const f=this.isDragging;if(this.cancel(),!f)return;const{velocity:n}=t;this.startAnimation(n);const{onDragEnd:v}=this.getProps();v&&aA.postRender(()=>v(A,t))}cancel(){this.isDragging=!1;const{projection:A}=this.visualElement;A&&(A.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:t}=this.getProps();!t&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),this.state.setActive("whileDrag",!1)}updateAxis(A,t,f){const{drag:n}=this.getProps();if(!f||!Vf(A,n,this.currentDirection))return;const v=this.getAxisMotionValue(A);let w=this.originPoint[A]+f[A];this.constraints&&this.constraints[A]&&(w=mL(w,this.constraints[A],this.elastic[A])),v.set(w)}resolveConstraints(){const{dragConstraints:A,dragElastic:t}=this.getProps(),f=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;A&&kt(A)?this.constraints||(this.constraints=this.resolveRefConstraints()):A&&f?this.constraints=xL(f.layoutBox,A):this.constraints=!1,this.elastic=GL(t),n!==this.constraints&&f&&this.constraints&&!this.hasMutatedConstraints&&WA(v=>{this.constraints!==!1&&this.getAxisMotionValue(v)&&(this.constraints[v]=hL(f.layoutBox[v],this.constraints[v]))})}resolveRefConstraints(){const{dragConstraints:A,onMeasureDragConstraints:t}=this.getProps();if(!A||!kt(A))return!1;const f=A;Qn(f!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:n}=this.visualElement;if(!n||!n.layout)return!1;const v=kX(f,n.root,this.visualElement.getTransformPagePoint());let w=NL(n.layout.layoutBox,v);if(t){const r=t(ZX(w));this.hasMutatedConstraints=!!r,r&&(w=Da(r))}return w}startAnimation(A){const{drag:t,dragMomentum:f,dragElastic:n,dragTransition:v,dragSnapToOrigin:w,onDragTransitionEnd:r}=this.getProps(),s=this.constraints||{},g=WA(B=>{if(!Vf(B,t,this.currentDirection))return;let a=s&&s[B]||{};w&&(a={min:0,max:0});const o=n?200:1e6,u=n?40:1e7,d={type:"inertia",velocity:f?A[B]:0,bounceStiffness:o,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...v,...a};return this.startAxisValueAnimation(B,d)});return Promise.all(g).then(r)}startAxisValueAnimation(A,t){const f=this.getAxisMotionValue(A);return Vv(this.visualElement,A),f.start(pr(A,f,0,t,this.visualElement,!1))}stopAnimation(){this.visualElement.projection?.isPresent&&WA(A=>this.getAxisMotionValue(A).stop())}pauseAnimation(){WA(A=>this.getAxisMotionValue(A).animation?.pause())}getAnimationState(A){return this.getAxisMotionValue(A).animation?.state}getAxisMotionValue(A){const t=`_drag${A.toUpperCase()}`,f=this.visualElement.getProps();return f[t]||this.visualElement.getValue(A,(f.initial?f.initial[A]:void 0)||0)}snapToCursor(A){WA(t=>{const{drag:f}=this.getProps();if(!Vf(t,f,this.currentDirection))return;const{projection:n}=this.visualElement,v=this.getAxisMotionValue(t);if(n&&n.layout){const{min:w,max:r}=n.layout.layoutBox[t];v.set(A[t]-cA(w,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:A,dragConstraints:t}=this.getProps(),{projection:f}=this.visualElement;if(!kt(t)||!f||!this.constraints)return;this.stopAnimation();const n={x:0,y:0};WA(w=>{const r=this.getAxisMotionValue(w);if(r&&this.constraints!==!1){const s=r.get();n[w]=QL({min:s,max:s},this.constraints[w])}});const{transformTemplate:v}=this.visualElement.getProps();this.state.element.style.transform=v?v({},""):"none",f.root&&f.root.updateScroll(),f.updateLayout(),this.resolveConstraints(),WA(w=>{if(!Vf(w,A,null))return;const r=this.getAxisMotionValue(w),{min:s,max:g}=this.constraints[w];r.set(cA(s,g,n[w]))})}addListeners(){if(!this.state.element)return;FL.set(this.visualElement,this);const A=this.state.element,t=St(A,"pointerdown",s=>{const{drag:g,dragListener:B=!0}=this.getProps();g&&B&&this.start(s)}),f=()=>{const{dragConstraints:s}=this.getProps();kt(s)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,v=n.addEventListener("measure",f);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),aA.read(f);const w=on(window,"resize",()=>this.scalePositionWithinConstraints()),r=n.addEventListener("didUpdate",(({delta:s,hasLayoutChanged:g})=>{this.isDragging&&g&&(WA(B=>{const a=this.getAxisMotionValue(B);a&&(this.originPoint[B]+=s[B].translate,a.set(a.get()+s[B].translate))}),this.visualElement.render())}));return()=>{w(),t(),v(),r&&r()}}getProps(){const A=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:f=!1,dragPropagation:n=!1,dragConstraints:v=!1,dragElastic:w=$v,dragMomentum:r=!0}=A;return{...A,drag:t,dragDirectionLock:f,dragPropagation:n,dragConstraints:v,dragElastic:w,dragMomentum:r}}};function Vf(A,t,f){return(t===!0||t===A)&&(f===null||f===A)}function EL(A,t=10){let f=null;return Math.abs(A.y)>t?f="y":Math.abs(A.x)>t&&(f="x"),f}var yL=class extends Ce{static#A=this.key="drag";constructor(A){super(A),this.removeGroupControls=KA,this.removeListeners=KA,this.controls=new OL(A)}mount(){const{dragControls:A}=this.state.options;A&&(this.removeGroupControls=A.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||KA}unmount(){this.removeGroupControls(),this.removeListeners()}},Zt=!1,pL=class extends Ce{static#A=this.key="layout";constructor(A){super(A),this.hasMountSettled=!1,La(Ja),A.getSnapshot=this.getSnapshot.bind(this),A.didUpdate=this.didUpdate.bind(this)}updatePrevLead(A){const t=A.getStack();t?.prevLead&&!t.prevLead.snapshot&&(t.prevLead.willUpdate(),Zt=!0)}didUpdate(){Zt&&(this.state.options.layout||this.state.options.layoutId||this.state.options.drag)&&(Zt=!1,this.state.visualElement.projection?.root?.didUpdate())}mount(){const A=this.state.options,t=this.state.options.layoutGroup;if(A.layout||A.layoutId){const f=this.state.visualElement.projection;if(A.layoutId){const n=!Ka(this.state.element);f.isPresent=n,n?f.promote():f.relegate(),this.updatePrevLead(f)}t?.group?.add(f),Uf.hasEverUpdated=!0}this.didUpdate(),aA.postRender(()=>{this.hasMountSettled=!0})}unmount(){const A=this.state.options.layoutGroup,t=this.state.visualElement.projection;t&&(A?.group&&(this.state.options.layout||this.state.options.layoutId)&&A.group.remove(t),this.state.options.layoutId&&(Zt=!0),this.didUpdate())}getSnapshot(A,t){const f=this.state.visualElement.projection,{drag:n,layoutDependency:v,layout:w,layoutId:r}=A;if(!f||!w&&!r&&!n||!this.hasMountSettled)return;Zt=!0;const s=this.state.options;(n||s.layoutDependency!==v||v===void 0||$s(t)&&f.isPresent!==t)&&f.willUpdate(),$s(t)&&t!==f.isPresent&&(f.isPresent=t,t?(f.promote(),this.updatePrevLead(f)):f.relegate())}};const jL={renderer:iL,features:[cL,lL,CL,PL,bL,zL,HL,yL,pL]},[IL]=Pf("LazyMotionContext"),[VL]=Pf("AnimatePresenceContext");function TL(A){return A.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}function _a(){return{transform:{},transformOrigin:{},style:{},vars:{}}}function WL(){return{..._a(),attrs:{}}}function ZL(A){const t=_a();Vr(t,A);const f={...t.style};for(const n in t.vars)f[n]=t.vars[n];return Object.keys(f).length===0?null:f}function qL(A,t,f){const n=WL();Ha(n,A,Ya(t),void 0,f);const v={};for(const w in n.attrs){const r=Tr.has(w)?w:TL(w);v[r]=n.attrs[w]}return{attrs:v,style:{...n.style,...n.vars}}}function KL(A,t){const f=$z(null),n=AL({}),v=fL(),w=VL({}),r=IL({features:e.ref({}),strict:!1});if(process.env.NODE_ENV!=="production"&&t&&r.strict){const d="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";A.ignoreStrict?pa(!1,d):Qn(!1,d)}const s=e.useAttrs();function g(){return l2(A,{layoutGroup:n,presenceContext:w,config:v.value})}function B(){return{...s,...g()}}const a=new sL(B(),f);_z(a),t&&a.initVisualElement(t),e.watch(r.features,d=>{d.features?.length&&ja(d.features),d.renderer&&a.initVisualElement(d.renderer),a.updateFeatures()},{immediate:!0,flush:"pre"});function o(){const d=a.type==="svg",l={...s};Object.keys(s).forEach(i=>{GA(s[i])&&(l[i]=s[i].get())});const C=a.visualElement?.latestValues||a.latestValues;let c={...A.style,...d?{}:C};for(const i in c)GA(c[i])&&(c[i]=c[i].get());if(d){const{attrs:i,style:b}=qL({...C,...c},a.options.as,A.style);Object.assign(l,i),c=b}A.drag&&A.dragListener!==!1&&Object.assign(c,{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:A.drag===!0?"none":`pan-${A.drag==="x"?"y":"x"}`});const D=ZL(c);return D&&(l.style=D),l}const u=e.getCurrentInstance().proxy;return e.onMounted(()=>{const d=Uv(u.$el);a.mount(d)}),e.onBeforeUnmount(()=>a.beforeUnmount()),e.onUnmounted(()=>{Uv(u.$el)?.isConnected||a.unmount()}),e.onBeforeUpdate(()=>{a.beforeUpdate(),a.updateOptions(B())}),e.onUpdated(()=>{a.update()}),{getProps:g,getAttrs:o,layoutGroup:n,state:a}}const kL={ignoreStrict:{type:Boolean},forwardMotionProps:{type:Boolean,default:!1},asChild:{type:Boolean,default:!1},whileDrag:{type:[String,Array,Object]},whileHover:{type:[String,Array,Object]},whilePress:{type:[String,Array,Object]},whileInView:{type:[String,Array,Object]},whileFocus:{type:[String,Array,Object]},custom:{type:[String,Number,Object,Array]},initial:{type:[String,Array,Object,Boolean],default:void 0},animate:{type:[String,Array,Object],default:void 0},exit:{type:[String,Array,Object]},variants:{type:Object},inherit:{type:Boolean},style:{type:Object},transformTemplate:{type:Function},transition:{type:Object},onAnimationComplete:{type:Function},onUpdate:{type:Function},layout:{type:[Boolean,String],default:!1},layoutId:{type:String,default:void 0},layoutScroll:{type:Boolean,default:!1},layoutRoot:{type:Boolean,default:!1},"data-framer-portal-id":{type:String},crossfade:{type:Boolean,default:!0},layoutDependency:{type:null,default:void 0},onBeforeLayoutMeasure:{type:Function},onLayoutMeasure:{type:Function},onLayoutAnimationStart:{type:Function},onLayoutAnimationComplete:{type:Function},globalPressTarget:{type:Boolean},onPressStart:{type:Function},onPress:{type:Function},onPressCancel:{type:Function},onHoverStart:{type:Function},onHoverEnd:{type:Function},inViewOptions:{type:Object},onViewportEnter:{type:Function},onViewportLeave:{type:Function},drag:{type:[Boolean,String]},dragSnapToOrigin:{type:Boolean},dragDirectionLock:{type:Boolean},dragPropagation:{type:Boolean},dragConstraints:{type:[Boolean,Object]},dragElastic:{type:[Boolean,Number,Object],default:.5},dragMomentum:{type:Boolean,default:!0},dragTransition:{type:Object},dragListener:{type:Boolean,default:!0},dragControls:{type:Object},onDragStart:{type:Function},onDragEnd:{type:Function},onDrag:{type:Function},onDirectionLock:{type:Function},onDragTransitionEnd:{type:Function},onMeasureDragConstraints:{type:Function},onPanSessionStart:{type:Function},onPanStart:{type:Function},onPan:{type:Function},onPanEnd:{type:Function}};var RL=new Map,JL=new Map;function UL(A){if(!Array.isArray(A))return[A];const t=[];for(const f of A)Array.isArray(f)?t.push(...f):t.push(f);return t}var SL=["area","img","input"];function $L(A,t,f){if(typeof A=="string"&&SL.includes(A))return e.h(A,t);if(A==="template"){if(!f.default)return null;const n=UL(f.default()),v=n.findIndex(g=>g.type!==e.Comment);if(v===-1)return n;const w=n[v];delete w.props?.ref;const r=w.props?e.mergeProps(t,w.props):t;t.class&&w.props?.class&&delete w.props.class;const s=e.cloneVNode(w,r);for(const g in r)g.startsWith("on")&&(s.props||={},s.props[g]=r[g]);return n.length===1?s:(n[v]=s,n)}return null}function og(A,t={}){const f=typeof A=="string",n=f?A:A.name||"",v=t.renderer?RL:JL;if(f&&v?.has(A))return v.get(A);const w=e.defineComponent({inheritAttrs:!1,props:{...kL,as:{type:[String,Object],default:A||"div"}},name:n?`motion.${n}`:"Motion",setup(r,{slots:s}){const{getProps:g,getAttrs:B,state:a}=KL(r,t.renderer);function o(){const u=a.element;if((typeof r.as!="object"||r.asChild)&&u){const{style:d}=B();if(d)for(const[l,C]of Object.entries(d))u.style[l]=C}}return()=>{const u=g(),d=B(),l=r.asChild?"template":r.as,C={...r.forwardMotionProps?u:{},...d,onVnodeUpdated:o},c=$L(l,C,s);return c!==null?c:e.h(l,{...C},s)}}});return f&&v?.set(A,w),w}function _L(A){const t=A?.renderer;return ja(A?.features||[]),new Proxy({},{get(f,n){return n==="create"?(v,w)=>og(v,{...w,renderer:t}):og(n,{renderer:t})}})}const A0=_L(jL),De=A0.create("div");function gA(A){return function(){return A}}const ug=Math.abs,xA=Math.atan2,Ie=Math.cos,e0=Math.max,wv=Math.min,fe=Math.sin,it=Math.sqrt,QA=1e-12,gf=Math.PI,un=gf/2,Sf=2*gf;function t0(A){return A>1?0:A<-1?gf:Math.acos(A)}function dg(A){return A>=1?un:A<=-1?-un:Math.asin(A)}const _v=Math.PI,Ar=2*_v,Te=1e-6,f0=Ar-Te;function A9(A){this._+=A[0];for(let t=1,f=A.length;t<f;++t)this._+=arguments[t]+A[t]}function n0(A){let t=Math.floor(A);if(!(t>=0))throw new Error(`invalid digits: ${A}`);if(t>15)return A9;const f=10**t;return function(n){this._+=n[0];for(let v=1,w=n.length;v<w;++v)this._+=Math.round(arguments[v]*f)/f+n[v]}}class v0{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?A9:n0(t)}moveTo(t,f){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+f}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,f){this._append`L${this._x1=+t},${this._y1=+f}`}quadraticCurveTo(t,f,n,v){this._append`Q${+t},${+f},${this._x1=+n},${this._y1=+v}`}bezierCurveTo(t,f,n,v,w,r){this._append`C${+t},${+f},${+n},${+v},${this._x1=+w},${this._y1=+r}`}arcTo(t,f,n,v,w){if(t=+t,f=+f,n=+n,v=+v,w=+w,w<0)throw new Error(`negative radius: ${w}`);let r=this._x1,s=this._y1,g=n-t,B=v-f,a=r-t,o=s-f,u=a*a+o*o;if(this._x1===null)this._append`M${this._x1=t},${this._y1=f}`;else if(u>Te)if(!(Math.abs(o*g-B*a)>Te)||!w)this._append`L${this._x1=t},${this._y1=f}`;else{let d=n-r,l=v-s,C=g*g+B*B,c=d*d+l*l,D=Math.sqrt(C),i=Math.sqrt(u),b=w*Math.tan((_v-Math.acos((C+u-c)/(2*D*i)))/2),X=b/i,P=b/D;Math.abs(X-1)>Te&&this._append`L${t+X*a},${f+X*o}`,this._append`A${w},${w},0,0,${+(o*d>a*l)},${this._x1=t+P*g},${this._y1=f+P*B}`}}arc(t,f,n,v,w,r){if(t=+t,f=+f,n=+n,r=!!r,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(v),g=n*Math.sin(v),B=t+s,a=f+g,o=1^r,u=r?v-w:w-v;this._x1===null?this._append`M${B},${a}`:(Math.abs(this._x1-B)>Te||Math.abs(this._y1-a)>Te)&&this._append`L${B},${a}`,n&&(u<0&&(u=u%Ar+Ar),u>f0?this._append`A${n},${n},0,1,${o},${t-s},${f-g}A${n},${n},0,1,${o},${this._x1=B},${this._y1=a}`:u>Te&&this._append`A${n},${n},0,${+(u>=_v)},${o},${this._x1=t+n*Math.cos(w)},${this._y1=f+n*Math.sin(w)}`)}rect(t,f,n,v){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+f}h${n=+n}v${+v}h${-n}Z`}toString(){return this._}}function Wr(A){let t=3;return A.digits=function(f){if(!arguments.length)return t;if(f==null)t=null;else{const n=Math.floor(f);if(!(n>=0))throw new RangeError(`invalid digits: ${f}`);t=n}return A},()=>new v0(t)}function r0(A){return A.innerRadius}function w0(A){return A.outerRadius}function s0(A){return A.startAngle}function g0(A){return A.endAngle}function B0(A){return A&&A.padAngle}function a0(A,t,f,n,v,w,r,s){var g=f-A,B=n-t,a=r-v,o=s-w,u=o*g-a*B;if(!(u*u<QA))return u=(a*(t-w)-o*(A-v))/u,[A+u*g,t+u*B]}function Tf(A,t,f,n,v,w,r){var s=A-f,g=t-n,B=(r?w:-w)/it(s*s+g*g),a=B*g,o=-B*s,u=A+a,d=t+o,l=f+a,C=n+o,c=(u+l)/2,D=(d+C)/2,i=l-u,b=C-d,X=i*i+b*b,P=v-w,L=u*C-l*d,x=(b<0?-1:1)*it(e0(0,P*P*X-L*L)),z=(L*b-i*x)/X,H=(-L*i-b*x)/X,N=(L*b+i*x)/X,Q=(-L*i+b*x)/X,m=z-c,G=H-D,M=N-c,Y=Q-D;return m*m+G*G>M*M+Y*Y&&(z=N,H=Q),{cx:z,cy:H,x01:-a,y01:-o,x11:z*(v/P-1),y11:H*(v/P-1)}}function er(){var A=r0,t=w0,f=gA(0),n=null,v=s0,w=g0,r=B0,s=null,g=Wr(B);function B(){var a,o,u=+A.apply(this,arguments),d=+t.apply(this,arguments),l=v.apply(this,arguments)-un,C=w.apply(this,arguments)-un,c=ug(C-l),D=C>l;if(s||(s=a=g()),d<u&&(o=d,d=u,u=o),!(d>QA))s.moveTo(0,0);else if(c>Sf-QA)s.moveTo(d*Ie(l),d*fe(l)),s.arc(0,0,d,l,C,!D),u>QA&&(s.moveTo(u*Ie(C),u*fe(C)),s.arc(0,0,u,C,l,D));else{var i=l,b=C,X=l,P=C,L=c,x=c,z=r.apply(this,arguments)/2,H=z>QA&&(n?+n.apply(this,arguments):it(u*u+d*d)),N=wv(ug(d-u)/2,+f.apply(this,arguments)),Q=N,m=N,G,M;if(H>QA){var Y=dg(H/u*fe(z)),h=dg(H/d*fe(z));(L-=Y*2)>QA?(Y*=D?1:-1,X+=Y,P-=Y):(L=0,X=P=(l+C)/2),(x-=h*2)>QA?(h*=D?1:-1,i+=h,b-=h):(x=0,i=b=(l+C)/2)}var p=d*Ie(i),F=d*fe(i),S=u*Ie(P),nA=u*fe(P);if(N>QA){var _=d*Ie(b),j=d*fe(b),V=u*Ie(X),W=u*fe(X),vA;if(c<gf)if(vA=a0(p,F,V,W,_,j,S,nA)){var BA=p-vA[0],sA=F-vA[1],k=_-vA[0],y=j-vA[1],K=1/fe(t0((BA*k+sA*y)/(it(BA*BA+sA*sA)*it(k*k+y*y)))/2),$=it(vA[0]*vA[0]+vA[1]*vA[1]);Q=wv(N,(u-$)/(K-1)),m=wv(N,(d-$)/(K+1))}else Q=m=0}x>QA?m>QA?(G=Tf(V,W,p,F,d,m,D),M=Tf(_,j,S,nA,d,m,D),s.moveTo(G.cx+G.x01,G.cy+G.y01),m<N?s.arc(G.cx,G.cy,m,xA(G.y01,G.x01),xA(M.y01,M.x01),!D):(s.arc(G.cx,G.cy,m,xA(G.y01,G.x01),xA(G.y11,G.x11),!D),s.arc(0,0,d,xA(G.cy+G.y11,G.cx+G.x11),xA(M.cy+M.y11,M.cx+M.x11),!D),s.arc(M.cx,M.cy,m,xA(M.y11,M.x11),xA(M.y01,M.x01),!D))):(s.moveTo(p,F),s.arc(0,0,d,i,b,!D)):s.moveTo(p,F),!(u>QA)||!(L>QA)?s.lineTo(S,nA):Q>QA?(G=Tf(S,nA,_,j,u,-Q,D),M=Tf(p,F,V,W,u,-Q,D),s.lineTo(G.cx+G.x01,G.cy+G.y01),Q<N?s.arc(G.cx,G.cy,Q,xA(G.y01,G.x01),xA(M.y01,M.x01),!D):(s.arc(G.cx,G.cy,Q,xA(G.y01,G.x01),xA(G.y11,G.x11),!D),s.arc(0,0,u,xA(G.cy+G.y11,G.cx+G.x11),xA(M.cy+M.y11,M.cx+M.x11),D),s.arc(M.cx,M.cy,Q,xA(M.y11,M.x11),xA(M.y01,M.x01),!D))):s.arc(0,0,u,P,X,D)}if(s.closePath(),a)return s=null,a+""||null}return B.centroid=function(){var a=(+A.apply(this,arguments)+ +t.apply(this,arguments))/2,o=(+v.apply(this,arguments)+ +w.apply(this,arguments))/2-gf/2;return[Ie(o)*a,fe(o)*a]},B.innerRadius=function(a){return arguments.length?(A=typeof a=="function"?a:gA(+a),B):A},B.outerRadius=function(a){return arguments.length?(t=typeof a=="function"?a:gA(+a),B):t},B.cornerRadius=function(a){return arguments.length?(f=typeof a=="function"?a:gA(+a),B):f},B.padRadius=function(a){return arguments.length?(n=a==null?null:typeof a=="function"?a:gA(+a),B):n},B.startAngle=function(a){return arguments.length?(v=typeof a=="function"?a:gA(+a),B):v},B.endAngle=function(a){return arguments.length?(w=typeof a=="function"?a:gA(+a),B):w},B.padAngle=function(a){return arguments.length?(r=typeof a=="function"?a:gA(+a),B):r},B.context=function(a){return arguments.length?(s=a??null,B):s},B}function Zr(A){return typeof A=="object"&&"length"in A?A:Array.from(A)}function e9(A){this._context=A}e9.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(A,t){switch(A=+A,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(A,t):this._context.moveTo(A,t);break;case 1:this._point=2;default:this._context.lineTo(A,t);break}}};function t9(A){return new e9(A)}function f9(A){return A[0]}function n9(A){return A[1]}function Fn(A,t){var f=gA(!0),n=null,v=t9,w=null,r=Wr(s);A=typeof A=="function"?A:A===void 0?f9:gA(A),t=typeof t=="function"?t:t===void 0?n9:gA(t);function s(g){var B,a=(g=Zr(g)).length,o,u=!1,d;for(n==null&&(w=v(d=r())),B=0;B<=a;++B)!(B<a&&f(o=g[B],B,g))===u&&((u=!u)?w.lineStart():w.lineEnd()),u&&w.point(+A(o,B,g),+t(o,B,g));if(d)return w=null,d+""||null}return s.x=function(g){return arguments.length?(A=typeof g=="function"?g:gA(+g),s):A},s.y=function(g){return arguments.length?(t=typeof g=="function"?g:gA(+g),s):t},s.defined=function(g){return arguments.length?(f=typeof g=="function"?g:gA(!!g),s):f},s.curve=function(g){return arguments.length?(v=g,n!=null&&(w=v(n)),s):v},s.context=function(g){return arguments.length?(g==null?n=w=null:w=v(n=g),s):n},s}function o0(A,t,f){var n=null,v=gA(!0),w=null,r=t9,s=null,g=Wr(B);A=typeof A=="function"?A:A===void 0?f9:gA(+A),t=typeof t=="function"?t:gA(t===void 0?0:+t),f=typeof f=="function"?f:f===void 0?n9:gA(+f);function B(o){var u,d,l,C=(o=Zr(o)).length,c,D=!1,i,b=new Array(C),X=new Array(C);for(w==null&&(s=r(i=g())),u=0;u<=C;++u){if(!(u<C&&v(c=o[u],u,o))===D)if(D=!D)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),l=u-1;l>=d;--l)s.point(b[l],X[l]);s.lineEnd(),s.areaEnd()}D&&(b[u]=+A(c,u,o),X[u]=+t(c,u,o),s.point(n?+n(c,u,o):b[u],f?+f(c,u,o):X[u]))}if(i)return s=null,i+""||null}function a(){return Fn().defined(v).curve(r).context(w)}return B.x=function(o){return arguments.length?(A=typeof o=="function"?o:gA(+o),n=null,B):A},B.x0=function(o){return arguments.length?(A=typeof o=="function"?o:gA(+o),B):A},B.x1=function(o){return arguments.length?(n=o==null?null:typeof o=="function"?o:gA(+o),B):n},B.y=function(o){return arguments.length?(t=typeof o=="function"?o:gA(+o),f=null,B):t},B.y0=function(o){return arguments.length?(t=typeof o=="function"?o:gA(+o),B):t},B.y1=function(o){return arguments.length?(f=o==null?null:typeof o=="function"?o:gA(+o),B):f},B.lineX0=B.lineY0=function(){return a().x(A).y(t)},B.lineY1=function(){return a().x(A).y(f)},B.lineX1=function(){return a().x(n).y(t)},B.defined=function(o){return arguments.length?(v=typeof o=="function"?o:gA(!!o),B):v},B.curve=function(o){return arguments.length?(r=o,w!=null&&(s=r(w)),B):r},B.context=function(o){return arguments.length?(o==null?w=s=null:s=r(w=o),B):w},B}function u0(A,t){return t<A?-1:t>A?1:t>=A?0:NaN}function d0(A){return A}function c0(){var A=d0,t=u0,f=null,n=gA(0),v=gA(Sf),w=gA(0);function r(s){var g,B=(s=Zr(s)).length,a,o,u=0,d=new Array(B),l=new Array(B),C=+n.apply(this,arguments),c=Math.min(Sf,Math.max(-Sf,v.apply(this,arguments)-C)),D,i=Math.min(Math.abs(c)/B,w.apply(this,arguments)),b=i*(c<0?-1:1),X;for(g=0;g<B;++g)(X=l[d[g]=g]=+A(s[g],g,s))>0&&(u+=X);for(t!=null?d.sort(function(P,L){return t(l[P],l[L])}):f!=null&&d.sort(function(P,L){return f(s[P],s[L])}),g=0,o=u?(c-B*b)/u:0;g<B;++g,C=D)a=d[g],X=l[a],D=C+(X>0?X*o:0)+b,l[a]={data:s[a],index:g,value:X,startAngle:C,endAngle:D,padAngle:i};return l}return r.value=function(s){return arguments.length?(A=typeof s=="function"?s:gA(+s),r):A},r.sortValues=function(s){return arguments.length?(t=s,f=null,r):t},r.sort=function(s){return arguments.length?(f=s,t=null,r):f},r.startAngle=function(s){return arguments.length?(n=typeof s=="function"?s:gA(+s),r):n},r.endAngle=function(s){return arguments.length?(v=typeof s=="function"?s:gA(+s),r):v},r.padAngle=function(s){return arguments.length?(w=typeof s=="function"?s:gA(+s),r):w},r}function cg(A){return A<0?-1:1}function ig(A,t,f){var n=A._x1-A._x0,v=t-A._x1,w=(A._y1-A._y0)/(n||v<0&&-0),r=(f-A._y1)/(v||n<0&&-0),s=(w*v+r*n)/(n+v);return(cg(w)+cg(r))*Math.min(Math.abs(w),Math.abs(r),.5*Math.abs(s))||0}function lg(A,t){var f=A._x1-A._x0;return f?(3*(A._y1-A._y0)/f-t)/2:t}function sv(A,t,f){var n=A._x0,v=A._y0,w=A._x1,r=A._y1,s=(w-n)/3;A._context.bezierCurveTo(n+s,v+s*t,w-s,r-s*f,w,r)}function dn(A){this._context=A}dn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:sv(this,this._t0,lg(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(A,t){var f=NaN;if(A=+A,t=+t,!(A===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(A,t):this._context.moveTo(A,t);break;case 1:this._point=2;break;case 2:this._point=3,sv(this,lg(this,f=ig(this,A,t)),f);break;default:sv(this,this._t0,f=ig(this,A,t));break}this._x0=this._x1,this._x1=A,this._y0=this._y1,this._y1=t,this._t0=f}}};Object.create(dn.prototype).point=function(A,t){dn.prototype.point.call(this,t,A)};function cn(A){return new dn(A)}const Dg=["#6888fb","#c447be","#f7a1f4","#b4d94a","#f6dd85"],Cg="#707070",Pg="#f2f2f2",bg="#e2e2e2";function tt(){const A=e.ref([...Dg]),t=e.ref(Cg),f=e.ref(Pg),n=e.ref({border:bg,radius:8,shadow:"0 8px 24px rgba(0,0,0,0.06)",background:"#ffffff"});return e.onMounted(()=>{const v=getComputedStyle(document.documentElement),w=(r,s)=>v.getPropertyValue(r).trim()||s;A.value=[1,2,3,4,5].map(r=>w(`--chart-${r}`,Dg[r-1])),t.value=w("--color-muted",Cg),f.value=w("--color-surface",Pg),n.value={...n.value,border:w("--color-border",bg),background:w("--card","#ffffff")}}),{colors:A,axis:t,grid:f,tooltip:n}}function $f(A,t){return A==null||t==null?NaN:A<t?-1:A>t?1:A>=t?0:NaN}function i0(A,t){return A==null||t==null?NaN:t<A?-1:t>A?1:t>=A?0:NaN}function v9(A){let t,f,n;A.length!==2?(t=$f,f=(s,g)=>$f(A(s),g),n=(s,g)=>A(s)-g):(t=A===$f||A===i0?A:l0,f=A,n=A);function v(s,g,B=0,a=s.length){if(B<a){if(t(g,g)!==0)return a;do{const o=B+a>>>1;f(s[o],g)<0?B=o+1:a=o}while(B<a)}return B}function w(s,g,B=0,a=s.length){if(B<a){if(t(g,g)!==0)return a;do{const o=B+a>>>1;f(s[o],g)<=0?B=o+1:a=o}while(B<a)}return B}function r(s,g,B=0,a=s.length){const o=v(s,g,B,a-1);return o>B&&n(s[o-1],g)>-n(s[o],g)?o-1:o}return{left:v,center:r,right:w}}function l0(){return 0}function D0(A){return A===null?NaN:+A}const C0=v9($f),P0=C0.right;v9(D0).center;class Xg extends Map{constructor(t,f=z0){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:f}}),t!=null)for(const[n,v]of t)this.set(n,v)}get(t){return super.get(zg(this,t))}has(t){return super.has(zg(this,t))}set(t,f){return super.set(b0(this,t),f)}delete(t){return super.delete(X0(this,t))}}function zg({_intern:A,_key:t},f){const n=t(f);return A.has(n)?A.get(n):f}function b0({_intern:A,_key:t},f){const n=t(f);return A.has(n)?A.get(n):(A.set(n,f),f)}function X0({_intern:A,_key:t},f){const n=t(f);return A.has(n)&&(f=A.get(n),A.delete(n)),f}function z0(A){return A!==null&&typeof A=="object"?A.valueOf():A}const L0=Math.sqrt(50),M0=Math.sqrt(10),H0=Math.sqrt(2);function ln(A,t,f){const n=(t-A)/Math.max(0,f),v=Math.floor(Math.log10(n)),w=n/Math.pow(10,v),r=w>=L0?10:w>=M0?5:w>=H0?2:1;let s,g,B;return v<0?(B=Math.pow(10,-v)/r,s=Math.round(A*B),g=Math.round(t*B),s/B<A&&++s,g/B>t&&--g,B=-B):(B=Math.pow(10,v)*r,s=Math.round(A/B),g=Math.round(t/B),s*B<A&&++s,g*B>t&&--g),g<s&&.5<=f&&f<2?ln(A,t,f*2):[s,g,B]}function Y0(A,t,f){if(t=+t,A=+A,f=+f,!(f>0))return[];if(A===t)return[A];const n=t<A,[v,w,r]=n?ln(t,A,f):ln(A,t,f);if(!(w>=v))return[];const s=w-v+1,g=new Array(s);if(n)if(r<0)for(let B=0;B<s;++B)g[B]=(w-B)/-r;else for(let B=0;B<s;++B)g[B]=(w-B)*r;else if(r<0)for(let B=0;B<s;++B)g[B]=(v+B)/-r;else for(let B=0;B<s;++B)g[B]=(v+B)*r;return g}function tr(A,t,f){return t=+t,A=+A,f=+f,ln(A,t,f)[2]}function m0(A,t,f){t=+t,A=+A,f=+f;const n=t<A,v=n?tr(t,A,f):tr(A,t,f);return(n?-1:1)*(v<0?1/-v:v)}function x0(A,t,f){A=+A,t=+t,f=(v=arguments.length)<2?(t=A,A=0,1):v<3?1:+f;for(var n=-1,v=Math.max(0,Math.ceil((t-A)/f))|0,w=new Array(v);++n<v;)w[n]=A+n*f;return w}function qr(A,t){switch(arguments.length){case 0:break;case 1:this.range(A);break;default:this.range(t).domain(A);break}return this}const Lg=Symbol("implicit");function r9(){var A=new Xg,t=[],f=[],n=Lg;function v(w){let r=A.get(w);if(r===void 0){if(n!==Lg)return n;A.set(w,r=t.push(w)-1)}return f[r%f.length]}return v.domain=function(w){if(!arguments.length)return t.slice();t=[],A=new Xg;for(const r of w)A.has(r)||A.set(r,t.push(r)-1);return v},v.range=function(w){return arguments.length?(f=Array.from(w),v):f.slice()},v.unknown=function(w){return arguments.length?(n=w,v):n},v.copy=function(){return r9(t,f).unknown(n)},qr.apply(v,arguments),v}function Mf(){var A=r9().unknown(void 0),t=A.domain,f=A.range,n=0,v=1,w,r,s=!1,g=0,B=0,a=.5;delete A.unknown;function o(){var u=t().length,d=v<n,l=d?v:n,C=d?n:v;w=(C-l)/Math.max(1,u-g+B*2),s&&(w=Math.floor(w)),l+=(C-l-w*(u-g))*a,r=w*(1-g),s&&(l=Math.round(l),r=Math.round(r));var c=x0(u).map(function(D){return l+w*D});return f(d?c.reverse():c)}return A.domain=function(u){return arguments.length?(t(u),o()):t()},A.range=function(u){return arguments.length?([n,v]=u,n=+n,v=+v,o()):[n,v]},A.rangeRound=function(u){return[n,v]=u,n=+n,v=+v,s=!0,o()},A.bandwidth=function(){return r},A.step=function(){return w},A.round=function(u){return arguments.length?(s=!!u,o()):s},A.padding=function(u){return arguments.length?(g=Math.min(1,B=+u),o()):g},A.paddingInner=function(u){return arguments.length?(g=Math.min(1,u),o()):g},A.paddingOuter=function(u){return arguments.length?(B=+u,o()):B},A.align=function(u){return arguments.length?(a=Math.max(0,Math.min(1,u)),o()):a},A.copy=function(){return Mf(t(),[n,v]).round(s).paddingInner(g).paddingOuter(B).align(a)},qr.apply(o(),arguments)}function w9(A){var t=A.copy;return A.padding=A.paddingOuter,delete A.paddingInner,delete A.paddingOuter,A.copy=function(){return w9(t())},A}function G0(){return w9(Mf.apply(null,arguments).paddingInner(1))}function Kr(A,t,f){A.prototype=t.prototype=f,f.constructor=A}function s9(A,t){var f=Object.create(A.prototype);for(var n in t)f[n]=t[n];return f}function Hf(){}var Bf=.7,Dn=1/Bf,Pt="\\s*([+-]?\\d+)\\s*",af="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",se="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",h0=/^#([0-9a-f]{3,8})$/,N0=new RegExp(`^rgb\\(${Pt},${Pt},${Pt}\\)$`),Q0=new RegExp(`^rgb\\(${se},${se},${se}\\)$`),F0=new RegExp(`^rgba\\(${Pt},${Pt},${Pt},${af}\\)$`),O0=new RegExp(`^rgba\\(${se},${se},${se},${af}\\)$`),E0=new RegExp(`^hsl\\(${af},${se},${se}\\)$`),y0=new RegExp(`^hsla\\(${af},${se},${se},${af}\\)$`),Mg={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};Kr(Hf,of,{copy(A){return Object.assign(new this.constructor,this,A)},displayable(){return this.rgb().displayable()},hex:Hg,formatHex:Hg,formatHex8:p0,formatHsl:j0,formatRgb:Yg,toString:Yg});function Hg(){return this.rgb().formatHex()}function p0(){return this.rgb().formatHex8()}function j0(){return g9(this).formatHsl()}function Yg(){return this.rgb().formatRgb()}function of(A){var t,f;return A=(A+"").trim().toLowerCase(),(t=h0.exec(A))?(f=t[1].length,t=parseInt(t[1],16),f===6?mg(t):f===3?new FA(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):f===8?Wf(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):f===4?Wf(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=N0.exec(A))?new FA(t[1],t[2],t[3],1):(t=Q0.exec(A))?new FA(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=F0.exec(A))?Wf(t[1],t[2],t[3],t[4]):(t=O0.exec(A))?Wf(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=E0.exec(A))?hg(t[1],t[2]/100,t[3]/100,1):(t=y0.exec(A))?hg(t[1],t[2]/100,t[3]/100,t[4]):Mg.hasOwnProperty(A)?mg(Mg[A]):A==="transparent"?new FA(NaN,NaN,NaN,0):null}function mg(A){return new FA(A>>16&255,A>>8&255,A&255,1)}function Wf(A,t,f,n){return n<=0&&(A=t=f=NaN),new FA(A,t,f,n)}function I0(A){return A instanceof Hf||(A=of(A)),A?(A=A.rgb(),new FA(A.r,A.g,A.b,A.opacity)):new FA}function fr(A,t,f,n){return arguments.length===1?I0(A):new FA(A,t,f,n??1)}function FA(A,t,f,n){this.r=+A,this.g=+t,this.b=+f,this.opacity=+n}Kr(FA,fr,s9(Hf,{brighter(A){return A=A==null?Dn:Math.pow(Dn,A),new FA(this.r*A,this.g*A,this.b*A,this.opacity)},darker(A){return A=A==null?Bf:Math.pow(Bf,A),new FA(this.r*A,this.g*A,this.b*A,this.opacity)},rgb(){return this},clamp(){return new FA(Se(this.r),Se(this.g),Se(this.b),Cn(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:xg,formatHex:xg,formatHex8:V0,formatRgb:Gg,toString:Gg}));function xg(){return`#${Re(this.r)}${Re(this.g)}${Re(this.b)}`}function V0(){return`#${Re(this.r)}${Re(this.g)}${Re(this.b)}${Re((isNaN(this.opacity)?1:this.opacity)*255)}`}function Gg(){const A=Cn(this.opacity);return`${A===1?"rgb(":"rgba("}${Se(this.r)}, ${Se(this.g)}, ${Se(this.b)}${A===1?")":`, ${A})`}`}function Cn(A){return isNaN(A)?1:Math.max(0,Math.min(1,A))}function Se(A){return Math.max(0,Math.min(255,Math.round(A)||0))}function Re(A){return A=Se(A),(A<16?"0":"")+A.toString(16)}function hg(A,t,f,n){return n<=0?A=t=f=NaN:f<=0||f>=1?A=t=NaN:t<=0&&(A=NaN),new SA(A,t,f,n)}function g9(A){if(A instanceof SA)return new SA(A.h,A.s,A.l,A.opacity);if(A instanceof Hf||(A=of(A)),!A)return new SA;if(A instanceof SA)return A;A=A.rgb();var t=A.r/255,f=A.g/255,n=A.b/255,v=Math.min(t,f,n),w=Math.max(t,f,n),r=NaN,s=w-v,g=(w+v)/2;return s?(t===w?r=(f-n)/s+(f<n)*6:f===w?r=(n-t)/s+2:r=(t-f)/s+4,s/=g<.5?w+v:2-w-v,r*=60):s=g>0&&g<1?0:r,new SA(r,s,g,A.opacity)}function T0(A,t,f,n){return arguments.length===1?g9(A):new SA(A,t,f,n??1)}function SA(A,t,f,n){this.h=+A,this.s=+t,this.l=+f,this.opacity=+n}Kr(SA,T0,s9(Hf,{brighter(A){return A=A==null?Dn:Math.pow(Dn,A),new SA(this.h,this.s,this.l*A,this.opacity)},darker(A){return A=A==null?Bf:Math.pow(Bf,A),new SA(this.h,this.s,this.l*A,this.opacity)},rgb(){var A=this.h%360+(this.h<0)*360,t=isNaN(A)||isNaN(this.s)?0:this.s,f=this.l,n=f+(f<.5?f:1-f)*t,v=2*f-n;return new FA(gv(A>=240?A-240:A+120,v,n),gv(A,v,n),gv(A<120?A+240:A-120,v,n),this.opacity)},clamp(){return new SA(Ng(this.h),Zf(this.s),Zf(this.l),Cn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const A=Cn(this.opacity);return`${A===1?"hsl(":"hsla("}${Ng(this.h)}, ${Zf(this.s)*100}%, ${Zf(this.l)*100}%${A===1?")":`, ${A})`}`}}));function Ng(A){return A=(A||0)%360,A<0?A+360:A}function Zf(A){return Math.max(0,Math.min(1,A||0))}function gv(A,t,f){return(A<60?t+(f-t)*A/60:A<180?f:A<240?t+(f-t)*(240-A)/60:t)*255}const kr=A=>()=>A;function W0(A,t){return function(f){return A+f*t}}function Z0(A,t,f){return A=Math.pow(A,f),t=Math.pow(t,f)-A,f=1/f,function(n){return Math.pow(A+n*t,f)}}function q0(A){return(A=+A)==1?B9:function(t,f){return f-t?Z0(t,f,A):kr(isNaN(t)?f:t)}}function B9(A,t){var f=t-A;return f?W0(A,f):kr(isNaN(A)?t:A)}const Qg=(function A(t){var f=q0(t);function n(v,w){var r=f((v=fr(v)).r,(w=fr(w)).r),s=f(v.g,w.g),g=f(v.b,w.b),B=B9(v.opacity,w.opacity);return function(a){return v.r=r(a),v.g=s(a),v.b=g(a),v.opacity=B(a),v+""}}return n.gamma=A,n})(1);function K0(A,t){t||(t=[]);var f=A?Math.min(t.length,A.length):0,n=t.slice(),v;return function(w){for(v=0;v<f;++v)n[v]=A[v]*(1-w)+t[v]*w;return n}}function k0(A){return ArrayBuffer.isView(A)&&!(A instanceof DataView)}function R0(A,t){var f=t?t.length:0,n=A?Math.min(f,A.length):0,v=new Array(n),w=new Array(f),r;for(r=0;r<n;++r)v[r]=Rr(A[r],t[r]);for(;r<f;++r)w[r]=t[r];return function(s){for(r=0;r<n;++r)w[r]=v[r](s);return w}}function J0(A,t){var f=new Date;return A=+A,t=+t,function(n){return f.setTime(A*(1-n)+t*n),f}}function Pn(A,t){return A=+A,t=+t,function(f){return A*(1-f)+t*f}}function U0(A,t){var f={},n={},v;(A===null||typeof A!="object")&&(A={}),(t===null||typeof t!="object")&&(t={});for(v in t)v in A?f[v]=Rr(A[v],t[v]):n[v]=t[v];return function(w){for(v in f)n[v]=f[v](w);return n}}var nr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Bv=new RegExp(nr.source,"g");function S0(A){return function(){return A}}function $0(A){return function(t){return A(t)+""}}function _0(A,t){var f=nr.lastIndex=Bv.lastIndex=0,n,v,w,r=-1,s=[],g=[];for(A=A+"",t=t+"";(n=nr.exec(A))&&(v=Bv.exec(t));)(w=v.index)>f&&(w=t.slice(f,w),s[r]?s[r]+=w:s[++r]=w),(n=n[0])===(v=v[0])?s[r]?s[r]+=v:s[++r]=v:(s[++r]=null,g.push({i:r,x:Pn(n,v)})),f=Bv.lastIndex;return f<t.length&&(w=t.slice(f),s[r]?s[r]+=w:s[++r]=w),s.length<2?g[0]?$0(g[0].x):S0(t):(t=g.length,function(B){for(var a=0,o;a<t;++a)s[(o=g[a]).i]=o.x(B);return s.join("")})}function Rr(A,t){var f=typeof t,n;return t==null||f==="boolean"?kr(t):(f==="number"?Pn:f==="string"?(n=of(t))?(t=n,Qg):_0:t instanceof of?Qg:t instanceof Date?J0:k0(t)?K0:Array.isArray(t)?R0:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?U0:Pn)(A,t)}function A6(A,t){return A=+A,t=+t,function(f){return Math.round(A*(1-f)+t*f)}}function e6(A){return function(){return A}}function t6(A){return+A}var Fg=[0,1];function lt(A){return A}function vr(A,t){return(t-=A=+A)?function(f){return(f-A)/t}:e6(isNaN(t)?NaN:.5)}function f6(A,t){var f;return A>t&&(f=A,A=t,t=f),function(n){return Math.max(A,Math.min(t,n))}}function n6(A,t,f){var n=A[0],v=A[1],w=t[0],r=t[1];return v<n?(n=vr(v,n),w=f(r,w)):(n=vr(n,v),w=f(w,r)),function(s){return w(n(s))}}function v6(A,t,f){var n=Math.min(A.length,t.length)-1,v=new Array(n),w=new Array(n),r=-1;for(A[n]<A[0]&&(A=A.slice().reverse(),t=t.slice().reverse());++r<n;)v[r]=vr(A[r],A[r+1]),w[r]=f(t[r],t[r+1]);return function(s){var g=P0(A,s,1,n)-1;return w[g](v[g](s))}}function r6(A,t){return t.domain(A.domain()).range(A.range()).interpolate(A.interpolate()).clamp(A.clamp()).unknown(A.unknown())}function w6(){var A=Fg,t=Fg,f=Rr,n,v,w,r=lt,s,g,B;function a(){var u=Math.min(A.length,t.length);return r!==lt&&(r=f6(A[0],A[u-1])),s=u>2?v6:n6,g=B=null,o}function o(u){return u==null||isNaN(u=+u)?w:(g||(g=s(A.map(n),t,f)))(n(r(u)))}return o.invert=function(u){return r(v((B||(B=s(t,A.map(n),Pn)))(u)))},o.domain=function(u){return arguments.length?(A=Array.from(u,t6),a()):A.slice()},o.range=function(u){return arguments.length?(t=Array.from(u),a()):t.slice()},o.rangeRound=function(u){return t=Array.from(u),f=A6,a()},o.clamp=function(u){return arguments.length?(r=u?!0:lt,a()):r!==lt},o.interpolate=function(u){return arguments.length?(f=u,a()):f},o.unknown=function(u){return arguments.length?(w=u,o):w},function(u,d){return n=u,v=d,a()}}function s6(){return w6()(lt,lt)}function g6(A){return Math.abs(A=Math.round(A))>=1e21?A.toLocaleString("en").replace(/,/g,""):A.toString(10)}function bn(A,t){if(!isFinite(A)||A===0)return null;var f=(A=t?A.toExponential(t-1):A.toExponential()).indexOf("e"),n=A.slice(0,f);return[n.length>1?n[0]+n.slice(2):n,+A.slice(f+1)]}function Ht(A){return A=bn(Math.abs(A)),A?A[1]:NaN}function B6(A,t){return function(f,n){for(var v=f.length,w=[],r=0,s=A[0],g=0;v>0&&s>0&&(g+s+1>n&&(s=Math.max(1,n-g)),w.push(f.substring(v-=s,v+s)),!((g+=s+1)>n));)s=A[r=(r+1)%A.length];return w.reverse().join(t)}}function a6(A){return function(t){return t.replace(/[0-9]/g,function(f){return A[+f]})}}var o6=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Xn(A){if(!(t=o6.exec(A)))throw new Error("invalid format: "+A);var t;return new Jr({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Xn.prototype=Jr.prototype;function Jr(A){this.fill=A.fill===void 0?" ":A.fill+"",this.align=A.align===void 0?">":A.align+"",this.sign=A.sign===void 0?"-":A.sign+"",this.symbol=A.symbol===void 0?"":A.symbol+"",this.zero=!!A.zero,this.width=A.width===void 0?void 0:+A.width,this.comma=!!A.comma,this.precision=A.precision===void 0?void 0:+A.precision,this.trim=!!A.trim,this.type=A.type===void 0?"":A.type+""}Jr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u6(A){A:for(var t=A.length,f=1,n=-1,v;f<t;++f)switch(A[f]){case".":n=v=f;break;case"0":n===0&&(n=f),v=f;break;default:if(!+A[f])break A;n>0&&(n=0);break}return n>0?A.slice(0,n)+A.slice(v+1):A}var zn;function d6(A,t){var f=bn(A,t);if(!f)return zn=void 0,A.toPrecision(t);var n=f[0],v=f[1],w=v-(zn=Math.max(-8,Math.min(8,Math.floor(v/3)))*3)+1,r=n.length;return w===r?n:w>r?n+new Array(w-r+1).join("0"):w>0?n.slice(0,w)+"."+n.slice(w):"0."+new Array(1-w).join("0")+bn(A,Math.max(0,t+w-1))[0]}function Og(A,t){var f=bn(A,t);if(!f)return A+"";var n=f[0],v=f[1];return v<0?"0."+new Array(-v).join("0")+n:n.length>v+1?n.slice(0,v+1)+"."+n.slice(v+1):n+new Array(v-n.length+2).join("0")}const Eg={"%":(A,t)=>(A*100).toFixed(t),b:A=>Math.round(A).toString(2),c:A=>A+"",d:g6,e:(A,t)=>A.toExponential(t),f:(A,t)=>A.toFixed(t),g:(A,t)=>A.toPrecision(t),o:A=>Math.round(A).toString(8),p:(A,t)=>Og(A*100,t),r:Og,s:d6,X:A=>Math.round(A).toString(16).toUpperCase(),x:A=>Math.round(A).toString(16)};function yg(A){return A}var pg=Array.prototype.map,jg=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function c6(A){var t=A.grouping===void 0||A.thousands===void 0?yg:B6(pg.call(A.grouping,Number),A.thousands+""),f=A.currency===void 0?"":A.currency[0]+"",n=A.currency===void 0?"":A.currency[1]+"",v=A.decimal===void 0?".":A.decimal+"",w=A.numerals===void 0?yg:a6(pg.call(A.numerals,String)),r=A.percent===void 0?"%":A.percent+"",s=A.minus===void 0?"−":A.minus+"",g=A.nan===void 0?"NaN":A.nan+"";function B(o,u){o=Xn(o);var d=o.fill,l=o.align,C=o.sign,c=o.symbol,D=o.zero,i=o.width,b=o.comma,X=o.precision,P=o.trim,L=o.type;L==="n"?(b=!0,L="g"):Eg[L]||(X===void 0&&(X=12),P=!0,L="g"),(D||d==="0"&&l==="=")&&(D=!0,d="0",l="=");var x=(u&&u.prefix!==void 0?u.prefix:"")+(c==="$"?f:c==="#"&&/[boxX]/.test(L)?"0"+L.toLowerCase():""),z=(c==="$"?n:/[%p]/.test(L)?r:"")+(u&&u.suffix!==void 0?u.suffix:""),H=Eg[L],N=/[defgprs%]/.test(L);X=X===void 0?6:/[gprs]/.test(L)?Math.max(1,Math.min(21,X)):Math.max(0,Math.min(20,X));function Q(m){var G=x,M=z,Y,h,p;if(L==="c")M=H(m)+M,m="";else{m=+m;var F=m<0||1/m<0;if(m=isNaN(m)?g:H(Math.abs(m),X),P&&(m=u6(m)),F&&+m==0&&C!=="+"&&(F=!1),G=(F?C==="("?C:s:C==="-"||C==="("?"":C)+G,M=(L==="s"&&!isNaN(m)&&zn!==void 0?jg[8+zn/3]:"")+M+(F&&C==="("?")":""),N){for(Y=-1,h=m.length;++Y<h;)if(p=m.charCodeAt(Y),48>p||p>57){M=(p===46?v+m.slice(Y+1):m.slice(Y))+M,m=m.slice(0,Y);break}}}b&&!D&&(m=t(m,1/0));var S=G.length+m.length+M.length,nA=S<i?new Array(i-S+1).join(d):"";switch(b&&D&&(m=t(nA+m,nA.length?i-M.length:1/0),nA=""),l){case"<":m=G+m+M+nA;break;case"=":m=G+nA+m+M;break;case"^":m=nA.slice(0,S=nA.length>>1)+G+m+M+nA.slice(S);break;default:m=nA+G+m+M;break}return w(m)}return Q.toString=function(){return o+""},Q}function a(o,u){var d=Math.max(-8,Math.min(8,Math.floor(Ht(u)/3)))*3,l=Math.pow(10,-d),C=B((o=Xn(o),o.type="f",o),{suffix:jg[8+d/3]});return function(c){return C(l*c)}}return{format:B,formatPrefix:a}}var qf,a9,o9;i6({thousands:",",grouping:[3],currency:["$",""]});function i6(A){return qf=c6(A),a9=qf.format,o9=qf.formatPrefix,qf}function l6(A){return Math.max(0,-Ht(Math.abs(A)))}function D6(A,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ht(t)/3)))*3-Ht(Math.abs(A)))}function C6(A,t){return A=Math.abs(A),t=Math.abs(t)-A,Math.max(0,Ht(t)-Ht(A))+1}function P6(A,t,f,n){var v=m0(A,t,f),w;switch(n=Xn(n??",f"),n.type){case"s":{var r=Math.max(Math.abs(A),Math.abs(t));return n.precision==null&&!isNaN(w=D6(v,r))&&(n.precision=w),o9(n,r)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(w=C6(v,Math.max(Math.abs(A),Math.abs(t))))&&(n.precision=w-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(w=l6(v))&&(n.precision=w-(n.type==="%")*2);break}}return a9(n)}function b6(A){var t=A.domain;return A.ticks=function(f){var n=t();return Y0(n[0],n[n.length-1],f??10)},A.tickFormat=function(f,n){var v=t();return P6(v[0],v[v.length-1],f??10,n)},A.nice=function(f){f==null&&(f=10);var n=t(),v=0,w=n.length-1,r=n[v],s=n[w],g,B,a=10;for(s<r&&(B=r,r=s,s=B,B=v,v=w,w=B);a-- >0;){if(B=tr(r,s,f),B===g)return n[v]=r,n[w]=s,t(n);if(B>0)r=Math.floor(r/B)*B,s=Math.ceil(s/B)*B;else if(B<0)r=Math.ceil(r*B)/B,s=Math.floor(s*B)/B;else break;g=B}return A},A}function u9(){var A=s6();return A.copy=function(){return r6(A,u9())},qr.apply(A,arguments),b6(A)}function X6(A){return Array.isArray(A)&&A.length===2&&Number.isFinite(A[0])&&Number.isFinite(A[1])&&A[0]<A[1]}const ot={top:12,right:14,bottom:24,left:38},z6=56,L6=12;function M6(A){return A.length*6.5}function On(A){const t=e.ref(600);let f=null;e.onMounted(()=>{const D=A.wrapperRef.value;D&&(t.value=D.clientWidth||600,f=new ResizeObserver(i=>{const b=i[0]?.contentRect.width;b&&(t.value=b)}),f.observe(D))}),e.onBeforeUnmount(()=>f?.disconnect());const n=e.computed(()=>Math.max(0,t.value-ot.left-ot.right)),v=e.computed(()=>Math.max(0,A.height()-ot.top-ot.bottom)),w=e.computed(()=>A.data().map(D=>String(D[A.xKey()]))),r=e.computed(()=>G0().domain(w.value).range([0,n.value])),s=e.computed(()=>Mf().domain(w.value).range([0,n.value]).padding(A.bandPadding??.3)),g=e.computed(()=>{let D=0;for(const i of A.data())for(const b of A.yKeys()){const X=Number(i[b])||0;X>D&&(D=X)}return D}),B=e.computed(()=>{const D=A.yDomain?.();return X6(D)?[D[0],D[1]]:[0,g.value*1.1||1]}),a=e.computed(()=>u9().domain(B.value).range([v.value,0])),o=e.computed(()=>a.value.ticks(4)),u=e.computed(()=>{const D=w.value.length;if(D===0)return[];const i=w.value.reduce((z,H)=>Math.max(z,M6(H)),0),b=Math.max(z6,i+L6),X=Math.max(1,Math.floor(n.value/b));if(D<=X)return Array.from({length:D},(z,H)=>H);const P=Math.ceil(D/X),L=[];for(let z=0;z<D;z+=P)L.push(z);const x=D-1;return L[L.length-1]!==x&&(x-L[L.length-1]<P*.6&&L.pop(),L.push(x)),L});function d(D){const i=u.value;return i.length<=1?"middle":D===i[0]?"start":D===i[i.length-1]?"end":"middle"}const l=e.ref(null);function C(D){const i=A.wrapperRef.value,b=w.value.length;if(!i||b===0)return;const X=i.getBoundingClientRect(),P=D.clientX-X.left-ot.left,L=A.mode==="band"?Math.floor(P/(n.value/b)):Math.round(P/(n.value/Math.max(1,b-1)));l.value=Math.max(0,Math.min(b-1,L))}function c(){l.value=null}return{width:t,margin:ot,innerW:n,innerH:v,categories:w,xPoint:r,xBand:s,y:a,yDomain:B,yTicks:o,xTickIndices:u,xTickAnchor:d,maxY:g,hoverIndex:l,onMove:C,onLeave:c}}const H6={key:0,class:"mb-1 font-medium text-foreground"},Y6={class:"text-gray-darkest"},m6={class:"ml-auto font-medium text-foreground"},Nt=e.defineComponent({__name:"ChartTooltip",props:{visible:{type:Boolean},x:{},y:{},title:{},items:{},style:{}},setup(A){return(t,f)=>A.visible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"pointer-events-none absolute z-10 -translate-x-1/2 -translate-y-full px-3 py-2 text-xs",style:e.normalizeStyle({left:`${A.x}px`,top:`${A.y-8}px`,background:A.style.background,border:`1px solid ${A.style.border}`,borderRadius:`${A.style.radius}px`,boxShadow:A.style.shadow})},[A.title?(e.openBlock(),e.createElementBlock("div",H6,e.toDisplayString(A.title),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.items,n=>(e.openBlock(),e.createElementBlock("div",{key:n.label,class:"flex items-center gap-2 whitespace-nowrap"},[e.createElementVNode("span",{class:"inline-block h-2 w-2 rounded-sm",style:e.normalizeStyle({background:n.color})},null,4),e.createElementVNode("span",Y6,e.toDisplayString(n.label),1),e.createElementVNode("span",m6,e.toDisplayString(n.value),1)]))),128))],4)):e.createCommentVNode("",!0)}}),x6=["width","height","viewBox"],G6=["id"],h6=["stop-color"],N6=["stop-color"],Q6=["transform"],F6=["x2","y1","y2","stroke"],O6=["y","fill"],E6=["x","y","text-anchor","fill"],y6=["x1","x2","y2","stroke"],p6=e.defineComponent({__name:"EvxAreaChart",props:{data:{},xKey:{default:"x"},yKeys:{default:()=>["y"]},seriesLabels:{},height:{default:260},yDomain:{}},setup(A){const t=A,{colors:f,axis:n,grid:v,tooltip:w}=tt(),r=e.useId(),s=e.ref(null),{width:g,margin:B,innerW:a,innerH:o,categories:u,xPoint:d,y:l,yTicks:C,xTickIndices:c,xTickAnchor:D,hoverIndex:i,onMove:b,onLeave:X}=On({wrapperRef:s,data:()=>t.data,xKey:()=>t.xKey,yKeys:()=>t.yKeys,height:()=>t.height,yDomain:()=>t.yDomain}),P=e.computed(()=>{const x=d.value,z=l.value;return t.yKeys.map((H,N)=>{const Q=f.value[N%f.value.length],m=o0().x(M=>x(String(M[t.xKey]))??0).y0(o.value).y1(M=>z(Number(M[H])||0)).curve(cn),G=Fn().x(M=>x(String(M[t.xKey]))??0).y(M=>z(Number(M[H])||0)).curve(cn);return{key:H,label:t.seriesLabels?.[N]??H,color:Q,areaPath:m(t.data)??"",linePath:G(t.data)??"",fillId:`evx-area-${r}-${N}`}})}),L=e.computed(()=>{if(i.value===null)return null;const x=t.data[i.value];if(!x)return null;const z=(d.value(String(x[t.xKey]))??0)+B.left,H=P.value.map(Q=>({label:Q.label,color:Q.color,value:Number(x[Q.key])||0})),N=B.top+Math.min(...t.yKeys.map(Q=>l.value(Number(x[Q])||0)));return{px:z,topY:N,title:String(x[t.xKey]),items:H}});return(x,z)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:s,class:"relative w-full",style:e.normalizeStyle({height:`${A.height}px`})},[(e.openBlock(),e.createElementBlock("svg",{width:e.unref(g),height:A.height,viewBox:`0 0 ${e.unref(g)} ${A.height}`,onMousemove:z[0]||(z[0]=(...H)=>e.unref(b)&&e.unref(b)(...H)),onMouseleave:z[1]||(z[1]=(...H)=>e.unref(X)&&e.unref(X)(...H))},[e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P.value,H=>(e.openBlock(),e.createElementBlock("linearGradient",{id:H.fillId,key:H.fillId,x1:"0",y1:"0",x2:"0",y2:"1"},[e.createElementVNode("stop",{offset:"0%","stop-color":H.color,"stop-opacity":"0.6"},null,8,h6),e.createElementVNode("stop",{offset:"100%","stop-color":H.color,"stop-opacity":"0.05"},null,8,N6)],8,G6))),128))]),e.createElementVNode("g",{transform:`translate(${e.unref(B).left},${e.unref(B).top})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(C),H=>(e.openBlock(),e.createElementBlock("line",{key:`g-${H}`,x1:"0",x2:e.unref(a),y1:e.unref(l)(H),y2:e.unref(l)(H),stroke:e.unref(v),"stroke-dasharray":"3 3"},null,8,F6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(C),H=>(e.openBlock(),e.createElementBlock("text",{key:`yl-${H}`,x:"-8",y:e.unref(l)(H),dy:"0.32em","text-anchor":"end",fill:e.unref(n),"font-size":"11"},e.toDisplayString(H),9,O6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),H=>(e.openBlock(),e.createElementBlock("text",{key:`xl-${e.unref(u)[H]}-${H}`,x:e.unref(d)(e.unref(u)[H]),y:e.unref(o)+18,"text-anchor":e.unref(D)(H),fill:e.unref(n),"font-size":"11"},e.toDisplayString(e.unref(u)[H]),9,E6))),128)),L.value?(e.openBlock(),e.createElementBlock("line",{key:0,x1:L.value.px-e.unref(B).left,x2:L.value.px-e.unref(B).left,y1:"0",y2:e.unref(o),stroke:e.unref(n),"stroke-opacity":"0.25"},null,8,y6)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P.value,H=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:H.key},[e.createVNode(e.unref(De),{as:"path",d:H.areaPath,fill:`url(#${H.fillId})`,initial:{opacity:0},animate:{opacity:1},transition:{duration:.5}},null,8,["d","fill"]),e.createVNode(e.unref(De),{as:"path",d:H.linePath,fill:"none",stroke:H.color,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",initial:{pathLength:0},animate:{pathLength:1},transition:{duration:.7,ease:"easeOut"}},null,8,["d","stroke"])],64))),128))],8,Q6)],40,x6)),L.value?(e.openBlock(),e.createBlock(Nt,{key:0,visible:!0,x:L.value.px,y:L.value.topY,title:L.value.title,items:L.value.items,style:e.normalizeStyle(e.unref(w))},null,8,["x","y","title","items","style"])):e.createCommentVNode("",!0)],4))}}),j6=["width","height","viewBox"],I6=["transform"],V6=["x2","y1","y2","stroke"],T6=["y","fill"],W6=["x","y","text-anchor","fill"],Z6=e.defineComponent({__name:"EvxBarChart",props:{data:{},xKey:{default:"x"},yKeys:{default:()=>["y"]},seriesLabels:{},height:{default:260},yDomain:{}},setup(A){const t=A,{colors:f,axis:n,grid:v,tooltip:w}=tt(),r=e.ref(null),{width:s,margin:g,innerW:B,innerH:a,categories:o,xBand:u,y:d,yTicks:l,xTickIndices:C,xTickAnchor:c,hoverIndex:D,onMove:i,onLeave:b}=On({wrapperRef:r,data:()=>t.data,xKey:()=>t.xKey,yKeys:()=>t.yKeys,height:()=>t.height,mode:"band",yDomain:()=>t.yDomain}),X=e.computed(()=>Mf().domain(t.yKeys).range([0,u.value.bandwidth()]).padding(.15)),P=e.computed(()=>{const x=[],z=X.value;for(const H of t.data){const N=u.value(String(H[t.xKey]))??0;t.yKeys.forEach((Q,m)=>{const G=Number(H[Q])||0,M=d.value(G),Y=Math.max(0,Math.min(M,a.value));x.push({key:`${H[t.xKey]}-${Q}`,x:N+(z(Q)??0),y:Y,w:z.bandwidth(),h:a.value-Y,color:f.value[m%f.value.length]})})}return x}),L=e.computed(()=>{if(D.value===null)return null;const x=t.data[D.value];if(!x)return null;const z=g.left+(u.value(String(x[t.xKey]))??0)+u.value.bandwidth()/2,H=t.yKeys.map((Q,m)=>({label:t.seriesLabels?.[m]??Q,color:f.value[m%f.value.length],value:Number(x[Q])||0})),N=g.top+Math.min(...t.yKeys.map(Q=>d.value(Number(x[Q])||0)));return{px:z,topY:N,title:String(x[t.xKey]),items:H}});return(x,z)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:r,class:"relative w-full",style:e.normalizeStyle({height:`${A.height}px`})},[(e.openBlock(),e.createElementBlock("svg",{width:e.unref(s),height:A.height,viewBox:`0 0 ${e.unref(s)} ${A.height}`,onMousemove:z[0]||(z[0]=(...H)=>e.unref(i)&&e.unref(i)(...H)),onMouseleave:z[1]||(z[1]=(...H)=>e.unref(b)&&e.unref(b)(...H))},[e.createElementVNode("g",{transform:`translate(${e.unref(g).left},${e.unref(g).top})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),H=>(e.openBlock(),e.createElementBlock("line",{key:`g-${H}`,x1:"0",x2:e.unref(B),y1:e.unref(d)(H),y2:e.unref(d)(H),stroke:e.unref(v),"stroke-dasharray":"3 3"},null,8,V6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),H=>(e.openBlock(),e.createElementBlock("text",{key:`yl-${H}`,x:"-8",y:e.unref(d)(H),dy:"0.32em","text-anchor":"end",fill:e.unref(n),"font-size":"11"},e.toDisplayString(H),9,T6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(C),H=>(e.openBlock(),e.createElementBlock("text",{key:`xl-${e.unref(o)[H]}-${H}`,x:(e.unref(u)(e.unref(o)[H])??0)+e.unref(u).bandwidth()/2,y:e.unref(a)+18,"text-anchor":e.unref(c)(H),fill:e.unref(n),"font-size":"11"},e.toDisplayString(e.unref(o)[H]),9,W6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P.value,H=>(e.openBlock(),e.createBlock(e.unref(De),{key:H.key,as:"rect",x:H.x,y:H.y,width:H.w,height:H.h,rx:"6",fill:H.color,style:{transformBox:"fill-box",transformOrigin:"bottom"},initial:{scaleY:0},animate:{scaleY:1},transition:{duration:.5,ease:"easeOut"}},null,8,["x","y","width","height","fill"]))),128))],8,I6)],40,j6)),L.value?(e.openBlock(),e.createBlock(Nt,{key:0,visible:!0,x:L.value.px,y:L.value.topY,title:L.value.title,items:L.value.items,style:e.normalizeStyle(e.unref(w))},null,8,["x","y","title","items","style"])):e.createCommentVNode("",!0)],4))}}),q6=["width","height","viewBox"],K6=["transform"],k6=["x2","y1","y2","stroke"],R6=["y","fill"],J6=["x","y","text-anchor","fill"],U6=["x1","x2","y2","stroke"],S6=e.defineComponent({__name:"EvxLineChart",props:{data:{},xKey:{default:"x"},yKeys:{default:()=>["y"]},seriesLabels:{},height:{default:260},yDomain:{}},setup(A){const t=A,{colors:f,axis:n,grid:v,tooltip:w}=tt(),r=e.ref(null),{width:s,margin:g,innerW:B,innerH:a,categories:o,xPoint:u,y:d,yTicks:l,xTickIndices:C,xTickAnchor:c,hoverIndex:D,onMove:i,onLeave:b}=On({wrapperRef:r,data:()=>t.data,xKey:()=>t.xKey,yKeys:()=>t.yKeys,height:()=>t.height,yDomain:()=>t.yDomain}),X=e.computed(()=>{const L=u.value,x=d.value;return t.yKeys.map((z,H)=>{const N=Fn().x(Q=>L(String(Q[t.xKey]))??0).y(Q=>x(Number(Q[z])||0)).curve(cn);return{key:z,label:t.seriesLabels?.[H]??z,color:f.value[H%f.value.length],linePath:N(t.data)??""}})}),P=e.computed(()=>{if(D.value===null)return null;const L=t.data[D.value];if(!L)return null;const x=(u.value(String(L[t.xKey]))??0)+g.left,z=X.value.map(N=>({label:N.label,color:N.color,value:Number(L[N.key])||0})),H=g.top+Math.min(...t.yKeys.map(N=>d.value(Number(L[N])||0)));return{px:x,topY:H,title:String(L[t.xKey]),items:z}});return(L,x)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:r,class:"relative w-full",style:e.normalizeStyle({height:`${A.height}px`})},[(e.openBlock(),e.createElementBlock("svg",{width:e.unref(s),height:A.height,viewBox:`0 0 ${e.unref(s)} ${A.height}`,onMousemove:x[0]||(x[0]=(...z)=>e.unref(i)&&e.unref(i)(...z)),onMouseleave:x[1]||(x[1]=(...z)=>e.unref(b)&&e.unref(b)(...z))},[e.createElementVNode("g",{transform:`translate(${e.unref(g).left},${e.unref(g).top})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),z=>(e.openBlock(),e.createElementBlock("line",{key:`g-${z}`,x1:"0",x2:e.unref(B),y1:e.unref(d)(z),y2:e.unref(d)(z),stroke:e.unref(v),"stroke-dasharray":"3 3"},null,8,k6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),z=>(e.openBlock(),e.createElementBlock("text",{key:`yl-${z}`,x:"-8",y:e.unref(d)(z),dy:"0.32em","text-anchor":"end",fill:e.unref(n),"font-size":"11"},e.toDisplayString(z),9,R6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(C),z=>(e.openBlock(),e.createElementBlock("text",{key:`xl-${e.unref(o)[z]}-${z}`,x:e.unref(u)(e.unref(o)[z]),y:e.unref(a)+18,"text-anchor":e.unref(c)(z),fill:e.unref(n),"font-size":"11"},e.toDisplayString(e.unref(o)[z]),9,J6))),128)),P.value?(e.openBlock(),e.createElementBlock("line",{key:0,x1:P.value.px-e.unref(g).left,x2:P.value.px-e.unref(g).left,y1:"0",y2:e.unref(a),stroke:e.unref(n),"stroke-opacity":"0.25"},null,8,U6)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(X.value,z=>(e.openBlock(),e.createBlock(e.unref(De),{key:z.key,as:"path",d:z.linePath,fill:"none",stroke:z.color,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",initial:{pathLength:0},animate:{pathLength:1},transition:{duration:.7,ease:"easeOut"}},null,8,["d","stroke"]))),128))],8,K6)],40,q6)),P.value?(e.openBlock(),e.createBlock(Nt,{key:0,visible:!0,x:P.value.px,y:P.value.topY,title:P.value.title,items:P.value.items,style:e.normalizeStyle(e.unref(w))},null,8,["x","y","title","items","style"])):e.createCommentVNode("",!0)],4))}}),$6=["width","height","viewBox"],_6=["transform"],AM=e.defineComponent({__name:"EvxPieChart",props:{data:{},nameKey:{default:"name"},valueKey:{default:"value"},donut:{type:Boolean,default:!1},height:{default:260}},setup(A){const t=A,{colors:f,tooltip:n}=tt(),v=e.computed(()=>n.value.background),w=e.ref(null),r=e.ref(600);let s=null;e.onMounted(()=>{const C=w.value;C&&(r.value=C.clientWidth||600,s=new ResizeObserver(c=>{const D=c[0]?.contentRect.width;D&&(r.value=D)}),s.observe(C))}),e.onBeforeUnmount(()=>s?.disconnect());const g=e.computed(()=>r.value/2),B=e.computed(()=>t.height/2),a=e.computed(()=>Math.max(0,Math.min(r.value,t.height)/2-8)),o=e.computed(()=>t.donut?a.value*.75:0),u=e.computed(()=>{const C=c0().value(D=>Number(D[t.valueKey])||0).sort(null),c=er().innerRadius(o.value).outerRadius(a.value).cornerRadius(2).padAngle(.05);return C(t.data).map((D,i)=>({key:`${D.data[t.nameKey]}-${i}`,label:String(D.data[t.nameKey]),value:Number(D.data[t.valueKey])||0,color:f.value[i%f.value.length],path:c({startAngle:D.startAngle,endAngle:D.endAngle})??""}))}),d=e.ref(null),l=e.computed(()=>{if(d.value===null)return null;const C=u.value[d.value];if(!C)return null;const c=[{label:C.label,color:C.color,value:C.value}];return{px:g.value,topY:B.value-a.value,title:C.label,items:c}});return(C,c)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:w,class:"relative w-full",style:e.normalizeStyle({height:`${A.height}px`})},[(e.openBlock(),e.createElementBlock("svg",{width:r.value,height:A.height,viewBox:`0 0 ${r.value} ${A.height}`},[e.createElementVNode("g",{transform:`translate(${g.value},${B.value})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(D,i)=>(e.openBlock(),e.createBlock(e.unref(De),{key:D.key,as:"path",d:D.path,fill:D.color,stroke:v.value,"stroke-width":"2","stroke-linejoin":"round",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.4,ease:"easeOut"},onMouseenter:b=>d.value=i,onMouseleave:c[0]||(c[0]=b=>d.value=null)},null,8,["d","fill","stroke","onMouseenter"]))),128))],8,_6)],8,$6)),l.value?(e.openBlock(),e.createBlock(Nt,{key:0,visible:!0,x:l.value.px,y:l.value.topY,title:l.value.title,items:l.value.items,style:e.normalizeStyle(e.unref(n))},null,8,["x","y","title","items","style"])):e.createCommentVNode("",!0)],4))}}),eM=["width","height","viewBox"],tM=["points","stroke"],fM=["x1","y1","x2","y2","stroke"],nM=["x","y","fill"],vM=e.defineComponent({__name:"EvxRadarChart",props:{data:{},nameKey:{default:"name"},valueKeys:{default:()=>["value"]},seriesLabels:{},height:{default:260}},setup(A){const t=A,{colors:f,axis:n,tooltip:v}=tt(),w=e.computed(()=>v.value.border),r=e.ref(null),s=e.ref(600);let g=null;e.onMounted(()=>{const i=r.value;i&&(s.value=i.clientWidth||600,g=new ResizeObserver(b=>{const X=b[0]?.contentRect.width;X&&(s.value=X)}),g.observe(i))}),e.onBeforeUnmount(()=>g?.disconnect());const B=e.computed(()=>s.value/2),a=e.computed(()=>t.height/2),o=e.computed(()=>Math.max(0,Math.min(s.value,t.height)/2-28)),u=e.computed(()=>t.data.map(i=>String(i[t.nameKey]))),d=e.computed(()=>{let i=0;for(const b of t.data)for(const X of t.valueKeys){const P=Number(b[X])||0;P>i&&(i=P)}return i||1});function l(i,b,X){const P=Math.PI*2*b/X-Math.PI/2,L=i/d.value*o.value;return[B.value+Math.cos(P)*L,a.value+Math.sin(P)*L]}const C=e.computed(()=>{const i=u.value.length;return[.25,.5,.75,1].map(b=>u.value.map((X,P)=>{const[L,x]=l(d.value*b,P,i);return`${L},${x}`}).join(" "))}),c=e.computed(()=>{const i=u.value.length;return u.value.map((b,X)=>{const[P,L]=l(d.value,X,i),[x,z]=l(d.value*1.12,X,i);return{x:P,y:L,lx:x,ly:z,label:b}})}),D=e.computed(()=>{const i=u.value.length;return t.valueKeys.map((b,X)=>({key:b,label:t.seriesLabels?.[X]??b,color:f.value[X%f.value.length],points:t.data.map((P,L)=>{const[x,z]=l(Number(P[b])||0,L,i);return`${x},${z}`}).join(" ")}))});return(i,b)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:r,class:"relative w-full",style:e.normalizeStyle({height:`${A.height}px`})},[(e.openBlock(),e.createElementBlock("svg",{width:s.value,height:A.height,viewBox:`0 0 ${s.value} ${A.height}`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(X,P)=>(e.openBlock(),e.createElementBlock("polygon",{key:`ring-${P}`,points:X,fill:"none",stroke:w.value},null,8,tM))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(X,P)=>(e.openBlock(),e.createElementBlock("line",{key:`spoke-${P}`,x1:B.value,y1:a.value,x2:X.x,y2:X.y,stroke:w.value},null,8,fM))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(X,P)=>(e.openBlock(),e.createElementBlock("text",{key:`axis-${P}`,x:X.lx,y:X.ly,"text-anchor":"middle",dy:"0.32em",fill:e.unref(n),"font-size":"11"},e.toDisplayString(X.label),9,nM))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D.value,X=>(e.openBlock(),e.createBlock(e.unref(De),{key:X.key,as:"polygon",points:X.points,fill:X.color,"fill-opacity":"0.18",stroke:X.color,"stroke-width":"2",initial:{opacity:0},animate:{opacity:1},transition:{duration:.5,ease:"easeOut"}},null,8,["points","fill","stroke"]))),128))],8,eM))],4))}}),rM=["width","height","viewBox"],wM=["transform"],sM=["d","fill"],gM=e.defineComponent({__name:"EvxRadialChart",props:{data:{},nameKey:{default:"name"},valueKey:{default:"value"},max:{},height:{default:260}},setup(A){const t=A,{colors:f,grid:n,tooltip:v}=tt(),w=e.ref(null),r=e.ref(600);let s=null;e.onMounted(()=>{const C=w.value;C&&(r.value=C.clientWidth||600,s=new ResizeObserver(c=>{const D=c[0]?.contentRect.width;D&&(r.value=D)}),s.observe(C))}),e.onBeforeUnmount(()=>s?.disconnect());const g=e.computed(()=>r.value/2),B=e.computed(()=>t.height/2),a=e.computed(()=>Math.max(0,Math.min(r.value,t.height)/2-8)),o=e.computed(()=>{if(t.max)return t.max;let C=0;for(const c of t.data){const D=Number(c[t.valueKey])||0;D>C&&(C=D)}return C||1}),u=e.computed(()=>{const C=t.data.length,c=a.value*.7/Math.max(1,C),D=c*.25;return t.data.map((i,b)=>{const X=a.value-b*c,P=X-(c-D),L=Number(i[t.valueKey])||0,x=Math.max(0,Math.min(1,L/o.value)),z=Math.min(8,c-D),H=er().innerRadius(P).outerRadius(X).startAngle(0).endAngle(Math.PI*2).cornerRadius(z),N=er().innerRadius(P).outerRadius(X).startAngle(0).endAngle(Math.PI*2*x).cornerRadius(z);return{key:`${i[t.nameKey]}-${b}`,label:String(i[t.nameKey]),value:L,color:f.value[b%f.value.length],track:H(null)??"",fill:N(null)??""}})}),d=e.ref(null),l=e.computed(()=>{if(d.value===null)return null;const C=u.value[d.value];if(!C)return null;const c=[{label:C.label,color:C.color,value:C.value}];return{px:g.value,topY:B.value-a.value,title:C.label,items:c}});return(C,c)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:w,class:"relative w-full",style:e.normalizeStyle({height:`${A.height}px`})},[(e.openBlock(),e.createElementBlock("svg",{width:r.value,height:A.height,viewBox:`0 0 ${r.value} ${A.height}`},[e.createElementVNode("g",{transform:`translate(${g.value},${B.value})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,D=>(e.openBlock(),e.createElementBlock("path",{key:`track-${D.key}`,d:D.track,fill:e.unref(n)},null,8,sM))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(D,i)=>(e.openBlock(),e.createBlock(e.unref(De),{key:`fill-${D.key}`,as:"path",d:D.fill,fill:D.color,initial:{opacity:0},animate:{opacity:1},transition:{duration:.5,ease:"easeOut"},onMouseenter:b=>d.value=i,onMouseleave:c[0]||(c[0]=b=>d.value=null)},null,8,["d","fill","onMouseenter"]))),128))],8,wM)],8,rM)),l.value?(e.openBlock(),e.createBlock(Nt,{key:0,visible:!0,x:l.value.px,y:l.value.topY,title:l.value.title,items:l.value.items,style:e.normalizeStyle(e.unref(v))},null,8,["x","y","title","items","style"])):e.createCommentVNode("",!0)],4))}}),BM=["width","height","viewBox"],aM=["transform"],oM=["x2","y1","y2","stroke"],uM=["y","fill"],dM=["x","y","text-anchor","fill"],cM=e.defineComponent({__name:"EvxComposedChart",props:{data:{},xKey:{default:"x"},barKeys:{default:()=>["bar"]},lineKeys:{default:()=>["line"]},seriesLabels:{},height:{default:260},yDomain:{}},setup(A){const t=A,f=e.computed(()=>[...t.barKeys,...t.lineKeys]),{colors:n,axis:v,grid:w,tooltip:r}=tt(),s=e.ref(null),{width:g,margin:B,innerW:a,innerH:o,categories:u,xBand:d,y:l,yTicks:C,xTickIndices:c,xTickAnchor:D,hoverIndex:i,onMove:b,onLeave:X}=On({wrapperRef:s,data:()=>t.data,xKey:()=>t.xKey,yKeys:()=>f.value,height:()=>t.height,mode:"band",yDomain:()=>t.yDomain}),P=e.computed(()=>Mf().domain(t.barKeys).range([0,d.value.bandwidth()]).padding(.15)),L=N=>n.value[f.value.indexOf(N)%n.value.length],x=e.computed(()=>{const N=[],Q=P.value;for(const m of t.data){const G=d.value(String(m[t.xKey]))??0;t.barKeys.forEach(M=>{const Y=Number(m[M])||0,h=l.value(Y),p=Math.max(0,Math.min(h,o.value));N.push({key:`${m[t.xKey]}-${M}`,x:G+(Q(M)??0),y:p,w:Q.bandwidth(),h:o.value-p,color:L(M)})})}return N}),z=e.computed(()=>t.lineKeys.map(N=>{const Q=Fn().x(m=>(d.value(String(m[t.xKey]))??0)+d.value.bandwidth()/2).y(m=>l.value(Number(m[N])||0)).curve(cn);return{key:N,color:L(N),path:Q(t.data)??""}})),H=e.computed(()=>{if(i.value===null)return null;const N=t.data[i.value];if(!N)return null;const Q=B.left+(d.value(String(N[t.xKey]))??0)+d.value.bandwidth()/2,m=f.value.map((M,Y)=>({label:t.seriesLabels?.[Y]??M,color:L(M),value:Number(N[M])||0})),G=B.top+Math.min(...f.value.map(M=>l.value(Number(N[M])||0)));return{px:Q,topY:G,title:String(N[t.xKey]),items:m}});return(N,Q)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:s,class:"relative w-full",style:e.normalizeStyle({height:`${A.height}px`})},[(e.openBlock(),e.createElementBlock("svg",{width:e.unref(g),height:A.height,viewBox:`0 0 ${e.unref(g)} ${A.height}`,onMousemove:Q[0]||(Q[0]=(...m)=>e.unref(b)&&e.unref(b)(...m)),onMouseleave:Q[1]||(Q[1]=(...m)=>e.unref(X)&&e.unref(X)(...m))},[e.createElementVNode("g",{transform:`translate(${e.unref(B).left},${e.unref(B).top})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(C),m=>(e.openBlock(),e.createElementBlock("line",{key:`g-${m}`,x1:"0",x2:e.unref(a),y1:e.unref(l)(m),y2:e.unref(l)(m),stroke:e.unref(w),"stroke-dasharray":"3 3"},null,8,oM))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(C),m=>(e.openBlock(),e.createElementBlock("text",{key:`yl-${m}`,x:"-8",y:e.unref(l)(m),dy:"0.32em","text-anchor":"end",fill:e.unref(v),"font-size":"11"},e.toDisplayString(m),9,uM))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),m=>(e.openBlock(),e.createElementBlock("text",{key:`xl-${e.unref(u)[m]}-${m}`,x:(e.unref(d)(e.unref(u)[m])??0)+e.unref(d).bandwidth()/2,y:e.unref(o)+18,"text-anchor":e.unref(D)(m),fill:e.unref(v),"font-size":"11"},e.toDisplayString(e.unref(u)[m]),9,dM))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,m=>(e.openBlock(),e.createBlock(e.unref(De),{key:m.key,as:"rect",x:m.x,y:m.y,width:m.w,height:m.h,rx:"6",fill:m.color,style:{transformBox:"fill-box",transformOrigin:"bottom"},initial:{scaleY:0},animate:{scaleY:1},transition:{duration:.5,ease:"easeOut"}},null,8,["x","y","width","height","fill"]))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(z.value,m=>(e.openBlock(),e.createBlock(e.unref(De),{key:m.key,as:"path",d:m.path,fill:"none",stroke:m.color,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",initial:{pathLength:0},animate:{pathLength:1},transition:{duration:.7,ease:"easeOut"}},null,8,["d","stroke"]))),128))],8,aM)],40,BM)),H.value?(e.openBlock(),e.createBlock(Nt,{key:0,visible:!0,x:H.value.px,y:H.value.topY,title:H.value.title,items:H.value.items,style:e.normalizeStyle(e.unref(r))},null,8,["x","y","title","items","style"])):e.createCommentVNode("",!0)],4))}});exports.AmazonLogoIcon=wA.AmazonLogoIcon;exports.ArrowLeftIcon=wA._sfc_main$2;exports.CrossIcon=wA._sfc_main;exports.EvixLogo=wA.EvixLogo;exports.EvixLogoMark=wA.EvixLogoMark;exports.LenseIcon=wA._sfc_main$1;exports.LogOutIcon=wA.LogOutIcon;exports.MinusIcon=wA.MinusIcon;exports.PlusIcon=wA.PlusIcon;exports.UserIcon=wA.UserIcon;exports.AccountInfo=Vi;exports.BadgeFilters=Bi;exports.BrandCard=Yc;exports.CredentialForm=Vd;exports.EV_RESPONSIVE_HEADER_DEFAULTS=TA;exports.EvAccordion=Lc;exports.EvAlert=rl;exports.EvAppBackground=cP;exports.EvBackground=dr;exports.EvBackgroundAnimated=Fc;exports.EvBackgroundStatic=Oc;exports.EvBadge=jc;exports.EvBrandBackdrop=pc;exports.EvButton=ge;exports.EvCard=vB;exports.EvCardActions=gB;exports.EvCardAvatar=pP;exports.EvCardField=sB;exports.EvCardHeader=hP;exports.EvCardMedia=YP;exports.EvCardMeta=EP;exports.EvCardOverlayBadge=mP;exports.EvCardSection=wB;exports.EvCardSubtitle=QP;exports.EvCardTitle=rB;exports.EvCategoryLabel=G1;exports.EvCheckbox=Ad;exports.EvComboboxSelect=J8;exports.EvConfirmDialog=gP;exports.EvCookieBanner=PP;exports.EvCopyField=E1;exports.EvCurrencyAmountField=G7;exports.EvCurrencySelect=c7;exports.EvDataCard=BB;exports.EvDataTable=a1;exports.EvDatePicker=VC;exports.EvDropdown=Nl;exports.EvFilterChip=RC;exports.EvFooter=wi;exports.EvGlassCard=uP;exports.EvHeader=Kd;exports.EvHowToStep=LP;exports.EvIcon=LA;exports.EvIconButton=fP;exports.EvInput=N8;exports.EvInsightBar=$7;exports.EvList=oi;exports.EvListItem=bi;exports.EvMenu=q1;exports.EvMenuDivider=J1;exports.EvMenuItem=R1;exports.EvMultiSelect=i2;exports.EvPagination=kC;exports.EvPeriodSelector=K7;exports.EvPhoneInput=LC;exports.EvPopup=R8;exports.EvProgressBar=R7;exports.EvRadio=Fd;exports.EvRadioGroup=Ld;exports.EvRadioLabel=xd;exports.EvRadioOption=md;exports.EvResponsiveHeader=dc;exports.EvSearch=Q8;exports.EvSegmentedControl=k8;exports.EvSelect=Ml;exports.EvSidebar=v7;exports.EvSidebarItem=w7;exports.EvSidebarSection=B7;exports.EvSkeleton=Ri;exports.EvSmartSearch=Xd;exports.EvSpinner=uf;exports.EvStatCard=Wc;exports.EvStepper=x1;exports.EvTabs=S3;exports.EvTagInput=eP;exports.EvToast=aB;exports.EvToastContainer=L1;exports.EvToggle=zd;exports.EvTooltip=T1;exports.EvixLoader=Si;exports.EvxAreaChart=p6;exports.EvxBarChart=Z6;exports.EvxComposedChart=cM;exports.EvxLineChart=S6;exports.EvxPieChart=AM;exports.EvxRadarChart=vM;exports.EvxRadialChart=gM;exports.FlagEUR=I8;exports.FlagFallback=q8;exports.FlagGBP=T8;exports.FlagJPY=W8;exports.FlagMXN=Z8;exports.FlagUSD=V8;exports.PageHeader=qi;exports.TableInfo=Ni;exports.badgeBase=E8;exports.badgeVariants=j8;exports.countBase=p8;exports.currencyFlag=An;exports.evIcons=bv;exports.flagFor=a7;exports.isEvResponsiveHeaderItemVisible=Kf;exports.resolveEvResponsiveHeaderSettings=F8;exports.sizes=av;exports.statusBase=y8;exports.useEvHeaderVisibility=O8;exports.useToast=dB;exports.variants=Ig;
|
|
105
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AC(A,t){if(A){if(typeof A=="string")return Ww(A,t);var f={}.toString.call(A).slice(8,-1);return f==="Object"&&A.constructor&&(f=A.constructor.name),f==="Map"||f==="Set"?Array.from(A):f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f)?Ww(A,t):void 0}}function Ww(A,t){(t==null||t>A.length)&&(t=A.length);for(var f=0,n=Array(t);f<t;f++)n[f]=A[f];return n}function eC(A,t){var f=A==null?null:typeof Symbol<"u"&&A[Symbol.iterator]||A["@@iterator"];if(f!=null){var n,v,w,r,s=[],g=!0,B=!1;try{if(w=(f=f.call(A)).next,t!==0)for(;!(g=(n=w.call(f)).done)&&(s.push(n.value),s.length!==t);g=!0);}catch(a){B=!0,v=a}finally{try{if(!g&&f.return!=null&&(r=f.return(),Object(r)!==r))return}finally{if(B)throw v}}return s}}function tC(A){if(Array.isArray(A))return A}function fC(A){var t=Array.prototype.slice.call(A),f=$4(t,4),n=f[0],v=f[1],w=f[2],r=f[3],s,g,B;if(typeof n=="string")s=n;else throw new TypeError("A text for parsing must be a string.");if(!v||typeof v=="string")r?(g=w,B=r):(g=void 0,B=w),v&&(g=R4({defaultCountry:v},g));else if(Dt(v))w?(g=v,B=w):B=v;else throw new Error("Invalid second argument: ".concat(v));return{text:s,options:g,metadata:B}}function nf(A){"@babel/helpers - typeof";return nf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nf(A)}function Zw(A,t){var f=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);t&&(n=n.filter(function(v){return Object.getOwnPropertyDescriptor(A,v).enumerable})),f.push.apply(f,n)}return f}function qw(A){for(var t=1;t<arguments.length;t++){var f=arguments[t]!=null?arguments[t]:{};t%2?Zw(Object(f),!0).forEach(function(n){nC(A,n,f[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(f)):Zw(Object(f)).forEach(function(n){Object.defineProperty(A,n,Object.getOwnPropertyDescriptor(f,n))})}return A}function nC(A,t,f){return(t=vC(t))in A?Object.defineProperty(A,t,{value:f,enumerable:!0,configurable:!0,writable:!0}):A[t]=f,A}function vC(A){var t=rC(A,"string");return nf(t)=="symbol"?t:t+""}function rC(A,t){if(nf(A)!="object"||!A)return A;var f=A[Symbol.toPrimitive];if(f!==void 0){var n=f.call(A,t);if(nf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(A)}function wC(A,t,f){t&&t.defaultCountry&&!BD(t.defaultCountry,f)&&(t=qw(qw({},t),{},{defaultCountry:void 0}));try{return k4(A,t,f)}catch(n){if(!(n instanceof ie))throw n}}function sC(){var A=fC(arguments),t=A.text,f=A.options,n=A.metadata;return wC(t,f,n)}function gC(A){return new mA(A).getCountries()}function zr(){return lr(sC,arguments)}function BC(){return lr(gC,arguments)}function At(){return lr(Gn,arguments)}function nB(A){const t=(A||"").trim().toUpperCase();if(!/^[A-Z]{2}$/.test(t))return null;try{return At(t),t}catch{return null}}function aC(A,t){const f=A.trim();if(!f.startsWith("+"))return f;const n=zr(f,t);if(n&&n.countryCallingCode===At(t))return n.nationalNumber;const v=`+${At(t)}`;return f.startsWith(v)?f.slice(v.length):f}function oC(A,t){const f=A.trim();if(!f.startsWith("+"))return null;const n=zr(f);return n?n.country?{country:n.country,nationalNumber:n.nationalNumber,canonical:n.number}:n.countryCallingCode===At(t)?{country:t,nationalNumber:n.nationalNumber,canonical:n.number}:null:null}function uC(A,t){const f=(A||"").trim();if(!f)return{canonical:null,errorCode:"empty"};const n=nB(t);if(!n)return{canonical:null,errorCode:"country_required"};const v=zr(f,n);if(!v||!v.isValid())return{canonical:null,errorCode:"invalid"};if(f.startsWith("+")){const w=At(n);if(v.countryCallingCode!==w)return{canonical:null,errorCode:"country_mismatch"};if(v.country&&v.country!==n)return{canonical:null,errorCode:"country_mismatch"}}return{canonical:v.format("E.164"),errorCode:null}}const dC={class:"mb-1.5 block text-[12px] font-medium text-[#6E6E6E]"},cC={class:"ev-phone-input__country"},iC={class:"ev-phone-input__selected-value"},lC={key:0,class:"ev-phone-input__flag"},DC={class:"ev-phone-input__code"},CC={class:"ev-phone-input__option-code"},PC={class:"ev-phone-input__option-name"},bC=["value","disabled","aria-label","aria-invalid","placeholder"],XC={key:0,class:"mt-1 text-[11px] text-[#C53030]",role:"alert"},zC=e.defineComponent({__name:"EvPhoneInput",props:{modelValue:{default:""},country:{default:""},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},locale:{default:void 0},strings:{default:void 0}},emits:["update:modelValue","update:country","validity"],setup(A,{emit:t}){const f=A,n=t,v={label:"Phone",placeholder:"Phone number",countryPlaceholder:"Country",countryHeaderTitle:"Country",countrySearchPlaceholder:"Search",countryNoResultsText:"No results",countrySelectorLabel:(P,L)=>P?`Country: ${P}, ${L}`:"Country",errorCountryRequired:"Select a country first",errorCountryMismatch:"Calling code does not match the selected country",errorInvalid:"Enter a valid phone number"},w=e.computed(()=>({...v,...f.strings,countrySelectorLabel:f.strings?.countrySelectorLabel??v.countrySelectorLabel})),r=e.computed(()=>f.locale??{regionNames:"en",countrySortLocale:"en"}),s=e.computed(()=>{const P=r.value,L=new Intl.DisplayNames(P.regionNames,{type:"region"});return BC().map(x=>({code:x,name:L.of(x)??x})).sort((x,z)=>x.name.localeCompare(z.name,P.countrySortLocale))});function g(P){return String.fromCodePoint(...P.toUpperCase().split("").map(L=>127397+L.charCodeAt(0)))}const B=e.computed(()=>s.value.map(({code:P,name:L})=>({value:P,title:`${g(P)} +${At(P)}`,meta:L}))),a=e.computed(()=>s.value.find(({code:P})=>P===f.country)??null),o=e.computed(()=>a.value?g(a.value.code):""),u=e.computed(()=>a.value?`+${At(a.value.code)}`:""),d=e.computed(()=>w.value.countrySelectorLabel(a.value?.name??null,u.value)),l=e.computed(()=>nB(f.country)),C=e.computed(()=>l.value?aC(f.modelValue,l.value):f.modelValue),c=e.computed(()=>uC(f.modelValue,f.country)),D=e.computed(()=>!f.modelValue||c.value.errorCode==null?"":c.value.errorCode==="country_required"?w.value.errorCountryRequired:c.value.errorCode==="country_mismatch"?w.value.errorCountryMismatch:w.value.errorInvalid);function i(P){const L=P==null?"":String(P);n("update:country",L),L!==f.country&&n("update:modelValue","")}function b(P){const L=P.target,x=L.value,z=l.value?oC(x,l.value):null;if(z){L.value=z.nationalNumber,n("update:country",z.country),n("update:modelValue",z.canonical);return}n("update:modelValue",x)}function X(){const P=c.value;n("validity",P.errorCode==null&&P.canonical!=null),P.canonical&&n("update:modelValue",P.canonical)}return(P,L)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("label",dC,e.toDisplayString(w.value.label),1),e.createElementVNode("div",{class:e.normalizeClass(["ev-phone-input",{"ev-phone-input--error":A.error||!!D.value,"ev-phone-input--disabled":A.disabled}])},[e.createElementVNode("div",cC,[e.createVNode(J8,{"model-value":A.country||null,options:B.value,disabled:A.disabled,size:"lg",teleport:"","menu-width":280,placeholder:w.value.countryPlaceholder,"header-title":w.value.countryHeaderTitle,"search-placeholder":w.value.countrySearchPlaceholder,"no-results-text":w.value.countryNoResultsText,"aria-label":d.value,class:"country-phone__select ev-phone-input__select w-auto h-[56px] min-h-[56px] border-0 rounded-l-[10px] rounded-r-none bg-transparent px-3 py-0 focus:border-0","onUpdate:modelValue":i},{"selected-value":e.withCtx(({placeholder:x})=>[e.createElementVNode("span",iC,[a.value?(e.openBlock(),e.createElementBlock("span",lC,e.toDisplayString(o.value),1)):e.createCommentVNode("",!0),e.createElementVNode("span",DC,e.toDisplayString(a.value?u.value:x),1)])]),option:e.withCtx(({option:x})=>[e.createElementVNode("span",CC,e.toDisplayString(x.title),1),e.createElementVNode("span",PC,e.toDisplayString(x.meta),1)]),_:1},8,["model-value","options","disabled","placeholder","header-title","search-placeholder","no-results-text","aria-label"])]),L[0]||(L[0]=e.createElementVNode("div",{class:"ev-phone-input__divider","aria-hidden":"true"},null,-1)),e.createElementVNode("input",{value:C.value,disabled:A.disabled,type:"tel",inputmode:"tel",autocomplete:"tel-national","aria-label":w.value.label,"aria-invalid":A.error||D.value?"true":"false",placeholder:w.value.placeholder,class:"ev-phone-input__number",onInput:b,onBlur:X},null,40,bC)],2),D.value?(e.openBlock(),e.createElementBlock("p",XC,e.toDisplayString(D.value),1)):e.createCommentVNode("",!0)]))}}),LC=wA._export_sfc(zC,[["__scopeId","data-v-70622ba2"]]),MC={class:"w-full"},HC={key:0,class:"block mb-2 text-sm-medium text-black"},YC=["disabled","aria-expanded"],mC=["aria-label"],xC={class:"flex items-center justify-between mb-2"},GC=["aria-label"],hC=["aria-label"],NC={key:0},QC={"data-test":"weekdays",class:"grid grid-cols-7 mb-1"},FC={"data-test":"days-grid",class:"grid grid-cols-7 gap-y-0.5"},OC={key:0},EC=["data-date","disabled","aria-label","aria-current","aria-pressed","onClick"],yC={key:1,class:"grid grid-cols-3 gap-1"},pC=["disabled","onClick"],jC={key:2,class:"grid grid-cols-3 gap-1"},IC=["disabled","onClick"],Kw="flex items-center justify-center w-8 h-8 rounded-[6px] text-gray-darkest hover:bg-gray-lightest transition-colors cursor-pointer",VC=e.defineComponent({inheritAttrs:!1,__name:"EvDatePicker",props:e.mergeModels({placeholder:{default:"Select date"},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},label:{},size:{default:"md"},class:{},min:{},max:{},locale:{},weekStartsOn:{default:1},dateFormatOptions:{},labels:{default:()=>({})}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(A){const t=A,f=e.useModel(A,"modelValue"),n=["January","February","March","April","May","June","July","August","September","October","November","December"],v=["Su","Mo","Tu","We","Th","Fr","Sa"],w={dialog:"Choose date",previousMonth:"Previous month",previousYear:"Previous year",previousYears:"Previous years",nextMonth:"Next month",nextYear:"Next year",nextYears:"Next years"},r=e.computed(()=>({...w,...t.labels})),s=e.computed(()=>t.locale??"en-GB");function g(y,K,$=1){return new Date(y,K,$,12)}function B(y,K){return new Intl.DateTimeFormat(s.value,K).format(y)}const a=e.computed(()=>t.locale?Array.from({length:12},(y,K)=>B(g(2024,K),{month:"long"})):n),o=e.computed(()=>t.locale?Array.from({length:12},(y,K)=>B(g(2024,K),{month:"short"})):n.map(y=>y.slice(0,3))),u=e.computed(()=>{const y=t.locale?Array.from({length:7},(K,$)=>B(g(2024,0,7+$),{weekday:"short"})):v;return Array.from({length:7},(K,$)=>y[(t.weekStartsOn+$)%7])}),d=y=>String(y).padStart(2,"0"),l=(y,K,$)=>`${y}-${d(K+1)}-${d($)}`;function C(y){if(!y)return null;const K=/^(\d{4})-(\d{2})-(\d{2})$/.exec(y);return K?{y:+K[1],m:+K[2]-1,d:+K[3]}:null}const c=e.ref(!1),D=e.ref(null),i=e.ref("days"),b=e.computed(()=>C(f.value)),X=(()=>{const y=new Date;return l(y.getFullYear(),y.getMonth(),y.getDate())})(),P=e.ref((()=>{const y=C(f.value);if(y)return{y:y.y,m:y.m};const K=new Date;return{y:K.getFullYear(),m:K.getMonth()}})());e.watch(()=>f.value,y=>{const K=C(y);K&&(P.value={y:K.y,m:K.m})});const L=e.computed(()=>{const y=b.value;return y?!t.locale&&!t.dateFormatOptions?`${d(y.d)}/${d(y.m+1)}/${y.y}`:B(g(y.y,y.m,y.d),t.dateFormatOptions??{day:"2-digit",month:"2-digit",year:"numeric"}):""}),x=e.computed(()=>t.locale?B(g(P.value.y,P.value.m),{month:"long",year:"numeric"}):`${a.value[P.value.m]} ${P.value.y}`);function z(y){const K=C(y);if(K)return B(g(K.y,K.m,K.d),{dateStyle:"long"})}function H(y){return!!(t.min&&y<t.min||t.max&&y>t.max)}const N=e.computed(()=>{const{y,m:K}=P.value,$=(new Date(y,K,1).getDay()-t.weekStartsOn+7)%7,O=new Date(y,K+1,0).getDate(),AA=[];for(let q=0;q<$;q++)AA.push(null);for(let q=1;q<=O;q++){const bA=l(y,K,q);AA.push({d:q,iso:bA,disabled:H(bA)})}return AA}),Q=e.ref(P.value.y-P.value.y%12);e.watch(i,y=>{y==="years"&&(Q.value=P.value.y-P.value.y%12)});const m=e.computed(()=>Array.from({length:12},(y,K)=>Q.value+K));function G(){t.disabled||(c.value=!c.value,c.value&&(i.value="days"))}function M(y,K){K||(f.value=y,c.value=!1)}function Y(){const{y,m:K}=P.value;P.value=K===0?{y:y-1,m:11}:{y,m:K-1}}function h(){const{y,m:K}=P.value;P.value=K===11?{y:y+1,m:0}:{y,m:K+1}}function p(y,K){const $=l(y,K,1),O=l(y,K,new Date(y,K+1,0).getDate());return!!(t.max&&$>t.max||t.min&&O<t.min)}function F(y){return!!(t.max&&`${y}-01-01`>t.max||t.min&&`${y}-12-31`<t.min)}function S(y){p(P.value.y,y)||(P.value={...P.value,m:y},i.value="days")}function nA(y){F(y)||(P.value={...P.value,y},i.value="months")}function _(){i.value==="days"?Y():i.value==="months"?P.value={...P.value,y:P.value.y-1}:Q.value-=12}function j(){i.value==="days"?h():i.value==="months"?P.value={...P.value,y:P.value.y+1}:Q.value+=12}function V(){i.value=i.value==="years"?"days":"years"}const W=e.computed(()=>i.value==="days"?r.value.previousMonth:i.value==="months"?r.value.previousYear:r.value.previousYears),vA=e.computed(()=>i.value==="days"?r.value.nextMonth:i.value==="months"?r.value.nextYear:r.value.nextYears);function BA(y){D.value&&!D.value.contains(y.target)&&(c.value=!1)}function sA(y){y.key==="Escape"&&c.value&&(c.value=!1)}e.onMounted(()=>{document.addEventListener("mousedown",BA),document.addEventListener("keydown",sA)}),e.onUnmounted(()=>{document.removeEventListener("mousedown",BA),document.removeEventListener("keydown",sA)});const k=e.computed(()=>T("w-full px-4 bg-white border rounded-[8px] text-left flex items-center justify-between gap-2 transition-colors text-[16px]",Rt[t.size],"focus:outline-none focus:border-[color:var(--ev-input-focus,#888A8D)]",c.value?"border-[color:var(--ev-input-focus,#888A8D)]":"border-[color:var(--ev-input-border,#F1F1F1)]",t.error?"border-error":"",t.disabled?"bg-background text-muted cursor-not-allowed":"cursor-pointer",t.class));return(y,K)=>(e.openBlock(),e.createElementBlock("div",MC,[A.label?(e.openBlock(),e.createElementBlock("label",HC,e.toDisplayString(A.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"root",ref:D,class:"relative"},[e.createElementVNode("button",e.mergeProps({"data-test":"trigger",type:"button",disabled:A.disabled,"aria-expanded":c.value,"aria-haspopup":"dialog",class:k.value},y.$attrs,{onClick:G}),[e.createElementVNode("span",{class:e.normalizeClass(L.value?"text-black":"text-muted")},e.toDisplayString(L.value||A.placeholder),3),K[0]||(K[0]=e.createElementVNode("svg",{class:"text-gray-darkest shrink-0",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[e.createElementVNode("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2"}),e.createElementVNode("path",{d:"M16 2v4M8 2v4M3 10h18"})],-1))],16,YC),c.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"ev-datepicker-pop ev-popover-surface fade-in absolute z-20 mt-1 w-[300px] p-3",role:"dialog","aria-label":r.value.dialog},[e.createElementVNode("div",xC,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(Kw),"aria-label":W.value,onClick:_},[...K[1]||(K[1]=[e.createElementVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"m15 18-6-6 6-6"})],-1)])],8,GC),e.createElementVNode("button",{"data-test":"header-label",type:"button",class:"px-3 py-1 rounded-[6px] text-sm-medium text-black hover:bg-gray-lightest transition-colors cursor-pointer",onClick:V},[i.value==="days"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(x.value),1)],64)):i.value==="months"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(P.value.y),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(m.value[0])+" – "+e.toDisplayString(m.value[m.value.length-1]),1)],64))]),e.createElementVNode("button",{type:"button",class:e.normalizeClass(Kw),"aria-label":vA.value,onClick:j},[...K[2]||(K[2]=[e.createElementVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"m9 18 6-6-6-6"})],-1)])],8,hC)]),i.value==="days"?(e.openBlock(),e.createElementBlock("div",NC,[e.createElementVNode("div",QC,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,$=>(e.openBlock(),e.createElementBlock("span",{key:$,class:"h-8 flex items-center justify-center text-xs text-muted"},e.toDisplayString($),1))),128))]),e.createElementVNode("div",FC,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,($,O)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:O},[$?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button","data-date":$.iso,disabled:$.disabled,"aria-label":z($.iso),"aria-current":$.iso===e.unref(X)?"date":void 0,"aria-pressed":$.iso===f.value,class:e.normalizeClass(["h-9 w-9 mx-auto flex items-center justify-center rounded-full text-sm-regular transition-colors",$.disabled?"text-muted cursor-not-allowed":$.iso===f.value?"bg-brand-blue text-white":"text-black hover:bg-gray-lightest cursor-pointer",$.iso===e.unref(X)&&$.iso!==f.value?"border border-border":""]),onClick:AA=>M($.iso,$.disabled)},e.toDisplayString($.d),11,EC)):(e.openBlock(),e.createElementBlock("span",OC))],64))),128))])])):i.value==="months"?(e.openBlock(),e.createElementBlock("div",yC,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,($,O)=>(e.openBlock(),e.createElementBlock("button",{key:$,type:"button",disabled:p(P.value.y,O),class:e.normalizeClass(["h-10 rounded-[6px] text-sm-regular transition-colors",p(P.value.y,O)?"text-muted cursor-not-allowed":O===P.value.m?"bg-info-bg text-brand-blue-active cursor-pointer":"text-black hover:bg-gray-lightest cursor-pointer"]),onClick:AA=>S(O)},e.toDisplayString($),11,pC))),128))])):(e.openBlock(),e.createElementBlock("div",jC,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,$=>(e.openBlock(),e.createElementBlock("button",{key:$,type:"button",disabled:F($),class:e.normalizeClass(["h-10 rounded-[6px] text-sm-regular transition-colors",F($)?"text-muted cursor-not-allowed":$===P.value.y?"bg-info-bg text-brand-blue-active cursor-pointer":"text-black hover:bg-gray-lightest cursor-pointer"]),onClick:O=>nA($)},e.toDisplayString($),11,IC))),128))]))],8,mC)):e.createCommentVNode("",!0)],512)]))}}),TC={class:"text-sm-regular text-gray-darkest tabular-nums"},WC=["disabled"],ZC={key:0,class:"text-gray-dark px-0.5 text-xs"},qC=["aria-current","onClick"],KC=["disabled"],kw="min-w-[96px] text-[12px] font-medium px-3 py-1.5 h-8 disabled:opacity-50 disabled:bg-[#DBDBDB] disabled:text-[#707070] disabled:border-transparent",kC=e.defineComponent({__name:"EvPagination",props:{page:{},totalPages:{},mode:{default:"numbered"},class:{}},emits:["update:page"],setup(A,{emit:t}){const f=A,n=t,v=e.computed(()=>f.page<=1),w=e.computed(()=>f.page>=f.totalPages),r=e.computed(()=>{const{page:B,totalPages:a}=f;return Array.from({length:a},(u,d)=>d+1).filter(u=>a<=7||u===1||u===a||u>=B-1&&u<=B+1)});function s(B){if(B===0)return!1;const a=r.value;return a[B]-a[B-1]>1}function g(B){B<1||B>f.totalPages||B===f.page||n("update:page",B)}return(B,a)=>A.mode==="prevnext"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(T)("inline-flex items-center gap-3",f.class))},[e.createVNode(e.unref(ge),{variant:"third",size:"sm",class:e.normalizeClass(kw+" border-0"),"is-disabled":v.value,onClick:a[0]||(a[0]=o=>g(A.page-1))},{default:e.withCtx(()=>[...a[4]||(a[4]=[e.createTextVNode(" Previous ",-1)])]),_:1},8,["class","is-disabled"]),e.createElementVNode("span",TC,"Page "+e.toDisplayString(A.page)+" of "+e.toDisplayString(A.totalPages),1),e.createVNode(e.unref(ge),{variant:"primary",size:"sm",class:e.normalizeClass(kw+" enabled:hover:bg-[#333333]"),"is-disabled":w.value,onClick:a[1]||(a[1]=o=>g(A.page+1))},{default:e.withCtx(()=>[...a[5]||(a[5]=[e.createTextVNode(" Next ",-1)])]),_:1},8,["class","is-disabled"])],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(T)("flex items-center gap-0.5",f.class))},[e.createElementVNode("button",{type:"button",disabled:v.value,class:e.normalizeClass(["w-6 h-6 flex items-center justify-center rounded-sm transition-colors",v.value?"text-gray-dark cursor-not-allowed":"text-black hover:bg-background cursor-pointer"]),"aria-label":"Previous page",onClick:a[2]||(a[2]=o=>g(A.page-1))},[...a[6]||(a[6]=[e.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[e.createElementVNode("path",{d:"m15 18-6-6 6-6"})],-1)])],10,WC),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(o,u)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"flex items-center gap-0.5"},[s(u)?(e.openBlock(),e.createElementBlock("span",ZC,"…")):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",style:{fontSize:"11px"},class:e.normalizeClass(["min-w-6 h-6 rounded-sm transition-colors px-1.5 cursor-pointer",o===A.page?"bg-black text-white":"text-black hover:bg-background"]),"aria-current":o===A.page?"page":void 0,onClick:d=>g(o)},e.toDisplayString(o),11,qC)]))),128)),e.createElementVNode("button",{type:"button",disabled:w.value,class:e.normalizeClass(["w-6 h-6 flex items-center justify-center rounded-sm transition-colors",w.value?"text-gray-dark cursor-not-allowed":"text-black hover:bg-background cursor-pointer"]),"aria-label":"Next page",onClick:a[3]||(a[3]=o=>g(A.page+1))},[...a[7]||(a[7]=[e.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[e.createElementVNode("path",{d:"m9 18 6-6-6-6"})],-1)])],10,KC)],2))}}),RC=e.defineComponent({__name:"EvFilterChip",props:{label:{},value:{},removable:{type:Boolean,default:!1},active:{type:Boolean,default:!1},class:{}},emits:["remove","click"],setup(A,{emit:t}){const f=A,n=t,v=e.computed(()=>T("group inline-flex items-center gap-1.5 px-2.5 py-1 rounded-[6px] text-sm-regular","bg-info-bg text-brand-blue-active ring-1 ring-inset ring-brand-blue/30 transition-colors","has-[button:hover]:bg-error-bg has-[button:hover]:text-brand-red-active has-[button:hover]:ring-brand-red/40",f.class)),w=e.computed(()=>T("px-2.5 h-6 rounded-[6px] text-xs-medium transition-colors inline-flex items-center cursor-pointer",f.active?"bg-info-bg text-brand-blue-active ring-1 ring-inset ring-brand-blue/30":"bg-background text-gray-darkest hover:bg-gray-light",f.class));return(r,s)=>A.removable?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(v.value)},[e.createElementVNode("span",null,[e.renderSlot(r.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(A.label)+": "+e.toDisplayString(A.value),1)])]),e.createElementVNode("button",{type:"button",class:"p-0.5 rounded-sm transition-colors cursor-pointer","aria-label":"Remove",onClick:s[0]||(s[0]=g=>n("remove"))},[e.createVNode(wA._sfc_main,{class:"w-3 h-3",color:"currentColor","aria-hidden":"true"})])],2)):(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:e.normalizeClass(w.value),onClick:s[1]||(s[1]=g=>n("click"))},[e.renderSlot(r.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(A.label),1)])],2))}}),JC={class:"w-full relative"},UC=["aria-label","onClick"],SC=["placeholder"],$C={key:0,class:"ev-tag-input-popover ev-popover-surface fade-in absolute z-20 mt-1 w-full"},_C={class:"max-h-48 overflow-auto py-1"},AP=["onMousedown"],eP=e.defineComponent({inheritAttrs:!1,__name:"EvTagInput",props:e.mergeModels({suggestions:{default:()=>[]},placeholder:{default:"Add tag…"},size:{default:"md"},class:{}},{modelValue:{default:()=>[]},modelModifiers:{}}),emits:e.mergeModels(["update:modelValue"],["update:modelValue"]),setup(A,{emit:t}){const f=A,n=t,v=e.useModel(A,"modelValue"),w=e.ref(""),r=e.ref(!1);let s;const g=e.computed(()=>v.value??[]),B=e.computed(()=>f.suggestions.filter(C=>!g.value.includes(C)&&C.toLowerCase().includes(w.value.toLowerCase())));function a(C){const c=C.trim();if(!c||g.value.includes(c)){w.value="";return}const D=[...g.value,c];v.value=D,n("update:modelValue",D),w.value=""}function o(C){const c=g.value.filter(D=>D!==C);v.value=c,n("update:modelValue",c)}function u(){s&&clearTimeout(s),r.value=!0}function d(){s=setTimeout(()=>{r.value=!1},120)}function l(C){C.key==="Enter"||C.key===","?(C.preventDefault(),a(w.value)):C.key==="Backspace"&&!w.value&&g.value.length&&o(g.value[g.value.length-1])}return(C,c)=>(e.openBlock(),e.createElementBlock("div",JC,[e.createElementVNode("div",{"data-testid":"ev-tag-input-box",class:e.normalizeClass(e.unref(T)("w-full px-2 py-1 bg-white border rounded-[8px] flex flex-wrap items-center gap-1.5 transition-colors",e.unref(ir)[f.size],r.value?"border-[color:var(--ev-input-focus,#888A8D)]":"border-[color:var(--ev-input-border,#F1F1F1)]",f.class))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,D=>(e.openBlock(),e.createElementBlock("span",{key:D,class:"inline-flex items-center gap-1 px-2 py-0.5 rounded-[6px] bg-info-bg text-brand-blue-active text-xs-medium"},[e.createTextVNode(e.toDisplayString(D)+" ",1),e.createElementVNode("button",{type:"button","aria-label":`Remove ${D}`,class:"inline-flex w-3.5 h-3.5 items-center justify-center rounded-sm hover:bg-[#DCE5FF] cursor-pointer",onClick:i=>o(D)},[e.createVNode(wA._sfc_main,{class:"w-[10px] h-[10px]",color:"currentColor"})],8,UC)]))),128)),e.withDirectives(e.createElementVNode("input",e.mergeProps(C.$attrs,{type:"text","onUpdate:modelValue":c[0]||(c[0]=D=>w.value=D),placeholder:g.value.length?"":A.placeholder,class:"flex-1 min-w-[120px] h-7 px-1 bg-transparent text-sm-regular text-black placeholder:text-gray-dark outline-none",onFocus:u,onBlur:d,onKeydown:l}),null,16,SC),[[e.vModelText,w.value]])],2),r.value&&B.value.length>0?(e.openBlock(),e.createElementBlock("div",$C,[e.createElementVNode("ul",_C,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,D=>(e.openBlock(),e.createElementBlock("li",{key:D},[e.createElementVNode("button",{type:"button",class:"w-full text-left px-3 py-1.5 text-sm-regular text-black hover:bg-gray-lightest cursor-pointer",onMousedown:e.withModifiers(i=>a(D),["prevent"])},e.toDisplayString(D),41,AP)]))),128))])])):e.createCommentVNode("",!0)]))}}),tP=["type","aria-label","disabled"],fP=e.defineComponent({__name:"EvIconButton",props:{class:{},variant:{default:"ghost"},size:{default:"md"},ariaLabel:{},type:{default:"button"},isDisabled:{type:Boolean,default:!1}},emits:["click"],setup(A,{emit:t}){const f=A,n=t,v={ghost:"rounded-sm text-gray-darkest hover:bg-background",bordered:"rounded-[6px] bg-white border border-gray-light hover:bg-gray-lightest text-black"},w={ghost:{sm:"p-1",md:"p-1.5"},bordered:{sm:"w-9 h-9",md:"w-10 h-10"}},r=e.computed(()=>T("inline-flex items-center justify-center transition-colors cursor-pointer disabled:cursor-not-allowed disabled:pointer-events-none disabled:opacity-50",v[f.variant],w[f.variant][f.size],f.class));return(s,g)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(r.value),type:f.type,"aria-label":f.ariaLabel,disabled:f.isDisabled||void 0,onClick:g[0]||(g[0]=B=>n("click",B))},[e.renderSlot(s.$slots,"default")],10,tP))}}),nP={key:0,class:"text-sm text-gray-darkest leading-relaxed"},vP={key:1,class:"mt-4 text-sm text-error",role:"alert"},rP={class:"mt-6 flex gap-3"},wP={class:"inline-flex max-w-full items-center justify-center gap-2"},sP={class:"min-w-0 break-words"},gP=e.defineComponent({__name:"EvConfirmDialog",props:{isOpen:{type:Boolean},title:{},description:{},confirmLabel:{default:"Confirm"},cancelLabel:{default:"Cancel"},loading:{type:Boolean,default:!1},loadingLabel:{default:"Loading"},closeLabel:{default:"Close"},destructive:{type:Boolean,default:!1},error:{},size:{default:"sm"},showCloseButton:{type:Boolean,default:!1},blur:{type:Boolean,default:!0}},emits:["confirm","cancel","close"],setup(A,{emit:t}){const f=A,n=t,v=e.computed(()=>f.destructive?"min-w-0 flex-1 bg-destructive px-2 sm:px-[33.5px]":"min-w-0 flex-1 px-2 sm:px-[33.5px]");function w(){f.loading||(n("cancel"),n("close"))}function r(){f.loading||n("confirm")}return(s,g)=>(e.openBlock(),e.createBlock(e.unref(R8),{"is-open":A.isOpen,title:A.title,size:A.size,"show-close-button":A.showCloseButton,"close-label":A.closeLabel,blur:A.blur,"initial-focus":A.loading?"none":"first",onClose:w},{default:e.withCtx(()=>[A.description||s.$slots.default?(e.openBlock(),e.createElementBlock("div",nP,[e.renderSlot(s.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(A.description),1)])])):e.createCommentVNode("",!0),A.error?(e.openBlock(),e.createElementBlock("p",vP,e.toDisplayString(A.error),1)):e.createCommentVNode("",!0),e.createElementVNode("div",rP,[e.createVNode(e.unref(ge),{variant:"ghost",size:"xl",class:"min-w-0 flex-1 border border-gray-light px-2 sm:px-[33.5px]","is-disabled":A.loading,onClick:w},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.cancelLabel),1)]),_:1},8,["is-disabled"]),e.createVNode(e.unref(ge),{variant:"black",size:"xl",class:e.normalizeClass(v.value),"is-disabled":A.loading,onClick:r},{default:e.withCtx(()=>[e.createElementVNode("span",wP,[A.loading?(e.openBlock(),e.createBlock(e.unref(uf),{key:0,size:"xs",color:"var(--white)",label:A.loadingLabel},null,8,["label"])):e.createCommentVNode("",!0),e.createElementVNode("span",sP,e.toDisplayString(A.confirmLabel),1)])]),_:1},8,["class","is-disabled"])])]),_:3},8,["is-open","title","size","show-close-button","close-label","blur","initial-focus"]))}}),BP={key:0,class:"absolute inset-0 overflow-hidden pointer-events-none rounded-3xl","aria-hidden":"true"},aP={class:"relative z-10 w-full"},oP=e.defineComponent({__name:"EvGlassCard",props:{variant:{default:"default"},animated:{type:Boolean,default:!0},bubbles:{default:5},class:{}},setup(A){const t=A,f={default:"rgba(15, 23, 42, 0.35)",blue:"rgba(30, 64, 175, 0.30)",purple:"rgba(88, 28, 135, 0.35)",pink:"rgba(157, 23, 77, 0.30)",dark:"rgba(0, 0, 0, 0.55)"},n=["bg-gradient-to-r from-blue-400 to-purple-500","bg-gradient-to-r from-purple-400 to-pink-500","bg-gradient-to-r from-pink-400 to-red-500","bg-gradient-to-r from-yellow-400 to-orange-500","bg-gradient-to-r from-green-400 to-blue-500","bg-gradient-to-r from-indigo-400 to-purple-500"],v=e.computed(()=>T("relative min-h-screen w-full rounded-3xl shadow-2xl overflow-hidden",t.class)),w=e.computed(()=>({backgroundColor:f[t.variant],backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",border:"1px solid rgba(255, 255, 255, 0.16)"})),r=e.computed(()=>Array.from({length:t.bubbles},(s,g)=>{const B=80+g*40,a=g*37%100,o=g*53%100,u=g*.8;return{key:g,class:n[g%n.length],style:{width:`${B}px`,height:`${B}px`,left:`${a}%`,top:`${o}%`,animationDelay:`${u}s`,animationDuration:`${8+g*2}s`}}}));return(s,g)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(v.value),style:e.normalizeStyle(w.value)},[A.animated?(e.openBlock(),e.createElementBlock("div",BP,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,B=>(e.openBlock(),e.createElementBlock("div",{key:B.key,class:e.normalizeClass(["ev-glass-bubble absolute rounded-full",B.class]),style:e.normalizeStyle(B.style)},null,6))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",aP,[e.renderSlot(s.$slots,"default",{},void 0,!0)])],6))}}),uP=wA._export_sfc(oP,[["__scopeId","data-v-b21cffb6"]]),dP=e.defineComponent({__name:"EvAppBackground",props:{desktopSrc:{},mobileSrc:{},backgroundColor:{default:"var(--color-info-bg)"},animate:{type:Boolean,default:!1},speed:{default:28}},setup(A){e.useCssVars(v=>({v3d5484ee:f.value,v52fea2a6:n.value}));const t=A,f=e.computed(()=>t.desktopSrc?`url("${t.desktopSrc}")`:"none"),n=e.computed(()=>t.mobileSrc?`url("${t.mobileSrc}")`:f.value);return(v,w)=>(e.openBlock(),e.createElementBlock("div",{class:"ev-app-background","aria-hidden":"true",style:e.normalizeStyle({backgroundColor:A.backgroundColor})},null,4))}}),cP=wA._export_sfc(dP,[["__scopeId","data-v-5ea7ea47"]]),iP={class:"mx-auto max-w-4xl rounded-2xl bg-foreground border border-white/10 px-6 py-5 flex flex-col sm:flex-row items-start sm:items-center gap-4 shadow-2xl"},lP={class:"flex-1 text-sm text-white/90 leading-relaxed"},DP=["href"],CP={class:"flex items-center gap-3 shrink-0"},PP=e.defineComponent({__name:"EvCookieBanner",props:{visible:{type:Boolean},text:{},learnMoreHref:{},learnMoreLabel:{default:"Learn more"},acceptAllLabel:{default:"Accept All"},acceptEssentialLabel:{default:"Only Essential"},class:{}},emits:["accept-all","accept-essential"],setup(A,{emit:t}){const f=A,n=t,v=e.computed(()=>T("fixed bottom-0 inset-x-0 z-40 p-4 sm:p-6",f.class));return(w,r)=>(e.openBlock(),e.createBlock(e.Transition,{"enter-active-class":"transition duration-300 ease-out","enter-from-class":"translate-y-full opacity-0","enter-to-class":"translate-y-0 opacity-100","leave-active-class":"transition duration-200 ease-in","leave-from-class":"translate-y-0 opacity-100","leave-to-class":"translate-y-full opacity-0"},{default:e.withCtx(()=>[A.visible?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(v.value)},[e.createElementVNode("div",iP,[e.createElementVNode("div",lP,[e.renderSlot(w.$slots,"text",{},()=>[e.createElementVNode("p",null,[e.createTextVNode(e.toDisplayString(A.text||"We use cookies to ensure the site works correctly and to improve your experience. Essential cookies are always active. You can choose to allow analytics cookies that help us understand how you use the site.")+" ",1),A.learnMoreHref?(e.openBlock(),e.createElementBlock("a",{key:0,href:A.learnMoreHref,class:"underline text-white hover:text-white/70 transition-colors cursor-pointer"},e.toDisplayString(A.learnMoreLabel),9,DP)):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",CP,[e.renderSlot(w.$slots,"actions",{},()=>[e.createVNode(e.unref(ge),{variant:"ghost",size:"sm",class:"text-white/80 border border-white/20",onClick:r[0]||(r[0]=s=>n("accept-essential"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.acceptEssentialLabel),1)]),_:1}),e.createVNode(e.unref(ge),{variant:"black",size:"sm",class:"bg-white text-black",onClick:r[1]||(r[1]=s=>n("accept-all"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.acceptAllLabel),1)]),_:1})])])])],2)):e.createCommentVNode("",!0)]),_:3}))}}),bP={key:0},XP={class:"flex sm:flex-col max-sm:flex-row gap-1"},zP={class:"font-bold"},LP=e.defineComponent({__name:"EvHowToStep",props:{number:{},class:{}},setup(A){const t=A,f=e.computed(()=>T("flex gap-2 sm:w-54 max-sm:w-full",t.class));return(n,v)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(f.value)},[n.$slots.icon?(e.openBlock(),e.createElementBlock("div",bP,[e.renderSlot(n.$slots,"icon")])):e.createCommentVNode("",!0),e.createElementVNode("div",XP,[e.createElementVNode("span",zP,"#"+e.toDisplayString(A.number),1),e.createElementVNode("span",null,[e.renderSlot(n.$slots,"default")])])],2))}}),MP=e.defineComponent({__name:"EvSpecsTable",props:{rows:{},class:{}},setup(A){const t=A,f=e.computed(()=>t.rows[0]?.length??0);return(n,v)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(T)("overflow-hidden rounded-lg border border-black",t.class))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.rows,(w,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:e.normalizeClass(["grid",{"border-t border-black":r>0}]),style:e.normalizeStyle({gridTemplateColumns:`repeat(${f.value}, minmax(0, 1fr))`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w,(s,g)=>(e.openBlock(),e.createElementBlock("div",{key:g,class:e.normalizeClass(["px-5 py-2.5 text-center text-black",{"text-right":g===f.value-1,"text-left":g===0}])},e.toDisplayString(s),3))),128))],6))),128))],2))}}),HP=["src","alt"],YP={key:0,class:"absolute left-0 top-0 w-full h-full rounded-[inherit]",viewBox:"0 0 678 380",preserveAspectRatio:"none",fill:"none",xmlns:"http://www.w3.org/2000/svg"},mP=e.defineComponent({__name:"EvLargeImage",props:{src:{},alt:{},imgClass:{},showGradient:{type:Boolean},class:{}},setup(A){const t=A;return(f,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(T)("relative pt-[66%] rounded-[20px] sm:pt-[39%]",t.class))},[e.createElementVNode("img",{src:t.src,alt:t.alt,class:e.normalizeClass([t.imgClass,"absolute left-0 top-0 w-full h-full rounded-[inherit] object-cover object-center"])},null,10,HP),t.showGradient?(e.openBlock(),e.createElementBlock("svg",YP,[...n[0]||(n[0]=[e.createStaticVNode('<mask id="ev-large-image-gradient-mask" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="0" y="0" width="678" height="380"><rect width="678" height="380" rx="20" fill="#D9D9D9"></rect></mask><g mask="url(#ev-large-image-gradient-mask)"><g opacity="0.8" filter="url(#ev-large-image-glow)"><path d="M724.86 170.879C725.376 170.785 725.939 170.971 725.754 171.175L429.35 497.209C429.254 497.315 428.977 497.383 428.68 497.372L-156.459 477.464C-156.905 477.449 -157.175 477.273 -156.987 477.121L2.42198 348.616C2.46672 348.58 2.53463 348.549 2.61958 348.525L465.841 218.02C465.874 218.011 465.91 218.003 465.947 217.996L724.86 170.879Z" fill="url(#ev-large-image-gradient-a)"></path><path d="M58.4141 145.142C58.2934 145.207 58.0951 145.246 57.8833 145.246L-156.727 145.246C-157.084 145.246 -157.374 145.138 -157.374 145.004L-157.374 64.8327C-157.374 64.7509 -157.263 64.6746 -157.08 64.63L506.723 -97.5488C507.317 -97.694 508.011 -97.4264 507.607 -97.2081L58.4141 145.142Z" fill="url(#ev-large-image-gradient-b)"></path></g></g><defs><filter id="ev-large-image-glow" x="-270.864" y="-211.08" width="1110.14" height="821.943" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="56.745" result="effect1_foregroundBlur_540_4140"></feGaussianBlur></filter><linearGradient id="ev-large-image-gradient-a" x1="419.02" y1="265.509" x2="-187.673" y2="-76.4489" gradientUnits="userSpaceOnUse"><stop offset="0.0127369" stop-color="#6888FB"></stop><stop offset="0.40116" stop-color="#F7A1F4"></stop><stop offset="0.759202" stop-color="#F6DD85"></stop></linearGradient><linearGradient id="ev-large-image-gradient-b" x1="419.02" y1="265.509" x2="-187.673" y2="-76.4489" gradientUnits="userSpaceOnUse"><stop offset="0.0127369" stop-color="#6888FB"></stop><stop offset="0.40116" stop-color="#F7A1F4"></stop><stop offset="0.759202" stop-color="#F6DD85"></stop></linearGradient></defs>',3)])])):e.createCommentVNode("",!0)],2))}}),vB=e.defineComponent({__name:"EvCard",props:{as:{default:"div"},selected:{type:Boolean,default:!1},interactive:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dimmed:{type:Boolean,default:!1},padding:{default:"none"},radius:{default:"lg"},class:{}},emits:["click"],setup(A,{emit:t}){const f=A,n=t,v={none:"p-0",sm:"p-3",md:"p-4"},w={md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl"},r=e.computed(()=>T("border bg-white transition-colors",w[f.radius],v[f.padding],f.selected?"border-brand-blue bg-[#F5F8FF]":"border-gray-light",f.interactive&&!f.disabled&&"cursor-pointer hover:border-[#CFCFCF]",f.dimmed&&"opacity-65",f.disabled&&"opacity-65 pointer-events-none",f.class));function s(g){if(f.disabled){g.preventDefault();return}n("click",g)}return(g,B)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(A.as),{class:e.normalizeClass(r.value),type:A.as==="button"?"button":void 0,disabled:A.as==="button"&&A.disabled?!0:void 0,"aria-disabled":A.disabled?"true":void 0,onClick:s},{default:e.withCtx(()=>[e.renderSlot(g.$slots,"default")]),_:3},8,["class","type","disabled","aria-disabled"]))}}),xP={key:1,class:"flex h-full w-full flex-col items-center justify-center gap-1 bg-[#F4F4F5] text-[#B8B8BC]"},GP={key:2,class:"pointer-events-none absolute inset-0"},hP=e.defineComponent({__name:"EvCardMedia",props:{ratio:{default:"8/5"},framed:{type:Boolean,default:!0},objectFit:{default:"cover"},class:{}},setup(A){const t=A,f=e.useSlots(),n=e.computed(()=>{const s=f.default;return(s?s():[]).some(B=>B.type!==e.Comment&&!(B.type===e.Text&&!String(B.children).trim()))}),v=e.computed(()=>({aspectRatio:t.ratio.replace("/"," / ")})),w=e.computed(()=>T(t.framed&&"p-1 pb-0",t.class)),r=e.computed(()=>T("relative overflow-hidden",t.framed&&"rounded-[4px] ring-1 ring-inset ring-black/10",t.objectFit==="cover"?"[&_img]:object-cover":"[&_img]:object-contain","[&_img]:h-full [&_img]:w-full"));return(s,g)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(w.value)},[e.createElementVNode("div",{class:e.normalizeClass(r.value),style:e.normalizeStyle(v.value)},[n.value?e.renderSlot(s.$slots,"default",{key:0}):(e.openBlock(),e.createElementBlock("div",xP,[e.renderSlot(s.$slots,"placeholder",{},()=>[g[0]||(g[0]=e.createStaticVNode('<svg viewBox="0 0 24 24" width="22" height="22" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="3" width="18" height="18" rx="2"></rect><circle cx="9" cy="9" r="2"></circle><path d="m21 15-3.86-3.86a2 2 0 0 0-2.83 0L6 20"></path></svg><span class="text-[11px]">No cover</span>',2))])])),s.$slots.overlay?(e.openBlock(),e.createElementBlock("div",GP,[e.renderSlot(s.$slots,"overlay")])):e.createCommentVNode("",!0)],6)],2))}}),NP=e.defineComponent({__name:"EvCardOverlayBadge",props:{position:{default:"top-left"},tone:{default:"dark"},class:{}},setup(A){const t=A,f={"top-left":"top-2 left-2","top-right":"top-2 right-2","bottom-left":"bottom-2 left-2","bottom-right":"bottom-2 right-2"},n=e.computed(()=>T("absolute z-10 inline-flex items-center gap-1 rounded-full px-2 py-0.5",f[t.position],t.tone==="light"?"bg-white text-[#846116]":"bg-black/70 text-white",t.class));return(v,w)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["text-xs-medium pointer-events-auto",n.value])},[e.renderSlot(v.$slots,"default")],2))}}),QP={class:"min-w-0 flex-1"},FP={key:0,class:"shrink-0"},OP=e.defineComponent({__name:"EvCardHeader",props:{align:{default:"start"},class:{}},setup(A){const t=A,f={start:"items-start",center:"items-center",end:"items-end"},n=e.computed(()=>T("flex justify-between gap-2",f[t.align],t.class));return(v,w)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(n.value)},[e.createElementVNode("div",QP,[e.renderSlot(v.$slots,"default")]),v.$slots.trailing?(e.openBlock(),e.createElementBlock("div",FP,[e.renderSlot(v.$slots,"trailing")])):e.createCommentVNode("",!0)],2))}}),EP=["title"],rB=e.defineComponent({__name:"EvCardTitle",props:{lines:{default:2},class:{}},setup(A){const t=A,f=e.useSlots();function n(s){return s?s.map(g=>{if(typeof g=="string"||typeof g=="number")return String(g);const B=g.children;return typeof B=="string"?B:Array.isArray(B)?n(B):""}).join(""):""}const v=e.computed(()=>{const s=f.default;return n(s?s():[]).trim()||void 0}),w={1:"line-clamp-1",2:"line-clamp-2",3:"line-clamp-3"},r=e.computed(()=>T("text-black",w[t.lines],t.class));return(s,g)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["text-sm-medium",r.value]),title:v.value},[e.renderSlot(s.$slots,"default")],10,EP))}}),yP=e.defineComponent({__name:"EvCardSubtitle",props:{lines:{default:1},class:{}},setup(A){const t=A,f=e.computed(()=>T("text-[#707070] mt-1.5",t.lines===2?"line-clamp-2":"truncate",t.class));return(n,v)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["text-xs-regular",f.value])},[e.renderSlot(n.$slots,"default")],2))}}),wB=e.defineComponent({__name:"EvCardSection",props:{divided:{type:Boolean,default:!1},cols:{default:1},class:{}},setup(A){const t=A,f={1:"",2:"grid grid-cols-2 gap-x-4 gap-y-3",3:"grid grid-cols-3 gap-x-4 gap-y-3"},n=e.computed(()=>T(f[t.cols],t.divided&&"border-t border-gray-light mt-3 pt-3",t.class));return(v,w)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(n.value)},[e.renderSlot(v.$slots,"default")],2))}}),pP={key:0,class:"text-[10px] font-medium uppercase leading-[1.4] tracking-[0.06em] text-gray-dark"},jP=["title"],sB=e.defineComponent({__name:"EvCardField",props:{label:{},value:{},align:{default:"start"},numeric:{type:Boolean,default:!1},truncate:{type:Boolean,default:!0},class:{}},setup(A){const t=A,f=e.computed(()=>T("min-w-0",t.align==="end"?"text-right":"text-left",t.class)),n=e.computed(()=>T("mt-1 min-w-0 text-black",t.truncate&&"truncate",t.numeric&&"tabular-nums")),v=e.computed(()=>t.truncate&&t.value!=null?String(t.value):void 0);return(w,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(f.value)},[A.label?(e.openBlock(),e.createElementBlock("div",pP,e.toDisplayString(A.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["text-sm-regular",n.value]),title:v.value},[e.renderSlot(w.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(A.value),1)])],10,jP)],2))}}),gB=e.defineComponent({__name:"EvCardActions",props:{divided:{type:Boolean,default:!1},justify:{default:"between"},class:{}},setup(A){const t=A,f={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between"},n=e.computed(()=>T("flex items-center gap-2",f[t.justify],t.divided&&"border-t border-gray-light mt-3 pt-3",t.class));return(v,w)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(n.value)},[e.renderSlot(v.$slots,"default")],2))}}),IP=e.defineComponent({__name:"EvCardMeta",props:{tabularNums:{type:Boolean,default:!0},class:{}},setup(A){const t=A,f=e.computed(()=>T("text-[#A5A5A5] truncate min-w-0",t.tabularNums&&"tabular-nums",t.class));return(n,v)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["text-xs-regular",f.value])},[e.renderSlot(n.$slots,"default")],2))}}),VP=["src","alt"],TP=e.defineComponent({__name:"EvCardAvatar",props:{src:{},name:{},class:{}},setup(A){const t=A,f=e.computed(()=>t.name?.trim().charAt(0).toUpperCase()??""),n=e.computed(()=>T("inline-flex h-8 w-8 shrink-0 items-center justify-center overflow-hidden rounded-full bg-gray-light text-[#5C505C]",t.class));return(v,w)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["text-xs-medium",n.value])},[e.renderSlot(v.$slots,"default",{},()=>[A.src?(e.openBlock(),e.createElementBlock("img",{key:0,src:A.src,alt:A.name,class:"h-full w-full object-cover"},null,8,VP)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(f.value),1)],64))])],2))}}),WP={class:"flex items-start gap-3"},ZP=["checked","aria-label"],BB=e.defineComponent({__name:"EvDataCard",props:{row:{},titleColumn:{},gridColumns:{default:()=>[]},actionsColumn:{},selectable:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},selectLabel:{},gridCols:{default:2}},emits:["click","toggle"],setup(A,{emit:t}){const f=A,n=t;function v(r){return r.split(".").reduce((s,g)=>{if(s&&typeof s=="object"&&g in s)return s[g]},f.row)}const w=e.computed(()=>f.selected?"cursor-pointer":"cursor-pointer hover:bg-gray-lightest");return(r,s)=>(e.openBlock(),e.createBlock(vB,{"data-testid":"ev-data-table-card",radius:"md",padding:"md",selected:A.selected,class:e.normalizeClass(w.value),onClick:s[3]||(s[3]=g=>n("click"))},{default:e.withCtx(()=>[e.createElementVNode("div",WP,[A.selectable?(e.openBlock(),e.createElementBlock("label",{key:0,class:"inline-flex shrink-0 cursor-pointer items-center justify-center p-2 -m-1",onClick:s[1]||(s[1]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("input",{type:"checkbox",class:"h-4 w-4 cursor-pointer rounded-[3px] border-gray-medium accent-[#6888FB]",checked:A.selected,"aria-label":A.selectLabel,onChange:s[0]||(s[0]=g=>n("toggle"))},null,40,ZP)])):e.createCommentVNode("",!0),A.titleColumn?(e.openBlock(),e.createBlock(rB,{key:1,lines:2,class:"min-w-0 flex-1"},{default:e.withCtx(()=>[e.renderSlot(r.$slots,`cell-${A.titleColumn.key}`,{row:A.row,value:v(A.titleColumn.key)},()=>[e.createTextVNode(e.toDisplayString(v(A.titleColumn.key)),1)])]),_:3})):e.createCommentVNode("",!0)]),A.gridColumns.length?(e.openBlock(),e.createBlock(wB,{key:0,divided:"",cols:A.gridCols},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.gridColumns,g=>(e.openBlock(),e.createBlock(sB,{key:g.key,label:g.label},{default:e.withCtx(()=>[e.renderSlot(r.$slots,`cell-${g.key}`,{row:A.row,value:v(g.key)},()=>[e.createTextVNode(e.toDisplayString(v(g.key)),1)])]),_:2},1032,["label"]))),128))]),_:3},8,["cols"])):e.createCommentVNode("",!0),A.actionsColumn?(e.openBlock(),e.createBlock(gB,{key:1,divided:"",justify:"end",onClick:s[2]||(s[2]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.renderSlot(r.$slots,`cell-${A.actionsColumn.key}`,{row:A.row,value:v(A.actionsColumn.key)})]),_:3})):e.createCommentVNode("",!0)]),_:3},8,["selected","class"]))}}),qP={class:"min-w-full divide-y divide-gray-light"},KP={class:"bg-gray-lightest"},kP={key:0,class:"px-3 py-3 w-10"},RP={class:"inline-flex cursor-pointer items-center justify-center p-2 -m-2"},JP=["checked","indeterminate"],UP=["onClick"],SP={class:"flex items-center space-x-1"},$P={key:0,class:"flex flex-col"},_P={class:"bg-white divide-y divide-gray-light"},A1=["onClick"],e1={class:"inline-flex cursor-pointer items-center justify-center p-2 -m-2"},t1=["checked","aria-label","onChange"],f1=["onClick"],n1={key:0,"data-testid":"ev-row-expansion",class:"bg-white"},v1=["colspan"],r1={"data-expansion-inner":""},w1={key:0},s1={key:0,"data-testid":"card-select-all",class:"mb-3 flex items-center"},g1={class:"inline-flex cursor-pointer items-center gap-2 p-1 -m-1"},B1=["checked","indeterminate"],a1={class:"text-sm-regular text-gray-darkest"},o1={key:0,"data-testid":"ev-row-expansion-card",class:"col-span-full"},u1={"data-expansion-inner":""},d1={key:2},Rw=200,c1=e.defineComponent({__name:"EvDataTable",props:e.mergeModels({data:{default:()=>[]},columns:{},sortField:{default:""},sortDirection:{default:"asc"},page:{default:1},pageSize:{default:0},selectable:{type:Boolean,default:!1},selectedKeys:{default:()=>[]},rowKey:{default:"id"},mobileLayout:{default:"auto"},cardTitleKey:{},cardGridCols:{default:2},viewToggle:{type:Boolean,default:!1},selectionLabel:{},expandedKey:{default:null}},{view:{default:"table"},viewModifiers:{}}),emits:e.mergeModels(["sort","update:page","row-click","update:selectedKeys"],["update:view"]),setup(A,{emit:t}){const f=e.ref(null);let n=0,v=!1;function w(O){const q=O.target?.closest("button");q&&f.value&&f.value.contains(q)&&q.focus({preventScroll:!0})}function r(){v=!0,f.value&&(f.value.scrollLeft=n),requestAnimationFrame(()=>{v=!1})}function s(){v||f.value&&(n=f.value.scrollLeft)}e.onMounted(()=>{const O=f.value;O&&(O.addEventListener("focusin",r),O.addEventListener("scroll",s,{passive:!0}))}),e.onBeforeUnmount(()=>{const O=f.value;O&&(O.removeEventListener("focusin",r),O.removeEventListener("scroll",s))});const g=A,B=e.useModel(A,"view"),a=t,o=e.getCurrentInstance(),u=e.computed(()=>!!o?.vnode.props?.onRowClick),d=e.ref("cards"),l=e.computed(()=>g.viewToggle===!0),C=e.computed(()=>l.value?B.value:d.value);function c(O){l.value?B.value=O:d.value=O}const b=[{value:"cards",label:"",icon:()=>e.h(LA,{name:"layout-grid",size:16})},{value:"table",label:"",icon:()=>e.h(LA,{name:"list",size:16})}],X=e.computed(()=>l.value?B.value==="cards":g.mobileLayout!=="table"&&(g.mobileLayout==="cards"||d.value==="cards")),P=e.computed(()=>l.value?!0:g.mobileLayout==="auto"),L=e.computed(()=>l.value?"":"lg:hidden"),x=e.computed(()=>l.value?B.value==="cards"?"hidden":"":X.value?"hidden lg:block":""),z=e.computed(()=>l.value?"":"lg:hidden"),H=e.computed(()=>l.value?"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3":"space-y-3"),N=e.computed(()=>g.columns.find(O=>O.key===g.cardTitleKey)??g.columns[0]),Q=e.computed(()=>g.columns.find(O=>O.key==="actions")),m=e.computed(()=>g.columns.filter(O=>O!==N.value&&O.key!=="actions"));function G(O){return g.selectionLabel?g.selectionLabel(O):`Select ${String(M(O))}`}function M(O){const AA=O[g.rowKey];return typeof AA=="string"||typeof AA=="number"?AA:0}function Y(O){return g.selectedKeys.includes(M(O))}function h(O){return g.expandedKey!=null&&M(O)===g.expandedKey}const p=e.computed(()=>g.columns.length+(g.selectable?1:0));function F(){return typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(prefers-reduced-motion: reduce)").matches:!1}function S(O,AA,q,bA){const oA=O.querySelector("[data-expansion-inner]");if(!oA||F()){bA();return}oA.style.overflow="hidden",oA.style.height=AA,oA.offsetHeight,oA.style.transition=`height ${Rw}ms ease`,oA.style.height=q;let eA=!1;const uA=()=>{eA||(eA=!0,oA.removeEventListener("transitionend",dA),clearTimeout(ee),oA.style.transition="",oA.style.height="",oA.style.overflow="",bA())},dA=kA=>{kA.target===oA&&kA.propertyName==="height"&&uA()};oA.addEventListener("transitionend",dA);const ee=setTimeout(uA,Rw+60)}function nA(O,AA){const q=O.querySelector("[data-expansion-inner]");S(O,"0px",`${q?q.scrollHeight:0}px`,AA)}function _(O,AA){const q=O.querySelector("[data-expansion-inner]");S(O,`${q?q.scrollHeight:0}px`,"0px",AA)}const j=e.computed(()=>$.value.length>0&&$.value.every(O=>Y(O))),V=e.computed(()=>$.value.some(O=>Y(O)));function W(O){const AA=M(O),q=Y(O)?g.selectedKeys.filter(bA=>bA!==AA):[...g.selectedKeys,AA];a("update:selectedKeys",q)}function vA(){if(j.value){const O=new Set($.value.map(M));a("update:selectedKeys",g.selectedKeys.filter(AA=>!O.has(AA)))}else{const O=new Set(g.selectedKeys),AA=$.value.map(M).filter(q=>!O.has(q));a("update:selectedKeys",[...g.selectedKeys,...AA])}}function BA(O,AA){return AA.split(".").reduce((q,bA)=>{if(q&&typeof q=="object"&&q!==null&&bA in q)return q[bA]},O)}function sA(O,AA){return typeof O.id=="string"||typeof O.id=="number"?O.id:typeof O.key=="string"||typeof O.key=="number"?O.key:AA}function k(O){const AA=g.sortField===O&&g.sortDirection==="asc"?"desc":"asc";a("sort",O,AA)}function y(O){a("row-click",O)}function K(O,AA){return{row:O,index:AA,selected:Y(O),selectable:g.selectable,toggleSelect:()=>W(O)}}const $=e.computed(()=>{if(!g.data)return[];const O=Array.isArray(g.data)?g.data:[];if(!g.pageSize||g.pageSize<=0)return O;const AA=(g.page-1)*g.pageSize,q=AA+g.pageSize;return O.slice(AA,q)});return(O,AA)=>(e.openBlock(),e.createElementBlock("div",null,[P.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["mb-3 flex justify-end",L.value])},[e.createVNode(k8,{"data-testid":"view-toggle","model-value":C.value,options:b,toggle:"",size:"md","aria-label":"List view","onUpdate:modelValue":AA[0]||(AA[0]=q=>c(q))},null,8,["model-value"])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"wrapperRef",ref:f,class:e.normalizeClass(["overflow-x-auto rounded-lg border border-border bg-white",x.value]),onMousedown:w},[e.createElementVNode("table",qP,[e.createElementVNode("thead",KP,[e.createElementVNode("tr",null,[A.selectable?(e.openBlock(),e.createElementBlock("th",kP,[e.createElementVNode("label",RP,[e.createElementVNode("input",{type:"checkbox",class:"h-4 w-4 cursor-pointer rounded-[3px] border-gray-medium accent-[#6888FB]",checked:j.value,indeterminate:V.value&&!j.value,"aria-label":"Select all",onChange:vA},null,40,JP)])])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.columns,q=>(e.openBlock(),e.createElementBlock("th",{key:q.key,scope:"col",class:e.normalizeClass(["px-4 py-3 text-left text-xs font-normal text-muted uppercase tracking-[0.06em]",q.sortable?"cursor-pointer hover:bg-gray-lightest":"",q.class||""]),onClick:bA=>q.sortable?k(q.key):null},[e.createElementVNode("div",SP,[e.createElementVNode("span",null,e.toDisplayString(q.label),1),q.sortable?(e.openBlock(),e.createElementBlock("span",$P,[(e.openBlock(),e.createElementBlock("svg",{viewBox:"0 0 20 20",fill:"currentColor",class:e.normalizeClass(["h-4 w-4",A.sortField===q.key&&A.sortDirection==="asc"?"text-foreground":"text-gray-dark"])},[...AA[2]||(AA[2]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M14.77 12.79a.75.75 0 0 1-1.06-.02L10 8.832 6.29 12.77a.75.75 0 1 1-1.08-1.04l4.25-4.5a.75.75 0 0 1 1.08 0l4.25 4.5a.75.75 0 0 1-.02 1.06Z","clip-rule":"evenodd"},null,-1)])],2)),(e.openBlock(),e.createElementBlock("svg",{viewBox:"0 0 20 20",fill:"currentColor",class:e.normalizeClass(["h-4 w-4 -mt-1",A.sortField===q.key&&A.sortDirection==="desc"?"text-foreground":"text-gray-dark"])},[...AA[3]||(AA[3]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.23 7.21a.75.75 0 0 1 1.06.02L10 11.168l3.71-3.938a.75.75 0 1 1 1.08 1.04l-4.25 4.5a.75.75 0 0 1-1.08 0l-4.25-4.5a.75.75 0 0 1 .02-1.06Z","clip-rule":"evenodd"},null,-1)])],2))])):e.createCommentVNode("",!0)])],10,UP))),128))])]),e.createElementVNode("tbody",_P,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.value,(q,bA)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:sA(q,bA)},[e.createElementVNode("tr",{class:e.normalizeClass(["cursor-pointer transition-colors",Y(q)?"bg-[#F5F8FF]":"bg-white hover:bg-gray-lightest"]),onClick:oA=>y(q)},[A.selectable?(e.openBlock(),e.createElementBlock("td",{key:0,class:"px-3 py-4 w-10",onClick:AA[1]||(AA[1]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("label",e1,[e.createElementVNode("input",{type:"checkbox",class:"h-4 w-4 cursor-pointer rounded-[3px] border-gray-medium accent-[#6888FB]",checked:Y(q),"aria-label":G(q),onChange:oA=>W(q)},null,40,t1)])])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.columns,oA=>(e.openBlock(),e.createElementBlock("td",{key:oA.key,class:e.normalizeClass(["px-4 py-4 whitespace-nowrap text-sm-regular text-foreground",u.value&&oA.key!=="actions"?"cursor-pointer":"",oA.class||""]),onClick:e.withModifiers(eA=>oA.key==="actions"?null:y(q),["stop"])},[e.renderSlot(O.$slots,`cell-${oA.key}`,{row:q,value:BA(q,oA.key)},()=>[e.createTextVNode(e.toDisplayString(BA(q,oA.key)),1)])],10,f1))),128))],10,A1),e.createVNode(e.Transition,{css:!1,onEnter:nA,onLeave:_},{default:e.withCtx(()=>[h(q)?(e.openBlock(),e.createElementBlock("tr",n1,[e.createElementVNode("td",{colspan:p.value,class:"p-0"},[e.createElementVNode("div",r1,[e.renderSlot(O.$slots,"row-expansion",{row:q})])],8,v1)])):e.createCommentVNode("",!0)]),_:2},1024)],64))),128))])]),$.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",w1,[e.renderSlot(O.$slots,"empty",{},()=>[AA[4]||(AA[4]=e.createElementVNode("div",{class:"text-center py-12 text-gray-darkest text-sm"},"No data",-1))])]))],34),X.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(z.value)},[A.selectable&&$.value.length?(e.openBlock(),e.createElementBlock("div",s1,[e.createElementVNode("label",g1,[e.createElementVNode("input",{type:"checkbox",class:"h-4 w-4 cursor-pointer rounded-[3px] border-gray-medium accent-[#6888FB]",checked:j.value,indeterminate:V.value&&!j.value,"aria-label":"Select all",onChange:vA},null,40,B1),e.createElementVNode("span",a1," Select all ("+e.toDisplayString($.value.length)+") ",1)])])):e.createCommentVNode("",!0),$.value.length?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(H.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.value,(q,bA)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:sA(q,bA)},[e.renderSlot(O.$slots,"card",e.mergeProps({ref_for:!0},K(q,bA)),()=>[e.createVNode(BB,{row:q,"title-column":N.value,"grid-columns":m.value,"actions-column":Q.value,selectable:A.selectable,selected:Y(q),"select-label":G(q),"grid-cols":A.cardGridCols,onClick:oA=>y(q),onToggle:oA=>W(q)},e.createSlots({_:2},[e.renderList(O.$slots,(oA,eA)=>({name:eA,fn:e.withCtx(uA=>[e.renderSlot(O.$slots,eA,e.mergeProps({ref_for:!0},uA??{}))])}))]),1032,["row","title-column","grid-columns","actions-column","selectable","selected","select-label","grid-cols","onClick","onToggle"])]),e.createVNode(e.Transition,{css:!1,onEnter:nA,onLeave:_},{default:e.withCtx(()=>[h(q)?(e.openBlock(),e.createElementBlock("div",o1,[e.createElementVNode("div",u1,[e.renderSlot(O.$slots,"row-expansion",{row:q})])])):e.createCommentVNode("",!0)]),_:2},1024)],64))),128))],2)):(e.openBlock(),e.createElementBlock("div",d1,[e.renderSlot(O.$slots,"empty",{},()=>[AA[5]||(AA[5]=e.createElementVNode("div",{class:"rounded-md border border-gray-light bg-white text-center py-12 text-gray-darkest text-sm"}," No data ",-1))])]))],2)):e.createCommentVNode("",!0)]))}}),i1=["role"],l1={key:0,width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},D1={key:1,width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},C1={key:2,width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},P1={class:"flex-1 min-w-0"},b1=["aria-label"],X1=["width","height"],z1=e.defineComponent({__name:"EvToast",props:{variant:{default:"info"},title:{},description:{},appearance:{default:"default"},icon:{type:Boolean,default:void 0},loading:{type:Boolean},loadingLabel:{default:"Loading"},dismissLabel:{default:"Dismiss"},class:{}},emits:["dismiss"],setup(A,{emit:t}){const f=A,n=t,v={info:"var(--color-brand-blue-active)",success:"#4F7A14",warning:"#846116",error:"#B93022"},w=e.computed(()=>f.appearance==="plain"),r=e.computed(()=>f.icon??!w.value),s=e.computed(()=>T(w.value?"ev-toast ev-toast--plain pointer-events-auto w-full max-w-[460px] flex items-start gap-3 px-5 py-4 rounded-lg bg-white":"ev-toast pointer-events-auto min-w-[280px] max-w-md flex items-start gap-3 px-3 py-2.5 rounded-md border border-gray-light bg-white",f.class)),g=e.computed(()=>w.value?"text-[17px] font-semibold text-[#0E1320]":"text-sm-medium text-black"),B=e.computed(()=>w.value?"text-sm-regular text-[#6A6A6A] mt-1 leading-snug":"text-xs-regular text-gray-darkest mt-0.5"),a=e.computed(()=>w.value?"flex-shrink-0 mt-0.5 inline-flex items-center justify-center text-[#A5A5A5] hover:text-black transition-colors cursor-pointer":"flex-shrink-0 w-6 h-6 inline-flex items-center justify-center rounded-sm text-gray-darkest hover:bg-background transition-colors cursor-pointer"),o=e.computed(()=>w.value?18:14),u=e.computed(()=>f.variant==="error"||f.variant==="warning"?"alert":"status");return(d,l)=>(e.openBlock(),e.createElementBlock("div",{role:u.value,class:e.normalizeClass(s.value)},[A.loading||r.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:"mt-0.5 flex-shrink-0",style:e.normalizeStyle({color:v[A.variant]})},[A.loading?(e.openBlock(),e.createBlock(e.unref(uf),{key:0,size:5,color:v[A.variant],label:A.loadingLabel},null,8,["color","label"])):e.renderSlot(d.$slots,"icon",{key:1},()=>[A.variant==="warning"?(e.openBlock(),e.createElementBlock("svg",l1,[...l[1]||(l[1]=[e.createElementVNode("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"},null,-1),e.createElementVNode("path",{d:"M12 9v4"},null,-1),e.createElementVNode("path",{d:"M12 17h.01"},null,-1)])])):A.variant==="error"?(e.openBlock(),e.createElementBlock("svg",D1,[...l[2]||(l[2]=[e.createElementVNode("circle",{cx:"12",cy:"12",r:"10"},null,-1),e.createElementVNode("line",{x1:"12",x2:"12",y1:"8",y2:"12"},null,-1),e.createElementVNode("line",{x1:"12",x2:"12.01",y1:"16",y2:"16"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",C1,[...l[3]||(l[3]=[e.createElementVNode("circle",{cx:"12",cy:"12",r:"10"},null,-1),e.createElementVNode("path",{d:"m9 12 2 2 4-4"},null,-1)])]))],!0)],4)):e.createCommentVNode("",!0),e.createElementVNode("div",P1,[A.title?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(g.value)},e.toDisplayString(A.title),3)):e.createCommentVNode("",!0),A.description?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(B.value)},e.toDisplayString(A.description),3)):e.createCommentVNode("",!0),e.renderSlot(d.$slots,"default",{},void 0,!0)]),e.createElementVNode("button",{type:"button","aria-label":A.dismissLabel,class:e.normalizeClass(a.value),onClick:l[0]||(l[0]=C=>n("dismiss"))},[(e.openBlock(),e.createElementBlock("svg",{width:o.value,height:o.value,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[...l[4]||(l[4]=[e.createElementVNode("path",{d:"M18 6 6 18"},null,-1),e.createElementVNode("path",{d:"m6 6 12 12"},null,-1)])],8,X1))],10,b1)],10,i1))}}),aB=wA._export_sfc(z1,[["__scopeId","data-v-f1c02171"]]),re=e.ref([]);let L1=0;const fn=new Map;function Lr(A){const t=fn.get(A);t!==void 0&&(clearTimeout(t),fn.delete(A))}function oB(A,t){Lr(A),t>0&&fn.set(A,setTimeout(()=>uB(A),t))}function uB(A){Lr(A),re.value=re.value.filter(t=>t.id!==A)}function zt(A={}){const t=++L1,f={id:t,variant:A.variant??"info",duration:A.duration??(A.loading?0:4e3),title:A.title,description:A.description,icon:A.icon,loading:A.loading};return re.value=[...re.value,f],oB(t,f.duration),t}function Yv(A,t={}){const f=re.value.findIndex(v=>v.id===A);if(f===-1)return;const n={...re.value[f],...t};re.value=re.value.map((v,w)=>w===f?n:v),"duration"in t&&oB(A,n.duration)}function M1(){for(const A of fn.keys())Lr(A);re.value=[]}function yf(A){return(t,f,n)=>zt(typeof t=="object"&&t!==null?{...t,variant:A}:{...n,variant:A,title:t,description:f})}function H1(A,t,f){return zt(typeof A=="object"&&A!==null?{variant:"info",...A,loading:!0}:{variant:"info",...f,title:A,description:t,loading:!0})}function Kn(A,t){const f=typeof A=="function"?A(t):A;return typeof f=="string"?{title:f}:{title:f?.title,description:f?.description}}async function Y1(A,t){const f=zt({variant:"info",loading:!0,...Kn(t.loading)}),n=t.duration??4e3;try{const v=await A;return Yv(f,{loading:!1,variant:"success",icon:!0,duration:n,...Kn(t.success,v)}),v}catch(v){throw Yv(f,{loading:!1,variant:"error",icon:!0,duration:n,...Kn(t.error,v)}),v}}function dB(){return{items:e.readonly(re),push:zt,update:Yv,dismiss:uB,clear:M1,showInfo:yf("info"),showSuccess:yf("success"),showWarning:yf("warning"),showError:yf("error"),showLoading:H1,promise:Y1}}const m1=e.defineComponent({__name:"EvToastContainer",props:{placement:{default:"bottom-right"},appearance:{default:"default"},notificationsLabel:{default:"Notifications"},dismissLabel:{default:"Dismiss"},loadingLabel:{default:"Loading"}},setup(A){const t=A,{items:f,dismiss:n}=dB(),v=e.computed(()=>t.placement==="top-center"?"fixed z-[80] top-4 left-1/2 -translate-x-1/2 flex flex-col items-center gap-2 pointer-events-none w-[calc(100%-2rem)] max-w-[460px]":"fixed z-[60] bottom-4 right-4 flex flex-col items-end gap-2 pointer-events-none"),w=e.computed(()=>t.appearance==="plain"?"evt-plain":"evt-default");return(r,s)=>(e.openBlock(),e.createBlock(e.TransitionGroup,{name:w.value,tag:"div",class:e.normalizeClass(v.value),role:"region","aria-label":A.notificationsLabel},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),g=>(e.openBlock(),e.createBlock(aB,{key:g.id,variant:g.variant,title:g.title,description:g.description,appearance:A.appearance,icon:g.icon,loading:g.loading,"dismiss-label":A.dismissLabel,"loading-label":A.loadingLabel,onDismiss:B=>e.unref(n)(g.id)},null,8,["variant","title","description","appearance","icon","loading","dismiss-label","loading-label","onDismiss"]))),128))]),_:1},8,["name","class","aria-label"]))}}),x1={class:"flex flex-col items-center flex-shrink-0"},G1={key:0,class:"h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},h1={class:"flex-1 pt-0.5 min-w-0"},N1={key:0,class:"text-xs-regular text-muted mt-0.5"},Q1=e.defineComponent({__name:"EvStepper",props:{steps:{},current:{default:0},class:{}},setup(A){const t=A,f=e.computed(()=>T("flex items-start gap-0 w-full",t.class));function n(w){return w<t.current?"complete":w===t.current?"active":"pending"}const v={complete:"bg-brand-blue text-white",active:"bg-black text-white",pending:"bg-white border border-border text-gray-dark"};return(w,r)=>(e.openBlock(),e.createElementBlock("ol",{class:e.normalizeClass(f.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.steps,(s,g)=>(e.openBlock(),e.createElementBlock("li",{key:g,class:"flex-1 flex items-start gap-3"},[e.createElementVNode("div",x1,[e.createElementVNode("div",{class:e.normalizeClass(e.unref(T)("w-7 h-7 rounded-full flex items-center justify-center text-xs-medium transition-colors",v[n(g)]))},[n(g)==="complete"?(e.openBlock(),e.createElementBlock("svg",G1,[...r[0]||(r[0]=[e.createElementVNode("path",{d:"M20 6 9 17l-5-5"},null,-1)])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(g+1),1)],64))],2)]),e.createElementVNode("div",h1,[e.createElementVNode("p",{class:e.normalizeClass(["text-sm-medium leading-tight",n(g)==="pending"?"text-gray-dark":"text-black"])},e.toDisplayString(s.label),3),s.description?(e.openBlock(),e.createElementBlock("p",N1,e.toDisplayString(s.description),1)):e.createCommentVNode("",!0),g!==A.steps.length-1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["h-px mt-3 mr-3",g<A.current?"bg-brand-blue":"bg-gray-light"])},null,2)):e.createCommentVNode("",!0)])]))),128))],2))}}),F1=e.defineComponent({__name:"EvCategoryLabel",props:{label:{},color:{default:"blue"},active:{type:Boolean,default:!1},class:{}},emits:["toggle"],setup(A,{emit:t}){const f={blue:"bg-[#8FA8FF] text-[#202D75]",green:"bg-[#CBE76A] text-[#394A15]",amber:"bg-[#F6DD85] text-[#5B4211]",violet:"bg-[#FBB4F8] text-[#5E205B]",pink:"bg-[#FDCBFB] text-[#92328E]",red:"bg-[#FFBFB2] text-[#7A1E16]"},n=A,v=t,w=e.computed(()=>T("inline-flex items-center h-8 rounded-full px-4 whitespace-nowrap transition-colors","cursor-pointer select-none",n.active?f[n.color]:"bg-white text-black ring-1 ring-inset ring-black hover:bg-[#F8F8F8]",n.class));function r(){v("toggle")}function s(g){(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),v("toggle"))}return(g,B)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["text-xs-medium",w.value]),role:"button",tabindex:"0",onClick:r,onKeydown:s},[e.renderSlot(g.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(A.label),1)])],34))}}),O1={key:0,class:"block mb-2 text-sm-medium text-black"},E1={class:"flex items-stretch h-10 bg-gray-lightest border border-gray-light rounded-[8px] overflow-hidden"},y1={class:"flex-1 px-3 flex items-center text-sm-regular text-black tabular-nums truncate font-mono"},p1=["title","aria-label"],j1=["aria-label"],I1=e.defineComponent({__name:"EvCopyField",props:{value:{},label:{},mask:{type:Boolean,default:!1},copyLabel:{default:"Copy"},copiedLabel:{default:"Copied"},revealLabel:{default:"Reveal"},hideLabel:{default:"Hide"},class:{}},setup(A){const t=A,f=e.ref(!1),n=e.ref(!t.mask);let v;const w=e.computed(()=>t.mask&&!n.value?`${t.value.slice(0,4)}••••••••••••${t.value.slice(-4)}`:t.value);async function r(){try{await navigator.clipboard.writeText(t.value),f.value=!0,v&&clearTimeout(v),v=setTimeout(()=>{f.value=!1},1600)}catch{}}function s(){n.value=!n.value}e.onBeforeUnmount(()=>{v&&clearTimeout(v)});const g=e.computed(()=>T("w-full",t.class));return(B,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(g.value)},[A.label?(e.openBlock(),e.createElementBlock("label",O1,e.toDisplayString(A.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",E1,[e.createElementVNode("code",y1,e.toDisplayString(w.value),1),A.mask?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",title:n.value?A.hideLabel:A.revealLabel,"aria-label":n.value?A.hideLabel:A.revealLabel,class:"w-9 inline-flex items-center justify-center text-gray-darkest border-l border-gray-light hover:bg-gray-light transition-colors cursor-pointer",onClick:s},[e.createVNode(LA,{name:n.value?"eye-off":"eye",size:15},null,8,["name"])],8,p1)):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button","aria-label":f.value?A.copiedLabel:A.copyLabel,class:"w-[86px] inline-flex items-center justify-center gap-1.5 text-sm-medium text-black border-l border-gray-light hover:bg-gray-light transition-colors cursor-pointer",onClick:r},[e.createVNode(LA,{name:f.value?"check":"copy",size:14,class:e.normalizeClass(f.value?"text-[#4F7A14]":"")},null,8,["name","class"]),e.createElementVNode("span",{class:e.normalizeClass(e.unref(T)("text-xs-medium",f.value?"text-[#4F7A14]":""))},e.toDisplayString(f.value?A.copiedLabel:A.copyLabel),3)],8,j1)])],2))}}),V1={top:"bottom-full left-1/2 -translate-x-1/2 mb-2",bottom:"top-full left-1/2 -translate-x-1/2 mt-2",left:"right-full top-1/2 -translate-y-1/2 mr-2",right:"left-full top-1/2 -translate-y-1/2 ml-2"},T1={top:"left-1/2 -translate-x-1/2 -bottom-1",bottom:"left-1/2 -translate-x-1/2 -top-1",left:"top-1/2 -translate-y-1/2 -right-1",right:"top-1/2 -translate-y-1/2 -left-1"},W1=["aria-describedby"],Z1=["data-placement"],q1=["tabindex"],K1=e.defineComponent({__name:"EvTooltip",props:{content:{},position:{default:"top"},disabled:{type:Boolean,default:!1},class:{},interaction:{default:"transient"}},setup(A){const t=A,f=e.useSlots(),n=e.ref(null),v=e.ref(null),w=e.ref(null),r=e.ref(!1),s=e.ref(!1),g=e.ref(!1),B=e.ref(!1),a=e.ref(!1),o=e.ref(!1),u=e.ref(t.position),d=e.ref({visibility:"hidden"}),l=e.ref({}),C=e.ref({left:0,top:0}),c=e.ref(!1),D=`ev-tooltip-${e.useId()}`,i=e.computed(()=>t.interaction==="persistent"),b=e.computed(()=>!!f.content||(t.content??"").trim().length>0),X=e.computed(()=>r.value&&!t.disabled&&b.value);let P=!1,L=null,x=null,z=null,H=0,N=null;function Q(){N!==null&&(clearTimeout(N),N=null)}function m(){Q(),N=setTimeout(()=>{N=null,h()},100)}function G(){g.value||(r.value=!0)}function M(){r.value=!1}function Y(eA=!0){Q(),r.value=!1,s.value=!1,g.value=eA}function h(){!s.value&&!B.value&&!a.value&&!o.value&&(M(),g.value=!1)}function p(){Q(),B.value=!0,G()}function F(){if(B.value=!1,!i.value){M();return}s.value||(g.value=!1),m()}function S(){Q(),a.value=!0}function nA(){a.value=!1,m()}function _(){Q(),o.value=!0,G()}function j(eA){const uA=eA.relatedTarget;uA&&(n.value?.contains(uA)||v.value?.contains(uA))||(o.value=!1,i.value?Y(!1):M())}function V(eA){if(!(!i.value||t.disabled||!b.value)&&!("isPrimary"in eA&&eA.isPrimary===!1)&&!("button"in eA&&typeof eA.button=="number"&&eA.button!==0)){if(Q(),s.value){Y();return}s.value=!0,g.value=!1,r.value=!0}}function W(eA){if(!X.value)return;const uA=eA.target;n.value?.contains(uA)||v.value?.contains(uA)||Y()}function vA(eA){eA.key==="Escape"&&X.value&&Y()}function BA(eA,uA,dA){return Math.min(Math.max(eA,uA),Math.max(uA,dA))}function sA(eA){return eA==="top"?"bottom":eA==="bottom"?"top":eA==="left"?"right":"left"}async function k(){const eA=++H;if(await e.nextTick(),eA!==H||!X.value||!i.value)return;const uA=n.value,dA=v.value,ee=w.value;if(!uA||!dA||!ee)return;dA.style.maxWidth="",ee.style.maxHeight="";const kA=window.visualViewport,Qt=kA?.offsetTop??0,ft=kA?.offsetLeft??0,nt=kA?.width??window.innerWidth,Pe=kA?.height??window.innerHeight,Ft=ft+nt,Ot=Qt+Pe,IA=8,VA=8,iA=uA.getBoundingClientRect(),vt=dA.getBoundingClientRect(),be=vt.width||dA.offsetWidth,Ne=Math.max(vt.height||dA.offsetHeight,dA.scrollHeight),Xe={top:Math.max(0,iA.top-Qt-IA-VA),bottom:Math.max(0,Ot-iA.bottom-IA-VA),left:Math.max(0,iA.left-ft-IA-VA),right:Math.max(0,Ft-iA.right-IA-VA)},Et={top:Ne,bottom:Ne,left:be,right:be},yt=sA(t.position),RA=Xe[t.position]<Et[t.position]&&Xe[yt]>Xe[t.position]?yt:t.position;u.value=RA;const rt=RA==="left"||RA==="right",ae=Math.max(0,nt-IA*2),pt=rt?Math.min(ae,Xe[RA]):ae,ze=be>pt?`${pt}px`:void 0;ze&&(dA.style.maxWidth=ze);const Le=dA.getBoundingClientRect(),Qe=Le.width||Math.min(be,pt),jt=Math.max(Le.height||dA.offsetHeight,dA.scrollHeight),EA=ee.getBoundingClientRect(),En=Math.max(EA.height||ee.offsetHeight,ee.scrollHeight),wt=Math.max(0,jt-En),It=rt?Math.max(0,Pe-IA*2):Xe[RA],Fe=jt>It,oe=Fe?Math.max(0,It-wt):void 0;oe!==void 0&&(ee.style.maxHeight=`${oe}px`);const Oe=dA.getBoundingClientRect().height||Math.min(jt,Math.max(0,It));let te=iA.left+iA.width/2-Qe/2,JA=iA.bottom+VA;RA==="top"?JA=iA.top-Oe-VA:RA==="left"?(te=iA.left-Qe-VA,JA=iA.top+iA.height/2-Oe/2):RA==="right"&&(te=iA.right+VA,JA=iA.top+iA.height/2-Oe/2),te=BA(te,ft+IA,Ft-Qe-IA),JA=BA(JA,Qt+IA,Ot-Oe-IA);const Me=8;C.value={left:BA(iA.left+iA.width/2-te,Me,Math.max(Me,Qe-Me)),top:BA(iA.top+iA.height/2-JA,Me,Math.max(Me,Oe-Me))},d.value={left:`${te}px`,top:`${JA}px`,maxWidth:ze,visibility:"visible"},l.value=oe===void 0?{}:{maxHeight:`${oe}px`},c.value=Fe,L&&(x!==uA||z!==dA)&&(L.disconnect(),L.observe(uA),L.observe(dA),x=uA,z=dA)}function y(eA){const uA=eA.target;uA&&v.value?.contains(uA)||k()}function K(){P||(P=!0,document.addEventListener("pointerdown",W,!0),document.addEventListener("keydown",vA,!0),window.addEventListener("scroll",y,!0),window.addEventListener("resize",k),window.visualViewport?.addEventListener("scroll",k),window.visualViewport?.addEventListener("resize",k),typeof ResizeObserver<"u"&&(L=new ResizeObserver(k)))}function $(){H+=1,Q(),P&&(document.removeEventListener("pointerdown",W,!0),document.removeEventListener("keydown",vA,!0),window.removeEventListener("scroll",y,!0),window.removeEventListener("resize",k),window.visualViewport?.removeEventListener("scroll",k),window.visualViewport?.removeEventListener("resize",k),P=!1),L?.disconnect(),L=null,x=null,z=null,d.value={visibility:"hidden"},l.value={},c.value=!1}e.watch([X,i],async([eA,uA])=>{eA&&uA?(K(),await k()):$()},{flush:"post"}),e.watch([()=>t.position,()=>t.content,()=>t.class],()=>{X.value&&i.value&&k()}),e.onBeforeUnmount($);const O=e.computed(()=>T("pointer-events-none absolute z-50 w-max max-w-xs","rounded bg-brand-black px-2 py-1 text-xs text-white shadow-popover",V1[t.position],t.class)),AA=e.computed(()=>T("absolute h-2 w-2 rotate-45 bg-brand-black",T1[t.position])),q=e.computed(()=>T("pointer-events-auto fixed z-50 w-max max-w-xs","rounded bg-brand-black px-2 py-1 text-xs text-white shadow-popover",t.class)),bA=e.computed(()=>{const eA="absolute h-2 w-2 rotate-45 bg-brand-black";return u.value==="top"?`${eA} -bottom-1 -translate-x-1/2`:u.value==="bottom"?`${eA} -top-1 -translate-x-1/2`:u.value==="left"?`${eA} -right-1 -translate-y-1/2`:`${eA} -left-1 -translate-y-1/2`}),oA=e.computed(()=>u.value==="top"||u.value==="bottom"?{left:`${C.value.left}px`}:{top:`${C.value.top}px`});return(eA,uA)=>(e.openBlock(),e.createElementBlock("span",{ref_key:"triggerRef",ref:n,class:"relative inline-flex","aria-describedby":X.value?D:void 0,onMouseenter:p,onMouseleave:F,onPointerdown:V,onFocusin:_,onFocusout:j},[e.renderSlot(eA.$slots,"default"),X.value&&!i.value?(e.openBlock(),e.createElementBlock("span",{key:0,id:D,role:"tooltip",class:e.normalizeClass(O.value),"data-testid":"ev-tooltip-content"},[e.renderSlot(eA.$slots,"content",{},()=>[e.createTextVNode(e.toDisplayString(A.content),1)]),e.createElementVNode("span",{class:e.normalizeClass(AA.value),"aria-hidden":"true"},null,2)],2)):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createBlock(e.Teleport,{key:1,to:"body"},[X.value?(e.openBlock(),e.createElementBlock("span",{key:0,id:D,ref_key:"bubbleRef",ref:v,role:"tooltip",class:e.normalizeClass(q.value),style:e.normalizeStyle(d.value),"data-placement":u.value,"data-testid":"ev-tooltip-content",onMouseenter:S,onMouseleave:nA,onFocusin:_,onFocusout:j},[e.createElementVNode("span",{ref_key:"contentRef",ref:w,class:"block overflow-auto overscroll-contain",style:e.normalizeStyle(l.value),tabindex:c.value?0:void 0,"data-testid":"ev-tooltip-scroll"},[e.renderSlot(eA.$slots,"content",{},()=>[e.createTextVNode(e.toDisplayString(A.content),1)])],12,q1),e.createElementVNode("span",{class:e.normalizeClass(bA.value),style:e.normalizeStyle(oA.value),"aria-hidden":"true"},null,6)],46,Z1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],40,W1))}}),cB=Symbol("EvMenuContext"),k1=["aria-expanded"],R1=e.defineComponent({inheritAttrs:!1,__name:"EvMenu",props:{align:{default:"right"},class:{}},emits:["open","close"],setup(A,{emit:t}){const f=A,n=t,v=e.ref(!1),w=e.ref(null),r=e.ref(null),s=e.ref(null);function g(){v.value&&(v.value=!1)}function B(){v.value=!v.value}function a(){return s.value?Array.from(s.value.querySelectorAll('[role="menuitem"]:not([disabled])')):[]}function o(){(r.value?.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')??r.value)?.focus()}function u(c){w.value&&!w.value.contains(c.target)&&g()}function d(c){c.key==="Escape"&&(g(),o())}function l(c){if(c.key!=="ArrowDown"&&c.key!=="ArrowUp")return;const D=a();if(D.length===0)return;c.preventDefault();const i=document.activeElement,b=i?D.indexOf(i):-1,X=c.key==="ArrowDown"?1:-1,P=(b+X+D.length)%D.length;D[P]?.focus()}e.watch(v,c=>{c?(document.addEventListener("mousedown",u),document.addEventListener("keydown",d),n("open"),e.nextTick(()=>a()[0]?.focus())):(document.removeEventListener("mousedown",u),document.removeEventListener("keydown",d),n("close"))}),e.onUnmounted(()=>{document.removeEventListener("mousedown",u),document.removeEventListener("keydown",d)}),e.provide(cB,{close:g});const C=e.computed(()=>T("absolute z-30 mt-1 min-w-[180px] p-1 ev-popover-surface fade-in",f.align==="left"?"left-0":"right-0"));return(c,D)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"root",ref:w,class:e.normalizeClass(e.unref(T)("relative inline-block",f.class))},[e.createElementVNode("div",e.mergeProps({ref_key:"triggerWrap",ref:r,class:"ev-menu-trigger cursor-pointer","aria-expanded":v.value,"aria-haspopup":"menu"},c.$attrs,{onClick:B}),[e.renderSlot(c.$slots,"trigger",{open:v.value,ariaExpanded:v.value,ariaHaspopup:"menu"},void 0,!0)],16,k1),v.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"popover",ref:s,class:e.normalizeClass(C.value),role:"menu",onKeydown:l},[e.renderSlot(c.$slots,"default",{},void 0,!0)],34)):e.createCommentVNode("",!0)],2))}}),J1=wA._export_sfc(R1,[["__scopeId","data-v-fdc40d77"]]),U1=["disabled"],S1={class:"flex-1 truncate"},$1=e.defineComponent({__name:"EvMenuItem",props:{label:{},icon:{},destructive:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},divider:{type:Boolean,default:!1},class:{}},emits:["click"],setup(A,{emit:t}){const f=A,n=t,v=e.inject(cB,null);function w(s){f.disabled||(n("click",s),v?.close())}const r=e.computed(()=>T("w-full flex items-center gap-2.5 px-3 py-2 rounded-[8px] text-left transition-colors cursor-pointer",f.destructive?"text-error hover:bg-error-bg":"text-foreground hover:bg-gray-lightest",f.disabled&&"text-muted opacity-60 cursor-not-allowed hover:bg-transparent",f.class));return(s,g)=>A.divider?(e.openBlock(),e.createElementBlock("hr",{key:0,role:"separator",class:e.normalizeClass(e.unref(T)("my-1 border-gray-light",f.class))},null,2)):(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",role:"menuitem",class:e.normalizeClass(["text-sm-medium",r.value]),disabled:A.disabled||void 0,onClick:w},[A.icon?(e.openBlock(),e.createBlock(LA,{key:0,name:A.icon,size:16},null,8,["name"])):e.createCommentVNode("",!0),e.createElementVNode("span",S1,[e.renderSlot(s.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(A.label),1)])])],10,U1))}}),_1=e.defineComponent({__name:"EvMenuDivider",props:{class:{}},setup(A){const t=A,f=e.computed(()=>T("my-1 border-gray-light",t.class));return(n,v)=>(e.openBlock(),e.createElementBlock("hr",{role:"separator",class:e.normalizeClass(f.value)},null,2))}}),A2=.3;function e2(A,t,f,n){const v=e.ref(null),w=e.ref(null),r=e.ref(null),s=e.ref(0),g=e.ref();let B,a=!1;function o(){if(a||!A.value||!v.value||!w.value||!r.value)return;let d=v.value.getBoundingClientRect().width;if(n.value&&f.value){const b=f.value,X=getComputedStyle(b),P=b.clientWidth-(parseFloat(X.paddingLeft)||0)-(parseFloat(X.paddingRight)||0),L=parseFloat(X.columnGap)||0,x=b.lastElementChild?.getBoundingClientRect().width||0;d=P*(1-A2)-x-L*2}const l=Array.from(w.value.children),C=parseFloat(getComputedStyle(v.value).columnGap)||0,c=l.length;let D=0,i=0;g.value=void 0;for(let b=0;b<c;b++){const X=c-b-1;r.value.textContent=`+${X}`;const P=X?r.value.getBoundingClientRect().width+C:0,L=l[b].getBoundingClientRect().width,x=b===0?Math.min(L,d-P):L,z=getComputedStyle(l[b]),H=(parseFloat(z.paddingLeft)||0)+(parseFloat(z.paddingRight)||0)+(parseFloat(z.columnGap)||0)+(l[b].lastElementChild?.getBoundingClientRect().width||0)+1;if(x<H||D+(b?C:0)+x+P>d)break;D+=(b?C:0)+x,i=b+1,b===0&&(g.value=x)}s.value=i}function u(){B?.disconnect(),A.value&&(f.value&&B?.observe(f.value),v.value&&B?.observe(v.value),w.value&&B?.observe(w.value),o())}return e.watch([A,t,f,n,v,w],()=>e.nextTick(u),{flush:"post"}),e.onMounted(()=>{typeof ResizeObserver<"u"&&(B=new ResizeObserver(o)),u(),document.fonts?.ready.then(()=>o()),document.fonts?.addEventListener("loadingdone",o),window.addEventListener("resize",o)}),e.onBeforeUnmount(()=>{a=!0,B?.disconnect(),document.fonts?.removeEventListener("loadingdone",o),window.removeEventListener("resize",o)}),{containerRef:v,measureRef:w,summaryRef:r,visibleCount:s,firstChipWidth:g}}const t2={class:"w-full min-w-0 max-w-full"},f2=["id","for"],n2=["role","tabindex","aria-disabled","aria-invalid","aria-labelledby","aria-expanded","aria-controls"],v2=["title"],r2=["disabled","aria-label","onClick"],w2=["title","aria-label"],s2=["id","aria-expanded","aria-controls","aria-activedescendant","aria-label","aria-invalid","disabled","placeholder"],g2={key:2,class:"min-w-0 truncate px-1 text-sm-regular text-muted"},B2={key:0,class:"ev-multi-select-measure","aria-hidden":"true"},a2={class:"min-w-0 truncate"},o2={key:0,class:"p-2 border-b border-gray-light"},u2={class:"flex items-center gap-2 px-3 h-9 rounded-[8px] bg-white border border-[color:var(--ev-input-border,#F1F1F1)]"},d2=["aria-label"],c2=["id","aria-activedescendant"],i2=["id","data-index","aria-selected","onMouseenter","onClick"],l2={class:"truncate"},D2={key:0,class:"px-3 py-2 text-sm-regular text-muted","data-testid":"ev-multi-select-empty"},pf="ev-multi-select-tag inline-flex items-center gap-1 pl-2 pr-1 py-0.5 rounded-[6px] bg-info-bg text-brand-blue-active text-xs-medium",C2=e.defineComponent({inheritAttrs:!1,__name:"EvMultiSelect",props:e.mergeModels({options:{},inputAttrs:{},placeholder:{default:"Select options"},searchable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},label:{},size:{default:"md"},selectionDisplay:{default:"wrap"},searchPlacement:{default:"dropdown"},removeOnBackspace:{type:Boolean,default:!1},clearSearchOnSelect:{type:Boolean,default:!1},class:{}},{modelValue:{default:()=>[]},modelModifiers:{}}),emits:["update:modelValue"],setup(A){const t=A,f=e.useModel(A,"modelValue"),n=e.computed(()=>f.value??[]),v=e.computed(()=>{const j=new Set;return n.value.filter(V=>j.has(V)?!1:(j.add(V),!0)).map(V=>t.options.find(W=>W.value===V)??(t.selectionDisplay==="collapse"?{value:V,label:String(V)}:void 0)).filter(V=>!!V)});function w(j){return n.value.includes(j)}function r(j){f.value=j}function s(j){t.disabled||(w(j)?r(n.value.filter(V=>V!==j)):r([...n.value,j]),t.clearSearchOnSelect&&(a.value=""),x.value&&e.nextTick(()=>c.value?.focus()))}function g(j){t.disabled||r(n.value.filter(V=>V!==j))}const{open:B,query:a,activeIndex:o,filtered:u,rootRef:d,panelRef:l,triggerRef:C,searchRef:c,openMenu:D,toggle:i,pick:b,onTriggerKeydown:X,onListKeydown:P}=Yn({options:e.computed(()=>t.options),getValue:j=>j.value,getFilterText:j=>j.label,disabled:e.computed(()=>t.disabled),selected:f,onPick:j=>s(j.value),multiple:!0,searchable:e.computed(()=>t.searchable),focusSearchOnOpen:!1}),L=e.computed(()=>t.selectionDisplay==="collapse"),x=e.computed(()=>t.searchable&&t.searchPlacement==="inline"),{containerRef:z,measureRef:H,summaryRef:N,visibleCount:Q,firstChipWidth:m}=e2(L,e.computed(()=>v.value.map(j=>j.label)),C,x),G=e.computed(()=>L.value?v.value.slice(0,Q.value):v.value),M=e.computed(()=>v.value.length-G.value.length),Y=e.computed(()=>v.value.slice(G.value.length).map(j=>j.label).join(", "));function h(){x.value?(D(),c.value?.focus()):i()}function p(){const j=a.value;D(),a.value=j}function F(j){if(!t.disabled&&!(j.key==="Escape"&&!B.value)){if(j.stopPropagation(),t.removeOnBackspace&&j.key==="Backspace"&&!a.value&&n.value.length){r(n.value.slice(0,-1));return}!B.value&&["ArrowDown","ArrowUp","Enter"].includes(j.key)?(j.preventDefault(),D()):B.value&&P(j)}}const S=`ev-multi-select-${Math.random().toString(36).slice(2,9)}`,nA=e.computed(()=>t.inputAttrs?.id??`${S}-input`),_=e.computed(()=>T("w-full px-2 py-1 bg-white border rounded-[8px] flex flex-wrap items-center gap-1.5 text-left transition-colors cursor-pointer",L.value?Rt[t.size]:ir[t.size],L.value?"ev-multi-select-collapsed flex-nowrap overflow-hidden":"","focus:outline-none focus:border-[color:var(--ev-input-focus,#888A8D)]",B.value?"border-[color:var(--ev-input-focus,#888A8D)]":"border-[color:var(--ev-input-border,#F1F1F1)]",t.error?"border-error":"",t.disabled?"bg-gray-lightest text-muted cursor-not-allowed":"",t.class));return(j,V)=>(e.openBlock(),e.createElementBlock("div",t2,[A.label?(e.openBlock(),e.createElementBlock("label",{key:0,id:`${S}-label`,for:x.value?nA.value:void 0,class:"block mb-2 text-sm-medium text-black"},e.toDisplayString(A.label),9,f2)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"root",ref:d,class:"relative"},[e.createElementVNode("div",e.mergeProps({ref_key:"triggerRef",ref:C,role:x.value?"group":"button",tabindex:A.disabled||x.value?-1:0,"aria-disabled":A.disabled,"aria-invalid":A.error||void 0,"aria-labelledby":A.label?`${S}-label`:void 0,"aria-expanded":e.unref(B),"aria-haspopup":"listbox","aria-controls":e.unref(B)?`${S}-listbox`:void 0,"data-testid":"ev-multi-select-control",class:_.value},j.$attrs,{onClick:h,onKeydown:V[4]||(V[4]=e.withModifiers((...W)=>e.unref(X)&&e.unref(X)(...W),["self"]))}),[v.value.length?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"containerRef",ref:z,class:e.normalizeClass(L.value?["ev-multi-select-selection",x.value?"ev-multi-select-inline-selection":""]:"contents")},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G.value,(W,vA)=>(e.openBlock(),e.createElementBlock("span",{key:W.value,"data-testid":"ev-multi-select-chip",class:e.normalizeClass([pf,L.value?"ev-multi-select-bounded-tag":""]),style:e.normalizeStyle(L.value&&vA===0&&e.unref(m)!==void 0?{maxWidth:`${e.unref(m)}px`}:void 0),title:L.value?W.label:void 0},[e.createElementVNode("span",{class:e.normalizeClass(L.value?"min-w-0 truncate":"")},e.toDisplayString(W.label),3),e.createElementVNode("button",{type:"button",disabled:A.disabled,"aria-label":`Remove ${W.label}`,"data-testid":"ev-multi-select-chip-remove",class:"inline-flex w-3.5 h-3.5 shrink-0 items-center justify-center rounded-sm hover:bg-[#DCE5FF] cursor-pointer",onClick:e.withModifiers(BA=>g(W.value),["stop"]),onKeydown:V[0]||(V[0]=e.withModifiers(()=>{},["stop"]))},[e.createVNode(LA,{name:"x",size:10})],40,r2)],14,v2))),128)),M.value?(e.openBlock(),e.createElementBlock("span",{key:0,"data-testid":"ev-multi-select-overflow",class:e.normalizeClass([pf,"ev-multi-select-summary"]),title:Y.value,"aria-label":`${M.value} more selected: ${Y.value}`},"+"+e.toDisplayString(M.value),11,w2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),x.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",e.mergeProps({key:1},A.inputAttrs,{id:nA.value,ref_key:"searchRef",ref:c,"onUpdate:modelValue":V[1]||(V[1]=W=>e.isRef(a)?a.value=W:null),type:"text",role:"combobox","aria-autocomplete":"list","aria-haspopup":"listbox","aria-expanded":e.unref(B),"aria-controls":e.unref(B)?`${S}-listbox`:void 0,"aria-activedescendant":e.unref(B)&&e.unref(o)>=0?`${S}-opt-${e.unref(o)}`:void 0,"aria-label":A.label||A.placeholder,"aria-invalid":A.error||void 0,disabled:A.disabled,placeholder:v.value.length?"":A.placeholder,"data-testid":"ev-multi-select-search",class:["ev-multi-select-inline-search bg-transparent text-sm-regular text-black placeholder:text-muted outline-none",v.value.length?"ev-multi-select-with-selection":""],onFocus:V[2]||(V[2]=(...W)=>e.unref(D)&&e.unref(D)(...W)),onInput:p,onClick:V[3]||(V[3]=e.withModifiers((...W)=>e.unref(D)&&e.unref(D)(...W),["stop"])),onKeydown:F}),null,16,s2)),[[e.vModelText,e.unref(a)]]):v.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",g2,e.toDisplayString(A.placeholder),1)),e.createVNode(LA,{name:"chevron-down",size:16,class:e.normalizeClass(e.unref(T)("ml-auto shrink-0 text-muted transition-transform",e.unref(B)?"rotate-180":""))},null,8,["class"])],16,n2),L.value&&v.value.length?(e.openBlock(),e.createElementBlock("div",B2,[e.createElementVNode("div",{ref_key:"measureRef",ref:H,class:"ev-multi-select-measure-tags"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,W=>(e.openBlock(),e.createElementBlock("span",{key:W.value,class:e.normalizeClass([pf,"ev-multi-select-bounded-tag"])},[e.createElementVNode("span",a2,e.toDisplayString(W.label),1),V[9]||(V[9]=e.createElementVNode("span",{class:"inline-flex w-3.5 h-3.5 shrink-0"},null,-1))],2))),128))],512),e.createElementVNode("span",{ref_key:"summaryRef",ref:N,class:e.normalizeClass([pf,"ev-multi-select-summary"])},"+0",2)])):e.createCommentVNode("",!0),e.unref(B)?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"panelRef",ref:l,class:"ev-popover-surface fade-in absolute z-20 mt-1 w-full"},[A.searchable&&!x.value?(e.openBlock(),e.createElementBlock("div",o2,[e.createElementVNode("div",u2,[e.createVNode(LA,{name:"search",size:16,class:"text-gray-dark"}),e.withDirectives(e.createElementVNode("input",e.mergeProps(A.inputAttrs,{ref_key:"searchRef",ref:c,"onUpdate:modelValue":V[5]||(V[5]=W=>e.isRef(a)?a.value=W:null),"aria-label":A.label?`Search ${A.label}`:"Search options",type:"text",placeholder:"Search…","data-testid":"ev-multi-select-search",class:"flex-1 min-w-0 bg-transparent text-sm-regular text-black placeholder:text-muted outline-none",onClick:V[6]||(V[6]=e.withModifiers(()=>{},["stop"])),onKeydown:V[7]||(V[7]=(...W)=>e.unref(P)&&e.unref(P)(...W))}),null,16,d2),[[e.vModelText,e.unref(a)]])])])):e.createCommentVNode("",!0),e.createElementVNode("ul",{id:`${S}-listbox`,class:"max-h-60 overflow-auto py-1",role:"listbox","aria-multiselectable":"true","aria-activedescendant":e.unref(o)>=0?`${S}-opt-${e.unref(o)}`:void 0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),(W,vA)=>(e.openBlock(),e.createElementBlock("li",{key:W.value},[e.createElementVNode("button",{id:`${S}-opt-${vA}`,type:"button",role:"option","data-index":vA,"aria-selected":w(W.value),class:e.normalizeClass(["w-full text-left px-3 py-2 text-sm-regular flex items-center gap-2.5 transition-colors cursor-pointer",w(W.value)?"bg-info-bg text-brand-blue-active":vA===e.unref(o)?"bg-gray-lightest text-black":"text-black hover:bg-gray-lightest"]),onMouseenter:BA=>o.value=vA,onMousedown:V[8]||(V[8]=BA=>x.value&&BA.preventDefault()),onClick:BA=>e.unref(b)(W)},[e.createElementVNode("span",{class:e.normalizeClass(["inline-flex w-4 h-4 shrink-0 items-center justify-center rounded-[4px] border transition-colors",w(W.value)?"bg-brand-blue border-brand-blue text-white":"bg-card border-gray-light"])},[w(W.value)?(e.openBlock(),e.createBlock(LA,{key:0,name:"check",size:12})):e.createCommentVNode("",!0)],2),e.createElementVNode("span",l2,e.toDisplayString(W.label),1)],42,i2)]))),128)),e.unref(u).length===0?(e.openBlock(),e.createElementBlock("li",D2," No results ")):e.createCommentVNode("",!0)],8,c2)],512)):e.createCommentVNode("",!0)],512)]))}}),P2=wA._export_sfc(C2,[["__scopeId","data-v-53950684"]]);function Pf(A,t){const f=typeof A=="string"&&!t?`${A}Context`:t,n=Symbol(f);return[r=>{const s=e.inject(n,r);if(s===void 0)throw new Error(`Injection \`${n.toString()}\` not found. Component must be used within ${Array.isArray(A)?`one of the following components: ${A.join(", ")}`:`\`${A}\``}`);return s},r=>(e.provide(n,r),r),n]}function b2(A,t){const{layoutGroup:f,presenceContext:n,config:v}=t,w=f.id&&A.layoutId?`${f.id}-${A.layoutId}`:A.layoutId||void 0;return{...A,layoutId:w,transition:A.transition??v.transition,layoutGroup:f,motionConfig:v,inViewOptions:A.inViewOptions??v.inViewOptions,presenceContext:n,initial:n.initial===!1?n.initial:A.initial===!0?void 0:A.initial}}function Mr(A,t){A.indexOf(t)===-1&&A.push(t)}function nn(A,t){const f=A.indexOf(t);f>-1&&A.splice(f,1)}const Be=(A,t,f)=>f>t?t:f<A?A:f;function mv(A,t){return t?`${A}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:A}let bf=()=>{},et=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(bf=(A,t,f)=>{!A&&typeof console<"u"&&console.warn(mv(t,f))},et=(A,t,f)=>{if(!A)throw new Error(mv(t,f))});const Ge={},iB=A=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(A),lB=A=>typeof A=="object"&&A!==null,DB=A=>/^0[^.\s]+$/u.test(A);function CB(A){let t;return()=>(t===void 0&&(t=A()),t)}const KA=A=>A,Xf=(...A)=>A.reduce((t,f)=>n=>f(t(n))),vf=(A,t,f)=>{const n=t-A;return n?(f-A)/n:1};class Hr{constructor(){this.subscriptions=[]}add(t){return Mr(this.subscriptions,t),()=>nn(this.subscriptions,t)}notify(t,f,n){const v=this.subscriptions.length;if(v)if(v===1)this.subscriptions[0](t,f,n);else for(let w=0;w<v;w++){const r=this.subscriptions[w];r&&r(t,f,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const pA=A=>A*1e3,qA=A=>A/1e3,PB=(A,t)=>t?A*(1e3/t):0,Jw=new Set;function bB(A,t,f){A||Jw.has(t)||(console.warn(mv(t,f)),Jw.add(t))}const XB=(A,t,f)=>(((1-3*f+3*t)*A+(3*f-6*t))*A+3*t)*A,X2=1e-7,z2=12;function L2(A,t,f,n,v){let w,r,s=0;do r=t+(f-t)/2,w=XB(r,n,v)-A,w>0?f=r:t=r;while(Math.abs(w)>X2&&++s<z2);return r}function zf(A,t,f,n){if(A===t&&f===n)return KA;const v=w=>L2(w,0,1,A,f);return w=>w===0||w===1?w:XB(v(w),t,n)}const zB=A=>t=>t<=.5?A(2*t)/2:(2-A(2*(1-t)))/2,LB=A=>t=>1-A(1-t),MB=zf(.33,1.53,.69,.99),Yr=LB(MB),HB=zB(Yr),YB=A=>A>=1?1:(A*=2)<1?.5*Yr(A):.5*(2-Math.pow(2,-10*(A-1))),mr=A=>1-Math.sin(Math.acos(A)),mB=LB(mr),xB=zB(mr),M2=zf(.42,0,1,1),H2=zf(0,0,.58,1),GB=zf(.42,0,.58,1),Y2=A=>Array.isArray(A)&&typeof A[0]!="number",hB=A=>Array.isArray(A)&&typeof A[0]=="number",Uw={linear:KA,easeIn:M2,easeInOut:GB,easeOut:H2,circIn:mr,circInOut:xB,circOut:mB,backIn:Yr,backInOut:HB,backOut:MB,anticipate:YB},m2=A=>typeof A=="string",Sw=A=>{if(hB(A)){et(A.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,f,n,v]=A;return zf(t,f,n,v)}else if(m2(A))return et(Uw[A]!==void 0,`Invalid easing type '${A}'`,"invalid-easing-type"),Uw[A];return A},jf=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function x2(A,t){let f=new Set,n=new Set,v=!1,w=!1;const r=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function g(a){r.has(a)&&(B.schedule(a),A()),a(s)}const B={schedule:(a,o=!1,u=!1)=>{const l=u&&v?f:n;return o&&r.add(a),l.add(a),a},cancel:a=>{n.delete(a),r.delete(a)},process:a=>{if(s=a,v){w=!0;return}v=!0;const o=f;f=n,n=o,f.forEach(g),f.clear(),v=!1,w&&(w=!1,B.process(a))}};return B}const G2=40;function NB(A,t){let f=!1,n=!0;const v={delta:0,timestamp:0,isProcessing:!1},w=()=>f=!0,r=jf.reduce((b,X)=>(b[X]=x2(w),b),{}),{setup:s,read:g,resolveKeyframes:B,preUpdate:a,update:o,preRender:u,render:d,postRender:l}=r,C=()=>{const b=Ge.useManualTiming,X=b?v.timestamp:performance.now();f=!1,b||(v.delta=n?1e3/60:Math.max(Math.min(X-v.timestamp,G2),1)),v.timestamp=X,v.isProcessing=!0,s.process(v),g.process(v),B.process(v),a.process(v),o.process(v),u.process(v),d.process(v),l.process(v),v.isProcessing=!1,f&&t&&(n=!1,A(C))},c=()=>{f=!0,n=!0,v.isProcessing||A(C)};return{schedule:jf.reduce((b,X)=>{const P=r[X];return b[X]=(L,x=!1,z=!1)=>(f||c(),P.schedule(L,x,z)),b},{}),cancel:b=>{for(let X=0;X<jf.length;X++)r[jf[X]].cancel(b)},state:v,steps:r}}const{schedule:aA,cancel:he,state:YA,steps:kn}=NB(typeof requestAnimationFrame<"u"?requestAnimationFrame:KA,!0);let kf;function h2(){kf=void 0}const hA={now:()=>(kf===void 0&&hA.set(YA.isProcessing||Ge.useManualTiming?YA.timestamp:performance.now()),kf),set:A=>{kf=A,queueMicrotask(h2)}},QB=A=>t=>typeof t=="string"&&t.startsWith(A),xr=QB("--"),N2=QB("var(--"),Gr=A=>N2(A)?Q2.test(A.split("/*")[0].trim()):!1,Q2=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function $w(A){return typeof A!="string"?!1:A.split("/*")[0].includes("var(--")}const xt={test:A=>typeof A=="number",parse:parseFloat,transform:A=>A},rf={...xt,transform:A=>Be(0,1,A)},If={...xt,default:1},Jt=A=>Math.round(A*1e5)/1e5,hr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function F2(A){return A==null}const O2=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Nr=(A,t)=>f=>!!(typeof f=="string"&&O2.test(f)&&f.startsWith(A)||t&&!F2(f)&&Object.prototype.hasOwnProperty.call(f,t)),FB=(A,t,f)=>n=>{if(typeof n!="string")return n;const[v,w,r,s]=n.match(hr);return{[A]:parseFloat(v),[t]:parseFloat(w),[f]:parseFloat(r),alpha:s!==void 0?parseFloat(s):1}},E2=A=>Be(0,255,A),Rn={...xt,transform:A=>Math.round(E2(A))},Ke={test:Nr("rgb","red"),parse:FB("red","green","blue"),transform:({red:A,green:t,blue:f,alpha:n=1})=>"rgba("+Rn.transform(A)+", "+Rn.transform(t)+", "+Rn.transform(f)+", "+Jt(rf.transform(n))+")"};function y2(A){let t="",f="",n="",v="";return A.length>5?(t=A.substring(1,3),f=A.substring(3,5),n=A.substring(5,7),v=A.substring(7,9)):(t=A.substring(1,2),f=A.substring(2,3),n=A.substring(3,4),v=A.substring(4,5),t+=t,f+=f,n+=n,v+=v),{red:parseInt(t,16),green:parseInt(f,16),blue:parseInt(n,16),alpha:v?parseInt(v,16)/255:1}}const xv={test:Nr("#"),parse:y2,transform:Ke.transform},Lf=A=>({test:t=>typeof t=="string"&&t.endsWith(A)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${A}`}),ce=Lf("deg"),we=Lf("%"),U=Lf("px"),p2=Lf("vh"),j2=Lf("vw"),_w={...we,parse:A=>we.parse(A)/100,transform:A=>we.transform(A*100)},ut={test:Nr("hsl","hue"),parse:FB("hue","saturation","lightness"),transform:({hue:A,saturation:t,lightness:f,alpha:n=1})=>"hsla("+Math.round(A)+", "+we.transform(Jt(t))+", "+we.transform(Jt(f))+", "+Jt(rf.transform(n))+")"},zA={test:A=>Ke.test(A)||xv.test(A)||ut.test(A),parse:A=>Ke.test(A)?Ke.parse(A):ut.test(A)?ut.parse(A):xv.parse(A),transform:A=>typeof A=="string"?A:A.hasOwnProperty("red")?Ke.transform(A):ut.transform(A),getAnimatableNone:A=>{const t=zA.parse(A);return t.alpha=0,zA.transform(t)}},I2=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function V2(A){return isNaN(A)&&typeof A=="string"&&(A.match(hr)?.length||0)+(A.match(I2)?.length||0)>0}const OB="number",EB="color",T2="var",W2="var(",As="${}",Z2=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Lt(A){const t=A.toString(),f=[],n={color:[],number:[],var:[]},v=[];let w=0;const s=t.replace(Z2,g=>(zA.test(g)?(n.color.push(w),v.push(EB),f.push(zA.parse(g))):g.startsWith(W2)?(n.var.push(w),v.push(T2),f.push(g)):(n.number.push(w),v.push(OB),f.push(parseFloat(g))),++w,As)).split(As);return{values:f,split:s,indexes:n,types:v}}function q2(A){return Lt(A).values}function yB({split:A,types:t}){const f=A.length;return n=>{let v="";for(let w=0;w<f;w++)if(v+=A[w],n[w]!==void 0){const r=t[w];r===OB?v+=Jt(n[w]):r===EB?v+=zA.transform(n[w]):v+=n[w]}return v}}function K2(A){return yB(Lt(A))}const k2=A=>typeof A=="number"?0:zA.test(A)?zA.getAnimatableNone(A):A,R2=(A,t)=>typeof A=="number"?t?.trim().endsWith("/")?A:0:k2(A);function J2(A){const t=Lt(A);return yB(t)(t.values.map((n,v)=>R2(n,t.split[v])))}const _A={test:V2,parse:q2,createTransformer:K2,getAnimatableNone:J2};function Jn(A,t,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?A+(t-A)*6*f:f<1/2?t:f<2/3?A+(t-A)*(2/3-f)*6:A}function U2({hue:A,saturation:t,lightness:f,alpha:n}){A/=360,t/=100,f/=100;let v=0,w=0,r=0;if(!t)v=w=r=f;else{const s=f<.5?f*(1+t):f+t-f*t,g=2*f-s;v=Jn(g,s,A+1/3),w=Jn(g,s,A),r=Jn(g,s,A-1/3)}return{red:Math.round(v*255),green:Math.round(w*255),blue:Math.round(r*255),alpha:n}}function vn(A,t){return f=>f>0?t:A}const cA=(A,t,f)=>A+(t-A)*f,Un=(A,t,f)=>{const n=A*A,v=f*(t*t-n)+n;return v<0?0:Math.sqrt(v)},S2=[xv,Ke,ut],$2=A=>S2.find(t=>t.test(A));function es(A){const t=$2(A);if(bf(!!t,`'${A}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let f=t.parse(A);return t===ut&&(f=U2(f)),f}const ts=(A,t)=>{const f=es(A),n=es(t);if(!f||!n)return vn(A,t);const v={...f};return w=>(v.red=Un(f.red,n.red,w),v.green=Un(f.green,n.green,w),v.blue=Un(f.blue,n.blue,w),v.alpha=cA(f.alpha,n.alpha,w),Ke.transform(v))},Gv=new Set(["none","hidden"]);function _2(A,t){return Gv.has(A)?f=>f<=0?A:t:f=>f>=1?t:A}function Ab(A,t){return f=>cA(A,t,f)}function Qr(A){return typeof A=="number"?Ab:typeof A=="string"?Gr(A)?vn:zA.test(A)?ts:fb:Array.isArray(A)?pB:typeof A=="object"?zA.test(A)?ts:eb:vn}function pB(A,t){const f=[...A],n=f.length,v=A.map((w,r)=>Qr(w)(w,t[r]));return w=>{for(let r=0;r<n;r++)f[r]=v[r](w);return f}}function eb(A,t){const f={...A,...t},n={};for(const v in f)A[v]!==void 0&&t[v]!==void 0&&(n[v]=Qr(A[v])(A[v],t[v]));return v=>{for(const w in n)f[w]=n[w](v);return f}}function tb(A,t){const f=[],n={color:0,var:0,number:0};for(let v=0;v<t.values.length;v++){const w=t.types[v],r=A.indexes[w][n[w]],s=A.values[r]??0;f[v]=s,n[w]++}return f}const fb=(A,t)=>{const f=_A.createTransformer(t),n=Lt(A),v=Lt(t);return n.indexes.var.length===v.indexes.var.length&&n.indexes.color.length===v.indexes.color.length&&n.indexes.number.length>=v.indexes.number.length?Gv.has(A)&&!v.values.length||Gv.has(t)&&!n.values.length?_2(A,t):Xf(pB(tb(n,v),v.values),f):(bf(!0,`Complex values '${A}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),vn(A,t))};function jB(A,t,f){return typeof A=="number"&&typeof t=="number"&&typeof f=="number"?cA(A,t,f):Qr(A)(A,t)}const nb=A=>{const t=({timestamp:f})=>A(f);return{start:(f=!0)=>aA.update(t,f),stop:()=>he(t),now:()=>YA.isProcessing?YA.timestamp:hA.now()}},IB=(A,t,f=10)=>{let n="";const v=Math.max(Math.round(t/f),2);for(let w=0;w<v;w++)n+=Math.round(A(w/(v-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},rn=2e4;function Fr(A){let t=0;const f=50;let n=A.next(t);for(;!n.done&&t<rn;)t+=f,n=A.next(t);return t>=rn?1/0:t}function vb(A,t=100,f){const n=f({...A,keyframes:[0,t]}),v=Math.min(Fr(n),rn);return{type:"keyframes",ease:w=>n.next(v*w).value/t,duration:qA(v)}}const DA={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function hv(A,t){return A*Math.sqrt(1-t*t)}const rb=12;function wb(A,t,f){let n=f;for(let v=1;v<rb;v++)n=n-A(n)/t(n);return n}const Sn=.001;function sb({duration:A=DA.duration,bounce:t=DA.bounce,velocity:f=DA.velocity,mass:n=DA.mass}){let v,w;bf(A<=pA(DA.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let r=1-t;r=Be(DA.minDamping,DA.maxDamping,r),A=Be(DA.minDuration,DA.maxDuration,qA(A)),r<1?(v=B=>{const a=B*r,o=a*A,u=a-f,d=hv(B,r),l=Math.exp(-o);return Sn-u/d*l},w=B=>{const o=B*r*A,u=o*f+f,d=Math.pow(r,2)*Math.pow(B,2)*A,l=Math.exp(-o),C=hv(Math.pow(B,2),r);return(-v(B)+Sn>0?-1:1)*((u-d)*l)/C}):(v=B=>{const a=Math.exp(-B*A),o=(B-f)*A+1;return-Sn+a*o},w=B=>{const a=Math.exp(-B*A),o=(f-B)*(A*A);return a*o});const s=5/A,g=wb(v,w,s);if(A=pA(A),isNaN(g))return{stiffness:DA.stiffness,damping:DA.damping,duration:A};{const B=Math.pow(g,2)*n;return{stiffness:B,damping:r*2*Math.sqrt(n*B),duration:A}}}const gb=["duration","bounce"],Bb=["stiffness","damping","mass"];function fs(A,t){return t.some(f=>A[f]!==void 0)}function ab(A){let t={velocity:DA.velocity,stiffness:DA.stiffness,damping:DA.damping,mass:DA.mass,isResolvedFromDuration:!1,...A};if(!fs(A,Bb)&&fs(A,gb))if(t.velocity=0,A.visualDuration){const f=A.visualDuration,n=2*Math.PI/(f*1.2),v=n*n,w=2*Be(.05,1,1-(A.bounce||0))*Math.sqrt(v);t={...t,mass:DA.mass,stiffness:v,damping:w}}else{const f=sb({...A,velocity:0});t={...t,...f,mass:DA.mass},t.isResolvedFromDuration=!0}return t}function wn(A=DA.visualDuration,t=DA.bounce){const f=typeof A!="object"?{visualDuration:A,keyframes:[0,1],bounce:t}:A;let{restSpeed:n,restDelta:v}=f;const w=f.keyframes[0],r=f.keyframes[f.keyframes.length-1],s={done:!1,value:w},{stiffness:g,damping:B,mass:a,duration:o,velocity:u,isResolvedFromDuration:d}=ab({...f,velocity:-qA(f.velocity||0)}),l=u||0,C=B/(2*Math.sqrt(g*a)),c=r-w,D=qA(Math.sqrt(g/a)),i=Math.abs(c)<5;n||(n=i?DA.restSpeed.granular:DA.restSpeed.default),v||(v=i?DA.restDelta.granular:DA.restDelta.default);let b,X,P,L,x,z;if(C<1)P=hv(D,C),L=(l+C*D*c)/P,b=N=>{const Q=Math.exp(-C*D*N);return r-Q*(L*Math.sin(P*N)+c*Math.cos(P*N))},x=C*D*L+c*P,z=C*D*c-L*P,X=N=>Math.exp(-C*D*N)*(x*Math.sin(P*N)+z*Math.cos(P*N));else if(C===1){b=Q=>r-Math.exp(-D*Q)*(c+(l+D*c)*Q);const N=l+D*c;X=Q=>Math.exp(-D*Q)*(D*N*Q-l)}else{const N=D*Math.sqrt(C*C-1);b=M=>{const Y=Math.exp(-C*D*M),h=Math.min(N*M,300);return r-Y*((l+C*D*c)*Math.sinh(h)+N*c*Math.cosh(h))/N};const Q=(l+C*D*c)/N,m=C*D*Q-c*N,G=C*D*c-Q*N;X=M=>{const Y=Math.exp(-C*D*M),h=Math.min(N*M,300);return Y*(m*Math.sinh(h)+G*Math.cosh(h))}}const H={calculatedDuration:d&&o||null,velocity:N=>pA(X(N)),next:N=>{if(!d&&C<1){const m=Math.exp(-C*D*N),G=Math.sin(P*N),M=Math.cos(P*N),Y=r-m*(L*G+c*M),h=pA(m*(x*G+z*M));return s.done=Math.abs(h)<=n&&Math.abs(r-Y)<=v,s.value=s.done?r:Y,s}const Q=b(N);if(d)s.done=N>=o;else{const m=pA(X(N));s.done=Math.abs(m)<=n&&Math.abs(r-Q)<=v}return s.value=s.done?r:Q,s},toString:()=>{const N=Math.min(Fr(H),rn),Q=IB(m=>H.next(N*m).value,N,30);return N+"ms "+Q},toTransition:()=>{}};return H}wn.applyToOptions=A=>{const t=vb(A,100,wn);return A.ease=t.ease,A.duration=pA(t.duration),A.type="keyframes",A};const ob=5;function VB(A,t,f){const n=Math.max(t-ob,0);return PB(f-A(n),t-n)}function Nv({keyframes:A,velocity:t=0,power:f=.8,timeConstant:n=325,bounceDamping:v=10,bounceStiffness:w=500,modifyTarget:r,min:s,max:g,restDelta:B=.5,restSpeed:a}){const o=A[0],u={done:!1,value:o},d=z=>s!==void 0&&z<s||g!==void 0&&z>g,l=z=>s===void 0?g:g===void 0||Math.abs(s-z)<Math.abs(g-z)?s:g;let C=f*t;const c=o+C,D=r===void 0?c:r(c);D!==c&&(C=D-o);const i=z=>-C*Math.exp(-z/n),b=z=>D+i(z),X=z=>{const H=i(z),N=b(z);u.done=Math.abs(H)<=B,u.value=u.done?D:N};let P,L;const x=z=>{d(u.value)&&(P=z,L=wn({keyframes:[u.value,l(u.value)],velocity:VB(b,z,u.value),damping:v,stiffness:w,restDelta:B,restSpeed:a}))};return x(0),{calculatedDuration:null,next:z=>{let H=!1;return!L&&P===void 0&&(H=!0,X(z),x(z)),P!==void 0&&z>=P?L.next(z-P):(!H&&X(z),u)}}}function ub(A,t,f){const n=[],v=f||Ge.mix||jB,w=A.length-1;for(let r=0;r<w;r++){let s=v(A[r],A[r+1]);if(t){const g=Array.isArray(t)?t[r]||KA:t;s=Xf(g,s)}n.push(s)}return n}function db(A,t,{clamp:f=!0,ease:n,mixer:v}={}){const w=A.length;if(et(w===t.length,"Both input and output ranges must be the same length","range-length"),w===1)return()=>t[0];if(w===2&&t[0]===t[1])return()=>t[1];const r=A[0]===A[1];A[0]>A[w-1]&&(A=[...A].reverse(),t=[...t].reverse());const s=ub(t,n,v),g=s.length,B=a=>{if(r&&a<A[0])return t[0];let o=0;if(g>1)for(;o<A.length-2&&!(a<A[o+1]);o++);const u=vf(A[o],A[o+1],a);return s[o](u)};return f?a=>B(Be(A[0],A[w-1],a)):B}function cb(A,t){const f=A[A.length-1];for(let n=1;n<=t;n++){const v=vf(0,t,n);A.push(cA(f,1,v))}}function ib(A){const t=[0];return cb(t,A.length-1),t}function lb(A,t){return A.map(f=>f*t)}function Db(A,t){return A.map(()=>t||GB).splice(0,A.length-1)}function dt({duration:A=300,keyframes:t,times:f,ease:n="easeInOut"}){const v=Y2(n)?n.map(Sw):Sw(n),w={done:!1,value:t[0]},r=lb(f&&f.length===t.length?f:ib(t),A),s=db(r,t,{ease:Array.isArray(v)?v:Db(t,v)});return{calculatedDuration:A,next:g=>(w.value=s(g),w.done=g>=A,w)}}const Cb=A=>A!==null;function hn(A,{repeat:t,repeatType:f="loop"},n,v=1){const w=A.filter(Cb),s=v<0||t&&f!=="loop"&&t%2===1?0:w.length-1;return!s||n===void 0?w[s]:n}const Pb={decay:Nv,inertia:Nv,tween:dt,keyframes:dt,spring:wn};function TB(A){typeof A.type=="string"&&(A.type=Pb[A.type])}class Or{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,f){return this.finished.then(t,f)}}const bb=A=>A/100;class sn extends Or{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:f}=this.options;f&&f.updatedAt!==hA.now()&&this.tick(hA.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;TB(t);const{type:f=dt,repeat:n=0,repeatDelay:v=0,repeatType:w,velocity:r=0}=t;let{keyframes:s}=t;const g=f||dt;process.env.NODE_ENV!=="production"&&g!==dt&&et(s.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${s}`,"spring-two-frames"),g!==dt&&typeof s[0]!="number"&&(this.mixKeyframes=Xf(bb,jB(s[0],s[1])),s=[0,100]);const B=g({...t,keyframes:s});w==="mirror"&&(this.mirroredGenerator=g({...t,keyframes:[...s].reverse(),velocity:-r})),B.calculatedDuration===null&&(B.calculatedDuration=Fr(B));const{calculatedDuration:a}=B;this.calculatedDuration=a,this.resolvedDuration=a+v,this.totalDuration=this.resolvedDuration*(n+1)-v,this.generator=B}updateTime(t){const f=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=f}tick(t,f=!1){const{generator:n,totalDuration:v,mixKeyframes:w,mirroredGenerator:r,resolvedDuration:s,calculatedDuration:g}=this;if(this.startTime===null)return n.next(0);const{delay:B=0,keyframes:a,repeat:o,repeatType:u,repeatDelay:d,type:l,onUpdate:C,finalKeyframe:c}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-v/this.speed,this.startTime)),f?this.currentTime=t:this.updateTime(t);const D=this.currentTime-B*(this.playbackSpeed>=0?1:-1),i=this.playbackSpeed>=0?D<0:D>v;this.currentTime=Math.max(D,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=v);let b=this.currentTime,X=n;if(o){const z=Math.min(this.currentTime,v)/s;let H=Math.floor(z),N=z%1;!N&&z>=1&&(N=1),N===1&&H--,H=Math.min(H,o+1),!!(H%2)&&(u==="reverse"?(N=1-N,d&&(N-=d/s)):u==="mirror"&&(X=r)),b=Be(0,1,N)*s}let P;i?(this.delayState.value=a[0],P=this.delayState):P=X.next(b),w&&!i&&(P.value=w(P.value));let{done:L}=P;!i&&g!==null&&(L=this.playbackSpeed>=0?this.currentTime>=v:this.currentTime<=0);const x=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return x&&l!==Nv&&(P.value=hn(a,this.options,c,this.speed)),C&&C(P.value),x&&this.finish(),P}then(t,f){return this.finished.then(t,f)}get duration(){return qA(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+qA(t)}get time(){return qA(this.currentTime)}set time(t){t=pA(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const f=this.generator.next(t).value;return VB(n=>this.generator.next(n).value,t,f)}get speed(){return this.playbackSpeed}set speed(t){const f=this.playbackSpeed!==t;f&&this.driver&&this.updateTime(hA.now()),this.playbackSpeed=t,f&&this.driver&&(this.time=qA(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=nb,startTime:f}=this.options;this.driver||(this.driver=t(v=>this.tick(v))),this.options.onPlay?.();const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=f??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(hA.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function Xb(A){for(let t=1;t<A.length;t++)A[t]??(A[t]=A[t-1])}const ke=A=>A*180/Math.PI,Qv=A=>{const t=ke(Math.atan2(A[1],A[0]));return Fv(t)},zb={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:A=>(Math.abs(A[0])+Math.abs(A[3]))/2,rotate:Qv,rotateZ:Qv,skewX:A=>ke(Math.atan(A[1])),skewY:A=>ke(Math.atan(A[2])),skew:A=>(Math.abs(A[1])+Math.abs(A[2]))/2},Fv=A=>(A=A%360,A<0&&(A+=360),A),ns=Qv,vs=A=>Math.sqrt(A[0]*A[0]+A[1]*A[1]),rs=A=>Math.sqrt(A[4]*A[4]+A[5]*A[5]),Lb={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:vs,scaleY:rs,scale:A=>(vs(A)+rs(A))/2,rotateX:A=>Fv(ke(Math.atan2(A[6],A[5]))),rotateY:A=>Fv(ke(Math.atan2(-A[2],A[0]))),rotateZ:ns,rotate:ns,skewX:A=>ke(Math.atan(A[4])),skewY:A=>ke(Math.atan(A[1])),skew:A=>(Math.abs(A[1])+Math.abs(A[4]))/2};function Ov(A){return A.includes("scale")?1:0}function Ev(A,t){if(!A||A==="none")return Ov(t);const f=A.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,v;if(f)n=Lb,v=f;else{const s=A.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=zb,v=s}if(!v)return Ov(t);const w=n[t],r=v[1].split(",").map(Hb);return typeof w=="function"?w(r):r[w]}const Mb=(A,t)=>{const{transform:f="none"}=getComputedStyle(A);return Ev(f,t)};function Hb(A){return parseFloat(A.trim())}const Gt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ht=new Set([...Gt,"pathRotation"]),ws=A=>A===xt||A===U,Yb=new Set(["x","y","z"]),mb=Gt.filter(A=>!Yb.has(A));function xb(A){const t=[];return mb.forEach(f=>{const n=A.getValue(f);n!==void 0&&(t.push([f,n.get()]),n.set(f.startsWith("scale")?1:0))}),t}const xe={width:({x:A},{paddingLeft:t="0",paddingRight:f="0",boxSizing:n})=>{const v=A.max-A.min;return n==="border-box"?v:v-parseFloat(t)-parseFloat(f)},height:({y:A},{paddingTop:t="0",paddingBottom:f="0",boxSizing:n})=>{const v=A.max-A.min;return n==="border-box"?v:v-parseFloat(t)-parseFloat(f)},top:(A,{top:t})=>parseFloat(t),left:(A,{left:t})=>parseFloat(t),bottom:({y:A},{top:t})=>parseFloat(t)+(A.max-A.min),right:({x:A},{left:t})=>parseFloat(t)+(A.max-A.min),x:(A,{transform:t})=>Ev(t,"x"),y:(A,{transform:t})=>Ev(t,"y")};xe.translateX=xe.x;xe.translateY=xe.y;const Ue=new Set;let yv=!1,pv=!1,jv=!1;function WB(){if(pv){const A=Array.from(Ue).filter(n=>n.needsMeasurement),t=new Set(A.map(n=>n.element)),f=new Map;t.forEach(n=>{const v=xb(n);v.length&&(f.set(n,v),n.render())}),A.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const v=f.get(n);v&&v.forEach(([w,r])=>{n.getValue(w)?.set(r)})}),A.forEach(n=>n.measureEndState()),A.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}pv=!1,yv=!1,Ue.forEach(A=>A.complete(jv)),Ue.clear()}function ZB(){Ue.forEach(A=>{A.readKeyframes(),A.needsMeasurement&&(pv=!0)})}function Gb(){jv=!0,ZB(),WB(),jv=!1}class Er{constructor(t,f,n,v,w,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=f,this.name=n,this.motionValue=v,this.element=w,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(Ue.add(this),yv||(yv=!0,aA.read(ZB),aA.resolveKeyframes(WB))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:f,element:n,motionValue:v}=this;if(t[0]===null){const w=v?.get(),r=t[t.length-1];if(w!==void 0)t[0]=w;else if(n&&f){const s=n.readValue(f,r);s!=null&&(t[0]=s)}t[0]===void 0&&(t[0]=r),v&&w===void 0&&v.set(t[0])}Xb(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ue.delete(this)}cancel(){this.state==="scheduled"&&(Ue.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const hb=A=>A.startsWith("--");function qB(A,t,f){hb(t)?A.style.setProperty(t,f):A.style[t]=f}const Nb={};function KB(A,t){const f=CB(A);return()=>Nb[t]??f()}const Qb=KB(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),kB=KB(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Kt=([A,t,f,n])=>`cubic-bezier(${A}, ${t}, ${f}, ${n})`,ss={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Kt([0,.65,.55,1]),circOut:Kt([.55,0,1,.45]),backIn:Kt([.31,.01,.66,-.59]),backOut:Kt([.33,1.53,.69,.99])};function RB(A,t){if(A)return typeof A=="function"?kB()?IB(A,t):"ease-out":hB(A)?Kt(A):Array.isArray(A)?A.map(f=>RB(f,t)||ss.easeOut):ss[A]}function Fb(A,t,f,{delay:n=0,duration:v=300,repeat:w=0,repeatType:r="loop",ease:s="easeOut",times:g}={},B=void 0){const a={[t]:f};g&&(a.offset=g);const o=RB(s,v);Array.isArray(o)&&(a.easing=o);const u={delay:n,duration:v,easing:Array.isArray(o)?"linear":o,fill:"both",iterations:w+1,direction:r==="reverse"?"alternate":"normal"};return B&&(u.pseudoElement=B),A.animate(a,u)}function JB(A){return typeof A=="function"&&"applyToOptions"in A}function Ob({type:A,...t}){return JB(A)&&kB()?A.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class UB extends Or{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:f,name:n,keyframes:v,pseudoElement:w,allowFlatten:r=!1,finalKeyframe:s,onComplete:g}=t;this.isPseudoElement=!!w,this.allowFlatten=r,this.options=t,et(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const B=Ob(t);this.animation=Fb(f,n,v,B,w),B.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!w){const a=hn(v,this.options,s,this.speed);this.updateMotionValue&&this.updateMotionValue(a),qB(f,n,a),this.animation.cancel()}g?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return qA(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+qA(t)}get time(){return qA(Number(this.animation.currentTime)||0)}set time(t){const f=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=pA(t),f&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:f,rangeEnd:n,observe:v}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Qb()?(this.animation.timeline=t,f&&(this.animation.rangeStart=f),n&&(this.animation.rangeEnd=n),KA):v(this)}}const SB={anticipate:YB,backInOut:HB,circInOut:xB};function Eb(A){return A in SB}function yb(A){typeof A.ease=="string"&&Eb(A.ease)&&(A.ease=SB[A.ease])}const $n=10;class pb extends UB{constructor(t){yb(t),TB(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:f,onUpdate:n,onComplete:v,element:w,...r}=this.options;if(!f)return;if(t!==void 0){f.set(t);return}const s=new sn({...r,autoplay:!1}),g=Math.max($n,hA.now()-this.startTime),B=Be(0,$n,g-$n),a=s.sample(g).value,{name:o}=this.options;w&&o&&qB(w,o,a),f.setWithVelocity(s.sample(Math.max(0,g-B)).value,a,B),s.stop()}}const gs=(A,t)=>t==="zIndex"?!1:!!(typeof A=="number"||Array.isArray(A)||typeof A=="string"&&(_A.test(A)||A==="0")&&!A.startsWith("url("));function jb(A){const t=A[0];if(A.length===1)return!0;for(let f=0;f<A.length;f++)if(A[f]!==t)return!0}function Ib(A,t,f,n){const v=A[0];if(v===null)return!1;if(t==="display"||t==="visibility")return!0;const w=A[A.length-1],r=gs(v,t),s=gs(w,t);return bf(r===s,`You are trying to animate ${t} from "${v}" to "${w}". "${r?w:v}" is not an animatable value.`,"value-not-animatable"),!r||!s?!1:jb(A)||(f==="spring"||JB(f))&&n}function Iv(A){A.duration=0,A.type="keyframes"}const $B=new Set(["opacity","clipPath","filter","transform"]),Vb=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Tb(A){for(let t=0;t<A.length;t++)if(typeof A[t]=="string"&&Vb.test(A[t]))return!0;return!1}const Wb=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Zb=CB(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function qb(A){const{motionValue:t,name:f,repeatDelay:n,repeatType:v,damping:w,type:r,keyframes:s}=A;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:B,transformTemplate:a}=t.owner.getProps();return Zb()&&f&&($B.has(f)||Wb.has(f)&&Tb(s))&&(f!=="transform"||!a)&&!B&&!n&&v!=="mirror"&&w!==0&&r!=="inertia"}const Kb=40;class kb extends Or{constructor({autoplay:t=!0,delay:f=0,type:n="keyframes",repeat:v=0,repeatDelay:w=0,repeatType:r="loop",keyframes:s,name:g,motionValue:B,element:a,...o}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=hA.now();const u={autoplay:t,delay:f,type:n,repeat:v,repeatDelay:w,repeatType:r,name:g,motionValue:B,element:a,...o},d=a?.KeyframeResolver||Er;this.keyframeResolver=new d(s,(l,C,c)=>this.onKeyframesResolved(l,C,u,!c),g,B,a),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,f,n,v){this.keyframeResolver=void 0;const{name:w,type:r,velocity:s,delay:g,isHandoff:B,onUpdate:a}=n;this.resolvedAt=hA.now();let o=!0;Ib(t,w,r,s)||(o=!1,(Ge.instantAnimations||!g)&&a?.(hn(t,n,f)),t[0]=t[t.length-1],Iv(n),n.repeat=0);const d={startTime:v?this.resolvedAt?this.resolvedAt-this.createdAt>Kb?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:f,...n,keyframes:t},l=o&&!B&&qb(d),C=d.motionValue?.owner?.current;let c;if(l)try{c=new pb({...d,element:C})}catch{c=new sn(d)}else c=new sn(d);c.finished.then(()=>{this.notifyFinished()}).catch(KA),this.pendingTimeline&&(this.stopTimeline=c.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=c}get finished(){return this._animation?this.animation.finished:this._finished}then(t,f){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Gb()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function _B(A,t,f,n=0,v=1){const w=Array.from(A).sort((B,a)=>B.sortNodePosition(a)).indexOf(t),r=A.size,s=(r-1)*n;return typeof f=="function"?f(w,r):v===1?w*n:s-w*n}const Bs=30,Rb=A=>!isNaN(parseFloat(A));class Jb{constructor(t,f={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{const v=hA.now();if(this.updatedAt!==v&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const w of this.dependents)w.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=f.owner}setCurrent(t){this.current=t,this.updatedAt=hA.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Rb(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&bB(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,f){this.events[t]||(this.events[t]=new Hr);const n=this.events[t].add(f);return t==="change"?()=>{n(),aA.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,f){this.passiveEffect=t,this.stopPassiveEffect=f}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,f,n){this.set(f),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,f=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,f&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=hA.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Bs)return 0;const f=Math.min(this.updatedAt-this.prevUpdatedAt,Bs);return PB(parseFloat(this.current)-parseFloat(this.prevFrameValue),f)}start(t){return this.stop(),new Promise(f=>{this.hasAnimated=!0,this.animation=t(f),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Mt(A,t){return new Jb(A,t)}function Aa(A,t){if(A?.inherit&&t){const{inherit:f,...n}=A;return{...t,...n}}return A}function yr(A,t){const f=A?.[t]??A?.default??A;return f!==A?Aa(f,A):f}const Ub={type:"spring",stiffness:500,damping:25,restSpeed:10},Sb=A=>({type:"spring",stiffness:550,damping:A===0?2*Math.sqrt(550):30,restSpeed:10}),$b={type:"keyframes",duration:.8},_b={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},AX=(A,{keyframes:t})=>t.length>2?$b:ht.has(A)?A.startsWith("scale")?Sb(t[1]):Ub:_b,eX=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function tX(A){for(const t in A)if(!eX.has(t))return!0;return!1}const pr=(A,t,f,n={},v,w)=>r=>{const s=yr(n,A)||{},g=s.delay||n.delay||0;let{elapsed:B=0}=n;B=B-pA(g);const a={keyframes:Array.isArray(f)?f:[null,f],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-B,onUpdate:u=>{t.set(u),s.onUpdate&&s.onUpdate(u)},onComplete:()=>{r(),s.onComplete&&s.onComplete()},name:A,motionValue:t,element:w?void 0:v};tX(s)||Object.assign(a,AX(A,a)),a.duration&&(a.duration=pA(a.duration)),a.repeatDelay&&(a.repeatDelay=pA(a.repeatDelay)),a.from!==void 0&&(a.keyframes[0]=a.from);let o=!1;if((a.type===!1||a.duration===0&&!a.repeatDelay)&&(Iv(a),a.delay===0&&(o=!0)),(Ge.instantAnimations||Ge.skipAnimations||v?.shouldSkipAnimations||s.skipAnimations)&&(o=!0,Iv(a),a.delay=0),a.allowFlatten=!s.type&&!s.ease,o&&!w&&t.get()!==void 0){const u=hn(a.keyframes,s);if(u!==void 0){aA.update(()=>{a.onUpdate(u),a.onComplete()});return}}return s.isSync?new sn(a):new kb(a)},fX=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function nX(A){const t=fX.exec(A);if(!t)return[,];const[,f,n,v]=t;return[`--${f??n}`,v]}const vX=4;function ea(A,t,f=1){et(f<=vX,`Max CSS variable fallback depth detected in property "${A}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[n,v]=nX(A);if(!n)return;const w=window.getComputedStyle(t).getPropertyValue(n);if(w){const r=w.trim();return iB(r)?parseFloat(r):r}return Gr(v)?ea(v,t,f+1):v}function as(A){const t=[{},{}];return A?.values.forEach((f,n)=>{t[0][n]=f.get(),t[1][n]=f.getVelocity()}),t}function ta(A,t,f,n){if(typeof t=="function"){const[v,w]=as(n);t=t(f!==void 0?f:A.custom,v,w)}if(typeof t=="string"&&(t=A.variants&&A.variants[t]),typeof t=="function"){const[v,w]=as(n);t=t(f!==void 0?f:A.custom,v,w)}return t}function Ct(A,t,f){const n=A.getProps();return ta(n,t,f!==void 0?f:n.custom,A)}const fa=new Set(["width","height","top","left","right","bottom",...Gt]),rX=A=>Array.isArray(A);function wX(A,t,f){A.hasValue(t)?A.getValue(t).set(f):A.addValue(t,Mt(f))}function sX(A){return rX(A)?A[A.length-1]||0:A}function gX(A,t){const f=Ct(A,t);let{transitionEnd:n={},transition:v={},...w}=f||{};w={...w,...n};for(const r in w){const s=sX(w[r]);wX(A,r,s)}}const GA=A=>!!(A&&A.getVelocity);function BX(A){return!!(GA(A)&&A.add)}function Vv(A,t){const f=A.getValue("willChange");if(BX(f))return f.add(t);if(!f&&Ge.WillChange){const n=new Ge.WillChange("auto");A.addValue("willChange",n),n.add(t)}}function jr(A){return A.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const aX="framerAppearId",oX="data-"+jr(aX);function na(A){return A.props[oX]}function uX({protectedKeys:A,needsAnimating:t},f){const n=A.hasOwnProperty(f)&&t[f]!==!0;return t[f]=!1,n}function va(A,t,{delay:f=0,transitionOverride:n,type:v}={}){let{transition:w,transitionEnd:r,...s}=t;const g=A.getDefaultTransition();w=w?Aa(w,g):g;const B=w?.reduceMotion,a=w?.skipAnimations;n&&(w=n);const o=[],u=v&&A.animationState&&A.animationState.getState()[v],d=w?.path;d&&d.animateVisualElement(A,s,w,f,o);for(const l in s){const C=A.getValue(l,A.latestValues[l]??null),c=s[l];if(c===void 0||u&&uX(u,l))continue;const D={delay:f,...yr(w||{},l)};a&&(D.skipAnimations=!0);const i=C.get();if(i!==void 0&&!C.isAnimating()&&!Array.isArray(c)&&c===i&&!D.velocity){aA.update(()=>C.set(c));continue}let b=!1;if(window.MotionHandoffAnimation){const L=na(A);if(L){const x=window.MotionHandoffAnimation(L,l,aA);x!==null&&(D.startTime=x,b=!0)}}Vv(A,l);const X=B??A.shouldReduceMotion;C.start(pr(l,C,c,X&&fa.has(l)?{type:!1}:D,A,b));const P=C.animation;P&&o.push(P)}if(r){const l=()=>aA.update(()=>{r&&gX(A,r)});o.length?Promise.all(o).then(l):l()}return o}function Tv(A,t,f={}){const n=Ct(A,t,f.type==="exit"?A.presenceContext?.custom:void 0);let{transition:v=A.getDefaultTransition()||{}}=n||{};f.transitionOverride&&(v=f.transitionOverride);const w=n?()=>Promise.all(va(A,n,f)):()=>Promise.resolve(),r=A.variantChildren&&A.variantChildren.size?(g=0)=>{const{delayChildren:B=0,staggerChildren:a,staggerDirection:o}=v;return dX(A,t,g,B,a,o,f)}:()=>Promise.resolve(),{when:s}=v;if(s){const[g,B]=s==="beforeChildren"?[w,r]:[r,w];return g().then(()=>B())}else return Promise.all([w(),r(f.delay)])}function dX(A,t,f=0,n=0,v=0,w=1,r){const s=[];for(const g of A.variantChildren)g.notify("AnimationStart",t),s.push(Tv(g,t,{...r,delay:f+(typeof n=="function"?0:n)+_B(A.variantChildren,g,n,v,w)}).then(()=>g.notify("AnimationComplete",t)));return Promise.all(s)}function cX(A,t,f={}){A.notify("AnimationStart",t);let n;if(Array.isArray(t)){const v=t.map(w=>Tv(A,w,f));n=Promise.all(v)}else if(typeof t=="string")n=Tv(A,t,f);else{const v=typeof t=="function"?Ct(A,t,f.custom):t;n=Promise.all(va(A,v,f))}return n.then(()=>{A.notify("AnimationComplete",t)})}const iX={test:A=>A==="auto",parse:A=>A},ra=A=>t=>t.test(A),wa=[xt,U,we,ce,j2,p2,iX],os=A=>wa.find(ra(A));function lX(A){return typeof A=="number"?A===0:A!==null?A==="none"||A==="0"||DB(A):!0}const DX=new Set(["brightness","contrast","saturate","opacity"]);function CX(A){const[t,f]=A.slice(0,-1).split("(");if(t==="drop-shadow")return A;const[n]=f.match(hr)||[];if(!n)return A;const v=f.replace(n,"");let w=DX.has(t)?1:0;return n!==f&&(w*=100),t+"("+w+v+")"}const PX=/\b([a-z-]*)\(.*?\)/gu,Wv={..._A,getAnimatableNone:A=>{const t=A.match(PX);return t?t.map(CX).join(" "):A}},Zv={..._A,getAnimatableNone:A=>{const t=_A.parse(A);return _A.createTransformer(A)(t.map(n=>typeof n=="number"?0:typeof n=="object"?{...n,alpha:1}:n))}},us={...xt,transform:Math.round},bX={rotate:ce,pathRotation:ce,rotateX:ce,rotateY:ce,rotateZ:ce,scale:If,scaleX:If,scaleY:If,scaleZ:If,skew:ce,skewX:ce,skewY:ce,distance:U,translateX:U,translateY:U,translateZ:U,x:U,y:U,z:U,perspective:U,transformPerspective:U,opacity:rf,originX:_w,originY:_w,originZ:U},gn={borderWidth:U,borderTopWidth:U,borderRightWidth:U,borderBottomWidth:U,borderLeftWidth:U,borderRadius:U,borderTopLeftRadius:U,borderTopRightRadius:U,borderBottomRightRadius:U,borderBottomLeftRadius:U,width:U,maxWidth:U,height:U,maxHeight:U,top:U,right:U,bottom:U,left:U,inset:U,insetBlock:U,insetBlockStart:U,insetBlockEnd:U,insetInline:U,insetInlineStart:U,insetInlineEnd:U,padding:U,paddingTop:U,paddingRight:U,paddingBottom:U,paddingLeft:U,paddingBlock:U,paddingBlockStart:U,paddingBlockEnd:U,paddingInline:U,paddingInlineStart:U,paddingInlineEnd:U,margin:U,marginTop:U,marginRight:U,marginBottom:U,marginLeft:U,marginBlock:U,marginBlockStart:U,marginBlockEnd:U,marginInline:U,marginInlineStart:U,marginInlineEnd:U,fontSize:U,backgroundPositionX:U,backgroundPositionY:U,...bX,zIndex:us,fillOpacity:rf,strokeOpacity:rf,numOctaves:us},XX={...gn,color:zA,backgroundColor:zA,outlineColor:zA,fill:zA,stroke:zA,borderColor:zA,borderTopColor:zA,borderRightColor:zA,borderBottomColor:zA,borderLeftColor:zA,filter:Wv,WebkitFilter:Wv,mask:Zv,WebkitMask:Zv},sa=A=>XX[A],zX=new Set([Wv,Zv]);function ga(A,t){let f=sa(A);return zX.has(f)||(f=_A),f.getAnimatableNone?f.getAnimatableNone(t):void 0}const LX=new Set(["auto","none","0"]);function MX(A,t,f){let n=0,v;for(;n<A.length&&!v;){const w=A[n];typeof w=="string"&&!LX.has(w)&&Lt(w).values.length&&(v=A[n]),n++}if(v&&f)for(const w of t)A[w]=ga(f,v)}class HX extends Er{constructor(t,f,n,v,w){super(t,f,n,v,w,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:f,name:n}=this;if(!f||!f.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let o=t[a];if(typeof o=="string"&&(o=o.trim(),Gr(o))){const u=ea(o,f.current);u!==void 0&&(t[a]=u),a===t.length-1&&(this.finalKeyframe=o)}}if(this.resolveNoneKeyframes(),!fa.has(n)||t.length!==2)return;const[v,w]=t,r=os(v),s=os(w),g=$w(v),B=$w(w);if(g!==B&&xe[n]){this.needsMeasurement=!0;return}if(r!==s)if(ws(r)&&ws(s))for(let a=0;a<t.length;a++){const o=t[a];typeof o=="string"&&(t[a]=parseFloat(o))}else xe[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:f}=this,n=[];for(let v=0;v<t.length;v++)(t[v]===null||lX(t[v]))&&n.push(v);n.length&&MX(t,n,f)}measureInitialState(){const{element:t,unresolvedKeyframes:f,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=xe[n](t.measureViewportBox(),window.getComputedStyle(t.current)),f[0]=this.measuredOrigin;const v=f[f.length-1];v!==void 0&&t.getValue(n,v).jump(v,!1)}measureEndState(){const{element:t,name:f,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const v=t.getValue(f);v&&v.jump(this.measuredOrigin,!1);const w=n.length-1,r=n[w];n[w]=xe[f](t.measureViewportBox(),window.getComputedStyle(t.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([s,g])=>{t.getValue(s).set(g)}),this.resolveNoneKeyframes()}}function Ba(A,t,f){if(A==null)return[];if(A instanceof EventTarget)return[A];if(typeof A=="string"){let n=document;const v=f?.[A]??n.querySelectorAll(A);return v?Array.from(v):[]}return Array.from(A).filter(n=>n!=null)}const qv=(A,t)=>t&&typeof A=="number"?t.transform(A):A;function YX(A){return lB(A)&&"offsetHeight"in A&&!("ownerSVGElement"in A)}const{schedule:aa}=NB(queueMicrotask,!1),mX={y:!1};function xX(){return mX.y}function oa(A,t){const f=Ba(A),n=new AbortController,v={passive:!0,...t,signal:n.signal};return[f,v,()=>n.abort()]}function GX(A){return!(A.pointerType==="touch"||xX())}function hX(A,t,f={}){const[n,v,w]=oa(A,f);return n.forEach(r=>{let s=!1,g=!1,B;const a=()=>{r.removeEventListener("pointerleave",l)},o=c=>{B&&(B(c),B=void 0),a()},u=c=>{s=!1,window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",u),g&&(g=!1,o(c))},d=()=>{s=!0,window.addEventListener("pointerup",u,v),window.addEventListener("pointercancel",u,v)},l=c=>{if(c.pointerType!=="touch"){if(s){g=!0;return}o(c)}},C=c=>{if(!GX(c))return;g=!1;const D=t(r,c);typeof D=="function"&&(B=D,r.addEventListener("pointerleave",l,v))};r.addEventListener("pointerenter",C,v),r.addEventListener("pointerdown",d,v)}),w}const ua=(A,t)=>t?A===t?!0:ua(A,t.parentElement):!1,NX=A=>A.pointerType==="mouse"?typeof A.button!="number"||A.button<=0:A.isPrimary!==!1,QX=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function FX(A){return QX.has(A.tagName)||A.isContentEditable===!0}const Rf=new WeakSet;function ds(A){return t=>{t.key==="Enter"&&A(t)}}function _n(A,t){A.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const OX=(A,t)=>{const f=A.currentTarget;if(!f)return;const n=ds(()=>{if(Rf.has(f))return;_n(f,"down");const v=ds(()=>{_n(f,"up")}),w=()=>_n(f,"cancel");f.addEventListener("keyup",v,t),f.addEventListener("blur",w,t)});f.addEventListener("keydown",n,t),f.addEventListener("blur",()=>f.removeEventListener("keydown",n),t)};function cs(A){return NX(A)&&!0}const is=new WeakSet;function EX(A,t,f={}){const[n,v,w]=oa(A,f),r=s=>{const g=s.currentTarget;if(!cs(s)||is.has(s))return;Rf.add(g),f.stopPropagation&&is.add(s);const B=t(g,s),a=(d,l)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",u),Rf.has(g)&&Rf.delete(g),cs(d)&&typeof B=="function"&&B(d,{success:l})},o=d=>{a(d,g===window||g===document||f.useGlobalTarget||ua(g,d.target))},u=d=>{a(d,!1)};window.addEventListener("pointerup",o,v),window.addEventListener("pointercancel",u,v)};return n.forEach(s=>{(f.useGlobalTarget?window:s).addEventListener("pointerdown",r,v),YX(s)&&(s.addEventListener("focus",B=>OX(B,v)),!FX(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),w}function da(A){return lB(A)&&"ownerSVGElement"in A}function yX(A){return da(A)&&A.tagName==="svg"}const pX=[...wa,zA,_A],jX=A=>pX.find(ra(A)),ls=()=>({translate:0,scale:1,origin:0,originPoint:0}),ct=()=>({x:ls(),y:ls()}),Ds=()=>({min:0,max:0}),HA=()=>({x:Ds(),y:Ds()}),IX=new WeakMap;function Ir(A){return A!==null&&typeof A=="object"&&typeof A.start=="function"}function Nn(A){return typeof A=="string"||Array.isArray(A)}const VX=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],TX=["initial",...VX];function ca(A){return Ir(A.animate)||TX.some(t=>Nn(A[t]))}function WX(A){return!!(ca(A)||A.variants)}function ZX(A,t,f){for(const n in t){const v=t[n],w=f[n];if(GA(v))A.addValue(n,v);else if(GA(w))A.addValue(n,Mt(v,{owner:A}));else if(w!==v)if(A.hasValue(n)){const r=A.getValue(n);r.liveStyle===!0?r.jump(v):r.hasAnimated||r.set(v)}else{const r=A.getStaticValue(n);A.addValue(n,Mt(r!==void 0?r:v,{owner:A}))}}for(const n in f)t[n]===void 0&&A.removeValue(n);return t}const Kv={current:null},ia={current:!1},qX=typeof window<"u";function KX(){if(ia.current=!0,!!qX)if(window.matchMedia){const A=window.matchMedia("(prefers-reduced-motion)"),t=()=>Kv.current=A.matches;A.addEventListener("change",t),t()}else Kv.current=!1}const Cs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Ps={};class kX{scrapeMotionValuesFromProps(t,f,n){return{}}constructor({parent:t,props:f,presenceContext:n,reducedMotionConfig:v,skipAnimations:w,blockInitialAnimation:r,visualState:s},g={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Er,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=hA.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,aA.render(this.render,!1,!0))};const{latestValues:B,renderState:a}=s;this.latestValues=B,this.baseTarget={...B},this.initialValues=f.initial?{...B}:{},this.renderState=a,this.parent=t,this.props=f,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=v,this.skipAnimationsConfig=w,this.options=g,this.blockInitialAnimation=!!r,this.isControllingVariants=ca(f),this.isVariantNode=WX(f),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:o,...u}=this.scrapeMotionValuesFromProps(f,{},this);for(const d in u){const l=u[d];B[d]!==void 0&&GA(l)&&l.set(B[d])}}mount(t){if(this.hasBeenMounted)for(const f in this.initialValues)this.values.get(f)?.jump(this.initialValues[f]),this.latestValues[f]=this.initialValues[f];this.current=t,IX.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((f,n)=>this.bindToMotionValue(n,f)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(ia.current||KX(),this.shouldReduceMotion=Kv.current),process.env.NODE_ENV!=="production"&&bB(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),he(this.notifyUpdate),he(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const f=this.features[t];f&&(f.unmount(),f.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,f){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),f.accelerate&&$B.has(t)&&this.current instanceof HTMLElement){const{factory:r,keyframes:s,times:g,ease:B,duration:a}=f.accelerate,o=new UB({element:this.current,name:t,keyframes:s,times:g,ease:B,duration:pA(a)}),u=r(o);this.valueSubscriptions.set(t,()=>{u(),o.cancel()});return}const n=ht.has(t);n&&this.onBindTransform&&this.onBindTransform();const v=f.on("change",r=>{this.latestValues[t]=r,this.props.onUpdate&&aA.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let w;typeof window<"u"&&window.MotionCheckAppearSync&&(w=window.MotionCheckAppearSync(this,t,f)),this.valueSubscriptions.set(t,()=>{v(),w&&w()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ps){const f=Ps[t];if(!f)continue;const{isEnabled:n,Feature:v}=f;if(!this.features[t]&&v&&n(this.props)&&(this.features[t]=new v(this)),this.features[t]){const w=this.features[t];w.isMounted?w.update():(w.mount(),w.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):HA()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,f){this.latestValues[t]=f}update(t,f){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=f;for(let n=0;n<Cs.length;n++){const v=Cs[n];this.propEventSubscriptions[v]&&(this.propEventSubscriptions[v](),delete this.propEventSubscriptions[v]);const w="on"+v,r=t[w];r&&(this.propEventSubscriptions[v]=this.on(v,r))}this.prevMotionValues=ZX(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const f=this.getClosestVariantNode();if(f)return f.variantChildren&&f.variantChildren.add(t),()=>f.variantChildren.delete(t)}addValue(t,f){const n=this.values.get(t);f!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,f),this.values.set(t,f),this.latestValues[t]=f.get())}removeValue(t){this.values.delete(t);const f=this.valueSubscriptions.get(t);f&&(f(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,f){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&f!==void 0&&(n=Mt(f===null?void 0:f,{owner:this}),this.addValue(t,n)),n}readValue(t,f){let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return n!=null&&(typeof n=="string"&&(iB(n)||DB(n))?n=parseFloat(n):!jX(n)&&_A.test(f)&&(n=ga(t,f)),this.setBaseTarget(t,GA(n)?n.get():n)),GA(n)?n.get():n}setBaseTarget(t,f){this.baseTarget[t]=f}getBaseTarget(t){const{initial:f}=this.props;let n;if(typeof f=="string"||typeof f=="object"){const w=ta(this.props,f,this.presenceContext?.custom);w&&(n=w[t])}if(f&&n!==void 0)return n;const v=this.getBaseTargetFromProps(this.props,t);return v!==void 0&&!GA(v)?v:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,f){return this.events[t]||(this.events[t]=new Hr),this.events[t].add(f)}notify(t,...f){this.events[t]&&this.events[t].notify(...f)}scheduleRenderMicrotask(){aa.render(this.render)}}class la extends kX{constructor(){super(...arguments),this.KeyframeResolver=HX}sortInstanceNodePosition(t,f){return t.compareDocumentPosition(f)&2?1:-1}getBaseTargetFromProps(t,f){const n=t.style;return n?n[f]:void 0}removeValueFromRenderState(t,{vars:f,style:n}){delete f[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;GA(t)&&(this.childSubscription=t.on("change",f=>{this.current&&(this.current.textContent=`${f}`)}))}}function Da({top:A,left:t,right:f,bottom:n}){return{x:{min:t,max:f},y:{min:A,max:n}}}function RX({x:A,y:t}){return{top:t.min,right:A.max,bottom:t.max,left:A.min}}function JX(A,t){if(!t)return A;const f=t({x:A.left,y:A.top}),n=t({x:A.right,y:A.bottom});return{top:f.y,left:f.x,bottom:n.y,right:n.x}}function Av(A){return A===void 0||A===1}function kv({scale:A,scaleX:t,scaleY:f}){return!Av(A)||!Av(t)||!Av(f)}function Ve(A){return kv(A)||Ca(A)||A.z||A.rotate||A.rotateX||A.rotateY||A.skewX||A.skewY}function Ca(A){return bs(A.x)||bs(A.y)}function bs(A){return A&&A!=="0%"}function Bn(A,t,f){const n=A-f,v=t*n;return f+v}function Xs(A,t,f,n,v){return v!==void 0&&(A=Bn(A,v,n)),Bn(A,f,n)+t}function Rv(A,t=0,f=1,n,v){A.min=Xs(A.min,t,f,n,v),A.max=Xs(A.max,t,f,n,v)}function Pa(A,{x:t,y:f}){Rv(A.x,t.translate,t.scale,t.originPoint),Rv(A.y,f.translate,f.scale,f.originPoint)}const zs=.999999999999,Ls=1.0000000000001;function UX(A,t,f,n=!1){const v=f.length;if(!v)return;t.x=t.y=1;let w,r;for(let s=0;s<v;s++){w=f[s],r=w.projectionDelta;const{visualElement:g}=w.options;g&&g.props.style&&g.props.style.display==="contents"||(n&&w.options.layoutScroll&&w.scroll&&w!==w.root&&(ne(A.x,-w.scroll.offset.x),ne(A.y,-w.scroll.offset.y)),r&&(t.x*=r.x.scale,t.y*=r.y.scale,Pa(A,r)),n&&Ve(w.latestValues)&&Jf(A,w.latestValues,w.layout?.layoutBox))}t.x<Ls&&t.x>zs&&(t.x=1),t.y<Ls&&t.y>zs&&(t.y=1)}function ne(A,t){A.min+=t,A.max+=t}function Ms(A,t,f,n,v=.5){const w=cA(A.min,A.max,v);Rv(A,t,f,w,n)}function Hs(A,t){return typeof A=="string"?parseFloat(A)/100*(t.max-t.min):A}function Jf(A,t,f){const n=f??A;Ms(A.x,Hs(t.x,n.x),t.scaleX,t.scale,t.originX),Ms(A.y,Hs(t.y,n.y),t.scaleY,t.scale,t.originY)}function ba(A,t){return Da(JX(A.getBoundingClientRect(),t))}function SX(A,t,f){const n=ba(A,f),{scroll:v}=t;return v&&(ne(n.x,v.offset.x),ne(n.y,v.offset.y)),n}const $X={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},_X=Gt.length;function Az(A,t,f){let n="",v=!0;for(let r=0;r<_X;r++){const s=Gt[r],g=A[s];if(g===void 0)continue;let B=!0;if(typeof g=="number")B=g===(s.startsWith("scale")?1:0);else{const a=parseFloat(g);B=s.startsWith("scale")?a===1:a===0}if(!B||f){const a=qv(g,gn[s]);if(!B){v=!1;const o=$X[s]||s;n+=`${o}(${a}) `}f&&(t[s]=a)}}const w=A.pathRotation;return w&&(v=!1,n+=`rotate(${qv(w,gn.pathRotation)}) `),n=n.trim(),f?n=f(t,v?"":n):v&&(n="none"),n}function Vr(A,t,f){const{style:n,vars:v,transformOrigin:w}=A;let r=!1,s=!1;for(const g in t){const B=t[g];if(ht.has(g)){r=!0;continue}else if(xr(g)){v[g]=B;continue}else{const a=qv(B,gn[g]);g.startsWith("origin")?(s=!0,w[g]=a):n[g]=a}}if(t.transform||(r||f?n.transform=Az(t,A.transform,f):n.transform&&(n.transform="none")),s){const{originX:g="50%",originY:B="50%",originZ:a=0}=w;n.transformOrigin=`${g} ${B} ${a}`}}function Xa(A,{style:t,vars:f},n,v){const w=A.style;let r;for(r in t)w[r]=t[r];v?.applyProjectionStyles(w,n);for(r in f)w.setProperty(r,f[r])}function Ys(A,t){return t.max===t.min?0:A/(t.max-t.min)*100}const ve={correct:(A,t)=>{if(!t.target)return A;if(typeof A=="string")if(U.test(A))A=parseFloat(A);else return A;const f=Ys(A,t.target.x),n=Ys(A,t.target.y);return`${f}% ${n}%`}},za={correct:(A,{treeScale:t,projectionDelta:f})=>{const n=A,v=_A.parse(A);if(v.length>5)return n;const w=_A.createTransformer(A),r=typeof v[0]!="number"?1:0,s=f.x.scale*t.x,g=f.y.scale*t.y;v[0+r]/=s,v[1+r]/=g;const B=cA(s,g,.5);return typeof v[2+r]=="number"&&(v[2+r]/=B),typeof v[3+r]=="number"&&(v[3+r]/=B),w(v)}},wf={borderRadius:{...ve,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ve,borderTopRightRadius:ve,borderBottomLeftRadius:ve,borderBottomRightRadius:ve,boxShadow:za};function La(A){for(const t in A)wf[t]=A[t],xr(t)&&(wf[t].isCSSVariable=!0)}function ez(A,{layout:t,layoutId:f}){return ht.has(A)||A.startsWith("origin")||(t||f!==void 0)&&(!!wf[A]||A==="opacity")}function Ma(A,t,f){const n=A.style,v=t?.style,w={};if(!n)return w;for(const r in n)(GA(n[r])||v&&GA(v[r])||ez(r,A)||f?.getValue(r)?.liveStyle!==void 0)&&(w[r]=n[r]);return w}function tz(A){return window.getComputedStyle(A)}class fz extends la{constructor(){super(...arguments),this.type="html",this.renderInstance=Xa}readValueFromInstance(t,f){if(ht.has(f))return this.projection?.isProjecting?Ov(f):Mb(t,f);{const n=tz(t),v=(xr(f)?n.getPropertyValue(f):n[f])||0;return typeof v=="string"?v.trim():v}}measureInstanceViewportBox(t,{transformPagePoint:f}){return ba(t,f)}build(t,f,n){Vr(t,f,n.transformTemplate)}scrapeMotionValuesFromProps(t,f,n){return Ma(t,f,n)}}const nz={offset:"stroke-dashoffset",array:"stroke-dasharray"},vz={offset:"strokeDashoffset",array:"strokeDasharray"};function rz(A,t,f=1,n=0,v=!0){A.pathLength=1;const w=v?nz:vz;A[w.offset]=`${-n}`,A[w.array]=`${t} ${f}`}const wz=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Ha(A,{attrX:t,attrY:f,attrScale:n,pathLength:v,pathSpacing:w=1,pathOffset:r=0,...s},g,B,a){if(Vr(A,s,B),g){A.style.viewBox&&(A.attrs.viewBox=A.style.viewBox);return}A.attrs=A.style,A.style={};const{attrs:o,style:u}=A;o.transform&&(u.transform=o.transform,delete o.transform),(u.transform||o.transformOrigin)&&(u.transformOrigin=o.transformOrigin??"50% 50%",delete o.transformOrigin),u.transform&&(u.transformBox=a?.transformBox??"fill-box",delete o.transformBox);for(const d of wz)o[d]!==void 0&&(u[d]=o[d],delete o[d]);t!==void 0&&(o.x=t),f!==void 0&&(o.y=f),n!==void 0&&(o.scale=n),v!==void 0&&rz(o,v,w,r,!1)}const Tr=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Ya=A=>typeof A=="string"&&A.toLowerCase()==="svg";function sz(A,t,f,n){Xa(A,t,void 0,n);for(const v in t.attrs)A.setAttribute(Tr.has(v)?v:jr(v),t.attrs[v])}function gz(A,t,f){const n=Ma(A,t,f);for(const v in A)if(GA(A[v])||GA(t[v])){const w=Gt.indexOf(v)!==-1?"attr"+v.charAt(0).toUpperCase()+v.substring(1):v;n[w]=A[v]}return n}class Bz extends la{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=HA}getBaseTargetFromProps(t,f){return t[f]}readValueFromInstance(t,f){if(ht.has(f)){const n=sa(f);return n&&n.default||0}return f=Tr.has(f)?f:jr(f),t.getAttribute(f)}scrapeMotionValuesFromProps(t,f,n){return gz(t,f,n)}build(t,f,n){Ha(t,f,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,f,n,v){sz(t,f,n,v)}mount(t){this.isSVGTag=Ya(t.tagName),super.mount(t)}}function Jv(A,t){A.min=t.min,A.max=t.max}function UA(A,t){Jv(A.x,t.x),Jv(A.y,t.y)}function ms(A,t){A.translate=t.translate,A.scale=t.scale,A.originPoint=t.originPoint,A.origin=t.origin}const ma=1e-4,az=1-ma,oz=1+ma,xa=.01,uz=0-xa,dz=0+xa;function NA(A){return A.max-A.min}function cz(A,t,f){return Math.abs(A-t)<=f}function xs(A,t,f,n=.5){A.origin=n,A.originPoint=cA(t.min,t.max,A.origin),A.scale=NA(f)/NA(t),A.translate=cA(f.min,f.max,A.origin)-A.originPoint,(A.scale>=az&&A.scale<=oz||isNaN(A.scale))&&(A.scale=1),(A.translate>=uz&&A.translate<=dz||isNaN(A.translate))&&(A.translate=0)}function Ut(A,t,f,n){xs(A.x,t.x,f.x,n?n.originX:void 0),xs(A.y,t.y,f.y,n?n.originY:void 0)}function Gs(A,t,f,n=0){const v=n?cA(f.min,f.max,n):f.min;A.min=v+t.min,A.max=A.min+NA(t)}function iz(A,t,f,n){Gs(A.x,t.x,f.x,n?.x),Gs(A.y,t.y,f.y,n?.y)}function hs(A,t,f,n=0){const v=n?cA(f.min,f.max,n):f.min;A.min=t.min-v,A.max=A.min+NA(t)}function an(A,t,f,n){hs(A.x,t.x,f.x,n?.x),hs(A.y,t.y,f.y,n?.y)}function Ns(A,t,f,n,v){return A-=t,A=Bn(A,1/f,n),v!==void 0&&(A=Bn(A,1/v,n)),A}function lz(A,t=0,f=1,n=.5,v,w=A,r=A){if(we.test(t)&&(t=parseFloat(t),t=cA(r.min,r.max,t/100)-r.min),typeof t!="number")return;let s=cA(w.min,w.max,n);A===w&&(s-=t),A.min=Ns(A.min,t,f,s,v),A.max=Ns(A.max,t,f,s,v)}function Qs(A,t,[f,n,v],w,r){lz(A,t[f],t[n],t[v],t.scale,w,r)}const Dz=["x","scaleX","originX"],Cz=["y","scaleY","originY"];function Fs(A,t,f,n){Qs(A.x,t,Dz,f?f.x:void 0,n?n.x:void 0),Qs(A.y,t,Cz,f?f.y:void 0,n?n.y:void 0)}function Os(A){return A.translate===0&&A.scale===1}function Ga(A){return Os(A.x)&&Os(A.y)}function Es(A,t){return A.min===t.min&&A.max===t.max}function Pz(A,t){return Es(A.x,t.x)&&Es(A.y,t.y)}function ys(A,t){return Math.round(A.min)===Math.round(t.min)&&Math.round(A.max)===Math.round(t.max)}function ha(A,t){return ys(A.x,t.x)&&ys(A.y,t.y)}function ps(A){return NA(A.x)/NA(A.y)}function js(A,t){return A.translate===t.translate&&A.scale===t.scale&&A.originPoint===t.originPoint}function WA(A){return[A("x"),A("y")]}function bz(A,t,f){let n="";const v=A.x.translate/t.x,w=A.y.translate/t.y,r=f?.z||0;if((v||w||r)&&(n=`translate3d(${v}px, ${w}px, ${r}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),f){const{transformPerspective:B,rotate:a,pathRotation:o,rotateX:u,rotateY:d,skewX:l,skewY:C}=f;B&&(n=`perspective(${B}px) ${n}`),a&&(n+=`rotate(${a}deg) `),o&&(n+=`rotate(${o}deg) `),u&&(n+=`rotateX(${u}deg) `),d&&(n+=`rotateY(${d}deg) `),l&&(n+=`skewX(${l}deg) `),C&&(n+=`skewY(${C}deg) `)}const s=A.x.scale*t.x,g=A.y.scale*t.y;return(s!==1||g!==1)&&(n+=`scale(${s}, ${g})`),n||"none"}const Na=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],Xz=Na.length,Is=A=>typeof A=="string"?parseFloat(A):A,Vs=A=>typeof A=="number"||U.test(A);function zz(A,t,f,n,v,w){v?(A.opacity=cA(0,f.opacity??1,Lz(n)),A.opacityExit=cA(t.opacity??1,0,Mz(n))):w&&(A.opacity=cA(t.opacity??1,f.opacity??1,n));for(let r=0;r<Xz;r++){const s=Na[r];let g=Ts(t,s),B=Ts(f,s);if(g===void 0&&B===void 0)continue;g||(g=0),B||(B=0),g===0||B===0||Vs(g)===Vs(B)?(A[s]=Math.max(cA(Is(g),Is(B),n),0),(we.test(B)||we.test(g))&&(A[s]+="%")):A[s]=B}(t.rotate||f.rotate)&&(A.rotate=cA(t.rotate||0,f.rotate||0,n))}function Ts(A,t){return A[t]!==void 0?A[t]:A.borderRadius}const Lz=Qa(0,.5,mB),Mz=Qa(.5,.95,KA);function Qa(A,t,f){return n=>n<A?0:n>t?1:f(vf(A,t,n))}function Hz(A,t,f){const n=GA(A)?A:Mt(A);return n.start(pr("",n,t,f)),n.animation}function Yz(A,t,f,n={passive:!0}){return A.addEventListener(t,f,n),()=>A.removeEventListener(t,f)}const mz=(A,t)=>A.depth-t.depth;class xz{constructor(){this.children=[],this.isDirty=!1}add(t){Mr(this.children,t),this.isDirty=!0}remove(t){nn(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(mz),this.isDirty=!1,this.children.forEach(t)}}function Gz(A,t){const f=hA.now(),n=({timestamp:v})=>{const w=v-f;w>=t&&(he(n),A(w-t))};return aA.setup(n,!0),()=>he(n)}function ev(A){return GA(A)?A.get():A}class hz{constructor(){this.members=[]}add(t){Mr(this.members,t);for(let f=this.members.length-1;f>=0;f--){const n=this.members[f];if(n===t||n===this.lead||n===this.prevLead)continue;const v=n.instance;(!v||v.isConnected===!1)&&!n.snapshot&&(nn(this.members,n),n.unmount())}t.scheduleRender()}remove(t){if(nn(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const f=this.members[this.members.length-1];f&&this.promote(f)}}relegate(t){for(let f=this.members.indexOf(t)-1;f>=0;f--){const n=this.members[f];if(n.isPresent!==!1&&n.instance?.isConnected!==!1)return this.promote(n),!0}return!1}promote(t,f){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.updateSnapshot(),t.scheduleRender();const{layoutDependency:v}=n.options,{layoutDependency:w}=t.options;(v===void 0||v!==w)&&(t.resumeFrom=n,f&&(n.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Uf={hasAnimatedSinceResize:!0,hasEverUpdated:!1},tv=["","X","Y","Z"],Nz=1e3;let Qz=0;function fv(A,t,f,n){const{latestValues:v}=t;v[A]&&(f[A]=v[A],t.setStaticValue(A,0),n&&(n[A]=0))}function Fa(A){if(A.hasCheckedOptimisedAppear=!0,A.root===A)return;const{visualElement:t}=A.options;if(!t)return;const f=na(t);if(window.MotionHasOptimisedAnimation(f,"transform")){const{layout:v,layoutId:w}=A.options;window.MotionCancelOptimisedAnimation(f,"transform",aA,!(v||w))}const{parent:n}=A;n&&!n.hasCheckedOptimisedAppear&&Fa(n)}function Oa({attachResizeListener:A,defaultParent:t,measureScroll:f,checkIsScrollRoot:n,resetTransform:v}){return class{constructor(r={},s=t?.()){this.id=Qz++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Ez),this.nodes.forEach(Tz),this.nodes.forEach(Wz),this.nodes.forEach(yz)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let g=0;g<this.path.length;g++)this.path[g].shouldResetTransform=!0;this.root===this&&(this.nodes=new xz)}addEventListener(r,s){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Hr),this.eventHandlers.get(r).add(s)}notifyListeners(r,...s){const g=this.eventHandlers.get(r);g&&g.notify(...s)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=da(r)&&!yX(r),this.instance=r;const{layoutId:s,layout:g,visualElement:B}=this.options;if(B&&!B.current&&B.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(g||s)&&(this.isLayoutDirty=!0),A){let a,o=0;const u=()=>this.root.updateBlockedByResize=!1;aA.read(()=>{o=window.innerWidth}),A(r,()=>{const d=window.innerWidth;d!==o&&(o=d,this.root.updateBlockedByResize=!0,a&&a(),a=Gz(u,250),Uf.hasAnimatedSinceResize&&(Uf.hasAnimatedSinceResize=!1,this.nodes.forEach(qs)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&B&&(s||g)&&this.addEventListener("didUpdate",({delta:a,hasLayoutChanged:o,hasRelativeLayoutChanged:u,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const l=this.options.transition||B.getDefaultTransition()||Rz,{onLayoutAnimationStart:C,onLayoutAnimationComplete:c}=B.getProps(),D=!this.targetLayout||!ha(this.targetLayout,d),i=!o&&u;if(this.options.layoutRoot||this.resumeFrom||i||o&&(D||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const b={...yr(l,"layout"),onPlay:C,onComplete:c};(B.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(a,i,b.path)}else o||qs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),he(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Zz),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Fa(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let a=0;a<this.path.length;a++){const o=this.path[a];o.shouldResetTransform=!0,(typeof o.latestValues.x=="string"||typeof o.latestValues.y=="string")&&(o.isLayoutDirty=!0),o.updateScroll("snapshot"),o.options.layoutRoot&&o.willUpdate(!1)}const{layoutId:s,layout:g}=this.options;if(s===void 0&&!g)return;const B=this.getTransformTemplate();this.prevTransformTemplateValue=B?B(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const g=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),g&&this.nodes.forEach(jz),this.nodes.forEach(Ws);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Zs);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Iz),this.nodes.forEach(Vz),this.nodes.forEach(Fz),this.nodes.forEach(Oz)):this.nodes.forEach(Zs),this.clearAllSnapshots();const s=hA.now();YA.delta=Be(0,1e3/60,s-YA.timestamp),YA.timestamp=s,YA.isProcessing=!0,kn.update.process(YA),kn.preRender.process(YA),kn.render.process(YA),YA.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,aa.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(pz),this.sharedNodes.forEach(qz)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,aA.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){aA.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!NA(this.snapshot.measuredBox.x)&&!NA(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let g=0;g<this.path.length;g++)this.path[g].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=HA()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(s=!1),s&&this.instance){const g=n(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:g,offset:f(this.instance),wasRoot:this.scroll?this.scroll.isRoot:g}}}resetTransform(){if(!v)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!Ga(this.projectionDelta),g=this.getTransformTemplate(),B=g?g(this.latestValues,""):void 0,a=B!==this.prevTransformTemplateValue;r&&this.instance&&(s||Ve(this.latestValues)||a)&&(v(this.instance,B),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const s=this.measurePageBox();let g=this.removeElementScroll(s);return r&&(g=this.removeTransform(g)),Jz(g),{animationId:this.root.animationId,measuredBox:s,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return HA();const s=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Uz))){const{scroll:B}=this.root;B&&(ne(s.x,B.offset.x),ne(s.y,B.offset.y))}return s}removeElementScroll(r){const s=HA();if(UA(s,r),this.scroll?.wasRoot)return s;for(let g=0;g<this.path.length;g++){const B=this.path[g],{scroll:a,options:o}=B;B!==this.root&&a&&o.layoutScroll&&(a.wasRoot&&UA(s,r),ne(s.x,a.offset.x),ne(s.y,a.offset.y))}return s}applyTransform(r,s=!1,g){const B=g||HA();UA(B,r);for(let a=0;a<this.path.length;a++){const o=this.path[a];!s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(ne(B.x,-o.scroll.offset.x),ne(B.y,-o.scroll.offset.y)),Ve(o.latestValues)&&Jf(B,o.latestValues,o.layout?.layoutBox)}return Ve(this.latestValues)&&Jf(B,this.latestValues,this.layout?.layoutBox),B}removeTransform(r){const s=HA();UA(s,r);for(let g=0;g<this.path.length;g++){const B=this.path[g];if(!Ve(B.latestValues))continue;let a;B.instance&&(kv(B.latestValues)&&B.updateSnapshot(),a=HA(),UA(a,B.measurePageBox())),Fs(s,B.latestValues,B.snapshot?.layoutBox,a)}return Ve(this.latestValues)&&Fs(s,this.latestValues),s}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==YA.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){const s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);const g=!!this.resumingFrom||this!==s;if(!(r||g&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:a,layoutId:o}=this.options;if(!this.layout||!(a||o))return;this.resolvedRelativeTargetAt=YA.timestamp;const u=this.getClosestProjectingParent();u&&this.linkedParentVersion!==u.layoutVersion&&!u.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&u&&u.layout?this.createRelativeTarget(u,this.layout.layoutBox,u.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=HA(),this.targetWithTransforms=HA()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),iz(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):UA(this.target,this.layout.layoutBox),Pa(this.target,this.targetDelta)):UA(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&u&&!!u.resumingFrom==!!this.resumingFrom&&!u.options.layoutScroll&&u.target&&this.animationProgress!==1?this.createRelativeTarget(u,this.target,u.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||kv(this.parent.latestValues)||Ca(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(r,s,g){this.relativeParent=r,this.linkedParentVersion=r.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=HA(),this.relativeTargetOrigin=HA(),an(this.relativeTargetOrigin,s,g,this.options.layoutAnchor||void 0),UA(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const r=this.getLead(),s=!!this.resumingFrom||this!==r;let g=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(g=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===YA.timestamp&&(g=!1),g)return;const{layout:B,layoutId:a}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(B||a))return;UA(this.layoutCorrected,this.layout.layoutBox);const o=this.treeScale.x,u=this.treeScale.y;UX(this.layoutCorrected,this.treeScale,this.path,s),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=HA());const{target:d}=r;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ms(this.prevProjectionDelta.x,this.projectionDelta.x),ms(this.prevProjectionDelta.y,this.projectionDelta.y)),Ut(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==o||this.treeScale.y!==u||!js(this.projectionDelta.x,this.prevProjectionDelta.x)||!js(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.visualElement?.scheduleRender(),r){const s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ct(),this.projectionDelta=ct(),this.projectionDeltaWithTransform=ct()}setAnimationOrigin(r,s=!1,g){const B=this.snapshot,a=B?B.latestValues:{},o={...this.latestValues},u=ct();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const d=HA(),l=B?B.source:void 0,C=this.layout?this.layout.source:void 0,c=l!==C,D=this.getStack(),i=!D||D.members.length<=1,b=!!(c&&!i&&this.options.crossfade===!0&&!this.path.some(kz));this.animationProgress=0;let X;const P=g?.interpolateProjection(r);this.mixTargetDelta=L=>{const x=L/1e3,z=P?.(x);z?(u.x.translate=z.x,u.x.scale=cA(r.x.scale,1,x),u.x.origin=r.x.origin,u.x.originPoint=r.x.originPoint,u.y.translate=z.y,u.y.scale=cA(r.y.scale,1,x),u.y.origin=r.y.origin,u.y.originPoint=r.y.originPoint):(Ks(u.x,r.x,x),Ks(u.y,r.y,x)),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(an(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Kz(this.relativeTarget,this.relativeTargetOrigin,d,x),X&&Pz(this.relativeTarget,X)&&(this.isProjectionDirty=!1),X||(X=HA()),UA(X,this.relativeTarget)),c&&(this.animationValues=o,zz(o,a,this.latestValues,x,b,i)),z&&z.rotate!==void 0&&(this.animationValues||(this.animationValues=o),this.animationValues.pathRotation=z.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=x},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(he(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=aA.update(()=>{Uf.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Mt(0)),this.motionValue.jump(0,!1),this.currentAnimation=Hz(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:s=>{this.mixTargetDelta(s),r.onUpdate&&r.onUpdate(s)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Nz),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:s,target:g,layout:B,latestValues:a}=r;if(!(!s||!g||!B)){if(this!==r&&this.layout&&B&&Ea(this.options.animationType,this.layout.layoutBox,B.layoutBox)){g=this.target||HA();const o=NA(this.layout.layoutBox.x);g.x.min=r.target.x.min,g.x.max=g.x.min+o;const u=NA(this.layout.layoutBox.y);g.y.min=r.target.y.min,g.y.max=g.y.min+u}UA(s,g),Jf(s,a),Ut(this.projectionDeltaWithTransform,this.layoutCorrected,s,a)}}registerSharedNode(r,s){this.sharedNodes.has(r)||this.sharedNodes.set(r,new hz),this.sharedNodes.get(r).add(s);const B=s.options.initialPromotionConfig;s.promote({transition:B?B.transition:void 0,preserveFollowOpacity:B&&B.shouldPreserveFollowOpacity?B.shouldPreserveFollowOpacity(s):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){const{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:r}=this.options;return r?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:s,preserveFollowOpacity:g}={}){const B=this.getStack();B&&B.promote(this,g),r&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let s=!1;const{latestValues:g}=r;if((g.z||g.rotate||g.rotateX||g.rotateY||g.rotateZ||g.skewX||g.skewY)&&(s=!0),!s)return;const B={};g.z&&fv("z",r,B,this.animationValues);for(let a=0;a<tv.length;a++)fv(`rotate${tv[a]}`,r,B,this.animationValues),fv(`skew${tv[a]}`,r,B,this.animationValues);r.render();for(const a in B)r.setStaticValue(a,B[a]),this.animationValues&&(this.animationValues[a]=B[a]);r.scheduleRender()}applyProjectionStyles(r,s){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const g=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=ev(s?.pointerEvents)||"",r.transform=g?g(this.latestValues,""):"none";return}const B=this.getLead();if(!this.projectionDelta||!this.layout||!B.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=ev(s?.pointerEvents)||""),this.hasProjected&&!Ve(this.latestValues)&&(r.transform=g?g({},""):"none",this.hasProjected=!1);return}r.visibility="";const a=B.animationValues||B.latestValues;this.applyTransformsToTarget();let o=bz(this.projectionDeltaWithTransform,this.treeScale,a);g&&(o=g(a,o)),r.transform=o;const{x:u,y:d}=this.projectionDelta;r.transformOrigin=`${u.origin*100}% ${d.origin*100}% 0`,B.animationValues?r.opacity=B===this?a.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=B===this?a.opacity!==void 0?a.opacity:"":a.opacityExit!==void 0?a.opacityExit:0;for(const l in wf){if(a[l]===void 0)continue;const{correct:C,applyTo:c,isCSSVariable:D}=wf[l],i=o==="none"?a[l]:C(a[l],B);if(c){const b=c.length;for(let X=0;X<b;X++)r[c[X]]=i}else D?this.options.visualElement.renderState.vars[l]=i:r[l]=i}this.options.layoutId&&(r.pointerEvents=B===this?ev(s?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(Ws),this.root.sharedNodes.clear()}}}function Fz(A){A.updateLayout()}function Oz(A){const t=A.resumeFrom?.snapshot||A.snapshot;if(A.isLead()&&A.layout&&t&&A.hasListeners("didUpdate")){const{layoutBox:f,measuredBox:n}=A.layout,{animationType:v}=A.options,w=t.source!==A.layout.source;if(v==="size")WA(a=>{const o=w?t.measuredBox[a]:t.layoutBox[a],u=NA(o);o.min=f[a].min,o.max=o.min+u});else if(v==="x"||v==="y"){const a=v==="x"?"y":"x";Jv(w?t.measuredBox[a]:t.layoutBox[a],f[a])}else Ea(v,t.layoutBox,f)&&WA(a=>{const o=w?t.measuredBox[a]:t.layoutBox[a],u=NA(f[a]);o.max=o.min+u,A.relativeTarget&&!A.currentAnimation&&(A.isProjectionDirty=!0,A.relativeTarget[a].max=A.relativeTarget[a].min+u)});const r=ct();Ut(r,f,t.layoutBox);const s=ct();w?Ut(s,A.applyTransform(n,!0),t.measuredBox):Ut(s,f,t.layoutBox);const g=!Ga(r);let B=!1;if(!A.resumeFrom){const a=A.getClosestProjectingParent();if(a&&!a.resumeFrom){const{snapshot:o,layout:u}=a;if(o&&u){const d=A.options.layoutAnchor||void 0,l=HA();an(l,t.layoutBox,o.layoutBox,d);const C=HA();an(C,f,u.layoutBox,d),ha(l,C)||(B=!0),a.options.layoutRoot&&(A.relativeTarget=C,A.relativeTargetOrigin=l,A.relativeParent=a)}}}A.notifyListeners("didUpdate",{layout:f,snapshot:t,delta:s,layoutDelta:r,hasLayoutChanged:g,hasRelativeLayoutChanged:B})}else if(A.isLead()){const{onExitComplete:f}=A.options;f&&f()}A.options.transition=void 0}function Ez(A){A.parent&&(A.isProjecting()||(A.isProjectionDirty=A.parent.isProjectionDirty),A.isSharedProjectionDirty||(A.isSharedProjectionDirty=!!(A.isProjectionDirty||A.parent.isProjectionDirty||A.parent.isSharedProjectionDirty)),A.isTransformDirty||(A.isTransformDirty=A.parent.isTransformDirty))}function yz(A){A.isProjectionDirty=A.isSharedProjectionDirty=A.isTransformDirty=!1}function pz(A){A.clearSnapshot()}function Ws(A){A.clearMeasurements()}function jz(A){A.isLayoutDirty=!0,A.updateLayout()}function Zs(A){A.isLayoutDirty=!1}function Iz(A){A.isAnimationBlocked&&A.layout&&!A.isLayoutDirty&&(A.snapshot=A.layout,A.isLayoutDirty=!0)}function Vz(A){const{visualElement:t}=A.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),A.resetTransform()}function qs(A){A.finishAnimation(),A.targetDelta=A.relativeTarget=A.target=void 0,A.isProjectionDirty=!0}function Tz(A){A.resolveTargetDelta()}function Wz(A){A.calcProjection()}function Zz(A){A.resetSkewAndRotation()}function qz(A){A.removeLeadSnapshot()}function Ks(A,t,f){A.translate=cA(t.translate,0,f),A.scale=cA(t.scale,1,f),A.origin=t.origin,A.originPoint=t.originPoint}function ks(A,t,f,n){A.min=cA(t.min,f.min,n),A.max=cA(t.max,f.max,n)}function Kz(A,t,f,n){ks(A.x,t.x,f.x,n),ks(A.y,t.y,f.y,n)}function kz(A){return A.animationValues&&A.animationValues.opacityExit!==void 0}const Rz={duration:.45,ease:[.4,0,.1,1]},Rs=A=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(A),Js=Rs("applewebkit/")&&!Rs("chrome/")?Math.round:KA;function Us(A){A.min=Js(A.min),A.max=Js(A.max)}function Jz(A){Us(A.x),Us(A.y)}function Ea(A,t,f){return A==="position"||A==="preserve-aspect"&&!cz(ps(t),ps(f),.2)}function Uz(A){return A!==A.root&&A.scroll?.wasRoot}const Sz=Oa({attachResizeListener:(A,t)=>Yz(A,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),nv={current:void 0},$z=Oa({measureScroll:A=>({x:A.scrollLeft,y:A.scrollTop}),defaultParent:()=>{if(!nv.current){const A=new Sz({});A.mount(window),A.setOptions({layoutScroll:!0}),nv.current=A}return nv.current},resetTransform:(A,t)=>{A.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:A=>window.getComputedStyle(A).position==="fixed"}),_z={some:0,all:1};function AL(A,t,{root:f,margin:n,amount:v="some"}={}){const w=Ba(A),r=new WeakMap,s=B=>{B.forEach(a=>{const o=r.get(a.target);if(a.isIntersecting!==!!o)if(a.isIntersecting){const u=t(a.target,a);typeof u=="function"?r.set(a.target,u):g.unobserve(a.target)}else typeof o=="function"&&(o(a),r.delete(a.target))})},g=new IntersectionObserver(s,{root:f,rootMargin:n,threshold:typeof v=="number"?v:_z[v]});return w.forEach(B=>g.observe(B)),()=>g.disconnect()}const Ss=(A,t)=>Math.abs(A-t);function eL(A,t){const f=Ss(A.x,t.x),n=Ss(A.y,t.y);return Math.sqrt(f**2+n**2)}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const $s=A=>typeof A<"u";function ya({current:A}){return A?A.ownerDocument.defaultView:null}function Uv(A){if(A)return A.nodeType===3||A.nodeType===8?Uv(A.nextSibling):A}const[tL,fL]=Pf("Motion"),[nL]=Pf("LayoutGroup"),vL={reducedMotion:"never",transition:void 0,nonce:void 0},[rL]=Pf("MotionConfig");function wL(){return rL(e.computed(()=>vL))}var pa=function(){},Qn=function(){};process.env.NODE_ENV!=="production"&&(pa=function(A,t){!A&&typeof console<"u"&&console.warn(t)},Qn=function(A,t){if(!A)throw new Error(t)});const sL={motionAttribute:"data-ap"},Sv=[];function ja(A){for(const t of A)t&&!Sv.includes(t)&&Sv.push(t)}function Ia(A,t,f){if(Array.isArray(A))return A.reduce((n,v)=>{const w=Ia(v,t,f);return w?{...n,...w}:n},{});if(typeof A=="object")return A;if(A&&t){const n=t[A];return typeof n=="function"?n(f):n}}function gL(A,t,f){const n=Ia(A,t,f);if(!n)return;const{transition:v,transitionEnd:w,...r}=n;return{...r,...w}}function BL(A,t){const f=(A.initial===void 0&&A.variants?t?.initial:A.initial)===!1?["initial","animate"]:["initial"],n=A.custom??A.presenceContext?.custom;return f.reduce((v,w)=>({...v,...gL(A[w]||t?.[w],A.variants,n)}),{})}function Va(A,t){const f=t?.length;if(f!==A.length)return!1;for(let n=0;n<f;n++)if(t[n]!==A[n])return!1;return!0}var aL=new Set(["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]);function Ta(A){return aL.has(A)}const _s=new WeakMap;var oL=class{constructor(A,t){this.element=null,this.isExiting=!1,this.presenceContainer=null,this.children=new Set,this.features=new Map,this._context=null,this.options=A,this.parent=t,t?.children?.add(this),this.latestValues=BL(A,this.context),this.type=Ta(this.options.as)?"svg":"html"}get context(){return this._context||(this._context=new Proxy({},{get:(A,t)=>{const f=this.options[t];return Nn(f)||t==="initial"&&f===!1?f:this.parent?.context[t]}})),this._context}updateFeatures(){if(this.visualElement)for(const A of Sv){this.features.has(A.key)||this.features.set(A.key,new A(this));const t=this.features.get(A.key);this.isMounted()&&(t.isMount?t.update():(t.mount(),t.isMount=!0))}}updateOptions(A){this.options=A,this.visualElement?.update({...this.options,whileTap:this.options.whilePress},this.options.presenceContext??null)}mount(A){Qn(!!A,"Animation state must be mounted with valid Element"),_s.set(A,this),this.element=A;const t=this.options.presenceContext?.presenceId;t!==void 0&&A.setAttribute(sL.motionAttribute,t),this.visualElement?.mount(A),this.updateFeatures()}beforeUnmount(){this.getSnapshot(this.options,!1)}unmount(){this.parent?.children?.delete(this),_s.delete(this.element),this.features.forEach(A=>A.unmount?.()),this.visualElement?.unmount()}beforeUpdate(){this.getSnapshot(this.options,void 0)}update(){this.updateFeatures(),this.didUpdate()}tryExitComplete(){this.isExiting||this.options?.layoutId&&this.visualElement.projection?.currentAnimation?.state==="running"||this.options.presenceContext?.onMotionExitComplete?.(this.presenceContainer,this)}setActive(A,t){A==="exit"&&t&&(this.isExiting=!0),this.visualElement?.animationState?.setActive(A,t).then(()=>{A==="exit"&&t&&(this.isExiting=!1,this.options?.layoutId?aA.postRender(()=>this.tryExitComplete()):this.tryExitComplete())})}isMounted(){return!!this.element}initVisualElement(A){this.visualElement||(this.visualElement=A(this.options.as,{presenceContext:this.options.presenceContext??null,parent:this.parent?.visualElement,props:{...this.options,whileTap:this.options.whilePress},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{...this.latestValues}},reducedMotionConfig:this.options.motionConfig?.reducedMotion}),this.visualElement.parent?.addChild(this.visualElement),this.isMounted()&&this.visualElement.mount(this.element))}getSnapshot(A,t){}didUpdate(){}},Ce=class{constructor(A){this.state=A}mount(){}unmount(){}update(){}};const Wa=["initial","animate","exit","whileHover","whileDrag","whileFocus","whilePress"];var uL=Wa.length;function Za(A){if(!A)return;if(!A.isControllingVariants){const f=A.parent?Za(A.parent)||{}:{};return A.props.initial!==void 0&&(f.initial=A.props.initial),f}const t={};for(let f=0;f<uL;f++){const n=Wa[f],v=A.props[n];(Nn(v)||v===!1)&&(t[n]=v)}return t}var qa=["animate","whileInView","whileFocus","whileHover","whilePress","whileDrag","exit"],dL=[...qa].reverse(),cL=qa.length;function je(A=!1){return{isActive:A,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ag(){return{animate:je(!0),whileInView:je(),whileHover:je(),whilePress:je(),whileDrag:je(),whileFocus:je(),exit:je()}}function iL(A,t){return typeof t=="string"?t!==A:Array.isArray(t)?!Va(t,A):!1}function eg(A){return Array.isArray(A)}function lL(A){return t=>Promise.all(t.map(({animation:f,options:n})=>cX(A,f,n)))}function DL(A){let t=lL(A),f=Ag(),n=!0;const v=g=>(B,a)=>{const o=Ct(A,a,g==="exit"?A.presenceContext?.custom:void 0);if(o){const{transition:u,transitionEnd:d,...l}=o;B={...B,...l,...d}}return B};function w(g){t=g(A)}function r(g){const{props:B}=A,a=Za(A.parent)||{},o=[],u=new Set;let d={},l=1/0;for(let c=0;c<cL;c++){const D=dL[c],i=f[D],b=B[D]!==void 0?B[D]:a[D],X=Nn(b),P=D===g?i.isActive:null;P===!1&&(l=c);let L=b===a[D]&&b!==B[D]&&X;if(L&&n&&A.manuallyAnimateOnMount&&(L=!1),i.protectedKeys={...d},!i.isActive&&P===null||!b&&!i.prevProp||Ir(b)||typeof b=="boolean")continue;const x=iL(i.prevProp,b);let z=x||D===g&&i.isActive&&!L&&X||c>l&&X,H=!1;const N=Array.isArray(b)?b:[b];let Q=N.reduce(v(D),{});P===!1&&(Q={});const{prevResolvedValues:m={}}=i,G={...m,...Q},M=h=>{z=!0,u.has(h)&&(H=!0,u.delete(h)),i.needsAnimating[h]=!0;const p=A.getValue(h);p&&(p.liveStyle=!1)};for(const h in G){const p=Q[h],F=m[h];if(Object.hasOwnProperty.call(d,h))continue;let S=!1;eg(p)&&eg(F)?S=!Va(p,F):S=p!==F,S?p!=null?M(h):u.add(h):p!==void 0&&u.has(h)?M(h):i.protectedKeys[h]=!0}i.prevProp=b,i.prevResolvedValues=Q,i.isActive&&(d={...d,...Q}),n&&A.blockInitialAnimation&&(z=!1);const Y=L&&x;z&&(!Y||H)&&o.push(...N.map(h=>{const p={type:D};if(typeof h=="string"&&n&&!Y&&A.manuallyAnimateOnMount&&A.parent){const{parent:F}=A,S=Ct(F,h);if(F.enteringChildren&&S){const{delayChildren:nA}=S.transition||{};p.delay=_B(F.enteringChildren,A,nA)}}return{animation:h,options:p}}))}if(u.size){const c={};if(typeof B.initial!="boolean"){const D=Ct(A,Array.isArray(B.initial)?B.initial[0]:B.initial);D&&D.transition&&(c.transition=D.transition)}u.forEach(D=>{const i=A.getBaseTarget(D),b=A.getValue(D);b&&(b.liveStyle=!0),c[D]=i??null}),o.push({animation:c})}let C=!!o.length;return n&&(B.initial===!1||B.initial===B.animate)&&!A.manuallyAnimateOnMount&&(C=!1),n=!1,C?t(o):Promise.resolve()}function s(g,B){if(f[g].isActive===B)return Promise.resolve();A.variantChildren?.forEach(o=>{o.animationState?.setActive(g,B)}),f[g].isActive=B;const a=r(g);for(const o in f)f[o].protectedKeys={};return a}return{animateChanges:r,setActive:s,setAnimateFunction:w,getState:()=>f,reset:()=>{f=Ag(),n=!0}}}function Ka(A){return A.style.display==="none"||A.offsetParent===null&&window.getComputedStyle(A).position!=="fixed"}var CL=class extends Ce{static#A=this.key="animation";constructor(A){super(A);const t=A.visualElement;t.animationState||=DL(t)}updateAnimationControlsSubscription(){const{animate:A}=this.state.options;Ir(A)&&(this.unmountControls=A.subscribe(this.state.visualElement))}mount(){Ka(this.state.element)?this.state.setActive("exit",!0):this.state.visualElement.animationState?.animateChanges(),this.updateAnimationControlsSubscription()}update(){this.state.visualElement.animationState?.animateChanges();const{animate:A}=this.state.visualElement.getProps(),{animate:t}=this.state.visualElement.prevProps||{};A!==t&&this.updateAnimationControlsSubscription()}unmount(){this.state.visualElement.animationState.reset(),this.unmountControls?.()}};function PL(A,t){return Ta(A)?new Bz(t):new fz(t)}function tg(A){return{point:{x:A.pageX,y:A.pageY}}}var bL=class extends Ce{static#A=this.key="press";constructor(A){super(A)}isActive(){const{whilePress:A,onPress:t,onPressCancel:f,onPressStart:n}=this.state.options;return!!(A||t||f||n)}register(){const A=this.state.element;!A||!this.isActive()||(this.removePress?.(),this.removePress=EX(A,(t,f)=>{const n=this.state.options;return this.state.setActive("whilePress",!0),n.onPressStart&&aA.postRender(()=>n.onPressStart(f,tg(f))),(v,{success:w})=>{this.state.setActive("whilePress",!1);const r=w?"onPress":"onPressCancel",s=this.state.options[r];s&&aA.postRender(()=>s(v,tg(v)))}},{useGlobalTarget:this.state.options.globalPressTarget}))}mount(){this.register()}update(){const A=this.state.visualElement.prevProps;!(A?.whilePress||A?.whileTap||A?.onPress||A?.onPressCancel||A?.onPressStart)&&this.isActive()&&this.register()}unmount(){this.removePress?.(),this.removePress=void 0}};function ka(A){return A.pointerType==="mouse"?typeof A.button!="number"||A.button<=0:A.isPrimary!==!1}function sf(A,t="page"){return{point:{x:A[`${t}X`],y:A[`${t}Y`]}}}function XL(A){return t=>ka(t)&&A(t,sf(t))}var zL=class extends Ce{static#A=this.key="hover";constructor(A){super(A)}isActive(){const{whileHover:A,onHoverStart:t,onHoverEnd:f}=this.state.options;return!!(A||t||f)}register(){const A=this.state.element;!A||!this.isActive()||(this.removeHover?.(),this.removeHover=hX(A,(t,f)=>{const n=this.state.options;return this.state.setActive("whileHover",!0),n.onHoverStart&&aA.postRender(()=>n.onHoverStart(f,sf(f))),v=>{this.state.setActive("whileHover",!1);const w=this.state.options.onHoverEnd;w&&aA.postRender(()=>w(v,sf(v)))}}))}mount(){this.register()}update(){const A=this.state.visualElement.prevProps;!(A?.whileHover||A?.onHoverStart||A?.onHoverEnd)&&this.isActive()&&this.register()}unmount(){this.removeHover?.(),this.removeHover=void 0}},LL=class extends Ce{static#A=this.key="inView";constructor(A){super(A)}isActive(){const{whileInView:A,onViewportEnter:t,onViewportLeave:f}=this.state.options;return!!(A||t||f)}startObserver(){const A=this.state.element;if(!A||!this.isActive())return;this.removeObserver?.();const{once:t,...f}=this.state.options.inViewOptions||{};this.removeObserver=AL(A,(n,v)=>{const w=this.state.options;if(this.state.setActive("whileInView",!0),w.onViewportEnter&&aA.postRender(()=>w.onViewportEnter(v)),!t)return()=>{this.state.setActive("whileInView",!1);const r=this.state.options.onViewportLeave;r&&aA.postRender(()=>r(v))}},f)}mount(){this.startObserver()}update(){const{props:A,prevProps:t}=this.state.visualElement;["amount","margin","root"].some(f=>A.inViewOptions?.[f]!==t?.inViewOptions?.[f])&&this.startObserver()}unmount(){this.removeObserver?.(),this.removeObserver=void 0}};function on(A,t,f,n={passive:!0}){return A.addEventListener(t,f,n),()=>A.removeEventListener(t,f)}var ML=class extends Ce{static#A=this.key="focus";constructor(A){super(A),this.isFocused=!1}onFocus(){let A=!1;try{A=this.state.element.matches(":focus-visible")}catch{A=!0}A&&(this.state.setActive("whileFocus",!0),this.isFocused=!0)}onBlur(){this.isFocused&&(this.state.setActive("whileFocus",!1),this.isFocused=!1)}mount(){const A=this.state.element;this.removeFocus=Xf(on(A,"focus",()=>this.onFocus()),on(A,"blur",()=>this.onBlur()))}unmount(){this.removeFocus?.(),this.removeFocus=void 0}};function Ra(A){if(A)return A.options.allowProjection!==!1?A.projection:Ra(A.parent)}const Ja={borderRadius:{...ve,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ve,borderTopRightRadius:ve,borderBottomLeftRadius:ve,borderBottomRightRadius:ve,boxShadow:za};function kt(A){return typeof A=="object"&&A!==null&&"nodeType"in A}const HL=typeof window>"u";var YL=class extends Ce{static#A=this.key="projection";constructor(A){super(A),La(Ja),HL||this.initProjection()}initProjection(){const A=this.state.options;this.state.visualElement.projection=new $z(this.state.visualElement.latestValues,A["data-framer-portal-id"]?void 0:Ra(this.state.visualElement.parent)),this.projection=this.state.visualElement.projection,this.projection.isPresent=!0,this.setOptions()}setOptions(){const A=this.state.options,{layoutId:t,layout:f,drag:n=!1,dragConstraints:v=!1}=A;this.projection?.setOptions({layout:f,layoutId:t,alwaysMeasureLayout:!!t||!!n||v&&kt(v),visualElement:this.state.visualElement,animationType:typeof A.layout=="string"?A.layout:"both",layoutRoot:A.layoutRoot,layoutScroll:A.layoutScroll,crossfade:A.crossfade,onExitComplete:()=>{!this.projection?.isPresent&&this.state.options.layoutId&&!this.state.isExiting&&queueMicrotask(()=>{this.state.options.presenceContext?.onMotionExitComplete?.(this.state.presenceContainer,this.state)})}})}update(){this.setOptions()}mount(){this.projection?.mount(this.state.element)}};function St(A,t,f,n){return on(A,t,XL(f),n)}var fg=new Set(["auto","scroll"]),Ua=class{constructor(A,t,{transformPagePoint:f,contextWindow:n,dragSnapToOrigin:v=!1,element:w}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.onElementScroll=a=>{this.handleScroll(a.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const a=rv(this.lastMoveEventInfo,this.history),o=this.startEvent!==null,u=eL(a.offset,{x:0,y:0})>=3;if(!o&&!u)return;const{point:d}=a,{timestamp:l}=YA;this.history.push({...d,timestamp:l});const{onStart:C,onMove:c}=this.handlers;o||(C&&C(this.lastMoveEvent,a),this.startEvent=this.lastMoveEvent),c&&c(this.lastMoveEvent,a)},this.handlePointerMove=(a,o)=>{this.lastMoveEvent=a,this.lastMoveEventInfo=vv(o,this.transformPagePoint),aA.update(this.updatePoint,!0)},this.handlePointerUp=(a,o)=>{this.end();const{onEnd:u,onSessionEnd:d,resumeAnimation:l}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&l&&l(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=rv(a.type==="pointercancel"?this.lastMoveEventInfo:vv(o,this.transformPagePoint),this.history);this.startEvent&&u&&u(a,C),d&&d(a,C)},!ka(A))return;this.dragSnapToOrigin=v,this.handlers=t,this.transformPagePoint=f,this.contextWindow=n||window;const r=vv(sf(A),this.transformPagePoint),{point:s}=r,{timestamp:g}=YA;this.history=[{...s,timestamp:g}];const{onSessionStart:B}=t;B&&B(A,rv(r,this.history)),this.removeListeners=Xf(St(this.contextWindow,"pointermove",this.handlePointerMove),St(this.contextWindow,"pointerup",this.handlePointerUp),St(this.contextWindow,"pointercancel",this.handlePointerUp)),w&&this.startScrollTracking(w)}isScrollable(A){const t=window.getComputedStyle(A);return t.overflow==="auto"||t.overflow==="scroll"||t.overflowX==="auto"||t.overflowX==="scroll"||t.overflowY==="auto"||t.overflowY==="scroll"}startScrollTracking(A){let t=A.parentElement;for(;t;){const f=getComputedStyle(t);(fg.has(f.overflowX)||fg.has(f.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(A){const t=this.scrollPositions.get(A);if(!t)return;const f=A===window,n=f?{x:window.scrollX,y:window.scrollY}:{x:A.scrollLeft,y:A.scrollTop},v={x:n.x-t.x,y:n.y-t.y};v.x===0&&v.y===0||(f?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=v.x,this.lastMoveEventInfo.point.y+=v.y):this.history.length>0&&(this.history[0].x-=v.x,this.history[0].y-=v.y),this.scrollPositions.set(A,n),aA.update(this.updatePoint,!0))}updateHandlers(A){this.handlers=A}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners?.(),this.scrollPositions.clear(),he(this.updatePoint)}};function vv(A,t){return t?{point:t(A.point)}:A}function ng(A,t){return{x:A.x-t.x,y:A.y-t.y}}function rv({point:A},t){return{point:A,delta:ng(A,Sa(t)),offset:ng(A,mL(t)),velocity:xL(t,.1)}}function mL(A){return A[0]}function Sa(A){return A[A.length-1]}function xL(A,t){if(A.length<2)return{x:0,y:0};let f=A.length-1,n=null;const v=Sa(A);for(;f>=0&&(n=A[f],!(v.timestamp-n.timestamp>pA(t)));)f--;if(!n)return{x:0,y:0};const w=qA(v.timestamp-n.timestamp);if(w===0)return{x:0,y:0};const r={x:(v.x-n.x)/w,y:(v.y-n.y)/w};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function vg(A){return(t,f)=>{A&&aA.postRender(()=>A(t,f))}}var GL=class extends Ce{constructor(...A){super(...A),this.removePointerDownListener=KA}static#A=this.key="pan";onPointerDown(A){this.session=new Ua(A,this.createPanHandlers(),{transformPagePoint:this.state.visualElement.getTransformPagePoint(),contextWindow:ya(this.state.visualElement)})}createPanHandlers(){return{onSessionStart:vg((A,t)=>{const{onPanSessionStart:f}=this.state.options;f&&f(A,t)}),onStart:vg((A,t)=>{const{onPanStart:f}=this.state.options;f&&f(A,t)}),onMove:(A,t)=>{const{onPan:f}=this.state.options;f&&f(A,t)},onEnd:(A,t)=>{const{onPanEnd:f}=this.state.options;delete this.session,f&&aA.postRender(()=>f(A,t))}}}mount(){this.removePointerDownListener=St(this.state.element,"pointerdown",this.onPointerDown.bind(this))}update(){}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};function $a(A){let t=null;return()=>{const f=()=>{t=null};return t===null?(t=A,f):!1}}var rg=$a("dragHorizontal"),wg=$a("dragVertical");function hL(A){let t=!1;if(A==="y")t=wg();else if(A==="x")t=rg();else{const f=rg(),n=wg();f&&n?t=()=>{f(),n()}:(f&&f(),n&&n())}return t}function NL(A,{min:t,max:f},n){return t!==void 0&&A<t?A=n?cA(t,A,n.min):Math.max(A,t):f!==void 0&&A>f&&(A=n?cA(f,A,n.max):Math.min(A,f)),A}const $v=.35;function QL(A,{top:t,left:f,bottom:n,right:v}){return{x:sg(A.x,f,v),y:sg(A.y,t,n)}}function sg(A,t,f){return{min:t!==void 0?A.min+t:void 0,max:f!==void 0?A.max+f-(A.max-A.min):void 0}}function FL(A=$v){return A===!1?A=0:A===!0&&(A=$v),{x:gg(A,"left","right"),y:gg(A,"top","bottom")}}function gg(A,t,f){return{min:Bg(A,t),max:Bg(A,f)}}function Bg(A,t){return typeof A=="number"?A:A[t]||0}function OL(A,t){const f={};return t.min!==void 0&&(f.min=t.min-A.min),t.max!==void 0&&(f.max=t.max-A.min),f}function EL(A,t){return{x:ag(A.x,t.x),y:ag(A.y,t.y)}}function ag(A,t){let f=t.min-A.min,n=t.max-A.max;return t.max-t.min<A.max-A.min&&([f,n]=[n,f]),{min:f,max:n}}function yL(A,t){let f=.5;const n=NA(A),v=NA(t);return v>n?f=vf(t.min,t.max-n,A.min):n>v&&(f=vf(A.min,A.max-v,t.min)),Be(0,1,f)}const pL=new WeakMap;var jL=class{constructor(A){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=HA(),this.state=A}get visualElement(){return this.state.visualElement}start(A,{snapToCursor:t=!1}={}){const f=g=>{t?this.stopAnimation():this.pauseAnimation(),t&&this.snapToCursor(sf(g,"page").point)},n=(g,B)=>{this.stopAnimation();const{drag:a,dragPropagation:o,onDragStart:u}=this.getProps();a&&!o&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=hL(a),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),WA(d=>{let l=this.getAxisMotionValue(d).get()||0;if(we.test(l)){const{projection:C}=this.visualElement;if(C&&C.layout){const c=C.layout.layoutBox[d];c&&(l=NA(c)*(parseFloat(l)/100))}}this.originPoint[d]=l}),u&&aA.postRender(()=>u(g,B)),Vv(this.visualElement,"transform"),this.state.setActive("whileDrag",!0))},v=(g,B)=>{const{dragPropagation:a,dragDirectionLock:o,onDirectionLock:u,onDrag:d}=this.getProps();if(!a&&!this.openGlobalLock)return;const{offset:l}=B;if(o&&this.currentDirection===null){this.currentDirection=IL(l),this.currentDirection!==null&&u&&u(this.currentDirection);return}this.updateAxis("x",B.point,l),this.updateAxis("y",B.point,l),this.visualElement.render(),d&&d(g,B)},w=(g,B)=>this.stop(g,B),r=()=>WA(g=>this.getAnimationState(g)==="paused"&&this.getAxisMotionValue(g).animation?.play()),{dragSnapToOrigin:s}=this.getProps();this.panSession=new Ua(A,{onSessionStart:f,onStart:n,onMove:v,onSessionEnd:w,resumeAnimation:r},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,contextWindow:ya(this.visualElement),element:this.state.element})}stop(A,t){const f=this.isDragging;if(this.cancel(),!f)return;const{velocity:n}=t;this.startAnimation(n);const{onDragEnd:v}=this.getProps();v&&aA.postRender(()=>v(A,t))}cancel(){this.isDragging=!1;const{projection:A}=this.visualElement;A&&(A.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:t}=this.getProps();!t&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),this.state.setActive("whileDrag",!1)}updateAxis(A,t,f){const{drag:n}=this.getProps();if(!f||!Vf(A,n,this.currentDirection))return;const v=this.getAxisMotionValue(A);let w=this.originPoint[A]+f[A];this.constraints&&this.constraints[A]&&(w=NL(w,this.constraints[A],this.elastic[A])),v.set(w)}resolveConstraints(){const{dragConstraints:A,dragElastic:t}=this.getProps(),f=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;A&&kt(A)?this.constraints||(this.constraints=this.resolveRefConstraints()):A&&f?this.constraints=QL(f.layoutBox,A):this.constraints=!1,this.elastic=FL(t),n!==this.constraints&&f&&this.constraints&&!this.hasMutatedConstraints&&WA(v=>{this.constraints!==!1&&this.getAxisMotionValue(v)&&(this.constraints[v]=OL(f.layoutBox[v],this.constraints[v]))})}resolveRefConstraints(){const{dragConstraints:A,onMeasureDragConstraints:t}=this.getProps();if(!A||!kt(A))return!1;const f=A;Qn(f!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:n}=this.visualElement;if(!n||!n.layout)return!1;const v=SX(f,n.root,this.visualElement.getTransformPagePoint());let w=EL(n.layout.layoutBox,v);if(t){const r=t(RX(w));this.hasMutatedConstraints=!!r,r&&(w=Da(r))}return w}startAnimation(A){const{drag:t,dragMomentum:f,dragElastic:n,dragTransition:v,dragSnapToOrigin:w,onDragTransitionEnd:r}=this.getProps(),s=this.constraints||{},g=WA(B=>{if(!Vf(B,t,this.currentDirection))return;let a=s&&s[B]||{};w&&(a={min:0,max:0});const o=n?200:1e6,u=n?40:1e7,d={type:"inertia",velocity:f?A[B]:0,bounceStiffness:o,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...v,...a};return this.startAxisValueAnimation(B,d)});return Promise.all(g).then(r)}startAxisValueAnimation(A,t){const f=this.getAxisMotionValue(A);return Vv(this.visualElement,A),f.start(pr(A,f,0,t,this.visualElement,!1))}stopAnimation(){this.visualElement.projection?.isPresent&&WA(A=>this.getAxisMotionValue(A).stop())}pauseAnimation(){WA(A=>this.getAxisMotionValue(A).animation?.pause())}getAnimationState(A){return this.getAxisMotionValue(A).animation?.state}getAxisMotionValue(A){const t=`_drag${A.toUpperCase()}`,f=this.visualElement.getProps();return f[t]||this.visualElement.getValue(A,(f.initial?f.initial[A]:void 0)||0)}snapToCursor(A){WA(t=>{const{drag:f}=this.getProps();if(!Vf(t,f,this.currentDirection))return;const{projection:n}=this.visualElement,v=this.getAxisMotionValue(t);if(n&&n.layout){const{min:w,max:r}=n.layout.layoutBox[t];v.set(A[t]-cA(w,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:A,dragConstraints:t}=this.getProps(),{projection:f}=this.visualElement;if(!kt(t)||!f||!this.constraints)return;this.stopAnimation();const n={x:0,y:0};WA(w=>{const r=this.getAxisMotionValue(w);if(r&&this.constraints!==!1){const s=r.get();n[w]=yL({min:s,max:s},this.constraints[w])}});const{transformTemplate:v}=this.visualElement.getProps();this.state.element.style.transform=v?v({},""):"none",f.root&&f.root.updateScroll(),f.updateLayout(),this.resolveConstraints(),WA(w=>{if(!Vf(w,A,null))return;const r=this.getAxisMotionValue(w),{min:s,max:g}=this.constraints[w];r.set(cA(s,g,n[w]))})}addListeners(){if(!this.state.element)return;pL.set(this.visualElement,this);const A=this.state.element,t=St(A,"pointerdown",s=>{const{drag:g,dragListener:B=!0}=this.getProps();g&&B&&this.start(s)}),f=()=>{const{dragConstraints:s}=this.getProps();kt(s)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,v=n.addEventListener("measure",f);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),aA.read(f);const w=on(window,"resize",()=>this.scalePositionWithinConstraints()),r=n.addEventListener("didUpdate",(({delta:s,hasLayoutChanged:g})=>{this.isDragging&&g&&(WA(B=>{const a=this.getAxisMotionValue(B);a&&(this.originPoint[B]+=s[B].translate,a.set(a.get()+s[B].translate))}),this.visualElement.render())}));return()=>{w(),t(),v(),r&&r()}}getProps(){const A=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:f=!1,dragPropagation:n=!1,dragConstraints:v=!1,dragElastic:w=$v,dragMomentum:r=!0}=A;return{...A,drag:t,dragDirectionLock:f,dragPropagation:n,dragConstraints:v,dragElastic:w,dragMomentum:r}}};function Vf(A,t,f){return(t===!0||t===A)&&(f===null||f===A)}function IL(A,t=10){let f=null;return Math.abs(A.y)>t?f="y":Math.abs(A.x)>t&&(f="x"),f}var VL=class extends Ce{static#A=this.key="drag";constructor(A){super(A),this.removeGroupControls=KA,this.removeListeners=KA,this.controls=new jL(A)}mount(){const{dragControls:A}=this.state.options;A&&(this.removeGroupControls=A.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||KA}unmount(){this.removeGroupControls(),this.removeListeners()}},Zt=!1,TL=class extends Ce{static#A=this.key="layout";constructor(A){super(A),this.hasMountSettled=!1,La(Ja),A.getSnapshot=this.getSnapshot.bind(this),A.didUpdate=this.didUpdate.bind(this)}updatePrevLead(A){const t=A.getStack();t?.prevLead&&!t.prevLead.snapshot&&(t.prevLead.willUpdate(),Zt=!0)}didUpdate(){Zt&&(this.state.options.layout||this.state.options.layoutId||this.state.options.drag)&&(Zt=!1,this.state.visualElement.projection?.root?.didUpdate())}mount(){const A=this.state.options,t=this.state.options.layoutGroup;if(A.layout||A.layoutId){const f=this.state.visualElement.projection;if(A.layoutId){const n=!Ka(this.state.element);f.isPresent=n,n?f.promote():f.relegate(),this.updatePrevLead(f)}t?.group?.add(f),Uf.hasEverUpdated=!0}this.didUpdate(),aA.postRender(()=>{this.hasMountSettled=!0})}unmount(){const A=this.state.options.layoutGroup,t=this.state.visualElement.projection;t&&(A?.group&&(this.state.options.layout||this.state.options.layoutId)&&A.group.remove(t),this.state.options.layoutId&&(Zt=!0),this.didUpdate())}getSnapshot(A,t){const f=this.state.visualElement.projection,{drag:n,layoutDependency:v,layout:w,layoutId:r}=A;if(!f||!w&&!r&&!n||!this.hasMountSettled)return;Zt=!0;const s=this.state.options;(n||s.layoutDependency!==v||v===void 0||$s(t)&&f.isPresent!==t)&&f.willUpdate(),$s(t)&&t!==f.isPresent&&(f.isPresent=t,t?(f.promote(),this.updatePrevLead(f)):f.relegate())}};const WL={renderer:PL,features:[CL,bL,zL,LL,ML,YL,GL,VL,TL]},[ZL]=Pf("LazyMotionContext"),[qL]=Pf("AnimatePresenceContext");function KL(A){return A.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}function _a(){return{transform:{},transformOrigin:{},style:{},vars:{}}}function kL(){return{..._a(),attrs:{}}}function RL(A){const t=_a();Vr(t,A);const f={...t.style};for(const n in t.vars)f[n]=t.vars[n];return Object.keys(f).length===0?null:f}function JL(A,t,f){const n=kL();Ha(n,A,Ya(t),void 0,f);const v={};for(const w in n.attrs){const r=Tr.has(w)?w:KL(w);v[r]=n.attrs[w]}return{attrs:v,style:{...n.style,...n.vars}}}function UL(A,t){const f=tL(null),n=nL({}),v=wL(),w=qL({}),r=ZL({features:e.ref({}),strict:!1});if(process.env.NODE_ENV!=="production"&&t&&r.strict){const d="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";A.ignoreStrict?pa(!1,d):Qn(!1,d)}const s=e.useAttrs();function g(){return b2(A,{layoutGroup:n,presenceContext:w,config:v.value})}function B(){return{...s,...g()}}const a=new oL(B(),f);fL(a),t&&a.initVisualElement(t),e.watch(r.features,d=>{d.features?.length&&ja(d.features),d.renderer&&a.initVisualElement(d.renderer),a.updateFeatures()},{immediate:!0,flush:"pre"});function o(){const d=a.type==="svg",l={...s};Object.keys(s).forEach(i=>{GA(s[i])&&(l[i]=s[i].get())});const C=a.visualElement?.latestValues||a.latestValues;let c={...A.style,...d?{}:C};for(const i in c)GA(c[i])&&(c[i]=c[i].get());if(d){const{attrs:i,style:b}=JL({...C,...c},a.options.as,A.style);Object.assign(l,i),c=b}A.drag&&A.dragListener!==!1&&Object.assign(c,{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:A.drag===!0?"none":`pan-${A.drag==="x"?"y":"x"}`});const D=RL(c);return D&&(l.style=D),l}const u=e.getCurrentInstance().proxy;return e.onMounted(()=>{const d=Uv(u.$el);a.mount(d)}),e.onBeforeUnmount(()=>a.beforeUnmount()),e.onUnmounted(()=>{Uv(u.$el)?.isConnected||a.unmount()}),e.onBeforeUpdate(()=>{a.beforeUpdate(),a.updateOptions(B())}),e.onUpdated(()=>{a.update()}),{getProps:g,getAttrs:o,layoutGroup:n,state:a}}const SL={ignoreStrict:{type:Boolean},forwardMotionProps:{type:Boolean,default:!1},asChild:{type:Boolean,default:!1},whileDrag:{type:[String,Array,Object]},whileHover:{type:[String,Array,Object]},whilePress:{type:[String,Array,Object]},whileInView:{type:[String,Array,Object]},whileFocus:{type:[String,Array,Object]},custom:{type:[String,Number,Object,Array]},initial:{type:[String,Array,Object,Boolean],default:void 0},animate:{type:[String,Array,Object],default:void 0},exit:{type:[String,Array,Object]},variants:{type:Object},inherit:{type:Boolean},style:{type:Object},transformTemplate:{type:Function},transition:{type:Object},onAnimationComplete:{type:Function},onUpdate:{type:Function},layout:{type:[Boolean,String],default:!1},layoutId:{type:String,default:void 0},layoutScroll:{type:Boolean,default:!1},layoutRoot:{type:Boolean,default:!1},"data-framer-portal-id":{type:String},crossfade:{type:Boolean,default:!0},layoutDependency:{type:null,default:void 0},onBeforeLayoutMeasure:{type:Function},onLayoutMeasure:{type:Function},onLayoutAnimationStart:{type:Function},onLayoutAnimationComplete:{type:Function},globalPressTarget:{type:Boolean},onPressStart:{type:Function},onPress:{type:Function},onPressCancel:{type:Function},onHoverStart:{type:Function},onHoverEnd:{type:Function},inViewOptions:{type:Object},onViewportEnter:{type:Function},onViewportLeave:{type:Function},drag:{type:[Boolean,String]},dragSnapToOrigin:{type:Boolean},dragDirectionLock:{type:Boolean},dragPropagation:{type:Boolean},dragConstraints:{type:[Boolean,Object]},dragElastic:{type:[Boolean,Number,Object],default:.5},dragMomentum:{type:Boolean,default:!0},dragTransition:{type:Object},dragListener:{type:Boolean,default:!0},dragControls:{type:Object},onDragStart:{type:Function},onDragEnd:{type:Function},onDrag:{type:Function},onDirectionLock:{type:Function},onDragTransitionEnd:{type:Function},onMeasureDragConstraints:{type:Function},onPanSessionStart:{type:Function},onPanStart:{type:Function},onPan:{type:Function},onPanEnd:{type:Function}};var $L=new Map,_L=new Map;function A0(A){if(!Array.isArray(A))return[A];const t=[];for(const f of A)Array.isArray(f)?t.push(...f):t.push(f);return t}var e0=["area","img","input"];function t0(A,t,f){if(typeof A=="string"&&e0.includes(A))return e.h(A,t);if(A==="template"){if(!f.default)return null;const n=A0(f.default()),v=n.findIndex(g=>g.type!==e.Comment);if(v===-1)return n;const w=n[v];delete w.props?.ref;const r=w.props?e.mergeProps(t,w.props):t;t.class&&w.props?.class&&delete w.props.class;const s=e.cloneVNode(w,r);for(const g in r)g.startsWith("on")&&(s.props||={},s.props[g]=r[g]);return n.length===1?s:(n[v]=s,n)}return null}function og(A,t={}){const f=typeof A=="string",n=f?A:A.name||"",v=t.renderer?$L:_L;if(f&&v?.has(A))return v.get(A);const w=e.defineComponent({inheritAttrs:!1,props:{...SL,as:{type:[String,Object],default:A||"div"}},name:n?`motion.${n}`:"Motion",setup(r,{slots:s}){const{getProps:g,getAttrs:B,state:a}=UL(r,t.renderer);function o(){const u=a.element;if((typeof r.as!="object"||r.asChild)&&u){const{style:d}=B();if(d)for(const[l,C]of Object.entries(d))u.style[l]=C}}return()=>{const u=g(),d=B(),l=r.asChild?"template":r.as,C={...r.forwardMotionProps?u:{},...d,onVnodeUpdated:o},c=t0(l,C,s);return c!==null?c:e.h(l,{...C},s)}}});return f&&v?.set(A,w),w}function f0(A){const t=A?.renderer;return ja(A?.features||[]),new Proxy({},{get(f,n){return n==="create"?(v,w)=>og(v,{...w,renderer:t}):og(n,{renderer:t})}})}const n0=f0(WL),De=n0.create("div");function gA(A){return function(){return A}}const ug=Math.abs,xA=Math.atan2,Ie=Math.cos,v0=Math.max,wv=Math.min,fe=Math.sin,it=Math.sqrt,QA=1e-12,gf=Math.PI,un=gf/2,Sf=2*gf;function r0(A){return A>1?0:A<-1?gf:Math.acos(A)}function dg(A){return A>=1?un:A<=-1?-un:Math.asin(A)}const _v=Math.PI,Ar=2*_v,Te=1e-6,w0=Ar-Te;function A9(A){this._+=A[0];for(let t=1,f=A.length;t<f;++t)this._+=arguments[t]+A[t]}function s0(A){let t=Math.floor(A);if(!(t>=0))throw new Error(`invalid digits: ${A}`);if(t>15)return A9;const f=10**t;return function(n){this._+=n[0];for(let v=1,w=n.length;v<w;++v)this._+=Math.round(arguments[v]*f)/f+n[v]}}class g0{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?A9:s0(t)}moveTo(t,f){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+f}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,f){this._append`L${this._x1=+t},${this._y1=+f}`}quadraticCurveTo(t,f,n,v){this._append`Q${+t},${+f},${this._x1=+n},${this._y1=+v}`}bezierCurveTo(t,f,n,v,w,r){this._append`C${+t},${+f},${+n},${+v},${this._x1=+w},${this._y1=+r}`}arcTo(t,f,n,v,w){if(t=+t,f=+f,n=+n,v=+v,w=+w,w<0)throw new Error(`negative radius: ${w}`);let r=this._x1,s=this._y1,g=n-t,B=v-f,a=r-t,o=s-f,u=a*a+o*o;if(this._x1===null)this._append`M${this._x1=t},${this._y1=f}`;else if(u>Te)if(!(Math.abs(o*g-B*a)>Te)||!w)this._append`L${this._x1=t},${this._y1=f}`;else{let d=n-r,l=v-s,C=g*g+B*B,c=d*d+l*l,D=Math.sqrt(C),i=Math.sqrt(u),b=w*Math.tan((_v-Math.acos((C+u-c)/(2*D*i)))/2),X=b/i,P=b/D;Math.abs(X-1)>Te&&this._append`L${t+X*a},${f+X*o}`,this._append`A${w},${w},0,0,${+(o*d>a*l)},${this._x1=t+P*g},${this._y1=f+P*B}`}}arc(t,f,n,v,w,r){if(t=+t,f=+f,n=+n,r=!!r,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(v),g=n*Math.sin(v),B=t+s,a=f+g,o=1^r,u=r?v-w:w-v;this._x1===null?this._append`M${B},${a}`:(Math.abs(this._x1-B)>Te||Math.abs(this._y1-a)>Te)&&this._append`L${B},${a}`,n&&(u<0&&(u=u%Ar+Ar),u>w0?this._append`A${n},${n},0,1,${o},${t-s},${f-g}A${n},${n},0,1,${o},${this._x1=B},${this._y1=a}`:u>Te&&this._append`A${n},${n},0,${+(u>=_v)},${o},${this._x1=t+n*Math.cos(w)},${this._y1=f+n*Math.sin(w)}`)}rect(t,f,n,v){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+f}h${n=+n}v${+v}h${-n}Z`}toString(){return this._}}function Wr(A){let t=3;return A.digits=function(f){if(!arguments.length)return t;if(f==null)t=null;else{const n=Math.floor(f);if(!(n>=0))throw new RangeError(`invalid digits: ${f}`);t=n}return A},()=>new g0(t)}function B0(A){return A.innerRadius}function a0(A){return A.outerRadius}function o0(A){return A.startAngle}function u0(A){return A.endAngle}function d0(A){return A&&A.padAngle}function c0(A,t,f,n,v,w,r,s){var g=f-A,B=n-t,a=r-v,o=s-w,u=o*g-a*B;if(!(u*u<QA))return u=(a*(t-w)-o*(A-v))/u,[A+u*g,t+u*B]}function Tf(A,t,f,n,v,w,r){var s=A-f,g=t-n,B=(r?w:-w)/it(s*s+g*g),a=B*g,o=-B*s,u=A+a,d=t+o,l=f+a,C=n+o,c=(u+l)/2,D=(d+C)/2,i=l-u,b=C-d,X=i*i+b*b,P=v-w,L=u*C-l*d,x=(b<0?-1:1)*it(v0(0,P*P*X-L*L)),z=(L*b-i*x)/X,H=(-L*i-b*x)/X,N=(L*b+i*x)/X,Q=(-L*i+b*x)/X,m=z-c,G=H-D,M=N-c,Y=Q-D;return m*m+G*G>M*M+Y*Y&&(z=N,H=Q),{cx:z,cy:H,x01:-a,y01:-o,x11:z*(v/P-1),y11:H*(v/P-1)}}function er(){var A=B0,t=a0,f=gA(0),n=null,v=o0,w=u0,r=d0,s=null,g=Wr(B);function B(){var a,o,u=+A.apply(this,arguments),d=+t.apply(this,arguments),l=v.apply(this,arguments)-un,C=w.apply(this,arguments)-un,c=ug(C-l),D=C>l;if(s||(s=a=g()),d<u&&(o=d,d=u,u=o),!(d>QA))s.moveTo(0,0);else if(c>Sf-QA)s.moveTo(d*Ie(l),d*fe(l)),s.arc(0,0,d,l,C,!D),u>QA&&(s.moveTo(u*Ie(C),u*fe(C)),s.arc(0,0,u,C,l,D));else{var i=l,b=C,X=l,P=C,L=c,x=c,z=r.apply(this,arguments)/2,H=z>QA&&(n?+n.apply(this,arguments):it(u*u+d*d)),N=wv(ug(d-u)/2,+f.apply(this,arguments)),Q=N,m=N,G,M;if(H>QA){var Y=dg(H/u*fe(z)),h=dg(H/d*fe(z));(L-=Y*2)>QA?(Y*=D?1:-1,X+=Y,P-=Y):(L=0,X=P=(l+C)/2),(x-=h*2)>QA?(h*=D?1:-1,i+=h,b-=h):(x=0,i=b=(l+C)/2)}var p=d*Ie(i),F=d*fe(i),S=u*Ie(P),nA=u*fe(P);if(N>QA){var _=d*Ie(b),j=d*fe(b),V=u*Ie(X),W=u*fe(X),vA;if(c<gf)if(vA=c0(p,F,V,W,_,j,S,nA)){var BA=p-vA[0],sA=F-vA[1],k=_-vA[0],y=j-vA[1],K=1/fe(r0((BA*k+sA*y)/(it(BA*BA+sA*sA)*it(k*k+y*y)))/2),$=it(vA[0]*vA[0]+vA[1]*vA[1]);Q=wv(N,(u-$)/(K-1)),m=wv(N,(d-$)/(K+1))}else Q=m=0}x>QA?m>QA?(G=Tf(V,W,p,F,d,m,D),M=Tf(_,j,S,nA,d,m,D),s.moveTo(G.cx+G.x01,G.cy+G.y01),m<N?s.arc(G.cx,G.cy,m,xA(G.y01,G.x01),xA(M.y01,M.x01),!D):(s.arc(G.cx,G.cy,m,xA(G.y01,G.x01),xA(G.y11,G.x11),!D),s.arc(0,0,d,xA(G.cy+G.y11,G.cx+G.x11),xA(M.cy+M.y11,M.cx+M.x11),!D),s.arc(M.cx,M.cy,m,xA(M.y11,M.x11),xA(M.y01,M.x01),!D))):(s.moveTo(p,F),s.arc(0,0,d,i,b,!D)):s.moveTo(p,F),!(u>QA)||!(L>QA)?s.lineTo(S,nA):Q>QA?(G=Tf(S,nA,_,j,u,-Q,D),M=Tf(p,F,V,W,u,-Q,D),s.lineTo(G.cx+G.x01,G.cy+G.y01),Q<N?s.arc(G.cx,G.cy,Q,xA(G.y01,G.x01),xA(M.y01,M.x01),!D):(s.arc(G.cx,G.cy,Q,xA(G.y01,G.x01),xA(G.y11,G.x11),!D),s.arc(0,0,u,xA(G.cy+G.y11,G.cx+G.x11),xA(M.cy+M.y11,M.cx+M.x11),D),s.arc(M.cx,M.cy,Q,xA(M.y11,M.x11),xA(M.y01,M.x01),!D))):s.arc(0,0,u,P,X,D)}if(s.closePath(),a)return s=null,a+""||null}return B.centroid=function(){var a=(+A.apply(this,arguments)+ +t.apply(this,arguments))/2,o=(+v.apply(this,arguments)+ +w.apply(this,arguments))/2-gf/2;return[Ie(o)*a,fe(o)*a]},B.innerRadius=function(a){return arguments.length?(A=typeof a=="function"?a:gA(+a),B):A},B.outerRadius=function(a){return arguments.length?(t=typeof a=="function"?a:gA(+a),B):t},B.cornerRadius=function(a){return arguments.length?(f=typeof a=="function"?a:gA(+a),B):f},B.padRadius=function(a){return arguments.length?(n=a==null?null:typeof a=="function"?a:gA(+a),B):n},B.startAngle=function(a){return arguments.length?(v=typeof a=="function"?a:gA(+a),B):v},B.endAngle=function(a){return arguments.length?(w=typeof a=="function"?a:gA(+a),B):w},B.padAngle=function(a){return arguments.length?(r=typeof a=="function"?a:gA(+a),B):r},B.context=function(a){return arguments.length?(s=a??null,B):s},B}function Zr(A){return typeof A=="object"&&"length"in A?A:Array.from(A)}function e9(A){this._context=A}e9.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(A,t){switch(A=+A,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(A,t):this._context.moveTo(A,t);break;case 1:this._point=2;default:this._context.lineTo(A,t);break}}};function t9(A){return new e9(A)}function f9(A){return A[0]}function n9(A){return A[1]}function Fn(A,t){var f=gA(!0),n=null,v=t9,w=null,r=Wr(s);A=typeof A=="function"?A:A===void 0?f9:gA(A),t=typeof t=="function"?t:t===void 0?n9:gA(t);function s(g){var B,a=(g=Zr(g)).length,o,u=!1,d;for(n==null&&(w=v(d=r())),B=0;B<=a;++B)!(B<a&&f(o=g[B],B,g))===u&&((u=!u)?w.lineStart():w.lineEnd()),u&&w.point(+A(o,B,g),+t(o,B,g));if(d)return w=null,d+""||null}return s.x=function(g){return arguments.length?(A=typeof g=="function"?g:gA(+g),s):A},s.y=function(g){return arguments.length?(t=typeof g=="function"?g:gA(+g),s):t},s.defined=function(g){return arguments.length?(f=typeof g=="function"?g:gA(!!g),s):f},s.curve=function(g){return arguments.length?(v=g,n!=null&&(w=v(n)),s):v},s.context=function(g){return arguments.length?(g==null?n=w=null:w=v(n=g),s):n},s}function i0(A,t,f){var n=null,v=gA(!0),w=null,r=t9,s=null,g=Wr(B);A=typeof A=="function"?A:A===void 0?f9:gA(+A),t=typeof t=="function"?t:gA(t===void 0?0:+t),f=typeof f=="function"?f:f===void 0?n9:gA(+f);function B(o){var u,d,l,C=(o=Zr(o)).length,c,D=!1,i,b=new Array(C),X=new Array(C);for(w==null&&(s=r(i=g())),u=0;u<=C;++u){if(!(u<C&&v(c=o[u],u,o))===D)if(D=!D)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),l=u-1;l>=d;--l)s.point(b[l],X[l]);s.lineEnd(),s.areaEnd()}D&&(b[u]=+A(c,u,o),X[u]=+t(c,u,o),s.point(n?+n(c,u,o):b[u],f?+f(c,u,o):X[u]))}if(i)return s=null,i+""||null}function a(){return Fn().defined(v).curve(r).context(w)}return B.x=function(o){return arguments.length?(A=typeof o=="function"?o:gA(+o),n=null,B):A},B.x0=function(o){return arguments.length?(A=typeof o=="function"?o:gA(+o),B):A},B.x1=function(o){return arguments.length?(n=o==null?null:typeof o=="function"?o:gA(+o),B):n},B.y=function(o){return arguments.length?(t=typeof o=="function"?o:gA(+o),f=null,B):t},B.y0=function(o){return arguments.length?(t=typeof o=="function"?o:gA(+o),B):t},B.y1=function(o){return arguments.length?(f=o==null?null:typeof o=="function"?o:gA(+o),B):f},B.lineX0=B.lineY0=function(){return a().x(A).y(t)},B.lineY1=function(){return a().x(A).y(f)},B.lineX1=function(){return a().x(n).y(t)},B.defined=function(o){return arguments.length?(v=typeof o=="function"?o:gA(!!o),B):v},B.curve=function(o){return arguments.length?(r=o,w!=null&&(s=r(w)),B):r},B.context=function(o){return arguments.length?(o==null?w=s=null:s=r(w=o),B):w},B}function l0(A,t){return t<A?-1:t>A?1:t>=A?0:NaN}function D0(A){return A}function C0(){var A=D0,t=l0,f=null,n=gA(0),v=gA(Sf),w=gA(0);function r(s){var g,B=(s=Zr(s)).length,a,o,u=0,d=new Array(B),l=new Array(B),C=+n.apply(this,arguments),c=Math.min(Sf,Math.max(-Sf,v.apply(this,arguments)-C)),D,i=Math.min(Math.abs(c)/B,w.apply(this,arguments)),b=i*(c<0?-1:1),X;for(g=0;g<B;++g)(X=l[d[g]=g]=+A(s[g],g,s))>0&&(u+=X);for(t!=null?d.sort(function(P,L){return t(l[P],l[L])}):f!=null&&d.sort(function(P,L){return f(s[P],s[L])}),g=0,o=u?(c-B*b)/u:0;g<B;++g,C=D)a=d[g],X=l[a],D=C+(X>0?X*o:0)+b,l[a]={data:s[a],index:g,value:X,startAngle:C,endAngle:D,padAngle:i};return l}return r.value=function(s){return arguments.length?(A=typeof s=="function"?s:gA(+s),r):A},r.sortValues=function(s){return arguments.length?(t=s,f=null,r):t},r.sort=function(s){return arguments.length?(f=s,t=null,r):f},r.startAngle=function(s){return arguments.length?(n=typeof s=="function"?s:gA(+s),r):n},r.endAngle=function(s){return arguments.length?(v=typeof s=="function"?s:gA(+s),r):v},r.padAngle=function(s){return arguments.length?(w=typeof s=="function"?s:gA(+s),r):w},r}function cg(A){return A<0?-1:1}function ig(A,t,f){var n=A._x1-A._x0,v=t-A._x1,w=(A._y1-A._y0)/(n||v<0&&-0),r=(f-A._y1)/(v||n<0&&-0),s=(w*v+r*n)/(n+v);return(cg(w)+cg(r))*Math.min(Math.abs(w),Math.abs(r),.5*Math.abs(s))||0}function lg(A,t){var f=A._x1-A._x0;return f?(3*(A._y1-A._y0)/f-t)/2:t}function sv(A,t,f){var n=A._x0,v=A._y0,w=A._x1,r=A._y1,s=(w-n)/3;A._context.bezierCurveTo(n+s,v+s*t,w-s,r-s*f,w,r)}function dn(A){this._context=A}dn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:sv(this,this._t0,lg(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(A,t){var f=NaN;if(A=+A,t=+t,!(A===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(A,t):this._context.moveTo(A,t);break;case 1:this._point=2;break;case 2:this._point=3,sv(this,lg(this,f=ig(this,A,t)),f);break;default:sv(this,this._t0,f=ig(this,A,t));break}this._x0=this._x1,this._x1=A,this._y0=this._y1,this._y1=t,this._t0=f}}};Object.create(dn.prototype).point=function(A,t){dn.prototype.point.call(this,t,A)};function cn(A){return new dn(A)}const Dg=["#6888fb","#c447be","#f7a1f4","#b4d94a","#f6dd85"],Cg="#707070",Pg="#f2f2f2",bg="#e2e2e2";function tt(){const A=e.ref([...Dg]),t=e.ref(Cg),f=e.ref(Pg),n=e.ref({border:bg,radius:8,shadow:"0 8px 24px rgba(0,0,0,0.06)",background:"#ffffff"});return e.onMounted(()=>{const v=getComputedStyle(document.documentElement),w=(r,s)=>v.getPropertyValue(r).trim()||s;A.value=[1,2,3,4,5].map(r=>w(`--chart-${r}`,Dg[r-1])),t.value=w("--color-muted",Cg),f.value=w("--color-surface",Pg),n.value={...n.value,border:w("--color-border",bg),background:w("--card","#ffffff")}}),{colors:A,axis:t,grid:f,tooltip:n}}function $f(A,t){return A==null||t==null?NaN:A<t?-1:A>t?1:A>=t?0:NaN}function P0(A,t){return A==null||t==null?NaN:t<A?-1:t>A?1:t>=A?0:NaN}function v9(A){let t,f,n;A.length!==2?(t=$f,f=(s,g)=>$f(A(s),g),n=(s,g)=>A(s)-g):(t=A===$f||A===P0?A:b0,f=A,n=A);function v(s,g,B=0,a=s.length){if(B<a){if(t(g,g)!==0)return a;do{const o=B+a>>>1;f(s[o],g)<0?B=o+1:a=o}while(B<a)}return B}function w(s,g,B=0,a=s.length){if(B<a){if(t(g,g)!==0)return a;do{const o=B+a>>>1;f(s[o],g)<=0?B=o+1:a=o}while(B<a)}return B}function r(s,g,B=0,a=s.length){const o=v(s,g,B,a-1);return o>B&&n(s[o-1],g)>-n(s[o],g)?o-1:o}return{left:v,center:r,right:w}}function b0(){return 0}function X0(A){return A===null?NaN:+A}const z0=v9($f),L0=z0.right;v9(X0).center;class Xg extends Map{constructor(t,f=Y0){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:f}}),t!=null)for(const[n,v]of t)this.set(n,v)}get(t){return super.get(zg(this,t))}has(t){return super.has(zg(this,t))}set(t,f){return super.set(M0(this,t),f)}delete(t){return super.delete(H0(this,t))}}function zg({_intern:A,_key:t},f){const n=t(f);return A.has(n)?A.get(n):f}function M0({_intern:A,_key:t},f){const n=t(f);return A.has(n)?A.get(n):(A.set(n,f),f)}function H0({_intern:A,_key:t},f){const n=t(f);return A.has(n)&&(f=A.get(n),A.delete(n)),f}function Y0(A){return A!==null&&typeof A=="object"?A.valueOf():A}const m0=Math.sqrt(50),x0=Math.sqrt(10),G0=Math.sqrt(2);function ln(A,t,f){const n=(t-A)/Math.max(0,f),v=Math.floor(Math.log10(n)),w=n/Math.pow(10,v),r=w>=m0?10:w>=x0?5:w>=G0?2:1;let s,g,B;return v<0?(B=Math.pow(10,-v)/r,s=Math.round(A*B),g=Math.round(t*B),s/B<A&&++s,g/B>t&&--g,B=-B):(B=Math.pow(10,v)*r,s=Math.round(A/B),g=Math.round(t/B),s*B<A&&++s,g*B>t&&--g),g<s&&.5<=f&&f<2?ln(A,t,f*2):[s,g,B]}function h0(A,t,f){if(t=+t,A=+A,f=+f,!(f>0))return[];if(A===t)return[A];const n=t<A,[v,w,r]=n?ln(t,A,f):ln(A,t,f);if(!(w>=v))return[];const s=w-v+1,g=new Array(s);if(n)if(r<0)for(let B=0;B<s;++B)g[B]=(w-B)/-r;else for(let B=0;B<s;++B)g[B]=(w-B)*r;else if(r<0)for(let B=0;B<s;++B)g[B]=(v+B)/-r;else for(let B=0;B<s;++B)g[B]=(v+B)*r;return g}function tr(A,t,f){return t=+t,A=+A,f=+f,ln(A,t,f)[2]}function N0(A,t,f){t=+t,A=+A,f=+f;const n=t<A,v=n?tr(t,A,f):tr(A,t,f);return(n?-1:1)*(v<0?1/-v:v)}function Q0(A,t,f){A=+A,t=+t,f=(v=arguments.length)<2?(t=A,A=0,1):v<3?1:+f;for(var n=-1,v=Math.max(0,Math.ceil((t-A)/f))|0,w=new Array(v);++n<v;)w[n]=A+n*f;return w}function qr(A,t){switch(arguments.length){case 0:break;case 1:this.range(A);break;default:this.range(t).domain(A);break}return this}const Lg=Symbol("implicit");function r9(){var A=new Xg,t=[],f=[],n=Lg;function v(w){let r=A.get(w);if(r===void 0){if(n!==Lg)return n;A.set(w,r=t.push(w)-1)}return f[r%f.length]}return v.domain=function(w){if(!arguments.length)return t.slice();t=[],A=new Xg;for(const r of w)A.has(r)||A.set(r,t.push(r)-1);return v},v.range=function(w){return arguments.length?(f=Array.from(w),v):f.slice()},v.unknown=function(w){return arguments.length?(n=w,v):n},v.copy=function(){return r9(t,f).unknown(n)},qr.apply(v,arguments),v}function Mf(){var A=r9().unknown(void 0),t=A.domain,f=A.range,n=0,v=1,w,r,s=!1,g=0,B=0,a=.5;delete A.unknown;function o(){var u=t().length,d=v<n,l=d?v:n,C=d?n:v;w=(C-l)/Math.max(1,u-g+B*2),s&&(w=Math.floor(w)),l+=(C-l-w*(u-g))*a,r=w*(1-g),s&&(l=Math.round(l),r=Math.round(r));var c=Q0(u).map(function(D){return l+w*D});return f(d?c.reverse():c)}return A.domain=function(u){return arguments.length?(t(u),o()):t()},A.range=function(u){return arguments.length?([n,v]=u,n=+n,v=+v,o()):[n,v]},A.rangeRound=function(u){return[n,v]=u,n=+n,v=+v,s=!0,o()},A.bandwidth=function(){return r},A.step=function(){return w},A.round=function(u){return arguments.length?(s=!!u,o()):s},A.padding=function(u){return arguments.length?(g=Math.min(1,B=+u),o()):g},A.paddingInner=function(u){return arguments.length?(g=Math.min(1,u),o()):g},A.paddingOuter=function(u){return arguments.length?(B=+u,o()):B},A.align=function(u){return arguments.length?(a=Math.max(0,Math.min(1,u)),o()):a},A.copy=function(){return Mf(t(),[n,v]).round(s).paddingInner(g).paddingOuter(B).align(a)},qr.apply(o(),arguments)}function w9(A){var t=A.copy;return A.padding=A.paddingOuter,delete A.paddingInner,delete A.paddingOuter,A.copy=function(){return w9(t())},A}function F0(){return w9(Mf.apply(null,arguments).paddingInner(1))}function Kr(A,t,f){A.prototype=t.prototype=f,f.constructor=A}function s9(A,t){var f=Object.create(A.prototype);for(var n in t)f[n]=t[n];return f}function Hf(){}var Bf=.7,Dn=1/Bf,Pt="\\s*([+-]?\\d+)\\s*",af="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",se="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",O0=/^#([0-9a-f]{3,8})$/,E0=new RegExp(`^rgb\\(${Pt},${Pt},${Pt}\\)$`),y0=new RegExp(`^rgb\\(${se},${se},${se}\\)$`),p0=new RegExp(`^rgba\\(${Pt},${Pt},${Pt},${af}\\)$`),j0=new RegExp(`^rgba\\(${se},${se},${se},${af}\\)$`),I0=new RegExp(`^hsl\\(${af},${se},${se}\\)$`),V0=new RegExp(`^hsla\\(${af},${se},${se},${af}\\)$`),Mg={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};Kr(Hf,of,{copy(A){return Object.assign(new this.constructor,this,A)},displayable(){return this.rgb().displayable()},hex:Hg,formatHex:Hg,formatHex8:T0,formatHsl:W0,formatRgb:Yg,toString:Yg});function Hg(){return this.rgb().formatHex()}function T0(){return this.rgb().formatHex8()}function W0(){return g9(this).formatHsl()}function Yg(){return this.rgb().formatRgb()}function of(A){var t,f;return A=(A+"").trim().toLowerCase(),(t=O0.exec(A))?(f=t[1].length,t=parseInt(t[1],16),f===6?mg(t):f===3?new FA(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):f===8?Wf(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):f===4?Wf(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=E0.exec(A))?new FA(t[1],t[2],t[3],1):(t=y0.exec(A))?new FA(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=p0.exec(A))?Wf(t[1],t[2],t[3],t[4]):(t=j0.exec(A))?Wf(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=I0.exec(A))?hg(t[1],t[2]/100,t[3]/100,1):(t=V0.exec(A))?hg(t[1],t[2]/100,t[3]/100,t[4]):Mg.hasOwnProperty(A)?mg(Mg[A]):A==="transparent"?new FA(NaN,NaN,NaN,0):null}function mg(A){return new FA(A>>16&255,A>>8&255,A&255,1)}function Wf(A,t,f,n){return n<=0&&(A=t=f=NaN),new FA(A,t,f,n)}function Z0(A){return A instanceof Hf||(A=of(A)),A?(A=A.rgb(),new FA(A.r,A.g,A.b,A.opacity)):new FA}function fr(A,t,f,n){return arguments.length===1?Z0(A):new FA(A,t,f,n??1)}function FA(A,t,f,n){this.r=+A,this.g=+t,this.b=+f,this.opacity=+n}Kr(FA,fr,s9(Hf,{brighter(A){return A=A==null?Dn:Math.pow(Dn,A),new FA(this.r*A,this.g*A,this.b*A,this.opacity)},darker(A){return A=A==null?Bf:Math.pow(Bf,A),new FA(this.r*A,this.g*A,this.b*A,this.opacity)},rgb(){return this},clamp(){return new FA(Se(this.r),Se(this.g),Se(this.b),Cn(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:xg,formatHex:xg,formatHex8:q0,formatRgb:Gg,toString:Gg}));function xg(){return`#${Re(this.r)}${Re(this.g)}${Re(this.b)}`}function q0(){return`#${Re(this.r)}${Re(this.g)}${Re(this.b)}${Re((isNaN(this.opacity)?1:this.opacity)*255)}`}function Gg(){const A=Cn(this.opacity);return`${A===1?"rgb(":"rgba("}${Se(this.r)}, ${Se(this.g)}, ${Se(this.b)}${A===1?")":`, ${A})`}`}function Cn(A){return isNaN(A)?1:Math.max(0,Math.min(1,A))}function Se(A){return Math.max(0,Math.min(255,Math.round(A)||0))}function Re(A){return A=Se(A),(A<16?"0":"")+A.toString(16)}function hg(A,t,f,n){return n<=0?A=t=f=NaN:f<=0||f>=1?A=t=NaN:t<=0&&(A=NaN),new SA(A,t,f,n)}function g9(A){if(A instanceof SA)return new SA(A.h,A.s,A.l,A.opacity);if(A instanceof Hf||(A=of(A)),!A)return new SA;if(A instanceof SA)return A;A=A.rgb();var t=A.r/255,f=A.g/255,n=A.b/255,v=Math.min(t,f,n),w=Math.max(t,f,n),r=NaN,s=w-v,g=(w+v)/2;return s?(t===w?r=(f-n)/s+(f<n)*6:f===w?r=(n-t)/s+2:r=(t-f)/s+4,s/=g<.5?w+v:2-w-v,r*=60):s=g>0&&g<1?0:r,new SA(r,s,g,A.opacity)}function K0(A,t,f,n){return arguments.length===1?g9(A):new SA(A,t,f,n??1)}function SA(A,t,f,n){this.h=+A,this.s=+t,this.l=+f,this.opacity=+n}Kr(SA,K0,s9(Hf,{brighter(A){return A=A==null?Dn:Math.pow(Dn,A),new SA(this.h,this.s,this.l*A,this.opacity)},darker(A){return A=A==null?Bf:Math.pow(Bf,A),new SA(this.h,this.s,this.l*A,this.opacity)},rgb(){var A=this.h%360+(this.h<0)*360,t=isNaN(A)||isNaN(this.s)?0:this.s,f=this.l,n=f+(f<.5?f:1-f)*t,v=2*f-n;return new FA(gv(A>=240?A-240:A+120,v,n),gv(A,v,n),gv(A<120?A+240:A-120,v,n),this.opacity)},clamp(){return new SA(Ng(this.h),Zf(this.s),Zf(this.l),Cn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const A=Cn(this.opacity);return`${A===1?"hsl(":"hsla("}${Ng(this.h)}, ${Zf(this.s)*100}%, ${Zf(this.l)*100}%${A===1?")":`, ${A})`}`}}));function Ng(A){return A=(A||0)%360,A<0?A+360:A}function Zf(A){return Math.max(0,Math.min(1,A||0))}function gv(A,t,f){return(A<60?t+(f-t)*A/60:A<180?f:A<240?t+(f-t)*(240-A)/60:t)*255}const kr=A=>()=>A;function k0(A,t){return function(f){return A+f*t}}function R0(A,t,f){return A=Math.pow(A,f),t=Math.pow(t,f)-A,f=1/f,function(n){return Math.pow(A+n*t,f)}}function J0(A){return(A=+A)==1?B9:function(t,f){return f-t?R0(t,f,A):kr(isNaN(t)?f:t)}}function B9(A,t){var f=t-A;return f?k0(A,f):kr(isNaN(A)?t:A)}const Qg=(function A(t){var f=J0(t);function n(v,w){var r=f((v=fr(v)).r,(w=fr(w)).r),s=f(v.g,w.g),g=f(v.b,w.b),B=B9(v.opacity,w.opacity);return function(a){return v.r=r(a),v.g=s(a),v.b=g(a),v.opacity=B(a),v+""}}return n.gamma=A,n})(1);function U0(A,t){t||(t=[]);var f=A?Math.min(t.length,A.length):0,n=t.slice(),v;return function(w){for(v=0;v<f;++v)n[v]=A[v]*(1-w)+t[v]*w;return n}}function S0(A){return ArrayBuffer.isView(A)&&!(A instanceof DataView)}function $0(A,t){var f=t?t.length:0,n=A?Math.min(f,A.length):0,v=new Array(n),w=new Array(f),r;for(r=0;r<n;++r)v[r]=Rr(A[r],t[r]);for(;r<f;++r)w[r]=t[r];return function(s){for(r=0;r<n;++r)w[r]=v[r](s);return w}}function _0(A,t){var f=new Date;return A=+A,t=+t,function(n){return f.setTime(A*(1-n)+t*n),f}}function Pn(A,t){return A=+A,t=+t,function(f){return A*(1-f)+t*f}}function A6(A,t){var f={},n={},v;(A===null||typeof A!="object")&&(A={}),(t===null||typeof t!="object")&&(t={});for(v in t)v in A?f[v]=Rr(A[v],t[v]):n[v]=t[v];return function(w){for(v in f)n[v]=f[v](w);return n}}var nr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Bv=new RegExp(nr.source,"g");function e6(A){return function(){return A}}function t6(A){return function(t){return A(t)+""}}function f6(A,t){var f=nr.lastIndex=Bv.lastIndex=0,n,v,w,r=-1,s=[],g=[];for(A=A+"",t=t+"";(n=nr.exec(A))&&(v=Bv.exec(t));)(w=v.index)>f&&(w=t.slice(f,w),s[r]?s[r]+=w:s[++r]=w),(n=n[0])===(v=v[0])?s[r]?s[r]+=v:s[++r]=v:(s[++r]=null,g.push({i:r,x:Pn(n,v)})),f=Bv.lastIndex;return f<t.length&&(w=t.slice(f),s[r]?s[r]+=w:s[++r]=w),s.length<2?g[0]?t6(g[0].x):e6(t):(t=g.length,function(B){for(var a=0,o;a<t;++a)s[(o=g[a]).i]=o.x(B);return s.join("")})}function Rr(A,t){var f=typeof t,n;return t==null||f==="boolean"?kr(t):(f==="number"?Pn:f==="string"?(n=of(t))?(t=n,Qg):f6:t instanceof of?Qg:t instanceof Date?_0:S0(t)?U0:Array.isArray(t)?$0:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?A6:Pn)(A,t)}function n6(A,t){return A=+A,t=+t,function(f){return Math.round(A*(1-f)+t*f)}}function v6(A){return function(){return A}}function r6(A){return+A}var Fg=[0,1];function lt(A){return A}function vr(A,t){return(t-=A=+A)?function(f){return(f-A)/t}:v6(isNaN(t)?NaN:.5)}function w6(A,t){var f;return A>t&&(f=A,A=t,t=f),function(n){return Math.max(A,Math.min(t,n))}}function s6(A,t,f){var n=A[0],v=A[1],w=t[0],r=t[1];return v<n?(n=vr(v,n),w=f(r,w)):(n=vr(n,v),w=f(w,r)),function(s){return w(n(s))}}function g6(A,t,f){var n=Math.min(A.length,t.length)-1,v=new Array(n),w=new Array(n),r=-1;for(A[n]<A[0]&&(A=A.slice().reverse(),t=t.slice().reverse());++r<n;)v[r]=vr(A[r],A[r+1]),w[r]=f(t[r],t[r+1]);return function(s){var g=L0(A,s,1,n)-1;return w[g](v[g](s))}}function B6(A,t){return t.domain(A.domain()).range(A.range()).interpolate(A.interpolate()).clamp(A.clamp()).unknown(A.unknown())}function a6(){var A=Fg,t=Fg,f=Rr,n,v,w,r=lt,s,g,B;function a(){var u=Math.min(A.length,t.length);return r!==lt&&(r=w6(A[0],A[u-1])),s=u>2?g6:s6,g=B=null,o}function o(u){return u==null||isNaN(u=+u)?w:(g||(g=s(A.map(n),t,f)))(n(r(u)))}return o.invert=function(u){return r(v((B||(B=s(t,A.map(n),Pn)))(u)))},o.domain=function(u){return arguments.length?(A=Array.from(u,r6),a()):A.slice()},o.range=function(u){return arguments.length?(t=Array.from(u),a()):t.slice()},o.rangeRound=function(u){return t=Array.from(u),f=n6,a()},o.clamp=function(u){return arguments.length?(r=u?!0:lt,a()):r!==lt},o.interpolate=function(u){return arguments.length?(f=u,a()):f},o.unknown=function(u){return arguments.length?(w=u,o):w},function(u,d){return n=u,v=d,a()}}function o6(){return a6()(lt,lt)}function u6(A){return Math.abs(A=Math.round(A))>=1e21?A.toLocaleString("en").replace(/,/g,""):A.toString(10)}function bn(A,t){if(!isFinite(A)||A===0)return null;var f=(A=t?A.toExponential(t-1):A.toExponential()).indexOf("e"),n=A.slice(0,f);return[n.length>1?n[0]+n.slice(2):n,+A.slice(f+1)]}function Ht(A){return A=bn(Math.abs(A)),A?A[1]:NaN}function d6(A,t){return function(f,n){for(var v=f.length,w=[],r=0,s=A[0],g=0;v>0&&s>0&&(g+s+1>n&&(s=Math.max(1,n-g)),w.push(f.substring(v-=s,v+s)),!((g+=s+1)>n));)s=A[r=(r+1)%A.length];return w.reverse().join(t)}}function c6(A){return function(t){return t.replace(/[0-9]/g,function(f){return A[+f]})}}var i6=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Xn(A){if(!(t=i6.exec(A)))throw new Error("invalid format: "+A);var t;return new Jr({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Xn.prototype=Jr.prototype;function Jr(A){this.fill=A.fill===void 0?" ":A.fill+"",this.align=A.align===void 0?">":A.align+"",this.sign=A.sign===void 0?"-":A.sign+"",this.symbol=A.symbol===void 0?"":A.symbol+"",this.zero=!!A.zero,this.width=A.width===void 0?void 0:+A.width,this.comma=!!A.comma,this.precision=A.precision===void 0?void 0:+A.precision,this.trim=!!A.trim,this.type=A.type===void 0?"":A.type+""}Jr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function l6(A){A:for(var t=A.length,f=1,n=-1,v;f<t;++f)switch(A[f]){case".":n=v=f;break;case"0":n===0&&(n=f),v=f;break;default:if(!+A[f])break A;n>0&&(n=0);break}return n>0?A.slice(0,n)+A.slice(v+1):A}var zn;function D6(A,t){var f=bn(A,t);if(!f)return zn=void 0,A.toPrecision(t);var n=f[0],v=f[1],w=v-(zn=Math.max(-8,Math.min(8,Math.floor(v/3)))*3)+1,r=n.length;return w===r?n:w>r?n+new Array(w-r+1).join("0"):w>0?n.slice(0,w)+"."+n.slice(w):"0."+new Array(1-w).join("0")+bn(A,Math.max(0,t+w-1))[0]}function Og(A,t){var f=bn(A,t);if(!f)return A+"";var n=f[0],v=f[1];return v<0?"0."+new Array(-v).join("0")+n:n.length>v+1?n.slice(0,v+1)+"."+n.slice(v+1):n+new Array(v-n.length+2).join("0")}const Eg={"%":(A,t)=>(A*100).toFixed(t),b:A=>Math.round(A).toString(2),c:A=>A+"",d:u6,e:(A,t)=>A.toExponential(t),f:(A,t)=>A.toFixed(t),g:(A,t)=>A.toPrecision(t),o:A=>Math.round(A).toString(8),p:(A,t)=>Og(A*100,t),r:Og,s:D6,X:A=>Math.round(A).toString(16).toUpperCase(),x:A=>Math.round(A).toString(16)};function yg(A){return A}var pg=Array.prototype.map,jg=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function C6(A){var t=A.grouping===void 0||A.thousands===void 0?yg:d6(pg.call(A.grouping,Number),A.thousands+""),f=A.currency===void 0?"":A.currency[0]+"",n=A.currency===void 0?"":A.currency[1]+"",v=A.decimal===void 0?".":A.decimal+"",w=A.numerals===void 0?yg:c6(pg.call(A.numerals,String)),r=A.percent===void 0?"%":A.percent+"",s=A.minus===void 0?"−":A.minus+"",g=A.nan===void 0?"NaN":A.nan+"";function B(o,u){o=Xn(o);var d=o.fill,l=o.align,C=o.sign,c=o.symbol,D=o.zero,i=o.width,b=o.comma,X=o.precision,P=o.trim,L=o.type;L==="n"?(b=!0,L="g"):Eg[L]||(X===void 0&&(X=12),P=!0,L="g"),(D||d==="0"&&l==="=")&&(D=!0,d="0",l="=");var x=(u&&u.prefix!==void 0?u.prefix:"")+(c==="$"?f:c==="#"&&/[boxX]/.test(L)?"0"+L.toLowerCase():""),z=(c==="$"?n:/[%p]/.test(L)?r:"")+(u&&u.suffix!==void 0?u.suffix:""),H=Eg[L],N=/[defgprs%]/.test(L);X=X===void 0?6:/[gprs]/.test(L)?Math.max(1,Math.min(21,X)):Math.max(0,Math.min(20,X));function Q(m){var G=x,M=z,Y,h,p;if(L==="c")M=H(m)+M,m="";else{m=+m;var F=m<0||1/m<0;if(m=isNaN(m)?g:H(Math.abs(m),X),P&&(m=l6(m)),F&&+m==0&&C!=="+"&&(F=!1),G=(F?C==="("?C:s:C==="-"||C==="("?"":C)+G,M=(L==="s"&&!isNaN(m)&&zn!==void 0?jg[8+zn/3]:"")+M+(F&&C==="("?")":""),N){for(Y=-1,h=m.length;++Y<h;)if(p=m.charCodeAt(Y),48>p||p>57){M=(p===46?v+m.slice(Y+1):m.slice(Y))+M,m=m.slice(0,Y);break}}}b&&!D&&(m=t(m,1/0));var S=G.length+m.length+M.length,nA=S<i?new Array(i-S+1).join(d):"";switch(b&&D&&(m=t(nA+m,nA.length?i-M.length:1/0),nA=""),l){case"<":m=G+m+M+nA;break;case"=":m=G+nA+m+M;break;case"^":m=nA.slice(0,S=nA.length>>1)+G+m+M+nA.slice(S);break;default:m=nA+G+m+M;break}return w(m)}return Q.toString=function(){return o+""},Q}function a(o,u){var d=Math.max(-8,Math.min(8,Math.floor(Ht(u)/3)))*3,l=Math.pow(10,-d),C=B((o=Xn(o),o.type="f",o),{suffix:jg[8+d/3]});return function(c){return C(l*c)}}return{format:B,formatPrefix:a}}var qf,a9,o9;P6({thousands:",",grouping:[3],currency:["$",""]});function P6(A){return qf=C6(A),a9=qf.format,o9=qf.formatPrefix,qf}function b6(A){return Math.max(0,-Ht(Math.abs(A)))}function X6(A,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ht(t)/3)))*3-Ht(Math.abs(A)))}function z6(A,t){return A=Math.abs(A),t=Math.abs(t)-A,Math.max(0,Ht(t)-Ht(A))+1}function L6(A,t,f,n){var v=N0(A,t,f),w;switch(n=Xn(n??",f"),n.type){case"s":{var r=Math.max(Math.abs(A),Math.abs(t));return n.precision==null&&!isNaN(w=X6(v,r))&&(n.precision=w),o9(n,r)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(w=z6(v,Math.max(Math.abs(A),Math.abs(t))))&&(n.precision=w-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(w=b6(v))&&(n.precision=w-(n.type==="%")*2);break}}return a9(n)}function M6(A){var t=A.domain;return A.ticks=function(f){var n=t();return h0(n[0],n[n.length-1],f??10)},A.tickFormat=function(f,n){var v=t();return L6(v[0],v[v.length-1],f??10,n)},A.nice=function(f){f==null&&(f=10);var n=t(),v=0,w=n.length-1,r=n[v],s=n[w],g,B,a=10;for(s<r&&(B=r,r=s,s=B,B=v,v=w,w=B);a-- >0;){if(B=tr(r,s,f),B===g)return n[v]=r,n[w]=s,t(n);if(B>0)r=Math.floor(r/B)*B,s=Math.ceil(s/B)*B;else if(B<0)r=Math.ceil(r*B)/B,s=Math.floor(s*B)/B;else break;g=B}return A},A}function u9(){var A=o6();return A.copy=function(){return B6(A,u9())},qr.apply(A,arguments),M6(A)}function H6(A){return Array.isArray(A)&&A.length===2&&Number.isFinite(A[0])&&Number.isFinite(A[1])&&A[0]<A[1]}const ot={top:12,right:14,bottom:24,left:38},Y6=56,m6=12;function x6(A){return A.length*6.5}function On(A){const t=e.ref(600);let f=null;e.onMounted(()=>{const D=A.wrapperRef.value;D&&(t.value=D.clientWidth||600,f=new ResizeObserver(i=>{const b=i[0]?.contentRect.width;b&&(t.value=b)}),f.observe(D))}),e.onBeforeUnmount(()=>f?.disconnect());const n=e.computed(()=>Math.max(0,t.value-ot.left-ot.right)),v=e.computed(()=>Math.max(0,A.height()-ot.top-ot.bottom)),w=e.computed(()=>A.data().map(D=>String(D[A.xKey()]))),r=e.computed(()=>F0().domain(w.value).range([0,n.value])),s=e.computed(()=>Mf().domain(w.value).range([0,n.value]).padding(A.bandPadding??.3)),g=e.computed(()=>{let D=0;for(const i of A.data())for(const b of A.yKeys()){const X=Number(i[b])||0;X>D&&(D=X)}return D}),B=e.computed(()=>{const D=A.yDomain?.();return H6(D)?[D[0],D[1]]:[0,g.value*1.1||1]}),a=e.computed(()=>u9().domain(B.value).range([v.value,0])),o=e.computed(()=>a.value.ticks(4)),u=e.computed(()=>{const D=w.value.length;if(D===0)return[];const i=w.value.reduce((z,H)=>Math.max(z,x6(H)),0),b=Math.max(Y6,i+m6),X=Math.max(1,Math.floor(n.value/b));if(D<=X)return Array.from({length:D},(z,H)=>H);const P=Math.ceil(D/X),L=[];for(let z=0;z<D;z+=P)L.push(z);const x=D-1;return L[L.length-1]!==x&&(x-L[L.length-1]<P*.6&&L.pop(),L.push(x)),L});function d(D){const i=u.value;return i.length<=1?"middle":D===i[0]?"start":D===i[i.length-1]?"end":"middle"}const l=e.ref(null);function C(D){const i=A.wrapperRef.value,b=w.value.length;if(!i||b===0)return;const X=i.getBoundingClientRect(),P=D.clientX-X.left-ot.left,L=A.mode==="band"?Math.floor(P/(n.value/b)):Math.round(P/(n.value/Math.max(1,b-1)));l.value=Math.max(0,Math.min(b-1,L))}function c(){l.value=null}return{width:t,margin:ot,innerW:n,innerH:v,categories:w,xPoint:r,xBand:s,y:a,yDomain:B,yTicks:o,xTickIndices:u,xTickAnchor:d,maxY:g,hoverIndex:l,onMove:C,onLeave:c}}const G6={key:0,class:"mb-1 font-medium text-foreground"},h6={class:"text-gray-darkest"},N6={class:"ml-auto font-medium text-foreground"},Nt=e.defineComponent({__name:"ChartTooltip",props:{visible:{type:Boolean},x:{},y:{},title:{},items:{},style:{}},setup(A){return(t,f)=>A.visible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"pointer-events-none absolute z-10 -translate-x-1/2 -translate-y-full px-3 py-2 text-xs",style:e.normalizeStyle({left:`${A.x}px`,top:`${A.y-8}px`,background:A.style.background,border:`1px solid ${A.style.border}`,borderRadius:`${A.style.radius}px`,boxShadow:A.style.shadow})},[A.title?(e.openBlock(),e.createElementBlock("div",G6,e.toDisplayString(A.title),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.items,n=>(e.openBlock(),e.createElementBlock("div",{key:n.label,class:"flex items-center gap-2 whitespace-nowrap"},[e.createElementVNode("span",{class:"inline-block h-2 w-2 rounded-sm",style:e.normalizeStyle({background:n.color})},null,4),e.createElementVNode("span",h6,e.toDisplayString(n.label),1),e.createElementVNode("span",N6,e.toDisplayString(n.value),1)]))),128))],4)):e.createCommentVNode("",!0)}}),Q6=["width","height","viewBox"],F6=["id"],O6=["stop-color"],E6=["stop-color"],y6=["transform"],p6=["x2","y1","y2","stroke"],j6=["y","fill"],I6=["x","y","text-anchor","fill"],V6=["x1","x2","y2","stroke"],T6=e.defineComponent({__name:"EvxAreaChart",props:{data:{},xKey:{default:"x"},yKeys:{default:()=>["y"]},seriesLabels:{},height:{default:260},yDomain:{}},setup(A){const t=A,{colors:f,axis:n,grid:v,tooltip:w}=tt(),r=e.useId(),s=e.ref(null),{width:g,margin:B,innerW:a,innerH:o,categories:u,xPoint:d,y:l,yTicks:C,xTickIndices:c,xTickAnchor:D,hoverIndex:i,onMove:b,onLeave:X}=On({wrapperRef:s,data:()=>t.data,xKey:()=>t.xKey,yKeys:()=>t.yKeys,height:()=>t.height,yDomain:()=>t.yDomain}),P=e.computed(()=>{const x=d.value,z=l.value;return t.yKeys.map((H,N)=>{const Q=f.value[N%f.value.length],m=i0().x(M=>x(String(M[t.xKey]))??0).y0(o.value).y1(M=>z(Number(M[H])||0)).curve(cn),G=Fn().x(M=>x(String(M[t.xKey]))??0).y(M=>z(Number(M[H])||0)).curve(cn);return{key:H,label:t.seriesLabels?.[N]??H,color:Q,areaPath:m(t.data)??"",linePath:G(t.data)??"",fillId:`evx-area-${r}-${N}`}})}),L=e.computed(()=>{if(i.value===null)return null;const x=t.data[i.value];if(!x)return null;const z=(d.value(String(x[t.xKey]))??0)+B.left,H=P.value.map(Q=>({label:Q.label,color:Q.color,value:Number(x[Q.key])||0})),N=B.top+Math.min(...t.yKeys.map(Q=>l.value(Number(x[Q])||0)));return{px:z,topY:N,title:String(x[t.xKey]),items:H}});return(x,z)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:s,class:"relative w-full",style:e.normalizeStyle({height:`${A.height}px`})},[(e.openBlock(),e.createElementBlock("svg",{width:e.unref(g),height:A.height,viewBox:`0 0 ${e.unref(g)} ${A.height}`,onMousemove:z[0]||(z[0]=(...H)=>e.unref(b)&&e.unref(b)(...H)),onMouseleave:z[1]||(z[1]=(...H)=>e.unref(X)&&e.unref(X)(...H))},[e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P.value,H=>(e.openBlock(),e.createElementBlock("linearGradient",{id:H.fillId,key:H.fillId,x1:"0",y1:"0",x2:"0",y2:"1"},[e.createElementVNode("stop",{offset:"0%","stop-color":H.color,"stop-opacity":"0.6"},null,8,O6),e.createElementVNode("stop",{offset:"100%","stop-color":H.color,"stop-opacity":"0.05"},null,8,E6)],8,F6))),128))]),e.createElementVNode("g",{transform:`translate(${e.unref(B).left},${e.unref(B).top})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(C),H=>(e.openBlock(),e.createElementBlock("line",{key:`g-${H}`,x1:"0",x2:e.unref(a),y1:e.unref(l)(H),y2:e.unref(l)(H),stroke:e.unref(v),"stroke-dasharray":"3 3"},null,8,p6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(C),H=>(e.openBlock(),e.createElementBlock("text",{key:`yl-${H}`,x:"-8",y:e.unref(l)(H),dy:"0.32em","text-anchor":"end",fill:e.unref(n),"font-size":"11"},e.toDisplayString(H),9,j6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),H=>(e.openBlock(),e.createElementBlock("text",{key:`xl-${e.unref(u)[H]}-${H}`,x:e.unref(d)(e.unref(u)[H]),y:e.unref(o)+18,"text-anchor":e.unref(D)(H),fill:e.unref(n),"font-size":"11"},e.toDisplayString(e.unref(u)[H]),9,I6))),128)),L.value?(e.openBlock(),e.createElementBlock("line",{key:0,x1:L.value.px-e.unref(B).left,x2:L.value.px-e.unref(B).left,y1:"0",y2:e.unref(o),stroke:e.unref(n),"stroke-opacity":"0.25"},null,8,V6)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P.value,H=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:H.key},[e.createVNode(e.unref(De),{as:"path",d:H.areaPath,fill:`url(#${H.fillId})`,initial:{opacity:0},animate:{opacity:1},transition:{duration:.5}},null,8,["d","fill"]),e.createVNode(e.unref(De),{as:"path",d:H.linePath,fill:"none",stroke:H.color,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",initial:{pathLength:0},animate:{pathLength:1},transition:{duration:.7,ease:"easeOut"}},null,8,["d","stroke"])],64))),128))],8,y6)],40,Q6)),L.value?(e.openBlock(),e.createBlock(Nt,{key:0,visible:!0,x:L.value.px,y:L.value.topY,title:L.value.title,items:L.value.items,style:e.normalizeStyle(e.unref(w))},null,8,["x","y","title","items","style"])):e.createCommentVNode("",!0)],4))}}),W6=["width","height","viewBox"],Z6=["transform"],q6=["x2","y1","y2","stroke"],K6=["y","fill"],k6=["x","y","text-anchor","fill"],R6=e.defineComponent({__name:"EvxBarChart",props:{data:{},xKey:{default:"x"},yKeys:{default:()=>["y"]},seriesLabels:{},height:{default:260},yDomain:{}},setup(A){const t=A,{colors:f,axis:n,grid:v,tooltip:w}=tt(),r=e.ref(null),{width:s,margin:g,innerW:B,innerH:a,categories:o,xBand:u,y:d,yTicks:l,xTickIndices:C,xTickAnchor:c,hoverIndex:D,onMove:i,onLeave:b}=On({wrapperRef:r,data:()=>t.data,xKey:()=>t.xKey,yKeys:()=>t.yKeys,height:()=>t.height,mode:"band",yDomain:()=>t.yDomain}),X=e.computed(()=>Mf().domain(t.yKeys).range([0,u.value.bandwidth()]).padding(.15)),P=e.computed(()=>{const x=[],z=X.value;for(const H of t.data){const N=u.value(String(H[t.xKey]))??0;t.yKeys.forEach((Q,m)=>{const G=Number(H[Q])||0,M=d.value(G),Y=Math.max(0,Math.min(M,a.value));x.push({key:`${H[t.xKey]}-${Q}`,x:N+(z(Q)??0),y:Y,w:z.bandwidth(),h:a.value-Y,color:f.value[m%f.value.length]})})}return x}),L=e.computed(()=>{if(D.value===null)return null;const x=t.data[D.value];if(!x)return null;const z=g.left+(u.value(String(x[t.xKey]))??0)+u.value.bandwidth()/2,H=t.yKeys.map((Q,m)=>({label:t.seriesLabels?.[m]??Q,color:f.value[m%f.value.length],value:Number(x[Q])||0})),N=g.top+Math.min(...t.yKeys.map(Q=>d.value(Number(x[Q])||0)));return{px:z,topY:N,title:String(x[t.xKey]),items:H}});return(x,z)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:r,class:"relative w-full",style:e.normalizeStyle({height:`${A.height}px`})},[(e.openBlock(),e.createElementBlock("svg",{width:e.unref(s),height:A.height,viewBox:`0 0 ${e.unref(s)} ${A.height}`,onMousemove:z[0]||(z[0]=(...H)=>e.unref(i)&&e.unref(i)(...H)),onMouseleave:z[1]||(z[1]=(...H)=>e.unref(b)&&e.unref(b)(...H))},[e.createElementVNode("g",{transform:`translate(${e.unref(g).left},${e.unref(g).top})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),H=>(e.openBlock(),e.createElementBlock("line",{key:`g-${H}`,x1:"0",x2:e.unref(B),y1:e.unref(d)(H),y2:e.unref(d)(H),stroke:e.unref(v),"stroke-dasharray":"3 3"},null,8,q6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),H=>(e.openBlock(),e.createElementBlock("text",{key:`yl-${H}`,x:"-8",y:e.unref(d)(H),dy:"0.32em","text-anchor":"end",fill:e.unref(n),"font-size":"11"},e.toDisplayString(H),9,K6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(C),H=>(e.openBlock(),e.createElementBlock("text",{key:`xl-${e.unref(o)[H]}-${H}`,x:(e.unref(u)(e.unref(o)[H])??0)+e.unref(u).bandwidth()/2,y:e.unref(a)+18,"text-anchor":e.unref(c)(H),fill:e.unref(n),"font-size":"11"},e.toDisplayString(e.unref(o)[H]),9,k6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P.value,H=>(e.openBlock(),e.createBlock(e.unref(De),{key:H.key,as:"rect",x:H.x,y:H.y,width:H.w,height:H.h,rx:"6",fill:H.color,style:{transformBox:"fill-box",transformOrigin:"bottom"},initial:{scaleY:0},animate:{scaleY:1},transition:{duration:.5,ease:"easeOut"}},null,8,["x","y","width","height","fill"]))),128))],8,Z6)],40,W6)),L.value?(e.openBlock(),e.createBlock(Nt,{key:0,visible:!0,x:L.value.px,y:L.value.topY,title:L.value.title,items:L.value.items,style:e.normalizeStyle(e.unref(w))},null,8,["x","y","title","items","style"])):e.createCommentVNode("",!0)],4))}}),J6=["width","height","viewBox"],U6=["transform"],S6=["x2","y1","y2","stroke"],$6=["y","fill"],_6=["x","y","text-anchor","fill"],AM=["x1","x2","y2","stroke"],eM=e.defineComponent({__name:"EvxLineChart",props:{data:{},xKey:{default:"x"},yKeys:{default:()=>["y"]},seriesLabels:{},height:{default:260},yDomain:{}},setup(A){const t=A,{colors:f,axis:n,grid:v,tooltip:w}=tt(),r=e.ref(null),{width:s,margin:g,innerW:B,innerH:a,categories:o,xPoint:u,y:d,yTicks:l,xTickIndices:C,xTickAnchor:c,hoverIndex:D,onMove:i,onLeave:b}=On({wrapperRef:r,data:()=>t.data,xKey:()=>t.xKey,yKeys:()=>t.yKeys,height:()=>t.height,yDomain:()=>t.yDomain}),X=e.computed(()=>{const L=u.value,x=d.value;return t.yKeys.map((z,H)=>{const N=Fn().x(Q=>L(String(Q[t.xKey]))??0).y(Q=>x(Number(Q[z])||0)).curve(cn);return{key:z,label:t.seriesLabels?.[H]??z,color:f.value[H%f.value.length],linePath:N(t.data)??""}})}),P=e.computed(()=>{if(D.value===null)return null;const L=t.data[D.value];if(!L)return null;const x=(u.value(String(L[t.xKey]))??0)+g.left,z=X.value.map(N=>({label:N.label,color:N.color,value:Number(L[N.key])||0})),H=g.top+Math.min(...t.yKeys.map(N=>d.value(Number(L[N])||0)));return{px:x,topY:H,title:String(L[t.xKey]),items:z}});return(L,x)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:r,class:"relative w-full",style:e.normalizeStyle({height:`${A.height}px`})},[(e.openBlock(),e.createElementBlock("svg",{width:e.unref(s),height:A.height,viewBox:`0 0 ${e.unref(s)} ${A.height}`,onMousemove:x[0]||(x[0]=(...z)=>e.unref(i)&&e.unref(i)(...z)),onMouseleave:x[1]||(x[1]=(...z)=>e.unref(b)&&e.unref(b)(...z))},[e.createElementVNode("g",{transform:`translate(${e.unref(g).left},${e.unref(g).top})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),z=>(e.openBlock(),e.createElementBlock("line",{key:`g-${z}`,x1:"0",x2:e.unref(B),y1:e.unref(d)(z),y2:e.unref(d)(z),stroke:e.unref(v),"stroke-dasharray":"3 3"},null,8,S6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),z=>(e.openBlock(),e.createElementBlock("text",{key:`yl-${z}`,x:"-8",y:e.unref(d)(z),dy:"0.32em","text-anchor":"end",fill:e.unref(n),"font-size":"11"},e.toDisplayString(z),9,$6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(C),z=>(e.openBlock(),e.createElementBlock("text",{key:`xl-${e.unref(o)[z]}-${z}`,x:e.unref(u)(e.unref(o)[z]),y:e.unref(a)+18,"text-anchor":e.unref(c)(z),fill:e.unref(n),"font-size":"11"},e.toDisplayString(e.unref(o)[z]),9,_6))),128)),P.value?(e.openBlock(),e.createElementBlock("line",{key:0,x1:P.value.px-e.unref(g).left,x2:P.value.px-e.unref(g).left,y1:"0",y2:e.unref(a),stroke:e.unref(n),"stroke-opacity":"0.25"},null,8,AM)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(X.value,z=>(e.openBlock(),e.createBlock(e.unref(De),{key:z.key,as:"path",d:z.linePath,fill:"none",stroke:z.color,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",initial:{pathLength:0},animate:{pathLength:1},transition:{duration:.7,ease:"easeOut"}},null,8,["d","stroke"]))),128))],8,U6)],40,J6)),P.value?(e.openBlock(),e.createBlock(Nt,{key:0,visible:!0,x:P.value.px,y:P.value.topY,title:P.value.title,items:P.value.items,style:e.normalizeStyle(e.unref(w))},null,8,["x","y","title","items","style"])):e.createCommentVNode("",!0)],4))}}),tM=["width","height","viewBox"],fM=["transform"],nM=e.defineComponent({__name:"EvxPieChart",props:{data:{},nameKey:{default:"name"},valueKey:{default:"value"},donut:{type:Boolean,default:!1},height:{default:260}},setup(A){const t=A,{colors:f,tooltip:n}=tt(),v=e.computed(()=>n.value.background),w=e.ref(null),r=e.ref(600);let s=null;e.onMounted(()=>{const C=w.value;C&&(r.value=C.clientWidth||600,s=new ResizeObserver(c=>{const D=c[0]?.contentRect.width;D&&(r.value=D)}),s.observe(C))}),e.onBeforeUnmount(()=>s?.disconnect());const g=e.computed(()=>r.value/2),B=e.computed(()=>t.height/2),a=e.computed(()=>Math.max(0,Math.min(r.value,t.height)/2-8)),o=e.computed(()=>t.donut?a.value*.75:0),u=e.computed(()=>{const C=C0().value(D=>Number(D[t.valueKey])||0).sort(null),c=er().innerRadius(o.value).outerRadius(a.value).cornerRadius(2).padAngle(.05);return C(t.data).map((D,i)=>({key:`${D.data[t.nameKey]}-${i}`,label:String(D.data[t.nameKey]),value:Number(D.data[t.valueKey])||0,color:f.value[i%f.value.length],path:c({startAngle:D.startAngle,endAngle:D.endAngle})??""}))}),d=e.ref(null),l=e.computed(()=>{if(d.value===null)return null;const C=u.value[d.value];if(!C)return null;const c=[{label:C.label,color:C.color,value:C.value}];return{px:g.value,topY:B.value-a.value,title:C.label,items:c}});return(C,c)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:w,class:"relative w-full",style:e.normalizeStyle({height:`${A.height}px`})},[(e.openBlock(),e.createElementBlock("svg",{width:r.value,height:A.height,viewBox:`0 0 ${r.value} ${A.height}`},[e.createElementVNode("g",{transform:`translate(${g.value},${B.value})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(D,i)=>(e.openBlock(),e.createBlock(e.unref(De),{key:D.key,as:"path",d:D.path,fill:D.color,stroke:v.value,"stroke-width":"2","stroke-linejoin":"round",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.4,ease:"easeOut"},onMouseenter:b=>d.value=i,onMouseleave:c[0]||(c[0]=b=>d.value=null)},null,8,["d","fill","stroke","onMouseenter"]))),128))],8,fM)],8,tM)),l.value?(e.openBlock(),e.createBlock(Nt,{key:0,visible:!0,x:l.value.px,y:l.value.topY,title:l.value.title,items:l.value.items,style:e.normalizeStyle(e.unref(n))},null,8,["x","y","title","items","style"])):e.createCommentVNode("",!0)],4))}}),vM=["width","height","viewBox"],rM=["points","stroke"],wM=["x1","y1","x2","y2","stroke"],sM=["x","y","fill"],gM=e.defineComponent({__name:"EvxRadarChart",props:{data:{},nameKey:{default:"name"},valueKeys:{default:()=>["value"]},seriesLabels:{},height:{default:260}},setup(A){const t=A,{colors:f,axis:n,tooltip:v}=tt(),w=e.computed(()=>v.value.border),r=e.ref(null),s=e.ref(600);let g=null;e.onMounted(()=>{const i=r.value;i&&(s.value=i.clientWidth||600,g=new ResizeObserver(b=>{const X=b[0]?.contentRect.width;X&&(s.value=X)}),g.observe(i))}),e.onBeforeUnmount(()=>g?.disconnect());const B=e.computed(()=>s.value/2),a=e.computed(()=>t.height/2),o=e.computed(()=>Math.max(0,Math.min(s.value,t.height)/2-28)),u=e.computed(()=>t.data.map(i=>String(i[t.nameKey]))),d=e.computed(()=>{let i=0;for(const b of t.data)for(const X of t.valueKeys){const P=Number(b[X])||0;P>i&&(i=P)}return i||1});function l(i,b,X){const P=Math.PI*2*b/X-Math.PI/2,L=i/d.value*o.value;return[B.value+Math.cos(P)*L,a.value+Math.sin(P)*L]}const C=e.computed(()=>{const i=u.value.length;return[.25,.5,.75,1].map(b=>u.value.map((X,P)=>{const[L,x]=l(d.value*b,P,i);return`${L},${x}`}).join(" "))}),c=e.computed(()=>{const i=u.value.length;return u.value.map((b,X)=>{const[P,L]=l(d.value,X,i),[x,z]=l(d.value*1.12,X,i);return{x:P,y:L,lx:x,ly:z,label:b}})}),D=e.computed(()=>{const i=u.value.length;return t.valueKeys.map((b,X)=>({key:b,label:t.seriesLabels?.[X]??b,color:f.value[X%f.value.length],points:t.data.map((P,L)=>{const[x,z]=l(Number(P[b])||0,L,i);return`${x},${z}`}).join(" ")}))});return(i,b)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:r,class:"relative w-full",style:e.normalizeStyle({height:`${A.height}px`})},[(e.openBlock(),e.createElementBlock("svg",{width:s.value,height:A.height,viewBox:`0 0 ${s.value} ${A.height}`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(X,P)=>(e.openBlock(),e.createElementBlock("polygon",{key:`ring-${P}`,points:X,fill:"none",stroke:w.value},null,8,rM))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(X,P)=>(e.openBlock(),e.createElementBlock("line",{key:`spoke-${P}`,x1:B.value,y1:a.value,x2:X.x,y2:X.y,stroke:w.value},null,8,wM))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(X,P)=>(e.openBlock(),e.createElementBlock("text",{key:`axis-${P}`,x:X.lx,y:X.ly,"text-anchor":"middle",dy:"0.32em",fill:e.unref(n),"font-size":"11"},e.toDisplayString(X.label),9,sM))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D.value,X=>(e.openBlock(),e.createBlock(e.unref(De),{key:X.key,as:"polygon",points:X.points,fill:X.color,"fill-opacity":"0.18",stroke:X.color,"stroke-width":"2",initial:{opacity:0},animate:{opacity:1},transition:{duration:.5,ease:"easeOut"}},null,8,["points","fill","stroke"]))),128))],8,vM))],4))}}),BM=["width","height","viewBox"],aM=["transform"],oM=["d","fill"],uM=e.defineComponent({__name:"EvxRadialChart",props:{data:{},nameKey:{default:"name"},valueKey:{default:"value"},max:{},height:{default:260}},setup(A){const t=A,{colors:f,grid:n,tooltip:v}=tt(),w=e.ref(null),r=e.ref(600);let s=null;e.onMounted(()=>{const C=w.value;C&&(r.value=C.clientWidth||600,s=new ResizeObserver(c=>{const D=c[0]?.contentRect.width;D&&(r.value=D)}),s.observe(C))}),e.onBeforeUnmount(()=>s?.disconnect());const g=e.computed(()=>r.value/2),B=e.computed(()=>t.height/2),a=e.computed(()=>Math.max(0,Math.min(r.value,t.height)/2-8)),o=e.computed(()=>{if(t.max)return t.max;let C=0;for(const c of t.data){const D=Number(c[t.valueKey])||0;D>C&&(C=D)}return C||1}),u=e.computed(()=>{const C=t.data.length,c=a.value*.7/Math.max(1,C),D=c*.25;return t.data.map((i,b)=>{const X=a.value-b*c,P=X-(c-D),L=Number(i[t.valueKey])||0,x=Math.max(0,Math.min(1,L/o.value)),z=Math.min(8,c-D),H=er().innerRadius(P).outerRadius(X).startAngle(0).endAngle(Math.PI*2).cornerRadius(z),N=er().innerRadius(P).outerRadius(X).startAngle(0).endAngle(Math.PI*2*x).cornerRadius(z);return{key:`${i[t.nameKey]}-${b}`,label:String(i[t.nameKey]),value:L,color:f.value[b%f.value.length],track:H(null)??"",fill:N(null)??""}})}),d=e.ref(null),l=e.computed(()=>{if(d.value===null)return null;const C=u.value[d.value];if(!C)return null;const c=[{label:C.label,color:C.color,value:C.value}];return{px:g.value,topY:B.value-a.value,title:C.label,items:c}});return(C,c)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:w,class:"relative w-full",style:e.normalizeStyle({height:`${A.height}px`})},[(e.openBlock(),e.createElementBlock("svg",{width:r.value,height:A.height,viewBox:`0 0 ${r.value} ${A.height}`},[e.createElementVNode("g",{transform:`translate(${g.value},${B.value})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,D=>(e.openBlock(),e.createElementBlock("path",{key:`track-${D.key}`,d:D.track,fill:e.unref(n)},null,8,oM))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(D,i)=>(e.openBlock(),e.createBlock(e.unref(De),{key:`fill-${D.key}`,as:"path",d:D.fill,fill:D.color,initial:{opacity:0},animate:{opacity:1},transition:{duration:.5,ease:"easeOut"},onMouseenter:b=>d.value=i,onMouseleave:c[0]||(c[0]=b=>d.value=null)},null,8,["d","fill","onMouseenter"]))),128))],8,aM)],8,BM)),l.value?(e.openBlock(),e.createBlock(Nt,{key:0,visible:!0,x:l.value.px,y:l.value.topY,title:l.value.title,items:l.value.items,style:e.normalizeStyle(e.unref(v))},null,8,["x","y","title","items","style"])):e.createCommentVNode("",!0)],4))}}),dM=["width","height","viewBox"],cM=["transform"],iM=["x2","y1","y2","stroke"],lM=["y","fill"],DM=["x","y","text-anchor","fill"],CM=e.defineComponent({__name:"EvxComposedChart",props:{data:{},xKey:{default:"x"},barKeys:{default:()=>["bar"]},lineKeys:{default:()=>["line"]},seriesLabels:{},height:{default:260},yDomain:{}},setup(A){const t=A,f=e.computed(()=>[...t.barKeys,...t.lineKeys]),{colors:n,axis:v,grid:w,tooltip:r}=tt(),s=e.ref(null),{width:g,margin:B,innerW:a,innerH:o,categories:u,xBand:d,y:l,yTicks:C,xTickIndices:c,xTickAnchor:D,hoverIndex:i,onMove:b,onLeave:X}=On({wrapperRef:s,data:()=>t.data,xKey:()=>t.xKey,yKeys:()=>f.value,height:()=>t.height,mode:"band",yDomain:()=>t.yDomain}),P=e.computed(()=>Mf().domain(t.barKeys).range([0,d.value.bandwidth()]).padding(.15)),L=N=>n.value[f.value.indexOf(N)%n.value.length],x=e.computed(()=>{const N=[],Q=P.value;for(const m of t.data){const G=d.value(String(m[t.xKey]))??0;t.barKeys.forEach(M=>{const Y=Number(m[M])||0,h=l.value(Y),p=Math.max(0,Math.min(h,o.value));N.push({key:`${m[t.xKey]}-${M}`,x:G+(Q(M)??0),y:p,w:Q.bandwidth(),h:o.value-p,color:L(M)})})}return N}),z=e.computed(()=>t.lineKeys.map(N=>{const Q=Fn().x(m=>(d.value(String(m[t.xKey]))??0)+d.value.bandwidth()/2).y(m=>l.value(Number(m[N])||0)).curve(cn);return{key:N,color:L(N),path:Q(t.data)??""}})),H=e.computed(()=>{if(i.value===null)return null;const N=t.data[i.value];if(!N)return null;const Q=B.left+(d.value(String(N[t.xKey]))??0)+d.value.bandwidth()/2,m=f.value.map((M,Y)=>({label:t.seriesLabels?.[Y]??M,color:L(M),value:Number(N[M])||0})),G=B.top+Math.min(...f.value.map(M=>l.value(Number(N[M])||0)));return{px:Q,topY:G,title:String(N[t.xKey]),items:m}});return(N,Q)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:s,class:"relative w-full",style:e.normalizeStyle({height:`${A.height}px`})},[(e.openBlock(),e.createElementBlock("svg",{width:e.unref(g),height:A.height,viewBox:`0 0 ${e.unref(g)} ${A.height}`,onMousemove:Q[0]||(Q[0]=(...m)=>e.unref(b)&&e.unref(b)(...m)),onMouseleave:Q[1]||(Q[1]=(...m)=>e.unref(X)&&e.unref(X)(...m))},[e.createElementVNode("g",{transform:`translate(${e.unref(B).left},${e.unref(B).top})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(C),m=>(e.openBlock(),e.createElementBlock("line",{key:`g-${m}`,x1:"0",x2:e.unref(a),y1:e.unref(l)(m),y2:e.unref(l)(m),stroke:e.unref(w),"stroke-dasharray":"3 3"},null,8,iM))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(C),m=>(e.openBlock(),e.createElementBlock("text",{key:`yl-${m}`,x:"-8",y:e.unref(l)(m),dy:"0.32em","text-anchor":"end",fill:e.unref(v),"font-size":"11"},e.toDisplayString(m),9,lM))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),m=>(e.openBlock(),e.createElementBlock("text",{key:`xl-${e.unref(u)[m]}-${m}`,x:(e.unref(d)(e.unref(u)[m])??0)+e.unref(d).bandwidth()/2,y:e.unref(o)+18,"text-anchor":e.unref(D)(m),fill:e.unref(v),"font-size":"11"},e.toDisplayString(e.unref(u)[m]),9,DM))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,m=>(e.openBlock(),e.createBlock(e.unref(De),{key:m.key,as:"rect",x:m.x,y:m.y,width:m.w,height:m.h,rx:"6",fill:m.color,style:{transformBox:"fill-box",transformOrigin:"bottom"},initial:{scaleY:0},animate:{scaleY:1},transition:{duration:.5,ease:"easeOut"}},null,8,["x","y","width","height","fill"]))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(z.value,m=>(e.openBlock(),e.createBlock(e.unref(De),{key:m.key,as:"path",d:m.path,fill:"none",stroke:m.color,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",initial:{pathLength:0},animate:{pathLength:1},transition:{duration:.7,ease:"easeOut"}},null,8,["d","stroke"]))),128))],8,cM)],40,dM)),H.value?(e.openBlock(),e.createBlock(Nt,{key:0,visible:!0,x:H.value.px,y:H.value.topY,title:H.value.title,items:H.value.items,style:e.normalizeStyle(e.unref(r))},null,8,["x","y","title","items","style"])):e.createCommentVNode("",!0)],4))}});exports.AmazonLogoIcon=wA.AmazonLogoIcon;exports.ArrowLeftIcon=wA._sfc_main$2;exports.CrossIcon=wA._sfc_main;exports.EvixLogo=wA.EvixLogo;exports.EvixLogoMark=wA.EvixLogoMark;exports.LenseIcon=wA._sfc_main$1;exports.LogOutIcon=wA.LogOutIcon;exports.MinusIcon=wA.MinusIcon;exports.PlusIcon=wA.PlusIcon;exports.UserIcon=wA.UserIcon;exports.AccountInfo=Vi;exports.BadgeFilters=Bi;exports.BrandCard=Yc;exports.CredentialForm=Vd;exports.EV_RESPONSIVE_HEADER_DEFAULTS=TA;exports.EvAccordion=Lc;exports.EvAlert=rl;exports.EvAppBackground=cP;exports.EvBackground=dr;exports.EvBackgroundAnimated=Fc;exports.EvBackgroundStatic=Oc;exports.EvBadge=jc;exports.EvBrandBackdrop=pc;exports.EvButton=ge;exports.EvCard=vB;exports.EvCardActions=gB;exports.EvCardAvatar=TP;exports.EvCardField=sB;exports.EvCardHeader=OP;exports.EvCardMedia=hP;exports.EvCardMeta=IP;exports.EvCardOverlayBadge=NP;exports.EvCardSection=wB;exports.EvCardSubtitle=yP;exports.EvCardTitle=rB;exports.EvCategoryLabel=F1;exports.EvCheckbox=Ad;exports.EvComboboxSelect=J8;exports.EvConfirmDialog=gP;exports.EvCookieBanner=PP;exports.EvCopyField=I1;exports.EvCurrencyAmountField=G7;exports.EvCurrencySelect=c7;exports.EvDataCard=BB;exports.EvDataTable=c1;exports.EvDatePicker=VC;exports.EvDropdown=Nl;exports.EvFilterChip=RC;exports.EvFooter=wi;exports.EvGlassCard=uP;exports.EvHeader=Kd;exports.EvHowToStep=LP;exports.EvIcon=LA;exports.EvIconButton=fP;exports.EvInput=N8;exports.EvInsightBar=$7;exports.EvLargeImage=mP;exports.EvList=oi;exports.EvListItem=bi;exports.EvMenu=J1;exports.EvMenuDivider=_1;exports.EvMenuItem=$1;exports.EvMultiSelect=P2;exports.EvPagination=kC;exports.EvPeriodSelector=K7;exports.EvPhoneInput=LC;exports.EvPopup=R8;exports.EvProgressBar=R7;exports.EvRadio=Fd;exports.EvRadioGroup=Ld;exports.EvRadioLabel=xd;exports.EvRadioOption=md;exports.EvResponsiveHeader=dc;exports.EvSearch=Q8;exports.EvSegmentedControl=k8;exports.EvSelect=Ml;exports.EvSidebar=v7;exports.EvSidebarItem=w7;exports.EvSidebarSection=B7;exports.EvSkeleton=Ri;exports.EvSmartSearch=Xd;exports.EvSpecsTable=MP;exports.EvSpinner=uf;exports.EvStatCard=Wc;exports.EvStepper=Q1;exports.EvTabs=S3;exports.EvTagInput=eP;exports.EvToast=aB;exports.EvToastContainer=m1;exports.EvToggle=zd;exports.EvTooltip=K1;exports.EvixLoader=Si;exports.EvxAreaChart=T6;exports.EvxBarChart=R6;exports.EvxComposedChart=CM;exports.EvxLineChart=eM;exports.EvxPieChart=nM;exports.EvxRadarChart=gM;exports.EvxRadialChart=uM;exports.FlagEUR=I8;exports.FlagFallback=q8;exports.FlagGBP=T8;exports.FlagJPY=W8;exports.FlagMXN=Z8;exports.FlagUSD=V8;exports.PageHeader=qi;exports.TableInfo=Ni;exports.badgeBase=E8;exports.badgeVariants=j8;exports.countBase=p8;exports.currencyFlag=An;exports.evIcons=bv;exports.flagFor=a7;exports.isEvResponsiveHeaderItemVisible=Kf;exports.resolveEvResponsiveHeaderSettings=F8;exports.sizes=av;exports.statusBase=y8;exports.useEvHeaderVisibility=O8;exports.useToast=dB;exports.variants=Ig;
|
|
106
106
|
//# sourceMappingURL=evx-ui-kit.cjs.map
|