PageSourceSearch

https://smartdaddy.ai/static/js/main.8b6e43e8.js

js smartdaddy.ai collected 2026-10-05 15:05:42 UTC 2,787,745 bytes, 3 lines download raw bytes

1/*! For license information please see main.8b6e43e8.js.LICENSE.txt */
2(()=>{var e={350(e,t,n){const a=n(7969),r=a.getBCHDigit(1335);t.getEncodedBits=function(e,t){const n=e.bit<<3|t;let o=n<<10;for(;a.getBCHDigit(o)-r>=0;)o^=1335<<a.getBCHDigit(o)-r;return 21522^(n<<10|o)}},356(e,t,n){e.exports=n(9645).last},418(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.toString=function e(t){if(null==t)return"";if("string"===typeof t)return t;if(Array.isArray(t))return t.map(e).join(",");const n=String(t);return"0"===n&&Object.is(Number(t),-0)?"-0":n}},579(e,t,n){"use strict";e.exports=n(2799)},870(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isObject=function(e){return null!==e&&("object"===typeof e||"function"===typeof e)}},900(e,t,n){const a=n(7421);function r(e){this.mode=a.NUMERIC,this.data=e.toString()}r.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){let t,n,a;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),a=parseInt(n,10),e.put(a,10);const r=this.data.length-t;r>0&&(n=this.data.substr(t),a=parseInt(n,10),e.put(a,3*r+1))},e.exports=r},1166(e,t){const n=new Uint8Array(512),a=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)n[t]=e,a[e]=t,e<<=1,256&e&&(e^=285);for(let t=255;t<512;t++)n[t]=n[t-255]}(),t.log=function(e){if(e<1)throw new Error("log("+e+")");return a[e]},t.exp=function(e){return n[e]},t.mul=function(e,t){return 0===e||0===t?0:n[a[e]+a[t]]}},1185(e,t,n){e.exports=n(9392)},1203(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const a=n(8420);t.isArrayLike=function(e){return null!=e&&"function"!==typeof e&&a.isLength(e.length)}},1218(e){var t,n,a,r,o,i,s,l,c,u,d,h,p,f,m,g=!1;function v(){if(!g){g=!0;var e=navigator.userAgent,v=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Ice
2weasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),y=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(h=/\b(iPhone|iP[ao]d)/.exec(e),p=/\b(iP[ao]d)/.exec(e),u=/Android/i.exec(e),f=/FBAN\/\w+;/i.exec(e),m=/Mobile/i.exec(e),d=!!/Win64/.exec(e),v){(t=v[1]?parseFloat(v[1]):v[5]?parseFloat(v[5]):NaN)&&document&&document.documentMode&&(t=document.documentMode);var w=/(?:Trident\/(\d+.\d+))/.exec(e);i=w?parseFloat(w[1])+4:t,n=v[2]?parseFloat(v[2]):NaN,a=v[3]?parseFloat(v[3]):NaN,(r=v[4]?parseFloat(v[4]):NaN)?(v=/(?:Chrome\/(\d+\.\d+))/.exec(e),o=v&&v[1]?parseFloat(v[1]):NaN):o=NaN}else t=n=a=o=r=NaN;if(y){if(y[1]){var _=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);s=!_||parseFloat(_[1].replace("_","."))}else s=!1;l=!!y[2],c=!!y[3]}else s=l=c=!1}}var y={ie:function(){return v()||t},ieCompatibilityMode:function(){return v()||i>t},ie64:function(){return y.ie()&&d},firefox:function(){return v()||n},opera:function(){return v()||a},webkit:function(){return v()||r},safari:function(){return y.webkit()},chrome:function(){return v()||o},windows:function(){return v()||l},osx:function(){return v()||s},linux:function(){return v()||c},iphone:function(){return v()||h},mobile:function(){return v()||h||p||u||m},nativeApp:function(){return v()||f},android:function(){return v()||u},ipad:function(){return v()||p}};e.exports=y},1293(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const a=n(4830);t.debounce=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"!==typeof n&&(n={});const{leading:r=!1,trailing:o=!0,maxWait:i}=n,s=Array(2);let l;r&&(s[0]="leading"),o&&(s[1]="trailing");let c=null;const u=a.debounce(function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];l=e.apply(this,n),c=null},t,{edges:s}),d=function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return null!=i&&(null===c&&(c=Date.now()),Date.now()-c>=i)?(l=e.apply(this,n),c=Date.now(),u.cancel(),u.schedule(),l):(u.apply(this,n),l)};return d.cancel=u.cancel,d.flush=()=>(u.flush(),l),d}},1312(e,t,n){const a=n(1166);t.mul=function(e,t){const n=new Uint8Array(e.length+t.length-1);for(let r=0;r<e.length;r++)for(let o=0;o<t.length;o++)n[r+o]^=a.mul(e[r],t[o]);return n},t.mod=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){const e=n[0];for(let o=0;o<t.length;o++)n[o]^=a.mul(t[o],e);let r=0;for(;r<n.length&&0===n[r];)r++;n=n.slice(r)}return n},t.generateECPolynomial=function(e){let n=new Uint8Array([1]);for(let r=0;r<e;r++)n=t.mul(n,new Uint8Array([1,a.exp(r)]));return n}},1444(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const a=n(418),r=n(3272);t.toPath=function(e){if(Array.isArray(e))return e.map(r.toKey);if("symbol"===typeof e)return[e];const t=[],n=(e=a.toString(e)).length;if(0===n)return t;let o=0,i="",s="",l=!1;for(46===e.charCodeAt(0)&&(t.push(""),o++);o<n;){const a=e[o];s?"\\"===a&&o+1<n?(o++,i+=e[o]):a===s?s="":i+=a:l?'"'===a||"'"===a?s=a:"]"===a?(l=!1,t.push(i),i=""):i+=a:"["===a?(l=!0,i&&(t.push(i),i="")):"."===a?i&&(t.push(i),i=""):i+=a,o++}return i&&t.push(i),t}},1517(e){const t=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['\u2019](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,n=e=>e.match(t)||[],a=e=>e[0].toUpperCase()+e.slice(1),r=(e,t)=>n(e).join(t).toLowerCase(),o=e=>n(e).reduce((e,t)=>
2"".concat(e).concat(e?t[0].toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()),"");e.exports={words:n,upperFirst:a,camelCase:o,pascalCase:e=>a(o(e)),snakeCase:e=>r(e,"_"),kebabCase:e=>r(e,"-"),sentenceCase:e=>a(r(e," ")),titleCase:e=>n(e).map(a).join(" ")}},1805(e,t,n){const a=n(6272),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case a.L:return r[4*(e-1)+0];case a.M:return r[4*(e-1)+1];case a.Q:return r[4*(e-1)+2];case a.H:return r[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case a.L:return o[4*(e-1)+0];case a.M:return o[4*(e-1)+1];case a.Q:return o[4*(e-1)+2];case a.H:return o[4*(e-1)+3];default:return}}}
2,2086(e,t,n){"use strict";e.exports=n(5082)},2104(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const a=n(1203),r=n(9921);t.isArrayLikeObject=function(e){return r.isObjectLike(e)&&a.isArrayLike(e)}},2132(e,t,n){"use strict";var a=n(2897).default;Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(870),o=n(4803),i=n(9972);function s(e,t,n,u){if(t===e)return!0;switch(typeof t){case"object":return function(e,t,n,a){if(null==t)return!0;if(Array.isArray(t))return l(e,t,n,a);if(t instanceof Map)return function(e,t,n,a){if(0===t.size)return!0;if(!(e instanceof Map))return!1;for(const[r,o]of t.entries()){if(!1===n(e.get(r),o,r,e,t,a))return!1}return!0}(e,t,n,a);if(t instanceof Set)return c(e,t,n,a);const r=Object.keys(t);if(null==e||o.isPrimitive(e))return 0===r.length;if(0===r.length)return!0;if(null!==a&&void 0!==a&&a.has(t))return a.get(t)===e;null===a||void 0===a||a.set(t,e);try{for(let i=0;i<r.length;i++){const s=r[i];if(!o.isPrimitive(e)&&!(s in e))return!1;if(void 0===t[s]&&void 0!==e[s])return!1;if(null===t[s]&&null!==e[s])return!1;if(!n(e[s],t[s],s,e,t,a))return!1}return!0}finally{null===a||void 0===a||a.delete(t)}}(e,t,n,u);case"function":return Object.keys(t).length>0?s(e,a({},t),n,u):i.eq(e,t);default:return r.isObject(e)?"string"!==typeof t||""===t:i.eq(e,t)}}function l(e,t,n,a){if(0===t.length)return!0;if(!Array.isArray(e))return!1;const r=new Set;for(let o=0;o<t.length;o++){const i=t[o];let s=!1;for(let l=0;l<e.length;l++){if(r.has(l))continue;let c=!1;if(n(e[l],i,o,e,t,a)&&(c=!0),c){r.add(l),s=!0;break}}if(!s)return!1}return!0}function c(e,t,n,a){return 0===t.size||e instanceof Set&&l([...e],[...t],n,a)}t.isMatchWith=function e(t,n,a){return"function"!==typeof a?e(t,n,()=>{}):s(t,n,function e(t,n,r,o,i,l){const c=a(t,n,r,o,i,l);return void 0!==c?Boolean(c):s(t,n,e,l)},new Map)},t.isSetMatch=c},2182(e,t,n){const a=n(8293);t.render=function(e,t,n){let r=n,o=t;"undefined"!==typeof r||t&&t.getContext||(r=t,t=void 0),t||(o=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),r=a.getOptions(r);const i=a.getImageWidth(e.modules.size,r),s=o.getContext("2d"),l=s.createImageData(i,i);return a.qrToImageData(l.data,e,r),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(s,o,i),s.putImageData(l,0,0),o},t.renderToDataURL=function(e,n,a){let r=a;"undefined"!==typeof r||n&&n.getContext||(r=n,n=void 0),r||(r={});const o=t.render(e,n,r),i=r.type||"image/png",s=r.rendererOpts||{};return o.toDataURL(i,s.quality)}},2204(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const a=n(5316),r=n(7312),o=n(3799);t.sortBy=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];const s=n.length;return s>1&&o.isIterateeCall(e,n[0],n[1])?n=[]:s>2&&o.isIterateeCall(n[0],n[1],n[2])&&(n=[n[0]]),a.orderBy(e,r.flatten(n),["asc"])}},2330(e,t,n){"use strict";var a=n(5043);var r="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=a.useState,i=a.useEffect,s=a.useLayoutEffect,l=a.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch(a){return!0}}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),a=o({inst:{value:n,getSnapshot:t}}),r=a[0].inst,u=a[1];return s(function(){r.value=n,r.getSnapshot=t,c(r)&&u({inst:r})},[e,n,t]),i(function(){return c(r)&&u({inst:r}),e(function(){c(r)&&u({inst:r})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==a.useSyncExternalStore?a.useSyncExternalStore:u},2489(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isDeepKey=function(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e.includes(".")||e.includes("[")||e.includes("]")}}},2682(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isPlainObject=function(e){if("object"!==typeof e)return!1;if(null==e)return!1;if(null===Object.getPrototypeOf(e))return!0;
2if("[object Object]"!==Object.prototype.toString.call(e)){var t;const n=e[Symbol.toStringTag];if(null==n)return!1;return!!(null!==(t=Object.getOwnPropertyDescriptor(e,Symbol.toStringTag))&&void 0!==t&&t.writable)&&e.toString()==="[object ".concat(n,"]")}let n=e;for(;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}},2715(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const a=n(9599),r=n(7330),o=n(3808),i=n(8845);t.iteratee=function(e){if(null==e)return a.identity;switch(typeof e){case"function":return e;case"object":return Array.isArray(e)&&2===e.length?i.matchesProperty(e[0],e[1]):o.matches(e);case"string":case"symbol":case"number":return r.property(e)}}},2777(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isSymbol=function(e){return"symbol"===typeof e||e instanceof Symbol}},2799(e,t){"use strict";var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(e,t,a){var r=null;if(void 0!==a&&(r=""+a),void 0!==t.key&&(r=""+t.key),"key"in t)for(var o in a={},t)"key"!==o&&(a[o]=t[o]);else a=t;return t=a.ref,{$$typeof:n,type:e,key:r,ref:void 0!==t?t:null,props:a}}t.Fragment=a,t.jsx=r,t.jsxs=r},2897(e,t,n){var a=n(3693);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e},e.exports.__esModule=!0,e.exports.default=e.exports},3175(e,t,n){"use strict";var a=n(2897).default;t.Kh=d;const r=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,o=/^[\u0021-\u003A\u003C-\u007E]*$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,s=/^[\u0020-\u003A\u003D-\u007E]*$/,l=/^-?\d+$/,c=Object.prototype.toString,u=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function d(e,t){const n=new u,a=e.length;if(a<2)return n;const r=(null===t||void 0===t?void 0:t.decode)||g;let o=0;do{const t=f(e,o,a);if(-1===t)break;const i=p(e,o,a);if(t>i){o=e.lastIndexOf(";",t-1)+1;continue}const s=m(e,o,t);void 0===n[s]&&(n[s]=r(m(e,t+1,i))),o=i+1}while(o<a);return n}function h(e,t,n){const l="object"===typeof e?e:a(a({},n),{},{name:e,value:String(t)}),u="object"===typeof t?t:n,d=(null===u||void 0===u?void 0:u.encode)||encodeURIComponent;if(!r.test(l.name))throw new TypeError("argument name is invalid: ".concat(l.name));const h=l.value?d(l.value):"";if(!o.test(h))throw new TypeError("argument val is invalid: ".concat(l.value));let p=l.name+"="+h;if(void 0!==l.maxAge){if(!Number.isInteger(l.maxAge))throw new TypeError("option maxAge is invalid: ".concat(l.maxAge));p+="; Max-Age="+l.maxAge}if(l.domain){if(!i.test(l.domain))throw new TypeError("option domain is invalid: ".concat(l.domain));p+="; Domain="+l.domain}if(l.path){if(!s.test(l.path))throw new TypeError("option path is invalid: ".concat(l.path));p+="; Path="+l.path}if(l.expires){if(f=l.expires,"[object Date]"!==c.call(f)||!Number.isFinite(l.expires.valueOf()))throw new TypeError("option expires is invali
2d: ".concat(l.expires));p+="; Expires="+l.expires.toUTCString()}var f;if(l.httpOnly&&(p+="; HttpOnly"),l.secure&&(p+="; Secure"),l.partitioned&&(p+="; Partitioned"),l.priority){switch("string"===typeof l.priority?l.priority.toLowerCase():void 0){case"low":p+="; Priority=Low";break;case"medium":p+="; Priority=Medium";break;case"high":p+="; Priority=High";break;default:throw new TypeError("option priority is invalid: ".concat(l.priority))}}if(l.sameSite){switch("string"===typeof l.sameSite?l.sameSite.toLowerCase():l.sameSite){case!0:case"strict":p+="; SameSite=Strict";break;case"lax":p+="; SameSite=Lax";break;case"none":p+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid: ".concat(l.sameSite))}}return p}function p(e,t,n){const a=e.indexOf(";",t);return-1===a?n:a}function f(e,t,n){const a=e.indexOf("=",t);return a<n?a:-1}function m(e,t,n){let a=t,r=n;do{const t=e.charCodeAt(a);if(32!==t&&9!==t)break}while(++a<r);for(;r>a;){const t=e.charCodeAt(r-1);if(32!==t&&9!==t)break;r--}return e.slice(a,r)}function g(e){if(-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch(t){return e}}},3240(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,a=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},i=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var a,r=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!o)return!1;for(a in e);return"undefined"===typeof a||t.call(e,a)},s=function(e,t){a&&"__proto__"===t.name?a(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(r)return r(e,n).value}return e[n]};e.exports=function e(){var t,n,a,r,c,u,d=arguments[0],h=1,p=arguments.length,f=!1;for("boolean"===typeof d&&(f=d,d=arguments[1]||{},h=2),(null==d||"object"!==typeof d&&"function"!==typeof d)&&(d={});h<p;++h)if(null!=(t=arguments[h]))for(n in t)a=l(d,n),d!==(r=l(t,n))&&(f&&r&&(i(r)||(c=o(r)))?(c?(c=!1,u=a&&o(a)?a:[]):u=a&&i(a)?a:{},s(d,{name:n,newValue:e(f,u,r)})):"undefined"!==typeof r&&s(d,{name:n,newValue:r}));return d}},3257(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},3272(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.toKey=function(e){var t;return"string"===typeof e||"symbol"===typeof e?e:Object.is(null===e||void 0===e||null===(t=e.valueOf)||void 0===t?void 0:t.call(e),-0)?"-0":String(e)}},3393(e,t,n){!function(e,t){"use strict";function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function a(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?n(Object(a),!0).forEach(function(t){o(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):n(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}function s(e,t){if(null==e)return{};var n,a,r=i(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function l(e,t){return c(e)||u(e,t)||d(e,t)||p()}function c(e){if(Array.isArray(e))return e}function u(e,t){var n=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var a,r,o=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(l){s=!0,r=l}finally{try{i||null==n.return||n.return()}finally{if(s)throw r}}return o}}function d(e,t){if(e){if("string"===typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}
2function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var m,g,v,y,w={exports:{}};function _(){return g?m:(g=1,m="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function x(){if(y)return v;y=1;var e=_();function t(){}function n(){}return n.resetWarningCache=t,v=function(){function a(t,n,a,r,o,i){if(i!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function r(){return a}a.isRequired=a;var o={array:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:r,element:a,elementType:a,instanceOf:r,node:a,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}w.exports=x()();var b=f(w.exports),k=function(e,n,a){var r=!!a,o=t.useRef(a);t.useEffect(function(){o.current=a},[a]),t.useEffect(function(){if(!r||!e)return function(){};var t=function(){o.current&&o.current.apply(o,arguments)};return e.on(n,t),function(){e.off(n,t)}},[r,n,e,o])},C=function(e){var n=t.useRef(e);return t.useEffect(function(){n.current=e},[e]),n.current},D=function(e){return null!==e&&"object"===r(e)},A=function(e){return D(e)&&"function"===typeof e.then},E=function(e){return D(e)&&"function"===typeof e.elements&&"function"===typeof e.createToken&&"function"===typeof e.createPaymentMethod&&"function"===typeof e.confirmCardPayment},j="[object Object]",S=function e(t,n){if(!D(t)||!D(n))return t===n;var a=Array.isArray(t);if(a!==Array.isArray(n))return!1;var r=Object.prototype.toString.call(t)===j;if(r!==(Object.prototype.toString.call(n)===j))return!1;if(!r&&!a)return t===n;var o=Object.keys(t),i=Object.keys(n);if(o.length!==i.length)return!1;for(var s={},l=0;l<o.length;l+=1)s[o[l]]=!0;for(var c=0;c<i.length;c+=1)s[i[c]]=!0;var u=Object.keys(s);if(u.length!==o.length)return!1;var d=t,h=n,p=function(t){return e(d[t],h[t])};return u.every(p)},N=function(e,t,n){return D(e)?Object.keys(e).reduce(function(r,i){var s=!D(t)||!S(e[i],t[i]);return n.includes(i)?(s&&console.warn("Unsupported prop change: options.".concat(i," is not a mutable property.")),r):s?a(a({},r||{}),{},o({},i,e[i])):r},null):null},P="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P;if(null===e||E(e))return e;throw new Error(t)},F=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P;if(A(e))return{tag:"async",stripePromise:Promise.resolve(e).then(function(e){return T(e,t)})};var n=T(e,t);return null===n?{tag:"empty"}:{tag:"sync",stripe:n}},O=function(e){e&&e._registerWrapper&&e.registerAppInfo&&(e._registerWrapper({name:"react-stripe-js",version:"3.10.0"}),e.registerAppInfo({name:"react-stripe-js",version:"3.10.0",url:"https://stripe.com/docs/stripe-js/react"}))},I=t.createContext(null);I.displayName="ElementsContext";var R=function(e,t){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an <Elements> provider."));return e},M=function(e){var n=e.stripe,a=e.options,r=e.children,o=t.useMemo(function(){return F(n)},[n]),i=l(t.useState(function(){return{stripe:"sync"===o.tag?o.stripe:null,elements:"sync"===o.tag?o.stripe.elements(a):null}}),2),s=i[0],c=i[1];t.useEffect(function(){var e=!0,t=function(e){c(function(t){return t.stripe?t:{stripe:e,elements:e.elements(a)}})};return"async"!==o.tag||s.stripe?"sync"!==o.tag||s.stripe||t(o.stripe):o.stripePromise.then(function(n){n&&e&&t(n)}),function(){e=!1}},[o,s,a]);var u=C(n);t.useEffect(function(){null!==u&&u!==n&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[u,n]);var d=C(a);return t.useEffect(function(){if(s.elements){var e=N(a,d,["clientSecret","fonts"]);e&&s.elements.update(e)}},[a,d,s.elements]),t.useEffect(function(){O(s.stripe)},[s.stripe]),t.createElement(I.Provider,{value:s},r)};M.propTypes={stripe:b.any,options:b.object};var B=function(e){var n=t.useContext(I);return R(n,e)},z=function(){return B("calls useElements()").elements},L=function(e){return(0,e.children)(B("mounts <ElementsConsumer>"))};L.propTypes={children:b.func.isRequired};var U=["on","session"],V=t.createContext(null);V.displayName="CheckoutSdkContext";var q=function(e,t){if(!e)throw new Error("Could not find CheckoutProvider context; You need to wrap the part of your app that ".concat(t," in an <CheckoutProvider> provider."));return e},H=t.createContext(null);H.displayName="CheckoutContext";var W=function(e,t){if(!e)return null;e.on,e.session;var n=s(e,U);return t?Object.assign(t,n):Object.assign(e.session(),n)},K="Invalid prop `stripe` supplied to `CheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",Y=function(e){var n=e.stripe,a=e.options,r=e.children,o=t.useMemo(function(){return F(n,K)},[n]),i=l(t.useState(null),2),s=i[0],c=i[1],u=l(t.useState(function(){return{stripe:"sync"===o.tag?o.stripe:null,checkoutSdk:null}}),2),d=u[0],h=u[1],p=function(e,t){h(function(n){return n.stripe&&n.checkoutSdk?n:{stripe:e,checkoutSdk:t}})},f=t.useRef(!1);t.useEffect(function(){var e=!0;return"async"!==o.tag||d.stripe?"sync"===o.tag&&o.stripe&&!f.current&&(f.current=!0,o.stripe.initCheckout(a).then(function(e){e&&(p(o.stripe,e),e.on("change",c))})):o.stripePromise.then(function(t){t&&e&&!f.current&&(f.current=!0,t.initCheckout(a).then(function(e){e&&(p(t,e),e.on("change",c))}))}),function(){e=!1}},[o,d,a,c]);var m=C(n);t.useEffect(function(){null!==m&&m!==n&&console.warn("Unsupported prop change on CheckoutProvider: You cannot change the `stripe` prop after setting it.")},[m,n]);var g=C(a),v=C(d.checkoutSdk);t.useEffect(function(){var e,t,n,r;if(d.checkoutSdk){var o=Boolean(!v&&d.checkoutSdk),i=null===g||void 0===g||null===(e=g.elementsOptions)||void 0===e?void 0:e.appearance,s=null===a||void 0===a||null===(t=a.elementsOptions)||void 0===t?void 0:t.appearance,l=!S(s,i);s&&(l||o)&&d.checkoutSdk.changeAppearance(s);var c=null===g||void 0===g||null===(n=g.elementsOptions)||void 0===n?void 0:n.fonts,u=null===a||void 0===a||null===(r=a.elementsOptions)||void 0===r?void 0:r.fonts,h=!S(c,u);u&&(h||o)&&d.checkoutSdk.loadFonts(u)}},[a,g,d.checkoutSdk,v]),t.useEffect(function(){O(d.stripe)},[d.stripe]);var y=t.useMemo(function(){return W(d.checkoutSdk,s)}
2,[d.checkoutSdk,s]);return d.checkoutSdk?t.createElement(V.Provider,{value:d},t.createElement(H.Provider,{value:y},r)):null};Y.propTypes={stripe:b.any,options:b.shape({fetchClientSecret:b.func.isRequired,elementsOptions:b.object}).isRequired};var G=function(e){var n=t.useContext(V);return q(n,e)},J=function(e){var n=t.useContext(V),a=t.useContext(I);if(n&&a)throw new Error("You cannot wrap the part of your app that ".concat(e," in both <CheckoutProvider> and <Elements> providers."));return n?q(n,e):R(a,e)},$=function(){G("calls useCheckout()");var e=t.useContext(H);if(!e)throw new Error("Could not find Checkout Context; You need to wrap the part of your app that calls useCheckout() in an <CheckoutProvider> provider.");return e},Q=["mode"],X=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},Z=function(e,n){var a="".concat(X(e),"Element"),r=n?function(e){J("mounts <".concat(a,">"));var n=e.id,r=e.className;return t.createElement("div",{id:n,className:r})}:function(n){var r,o=n.id,i=n.className,c=n.options,u=void 0===c?{}:c,d=n.onBlur,h=n.onFocus,p=n.onReady,f=n.onChange,m=n.onEscape,g=n.onClick,v=n.onLoadError,y=n.onLoaderStart,w=n.onNetworksChange,_=n.onConfirm,x=n.onCancel,b=n.onShippingAddressChange,D=n.onShippingRateChange,A=n.onSavedPaymentMethodRemove,E=n.onSavedPaymentMethodUpdate,j=J("mounts <".concat(a,">")),S="elements"in j?j.elements:null,P="checkoutSdk"in j?j.checkoutSdk:null,T=l(t.useState(null),2),F=T[0],O=T[1],I=t.useRef(null),R=t.useRef(null);k(F,"blur",d),k(F,"focus",h),k(F,"escape",m),k(F,"click",g),k(F,"loaderror",v),k(F,"loaderstart",y),k(F,"networkschange",w),k(F,"confirm",_),k(F,"cancel",x),k(F,"shippingaddresschange",b),k(F,"shippingratechange",D),k(F,"savedpaymentmethodremove",A),k(F,"savedpaymentmethodupdate",E),k(F,"change",f),p&&(r="expressCheckout"===e?p:function(){p(F)}),k(F,"ready",r),t.useLayoutEffect(function(){if(null===I.current&&null!==R.current&&(S||P)){var t=null;if(P)switch(e){case"payment":t=P.createPaymentElement(u);break;case"address":if(!("mode"in u))throw new Error("You must supply options.mode. mode must be 'billing' or 'shipping'.");var n=u.mode,r=s(u,Q);if("shipping"===n)t=P.createShippingAddressElement(r);else{if("billing"!==n)throw new Error("Invalid options.mode. mode must be 'billing' or 'shipping'.");t=P.createBillingAddressElement(r)}break;case"expressCheckout":t=P.createExpressCheckoutElement(u);break;case"currencySelector":t=P.createCurrencySelectorElement();break;case"taxId":t=P.createTaxIdElement(u);break;default:throw new Error("Invalid Element type ".concat(a,". You must use either the <PaymentElement />, <AddressElement options={{mode: 'shipping'}} />, <AddressElement options={{mode: 'billing'}} />, or <ExpressCheckoutElement />."))}else S&&(t=S.create(e,u));I.current=t,O(t),t&&t.mount(R.current)}},[S,P,u]);var M=C(u);return t.useEffect(function(){if(I.current){var e=N(u,M,["paymentRequest"]);e&&"update"in I.current&&I.current.update(e)}},[u,M]),t.useLayoutEffect(function(){return function(){if(I.current&&"function"===typeof I.current.destroy)try{I.current.destroy(),I.current=null}catch(e){}}},[]),t.createElement("div",{id:o,className:i,ref:R})};return r.propTypes={id:b.string,className:b.string,onChange:b.func,onBlur:b.func,onFocus:b.func,onReady:b.func,onEscape:b.func,onClick:b.func,onLoadError:b.func,onLoaderStart:b.func,onNetworksChange:b.func,onConfirm:b.func,onCancel:b.func,onShippingAddressChange:b.func,onShippingRateChange:b.func,onSavedPaymentMethodRemove:b.func,onSavedPaymentMethodUpdate:b.func,options:b.object},r.displayName=a,r.__elementType=e,r},ee="undefined"===typeof window,te=t.createContext(null);te.displayName="EmbeddedCheckoutProviderContext";var ne=function(){var e=t.useContext(te);if(!e)throw new Error("<EmbeddedCheckout> must be used within <EmbeddedCheckoutProvider>");return e},ae="Invalid prop `stripe` supplied to `EmbeddedCheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",re=function(e){var n=e.stripe,a=e.options,r=e.children,o=t.useMemo(function(){return F(n,ae)},[n]),i=t.useRef(null),s=t.useRef(null),c=l(t.useState({embeddedCheckout:null}),2),u=c[0],d=c[1];t.useEffect(function(){if(!s.current&&!i.current){var e=function(e){s.current||i.current||(s.current=e,i.current=s.current.initEmbeddedCheckout(a).then(function(e){d({embeddedCheckout:e})}))};"async"!==o.tag||s.current||!a.clientSecret&&!a.fetchClientSecret?"sync"!==o.tag||s.current||!a.clientSecret&&!a.fetchClientSecret||e(
2o.stripe):o.stripePromise.then(function(t){t&&e(t)})}},[o,a,u,s]),t.useEffect(function(){return function(){u.embeddedCheckout?(i.current=null,u.embeddedCheckout.destroy()):i.current&&i.current.then(function(){i.current=null,u.embeddedCheckout&&u.embeddedCheckout.destroy()})}},[u.embeddedCheckout]),t.useEffect(function(){O(s)},[s]);var h=C(n);t.useEffect(function(){null!==h&&h!==n&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the `stripe` prop after setting it.")},[h,n]);var p=C(a);return t.useEffect(function(){null!=p&&(null!=a?(void 0===a.clientSecret&&void 0===a.fetchClientSecret&&console.warn("Invalid props passed to EmbeddedCheckoutProvider: You must provide one of either `options.fetchClientSecret` or `options.clientSecret`."),null!=p.clientSecret&&a.clientSecret!==p.clientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the client secret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),null!=p.fetchClientSecret&&a.fetchClientSecret!==p.fetchClientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change fetchClientSecret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),null!=p.onComplete&&a.onComplete!==p.onComplete&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onComplete option after setting it."),null!=p.onShippingDetailsChange&&a.onShippingDetailsChange!==p.onShippingDetailsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onShippingDetailsChange option after setting it."),null!=p.onLineItemsChange&&a.onLineItemsChange!==p.onLineItemsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onLineItemsChange option after setting it.")):console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot unset options after setting them."))},[p,a]),t.createElement(te.Provider,{value:u},r)},oe=function(e){var n=e.id,a=e.className,r=ne().embeddedCheckout,o=t.useRef(!1),i=t.useRef(null);return t.useLayoutEffect(function(){return!o.current&&r&&null!==i.current&&(r.mount(i.current),o.current=!0),function(){if(o.current&&r)try{r.unmount(),o.current=!1}catch(e){}}},[r]),t.createElement("div",{ref:i,id:n,className:a})},ie=function(e){var n=e.id,a=e.className;return ne(),t.createElement("div",{id:n,className:a})},se=ee?ie:oe,le=function(){return J("calls useStripe()").stripe},ce=Z("auBankAccount",ee),ue=Z("card",ee),de=Z("cardNumber",ee),he=Z("cardExpiry",ee),pe=Z("cardCvc",ee),fe=Z("fpxBank",ee),me=Z("iban",ee),ge=Z("idealBank",ee),ve=Z("p24Bank",ee),ye=Z("epsBank",ee),we=Z("payment",ee),_e=Z("expressCheckout",ee),xe=Z("currencySelector",ee),be=Z("paymentRequestButton",ee),ke=Z("linkAuthentication",ee),Ce=Z("address",ee),De=Z("shippingAddress",ee),Ae=Z("paymentMethodMessaging",ee),Ee=Z("affirmMessage",ee),je=Z("afterpayClearpayMessage",ee),Se=Z("taxId",ee);e.AddressElement=Ce,e.AffirmMessageElement=Ee,e.AfterpayClearpayMessageElement=je,e.AuBankAccountElement=ce,e.CardCvcElement=pe,e.CardElement=ue,e.CardExpiryElement=he,e.CardNumberElement=de,e.CheckoutProvider=Y,e.CurrencySelectorElement=xe,e.Elements=M,e.ElementsConsumer=L,e.EmbeddedCheckout=se,e.EmbeddedCheckoutProvider=re,e.EpsBankElement=ye,e.ExpressCheckoutElement=_e,e.FpxBankElement=fe,e.IbanElement=me,e.IdealBankElement=ge,e.LinkAuthenticationElement=ke,e.P24BankElement=ve,e.PaymentElement=we,e.PaymentMethodMessagingElement=Ae,e.PaymentRequestButtonElement=be,e.ShippingAddressElement=De,e.TaxIdElement=Se,e.useCheckout=$,e.useElements=z,e.useStripe=le}(t,n(5043))},3693(e,t,n){var a=n(7736);e.exports=function(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},3738(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},3757(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isTypedArray=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}},3799(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const a=n(4704),r=n(1203),o=n(870),i=n(9972);t.isIterateeCall=function(e,t,n){return!!o.isObject(n)&&(!!("number"===typeof t&&r.isArrayLike(n)&&a.isIndex(t)&&t<n.length||"string"===typeof t&&t in n)&&i.eq(n[t],e))}},3808(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const a=n(8268),r=n(5261);t.matches=function(e){return e=r.cloneDeep(e),t=>a.isMatch(t,e)}}
2,3821(e,t,n){e.exports=n(2204).sortBy},4004(e,t,n){const a=n(7421),r=n(900),o=n(9642),i=n(8697),s=n(5200),l=n(8511),c=n(7969),u=n(7347);function d(e){return unescape(encodeURIComponent(e)).length}function h(e,t,n){const a=[];let r;for(;null!==(r=e.exec(n));)a.push({data:r[0],index:r.index,mode:t,length:r[0].length});return a}function p(e){const t=h(l.NUMERIC,a.NUMERIC,e),n=h(l.ALPHANUMERIC,a.ALPHANUMERIC,e);let r,o;c.isKanjiModeEnabled()?(r=h(l.BYTE,a.BYTE,e),o=h(l.KANJI,a.KANJI,e)):(r=h(l.BYTE_KANJI,a.BYTE,e),o=[]);return t.concat(n,r,o).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function f(e,t){switch(t){case a.NUMERIC:return r.getBitsLength(e);case a.ALPHANUMERIC:return o.getBitsLength(e);case a.KANJI:return s.getBitsLength(e);case a.BYTE:return i.getBitsLength(e)}}function m(e,t){let n;const l=a.getBestModeForData(e);if(n=a.from(t,l),n!==a.BYTE&&n.bit<l.bit)throw new Error('"'+e+'" cannot be encoded with mode '+a.toString(n)+".\n Suggested mode is: "+a.toString(l));switch(n!==a.KANJI||c.isKanjiModeEnabled()||(n=a.BYTE),n){case a.NUMERIC:return new r(e);case a.ALPHANUMERIC:return new o(e);case a.KANJI:return new s(e);case a.BYTE:return new i(e)}}t.fromArray=function(e){return e.reduce(function(e,t){return"string"===typeof t?e.push(m(t,null)):t.data&&e.push(m(t.data,t.mode)),e},[])},t.fromString=function(e,n){const r=function(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];switch(r.mode){case a.NUMERIC:t.push([r,{data:r.data,mode:a.ALPHANUMERIC,length:r.length},{data:r.data,mode:a.BYTE,length:r.length}]);break;case a.ALPHANUMERIC:t.push([r,{data:r.data,mode:a.BYTE,length:r.length}]);break;case a.KANJI:t.push([r,{data:r.data,mode:a.BYTE,length:d(r.data)}]);break;case a.BYTE:t.push([{data:r.data,mode:a.BYTE,length:d(r.data)}])}}return t}(p(e,c.isKanjiModeEnabled())),o=function(e,t){const n={},r={start:{}};let o=["start"];for(let i=0;i<e.length;i++){const s=e[i],l=[];for(let e=0;e<s.length;e++){const c=s[e],u=""+i+e;l.push(u),n[u]={node:c,lastCount:0},r[u]={};for(let e=0;e<o.length;e++){const i=o[e];n[i]&&n[i].node.mode===c.mode?(r[i][u]=f(n[i].lastCount+c.length,c.mode)-f(n[i].lastCount,c.mode),n[i].lastCount+=c.length):(n[i]&&(n[i].lastCount=c.length),r[i][u]=f(c.length,c.mode)+4+a.getCharCountIndicator(c.mode,t))}}o=l}for(let a=0;a<o.length;a++)r[o[a]].end=0;return{map:r,table:n}}(r,n),i=u.find_path(o.map,"start","end"),s=[];for(let t=1;t<i.length-1;t++)s.push(o.table[i[t]].node);return t.fromArray(function(e){return e.reduce(function(e,t){const n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}(s))},t.rawSplit=function(e){return t.fromArray(p(e,c.isKanjiModeEnabled()))}},4208(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.uniqBy=function(e,t){const n=new Map;for(let a=0;a<e.length;a++){const r=e[a],o=t(r);n.has(o)||n.set(o,r)}return Array.from(n.values())}},4222(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!==typeof e)return n;const a=(0,r.default)(e),o="function"===typeof t;return a.forEach(e=>{if("declaration"!==e.type)return;const{property:a,value:r}=e;o?t(a,r,e):r&&(n=n||{},n[a]=r)}),n};const r=a(n(8106))},4288(e,t){"use strict";var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),f=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||m}function w(){}function _(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||m}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=y.prototype;var x=_.prototype=new w;x.constructor=_,g(x,y.prototype),x.isPureReactComponent=!0;var b=Array.isArray;function k(){}var C={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function A(e,t,a){var r=a.ref;return{$$typeof:n,type:e,key:t,ref:void 0!==r?r:null,props:a}}function E(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var j=/\/+/g;function S(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function N(e,t,r,o,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l,c,u=!1;if(null===e)u=!0;else switch(s){case"bigint":case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case a:u=!0;break;case h:return N((u=e._init)(e._payload),t,r,o,i)}}if(u)return i=i(e),u=""===o?"."+S(e,0):o,b(i)?(r="",null!=u&&(r=u.replace(j,"$&/")+"/"),N(i,t,r,"",function(e){return e})):null!=i&&(E(i)&&(l=i,c=r+(null==i.key||e&&e.key===i.key?"":(""+i.key).replace(j,"$&/")+"/")+u,i=A(l.type,c,l.props)),t.push(i)),1;u=0;var d,p=""===o?".":o+":";if(b(e))for(var m=0;m<e.length;m++)u+=N(o=e[m],t,r,s=p+S(o,m),i);else if("function"===typeof(m=null===(d=e)||"object"!==typeof d?null:"function"===typeof(d=f&&d[f]||d["@@iterator"])?d:null))for(e=m.call(e),m=0;!(o=e.next()).done;)u+=N(o=o.value,t,r,s=p+S(o,m++),i);else if("object"===s){if("function"===typeof e.then)return N(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"===typeof e.status?e.then(k,k):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,r,o,i);throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return u}function P(e,t,n){if(null==e)return e;var a=[],r=0;return N(e,a,"","",function(e){return t.call(n,e,r++)}),a}function T(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var F="function"===typeof reportError?reportError:function(e){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof e&&null!==e&&"string"===typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"===typeof process&&"function"===typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},O={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};t.Activity=p,t.Children=O,t.Component=y,t.Fragment=r,t.Profiler=i,t.PureComponent=_,t.StrictMode=o,t.Suspense=u,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return C.H.useMemoCache(e)}}
2,t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cacheSignal=function(){return null},t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error("The argument must be a React element, but you passed "+e+".");var a=g({},e.props),r=e.key;if(null!=t)for(o in void 0!==t.key&&(r=""+t.key),t)!D.call(t,o)||"key"===o||"__self"===o||"__source"===o||"ref"===o&&void 0===t.ref||(a[o]=t[o]);var o=arguments.length-2;if(1===o)a.children=n;else if(1<o){for(var i=Array(o),s=0;s<o;s++)i[s]=arguments[s+2];a.children=i}return A(e.type,r,a)},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:s,_context:e},e},t.createElement=function(e,t,n){var a,r={},o=null;if(null!=t)for(a in void 0!==t.key&&(o=""+t.key),t)D.call(t,a)&&"key"!==a&&"__self"!==a&&"__source"!==a&&(r[a]=t[a]);var i=arguments.length-2;if(1===i)r.children=n;else if(1<i){for(var s=Array(i),l=0;l<i;l++)s[l]=arguments[l+2];r.children=s}if(e&&e.defaultProps)for(a in i=e.defaultProps)void 0===r[a]&&(r[a]=i[a]);return A(e,o,r)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=C.T,n={};C.T=n;try{var a=e(),r=C.S;null!==r&&r(n,a),"object"===typeof a&&null!==a&&"function"===typeof a.then&&a.then(k,F)}catch(o){F(o)}finally{null!==t&&null!==n.types&&(t.types=n.types),C.T=t}},t.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},t.use=function(e){return C.H.use(e)},t.useActionState=function(e,t,n){return C.H.useActionState(e,t,n)},t.useCallback=function(e,t){return C.H.useCallback(e,t)},t.useContext=function(e){return C.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return C.H.useDeferredValue(e,t)},t.useEffect=function(e,t){return C.H.useEffect(e,t)},t.useEffectEvent=function(e){return C.H.useEffectEvent(e)},t.useId=function(){return C.H.useId()},t.useImperativeHandle=function(e,t,n){return C.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return C.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return C.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return C.H.useMemo(e,t)},t.useOptimistic=function(e,t){return C.H.useOptimistic(e,t)},t.useReducer=function(e,t,n){return C.H.useReducer(e,t,n)},t.useRef=function(e){return C.H.useRef(e)},t.useState=function(e){return C.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return C.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return C.H.useTransition()},t.version="19.2.3"},4332(e,t,n){e.exports=n(5053).uniqBy},4391(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(7004)},4566(e){function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){const t=Math.floor(e/8);return 1===(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let n=0;n<t;n++)this.putBit(1===(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},4575(e){"use strict";function t(e){this._maxSize=e,this.clear()}t.prototype.clear=function(){this._size=0,this._values=Object.create(null)},t.prototype.get=function(e){return this._values[e]},t.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,a=/^\d+$/,r=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,i=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new t(512),l=new t(512),c=new t(512);function u(e){return s.get(e)||s.set(e,d(e).map(function(e){return e.replace(i,"$2")}))}function d(e){return e.match(n)||[""]}function h(e){return"string"===typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function p(e){return!h(e)&&(function(e){return e.match(r)&&!e.match(a)}(e)||function(e){return o.test(e)}(e))}e.exports={Cache:t,split:d,normalizePath:u,setter:function(e){var t=u(e);return l.get(e)||l.set(e,function(e,n){for(var a=0,r=t.length,o=e;a<r-1;){var i=t[a];if("__proto__"===i||"constructor"===i||"prototype"===i)return e;o=o[t[a++]]}o[t[a]]=n})},getter:function(e,t){var n=u(e);return c.get(e)||c.set(e,function(e){for(var a=0,r=n.length;a<r;){if(null==e&&t)return;e=e[n[a++]]}return e})},join:function(e){return e.reduce(function(e,t){return e+(h(t)||a.test(t)?"["+t+"]":(e?".":"")+t)},"")}
2,forEach:function(e,t,n){!function(e,t,n){var a,r,o,i,s=e.length;for(r=0;r<s;r++)(a=e[r])&&(p(a)&&(a='"'+a+'"'),o=!(i=h(a))&&/^\d+$/.test(a),t.call(n,a,i,o,r,e))}(Array.isArray(e)?e:d(e),t,n)}}},4661(e){function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,n,a){const r=e*this.size+t;this.data[r]=n,a&&(this.reservedBit[r]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},4704(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=/^(?:0|[1-9]\d*)$/;t.isIndex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_SAFE_INTEGER;switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<t;case"symbol":return!1;case"string":return n.test(e)}}},4772(e,t,n){const a=n(7969),r=n(6272),o=n(4566),i=n(4661),s=n(9382),l=n(9021),c=n(4833),u=n(1805),d=n(8177),h=n(4980),p=n(350),f=n(7421),m=n(4004);function g(e,t,n){const a=e.size,r=p.getEncodedBits(t,n);let o,i;for(o=0;o<15;o++)i=1===(r>>o&1),o<6?e.set(o,8,i,!0):o<8?e.set(o+1,8,i,!0):e.set(a-15+o,8,i,!0),o<8?e.set(8,a-o-1,i,!0):o<9?e.set(8,15-o-1+1,i,!0):e.set(8,15-o-1,i,!0);e.set(a-8,8,1,!0)}function v(e,t,n){const r=new o;n.forEach(function(t){r.put(t.mode.bit,4),r.put(t.getLength(),f.getCharCountIndicator(t.mode,e)),t.write(r)});const i=8*(a.getSymbolTotalCodewords(e)-u.getTotalCodewordsCount(e,t));for(r.getLengthInBits()+4<=i&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const s=(i-r.getLengthInBits())/8;for(let a=0;a<s;a++)r.put(a%2?17:236,8);return function(e,t,n){const r=a.getSymbolTotalCodewords(t),o=u.getTotalCodewordsCount(t,n),i=r-o,s=u.getBlocksCount(t,n),l=r%s,c=s-l,h=Math.floor(r/s),p=Math.floor(i/s),f=p+1,m=h-p,g=new d(m);let v=0;const y=new Array(s),w=new Array(s);let _=0;const x=new Uint8Array(e.buffer);for(let a=0;a<s;a++){const e=a<c?p:f;y[a]=x.slice(v,v+e),w[a]=g.encode(y[a]),v+=e,_=Math.max(_,e)}const b=new Uint8Array(r);let k,C,D=0;for(k=0;k<_;k++)for(C=0;C<s;C++)k<y[C].length&&(b[D++]=y[C][k]);for(k=0;k<m;k++)for(C=0;C<s;C++)b[D++]=w[C][k];return b}(r,e,t)}function y(e,t,n,r){let o;if(Array.isArray(e))o=m.fromArray(e);else{if("string"!==typeof e)throw new Error("Invalid data");{let a=t;if(!a){const t=m.rawSplit(e);a=h.getBestVersionForData(t,n)}o=m.fromString(e,a||40)}}const u=h.getBestVersionForData(o,n);if(!u)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<u)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+u+".\n")}else t=u;const d=v(t,n,o),p=a.getSymbolSize(t),f=new i(p);return function(e,t){const n=e.size,a=l.getPositions(t);for(let r=0;r<a.length;r++){const t=a[r][0],o=a[r][1];for(let a=-1;a<=7;a++)if(!(t+a<=-1||n<=t+a))for(let r=-1;r<=7;r++)o+r<=-1||n<=o+r||(a>=0&&a<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===a||6===a)||a>=2&&a<=4&&r>=2&&r<=4?e.set(t+a,o+r,!0,!0):e.set(t+a,o+r,!1,!0))}}(f,t),function(e){const t=e.size;for(let n=8;n<t-8;n++){const t=n%2===0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}(f),function(e,t){const n=s.getPositions(t);for(let a=0;a<n.length;
2a++){const t=n[a][0],r=n[a][1];for(let n=-2;n<=2;n++)for(let a=-2;a<=2;a++)-2===n||2===n||-2===a||2===a||0===n&&0===a?e.set(t+n,r+a,!0,!0):e.set(t+n,r+a,!1,!0)}}(f,t),g(f,n,0),t>=7&&function(e,t){const n=e.size,a=h.getEncodedBits(t);let r,o,i;for(let s=0;s<18;s++)r=Math.floor(s/3),o=s%3+n-8-3,i=1===(a>>s&1),e.set(r,o,i,!0),e.set(o,r,i,!0)}(f,t),function(e,t){const n=e.size;let a=-1,r=n-1,o=7,i=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(r,s-n)){let a=!1;i<t.length&&(a=1===(t[i]>>>o&1)),e.set(r,s-n,a),o--,-1===o&&(i++,o=7)}if(r+=a,r<0||n<=r){r-=a,a=-a;break}}}(f,d),isNaN(r)&&(r=c.getBestMask(f,g.bind(null,f,n))),c.applyMask(r,f),g(f,n,r),{modules:f,version:t,errorCorrectionLevel:n,maskPattern:r,segments:o}}t.create=function(e,t){if("undefined"===typeof e||""===e)throw new Error("No input text");let n,o,i=r.M;return"undefined"!==typeof t&&(i=r.from(t.errorCorrectionLevel,r.M),n=h.from(t.version),o=c.from(t.maskPattern),t.toSJISFunc&&a.setToSJISFunction(t.toSJISFunc)),y(e,n,i,o)}},4803(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isPrimitive=function(e){return null==e||"object"!==typeof e&&"function"!==typeof e}},4830(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.debounce=function(e,t){let n,{signal:a,edges:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=null;const i=null!=r&&r.includes("leading"),s=null==r||r.includes("trailing"),l=()=>{null!==o&&(e.apply(n,o),n=void 0,o=null)};let c=null;const u=()=>{null!=c&&clearTimeout(c),c=setTimeout(()=>{c=null,s&&l(),d()},t)},d=()=>{null!==c&&(clearTimeout(c),c=null),n=void 0,o=null},h=function(){if(null!==a&&void 0!==a&&a.aborted)return;n=this;for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];o=t;const s=null==c;u(),i&&s&&l()};return h.schedule=u,h.cancel=d,h.flush=()=>{l()},null===a||void 0===a||a.addEventListener("abort",d,{once:!0}),h}},4833(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const n=3,a=3,r=40,o=10;function i(e,n,a){switch(e){case t.Patterns.PATTERN000:return(n+a)%2===0;case t.Patterns.PATTERN001:return n%2===0;case t.Patterns.PATTERN010:return a%3===0;case t.Patterns.PATTERN011:return(n+a)%3===0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(a/3))%2===0;case t.Patterns.PATTERN101:return n*a%2+n*a%3===0;case t.Patterns.PATTERN110:return(n*a%2+n*a%3)%2===0;case t.Patterns.PATTERN111:return(n*a%3+(n+a)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){const t=e.size;let a=0,r=0,o=0,i=null,s=null;for(let l=0;l<t;l++){r=o=0,i=s=null;for(let c=0;c<t;c++){let t=e.get(l,c);t===i?r++:(r>=5&&(a+=n+(r-5)),i=t,r=1),t=e.get(c,l),t===s?o++:(o>=5&&(a+=n+(o-5)),s=t,o=1)}r>=5&&(a+=n+(r-5)),o>=5&&(a+=n+(o-5))}return a},t.getPenaltyN2=function(e){const t=e.size;let n=0;for(let a=0;a<t-1;a++)for(let r=0;r<t-1;r++){const t=e.get(a,r)+e.get(a,r+1)+e.get(a+1,r)+e.get(a+1,r+1);4!==t&&0!==t||n++}return n*a},t.getPenaltyN3=function(e){const t=e.size;let n=0,a=0,o=0;for(let r=0;r<t;r++){a=o=0;for(let i=0;i<t;i++)a=a<<1&2047|e.get(r,i),i>=10&&(1488===a||93===a)&&n++,o=o<<1&2047|e.get(i,r),i>=10&&(1488===o||93===o)&&n++}return n*r},t.getPenaltyN4=function(e){let t=0;const n=e.data.length;for(let a=0;a<n;a++)t+=e.data[a];return Math.abs(Math.ceil(100*t/n/5)-10)*o},t.applyMask=function(e,t){const n=t.size;
2for(let a=0;a<n;a++)for(let r=0;r<n;r++)t.isReserved(r,a)||t.xor(r,a,i(e,r,a))},t.getBestMask=function(e,n){const a=Object.keys(t.Patterns).length;let r=0,o=1/0;for(let i=0;i<a;i++){n(i),t.applyMask(i,e);const a=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(i,e),a<o&&(o=a,r=i)}return r}},4879(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const a=n(6770);t.toFinite=function(e){if(!e)return 0===e?e:0;if((e=a.toNumber(e))===1/0||e===-1/0){return(e<0?-1:1)*Number.MAX_VALUE}return e===e?e:0}},4980(e,t,n){const a=n(7969),r=n(1805),o=n(6272),i=n(7421),s=n(3257),l=a.getBCHDigit(7973);function c(e,t){return i.getCharCountIndicator(e,t)+4}function u(e,t){let n=0;return e.forEach(function(e){const a=c(e.mode,t);n+=a+e.getBitsLength()}),n}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!s.isValid(e))throw new Error("Invalid QR Code version");"undefined"===typeof n&&(n=i.BYTE);const o=8*(a.getSymbolTotalCodewords(e)-r.getTotalCodewordsCount(e,t));if(n===i.MIXED)return o;const l=o-c(n,e);switch(n){case i.NUMERIC:return Math.floor(l/10*3);case i.ALPHANUMERIC:return Math.floor(l/11*2);case i.KANJI:return Math.floor(l/13);case i.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,n){let a;const r=o.from(n,o.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let a=1;a<=40;a++)if(u(e,a)<=t.getCapacity(a,n,i.MIXED))return a}(e,r);if(0===e.length)return 1;a=e[0]}else a=e;return function(e,n,a){for(let r=1;r<=40;r++)if(n<=t.getCapacity(r,a,e))return r}(a.mode,a.getLength(),r)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;a.getBCHDigit(t)-l>=0;)t^=7973<<a.getBCHDigit(t)-l;return e<<12|t}},5043(e,t,n){"use strict";e.exports=n(4288)},5053(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const a=n(4208),r=n(9599),o=n(2104),i=n(2715);t.uniqBy=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.identity;return o.isArrayLikeObject(e)?a.uniqBy(Array.from(e),i.iteratee(t)):[]}},5082(e,t){"use strict";var n=60103,a=60106,r=60107,o=60108,i=60114,s=60109,l=60110,c=60112,u=60113,d=60120,h=60115,p=60116,f=60121,m=60122,g=60117,v=60129,y=60131;if("function"===typeof Symbol&&Symbol.for){var w=Symbol.for;n=w("react.element"),a=w("react.portal"),r=w("react.fragment"),o=w("react.strict_mode"),i=w("react.profiler"),s=w("react.provider"),l=w("react.context"),c=w("react.forward_ref"),u=w("react.suspense"),d=w("react.suspense_list"),h=w("react.memo"),p=w("react.lazy"),f=w("react.block"),m=w("react.server.block"),g=w("react.fundamental"),v=w("react.debug_trace_mode"),y=w("react.legacy_hidden")}function _(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case r:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case p:case h:case s:return e;default:return t}}case a:return t}}}
2t.isFragment=function(e){return _(e)===r}},5200(e,t,n){const a=n(7421),r=n(7969);function o(e){this.mode=a.KANJI,this.data=e}o.getBitsLength=function(e){return 13*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=r.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=o},5261(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const a=n(6433);t.cloneDeep=function(e){return a.cloneDeepWithImpl(e,void 0,e,new Map,void 0)}},5303(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const a=n(2489),r=n(4704),o=n(6321),i=n(1444);t.has=function(e,t){let n;if(n=Array.isArray(t)?t:"string"===typeof t&&a.isDeepKey(t)&&null==(null===e||void 0===e?void 0:e[t])?i.toPath(t):[t],0===n.length)return!1;let s=e;for(let a=0;a<n.length;a++){const e=n[a];if(null==s||!Object.hasOwn(s,e)){if(!((Array.isArray(s)||o.isArguments(s))&&r.isIndex(e)&&e<s.length))return!1}s=s[e]}return!0}},5316(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const a=n(9709),r=n(7043),o=n(1444);t.orderBy=function(e,t,n,i){if(null==e)return[];n=i?void 0:n,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=null==t?[null]:[t]),0===t.length&&(t=[null]),Array.isArray(n)||(n=null==n?[]:[n]),n=n.map(e=>String(e));const s=(e,t)=>{let n=e;for(let a=0;a<t.length&&null!=n;++a)n=n[t[a]];return n},l=t.map(e=>(Array.isArray(e)&&1===e.length&&(e=e[0]),null==e||"function"===typeof e||Array.isArray(e)||r.isKey(e)?e:{key:e,path:o.toPath(e)}));return e.map(e=>({original:e,criteria:l.map(t=>((e,t)=>null==t||null==e?t:"object"===typeof e&&"key"in e?Object.hasOwn(t,e.key)?t[e.key]:s(t,e.path):"function"===typeof e?e(t):Array.isArray(e)?s(t,e):"object"===typeof t?t[e]:t)(t,e))})).slice().sort((e,t)=>{for(let r=0;r<l.length;r++){const o=a.compareValues(e.criteria[r],t.criteria[r],n[r]);if(0!==o)return o}return 0}).map(e=>e.original)}},5414(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const a=n(1293);t.throttle=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{leading:r=!0,trailing:o=!0}=n;return a.debounce(e,t,{leading:r,maxWait:t,trailing:o})}},5487(e,t,n){const a=n(8293);function r(e,t){const n=e.a/255,a=t+'="'+e.hex+'"';return n<1?a+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':a}function o(e,t,n){let a=e+t;return"undefined"!==typeof n&&(a+=" "+n),a}t.render=function(e,t,n){const i=a.getOptions(t),s=e.modules.size,l=e.modules.data,c=s+2*i.margin,u=i.color.light.a?"<path "+r(i.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",d="<path "+r(i.color.dark,"stroke")+' d="'+function(e,t,n){let a="",r=0,i=!1,s=0;for(let l=0;l<e.length;l++){const c=Math.floor(l%t),u=Math.floor(l/t);c||i||(i=!0),e[l]?(s++,l>0&&c>0&&e[l-1]||(a+=i?o("M",c+n,.5+u+n):o("m",r,0),r=0,i=!1),c+1<t&&e[l+1]||(a+=o("h",s),s=0)):r++}return a}(l,s,i.margin)+'"/>',h='viewBox="0 0 '+c+" "+c+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+h+' shape-rendering="crispEdges">'+u+d+"</svg>\n";return"function"===typeof n&&n(null,p),p}},5508(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const a=n(6433),r=n(7599);t.cloneDeepWith=function(e,t){return a.cloneDeepWith(e,(n,o,i,s)=>{const l=null===t||void 0===t?void 0:t(n,o,i,s);if(void 0!==l)return l;if("object"===typeof e)switch(Object.prototype.toString.call(e)){case r.numberTag:case r.stringTag:case r.booleanTag:{const t=new e.constructor(null===e||void 0===e?void 0:e.valueOf());return a.copyProperties(t,e),t}case r.argumentsTag:{const t={};return a.copyProperties(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}})}},5896(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var a=n-1>>>1,r=e[a];if(!(0<o(r,t)))break e;e[a]=t,e[n]=r,n=a}}function a(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var a=0,r=e.length,i=r>>>1;a<i;){var s=2*(a+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<r&&0>o(u,l)?(e[a]=u,e[c]=n,a=c):(e[a]=l,e[s]=n,a=s);else{if(!(c<r&&0>o(u,n)))break e;e[a]=u,e[c]=n,a=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"===typeof performance&&"function"===typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,h=null,p=3,f=!1,m=!1,g=!1,v=!1,y="function"===typeof setTimeout?setTimeout:null,w="function"===typeof clearTimeout?clearTimeout:null,_="undefined"!==typeof setImmediate?setImmediate:null;function x(e){for(var t=a(u);null!==t;){if(null===t.callback)r(u);else{if(!(t.startTime<=e))break;r(u),t.sortIndex=t.expirationTime,n(c,t)}t=a(u)}}function b(e){if(g=!1,x(e),!m)if(null!==a(c))m=!0,C||(C=!0,k());else{var t=a(u);null!==t&&T(b,t.startTime-e)}}var k,C=!1,D=-1,A=5,E=-1;function j(){return!!v||!(t.unstable_now()-E<A)}function S(){if(v=!1,C){var e=t.unstable_now();E=e;var n=!0;try{e:{m=!1,g&&(g=!1,w(D),D=-1),f=!0;var o=p;try{t:{for(x(e),h=a(c);null!==h&&!(h.expirationTime>e&&j());){var i=h.callback;if("function"===typeof i){h.callback=null,p=h.priorityLevel;var s=i(h.expirationTime<=e);if(e=t.unstable_now(),"function"===typeof s){h.callback=s,x(e),n=!0;break t}h===a(c)&&r(c),x(e)}else r(c);h=a(c)}if(null!==h)n=!0;else{var l=a(u);null!==l&&T(b,l.startTime-e),n=!1}}break e}finally{h=null,p=o,f=!1}n=void 0}}finally{n?k():C=!1}}}if("function"===typeof _)k=function(){_(S)};else if("undefined"!==typeof MessageChannel){var N=new MessageChannel,P=N.port2;N.port1.onmessage=S,k=function(){P.postMessage(null)}}else k=function(){y(S,0)};function T(e,n){D=y(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_requestPaint=function(){v=!0},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,r,o){var i=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?i+o:i:o=i,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:r,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>i?(e.sortIndex=o,n(u,e),null===a(c)&&e===a(u)&&(g?(w(D),D=-1):g=!0,T(b,o-i))):(e.sortIndex=s,n(c,e),m||f||(m=!0,C||(C=!0,k()))),e},t.unstable_shouldYield=j,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},5990(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}
2),t.getTag=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}},6116(e){e.exports=function(){return"function"===typeof Promise&&Promise.prototype&&Promise.prototype.then}},6272(e,t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&"undefined"!==typeof e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!==typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(a){return n}}},6321(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const a=n(5990);t.isArguments=function(e){return null!==e&&"object"===typeof e&&"[object Arguments]"===a.getTag(e)}},6392(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.last=function(e){return e[e.length-1]}},6433(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const a=n(6443),r=n(5990),o=n(7599),i=n(4803),s=n(3757);function l(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Map,u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;const d=null===u||void 0===u?void 0:u(e,t,n,a);if(void 0!==d)return d;if(i.isPrimitive(e))return e;if(a.has(e))return a.get(e);if(Array.isArray(e)){const t=new Array(e.length);a.set(e,t);for(let r=0;r<e.length;r++)t[r]=l(e[r],r,n,a,u);return Object.hasOwn(e,"index")&&(t.index=e.index),Object.hasOwn(e,"input")&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){const t=new Map;a.set(e,t);for(const[r,o]of e)t.set(r,l(o,r,n,a,u));return t}if(e instanceof Set){const t=new Set;a.set(e,t);for(const r of e)t.add(l(r,void 0,n,a,u));return t}if("undefined"!==typeof Buffer&&Buffer.isBuffer(e))return e.subarray();if(s.isTypedArray(e)){const t=new(Object.getPrototypeOf(e).constructor)(e.length);a.set(e,t);for(let r=0;r<e.length;r++)t[r]=l(e[r],r,n,a,u);return t}if(e instanceof ArrayBuffer||"undefined"!==typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return a.set(e,t),c(t,e,n,a,u),t}if("undefined"!==typeof File&&e instanceof File){const t=new File([e],e.name,{type:e.type});return a.set(e,t),c(t,e,n,a,u),t}if("undefined"!==typeof Blob&&e instanceof Blob){const t=new Blob([e],{type:e.type});return a.set(e,t),c(t,e,n,a,u),t}if(e instanceof Error){const t=new e.constructor;return a.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,c(t,e,n,a,u),t}if(e instanceof Boolean){const t=new Boolean(e.valueOf());return a.set(e,t),c(t,e,n,a,u),t}if(e instanceof Number){const t=new Number(e.valueOf());return a.set(e,t),c(t,e,n,a,u),t}if(e instanceof String){const t=new String(e.valueOf());return a.set(e,t),c(t,e,n,a,u),t}if("object"===typeof e&&function(e){switch(r.getTag(e)){case o.argumentsTag:case o.arrayTag:case o.arrayBufferTag:case o.dataViewTag:case o.booleanTag:case o.dateTag:case o.float32ArrayTag:case o.float64ArrayTag:case o.int8ArrayTag:case o.int16ArrayTag:case o.int32ArrayTag:case o.mapTag:case o.numberTag:case o.objectTag:case o.regexpTag:case o.setTag:case o.stringTag:case o.symbolTag:case o.uint8ArrayTag:case o.uint8ClampedArrayTag:case o.uint16ArrayTag:case o.uint32ArrayTag:return!0;default:return!1}}(e)){const t=Object.create(Object.getPrototypeOf(e));return a.set(e,t),c(t,e,n,a,u),t}return e}function c(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;const i=[...Object.keys(t),...a.getSymbols(t)];for(let a=0;a<i.length;a++){const s=i[a],c=Object.getOwnPropertyDescriptor(e,s);(null==c||c.writable)&&(e[s]=l(t[s],s,n,r,o))}}t.cloneDeepWith=function(e,t){return l(e,void 0,e,new Map,t)},t.cloneDeepWithImpl=l,t.copyProperties=c},6443(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.getSymbols=function(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}},6496(e,t,n){"use strict";var a,r=n(9989);r.canUseDOM&&(a=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=function(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var i=document.createElement("div");i.setAttribute(n,"return;"),o="function"===typeof i[n]}return!o&&a&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}},6672(e,t,n){"use strict";var a=n(5043);function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var i={d:{f:o,r:function(){throw Error(r(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},s=Symbol.for("react.portal");var l=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){return"font"===e?"":"string"===typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(r(299));return function(e,t,n){var a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:s,key:null==a?null:""+a,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},t.preconnect=function(e,t){"string"===typeof e&&(t?t="string"===typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,i.d.C(e,t))},t.prefetchDNS=function(e){"string"===typeof e&&i.d.D(e)},t.preinit=function(e,t){if("string"===typeof e&&t&&"string"===typeof t.as){var n=t.as,a=c(n,t.crossOrigin),r="string"===typeof t.integrity?t.integrity:void 0,o="string"===typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?i.d.S(e,"string"===typeof t.precedence?t.precedence:void 0,{crossOrigin:a,integrity:r,fetchPriority:o}):"script"===n&&i.d.X(e,{crossOrigin:a,integrity:r,fetchPriority:o,nonce:"string"===typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"===typeof e)if("object"===typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:"string"===typeof t.integrity?t.integrity:void 0,nonce:"string"===typeof t.nonce?t.nonce:void 0})}}else null==t&&i.d.M(e)},t.preload=function(e,t){if("string"===typeof e&&"object"===typeof t&&null!==t&&"string"===typeof t.as){var n=t.as,a=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:a,integrity:"string"===typeof t.integrity?t.integrity:void 0,nonce:"string"===typeof t.nonce?t.nonce:void 0,type:"string"===typeof t.type?t.type:void 0,fetchPriority:"string"===typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"str
2ing"===typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"===typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"===typeof t.imageSizes?t.imageSizes:void 0,media:"string"===typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"===typeof e)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:"string"===typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"===typeof t.integrity?t.integrity:void 0})}else i.d.m(e)},t.requestFormReset=function(e){i.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},t.useFormStatus=function(){return l.H.useHostTransitionStatus()},t.version="19.2.3"},6770(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const a=n(2777);t.toNumber=function(e){return a.isSymbol(e)?NaN:Number(e)}},7004(e,t,n){"use strict";var a=n(8853),r=n(5043),o=n(7950);function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function l(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function c(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function u(e){if(31===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function d(e){if(l(e)!==e)throw Error(i(188))}function h(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=h(e)))return t;e=e.sibling}return null}var p=Object.assign,f=Symbol.for("react.element"),m=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),x=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),A=Symbol.for("react.lazy");Symbol.for("react.scope");var E=Symbol.for("react.activity");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var j=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var S=Symbol.iterator;function N(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=S&&e[S]||e["@@iterator"])?e:null}var P=Symbol.for("react.client.reference");function T(e){if(null==e)return null;if("function"===typeof e)return e.$$typeof===P?null:e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case v:return"Fragment";case w:return"Profiler";case y:return"StrictMode";case k:return"Suspense";case C:return"SuspenseList";case E:return"Activity"}if("object"===typeof e)switch(e.$$typeof){case g:return"Portal";case x:return e.displayName||"Context";case _:return(e._context.displayName||"Context")+".Consumer";case b:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case D:return null!==(t=e.displayName||null)?t:T(e.type)||"Memo";case A:t=e._payload,e=e._init;try{return T(e(t))}catch(n){}}return null}var F=Array.isArray,O=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R={pending:!1,data:null,method:null,action:null},M=[],B=-1;function z(e){return{current:e}}function L(e){0>B||(e.current=M[B],M[B]=null,B--)}function U(e,t){B++,M[B]=e.current,e.current=t}var V,q,H=z(null),W=z(null),K=z(null),Y=z(null);function G(e,t){switch(U(K,t),U(W,e),U(H,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=yd(t=vd(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}L(H),U(H,e)}function J(){L(H),L(W),L(K)}function $(e){null!==e.memoizedState&&U(Y,e);var t=H.current,n=yd(t,e.type);t!==n&&(U(W,e),U(H,n))}function Q(e){W.current===e&&(L(H),L(W)),Y.current===e&&(L(Y),uh._currentValue=R)}function X(e){if(void 0===V)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);V=t&&t[1]||"",q=-1<n.stack.indexOf("\n    at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+V+e+q}var Z=!1;function ee(e,t){if(!e||Z)return"";Z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(r){var a=r}Reflect.construct(e,[],n)}
vendor: 5,948 bytes, line 2
2else{try{n.call()}catch(o){a=o}e.call(n.prototype)}}else{try{throw Error()}catch(i){a=i}(n=e())&&"function"===typeof n.catch&&n.catch(function(){})}}catch(s){if(s&&a&&"string"===typeof s.stack)return[s.stack,a.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=a.DetermineComponentFrameRoot(),i=o[0],s=o[1];if(i&&s){var l=i.split("\n"),c=s.split("\n");for(r=a=0;a<l.length&&!l[a].includes("DetermineComponentFrameRoot");)a++;for(;r<c.length&&!c[r].includes("DetermineComponentFrameRoot");)r++;if(a===l.length||r===c.length)for(a=l.length-1,r=c.length-1;1<=a&&0<=r&&l[a]!==c[r];)r--;for(;1<=a&&0<=r;a--,r--)if(l[a]!==c[r]){if(1!==a||1!==r)do{if(a--,0>--r||l[a]!==c[r]){var u="\n"+l[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=a&&0<=r);break}}}finally{Z=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?X(n):""}function te(e,t){switch(e.tag){case 26:case 27:case 5:return X(e.type);case 16:return X("Lazy");case 13:return e.child!==t&&null!==t?X("Suspense Fallback"):X("Suspense");case 19:return X("SuspenseList");case 0:case 15:return ee(e.type,!1);case 11:return ee(e.type.render,!1);case 1:return ee(e.type,!0);case 31:return X("Activity");default:return""}}function ne(e){try{var t="",n=null;do{t+=te(e,n),n=e,e=e.return}while(e);return t}catch(a){return"\nError generating stack: "+a.message+"\n"+a.stack}}var ae=Object.prototype.hasOwnProperty,re=a.unstable_scheduleCallback,oe=a.unstable_cancelCallback,ie=a.unstable_shouldYield,se=a.unstable_requestPaint,le=a.unstable_now,ce=a.unstable_getCurrentPriorityLevel,ue=a.unstable_ImmediatePriority,de=a.unstable_UserBlockingPriority,he=a.unstable_NormalPriority,pe=a.unstable_LowPriority,fe=a.unstable_IdlePriority,me=a.log,ge=a.unstable_setDisableYieldValue,ve=null,ye=null;function we(e){if("function"===typeof me&&ge(e),ye&&"function"===typeof ye.setStrictMode)try{ye.setStrictMode(ve,e)}catch(t){}}var _e=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(xe(e)/be|0)|0},xe=Math.log,be=Math.LN2;var ke=256,Ce=262144,De=4194304;function Ae(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ee(e,t,n){var a=e.pendingLanes;if(0===a)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var s=134217727&a;return 0!==s?0!==(a=s&~o)?r=Ae(a):0!==(i&=s)?r=Ae(i):n||0!==(n=s&~e)&&(r=Ae(n)):0!==(s=a&~o)?r=Ae(s):0!==i?r=Ae(i):n||0!==(n=a&~e)&&(r=Ae(n)),0===r?0:0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(n=t&-t)||32===o&&0!==(4194048&n))?t:r}function je(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Se(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Ne(){var e=De;return 0===(62914560&(De<<=1))&&(De=4194304),e}function Pe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Te(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Fe(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-_e(t);e.entangledLanes|=t,e.entanglements[a]=1073741824|e.entanglements[a]|261930&n}function Oe(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-_e(n),r=1<<a;r&t|e[a]&t&&(e[a]|=t),n&=~r}}function Ie(e,t){var n=t&-t;return 0!==((n=0!==(42&n)?1:Re(n))&(e.suspendedLanes|t))?0:n}function Re(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Me(e){return 2<(e&=-e)?8<e?0!==(134217727&e)?32:268435456:8:2}function Be(){var e=I.p;return 0!==e?e:void 0===(e=window.event)?32:Ah(e.type)}function ze(e,t){var n=I.p;try{return I.p=e,t()}finally{I.p=n}}var Le=Math.random().toString(36).slice(2),Ue="__reactFiber$"+Le,Ve="__reactProps$"+Le,qe="__reactContainer$"+Le,He="__reactEvents$"+Le,We="__reactListeners$"+Le,Ke="__reactHandles$"+Le,Ye="__reactResources$"+Le,Ge="__reactMarker$"+Le;function Je(e){delete e[Ue],delete e[Ve],delete e[He],delete e[We],delete e[Ke]}function $e(e){var t=e[Ue];if(t)return t;for(var n=e.parentNode;n;){if(t=n[qe]||n[Ue]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Rd(e);null!==e;){if(n=e[Ue])return n;e=Rd(e)}return t}n=(e=n).parentNode}return null}function Qe(e){if(e=e[Ue]||e[qe]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function Xe(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(i(33))}function Ze(e){var t=e[Ye];return t||(t=e[Ye]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[Ge]=!0}var tt=new Set,nt={};function at(e,t){rt(e,t),rt(e+"Capture",t)}function rt(e,t){for(nt[e]=t,e=0;e<t.length;e++)tt.add(t[e])}var ot=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
2037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),it={},st={};function lt(e,t,n){if(r=t,ae.call(st,r)||!ae.call(it,r)&&(ot.test(r)?st[r]=!0:(it[r]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var a=t.toLowerCase().slice(0,5);if("data-"!==a&&"aria-"!==a)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var r}function ct(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function ut(e,t,n,a){if(null===a)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+a)}}function dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ht(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function pt(e){if(!e._valueTracker){var t=ht(e)?"checked":"value";e._valueTracker=function(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&"undefined"!==typeof a&&"function"===typeof a.get&&"function"===typeof a.set){var r=a.get,o=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){n=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e,t,""+e[t])}}function ft(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=ht(e)?e.checked?"true":"false":e.value),(e=a)!==n&&(t.setValue(e),!0)}function mt(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var gt=/[\n"\\]/g;function vt(e){return e.replace(gt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function yt(e,t,n,a,r,o,i,s){e.name="",null!=i&&"function"!==typeof i&&"symbol"!==typeof i&&"boolean"!==typeof i?e.type=i:e.removeAttribute("type"),null!=t?"number"===i?(0===t&&""===e.value||e.value!=t)&&(e.value=""+dt(t)):e.value!==""+dt(t)&&(e.value=""+dt(t)):"submit"!==i&&"reset"!==i||e.removeAttribute("value"),null!=t?_t(e,i,dt(t)):null!=n?_t(e,i,dt(n)):null!=a&&e.removeAttribute("value"),null==r&&null!=o&&(e.defaultChecked=!!o),null!=r&&(e.checked=r&&"function"!==typeof r&&"symbol"!==typeof r),null!=s&&"function"!==typeof s&&"symbol"!==typeof s&&"boolean"!==typeof s?e.name=""+dt(s):e.removeAttribute("name")}function wt(e,t,n,a,r,o,i,s){if(null!=o&&"function"!==typeof o&&"symbol"!==typeof o&&"boolean"!==typeof o&&(e.type=o),null!=t||null!=n){if(!("submit"!==o&&"reset"!==o||void 0!==t&&null!==t))return void pt(e);n=null!=n?""+dt(n):"",t=null!=t?""+dt(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}a="function"!==typeof(a=null!=a?a:r)&&"symbol"!==typeof a&&!!a,e.checked=s?e.checked:!!a,e.defaultChecked=!!a,null!=i&&"function"!==typeof i&&"symbol"!==typeof i&&"boolean"!==typeof i&&(e.name=i),pt(e)}function _t(e,t,n){"number"===t&&mt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function xt(e,t,n,a){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&a&&(e[n].defaultSelected=!0)}else{for(n=""+dt(n),t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(a&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function bt(e,t,n){null==t||((t=""+dt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+dt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}
vendor: 4,421 bytes, line 2
2function kt(e,t,n,a){if(null==t){if(null!=a){if(null!=n)throw Error(i(92));if(F(a)){if(1<a.length)throw Error(i(93));a=a[0]}n=a}null==n&&(n=""),t=n}n=dt(t),e.defaultValue=n,(a=e.textContent)===n&&""!==a&&null!==a&&(e.value=a),pt(e)}function Ct(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Dt=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function At(e,t,n){var a=0===t.indexOf("--");null==n||"boolean"===typeof n||""===n?a?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":a?e.setProperty(t,n):"number"!==typeof n||0===n||Dt.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Et(e,t,n){if(null!=t&&"object"!==typeof t)throw Error(i(62));if(e=e.style,null!=n){for(var a in n)!n.hasOwnProperty(a)||null!=t&&t.hasOwnProperty(a)||(0===a.indexOf("--")?e.setProperty(a,""):"float"===a?e.cssFloat="":e[a]="");for(var r in t)a=t[r],t.hasOwnProperty(r)&&n[r]!==a&&At(e,r,a)}else for(var o in t)t.hasOwnProperty(o)&&At(e,o,t[o])}function jt(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var St=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
2-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Nt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Pt(e){return Nt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Tt(){}var Ft=null;function Ot(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var It=null,Rt=null;function Mt(e){var t=Qe(e);if(t&&(e=t.stateNode)){var n=e[Ve]||null;e:switch(e=t.stateNode,t.type){case"input":if(yt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+vt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var r=a[Ve]||null;if(!r)throw Error(i(90));yt(a,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)(a=n[t]).form===e.form&&ft(a)}break e;case"textarea":bt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&xt(e,!!n.multiple,t,!1)}}}var Bt=!1;function zt(e,t,n){if(Bt)return e(t,n);Bt=!0;try{return e(t)}finally{if(Bt=!1,(null!==It||null!==Rt)&&(Zc(),It&&(t=It,e=Rt,Rt=It=null,Mt(t),e)))for(t=0;t<e.length;t++)Mt(e[t])}}function Lt(e,t){var n=e.stateNode;if(null===n)return null;var a=n[Ve]||null;if(null===a)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(a=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!a;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}var Ut=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),Vt=!1;if(Ut)try{var qt={};Object.defineProperty(qt,"passive",{get:function(){Vt=!0}}),window.addEventListener("test",qt,qt),window.removeEventListener("test",qt,qt)}catch(Qh){Vt=!1}var Ht=null,Wt=null,Kt=null;function Yt(){if(Kt)return Kt;var e,t,n=Wt,a=n.length,r="value"in Ht?Ht.value:Ht.textContent,o=r.length;for(e=0;e<a&&n[e]===r[e];e++);var i=a-e;for(t=1;t<=i&&n[a-t]===r[o-t];t++);return Kt=r.slice(e,1<t?1-t:void 0)}function Gt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Jt(){return!0}function $t(){return!1}function Qt(e){function t(t,n,a,r,o){for(var i in this._reactName=t,this._targetInst=a,this.type=n,this.nativeEvent=r,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(r):r[i]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?Jt:$t,this.isPropagationStopped=$t,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Jt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Jt)},persist:function(){},isPersistent:Jt}),t}var Xt,Zt,en,tn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nn=Qt(tn),an=p({},tn,{view:0,detail:0}),rn=Qt(an),on=p({},an,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.from
vendor: 4,404 bytes, line 2
2Element===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==en&&(en&&"mousemove"===e.type?(Xt=e.screenX-en.screenX,Zt=e.screenY-en.screenY):Zt=Xt=0,en=e),Xt)},movementY:function(e){return"movementY"in e?e.movementY:Zt}}),sn=Qt(on),ln=Qt(p({},on,{dataTransfer:0})),cn=Qt(p({},an,{relatedTarget:0})),un=Qt(p({},tn,{animationName:0,elapsedTime:0,pseudoElement:0})),dn=Qt(p({},tn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),hn=Qt(p({},tn,{data:0})),pn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},mn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=mn[e])&&!!t[e]}function vn(){return gn}var yn=Qt(p({},an,{key:function(e){if(e.key){var t=pn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Gt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?fn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vn,charCode:function(e){return"keypress"===e.type?Gt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Gt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),wn=Qt(p({},on,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),_n=Qt(p({},an,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vn})),xn=Qt(p({},tn,{propertyName:0,elapsedTime:0,pseudoElement:0})),bn=Qt(p({},on,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),kn=Qt(p({},tn,{newState:0,oldState:0})),Cn=[9,13,27,32],Dn=Ut&&"CompositionEvent"in window,An=null;Ut&&"documentMode"in document&&(An=document.documentMode);var En=Ut&&"TextEvent"in window&&!An,jn=Ut&&(!Dn||An&&8<An&&11>=An),Sn=String.fromCharCode(32),Nn=!1;function Pn(e,t){switch(e){case"keyup":return-1!==Cn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Fn=!1;var On={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function In(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!On[e.type]:"textarea"===t}function Rn(e,t,n,a){It?Rt?Rt.push(a):Rt=[a]:It=a,0<(t=ad(t,"onChange")).length&&(n=new nn("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Mn=null,Bn=null;function zn(e){Ju(e,0)}function Ln(e){if(ft(Xe(e)))return e}function Un(e,t){if("change"===e)return t}var Vn=!1;if(Ut){var qn;if(Ut){var Hn="oninput"in document;if(!Hn){var Wn=document.createElement("div");Wn.setAttribute("oninput","return;"),Hn="function"===typeof Wn.oninput}qn=Hn}else qn=!1;Vn=qn&&(!document.documentMode||9<document.documentMode)}function Kn(){Mn&&(Mn.detachEvent("onpropertychange",Yn),Bn=Mn=null)}function Yn(e){if("value"===e.propertyName&&Ln(Bn)){var t=[];Rn(t,Bn,e,Ot(e)),zt(zn,t)}}function Gn(e,t,n){"focusin"===e?(Kn(),Bn=n,(Mn=t).attachEvent("onpropertychange",Yn)):"focusout"===e&&Kn()}function Jn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Ln(Bn)}function $n(e,t){if("click"===e)return Ln(t)}function Qn(e,t){if("input"===e||"change"===e)return Ln(t)}var Xn="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function Zn(e,t){if(Xn(e,t))return!0;
vendor: 4,243 bytes, line 2
2if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var r=n[a];if(!ae.call(t,r)||!Xn(e[r],t[r]))return!1}return!0}function ea(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ta(e,t){var n,a=ea(e);for(e=0;a;){if(3===a.nodeType){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=ea(a)}}function na(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?na(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function aa(e){for(var t=mt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(a){n=!1}if(!n)break;t=mt((e=t.contentWindow).document)}return t}function ra(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var oa=Ut&&"documentMode"in document&&11>=document.documentMode,ia=null,sa=null,la=null,ca=!1;function ua(e,t,n){var a=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ca||null==ia||ia!==mt(a)||("selectionStart"in(a=ia)&&ra(a)?a={start:a.selectionStart,end:a.selectionEnd}:a={anchorNode:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset},la&&Zn(la,a)||(la=a,0<(a=ad(sa,"onSelect")).length&&(t=new nn("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=ia)))}function da(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ha={animationend:da("Animation","AnimationEnd"),animationiteration:da("Animation","AnimationIteration"),animationstart:da("Animation","AnimationStart"),transitionrun:da("Transition","TransitionRun"),transitionstart:da("Transition","TransitionStart"),transitioncancel:da("Transition","TransitionCancel"),transitionend:da("Transition","TransitionEnd")},pa={},fa={};function ma(e){if(pa[e])return pa[e];if(!ha[e])return e;var t,n=ha[e];for(t in n)if(n.hasOwnProperty(t)&&t in fa)return pa[e]=n[t];return e}Ut&&(fa=document.createElement("div").style,"AnimationEvent"in window||(delete ha.animationend.animation,delete ha.animationiteration.animation,delete ha.animationstart.animation),"TransitionEvent"in window||delete ha.transitionend.transition);var ga=ma("animationend"),va=ma("animationiteration"),ya=ma("animationstart"),wa=ma("transitionrun"),_a=ma("transitionstart"),xa=ma("transitioncancel"),ba=ma("transitionend"),ka=new Map,Ca="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Da(e,t){ka.set(e,t),at(t,[e])}Ca.push("scrollEnd");var Aa="function"===typeof reportError?reportError:function(e){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof e&&null!==e&&"string"===typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"===typeof process&&"function"===typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},Ea=[],ja=0,Sa=0;function Na(){for(var e=ja,t=Sa=ja=0;t<e;){var n=Ea[t];Ea[t++]=null;var a=Ea[t];Ea[t++]=null;var r=Ea[t];Ea[t++]=null;var o=Ea[t];if(Ea[t++]=null,null!==a&&null!==r){var i=a.pending;
vendor: 13,856 bytes, line 2
2null===i?r.next=r:(r.next=i.next,i.next=r),a.pending=r}0!==o&&Oa(n,r,o)}}function Pa(e,t,n,a){Ea[ja++]=e,Ea[ja++]=t,Ea[ja++]=n,Ea[ja++]=a,Sa|=a,e.lanes|=a,null!==(e=e.alternate)&&(e.lanes|=a)}function Ta(e,t,n,a){return Pa(e,t,n,a),Ia(e)}function Fa(e,t){return Pa(e,null,null,t),Ia(e)}function Oa(e,t,n){e.lanes|=n;var a=e.alternate;null!==a&&(a.lanes|=n);for(var r=!1,o=e.return;null!==o;)o.childLanes|=n,null!==(a=o.alternate)&&(a.childLanes|=n),22===o.tag&&(null===(e=o.stateNode)||1&e._visibility||(r=!0)),e=o,o=o.return;return 3===e.tag?(o=e.stateNode,r&&null!==t&&(r=31-_e(n),null===(a=(e=o.hiddenUpdates)[r])?e[r]=[t]:a.push(t),t.lane=536870912|n),o):null}function Ia(e){if(50<Hc)throw Hc=0,Wc=null,Error(i(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Ra={};function Ma(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ba(e,t,n,a){return new Ma(e,t,n,a)}function za(e){return!(!(e=e.prototype)||!e.isReactComponent)}function La(e,t){var n=e.alternate;return null===n?((n=Ba(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=65011712&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Ua(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Va(e,t,n,a,r,o){var s=0;if(a=e,"function"===typeof e)za(e)&&(s=1);else if("string"===typeof e)s=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!==typeof t.precedence||"string"!==typeof t.href||""===t.href)break;return!0;case"link":if("string"!==typeof t.rel||"string"!==typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"===typeof t.precedence&&null==e);case"script":if(t.async&&"function"!==typeof t.async&&"symbol"!==typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"===typeof t.src)return!0}return!1}(e,n,H.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case E:return(e=Ba(31,n,t,r)).elementType=E,e.lanes=o,e;case v:return qa(n.children,r,o,t);case y:s=8,r|=24;break;case w:return(e=Ba(12,n,t,2|r)).elementType=w,e.lanes=o,e;case k:return(e=Ba(13,n,t,r)).elementType=k,e.lanes=o,e;case C:return(e=Ba(19,n,t,r)).elementType=C,e.lanes=o,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case x:s=10;break e;case _:s=9;break e;case b:s=11;break e;case D:s=14;break e;case A:s=16,a=null;break e}s=29,n=Error(i(130,null===e?"null":typeof e,"")),a=null}return(t=Ba(s,n,t,r)).elementType=e,t.type=a,t.lanes=o,t}function qa(e,t,n,a){return(e=Ba(7,e,a,t)).lanes=n,e}function Ha(e,t,n){return(e=Ba(6,e,null,t)).lanes=n,e}function Wa(e){var t=Ba(18,null,null,0);return t.stateNode=e,t}function Ka(e,t,n){return(t=Ba(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ya=new WeakMap;function Ga(e,t){if("object"===typeof e&&null!==e){var n=Ya.get(e);return void 0!==n?n:(t={value:e,source:t,stack:ne(t)},Ya.set(e,t),t)}return{value:e,source:t,stack:ne(t)}}var Ja=[],$a=0,Qa=null,Xa=0,Za=[],er=0,tr=null,nr=1,ar="";function rr(e,t){Ja[$a++]=Xa,Ja[$a++]=Qa,Qa=e,Xa=t}function or(e,t,n){Za[er++]=nr,Za[er++]=ar,Za[er++]=tr,tr=e;var a=nr;e=ar;var r=32-_e(a)-1;a&=~(1<<r),n+=1;var o=32-_e(t)+r;if(30<o){var i=r-r%5;o=(a&(1<<i)-1).toString(32),a>>=i,r-=i,nr=1<<32-_e(t)+r|n<<r|a,ar=o+e}else nr=1<<o|n<<r|a,ar=e}function ir(e){null!==e.return&&(rr(e,1),or(e,1,0))}function sr(e){for(;e===Qa;)Qa=Ja[--$a],Ja[$a]=null,Xa=Ja[--$a],Ja[$a]=null;for(;e===tr;)tr=Za[--er],Za[er]=null,ar=Za[--er],Za[er]=null,nr=Za[--er],Za[er]=null}function lr(e,t){Za[er++]=nr,Za[er++]=ar,Za[er++]=tr,nr=t.id,ar=t.overflow,tr=e}var cr=null,ur=null,dr=!1,hr=null,pr=!1,fr=Error(i(519));function mr(e){throw xr(Ga(Error(i(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),fr}function gr(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[Ue]=e,t[Ve]=a,n){case"dialog":$u("cancel",t),$u("close",t);break;case"iframe":case"object":case"embed":$u("load",t);break;case"video":case"audio":for(n=0;n<Yu.length;n++)$u(Yu[n],t);break;case"source":$u("error",t);break;case"img":case"image":case"link":$u("error",t),$u("load",t);break;case"details":$u("toggle",t);break;case"input":$u("invalid",t),wt(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":$u("invalid",t);break;case"textarea":$u("invalid",t),kt(t,a.value,a.defaultValue,a.children)}"string"!==typeof(n=a.children)&&"number"!==typeof n&&"bigint"!==typeof n||t.textContent===""+n||!0===a.suppressHydrationWarning||cd(t.textContent,n)?(null!=a.popover&&($u("beforetoggle",t),$u("toggle",t)),null!=a.onScroll&&$u("scroll",t),null!=a.onScrollEnd&&$u("scrollend",t),null!=a.onClick&&(t.onclick=Tt),t=!0):t=!1,t||mr(e,!0)}function vr(e){for(cr=e.return;cr;)switch(cr.tag){case 5:case 31:case 13:return void(pr=!1);case 27:case 3:return void(pr=!0);default:cr=cr.return}}function yr(e){if(e!==cr)return!1;if(!dr)return vr(e),dr=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||wd(e.type,e.memoizedProps)),t=!t),t&&ur&&mr(e),vr(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));ur=Id(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));ur=Id(e)}else 27===n?(n=ur,Ad(e.type)?(e=Od,Od=null,ur=e):ur=n):ur=cr?Fd(e.stateNode.nextSibling):null;return!0}function wr(){ur=cr=null,dr=!1}function _r(){var e=hr;return null!==e&&(null===Nc?Nc=e:Nc.push.apply(Nc,e),hr=null),e}function xr(e){null===hr?hr=[e]:hr.push(e)}var br=z(null),kr=null,Cr=null;function Dr(e,t,n){U(br,t._currentValue),t._currentValue=n}function Ar(e){e._currentValue=br.current,L(br)}function Er(e,t,n){for(;null!==e;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==a&&(a.childLanes|=t)):null!==a&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function jr(e,t,n,a){var r=e.child;for(null!==r&&(r.return=e);null!==r;){var o=r.dependencies;if(null!==o){var s=r.child;o=o.firstContext;e:for(;null!==o;){var l=o;o=r;for(var c=0;c<t.length;c++)if(l.context===t[c]){o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),Er(o.return,n,e),a||(s=null);break e}o=l.next}}else if(18===r.tag){if(null===(s=r.return))throw Error(i(341));s.lanes|=n,null!==(o=s.alternate)&&(o.lanes|=n),Er(s,n,e),s=null}else s=r.child;if(null!==s)s.return=r;else for(s=r;null!==s;){if(s===e){s=null;break}if(null!==(r=s.sibling)){r.return=s.return,s=r;break}s=s.return}r=s}}function Sr(e,t,n,a){e=null;for(var r=t,o=!1;null!==r;){if(!o)if(0!==(524288&r.flags))o=!0;else if(0!==(262144&r.flags))break;if(10===r.tag){var s=r.alternate;if(null===s)throw Error(i(387));if(null!==(s=s.memoizedProps)){var l=r.type;Xn(r.pendingProps.value,s.value)||(null!==e?e.push(l):e=[l])}}else if(r===Y.current){if(null===(s=r.alternate))throw Error(i(387));s.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(null!==e?e.push(uh):e=[uh])}r=r.return}null!==e&&jr(t,e,n,a),t.flags|=262144}function Nr(e){for(e=e.firstContext;null!==e;){if(!Xn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Pr(e){kr=e,Cr=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Tr(e){return Or(kr,e)}function Fr(e,t){return null===kr&&Pr(e),Or(e,t)}function Or(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===Cr){if(null===e)throw Error(i(308));Cr=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Cr=Cr.next=t;return n}var Ir="undefined"!==typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Rr=a.unstable_scheduleCallback,Mr=a.unstable_NormalPriority,Br={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zr(){return{controller:new Ir,data:new Map,refCount:0}}function Lr(e){e.refCount--,0===e.refCount&&Rr(Mr,function(){e.controller.abort()})}var Ur=null,Vr=0,qr=0,Hr=null;function Wr(){if(0===--Vr&&null!==Ur){null!==Hr&&(Hr.status="fulfilled");var e=Ur;Ur=null,qr=0,Hr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Kr=O.S;O.S=function(e,t){Fc=le(),"object"===typeof t&&null!==t&&"function"===typeof t.then&&function(e,t){if(null===Ur){var n=Ur=[];Vr=0,qr=Vu(),Hr={status:"pending",value:void 0,then:function(e){n.push(e)}}}Vr++,t.then(Wr,Wr)}(0,t),null!==Kr&&Kr(e,t)};var Yr=z(null);function Gr(){var e=Yr.current;return null!==e?e:fc.pooledCache}function Jr(e,t){U(Yr,null===t?Yr.current:t.pool)}function $r(){var e=Gr();return null===e?null:{parent:Br._currentValue,pool:e}}var Qr=Error(i(460)),Xr=Error(i(474)),Zr=Error(i(542)),eo={then:function(){}};function to(e){return"fulfilled"===(e=e.status)||"rejected"===e}function no(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(Tt,Tt),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw io(e=t.reason),e;default:if("string"===typeof t.status)t.then(Tt,Tt);else{if(null!==(e=fc)&&100<e.shellSuspendCounter)throw Error(i(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw io(e=t.reason),e}throw ro=t,Qr}}function ao(e){try{return(0,e._init)(e._payload)}catch(t){if(null!==t&&"object"===typeof t&&"function"===typeof t.then)throw ro=t,Qr;throw t}}var ro=null;function oo(){if(null===ro)throw Error(i(459));var e=ro;return ro=null,e}function io(e){if(e===Qr||e===Zr)throw Error(i(483))}var so=null,lo=0;function co(e){var t=lo;return lo+=1,null===so&&(so=[]),no(so,e,t)}function uo(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function ho(e,t){if(t.$$typeof===f)throw Error(i(525));throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function po(e){function t(t,n){if(e){var a=t.deletions;null===a?(t.deletions=[n],t.flags|=16):a.push(n)}}function n(n,a){if(!e)return null;for(;null!==a;)t(n,a),a=a.sibling;return null}function a(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function r(e,t){return(e=La(e,t)).index=0,e.sibling=null,e}function o(t,n,a){return t.index=a,e?null!==(a=t.alternate)?(a=a.index)<n?(t.flags|=67108866,n):a:(t.flags|=67108866,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function l(e,t,n,a){return null===t||6!==t.tag?((t=Ha(n,e.mode,a)).return=e,t):((t=r(t,n)).return=e,t)}function c(e,t,n,a){var o=n.type;return o===v?d(e,t,n.props.children,a,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===A&&ao(o)===t.type)?(uo(t=r(t,n.props),n),t.return=e,t):(uo(t=Va(n.type,n.key,n.props,null,e.mode,a),n),t.return=e,t)}function u(e,t,n,a){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ka(n,e.mode,a)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function d(e,t,n,a,o){return null===t||7!==t.tag?((t=qa(n,e.mode,a,o)).return=e,t):((t=r(t,n)).return=e,t)}function h(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t||"bigint"===typeof t)return(t=Ha(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case m:return uo(n=Va(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case g:return(t=Ka(t,e.mode,n)).return=e,t;case A:return h(e,t=ao(t),n)}if(F(t)||N(t))return(t=qa(t,e.mode,n,null)).return=e,t;if("function"===typeof t.then)return h(e,co(t),n);if(t.$$typeof===x)return h(e,Fr(e,t),n);ho(e,t)}return null}function p(e,t,n,a){var r=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n||"bigint"===typeof n)return null!==r?null:l(e,t,""+n,a);if("object"===typeof n&&null!==n){switch(n.$$typeof){case m:return n.key===r?c(e,t,n,a):null;case g:return n.key===r?u(e,t,n,a):null;case A:return p(e,t,n=ao(n),a)}if(F(n)||N(n))return null!==r?null:d(e,t,n,a,null);if("function"===typeof n.then)return p(e,t,co(n),a);if(n.$$typeof===x)return p(e,t,Fr(e,n),a);ho(e,n)}return null}function f(e,t,n,a,r){if("string"===typeof a&&""!==a||"number"===typeof a||"bigint"===typeof a)return l(t,e=e.get(n)||null,""+a,r);if("object"===typeof a&&null!==a){switch(a.$$typeof){case m:return c(t,e=e.get(null===a.key?n:a.key)||null,a,r);case g:return u(t,e=e.get(null===a.key?n:a.key)||null,a,r);case A:return f(e,t,n,a=ao(a),r)}if(F(a)||N(a))return d(t,e=e.get(n)||null,a,r,null);if("function"===typeof a.then)return f(e,t,n,co(a),r);
vendor: 9,589 bytes, line 2
2if(a.$$typeof===x)return f(e,t,n,Fr(t,a),r);ho(t,a)}return null}function y(l,c,u,d){if("object"===typeof u&&null!==u&&u.type===v&&null===u.key&&(u=u.props.children),"object"===typeof u&&null!==u){switch(u.$$typeof){case m:e:{for(var w=u.key;null!==c;){if(c.key===w){if((w=u.type)===v){if(7===c.tag){n(l,c.sibling),(d=r(c,u.props.children)).return=l,l=d;break e}}else if(c.elementType===w||"object"===typeof w&&null!==w&&w.$$typeof===A&&ao(w)===c.type){n(l,c.sibling),uo(d=r(c,u.props),u),d.return=l,l=d;break e}n(l,c);break}t(l,c),c=c.sibling}u.type===v?((d=qa(u.props.children,l.mode,d,u.key)).return=l,l=d):(uo(d=Va(u.type,u.key,u.props,null,l.mode,d),u),d.return=l,l=d)}return s(l);case g:e:{for(w=u.key;null!==c;){if(c.key===w){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(l,c.sibling),(d=r(c,u.children||[])).return=l,l=d;break e}n(l,c);break}t(l,c),c=c.sibling}(d=Ka(u,l.mode,d)).return=l,l=d}return s(l);case A:return y(l,c,u=ao(u),d)}if(F(u))return function(r,i,s,l){for(var c=null,u=null,d=i,m=i=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(r,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(r,d),i=o(v,i,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===s.length)return n(r,d),dr&&rr(r,m),c;if(null===d){for(;m<s.length;m++)null!==(d=h(r,s[m],l))&&(i=o(d,i,m),null===u?c=d:u.sibling=d,u=d);return dr&&rr(r,m),c}for(d=a(d);m<s.length;m++)null!==(g=f(d,r,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=o(g,i,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(r,e)}),dr&&rr(r,m),c}(l,c,u,d);if(N(u)){if("function"!==typeof(w=N(u)))throw Error(i(150));return function(r,s,l,c){if(null==l)throw Error(i(151));for(var u=null,d=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var w=p(r,m,y.value,c);if(null===w){null===m&&(m=v);break}e&&m&&null===w.alternate&&t(r,m),s=o(w,s,g),null===d?u=w:d.sibling=w,d=w,m=v}if(y.done)return n(r,m),dr&&rr(r,g),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=h(r,y.value,c))&&(s=o(y,s,g),null===d?u=y:d.sibling=y,d=y);return dr&&rr(r,g),u}for(m=a(m);!y.done;g++,y=l.next())null!==(y=f(m,r,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=o(y,s,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach(function(e){return t(r,e)}),dr&&rr(r,g),u}(l,c,u=w.call(u),d)}if("function"===typeof u.then)return y(l,c,co(u),d);if(u.$$typeof===x)return y(l,c,Fr(l,u),d);ho(l,u)}return"string"===typeof u&&""!==u||"number"===typeof u||"bigint"===typeof u?(u=""+u,null!==c&&6===c.tag?(n(l,c.sibling),(d=r(c,u)).return=l,l=d):(n(l,c),(d=Ha(u,l.mode,d)).return=l,l=d),s(l)):n(l,c)}return function(e,t,n,a){try{lo=0;var r=y(e,t,n,a);return so=null,r}catch(i){if(i===Qr||i===Zr)throw i;var o=Ba(29,i,null,e.mode);return o.lanes=a,o.return=e,o}}}var fo=po(!0),mo=po(!1),go=!1;function vo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function wo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function _o(e,t,n){var a=e.updateQueue;if(null===a)return null;if(a=a.shared,0!==(2&pc)){var r=a.pending;return null===r?t.next=t:(t.next=r.next,r.next=t),a.pending=t,t=Ia(e),Oa(e,null,n),t}return Pa(e,a,t,n),Ia(e)}function xo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194048&n))){var a=t.lanes;n|=a&=e.pendingLanes,t.lanes=n,Oe(e,n)}}function bo(e,t){var n=e.updateQueue,a=e.alternate;if(null!==a&&n===(a=a.updateQueue)){var r=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===o?r=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?r=o=t:o=o.next=t}else r=o=t;return n={baseState:a.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:a.shared,callbacks:a.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var ko=!1;function Co(){if(ko){if(null!==Hr)throw Hr}}function Do(e,t,n,a){ko=!1;var r=e.updateQueue;go=!1;var o=r.firstBaseUpdate,i=r.lastBaseUpdate,s=r.shared.pending;if(null!==s){r.shared.pending=null;var l=s,c=l.next;l.next=null,null===i?o=c:i.next=c,i=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=r.baseState;for(i=0,u=c=l=null,s=o;;){var h=-536870913&s.lane,f=h!==s.lane;if(f?(gc&h)===h:(a&h)===h){0!==h&&h===qr&&(ko=!0),null!==u&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var m=e,g=s;h=t;var v=n;switch(g.tag){case 1:if("function"===typeof(m=g.payload)){d=m.call(v,d,h);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null===(h="function"===typeof(m=g.payload)?m.call(v,d,h):m)||void 0===h)break e;d=p({},d,h);break e;case 2:go=!0}}null!==(h=s.callback)&&(e.flags|=64,f&&(e.flags|=8192),null===(f=r.callbacks)?r.callbacks=[h]:f.push(h))}else f={lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=f,l=d):u=u.next=f,i|=h;if(null===(s=s.next)){if(null===(s=r.shared.pending))break;s=(f=s).next,f.next=null,r.lastBaseUpdate=f,r.shared.pending=null}}null===u&&(l=d),r.baseState=l,r.firstBaseUpdate=c,r.lastBaseUpdate=u,null===o&&(r.shared.lanes=0),Cc|=i,e.lanes=i,e.memoizedState=d}}function Ao(e,t){if("function"!==typeof e)throw Error(i(191,e));e.call(t)}function Eo(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Ao(n[e],t)}var jo=z(null),So=z(0);function No(e,t){U(So,e=bc),U(jo,t),bc=e|t.baseLanes}function Po(){U(So,bc),U(jo,jo.current)}function To(){bc=So.current,L(jo),L(So)}var Fo=z(null),Oo=null;function Io(e){var t=e.alternate;U(Lo,1&Lo.current),U(Fo,e),null===Oo&&(null===t||null!==jo.current||null!==t.memoizedState)&&(Oo=e)}function Ro(e){U(Lo,Lo.current),U(Fo,e),null===Oo&&(Oo=e)}function Mo(e){22===e.tag?(U(Lo,Lo.current),U(Fo,e),null===Oo&&(Oo=e)):Bo()}function Bo(){U(Lo,Lo.current),U(Fo,Fo.current)}function zo(e){L(Fo),Oo===e&&(Oo=null),L(Lo)}var Lo=z(0);function Uo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Pd(n)||Td(n)))return t}else if(19!==t.tag||"forwards"!==t.memoizedProps.revealOrder&&"backwards"!==t.memoizedProps.revealOrder&&"unstable_legacy-backwards"!==t.memoizedProps.revealOrder&&"together"!==t.memoizedProps.revealOrder){if(null!==t.child){t.child.return=t,t=t.child;continue}}else if(0!==(128&t.flags))return t;if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Vo=0,qo=null,Ho=null,Wo=null,Ko=!1,Yo=!1,Go=!1,Jo=0,$o=0,Qo=null,Xo=0;function Zo(){throw Error(i(321))}function ei(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Xn(e[n],t[n]))return!1;return!0}function ti(e,t,n,a,r,o){return Vo=o,qo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=null===e||null===e.memoizedState?gs:vs,Go=!1,o=n(a,r),Go=!1,Yo&&(o=ai(t,n,a,r)),ni(e),o}function ni(e){O.H=ms;var t=null!==Ho&&null!==Ho.next;if(Vo=0,Wo=Ho=qo=null,Ko=!1,$o=0,Qo=null,t)throw Error(i(300));null===e||Fs||null!==(e=e.dependencies)&&Nr(e)&&(Fs=!0)}function ai(e,t,n,a){qo=e;var r=0;do{if(Yo&&(Qo=null),$o=0,Yo=!1,25<=r)throw Error(i(301));if(r+=1,Wo=Ho=null,null!=e.updateQueue){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,null!=o.memoCache&&(o.memoCache.index=0)}O.H=ys,o=t(n,a)}while(Yo);return o}function ri(){var e=O.H,t=e.useState()[0];return t="function"===typeof t.then?ui(t):t,e=e.useState()[0],(null!==Ho?Ho.memoizedState:null)!==e&&(qo.flags|=1024),t}function oi(){var e=0!==Jo;return Jo=0,e}function ii(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function si(e){if(Ko){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Ko=!1}Vo=0,Wo=Ho=qo=null,Yo=!1,$o=Jo=0,Qo=null}function li(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Wo?qo.memoizedState=Wo=e:Wo=Wo.next=e,Wo}function ci(){if(null===Ho){var e=qo.alternate;e=null!==e?e.memoizedState:null}else e=Ho.next;var t=null===Wo?qo.memoizedState:Wo.next;if(null!==t)Wo=t,Ho=e;else{if(null===e){if(null===qo.alternate)throw Error(i(467));throw Error(i(310))}e={memoizedState:(Ho=e).memoizedState,baseState:Ho.baseState,baseQueue:Ho.baseQueue,queue:Ho.queue,next:null},null===Wo?qo.memoizedState=Wo=e:Wo=Wo.next=e}return Wo}function ui(e){var t=$o;return $o+=1,null===Qo&&(Qo=[]),e=no(Qo,e,t),t=qo,null===(null===Wo?t.memoizedState:Wo.next)&&(t=t.alternate,O.H=null===t||null===t.memoizedState?gs:vs),e}function di(e){if(null!==e&&"object"===typeof e){if("function"===typeof e.then)return ui(e);if(e.$$typeof===x)return Tr(e)}throw Error(i(438,String(e)))}function hi(e){var t=null,n=qo.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var a=qo.alternate;null!==a&&(null!==(a=a.updateQueue)&&(null!=(a=a.memoCache)&&(t={data:a.data.map(function(e){return e.slice()}),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},qo.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=j;return t.index++,n}function pi(e,t){return"function"===typeof t?t(e):t}function fi(e){return mi(ci(),Ho,e)}
vendor: 6,376 bytes, line 2
2function mi(e,t,n){var a=e.queue;if(null===a)throw Error(i(311));a.lastRenderedReducer=n;var r=e.baseQueue,o=a.pending;if(null!==o){if(null!==r){var s=r.next;r.next=o.next,o.next=s}t.baseQueue=r=o,a.pending=null}if(o=e.baseState,null===r)e.memoizedState=o;else{var l=s=null,c=null,u=t=r.next,d=!1;do{var h=-536870913&u.lane;if(h!==u.lane?(gc&h)===h:(Vo&h)===h){var p=u.revertLane;if(0===p)null!==c&&(c=c.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),h===qr&&(d=!0);else{if((Vo&p)===p){u=u.next,p===qr&&(d=!0);continue}h={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=h,s=o):c=c.next=h,qo.lanes|=p,Cc|=p}h=u.action,Go&&n(o,h),o=u.hasEagerState?u.eagerState:n(o,h)}else p={lane:h,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=p,s=o):c=c.next=p,qo.lanes|=h,Cc|=h;u=u.next}while(null!==u&&u!==t);if(null===c?s=o:c.next=l,!Xn(o,e.memoizedState)&&(Fs=!0,d&&null!==(n=Hr)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=c,a.lastRenderedState=o}return null===r&&(a.lanes=0),[e.memoizedState,a.dispatch]}function gi(e){var t=ci(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var a=n.dispatch,r=n.pending,o=t.memoizedState;if(null!==r){n.pending=null;var s=r=r.next;do{o=e(o,s.action),s=s.next}while(s!==r);Xn(o,t.memoizedState)||(Fs=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,a]}function vi(e,t,n){var a=qo,r=ci(),o=dr;if(o){if(void 0===n)throw Error(i(407));n=n()}else n=t();var s=!Xn((Ho||r).memoizedState,n);if(s&&(r.memoizedState=n,Fs=!0),r=r.queue,Vi(_i.bind(null,a,r,e),[e]),r.getSnapshot!==t||s||null!==Wo&&1&Wo.memoizedState.tag){if(a.flags|=2048,Mi(9,{destroy:void 0},wi.bind(null,a,r,n,t),null),null===fc)throw Error(i(349));o||0!==(127&Vo)||yi(a,t,n)}return n}function yi(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=qo.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},qo.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function wi(e,t,n,a){t.value=n,t.getSnapshot=a,xi(t)&&bi(e)}function _i(e,t,n){return n(function(){xi(t)&&bi(e)})}function xi(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Xn(e,n)}catch(a){return!0}}function bi(e){var t=Fa(e,2);null!==t&&Gc(t,e,2)}function ki(e){var t=li();if("function"===typeof e){var n=e;if(e=n(),Go){we(!0);try{n()}finally{we(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pi,lastRenderedState:e},t}function Ci(e,t,n,a){return e.baseState=n,mi(e,Ho,"function"===typeof a?a:pi)}function Di(e,t,n,a,r){if(hs(e))throw Error(i(485));if(null!==(e=t.action)){var o={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};null!==O.T?n(!0):o.isTransition=!1,a(o),null===(n=t.pending)?(o.next=t.pending=o,Ai(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ai(e,t){var n=t.action,a=t.payload,r=e.state;if(t.isTransition){var o=O.T,i={};O.T=i;try{var s=n(r,a),l=O.S;null!==l&&l(i,s),Ei(e,t,s)}catch(c){Si(e,t,c)}finally{null!==o&&null!==i.types&&(o.types=i.types),O.T=o}}else try{Ei(e,t,o=n(r,a))}catch(u){Si(e,t,u)}}function Ei(e,t,n){null!==n&&"object"===typeof n&&"function"===typeof n.then?n.then(function(n){ji(e,t,n)},function(n){return Si(e,t,n)}):ji(e,t,n)}function ji(e,t,n){t.status="fulfilled",t.value=n,Ni(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,Ai(e,n)))}function Si(e,t,n){var a=e.pending;if(e.pending=null,null!==a){a=a.next;do{t.status="rejected",t.reason=n,Ni(t),t=t.next}while(t!==a)}e.action=null}function Ni(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Pi(e,t){return t}function Ti(e,t){if(dr){var n=fc.formState;if(null!==n){e:{var a=qo;if(dr){if(ur){t:{for(var r=ur,o=pr;8!==r.nodeType;){if(!o){r=null;break t}if(null===(r=Fd(r.nextSibling))){r=null;break t}}r="F!"===(o=r.data)||"F"===o?r:null}if(r){ur=Fd(r.nextSibling),a="F!"===r.data;break e}}mr(a)}a=!1}a&&(t=n[0])}}return(n=li()).memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pi,lastRenderedState:t},n.queue=a,n=cs.bind(null,qo,a),a.dispatch=n,a=ki(!1),o=ds.bind(null,qo,!1,a.queue),r={state:t,dispatch:null,action:e,pending:null},(a=li()).queue=r,n=Di.bind(null,qo,r,o,n),r.dispatch=n,a.memoizedState=e,[t,n,!1]}function Fi(e){return Oi(ci(),Ho,e)}function Oi(e,t,n){if(t=mi(e,t,Pi)[0],e=fi(pi)[0],"object"===typeof t&&null!==t&&"function"===typeof t.then)try{var a=ui(t)}catch(i){if(i===Qr)throw Zr;throw i}else a=t;var r=(t=ci()).queue,o=r.dispatch;return n!==t.memoizedState&&(qo.flags|=2048,Mi(9,{destroy:void 0},Ii.bind(null,r,n),null)),[a,o,e]}function Ii(e,t){e.action=t}function Ri(e){var t=ci(),n=Ho;if(null!==n)return Oi(t,n,e);ci(),t=t.memoizedState;var a=(n=ci()).queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Mi(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},null===(t=qo.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},qo.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function Bi(){return ci().memoizedState}function zi(e,t,n,a){var r=li();qo.flags|=e,r.memoizedState=Mi(1|t,{destroy:void 0},n,void 0===a?null:a)}function Li(e,t,n,a){var r=ci();a=void 0===a?null:a;var o=r.memoizedState.inst;null!==Ho&&null!==a&&ei(a,Ho.memoizedState.deps)?r.memoizedState=Mi(t,o,n,a):(qo.flags|=e,r.memoizedState=Mi(1|t,o,n,a))}function Ui(e,t){zi(8390656,8,e,t)}function Vi(e,t){Li(2048,8,e,t)}function qi(e){var t=ci().memoizedState;return function(e){qo.flags|=4;var t=qo.updateQueue;if(null===t)t={lastEffect:null,events:null,stores:null,memoCache:null},qo.updateQueue=t,t.events=[e];else{var n=t.events;null===n?t.events=[e]:n.push(e)}}({ref:t,nextImpl:e}),function(){if(0!==(2&pc))throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Hi(e,t){return Li(4,2,e,t)}function Wi(e,t){return Li(4,4,e,t)}function Ki(e,t){if("function"===typeof t){e=e();var n=t(e);return function(){"function"===typeof n?n():t(null)}}if(null!==t&&void 0!==t)return e=e(),t.current=e,function(){t.current=null}}
vendor: 13,229 bytes, line 2
2function Yi(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null,Li(4,4,Ki.bind(null,t,e),n)}function Gi(){}function Ji(e,t){var n=ci();t=void 0===t?null:t;var a=n.memoizedState;return null!==t&&ei(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function $i(e,t){var n=ci();t=void 0===t?null:t;var a=n.memoizedState;if(null!==t&&ei(t,a[1]))return a[0];if(a=e(),Go){we(!0);try{e()}finally{we(!1)}}return n.memoizedState=[a,t],a}function Qi(e,t,n){return void 0===n||0!==(1073741824&Vo)&&0===(261930&gc)?e.memoizedState=t:(e.memoizedState=n,e=Yc(),qo.lanes|=e,Cc|=e,n)}function Xi(e,t,n,a){return Xn(n,t)?n:null!==jo.current?(e=Qi(e,n,a),Xn(e,t)||(Fs=!0),e):0===(42&Vo)||0!==(1073741824&Vo)&&0===(261930&gc)?(Fs=!0,e.memoizedState=n):(e=Yc(),qo.lanes|=e,Cc|=e,t)}function Zi(e,t,n,a,r){var o=I.p;I.p=0!==o&&8>o?o:8;var i=O.T,s={};O.T=s,ds(e,!1,t,n);try{var l=r(),c=O.S;if(null!==c&&c(s,l),null!==l&&"object"===typeof l&&"function"===typeof l.then)us(e,t,function(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(a.status="rejected",a.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),a}(l,a),Kc());else us(e,t,a,Kc())}catch(u){us(e,t,{then:function(){},status:"rejected",reason:u},Kc())}finally{I.p=o,null!==i&&null!==s.types&&(i.types=s.types),O.T=i}}function es(){}function ts(e,t,n,a){if(5!==e.tag)throw Error(i(476));var r=ns(e).queue;Zi(e,r,t,R,null===n?es:function(){return as(e),n(a)})}function ns(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:R,baseState:R,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pi,lastRenderedState:R},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pi,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function as(e){var t=ns(e);null===t.next&&(t=e.alternate.memoizedState),us(e,t.next.queue,{},Kc())}function rs(){return Tr(uh)}function os(){return ci().memoizedState}function is(){return ci().memoizedState}function ss(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Kc(),a=_o(t,e=wo(n),n);return null!==a&&(Gc(a,t,n),xo(a,t,n)),t={cache:zr()},void(e.payload=t)}t=t.return}}function ls(e,t,n){var a=Kc();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},hs(e)?ps(t,n):null!==(n=Ta(e,t,n,a))&&(Gc(n,e,a),fs(n,t,a))}function cs(e,t,n){us(e,t,n,Kc())}function us(e,t,n,a){var r={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(hs(e))ps(t,r);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=o(i,n);if(r.hasEagerState=!0,r.eagerState=s,Xn(s,i))return Pa(e,t,r,0),null===fc&&Na(),!1}catch(l){}if(null!==(n=Ta(e,t,r,a)))return Gc(n,e,a),fs(n,t,a),!0}return!1}function ds(e,t,n,a){if(a={lane:2,revertLane:Vu(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},hs(e)){if(t)throw Error(i(479))}else null!==(t=Ta(e,n,a,2))&&Gc(t,e,2)}function hs(e){var t=e.alternate;return e===qo||null!==t&&t===qo}function ps(e,t){Yo=Ko=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fs(e,t,n){if(0!==(4194048&n)){var a=t.lanes;n|=a&=e.pendingLanes,t.lanes=n,Oe(e,n)}}var ms={readContext:Tr,use:di,useCallback:Zo,useContext:Zo,useEffect:Zo,useImperativeHandle:Zo,useLayoutEffect:Zo,useInsertionEffect:Zo,useMemo:Zo,useReducer:Zo,useRef:Zo,useState:Zo,useDebugValue:Zo,useDeferredValue:Zo,useTransition:Zo,useSyncExternalStore:Zo,useId:Zo,useHostTransitionStatus:Zo,useFormState:Zo,useActionState:Zo,useOptimistic:Zo,useMemoCache:Zo,useCacheRefresh:Zo};ms.useEffectEvent=Zo;var gs={readContext:Tr,use:di,useCallback:function(e,t){return li().memoizedState=[e,void 0===t?null:t],e},useContext:Tr,useEffect:Ui,useImperativeHandle:function(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null,zi(4194308,4,Ki.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zi(4194308,4,e,t)},useInsertionEffect:function(e,t){zi(4,2,e,t)},useMemo:function(e,t){var n=li();t=void 0===t?null:t;var a=e();if(Go){we(!0);try{e()}finally{we(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=li();if(void 0!==n){var r=n(t);if(Go){we(!0);try{n(t)}finally{we(!1)}}}else r=t;return a.memoizedState=a.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},a.queue=e,e=e.dispatch=ls.bind(null,qo,e),[a.memoizedState,e]},useRef:function(e){return e={current:e},li().memoizedState=e},useState:function(e){var t=(e=ki(e)).queue,n=cs.bind(null,qo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Gi,useDeferredValue:function(e,t){return Qi(li(),e,t)},useTransition:function(){var e=ki(!1);return e=Zi.bind(null,qo,e.queue,!0,!1),li().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=qo,r=li();if(dr){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===fc)throw Error(i(349));0!==(127&gc)||yi(a,t,n)}r.memoizedState=n;var o={value:n,getSnapshot:t};return r.queue=o,Ui(_i.bind(null,a,o,e),[e]),a.flags|=2048,Mi(9,{destroy:void 0},wi.bind(null,a,o,n,t),null),n},useId:function(){var e=li(),t=fc.identifierPrefix;if(dr){var n=ar;t="_"+t+"R_"+(n=(nr&~(1<<32-_e(nr)-1)).toString(32)+n),0<(n=Jo++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=Xo++).toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:rs,useFormState:Ti,useActionState:Ti,useOptimistic:function(e){var t=li();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ds.bind(null,qo,!0,n),n.dispatch=t,[e,t]},useMemoCache:hi,useCacheRefresh:function(){return li().memoizedState=ss.bind(null,qo)},useEffectEvent:function(e){var t=li(),n={impl:e};return t.memoizedState=n,function(){if(0!==(2&pc))throw Error(i(440));return n.impl.apply(void 0,arguments)}}},vs={readContext:Tr,use:di,useCallback:Ji,useContext:Tr,useEffect:Vi,useImperativeHandle:Yi,useInsertionEffect:Hi,useLayoutEffect:Wi,useMemo:$i,useReducer:fi,useRef:Bi,useState:function(){return fi(pi)},useDebugValue:Gi,useDeferredValue:function(e,t){return Xi(ci(),Ho.memoizedState,e,t)},useTransition:function(){var e=fi(pi)[0],t=ci().memoizedState;return["boolean"===typeof e?e:ui(e),t]},useSyncExternalStore:vi,useId:os,useHostTransitionStatus:rs,useFormState:Fi,useActionState:Fi,useOptimistic:function(e,t){return Ci(ci(),0,e,t)},useMemoCache:hi,useCacheRefresh:is};vs.useEffectEvent=qi;var ys={readContext:Tr,use:di,useCallback:Ji,useContext:Tr,useEffect:Vi,useImperativeHandle:Yi,useInsertionEffect:Hi,useLayoutEffect:Wi,useMemo:$i,useReducer:gi,useRef:Bi,useState:function(){return gi(pi)},useDebugValue:Gi,useDeferredValue:function(e,t){var n=ci();return null===Ho?Qi(n,e,t):Xi(n,Ho.memoizedState,e,t)},useTransition:function(){var e=gi(pi)[0],t=ci().memoizedState;return["boolean"===typeof e?e:ui(e),t]},useSyncExternalStore:vi,useId:os,useHostTransitionStatus:rs,useFormState:Ri,useActionState:Ri,useOptimistic:function(e,t){var n=ci();return null!==Ho?Ci(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:hi,useCacheRefresh:is};function ws(e,t,n,a){n=null===(n=n(a,t=e.memoizedState))||void 0===n?t:p({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}ys.useEffectEvent=qi;var _s={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Kc(),r=wo(a);r.payload=t,void 0!==n&&null!==n&&(r.callback=n),null!==(t=_o(e,r,a))&&(Gc(t,e,a),xo(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Kc(),r=wo(a);r.tag=1,r.payload=t,void 0!==n&&null!==n&&(r.callback=n),null!==(t=_o(e,r,a))&&(Gc(t,e,a),xo(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Kc(),a=wo(n);a.tag=2,void 0!==t&&null!==t&&(a.callback=t),null!==(t=_o(e,a,n))&&(Gc(t,e,n),xo(t,e,n))}};function xs(e,t,n,a,r,o,i){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(a,o,i):!t.prototype||!t.prototype.isPureReactComponent||(!Zn(n,a)||!Zn(r,o))}function bs(e,t,n,a){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,a),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&_s.enqueueReplaceState(t,t.state,null)}function ks(e,t){var n=t;if("ref"in t)for(var a in n={},t)"ref"!==a&&(n[a]=t[a]);if(e=e.defaultProps)for(var r in n===t&&(n=p({},n)),e)void 0===n[r]&&(n[r]=e[r]);return n}function Cs(e){Aa(e)}function Ds(e){console.error(e)}function As(e){Aa(e)}function Es(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function js(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function Ss(e,t,n){return(n=wo(n)).tag=3,n.payload={element:null},n.callback=function(){Es(e,t)},n}function Ns(e){return(e=wo(e)).tag=3,e}function Ps(e,t,n,a){var r=n.type.getDerivedStateFromError;if("function"===typeof r){var o=a.value;e.payload=function(){return r(o)},e.callback=function(){js(t,n,a)}}var i=n.stateNode;null!==i&&"function"===typeof i.componentDidCatch&&(e.callback=function(){js(t,n,a),"function"!==typeof r&&(null===Rc?Rc=new Set([this]):Rc.add(this));var e=a.stack;this.componentDidCatch(a.value,{componentStack:null!==e?e:""})})}var Ts=Error(i(461)),Fs=!1;function Os(e,t,n,a){t.child=null===e?mo(t,null,n,a):fo(t,e.child,n,a)}function Is(e,t,n,a,r){n=n.render;var o=t.ref;if("ref"in a){var i={};for(var s in a)"ref"!==s&&(i[s]=a[s])}else i=a;return Pr(t),a=ti(e,t,n,i,o,r),s=oi(),null===e||Fs?(dr&&s&&ir(t),t.flags|=1,Os(e,t,a,r),t.child):(ii(e,t,r),rl(e,t,r))}function Rs(e,t,n,a,r){if(null===e){var o=n.type;return"function"!==typeof o||za(o)||void 0!==o.defaultProps||null!==n.compare?((e=Va(n.type,null,a,t,t.mode,r)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Ms(e,t,o,a,r))}if(o=e.child,!ol(e,r)){var i=o.memoizedProps;if((n=null!==(n=n.compare)?n:Zn)(i,a)&&e.ref===t.ref)return rl(e,t,r)}return t.flags|=1,(e=La(o,a)).ref=t.ref,e.return=t,t.child=e}function Ms(e,t,n,a,r){if(null!==e){var o=e.memoizedProps;if(Zn(o,a)&&e.ref===t.ref){if(Fs=!1,t.pendingProps=a=o,!ol(e,r))return t.lanes=e.lanes,rl(e,t,r);0!==(131072&e.flags)&&(Fs=!0)}}return Hs(e,t,n,a,r)}function Bs(e,t,n,a){var r=a.children,o=null!==e?e.memoizedState:null;if(null===e&&null===t.stateNode&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===a.mode){if(0!==(128&t.flags)){if(o=null!==o?o.baseLanes|n:n,null!==e){for(a=t.child=e.child,r=0;null!==a;)r=r|a.lanes|a.childLanes,a=a.sibling;a=r&~o}else a=0,t.child=null;return Ls(e,t,o,n,a)}if(0===(536870912&n))return a=t.lanes=536870912,Ls(e,t,null!==o?o.baseLanes|n:n,n,a);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Jr(0,null!==o?o.cachePool:null),null!==o?No(t,o):Po(),Mo(t)}else null!==o?(Jr(0,o.cachePool),No(t,o),Bo(),t.memoizedState=null):(null!==e&&Jr(0,null),Po(),Bo());return Os(e,t,r,n),t.child}function zs(e,t){return null!==e&&22===e.tag||null!==t.stateNode||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ls(e,t,n,a,r){var o=Gr();return o=null===o?null:{parent:Br._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},null!==e&&Jr(0,null),Po(),Mo(t),null!==e&&Sr(e,t,a,!0),t.childLanes=r,null}function Us(e,t){return(t=Zs({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}function Vs(e,t,n){return fo(t,e.child,null,n),(e=Us(t,t.pendingProps)).flags|=2,zo(t),t.memoizedState=null,e}function qs(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!==typeof n&&"object"!==typeof n)throw Error(i(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Hs(e,t,n,a,r){return Pr(t),n=ti(e,t,n,a,void 0,r),a=oi(),null===e||Fs?(dr&&a&&ir(t),t.flags|=1,Os(e,t,n,r),t.child):(ii(e,t,r),rl(e,t,r))}function Ws(e,t,n,a,r,o){return Pr(t),t.updateQueue=null,n=ai(t,a,n,r),ni(e),a=oi(),null===e||Fs?(dr&&a&&ir(t),t.flags|=1,Os(e,t,n,o),t.child):(ii(e,t,o),rl(e,t,o))}function Ks(e,t,n,a,r){if(Pr(t),null===t.stateNode){var o=Ra,i=n.contextType;"object"===typeof i&&null!==i&&(o=Tr(i)),o=new n(a,o),t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,o.updater=_s,t.stateNode=o,o._reactInternals=t,(o=t.stateNode).props=a,o.state=t.memoizedState,o.refs={},vo(t),i=n.contextType,o.context="object"===typeof i&&null!==i?Tr(i):Ra,o.state=t.memoizedState,"function"===typeof(i=n.getDerivedStateFromProps)&&(ws(t,n,i,a),o.state=t.memoizedState),"function"===typeof n.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(i=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),i!==o.state&&_s.enqueueReplaceState(o,o.state,null),Do(t,a,o,r),Co(),o.state=t.memoizedState),"function"===typeof o.componentDidMount&&(t.flags|=4194308),a=!0}
2else if(null===e){o=t.stateNode;var s=t.memoizedProps,l=ks(n,s);o.props=l;var c=o.context,u=n.contextType;i=Ra,"object"===typeof u&&null!==u&&(i=Tr(u));var d=n.getDerivedStateFromProps;u="function"===typeof d||"function"===typeof o.getSnapshotBeforeUpdate,s=t.pendingProps!==s,u||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s||c!==i)&&bs(t,o,a,i),go=!1;var h=t.memoizedState;o.state=h,Do(t,a,o,r),Co(),c=t.memoizedState,s||h!==c||go?("function"===typeof d&&(ws(t,n,d,a),c=t.memoizedState),(l=go||xs(t,n,l,a,h,c,i))?(u||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||("function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"===typeof o.componentDidMount&&(t.flags|=4194308)):("function"===typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=c),o.props=a,o.state=c,o.context=i,a=l):("function"===typeof o.componentDidMount&&(t.flags|=4194308),a=!1)}else{o=t.stateNode,yo(e,t),u=ks(n,i=t.memoizedProps),o.props=u,d=t.pendingProps,h=o.context,c=n.contextType,l=Ra,"object"===typeof c&&null!==c&&(l=Tr(c)),(c="function"===typeof(s=n.getDerivedStateFromProps)||"function"===typeof o.getSnapshotBeforeUpdate)||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(i!==d||h!==l)&&bs(t,o,a,l),go=!1,h=t.memoizedState,o.state=h,Do(t,a,o,r),Co();var p=t.memoizedState;i!==d||h!==p||go||null!==e&&null!==e.dependencies&&Nr(e.dependencies)?("function"===typeof s&&(ws(t,n,s,a),p=t.memoizedState),(u=go||xs(t,n,u,a,h,p,l)||null!==e&&null!==e.dependencies&&Nr(e.dependencies))?(c||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(a,p,l),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(a,p,l)),"function"===typeof o.componentDidUpdate&&(t.flags|=4),"function"===typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof o.componentDidUpdate||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=p),o.props=a,o.state=p,o.context=l,a=u):("function"!==typeof o.componentDidUpdate||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),a=!1)}return o=a,qs(e,t),a=0!==(128&t.flags),o||a?(o=t.stateNode,n=a&&"function"!==typeof n.getDerivedStateFromError?null:o.render(),t.flags|=1,null!==e&&a?(t.child=fo(t,e.child,null,r),t.child=fo(t,null,n,r)):Os(e,t,n,r),t.memoizedState=o.state,e=t.child):e=rl(e,t,r),e}function Ys(e,t,n,a){return wr(),t.flags|=256,Os(e,t,n,a),t.child}var Gs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Js(e){return{baseLanes:e,cachePool:$r()}}function $s(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=Ec),e}function Qs(e,t,n){var a,r=t.pendingProps,o=!1,s=0!==(128&t.flags);if((a=s)||(a=(null===e||null!==e.memoizedState)&&0!==(2&Lo.current)),a&&(o=!0,t.flags&=-129),a=0!==(32&t.flags),t.flags&=-33,null===e){if(dr){if(o?Io(t):Bo(),(e=ur)?null!==(e=null!==(e=Nd(e,pr))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==tr?{id:nr,overflow:ar}:null,retryLane:536870912,hydrationErrors:null},(n=Wa(e)).return=t,t.child=n,cr=t,ur=null):e=null,null===e)throw mr(t);return Td(e)?t.lanes=32:t.lanes=536870912,null}var l=r.children;return r=r.fallback,o?(Bo(),l=Zs({mode:"hidden",children:l},o=t.mode),r=qa(r,o,n,null),l.return=t,r.return=t,l.sibling=r,t.child=l,(r=t.child).memoizedState=Js(n),r.childLanes=$s(e,a,n),t.memoizedState=Gs,zs(null,r)):(Io(t),Xs(t,l))}var c=e.memoizedState;if(null!==c&&null!==(l=c.dehydrated)){if(s)256&t.flags?(Io(t),t.flags&=-257,t=el(e,t,n)):null!==t.memoizedState?(Bo(),t.child=e.child,t.flags|=128,t=null):(Bo(),l=r.fallback,o=t.mode,r=Zs({mode:"visible",children:r.children},o),(l=qa(l,o,n,null)).flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,fo(t,e.child,null,n),(r=t.child).memoizedState=Js(n),r.childLanes=$s(e,a,n),t.memoizedState=Gs,t=zs(null,r));else if(Io(t),Td(l)){if(a=l.nextSibling&&l.nextSibling.dataset)var u=a.dgst;a=u,(r=Error(i(419))).stack="",r.digest=a,xr({value:r,source:null,stack:null}),t=el(e,t,n)}else if(Fs||Sr(e,t,n,!1),a=0!==(n&e.childLanes),Fs||a){if(null!==(a=fc)&&(0!==(r=Ie(a,n))&&r!==c.retryLane))throw c.retryLane=r,Fa(e,r),Gc(a,e,r),Ts;Pd(l)||iu(),t=el(e,t,n)}else Pd(l)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,ur=Fd(l.nextSibling),cr=t,dr=!0,hr=null,pr=!1,null!==e&&lr(t,e),(t=Xs(t,r.children)).flags|=4096);return t}return o?(Bo(),l=r.fallback,o=t.mode,u=(c=e.child).sibling,(r=La(c,{mode:"hidden",children:r.children})).subtreeFlags=65011712&c.subtreeFlags,null!==u?l=La(u,l):(l=qa(l,o,n,null)).flags|=2,l.return=t,r.return=t,r.sibling=l,t.child=r,zs(null,r),r=t.child,null===(l=e.child.memoizedState)?l=Js(n):(null!==(o=l.cachePool)?(c=Br._currentValue,o=o.parent!==c?{parent:c,pool:c}
vendor: 4,443 bytes, line 2
2:o):o=$r(),l={baseLanes:l.baseLanes|n,cachePool:o}),r.memoizedState=l,r.childLanes=$s(e,a,n),t.memoizedState=Gs,zs(e.child,r)):(Io(t),e=(n=e.child).sibling,(n=La(n,{mode:"visible",children:r.children})).return=t,n.sibling=null,null!==e&&(null===(a=t.deletions)?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=n,t.memoizedState=null,n)}function Xs(e,t){return(t=Zs({mode:"visible",children:t},e.mode)).return=e,e.child=t}function Zs(e,t){return(e=Ba(22,e,null,t)).lanes=0,e}function el(e,t,n){return fo(t,e.child,null,n),(e=Xs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function tl(e,t,n){e.lanes|=t;var a=e.alternate;null!==a&&(a.lanes|=t),Er(e.return,t,n)}function nl(e,t,n,a,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:r,treeForkCount:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=n,i.tailMode=r,i.treeForkCount=o)}function al(e,t,n){var a=t.pendingProps,r=a.revealOrder,o=a.tail;a=a.children;var i=Lo.current,s=0!==(2&i);if(s?(i=1&i|2,t.flags|=128):i&=1,U(Lo,i),Os(e,t,a,n),a=dr?Xa:0,!s&&null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&tl(e,n,t);else if(19===e.tag)tl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(n=t.child,r=null;null!==n;)null!==(e=n.alternate)&&null===Uo(e)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),nl(t,!1,r,n,o,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(null!==(e=r.alternate)&&null===Uo(e)){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}nl(t,!0,n,null,o,a);break;case"together":nl(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function rl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Cc|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Sr(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=La(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=La(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ol(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Nr(e))}function il(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Fs=!0;else{if(!ol(e,n)&&0===(128&t.flags))return Fs=!1,function(e,t,n){switch(t.tag){case 3:G(t,t.stateNode.containerInfo),Dr(0,Br,e.memoizedState.cache),wr();break;case 27:case 5:$(t);break;case 4:G(t,t.stateNode.containerInfo);break;case 10:Dr(0,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,Ro(t),null;break;case 13:var a=t.memoizedState;if(null!==a)return null!==a.dehydrated?(Io(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Qs(e,t,n):(Io(t),null!==(e=rl(e,t,n))?e.sibling:null);Io(t);break;case 19:var r=0!==(128&e.flags);if((a=0!==(n&t.childLanes))||(Sr(e,t,n,!1),a=0!==(n&t.childLanes)),r){if(a)return al(e,t,n);t.flags|=128}if(null!==(r=t.memoizedState)&&(r.rendering=null,r.tail=null,r.lastEffect=null),U(Lo,Lo.current),a)break;return null;case 22:return t.lanes=0,Bs(e,t,n,t.pendingProps);case 24:Dr(0,Br,e.memoizedState.cache)}return rl(e,t,n)}(e,t,n);Fs=0!==(131072&e.flags)}else Fs=!1,dr&&0!==(1048576&t.flags)&&or(t,Xa,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=ao(t.elementType),t.type=e,"function"!==typeof e){if(void 0!==e&&null!==e){var r=e.$$typeof;if(r===b){t.tag=11,t=Is(null,t,e,a,n);break e}if(r===D){t.tag=14,t=Rs(null,t,e,a,n);break e}}throw t=T(e)||e,Error(i(306,t,""))}za(e)?(a=ks(e,a),t.tag=1,t=Ks(null,t,e,a,n)):(t.tag=0,t=Hs(null,t,e,a,n))}return t;case 0:return Hs(e,t,t.type,t.pendingProps,n);case 1:return Ks(e,t,a=t.type,r=ks(a,t.pendingProps),n);case 3:e:{if(G(t,t.stateNode.containerInfo),null===e)throw Error(i(387));a=t.pendingProps;var o=t.memoizedState;r=o.element,yo(e,t),Do(t,a,null,n);var s=t.memoizedState;if(a=s.cache,Dr(0,Br,a),a!==o.cache&&jr(t,[Br],n,!0),Co(),a=s.element,o.isDehydrated){if(o={element:a,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Ys(e,t,a,n);break e}if(a!==r){xr(r=Ga(Error(i(424)),t)),t=Ys(e,t,a,n);break e}if(9===(e=t.stateNode.containerInfo).nodeType)e=e.body;
vendor: 42,724 bytes, line 2
2else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(ur=Fd(e.firstChild),cr=t,dr=!0,hr=null,pr=!0,n=mo(t,null,a,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(wr(),a===r){t=rl(e,t,n);break e}Os(e,t,a,n)}t=t.child}return t;case 26:return qs(e,t),null===e?(n=Wd(t.type,null,t.pendingProps,null))?t.memoizedState=n:dr||(n=t.type,e=t.pendingProps,(a=gd(K.current).createElement(n))[Ue]=t,a[Ve]=e,hd(a,n,e),et(a),t.stateNode=a):t.memoizedState=Wd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return $(t),null===e&&dr&&(a=t.stateNode=Md(t.type,t.pendingProps,K.current),cr=t,pr=!0,r=ur,Ad(t.type)?(Od=r,ur=Fd(a.firstChild)):ur=r),Os(e,t,t.pendingProps.children,n),qs(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&dr&&((r=a=ur)&&(null!==(a=function(e,t,n,a){for(;1===e.nodeType;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(a){if(!e[Ge])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(o=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(o!==r.rel||e.getAttribute("href")!==(null==r.href||""===r.href?null:r.href)||e.getAttribute("crossorigin")!==(null==r.crossOrigin?null:r.crossOrigin)||e.getAttribute("title")!==(null==r.title?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((o=e.getAttribute("src"))!==(null==r.src?null:r.src)||e.getAttribute("type")!==(null==r.type?null:r.type)||e.getAttribute("crossorigin")!==(null==r.crossOrigin?null:r.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var o=null==r.name?null:""+r.name;if("hidden"===r.type&&e.getAttribute("name")===o)return e}if(null===(e=Fd(e.nextSibling)))break}return null}(a,t.type,t.pendingProps,pr))?(t.stateNode=a,cr=t,ur=Fd(a.firstChild),pr=!1,r=!0):r=!1),r||mr(t)),$(t),r=t.type,o=t.pendingProps,s=null!==e?e.memoizedProps:null,a=o.children,wd(r,o)?a=null:null!==s&&wd(r,s)&&(t.flags|=32),null!==t.memoizedState&&(r=ti(e,t,ri,null,null,n),uh._currentValue=r),qs(e,t),Os(e,t,a,n),t.child;case 6:return null===e&&dr&&((e=n=ur)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=Fd(e.nextSibling)))return null}return e}(n,t.pendingProps,pr))?(t.stateNode=n,cr=t,ur=null,e=!0):e=!1),e||mr(t)),null;case 13:return Qs(e,t,n);case 4:return G(t,t.stateNode.containerInfo),a=t.pendingProps,null===e?t.child=fo(t,null,a,n):Os(e,t,a,n),t.child;case 11:return Is(e,t,t.type,t.pendingProps,n);case 7:return Os(e,t,t.pendingProps,n),t.child;case 8:case 12:return Os(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,Dr(0,t.type,a.value),Os(e,t,a.children,n),t.child;case 9:return r=t.type._context,a=t.pendingProps.children,Pr(t),a=a(r=Tr(r)),t.flags|=1,Os(e,t,a,n),t.child;case 14:return Rs(e,t,t.type,t.pendingProps,n);case 15:return Ms(e,t,t.type,t.pendingProps,n);case 19:return al(e,t,n);case 31:return function(e,t,n){var a=t.pendingProps,r=0!==(128&t.flags);if(t.flags&=-129,null===e){if(dr){if("hidden"===a.mode)return e=Us(t,a),t.lanes=536870912,zs(null,e);if(Ro(t),(e=ur)?null!==(e=null!==(e=Nd(e,pr))&&"&"===e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==tr?{id:nr,overflow:ar}:null,retryLane:536870912,hydrationErrors:null},(n=Wa(e)).return=t,t.child=n,cr=t,ur=null):e=null,null===e)throw mr(t);return t.lanes=536870912,null}return Us(t,a)}var o=e.memoizedState;if(null!==o){var s=o.dehydrated;if(Ro(t),r)if(256&t.flags)t.flags&=-257,t=Vs(e,t,n);else{if(null===t.memoizedState)throw Error(i(558));t.child=e.child,t.flags|=128,t=null}else if(Fs||Sr(e,t,n,!1),r=0!==(n&e.childLanes),Fs||r){if(null!==(a=fc)&&0!==(s=Ie(a,n))&&s!==o.retryLane)throw o.retryLane=s,Fa(e,s),Gc(a,e,s),Ts;iu(),t=Vs(e,t,n)}else e=o.treeContext,ur=Fd(s.nextSibling),cr=t,dr=!0,hr=null,pr=!1,null!==e&&lr(t,e),(t=Us(t,a)).flags|=4096;return t}return(e=La(e.child,{mode:a.mode,children:a.children})).ref=t.ref,t.child=e,e.return=t,e}(e,t,n);case 22:return Bs(e,t,n,t.pendingProps);case 24:return Pr(t),a=Tr(Br),null===e?(null===(r=Gr())&&(r=fc,o=zr(),r.pooledCache=o,o.refCount++,null!==o&&(r.pooledCacheLanes|=n),r=o),t.memoizedState={parent:a,cache:r},vo(t),Dr(0,Br,r)):(0!==(e.lanes&n)&&(yo(e,t),Do(t,null,null,n),Co()),r=e.memoizedState,o=t.memoizedState,r.parent!==a?(r={parent:a,cache:a},t.memoizedState=r,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=r),Dr(0,Br,a)):(a=o.cache,Dr(0,Br,a),a!==r.cache&&jr(t,[Br],n,!0))),Os(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function sl(e){e.flags|=4}function ll(e,t,n,a,r){if((t=0!==(32&e.mode))&&(t=!1),t){if(e.flags|=16777216,(335544128&r)===r)if(e.stateNode.complete)e.flags|=8192;else{if(!au())throw ro=eo,Xr;e.flags|=8192}}else e.flags&=-16777217}function cl(e,t){if("stylesheet"!==t.type||0!==(4&t.state.loading))e.flags&=-16777217;else if(e.flags|=16777216,!rh(t)){if(!au())throw ro=eo,Xr;e.flags|=8192}}function ul(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Ne():536870912,e.lanes|=t,jc|=t)}function dl(e,t){if(!dr)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;null!==n;)null!==n.alternate&&(a=n),n=n.sibling;null===a?t||null===e.tail?e.tail=null:e.tail.sibling=null:a.sibling=null}}function hl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,a=0;if(t)for(var r=e.child;null!==r;)n|=r.lanes|r.childLanes,a|=65011712&r.subtreeFlags,a|=65011712&r.flags,r.return=e,r=r.sibling;else for(r=e.child;null!==r;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags,a|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function pl(e,t,n){var a=t.pendingProps;switch(sr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return hl(t),null;case 3:return n=t.stateNode,a=null,null!==e&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ar(Br),J(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(yr(t)?sl(t):null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,_r())),hl(t),null;case 26:var r=t.type,o=t.memoizedState;return null===e?(sl(t),null!==o?(hl(t),cl(t,o)):(hl(t),ll(t,r,0,0,n))):o?o!==e.memoizedState?(sl(t),hl(t),cl(t,o)):(hl(t),t.flags&=-16777217):((e=e.memoizedProps)!==a&&sl(t),hl(t),ll(t,r,0,0,n)),null;case 27:if(Q(t),n=K.current,r=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==a&&sl(t);else{if(!a){if(null===t.stateNode)throw Error(i(166));return hl(t),null}e=H.current,yr(t)?gr(t):(e=Md(r,a,n),t.stateNode=e,sl(t))}return hl(t),null;case 5:if(Q(t),r=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==a&&sl(t);else{if(!a){if(null===t.stateNode)throw Error(i(166));return hl(t),null}if(o=H.current,yr(t))gr(t);else{var s=gd(K.current);switch(o){case 1:o=s.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:o=s.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":o=s.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":o=s.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":(o=s.createElement("div")).innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o="string"===typeof a.is?s.createElement("select",{is:a.is}):s.createElement("select"),a.multiple?o.multiple=!0:a.size&&(o.size=a.size);break;default:o="string"===typeof a.is?s.createElement(r,{is:a.is}):s.createElement(r)}}o[Ue]=t,o[Ve]=a;e:for(s=t.child;null!==s;){if(5===s.tag||6===s.tag)o.appendChild(s.stateNode);else if(4!==s.tag&&27!==s.tag&&null!==s.child){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;null===s.sibling;){if(null===s.return||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;e:switch(hd(o,r,a),r){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&sl(t)}}return hl(t),ll(t,t.type,null===e||e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==a&&sl(t);else{if("string"!==typeof a&&null===t.stateNode)throw Error(i(166));if(e=K.current,yr(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,null!==(r=cr))switch(r.tag){case 27:case 5:a=r.memoizedProps}e[Ue]=t,(e=!!(e.nodeValue===n||null!==a&&!0===a.suppressHydrationWarning||cd(e.nodeValue,n)))||mr(t,!0)}else(e=gd(e).createTextNode(a))[Ue]=t,t.stateNode=e}return hl(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(a=yr(t),null!==n){if(null===e){if(!a)throw Error(i(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(i(557));e[Ue]=t}else wr(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;hl(t),e=!1}else n=_r(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(zo(t),t):(zo(t),null);if(0!==(128&t.flags))throw Error(i(558))}return hl(t),null;case 13:if(a=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(r=yr(t),null!==a&&null!==a.dehydrated){if(null===e){if(!r)throw Error(i(318));if(!(r=null!==(r=t.memoizedState)?r.dehydrated:null))throw Error(i(317));r[Ue]=t}else wr(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;hl(t),r=!1}else r=_r(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return 256&t.flags?(zo(t),t):(zo(t),null)}return zo(t),0!==(128&t.flags)?(t.lanes=n,t):(n=null!==a,e=null!==e&&null!==e.memoizedState,n&&(r=null,null!==(a=t.child).alternate&&null!==a.alternate.memoizedState&&null!==a.alternate.memoizedState.cachePool&&(r=a.alternate.memoizedState.cachePool.pool),o=null,null!==a.memoizedState&&null!==a.memoizedState.cachePool&&(o=a.memoizedState.cachePool.pool),o!==r&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ul(t,t.updateQueue),hl(t),null);case 4:return J(),null===e&&Zu(t.stateNode.containerInfo),hl(t),null;case 10:return Ar(t.type),hl(t),null;case 19:if(L(Lo),null===(a=t.memoizedState))return hl(t),null;if(r=0!==(128&t.flags),null===(o=a.rendering))if(r)dl(a,!1);else{if(0!==kc||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(o=Uo(e))){for(t.flags|=128,dl(a,!1),e=o.updateQueue,t.updateQueue=e,ul(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Ua(n,e),n=n.sibling;return U(Lo,1&Lo.current|2),dr&&rr(t,a.treeForkCount),t.child}e=e.sibling}null!==a.tail&&le()>Oc&&(t.flags|=128,r=!0,dl(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Uo(o))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,ul(t,e),dl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!o.alternate&&!dr)return hl(t),null}else 2*le()-a.renderingStartTime>Oc&&536870912!==n&&(t.flags|=128,r=!0,dl(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=a.last)?e.sibling=o:t.child=o,a.last=o)}return null!==a.tail?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=le(),e.sibling=null,n=Lo.current,U(Lo,r?1&n|2:1&n),dr&&rr(t,a.treeForkCount),e):(hl(t),null);case 22:case 23:return zo(t),To(),a=null!==t.memoizedState,null!==e?null!==e.memoizedState!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?0!==(536870912&n)&&0===(128&t.flags)&&(hl(t),6&t.subtreeFlags&&(t.flags|=8192)):hl(t),null!==(n=t.updateQueue)&&ul(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),a=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),null!==e&&L(Yr),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ar(Br),hl(t),null;case 25:case 30:return null}throw Error(i(156,t.tag))}function fl(e,t){switch(sr(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ar(Br),J(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return Q(t),null;case 31:if(null!==t.memoizedState){if(zo(t),null===t.alternate)throw Error(i(340));wr()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(zo(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));wr()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return L(Lo),null;case 4:return J(),null;case 10:return Ar(t.type),null;case 22:case 23:return zo(t),To(),null!==e&&L(Yr),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return Ar(Br),null;default:return null}}function ml(e,t){switch(sr(t),t.tag){case 3:Ar(Br),J();break;case 26:case 27:case 5:Q(t);break;case 4:J();break;case 31:null!==t.memoizedState&&zo(t);break;case 13:zo(t);break;case 19:L(Lo);break;case 10:Ar(t.type);break;case 22:case 23:zo(t),To(),null!==e&&L(Yr);break;case 24:Ar(Br)}}function gl(e,t){try{var n=t.updateQueue,a=null!==n?n.lastEffect:null;if(null!==a){var r=a.next;n=r;do{if((n.tag&e)===e){a=void 0;var o=n.create,i=n.inst;a=o(),i.destroy=a}n=n.next}while(n!==r)}}catch(s){ku(t,t.return,s)}}function vl(e,t,n){try{var a=t.updateQueue,r=null!==a?a.lastEffect:null;if(null!==r){var o=r.next;a=o;do{if((a.tag&e)===e){var i=a.inst,s=i.destroy;if(void 0!==s){i.destroy=void 0,r=t;var l=n,c=s;try{c()}catch(u){ku(r,l,u)}}}a=a.next}while(a!==o)}}catch(u){ku(t,t.return,u)}}function yl(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{Eo(t,n)}catch(a){ku(e,e.return,a)}}}function wl(e,t,n){n.props=ks(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){ku(e,t,a)}}function _l(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;default:a=e.stateNode}"function"===typeof n?e.refCleanup=n(a):n.current=a}}catch(r){ku(e,t,r)}}function xl(e,t){var n=e.ref,a=e.refCleanup;if(null!==n)if("function"===typeof a)try{a()}catch(r){ku(e,t,r)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"===typeof n)try{n(null)}catch(o){ku(e,t,o)}else n.current=null}function bl(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(r){ku(e,e.return,r)}}function kl(e,t,n){try{var a=e.stateNode;!function(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,o=null,s=null,l=null,c=null,u=null,d=null;for(f in n){var h=n[f];if(n.hasOwnProperty(f)&&null!=h)switch(f){case"checked":case"value":break;case"defaultValue":c=h;default:a.hasOwnProperty(f)||ud(e,t,f,null,a,h)}}for(var p in a){var f=a[p];if(h=n[p],a.hasOwnProperty(p)&&(null!=f||null!=h))switch(p){case"type":o=f;break;case"name":r=f;break;case"checked":u=f;break;case"defaultChecked":d=f;break;case"value":s=f;break;case"defaultValue":l=f;break;case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(i(137,t));break;default:f!==h&&ud(e,t,p,f,a,h)}}return void yt(e,s,l,c,u,d,o,r);case"select":for(o in f=s=l=p=null,n)if(c=n[o],n.hasOwnProperty(o)&&null!=c)switch(o){case"value":break;case"multiple":f=c;default:a.hasOwnProperty(o)||ud(e,t,o,null,a,c)}for(r in a)if(o=a[r],c=n[r],a.hasOwnProperty(r)&&(null!=o||null!=c))switch(r){case"value":p=o;break;case"defaultValue":l=o;break;case"multiple":s=o;default:o!==c&&ud(e,t,r,o,a,c)}return t=l,n=s,a=f,void(null!=p?xt(e,!!n,p,!1):!!a!==!!n&&(null!=t?xt(e,!!n,t,!0):xt(e,!!n,n?[]:"",!1)));case"textarea":for(l in f=p=null,n)if(r=n[l],n.hasOwnProperty(l)&&null!=r&&!a.hasOwnProperty(l))switch(l){case"value":case"children":break;default:ud(e,t,l,null,a,r)}for(s in a)if(r=a[s],o=n[s],a.hasOwnProperty(s)&&(null!=r||null!=o))switch(s){case"value":p=r;break;case"defaultValue":f=r;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=r)throw Error(i(91));break;default:r!==o&&ud(e,t,s,r,a,o)}return void bt(e,p,f);case"option":for(var m in n)if(p=n[m],n.hasOwnProperty(m)&&null!=p&&!a.hasOwnProperty(m))if("selected"===m)e.selected=!1;else ud(e,t,m,null,a,p);for(c in a)if(p=a[c],f=n[c],a.hasOwnProperty(c)&&p!==f&&(null!=p||null!=f))if("selected"===c)e.selected=p&&"function"!==typeof p&&"symbol"!==typeof p;else ud(e,t,c,p,a,f);return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!a.hasOwnProperty(g)&&ud(e,t,g,null,a,p);for(u in a)if(p=a[u],f=n[u],a.hasOwnProperty(u)&&p!==f&&(null!=p||null!=f))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(i(137,t));break;default:ud(e,t,u,p,a,f)}return;default:if(jt(t)){for(var v in n)p=n[v],n.hasOwnProperty(v)&&void 0!==p&&!a.hasOwnProperty(v)&&dd(e,t,v,void 0,a,p);for(d in a)p=a[d],f=n[d],!a.hasOwnProperty(d)||p===f||void 0===p&&void 0===f||dd(e,t,d,p,a,f);return}}for(var y in n)p=n[y],n.hasOwnProperty(y)&&null!=p&&!a.hasOwnProperty(y)&&ud(e,t,y,null,a,p);for(h in a)p=a[h],f=n[h],!a.hasOwnProperty(h)||p===f||null==p&&null==f||ud(e,t,h,p,a,f)}(a,e.type,n,t),a[Ve]=t}catch(r){ku(e,e.return,r)}}function Cl(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&Ad(e.type)||4===e.tag}function Dl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Cl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&Ad(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Al(e,t,n){var a=e.tag;if(5===a||6===a)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Tt));else if(4!==a&&(27===a&&Ad(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(Al(e,t,n),e=e.sibling;null!==e;)Al(e,t,n),e=e.sibling}function El(e,t,n){var a=e.tag;if(5===a||6===a)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==a&&(27===a&&Ad(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(El(e,t,n),e=e.sibling;null!==e;)El(e,t,n),e=e.sibling}function jl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);hd(t,a,n),t[Ue]=e,t[Ve]=n}catch(o){ku(e,e.return,o)}}var Sl=!1,Nl=!1,Pl=!1,Tl="function"===typeof WeakSet?WeakSet:Set,Fl=null;function Ol(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Gl(e,n),4&a&&gl(5,n);break;case 1:if(Gl(e,n),4&a)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(i){ku(n,n.return,i)}else{var r=ks(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){ku(n,n.return,s)}}64&a&&yl(n),512&a&&_l(n,n.return);break;case 3:if(Gl(e,n),64&a&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{Eo(e,t)}catch(i){ku(n,n.return,i)}}break;case 27:null===t&&4&a&&jl(n);case 26:case 5:Gl(e,n),null===t&&4&a&&bl(n),512&a&&_l(n,n.return);break;case 12:Gl(e,n);break;case 31:Gl(e,n),4&a&&Ll(e,n);break;case 13:Gl(e,n),4&a&&Ul(e,n),64&a&&(null!==(e=n.memoizedState)&&(null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$~"===e.data)e._reactRetry=t;else if("$?"!==e.data||"loading"!==n.readyState)t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}(e,n=Eu.bind(null,n))));break;case 22:if(!(a=null!==n.memoizedState||Sl)){t=null!==t&&null!==t.memoizedState||Nl,r=Sl;var o=Nl;Sl=a,(Nl=t)&&!o?$l(e,n,0!==(8772&n.subtreeFlags)):Gl(e,n),Sl=r,Nl=o}break;case 30:break;default:Gl(e,n)}}function Il(e){var t=e.alternate;null!==t&&(e.alternate=null,Il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&Je(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Rl=null,Ml=!1;function Bl(e,t,n){for(n=n.child;null!==n;)zl(e,t,n),n=n.sibling}function zl(e,t,n){if(ye&&"function"===typeof ye.onCommitFiberUnmount)try{ye.onCommitFiberUnmount(ve,n)}catch(o){}switch(n.tag){case 26:Nl||xl(n,t),Bl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Nl||xl(n,t);var a=Rl,r=Ml;Ad(n.type)&&(Rl=n.stateNode,Ml=!1),Bl(e,t,n),Bd(n.stateNode),Rl=a,Ml=r;break;case 5:Nl||xl(n,t);case 6:if(a=Rl,r=Ml,Rl=null,Bl(e,t,n),Ml=r,null!==(Rl=a))if(Ml)try{(9===Rl.nodeType?Rl.body:"HTML"===Rl.nodeName?Rl.ownerDocument.body:Rl).removeChild(n.stateNode)}catch(i){ku(n,t,i)}else try{Rl.removeChild(n.stateNode)}catch(i){ku(n,t,i)}break;case 18:null!==Rl&&(Ml?(Ed(9===(e=Rl).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Hh(e)):Ed(Rl,n.stateNode));break;case 4:a=Rl,r=Ml,Rl=n.stateNode.containerInfo,Ml=!0,Bl(e,t,n),Rl=a,Ml=r;break;case 0:case 11:case 14:case 15:vl(2,n,t),Nl||vl(4,n,t),Bl(e,t,n);break;case 1:Nl||(xl(n,t),"function"===typeof(a=n.stateNode).componentWillUnmount&&wl(n,t,a)),Bl(e,t,n);break;case 21:Bl(e,t,n);break;case 22:Nl=(a=Nl)||null!==n.memoizedState,Bl(e,t,n),Nl=a;break;default:Bl(e,t,n)}}function Ll(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&null!==(e=e.memoizedState))){e=e.dehydrated;try{Hh(e)}catch(n){ku(t,t.return,n)}}}function Ul(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{Hh(e)}catch(n){ku(t,t.return,n)}}function Vl(e,t){var n=function(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Tl),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Tl),t;default:throw Error(i(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var a=ju.bind(null,e,t);t.then(a,a)}})}function ql(e,t){var n=t.deletions;if(null!==n)for(var a=0;a<n.length;a++){var r=n[a],o=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 27:if(Ad(l.type)){Rl=l.stateNode,Ml=!1;break e}break;case 5:Rl=l.stateNode,Ml=!1;break e;case 3:case 4:Rl=l.stateNode.containerInfo,Ml=!0;break e}l=l.return}if(null===Rl)throw Error(i(160));zl(o,s,r),Rl=null,Ml=!1,null!==(o=r.alternate)&&(o.return=null),r.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)Wl(t,e),t=t.sibling}var Hl=null;function Wl(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ql(t,e),Kl(e),4&a&&(vl(3,e,e.return),gl(3,e),vl(5,e,e.return));break;case 1:ql(t,e),Kl(e),512&a&&(Nl||null===n||xl(n,n.return)),64&a&&Sl&&(null!==(e=e.updateQueue)&&(null!==(a=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?a:n.concat(a))));break;case 26:var r=Hl;if(ql(t,e),Kl(e),512&a&&(Nl||null===n||xl(n,n.return)),4&a){var o=null!==n?n.memoizedState:null;if(a=e.memoizedState,null===n)if(null===a)if(null===e.stateNode){e:{a=e.type,n=e.memoizedProps,r=r.ownerDocument||r;t:switch(a){case"title":(!(o=r.getElementsByTagName("title")[0])||o[Ge]||o[Ue]||"http://www.w3.org/2000/svg"===o.namespaceURI||o.hasAttribute("itemprop"))&&(o=r.createElement(a),r.head.insertBefore(o,r.querySelector("head > title"))),hd(o,a,n),o[Ue]=e,et(o),a=o;break e;case"link":var s=nh("link","href",r).get(a+(n.href||""));if(s)for(var l=0;l<s.length;l++)if((o=s[l]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&o.getAttribute("rel")===(null==n.rel?null:n.rel)&&o.getAttribute("title")===(null==n.title?null:n.title)&&o.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){s.splice(l,1);break t}hd(o=r.createElement(a),a,n),r.head.appendChild(o);break;case"meta":if(s=nh("meta","content",r).get(a+(n.content||"")))for(l=0;l<s.length;l++)if((o=s[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&o.getAttribute("name")===(null==n.name?null:n.name)&&o.getAttribute("property")===(null==n.property?null:n.property)&&o.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&o.getAttribute("charset")===(null==n.charSet?null:n.charSet)){s.splice(l,1);break t}hd(o=r.createElement(a),a,n),r.head.appendChild(o);break;default:throw Error(i(468,a))}o[Ue]=e,et(o),a=o}e.stateNode=a}else ah(r,e.type,e.stateNode);else e.stateNode=Qd(r,a,e.memoizedProps);else o!==a?(null===o?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):o.count--,null===a?ah(r,e.type,e.stateNode):Qd(r,a,e.memoizedProps)):null===a&&null!==e.stateNode&&kl(e,e.memoizedProps,n.memoizedProps)}break;case 27:ql(t,e),Kl(e),512&a&&(Nl||null===n||xl(n,n.return)),null!==n&&4&a&&kl(e,e.memoizedProps,n.memoizedProps);break;case 5:if(ql(t,e),Kl(e),512&a&&(Nl||null===n||xl(n,n.return)),32&e.flags){r=e.stateNode;try{Ct(r,"")}catch(m){ku(e,e.return,m)}}4&a&&null!=e.stateNode&&kl(e,r=e.memoizedProps,null!==n?n.memoizedProps:r),1024&a&&(Pl=!0);break;case 6:if(ql(t,e),Kl(e),4&a){if(null===e.stateNode)throw Error(i(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(m){ku(e,e.return,m)}}break;case 3:if(th=null,r=Hl,Hl=Ud(t.containerInfo),ql(t,e),Hl=r,Kl(e),4&a&&null!==n&&n.memoizedState.isDehydrated)try{Hh(t.containerInfo)}catch(m){ku(e,e.return,m)}Pl&&(Pl=!1,Yl(e));break;case 4:a=Hl,Hl=Ud(e.stateNode.containerInfo),ql(t,e),Kl(e),Hl=a;break;case 12:default:ql(t,e),Kl(e);break;case 31:case 19:ql(t,e),Kl(e),4&a&&(null!==(a=e.updateQueue)&&(e.updateQueue=null,Vl(e,a)));break;case 13:ql(t,e),Kl(e),8192&e.child.flags&&null!==e.memoizedState!==(null!==n&&null!==n.memoizedState)&&(Tc=le()),4&a&&(null!==(a=e.updateQueue)&&(e.updateQueue=null,Vl(e,a)));break;case 22:r=null!==e.memoizedState;var c=null!==n&&null!==n.memoizedState,u=Sl,d=Nl;if(Sl=u||r,Nl=d||c,ql(t,e),Nl=d,Sl=u,Kl(e),8192&a)e:for(t=e.stateNode,t._visibility=r?-2&t._visibility:1|t._visibility,r&&(null===n||c||Sl||Nl||Jl(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){c=n=t;try{if(o=c.stateNode,r)"function"===typeof(s=o.style).setProperty?s.setProperty("display","none","important"):s.display="none";else{l=c.stateNode;var h=c.memoizedProps.style,p=void 0!==h&&null!==h&&h.hasOwnProperty("display")?h.display:null;l.style.display=null==p||"boolean"===typeof p?"":(""+p).trim()}}catch(m){ku(c,c.return,m)}}}else if(6===t.tag){if(null===n){c=t;try{c.stateNode.nodeValue=r?"":c.memoizedProps}catch(m){ku(c,c.return,m)}}}else if(18===t.tag){if(null===n){c=t;try{var f=c.stateNode;r?jd(f,!0):jd(c.stateNode,!1)}catch(m){ku(c,c.return,m)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&a&&(null!==(a=e.updateQueue)&&(null!==(n=a.retryQueue)&&(a.retryQueue=null,Vl(e,n))));case 30:case 21:}}function Kl(e){var t=e.flags;if(2&t){try{for(var n,a=e.return;null!==a;){if(Cl(a)){n=a;break}a=a.return}if(null==n)throw Error(i(160));switch(n.tag){case 27:var r=n.stateNode;El(e,Dl(e),r);break;case 5:var o=n.stateNode;32&n.flags&&(Ct(o,""),n.flags&=-33),El(e,Dl(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Al(e,Dl(e),s);break;default:throw Error(i(161))}}catch(l){ku(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Yl(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Yl(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Gl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Ol(e,t.alternate,t),t=t.sibling}function Jl(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:vl(4,t,t.return),Jl(t);break;case 1:xl(t,t.return);var n=t.stateNode;"function"===typeof n.componentWillUnmount&&wl(t,t.return,n),Jl(t);break;case 27:Bd(t.stateNode);case 26:case 5:xl(t,t.return),Jl(t);break;case 22:null===t.memoizedState&&Jl(t);break;default:Jl(t)}e=e.sibling}}function $l(e,t,n){for(n=n&&0!==(8772&t.subtreeFlags),t=t.child;null!==t;){var a=t.alternate,r=e,o=t,i=o.flags;switch(o.tag){case 0:case 11:case 15:$l(r,o,n),gl(4,o);break;case 1:if($l(r,o,n),"function"===typeof(r=(a=o).stateNode).componentDidMount)try{r.componentDidMount()}catch(c){ku(a,a.return,c)}if(null!==(r=(a=o).updateQueue)){var s=a.stateNode;try{var l=r.shared.hiddenCallbacks;if(null!==l)for(r.shared.hiddenCallbacks=null,r=0;r<l.length;r++)Ao(l[r],s)}catch(c){ku(a,a.return,c)}}n&&64&i&&yl(o),_l(o,o.return);break;case 27:jl(o);case 26:case 5:$l(r,o,n),n&&null===a&&4&i&&bl(o),_l(o,o.return);break;case 12:$l(r,o,n);break;case 31:$l(r,o,n),n&&4&i&&Ll(r,o);break;case 13:$l(r,o,n),n&&4&i&&Ul(r,o);break;case 22:null===o.memoizedState&&$l(r,o,n),_l(o,o.return);break;case 30:break;default:$l(r,o,n)}t=t.sibling}}function Ql(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Lr(n))}function Xl(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Lr(e))}function Zl(e,t,n,a){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)ec(e,t,n,a),t=t.sibling}function ec(e,t,n,a){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Zl(e,t,n,a),2048&r&&gl(9,t);break;case 1:case 31:case 13:default:Zl(e,t,n,a);break;case 3:Zl(e,t,n,a),2048&r&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Lr(e)));break;case 12:if(2048&r){Zl(e,t,n,a),e=t.stateNode;try{var o=t.memoizedProps,i=o.id,s=o.onPostCommit;"function"===typeof s&&s(i,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(l){ku(t,t.return,l)}}else Zl(e,t,n,a);break;case 23:break;case 22:o=t.stateNode,i=t.alternate,null!==t.memoizedState?2&o._visibility?Zl(e,t,n,a):nc(e,t):2&o._visibility?Zl(e,t,n,a):(o._visibility|=2,tc(e,t,n,a,0!==(10256&t.subtreeFlags)||!1)),2048&r&&Ql(i,t);break;case 24:Zl(e,t,n,a),2048&r&&Xl(t.alternate,t)}}function tc(e,t,n,a,r){for(r=r&&(0!==(10256&t.subtreeFlags)||!1),t=t.child;null!==t;){var o=e,i=t,s=n,l=a,c=i.flags;switch(i.tag){case 0:case 11:case 15:tc(o,i,s,l,r),gl(8,i);break;case 23:break;case 22:var u=i.stateNode;null!==i.memoizedState?2&u._visibility?tc(o,i,s,l,r):nc(o,i):(u._visibility|=2,tc(o,i,s,l,r)),r&&2048&c&&Ql(i.alternate,i);break;case 24:tc(o,i,s,l,r),r&&2048&c&&Xl(i.alternate,i);break;default:tc(o,i,s,l,r)}t=t.sibling}}function nc(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,a=t,r=a.flags;switch(a.tag){case 22:nc(n,a),2048&r&&Ql(a.alternate,a);break;case 24:nc(n,a),2048&r&&Xl(a.alternate,a);break;default:nc(n,a)}t=t.sibling}}var ac=8192;function rc(e,t,n){if(e.subtreeFlags&ac)for(e=e.child;null!==e;)oc(e,t,n),e=e.sibling}function oc(e,t,n){switch(e.tag){case 26:rc(e,t,n),e.flags&ac&&null!==e.memoizedState&&function(e,t,n,a){if("stylesheet"===n.type&&("string"!==typeof a.media||!1!==matchMedia(a.media).matches)&&0===(4&n.state.loading)){if(null===n.instance){var r=Kd(a.href),o=t.querySelector(Yd(r));if(o)return null!==(t=o._p)&&"object"===typeof t&&"function"===typeof t.then&&(e.count++,e=ih.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,void et(o);o=t.ownerDocument||t,a=Gd(a),(r=zd.get(r))&&Zd(a,r),et(o=o.createElement("link"));var i=o;i._p=new Promise(function(e,t){i.onload=e,i.onerror=t}),hd(o,"link",a),n.instance=o}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&0===(3&n.state.loading)&&(e.count++,n=ih.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}(n,Hl,e.memoizedState,e.memoizedProps);break;case 5:default:rc(e,t,n);break;case 3:case 4:var a=Hl;Hl=Ud(e.stateNode.containerInfo),rc(e,t,n),Hl=a;break;case 22:null===e.memoizedState&&(null!==(a=e.alternate)&&null!==a.memoizedState?(a=ac,ac=16777216,rc(e,t,n),ac=a):rc(e,t,n))}}function ic(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function sc(e){var t=e.deletions;if(0!==(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var a=t[n];Fl=a,uc(a,e)}ic(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)lc(e),e=e.sibling}function lc(e){switch(e.tag){case 0:case 11:case 15:sc(e),2048&e.flags&&vl(9,e,e.return);break;case 3:case 12:default:sc(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,cc(e)):sc(e)}}function cc(e){var t=e.deletions;if(0!==(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var a=t[n];Fl=a,uc(a,e)}ic(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:vl(8,t,t.return),cc(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,cc(t));break;default:cc(t)}e=e.sibling}}function uc(e,t){for(;null!==Fl;){var n=Fl;switch(n.tag){case 0:case 11:case 15:vl(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var a=n.memoizedState.cachePool.pool;null!=a&&a.refCount++}break;case 24:Lr(n.memoizedState.cache)}if(null!==(a=n.child))a.return=n,Fl=a;else e:for(n=e;null!==Fl;){var r=(a=Fl).sibling,o=a.return;if(Il(a),a===n){Fl=null;break e}if(null!==r){r.return=o,Fl=r;break e}Fl=o}}}var dc={getCacheForType:function(e){var t=Tr(Br),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Tr(Br).controller.signal}},hc="function"===typeof WeakMap?WeakMap:Map,pc=0,fc=null,mc=null,gc=0,vc=0,yc=null,wc=!1,_c=!1,xc=!1,bc=0,kc=0,Cc=0,Dc=0,Ac=0,Ec=0,jc=0,Sc=null,Nc=null,Pc=!1,Tc=0,Fc=0,Oc=1/0,Ic=null,Rc=null,Mc=0,Bc=null,zc=null,Lc=0,Uc=0,Vc=null,qc=null,Hc=0,Wc=null;function Kc(){return 0!==(2&pc)&&0!==gc?gc&-gc:null!==O.T?Vu():Be()}function Yc(){if(0===Ec)if(0===(536870912&gc)||dr){var e=Ce;0===(3932160&(Ce<<=1))&&(Ce=262144),Ec=e}else Ec=536870912;return null!==(e=Fo.current)&&(e.flags|=32),Ec}function Gc(e,t,n){(e!==fc||2!==vc&&9!==vc)&&null===e.cancelPendingCommit||(tu(e,0),Xc(e,gc,Ec,!1)),Te(e,n),0!==(2&pc)&&e===fc||(e===fc&&(0===(2&pc)&&(Dc|=n),4===kc&&Xc(e,gc,Ec,!1)),Iu(e))}function Jc(e,t,n){if(0!==(6&pc))throw Error(i(327));for(var a=!n&&0===(127&t)&&0===(t&e.expiredLanes)||je(e,t),r=a?function(e,t){var n=pc;pc|=2;var a=ru(),r=ou();fc!==e||gc!==t?(Ic=null,Oc=le()+500,tu(e,t)):_c=je(e,t);e:for(;;)try{if(0!==vc&&null!==mc){t=mc;var o=yc;t:switch(vc){case 1:vc=0,yc=null,hu(e,t,o,1);break;case 2:case 9:if(to(o)){vc=0,yc=null,du(t);break}t=function(){2!==vc&&9!==vc||fc!==e||(vc=7),Iu(e)},o.then(t,t);break e;case 3:vc=7;break e;case 4:vc=5;break e;case 7:to(o)?(vc=0,yc=null,du(t)):(vc=0,yc=null,hu(e,t,o,7));break;case 5:var s=null;switch(mc.tag){case 26:s=mc.memoizedState;case 5:case 27:var l=mc;if(s?rh(s):l.stateNode.complete){vc=0,yc=null;var c=l.sibling;if(null!==c)mc=c;else{var u=l.return;null!==u?(mc=u,pu(u)):mc=null}break t}}vc=0,yc=null,hu(e,t,o,5);break;case 6:vc=0,yc=null,hu(e,t,o,6);break;case 8:eu(),kc=6;break e;default:throw Error(i(462))}}cu();break}catch(d){nu(e,d)}return Cr=kr=null,O.H=a,O.A=r,pc=n,null!==mc?0:(fc=null,gc=0,Na(),kc)}(e,t):su(e,t,!0),o=a;;){if(0===r){_c&&!a&&Xc(e,t,0,!1);break}if(n=e.current.alternate,!o||Qc(n)){if(2===r){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=0!==(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){t=s;e:{var l=e;r=Sc;var c=l.current.memoizedState.isDehydrated;if(c&&(tu(l,s).flags|=256),2!==(s=su(l,s,!1))){if(xc&&!c){l.errorRecoveryDisabledLanes|=o,Dc|=o,r=4;break e}o=Nc,Nc=r,null!==o&&(null===Nc?Nc=o:Nc.push.apply(Nc,o))}r=s}if(o=!1,2!==r)continue}}if(1===r){tu(e,0),Xc(e,t,0,!0);break}e:{switch(a=e,o=r){case 0:case 1:throw Error(i(345));case 4:if((4194048&t)!==t)break;case 6:Xc(a,t,Ec,!wc);break e;case 2:Nc=null;break;case 3:case 5:break;default:throw Error(i(329))}if((62914560&t)===t&&10<(r=Tc+300-le())){if(Xc(a,t,Ec,!wc),0!==Ee(a,0,!0))break e;Lc=t,a.timeoutHandle=xd($c.bind(null,a,n,Nc,Ic,Pc,t,Ec,Dc,jc,wc,o,"Throttled",-0,0),r)}else $c(a,n,Nc,Ic,Pc,t,Ec,Dc,jc,wc,o,null,-0,0)}break}r=su(e,t,!1),o=!1}Iu(e)}function $c(e,t,n,a,r,o,i,s,l,c,u,d,h,p){if(e.timeoutHandle=-1,8192&(d=t.subtreeFlags)||16785408===(16785408&d)){oc(t,o,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Tt});var f=(62914560&o)===o?Tc-le():(4194048&o)===o?Fc-le():0;if(null!==(f=function(e,t){return e.stylesheets&&0===e.count&&lh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&lh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&0===oh&&(oh=62500*function(){if("function"===typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var r=n[a],o=r.transferSize,i=r.initiatorType,s=r.duration;if(o&&s&&pd(i)){for(i=0,s=r.responseEnd,a+=1;a<n.length;a++){var l=n[a],c=l.startTime;if(c>s)break;var u=l.transferSize,d=l.initiatorType;u&&pd(d)&&(i+=u*((l=l.responseEnd)<s?1:(s-c)/(l-c)))}if(--a,t+=8*(o+i)/(r.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&"number"===typeof(e=navigator.connection.downlink)?e:5}());var r=setTimeout(function(){if(e.waitingForImages=!1,0===e.count&&(e.stylesheets&&lh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>oh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(r)}}:null}(d,f)))return Lc=o,e.cancelPendingCommit=f(mu.bind(null,e,t,o,n,a,r,i,s,l,u,d,null,h,p)),void Xc(e,o,i,!c)}mu(e,t,o,n,a,r,i,s,l)}function Qc(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var a=0;a<n.length;a++){var r=n[a],o=r.getSnapshot;r=r.value;try{if(!Xn(o(),r))return!1}catch(i){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Xc(e,t,n,a){t&=~Ac,t&=~Dc,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var r=t;0<r;){var o=31-_e(r),i=1<<o;a[o]=-1,r&=~i}0!==n&&Fe(e,n,t)}function Zc(){return 0!==(6&pc)||(Ru(0,!1),!1)}function eu(){if(null!==mc){if(0===vc)var e=mc.return;else Cr=kr=null,si(e=mc),so=null,lo=0,e=mc;for(;null!==e;)ml(e.alternate,e),e=e.return;mc=null}}function tu(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,bd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Lc=0,eu(),fc=e,mc=n=La(e.current,null),gc=t,vc=0,yc=null,wc=!1,_c=je(e,t),xc=!1,jc=Ec=Ac=Dc=Cc=kc=0,Nc=Sc=null,Pc=!1,0!==(8&t)&&(t|=32&t);var a=e.entangledLanes;if(0!==a)for(e=e.entanglements,a&=t;0<a;){var r=31-_e(a),o=1<<r;t|=e[r],a&=~o}return bc=t,Na(),n}function nu(e,t){qo=null,O.H=ms,t===Qr||t===Zr?(t=oo(),vc=3):t===Xr?(t=oo(),vc=4):vc=t===Ts?8:null!==t&&"object"===typeof t&&"function"===typeof t.then?6:1,yc=t,null===mc&&(kc=1,Es(e,Ga(t,e.current)))}function au(){var e=Fo.current;return null===e||((4194048&gc)===gc?null===Oo:((62914560&gc)===gc||0!==(536870912&gc))&&e===Oo)}function ru(){var e=O.H;return O.H=ms,null===e?ms:e}function ou(){var e=O.A;return O.A=dc,e}function iu(){kc=4,wc||(4194048&gc)!==gc&&null!==Fo.current||(_c=!0),0===(134217727&Cc)&&0===(134217727&Dc)||null===fc||Xc(fc,gc,Ec,!1)}function su(e,t,n){var a=pc;pc|=2;var r=ru(),o=ou();fc===e&&gc===t||(Ic=null,tu(e,t)),t=!1;var i=kc;e:for(;;)try{if(0!==vc&&null!==mc){var s=mc,l=yc;switch(vc){case 8:eu(),i=6;break e;case 3:case 2:case 9:case 6:null===Fo.current&&(t=!0);var c=vc;if(vc=0,yc=null,hu(e,s,l,c),n&&_c){i=0;break e}break;default:c=vc,vc=0,yc=null,hu(e,s,l,c)}}lu(),i=kc;break}catch(u){nu(e,u)}return t&&e.shellSuspendCounter++,Cr=kr=null,pc=a,O.H=r,O.A=o,null===mc&&(fc=null,gc=0,Na()),i}function lu(){for(;null!==mc;)uu(mc)}function cu(){for(;null!==mc&&!ie();)uu(mc)}function uu(e){var t=il(e.alternate,e,bc);e.memoizedProps=e.pendingProps,null===t?pu(e):mc=t}function du(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Ws(n,t,t.pendingProps,t.type,void 0,gc);break;case 11:t=Ws(n,t,t.pendingProps,t.type.render,t.ref,gc);break;case 5:si(t);default:ml(n,t),t=il(n,t=mc=Ua(t,bc),bc)}e.memoizedProps=e.pendingProps,null===t?pu(e):mc=t}function hu(e,t,n,a){Cr=kr=null,si(t),so=null,lo=0;var r=t.return;try{if(function(e,t,n,a,r){if(n.flags|=32768,null!==a&&"object"===typeof a&&"function"===typeof a.then){if(null!==(t=n.alternate)&&Sr(t,n,r,!0),null!==(n=Fo.current)){switch(n.tag){case 31:case 13:return null===Oo?iu():null===n.alternate&&0===kc&&(kc=3),n.flags&=-257,n.flags|=65536,n.lanes=r,a===eo?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([a]):t.add(a),Cu(e,a,r)),!1;case 22:return n.flags|=65536,a===eo?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([a]):n.add(a),Cu(e,a,r)),!1}throw Error(i(435,n.tag))}return Cu(e,a,r),iu(),!1}if(dr)return null!==(t=Fo.current)?(0===(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=r,a!==fr&&xr(Ga(e=Error(i(422),{cause:a}),n))):(a!==fr&&xr(Ga(t=Error(i(423),{cause:a}),n)),(e=e.current.alternate).flags|=65536,r&=-r,e.lanes|=r,a=Ga(a,n),bo(e,r=Ss(e.stateNode,a,r)),4!==kc&&(kc=2)),!1;var o=Error(i(520),{cause:a});if(o=Ga(o,n),null===Sc?Sc=[o]:Sc.push(o),4!==kc&&(kc=2),null===t)return!0;a=Ga(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,bo(n,e=Ss(n.stateNode,a,e)),!1;case 1:if(t=n.type,o=n.stateNode,0===(128&n.flags)&&("function"===typeof t.getDerivedStateFromError||null!==o&&"function"===typeof o.componentDidCatch&&(null===Rc||!Rc.has(o))))return n.flags|=65536,r&=-r,n.lanes|=r,Ps(r=Ns(r),e,n,a),bo(n,r),!1}n=n.return}while(null!==n);return!1}(e,r,t,n,gc))return kc=1,Es(e,Ga(n,e.current)),void(mc=null)}catch(o){if(null!==r)throw mc=r,o;return kc=1,Es(e,Ga(n,e.current)),void(mc=null)}32768&t.flags?(dr||1===a?e=!0:_c||0!==(536870912&gc)?e=!1:(wc=e=!0,(2===a||9===a||3===a||6===a)&&(null!==(a=Fo.current)&&13===a.tag&&(a.flags|=16384))),fu(t,e)):pu(t)}function pu(e){var t=e;do{if(0!==(32768&t.flags))return void fu(t,wc);e=t.return;var n=pl(t.alternate,t,bc);if(null!==n)return void(mc=n);if(null!==(t=t.sibling))return void(mc=t);mc=t=e}while(null!==t);0===kc&&(kc=5)}function fu(e,t){do{var n=fl(e.alternate,e);if(null!==n)return n.flags&=32767,void(mc=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deleti
vendor: 1,782 bytes, line 2
2ons=null),!t&&null!==(e=e.sibling))return void(mc=e);mc=e=n}while(null!==e);kc=6,mc=null}function mu(e,t,n,a,r,o,s,l,c){e.cancelPendingCommit=null;do{_u()}while(0!==Mc);if(0!==(6&pc))throw Error(i(327));if(null!==t){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,function(e,t,n,a,r,o){var i=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,c=e.hiddenUpdates;for(n=i&~n;0<n;){var u=31-_e(n),d=1<<u;s[u]=0,l[u]=-1;var h=c[u];if(null!==h)for(c[u]=null,u=0;u<h.length;u++){var p=h[u];null!==p&&(p.lane&=-536870913)}n&=~d}0!==a&&Fe(e,a,0),0!==o&&0===r&&0!==e.tag&&(e.suspendedLanes|=o&~(i&~t))}(e,n,o|=Sa,s,l,c),e===fc&&(mc=fc=null,gc=0),zc=t,Bc=e,Lc=n,Uc=o,Vc=r,qc=a,0!==(10256&t.subtreeFlags)||0!==(10256&t.flags)?(e.callbackNode=null,e.callbackPriority=0,re(he,function(){return xu(),null})):(e.callbackNode=null,e.callbackPriority=0),a=0!==(13878&t.flags),0!==(13878&t.subtreeFlags)||a){a=O.T,O.T=null,r=I.p,I.p=2,s=pc,pc|=4;try{!function(e,t){if(e=e.containerInfo,fd=wh,ra(e=aa(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var a=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(a&&0!==a.rangeCount){n=a.anchorNode;var r=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{n.nodeType,o.nodeType}catch(g){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,h=e,p=null;t:for(;;){for(var f;h!==n||0!==r&&3!==h.nodeType||(l=s+r),h!==o||0!==a&&3!==h.nodeType||(c=s+a),3===h.nodeType&&(s+=h.nodeValue.length),null!==(f=h.firstChild);)p=h,h=f;for(;;){if(h===e)break t;if(p===n&&++u===r&&(l=s),p===o&&++d===a&&(c=s),null!==(f=h.nextSibling))break;
vendor: 6,895 bytes, line 2
2p=(h=p).parentNode}h=f}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(md={focusedElem:e,selectionRange:n},wh=!1,Fl=t;null!==Fl;)if(e=(t=Fl).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Fl=e;else for(;null!==Fl;){switch(o=(t=Fl).alternate,e=t.flags,t.tag){case 0:if(0!==(4&e)&&null!==(e=null!==(e=t.updateQueue)?e.events:null))for(n=0;n<e.length;n++)(r=e[n]).ref.impl=r.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(0!==(1024&e)&&null!==o){e=void 0,n=t,r=o.memoizedProps,o=o.memoizedState,a=n.stateNode;try{var m=ks(n.type,r);e=a.getSnapshotBeforeUpdate(m,o),a.__reactInternalSnapshotBeforeUpdate=e}catch(v){ku(n,n.return,v)}}break;case 3:if(0!==(1024&e))if(9===(n=(e=t.stateNode.containerInfo).nodeType))Sd(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Sd(e);break;default:e.textContent=""}break;default:if(0!==(1024&e))throw Error(i(163))}if(null!==(e=t.sibling)){e.return=t.return,Fl=e;break}Fl=t.return}}(e,t)}finally{pc=s,I.p=r,O.T=a}}Mc=1,gu(),vu(),yu()}}function gu(){if(1===Mc){Mc=0;var e=Bc,t=zc,n=0!==(13878&t.flags);if(0!==(13878&t.subtreeFlags)||n){n=O.T,O.T=null;var a=I.p;I.p=2;var r=pc;pc|=4;try{Wl(t,e);var o=md,i=aa(e.containerInfo),s=o.focusedElem,l=o.selectionRange;if(i!==s&&s&&s.ownerDocument&&na(s.ownerDocument.documentElement,s)){if(null!==l&&ra(s)){var c=l.start,u=l.end;if(void 0===u&&(u=c),"selectionStart"in s)s.selectionStart=c,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,h=d&&d.defaultView||window;if(h.getSelection){var p=h.getSelection(),f=s.textContent.length,m=Math.min(l.start,f),g=void 0===l.end?m:Math.min(l.end,f);!p.extend&&m>g&&(i=g,g=m,m=i);var v=ta(s,m),y=ta(s,g);if(v&&y&&(1!==p.rangeCount||p.anchorNode!==v.node||p.anchorOffset!==v.offset||p.focusNode!==y.node||p.focusOffset!==y.offset)){var w=d.createRange();w.setStart(v.node,v.offset),p.removeAllRanges(),m>g?(p.addRange(w),p.extend(y.node,y.offset)):(w.setEnd(y.node,y.offset),p.addRange(w))}}}}for(d=[],p=s;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"===typeof s.focus&&s.focus(),s=0;s<d.length;s++){var _=d[s];_.element.scrollLeft=_.left,_.element.scrollTop=_.top}}wh=!!fd,md=fd=null}finally{pc=r,I.p=a,O.T=n}}e.current=t,Mc=2}}function vu(){if(2===Mc){Mc=0;var e=Bc,t=zc,n=0!==(8772&t.flags);if(0!==(8772&t.subtreeFlags)||n){n=O.T,O.T=null;var a=I.p;I.p=2;var r=pc;pc|=4;try{Ol(e,t.alternate,t)}finally{pc=r,I.p=a,O.T=n}}Mc=3}}function yu(){if(4===Mc||3===Mc){Mc=0,se();var e=Bc,t=zc,n=Lc,a=qc;0!==(10256&t.subtreeFlags)||0!==(10256&t.flags)?Mc=5:(Mc=0,zc=Bc=null,wu(e,e.pendingLanes));var r=e.pendingLanes;if(0===r&&(Rc=null),Me(n),t=t.stateNode,ye&&"function"===typeof ye.onCommitFiberRoot)try{ye.onCommitFiberRoot(ve,t,void 0,128===(128&t.current.flags))}catch(l){}if(null!==a){t=O.T,r=I.p,I.p=2,O.T=null;try{for(var o=e.onRecoverableError,i=0;i<a.length;i++){var s=a[i];o(s.value,{componentStack:s.stack})}}finally{O.T=t,I.p=r}}0!==(3&Lc)&&_u(),Iu(e),r=e.pendingLanes,0!==(261930&n)&&0!==(42&r)?e===Wc?Hc++:(Hc=0,Wc=e):Hc=0,Ru(0,!1)}}function wu(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,Lr(t)))}function _u(){return gu(),vu(),yu(),xu()}function xu(){if(5!==Mc)return!1;var e=Bc,t=Uc;Uc=0;var n=Me(Lc),a=O.T,r=I.p;try{I.p=32>n?32:n,O.T=null,n=Vc,Vc=null;var o=Bc,s=Lc;if(Mc=0,zc=Bc=null,Lc=0,0!==(6&pc))throw Error(i(331));var l=pc;if(pc|=4,lc(o.current),ec(o,o.current,s,n),pc=l,Ru(0,!1),ye&&"function"===typeof ye.onPostCommitFiberRoot)try{ye.onPostCommitFiberRoot(ve,o)}catch(c){}return!0}finally{I.p=r,O.T=a,wu(e,t)}}function bu(e,t,n){t=Ga(n,t),null!==(e=_o(e,t=Ss(e.stateNode,t,2),2))&&(Te(e,2),Iu(e))}function ku(e,t,n){if(3===e.tag)bu(e,e,n);else for(;null!==t;){if(3===t.tag){bu(t,e,n);break}if(1===t.tag){var a=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof a.componentDidCatch&&(null===Rc||!Rc.has(a))){e=Ga(n,e),null!==(a=_o(t,n=Ns(2),2))&&(Ps(n,a,t,e),Te(a,2),Iu(a));break}}t=t.return}}function Cu(e,t,n){var a=e.pingCache;if(null===a){a=e.pingCache=new hc;var r=new Set;a.set(t,r)}else void 0===(r=a.get(t))&&(r=new Set,a.set(t,r));r.has(n)||(xc=!0,r.add(n),e=Du.bind(null,e,t,n),t.then(e,e))}function Du(e,t,n){var a=e.pingCache;null!==a&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,fc===e&&(gc&n)===n&&(4===kc||3===kc&&(62914560&gc)===gc&&300>le()-Tc?0===(2&pc)&&tu(e,0):Ac|=n,jc===gc&&(jc=0)),Iu(e)}function Au(e,t){0===t&&(t=Ne()),null!==(e=Fa(e,t))&&(Te(e,t),Iu(e))}function Eu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Au(e,n)}function ju(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,r=e.memoizedState;null!==r&&(n=r.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(i(314))}null!==a&&a.delete(t),Au(e,n)}var Su=null,Nu=null,Pu=!1,Tu=!1,Fu=!1,Ou=0;function Iu(e){e!==Nu&&null===e.next&&(null===Nu?Su=Nu=e:Nu=Nu.next=e),Tu=!0,Pu||(Pu=!0,Cd(function(){0!==(6&pc)?re(ue,Mu):Bu()}))}function Ru(e,t){if(!Fu&&Tu){Fu=!0;do{for(var n=!1,a=Su;null!==a;){if(!t)if(0!==e){var r=a.pendingLanes;if(0===r)var o=0;else{var i=a.suspendedLanes,s=a.pingedLanes;o=(1<<31-_e(42|e)+1)-1,o=201326741&(o&=r&~(i&~s))?201326741&o|1:o?2|o:0}0!==o&&(n=!0,Uu(a,o))}else o=gc,0===(3&(o=Ee(a,a===fc?o:0,null!==a.cancelPendingCommit||-1!==a.timeoutHandle)))||je(a,o)||(n=!0,Uu(a,o));a=a.next}}while(n);Fu=!1}}function Mu(){Bu()}function Bu(){Tu=Pu=!1;var e=0;0!==Ou&&function(){var e=window.event;if(e&&"popstate"===e.type)return e!==_d&&(_d=e,!0);return _d=null,!1}()&&(e=Ou);for(var t=le(),n=null,a=Su;null!==a;){var r=a.next,o=zu(a,t);0===o?(a.next=null,null===n?Su=r:n.next=r,null===r&&(Nu=n)):(n=a,(0!==e||0!==(3&o))&&(Tu=!0)),a=r}0!==Mc&&5!==Mc||Ru(e,!1),0!==Ou&&(Ou=0)}function zu(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,r=e.expirationTimes,o=-62914561&e.pendingLanes;0<o;){var i=31-_e(o),s=1<<i,l=r[i];-1===l?0!==(s&n)&&0===(s&a)||(r[i]=Se(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}if(n=gc,n=Ee(e,e===(t=fc)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),a=e.callbackNode,0===n||e===t&&(2===vc||9===vc)||null!==e.cancelPendingCommit)return null!==a&&null!==a&&oe(a),e.callbackNode=null,e.callbackPriority=0;if(0===(3&n)||je(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==a&&oe(a),Me(n)){case 2:case 8:n=de;break;case 32:default:n=he;break;case 268435456:n=fe}return a=Lu.bind(null,e),n=re(n,a),e.callbackPriority=t,e.callbackNode=n,t}return null!==a&&null!==a&&oe(a),e.callbackPriority=2,e.callbackNode=null,2}function Lu(e,t){if(0!==Mc&&5!==Mc)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(_u()&&e.callbackNode!==n)return null;var a=gc;return 0===(a=Ee(e,e===fc?a:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Jc(e,a,t),zu(e,le(
vendor: 5,402 bytes, line 2
2)),null!=e.callbackNode&&e.callbackNode===n?Lu.bind(null,e):null)}function Uu(e,t){if(_u())return null;Jc(e,t,!0)}function Vu(){if(0===Ou){var e=qr;0===e&&(e=ke,0===(261888&(ke<<=1))&&(ke=256)),Ou=e}return Ou}function qu(e){return null==e||"symbol"===typeof e||"boolean"===typeof e?null:"function"===typeof e?e:Pt(""+e)}function Hu(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Wu=0;Wu<Ca.length;Wu++){var Ku=Ca[Wu];Da(Ku.toLowerCase(),"on"+(Ku[0].toUpperCase()+Ku.slice(1)))}Da(ga,"onAnimationEnd"),Da(va,"onAnimationIteration"),Da(ya,"onAnimationStart"),Da("dblclick","onDoubleClick"),Da("focusin","onFocus"),Da("focusout","onBlur"),Da(wa,"onTransitionRun"),Da(_a,"onTransitionStart"),Da(xa,"onTransitionCancel"),Da(ba,"onTransitionEnd"),rt("onMouseEnter",["mouseout","mouseover"]),rt("onMouseLeave",["mouseout","mouseover"]),rt("onPointerEnter",["pointerout","pointerover"]),rt("onPointerLeave",["pointerout","pointerover"]),at("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),at("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),at("onBeforeInput",["compositionend","keypress","textInput","paste"]),at("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),at("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),at("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Gu=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Yu));function Ju(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var a=e[n],r=a.event;a=a.listeners;e:{var o=void 0;if(t)for(var i=a.length-1;0<=i;i--){var s=a[i],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&r.isPropagationStopped())break e;o=s,r.currentTarget=c;try{o(r)}catch(u){Aa(u)}r.currentTarget=null,o=l}else for(i=0;i<a.length;i++){if(l=(s=a[i]).instance,c=s.currentTarget,s=s.listener,l!==o&&r.isPropagationStopped())break e;o=s,r.currentTarget=c;try{o(r)}catch(u){Aa(u)}r.currentTarget=null,o=l}}}}function $u(e,t){var n=t[He];void 0===n&&(n=t[He]=new Set);var a=e+"__bubble";n.has(a)||(ed(t,e,2,!1),n.add(a))}function Qu(e,t,n){var a=0;t&&(a|=4),ed(n,e,a,t)}var Xu="_reactListening"+Math.random().toString(36).slice(2);function Zu(e){if(!e[Xu]){e[Xu]=!0,tt.forEach(function(t){"selectionchange"!==t&&(Gu.has(t)||Qu(t,!1,e),Qu(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Xu]||(t[Xu]=!0,Qu("selectionchange",!1,t))}}function ed(e,t,n,a){switch(Ah(t)){case 2:var r=_h;break;case 8:r=xh;break;default:r=bh}n=r.bind(null,t,n,e),r=void 0,!Vt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(r=!0),a?void 0!==r?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):void 0!==r?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function td(e,t,n,a,r){var o=a;if(0===(1&t)&&0===(2&t)&&null!==a)e:for(;;){if(null===a)return;var i=a.tag;if(3===i||4===i){var s=a.stateNode.containerInfo;if(s===r)break;if(4===i)for(i=a.return;null!==i;){var c=i.tag;if((3===c||4===c)&&i.stateNode.containerInfo===r)return;i=i.return}for(;null!==s;){if(null===(i=$e(s)))return;if(5===(c=i.tag)||6===c||26===c||27===c){a=o=i;continue e}s=s.parentNode}}a=a.return}zt(function(){var a=o,r=Ot(n),i=[];e:{var s=ka.get(e);if(void 0!==s){var c=nn,u=e;switch(e){case"keypress":if(0===Gt(n))break e;case"keydown":case"keyup":c=yn;break;case"focusin":u="focus",c=cn;break;case"focusout":u="blur",c=cn;break;case"beforeblur":case"afterblur":c=cn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=sn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=ln;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=_n;break;case ga:case va:case ya:c=un;break;case ba:c=xn;break;case"scroll":case"scrollend":c=rn;break;case"wheel":c=bn;break;case"copy":case"cut":case"paste":c=dn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=wn;break;case"toggle":case"beforetoggle":c=kn}var d=0!==(4&t),h=!d&&("scroll"===e||"scrollend"===e),p=d?null!==s?s+"Capture":null:s;d=[];for(var f,m=a;null!==m;){var g=m;if(f=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===f||null===p||null!=(g=Lt(m,p))&&d.push(nd(m,g,f)),h)break;m=m.return}0<d.length&&(s=new c(s,u,null,n,r),i.push({event:s,listeners:d}))}}if(0===(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===Ft||!(u=n.relatedTarget||n.fromElement)||!$e(u)&&!u[qe])&&(c||s)&&(s=r.window===r?r:(s=r.ownerDocument)?s.defaultView||s.parentWindow:window,c?(c=a,null!==(u=(u=n.relatedTarget||n.toElement)?$e(u):null)&&(h=l(u),d=u.tag,u!==h||5!==d&&27!==d&&6!==d)&&(u=null)):(c=null,u=a),c!==u)){
vendor: 11,997 bytes, line 2
2if(d=sn,g="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(d=wn,g="onPointerLeave",p="onPointerEnter",m="pointer"),h=null==c?s:Xe(c),f=null==u?s:Xe(u),(s=new d(g,m+"leave",c,n,r)).target=h,s.relatedTarget=f,g=null,$e(r)===a&&((d=new d(p,m+"enter",u,n,r)).target=f,d.relatedTarget=h,g=d),h=g,c&&u)e:{for(d=rd,m=u,f=0,g=p=c;g;g=d(g))f++;g=0;for(var v=m;v;v=d(v))g++;for(;0<f-g;)p=d(p),f--;for(;0<g-f;)m=d(m),g--;for(;f--;){if(p===m||null!==m&&p===m.alternate){d=p;break e}p=d(p),m=d(m)}d=null}else d=null;null!==c&&od(i,s,c,d,!1),null!==u&&null!==h&&od(i,h,u,d,!0)}if("select"===(c=(s=a?Xe(a):window).nodeName&&s.nodeName.toLowerCase())||"input"===c&&"file"===s.type)var y=Un;else if(In(s))if(Vn)y=Qn;else{y=Jn;var w=Gn}else!(c=s.nodeName)||"input"!==c.toLowerCase()||"checkbox"!==s.type&&"radio"!==s.type?a&&jt(a.elementType)&&(y=Un):y=$n;switch(y&&(y=y(e,a))?Rn(i,y,n,r):(w&&w(e,s,a),"focusout"===e&&a&&"number"===s.type&&null!=a.memoizedProps.value&&_t(s,"number",s.value)),w=a?Xe(a):window,e){case"focusin":(In(w)||"true"===w.contentEditable)&&(ia=w,sa=a,la=null);break;case"focusout":la=sa=ia=null;break;case"mousedown":ca=!0;break;case"contextmenu":case"mouseup":case"dragend":ca=!1,ua(i,n,r);break;case"selectionchange":if(oa)break;case"keydown":case"keyup":ua(i,n,r)}var _;if(Dn)e:{switch(e){case"compositionstart":var x="onCompositionStart";break e;case"compositionend":x="onCompositionEnd";break e;case"compositionupdate":x="onCompositionUpdate";break e}x=void 0}else Fn?Pn(e,n)&&(x="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(x="onCompositionStart");x&&(jn&&"ko"!==n.locale&&(Fn||"onCompositionStart"!==x?"onCompositionEnd"===x&&Fn&&(_=Yt()):(Wt="value"in(Ht=r)?Ht.value:Ht.textContent,Fn=!0)),0<(w=ad(a,x)).length&&(x=new hn(x,e,null,n,r),i.push({event:x,listeners:w}),_?x.data=_:null!==(_=Tn(n))&&(x.data=_))),(_=En?function(e,t){switch(e){case"compositionend":return Tn(t);case"keypress":return 32!==t.which?null:(Nn=!0,Sn);case"textInput":return(e=t.data)===Sn&&Nn?null:e;default:return null}}(e,n):function(e,t){if(Fn)return"compositionend"===e||!Dn&&Pn(e,t)?(e=Yt(),Kt=Wt=Ht=null,Fn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return jn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(x=ad(a,"onBeforeInput")).length&&(w=new hn("onBeforeInput","beforeinput",null,n,r),i.push({event:w,listeners:x}),w.data=_)),function(e,t,n,a,r){if("submit"===t&&n&&n.stateNode===r){var o=qu((r[Ve]||null).action),i=a.submitter;i&&null!==(t=(t=i[Ve]||null)?qu(t.formAction):i.getAttribute("formAction"))&&(o=t,i=null);var s=new nn("action","action",null,a,r);e.push({event:s,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(0!==Ou){var e=i?Hu(r,i):new FormData(r);ts(n,{pending:!0,data:e,method:r.method,action:o},null,e)}}else"function"===typeof o&&(s.preventDefault(),e=i?Hu(r,i):new FormData(r),ts(n,{pending:!0,data:e,method:r.method,action:o},o,e))},currentTarget:r}]})}}(i,e,a,n,r)}Ju(i,t)})}function nd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ad(e,t){for(var n=t+"Capture",a=[];null!==e;){var r=e,o=r.stateNode;if(5!==(r=r.tag)&&26!==r&&27!==r||null===o||(null!=(r=Lt(e,n))&&a.unshift(nd(e,r,o)),null!=(r=Lt(e,t))&&a.push(nd(e,r,o))),3===e.tag)return a;e=e.return}return[]}function rd(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function od(e,t,n,a,r){for(var o=t._reactName,i=[];null!==n&&n!==a;){var s=n,l=s.alternate,c=s.stateNode;if(s=s.tag,null!==l&&l===a)break;5!==s&&26!==s&&27!==s||null===c||(l=c,r?null!=(c=Lt(n,o))&&i.unshift(nd(n,c,l)):r||null!=(c=Lt(n,o))&&i.push(nd(n,c,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var id=/\r\n?/g,sd=/\u0000|\uFFFD/g;function ld(e){return("string"===typeof e?e:""+e).replace(id,"\n").replace(sd,"")}function cd(e,t){return t=ld(t),ld(e)===t}function ud(e,t,n,a,r,o){switch(n){case"children":"string"===typeof a?"body"===t||"textarea"===t&&""===a||Ct(e,a):("number"===typeof a||"bigint"===typeof a)&&"body"!==t&&Ct(e,""+a);break;case"className":ct(e,"class",a);break;case"tabIndex":ct(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ct(e,n,a);break;case"style":Et(e,a,o);break;case"data":if("object"!==t){ct(e,"data",a);break}case"src":case"href":if(""===a&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==a||"function"===typeof a||"symbol"===typeof a||"boolean"===typeof a){e.removeAttribute(n);break}a=Pt(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if("function"===typeof a){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"===typeof o&&("formAction"===n?("input"!==t&&ud(e,t,"name",r.name,r,null),ud(e,t,"formEncType",r.formEncType,r,null),ud(e,t,"formMethod",r.formMethod,r,null),ud(e,t,"formTarget",r.formTarget,r,null)):(ud(e,t,"encType",r.encType,r,null),ud(e,t,"method",r.method,r,null),ud(e,t,"target",r.target,r,null))),null==a||"symbol"===typeof a||"boolean"===typeof a){e.removeAttribute(n);break}a=Pt(""+a),e.setAttribute(n,a);break;case"onClick":null!=a&&(e.onclick=Tt);break;case"onScroll":null!=a&&$u("scroll",e);break;case"onScrollEnd":null!=a&&$u("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=a){if("object"!==typeof a||!("__html"in a))throw Error(i(61));if(null!=(n=a.__html)){if(null!=r.children)throw Error(i(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&"function"!==typeof a&&"symbol"!==typeof a;break;case"muted":e.muted=a&&"function"!==typeof a&&"symbol"!==typeof a;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==a||"function"===typeof a||"boolean"===typeof a||"symbol"===typeof a){e.removeAttribute("xlink:href");break}n=Pt(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=a&&"function"!==typeof a&&"symbol"!==typeof a?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&"function"!==typeof a&&"symbol"!==typeof a?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===a?e.setAttribute(n,""):!1!==a&&null!=a&&"function"!==typeof a&&"symbol"!==typeof a?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=a&&"function"!==typeof a&&"symbol"!==typeof a&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":null==a||"function"===typeof a||"symbol"===typeof a||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":$u("beforetoggle",e),$u("toggle",e),lt(e,"popover",a);break;case"xlinkActuate":ut(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":ut(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":ut(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":ut(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":ut(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":ut(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":ut(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":ut(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":ut(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":lt(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&lt(e,n=St.get(n)||n,a)}}function dd(e,t,n,a,r,o){switch(n){case"style":Et(e,a,o);break;case"dangerouslySetInnerHTML":if(null!=a){if("object"!==typeof a||!("__html"in a))throw Error(i(61));if(null!=(n=a.__html)){if(null!=r.children)throw Error(i(60));e.innerHTML=n}}break;case"children":"string"===typeof a?Ct(e,a):("number"===typeof a||"bigint"===typeof a)&&Ct(e,""+a);break;case"onScroll":null!=a&&$u("scroll",e);break;case"onScrollEnd":null!=a&&$u("scrollend",e);break;case"onClick":null!=a&&(e.onclick=Tt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:nt.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(r=n.endsWith("Capture"),t=n.slice(2,r?n.length-7:void 0),"function"===typeof(o=null!=(o=e[Ve]||null)?o[n]:null)&&e.removeEventListener(t,o,r),"function"!==typeof a)?n in e?e[n]=a:!0===a?e.setAttribute(n,""):lt(e,n,a):("function"!==typeof o&&null!==o&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,r)))}}function hd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":$u("error",e),$u("load",e);var a,r=!1,o=!1;for(a in n)if(n.hasOwnProperty(a)){var s=n[a];if(null!=s)switch(a){case"src":r=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:ud(e,t,a,s,n,null)}}return o&&ud(e,t,"srcSet",n.srcSet,n,null),void(r&&ud(e,t,"src",n.src,n,null));case"input":$u("invalid",e);var l=a=s=o=null,c=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(null!=d)switch(r){case"name":o=d;break;case"type":s=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":a=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(i(137,t));break;default:ud(e,t,r,d,n,null)}}return void wt(e,a,l,c,u,s,o,!1);case"select":for(o in $u("invalid",e),r=s=a=null,n)if(n.hasOwnProperty(o)&&null!=(l=n[o]))switch(o){case"value":a=l;break;case"defaultValue":s=l;break;case"multiple":r=l;default:ud(e,t,o,l,n,null)}return t=a,n=s,e.multiple=!!r,void(null!=t?xt(e,!!r,t,!1):null!=n&&xt(e,!!r,n,!0));case"textarea":for(s in $u("invalid",e),a=o=r=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case"value":r=l;break;case"defaultValue":o=l;break;case"children":a=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(i(91));break;default:ud(e,t,s,l,n,null)}return void kt(e,r,o,a);case"option":for(c in n)if(n.hasOwnProperty(c)&&null!=(r=n[c]))if("selected"===c)e.selected=r&&"function"!==typeof r&&"symbol"!==typeof r;else ud(e,t,c,r,n,null);return;case"dialog":$u("beforetoggle",e),$u("toggle",e),$u("cancel",e),$u("close",e);break;case"iframe":case"object":$u("load",e);break;case"video":case"audio":for(r=0;r<Yu.length;r++)$u(Yu[r],e);break;case"image":$u("error",e),$u("load",e);break;case"details":$u("toggle",e);break;case"embed":case"source":case"link":$u("error",e),$u("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&null!=(r=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:ud(e,t,u,r,n,null)}return;default:if(jt(t)){for(d in n)n.hasOwnProperty(d)&&(void 0!==(r=n[d])&&dd(e,t,d,r,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(null!=(r=n[l])&&ud(e,t,l,r,n,null))}function pd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var fd=null,md=null;
vendor: 8,492 bytes, line 2
2function gd(e){return 9===e.nodeType?e:e.ownerDocument}function vd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function yd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function wd(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"bigint"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var _d=null;var xd="function"===typeof setTimeout?setTimeout:void 0,bd="function"===typeof clearTimeout?clearTimeout:void 0,kd="function"===typeof Promise?Promise:void 0,Cd="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof kd?function(e){return kd.resolve(null).then(e).catch(Dd)}:xd;function Dd(e){setTimeout(function(){throw e})}function Ad(e){return"head"===e}function Ed(e,t){var n=t,a=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&8===r.nodeType)if("/$"===(n=r.data)||"/&"===n){if(0===a)return e.removeChild(r),void Hh(t);a--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)a++;else if("html"===n)Bd(e.ownerDocument.documentElement);else if("head"===n){Bd(n=e.ownerDocument.head);for(var o=n.firstChild;o;){var i=o.nextSibling,s=o.nodeName;o[Ge]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===o.rel.toLowerCase()||n.removeChild(o),o=i}}else"body"===n&&Bd(e.ownerDocument.body);n=r}while(n);Hh(t)}function jd(e,t){var n=e;e=0;do{var a=n.nextSibling;if(1===n.nodeType?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",""===n.getAttribute("style")&&n.removeAttribute("style")):3===n.nodeType&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===e)break;e--}else"$"!==n&&"$?"!==n&&"$~"!==n&&"$!"!==n||e++;n=a}while(n)}function Sd(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Sd(n),Je(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function Nd(e,t){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Fd(e.nextSibling)))return null}return e}function Pd(e){return"$?"===e.data||"$~"===e.data}function Td(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Fd(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}var Od=null;function Id(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return Fd(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function Rd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n||"$~"===n||"&"===n){if(0===t)return e;t--}else"/$"!==n&&"/&"!==n||t++}e=e.previousSibling}return null}function Md(e,t,n){switch(t=gd(n),e){case"html":if(!(e=t.documentElement))throw Error(i(452));return e;case"head":if(!(e=t.head))throw Error(i(453));return e;case"body":if(!(e=t.body))throw Error(i(454));return e;default:throw Error(i(451))}}function Bd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Je(e)}var zd=new Map,Ld=new Set;function Ud(e){return"function"===typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Vd=I.d;I.d={f:function(){var e=Vd.f(),t=Zc();return e||t},r:function(e){var t=Qe(e);null!==t&&5===t.tag&&"form"===t.type?as(t):Vd.r(e)},D:function(e){Vd.D(e),Hd("dns-prefetch",e,null)},C:function(e,t){Vd.C(e,t),Hd("preconnect",e,t)},L:function(e,t,n){Vd.L(e,t,n);var a=qd;if(a&&e&&t){var r='link[rel="preload"][as="'+vt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(r+='[imagesrcset="'+vt(n.imageSrcSet)+'"]',"string"===typeof n.imageSizes&&(r+='[imagesizes="'+vt(n.imageSizes)+'"]')):r+='[href="'+vt(e)+'"]';var o=r;switch(t){case"style":o=Kd(e);break;case"script":o=Jd(e)}zd.has(o)||(e=p({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),zd.set(o,e),null!==a.querySelector(r)||"style"===t&&a.querySelector(Yd(o))||"script"===t&&a.querySelector($d(o))||(hd(t=a.createElement("link"),"link",e),et(t),a.head.appendChild(t)))}},m:function(e,t){Vd.m(e,t);var n=qd;if(n&&e){var a=t&&"string"===typeof t.as?t.as:"script",r='link[rel="modulepreload"][as="'+vt(a)+'"][href="'+vt(e)+'"]',o=r;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Jd(e)}if(!zd.has(o)&&(e=p({rel:"modulepreload",href:e},t),zd.set(o,e),null===n.querySelector(r))){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector($d(o)))return}hd(a=n.createElement("link"),"link",e),et(a),n.head.appendChild(a)}}},X:function(e,t){Vd.X(e,t);var n=qd;if(n&&e){var a=Ze(n).hoistableScripts,r=Jd(e),o=a.get(r);o||((o=n.querySelector($d(r)))||(e=p({src:e,async:!0},t),(t=zd.get(r))&&eh(e,t),et(o=n.createElement("script")),hd(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(r,o))}},S:function(e,t,n){Vd.S(e,t,n);var a=qd;if(a&&e){var r=Ze(a).hoistableStyles,o=Kd(e);t=t||"default";var i=r.get(o);if(!i){var s={loading:0,preload:null};if(i=a.querySelector(Yd(o)))s.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":t},n),(n=zd.get(o))&&Zd(e,n);var l=i=a.createElement("link");et(l),hd(l,"link",e),l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Xd(i,t,a)}i={type:"stylesheet",instance:i,count:1,state:s},r.set(o,i)}}},M:function(e,t){Vd.M(e,t);var n=qd;if(n&&e){var a=Ze(n).hoistableScripts,r=Jd(e),o=a.get(r);o||((o=n.querySelector($d(r)))||(e=p({src:e,async:!0,type:"module"},t),(t=zd.get(r))&&eh(e,t),et(o=n.createElement("script")),hd(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(r,o))}}};var qd="undefined"===typeof document?null:document;function Hd(e,t,n){var a=qd;if(a&&"string"===typeof t&&t){var r=vt(t);r='link[rel="'+e+'"][href="'+r+'"]',"string"===typeof n&&(r+='[crossorigin="'+n+'"]'),Ld.has(r)||(Ld.add(r),e={rel:e,crossOrigin:n,href:t},null===a.querySelector(r)&&(hd(t=a.createElement("link"),"link",e),et(t),a.head.appendChild(t)))}}function Wd(e,t,n,a){var r,o,s,l,c=(c=K.current)?Ud(c):null;if(!c)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return"string"===typeof n.precedence&&"string"===typeof n.href?(t=Kd(n.href),(a=(n=Ze(c).hoistableStyles).get(t))||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"===typeof n.href&&"string"===typeof n.precedence){e=Kd(n.href);var u=Ze(c).hoistableStyles,d=u.get(e);if(d||(c=c.ownerDocument||c,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=c.querySelector(Yd(e)))&&!u._p&&(d.instance=u,d.state.loading=5),zd.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},zd.set(e,n),u||(r=c,o=e,s=n,l=d.state,r.querySelector('link[rel="preload"][as="style"]['+o+"]")?l.loading=1:(o=r.createElement("link"),l.preload=o,o.addEventListener("load",function(){return l.loading|=1}),o.addEventListener("error",function(){return l.loading|=2}),hd(o,"link",s),et(o),r.head.appendChild(o))))),t&&null===a)throw Error(i(528,""));return d}if(t&&null!==a)throw Error(i(529,""));return null;case"script":return t=n.async,"string"===typeof(n=n.src)&&t&&"function"!==typeof t&&"symbol"!==typeof t?(t=Jd(n),(a=(n=Ze(c).hoistableScripts).get(t))||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Kd(e){return'href="'+vt(e)+'"'}function Yd(e){return'link[rel="stylesheet"]['+e+"]"}function Gd(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Jd(e){return'[src="'+vt(e)+'"]'}function $d(e){return"script[async]"+e}
vendor: 4,530 bytes, line 2
2function Qd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+vt(n.href)+'"]');if(a)return t.instance=a,et(a),a;var r=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return et(a=(e.ownerDocument||e).createElement("style")),hd(a,"style",r),Xd(a,n.precedence,e),t.instance=a;case"stylesheet":r=Kd(n.href);var o=e.querySelector(Yd(r));if(o)return t.state.loading|=4,t.instance=o,et(o),o;a=Gd(n),(r=zd.get(r))&&Zd(a,r),et(o=(e.ownerDocument||e).createElement("link"));var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),hd(o,"link",a),t.state.loading|=4,Xd(o,n.precedence,e),t.instance=o;case"script":return o=Jd(n.src),(r=e.querySelector($d(o)))?(t.instance=r,et(r),r):(a=n,(r=zd.get(o))&&eh(a=p({},n),r),et(r=(e=e.ownerDocument||e).createElement("script")),hd(r,"link",a),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(i(443,t.type))}else"stylesheet"===t.type&&0===(4&t.state.loading)&&(a=t.instance,t.state.loading|=4,Xd(a,n.precedence,e));return t.instance}function Xd(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=a.length?a[a.length-1]:null,o=r,i=0;i<a.length;i++){var s=a[i];if(s.dataset.precedence===t)o=s;else if(o!==r)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Zd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function eh(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var th=null;function nh(e,t,n){if(null===th){var a=new Map,r=th=new Map;r.set(n,a)}else(a=(r=th).get(n))||(a=new Map,r.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),r=0;r<n.length;r++){var o=n[r];if(!(o[Ge]||o[Ue]||"link"===e&&"stylesheet"===o.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==o.namespaceURI){var i=o.getAttribute(t)||"";i=e+i;var s=a.get(i);s?s.push(o):a.set(i,[o])}}return a}function ah(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function rh(e){return"stylesheet"!==e.type||0!==(3&e.state.loading)}var oh=0;function ih(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)lh(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var sh=null;function lh(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,sh=new Map,t.forEach(ch,e),sh=null,ih.call(e))}function ch(e,t){if(!(4&t.state.loading)){var n=sh.get(e);if(n)var a=n.get(null);else{n=new Map,sh.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<r.length;o++){var i=r[o];"LINK"!==i.nodeName&&"not all"===i.getAttribute("media")||(n.set(i.dataset.precedence,i),a=i)}a&&n.set(null,a)}i=(r=t.instance).getAttribute("data-precedence"),(o=n.get(i)||a)===a&&n.set(null,r),n.set(i,r),this.count++,a=ih.bind(this),r.addEventListener("load",a),r.addEventListener("error",a),o?o.parentNode.insertBefore(r,o.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(r,e.firstChild),t.state.loading|=4}}var uh={$$typeof:x,Provider:null,Consumer:null,_currentValue:R,_currentValue2:R,_threadCount:0};function dh(e,t,n,a,r,o,i,s,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Pe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pe(0),this.hiddenUpdates=Pe(null),this.identifierPrefix=a,this.onUncaughtError=r,this.onCaughtError=o,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function hh(e,t,n,a,r,o,i,s,l,c,u,d){return e=new dh(e,t,n,i,l,c,u,d,s),t=1,!0===o&&(t|=24),o=Ba(3,null,null,t),e.current=o,o.stateNode=e,(t=zr()).refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:a,isDehydrated:n,cache:t},vo(o),e}function ph(e){return e?e=Ra:Ra}function fh(e,t,n,a,r,o){r=ph(r),null===a.context?a.context=r:a.pendingContext=r,(a=wo(t)).payload={element:n}
vendor: 4,251 bytes, line 2
2,null!==(o=void 0===o?null:o)&&(a.callback=o),null!==(n=_o(e,a,t))&&(Gc(n,0,t),xo(n,e,t))}function mh(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function gh(e,t){mh(e,t),(e=e.alternate)&&mh(e,t)}function vh(e){if(13===e.tag||31===e.tag){var t=Fa(e,67108864);null!==t&&Gc(t,0,67108864),gh(e,67108864)}}function yh(e){if(13===e.tag||31===e.tag){var t=Kc(),n=Fa(e,t=Re(t));null!==n&&Gc(n,0,t),gh(e,t)}}var wh=!0;function _h(e,t,n,a){var r=O.T;O.T=null;var o=I.p;try{I.p=2,bh(e,t,n,a)}finally{I.p=o,O.T=r}}function xh(e,t,n,a){var r=O.T;O.T=null;var o=I.p;try{I.p=8,bh(e,t,n,a)}finally{I.p=o,O.T=r}}function bh(e,t,n,a){if(wh){var r=kh(a);if(null===r)td(e,t,a,Ch,n),Ih(e,a);else if(function(e,t,n,a,r){switch(t){case"focusin":return jh=Rh(jh,e,t,n,a,r),!0;case"dragenter":return Sh=Rh(Sh,e,t,n,a,r),!0;case"mouseover":return Nh=Rh(Nh,e,t,n,a,r),!0;case"pointerover":var o=r.pointerId;return Ph.set(o,Rh(Ph.get(o)||null,e,t,n,a,r)),!0;case"gotpointercapture":return o=r.pointerId,Th.set(o,Rh(Th.get(o)||null,e,t,n,a,r)),!0}return!1}(r,e,t,n,a))a.stopPropagation();else if(Ih(e,a),4&t&&-1<Oh.indexOf(e)){for(;null!==r;){var o=Qe(r);if(null!==o)switch(o.tag){case 3:if((o=o.stateNode).current.memoizedState.isDehydrated){var i=Ae(o.pendingLanes);if(0!==i){var s=o;for(s.pendingLanes|=2,s.entangledLanes|=2;i;){var l=1<<31-_e(i);s.entanglements[1]|=l,i&=~l}Iu(o),0===(6&pc)&&(Oc=le()+500,Ru(0,!1))}}break;case 31:case 13:null!==(s=Fa(o,2))&&Gc(s,0,2),Zc(),gh(o,2)}if(null===(o=kh(a))&&td(e,t,a,Ch,n),o===r)break;r=o}null!==r&&a.stopPropagation()}else td(e,t,a,null,n)}}function kh(e){return Dh(e=Ot(e))}var Ch=null;function Dh(e){if(Ch=null,null!==(e=$e(e))){var t=l(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=c(t)))return e;e=null}else if(31===n){if(null!==(e=u(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ch=e,null}function Ah(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ce()){case ue:return 2;case de:return 8;case he:case pe:return 32;case fe:return 268435456;default:return 32}default:return 32}}var Eh=!1,jh=null,Sh=null,Nh=null,Ph=new Map,Th=new Map,Fh=[],Oh="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Ih(e,t){switch(e){case"focusin":case"focusout":jh=null;break;case"dragenter":case"dragleave":Sh=null;break;case"mouseover":case"mouseout":Nh=null;break;case"pointerover":case"pointerout":Ph.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Th.delete(t.pointerId)}}function Rh(e,t,n,a,r,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:o,targetContainers:[r]},null!==t&&(null!==(t=Qe(t))&&vh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,null!==r&&-1===t.indexOf(r)&&t.push(r),e)}function Mh(e){var t=$e(e.target);if(null!==t){var n=l(t);
2if(null!==n)if(13===(t=n.tag)){if(null!==(t=c(n)))return e.blockedOn=t,void ze(e.priority,function(){yh(n)})}else if(31===t){if(null!==(t=u(n)))return e.blockedOn=t,void ze(e.priority,function(){yh(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Bh(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=kh(e.nativeEvent);if(null!==n)return null!==(t=Qe(n))&&vh(t),e.blockedOn=n,!1;var a=new(n=e.nativeEvent).constructor(n.type,n);Ft=a,n.target.dispatchEvent(a),Ft=null,t.shift()}return!0}function zh(e,t,n){Bh(e)&&n.delete(t)}function Lh(){Eh=!1,null!==jh&&Bh(jh)&&(jh=null),null!==Sh&&Bh(Sh)&&(Sh=null),null!==Nh&&Bh(Nh)&&(Nh=null),Ph.forEach(zh),Th.forEach(zh)}function Uh(e,t){e.blockedOn===t&&(e.blockedOn=null,Eh||(Eh=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Lh)))}var Vh=null;function qh(e){Vh!==e&&(Vh=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Vh===e&&(Vh=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],r=e[t+2];if("function"!==typeof a){if(null===Dh(a||n))continue;break}var o=Qe(n);null!==o&&(e.splice(t,3),t-=3,ts(o,{pending:!0,data:r,method:n.method,action:a},a,r))}}))}function Hh(e){function t(t){return Uh(t,e)}null!==jh&&Uh(jh,e),null!==Sh&&Uh(Sh,e),null!==Nh&&Uh(Nh,e),Ph.forEach(t),Th.forEach(t);for(var n=0;n<Fh.length;n++){var a=Fh[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Fh.length&&null===(n=Fh[0]).blockedOn;)Mh(n),null===n.blockedOn&&Fh.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(a=0;a<n.length;a+=3){var r=n[a],o=n[a+1],i=r[Ve]||null;if("function"===typeof o)i||qh(n);else if(i){var s=null;if(o&&o.hasAttribute("formAction")){if(r=o,i=o[Ve]||null)s=i.formAction;else if(null!==Dh(r))continue}else s=i.action;"function"===typeof s?n[a+1]=s:(n.splice(a,3),a-=3),qh(n)}}}function Wh(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return r=e})},focusReset:"manual",scroll:"manual"})}function t(){null!==r&&(r(),r=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"===typeof navigation){var a=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),null!==r&&(r(),r=null)}}}function Kh(e){this._internalRoot=e}function Yh(e){this._internalRoot=e}Yh.prototype.render=Kh.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));fh(t.current,Kc(),e,t,null,null)},Yh.prototype.unmount=Kh.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;fh(e.current,2,null,e,null,null),Zc(),t[qe]=null}},Yh.prototype.unstable_scheduleHydration=function(e){if(e){var t=Be();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Fh.length&&0!==t&&t<Fh[n].priority;n++);Fh.splice(n,0,e),0===n&&Mh(e)}};var Gh=r.version;if("19.2.3"!==Gh)throw Error(i(527,Gh,"19.2.3"));I.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=l(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,a=t;;){var r=n.return;if(null===r)break;var o=r.alternate;if(null===o){if(null!==(a=r.return)){n=a;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return d(r),e;if(o===a)return d(r),t;o=o.sibling}throw Error(i(188))}if(n.return!==a.return)n=r,a=o;else{for(var s=!1,c=r.child;c;){if(c===n){s=!0,n=r,a=o;break}if(c===a){s=!0,a=r,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,a=r;break}if(c===a){s=!0,a=o,n=r;break}c=c.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==a)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?h(e):null)?null:e.stateNode};var Jh={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.3"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var $h=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$h.isDisabled&&$h.supportsFiber)try{ve=$h.inject(Jh),ye=$h}catch(Xh){}}t.createRoot=function(e,t){if(!s(e))throw Error(i(299));var n=!1,a="",r=Cs,o=Ds,l=As;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(a=t.identifierPrefix),void 0!==t.onUncaughtError&&(r=t.onUncaughtError),void 0!==t.onCaughtError&&(o=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError)),t=hh(e,1,!1,null,0,n,a,null,r,o,l,Wh),e[qe]=t.current,Zu(e),new Kh(t)},t.hydrateRoot=function(e,t,n){if(!s(e))throw Error(i(299));var a=!1,r="",o=Cs,l=Ds,c=As,u=null;return null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(r=n.identifierPrefix),void 0!==n.onUncaughtError&&(o=n.onUncaughtError),void 0!==n.onCaughtError&&(l=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.formState&&(u=n.formState)),(t=hh(e,1,!0,t,0,a,r,u,o,l,c,Wh)).context=ph(null),n=t.current,(r=wo(a=Re(a=Kc()))).callback=null,_o(n,r,a),n=a,t.current.lanes=n,Te(t,n),Iu(t),e[qe]=t.current,Zu(e),new Yh(t)},t.version="19.2.3"},7043(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const a=n(2777),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;t.isKey=function(e,t){return!Array.isArray(e)&&(!("number"!==typeof e&&"boolean"!==typeof e&&null!=e&&!a.isSymbol(e))||("string"===typeof e&&(o.test(e)||!r.test(e))||null!=t&&Object.hasOwn(t,e)))}},7231(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const a=n(3799),r=n(4879);t.range=function(e,t,n){n&&"number"!==typeof n&&a.isIterateeCall(e,t,n)&&(t=n=void 0),e=r.toFinite(e),void 0===t?(t=e,e=0):t=r.toFinite(t),n=void 0===n?e<t?1:-1:r.toFinite(n);const o=Math.max(Math.ceil((t-e)/(n||1)),0),i=new Array(o);for(let a=0;a<o;a++)i[a]=e,e+=n;return i}},7237(e,t,n){"use strict";n(8365)},7260(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isUnsafeProperty=function(e){return"__proto__"===e}},7283(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function a(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,a,o,i){if("function"!==typeof a)throw new TypeError("The listener must be a function");var s=new r(a,o||e,i),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function i(e,t){0===--e._eventsCount?e._events=new a:delete e._events[t]}function s(){this._events=new a,this._eventsCount=0}Object.create&&(a.prototype=Object.create(null),(new a).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,a,r=[];if(0===this._eventsCount)return r;for(a in e=this._events)t.call(e,a)&&r.push(n?a.slice(1):a);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},s.prototype.listeners=function(e){var t=n?n+e:e,a=this._events[t];if(!a)return[];if(a.fn)return[a.fn];for(var r=0,o=a.length,i=new Array(o);r<o;r++)i[r]=a[r].fn;return i},s.prototype.listenerCount=function(e){var t=n?n+e:e,a=this._events[t];return a?a.fn?1:a.length:0},s.prototype.emit=function(e,t,a,r,o,i){var s=n?n+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,a),!0;case 4:return u.fn.call(u.context,t,a,r),!0;case 5:return u.fn.call(u.context,t,a,r,o),!0;case 6:return u.fn.call(u.context,t,a,r,o,i),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var h,p=u.length;for(c=0;c<p;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,a);break;case 4:u[c].fn.call(u[c].context,t,a,r);break;default:if(!l)for(h=1,l=new Array(d-1);h<d;h++)l[h-1]=arguments[h];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,a,r){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return i(this,o),this;var s=this._events[o];
2if(s.fn)s.fn!==t||r&&!s.once||a&&s.context!==a||i(this,o);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||r&&!s[l].once||a&&s[l].context!==a)&&c.push(s[l]);c.length?this._events[o]=1===c.length?c[0]:c:i(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&i(this,t)):(this._events=new a,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s},7294(e,t,n){"use strict";var a=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(4222)),r=n(8146);function o(e,t){var n={};return e&&"string"===typeof e?((0,a.default)(e,function(e,a){e&&a&&(n[(0,r.camelCase)(e,t)]=a)}),n):n}o.default=o,e.exports=o},7312(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.flatten=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=[],a=Math.floor(t),r=(e,t)=>{for(let o=0;o<e.length;o++){const i=e[o];Array.isArray(i)&&t<a?r(i,t+1):n.push(i)}};return r(e,0),n}},7330(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const a=n(9323);t.property=function(e){return function(t){return a.get(t,e)}}},7347(e){"use strict";var t={single_source_shortest_paths:function(e,n,a){var r={},o={};o[n]=0;var i,s,l,c,u,d,h,p=t.PriorityQueue.make();for(p.push(n,0);!p.empty();)for(l in s=(i=p.pop()).value,c=i.cost,u=e[s]||{})u.hasOwnProperty(l)&&(d=c+u[l],h=o[l],("undefined"===typeof o[l]||h>d)&&(o[l]=d,p.push(l,d),r[l]=s));if("undefined"!==typeof a&&"undefined"===typeof o[a]){var f=["Could not find a path from ",n," to ",a,"."].join("");throw new Error(f)}return r},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],a=t;a;)n.push(a),e[a],a=e[a];return n.reverse(),n},find_path:function(e,n,a){var r=t.single_source_shortest_paths(e,n,a);return t.extract_shortest_path_from_predecessor_list(r,a)},PriorityQueue:{make:function(e){var n,a=t.PriorityQueue,r={};for(n in e=e||{},a)a.hasOwnProperty(n)&&(r[n]=a[n]);return r.queue=[],r.sorter=e.sorter||a.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},7421(e,t,n){const a=n(3257),r=n(8511);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!a.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return r.testNumeric(e)?t.NUMERIC:r.testAlphanumeric(e)?t.ALPHANUMERIC:r.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!==typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(a){return n}}},7599(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});t.argumentsTag="[object Arguments]",t.arrayBufferTag="[object ArrayBuffer]",t.arrayTag="[object Array]",t.bigInt64ArrayTag="[object BigInt64Array]",t.bigUint64ArrayTag="[object BigUint64Array]",t.booleanTag="[object Boolean]",t.dataViewTag="[object DataView]",t.dateTag="[object Date]",t.errorTag="[object Error]",t.float32ArrayTag="[object Float32Array]",t.float64ArrayTag="[object Float64Array]",t.functionTag="[object Function]",t.int16ArrayTag="[object Int16Array]",t.int32ArrayTag="[object Int32Array]",t.int8ArrayTag="[object Int8Array]",t.mapTag="[object Map]",t.numberTag="[object Number]",t.objectTag="[object Object]",t.regexpTag="[object RegExp]",t.setTag="[object Set]",t.stringTag="[object String]",t.symbolTag="[object Symbol]",t.uint16ArrayTag="[object Uint16Array]",t.uint32ArrayTag="[object Uint32Array]",t.uint8ArrayTag="[object Uint8Array]",t.uint8ClampedArrayTag="[object Uint8ClampedArray]"}
2,7736(e,t,n){var a=n(3738).default,r=n(9045);e.exports=function(e){var t=r(e,"string");return"symbol"==a(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},7770(e,t,n){e.exports=n(9323).get},7820(e,t,n){e.exports=n(5414).throttle},7950(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(6672)},7969(e,t){let n;const a=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return a[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!==typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return"undefined"!==typeof n},t.toSJIS=function(e){return n(e)}},8106(e){"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,a=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!==typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,h=1;function p(e){var t=e.match(n);t&&(d+=t.length);var a=e.lastIndexOf("\n");h=~a?e.length-a:h+e.length}function f(){var e={line:d,column:h};return function(t){return t.position=new m(e),y(),t}}function m(e){this.start=e,this.end={line:d,column:h},this.source=l.source}function g(t){var n=new Error(l.source+":"+d+":"+h+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=h,n.source=e,!l.silent)throw n}function v(t){var n=t.exec(e);if(n){var a=n[0];return p(a),e=e.slice(a.length),n}}function y(){v(a)}function w(e){var t;for(e=e||[];t=_();)!1!==t&&e.push(t);return e}function _(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return g("End of comment missing");var a=e.slice(2,n-2);return h+=2,p(a),e=e.slice(n),h+=2,t({type:"comment",comment:a})}}function x(){var e=f(),n=v(r);if(n){if(_(),!v(o))return g("property missing ':'");var a=v(i),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:a?u(a[0].replace(t,c)):c});return v(s),l}}return m.prototype.content=e,y(),function(){var e,t=[];for(w(t);e=x();)!1!==e&&(t.push(e),w(t));return t}()}},8146(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,a=/-([a-z])/g,r=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||r.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(i,l):e.replace(o,l)).replace(a,s))}},8177(e,t,n){const a=n(1312);function r(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(e){this.degree=e,this.genPoly=a.generateECPolynomial(this.degree)},r.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(e.length+this.degree);t.set(e);const n=a.mod(t,this.genPoly),r=this.degree-n.length;if(r>0){const e=new Uint8Array(this.degree);return e.set(n,r),e}return n},e.exports=r},8210(e,t,n){var a;!function(){"use strict";var r,o=1e9,i={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},s=!0,l="[DecimalError] ",c=l+"Invalid argument: ",u=l+"Exponent out of range: ",d=Math.floor,h=Math.pow,p=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,f=1e7,m=9007199254740991,g=d(1286742750677284.5),v={};function y(e,t){var n,a,r,o,i,l,c,u,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),s?j(t,h):t;if(c=e.d,u=t.d,i=e.e,r=t.e,c=c.slice(),o=i-r){for(o<0?(a=c,o=-o,l=u.length):(a=u,r=i,l=c.length),o>(l=(i=Math.ceil(h/7))>l?i+1:l+1)&&(o=l,a.length=1),a.reverse();o--;)a.push(0);a.reverse()}for((l=c.length)-(o=u.length)<0&&(o=l,a=u,u=c,c=a),n=0;o;)n=(c[--o]=c[o]+u[o]+n)/f|0,c[o]%=f;for(n&&(c.unshift(n),++r),l=c.length;0==c[--l];)c.pop();return t.d=c,t.e=r,s?j(t,h):t}function w(e,t,n){if(e!==~~e||e<t||e>n)throw Error(c+e)}function _(e){var t,n,a,r=e.length-1,o="",i=e[0];if(r>0){for(o+=i,t=1;t<r;t++)(n=7-(a=e[t]+"").length)&&(o+=D(n)),o+=a;(n=7-(a=(i=e[t])+"").length)&&(o+=D(n))}else if(0===i)return"0";for(;i%10===0;)i/=10;return o+i}v.absoluteValue=v.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},v.comparedTo=v.cmp=function(e){var t,n,a,r,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(t=0,n=(a=o.d.length)<(r=e.d.length)?a:r;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return a===r?0:a>r^o.s<0?1:-1},v.decimalPlaces=v.dp=function(){var e=this,t=e.d.length-1,n=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},v.dividedBy=v.div=function(e){return x(this,new this.constructor(e))},v.dividedToIntegerBy=v.idiv=function(e){var t=this.constructor;return j(x(this,new t(e),0,1),t.precision)},v.equals=v.eq=function(e){return!this.cmp(e)},v.exponent=function(){return k(this)},v.greaterThan=v.gt=function(e){return this.cmp(e)>0},v.greaterThanOrEqualTo=v.gte=function(e){return this.cmp(e)>=0},v.isInteger=v.isint=function(){return this.e>this.d.length-2},v.isNegative=v.isneg=function(){return this.s<0},v.isPositive=v.ispos=function(){return this.s>0},v.isZero=function(){return 0===this.s},v.lessThan=v.lt=function(e){return this.cmp(e)<0}
vendor: 10,823 bytes, line 2
2,v.lessThanOrEqualTo=v.lte=function(e){return this.cmp(e)<1},v.logarithm=v.log=function(e){var t,n=this,a=n.constructor,o=a.precision,i=o+5;if(void 0===e)e=new a(10);else if((e=new a(e)).s<1||e.eq(r))throw Error(l+"NaN");if(n.s<1)throw Error(l+(n.s?"NaN":"-Infinity"));return n.eq(r)?new a(0):(s=!1,t=x(A(n,i),A(e,i),i),s=!0,j(t,o))},v.minus=v.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?S(t,e):y(t,(e.s=-e.s,e))},v.modulo=v.mod=function(e){var t,n=this,a=n.constructor,r=a.precision;if(!(e=new a(e)).s)throw Error(l+"NaN");return n.s?(s=!1,t=x(n,e,0,1).times(e),s=!0,n.minus(t)):j(new a(n),r)},v.naturalExponential=v.exp=function(){return b(this)},v.naturalLogarithm=v.ln=function(){return A(this)},v.negated=v.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},v.plus=v.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?y(t,e):S(t,(e.s=-e.s,e))},v.precision=v.sd=function(e){var t,n,a,r=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(c+e);if(t=k(r)+1,n=7*(a=r.d.length-1)+1,a=r.d[a]){for(;a%10==0;a/=10)n--;for(a=r.d[0];a>=10;a/=10)n++}return e&&t>n?t:n},v.squareRoot=v.sqrt=function(){var e,t,n,a,r,o,i,c=this,u=c.constructor;if(c.s<1){if(!c.s)return new u(0);throw Error(l+"NaN")}for(e=k(c),s=!1,0==(r=Math.sqrt(+c))||r==1/0?(((t=_(c.d)).length+e)%2==0&&(t+="0"),r=Math.sqrt(t),e=d((e+1)/2)-(e<0||e%2),a=new u(t=r==1/0?"5e"+e:(t=r.toExponential()).slice(0,t.indexOf("e")+1)+e)):a=new u(r.toString()),r=i=(n=u.precision)+3;;)if(a=(o=a).plus(x(c,o,i+2)).times(.5),_(o.d).slice(0,i)===(t=_(a.d)).slice(0,i)){if(t=t.slice(i-3,i+1),r==i&&"4999"==t){if(j(o,n+1,0),o.times(o).eq(c)){a=o;break}}else if("9999"!=t)break;i+=4}return s=!0,j(a,n)},v.times=v.mul=function(e){var t,n,a,r,o,i,l,c,u,d=this,h=d.constructor,p=d.d,m=(e=new h(e)).d;if(!d.s||!e.s)return new h(0);for(e.s*=d.s,n=d.e+e.e,(c=p.length)<(u=m.length)&&(o=p,p=m,m=o,i=c,c=u,u=i),o=[],a=i=c+u;a--;)o.push(0);for(a=u;--a>=0;){for(t=0,r=c+a;r>a;)l=o[r]+m[a]*p[r-a-1]+t,o[r--]=l%f|0,t=l/f|0;o[r]=(o[r]+t)%f|0}for(;!o[--i];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,s?j(e,h.precision):e},v.toDecimalPlaces=v.todp=function(e,t){var n=this,a=n.constructor;return n=new a(n),void 0===e?n:(w(e,0,o),void 0===t?t=a.rounding:w(t,0,8),j(n,e+k(n)+1,t))},v.toExponential=function(e,t){var n,a=this,r=a.constructor;return void 0===e?n=N(a,!0):(w(e,0,o),void 0===t?t=r.rounding:w(t,0,8),n=N(a=j(new r(a),e+1,t),!0,e+1)),n},v.toFixed=function(e,t){var n,a,r=this,i=r.constructor;return void 0===e?N(r):(w(e,0,o),void 0===t?t=i.rounding:w(t,0,8),n=N((a=j(new i(r),e+k(r)+1,t)).abs(),!1,e+k(a)+1),r.isneg()&&!r.isZero()?"-"+n:n)},v.toInteger=v.toint=function(){var e=this,t=e.constructor;return j(new t(e),k(e)+1,t.rounding)},v.toNumber=function(){return+this},v.toPower=v.pow=function(e){var t,n,a,o,i,c,u=this,h=u.constructor,p=+(e=new h(e));if(!e.s)return new h(r);if(!(u=new h(u)).s){if(e.s<1)throw Error(l+"Infinity");return u}if(u.eq(r))return u;if(a=h.precision,e.eq(r))return j(u,a);if(c=(t=e.e)>=(n=e.d.length-1),i=u.s,c){if((n=p<0?-p:p)<=m){for(o=new h(r),t=Math.ceil(a/7+4),s=!1;n%2&&P((o=o.times(u)).d,t),0!==(n=d(n/2));)P((u=u.times(u)).d,t);return s=!0,e.s<0?new h(r).div(o):j(o,a)}}else if(i<0)throw Error(l+"NaN");return i=i<0&&1&e.d[Math.max(t,n)]?-1:1,u.s=1,s=!1,o=e.times(A(u,a+12)),s=!0,(o=b(o)).s=i,o},v.toPrecision=function(e,t){var n,a,r=this,i=r.constructor;return void 0===e?a=N(r,(n=k(r))<=i.toExpNeg||n>=i.toExpPos):(w(e,1,o),void 0===t?t=i.rounding:w(t,0,8),a=N(r=j(new i(r),e,t),e<=(n=k(r))||n<=i.toExpNeg,e)),a},v.toSignificantDigits=v.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(w(e,1,o),void 0===t?t=n.rounding:w(t,0,8)),j(new n(this),e,t)},v.toString=v.valueOf=v.val=v.toJSON=function(){var e=this,t=k(e),n=e.constructor;return N(e,t<=n.toExpNeg||t>=n.toExpPos)};var x=function(){function e(e,t){var n,a=0,r=e.length;for(e=e.slice();r--;)n=e[r]*t+a,e[r]=n%f|0,a=n/f|0;return a&&e.unshift(a),e}function t(e,t,n,a){var r,o;if(n!=a)o=n>a?1:-1;else for(r=o=0;r<n;r++)if(e[r]!=t[r]){o=e[r]>t[r]?1:-1;break}return o}function n(e,t,n){for(var a=0;n--;)e[n]-=a,a=e[n]<t[n]?1:0,e[n]=a*f+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(a,r,o,i){var s,c,u,d,h,p,m,g,v,y,w,_,x,b,C,D,A,E,S=a.constructor,N=a.s==r.s?1:-1,P=a.d,T=r.d;if(!a.s)return new S(a);if(!r.s)throw Error(l+"Division by zero");for(c=a.e-r.e,A=T.length,C=P.length,g=(m=new S(N)).d=[],u=0;T[u]==(P[u]||0);)++u;if(T[u]>(P[u]||0)&&--c,(_=null==o?o=S.precision:i?o+(k(a)-k(r))+1:o)<0)return new S(0);if(_=_/7+2|0,u=0,1==A)for(d=0,T=T[0],_++;(u<C||d)&&_--;u++)x=d*f+(P[u]||0),g[u]=x/T|0,d=x%T|0;else{for((d=f/(T[0]+1)|0)>1&&(T=e(T,d),P=e(P,d),A=T.length,C=P.length),b=A,y=(v=P.slice(0,A)).length;y<A;)v[y++]=0;(E=T.slice()).unshift(0),D=T[0],T[1]>=f/2&&++D;do{d=0,(s=t(T,v,A,y))<0?(w=v[0],A!=y&&(w=w*f+(v[1]||0)),(d=w/D|0)>1?(d>=f&&(d=f-1),1==(s=t(h=e(T,d),v,p=h.length,y=v.length))&&(d--,n(h,A<p?E:T,p))):(0==d&&(s=d=1),h=T.slice()),(p=h.length)<y&&h.unshift(0),n(v,h,y),-1==s&&(s=t(T,v,A,y=v.length))<1&&(d++,n(v,A<y?E:T,y)),y=v.length):0===s&&(d++,v=[0]),g[u++]=d,s&&v[0]?v[y++]=P[b]||0:(v=[P[b]],y=1)}while((b++<C||void 0!==v[0])&&_--)}return g[0]||g.shift(),m.e=c,j(m,i?o+k(m)+1:o)}}();function b(e,t){var n,a,o,i,l,c=0,d=0,p=e.constructor,f=p.precision;if(k(e)>16)throw Error(u+k(e));if(!e.s)return new p(r);for(null==t?(s=!1,l=f):l=t,i=new p(.03125);e.abs().gte(.1);)e=e.times(i),d+=5;for(l+=Math.log(h(2,d))/Math.LN10*2+5|0,n=a=o=new p(r),p.precision=l;;){if(a=j(a.times(e),l),n=n.times(++c),_((i=o.plus(x(a,n,l))).d).slice(0,l)===_(o.d).slice(0,l)){for(;d--;)o=j(o.times(o),l);return p.precision=f,null==t?(s=!0,j(o,f)):o}o=i}}function k(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function C(e,t,n){if(t>e.LN10.sd())throw s=!0,n&&(e.precision=n),Error(l+"LN10 precision limit exceeded");return j(new e(e.LN10),t)}function D(e){for(var t="";e--;)t+="0";return t}function A(e,t){var n,a,o,i,c,u,d,h,p,f=1,m=e,g=m.d,v=m.constructor,y=v.precision;if(m.s<1)throw Error(l+(m.s?"NaN":"-Infinity"));if(m.eq(r))return new v(0);if(null==t?(s=!1,h=y):h=t,m.eq(10))return null==t&&(s=!0),C(v,h);if(h+=10,v.precision=h,a=(n=_(g)).charAt(0),i=k(m),!(Math.abs(i)<15e14))return d=C(v,h+2,y).times(i+""),m=A(new v(a+"."+n.slice(1)),h-10).plus(d),v.precision=y,null==t?(s=!0,j(m,y)):m;for(;a<7&&1!=a||1==a&&n.charAt(1)>3;)a=(n=_((m=m.times(e)).d)).charAt(0),f++;for(i=k(m),a>1?(m=new v("0."+n),i++):m=new v(a+"."+n.slice(1)),u=c=m=x(m.minus(r),m.plus(r),h),p=j(m.times(m),h),o=3;;){if(c=j(c.times(p),h),_((d=u.plus(x(c,new v(o),h))).d).slice(0,h)===_(u.d).slice(0,h))return u=u.times(2),0!==i&&(u=u.plus(C(v,h+2,y).times(i+""))),u=x(u,new v(f),h),v.precision=y,null==t?(s=!0,j(u,y)):u;u=d,o+=2}}function E(e,t){var n,a,r;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(a=t.search(/e/i))>0?(n<0&&(n=a),n+=+t.slice(a+1),t=t.substring(0,a)):n<0&&(n=t.length),a=0;48===t.charCodeAt(a);)++a;for(r=t.length;48===t.charCodeAt(r-1);)--r;if(t=t.slice(a,r)){if(r-=a,n=n-a-1,e.e=d(n/7),e.d=[],a=(n+1)%7,n<0&&(a+=7),a<r){for(a&&e.d.push(+t.slice(0,a)),r-=7;a<r;)e.d.push(+t.slice(a,a+=7));a=7-(t=t.slice(a)).length}else a-=r;for(;a--;)t+="0";if(e.d.push(+t),s&&(e.e>g||e.e<-g))throw Error(u+n)}else e.s=0,e.e=0,e.d=[0];return e}function j(e,t,n){var a,r,o,i,l,c,p,m,v=e.d;for(i=1,o=v[0];o>=10;o/=10)i++;if((a=t-i)<0)a+=7,r=t,p=v[m=0];else{if((m=Math.ceil((a+1)/7))>=(o=v.length))return e;for(p=o=v[m],i=1;o>=10;o/=10)i++;r=(a%=7)-7+i}if(void 0!==n&&(l=p/(o=h(10,i-r-1))%10|0,c=t<0||void 0!==v[m+1]||p%o,c=n<4?(l||c)&&(0==n||n==(e.s<0?3:2)):l>5||5==l&&(4==n||c||6==n&&(a>0?r>0?p/h(10,i-r):0:v[m-1])%10&1||n==(e.s<0?8:7))),t<1||!v[0])return c?(o=k(e),v.length=1,t=t-o-1,v[0]=h(10,(7-t%7)%7),e.e=d(-t/7)||0):(v.length=1,v[0]=e.e=e.s=0),e;if(0==a?(v.length=m,o=1,m--):(v.length=m+1,o=h(10,7-a),v[m]=r>0?(p/h(10,i-r)%h(10,r)|0)*o:0),c)for(;;){if(0==m){(v[0]+=o)==f&&(v[0]=1,++e.e);break}if(v[m]+=o,v[m]!=f)break;v[m--]=0,o=1}for(a=v.length;0===v[--a];)v.pop();if(s&&(e.e>g||e.e<-g))throw Error(u+k(e));return e}function S(e,t){var n,a,r,o,i,l,c,u,d,h,p=e.constructor,m=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),s?j(t,m):t;if(c=e.d,h=t.d,a=t.e,u=e.e,c=c.slice(),i=u-a){for((d=i<0)?(n=c,i=-i,l=h.length):(n=h,a=u,l=c.length),i>(r=Math.max(Math.ceil(m/7),l)+2)&&(i=r,n.length=1),n.reverse(),r=i;r--;)n.push(0);n.reverse()}else{for((d=(r=c.length)<(l=h.length))&&(l=r),r=0;r<l;r++)if(c[r]!=h[r]){d=c[r]<h[r];break}i=0}for(d&&(n=c,c=h,h=n,t.s=-t.s),l=c.length,r=h.length-l;r>0;--r)c[l++]=0;for(r=h.length;r>i;){if(c[--r]<h[r]){for(o=r;o&&0===c[--o];)c[o]=f-1;--c[o],c[r]+=f}c[r]-=h[r]}for(;0===c[--l];)c.pop();for(;0===c[0];c.shift())--a;return c[0]?(t.d=c,t.e=a,s?j(t,m):t):new p(0)}function N(e,t,n){var a,r=k(e),o=_(e.d),i=o.length;return t?(n&&(a=n-i)>0?o=o.charAt(0)+"."+o.slice(1)+D(a):i>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(r<0?"e":"e+")+r):r<0?(o="0."+D(-r-1)+o,n&&(a=n-i)>0&&(o+=D(a))):r>=i?(o+=D(r+1-i),n&&(a=n-r-1)>0&&(o=o+"."+D(a))):((a=r+1)<i&&(o=o.slice(0,a)+"."+o.slice(a)),n&&(a=n-i)>0&&(r+1===i&&(o+="."),o+=D(a))),e.s<0?"-"+o:o}function P(e,t){if(e.length>t)return e.length=t,!0}function T(e){if(!e||"object"!==typeof e)throw Error(l+"Object expected");var t,n,a,r=["precision",1,o,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<r.length;t+=3)if(void 0!==(a=e[n=r[t]])){if(!(d(a)===a&&a>=r[t+1]&&a<=r[t+2]))throw Error(c+n+": "+a);this[n]=a}if(void 0!==(a=e[n="LN10"])){if(a!=Math.LN10)throw Error(c+n+": "+a);this[n]=new this(a)}return this}i=function e(t){var n,a,r;function o(e){var t=this;if(!(t instanceof o))return new o(e);if(t.constructor=o,e instanceof o)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"===typeof e){if(0*e!==0)throw Error(c+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):E(t,e.toString())}if("string"!==typeof e)throw Error(c+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!p.test(e))throw Error(c+e);E(t,e)}if(o.prototype=v,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=e,o.config=o.set=T,void 0===t&&(t={}),t)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<r.length;)t.hasOwnProperty(a=r[n++])||(t[a]=this[a]);return o.config(t),o}(i),i.default=i.Decimal=i,r=new i(1),void 0===(a=function(){return i}.call(t,n,t,e))||(e.exports=a)}()},8268(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const a=n(2132);t.isMatch=function(e,t){return a.isMatchWith(e,t,()=>{})}},8293(e,t){function n(e){if("number"===typeof e&&(e=e.toString()),"string"!==typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");
2if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");const n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});const t="undefined"===typeof e.margin||null===e.margin||e.margin<0?4:e.margin,a=e.width&&e.width>=21?e.width:void 0,r=e.scale||4;return{width:a,scale:a?4:r,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){const a=t.getScale(e,n);return Math.floor((e+2*n.margin)*a)},t.qrToImageData=function(e,n,a){const r=n.modules.size,o=n.modules.data,i=t.getScale(r,a),s=Math.floor((r+2*a.margin)*i),l=a.margin*i,c=[a.color.light,a.color.dark];for(let t=0;t<s;t++)for(let n=0;n<s;n++){let u=4*(t*s+n),d=a.color.light;if(t>=l&&n>=l&&t<s-l&&n<s-l){d=c[o[Math.floor((t-l)/i)*r+Math.floor((n-l)/i)]?1:0]}e[u++]=d.r,e[u++]=d.g,e[u++]=d.b,e[u]=d.a}}},8346(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.toArray=function(e){return Array.isArray(e)?e:Array.from(e)}},8365(e,t,n){"use strict";var a=n(5043);var r="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=a.useSyncExternalStore,i=a.useRef,s=a.useEffect,l=a.useMemo,c=a.useDebugValue},8396(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const a=n(5508);t.cloneDeep=function(e){return a.cloneDeepWith(e)}},8420(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isLength=function(e){return Number.isSafeInteger(e)&&e>=0}},8443(e,t,n){"use strict";e.exports=n(9717)},8511(e,t){const n="[0-9]+";let a="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";a=a.replace(/u/g,"\\u");const r="(?:(?![A-Z0-9 $%*+\\-./:]|"+a+")(?:.|[\r\n]))+";t.KANJI=new RegExp(a,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(r,"g"),t.NUMERIC=new RegExp(n,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const o=new RegExp("^"+a+"$"),i=new RegExp("^"+n+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return o.test(e)},t.testNumeric=function(e){return i.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},8697(e,t,n){const a=n(7421);function r(e){this.mode=a.BYTE,this.data="string"===typeof e?(new TextEncoder).encode(e):new Uint8Array(e)}r.getBitsLength=function(e){return 8*e},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},e.exports=r},8704(e){function t(e,t){var n=e.length,a=new Array(n),r={},o=n,i=function(e){for(var t=new Map,n=0,a=e.length;n<a;n++){var r=e[n];t.has(r[0])||t.set(r[0],new Set),t.has(r[1])||t.set(r[1],new Set),t.get(r[0]).add(r[1])}return t}(t),s=function(e){for(var t=new Map,n=0,a=e.length;n<a;n++)t.set(e[n],n);return t}(e);for(t.forEach(function(e){if(!s.has(e[0])||!s.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});o--;)r[o]||l(e[o],o,new Set);return a;function l(e,t,o){if(o.has(e)){var c;try{c=", node was:"+JSON.stringify(e)}catch(h){c=""}throw new Error("Cyclic dependency"+c)}if(!s.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!r[t]){r[t]=!0;var u=i.get(e)||new Set;if(t=(u=Array.from(u)).length){o.add(e);do{var d=u[--t];l(d,s.get(d),o)}while(t);o.delete(e)}a[--n]=e}}}e.exports=function(e){return t(function(e){for(var t=new Set,n=0,a=e.length;n<a;n++){var r=e[n];t.add(r[0]),t.add(r[1])}return Array.from(t)}(e),e)},e.exports.array=t},8845(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const a=n(8268),r=n(3272),o=n(8396),i=n(9323),s=n(5303);t.matchesProperty=function(e,t){switch(typeof e){case"object":var n;Object.is(null===(n=e)||void 0===n?void 0:n.valueOf(),-0)&&(e="-0");break;case"number":e=r.toKey(e)}return t=o.cloneDeep(t),function(n){const r=i.get(n,e);return void 0===r?s.has(n,e):void 0===t?void 0===r:a.isMatch(r,t)}}},8853(e,t,n){"use strict";e.exports=n(5896)},8970(e,t,n){const a=n(6116),r=n(4772),o=n(2182),i=n(5487);
2function s(e,t,n,o,i){const s=[].slice.call(arguments,1),l=s.length,c="function"===typeof s[l-1];if(!c&&!a())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=t,t=o=void 0):2!==l||t.getContext||(o=n,n=t,t=void 0),new Promise(function(a,i){try{const i=r.create(n,o);a(e(i,t,o))}catch(s){i(s)}})}if(l<2)throw new Error("Too few arguments provided");2===l?(i=n,n=t,t=o=void 0):3===l&&(t.getContext&&"undefined"===typeof i?(i=o,o=void 0):(i=o,o=n,n=t,t=void 0));try{const a=r.create(n,o);i(null,e(a,t,o))}catch(u){i(u)}}r.create,s.bind(null,o.render),t.dY=s.bind(null,o.renderToDataURL),s.bind(null,function(e,t,n){return i.render(e,n)})},9021(e,t,n){const a=n(7969).getSymbolSize;t.getPositions=function(e){const t=a(e);return[[0,0],[t-7,0],[0,t-7]]}},9045(e,t,n){var a=n(3738).default;e.exports=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},9323(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const a=n(7260),r=n(2489),o=n(3272),i=n(1444);t.get=function e(t,n,s){if(null==t)return s;switch(typeof n){case"string":{if(a.isUnsafeProperty(n))return s;const o=t[n];return void 0===o?r.isDeepKey(n)?e(t,i.toPath(n),s):s:o}case"number":case"symbol":{"number"===typeof n&&(n=o.toKey(n));const e=t[n];return void 0===e?s:e}default:{var l;if(Array.isArray(n))return function(e,t,n){if(0===t.length)return n;let r=e;for(let o=0;o<t.length;o++){if(null==r)return n;if(a.isUnsafeProperty(t[o]))return n;r=r[t[o]]}if(void 0===r)return n;return r}(t,n,s);if(n=Object.is(null===(l=n)||void 0===l?void 0:l.valueOf(),-0)?"-0":String(n),a.isUnsafeProperty(n))return s;const e=t[n];return void 0===e?s:e}}}},9382(e,t,n){const a=n(7969).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];const t=Math.floor(e/7)+2,n=a(e),r=145===n?26:2*Math.ceil((n-13)/(2*t-2)),o=[n-7];for(let a=1;a<t-1;a++)o[a]=o[a-1]-r;return o.push(6),o.reverse()},t.getPositions=function(e){const n=[],a=t.getRowColCoords(e),r=a.length;for(let t=0;t<r;t++)for(let e=0;e<r;e++)0===t&&0===e||0===t&&e===r-1||t===r-1&&0===e||n.push([a[t],a[e]]);return n}},9392(e,t,n){"use strict";var a=n(1218),r=n(6496);function o(e){var t=0,n=0,a=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),a=10*t,r=10*n,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(a=e.deltaX),(a||r)&&e.deltaMode&&(1==e.deltaMode?(a*=40,r*=40):(a*=800,r*=800)),a&&!t&&(t=a<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:a,pixelY:r}}o.getEventType=function(){return a.firefox()?"DOMMouseScroll":r("wheel")?"wheel":"mousewheel"},e.exports=o},9397(e,t,n){e.exports=n(2682).isPlainObject},9461(e,t,n){"use strict";e.exports=n(2330)},9599(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.identity=function(e){return e}},9642(e,t,n){const a=n(7421),r=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function o(e){this.mode=a.ALPHANUMERIC,this.data=e}o.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=45*r.indexOf(this.data[t]);n+=r.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(r.indexOf(this.data[t]),6)},e.exports=o},9645(e,t,n){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const a=n(6392),r=n(8346),o=n(1203);t.last=function(e){if(o.isArrayLike(e))return a.last(r.toArray(e))}},9709(e,t){"use strict";function n(e){return"symbol"===typeof e?1:null===e?2:void 0===e?3:e!==e?4:0}Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});t.compareValues=(e,t,a)=>{if(e!==t){const r=n(e),o=n(t);if(r===o&&0===r){if(e<t)return"desc"===a?1:-1;
2if(e>t)return"desc"===a?-1:1}return"desc"===a?o-r:r-o}return 0}},9717(e,t,n){"use strict";var a=n(5043),r=n(9461);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=r.useSyncExternalStore,s=a.useRef,l=a.useEffect,c=a.useMemo,u=a.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,a,r){var d=s(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;d=c(function(){function e(e){if(!l){if(l=!0,i=e,e=a(e),void 0!==r&&h.hasValue){var t=h.value;if(r(t,e))return s=t}return s=e}if(t=s,o(i,e))return t;var n=a(e);return void 0!==r&&r(t,n)?(i=e,t):(i=e,s=n)}var i,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,n,a,r]);var p=i(e,d[0],d[1]);return l(function(){h.hasValue=!0,h.value=p},[p]),u(p),p}},9859(e,t,n){e.exports=n(7231).range},9921(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isObjectLike=function(e){return"object"===typeof e&&null!==e}},9972(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.eq=function(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}},9989(e){"use strict";var t=!("undefined"===typeof window||!window.document||!window.document.createElement),n={canUseDOM:t,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};e.exports=n}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var o=t[a]={exports:{}};return e[a].call(o.exports,o,o.exports,n),o.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(a,r){if(1&r&&(a=this(a)),8&r)return a;
2if("object"===typeof a&&a){if(4&r&&a.__esModule)return a;if(16&r&&"function"===typeof a.then)return a}var o=Object.create(null);n.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&a;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>i[e]=()=>a[e]);return i.default=()=>a,n.d(o,i),o}})(),n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce((t,a)=>(n.f[a](e,t),t),[])),n.u=e=>"static/js/"+e+".2d70993a.chunk.js",n.miniCssF=e=>{},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="frontend:";n.l=(a,r,o,i)=>{if(e[a])e[a].push(r);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==a||d.getAttribute("data-webpack")==t+o){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+o),s.src=a),e[a]=[r];var h=(t,n)=>{s.onerror=s.onload=null,clearTimeout(p);var r=e[a];if(delete e[a],s.parentNode&&s.parentNode.removeChild(s),r&&r.forEach(e=>e(n)),t)return t(n)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),l&&document.head.appendChild(s)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/",(()=>{var e={792:0};n.f.j=(t,a)=>{var r=n.o(e,t)?e[t]:void 0;if(0!==r)if(r)a.push(r[2]);else{var o=new Promise((n,a)=>r=e[t]=[n,a]);a.push(r[2]=o);var i=n.p+n.u(t),s=new Error;n.l(i,a=>{if(n.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=a&&("load"===a.type?"missing":a.type),i=a&&a.target&&a.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,r[1](s)}},"chunk-"+t,t)}};var t=(t,a)=>{var r,o,[i,s,l]=a,c=0;if(i.some(t=>0!==e[t])){for(r in s)n.o(s,r)&&(n.m[r]=s[r]);if(l)l(n)}for(t&&t(a);c<i.length;c++)o=i[c],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0},a=self.webpackChunkfrontend=self.webpackChunkfrontend||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))})(),n.nc=void 0,(()=>{"use strict";var e={};n.r(e),n.d(e,{hasBrowserEnv:()=>OW,hasStandardBrowserEnv:()=>RW,hasStandardBrowserWebWorkerEnv:()=>MW,navigator:()=>IW,origin:()=>BW});var t={};n.r(t),n.d(t,{boolean:()=>a0,booleanish:()=>r0,commaOrSpaceSeparated:()=>c0,commaSeparated:()=>l0,number:()=>i0,overloadedBoolean:()=>o0,spaceSeparated:()=>s0});var a={};n.r(a),n.d(a,{attentionMarkers:()=>M2,contentInitial:()=>P2,disable:()=>B2,document:()=>N2,flow:()=>F2,flowInitial:()=>T2,insideSpan:()=>R2,string:()=>O2,text:()=>I2});var r={};n.r(r),n.d(r,{scaleBand:()=>Ene,scaleDiverging:()=>xse,scaleDivergingLog:()=>bse,scaleDivergingPow:()=>Cse,scaleDivergingSqrt:()=>Dse,scaleDivergingSymlog:()=>kse,scaleIdentity:()=>mre,scaleImplicit:()=>Dne,scaleLinear:()=>fre,scaleLog:()=>Cre,scaleOrdinal:()=>Ane,scalePoint:()=>Sne,scalePow:()=>Fre,scaleQuantile:()=>Wre,scaleQuantize:()=>Kre,scaleRadial:()=>Rre,scaleSequential:()=>fse,scaleSequentialLog:()=>mse,scaleSequentialPow:()=>vse,scaleSequentialQuantile:()=>wse,scaleSequentialSqrt:()=>yse,scaleSequentialSymlog:()=>gse,scaleSqrt:()=>Ore,scaleSymlog:()=>jre,scaleThreshold:()=>Yre,scaleTime:()=>use,scaleUtc:()=>dse,tickFormat:()=>hre});var o=n(5043),i=n.t(o,2),s=n(4391);function l(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=c(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}function d(e,t,n){return(t=u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?h(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const f=["sri"],m=["page"],g=["page","matches"],v=["onClick","discover","prefetch","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition","unstable_defaultShouldRevalidate"],y=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],w=["discover","fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition","unstable_defaultShouldRevalidate"];var _="popstate";function x(){return j(function(e,t){let{pathname:n,search:a,hash:r}=e.location;return D("",{pathname:n,search:a,hash:r},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"===typeof t?t:A(t)},null,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}function b(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function k(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(oL){}}}function C(e,t){return{usr:e.state,key:e.key,idx:t}}function D(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3?arguments[3]:void 0;return p(p({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?E(t):t),{},{state:n,key:t&&t.key||a||Math.random().toString(36).substring(2,10)})}function A(e){let{pathname:t="/",search:n="",hash:a=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),a&&"#"!==a&&(t+="#"===a.charAt(0)?a:"#"+a),t}function E(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function j(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},{window:r=document.defaultView,v5Compat:o=!1}=a,i=r.history,s="POP",l=null,c=u();function u(){return(i.state||{idx:null}).idx}function d(){s="POP";let e=u(),t=null==e?null:e-c;c=e,l&&l({action:s,location:f.location,delta:t})}function h(e){return S(e)}null==c&&(c=0,i.replaceState(p(p({},i.state),{},{idx:c}),""));let f={get action(){return s},get location(){return e(r,i)},listen(e){if(l)throw new Error("A history only accepts one active listener");return r.addEventListener(_,d),l=e,()=>{r.removeEventListener(_,d),l=null}},createHref:e=>t(r,e),createURL:h,encodeLocation(e){let t=h(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let a=D(f.location,e,t);n&&n(a,e),c=u()+1;let d=C(a,c),h=f.createHref(a);try{i.pushState(d,"",h)}catch(p){if(p instanceof DOMException&&"DataCloneError"===p.name)throw p;r.location.assign(h)}o&&l&&l({action:s,location:f.location,delta:1})},replace:function(e,t){s="REPLACE";let a=D(f.location,e,t);n&&n(a,e),c=u();let r=C(a,c),d=f.createHref(a);i.replaceState(r,"",d),o&&l&&l({action:s,location:f.location,delta:0})},go:e=>i.go(e)};return f}function S(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n="http://localhost";"undefined"!==typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),b(n,"No window.location.(origin|href) available to create URL");let a="string"===typeof e?e:A(e);return a=a.replace(/ $/,"%20"),!t&&a.startsWith("//")&&(a=n+a),new URL(a,n)}new WeakMap;function N(e,t){return P(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/",!1)}function P(e,t,n,a){let r=K(("string"===typeof t?E(t):t).pathname||"/",n);if(null==r)return null;let o=T(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(o);let i=null;for(let s=0;null==i&&s<o.length;++s){let e=W(r);i=V(o[s],e,a)}return i}function T(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=function(e,o){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r,s=arguments.length>3?arguments[3]:void 0,l={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};if(l.relativePath.startsWith("/")){if(!l.relativePath.startsWith(a)&&i)return;b(l.relativePath.startsWith(a),'Absolute route path "'.concat(l.relativePath,'" nested under path "').concat(a,'" is not val
2id. An absolute child route path must start with the combined path of all its parent routes.')),l.relativePath=l.relativePath.slice(a.length)}let c=ee([a,l.relativePath]),u=n.concat(l);e.children&&e.children.length>0&&(b(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'.concat(c,'".')),T(e.children,t,u,c,i)),(null!=e.path||e.index)&&t.push({path:c,score:U(c,e.index),routesMeta:u})};return e.forEach((e,t)=>{var n;if(""!==e.path&&null!==(n=e.path)&&void 0!==n&&n.includes("?"))for(let a of F(e.path))o(e,t,!0,a);else o(e,t)}),t}function F(e){let t=e.split("/");if(0===t.length)return[];let[n,...a]=t,r=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===a.length)return r?[o,""]:[o];let i=F(a.join("/")),s=[];return s.push(...i.map(e=>""===e?o:[o,e].join("/"))),r&&s.push(...i),s.map(t=>e.startsWith("/")&&""===t?"/":t)}var O=/^:[\w-]+$/,I=3,R=2,M=1,B=10,z=-2,L=e=>"*"===e;function U(e,t){let n=e.split("/"),a=n.length;return n.some(L)&&(a+=z),t&&(a+=R),n.filter(e=>!L(e)).reduce((e,t)=>e+(O.test(t)?I:""===t?M:B),a)}function V(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{routesMeta:a}=e,r={},o="/",i=[];for(let s=0;s<a.length;++s){let e=a[s],l=s===a.length-1,c="/"===o?t:t.slice(o.length)||"/",u=q({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c),d=e.route;if(!u&&l&&n&&!a[a.length-1].route.index&&(u=q({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!u)return null;
2Object.assign(r,u.params),i.push({params:r,pathname:ee([o,u.pathname]),pathnameBase:te(ee([o,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(o=ee([o,u.pathnameBase]))}return i}function q(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,a]=H(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let o=r[0],i=o.replace(/(.)\/+$/,"$1"),s=r.slice(1),l=a.reduce((e,t,n)=>{let{paramName:a,isOptional:r}=t;if("*"===a){let e=s[n]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[a]=r&&!l?void 0:(l||"").replace(/%2F/g,"/"),e},{});return{params:l,pathname:o,pathnameBase:i,pattern:e}}function H(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];k("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'.concat(e,'" will be treated as if it were "').concat(e.replace(/\*$/,"/*"),'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "').concat(e.replace(/\*$/,"/*"),'".'));let a=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(a.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(a.push({paramName:"*"}),r+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":""!==e&&"/"!==e&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),a]}function W(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return k(!1,'The URL path "'.concat(e,'" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (').concat(t,").")),e}}function K(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,a=e.charAt(n);return a&&"/"!==a?null:e.slice(n)||"/"}var Y=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,G=e=>Y.test(e);function J(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function $(e,t,n,a){return"Cannot include a '".concat(e,"' character in a manually specified `to.").concat(t,"` field [").concat(JSON.stringify(a),"].  Please separate it out to the `to.").concat(n,'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.')}function Q(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function X(e){let t=Q(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Z(e,t,n){let a,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];"string"===typeof e?a=E(e):(a=p({},e),b(!a.pathname||!a.pathname.includes("?"),$("?","pathname","search",a)),b(!a.pathname||!a.pathname.includes("#"),$("#","pathname","hash",a)),b(!a.search||!a.search.includes("#"),$("#","search","hash",a)));let o,i=""===e||""===a.pathname,s=i?"/":a.pathname;if(null==s)o=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",{pathname:a,search:r="",hash:o=""}="string"===typeof e?E(e):e;if(a)if(G(a))t=a;else{if(a.includes("//")){let e=a;a=a.replace(/\/\/+/g,"/"),k(!1,"Pathnames cannot have embedded double slashes - normalizing ".concat(e," -> ").concat(a))}t=a.startsWith("/")?J(a.substring(1),"/"):J(a,n)}else t=n;return{pathname:t,search:ne(r),hash:ae(o)}}(a,o),c=s&&"/"!==s&&s.endsWith("/"),u=(i||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}var ee=e=>e.join("/").replace(/\/\/+/g,"/"),te=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ne=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",ae=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var re=class{constructor(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.status=e,this.statusText=t||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function oe(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}function ie(e){return e.map(e=>
2e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var se="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement;function le(e,t){let n=e;if("string"!==typeof n||!Y.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let a=n,r=!1;if(se)try{let e=new URL(window.location.href),a=n.startsWith("//")?new URL(e.protocol+n):new URL(n),o=K(a.pathname,t);a.origin===e.origin&&null!=o?n=o+a.search+a.hash:r=!0}catch(oL){k(!1,'<Link to="'.concat(n,'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.'))}return{absoluteURL:a,isExternal:r,to:n}}Symbol("Uninstrumented");Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ce=["POST","PUT","PATCH","DELETE"],ue=(new Set(ce),["GET",...ce]);new Set(ue),Symbol("ResetLoaderData");var de=o.createContext(null);de.displayName="DataRouter";var he=o.createContext(null);he.displayName="DataRouterState";var pe=o.createContext(!1);function fe(){return o.useContext(pe)}var me=o.createContext({isTransitioning:!1});me.displayName="ViewTransition";var ge=o.createContext(new Map);ge.displayName="Fetchers";var ve=o.createContext(null);ve.displayName="Await";var ye=o.createContext(null);ye.displayName="Navigation";var we=o.createContext(null);we.displayName="Location";var _e=o.createContext({outlet:null,matches:[],isDataRoute:!1});_e.displayName="Route";var xe=o.createContext(null);xe.displayName="RouteError";var be="REACT_ROUTER_ERROR";function ke(){return null!=o.useContext(we)}function Ce(){return b(ke(),"useLocation() may be used only in the context of a <Router> component."),o.useContext(we).location}var De="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ae(e){o.useContext(ye).static||o.useLayoutEffect(e)}function Ee(){let{isDataRoute:e}=o.useContext(_e);return e?function(){let{router:e}=Be("useNavigate"),t=Le("useNavigate"),n=o.useRef(!1);Ae(()=>{n.current=!0});let a=o.useCallback(async function(a){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};k(n.current,De),n.current&&("number"===typeof a?await e.navigate(a):await e.navigate(a,p({fromRouteId:t},r)))},[e,t]);return a}():function(){b(ke(),"useNavigate() may be used only in the context of a <Router> component.");let e=o.useContext(de),{basename:t,navigator:n}=o.useContext(ye),{matches:a}=o.useContext(_e),{pathname:r}=Ce(),i=JSON.stringify(X(a)),s=o.useRef(!1);Ae(()=>{s.current=!0});let l=o.useCallback(function(a){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(k(s.current,De),!s.current)return;if("number"===typeof a)return void n.go(a);let l=Z(a,JSON.parse(i),r,"path"===o.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:ee([t,l.pathname])),(o.replace?n.replace:n.push)(l,o.state,o)},[t,n,i,r,e]);return l}()}o.createContext(null);function je(e){let{relative:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{matches:n}=o.useContext(_e),{pathname:a}=Ce(),r=JSON.stringify(X(n));return o.useMemo(()=>Z(e,JSON.parse(r),a,"path"===t),[e,r,a,t])}function Se(e,t,n,a,r){b(ke(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=o.useContext(ye),{matches:s}=o.useContext(_e),l=s[s.length-1],c=l?l.params:{},u=l?l.pathname:"/",d=l?l.pathnameBase:"/",h=l&&l.route;{let e=h&&h.path||"";qe(u,!h||e.endsWith("*")||e.endsWith("*?"),'You rendered descendant <Routes> (or called `useRoutes()`) at "'.concat(u,'" (under <Route path="').concat(e,'">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won\'t match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="').concat(e,'"> to <Route path="').concat("/"===e?"*":"".concat(e,"/*"),'">.'))}let f,m=Ce();if(t){var g;let e="string"===typeof t?E(t):t;b("/"===d||(null===(g=e.pathname)||void 0===g?void 0:g.startsWith(d)),'When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "'.concat(d,'" but pathname "').concat(e.pathname,'" was given in the `location` prop.')),f=e}else f=m;let v=f.pathname||"/",y=v;if("/"!==d){let e=d.replace(/^\//,"").split("/");y="/"+v.replace(/^\//,"").split("/").slice(e.length).join("/")}let w=N(e,{pathname:y});k(h||null!=w,'No routes matched location "'.concat(f.pathname).concat(f.search).concat(f.hash,'" ')),k(null==w||void 0!==w[w.length-1].route.element||void 0!==w[w.length-1].route.Component||void 0!==w[w.length-1].route.lazy,'Matched leaf route at location "'.concat(f.pathname).concat(f.search).concat(f.hash,'" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));let _=Re(w&&w.map(e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:ee([d,i.encodeLocation?i.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:ee([d,i.encodeLocation?i.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),s,n,a,r);return t&&_?o.createElement(we.Provider,{value:{location:p({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:"POP"}},_):_}function Ne(){let e=Ue(),t=oe(e)?"".concat(e.status," ").concat(e.statusText):e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",r={padding:"0.5rem",backgroundColor:a},i={padding:"2px 4px",backgroundColor:a},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=o.createElement(o.Fragment,null,o.createElement("p",null,"\ud83d\udcbf Hey developer \ud83d\udc4b"),o.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",o.createElement("code",{style:i}
2,"ErrorBoundary")," or"," ",o.createElement("code",{style:i},"errorElement")," prop on your route.")),o.createElement(o.Fragment,null,o.createElement("h2",null,"Unexpected Application Error!"),o.createElement("h3",{style:{fontStyle:"italic"}},t),n?o.createElement("pre",{style:r},n):null,s)}var Pe=o.createElement(Ne,null),Te=class extends o.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"===typeof e&&e&&"digest"in e&&"string"===typeof e.digest){const t=function(e){if(e.startsWith("".concat(be,":").concat("ROUTE_ERROR_RESPONSE",":{")))try{let t=JSON.parse(e.slice(40));if("object"===typeof t&&t&&"number"===typeof t.status&&"string"===typeof t.statusText)return new re(t.status,t.statusText,t.data)}catch(t){}}(e.digest);t&&(e=t)}let t=void 0!==e?o.createElement(_e.Provider,{value:this.props.routeContext},o.createElement(xe.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?o.createElement(Oe,{error:e},t):t}};Te.contextType=pe;var Fe=new WeakMap;function Oe(e){let{children:t,error:n}=e,{basename:a}=o.useContext(ye);if("object"===typeof n&&n&&"digest"in n&&"string"===typeof n.digest){let e=function(e){if(e.startsWith("".concat(be,":").concat("REDIRECT",":{")))try{let t=JSON.parse(e.slice(28));if("object"===typeof t&&t&&"number"===typeof t.status&&"string"===typeof t.statusText&&"string"===typeof t.location&&"boolean"===typeof t.reloadDocument&&"boolean"===typeof t.replace)return t}catch(t){}}(n.digest);if(e){let t=Fe.get(n);if(t)throw t;let r=le(e.location,a);if(se&&!Fe.get(n)){if(!r.isExternal&&!e.reloadDocument){const t=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(r.to,{replace:e.replace}));throw Fe.set(n,t),t}window.location.href=r.absoluteURL||r.to}return o.createElement("meta",{httpEquiv:"refresh",content:"0;url=".concat(r.absoluteURL||r.to)})}}return t}function Ie(e){let{routeContext:t,match:n,children:a}=e,r=o.useContext(de);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),o.createElement(_e.Provider,{value:t},a)}function Re(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let r=e,i=null===n||void 0===n?void 0:n.errors;if(null!=i){let e=r.findIndex(e=>e.route.id&&void 0!==(null===i||void 0===i?void 0:i[e.route.id]));b(e>=0,"Could not find a matching route for errors on route IDs: ".concat(Object.keys(i).join(","))),r=r.slice(0,Math.min(r.length,e+1))}let s=!1,l=-1;if(n)for(let o=0;o<r.length;o++){let e=r[o];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(l=o),e.route.id){let{loaderData:t,errors:a}=n,o=e.route.loader&&!t.hasOwnProperty(e.route.id)&&(!a||void 0===a[e.route.id]);if(e.route.lazy||o){s=!0,r=l>=0?r.slice(0,l+1):[r[0]];break}}}let c=n&&a?(e,t)=>{var r,o;a(e,{location:n.location,params:null!==(r=null===(o=n.matches)||void 0===o||null===(o=o[0])||void 0===o?void 0:o.params)&&void 0!==r?r:{},unstable_pattern:ie(n.matches),errorInfo:t})}:void 0;return r.reduceRight((e,a,u)=>{let d,h=!1,p=null,f=null;n&&(d=i&&a.route.id?i[a.route.id]:void 0,p=a.route.errorElement||Pe,s&&(l<0&&0===u?(qe("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,f=null):l===u&&(h=!0,f=a.route.hydrateFallbackElement||null)));let m=t.concat(r.slice(0,u+1)),g=()=>{let t;return t=d?p:h?f:a.route.Component?o.createElement(a.route.Component,null):a.route.element?a.route.element:e,o.createElement(Ie,{match:a,routeC
2ontext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(a.route.ErrorBoundary||a.route.errorElement||0===u)?o.createElement(Te,{location:n.location,revalidation:n.revalidation,component:p,error:d,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:c}):g()},null)}function Me(e){return"".concat(e," must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.")}function Be(e){let t=o.useContext(de);return b(t,Me(e)),t}function ze(e){let t=o.useContext(he);return b(t,Me(e)),t}function Le(e){let t=function(e){let t=o.useContext(_e);return b(t,Me(e)),t}(e),n=t.matches[t.matches.length-1];return b(n.route.id,"".concat(e,' can only be used on routes that contain a unique "id"')),n.route.id}function Ue(){var e;let t=o.useContext(xe),n=ze("useRouteError"),a=Le("useRouteError");return void 0!==t?t:null===(e=n.errors)||void 0===e?void 0:e[a]}var Ve={};function qe(e,t,n){t||Ve[e]||(Ve[e]=!0,k(!1,n))}var He={};function We(e,t){e||He[t]||(He[t]=!0,console.warn(t))}i.useOptimistic;o.memo(function(e){let{routes:t,future:n,state:a,onError:r}=e;return Se(t,void 0,a,r,n)});function Ke(e){let{to:t,replace:n,state:a,relative:r}=e;b(ke(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=o.useContext(ye);k(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=o.useContext(_e),{pathname:l}=Ce(),c=Ee(),u=Z(t,X(s),l,"path"===r),d=JSON.stringify(u);return o.useEffect(()=>{c(JSON.parse(d),{replace:n,state:a,relative:r})},[c,d,r,n,a]),null}function Ye(e){b(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Ge(e){let{basename:t="/",children:n=null,location:a,navigationType:r="POP",navigator:i,static:s=!1,unstable_useTransitions:l}=e;b(!ke(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=t.replace(/^\/*/,"/"),u=o.useMemo(()=>({basename:c,navigator:i,static:s,unstable_useTransitions:l,future:{}}),[c,i,s,l]);"string"===typeof a&&(a=E(a));let{pathname:d="/",search:h="",hash:p="",state:f=null,key:m="default"}=a,g=o.useMemo(()=>{let e=K(d,c);return null==e?null:{location:{pathname:e,search:h,hash:p,state:f,key:m},navigationType:r}},[c,d,h,p,f,m,r]);return k(null!=g,'<Router basename="'.concat(c,'"> is not able to match the URL "').concat(d).concat(h).concat(p,"\" because it does not start with the basename, so the <Router> won't render anything.")),null==g?null:o.createElement(ye.Provider,{value:u},o.createElement(we.Provider,{children:n,value:g}))}function Je(e){let{children:t,location:n}=e;return Se($e(t),n)}o.Component;function $e(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[];return o.Children.forEach(e,(e,a)=>{if(!o.isValidElement(e))return;let r=[...t,a];if(e.type===o.Fragment)return void n.push.apply(n,$e(e.props.children,r));b(e.type===Ye,"[".concat("string"===typeof e.type?e.type:e.type.name,"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>")),b(!e.props.index||!e.props.children,"An index route cannot have child routes.");let i={id:e.props.id||r.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=$e(e.props.children,r)),n.push(i)}),n}var Qe="get",Xe="application/x-www-form-urlencoded";function Ze(e){return"undefined"!==typeof HTMLElement&&e instanceof HTMLElement}function et(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let a=e[n];return t.concat(Array.isArray(a)?a.map(e=>[n,e]):[[n,a]])},[]))}var tt=null;var nt=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function at(e){return null==e||nt.has(e)?e:(k(!1,'"'.concat(e,'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` and will default to "').concat(Xe,'"')),null)}function rt(e,t){let n,a,r,o,i;if(function(e){return Ze(e)&&"form"===e.tagName.toLowerCase()}(e)){let i=e.getAttribute("action");a=i?K(i,t):null,n=e.getAttribute("method")||Qe,r=at(e.getAttribute("enctype"))||Xe,o=new FormData(e)}else if(function(e){return Ze(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Ze(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||i.getAttribute("action");if(a=s?K(s,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||Qe,r=at(e.getAttribute("formenctype"))||at(i.getAttribute("enctype"))||Xe,o=new FormData(i,e),!function(){if(null===tt)try{new FormData(document.createElement("form"),0),tt=!1}catch(oL){tt=!0}return tt}()){let{name:t,type:n,value:a}=e;if("image"===n){let e=t?"".concat(t,"."):"";o.append("".concat(e,"x"),"0"),o.append("".concat(e,"y"),"0")}else t&&o.append(t,a)}}else{if(Ze(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Qe,a=null,r=Xe,i=e}return o&&"text/plain"===r&&(i=o,o=void 0),{action:a,method:n.toLowerCase(),encType:r,formData:o,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");"undefined"!==typeof window?window:"undefined"!==typeof globalThis&&globalThis;function ot(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}Symbol("SingleFetchRedirect");function it(e,t,n){let a="string"===typeof e?new URL(e,"undefined"===typeof window?"server://singlefetch/":window.location.origin):e;return"/"===a.pathname?a.pathname="_root.".concat(n):t&&"/"===K(a.pathname,t)?a.pathname="".concat(t.replace(/\/$/,""),"/_root.").concat(n):a.pathname="".concat(a.pathname.replace(/\/$/,""),".").concat(n),a}async function st(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error("Error loading route module `".concat(e.module,"`, reloading page...")),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.
2isSpaMode,window.location.reload(),new Promise(()=>{})}}function lt(e){return null!=e&&"string"===typeof e.page}function ct(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"===typeof e.imageSrcSet&&"string"===typeof e.imageSizes:"string"===typeof e.rel&&"string"===typeof e.href)}function ut(e,t,n,a,r,o){let i=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>{var a;return n[t].pathname!==e.pathname||(null===(a=n[t].route.path)||void 0===a?void 0:a.endsWith("*"))&&n[t].params["*"]!==e.params["*"]};return"assets"===o?t.filter((e,t)=>i(e,t)||s(e,t)):"data"===o?t.filter((t,o)=>{let l=a.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(i(t,o)||s(t,o))return!0;if(t.route.shouldRevalidate){var c;let a=t.route.shouldRevalidate({currentUrl:new URL(r.pathname+r.search+r.hash,window.origin),currentParams:(null===(c=n[0])||void 0===c?void 0:c.params)||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"===typeof a)return a}return!0}):[]}function dt(e,t){let{includeHydrateFallback:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return a=e.map(e=>{let a=t.routes[e.route.id];if(!a)return[];let r=[a.module];return a.clientActionModule&&(r=r.concat(a.clientActionModule)),a.clientLoaderModule&&(r=r.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(r=r.concat(a.hydrateFallbackModule)),a.imports&&(r=r.concat(a.imports)),r}
2).flat(1),[...new Set(a)];var a}function ht(e,t){let n=new Set,a=new Set(t);return e.reduce((e,r)=>{if(t&&!lt(r)&&"script"===r.as&&r.href&&a.has(r.href))return e;let o=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let a of n)t[a]=e[a];return t}(r));return n.has(o)||(n.add(o),e.push({key:o,link:r})),e},[])}function pt(e,t){return"lazy"===e.mode&&!0===t}function ft(){let e=o.useContext(de);return ot(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function mt(){let e=o.useContext(he);return ot(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var gt=o.createContext(void 0);function vt(){let e=o.useContext(gt);return ot(e,"You must render this element inside a <HydratedRouter> element"),e}function yt(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function wt(e,t,n){if(n&&!kt)return[e[0]];if(t){let n=e.findIndex(e=>void 0!==t[e.route.id]);return e.slice(0,n+1)}return e}gt.displayName="FrameworkContext";function _t(e){let{page:t}=e,n=l(e,m),{router:a}=ft(),r=o.useMemo(()=>N(a.routes,t,a.basename),[a.routes,t,a.basename]);return r?o.createElement(bt,p({page:t,matches:r},n)):null}function xt(e){let{manifest:t,routeModules:n}=vt(),[a,r]=o.useState([]);return o.useEffect(()=>{let a=!1;return async function(e,t,n){let a=await Promise.all(e.map(async e=>{let a=t.routes[e.route.id];if(a){let e=await st(a,n);return e.links?e.links():[]}return[]}));return ht(a.flat(1).filter(ct).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?p(p({},e),{},{rel:"prefetch",as:"style"}):p(p({},e),{},{rel:"prefetch"})))}(e,t,n).then(e=>{a||r(e)}),()=>{a=!0}},[e,t,n]),a}function bt(e){let{page:t,matches:n}=e,a=l(e,g),r=Ce(),{manifest:i,routeModules:s}=vt(),{basename:c}=ft(),{loaderData:u,matches:d}=mt(),h=o.useMemo(()=>ut(t,n,d,i,r,"data"),[t,n,d,i,r]),f=o.useMemo(()=>ut(t,n,d,i,r,"assets"),[t,n,d,i,r]),m=o.useMemo(()=>{if(t===r.pathname+r.search+r.hash)return[];let e=new Set,a=!1;if(n.forEach(t=>{var n;let r=i.routes[t.route.id];r&&r.hasLoader&&(!h.some(e=>e.route.id===t.route.id)&&t.route.id in u&&null!==(n=s[t.route.id])&&void 0!==n&&n.shouldRevalidate||r.hasClientLoader?a=!0:e.add(t.route.id))}),0===e.size)return[];let o=it(t,c,"data");return a&&e.size>0&&o.searchParams.set("_routes",n.filter(t=>e.has(t.route.id)).map(e=>e.route.id).join(",")),[o.pathname+o.search]},[c,u,r,i,h,n,t,s]),v=o.useMemo(()=>dt(f,i),[f,i]),y=xt(f);return o.createElement(o.Fragment,null,m.map(e=>o.createElement("link",p({key:e,rel:"prefetch",as:"fetch",href:e},a))),v.map(e=>o.createElement("link",p({key:e,rel:"modulepreload",href:e},a))),y.map(e=>{let{key:t,link:n}=e;return o.createElement("link",p({key:t,nonce:a.nonce},n))}))}var kt=!1;function Ct(e){let{manifest:t,serverHandoffString:n,isSpaMode:a,renderMeta:r,routeDiscovery:i,ssr:s}=vt(),{router:c,static:u,staticContext:d}=ft(),{matches:h}=mt(),m=fe(),g=pt(i,s);r&&(r.didRenderScripts=!0);let v=wt(h,null,a);o.useEffect(()=>{0},[]);let y=o.useMemo(()=>{var a;if(m)return null;let r=d?"window.__reactRouterContext = ".concat(n,";").concat("window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());"):" ",i=u?"".concat(null!==t.hmr&&void 0!==a&&a.runtime?"import ".concat(JSON.stringify(t.hmr.runtime),";"):"").concat(g?"":"import ".concat(JSON.stringify(t.url)),";\n").concat(v.map((e,n)=>{let a="route".concat(n),r=t.routes[e.route.id];ot(r,"Route ".concat(e.route.id," not found in manifest"));let{clientActionModule:o,clientLoaderModule:i,clientMiddlewareModule:s,hydrateFallbackModule:l,module:c}=r,u=[...o?[{module:o,varName:"".concat(a,"_clientAction")}]:[],...i?[{module:i,varName:"".concat(a,"_clientLoader")}]:[],...s?[{module:s,varName:"".concat(a,"_clientMiddleware")}]:[],...l?[{module:l,varName:"".concat(a,"_HydrateFallback")}]:[],{module:c,varName:"".concat(a,"_main")}];return 1===u.length?"import * as ".concat(a," from ").concat(JSON.stringify(c),";"):[u.map(e=>"import * as ".concat(e.varName,' from "').concat(e.module,'";
2')).join("\n"),"const ".concat(a," = {").concat(u.map(e=>"...".concat(e.varName)).join(","),"};")].join("\n")}).join("\n"),"\n  ").concat(g?"window.__reactRouterManifest = ".concat(JSON.stringify(function(e,t){let{sri:n}=e,a=l(e,f),r=new Set(t.state.matches.map(e=>e.route.id)),o=t.state.location.pathname.split("/").filter(Boolean),i=["/"];for(o.pop();o.length>0;)i.push("/".concat(o.join("/"))),o.pop();i.forEach(e=>{let n=N(t.routes,e,t.basename);n&&n.forEach(e=>r.add(e.route.id))});let s=[...r].reduce((e,t)=>Object.assign(e,{[t]:a.routes[t]}),{});return p(p({},a),{},{routes:s,sri:!!n||void 0})}(t,c),null,2),";"):"","\n  window.__reactRouterRouteModules = {").concat(v.map((e,t)=>"".concat(JSON.stringify(e.route.id),":route").concat(t)).join(","),"};\n\nimport(").concat(JSON.stringify(t.entry.module),");"):" ";return o.createElement(o.Fragment,null,o.createElement("script",p(p({},e),{},{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r},type:void 0})),o.createElement("script",p(p({},e),{},{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:i},type:"module",async:!0})))},[]),w=kt||m?[]:function(e){return[...new Set(e)]}(t.entry.imports.concat(dt(v,t,{includeHydrateFallback:!0}))),_="object"===typeof t.sri?t.sri:{};return We(!m,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),kt||m?null:o.createElement(o.Fragment,null,"object"===typeof t.sri?o.createElement("script",{"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:_})}}):null,g?null:o.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:_[t.url],suppressHydrationWarning:!0}),o.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:_[t.entry.module],suppressHydrationWarning:!0}),w.map(t=>o.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:_[t],suppressHydrationWarning:!0})),y)}function Dt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach(t=>{"function"===typeof t?t(e):null!=t&&(t.current=e)})}}o.Component;function At(e){let{error:t,isOutsideRemixApp:n}=e;console.error(t);let a,r=o.createElement("script",{dangerouslySetInnerHTML:{__html:'\n        console.log(\n          "\ud83d\udcbf Hey developer \ud83d\udc4b. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n        );\n      '}});if(oe(t))return o.createElement(Et,{title:"Unhandled Thrown Response!"},o.createElement("h1",{style:{fontSize:"24px"}},t.status," ",t.statusText),r);if(t instanceof Error)0;else{let e=null==t?"Unknown Error":"object"===typeof t&&"toString"in t?t.toString():JSON.stringify(t);new Error(e)}return o.createElement(Et,{title:"Application Error!",isOutsideRemixApp:n},o.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),o.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},a.stack),r)}function Et(e){var t;let{title:n,renderScripts:a,isOutsideRemixApp:r,children:i}=e,{routeModules:s}=vt();return null!==s.root&&void 0!==t&&t.Layout&&!r?i:o.createElement("html",{lang:"en"},o.createElement("head",null,o.createElement("meta",{charSet:"utf-8"}),o.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),o.createElement("title",null,n)),o.createElement("body",null,o.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},i,a?o.createElement(Ct,null):null)))}var jt="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement;try{jt&&(window.__reactRouterVersion="7.11.0")}catch(oL){}function St(e){let{basename:t,children:n,unstable_useTransitions:a,window:r}=e,i=o.useRef();null==i.current&&(i.current=x({window:r,v5Compat:!0}));let s=i.current,[l,c]=o.useState({action:s.action,location:s.location}),u=o.useCallback(e=>{!1===a?c(e):o.startTransition(()=>c(e))},[a]);return o.useLayoutEffect(()=>s.listen(u),[s,u]),o.createElement(Ge,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,unstable_useTransitions:a})}var Nt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pt=o.forwardRef(function(e,t){let{onClick:n,discover:a="render",prefetch:r="none",relative:i,reloadDocument:s,replace:c,state:u,target:d,to:h,preventScrollReset:f,viewTransition:m,unstable_defaultShouldRevalidate:g}
2=e,y=l(e,v),{basename:w,unstable_useTransitions:_}=o.useContext(ye),x="string"===typeof h&&Nt.test(h),k=le(h,w);h=k.to;let C=function(e){let{relative:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};b(ke(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:a}=o.useContext(ye),{hash:r,pathname:i,search:s}=je(e,{relative:t}),l=i;return"/"!==n&&(l="/"===i?n:ee([n,i])),a.createHref({pathname:l,search:s,hash:r})}(h,{relative:i}),[D,E,j]=function(e,t){let n=o.useContext(gt),[a,r]=o.useState(!1),[i,s]=o.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:h}=t,p=o.useRef(null);o.useEffect(()=>{if("render"===e&&s(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{s(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),o.useEffect(()=>{if(a){let e=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(e)}}},[a]);let f=()=>{r(!0)},m=()=>{r(!1),s(!1)};return n?"intent"!==e?[i,p,{}]:[i,p,{onFocus:yt(l,f),onBlur:yt(c,m),onMouseEnter:yt(u,f),onMouseLeave:yt(d,m),onTouchStart:yt(h,f)}]:[!1,p,{}]}(r,y),S=function(e){let{target:t,replace:n,state:a,preventScrollReset:r,relative:i,viewTransition:s,unstable_defaultShouldRevalidate:l,unstable_useTransitions:c}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=Ee(),d=Ce(),h=je(e,{relative:i});return o.useCallback(p=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(p,t)){p.preventDefault();let t=void 0!==n?n:A(d)===A(h),f=()=>u(e,{replace:t,state:a,preventScrollReset:r,relative:i,viewTransition:s,unstable_defaultShouldRevalidate:l});c?o.startTransition(()=>f()):f()}},[d,u,h,n,a,t,e,r,i,s,l,c])}(h,{replace:c,state:u,target:d,preventScrollReset:f,relative:i,viewTransition:m,unstable_defaultShouldRevalidate:g,unstable_useTransitions:_});let N=o.createElement("a",p(p(p({},y),j),{},{href:k.absoluteURL||C,onClick:k.isExternal||s?n:function(e){n&&n(e),e.defaultPrevented||S(e)},ref:Dt(t,E),target:d,"data-discover":x||"render"!==a?void 0:"true"}));return D&&!x?o.createElement(o.Fragment,null,N,o.createElement(_t,{page:C})):N});Pt.displayName="Link";var Tt=o.forwardRef(function(e,t){let{"aria-current":n="page",caseSensitive:a=!1,className:r="",end:i=!1,style:s,to:c,viewTransition:u,children:d}=e,h=l(e,y),f=je(c,{relative:h.relative}),m=Ce(),g=o.useContext(he),{navigator:v,basename:w}=o.useContext(ye),_=null!=g&&function(e){let{relative:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=o.useContext(me);b(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=It("useViewTransitionState"),r=je(e,{relative:t});if(!n.isTransitioning)return!1;let i=K(n.currentLocation.pathname,a)||n.currentLocation.pathname,s=K(n.nextLocation.pathname,a)||n.nextLocation.pathname;return null!=q(r.pathname,s)||null!=q(r.pathname,i)}(f)&&!0===u,x=v.encodeLocation?v.encodeLocation(f).pathname:f.pathname,k=m.pathname,C=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;a||(k=k.toLowerCase(),C=C?C.toLowerCase():null,x=x.toLowerCase()),C&&w&&(C=K(C,w)||C);const D="/"!==x&&x.endsWith("/")?x.length-1:x.length;let A,E=k===x||!i&&k.startsWith(x)&&"/"===k.charAt(D),j=null!=C&&(C===x||!i&&C.startsWith(x)&&"/"===C.charAt(x.length)),S={isActive:E,isPending:j,isTransitioning:_},N=E?n:void 0;A="function"===typeof r?r(S):[r,E?"active":null,j?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let P="function"===typeof s?s(S):s;return o.createElement(Pt,p(p({},h),{},{"aria-current":N,className:A,ref:t,style:P,to:c,viewTransition:u}),"function"===typeof d?d(S):d)});Tt.displayName="NavLink";var Ft=o.forwardRef((e,t)=>{let{discover:n="render",fetcherKey:a,navigate:r,reloadDocument:i,replace:s,state:c,method:u=Qe,action:d,onSubmit:h,relative:f,preventScrollReset:m,viewTransition:g,unstable_defaultShouldRevalidate:v}=e,y=l(e,w),{unstable_useTransitions:_}=o.useContext(ye),x=zt(),k=function(e){let{relative:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
2,{basename:n}=o.useContext(ye),a=o.useContext(_e);b(a,"useFormAction must be used inside a RouteContext");let[r]=a.matches.slice(-1),i=p({},je(e||".",{relative:t})),s=Ce();if(null==e){i.search=s.search;let e=new URLSearchParams(i.search),t=e.getAll("index"),n=t.some(e=>""===e);if(n){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();i.search=n?"?".concat(n):""}}e&&"."!==e||!r.route.index||(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(i.pathname="/"===i.pathname?n:ee([n,i.pathname]));return A(i)}(d,{relative:f}),C="get"===u.toLowerCase()?"get":"post",D="string"===typeof d&&Nt.test(d);return o.createElement("form",p(p({ref:t,method:C,action:k,onSubmit:i?h:e=>{if(h&&h(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,n=(null===t||void 0===t?void 0:t.getAttribute("formmethod"))||u,i=()=>x(t||e.currentTarget,{fetcherKey:a,method:n,navigate:r,replace:s,state:c,relative:f,preventScrollReset:m,viewTransition:g,unstable_defaultShouldRevalidate:v});_&&!1!==r?o.startTransition(()=>i()):i()}},y),{},{"data-discover":D||"render"!==n?void 0:"true"}))});function Ot(e){return"".concat(e," must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.")}function It(e){let t=o.useContext(de);return b(t,Ot(e)),t}function Rt(e){k("undefined"!==typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=o.useRef(et(e)),n=o.useRef(!1),a=Ce(),r=o.useMemo(()=>function(e,t){let n=et(e);return t&&t.forEach((e,a)=>{n.has(a)||t.getAll(a).forEach(e=>{n.append(a,e)})}),n}(a.search,n.current?null:t.current),[a.search]),i=Ee(),s=o.useCallback((e,t)=>{const a=et("function"===typeof e?e(new URLSearchParams(r)):e);n.current=!0,i("?"+a,t)},[i,r]);return[r,s]}Ft.displayName="Form";var Mt=0,Bt=()=>"__".concat(String(++Mt),"__");function zt(){let{router:e}=It("useSubmit"),{basename:t}=o.useContext(ye),n=Le("useRouteId"),a=e.fetch,r=e.navigate;return o.useCallback(async function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{action:i,method:s,encType:l,formData:c,body:u}=rt(e,t);if(!1===o.navigate){let e=o.fetcherKey||Bt();await a(e,n,o.action||i,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:c,body:u,formMethod:o.method||s,formEncType:o.encType||l,flushSync:o.flushSync})}else await r(o.action||i,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:c,body:u,formMethod:o.method||s,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[a,r,t,n])}var Lt;var Ut="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof n.g?n.g:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{};"undefined"===typeof globalThis&&(Ut.globalThis=Ut);var Vt,qt=Symbol.for("__stack-globals");function Ht(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Wt(e){return e.substring(0,e.length-e.trimStart().length)}function Kt(e){const t=e.split("\n"),n=t.findIndex(e=>""!==e.trim());return-1===n?"":t.slice(n).join("\n")}function Yt(e){const t=e.split("\n"),n=function(e,t){for(let n=e.length-1;n>=0;n--)if(t(e[n]))return n;return-1}(t,e=>""!==e.trim());return t.slice(0,n+1).join("\n")}function Gt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];if(n.length!==e.length-1)throw new hn("Invalid number of values; must be one less than strings",{strings:e,values:n});return e.reduce((e,t,a)=>{var r;return e+t+(null!==(r=n[a])&&void 0!==r?r:"")},"")}function Jt(e){if("string"===typeof e)return Jt([e]);for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return Gt(...function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];if(n.length!==e.length-1)throw new hn("Invalid number of values; must be one less than strings",{strings:e,values:n});const r=[...e];r[0]=Kt(r[0]+"+").slice(0,-1),r[r.length-1]=Yt("+"+r[r.length-1]).slice(1);const o=r.join("${SOME_VALUE}").split("\n").filter(e=>""!==e.trim()).map(e=>Wt(e).length).reduce((e,t)=>
2Math.min(e,t),1/0),i=r.map((e,t)=>e.split("\n").map((e,n)=>0!==t&&0===n?e:e.substring(o)).join("\n")),s=n.map((e,t)=>{const n=Wt(i[t].split("\n").at(-1));return"".concat(e).replaceAll("\n","\n".concat(n))});return[i,...s]}(e,...n))}function $t(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=e.trim().split(/\s+/).filter(e=>e.length>0);return t?[...new Set(n)]:n}function Qt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const a=t.map(e=>$t(e)).flat().join(" ");return $t(a).join(" ")}null!==(Lt=Ut[qt])&&void 0!==Lt||(Ut[qt]={});var Xt=new Map(Object.entries({Headers:Headers}).map(e=>{let[t,n]=e;return[n,t]}));function Zt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=p({maxDepth:5,currentIndent:"",lineIndent:"  ",multiline:!0,refs:new Map,path:"value",parent:null,overrides:()=>null,keyInParent:null,hideFields:[]},on(t)),{maxDepth:a,currentIndent:r,lineIndent:o,multiline:i,refs:s,path:l,overrides:c,hideFields:u}=n,d="\n".concat(r),h=c(e,t);if(null!==h)return h;if(["function","object","symbol"].includes(typeof e)&&null!==e){if(s.has(e))return"Ref<".concat(s.get(e),">");s.set(e,l)}const f={maxDepth:a-1,currentIndent:r,lineIndent:o,multiline:i,refs:s,path:l+"->[unknown property]",overrides:c,parent:{value:e,options:n},keyInParent:null,hideFields:[]},m=function(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Zt(e,p(p({},f),{},{path:t,currentIndent:r+o,keyInParent:n},a))};switch(typeof e){case"boolean":case"number":return JSON.stringify(e);case"string":{const t=e=>Jt(e)===e&&e.includes("\n"),n=e=>Jt(Vt||(Vt=Ht(["\n        deindent`\n        ","","\n        ","`\n      "],["\n        deindent\\`\n        ","","\n        ","\\`\n      "])),r+o,function(e){return e.replaceAll("\\","\\\\").replaceAll("`","\\`").replaceAll("${","\\${")}(e).replaceAll("\n",d+o),r);return t(e)?n(e):e.endsWith("\n")&&t(e.slice(0,-1))?n(e.slice(0,-1))+' + "\\n"':JSON.stringify(e)}case"undefined":return"undefined";case"symbol":return e.toString();case"bigint":return"".concat(e,"n");case"function":return e.name?"function ".concat(e.name,"(...) { ... }"):"(...) => { ... }";case"object":{var g;if(null===e)return"null";if(Array.isArray(e)){const t=en(e),n=e.length+t.length;if(0===n)return"[]";if(a<=0)return"[...]";const r=e.map((e,t)=>m(e,"".concat(l,"[").concat(t,"]"),t));if(r.push(...t),r.length!==n)throw new hn("nicify of object: resValues.length !== resValueLength",{value:e,resValues:r,resValueLength:n});const i=r.length>4||r.some(e=>r.length>1&&e.length>4||e.includes("\n"));return i?"[".concat(d).concat(r.map(e=>"".concat(o).concat(e,",").concat(d)).join(""),"]"):"[".concat(r.join(", "),"]")}if(e instanceof Date)return"Date(".concat(m(e.toISOString(),"".concat(l,".toISOString()"),null),")");if(e instanceof URL)return"URL(".concat(m(e.toString(),"".concat(l,".toString()"),null),")");if(ArrayBuffer.isView(e))return"".concat(e.constructor.name,"([").concat(e.toString(),"])");if(e instanceof ArrayBuffer)return"ArrayBuffer [".concat(new Uint8Array(e).toString(),"]");if(e instanceof Error){var v;let t=null!==(v=e.stack)&&void 0!==v?v:"";const n=e.toString();return t.startsWith(n)||(t="".concat(n,"\n").concat(t)),t=t.trimEnd(),t=t.replace(/\n\s+/g,"\n".concat(o).concat(o)),t=t.replace("\n","\n".concat(o,"Stack:\n")),Object.keys(e).length>0&&(t+="\n".concat(o,"Extra properties: ").concat(m(Object.fromEntries(Object.entries(e)),l,null))),e.cause&&(t+="\n".concat(o,"Cause:\n").concat(o).concat(o).concat(m(e.cause,l,null,{currentIndent:r+o+o}))),t=t.replaceAll("\n","\n".concat(r)),t}const t=[null,Object.prototype].includes(Object.getPrototypeOf(e))?null:null!==(g=Xt.get(e.constructor))&&void 0!==g?g:e.constructor.name,n=t?"".concat(t," "):"",i=function(e){const t=[Headers];function n(e){return t.some(t=>e instanceof t)}if(n(e))return[...e.entries()].sort((e,t)=>{let[n]=e,[a]=t;return function(e,t){if("string"!==typeof e||"string"!==typeof t)throw new hn("Expected two strings for stringCompare, found ".concat(typeof e," and ").concat(typeof t),{a:e,b:t});const n=(e,t)=>e<t?-1:e>t?1:0;return n(e.toUpperCase(),t.toUpperCase())||n(t,e)}("".concat(n),"".concat(a))});const a=function(e){var t,n;const a=null===(t="getNicifiableKeys"in e?null===(n=e.getNicifiableKeys)||void 0===n?void 0:n.bind(e):null)||void 0===t?void 0:t();if(null!=a)return a;
2if(e instanceof Response)return["status","headers"];const r=Object.keys(e).sort();return o=r,[...new Set(o)];var o}(e);return a.map(t=>[t,e[t]])}(e).filter(e=>{let[t]=e;return!u.includes(t)}),s=[...en(e),...u.length>0?["<some fields may have been hidden>"]:[]],c=i.length+s.length;if(0===c)return"".concat(n,"{}");if(a<=0)return"".concat(n,"{ ... }");const h=i.map((e,t)=>{let[n,a]=e;const r=m(n,"Object.keys(".concat(l,")[").concat(t,"]"),null),o="string"===typeof n?(i=n,JSON.stringify(i)):"[".concat(r,"]");var i;return"function"===typeof a&&a.name===n?"".concat(o,"(...): { ... }"):"".concat(o,": ").concat(m(a,"".concat(l,"[").concat(r,"]"),n))});if(h.push(...s),h.length!==c)throw new hn("nicify of object: resValues.length !== resValueLength",{value:e,resValues:h,resValueLength:c});const p=h.length>1||h.some(e=>e.includes("\n"));return 0===h.length?"".concat(n,"{}"):p?"".concat(n,"{").concat(d).concat(h.map(e=>"".concat(o).concat(e,",").concat(d)).join(""),"}"):"".concat(n,"{ ").concat(h.join(", ")," }")}default:return"".concat(typeof e,"<").concat(e,">")}}function en(e){var t,n;return null!==(t=null===(n="getNicifiedObjectExtraLines"in e?e.getNicifiedObjectExtraLines:null)||void 0===n?void 0:n())&&void 0!==t?t:[]}function tn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(typeof e!==typeof t)return!1;if(e===t)return!0;switch(typeof e){case"object":{if(!e||!t)return!1;if(Array.isArray(e)||Array.isArray(t))return!(!Array.isArray(e)||!Array.isArray(t))&&(e.length===t.length&&e.every((e,a)=>tn(e,t[a],n)));const a=Object.entries(e).filter(e=>
2{let[t,a]=e;return!n.ignoreUndefinedValues||void 0!==a}),r=Object.entries(t).filter(e=>{let[t,a]=e;return!n.ignoreUndefinedValues||void 0!==a});return a.length===r.length&&a.every(e=>{let[t,a]=e;const o=r.find(e=>{let[n]=e;return t===n});return!!o&&tn(a,o[1],n)})}case"undefined":case"string":case"number":case"boolean":case"bigint":case"symbol":case"function":return!1;default:throw new Error("Unexpected typeof "+typeof e)}}function nn(e){if("function"===typeof e)throw new hn("deepPlainClone does not support functions");if("symbol"===typeof e)throw new hn("deepPlainClone does not support symbols");return"object"===typeof e&&e?Array.isArray(e)?e.map(nn):Object.fromEntries(Object.entries(e).map(e=>{let[t,n]=e;return[t,nn(n)]})):e}function an(e){return Object.entries(e)}function rn(e){return Object.fromEntries(e)}function on(e){return Object.fromEntries(Object.entries(e).filter(e=>{let[,t]=e;return void 0!==t}))}function sn(e,t){return Object.fromEntries(Object.entries(e).filter(e=>{let[n]=e;return t.includes(n)}))}function ln(e,t){if(!Array.isArray(t))throw new hn("omit: keys must be an array",{obj:e,keys:t});return Object.fromEntries(Object.entries(e).filter(e=>{let[n]=e;return!t.includes(n)}))}function cn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];throw"string"===typeof t[0]?new hn(t[0],t[1]):t[0]instanceof Error?t[0]:new vn(...t)}function un(e){var t;const n=null===(t=(new Error).stack)||void 0===t?void 0:t.startsWith("Error\n");return e.split("\n").slice(n?1:0).join("\n")}function dn(e){var t,n;const a=null===(t=e.stack)||void 0===t?void 0:t.endsWith("\n"),r=un(null!==(n=(new Error).stack)&&void 0!==n?n:"").split("\n")[0];for(var o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];for(const c of i){var l;const t=un(null!==(l=c.stack)&&void 0!==l?l:"");e.stack+=(a?"":"\n")+r+"\n"+t}}
2var hn=class extends Error{constructor(e,t){const n="\n\nThis is likely an error in Stack. Please make sure you are running the newest version and report it.";super("".concat(e).concat(e.endsWith(n)?"":n),sn(null!==t&&void 0!==t?t:{},["cause"])),this.extraData=t,Object.defineProperty(this,"customCaptureExtraArgs",{get(){return[this.extraData]},enumerable:!1})}};function pn(e){return e instanceof Error?Zt(e,{maxDepth:8}):"".concat(typeof e,"<").concat(Zt(e),">")}hn.prototype.name="StackAssertionError";var fn=new Set;function mn(e){fn.has(e)||fn.add(e)}function gn(e,t){for(const n of fn)n(e,t,...t&&("object"===typeof t||"function"===typeof t)&&"customCaptureExtraArgs"in t&&Array.isArray(t.customCaptureExtraArgs)?t.customCaptureExtraArgs:[])}mn(function(e,t){for(var n=arguments.length,a=new Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];console.error("\x1b[41mCaptured error in ".concat(e,":"),pn(t),...a,"\x1b[0m")}),mn(function(e,t){var n;Ut.stackCapturedErrors=null!==(n=Ut.stackCapturedErrors)&&void 0!==n?n:[];for(var a=arguments.length,r=new Array(a>2?a-2:0),o=2;o<a;o++)r[o-2]=arguments[o];Ut.stackCapturedErrors.push({location:e,error:t,extraArgs:r})});var vn=class extends Error{constructor(e,t){if("object"===typeof e&&(null!==t&&void 0!==t||(t=e.message),e=e.statusCode),super(t),this.__stackStatusErrorBrand="stack-status-error-brand-sentinel",this.name="StatusError",this.statusCode=e,!t)throw new hn("StatusError always requires a message unless a Status object is passed",{cause:this})}static isStatusError(e){return"object"===typeof e&&null!==e&&"__stackStatusErrorBrand"in e&&"stack-status-error-brand-sentinel"===e.__stackStatusErrorBrand}isClientError(){return this.statusCode>=400&&this.statusCode<500}isServerError(){return!this.isClientError()}getStatusCode(){return this.statusCode}getBody(){return(new TextEncoder).encode(this.message)}getHeaders(){return{"Content-Type":["text/plain; charset=utf-8"]}}toDescriptiveJson(){return{status_code:this.getStatusCode(),message:this.message,headers:this.getHeaders()}}toHttpJson(){return{status_code:this.statusCode,body:this.message,headers:this.getHeaders()}}};vn.BadRequest={statusCode:400,message:"Bad Request"},vn.Unauthorized={statusCode:401,message:"Unauthorized"},vn.PaymentRequired={statusCode:402,message:"Payment Required"},vn.Forbidden={statusCode:403,message:"Forbidden"},vn.NotFound={statusCode:404,message:"Not Found"},vn.MethodNotAllowed={statusCode:405,message:"Method Not Allowed"},vn.NotAcceptable={statusCode:406,message:"Not Acceptable"},vn.ProxyAuthenticationRequired={statusCode:407,message:"Proxy Authentication Required"},vn.RequestTimeout={statusCode:408,message:"Request Timeout"},vn.Conflict={statusCode:409,message:"Conflict"},vn.Gone={statusCode:410,message:"Gone"},vn.LengthRequired={statusCode:411,message:"Length Required"},vn.PreconditionFailed={statusCode:412,message:"Precondition Failed"},vn.PayloadTooLarge={statusCode:413,message:"Payload Too Large"},vn.URITooLong={statusCode:414,message:"URI Too Long"},vn.UnsupportedMediaType={statusCode:415,message:"Unsupported Media Type"},vn.RangeNotSatisfiable={statusCode:416,message:"Range Not Satisfiable"},vn.ExpectationFailed={statusCode:417,message:"Expectation Failed"},vn.ImATeapot={statusCode:418,message:"I'm a teapot"},vn.MisdirectedRequest={statusCode:421,message:"Misdirected Request"},vn.UnprocessableEntity={statusCode:422,message:"Unprocessable Entity"},vn.Locked={statusCode:423,message:"Locked"},vn.FailedDependency={statusCode:424,message:"Failed Dependency"},vn.TooEarly={statusCode:425,message:"Too Early"},vn.UpgradeRequired={statusCode:426,message:"Upgrade Required"},vn.PreconditionRequired={statusCode:428,message:"Precondition Required"},vn.TooManyRequests={statusCode:429,message:"Too Many Requests"},vn.RequestHeaderFieldsTooLarge={statusCode:431,message:"Request Header Fields Too Large"},vn.UnavailableForLegalReasons={statusCode:451,message:"Unavailable For Legal Reasons"},vn.InternalServerError={statusCode:500,message:"Internal Server Error"},vn.NotImplemented={statusCode:501,message:"Not Implemented"},vn.BadGateway={statusCode:502,message:"Bad Gateway"},vn.ServiceUnavailable={statusCode:503,message:"Service Unavailable"},vn.GatewayTimeout={statusCode:504,message:"Gateway Timeout"},vn.HTTPVersionNotSupported={statusCode:505,message:"HTTP Version Not Supported"}
2,vn.VariantAlsoNegotiates={statusCode:506,message:"Variant Also Negotiates"},vn.InsufficientStorage={statusCode:507,message:"Insufficient Storage"},vn.LoopDetected={statusCode:508,message:"Loop Detected"},vn.NotExtended={statusCode:510,message:"Not Extended"},vn.NetworkAuthenticationRequired={statusCode:511,message:"Network Authentication Required"},vn.prototype.name="StatusError";var yn,wn,_n,xn,bn,kn="0123456789ABCDEFGHJKMNPQRSTVWXYZ";function Cn(e){if(e<0||e>=32)throw new hn("Invalid base32 index: ".concat(e));return kn[e]}function Dn(e){let t=0,n=0,a="";for(let r=0;r<e.length;r++)for(n=n<<8|e[r],t+=8;t>=5;)a+=Cn(n>>>t-5&31),t-=5;if(t>0&&(a+=Cn(n<<5-t&31)),!jn(a))throw new hn("Invalid base32 output; this should never happen");return a}function An(e){return btoa([...e].map(e=>String.fromCharCode(e)).join(""))}function En(e){return new Uint8Array(atob(e).split("").map(e=>e.charCodeAt(0)))}function jn(e){for(const t of e){if(" "===t)continue;const e=t.toUpperCase();if(!kn.includes(e))return!1}return!0}function Sn(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}function Nn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t}var Pn=class extends vn{constructor(e,t,n){super(e,t),this.statusCode=e,this.humanReadableMessage=t,this.details=n,this.__stackKnownErrorBrand="stack-known-error-brand-sentinel",this.name="KnownError"}static isKnownError(e){return"object"===typeof e&&null!==e&&"__stackKnownErrorBrand"in e&&"stack-known-error-brand-sentinel"===e.__stackKnownErrorBrand}getBody(){return(new TextEncoder).encode(JSON.stringify(this.toDescriptiveJson(),void 0,2))}getHeaders(){return{"Content-Type":["application/json; charset=utf-8"],"X-Stack-Known-Error":[this.errorCode]}}toDescriptiveJson(){return p(p({code:this.errorCode},this.details?{details:this.details}:{}),{},{error:this.humanReadableMessage})}get errorCode(){var e;return null!==(e=this.constructor.errorCode)&&void 0!==e?e:cn("Can't find error code for this KnownError. Is its constructor a KnownErrorConstructor? ".concat(this))}static constructorArgsFromJson(e){return[400,e.message,e]}static fromJson(e){for(const[t,n]of Object.entries(so))if(e.code===n.prototype.errorCode){const t=n.constructorArgsFromJson(e);return new n(...t)}throw new Error("An error occurred. Please update your version of the Stack Auth SDK. ".concat(e.code,": ").concat(e.message))}};Symbol("knownErrorConstructorErrorCodeSentinel");function Tn(e,t,n,a){const r="inherit"===n?Nn:n,o="inherit"===a?e.constructorArgsFromJson:a;class i extends e{constructor(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];super(...r(...n)),this.name="KnownError<".concat(t,">"),this.constructorArgs=n}static constructorArgsFromJson(e){return o(e.details)}static isInstance(e){if(!Pn.isKnownError(e))return!1;let n=e;for(;n=Object.getPrototypeOf(n),n;)if("errorCode"in n.constructor&&n.constructor.errorCode===t)return!0;return!1}}return i.errorCode=t,i}var Fn=Tn(Pn,"UNSUPPORTED_ERROR",e=>[500,"An error occurred that is not currently supported (possibly because it was added in a version of Stack that is newer than this client). The original unsupported error code was: ".concat(e),{originalErrorCode:e}],e=>{var t;return[null!==(t=null===e||void 0===e?void 0:e.originalErrorCode)&&void 0!==t?t:cn("originalErrorCode not found in UnsupportedError details")]}),On=Tn(Pn,"BODY_PARSING_ERROR",e=>[400,e],e=>[e.message]),In=Tn(Pn,"SCHEMA_ERROR",e=>[400,e||cn("SchemaError requires a message"),{message:e}],e=>[e.message]),Rn=Tn(Pn,"ALL_OVERLOADS_FAILED",e=>[400,Jt(yn||(yn=Ht(["\n      This endpoint has multiple overloads, but they all failed to process the request.\n\n        ","\n    "])),e.map((e,t)=>Jt(wn||(wn=Ht(["\n          Overload ",": ","\n        "])),t+1,JSON.stringify(e,void 0,2))).join("\n\n")),{overload_errors:e}],e=>{var t;return[null!==(t=null===e||void 0===e?void 0:e.overload_errors)&&void 0!==t?t:cn("overload_errors not found in AllOverloadsFailed details")]}),Mn=Tn(Pn,"PROJECT_AUTHENTICATION_ERROR","inherit","inherit"),Bn=Tn(Mn,"INVALID_PROJECT_AUTHENTICATION","inherit","
2inherit"),zn=Tn(Bn,"PROJECT_KEY_WITHOUT_ACCESS_TYPE",()=>[400,"Either an API key or an admin access token was provided, but the x-stack-access-type header is missing. Set it to 'client', 'server', or 'admin' as appropriate."],()=>[]),Ln=Tn(Bn,"INVALID_ACCESS_TYPE",e=>[400,"The x-stack-access-type header must be 'client', 'server', or 'admin', but was '".concat(e,"'.")],e=>{var t;return[null!==(t=null===e||void 0===e?void 0:e.accessType)&&void 0!==t?t:cn("accessType not found in InvalidAccessType details")]}),Un=Tn(Bn,"ACCESS_TYPE_WITHOUT_PROJECT_ID",e=>[400,Jt(_n||(_n=Ht(["\n      The x-stack-access-type header was '","', but the x-stack-project-id header was not provided.\n      \n      For more information, see the docs on REST API authentication: https://docs.stack-auth.com/rest-api/overview#authentication\n    "])),e),{request_type:e}],e=>[e.request_type]),Vn=Tn(Bn,"ACCESS_TYPE_REQUIRED",()=>[400,Jt(xn||(xn=Ht(["\n      You must specify an access level for this Stack project. Make sure project API keys are provided (eg. x-stack-publishable-client-key) and you set the x-stack-access-type header to 'client', 'server', or 'admin'.\n      \n      For more information, see the docs on REST API authentication: https://docs.stack-auth.com/rest-api/overview#authentication\n    "])))],()=>[]),qn=Tn(Bn,"INSUFFICIENT_ACCESS_TYPE",(e,t)=>[401,"The x-stack-access-type header must be ".concat(t.map(e=>"'".concat(e,"'")).join(" or "),", but was '").concat(e,"'."),{actual_access_type:e,allowed_access_types:t}],e=>[e.actual_access_type,e.allowed_access_types]),Hn=Tn(Bn,"INVALID_PUBLISHABLE_CLIENT_KEY",e=>[401,"The publishable key is not valid for the project ".concat(JSON.stringify(e),". Does the project and/or the key exist?"),{project_id:e}],e=>[e.project_id]),Wn=Tn(Bn,"INVALID_SECRET_SERVER_KEY",e=>[401,"The secret server key is not valid for the project ".concat(JSON.stringify(e),". Does the project and/or the key exist?"),{project_id:e}],e=>[e.project_id]),Kn=Tn(Bn,"INVALID_SUPER_SECRET_ADMIN_KEY",e=>[401,"The super secret admin key is not valid for the project ".concat(JSON.stringify(e),". Does the project and/or the key exist?"),{project_id:e}],e=>[e.project_id]),Yn=Tn(Bn,"INVALID_ADMIN_ACCESS_TOKEN","inherit","inherit"),Gn=Tn(Yn,"UNPARSABLE_ADMIN_ACCESS_TOKEN",()=>[401,"Admin access token is not parsable."],()=>[]),Jn=Tn(Yn,"ADMIN_ACCESS_TOKEN_EXPIRED",e=>{var t;return[401,"Admin access token has expired. Please refresh it and try again.".concat(e?" (The access token expired at ".concat(e.toISOString(),".)"):""),{expired_at_millis:null!==(t=null===e||void 0===e?void 0:e.getTime())&&void 0!==t?t:null}]},e=>[e.expired_at_millis?new Date(e.expired_at_millis):void 0]),$n=Tn(Yn,"INVALID_PROJECT_FOR_ADMIN_ACCESS_TOKEN",()=>[401,"Admin access tokens must be created on the internal project."],()=>[]),Qn=Tn(Yn,"ADMIN_ACCESS_TOKEN_IS_NOT_ADMIN",()=>[401,"Admin access token does not have the required permissions to access this project."],()=>[]),Xn=Tn(Mn,"PROJECT_AUTHENTICATION_REQUIRED","inherit","inherit"),Zn=Tn(Xn,"CLIENT_AUTHENTICATION_REQUIRED",()=>[401,"The publishable client key must be provided."],()=>[]),ea=Tn(Xn,"PUBLISHABLE_CLIENT_KEY_REQUIRED_FOR_PROJECT",e=>[401,"Publishable client keys are required for this project. Create one in Project Keys, or disable this requirement there to allow keyless client access.",{project_id:null!==e&&void 0!==e?e:null}],e=>{var t;return[null!==(t=e.project_id)&&void 0!==t?t:void 0]}),ta=Tn(Xn,"SERVER_AUTHENTICATION_REQUIRED",()=>[401,"The secret server key must be provided."],()=>[]),na=Tn(Xn,"CLIENT_OR_SERVER_AUTHENTICATION_REQUIRED",()=>[401,"Either the publishable client key or the secret server key must be provided."],()=>[]),aa=Tn(Xn,"CLIENT_OR_ADMIN_AUTHENTICATION_REQUIRED",()=>[401,"Either the publishable client key or the super secret admin key must be provided."],()=>[]),ra=Tn(Xn,"CLIENT_OR_SERVER_OR_ADMIN_AUTHENTICATION_REQUIRED",()=>[401,"Either the publishable client key, the secret server key, or the super secret admin key must be provided."],()=>[]),oa=Tn(Xn,"ADMIN_AUTHENTICATION_REQUIRED",()=>[401,"The super secret admin key must be provided."],()=>[]),ia=Tn(Mn,"EXPECTED_INTERNAL_PROJECT",()=>[401,"The project ID is expected to be internal."],()=>
2[]),sa=Tn(Pn,"SESSION_AUTHENTICATION_ERROR","inherit","inherit"),la=Tn(sa,"INVALID_SESSION_AUTHENTICATION","inherit","inherit"),ca=Tn(la,"INVALID_ACCESS_TOKEN","inherit","inherit"),ua=Tn(ca,"UNPARSABLE_ACCESS_TOKEN",()=>[401,"Access token is not parsable."],()=>[]),da=Tn(ca,"ACCESS_TOKEN_EXPIRED",(e,t,n,a)=>{var r;return[401,Jt(bn||(bn=Ht(["\n      Access token has expired. Please refresh it and try again.","","","","\n\n      Debug info: Most likely, you fetched the access token before it expired (for example, in a server component, pre-rendered page, or on page load), but then didn't refresh it before it expired. If this is the case, and you're using the SDK, make sure you call getAccessToken() every time you need to use the access token. If you're not using the SDK, make sure you refresh the access token with the refresh endpoint.\n    "])),e?" (The access token expired at ".concat(e.toISOString(),".)"):"",t?" Project ID: ".concat(t,"."):"",n?" User ID: ".concat(n,"."):"",a?" Refresh token ID: ".concat(a,"."):""),{expired_at_millis:null!==(r=null===e||void 0===e?void 0:e.getTime())&&void 0!==r?r:null,project_id:null!==t&&void 0!==t?t:null,user_id:null!==n&&void 0!==n?n:null,refresh_token_id:null!==a&&void 0!==a?a:null}]},e=>{var t,n,a;return[e.expired_at_millis?new Date(e.expired_at_millis):void 0,null!==(t=e.project_id)&&void 0!==t?t:void 0,null!==(n=e.user_id)&&void 0!==n?n:void 0,null!==(a=e.refresh_token_id)&&void 0!==a?a:void 0]}),ha=Tn(ca,"INVALID_PROJECT_FOR_ACCESS_TOKEN",(e,t)=>[401,"Access token not valid for this project. Expected project ID ".concat(JSON.stringify(e),", but the token is for project ID ").concat(JSON.stringify(t),"."),{expected_project_id:e,actual_project_id:t}],e=>
2[e.expected_project_id,e.actual_project_id]),pa=Tn(Pn,"REFRESH_TOKEN_ERROR","inherit","inherit"),fa=Tn(pa,"REFRESH_TOKEN_NOT_FOUND_OR_EXPIRED",()=>[401,"Refresh token not found for this project, or the session has expired/been revoked."],()=>[]),ma=Tn(pa,"CANNOT_DELETE_CURRENT_SESSION",()=>[400,"Cannot delete the current session."],()=>[]),ga=Tn(pa,"PROVIDER_REJECTED",()=>[401,"The provider refused to refresh their token. This usually means that the provider used to authenticate the user no longer regards this session as valid, and the user must re-authenticate."],()=>[]),va=Tn(Pn,"USER_EMAIL_ALREADY_EXISTS",function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return[409,"A user with email ".concat(JSON.stringify(e)," already exists").concat(t?" but the email is not verified. Please login to your existing account with the method you used to sign up, and then verify your email to sign in with this login method.":"."),{email:e,would_work_if_email_was_verified:t}]},e=>{var t;return[e.email,null!==(t=e.would_work_if_email_was_verified)&&void 0!==t&&t]}),ya=Tn(Pn,"EMAIL_NOT_VERIFIED",()=>[400,"The email is not verified."],()=>[]),wa=Tn(Pn,"CANNOT_GET_OWN_USER_WITHOUT_USER",()=>[400,"You have specified 'me' as a userId, but did not provide authentication for a user."],()=>[]),_a=Tn(Pn,"USER_ID_DOES_NOT_EXIST",e=>[400,"The given user with the ID ".concat(e," does not exist."),{user_id:e}],e=>[e.user_id]),xa=Tn(Pn,"USER_NOT_FOUND",()=>[404,"User not found."],()=>[]),ba=Tn(Pn,"RESTRICTED_USER_NOT_ALLOWED",e=>[403,"The user in the access token is in restricted state. Reason: ".concat(e.type,". Please pass the X-Stack-Allow-Restricted-User header if this is intended."),{restricted_reason:e}],e=>{var t;return[null!==(t=e.restricted_reason)&&void 0!==t?t:{type:"anonymous"}]}),ka=Tn(Pn,"PROJECT_NOT_FOUND",e=>{if("string"!==typeof e)throw new hn("projectId of KnownErrors.ProjectNotFound must be a string");return[404,"Project ".concat(e," not found or is not accessible with the current user."),{project_id:e}]},e=>[e.project_id]),Ca=Tn(Pn,"CURRENT_PROJECT_NOT_FOUND",e=>[400,"The current project with ID ".concat(e," was not found. Please check the value of the x-stack-project-id header."),{project_id:e}],e=>[e.project_id]),Da=Tn(Pn,"BRANCH_DOES_NOT_EXIST",e=>[400,"The branch with ID ".concat(e," does not exist."),{branch_id:e}],e=>[e.branch_id]),Aa=Tn(Pn,"SIGN_UP_NOT_ENABLED",()=>[400,"Creation of new accounts is not enabled for this project. Please ask the project owner to enable it."],()=>[]),Ea=Tn(Pn,"SIGN_UP_REJECTED",e=>[403,null!==e&&void 0!==e?e:"Your sign up was rejected by an administrator's sign-up rule.",{message:null!==e&&void 0!==e?e:"Your sign up was rejected by an administrator's sign-up rule."}],e=>[e.message]),ja=Tn(Pn,"PASSWORD_AUTHENTICATION_NOT_ENABLED",()=>[400,"Password authentication is not enabled for this project."],()=>[]),Sa=Tn(Pn,"DATA_VAULT_STORE_DOES_NOT_EXIST",e=>[400,"Data vault store with ID ".concat(e," does not exist."),{store_id:e}],e=>[e.store_id]),Na=Tn(Pn,"DATA_VAULT_STORE_HASHED_KEY_DOES_NOT_EXIST",(e,t)=>[400,"Data vault store with ID ".concat(e," does not contain a key with hash ").concat(t,"."),{store_id:e,hashed_key:t}],e=>[e.store_id,e.hashed_key]),Pa=Tn(Pn,"PASSKEY_AUTHENTICATION_NOT_ENABLED",()=>[400,"Passkey authentication is not enabled for this project."],()=>[]),Ta=Tn(Pn,"ANONYMOUS_ACCOUNTS_NOT_ENABLED",()=>[400,"Anonymous accounts are not enabled for this project."],()=>[]),Fa=Tn(Pn,"ANONYMOUS_AUTHENTICATION_NOT_ALLOWED",()=>[401,"X-Stack-Access-Token is for an anonymous user, but anonymous users are not enabled. Set the X-Stack-Allow-Anonymous-User header of this request to 'true' to allow anonymous users."],()=>[]),Oa=Tn(Pn,"EMAIL_PASSWORD_MISMATCH",()=>[400,"Wrong e-mail or password."],()=>[]),Ia=Tn(Pn,"REDIRECT_URL_NOT_WHITELISTED",()=>[400,"Redirect URL not whitelisted. Did you forget to add this domain to the trusted domains list on the Stack Auth dashboard?"],()=>[]),Ra=Tn(Pn,"PASSWORD_REQUIREMENTS_NOT_MET","inherit","inherit"),Ma=Tn(Ra,"PASSWORD_TOO_SHORT",e=>[400,"Password too short. Minimum length is ".concat(e,"."),{min_length:e}],e=>{var t;return[null!==(t=null===e||void 0===e?void 0:e.min_length)&&void 0!==t?t:cn("min_length not found in PasswordTooShort details")]}),Ba=Tn(Ra,"PASSWORD_TOO_LONG",e=>[400,"Password too long. Maximum length is ".concat(e,"."),{maxLength:e}],e=>{var t;return[null!==(t=null===e||void 0===e?void 0:e.maxLength)&&void 0!==t?t:cn("maxLength not found in PasswordTooLong details")]}),za=Tn(Pn,"USER_DOES_NOT_HAVE_PASSWORD",()=>[400,"This user does not have password authentication enabled."],()=>
2[]),La=Tn(Pn,"VERIFICATION_ERROR","inherit","inherit"),Ua=Tn(La,"VERIFICATION_CODE_NOT_FOUND",()=>[404,"The verification code does not exist for this project."],()=>[]),Va=Tn(La,"VERIFICATION_CODE_EXPIRED",()=>[400,"The verification code has expired."],()=>[]),qa=Tn(La,"VERIFICATION_CODE_ALREADY_USED",()=>[409,"The verification link has already been used."],()=>[]),Ha=Tn(La,"VERIFICATION_CODE_MAX_ATTEMPTS_REACHED",()=>[400,"The verification code nonce has reached the maximum number of attempts. This code is not valid anymore."],()=>[]),Wa=Tn(Pn,"PASSWORD_CONFIRMATION_MISMATCH",()=>[400,"Passwords do not match."],()=>[]),Ka=Tn(Pn,"EMAIL_ALREADY_VERIFIED",()=>[409,"The e-mail is already verified."],()=>[]),Ya=Tn(Pn,"EMAIL_NOT_ASSOCIATED_WITH_USER",()=>[400,"The e-mail is not associated with a user that could log in with that e-mail."],()=>[]),Ga=Tn(Pn,"EMAIL_IS_NOT_PRIMARY_EMAIL",(e,t)=>[400,"The given e-mail (".concat(e,") must equal the user's primary e-mail (").concat(t,")."),{email:e,primary_email:t}],e=>[e.email,e.primary_email]),Ja=Tn(Pn,"PASSKEY_REGISTRATION_FAILED",e=>[400,e],e=>[e.message]),$a=Tn(Pn,"PASSKEY_WEBAUTHN_ERROR",(e,t)=>[400,e,{message:e,code:t}],e=>[e.message,e.code]),Qa=Tn(Pn,"PASSKEY_AUTHENTICATION_FAILED",e=>[400,e],e=>[e.message]),Xa=Tn(Pn,"PERMISSION_NOT_FOUND",e=>[404,'Permission "'.concat(e,'" not found. Make sure you created it on the dashboard.'),{permission_id:e}],e=>[e.permission_id]),Za=Tn(Pn,"WRONG_PERMISSION_SCOPE",(e,t,n)=>[404,"Permission ".concat(JSON.stringify(e)," not found. (It was found for a different scope ").concat(JSON.stringify(n),", but scope ").concat(JSON.stringify(t)," was expected.)"),{permission_id:e,expected_scope:t,actual_scope:n}],e=>[e.permission_id,e.expected_scope,e.actual_scope]),er=Tn(Pn,"CONTAINED_PERMISSION_NOT_FOUND",e=>[400,'Contained permission with ID "'.concat(e,'" not found. Make sure you created it on the dashboard.'),{permission_id:e}],e=>[e.permission_id]),tr=Tn(Pn,"TEAM_NOT_FOUND",e=>[404,"Team ".concat(e," not found."),{team_id:e}],e=>[e.team_id]),nr=(Tn(Pn,"TEAM_ALREADY_EXISTS",e=>[409,"Team ".concat(e," already exists."),{team_id:e}],e=>[e.team_id]),Tn(Pn,"TEAM_MEMBERSHIP_NOT_FOUND",(e,t)=>[404,"User ".concat(t," is not found in team ").concat(e,"."),{team_id:e,user_id:t}],e=>[e.team_id,e.user_id])),ar=Tn(Pn,"TEAM_INVITATION_RESTRICTED_USER_NOT_ALLOWED",e=>[403,"Restricted users cannot accept team invitations. Reason: ".concat(e.type,". Please complete the onboarding process before accepting team invitations."),{restricted_reason:e}],e=>{var t;return[null!==(t=e.restricted_reason)&&void 0!==t?t:{type:"anonymous"}]}),rr=Tn(Pn,"EMAIL_TEMPLATE_ALREADY_EXISTS",()=>[409,"Email template already exists."],()=>[]),or=Tn(Pn,"OAUTH_CONNECTION_NOT_CONNECTED_TO_USER",()=>[400,"The OAuth connection is not connected to any user."],()=>[]),ir=Tn(Pn,"OAUTH_CONNECTION_ALREADY_CONNECTED_TO_ANOTHER_USER",()=>[409,"The OAuth connection is already connected to another user."],()=>[]),sr=Tn(Pn,"OAUTH_CONNECTION_DOES_NOT_HAVE_REQUIRED_SCOPE",()=>[400,"The OAuth connection does not have the required scope."],()=>[]),lr=Tn(Pn,"OAUTH_ACCESS_TOKEN_NOT_AVAILABLE",(e,t)=>[400,"Failed to retrieve an OAuth access token for the connected account (provider: ".concat(e,"). ").concat(t),{provider:e,details:t}],e=>[e.provider,e.details]),cr=Tn(Pn,"OAUTH_EXTRA_SCOPE_NOT_AVAILABLE_WITH_SHARED_OAUTH_KEYS",()=>[400,"Extra scopes are not available with shared OAuth keys. Please add your own OAuth keys on the Stack dashboard to use extra scopes."],()=>[]),ur=Tn(Pn,"OAUTH_ACCESS_TOKEN_NOT_AVAILABLE_WITH_SHARED_OAUTH_KEYS",()=>[400,"Access tokens are not available with shared OAuth keys. Please add your own OAuth keys on the Stack dashboard to use access tokens."],()=>[]),dr=Tn(Pn,"INVALID_OAUTH_CLIENT_ID_OR_SECRET",e=>[400,"The OAuth client ID or secret is invalid. The client ID must be equal to the project ID (potentially with a hash and a branch ID), and the client secret must be a publishable client key.",{client_id:null!==e&&void 0!==e?e:null}],e=>{var t;return[null!==(t=e.client_id)&&void 0!==t?t:void 0]}
2),hr=Tn(Pn,"INVALID_SCOPE",e=>[400,'The scope "'.concat(e,'" is not a valid OAuth scope for Stack.')],e=>[e.scope]),pr=Tn(Pn,"USER_ALREADY_CONNECTED_TO_ANOTHER_OAUTH_CONNECTION",()=>[409,"The user is already connected to another OAuth account. Did you maybe selected the wrong account?"],()=>[]),fr=Tn(Pn,"OUTER_OAUTH_TIMEOUT",()=>[408,"The OAuth flow has timed out. Please sign in again."],()=>[]),mr=Tn(Pn,"OAUTH_PROVIDER_NOT_FOUND_OR_NOT_ENABLED",()=>[400,"The OAuth provider is not found or not enabled."],()=>[]),gr=Tn(Pn,"APPLE_BUNDLE_ID_NOT_CONFIGURED",()=>[400,"Apple Sign In is enabled, but no Bundle IDs are configured. Please add your app's Bundle ID in the Stack Auth dashboard under OAuth Providers > Apple > Apple Bundle IDs."],()=>[]),vr=Tn(Pn,"OAUTH_PROVIDER_ACCOUNT_ID_ALREADY_USED_FOR_SIGN_IN",()=>[400,"A provider with the same account ID is already used for signing in."],()=>[]),yr=Tn(Pn,"MULTI_FACTOR_AUTHENTICATION_REQUIRED",e=>[400,"Multi-factor authentication is required for this user.",{attempt_code:e}],e=>[e.attempt_code]),wr=Tn(Pn,"INVALID_TOTP_CODE",()=>[400,"The TOTP code is invalid. Please try again."],()=>[]),_r=Tn(Pn,"USER_AUTHENTICATION_REQUIRED",()=>[401,"User authentication required for this endpoint."],()=>[]),xr=Tn(Pn,"TEAM_MEMBERSHIP_ALREADY_EXISTS",()=>[409,"Team membership already exists."],()=>[]),br=Tn(Pn,"PROJECT_PERMISSION_REQUIRED",(e,t)=>[401,"User ".concat(e," does not have permission ").concat(t,"."),{user_id:e,permission_id:t}],e=>[e.user_id,e.permission_id]),kr=Tn(Pn,"TEAM_PERMISSION_REQUIRED",(e,t,n)=>[401,"User ".concat(t," does not have permission ").concat(n," in team ").concat(e,"."),{team_id:e,user_id:t,permission_id:n}],e=>[e.team_id,e.user_id,e.permission_id]),Cr=Tn(Pn,"TEAM_PERMISSION_NOT_FOUND",(e,t,n)=>[401,"User ".concat(t," does not have permission ").concat(n," in team ").concat(e,"."),{team_id:e,user_id:t,permission_id:n}],e=>[e.team_id,e.user_id,e.permission_id]),Dr=Tn(Pn,"INVALID_SHARED_OAUTH_PROVIDER_ID",e=>[400,"The shared OAuth provider with ID ".concat(e," is not valid."),{provider_id:e}],e=>[e.provider_id]),Ar=Tn(Pn,"INVALID_STANDARD_OAUTH_PROVIDER_ID",e=>[400,"The standard OAuth provider with ID ".concat(e," is not valid."),{provider_id:e}],e=>[e.provider_id]),Er=Tn(Pn,"INVALID_AUTHORIZATION_CODE",()=>[400,"The given authorization code is invalid."],()=>[]),jr=Tn(Pn,"INVALID_APPLE_CREDENTIALS",()=>[400,"The Apple Sign In credentials could not be verified. Please try signing in again."],()=>[]),Sr=Tn(Pn,"OAUTH_PROVIDER_ACCESS_DENIED",()=>[400,"The OAuth provider denied access to the user."],()=>[]),Nr=Tn(Pn,"CONTACT_CHANNEL_ALREADY_USED_FOR_AUTH_BY_SOMEONE_ELSE",function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return[409,"This ".concat(e," ").concat(t?'"('.concat(t,')"'):""," is already used for authentication by another account").concat(n?" but the email is not verified. Please login to your existing account with the method you used to sign up, and then verify your email to sign in with this login method.":"."),{type:e,contact_channel_value:null!==t&&void 0!==t?t:null,would_work_if_email_was_verified:n}]},e=>{var t;return[e.type,e.contact_channel_value,null!==(t=e.would_work_if_email_was_verified)&&void 0!==t&&t]}),Pr=Tn(Pn,"INVALID_POLLING_CODE",e=>[400,"The polling code is invalid or does not exist.",e],e=>[e]),Tr=Tn(Pn,"CLI_AUTH_ERROR",e=>[400,e],e=>[e.message]),Fr=Tn(Pn,"CLI_AUTH_EXPIRED_ERROR",function(){return[400,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"CLI authentication request expired. Please try again."]},e=>[e.message]),Or=Tn(Pn,"CLI_AUTH_USED_ERROR",function(){return[400,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"This authentication token has already been used."]},e=>[e.message]),Ir=Tn(Pn,"API_KEY_NOT_VALID","inherit","inherit"),Rr=Tn(Ir,"API_KEY_EXPIRED",()=>[401,"API key has expired."],()=>[]),Mr=Tn(Ir,"API_KEY_REVOKED",()=>[401,"API key has been revoked."],()=>[]),Br=Tn(Ir,"WRONG_API_KEY_TYPE",(e,t)=>[400,"This endpoint is for ".concat(e," API keys, but a ").concat(t," API key was provided."),{expected_type:e,actual_type:t}],e=>[e.expected_type,e.actual_type]),zr=Tn(Ir,"API_KEY_NOT_FOUND",()=>[404,"API key not found."],()=>[]),Lr=Tn(Ir,"PUBLIC_API_KEY_CANNOT_BE_REVOKED",()=>[400,"Public API keys cannot be revoked by the secretscanner endpoint."],()=>[]),Ur=Tn(Pn,"PERMISSION_ID_ALREADY_EXISTS",e=>[400,'Permission with ID "'.concat(e,'" already exists. Choose a different ID.'),{permission_id:e}],e=>[e.permission_id]),Vr=Tn(Pn,"EMAIL_RENDERING_ERROR",e=>[400,"Failed to render email with theme: ".concat(e),{error:e}],e=>[e.error]),qr=Tn(Pn,"REQUIRES_CUSTOM_EMAIL_SERVER",()=>[400,"This action requires a custom SMTP server. Please edit your email server configuration and try again."],()=>[]),Hr=Tn(Pn,"EMAIL_NOT_EDITABLE",(e,t)=>[400,'Email with ID "'.concat(e,'" cannot be edited because it is in status "').concat(t,'". Only emails in PAUSED, PREPARING, RENDERING, RENDER_ERROR, SCHEDULED, QUEUED, or SERVER_ERROR status can be edited.'),{email_id:e,status:t}],e=>[e.email_id,e.status]),Wr=Tn(Pn,"ITEM_NOT_FOUND",e=>[404,'Item with ID "'.concat(e,'" not found.'),{item_id:e}],e=>[e.item_id]),Kr=Tn(Pn,"ITEM_CUSTOMER_TYPE_DOES_NOT_MATCH",(e,t,n,a)=>[400,"The ".concat(a," with ID ").concat(JSON.stringify(t)," is not a valid customer for the item with ID ").concat(JSON.stringify(e),". ").concat(n?"The item is configured to only be available for ".concat(n," customers, but the customer is a ").concat(a,"."):"The item is missing a customer type field. Please make sure it is set up correctly in your project configuration."),{item_id:e,customer_id:t,item_customer_type:null!==n&&void 0!==n?n:null,actual_customer_type:a}],e=>{var t;return[e.item_id,e.customer_id,null!==(t=e.item_customer_type)&&void 0!==t?t:void 0,e.actual_customer_type]}),Yr=Tn(Pn,"CUSTOMER_DOES_NOT_EXIST",e=>[400,"Customer with ID ".concat(JSON.stringify(e)," does not exist."),{customer_id:e}],e=>[e.customer_id]),Gr=Tn(Pn,"SUBSCRIPTION_INVOICE_NOT_FOUND",e=>[404,"Subscription invoice with ID ".concat(JSON.stringify(e)," does not exist."),{subscription_invoice_id:e}],e=>[e.subscription_invoice_id]),Jr=Tn(Pn,"ONE_TIME_PURCHASE_NOT_FOUND",e=>[404,"One-time purchase with ID ".concat(JSON.stringify(e)," does not exist."),{one_time_purchase_id:e}],e=>[e.one_time_purchase_id]),$r=Tn(Pn,"SUBSCRIPTION_ALREADY_REFUNDED",e=>[400,"Subscription with ID ".concat(JSON.stringify(e)," was already refunded."),{subscription_id:e}],e=>[e.subscription_id]),Qr=Tn(Pn,"ONE_TIME_PURCHASE_ALREADY_REFUNDED",e=>[400,"One-time purchase with ID ".concat(JSON.stringify(e)," was already refunded."),{one_time_purchase_id:e}],e=>[e.one_time_purchase_id]),Xr=Tn(Pn,"TEST_MODE_PURCHASE_NON_REFUNDABLE",()=>[400,"Test mode purchases are not refundable."],()=>[]),Zr=Tn(Pn,"PRODUCT_DOES_NOT_EXIST",(e,t)=>[400,"Product with ID ".concat(JSON.stringify(e)," ").concat("server_only"===t?"is marked as server-only and cannot be accessed client side.":"item_exists"===t?"does not exist, but an item with this ID exists.":"does not exist."),{product_id:e,context:t}],e=>[e.product_id,e.context]),eo=Tn(Pn,"PRODUCT_CUSTOMER_TYPE_DOES_NOT_MATCH",(e,t,n,a)=>[400,"The ".concat(a," with ID ").concat(JSON.stringify(t)," is not a valid customer for the inline product that has been passed in. ").concat(n?"The product is configured to only be available for ".concat(n," customers, but the customer is a ").concat(a,"."):"The product is missing a customer type field. Please make sure it is set up correctly in your project configuration."),{product_id:null!==e&&void 0!==e?e:null,customer_id:t,product_customer_type:null!==n&&void 0!==n?n:null,actual_customer_type:a}],e=>{var t,n;return[null!==(t=e.product_id)&&void 0!==t?t:void 0,e.customer_id,null!==(n=e.product_customer_type)&&void 0!==n?n:void 0,e.actual_customer_type]}),to=Tn(Pn,"PRODUCT_ALREADY_GRANTED",(e,t)=>[400,"Customer with ID ".concat(JSON.stringify(t)," already owns product ").concat(JSON.stringify(e),"."),{product_id:e,customer_id:t}],e=>[e.product_id,e.customer_id]),no=Tn(Pn,"ITEM_QUANTITY_INSUFFICIENT_AMOUNT",(e,t,n)=>[400,"The item with ID ".concat(JSON.stringify(e)," has an insufficient quantity for the customer with ID ").concat(JSON.stringify(t),". An attempt was made to charge ").concat(n," credits."),{item_id:e,customer_id:t,quantity:n}],e=>[e.item_id,e.customer_id,e.quantity]),ao=Tn(Pn,"STRIPE_ACCOUNT_INFO_NOT_FOUND",()=>[404,"Stripe account information not found. Please make sure the user has onboarded with Stripe."],()=>[]),ro=Tn(Pn,"ANALYTICS_QUERY_TIMEOUT",e=>[400,"The query timed out. Please try again with a shorter query or increase the timeout. Timeout was ".concat(e,"ms."),{timeout_ms:e}],e=>[e.timeout_ms]),oo=Tn(Pn,"ANALYTICS_QUERY_ERROR",e=>[400,"".concat(e),{error:e}],e=>[e.error]),io=Tn(Pn,"ANALYTICS_NOT_ENABLED",()=>[400,"Analytics is not enabled for this project."],()=>[]),so={CannotDeleteCurrentSession:ma,UnsupportedError:Fn,BodyParsingError:On,SchemaError:In,AllOverloadsFailed:Rn,ProjectAuthenticationError:Mn,PermissionIdAlreadyExists:Ur,CliAuthError:Tr,CliAuthExpiredError:Fr,CliAuthUsedError:Or,InvalidProjectAuthentication:Bn,ProjectKeyWithoutAccessType:zn,InvalidAccessType:Ln,AccessTypeWithoutProjectId:Un,AccessTypeRequired:Vn,CannotGetOwnUserWithoutUser:wa,InsufficientAcce
2ssType:qn,InvalidPublishableClientKey:Hn,InvalidSecretServerKey:Wn,InvalidSuperSecretAdminKey:Kn,InvalidAdminAccessToken:Yn,UnparsableAdminAccessToken:Gn,AdminAccessTokenExpired:Jn,InvalidProjectForAdminAccessToken:$n,AdminAccessTokenIsNotAdmin:Qn,ProjectAuthenticationRequired:Xn,ClientAuthenticationRequired:Zn,PublishableClientKeyRequiredForProject:ea,ServerAuthenticationRequired:ta,ClientOrServerAuthenticationRequired:na,ClientOrAdminAuthenticationRequired:aa,ClientOrServerOrAdminAuthenticationRequired:ra,AdminAuthenticationRequired:oa,ExpectedInternalProject:ia,SessionAuthenticationError:sa,InvalidSessionAuthentication:la,InvalidAccessToken:ca,UnparsableAccessToken:ua,AccessTokenExpired:da,InvalidProjectForAccessToken:ha,RefreshTokenError:pa,ProviderRejected:ga,RefreshTokenNotFoundOrExpired:fa,UserWithEmailAlreadyExists:va,EmailNotVerified:ya,UserIdDoesNotExist:_a,UserNotFound:xa,RestrictedUserNotAllowed:ba,ApiKeyNotFound:zr,PublicApiKeyCannotBeRevoked:Lr,ProjectNotFound:ka,CurrentProjectNotFound:Ca,BranchDoesNotExist:Da,SignUpNotEnabled:Aa,SignUpRejected:Ea,PasswordAuthenticationNotEnabled:ja,PasskeyAuthenticationNotEnabled:Pa,AnonymousAccountsNotEnabled:Ta,AnonymousAuthenticationNotAllowed:Fa,EmailPasswordMismatch:Oa,RedirectUrlNotWhitelisted:Ia,PasswordRequirementsNotMet:Ra,PasswordTooShort:Ma,PasswordTooLong:Ba,UserDoesNotHavePassword:za,VerificationCodeError:La,VerificationCodeNotFound:Ua,VerificationCodeExpired:Va,VerificationCodeAlreadyUsed:qa,VerificationCodeMaxAttemptsReached:Ha,PasswordConfirmationMismatch:Wa,EmailAlreadyVerified:Ka,EmailNotAssociatedWithUser:Ya,EmailIsNotPrimaryEmail:Ga,PasskeyRegistrationFailed:Ja,PasskeyWebAuthnError:$a,PasskeyAuthenticationFailed:Qa,PermissionNotFound:Xa,PermissionScopeMismatch:Za,ContainedPermissionNotFound:er,TeamNotFound:tr,TeamMembershipNotFound:nr,TeamInvitationRestrictedUserNotAllowed:ar,EmailTemplateAlreadyExists:rr,OAuthConnectionNotConnectedToUser:or,OAuthConnectionAlreadyConnectedToAnotherUser:ir,OAuthConnectionDoesNotHaveRequiredScope:sr,OAuthAccessTokenNotAvailable:lr,OAuthExtraScopeNotAvailableWithSharedOAuthKeys:cr,OAuthAccessTokenNotAvailableWithSharedOAuthKeys:ur,InvalidOAuthClientIdOrSecret:dr,InvalidScope:hr,UserAlreadyConnectedToAnotherOAuthConnection:pr,OuterOAuthTimeout:fr,OAuthProviderNotFoundOrNotEnabled:mr,AppleBundleIdNotConfigured:gr,OAuthProviderAccountIdAlreadyUsedForSignIn:vr,MultiFactorAuthenticationRequired:yr,InvalidTotpCode:wr,UserAuthenticationRequired:_r,TeamMembershipAlreadyExists:xr,ProjectPermissionRequired:br,TeamPermissionRequired:kr,InvalidSharedOAuthProviderId:Dr,InvalidStandardOAuthProviderId:Ar,InvalidAuthorizationCode:Er,InvalidAppleCredentials:jr,TeamPermissionNotFound:Cr,OAuthProviderAccessDenied:Sr,ContactChannelAlreadyUsedForAuthBySomeoneElse:Nr,InvalidPollingCodeError:Pr,ApiKeyNotValid:Ir,ApiKeyExpired:Rr,ApiKeyRevoked:Mr,WrongApiKeyType:Br,EmailRenderingError:Vr,RequiresCustomEmailServer:qr,EmailNotEditable:Hr,ItemNotFound:Wr,ItemCustomerTypeDoesNotMatch:Kr,CustomerDoesNotExist:Yr,ProductDoesNotExist:Zr,ProductCustomerTypeDoesNotMatch:eo,ProductAlreadyGranted:to,SubscriptionInvoiceNotFound:Gr,OneTimePurchaseNotFound:Jr,SubscriptionAlreadyRefunded:$r,OneTimePurchaseAlreadyRefunded:Qr,TestModePurchaseNonRefundable:Xr,ItemQuantityInsufficientAmount:no,StripeAccountInfoNotFound:ao,DefaultPaymentMethodRequired:Tn(Pn,"DEFAULT_PAYMENT_METHOD_REQUIRED",(e,t)=>[400,"No default payment method is set for this customer.",{customer_type:e,customer_id:t}],e=>[e.customer_type,e.customer_id]),NewPurchasesBlocked:Tn(Pn,"NEW_PURCHASES_BLOCKED",()=>[403,"New purchases are currently blocked for this project. Please contact support for more information."],()=>[]),DataVaultStoreDoesNotExist:Sa,DataVaultStoreHashedKeyDoesNotExist:Na,AnalyticsQueryTimeout:ro,AnalyticsQueryError:oo,AnalyticsNotEnabled:io},lo=new Set;for(const[n,FAe]of Object.entries(so)){if(lo.has(FAe.errorCode))throw new Error("Duplicate known error code: ".concat(FAe.errorCode));lo.add(FAe.errorCode)}var co="stack-data-vault-client-side-encryption-value-encryption-value-encryption";async function uo(e,t){return await yd({purpose:"stack-data-vault-client-side-encryption-value-encryption-key-hash",extra:e,value:t,iterations:1e5})}async function ho(e,t){return An(await async function(e){return await yd(p(p({},e),{},{iterations:1}))}({purpose:"stack-data-vault-client-side-encryption-key-hash",extra:e,value:await uo(e,t)}))}
2async function po(e,t,n){const a=await uo(e,t),r=await async function(e){let{purpose:t,secret:n,value:a}=e;const r=crypto.getRandomValues(new Uint8Array(12)),o=crypto.getRandomValues(new Uint8Array(16)),i=await vd(t,n,o),s=await crypto.subtle.encrypt({name:"AES-GCM",iv:r},i,a);return new Uint8Array([1,0,...o,...r,...new Uint8Array(s)])}({purpose:co,secret:a,value:(new TextEncoder).encode(n)});return An(r)}async function fo(e,t,n){const a=await uo(e,t),r=await async function(e){let{purpose:t,secret:n,cipher:a}=e;const r=a.slice(0,2);if(1!==r[0]||0!==r[1])throw new hn("Invalid ciphertext version in decrypt(...); expected 0x0100",{purpose:t});const o=a.slice(2,18),i=a.slice(18,30),s=a.slice(30),l=await vd(t,n,o);try{const e=await crypto.subtle.decrypt({name:"AES-GCM",iv:i},l,s);return ld.ok(new Uint8Array(e))}catch(oL){if(oL instanceof DOMException&&"OperationError"===oL.name)return ld.error(new Error("Invalid ciphertext or secret when decrypting encrypted value",{cause:oL}));throw oL}}({purpose:co,secret:a,cipher:En(n)});if("error"===r.status)throw new Error("Data vault client-side decryption failed. Are you sure you're using the correct secret?",{cause:r.error});return(new TextDecoder).decode(r.data)}new TextEncoder;const mo=new TextDecoder;function go(e){if(Uint8Array.fromBase64)return Uint8Array.fromBase64("string"===typeof e?e:mo.decode(e),{alphabet:"base64url"});let t=e;t instanceof Uint8Array&&(t=mo.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/");try{return function(e){if(Uint8Array.fromBase64)return Uint8Array.fromBase64(e);const t=atob(e),n=new Uint8Array(t.length);for(let a=0;a<t.length;a++)n[a]=t.charCodeAt(a);return n}(t)}catch(n){throw new TypeError("The input to be decoded is not correctly encoded.")}}function vo(e){if(!(e=>"object"===typeof e&&null!==e)(e)||"[object Object]"!==Object.prototype.toString.call(e))return!1;if(null===Object.getPrototypeOf(e))return!0;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}class yo extends Error{constructor(e,t){var n;super(e,t),d(this,"code","ERR_JOSE_GENERIC"),this.name=this.constructor.name,null===(n=Error.captureStackTrace)||void 0===n||n.call(Error,this,this.constructor)}}d(yo,"code","ERR_JOSE_GENERIC");d(class extends yo{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"unspecified",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unspecified";super(e,{cause:{claim:n,reason:a,payload:t}}),d(this,"code","ERR_JWT_CLAIM_VALIDATION_FAILED"),d(this,"claim",void 0),d(this,"reason",void 0),d(this,"payload",void 0),this.claim=n,this.reason=a,this.payload=t}},"code","ERR_JWT_CLAIM_VALIDATION_FAILED");d(class extends yo{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"unspecified",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unspecified";super(e,{cause:{claim:n,reason:a,payload:t}}),d(this,"code","ERR_JWT_EXPIRED"),d(this,"claim",void 0),d(this,"reason",void 0),d(this,"payload",void 0),this.claim=n,this.reason=a,this.payload=t}},"code","ERR_JWT_EXPIRED");d(class extends yo{constructor(){super(...arguments),d(this,"code","ERR_JOSE_ALG_NOT_ALLOWED")}},"code","ERR_JOSE_ALG_NOT_ALLOWED");d(class extends yo{constructor(){super(...arguments),d(this,"code","ERR_JOSE_NOT_SUPPORTED")}},"code","ERR_JOSE_NOT_SUPPORTED");d(class extends yo{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"decryption operation failed",arguments.length>1?arguments[1]:void 0),d(this,"code","ERR_JWE_DECRYPTION_FAILED")}},"code","ERR_JWE_DECRYPTION_FAILED");d(class extends yo{constructor(){super(...arguments),d(this,"code","ERR_JWE_INVALID")}},"code","ERR_JWE_INVALID");d(class extends yo{constructor(){super(...arguments),d(this,"code","ERR_JWS_INVALID")}},"code","ERR_JWS_INVALID");class wo extends yo{constructor(){super(...arguments),d(this,"code","ERR_JWT_INVALID")}}d(wo,"code","ERR_JWT_INVALID");d(class extends yo{constructor(){super(...arguments),d(this,"code","ERR_JWK_INVALID")}},"code","ERR_JWK_INVALID");d(class extends yo{constructor(){super(...arguments),d(this,"code","
2ERR_JWKS_INVALID")}},"code","ERR_JWKS_INVALID");d(class extends yo{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"no applicable key found in the JSON Web Key Set",arguments.length>1?arguments[1]:void 0),d(this,"code","ERR_JWKS_NO_MATCHING_KEY")}},"code","ERR_JWKS_NO_MATCHING_KEY");d(class extends yo{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"multiple matching keys found in the JSON Web Key Set",arguments.length>1?arguments[1]:void 0),d(this,Symbol.asyncIterator,void 0),d(this,"code","ERR_JWKS_MULTIPLE_MATCHING_KEYS")}},"code","ERR_JWKS_MULTIPLE_MATCHING_KEYS");d(class extends yo{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"request timed out",arguments.length>1?arguments[1]:void 0),d(this,"code","ERR_JWKS_TIMEOUT")}},"code","ERR_JWKS_TIMEOUT");d(class extends yo{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"signature verification failed",arguments.length>1?arguments[1]:void 0),d(this,"code","ERR_JWS_SIGNATURE_VERIFICATION_FAILED")}},"code","ERR_JWS_SIGNATURE_VERIFICATION_FAILED");var _o=n(4575),xo=n(1517),bo=n(8704),ko=n.n(bo);const Co=Object.prototype.toString,Do=Error.prototype.toString,Ao=RegExp.prototype.toString,Eo="undefined"!==typeof Symbol?Symbol.prototype.toString:()=>"",jo=/^Symbol\((.*)\)(.*)$/;function So(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==e||!0===e||!1===e)return""+e;const n=typeof e;if("number"===n)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===n)return t?'"'.concat(e,'"'):e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return Eo.call(e).replace(jo,"Symbol($1)");const a=Co.call(e).slice(8,-1);return"Date"===a?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===a||e instanceof Error?"["+Do.call(e)+"]":"RegExp"===a?Ao.call(e):null}function No(e,t){let n=So(e,t);return null!==n?n:JSON.stringify(e,function(e,n){let a=So(this[e],t);return null!==a?a:n},2)}function Po(e){return null==e?[]:[].concat(e)}let To,Fo,Oo,Io=/\$\{\s*(\w+)\s*\}/g;To=Symbol.toStringTag;class Ro{constructor(e,t,n,a){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[To]="Error",this.name="ValidationError",this.value=t,this.path=n,this.type=a,this.errors=[],this.inner=[],Po(e).forEach(e=>{if(Mo.isError(e)){this.errors.push(...e.errors);const t=e.inner.length?e.inner:[e];this.inner.push(...t)}else this.errors.push(e)}),this.message=this.errors.length>1?"".concat(this.errors.length," errors occurred"):this.errors[0]}}Fo=Symbol.hasInstance,Oo=Symbol.toStringTag;class Mo extends Error{static formatError(e,t){const n=t.label||t.path||"this";return t=Object.assign({},t,{path:n,originalPath:t.path}),"string"===typeof e?e.replace(Io,(e,n)=>No(t[n])):"function"===typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,a,r){const o=new Ro(e,t,n,a);if(r)return o;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[Oo]="Error",this.name=o.name,this.message=o.message,this.type=o.type,this.value=o.value,this.path=o.path,this.errors=o.errors,this.inner=o.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Mo)}static[Fo](e){return Ro[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}}let Bo={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:e=>{let{path:t,type:n,value:a,originalValue:r}=e;const o=null!=r&&r!==a?" (cast from the value `".concat(No(r,!0),"`)."):".";return"mixed"!==n?"".concat(t," must be a `").concat(n,"` type, ")+"but the final value was: `".concat(No(a,!0),"`")+o:"".concat(t," must match the configured type. ")+"The validated value was: `".concat(No(a,!0),"`")+o}},zo={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Lo={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Uo={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Vo={isValue:"${path} field must be ${value}"},qo={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path}
2 object contains unknown properties: ${properties}"},Ho={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},Wo={notType:e=>{const{path:t,value:n,spec:a}=e,r=a.types.length;if(Array.isArray(n)){if(n.length<r)return"".concat(t," tuple value has too few items, expected a length of ").concat(r," but got ").concat(n.length," for value: `").concat(No(n,!0),"`");if(n.length>r)return"".concat(t," tuple value has too many items, expected a length of ").concat(r," but got ").concat(n.length," for value: `").concat(No(n,!0),"`")}return Mo.formatError(Bo.notType,e)}};Object.assign(Object.create(null),{mixed:Bo,string:zo,number:Lo,date:Uo,object:qo,array:Ho,boolean:Vo,tuple:Wo});const Ko=e=>e&&e.__isYupSchema__;class Yo{static fromOptions(e,t){if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:a,otherwise:r}=t,o="function"===typeof n?n:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.every(e=>e===n)};return new Yo(e,(e,t)=>{var n;let i=o(...e)?a:r;return null!=(n=null==i?void 0:i(t))?n:t})}constructor(e,t){this.fn=void 0,this.refs=e,this.refs=e,this.fn=t}resolve(e,t){let n=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),a=this.fn(n,e,t);if(void 0===a||a===e)return e;if(!Ko(a))throw new TypeError("conditions must return a schema object");return a.resolve(t)}}const Go="$",Jo=".";function $o(e,t){return new Qo(e,t)}class Qo{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!==typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Go,this.isValue=this.key[0]===Jo,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?Go:this.isValue?Jo:"";this.path=this.key.slice(n.length),this.getter=this.path&&(0,_o.getter)(this.path,!0),this.map=t.map}getValue(e,t,n){let a=this.isContext?n:this.isValue?e:t;return this.getter&&(a=this.getter(a||{})),this.map&&(a=this.map(a)),a}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return"Ref(".concat(this.key,")")}static isRef(e){return e&&e.__isYupRef}}Qo.prototype.__isYupRef=!0;const Xo=e=>null==e;function Zo(e){function t(t,n,a){let{value:r,path:o="",options:i,originalValue:s,schema:l}=t;const{name:c,test:u,params:d,message:h,skipAbsent:p}=e;let{parent:f,context:m,abortEarly:g=l.spec.abortEarly,disableStackTrace:v=l.spec.disableStackTrace}=i;const y={value:r,parent:f,context:m};function w(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=ei(Object.assign({value:r,originalValue:s,label:l.spec.label,path:e.path||o,spec:l.spec,disableStackTrace:e.disableStackTrace||v},d,e.params),y),n=new Mo(Mo.formatError(e.message||h,t),r,t.path,e.type||c,t.disableStackTrace);return n.params=t,n}const _=g?n:a;let x={path:o,parent:f,type:c,from:i.from,createError:w,resolve:e=>ti(e,y),options:i,originalValue:s,schema:l};const b=e=>{Mo.isError(e)?_(e):e?a(null):_(w())},k=e=>{Mo.isError(e)?_(e):n(e)};if(p&&Xo(r))return b(!0);let C;try{var D;if(C=u.call(x,r,x),"function"===typeof(null==(D=C)?void 0:D.then)){if(i.sync)throw new Error('Validation test of type: "'.concat(x.type,'" returned a Promise during a synchronous validate. ')+"This test will finish after the validate call has returned");return Promise.resolve(C).then(b,k)}}catch(A){return void k(A)}b(C)}return t.OPTIONS=e,t}function ei(e,t){if(!e)return e;for(const n of Object.keys(e))e[n]=ti(e[n],t);return e}function ti(e,t){return Qo.isRef(e)?e.getValue(t.value,t.parent,t.context):e}function ni(e,t,n){let a,r,o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return t?((0,_o.forEach)(t,(s,l,c)=>{let u=l?s.slice(1,s.length-1):s,d="tuple"===(e=e.resolve({context:i,parent:a,value:n})).type,h=c?parseInt(u,10):0;if(e.innerType||d){if(d&&!c)throw new Error('Yup.reach cannot implicitly index into a tuple type. the path part "'.concat(o,'" must contain an index to the tuple element, e.g. "').concat(o,'[0]"'));if(n&&h>=n.length)throw new Error("Yup.reach cannot resolve an array item at index: ".concat(s,", in the path: ").concat(t,". ")+"because there is no value at that index. ");a=n,n=n&&n[h],e=d?e.spec.types[h]:e.innerType}if(!c){if(!e.fields||!e.fields[u])throw new Error("The schema does not contain the path: ".concat(t,". ")+"(failed at: ".concat(o,' which is a type: "').concat(e.type,'")'));a=n,n=n&&n[u],e=e.fields[u]}r=u,o=l?"["+s+"]":"."+s}),{schema:e,parent:a,parentPath:r}):{parent:a,parentPath:t,schema:e}}function ai(e,t,n,a){return ni(e,t,n,a).schema}class ri extends Set{describe(){const e=[];for(const t of this.values())e.push(Qo.isRef(t)?t.describe():t);return e}resolveAll(e){let t=[];for(const n of this.values())t.push(e(n));return t}clone(){return new ri(this.values())}merge(e,t){const n=this.clone();
2return e.forEach(e=>n.add(e)),t.forEach(e=>n.delete(e)),n}}function oi(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map;if(Ko(e)||!e||"object"!==typeof e)return e;if(n.has(e))return n.get(e);if(e instanceof Date)t=new Date(e.getTime()),n.set(e,t);else if(e instanceof RegExp)t=new RegExp(e),n.set(e,t);else if(Array.isArray(e)){t=new Array(e.length),n.set(e,t);for(let a=0;a<e.length;a++)t[a]=oi(e[a],n)}else if(e instanceof Map){t=new Map,n.set(e,t);for(const[a,r]of e.entries())t.set(a,oi(r,n))}else if(e instanceof Set){t=new Set,n.set(e,t);for(const a of e)t.add(oi(a,n))}else{if(!(e instanceof Object))throw Error("Unable to clone ".concat(e));t={},n.set(e,t);for(const[a,r]of Object.entries(e))t[a]=oi(r,n)}return t}function ii(e){if(null==e||!e.length)return;const t=[];let n="",a=!1,r=!1;for(let o=0;o<e.length;o++){const i=e[o];"["!==i||r?"]"!==i||r?'"'!==i?"."!==i||a||r?n+=i:n&&(t.push(n),n=""):r=!r:(n&&(/^\d+$/.test(n)?t.push(n):t.push(n.replace(/^"|"$/g,"")),n=""),a=!1):(n&&(t.push(...n.split(".").filter(Boolean)),n=""),a=!0)}return n&&t.push(...n.split(".").filter(Boolean)),t}function si(e,t){var n;if((null==(n=e.inner)||!n.length)&&e.errors.length)return function(e,t){const n=t?"".concat(t,".").concat(e.path):e.path;return e.errors.map(e=>({message:e,path:ii(n)}))}(e,t);const a=t?"".concat(t,".").concat(e.path):e.path;return e.inner.flatMap(e=>si(e,a))}class li{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new ri,this._blacklist=new ri,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Bo.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},null==e?void 0:e.spec),this.withMutation(e=>{e.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeCheck=this._typeCheck,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.internalTests=Object.assign({},this.internalTests),t.exclusiveTests=Object.assign({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=oi(Object.assign({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(){if(0===arguments.length)return this.spec.meta;let e=this.clone();return e.spec.meta=Object.assign(e.spec.meta||{},arguments.length<=0?void 0:arguments[0]),e}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError("You cannot `concat()` schema's of different types: ".concat(this.type," and ").concat(e.type));let t=this,n=e.clone();const a=Object.assign({},t.spec,n.spec);return n.spec=a,n.internalTests=Object.assign({},t.internalTests,n.internalTests),n._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),n._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),n.tests=t.tests,n.exclusiveTests=t.exclusiveTests,n.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),n.transforms=[...t.transforms,...n.transforms],n}isType(e){return null==e?!(!this.spec.nullable||null!==e)||!(!this.spec.optional||void 0!==e):this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;t=t.clone(),t.conditions=[],t=n.reduce((t,n)=>n.resolve(t,e),t),t=t.resolve(e)}return t}resolveOptions(e){var t,n,a,r;return Object.assign({},e,{from:e.from||[],strict:null!=(t=e.strict)?t:this.spec.strict,abortEarly:null!=(n=e.abortEarly)?n:this.spec.abortEarly,recursive:null!=(a=e.recursive)?a:this.spec.recursive,disableStackTrace:null!=(r=e.disableStackTrace)?r:this.spec.disableStackTrace})}cast(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.resolve(Object.assign({},t,{value:e})),a="ignore-optionality"===t.assert,r=n._cast(e,t);if(!1!==t.assert&&!n.isType(r)){if(a&&Xo(r))return r;let o=No(e),i=No(r);throw new TypeError("The value of ".concat(t.path||"field"," could not be cast to a value ")+'that satisfies the schema type: "'.concat(n.type,'". \n\n')+"attempted value: ".concat(o," \n")+(i!==o?"result of cast: ".concat(i):""))}return r}_cast(e,t){let n=void 0===e?e:this.transforms.reduce((n,a)=>a.call(this,n,e,this,t),e);return void 0===n&&(n=this.getDefault(t)),n}_validate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,{path:r,originalValue:o=e,strict:i=this.spec.strict}=t,s=e;i||(s=this._cast(s,Object.assign({assert:!1},t)));let l=[];for(let c of Object.values(this.internalTests))c&&l.push(c);this.runTests({path:r,value:s,originalValue:o,options:t,tests:l},n,e=>{if(e.length)return a(e,s);this.runTests({path:r,value:s,originalValue:o,options:t,tests:this.tests},n,a)})}
2runTests(e,t,n){let a=!1,{tests:r,value:o,originalValue:i,path:s,options:l}=e,c=e=>{a||(a=!0,t(e,o))},u=e=>{a||(a=!0,n(e,o))},d=r.length,h=[];if(!d)return u([]);let p={value:o,originalValue:i,path:s,options:l,schema:this};for(let f=0;f<r.length;f++){(0,r[f])(p,c,function(e){e&&(Array.isArray(e)?h.push(...e):h.push(e)),--d<=0&&u(h)})}}asNestedTest(e){let{key:t,index:n,parent:a,parentPath:r,originalParent:o,options:i}=e;const s=null!=t?t:n;if(null==s)throw TypeError("Must include `key` or `index` for nested validations");const l="number"===typeof s;let c=a[s];const u=Object.assign({},i,{strict:!0,parent:a,value:c,originalValue:o[s],key:void 0,[l?"index":"key"]:s,path:l||s.includes(".")?"".concat(r||"","[").concat(l?s:'"'.concat(s,'"'),"]"):(r?"".concat(r,"."):"")+t});return(e,t,n)=>this.resolve(u)._validate(c,u,t,n)}validate(e,t){var n;let a=this.resolve(Object.assign({},t,{value:e})),r=null!=(n=null==t?void 0:t.disableStackTrace)?n:a.spec.disableStackTrace;return new Promise((n,o)=>a._validate(e,t,(e,t)=>{Mo.isError(e)&&(e.value=t),o(e)},(e,t)=>{e.length?o(new Mo(e,t,void 0,void 0,r)):n(t)}))}validateSync(e,t){var n;let a,r=this.resolve(Object.assign({},t,{value:e})),o=null!=(n=null==t?void 0:t.disableStackTrace)?n:r.spec.disableStackTrace;return r._validate(e,Object.assign({},t,{sync:!0}),(e,t)=>{throw Mo.isError(e)&&(e.value=t),e},(t,n)=>{if(t.length)throw new Mo(t,e,void 0,void 0,o);a=n}),a}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(Mo.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(n){if(Mo.isError(n))return!1;throw n}}_getDefault(e){let t=this.spec.default;return null==t?t:"function"===typeof t?t.call(this,e):oi(t)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){if(0===arguments.length)return this._getDefault();return this.clone({default:e})}strict(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.clone({strict:e})}nullability(e,t){const n=this.clone({nullable:e});return n.internalTests.nullable=Zo({message:t,name:"nullable",test(e){return null!==e||this.schema.spec.nullable}}),n}optionality(e,t){const n=this.clone({optional:e});return n.internalTests.optionality=Zo({message:t,name:"optionality",test(e){return void 0!==e||this.schema.spec.optional}}),n}optional(){return this.optionality(!0)}defined(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Bo.defined;return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Bo.notNull;return this.nullability(!1,e)}required(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Bo.required;return this.clone().withMutation(t=>t.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let t=this.clone();return t.transforms.push(e),t}test(){let e;if(e=1===arguments.length?"function"===typeof(arguments.length<=0?void 0:arguments[0])?{test:arguments.length<=0?void 0:arguments[0]}:arguments.length<=0?void 0:arguments[0]:2===arguments.length?{name:arguments.length<=0?void 0:arguments[0],test:arguments.length<=1?void 0:arguments[1]}:{name:arguments.length<=0?void 0:arguments[0],message:arguments.length<=1?void 0:arguments[1],test:arguments.length<=2?void 0:arguments[2]},void 0===e.message&&(e.message=Bo.default),"function"!==typeof e.test)throw new TypeError("`test` is a required parameters");let t=this.clone(),n=Zo(e),a=e.exclusive||e.name&&!0===t.exclusiveTests[e.name];if(e.exclusive&&!e.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return e.name&&(t.exclusiveTests[e.name]=!!e.exclusive),t.tests=t.tests.filter(t=>{if(t.OPTIONS.name===e.name){if(a)return!1;if(t.OPTIONS.test===n.OPTIONS.test)return!1}return!0}),t.tests.push(n),t}when(e,t){Array.isArray(e)||"string"===typeof e||(t=e,e=".");let n=this.clone(),a=Po(e).map(e=>new Qo(e));return a.forEach(e=>{e.isSibling&&n.deps.push(e.key)}),n.conditions.push("function"===typeof t?new Yo(a,t):Yo.fromOptions(a,t)),n}typeError(e){let t=this.clone();return t.internalTests.typeError=Zo({message:e,name:"typeError",skipAbsent:!0,test(e){return!!this.schema._typeCheck(e)||this.createError({params:{type:this.schema.type}})}}),t}oneOf(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bo.oneOf,n=this.clone();
2return e.forEach(e=>{n._whitelist.add(e),n._blacklist.delete(e)}),n.internalTests.whiteList=Zo({message:t,name:"oneOf",skipAbsent:!0,test(e){let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}notOneOf(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bo.notOneOf,n=this.clone();return e.forEach(e=>{n._blacklist.add(e),n._whitelist.delete(e)}),n.internalTests.blacklist=Zo({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}strip(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.clone();return t.spec.strip=e,t}describe(e){const t=(e?this.resolve(e):this).clone(),{label:n,meta:a,optional:r,nullable:o}=t.spec,i={meta:a,label:n,optional:r,nullable:o,default:t.getDefault(e),type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.filter((e,t,n)=>n.findIndex(t=>t.OPTIONS.name===e.OPTIONS.name)===t).map(t=>{const n=t.OPTIONS.params&&e?ei(Object.assign({},t.OPTIONS.params),e):t.OPTIONS.params;return{name:t.OPTIONS.name,params:n}})};return i}get"~standard"(){const e=this,t={version:1,vendor:"yup",async validate(t){try{return{value:await e.validate(t,{abortEarly:!1})}}catch(n){if(n instanceof Mo)return{issues:si(n)};throw n}}};return t}}li.prototype.__isYupSchema__=!0;for(const n of["validate","validateSync"])li.prototype["".concat(n,"At")]=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{parent:r,parentPath:o,schema:i}=ni(this,e,t,a.context);return i[n](r&&r[o],Object.assign({},a,{parent:r,path:e}))};for(const n of["equals","is"])li.prototype[n]=li.prototype.oneOf;for(const n of["not","nope"])li.prototype[n]=li.prototype.notOneOf;const ci=()=>!0;function ui(e){return new di(e)}class di extends li{constructor(e){super("function"===typeof e?{type:"mixed",check:e}:Object.assign({type:"mixed",check:ci},e))}}function hi(){return new pi}ui.prototype=di.prototype;class pi extends li{constructor(){super({type:"boolean",check:e=>(e instanceof Boolean&&(e=e.valueOf()),"boolean"===typeof e)}),this.withMutation(()=>{this.transform((e,t)=>{if(this.spec.coerce&&!this.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e})})}isTrue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vo.isValue;return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test:e=>Xo(e)||!0===e})}isFalse(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vo.isValue;return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test:e=>Xo(e)||!1===e})}default(e){return super.default(e)}defined(e){return super.defined(e)}optional(){return super.optional()}required(e){return super.required(e)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(e){return super.nonNullable(e)}strip(e){return super.strip(e)}}hi.prototype=pi.prototype;const fi=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function mi(e){var t,n;const a=fi.exec(e);return a?{year:gi(a[1]),month:gi(a[2],1)-1,day:gi(a[3],1),hour:gi(a[4]),minute:gi(a[5]),second:gi(a[6]),millisecond:a[7]?gi(a[7].substring(0,3)):0,precision:null!=(t=null==(n=a[7])?void 0:n.length)?t:void 0,z:a[8]||void 0,plusMinus:a[9]||void 0,hourOffset:gi(a[10]),minuteOffset:gi(a[11])}:null}function gi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Number(e)||t}let vi=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,yi=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,wi=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,_i=new RegExp("".concat("^\\d{4}-\\d{2}-\\d{2}","T").concat("\\d{2}:\\d{2}:\\d{2}","(\\.\\d+)?").concat("(([+-]\\d{2}(:?\\d{2})?)|Z)","$")),xi=e=>Xo(e)||e===e.trim(),bi={}.toString();function ki(){return new Ci}class Ci extends li{constructor(){super({type:"string",check:e=>(e instanceof String&&(e=e.valueOf()),"string"===typeof e)}),this.withMutation(()=>{this.transform((e,t)=>{if(!this.spec.coerce||this.isType(e))return e;if(Array.isArray(e))return e;const n=null!=e&&e.toString?e.toString():e;return n===bi?e:n})})}required(e){return super.required(e).withMutation(t=>t.test({message:e||Bo.required,name:"required",skipAbsent:!0,test:e=>!!e.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e))}length(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zo.length;return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zo.min;return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zo.max;return this.test({name:"max",exclusive:!0,message:t,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}matches(e,t){let n,a,r=!1;return t&&("object"===typeof t?({excludeEmptyString:r=!1,message:n,name:a}=t):n=t),this.test({name:a||"matches",message:n||zo.matches,params:{regex:e},skipAbsent:!0,test:t=>""===t&&r||-1!==t.search(e)})}email(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zo.email;return this.matches(vi,{name:"email",message:e,excludeEmptyString:!0})}url(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zo.url;return this.matches(yi,{name:"url",message:e,excludeEmptyString:!0})}uuid(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zo.uuid;return this.matches(wi,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let t,n,a="";return e&&("object"===typeof e?({message:a="",allowOffset:t=!1,precision:n}=e):a=e),this.matches(_i,{name:"datetime",message:a||zo.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:a||zo.datetime_offset,params:{allowOffset:t},skipAbsent:!0,test:e=>{if(!e||t)return!0;const n=mi(e);return!!n&&!!n.z}}).test({name:"datetime_precision",message:a||zo.datetime_precision,params:{precision:n},skipAbsent:!0,test:e=>{if(!e||void 0==n)return!0;const t=mi(e);return!!t&&t.precision===n}})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zo.trim;return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:xi})}lowercase(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zo.lowercase;return this.transform(e=>Xo(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>Xo(e)||e===e.toLowerCase()})}uppercase(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zo.uppercase;return this.transform(e=>Xo(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>Xo(e)||e===e.toUpperCase()})}}ki.prototype=Ci.prototype;function Di(){return new Ai}class Ai extends li{constructor(){super({type:"number",check:e=>(e instanceof Number&&(e=e.valueOf()),"number"===typeof e&&!(e=>e!=+e)(e))}),this.withMutation(()=>{this.transform((e,t)=>{if(!this.spec.coerce)return e;let n=e;if("string"===typeof n){if(n=n.replace(/\s/g,""),""===n)return NaN;n=+n}return this.isType(n)||null===n?n:parseFloat(n)})})}min(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Lo.min;return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t>=this.resolve(e)}})}max(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Lo.max;return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(t){return t<=this.resolve(e)}})}lessThan(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Lo.lessThan;return this.test({message:t,name:"max",exclusive:!0,params:{less:e},skipAbsent:!0,test(t){return t<this.resolve(e)}})}moreThan(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Lo.moreThan;return this.test({message:t,name:"min",exclusive:!0,params:{more:e},skipAbsent:!0,test(t){return t>this.resolve(e)}})}positive(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lo.positive;return this.moreThan(0,e)}negative(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lo.negative;return this.lessThan(0,e)}integer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lo.integer;
vendor: 11,825 bytes, line 2
2return this.test({name:"integer",message:e,skipAbsent:!0,test:e=>Number.isInteger(e)})}truncate(){return this.transform(e=>Xo(e)?e:0|e)}round(e){var t;let n=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===n.indexOf(e.toLowerCase()))throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(t=>Xo(t)?t:Math[e](t))}}Di.prototype=Ai.prototype;let Ei=new Date("");function ji(){return new Si}class Si extends li{constructor(){super({type:"date",check(e){return t=e,"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(e.getTime());var t}}),this.withMutation(()=>{this.transform((e,t)=>!this.spec.coerce||this.isType(e)||null===e?e:(e=function(e){const t=mi(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(void 0===t.z&&void 0===t.plusMinus)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return"Z"!==t.z&&void 0!==t.plusMinus&&(n=60*t.hourOffset+t.minuteOffset,"+"===t.plusMinus&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}(e),isNaN(e)?Si.INVALID_DATE:new Date(e)))})}prepareParam(e,t){let n;if(Qo.isRef(e))n=e;else{let a=this.cast(e);if(!this._typeCheck(a))throw new TypeError("`".concat(t,"` must be a Date or a value that can be `cast()` to a Date"));n=a}return n}min(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uo.min,n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(e){return e>=this.resolve(n)}})}max(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uo.max,n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(e){return e<=this.resolve(n)}})}}function Ni(e,t){let n=1/0;return e.some((e,a)=>{var r;if(null!=(r=t.path)&&r.includes(e))return n=a,!0}),n}function Pi(e){return(t,n)=>Ni(e,t)-Ni(e,n)}Si.INVALID_DATE=Ei,ji.prototype=Si.prototype,ji.INVALID_DATE=Ei;const Ti=(e,t,n)=>{if("string"!==typeof e)return e;let a=e;try{a=JSON.parse(e)}catch(r){}return n.isType(a)?a:e};function Fi(e){if("fields"in e){const t={};for(const[n,a]of Object.entries(e.fields))t[n]=Fi(a);return e.setFields(t)}if("array"===e.type){const t=e.optional();return t.innerType&&(t.innerType=Fi(t.innerType)),t}return"tuple"===e.type?e.optional().clone({types:e.spec.types.map(Fi)}):"optional"in e?e.optional():e}let Oi=e=>"[object Object]"===Object.prototype.toString.call(e);function Ii(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(e=>-1===n.indexOf(e))}const Ri=Pi([]);function Mi(e){return new Bi(e)}class Bi extends li{constructor(e){super({type:"object",check:e=>Oi(e)||"function"===typeof e}),this.fields=Object.create(null),this._sortErrors=Ri,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n;let a=super._cast(e,t);if(void 0===a)return this.getDefault(t);if(!this._typeCheck(a))return a;let r=this.fields,o=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,i=[].concat(this._nodes,Object.keys(a).filter(e=>!this._nodes.includes(e))),s={},l=Object.assign({},t,{parent:s,__validating:t.__validating||!1}),c=!1;for(const u of i){let e=r[u],n=u in a,i=a[u];if(e){let n;l.path=(t.path?"".concat(t.path,"."):"")+u,e=e.resolve({value:i,context:t.context,parent:s});let r=e instanceof li?e.spec:void 0,o=null==r?void 0:r.strict;if(null!=r&&r.strip){c=c||u in a;continue}n=t.__validating&&o?i:e.cast(i,l),void 0!==n&&(s[u]=n)}else n&&!o&&(s[u]=i);n===u in s&&s[u]===i||(c=!0)}return c?s:a}_validate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,{from:r=[],originalValue:o=e,recursive:i=this.spec.recursive}=t;t.from=[{schema:this,value:o},...r],t.__validating=!0,t.originalValue=o,super._validate(e,t,n,(e,r)=>{if(!i||!Oi(r))return void a(e,r);o=o||r;let s=[];for(let n of this._nodes){let e=this.fields[n];e&&!Qo.isRef(e)&&s.push(e.asNestedTest({options:t,key:n,parent:r,parentPath:t.path,originalParent:o}))}this.runTests({tests:s,value:r,originalValue:o,options:t},n,t=>{a(t.sort(this._sortErrors).concat(e),r)})})}clone(e){const t=super.clone(e);return t.fields=Object.assign({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[a,r]of Object.entries(this.fields)){const e=n[a];n[a]=void 0===e?r:e}return t.withMutation(t=>t.setFields(n,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let t={};return this._nodes.forEach(n=>{var a;const r=this.fields[n];let o=e;null!=(a=o)&&a.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[n]})),t[n]=r&&"getDefault"in r?r.getDefault(o):void 0}),t}setFields(e,t){let n=this.clone();return n.fields=e,n._nodes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],a=new Set,r=new Set(t.map(e=>{let[t,n]=e;return"".concat(t,"-").concat(n)}));function o(e,t){let o=(0,_o.split)(e)[0];a.add(o),r.has("".concat(t,"-").concat(o))||n.push([t,o])}for(const i of Object.keys(e)){let t=e[i];a.add(i),Qo.isRef(t)&&t.isSibling?o(t.path,i):Ko(t)&&"deps"in t&&t.deps.forEach(e=>o(e,i))}return ko().array(Array.from(a),n).reverse()}(e,t),n._sortErrors=Pi(Object.keys(e)),t&&(n._excludedEdges=t),n}shape(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.clone().withMutation(n=>{let a=n._excludedEdges;return t.length&&(Array.isArray(t[0])||(t=[t]),a=[...n._excludedEdges,...t]),n.setFields(Object.assign(n.fields,e),a)})}partial(){const e={};for(const[t,n]of Object.entries(this.fields))e[t]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(e)}deepPartial(){return Fi(this)}pick(e){const t={};for(const n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.setFields(t,this._excludedEdges.filter(t=>{let[n,a]=t;return e.includes(n)&&e.includes(a)}))}omit(e){const t=[];for(const n of Object.keys(this.fields))e.includes(n)||t.push(n);return this.pick(t)}from(e,t,n){let a=(0,_o.getter)(e,!0);return this.transform(r=>{if(!r)return r;let o=r;return((e,t)=>{const n=[...(0,_o.normalizePath)(t)];if(1===n.length)return n[0]in e;let a=n.pop(),r=(0,_o.getter)((0,_o.join)(n),!0)(e);return!(!r||!(a in r))})(r,e)&&(o=Object.assign({},r),n||delete o[e],o[t]=a(r)),o})}json(){return this.transform(Ti)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||qo.exact,test(e){if(null==e)return!0;const t=Ii(this.schema,e);return 0===t.length||this.createError({params:{properties:t.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qo.noUnknown;"boolean"!==typeof e&&(t=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;const n=Ii(this.schema,t);return!e||0===n.length||this.createError({params:{unknown:n.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qo.noUnknown;return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>{if(!t)return t;const n={};for(const a of Object.keys(t))n[e(a)]=t[a];return n})}camelCase(){return this.transformKeys(xo.camelCase)}snakeCase(){return this.transformKeys(xo.snakeCase)}constantCase(){return this.transformKeys(e=>(0,xo.snakeCase)(e).toUpperCase())}describe(e){const t=(e?this.resolve(e):this).clone(),n=super.describe(e);n.fields={};for(const[r,o]of Object.entries(t.fields)){var a;let t=e;null!=(a=t)&&a.value&&(t=Object.assign({},t,{parent:t.value,value:t.value[r]})),n.fields[r]=o.describe(t)}return n}}function zi(e){return new Li(e)}Mi.prototype=Bi.prototype;class Li extends li{constructor(e){super({type:"array",spec:{types:e},check:e=>Array.isArray(e)}),this.innerType=void 0,this.innerType=e}_cast(e,t){const n=super._cast(e,t);if(!this._typeCheck(n)||!this.innerType)return n;let a=!1;const r=n.map((e,r)=>{const o=this.innerType.cast(e,Object.assign({},t,{path:"".concat(t.path||"","[").concat(r,"]"),parent:n,originalValue:e,value:e,index:r}));return o!==e&&(a=!0),o});return a?r:n}_validate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0;var r;let o=this.innerType,i=null!=(r=t.recursive)?r:this.spec.recursive;null!=t.originalValue&&t.originalValue,super._validate(e,t,n,(r,s)=>{var l;if(!i||!o||!this._typeCheck(s))return void a(r,s);let c=new Array(s.length);for(let n=0;n<s.length;n++){var u;c[n]=o.asNestedTest({options:t,index:n,parent:s,parentPath:t.path,originalParent:null!=(u=t.originalValue)?u:e})}this.runTests({value:s,tests:c,originalValue:null!=(l=t.originalValue)?l:e,options:t},n,e=>a(e.concat(r),s))})}clone(e){const t=super.clone(e);return t.innerType=this.innerType,t}json(){return this.transform(Ti)}concat(e){let t=super.concat(e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}of(e){let t=this.clone();if(!Ko(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+No(e));return t.innerType=e,t.spec=Object.assign({},t.spec,{types:e}),t}length(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ho.length;return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t){return t=t||Ho.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t){return t=t||Ho.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,t)=>this._typeCheck(e)?e:null==t?[]:[].concat(t))}compact(e){let t=e?(t,n,a)=>!e(t,n,a):e=>!!e;return this.transform(e=>null!=e?e.filter(t):e)}describe(e){const t=(e?this.resolve(e):this).clone(),n=super.describe(e);if(t.innerType){var a;let r=e;null!=(a=r)&&a.value&&(r=Object.assign({},r,{parent:r.value,value:r.value[0]})),n.innerType=t.innerType.describe(r)}return n}}function Ui(e){return new Vi(e)}zi.prototype=Li.prototype;class Vi extends li{constructor(e){super({type:"tuple",spec:{types:e},check(e){const t=this.spec.types;return Array.isArray(e)&&e.length===t.length}}),this.withMutation(()=>{this.typeError(Wo.notType)})}_cast(e,t){const{types:n}=this.spec,a=super._cast(e,t);if(!this._typeCheck(a))return a;let r=!1;const o=n.map((e,n)=>{const o=e.cast(a[n],Object.assign({},t,{path:"".concat(t.path||"","[").concat(n,"]"),parent:a,originalValue:a[n],value:a[n],index:n}));return o!==a[n]&&(r=!0),o});return r?o:a}_validate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,r=this.spec.types;super._validate(e,t,n,(o,i)=>{var s;if(!this._typeCheck(i))return void a(o,i);let l=[];for(let[n,a]of r.entries()){var c;l[n]=a.asNestedTest({options:t,index:n,parent:i,parentPath:t.path,originalParent:null!=(c=t.originalValue)?c:e})}this.runTests({value:i,tests:l,originalValue:null!=(s=t.originalValue)?s:e,options:t},n,e=>a(e.concat(o),i))})}describe(e){const t=(e?this.resolve(e):this).clone(),n=super.describe(e);return n.innerType=t.spec.types.map((t,n)=>{var a;let r=e;return null!=(a=r)&&a.value&&(r=Object.assign({},r,{parent:r.value,value:r.value[n]})),t.describe(r)}),n}}Ui.prototype=Vi.prototype;
2function qi(e,t,n){if(!e||!Ko(e.prototype))throw new TypeError("You must provide a yup schema constructor function");if("string"!==typeof t)throw new TypeError("A Method name must be provided");if("function"!==typeof n)throw new TypeError("Method function must be provided");e.prototype[t]=n}var Hi=[{code:"USD",decimals:2,stripeDecimals:2},{code:"EUR",decimals:2,stripeDecimals:2},{code:"GBP",decimals:2,stripeDecimals:2},{code:"JPY",decimals:0,stripeDecimals:0},{code:"INR",decimals:2,stripeDecimals:2},{code:"AUD",decimals:2,stripeDecimals:2},{code:"CAD",decimals:2,stripeDecimals:2}],Wi={GET:{safe:!0,idempotent:!0},POST:{safe:!1,idempotent:!1},PUT:{safe:!1,idempotent:!0},DELETE:{safe:!1,idempotent:!0},PATCH:{safe:!1,idempotent:!1},OPTIONS:{safe:!0,idempotent:!0},HEAD:{safe:!0,idempotent:!0},TRACE:{safe:!0,idempotent:!0},CONNECT:{safe:!1,idempotent:!1}};function Ki(e){const[t,n,...a]=e.split(" ");if(a.length>0)return null;if(!n)return null;if("Basic"!==t)return null;if(!Sn(n))return null;const r=(new TextDecoder).decode(En(n)).split(":");return[r[0],r.slice(1).join(":")]}var Yi,Gi,Ji=["google","github","microsoft","spotify","facebook","discord","gitlab","bitbucket","linkedin","apple","x","twitch"],$i="__stack_public_client__";function Qi(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(+e^md(new Uint8Array(1))[0]&15>>+e/4).toString(16))}function Xi(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/.test(e)}var Zi=1e6;
2async function es(e,t,n){try{return await e.validate(t,p(p({},ln(null!==n&&void 0!==n?n:{},["currentUserId"])),{},{context:p(p({},null===n||void 0===n?void 0:n.context),{},{stackAllowUserIdMe:void 0!==(null===n||void 0===n?void 0:n.currentUserId)})}))}catch(a){if(a instanceof Vs){const r=null===n||void 0===n?void 0:n.currentUserId;if(!r)throw new so.CannotGetOwnUserWithoutUser;let o=a.path;const i=[];for(;o.length>0;)if(o.startsWith("[")){const e=o.indexOf("]");if(e<0)throw new hn("Invalid path");i.push(JSON.parse(o.slice(1,e))),o=o.slice(e+1)}else{let e=o.indexOf(".");-1===e&&(e=o.length),i.push(o.slice(0,e)),o=o.slice(e+1)}const s=nn(t);let l=s;for(const e of i.slice(0,-1)){if(!Object.prototype.hasOwnProperty.call(l,e))throw new hn("Segment ".concat(e," of path ").concat(a.path," not found in object"));l=l[e]}return l[i[i.length-1]]=r,await es(e,s,n)}throw a}}qi(ki,"nonEmpty",function(e){return this.test("non-empty",null!==e&&void 0!==e?e:e=>{let{path:t}=e;return"".concat(t," must not be empty")},e=>""!==e)}),qi(li,"hasNested",function(e){var t;if(!e.match(/^[a-zA-Z0-9_$:-]*$/))throw new hn("yupSchema.hasNested can currently only be used with alphanumeric keys, underscores, dollar signs, colons, and hyphens. Fix this in the future. Provided key: ".concat(JSON.stringify(e)));const n=null===(t=this.meta())||void 0===t?void 0:t.stackSchemaInfo;if("record"===(null===n||void 0===n?void 0:n.type))return n.keySchema.isValidSync(e);if("union"===(null===n||void 0===n?void 0:n.type))return n.items.some(t=>t.hasNested(e));try{return ai(this,e),!0}catch(oL){if(oL instanceof Error&&oL.message.includes("The schema does not contain the path"))return!1;throw oL}}),qi(li,"getNested",function(e){var t;if(!e.match(/^[a-zA-Z0-9_$:-]*$/))throw new hn("yupSchema.getNested can currently only be used with alphanumeric keys, underscores, dollar signs, colons, and hyphens. Fix this in the future. Provided key: ".concat(JSON.stringify(e)));if(!this.hasNested(e))throw new hn("Tried to call yupSchema.getNested, but key is not present in the schema. Provided key: ".concat(e),{path:e,schema:this});const n=null===(t=this.meta())||void 0===t?void 0:t.stackSchemaInfo;if("record"===(null===n||void 0===n?void 0:n.type))return n.valueSchema;if("union"===(null===n||void 0===n?void 0:n.type)){const t=n.items.filter(t=>t.hasNested(e));return vs(...t.map(t=>t.getNested(e)))}return ai(this,e)});var ts=e=>"The unique identifier of the ".concat(e),ns=e=>"Human-readable ".concat(e," display name. This is not a unique identifier."),as=e=>"URL of the profile image for ".concat(e,". Can be a Base64 encoded image. Must be smaller than 100KB. Please compress and crop to a square before passing in."),rs=e=>"Server metadata. Used as a data store, only accessible from the server side. You can store secret information related to the ".concat(e," here."),os=e=>"(the number of milliseconds since epoch, January 1, 1970, UTC)",is=e=>"The time the ".concat(e," was created ").concat("(the number of milliseconds since epoch, January 1, 1970, UTC)"),ss="The time the user signed up ".concat(os),ls="The time the user was last active ".concat(os);function cs(){return ki(...arguments).meta({stackSchemaInfo:{type:"string"}})}function us(){return Di(...arguments).meta({stackSchemaInfo:{type:"number"}})}function ds(){return hi(...arguments).meta({stackSchemaInfo:{type:"boolean"}})}function hs(){return ui(...arguments)}function ps(){return hs(...arguments).meta({stackSchemaInfo:{type:"mixed"}})}function fs(){return zi(...arguments).meta({stackSchemaInfo:{type:"array"}})}function ms(e){if(0===e.length)throw new Error("yupTuple must have at least one schema");return Ui(e).meta({stackSchemaInfo:{type:"tuple",items:e}})}function gs(){const e=function(){const e=Mi(...arguments).test("no-unknown-object-properties",e=>{let{path:t}=e;return"".concat(t," contains unknown properties")},(e,t)=>{var n;if(null!==(n=t.options.context)&&void 0!==n&&null!==(n=n.noUnknownPathPrefixes)&&void 0!==n&&n.some(e=>t.path.startsWith(e))&&!1!==t.schema.spec.noUnknown){const n=new Set(Object.keys(t.schema.fields)),a=Object.keys(null!==e&&void 0!==e?e:{}).filter(e=>!n.has(e));if(a.length>0)return t.createError({message:"".concat(t.path||"Object"," contains unknown properties: ").concat(a.join(", ")),path:t.path,params:{unknownKeys:a,availableKeys:n}})}return!0}).meta({stackSchemaInfo:{type:"object"}});return e}(...arguments);return e.default(void 0)}function vs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)throw new Error("yupUnion must have at least one schema");return hs().meta({stackSchemaInfo:{type:"union",items:t}}).test("is-one-of","Invalid value",async(e,n)=>{if(null==e)return!0;const a=[];for(const r of t)try{return await es(r,e,n.options),!0}catch(oL){a.push(oL)}return n.createError({message:Jt(Yi||(Yi=Ht(["\n        "," is not matched by any of the provided schemas:\n          ",""])),n.path,a.map((e,t)=>Jt(Gi||(Gi=Ht(["\n            Schema ",":\n              ","\n          "])),t,e.errors.join("\n"))).join("\n")),path:n.path})})}function ys(e,t){return gs().meta({stackSchemaInfo:{type:"record",keySchema:e,valueSchema:t}}).unknown(!0).test("record","${path} must be a record of valid values",async function(n,a){if(null==n)return!0;const{path:r,createError:o}=this;if("object"!==typeof n)return o({message:"".concat(r," must be an object")});for(const i of Object.keys(n)){await es(e,i,a.options);try{await es(t,n[i],p(p({},a.options),{},{context:p(p({},a.options.context),{},{path:r?"".concat(r,".").concat(i):i})}))}catch(oL){return o({path:r?"".concat(r,".").concat(i):i,message:oL.message})}}return!0})}ps();var ws=cs().test({name:"no-spaces",message:e=>"".concat(e.path," contains spaces"),test:e=>null==e||!e.includes(" ")}).test({name:"url",message:e=>"".concat(e.path," is not a valid URL"),test:e=>null==e||_d(e)}),_s=cs().test({name:"no-spaces",message:e=>"".concat(e.path," contains spaces"),test:e=>null==e||!e.includes(" ")}).test({name:"wildcard-url",message:e=>"".concat(e.path," is not a valid URL or wildcard URL pattern"),test:e=>{if(null==e)return!0;
2if(!e.includes("*"))return _d(e);try{const t="wildcard-placeholder",n=e.replace(/\*/g,t),a=new URL(n);if(a.username.includes(t)||a.password.includes(t)||a.pathname.includes(t)||a.search.includes(t)||a.hash.includes(t))return!1;if("http:"!==a.protocol&&"https:"!==a.protocol)return!1;return function(e){if(!e)return!1;if(!e.includes("*"))return function(e){if(!e||e.startsWith(".")||e.endsWith(".")||e.includes(".."))return!1;const t=wd("https://".concat(e));return!!t&&t.hostname===e}(e);if(e.startsWith(".")||e.endsWith("."))return!1;if(e.includes(".."))return!1;const t=e.replace(/\*+/g,"wildcard");if(!/^[a-zA-Z0-9.-]+$/.test(t))return!1;const n=e.split(/\*+/);for(let a=0;a<n.length;a++){const e=n[a];if(""!==e){if(0===a&&e.startsWith("."))return!1;if(a===n.length-1&&e.endsWith("."))return!1;if(e.includes(".."))return!1}}return!0}(a.hostname.split(t).join("*"))}catch(oL){return!1}}}),xs=(_s.test({name:"is-protocol-and-domain",message:e=>"".concat(e.path," must be a protocol and domain (with optional port) without any path, query parameters, or hash"),test:e=>{if(null==e)return!0;try{const t="wildcard-placeholder",n=e.replace(/\*/g,t),a=new URL(n);return""!==a.protocol&&""!==a.hostname&&"/"===a.pathname&&""===a.search&&""===a.hash}catch(oL){return!1}}}),ps().nullable().defined().transform(e=>JSON.parse(JSON.stringify(e)))),bs=(cs().test("json",e=>"".concat(e.path," is not valid JSON"),e=>{if(null==e)return!0;try{return JSON.parse(e),!0}catch(t){return!1}}),cs().test("json",e=>"".concat(e.path," is not valid JSON"),e=>{if(!e)return!0;try{return JSON.parse(e),!0}catch(t){return!1}}),cs().test("is-base64",e=>"".concat(e.path," is not valid base64"),e=>null==e||Sn(e))),ks=cs().max(70),Cs=ms([us().min(0).integer().defined(),cs().oneOf(["millisecond","second","minute","hour","day","week","month","year"]).defined()]),Ds=ms([us().min(0).integer().defined(),cs().oneOf(["day","week","month","year"]).defined()]),As=(vs(Cs.defined(),cs().oneOf(["never"]).defined()),vs(Ds.defined(),cs().oneOf(["never"]).defined())),Es=/^[a-zA-Z0-9_][a-zA-Z0-9_-]*$/;var js=e=>cs().max(63).matches(Es,function(e){return"".concat(e," must contain only letters, numbers, underscores, and hyphens, and not start with a hyphen")}(e)),Ss=e=>cs().test("money-amount","Invalid money amount",(t,n)=>{if(null==t)return!0;const a=t.match(/^([0-9]+)(\.([0-9]+))?$/);if(!a)return n.createError({message:"Money amount must be in the format of <number> or <number>.<number>"});const r=a[1],o=a[3];return o&&o.length>e.decimals?n.createError({message:"Too many decimals; ".concat(e.code," only has ").concat(e.decimals," decimals")}):"0"===r||!r.startsWith("0")||n.createError({message:"Money amount must not have leading zeros"})}),Ns=e=>cs().email(e).max(256).matches(/^[^.]+(\.[^.]+)*@.*\.[^.][^.]+$/,e),Ps=cs().email(),Ts=(cs().oneOf(["client","server","admin"]).defined(),cs().oneOf(["server","admin"]).defined(),cs().oneOf(["admin"]).defined(),cs().test(e=>void 0===e||"internal"===e||Xi(e)).meta({openapiField:{description:ts("project"),exampleValue:"e0b52f4d-dece-408c-af49-d23061bb0f8d"}}),cs().nonEmpty().max(255).meta({openapiField:{description:ts("project branch"),exampleValue:"main"}}),cs().meta({openapiField:{description:ns("project"),exampleValue:"MyMusic"}}),ws.max(Zi).meta({openapiField:{description:"URL of the logo for the project. This is usually a close to 1:1 image of the company logo.",exampleValue:"https://example.com/logo.png"}}),ws.max(Zi).meta({openapiField:{description:"URL of the full logo for the project. This is usually a vertical image with the logo and the company name.",exampleValue:"https://example.com/full-logo.png"}}),ws.max(Zi).meta({openapiField:{description:"URL of the dark mode logo for the project. This is usually a close to 1:1 image of the company logo optimized for dark backgrounds.",exampleValue:"https://example.com/logo-dark.png"}}),ws.max(Zi).meta({openapiField:{description:"URL of the dark mode full logo for the project. This is usually a vertical image with the logo and the company name optimized for dark backgrounds.",exampleValue:"https://example.com/full-logo-dark.png"}}),cs().nullable().meta({openapiField:{description:"A human readable description of the project",exampleValue:"A music streaming service"}}),us().meta({openapiField:{description:is("project"),exampleValue:163e10}}),ds().meta({openapiField:{description:"Whether the project is in production mode",exampleValue:!0}}),cs().meta({openapiField:{description:ts("project config"),exampleValue:"d09201f0-54f5-40bd-89ff-6d1815ddad24"}}),ds().meta({openapiField:{description:"Whether localhost is allowed as a domain for this project. Should only be allowed in development mode",exampleValue:!0}}),ds().meta({openapiField:{description:"Whether a team should be created for each user that signs up",exampleValue:!0}}),ds().meta({openapiField:{description:"Whether magic link authentication is enabled for this project",exampleValue:!0}}),ds().meta({openapiField:{description:"Whether passkey authentication is enabled for this project",exampleValue:!0}}),ds().meta({openapiField:{description:"Whether client users can create teams",exampleValue:!0}}),ds().meta({openapiField:{description:"Whether client users can delete their own account from the client",exampleValue:!0}}),ds().meta({openapiField:{description:"Whether users can sign up new accounts, or whether they are only allowed to sign in to existing accounts. Regardless of this option, the server API can always create new users with the `POST /users` endpoint.",exampleValue:!0}}),ds().meta({openapiField:{description:"Whether email password authentication is enabled for this project",exampleValue:!0}}),cs().oneOf(Ji).meta({openapiField:{description:"OAuth provider ID, one of ".concat(Ji.map(e=>"`".concat(e,"`")).join(", ")),exampleValue:"google"}}),ds().meta({openapiField:{description:"Whether the OAuth provider is enabled. If an provider is first enabled, then disabled, it will be shown in the list but with enabled=false",exampleValue:!0}}),cs().oneOf(["shared","standard"]).meta({openapiField:{description:'OAuth provider type, one of shared, standard. "shared" uses Stack shared OAuth keys and it is only meant for development. "standard" uses your own OAuth keys and will show your logo and company name when signing in with the provider.',exampleValue:"standard"}}),cs().meta({openapiField:{description:'OAuth client ID. Needs to be specified when using type="standard"',exampleValue:"google-oauth-client-id"}}),cs().meta({openapiField:{description:'OAuth client secret. Needs to be specified when using type="standard"',exampleValue:"google-oauth-client-secret"}}),cs().meta({openapiField:{description:"The configuration id for Facebook business login (for things like ads and marketing). This is only required if you are using the standard OAuth with Facebook and you are using Facebook business login."}}),cs().meta({openapiField:{description:"The Microsoft tenant id for Microsoft directory. This is only required if you are using the standard OAuth with Microsoft and you have an Azure AD tenant."}}),fs(cs().defined()).meta({openapiField:{description:"Apple Bundle IDs for native iOS/macOS apps. Required for native Sign In with Apple (in addition to web Apple OAuth which uses the Client ID/Services ID).",exampleValue:["com.example.ios","com.example.macos"]}}),cs().defined().meta({openapiField:{description:"Apple Bundle ID for native iOS/macOS apps.",exampleValue:"com.example.ios"}}),cs().oneOf(["link_method","raise_error","allow_duplicates"]).meta({openapiField:{description:"Determines how to handle OAuth logins that match an existing user by email. `link_method` adds the OAuth method to the existing user. `raise_error` rejects the login with an error. `allow_duplicates` creates a new user.",exampleValue:"link_method"}}),cs().oneOf(["shared","standard"]).meta({openapiField:{description:'Email provider type, one of shared, standard. "shared" uses Stack shared email provider and it is only meant for development. "standard" uses your own email server and will have your email address as the sender.',exampleValue:"standard"}}),cs().meta({openapiField:{description:'Email sender name. Needs to be specified when using type="standard"',exampleValue:"Stack"}}),cs().meta({openapiField:{description:'Email host. Needs to be specified when using type="standard"',exampleValue:"smtp.your-domain.com"}}),us().min(0).max(65535).meta({openapiField:{description:'Email port. Needs to be specified when using type="standard"',exampleValue:587}}),cs().meta({openapiField:{description:'Email username. Needs to be specified when using type="standard"',exampleValue:"smtp-email"}}),Ps.meta({openapiField:{description:'Email sender email. Needs to be specified when using type="standard"',exampleValue:"[email protected]"}}),ks.meta({openapiField:{description:'Email password. Needs to be specified when using type="standard"',exampleValue:"your-email-password"}}),cs().test("is-handler-path","Handler path must start with /",e=>null===e||void 0===e?void 0:e.startsWith("/")).meta({openapiField:{description:'Handler path. If you did not setup a custom handler path, it should be "/handler" by default. It needs to start with /',exampleValue:"/handler"}}),cs().meta({openapiField:{description:"Email theme id for the project. Determines the visual style of emails sent by the project."}}),ys(cs().uuid(),gs({displayName:cs().meta({openapiField:{description:"Email theme name",exampleValue:"Default Light"}}).defined(),tsxSource:cs().meta({openapiField:{description:"Email theme source code tsx component"}}).defined()})).meta({openapiField:{description:"Record of email theme IDs to their display name and source code"}}),ps().test(e=>void 0===e||!1===e||null===e||"string"===typeof e&&Xi(e)).meta({openapiField:{description:"Email theme id for the template"}}).optional()),Fs=(ys(cs().uuid(),gs({displayName:cs().meta({openapiField:{description:"Email template name",exampleValue:"Email Verification"}}).defined(),tsxSource:cs().meta({openapiField:{description:"Email template source code tsx component"}}).defined(),themeId:Ts})).meta({openapiField:{description:"Record of email template IDs to their display name and source code"}}),cs().oneOf(["user","team","custom"])),Os=(e,t)=>{if(!e)return!0;const n=Object.keys(e).filter(e=>Hi.some(t=>t.code===e));return 0!==n.length||t.createError({message:"At least one currency is required"})},Is=gs(p(p({},rn(Hi.map(e=>[e.code,Ss(e).optional()]))),{},{interval:Ds.optional(),serverOnly:ds(),freeTrial:Ds.optional()})).test("at-least-one-currency",(e,t)=>Os(e,t)),Rs=vs(cs().oneOf(["include-by-default"]).meta({openapiField:{description:"Makes this item free and includes it by default for all customers.",exampleValue:"include-by-default"}}),ys(js("priceId"),Is)),Ms=gs({displayName:cs(),productLineId:js("productLineId").optional().meta({openapiField:{description:"The ID of the product line this product belongs to. Within a product line, all products are mutually exclusive unless they are an add-on to another product in the product line.",exampleValue:"product-line-id"}}),isAddOnTo:vs(ds().isFalse(),ys(js("productId"),ds().isTrue().defined())).optional().meta({openapiField:{description:"The products that this product is an add-on to. If this is set, the customer must already have one of the products in the record to be able to purchase this product.",exampleValue:{"product-id":!0}}}),customerType:Fs.defined(),freeTrial:Ds.optional(),serverOnly:ds(),stackable:ds(),prices:Rs.defined(),includedItems:ys(js("itemId"),gs({quantity:us().defined(),repeat:As.optional(),expires:cs().oneOf(["never","when-purchase-expires","when-repeated"]).optional()}))}),Bs={featureFlag:!0,source:"marketing-campaign"},zs=xs.meta({openapiField:{description:"Client metadata. Used as a data store, accessible from the client side. Do not store information that should not be exposed to the client.",exampleValue:Bs}}),Ls=xs.meta({openapiField:{description:"Client read-only, server-writable metadata. Used as a data store, accessible from the client side. Do not store information that should not be exposed to the client. The client can read this data, but cannot modify it. This is useful for things like subscription status.",exampleValue:Bs}}),Us=xs.meta({openapiField:{description:rs("product"),exampleValue:Bs}}),Vs=(Ms.concat(gs({clientMetadata:zs.optional(),clientReadOnlyMetadata:Ls.optional(),serverMetadata:Us.optional()})),gs({display_name:cs().defined(),customer_type:Fs.defined(),free_trial:Ds.optional(),server_only:ds().default(!0),stackable:ds().default(!1),prices:ys(js("priceId"),gs(p(p({},rn(Hi.map(e=>[e.code,Ss(e).optional()]))),{},{interval:Ds.optional(),free_trial:Ds.optional()})).test("at-least-one-currency",(e,t)=>Os(e,t))),included_items:ys(js("itemId"),gs({quantity:us(),repeat:As.optional(),expires:cs().oneOf(["never","when-purchase-expires","when-repeated"]).optional()})),client_metadata:zs.optional(),client_read_only_metadata:Ls.optional(),server_metadata:Us.optional()}
2),class extends Error{constructor(e){super("This error should be caught by whoever validated the schema, and the field in the path '".concat(e,"' should be replaced with the current user's id. This is a workaround to yup not providing access to the context inside the transform function.")),this.path=e}}),qs="cad564fd-f81b-43f4-b390-98abf3fcc17e",Hs=cs().uuid().transform(e=>"me"===e?qs:e).test((e,t)=>{var n,a;if(!("stackAllowUserIdMe"in(null!==(n=t.options.context)&&void 0!==n?n:{})))throw new hn("userIdOrMeSchema is not allowed in this context. Make sure you're using yupValidate from schema-fields.ts to validate, instead of schema.validate(...).");if(null===(a=t.options.context)||void 0===a||!a.stackAllowUserIdMe)throw new hn("userIdOrMeSchema is not allowed in this context. Make sure you're passing in the currentUserId option in yupValidate.");if(e===qs)throw new Vs(t.path);return!0}).meta({openapiField:{description:"The ID of the user, or the special value `me` for the currently authenticated user",exampleValue:"3241a285-8329-4d69-8f3d-316e08cf140c"}}),Ws=cs().uuid().meta({openapiField:{description:ts("user"),exampleValue:"3241a285-8329-4d69-8f3d-316e08cf140c"}}),Ks=(Ps.meta({openapiField:{description:"Primary email",exampleValue:"[email protected]"}}),ds().meta({openapiField:{description:"Whether the primary email is used for authentication. If this is set to `false`, the user will not be able to sign in with the primary email with password or OTP",exampleValue:!0}}),ds().meta({openapiField:{description:"Whether the primary email has been verified to belong to this user",exampleValue:!0}}),cs().nullable().max(256).meta({openapiField:{description:ns("user"),exampleValue:"John Doe"}}),cs().uuid().meta({openapiField:{description:"ID of the team currently selected by the user",exampleValue:"team-id"}}),ws.max(Zi).meta({openapiField:{description:as("user"),exampleValue:"https://example.com/image.jpg"}}),us().meta({openapiField:{description:ss,exampleValue:163e10}}),xs.meta({openapiField:{description:"Client metadata. Used as a data store, accessible from the client side. Do not store information that should not be exposed to the client.",exampleValue:{key:"value"}}}),xs.meta({openapiField:{description:"Client read-only, server-writable metadata. Used as a data store, accessible from the client side. Do not store information that should not be exposed to the client. The client can read this data, but cannot modify it. This is useful for things like subscription status.",exampleValue:{key:"value"}}}),xs.meta({openapiField:{description:rs("user"),exampleValue:{key:"value"}}}),gs({id:cs().defined(),type:cs().oneOf(Ji).defined(),provider_user_id:cs().defined()}),us().nullable().meta({openapiField:{description:ls,exampleValue:163e10}}),ds().meta({openapiField:{hidden:!0,description:"Whether the user has passkeys enabled",exampleValue:!1}}),ds().meta({openapiField:{hidden:!0,description:"Whether the user has OTP/magic link enabled. ",exampleValue:!0}}),ds().meta({openapiField:{hidden:!0,description:"Whether the user has OTP/magic link enabled. Note that only accounts with verified emails can sign-in with OTP.",exampleValue:!0}}),ds().meta({openapiField:{hidden:!0,description:"Whether the user has a password set. If the user does not have a password set, they will not be able to sign in with email/password.",exampleValue:!0}}),ks.nullable().meta({openapiField:{description:"Sets the user's password. Doing so revokes all current sessions.",exampleValue:"my-new-password"}}).max(70),cs().nonEmpty().meta({openapiField:{description:"If `password` is not given, sets the user's password hash to the given string in Modular Crypt Format (ex.: `$2a$10$VIhIOofSMqGdGlL4wzE//e.77dAQGqNtF/1dT7bqCrVtQuInWy2qi`). Doing so revokes all current sessions."}}),bs.nullable().meta({openapiField:{description:"Enables 2FA and sets a TOTP secret for the user. Set to null to disable 2FA.",exampleValue:"dG90cC1zZWNyZXQ="}}),gs({type:cs().oneOf(["anonymous","email_not_verified","restricted_by_administrator"]).defined()})),Ys=gs({sub:cs().defined(),exp:us().optional(),iat:us().defined(),iss:cs().defined(),aud:cs().defined(),project_id:cs().defined(),branch_id:cs().defined(),refresh_token_id:cs().defined(),role:cs().oneOf(["authenticated"]).defined(),name:cs().defined().nullable(),email:cs().defined().nullable(),email_verified:ds().defined(),selected_team_id:cs().defined().nullable(),is_anonymous:ds().defined(),is_restricted:ds().defined(),restricted_reason:Ks.defined().nullable()}),Gs=(Ns(void 0).meta({openapiField:{description:"The email to sign in with.",exampleValue:"[email protected]"}}),ws.meta({openapiField:{description:"The base callback URL to construct the magic link from. A query parameter `code` with the verification code will be appended to it. The page should then make a request to the `/auth/otp/sign-in` endpoint.",exampleValue:"https://example.com/handler/magic-link-callback"}}),ws.meta({openapiField:{description:"The base callback URL to construct a verification link for the verification e-mail. A query parameter `code` with the verification code will be appended to it. The page should then make a request to the `/contact-channels/verify` endpoint.",exampleValue:"https://example.com/handler/email-verification"}}
2),cs().meta({openapiField:{description:"Short-lived access token that can be used to authenticate the user",exampleValue:"eyJhmMiJB2TO...diI4QT"}})),Js=(gs({refresh_token:cs().meta({openapiField:{description:"Long-lived refresh token that can be used to obtain a new access token",exampleValue:"i8ns3aq2...14y"}}).defined(),access_token:Gs.defined(),is_new_user:ds().meta({openapiField:{description:"Whether the user is a new user",exampleValue:!0}}).defined(),user_id:Ws.defined()}),["$update_team","$delete_team","$read_members","$remove_members","$invite_members","$manage_api_keys"]),$s=cs().matches(/^\$?[a-z0-9_:]+$/,'Only lowercase letters, numbers, ":", "_" and optional "$" at the beginning are allowed').test("is-system-permission","System permissions must start with a dollar sign",(e,t)=>!e||(!(e.startsWith("$")&&!Js.includes(e))||t.createError({message:"Invalid system permission"}))).meta({openapiField:{description:"The permission ID used to uniquely identify a permission. Can either be a custom permission with lowercase letters, numbers, `:`, and `_` characters, or one of the system permissions: ".concat(Js.map(e=>"`".concat(e,"`")).join(", ")),exampleValue:"read_secret_info"}}),Qs=(cs().matches(/^[a-z0-9_:]+$/,'Only lowercase letters, numbers, ":", "_" are allowed').meta({openapiField:{description:'The permission ID used to uniquely identify a permission. Can only contain lowercase letters, numbers, ":", and "_" characters',exampleValue:"read_secret_info"}}),cs().meta({openapiField:{description:"A human-readable description of the permission",exampleValue:"Read secret information"}}),fs($s.defined()).meta({openapiField:{description:"The IDs of the permissions that are contained in this permission",exampleValue:["read_public_info"]}}),cs().uuid().meta({openapiField:{description:ts("team"),exampleValue:"ad962777-8244-496a-b6a2-e0c6a449c79e"}}),cs().meta({openapiField:{description:ns("team"),exampleValue:"My Team"}}),ws.max(1e6).meta({openapiField:{description:as("team"),exampleValue:"https://example.com/image.jpg"}}),xs.meta({openapiField:{description:"Client metadata. Used as a data store, accessible from the client side. Do not store information that should not be exposed to the client.",exampleValue:{key:"value"}}}),xs.meta({openapiField:{description:"Client read-only, server-writable metadata. Used as a data store, accessible from the client side. Do not store information that should not be exposed to the client. The client can read this data, but cannot modify it. This is useful for things like subscription status.",exampleValue:{key:"value"}}}),xs.meta({openapiField:{description:rs("team"),exampleValue:{key:"value"}}}),us().meta({openapiField:{description:is("team"),exampleValue:163e10}}),Ps.meta({openapiField:{description:"The email of the user to invite.",exampleValue:"[email protected]"}}),ws.meta({openapiField:{description:"The base callback URL to construct an invite link with. A query parameter `code` with the verification code will be appended to it. The page should then make a request to the `/team-invitations/accept` endpoint.",exampleValue:"https://example.com/handler/team-invitation"}}),Hs.meta({openapiField:{description:'The ID of the creator of the team. If not specified, the user will not be added to the team. Can be either "me" or the ID of the user. Only used on the client side.',exampleValue:"me"}}),cs().meta({openapiField:{description:ns("team member")+" Note that this is separate from the display_name of the user.",exampleValue:"John Doe"}}),ws.max(1e6).meta({openapiField:{description:as("team member"),exampleValue:"https://example.com/image.jpg"}}),cs().uuid().meta({openapiField:{description:ts("contact channel"),exampleValue:"b3d396b8-c574-4c80-97b3-50031675ceb2"}}),cs().oneOf(["email"]).meta({openapiField:{description:'The type of the contact channel. Currently only "email" is supported.',exampleValue:"email"}}),cs().when("type",{is:"email",then:e=>e.email()}).meta({openapiField:{description:"The value of the contact channel. For email, this should be a valid email address.",exampleValue:"[email protected]"}}),ds().meta({openapiField:{description:"Whether the contact channel is used for authentication. If this is set to `true`, the user will be able to sign in with the contact channel with password or OTP.",exampleValue:!0}}),ds().meta({openapiField:{description:"Whether the contact channel has been verified. If this is set to `true`, the contact channel has been verified to belong to the user.",exampleValue:!0}}),ds().meta({openapiField:{description:"Whether the contact channel is the primary contact channel. If this is set to `true`, it will be used for authentication and notifications by default.",exampleValue:!0}}),cs().uuid().meta({openapiField:{description:ts("OAuth provider"),exampleValue:"b3d396b8-c574-4c80-97b3-50031675ceb2"}}),Ps.meta({openapiField:{description:"Email of the OAuth provider. This is used to display and identify the OAuth provider in the UI.",exampleValue:"[email protected]"}}),cs().oneOf(Ji).meta({openapiField:{description:"OAuth provider type, one of ".concat(Ji.map(e=>"`".concat(e,"`")).join(", ")),exampleValue:"google"}}),ds().meta({openapiField:{description:"Whether the user can use this OAuth provider to sign in. Only one OAuth provider per type can have this set to `true`.",exampleValue:!0}}),ds().meta({openapiField:{description:"Whether the user can use this OAuth provider as connected account. Multiple OAuth providers per type can have this set to `true`.",exampleValue:!0}}),cs().meta({openapiField:{description:"Account ID of the OAuth provider. This uniquely identifies the account on the provider side.",exampleValue:"google-account-id-12345"}}),cs().meta({openapiField:{description:"Provider config ID of the OAuth provider. This uniquely identifies the provider config on config.json file",exampleValue:"google"}}),cs().test("is-basic-authorization-header",'Authorization header must be in the format "Basic <base64>"',e=>!e||null!==Ki(e)));Qs.test("is-authorization-header","Invalid client_id:client_secret values; did you use the correct values for the integration?",e=>{var t;if(!e)return!0;const[n,a]=null!==(t=Ki(e))&&void 0!==t?t:cn("Authz header invalid? This should've been validated by basicAuthorizationHeaderSchema: ".concat(e));for(const r of JSON.parse({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:"443",FAST_REFRESH:!0,REACT_APP_BACKEND_URL:"https://view-draft-1.emergent.host",REACT_APP_STACK_PROJECT_ID:"3a872e07-920f-4f9c-8671-e7fb80c5cf46"}.STACK_INTEGRATION_CLIENTS_CONFIG||"[]"))if(n===r.client_id&&a===r.client_secret)return!0;return!1});vs(gs({type:cs().oneOf(["pushed-from-github"]).defined(),owner:cs().defined(),repo:cs().defined(),branch:cs().defined(),commit_hash:cs().defined(),config_file_path:cs().defined()}),gs({type:cs().oneOf(["pushed-from-unknown"]).defined()}),gs({type:cs().oneOf(["unlinked"]).defined()}));new Error("timeout while waiting for mutex to become available"),new Error("mutex already locked");const Xs=new Error("request for lock canceled");
2var Zs=function(e,t,n,a){return new(n||(n=Promise))(function(r,o){function i(e){try{l(a.next(e))}catch(oL){o(oL)}}function s(e){try{l(a.throw(e))}catch(oL){o(oL)}}function l(e){e.done?r(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(i,s)}l((a=a.apply(e,t||[])).next())})};class el{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xs;this._value=e,this._cancelError=t,this._queue=[],this._weightedWaiters=[]}acquire(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e<=0)throw new Error("invalid weight ".concat(e,": must be positive"));return new Promise((n,a)=>{const r={resolve:n,reject:a,weight:e,priority:t},o=tl(this._queue,e=>t<=e.priority);-1===o&&e<=this._value?this._dispatchItem(r):this._queue.splice(o+1,0,r)})}runExclusive(e){return Zs(this,arguments,void 0,function(e){var t=this;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return function*(){const[r,o]=yield t.acquire(n,a);try{return yield e(r)}finally{o()}}()})}waitForUnlock(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e<=0)throw new Error("invalid weight ".concat(e,": must be positive"));return this._couldLockImmediately(e,t)?Promise.resolve():new Promise(n=>{this._weightedWaiters[e-1]||(this._weightedWaiters[e-1]=[]),function(e,t){const n=tl(e,e=>t.priority<=e.priority);e.splice(n+1,0,t)}(this._weightedWaiters[e-1],{resolve:n,priority:t})})}isLocked(){return this._value<=0}getValue(){return this._value}setValue(e){this._value=e,this._dispatchQueue()}release(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(e<=0)throw new Error("invalid weight ".concat(e,": must be positive"));this._value+=e,this._dispatchQueue()}cancel(){this._queue.forEach(e=>e.reject(this._cancelError)),this._queue=[]}_dispatchQueue(){for(this._drainUnlockWaiters();this._queue.length>0&&this._queue[0].weight<=this._value;)this._dispatchItem(this._queue.shift()),this._drainUnlockWaiters()}_dispatchItem(e){const t=this._value;this._value-=e.weight,e.resolve([t,this._newReleaser(e.weight)])}_newReleaser(e){let t=!1;return()=>{t||(t=!0,this.release(e))}}_drainUnlockWaiters(){if(0===this._queue.length)for(let e=this._value;e>0;e--){const t=this._weightedWaiters[e-1];t&&(t.forEach(e=>e.resolve()),this._weightedWaiters[e-1]=[])}else{const e=this._queue[0].priority;for(let t=this._value;t>0;t--){const n=this._weightedWaiters[t-1];if(!n)continue;const a=n.findIndex(t=>t.priority<=e);(-1===a?n:n.splice(0,a)).forEach(e=>e.resolve())}}}_couldLockImmediately(e,t){return(0===this._queue.length||this._queue[0].priority<t)&&e<=this._value}}function tl(e,t){for(let n=e.length-1;n>=0;n--)if(t(e[n]))return n;return-1}var nl=class{constructor(e){this._value=e,this._callbacks=new Map}get(){return this._value}set(e){const t=this._value;this._value=e,this._callbacks.forEach(n=>n(e,t))}update(e){const t=e(this._value);return this.set(t),t}onChange(e){const t=Qi();return this._callbacks.set(t,e),{unsubscribe:()=>{this._callbacks.delete(t)}}}onceChange(e){const{unsubscribe:t}=this.onChange(function(){t(),e(...arguments)});return{unsubscribe:t}}},al=new class{constructor(){this.semaphore=new el(1),this.readers=0,this.readersMutex=new el(1)}async withReadLock(e){await this._acquireReadLock();try{return await e()}finally{await this._releaseReadLock()}}async withWriteLock(e){await this._acquireWriteLock();try{return await e()}finally{await this._releaseWriteLock()}}async _acquireReadLock(){await this.readersMutex.acquire();try{this.readers+=1,1===this.readers&&await this.semaphore.acquire()}finally{this.readersMutex.release()}}async _releaseReadLock(){await this.readersMutex.acquire();try{this.readers-=1,0===this.readers&&this.semaphore.release()}finally{this.readersMutex.release()}}async _acquireWriteLock(){await this.semaphore.acquire()}async _releaseWriteLock(){this.semaphore.release()}},rl=class e{constructor(){this._mostRecentOkValue=void 0,this._isRejected=!1,this._waitingRejectFunctions=new Map,this._callbacks=new Map,this._updateCounter=0,this._lastSuccessfulUpdate=-1,0===arguments.length?this._isAvailable=!1:(this._isAvailable=!0,this._mostRecentOkValue=arguments.length<=0?void 0:arguments[0])}isAvailable(){return this._isAvailable}isRejected(){return this._isRejected}get(){return this.isRejected()?cd.error(this._rejectionError):this.isAvailable()?cd.ok(this._mostRecentOkValue):cd.pending()}getOrWait(){const e=Qi();if(this.isRejected())return function(e){if(null!==Xu&&void 0!==Xu||(Xu=new Ju),Xu.has([e]))return Xu.get([e]);const t=Promise.reject(e);!function(e){e.catch(()=>{})}(t);const n=Object.assign(t,{status:"rejected",reason:e});return Xu.set([e],n),n}(this._rejectionError);if(this.isAvailable())return Qu(this._mostRecentOkValue);const t=new Promise((t,n)=>{this.onceChange(e=>{t(e)}),this._waitingRejectFunctions.set(e,n)});return td(t.finally(()=>{this._waitingRejectFunctions.delete(e)}))}_setIfLatest(e,t){const n=this.get(),a=this._mostRecentOkValue;if(t>this._lastSuccessfulUpdate)switch(e.status){case"ok":return!(this._isAvailable&&!this._isRejected&&this._mostRecentOkValue===e.data)&&(this._lastSuccessfulUpdate=t,this._isAvailable=!0,this._isRejected=!1,this._mostRecentOkValue=e.data,this._rejectionError=void 0,this._callbacks.forEach(e
2=>e({state:this.get(),oldState:n,lastOkValue:a})),!0);case"error":return this._lastSuccessfulUpdate=t,this._isAvailable=!1,this._isRejected=!0,this._rejectionError=e.error,this._waitingRejectFunctions.forEach(t=>t(e.error)),this._callbacks.forEach(e=>e({state:this.get(),oldState:n,lastOkValue:a})),!0}return!1}set(e){this._setIfLatest(ld.ok(e),++this._updateCounter)}update(e){const t=e(this._mostRecentOkValue);return this.set(t),t}async setAsync(e){return await al.withReadLock(async()=>{const t=++this._updateCounter,n=await ld.fromPromise(e);return this._setIfLatest(n,t)})}setUnavailable(){this._lastSuccessfulUpdate=++this._updateCounter,this._mostRecentOkValue=void 0,this._isAvailable=!1,this._isRejected=!1,this._rejectionError=void 0}setRejected(e){this._setIfLatest(ld.error(e),++this._updateCounter)}map(t){const n=new e;return this.onChange(e=>{n.set(t(e))}),n}onChange(e){return this.onStateChange(t=>{let{state:n,lastOkValue:a}=t;"ok"===n.status&&e(n.data,a)})}onStateChange(e){const t=Qi();return this._callbacks.set(t,e),{unsubscribe:()=>{this._callbacks.delete(t)}}}onceChange(e){const{unsubscribe:t}=this.onChange(function(){t(),e(...arguments)});return{unsubscribe:t}}onceStateChange(e){const{unsubscribe:t}=this.onStateChange(function(){t(),e(...arguments)});return{unsubscribe:t}}};function ol(e){try{const t=function(e){if("string"!==typeof e)throw new wo("JWTs must use Compact JWS serialization, JWT must be a string");const{1:t,length:n}=e.split(".");if(5===n)throw new wo("Only JWTs using Compact JWS serialization can be decoded");if(3!==n)throw new wo("Invalid JWT");if(!t)throw new wo("JWTs must contain a payload");let a,r;try{a=go(t)}catch(o){throw new wo("Failed to base64url decode the payload")}try{r=JSON.parse(mo.decode(a))}catch(i){throw new wo("Failed to parse the decoded payload as JSON")}if(!vo(r))throw new wo("Invalid JWT Claims Set");return r}(e);return Ys.validateSync(t)}catch(oL){return null}}var il=class e{constructor(e){if(this.token=e,"undefined"===e)throw new hn("Access token is the string 'undefined'; it's unlikely this is the correct value. They're supposed to be unguessable!")}static createIfValid(t){return ol(t)?new e(t):null}get payload(){var e;return null!==(e=ol(this.token))&&void 0!==e?e:cn("Invalid access token in payload (should've been validated in createIfValid)",{token:this.token})}get expiresAt(){const{exp:e}=this.payload;return void 0===e?new Date(864e13):new Date(1e3*e)}get issuedAt(){const{iat:e}=this.payload;return new Date(1e3*e)}get expiresInMillis(){return Math.max(0,this.expiresAt.getTime()-Date.now())}get issuedMillisAgo(){return Math.max(0,Date.now()-this.issuedAt.getTime())}isExpired(){return this.expiresInMillis<=0}},sl=class{constructor(e){if(this.token=e,"undefined"===e)throw new hn("Refresh token is the string 'undefined'; it's unlikely this is the correct value. They're supposed to be unguessable!")}},ll=class e{constructor(t){var n;this._options=t,this._knownToBeInvalid=new nl(!1),this._refreshPromise=null,this._accessToken=new nl(t.accessToken?il.createIfValid(t.accessToken):null),this._refreshToken=t.refreshToken?new sl(t.refreshToken):null,null===t.accessToken&&null===t.refreshToken&&this._knownToBeInvalid.set(!0),this.sessionKey=e.calculateSessionKey({accessToken:null!==(n=t.accessToken)&&void 0!==n?n:null,refreshToken:t.refreshToken})}static calculateSessionKey(e){return e.refreshToken?"refresh-".concat(e.refreshToken):e.accessToken?"access-".concat(e.accessToken):"not-logged-in"}isKnownToBeInvalid(){return this._knownToBeInvalid.get()}markInvalid(){this._accessToken.set(null),this._knownToBeInvalid.set(!0)}onInvalidate(e){return this._knownToBeInvalid.onChange(()=>e())}getRefreshToken(){return this.isKnownToBeInvalid()?null:this._refreshToken}getAccessTokenIfNotExpiredYet(e,t){if(e>45e3)throw new Error("Required access token expiry ".concat(e,"ms is too long; access tokens are too short to be used for more than 45s"));if(null!==t&&t<15e3)throw new Error("Required access token issuance ".concat(t,"ms is too short; assume that access token generation can take at least 15s"));
2const n=this._getPotentiallyInvalidAccessTokenIfAvailable();return!n||n.expiresInMillis<e||null!==t&&n.issuedMillisAgo>t?null:n}async getOrFetchLikelyValidTokens(e,t){if(this.isKnownToBeInvalid())return null;const n=this.getAccessTokenIfNotExpiredYet(e,t);if(!n){const n=await this.fetchNewTokens(),a=null===n||void 0===n?void 0:n.accessToken.expiresInMillis,r=null===n||void 0===n?void 0:n.accessToken.issuedMillisAgo;if(void 0!==a&&a<e)throw new hn("Required access token expiry ".concat(e,"ms is too long; access tokens are too short when they're generated (").concat(a,"ms)"));if(null!==t&&void 0!==r&&r>t)throw new hn("Required access token issuance ".concat(t,"ms is too short; access token issuance is too slow (").concat(r,"ms)"));return n}return{accessToken:n,refreshToken:this.getRefreshToken()}}async fetchNewTokens(){const e=await this._getNewlyFetchedAccessToken();return e?{accessToken:e,refreshToken:this._refreshToken}:null}markAccessTokenExpired(e){var t;e&&(null===(t=this._accessToken.get())||void 0===t?void 0:t.token)!==e.token||this._accessToken.set(null)}suggestAccessTokenExpired(){this._refreshToken&&this.markAccessTokenExpired()}startRefreshingAccessToken(e,t){let n=!1;return rd(async()=>{for(;!n;){const n=await this.getOrFetchLikelyValidTokens(e,t);if(!n)return;const a=Math.min(n.accessToken.expiresInMillis-e,(null!==t&&void 0!==t?t:1/0)-n.accessToken.issuedMillisAgo);await nd(Math.max(1,a))}}),{unsubscribe:()=>{n=!0}}}onAccessTokenChange(e){return this._accessToken.onChange(e)}_getPotentiallyInvalidAccessTokenIfAvailable(){if(!this._refreshToken)return null;if(this.isKnownToBeInvalid())return null;const e=this._accessToken.get();return e&&!e.isExpired()?e:null}async _getNewlyFetchedAccessToken(){return this._refreshToken?this._knownToBeInvalid.get()?null:(this._refreshPromise||this._refreshAndSetRefreshPromise(this._refreshToken),await this._refreshPromise):null}_refreshAndSetRefreshPromise(e){let t=this._options.refreshAccessTokenCallback(e).then(e=>(t===this._refreshPromise&&(this._refreshPromise=null,this._accessToken.set(e),e||this.markInvalid()),e));this._refreshPromise=t}};var cl,ul;let dl;if("undefined"===typeof navigator||null===(cl=navigator.userAgent)||void 0===cl||null===(ul=cl.startsWith)||void 0===ul||!ul.call(cl,"Mozilla/5.0 ")){const e="v3.8.5";dl="".concat("oauth4webapi","/").concat(e)}function hl(e,t){if(null==e)return!1;try{return e instanceof t||Object.getPrototypeOf(e)[Symbol.toStringTag]===t.prototype[Symbol.toStringTag]}catch(n){return!1}}const pl="ERR_INVALID_ARG_VALUE",fl="ERR_INVALID_ARG_TYPE";function ml(e,t,n){const a=new TypeError(e,{cause:n});return Object.assign(a,{code:t}),a}const gl=Symbol(),vl=Symbol(),yl=Symbol(),wl=Symbol(),_l=(Symbol(),Symbol()),xl=(Symbol(),new TextEncoder),bl=new TextDecoder;function kl(e){return"string"===typeof e?xl.encode(e):bl.decode(e)}let Cl,Dl;if(Uint8Array.prototype.toBase64)Cl=e=>(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),e.toBase64({alphabet:"base64url",omitPadding:!0}));else{const e=32768;Cl=t=>{t instanceof ArrayBuffer&&(t=new Uint8Array(t));const n=[];for(let a=0;a<t.byteLength;a+=e)n.push(String.fromCharCode.apply(null,t.subarray(a,a+e)));return btoa(n.join("")).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}}function Al(e){return"string"===typeof e?Dl(e):Cl(e)}Dl=Uint8Array.fromBase64?e=>{try{return Uint8Array.fromBase64(e,{alphabet:"base64url"})}catch(t){throw ml("The input to be decoded is not correctly encoded.",pl,t)}}:e=>{try{const t=atob(e.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"")),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}catch(t){throw ml("The input to be decoded is not correctly encoded.",pl,t)}};class El extends Error{constructor(e,t){var n;super(e,t),d(this,"code",void 0),this.name=this.constructor.name,this.code=Dc,null===(n=Error.captureStackTrace)||void 0===n||n.call(Error,this,this.constructor)}}class jl extends Error{constructor(e,t){var n;super(e,t),d(this,"code",void 0),this.name=this.constructor.name,null!==t&&void 0!==t&&t.code&&(this.code=null===t||void 0===t?void 0:t.code),null===(n=Error.captureStackTrace)||void 0===n||n.call(Error,this,this.constructor)}}function Sl(e,t,n){return new jl(e,{code:t,cause:n})}function Nl(e){return null!==e&&"object"===typeof e&&!Array.isArray(e)}function Pl(e){hl(e,Headers)&&(e=Object.fromEntries(e.entries()));const t=new Headers(null!==e&&void 0!==e?e:{});if(dl&&!t.has("user-agent")&&t.set("user-agent",dl),t.has("authorization"))throw ml('"options.headers" must not include the "authorization" header name',pl);return t}function Tl(e,t){if(void 0!==t){if("function"===typeof t&&(t=t(e.href)),!(t instanceof AbortSignal))throw ml('"options.signal" must return or be an instance of AbortSignal',fl);return t}}function Fl(e,t,n,a,r){try{if("number"!==typeof e||!Number.isFinite(e))throw ml("".concat(n," must be a number"),fl,r);
vendor: 9,735 bytes, line 2
2if(e>0)return;if(t){if(0!==e)throw ml("".concat(n," must be a non-negative number"),pl,r);return}throw ml("".concat(n," must be a positive number"),pl,r)}catch(o){if(a)throw Sl(o.message,a,r);throw o}}function Ol(e,t,n,a){try{if("string"!==typeof e)throw ml("".concat(t," must be a string"),fl,a);if(0===e.length)throw ml("".concat(t," must not be empty"),pl,a)}catch(r){if(n)throw Sl(r.message,n,a);throw r}}function Il(e){!function(e,t){if(ic(e)!==t)throw Rl(e,t)}(e,"application/json")}function Rl(e){let t='"response" content-type must be ';for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r<n;r++)a[r-1]=arguments[r];if(a.length>2){const e=a.pop();t+="".concat(a.join(", "),", or ").concat(e)}else 2===a.length?t+="".concat(a[0]," or ").concat(a[1]):t+=a[0];return Sl(t,Sc,e)}function Ml(){return Al(crypto.getRandomValues(new Uint8Array(32)))}function Bl(e){const t=null===e||void 0===e?void 0:e[vl];return"number"===typeof t&&Number.isFinite(t)?t:0}function zl(e){const t=null===e||void 0===e?void 0:e[yl];return"number"===typeof t&&Number.isFinite(t)&&-1!==Math.sign(t)?t:30}function Ll(){return Math.floor(Date.now()/1e3)}function Ul(e){if("object"!==typeof e||null===e)throw ml('"as" must be an object',fl);Ol(e.issuer,'"as.issuer"')}function Vl(e){if("object"!==typeof e||null===e)throw ml('"client" must be an object',fl);Ol(e.client_id,'"client.client_id"')}function ql(e){return Ol(e,'"clientSecret"'),(t,n,a,r)=>{a.set("client_id",n.client_id),a.set("client_secret",e)}}const Hl=URL.parse?(e,t)=>URL.parse(e,t):(e,t)=>{try{return new URL(e,t)}catch(n){return null}};function Wl(e,t){if(t&&"https:"!==e.protocol)throw Sl("only requests to HTTPS are allowed",Pc,e);if("https:"!==e.protocol&&"http:"!==e.protocol)throw Sl("only HTTP and HTTPS requests are allowed",Tc,e)}function Kl(e,t,n,a){let r;if("string"!==typeof e||!(r=Hl(e)))throw Sl("authorization server metadata does not contain a valid ".concat(n?'"as.mtls_endpoint_aliases.'.concat(t,'"'):'"as.'.concat(t,'"')),void 0===e?Ic:Rc,{attribute:n?"mtls_endpoint_aliases.".concat(t):t});return Wl(r,a),r}function Yl(e,t,n,a){return n&&e.mtls_endpoint_aliases&&t in e.mtls_endpoint_aliases?Kl(e.mtls_endpoint_aliases[t],t,n,a):Kl(e[t],t,n,a)}class Gl extends Error{constructor(e,t){var n;super(e,t),d(this,"cause",void 0),d(this,"code",void 0),d(this,"error",void 0),d(this,"status",void 0),d(this,"error_description",void 0),d(this,"response",void 0),this.name=this.constructor.name,this.code=Cc,this.cause=t.cause,this.error=t.cause.error,this.status=t.response.status,this.error_description=t.cause.error_description,Object.defineProperty(this,"response",{enumerable:!1,value:t.response}),null===(n=Error.captureStackTrace)||void 0===n||n.call(Error,this,this.constructor)}}class Jl extends Error{constructor(e,t){var n,a;super(e,t),d(this,"cause",void 0),d(this,"code",void 0),d(this,"error",void 0),d(this,"error_description",void 0),this.name=this.constructor.name,this.code=Ac,this.cause=t.cause,this.error=t.cause.get("error"),this.error_description=null!==(n=t.cause.get("error_description"))&&void 0!==n?n:void 0,null===(a=Error.captureStackTrace)||void 0===a||a.call(Error,this,this.constructor)}}class $l extends Error{constructor(e,t){var n;super(e,t),d(this,"cause",void 0),d(this,"code",void 0),d(this,"response",void 0),d(this,"status",void 0),this.name=this.constructor.name,this.code=kc,this.cause=t.cause,this.status=t.response.status,this.response=t.response,Object.defineProperty(this,"response",{enumerable:!1}),null===(n=Error.captureStackTrace)||void 0===n||n.call(Error,this,this.constructor)}}const Ql="[a-zA-Z0-9!#$%&\\'\\*\\+\\-\\.\\^_`\\|~]+",Xl="("+Ql+')\\s*=\\s*"((?:[^"\\\\]|\\\\[\\s\\S])*)"',Zl="("+Ql+")\\s*=\\s*("+Ql+")",ec=new RegExp("^[,\\s]*("+Ql+")"),tc=new RegExp("^[,\\s]*"+Xl+"[,\\s]*(.*)"),nc=new RegExp("^[,\\s]*"+Zl+"[,\\s]*(.*)"),ac=new RegExp("^([a-zA-Z0-9\\-\\._\\~\\+\\/]+={0,2})(?:$|[,\\s])(.*)");async function rc(e,t,n){if(e.status!==t){let t;var a;if(pc(e),t=await async function(e){if(e.status>399&&e.status<500){Mc(e),Il(e);try{const t=await e.clone().json();if(Nl(t)&&"string"===typeof t.error&&t.error.length)return t}catch(t){}}}(e))throw await(null===(a=e.body)||void 0===a?void 0:a.cancel()),new Gl("server responded with an error in the response body",{cause:t,response:e});throw Sl('"response" is not a conform '.concat(n," response (unexpected HTTP status code)"),Nc,e)}}function oc(e){if(!gc.has(e))throw ml('"options.DPoP" is not a valid DPoPHandle',pl)}Symbol();function ic(e){var t;return null===(t=e.headers.get("content-type"))||void 0===t?void 0:t.split(";")[0]}async function sc(e,t,n,a,r,o,i){return await n(e,t,r,o),o.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),((null===i||void 0===i?void 0:i[wl])||fetch)(a.href,{body:r,headers:Object.fromEntries(o.entries()),method:"POST",redirect:"manual",signal:Tl(a,null===i||void 0===i?void 0:i.signal)})}async function lc(e,t,n,a,r,o){var i;const s=Yl(e,"token_endpoint",t.use_mtls_endpoint_aliases,!0!==(null===o||void 0===o?void 0:o[gl]));r.set("grant_type",a);const l=Pl(null===o||void 0===o?void 0:o.headers);l.set("accept","application/json"),void 0!==(null===o||void 0===o?void 0:o.DPoP)&&(oc(o.DPoP),await o.DPoP.addProof(s,l,"POST"));const c=await sc(e,t,n,s,r,l,o);return null===o||void 0===o||null===(i=o.DPoP)||void 0===i||i.cacheNonce(c,s),c}const cc=new WeakMap,uc=new WeakMap;function dc(e){if(!e.id_token)return;const t=cc.get(e);if(!t)throw ml('"ref" was already garbage collected or did not resolve from the proper sources',pl);return t}async function hc(e,t,n,a,r,o){if(Ul(e),Vl(t),!hl(n,Response))throw ml('"response" must be an instance of Response',fl);await rc(n,200,"Token Endpoint"),Mc(n);const i=await Hc(n);if(Ol(i.access_token,'"response" body "access_token" property',jc,{body:i}),Ol(i.token_type,'"response" body "token_type" property',jc,{body:i}),i.token_type=i.token_type.toLowerCase(),void 0!==i.expires_in){let e="number"!==typeof i.expires_in?parseFloat(i.expires_in):i.expires_in;Fl(e,!0,'"response" body "expires_in" property',jc,{body:i}),i.expires_in=e}if(void 0!==i.refresh_token&&Ol(i.refresh_token,'"response" body "refresh_token" property',jc,{body:i}),void 0!==i.scope&&"string"!==typeof i.scope)throw Sl('"response" body "scope" property must be a string',jc,{body:i});if(void 0!==i.id_token){Ol(i.id_token,'"response" body "id_token" property',jc,{body:i});const o=["aud","exp","iat","iss","sub"];!0===t.require_auth_time&&o.push("auth_time"),void 0!==t.default_max_age&&(Fl(t.default_max_age,!0,'"client.default_max_age"'),o.push("auth_time")),null!==a&&void 0!==a&&a.length&&o.push(...a);const{claims:s,jwt:l}=await Bc(i.id_token,zc.bind(void 0,t.id_token_signed_response_alg,e.id_token_signing_alg_values_supported,"RS256"),Bl(t),zl(t),r).then(wc.bind(void 0,o)).then(mc.bind(void 0,e)).then(fc.bind(void 0,t.client_id));if(Array.isArray(s.aud)&&1!==s.aud.length){if(void 0===s.azp)throw Sl('ID Token "aud" (audience) claim includes additional untrusted audiences',Oc,{claims:s,claim:"aud"});if(s.azp!==t.client_id)throw Sl('unexpected ID Token "azp" (authorized party) claim value',Oc,{expected:t.client_id,claims:s,claim:"azp"})}void 0!==s.auth_time&&Fl(s.auth_time,!0,'ID Token "auth_time" (authentication time)',jc,{claims:s}),uc.set(n,l),cc.set(i,s)}if(void 0!==(null===o||void 0===o?void 0:o[i.token_type]))o[i.token_type](n,i);else if("dpop"!==i.token_type&&"bearer"!==i.token_type)throw new El("unsupported `token_type` value",{cause:{body:i}});return i}function pc(e){let t;if(t=function(e){if(!hl(e,Response))throw ml('"response" must be an instance of Response',fl);const t=e.headers.get("www-authenticate");if(null===t)return;const n=[];let a=t;for(;a;){var r;let e=a.match(ec);const t=null===(r=e)||void 0===r?void 0:r[1].toLowerCase();if(!t)return;const i=a.substring(e[0].length);if(i&&!i.match(/^[\s,]/))return;const s=i.match(/^\s+(.*)$/),l=!!s;a=s?s[1]:void 0;const c={};let u;if(l)for(;a;){let t,n;if(e=a.match(tc)){if([,t,n,a]=e,n.includes("\\"))try{n=JSON.parse('"'.concat(n,'"'))}catch(o){}c[t.toLowerCase()]=n}else{if(!(e=a.match(nc))){if(e=a.match(ac)){if(Object.keys(c).length)break;[,u,a]=e;break}return}[,t,n,a]=e,c[t.toLowerCase()]=n}}else a=i||void 0;const d={scheme:t,parameters:c};u&&(d.token68=u),n.push(d)}return n.length?n:void 0}(e))throw new $l("server responded with a challenge in the WWW-Authenticate HTTP Header",{cause:t,response:e})}function fc(e,t){if(Array.isArray(t.claims.aud)){if(!t.claims.aud.includes(e))throw Sl('unexpected JWT "aud" (audience) claim value',Oc,{expected:e,claims:t.claims,claim:"aud"})}else if(t.claims.aud!==e)throw Sl('unexpected JWT "aud" (audience) claim value',Oc,{expected:e,claims:t.claims,claim:"aud"});return t}function mc(e,t){var n,a;const r=null!==(n=null===(a=e[Wc])||void 0===a?void 0:a.call(e,t))&&void 0!==n?n:e.issuer;if(t.claims.iss!==r)throw Sl('unexpected JWT "iss" (issuer) claim value',Oc,{expected:r,claims:t.claims,claim:"iss"});return t}const gc=new WeakSet;const vc=Symbol();const yc={aud:"audience",c_hash:"code hash",client_id:"client id",exp:"expiration time",iat:"issued at",iss:"issuer",jti:"jwt id",nonce:"nonce",s_hash:"state hash",sub:"subject",ath:"access token hash",htm:"http method",htu:"http uri",cnf:"confirmation",auth_time:"authentication time"};function wc(e,t){for(const n of e)if(void 0===t.claims[n])throw Sl('JWT "'.concat(n,'" (').concat(yc[n],") claim missing"),jc,{claims:t.claims});return t}const _c=Symbol(),xc=Symbol();async function bc(e,t,n,a){return"string"===typeof(null===a||void 0===a?void 0:a.expectedNonce)||"number"===typeof(null===a||void 0===a?void 0:a.maxAge)||null!==a&&void 0!==a&&a.requireIdToken?async function(e,t,n,a,r,o,i){const s=[];
2switch(a){case void 0:a=_c;break;case _c:break;default:Ol(a,'"expectedNonce" argument'),s.push("nonce")}switch(null!==r&&void 0!==r||(r=t.default_max_age),r){case void 0:r=xc;break;case xc:break;default:Fl(r,!0,'"maxAge" argument'),s.push("auth_time")}const l=await hc(e,t,n,s,o,i);Ol(l.id_token,'"response" body "id_token" property',jc,{body:l});const c=dc(l);if(r!==xc){const e=Ll()+Bl(t),n=zl(t);if(c.auth_time+r<e-n)throw Sl("too much time has elapsed since the last End-User authentication",Fc,{claims:c,now:e,tolerance:n,claim:"auth_time"})}if(a===_c){if(void 0!==c.nonce)throw Sl('unexpected ID Token "nonce" claim value',Oc,{expected:void 0,claims:c,claim:"nonce"})}else if(c.nonce!==a)throw Sl('unexpected ID Token "nonce" claim value',Oc,{expected:a,claims:c,claim:"nonce"});return l}(e,t,n,a.expectedNonce,a.maxAge,a[_l],a.recognizedTokenTypes):async function(e,t,n,a,r){const o=await hc(e,t,n,void 0,a,r),i=dc(o);if(i){if(void 0!==t.default_max_age){Fl(t.default_max_age,!0,'"client.default_max_age"');const e=Ll()+Bl(t),n=zl(t);if(i.auth_time+t.default_max_age<e-n)throw Sl("too much time has elapsed since the last End-User authentication",Fc,{claims:i,now:e,tolerance:n,claim:"auth_time"})}if(void 0!==i.nonce)throw Sl('unexpected ID Token "nonce" claim value',Oc,{expected:void 0,claims:i,claim:"nonce"})}return o}(e,t,n,null===a||void 0===a?void 0:a[_l],null===a||void 0===a?void 0:a.recognizedTokenTypes)}const kc="OAUTH_WWW_AUTHENTICATE_CHALLENGE",Cc="OAUTH_RESPONSE_BODY_ERROR",Dc="OAUTH_UNSUPPORTED_OPERATION",Ac="OAUTH_AUTHORIZATION_RESPONSE_ERROR",Ec="OAUTH_PARSE_ERROR",jc="OAUTH_INVALID_RESPONSE",Sc="OAUTH_RESPONSE_IS_NOT_JSON",Nc="OAUTH_RESPONSE_IS_NOT_CONFORM",Pc="OAUTH_HTTP_REQUEST_FORBIDDEN",Tc="OAUTH_REQUEST_PROTOCOL_FORBIDDEN",Fc="OAUTH_JWT_TIMESTAMP_CHECK_FAILED",Oc="OAUTH_JWT_CLAIM_COMPARISON_FAILED",Ic="OAUTH_MISSING_SERVER_METADATA",Rc="OAUTH_INVALID_SERVER_METADATA";function Mc(e){if(e.bodyUsed)throw ml('"response" body has been used already',pl)}async function Bc(e,t,n,a,r){let o,i,{0:s,1:l,length:c}=e.split(".");if(5===c){if(void 0===r)throw new El("JWE decryption is not configured",{cause:e});e=await r(e),({0:s,1:l,length:c}=e.split("."))}if(3!==c)throw Sl("Invalid JWT",jc,e);try{o=JSON.parse(kl(Al(s)))}catch(d){throw Sl("failed to parse JWT Header body as base64url encoded JSON",Ec,d)}if(!Nl(o))throw Sl("JWT Header must be a top level object",jc,e);if(t(o),void 0!==o.crit)throw new El('no JWT "crit" header parameter extensions are supported',{cause:{header:o}});try{i=JSON.parse(kl(Al(l)))}catch(d){throw Sl("failed to parse JWT Payload body as base64url encoded JSON",Ec,d)}if(!Nl(i))throw Sl("JWT Payload must be a top level object",jc,e);const u=Ll()+n;if(void 0!==i.exp){if("number"!==typeof i.exp)throw Sl('unexpected JWT "exp" (expiration time) claim type',jc,{claims:i});if(i.exp<=u-a)throw Sl('unexpected JWT "exp" (expiration time) claim value, expiration is past current timestamp',Fc,{claims:i,now:u,tolerance:a,claim:"exp"})}if(void 0!==i.iat&&"number"!==typeof i.iat)throw Sl('unexpected JWT "iat" (issued at) claim type',jc,{claims:i});if(void 0!==i.iss&&"string"!==typeof i.iss)throw Sl('unexpected JWT "iss" (issuer) claim type',jc,{claims:i});if(void 0!==i.nbf){if("number"!==typeof i.nbf)throw Sl('unexpected JWT "nbf" (not before) claim type',jc,{claims:i});if(i.nbf>u+a)throw Sl('unexpected JWT "nbf" (not before) claim value',Fc,{claims:i,now:u,tolerance:a,claim:"nbf"})}if(void 0!==i.aud&&"string"!==typeof i.aud&&!Array.isArray(i.aud))throw Sl('unexpected JWT "aud" (audience) claim type',jc,{claims:i});return{header:o,claims:i,jwt:e}}function zc(e,t,n,a){if(void 0===e)if(Array.isArray(t)){if(!t.includes(a.alg))throw Sl('unexpected JWT "alg" header parameter',jc,{header:a,expected:t,reason:"authorization server metadata"})}else{if(void 0===n)throw Sl('missing client or server configuration to verify used JWT "alg" header parameter',void 0,{client:e,issuer:t,fallback:n});if("string"===typeof n?a.alg!==n:"function"===typeof n?!n(a.alg):!n.includes(a.alg))throw Sl('unexpected JWT "alg" header parameter',jc,{header:a,expected:n,reason:"default value"})}else if("string"===typeof e?a.alg!==e:!e.includes(a.alg))throw Sl('unexpected JWT "alg" header parameter',jc,{header:a,expected:e,reason:"client configuration"})}function Lc(e,t){const{0:n,length:a}=e.getAll(t);if(a>1)throw Sl('"'.concat(t,'" parameter must be provided only once'),jc);return n}const Uc=Symbol(),Vc=Symbol();function qc(e,t,n,a){if(Ul(e),Vl(t),n instanceof URL&&(n=n.searchParams),!(n instanceof URLSearchParams))throw ml('"parameters" must be an instance of URLSearchParams, or URL',fl);if(Lc(n,"response"))throw Sl('"parameters" contains a JARM response, use validateJwtAuthResponse() instead of validateAuthResponse()',jc,{parameters:n});const r=Lc(n,"iss"),o=Lc(n,"state");if(!r&&e.authorization_response_iss_parameter_supported)throw Sl('response parameter "iss" (issuer) missing',jc,{parameters:n});if(r&&r!==e.issuer)throw Sl('unexpected "iss" (issuer) response parameter value',jc,{expected:e.issuer,parameters:n});switch(a){case void 0:case Vc:if(void 0!==o)throw Sl('unexpected "state" response parameter encountered',jc,{expected:void 0,parameters:n});break;case Uc:break;default:if(Ol(a,'"expectedState" argument'),o!==a)throw Sl(void 0===o?'response parameter "state" missing':'unexpected "state" response parameter value',jc,{expected:a,parameters:n})}if(Lc(n,"error"))throw new Jl("authorization response from the server is an error",{cause:n});const i=Lc(n,"id_token"),s=Lc(n,"token");if(void 0!==i||void 0!==s)throw new El("implicit and hybrid flows are not supported");return l=new URLSearchParams(n),gc.add(l),l;var l}async function Hc(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Il;try{t=await e.json()}catch(a){throw n(e),Sl('failed to parse "response" body as JSON',Ec,a)}if(!Nl(t))throw Sl('"response" body must be a top level object',jc,{body:t});return t}Symbol();const Wc=Symbol();var Kc,Yc,Gc,Jc,$c,Qc,Xc,Zc,eu,tu,nu,au,ru,ou,iu,su,lu,cu,uu,du,hu,pu,fu,mu,gu,vu,yu,wu,_u,xu,bu,ku,Cu,Du,Au,Eu,ju,Su,Nu,Pu,Tu,Fu,Ou,Iu,Ru,Mu,Bu,zu,Lu,Uu,Vu,qu=class{constructor(e){this.options=e}get projectId(){return this.options.projectId}getApiUrl(){return this.options.getBaseUrl()+"/api/v1"}getAnalyticsApiUrl(){var e;return(null!==(e=this.options.getAnalyticsBaseUrl)&&void 0!==e?e:this.options.getBaseUrl)()+"/api/v1"}async runNetworkDiagnostics(e,t){if(this.pendingNetworkDiagnostics)return await this.pendingNetworkDiagnostics;
2this.pendingNetworkDiagnostics=this._runNetworkDiagnosticsInner(e,t);try{return await this.pendingNetworkDiagnostics}finally{this.pendingNetworkDiagnostics=void 0}}async _runNetworkDiagnosticsInner(e,t){var n;const a=async e=>{try{return await e(),"OK"}catch(oL){return"".concat(oL)}},r=await a(async()=>{const e=await fetch("https://1.1.1.1/cdn-cgi/trace");if(!e.ok)throw new Error("".concat(e.status," ").concat(e.statusText,": ").concat(await e.text()))}),o=await a(async()=>{const e=await fetch(new URL("/health",this.getApiUrl()));if(!e.ok)throw new Error("".concat(e.status," ").concat(e.statusText,": ").concat(await e.text()))}),i=await a(async()=>{const e=await fetch("https://app.stack-auth.com/health");if(!e.ok)throw new Error("".concat(e.status," ").concat(e.statusText,": ").concat(await e.text()))}),s=await a(async()=>{const e=await fetch("https://api.stack-auth.com/health");if(!e.ok)throw new Error("".concat(e.status," ").concat(e.statusText,": ").concat(await e.text()))});return{"navigator?.onLine":null===(n=Ut.navigator)||void 0===n?void 0:n.onLine,cfTrace:r,baseUrlBackend:o,prodDashboard:i,prodBackend:s}}async _createNetworkError(e,t,n){return new Error(Jt(Kc||(Kc=Ht(["\n      Stack Auth is unable to connect to the server. Please check your internet connection and try again.\n\n      If the problem persists, please contact support and provide a screenshot of your entire browser console.\n\n      ","\n\n      ","\n    "])),e,JSON.stringify(await this.runNetworkDiagnostics(t,n),null,2)),{cause:e})}async _networkRetry(e,t,n){const a=await ld.retry(e,5,{exponentialDelayBase:1e3});if("error"===a.status){if(Ut.navigator&&!1===Ut.navigator.onLine)throw new Error("You are offline. Please check your internet connection and try again. (window.navigator.onLine is false)",{cause:a.error});throw await this._createNetworkError(a.error,t,n)}return a.data}async _networkRetryException(e,t,n){return await this._networkRetry(async()=>await ld.fromThrowingAsync(e),t,n)}async fetchNewAccessToken(e){var t,n;if("projectOwnerSession"in this.options)throw new Error("Admin session token is currently not supported for fetching new access token. Did you try to log in on a StackApp initiated with the admin session?");const a=null!==(t=this.options.publishableClientKey)&&void 0!==t?t:$i,r=this.getApiUrl()+"/auth/oauth/token",o={issuer:this.options.getBaseUrl(),algorithm:"oauth2",token_endpoint:r},i={client_id:this.projectId,client_secret:a},s=ql(a),l=r.startsWith("http://"),c=await this._networkRetryException(async()=>{const t=await async function(e,t,n,a,r){Ul(e),Vl(t),Ol(a,'"refreshToken"');const o=new URLSearchParams(null===r||void 0===r?void 0:r.additionalParameters);return o.set("refresh_token",a),lc(e,t,n,"refresh_token",o,r)}(o,i,s,e.token,l?{[gl]:!0}:void 0),n=await this._processResponse(t);if("error"===n.status){const e=n.error;if(so.RefreshTokenError.isInstance(e))return null;throw e}if(!n.data.ok){const e=await n.data.text();throw new Error("Failed to send refresh token request: ".concat(n.status," ").concat(e))}return n.data});if(!c)return null;let u;try{u=await async function(e,t,n,a){return hc(e,t,n,void 0,null===a||void 0===a?void 0:a[_l],null===a||void 0===a?void 0:a.recognizedTokenTypes)}(o,i,c)}catch(oL){if(oL instanceof Gl)throw new hn("ResponseBodyError when processing refresh token response",{cause:oL.cause,code:oL.code,error:oL.error});throw new hn("Unexpected error when processing refresh token response",{cause:oL})}if(!u.access_token)throw new hn("Access token not found in token endpoint response, this is weird!");return null!==(n=il.createIfValid(u.access_token))&&void 0!==n?n:cn("Access token in fetchNewAccessToken is invalid, looks like the backend is returning an invalid token!",{result:u})}async sendClientRequest(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"client",r=arguments.length>4?arguments[4]:void 0;return null!==n&&void 0!==n||(n=this.createSession({refreshToken:null})),await this._networkRetry(()=>this.sendClientRequestInner(e,t,n,a,r),n,a)}createSession(e){return new ll(p({refreshAccessTokenCallback:async e=>await this.fetchNewAccessToken(e)},e))}
2async sendSessionReplayBatch(e,t,n){try{const a=await this.sendClientRequest("/session-replays/batch",{method:"POST",headers:{"Content-Type":"application/json"},body:e,keepalive:n.keepalive},t,"client",this.getAnalyticsApiUrl());return ld.ok(a)}catch(oL){return ld.error(oL instanceof Error?oL:new Error(String(oL)))}}async sendAnalyticsEventBatch(e,t,n){try{const a=await this.sendClientRequest("/analytics/events/batch",{method:"POST",headers:{"Content-Type":"application/json"},body:e,keepalive:n.keepalive},t,"client",this.getAnalyticsApiUrl());return ld.ok(a)}catch(oL){return ld.error(oL instanceof Error?oL:new Error(String(oL)))}}async sendClientRequestAndCatchKnownError(e,t,n,a){try{return ld.ok(await this.sendClientRequest(e,t,n))}catch(oL){for(const t of a)if(t.isInstance(oL))return ld.error(oL);throw oL}}async sendClientRequestInner(e,t,n,a,r){var o,i;let s=await n.getOrFetchLikelyValidTokens(2e4,null),l=null,c=null;if("projectOwnerSession"in this.options){const e=this.options.projectOwnerSession;if("function"===typeof e){const t=await e();if(t){const e=il.createIfValid(t);e&&(c={accessToken:e,refreshToken:null})}}else l=e,c=await e.getOrFetchLikelyValidTokens(2e4,null)}await(null===(o=(i=this.options).prepareRequest)||void 0===o?void 0:o.call(i));let u=(null!==r&&void 0!==r?r:this.getApiUrl())+e;u.endsWith("/")&&(u=u.slice(0,-1));const d=p(p(p({},"WebSocketPair"in Ut?{}:{credentials:"omit"}),t),{},{headers:p(p(p(p(p(p({"X-Stack-Override-Error-Status":"true","X-Stack-Project-Id":this.projectId,"X-Stack-Access-Type":a,"X-Stack-Client-Version":this.options.clientVersion},s?{"X-Stack-Access-Token":s.accessToken.token}:{}),null!==s&&void 0!==s&&s.refreshToken?{"X-Stack-Refresh-Token":s.refreshToken.token}:{}),{},{"X-Stack-Allow-Anonymous-User":"true"},"publishableClientKey"in this.options&&this.options.publishableClientKey?{"X-Stack-Publishable-Client-Key":this.options.publishableClientKey}:{}),c?{"X-Stack-Admin-Access-Token":c.accessToken.token}:{}),{},{"X-Stack-Random-Nonce":gd(),"ngrok-skip-browser-warning":"true"},this.options.extraRequestHeaders),t.headers)},"WebSocketPair"in Ut?{}:{cache:"no-store"});let h;try{h=await fetch(u,d)}catch(oL){if(oL instanceof TypeError){var f;if(Wi[null!==(f=d.method)&&void 0!==f?f:"GET"].idempotent)return ld.error(oL);throw await this._createNetworkError(oL,n,a)}throw oL}const m=await this._processResponse(h);if("error"===m.status){if(so.InvalidAccessToken.isInstance(m.error)){if(!s)throw new hn("Received invalid access token, but session is not logged in",{tokenObj:s,processedRes:m});return n.markAccessTokenExpired(s.accessToken),ld.error(m.error)}if(l&&(so.InvalidAdminAccessToken.isInstance(m.error)||so.ApiKeyNotFound.isInstance(m.error))){if(!c)throw new hn("Received invalid admin access token, but admin session is not logged in",{adminTokenObj:c,processedRes:m});return l.markAccessTokenExpired(c.accessToken),ld.error(m.error)}throw m.error}const g=Object.assign(m.data,{usedTokens:s});if(g.ok)return ld.ok(g);if(429===g.status){const e=g.headers.get("Retry-After");return null!==e?(console.log("Rate limited while sending request to ".concat(u,". Will retry after ").concat(e," seconds...")),await nd(1e3*Number(e)),ld.error(new Error("Rate limited, retrying after ".concat(e," seconds")))):(console.log("Rate limited while sending request to ".concat(u,", no retry-after header received. Retrying...")),ld.error(new Error("Rate limited, no retry-after header received")))}{const t=await g.text(),n=new hn("Failed to send request to ".concat(u,": ").concat(g.status," ").concat(t),{request:d,res:g,path:e});if(508===g.status&&t.includes("INFINITE_LOOP_DETECTED"))return ld.error(n);throw n}}async _processResponse(e){let t=e;if(e.headers.has("x-stack-actual-status")){const n=Number(e.headers.get("x-stack-actual-status"));t=new Response(e.body,{status:n,statusText:e.statusText,headers:e.headers})}if(t.headers.has("x-stack-known-error")){const e=await t.json();if(t.headers.get("x-stack-known-error")!==e.code)throw new hn("Mismatch between x-stack-known-error header and error code in body;
2 the server's response is invalid");const n=Pn.fromJson(e);return ld.error(n)}return ld.ok(t)}async checkFeatureSupport(e){const t=await this.sendClientRequest("/check-feature-support",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)},null);throw new hn(await t.text())}async sendForgotPasswordEmail(e,t){const n=await this.sendClientRequestAndCatchKnownError("/auth/password/send-reset-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,callback_url:t})},null,[so.UserNotFound]);return"error"===n.status?ld.error(n.error):ld.ok(void 0)}async sendVerificationEmail(e,t,n){const a=await this.sendClientRequestAndCatchKnownError("/contact-channels/send-verification-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,callback_url:t})},n,[so.EmailAlreadyVerified]);if("error"===a.status)return a.error}async sendMagicLinkEmail(e,t){const n=await this.sendClientRequestAndCatchKnownError("/auth/otp/send-sign-in-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,callback_url:t})},null,[so.RedirectUrlNotWhitelisted]);return"error"===n.status?ld.error(n.error):ld.ok(await n.data.json())}async resetPassword(e){const t=await this.sendClientRequestAndCatchKnownError("onlyVerifyCode"in e?"/auth/password/reset/check-code":"/auth/password/reset",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(p({code:e.code},"password"in e?{password:e.password}:{}))},null,[so.VerificationCodeError]);return"error"===t.status?ld.error(t.error):ld.ok(void 0)}async updatePassword(e,t){const n=await this.sendClientRequestAndCatchKnownError("/auth/password/update",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({old_password:e.oldPassword,new_password:e.newPassword})},t,[so.PasswordConfirmationMismatch,so.PasswordRequirementsNotMet]);if("error"===n.status)return n.error}async setPassword(e,t){const n=await this.sendClientRequestAndCatchKnownError("/auth/password/set",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)},t,[so.PasswordRequirementsNotMet]);if("error"===n.status)return n.error}async verifyPasswordResetCode(e){const t=await this.resetPassword({code:e,onlyVerifyCode:!0});return"error"===t.status?ld.error(t.error):ld.ok(void 0)}async verifyEmail(e){const t=await this.sendClientRequestAndCatchKnownError("/contact-channels/verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e})},null,[so.VerificationCodeError]);return"error"===t.status?ld.error(t.error):ld.ok(void 0)}async initiatePasskeyRegistration(e,t){const n=await this.sendClientRequestAndCatchKnownError("/auth/passkey/initiate-passkey-registration",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)},t,[]);return"error"===n.status?ld.error(n.error):ld.ok(await n.data.json())}async registerPasskey(e,t){const n=await this.sendClientRequestAndCatchKnownError("/auth/passkey/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)},t,[so.PasskeyRegistrationFailed]);return"error"===n.status?ld.error(n.error):ld.ok(void 0)}async initiatePasskeyAuthentication(e,t){const n=await this.sendClientRequestAndCatchKnownError("/auth/passkey/initiate-passkey-authentication",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)},t,[]);return"error"===n.status?ld.error(n.error):ld.ok(await n.data.json())}async sendTeamInvitation(e){await this.sendClientRequest("/team-invitations/send-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e.email,team_id:e.teamId,callback_url:e.callbackUrl})},e.session)}async acceptTeamInvitation(e){const t=await this.sendClientRequestAndCatchKnownError("check"===e.type?"/team-invitations/accept/check-code":"details"===e.type?"/team-invitations/accept/details":"/team-invitations/accept",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e.code})},e.session,[so.VerificationCodeError]);return"error"===t.status?ld.error(t.error):ld.ok(await t.data.json())}async totpMfa(e,t,n){const a=await this.sendClientRequest("/auth/mfa/sign-in",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e,type:"totp",totp:t})},n),r=await a.json();return{accessToken:r.access_token,refreshToken:r.refresh_token,newUser:r.is_new_user}}async signInWithCredential(e,t,n){const a=await this.sendClientRequestAndCatchKnownError("/auth/password/sign-in",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,password:t})},n,[so.EmailPasswordMismatch]);if("error"===a.status)return ld.error(a.error);const r=await a.data.json();return ld.ok({accessToken:r.access_token,refreshToken:r.refresh_token})}async signUpWithCredential(e,t,n,a){const r=await this.sendClientRequestAndCatchKnownError("/auth/password/sign-up",{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify({email:e,password:t,verification_callback_url:n})},a,[so.UserWithEmailAlreadyExists,so.PasswordRequirementsNotMet]);if("error"===r.status)return ld.error(r.error);const o=await r.data.json();return ld.ok({accessToken:o.access_token,refreshToken:o.refresh_token})}async signUpAnonymously(e){const t=await this.sendClientRequestAndCatchKnownError("/auth/anonymous/sign-up",{method:"POST"},e,[]);if("error"===t.status)return ld.error(t.error);const n=await t.data.json();return ld.ok({accessToken:n.access_token,refreshToken:n.refresh_token})}async signInWithMagicLink(e,t){const n=await this.sendClientRequestAndCatchKnownError("/auth/otp/sign-in",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e})},t,[so.VerificationCodeError]);if("error"===n.status)return ld.error(n.error);const a=await n.data.json();return ld.ok({accessToken:a.access_token,refreshToken:a.refresh_token,newUser:a.is_new_user})}async signInWithMfa(e,t,n){const a=await this.sendClientRequestAndCatchKnownError("/auth/mfa/sign-in",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"totp",totp:e,code:t})},n,[so.VerificationCodeError]);if("error"===a.status)return ld.error(a.error);const r=await a.data.json();return ld.ok({accessToken:r.access_token,refreshToken:r.refresh_token,newUser:r.is_new_user})}async signInWithPasskey(e,t){const n=await this.sendClientRequestAndCatchKnownError("/auth/passkey/sign-in",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)},t,[so.PasskeyAuthenticationFailed]);if("error"===n.status)return ld.error(n.error);const a=await n.data.json();return ld.ok({accessToken:a.access_token,refreshToken:a.refresh_token})}async getOAuthUrl(e){var t;const n=new URL(e.redirectUrl);for(const i of["code","state"])n.searchParams.has(i)&&console.warn("Redirect URL already contains "+i+" parameter, removing it as it will be overwritten by the OAuth callback"),n.searchParams.delete(i);if("projectOwnerSession"in this.options)throw new Error("Admin session token is currently not supported for OAuth");const a=null!==(t=this.options.publishableClientKey)&&void 0!==t?t:$i,r=new 
2URL(this.getApiUrl()+"/auth/oauth/authorize/"+e.provider.toLowerCase());r.searchParams.set("client_id",this.projectId),r.searchParams.set("client_secret",a),r.searchParams.set("redirect_uri",n.toString()),r.searchParams.set("scope","legacy"),r.searchParams.set("state",e.state),r.searchParams.set("grant_type","authorization_code"),r.searchParams.set("code_challenge",e.codeChallenge),r.searchParams.set("code_challenge_method","S256"),r.searchParams.set("response_type","code"),r.searchParams.set("type",e.type),r.searchParams.set("error_redirect_url",e.errorRedirectUrl);const o=await e.session.getOrFetchLikelyValidTokens(45e3,6e4);return o&&r.searchParams.set("token",o.accessToken.token),e.afterCallbackRedirectUrl&&r.searchParams.set("after_callback_redirect_url",e.afterCallbackRedirectUrl),e.providerScope&&r.searchParams.set("provider_scope",e.providerScope),r.toString()}async callOAuthCallback(e){var t,n;if("projectOwnerSession"in this.options)throw new Error("Admin session token is currently not supported for OAuth");const a=null!==(t=this.options.publishableClientKey)&&void 0!==t?t:$i,r=this.getApiUrl()+"/auth/oauth/token",o={issuer:this.options.getBaseUrl(),algorithm:"oauth2",token_endpoint:r},i={client_id:this.projectId,client_secret:a},s=ql(a),l=r.startsWith("http://");let c;try{c=qc(o,i,e.oauthParams,e.state)}catch(oL){if(oL instanceof Jl)throw new hn("Authorization response error when validating outer OAuth response",{cause:Object.fromEntries(oL.cause),code:oL.code,error:oL.error});throw new hn("Unexpected error when validating outer OAuth response",{cause:oL})}const u=await async function(e,t,n,a,r,o,i){if(Ul(e),Vl(t),!gc.has(a))throw ml('"callbackParameters" must be an instance of URLSearchParams obtained from "validateAuthResponse()", or "validateJwtAuthResponse()',pl);Ol(r,'"redirectUri"');const s=Lc(a,"code");if(!s)throw Sl('no authorization code in "callbackParameters"',jc);const l=new URLSearchParams(null===i||void 0===i?void 0:i.additionalParameters);return l.set("redirect_uri",r),l.set("code",s),o!==vc&&(Ol(o,'"codeVerifier"'),l.set("code_verifier",o)),lc(e,t,n,"authorization_code",l,i)}(o,i,s,c,e.redirectUri,e.codeVerifier,l?{[gl]:!0}:void 0);let d;try{d=await bc(o,i,u)}catch(oL){if(oL instanceof Gl){if("MULTI_FACTOR_AUTHENTICATION_REQUIRED"===oL.cause.code)throw new so.MultiFactorAuthenticationRequired(oL.cause.details.attempt_code);throw new hn("Outer OAuth error during authorization code response",{cause:oL.cause,code:oL.code,error:oL.error})}throw new hn("Unexpected error when processing authorization code response",{cause:oL})}return{newUser:d.is_new_user,afterCallbackRedirectUrl:d.after_callback_redirect_url,accessToken:d.access_token,refreshToken:null!==(n=d.refresh_token)&&void 0!==n?n:cn("Refresh token not found in outer OAuth response")}}async signOut(e){if(await e.getOrFetchLikelyValidTokens(2e4,null)){const t=await this.sendClientRequestAndCatchKnownError("/auth/sessions/current",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({})},e,[so.RefreshTokenError]);if("error"===t.status&&!so.RefreshTokenError.isInstance(t.error))throw new hn("Unexpected error",{error:t.error})}e.markInvalid()}async getClientUserByToken(e){const t=await this.sendClientRequestAndCatchKnownError("/users/me",{},e,[so.CannotGetOwnUserWithoutUser]);if("error"===t.status){if(so.CannotGetOwnUserWithoutUser.isInstance(t.error))return null;throw new hn("Unexpected uncaught error",{cause:t.error})}const n=t.data,a=await n.json();if(!a)throw new hn("User endpoint returned null; this should never happen");return a}async listTeamInvitations(e,t){const n=await this.sendClientRequest("/team-invitations?"+new URLSearchParams({team_id:e.teamId}),{},t);return(await n.json()).items}async listCurrentUserTeamInvitations(e){const t=await this.sendClientRequest("/team-invitations?"+new URLSearchParams({user_id:"me"}),{},e);return(await t.json()).items}async acceptTeamInvitationById(e,t){await this.sendClientRequest(kd(Yc||(Yc=Ht(["/team-invitations/","/accept"])),e)+"?"+new URLSearchParams({user_id:"me"}),{method:"POST"},t)}async revokeTeamInvitation(e,t,n){await this.sendClientRequest("/team-invitations/".concat(e,"?team_id=").concat(t),{method:"DELETE"},n)}async listTeamMemberProfiles(e,t){const n=await this.sendClientRequest("/team-member-profiles?"+new URLSearchParams(on({team_id:e.teamId,user_id:e.userId})),{},t);return(await n.json()).items}async getTeamMemberProfile(e,t){const n=await this.sendClientRequest("/team-member-profiles/".concat(e.teamId,"/").concat(e.userId),{},t);return await n.json()}async leaveTeam(e,t){await this.sendClientRequest("/team-memberships/".concat(e,"/me"),{method:"DELETE",headers:{"content-type":"application/json"},body:JSON.stringify({})},t)}async updateTeamMemberProfile(e,t){await this.sendClientRequest("/team-member-profiles/".concat(e.teamId,"/").concat(e.userId),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(e.profile)},t)}async updateTeam(e,t){await this.sendClientRequest("/teams/".concat(e.teamId),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(e.data)},t)}async listCurrentUserTeamPermissions(e,t){const n=await this.sendClientRequest("/team-permissions?team_id=".concat(e.teamId,"&user_id=me&recursive=").concat(e.recursive),{},t);return(await n.json()).items}async listCurrentUserProjectPermissions(e,t){const n=await this.sendClientRequest("/project-permissions?user_id=me&recursive=".concat(e.recursive),{},t);return(await n.json()).items}async listCurrentUserTeams(e){const t=await this.sendClientRequest("/teams?user_id=me",{},e);return(await t.json()).items}async getClientProject(){const e=await this.sendClientRequestAndCatchKnownError("/projects/current",{},null,[so.ProjectNotFound]);if("error"===e.status)return ld.error(e.error);const t=e.data,n=await t.json();return ld.ok(n)}async updateClientUser(e,t){await this.sendClientRequest("/users/me",{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(e)},t)}async listProjects(e){const t=await this.sendClientRequest("/internal/projects",{},e);if(!t.ok)throw new Error("Failed to list projects: "+t.status+" "+await t.text());return(await t.json()).items}async createProject(e,t){const n=await this.sendClientRequest("/internal/projects",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)},t);if(!n.ok)throw new Error("Failed to create project: "+n.status+" "+await n.text());return await n.json()}async createProviderAccessToken(e,t,n){const a=await this.sendClientRequest("/connected-accounts/me/".concat(e,"/access-token"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({scope:t})},n);return await a.json()}async createProviderAccessTokenByAccount(e,t,n,a){const r=await this.sendClientRequest("/connected-accounts/me/".concat(encodeURIComponent(e),"/").concat(encodeURIComponent(t),"/access-token"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({scope:n})},a);return await r.json()}async listConnectedAccounts(e){const t=await this.sendClientRequest("/connected-accounts/me",{method:"GET"},e);return await t.json()}async createClientTeam(e,t){const n=await this.sendClientRequest("/teams",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)},t);return await n.json()}async deleteTeam(e,t){await this.sendClientRequest("/teams/".concat(e),{method:"DELETE"},t)}async deleteCurrentUser(e){await this.sendClientRequest("/users/me",{method:"DELETE"},e)}async createClientContactChannel(e,t){const n=await this.sendClientRequest("/contact-channels",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)},t);return await n.json()}async updateClientContactChannel(e,t,n){const a=await this.sendClientRequest("/contact-channels/me/".concat(e),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(t)},n);return await a.json()}async deleteClientContactChannel(e,t){await this.sendClientRequest("/contact-channels/me/".concat(e),{method:"DELETE"},t)}async deleteSession(e,t){await this.sendClientRequest("/auth/sessions/".concat(e,"?user_id=me"),{method:"DELETE"},t)}async listSessions(e){const t=await this.sendClientRequest("/auth/sessions?user_id=me",{method:"GET"},e);return await t.json()}async listClientContactChannels(e){const t=await this.sendClientRequest("/contact-channels?user_id=me",{method:"GET"},e);return(await t.json()).items}async sendCurrentUserContactChannelVerificationEmail(e,t,n){const a=await this.sendClientRequestAndCatchKnownError("/contact-channels/me/".concat(e,"/send-verification-code"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({callback_url:t})},n,[so.EmailAlreadyVerified]);return"error"===a.status?ld.error(a.error):ld.ok(void 0)}async cliLogin(e,t,n){const a=await this.sendClientRequestAndCatchKnownError("/auth/cli/complete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({login_code:e,refresh_token:t})},n,[so.SchemaError]);return"error"===a.status?ld.error(a.error):ld.ok(void 0)}async _getApiKeyRequestInfo(e){if("user_id"in e&&"team_id"in e)throw new hn("Cannot specify both user_id and team_id in _getApiKeyRequestInfo");return{endpoint:"team_id"in e?"/team-api-keys":"/user-api-keys",queryParams:new URLSearchParams((t=e,Object.fromEntries(Object.entries(t).filter(e=>{let[,t]=e;return void 0!==t&&null!==t}))))};var t}async listProjectApiKeys(e,t,n){const a=("client"===n?this.sendClientRequest:this.sendServerRequest).bind(this),{endpoint:r,queryParams:o}=await this._getApiKeyRequestInfo(e),i=await a("".concat(r,"?").concat(o.toString()),{method:"GET"},t,n);return(await i.json()).items}async createProjectApiKey(e,t,n){const a=("client"===n?this.sendClientRequest:this.sendServerRequest).bind(this),{endpoint:r}=await this._getApiKeyRequestInfo(e),o=await a("".concat(r),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)},t,n);return await o.json()}async getProjectApiKey(e,t,n,a){const r=("client"===a?this.sendClientRequest:this.sendServerRequest).bind(this),{endpoint:o,queryParams:i}=await this._getApiKeyRequestInfo(e),s=await r("".concat(o,"/").concat(t,"?").concat(i.toString()),{method:"GET"},n,a);return await s.json()}async updateProjectApiKey(e,t,n,a,r){const o=("client"===r?this.sendClientRequest:this.sendServerRequest).bind(this),{endpoint:i,queryParams:s}=await this._getApiKeyRequestInfo(e),l=await o("".concat(i,"/").concat(t,"?").concat(s.toString()),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(n)},a,r);return await l.json()}async checkProjectApiKey(e,t,n,a){const r=("client"===a?this.sendClientRequestAndCatchKnownError:this.sendServerRequestAndCatchKnownError).bind(this),o=await r("/".concat(e,"-api-keys/check"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({api_key:t})},n,[so.ApiKeyNotValid]);return"error"===o.status?null:await o.data.json()}async listNotificationCategories(e){const t=await this.sendClientRequest("/emails/notification-preference/me",{},e);return(await t.json()).items}async setNotificationsEnabled(e,t,n){await this.sendClientRequest("/emails/notification-preference/me/".concat(e),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({enabled:t})},n)}async getOAuthProvider(e,t,n){const a=await this.sendClientRequest("/oauth-providers/".concat(e,"/").concat(t),{method:"GET"},n);return await a.json()}async updateOAuthProvider(e,t,n,a){const r=await this.sendClientRequest("/oauth-providers/".concat(e,"/").concat(t),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(n)},a);return await r.json()}async listOAuthProviders(){let e=arguments.length>1?arguments[1]:void 0;const t=new URLSearchParams(on(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})),n=await this.sendClientRequest("/oauth-providers".concat(t.toString()?"?".concat(t.toString()):""),{method:"GET"},e);return(await n.json()).items}async deleteOAuthProvider(e,t,n){const a=await this.sendClientRequest("/oauth-providers/".concat(e,"/").concat(t),{method:"DELETE"},n);return await a.json()}async getItem(e,t){let n,a,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"client";if("userId"in e)n="user",a=e.userId;else if("teamId"in e)n="team",a=e.teamId;else{if(!("customCustomerId"in e))throw new hn("getItem requires one of userId, teamId, or customCustomerId");n="custom",a=e.customCustomerId}const o=("client"===r?this.sendClientRequest:this.sendServerRequest).bind(this),i=await o(kd(Gc||(Gc=Ht(["/payments/items/","/","/",""])),n,a,e.itemId),{},t,r);return await i.json()}async listProducts(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"client";const a=new URLSearchParams(on({cursor:e.cursor,limit:void 0!==e.limit?e.limit.toString():void 0})),r=kd(Jc||(Jc=Ht(["/payments/products/","/",""])),e.customer_type,e.customer_id),o=("client"===n?this.sendClientRequest:this.sendServerRequest).bind(this),i=await o("".concat(r).concat(a.toString()?"?".concat(a.toString()):""),{},t,n);return await i.json()}async listInvoices(e,t){const n=new URLSearchParams(on({cursor:e.cursor,limit:void 0!==e.limit?e.limit.toString():void 0})),a=kd($c||($c=Ht(["/payments/invoices/","/",""])),e.customer_type,e.customer_id),r=await this.sendClientRequest("".concat(a).concat(n.toString()?"?".concat(n.toString()):""),{},t);return await r.json()}async cancelSubscription(e,t){const n=new URLSearchParams(on({subscription_id:e.subscription_id})),a=kd(Qc||(Qc=Ht(["/payments/products/","/","/",""])),e.customer_type,e.customer_id,e.product_id);await this.sendClientRequest("".concat(a).concat(n.toString()?"?".concat(n.toString()):""),{method:"DELETE"},t)}async switchSubscription(e,t){await this.sendClientRequest(kd(Xc||(Xc=Ht(["/payments/products/","/","/switch"])),e.customer_type,e.customer_id),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({from_product_id:e.from_product_id,to_product_id:e.to_product_id,price_id:e.price_id,quantity:e.quantity})},t)}async createCheckoutUrl(e,t,n,a,r){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"client";const i="string"===typeof n?{product_id:n}:{product_inline:n},s=("client"===o?this.sendClientRequest:this.sendServerRequest).bind(this),l=await s("/payments/purchases/create-purchase-url",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(p(p({customer_type:e,customer_id:t},i),{},{return_url:r}))},a,o),{url:c}=await l.json();return c}async getCustomerBilling(e,t,n){const a=await this.sendClientRequest(kd(Zc||(Zc=Ht(["/payments/billing/","/",""])),e,t),{},n);return await a.json()}async createCustomerPaymentMethodSetupIntent(e,t,n){const a=await this.sendClientRequest(kd(eu||(eu=Ht(["/payments/payment-method/","/","/setup-intent"])),e,t),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({})},n);return await a.json()}async setDefaultCustomerPaymentMethodFromSetupIntent(e,t,n,a){const r=await this.sendClientRequest(kd(tu||(tu=Ht(["/payments/payment-method/","/","/set-default"])),e,t),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({setup_intent_id:n})},a);return await r.json()}async transferProject(e,t,n){if("internal"!==this.options.projectId)throw new hn("StackClientInterface.transferProject() is only available for internal projects (please specify the project ID in the constructor)");await this.sendClientRequest("/internal/projects/transfer",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({project_id:t,new_team_id:n})},e)}},Hu=class extends qu{constructor(e){super(e),this.options=e}
2async sendServerRequest(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"server";return await this.sendClientRequest(e,p(p({},t),{},{headers:p({"x-stack-secret-server-key":"secretServerKey"in this.options?this.options.secretServerKey:""},t.headers)}),n,a)}async getCustomerBilling(e,t,n){const a=await this.sendServerRequest(kd(nu||(nu=Ht(["/payments/billing/","/",""])),e,t),{},n);return await a.json()}async createCustomerPaymentMethodSetupIntent(e,t,n){const a=await this.sendServerRequest(kd(au||(au=Ht(["/payments/payment-method/","/","/setup-intent"])),e,t),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({})},n);return await a.json()}async setDefaultCustomerPaymentMethodFromSetupIntent(e,t,n,a){const r=await this.sendServerRequest(kd(ru||(ru=Ht(["/payments/payment-method/","/","/set-default"])),e,t),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({setup_intent_id:n})},a);return await r.json()}async sendServerRequestAndCatchKnownError(e,t,n,a){try{return ld.ok(await this.sendServerRequest(e,t,n))}catch(oL){for(const t of a)if(t.isInstance(oL))return ld.error(oL);throw oL}}async createServerUser(e){const t=await this.sendServerRequest("/users",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)},null);return await t.json()}async getServerUserByToken(e){const t=await this.sendServerRequestAndCatchKnownError("/users/me",{},e,[so.CannotGetOwnUserWithoutUser]);if("error"===t.status){if(so.CannotGetOwnUserWithoutUser.isInstance(t.error))return null;throw new hn("Unexpected uncaught error",{cause:t.error})}const n=t.data,a=await n.json();if(!a)throw new hn("User endpoint returned null; this should never happen");return a}async getServerUserById(e){const t=await this.sendServerRequestAndCatchKnownError(kd(ou||(ou=Ht(["/users/",""])),e),{},null,[so.UserNotFound]);if("error"===t.status)return ld.error(t.error);const n=await t.data.json();return ld.ok(n)}async listServerTeamInvitations(e){const t=await this.sendServerRequest(kd(iu||(iu=Ht(["/team-invitations?team_id=",""])),e.teamId),{},null);return(await t.json()).items}async revokeServerTeamInvitation(e,t){await this.sendServerRequest(kd(su||(su=Ht(["/team-invitations/","?team_id=",""])),e,t),{method:"DELETE"},null)}async listServerTeamMemberProfiles(e){const t=await this.sendServerRequest(kd(lu||(lu=Ht(["/team-member-profiles?team_id=",""])),e.teamId),{},null);return(await t.json()).items}async getServerTeamMemberProfile(e){const t=await this.sendServerRequest(kd(cu||(cu=Ht(["/team-member-profiles/","/",""])),e.teamId,e.userId),{},null);return await t.json()}async listServerTeamPermissions(e,t){const n=await this.sendServerRequest("/team-permissions?".concat(new URLSearchParams(on({user_id:e.userId,team_id:e.teamId,recursive:e.recursive.toString()}))),{},t);return(await n.json()).items}async listServerProjectPermissions(e,t){const n=await this.sendServerRequest("/project-permissions?".concat(new URLSearchParams(on({user_id:e.userId,recursive:e.recursive.toString()}))),{},t);return(await n.json()).items}async listServerUsers(e){var t,n;const a=new URLSearchParams(on(p(p(p(p({cursor:e.cursor,limit:null===(t=e.limit)||void 0===t?void 0:t.toString(),desc:null===(n=e.desc)||void 0===n?void 0:n.toString()},e.orderBy?{order_by:{signedUpAt:"signed_up_at"}[e.orderBy]}:{}),e.query?{query:e.query}:{}),e.includeRestricted?{include_restricted:"true"}:{}),e.includeAnonymous?{include_anonymous:"true"}:{}))),r=await this.sendServerRequest("/users?"+a.toString(),{},null);return await r.json()}async listServerTeams(e){const t=await this.sendServerRequest("/teams?".concat(new URLSearchParams(on({user_id:null===e||void 0===e?void 0:e.userId}))),{},null);return(await t.json()).items}async getServerTeam(e){const t=await this.sendServerRequest("/teams/".concat(e),{},null);return await t.json()}async listServerTeamUsers(e){const t=await this.sendServerRequest("/users?team_id=".concat(e),{},null);return(await t.json()).items}async createServerTeam(e){const t=await this.sendServerRequest("/teams",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)},null);return await t.json()}async updateServerTeam(e,t){const n=await this.sendServerRequest
2(kd(uu||(uu=Ht(["/teams/",""])),e),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(t)},null);return await n.json()}async deleteServerTeam(e){await this.sendServerRequest(kd(du||(du=Ht(["/teams/",""])),e),{method:"DELETE"},null)}async addServerUserToTeam(e){const t=await this.sendServerRequest(kd(hu||(hu=Ht(["/team-memberships/","/",""])),e.teamId,e.userId),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({})},null);return await t.json()}async removeServerUserFromTeam(e){await this.sendServerRequest(kd(pu||(pu=Ht(["/team-memberships/","/",""])),e.teamId,e.userId),{method:"DELETE",headers:{"content-type":"application/json"},body:JSON.stringify({})},null)}async listServerUserTeamInvitations(e){const t=await this.sendServerRequest("/team-invitations?"+new URLSearchParams({user_id:e}),{},null);return(await t.json()).items}async acceptServerTeamInvitationById(e,t){await this.sendServerRequest(kd(fu||(fu=Ht(["/team-invitations/","/accept"])),e)+"?"+new URLSearchParams({user_id:t}),{method:"POST"},null)}async updateServerUser(e,t){const n=await this.sendServerRequest(kd(mu||(mu=Ht(["/users/",""])),e),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(t)},null);return await n.json()}async createServerProviderAccessToken(e,t,n){const a=await this.sendServerRequest(kd(gu||(gu=Ht(["/connected-accounts/","/","/access-token"])),e,t),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({scope:n})},null);return await a.json()}async createServerProviderAccessTokenByAccount(e,t,n,a){const r=await this.sendServerRequest(kd(vu||(vu=Ht(["/connected-accounts/","/","/","/access-token"])),e,t,n),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({scope:a})},null);return await r.json()}async listServerConnectedAccounts(e){const t=await this.sendServerRequest(kd(yu||(yu=Ht(["/connected-accounts/",""])),e),{method:"GET"},null);return await t.json()}async createServerUserSession(e,t,n){const a=await this.sendServerRequest("/auth/sessions",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({user_id:e,expires_in_millis:t,is_impersonation:n})},null),r=await a.json();return{accessToken:r.access_token,refreshToken:r.refresh_token}}async leaveServerTeam(e){await this.sendClientRequest(kd(wu||(wu=Ht(["/team-memberships/","/",""])),e.teamId,e.userId),{method:"DELETE",headers:{"content-type":"application/json"},body:JSON.stringify({})},null)}async updateServerTeamMemberProfile(e){await this.sendServerRequest(kd(_u||(_u=Ht(["/team-member-profiles/","/",""])),e.teamId,e.userId),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(e.profile)},null)}async grantServerTeamUserPermission(e,t,n){await this.sendServerRequest(kd(xu||(xu=Ht(["/team-permissions/","/","/",""])),e,t,n),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({})},null)}async grantServerProjectPermission(e,t){await this.sendServerRequest(kd(bu||(bu=Ht(["/project-permissions/","/",""])),e,t),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({})},null)}async revokeServerTeamUserPermission(e,t,n){await this.sendServerRequest(kd(ku||(ku=Ht(["/team-permissions/","/","/",""])),e,t,n),{method:"DELETE",headers:{"content-type":"application/json"},body:JSON.stringify({})},null)}async revokeServerProjectPermission(e,t){await this.sendServerRequest(kd(Cu||(Cu=Ht(["/project-permissions/","/",""])),e,t),{method:"DELETE",headers:{"content-type":"application/json"},body:JSON.stringify({})},null)}async deleteServerUser(e){await this.sendServerRequest(kd(Du||(Du=Ht(["/users/",""])),e),{method:"DELETE",headers:{"content-type":"application/json"},body:JSON.stringify({})},null)}async createServerContactChannel(e){const t=await this.sendServerRequest("/contact-channels",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)},null);return await t.json()}async updateServerContactChannel(e,t,n){const a=await this.sendServerRequest(kd(Au||(Au=Ht(["/contact-channels/","/",""])),e,t),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(n)},null);return await a.json()}async deleteServerContactChannel(e,t){await this.sendServerRequest
2(kd(Eu||(Eu=Ht(["/contact-channels/","/",""])),e,t),{method:"DELETE"},null)}async listServerContactChannels(e){const t=await this.sendServerRequest(kd(ju||(ju=Ht(["/contact-channels?user_id=",""])),e),{method:"GET"},null);return(await t.json()).items}async listServerNotificationCategories(e){const t=await this.sendServerRequest(kd(Su||(Su=Ht(["/emails/notification-preference/",""])),e),{method:"GET"},null);return(await t.json()).items}async setServerNotificationsEnabled(e,t,n){await this.sendServerRequest(kd(Nu||(Nu=Ht(["/emails/notification-preference/","/",""])),e,t),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({enabled:n})},null)}async sendServerContactChannelVerificationEmail(e,t,n){await this.sendServerRequest(kd(Pu||(Pu=Ht(["/contact-channels/","/","/send-verification-code"])),e,t),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({callback_url:n})},null)}async listServerSessions(e){const t=await this.sendServerRequest(kd(Tu||(Tu=Ht(["/auth/sessions?user_id=",""])),e),{method:"GET"},null);return await t.json()}async deleteServerSession(e){await this.sendServerRequest(kd(Fu||(Fu=Ht(["/auth/sessions/",""])),e),{method:"DELETE"},null)}async sendServerTeamInvitation(e){await this.sendServerRequest("/team-invitations/send-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e.email,team_id:e.teamId,callback_url:e.callbackUrl})},null)}async updatePassword(e){const t=await this.sendServerRequestAndCatchKnownError("/auth/password/update",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({old_password:e.oldPassword,new_password:e.newPassword})},null,[so.PasswordConfirmationMismatch,so.PasswordRequirementsNotMet]);if("error"===t.status)return t.error}async createServerOAuthProvider(e){const t=await this.sendServerRequest("/oauth-providers",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)},null);return await t.json()}async listServerOAuthProviders(){const e=new URLSearchParams(on(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})),t=await this.sendServerRequest("/oauth-providers".concat(e.toString()?"?".concat(e.toString()):""),{method:"GET"},null);return(await t.json()).items}async updateServerOAuthProvider(e,t,n){const a=await this.sendServerRequest(kd(Ou||(Ou=Ht(["/oauth-providers/","/",""])),e,t),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(n)},null);return await a.json()}async deleteServerOAuthProvider(e,t){const n=await this.sendServerRequest(kd(Iu||(Iu=Ht(["/oauth-providers/","/",""])),e,t),{method:"DELETE"},null);return await n.json()}async sendEmail(e){await this.sendServerRequest("/emails/send-email",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({user_ids:e.userIds,all_users:e.allUsers,theme_id:e.themeId,html:e.html,subject:e.subject,notification_category_name:e.notificationCategoryName,template_id:e.templateId,variables:e.variables,draft_id:e.draftId})},null);return ld.ok(void 0)}async getEmailDeliveryInfo(){const e=await this.sendServerRequest("/emails/delivery-info",{method:"GET",headers:{"Content-Type":"application/json"}},null);return await e.json()}async updateItemQuantity(e,t){var n;let a,r;const o=e.itemId;if("userId"in e)a="user",r=e.userId;else if("teamId"in e)a="team",r=e.teamId;else{if(!("customCustomerId"in e))throw new hn("updateItemQuantity requires one of userId, teamId, or customCustomerId");a="custom",r=e.customCustomerId}const i=new URLSearchParams({allow_negative:(null!==(n=t.allow_negative)&&void 0!==n&&n).toString()});await this.sendServerRequest("/payments/items/".concat(a,"/").concat(r,"/").concat(o,"/update-quantity?").concat(i.toString()),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({delta:t.delta,expires_at:t.expires_at,description:t.description})},null)}async grantProduct(e){if(!e.productId&&!e.product)throw new hn("grantProduct requires either productId or product");if(e.productId&&e.product)throw new hn("grantProduct should not receive both productId and product");const t=on({product_id:e.productId,product_inline:e.product,quantity:e.quantity});
2await this.sendServerRequest(kd(Ru||(Ru=Ht(["/payments/products/","/",""])),e.customerType,e.customerId),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)},null)}async getDataVaultStoreValue(e,t,n){const a=await ho(e,n),r=await this.sendServerRequestAndCatchKnownError("/data-vault/stores/".concat(t,"/get"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({hashed_key:a})},null,[so.DataVaultStoreHashedKeyDoesNotExist]);if("error"===r.status){if(so.DataVaultStoreHashedKeyDoesNotExist.isInstance(r.error))return null;throw new hn("Unexpected uncaught error",{cause:r.error})}const o=(await r.data.json()).encrypted_value;if("string"!==typeof o)throw new hn("encrypted_value is not a string",{type:typeof o});return await fo(e,n,o)}async setDataVaultStoreValue(e,t,n,a){const r=await ho(e,n),o=await po(e,n,a);await this.sendServerRequest("/data-vault/stores/".concat(t,"/set"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({hashed_key:r,encrypted_value:o})},null)}async initiateServerPasskeyRegistration(e){const{accessToken:t,refreshToken:n}=await this.createServerUserSession(e,12e4,!1),a=new ll({accessToken:t,refreshToken:n,refreshAccessTokenCallback:async()=>null});return await this.initiatePasskeyRegistration({},a)}},Wu=class extends Hu{constructor(e){super(e),this.options=e}async sendAdminRequest(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"admin";return await this.sendServerRequest(e,p(p({},t),{},{headers:p({"x-stack-super-secret-admin-key":"superSecretAdminKey"in this.options?this.options.superSecretAdminKey:""},t.headers)}),n,a)}async sendAdminRequestAndCatchKnownError(e,t,n,a){try{return ld.ok(await this.sendAdminRequest(e,t,n))}catch(oL){for(const t of a)if(t.isInstance(oL))return ld.error(oL);throw oL}}async getProject(){const e=await this.sendAdminRequest("/internal/projects/current",{method:"GET"},null);return await e.json()}async updateProject(e){const t=await this.sendAdminRequest("/internal/projects/current",{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(e)},null);return await t.json()}async createInternalApiKey(e){const t=await this.sendAdminRequest("/internal/api-keys",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)},null);return await t.json()}async listInternalApiKeys(){const e=await this.sendAdminRequest("/internal/api-keys",{},null);return(await e.json()).items}async revokeInternalApiKeyById(e){await this.sendAdminRequest("/internal/api-keys/".concat(e),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({revoked:!0})},null)}async getInternalApiKey(e,t){const n=await this.sendAdminRequest("/internal/api-keys/".concat(e),{},t);return await n.json()}async listInternalEmailTemplates(){const e=await this.sendAdminRequest("/internal/email-templates",{},null);return(await e.json()).templates}async listInternalEmailDrafts(){const e=await this.sendAdminRequest("/internal/email-drafts",{},null);return(await e.json()).drafts}async createEmailDraft(e){const t=await this.sendAdminRequest("/internal/email-drafts",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)},null);return await t.json()}async updateEmailDraft(e,t){await this.sendAdminRequest("/internal/email-drafts/".concat(e),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(t)},null)}async deleteEmailDraft(e){await this.sendAdminRequest("/internal/email-drafts/".concat(e),{method:"DELETE"},null)}async listEmailThemes(){const e=await this.sendAdminRequest("/internal/email-themes",{},null);return(await e.json()).themes}async listTeamPermissionDefinitions(){const e=await this.sendAdminRequest("/team-permission-definitions",{},null);return(await e.json()).items}async createTeamPermissionDefinition(e){const t=await this.sendAdminRequest("/team-permission-definitions",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)},null);return await t.json()}async updateTeamPermissionDefinition(e,t){const n=await this.sendAdminRequest("/team-permission-definitions/".concat(e),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(t)},null);return await n.json()}async deleteTeamPermissionDefinition(e){await this.sendAdminRequest("/team-permission-definitions/".concat(e),{method:"DELETE"},null)}async listProjectPermissionDefinitions(){const e=await this.sendAdminRequest("/project-permission-definitions",{},null);return(await e.json()).items}async createProjectPermissionDefinition(e){const t=await this.sendAdminRequest("/project-permission-definitions",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)},null);return await t.json()}async updateProjectPermissionDefinition(e,t){const n=await this.sendAdminRequest("/project-permission-definitions/".concat(e),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(t)},null);return await n.json()}async deleteProjectPermissionDefinition(e){await this.sendAdminRequest("/project-permission-definitions/".concat(e),{method:"DELETE"},null)}async getSvixToken(){const e=await this.sendAdminRequest("/webhooks/svix-token",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({})},null);return await e.json()}async deleteProject(){await this.sendAdminRequest("/internal/projects/current",{method:"DELETE"},null)}async getMetrics(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=new URLSearchParams;e&&t.append("include_anonymous","true");const n=t.toString(),a=await this.sendAdminRequest("/internal/metrics".concat(n?"?".concat(n):""),{method:"GET"},null);return await a.json()}async sendTestEmail(e){const t=await this.sendAdminRequest("/internal/send-test-email",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)},null);return await t.json()}async sendTestWebhook(e){const t=await this.sendAdminRequest("/internal/send-test-webhook",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)},null);return await t.json()}async listSentEmails(){const e=await this.sendAdminRequest("/internal/emails",{method:"GET"},null);return await e.json()}async sendSignInInvitationEmail(e,t){await this.sendAdminRequest("/internal/send-sign-in-invitation",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,callback_url:t})},null)}async sendChatMessage(e,t,n,a){const r=await this.sendAdminRequest("/internal/ai-chat/".concat(e),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({context_type:t,messages:n}),signal:a},null);return await r.json()}async saveChatMessage(e,t){await this.sendAdminRequest("/internal/ai-chat/".concat(e),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({message:t})},null)}async listChatMessages(e){const t=await this.sendAdminRequest("/internal/ai-chat/".concat(e),{method:"GET"},null);return await t.json()}async applyWysiwygEdit(e){const t=await this.sendAdminRequest("/internal/wysiwyg-edit",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({source_type:e.sourceType,source_code:e.sourceCode,old_text:e.oldText,new_text:e.newText,metadata:e.metadata,dom_path:e.domPath.map(e=>({tag_name:e.tagName,index:e.index})),html_context:e.htmlContext})},null);return{updatedSource:(await t.json()).updated_source}}async renderEmailPreview(e){const t=await this.sendAdminRequest("/emails/render-email",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({theme_id:e.themeId,theme_tsx_source:e.themeTsxSource,template_id:e.templateId,template_tsx_source:e.templateTsxSource,editable_markers:e.editableMarkers,editable_source:e.editableSource})},null);return await t.json()}async createEmailTheme(e){const t=await this.sendAdminRequest("/internal/email-themes",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({display_name:e})},null);return await t.json()}async getEmailTheme(e){const t=await this.sendAdminRequest("/internal/email-themes/".concat(e),{method:"GET"},null);return await t.json()}async updateEmailTheme(e,t){await this.sendAdminRequest("/internal/email-themes/".concat(e),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({tsx_source:t})},null)}async deleteEmailTheme(e){await this.sendAdminRequest("/internal/email-themes/".concat(e),{method:"DELETE"},null)}async updateEmailTemplate(e,t,n){const a=await this.sendAdminRequest("/internal/email-templates/".concat(e),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({tsx_source:t,theme_id:n})},null);return await a.json()}async getConfig(){const e=await this.sendAdminRequest("/internal/config",{method:"GET"},null);return await e.json()}async getConfigOverride(e){const t=await this.sendAdminRequest("/internal/config/override/".concat(e),{method:"GET"},null);return await t.json()}async setConfigOverride(e,t,n){await this.sendAdminRequest("/internal/config/override/".concat(e),{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(p({config_string:JSON.stringify(t)},n&&{source:n}))},null)}async updateConfigOverride(e,t){await this.sendAdminRequest("/internal/config/override/".concat(e),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({config_override_string:JSON.stringify(t)})},null)}async getPushedConfigSource(){const e=await this.sendAdminRequest("/internal/config/source",{method:"GET"},null);return(await e.json()).source}async unlinkPushedConfigSource(){await this.sendAdminRequest("/internal/config/source",{method:"DELETE"},null)}async resetConfigOverrideKeys(e,t){await this.sendAdminRequest("/internal/config/override/".concat(e,"/reset-keys"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({keys:t})},null)}async createEmailTemplate(e){const t=await this.sendAdminRequest("/internal/email-templates",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({display_name:e})},null);return await t.json()}async deleteEmailTemplate(e){await this.sendAdminRequest("/internal/email-templates/".concat(e),{method:"DELETE"},null)}async setupPayments(){const e=await this.sendAdminRequest("/internal/payments/setup",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({})},null);return await e.json()}async getStripeAccountInfo(){const e=await this.sendAdminRequestAndCatchKnownError("/internal/payments/stripe/account-info",{},null,[so.StripeAccountInfoNotFound]);return"error"===e.status?null:await e.data.json()}async getPaymentMethodConfigs(){const e=await this.sendAdminRequestAndCatchKnownError("/internal/payments/method-configs",{method:"GET"},null,[so.StripeAccountInfoNotFound]);if("error"===e.status)return null;const t=await e.data.json();return{configId:t.config_id,methods:t.methods}}async updatePaymentMethodConfigs(e,t){await this.sendAdminRequest("/internal/payments/method-configs",{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({config_id:e,updates:t})},null)}async createStripeWidgetAccountSession(){const e=await this.sendAdminRequest("/internal/payments/stripe-widgets/account-session",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({})},null);return await e.json()}async listTransactions(e){const t=new URLSearchParams;null!==e&&void 0!==e&&e.cursor&&t.set("cursor",e.cursor),"number"===typeof(null===e||void 0===e?void 0:e.limit)&&t.set("limit",String(e.limit)),null!==e&&void 0!==e&&e.type&&t.set("type",e.type),null!==e&&void 0!==e&&e.customerType&&t.set("customer_type",e.customerType);const n=await this.sendAdminRequest("/internal/payments/transactions".concat(t.size?"?".concat(t.toString()):""),{method:"GET"},null),a=await n.json();return{transactions:a.transactions,nextCursor:a.next_cursor}}async listSessionReplays(e){const t=new URLSearchParams;null!==e&&void 0!==e&&e.cursor&&t.set("cursor",e.cursor),"number"===typeof(null===e||void 0===e?void 0:e.limit)&&t.set("limit",String(e.limit));const n=await this.sendAdminRequest("/internal/session-replays".concat(t.size?"?".concat(t.toString()):""),{method:"GET"},null);return await n.json()}async listSessionReplayChunks(e,t){const n=new URLSearchParams;
2null!==t&&void 0!==t&&t.cursor&&n.set("cursor",t.cursor),"number"===typeof(null===t||void 0===t?void 0:t.limit)&&n.set("limit",String(t.limit));const a=await this.sendAdminRequest("/internal/session-replays/".concat(encodeURIComponent(e),"/chunks").concat(n.size?"?".concat(n.toString()):""),{method:"GET"},null);return await a.json()}async getSessionReplayChunkEvents(e,t){const n=await this.sendAdminRequest("/internal/session-replays/".concat(encodeURIComponent(e),"/chunks/").concat(encodeURIComponent(t),"/events"),{method:"GET"},null);return await n.json()}async getSessionReplayEvents(e,t){const n=new URLSearchParams;"number"===typeof(null===t||void 0===t?void 0:t.offset)&&n.set("offset",String(t.offset)),"number"===typeof(null===t||void 0===t?void 0:t.limit)&&n.set("limit",String(t.limit));const a=await this.sendAdminRequest("/internal/session-replays/".concat(encodeURIComponent(e),"/events").concat(n.size?"?".concat(n.toString()):""),{method:"GET"},null);return await a.json()}async refundTransaction(e){const t=await this.sendAdminRequest("/internal/payments/transactions/refund",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({type:e.type,id:e.id,refund_entries:e.refundEntries.map(e=>({entry_index:e.entryIndex,quantity:e.quantity,amount_usd:e.amountUsd}))})},null);return await t.json()}async previewAffectedUsersByOnboardingChange(e,t){const n=await this.sendAdminRequest("/internal/onboarding/preview-affected-users".concat(t?"?limit=".concat(t):""),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({onboarding:e})},null);return await n.json()}async queryAnalytics(e){var t,n,a;const r=await this.sendAdminRequest("/internal/analytics/query",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({query:e.query,params:null!==(t=e.params)&&void 0!==t?t:{},timeout_ms:null!==(n=e.timeout_ms)&&void 0!==n?n:1e3,include_all_branches:null!==(a=e.include_all_branches)&&void 0!==a&&a})},null);return await r.json()}async listOutboxEmails(e){const t=new URLSearchParams;null!==e&&void 0!==e&&e.status&&t.set("status",e.status),null!==e&&void 0!==e&&e.simple_status&&t.set("simple_status",e.simple_status),void 0!==(null===e||void 0===e?void 0:e.limit)&&t.set("limit",e.limit.toString()),null!==e&&void 0!==e&&e.cursor&&t.set("cursor",e.cursor);const n=await this.sendServerRequest("/emails/outbox".concat(t.size?"?".concat(t.toString()):""),{method:"GET"},null);return await n.json()}async getOutboxEmail(e){const t=await this.sendServerRequest("/emails/outbox/".concat(e),{method:"GET"},null);return await t.json()}async updateOutboxEmail(e,t){const n=await this.sendServerRequest("/emails/outbox/".concat(e),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(t)},null);return await n.json()}},Ku=class{constructor(e){"undefined"===typeof WeakRef?this._ref={deref:()=>e}:this._ref=new WeakRef(e)}deref(){return this._ref.deref()}},Yu=class{constructor(e){var t;this[Mu]="IterableWeakMap";const n=null===e||void 0===e?void 0:e.map(e=>[e[0],{value:e[1],keyRef:new Ku(e[0])}]);this._weakMap=new WeakMap(null!==n&&void 0!==n?n:[]),this._keyRefs=new Set(null!==(t=null===n||void 0===n?void 0:n.map(e=>e[1].keyRef))&&void 0!==t?t:[])}get(e){var t;return null===(t=this._weakMap.get(e))||void 0===t?void 0:t.value}set(e,t){var n;const a=this._weakMap.get(e),r={value:t,keyRef:null!==(n=null===a||void 0===a?void 0:a.keyRef)&&void 0!==n?n:new Ku(e)};return this._weakMap.set(e,r),this._keyRefs.add(r.keyRef),this}delete(e){const t=this._weakMap.get(e);return!!t&&(this._weakMap.delete(e),this._keyRefs.delete(t.keyRef),!0)}has(e){return this._weakMap.has(e)&&this._keyRefs.has(this._weakMap.get(e).keyRef)}*[(Bu=Symbol.iterator,Mu=Symbol.toStringTag,Bu)](){for(const e of this._keyRefs){const t=e.deref(),n=t?this._weakMap.get(t):void 0;t?n&&(yield[t,n.value]):this._keyRefs.delete(e)}}},Gu=class{constructor(e){this[zu]="MaybeWeakMap";const t=[...null!==e&&void 0!==e?e:[]];this._primitiveMap=new Map(t.filter(e=>!this._isAllowedInWeakMap(e[0]))),this._weakMap=new Yu(t.filter(e=>this._isAllowedInWeakMap(e[0])))}_isAllowedInWeakMap(e){return"object"===typeof e&&null!==e||"symbol"===typeof e&&void 0===Symbol.ke
2yFor(e)}get(e){return this._isAllowedInWeakMap(e)?this._weakMap.get(e):this._primitiveMap.get(e)}set(e,t){return this._isAllowedInWeakMap(e)?this._weakMap.set(e,t):this._primitiveMap.set(e,t),this}delete(e){return this._isAllowedInWeakMap(e)?this._weakMap.delete(e):this._primitiveMap.delete(e)}has(e){return this._isAllowedInWeakMap(e)?this._weakMap.has(e):this._primitiveMap.has(e)}*[(Lu=Symbol.iterator,zu=Symbol.toStringTag,Lu)](){yield*this._primitiveMap,yield*this._weakMap}},Ju=class{constructor(){this._inner={map:new Gu,hasValue:!1,value:void 0},this[Uu]="DependenciesMap"}_valueToResult(e){return e.hasValue?ld.ok(e.value):ld.error(void 0)}_unwrapFromInner(e,t){if(0===e.length)return this._valueToResult(t);{const[n,...a]=e,r=t.map.get(n);return r?this._unwrapFromInner(a,r):ld.error(void 0)}}_setInInner(e,t,n){if(0===e.length){const e=this._valueToResult(n);return"ok"===t.status?(n.hasValue=!0,n.value=t.data):(n.hasValue=!1,n.value=void 0),e}{const[a,...r]=e;let o=n.map.get(a);return o||n.map.set(a,o={map:new Gu,hasValue:!1,value:void 0}),this._setInInner(r,t,o)}}*_iterateInner(e,t){t.hasValue&&(yield[e,t.value]);for(const[n,a]of t.map)yield*this._iterateInner([...e,n],a)}get(e){return ld.or(this._unwrapFromInner(e,this._inner),void 0)}set(e,t){return this._setInInner(e,ld.ok(t),this._inner),this}delete(e){return"ok"===this._setInInner(e,ld.error(void 0),this._inner).status}has(e){return"ok"===this._unwrapFromInner(e,this._inner).status}clear(){this._inner={map:new Gu,hasValue:!1,value:void 0}}*[(Vu=Symbol.iterator,Uu=Symbol.toStringTag,Vu)](){yield*this._iterateInner([],this._inner)}};var $u=null;function Qu(e){if(null!==$u&&void 0!==$u||($u=new Ju),$u.has([e]))return $u.get([e]);const t=Object.assign(Promise.resolve(e),{status:"fulfilled",value:e});return $u.set([e],t),t}var Xu=null;var Zu=td(new Promise(()=>{}));function ed(){return Zu}function td(e){const t=e.then(e=>(t.status="fulfilled",t.value=e,e),e=>{throw t.status="rejected",t.reason=e,e});return t.status="pending",t}async function nd(e){if(!Number.isFinite(e)||e<0)throw new hn("wait() requires a non-negative integer number of milliseconds to wait. (found: ".concat(e,"ms)"));if(e>=2**31)throw new hn("The maximum timeout for wait() is 2147483647ms (2**31 - 1). (found: ${ms}ms)");return await new Promise(t=>setTimeout(t,e))}function ad(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return rd(t[0],p(p({},t[1]),{},{onError:e=>{var n,a,r;Pn.isKnownError(e)&&"undefined"!==typeof process&&null!==(n="production")&&void 0!==n&&n.includes("production")?alert(e.message):alert("An unhandled error occurred. Please ".concat("report this to the developer.","\n\n").concat(e)),null===(a=t[1])||void 0===a||null===(r=a.onError)||void 0===r||r.call(a,e)}}),...t.slice(2))}function rd(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"function"===typeof e&&(e=e()),e&&(!function(e){const t=new Error;e.catch(e=>{e instanceof Error&&dn(e,t)})}(e),e.catch(e=>{var n;null===(n=t.onError)||void 0===n||n.call(t,e);const a=new hn("Uncaught error in asynchronous function: "+pn(e),{cause:e});t.noErrorLogging||gn("runAsynchronously",a)}))}var od,id,sd;Error;var ld={fromThrowing:dd,fromThrowingAsync:async function(e){try{return ld.ok(await e())}catch(t){return ld.error(t)}},fromPromise:ud,ok:e=>({status:"ok",data:e}),error:e=>({status:"error",error:e}),map:hd,or:(e,t)=>"ok"===e.status?e.data:t,orThrow:e=>{if("error"===e.status)throw e.error;return e.data},orThrowAsync:async e=>ld.orThrow(await e),retry:fd},cd={fromThrowing:dd,fromPromise:ud,ok:ld.ok,error:ld.error,pending:function(e){return{status:"pending",progress:e}},map:hd,or:(e,t)=>"pending"===e.status?t:ld.or(e,t),orThrow:e=>{if("pending"===e.status)throw new Error("Result still pending");return ld.orThrow(e)},retry:fd};async function ud(e){try{const t=await e;return ld.ok(t)}catch(t){return ld.error(t)}}function dd(e){try{return ld.ok(e())}catch(t){return ld.error(t)}}function hd(e,t){return"error"===e.status?{status:"error",error:e.error}:"pending"===e.status?p({status:"pending"},"progress"in e?{progress:e.progress}:{}):ld.ok(t(e.data))}var pd=class extends AggregateError{constructor(e){const t=e.map(e=>Zt(e)),n=t.length>1&&t.every(e=>e===t[0]);super(e,Jt(od||(od=Ht(["\n      Error after "," attempts.\n      \n      ","\n      "])),e.length,n?Jt(id||(id=Ht(["\n        Attempts 1-",":\n          ","\n      "])),e.length,t[0]):t.map((e,t)=>Jt(sd||(sd=Ht(["\n          Attempt ",":\n            ","\n        "])),t+1,e)).join("\n\n")),{cause:e[e.length-1]}),this.errors=e,this.name="RetryError"}get attempts(){return this.errors.length}};async function fd(e,t){let{exponentialDelayBase:n=1e3}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=[];for(let r=0;r<t;r++){const o=await e(r);if("ok"===o.status)return Object.assign(ld.ok(o.data),{attempts:r+1});a.push(o.error),r<t-1&&await nd((Math.random()+.5)*n*2**r)}return Object.assign(ld.error(new pd(a)),{attempts:t})}function md(e){if(!Ut.crypto)throw new hn("Crypto API is not available in this environment. Are you using an old browser?");if(!Ut.crypto.getRandomValues)throw new hn("crypto.getRandomValues is not available in this environment. Are you using an old browser?");return Ut.crypto.getRandomValues(e)}function gd(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:224;const t=Math.ceil(e/5),n=Math.ceil(5*t/8),a=Dn(md(new Uint8Array(n)));return a.slice(a.length-t).toLowerCase()}async function vd(e,t,n){const a=await crypto.subtle.importKey("raw","string"===typeof t?(new TextEncoder).encode(t):t,"HKDF",!1,["deriveKey"]);return await crypto.subtle.deriveKey({name:"HKDF",salt:n,hash:"SHA-256",info:(new TextEncoder).encode(JSON.stringify(["stack-crypto-helper
2-derived-symmetric-key",e,"string"===typeof t?"string-key":"binary-key",An(n)]))},a,{name:"AES-GCM",length:256},!1,["encrypt","decrypt"])}async function yd(e){var t,n;const a=e=>"string"===typeof e?(new TextEncoder).encode(e):e,r=e=>An(a(e)),o=await crypto.subtle.importKey("raw",a(e.value),"PBKDF2",!1,["deriveBits"]);return new Uint8Array(await crypto.subtle.deriveBits({name:"PBKDF2",salt:(new TextEncoder).encode(JSON.stringify(["stack-crypto-helper-iterated-hash",e.purpose,r(null!==(t=e.salt)&&void 0!==t?t:""),r(null!==(n=e.extra)&&void 0!==n?n:"")])),iterations:e.iterations,hash:"SHA-256"},o,256))}function wd(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new URL(...t)}catch(oL){return null}}function _d(e){return!!wd(e)}function xd(e){const t=wd(e);return!!t&&(!("localhost"!==t.hostname&&!t.hostname.endsWith(".localhost"))||!!t.hostname.match(/^127\.\d+\.\d+\.\d+$/))}function bd(e){return e.pathname+e.search+e.hash}function kd(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return Gt(e,...n.map(encodeURIComponent))}function Cd(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Cd(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function Dd(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Cd(e))&&(a&&(a+=" "),a+=t);return a}pd.prototype.name="RetryError";const Ad=(e,t)=>{var n;if(0===e.length)return t.classGroupId;const a=e[0],r=t.nextPart.get(a),o=r?Ad(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return null===(n=t.validators.find(e=>{let{validator:t}=e;return t(i)}))||void 0===n?void 0:n.classGroupId},Ed=/^\[(.+)\]$/,jd=e=>{if(Ed.test(e)){const t=Ed.exec(e)[1],n=null===t||void 0===t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Sd=e=>{const{theme:t,prefix:n}=e,a={nextPart:new Map,validators:[]};return Fd(Object.entries(e.classGroups),n).forEach(e=>{let[n,r]=e;Nd(r,a,n,t)}),a},Nd=(e,t,n,a)=>{e.forEach(e=>{if("string"===typeof e){return void((""===e?t:Pd(t,e)).classGroupId=n)}if("function"===typeof e)return Td(e)?void Nd(e(a),t,n,a):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(e=>{let[r,o]=e;Nd(o,Pd(t,r),n,a)})})},Pd=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},Td=e=>e.isThemeGetter,Fd=(e,t)=>t?e.map(e=>{let[n,a]=e;const r=a.map(e=>"string"===typeof e?t+e:"object"===typeof e?Object.fromEntries(Object.entries(e).map(e=>{let[n,a]=e;return[t+n,a]})):e);return[n,r]}):e,Od=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,a=new Map;const r=(r,o)=>{n.set(r,o),t++,t>e&&(t=0,a=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=a.get(e))?(r(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):r(e,t)}}},Id=e=>{const{separator:t,experimentalParseClassName:n}=e,a=1===t.length,r=t[0],o=t.length,i=e=>{const n=[];let i,s=0,l=0;for(let d=0;d<e.length;d++){let c=e[d];if(0===s){if(c===r&&(a||e.slice(d,d+o)===t)){n.push(e.slice(l,d)),l=d+o;continue}if("/"===c){i=d;continue}}"["===c?s++:"]"===c&&s--}const c=0===n.length?e:e.substring(l),u=c.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:i&&i>l?i-l:void 0}};return n?e=>n({className:e,parseClassName:i}):i},Rd=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t},Md=e=>p({cache:Od(e.cacheSize),parseClassName:Id(e)},(e=>{const t=Sd(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),Ad(n,t)||jd(e)},getConflictingClassGroupIds:(e,t)=>{const r=n[e]||[];return t&&a[e]?[...r,...a[e]]:r}}})(e)),Bd=/\s+/;function zd(){let e,t,n=0,a="";for(;n<arguments.length;)(e=arguments[n++])&&(t=Ld(e))&&(a&&(a+=" "),a+=t);return a}const Ld=e=>{if("string"===typeof e)return e;let t,n="";for(let a=0;a<e.length;
vendor: 4,766 bytes, line 2
2a++)e[a]&&(t=Ld(e[a]))&&(n&&(n+=" "),n+=t);return n};function Ud(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];let r,o,i,s=function(t){const a=n.reduce((e,t)=>t(e),e());return r=Md(a),o=r.cache.get,i=r.cache.set,s=l,l(t)};function l(e){const t=o(e);if(t)return t;const n=((e,t)=>{const{parseClassName:n,getClassGroupId:a,getConflictingClassGroupIds:r}=t,o=[],i=e.trim().split(Bd);let s="";for(let l=i.length-1;l>=0;l-=1){const e=i[l],{modifiers:t,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(e);let h=Boolean(d),p=a(h?u.substring(0,d):u);if(!p){if(!h){s=e+(s.length>0?" "+s:s);continue}if(p=a(u),!p){s=e+(s.length>0?" "+s:s);continue}h=!1}const f=Rd(t).join(":"),m=c?f+"!":f,g=m+p;if(o.includes(g))continue;o.push(g);const v=r(p,h);for(let n=0;n<v.length;++n){const e=v[n];o.push(m+e)}s=e+(s.length>0?" "+s:s)}return s})(e,r);return i(e,n),n}return function(){return s(zd.apply(null,arguments))}}const Vd=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},qd=/^\[(?:([a-z-]+):)?(.+)\]$/i,Hd=/^\d+\/\d+$/,Wd=new Set(["px","full","screen"]),Kd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Yd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Gd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Jd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$d=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qd=e=>Zd(e)||Wd.has(e)||Hd.test(e),Xd=e=>hh(e,"length",ph),Zd=e=>Boolean(e)&&!Number.isNaN(Number(e)),eh=e=>hh(e,"number",Zd),th=e=>Boolean(e)&&Number.isInteger(Number(e)),nh=e=>e.endsWith("%")&&Zd(e.slice(0,-1)),ah=e=>qd.test(e),rh=e=>Kd.test(e),oh=new Set(["length","size","percentage"]),ih=e=>hh(e,oh,fh),sh=e=>hh(e,"position",fh),lh=new Set(["image","url"]),ch=e=>hh(e,lh,gh),uh=e=>hh(e,"",mh),dh=()=>!0,hh=(e,t,n)=>{const a=qd.exec(e);return!!a&&(a[1]?"string"===typeof t?a[1]===t:t.has(a[1]):n(a[2]))},ph=e=>Yd.test(e)&&!Gd.test(e),fh=()=>!1,mh=e=>Jd.test(e),gh=e=>$d.test(e),vh=(Symbol.toStringTag,()=>{const e=Vd("colors"),t=Vd("spacing"),n=Vd("blur"),a=Vd("brightness"),r=Vd("borderColor"),o=Vd("borderRadius"),i=Vd("borderSpacing"),s=Vd("borderWidth"),l=Vd("contrast"),c=Vd("grayscale"),u=Vd("hueRotate"),d=Vd("invert"),h=Vd("gap"),p=Vd("gradientColorStops"),f=Vd("gradientColorStopPositions"),m=Vd("inset"),g=Vd("margin"),v=Vd("opacity"),y=Vd("padding"),w=Vd("saturate"),_=Vd("scale"),x=Vd("sepia"),b=Vd("skew"),k=Vd("space"),C=Vd("translate"),D=()=>["auto",ah,t],A=()=>[ah,t],E=()=>["",Qd,Xd],j=()=>["auto",Zd,ah],S=()=>["","0",ah],N=()=>[Zd,ah];return{cacheSize:500,separator:":",theme:{colors:[dh],spacing:[Qd,Xd],blur:["none","",rh,ah],brightness:N(),borderColor:[e],borderRadius:["none","","full",rh,ah],borderSpacing:A(),borderWidth:E(),contrast:N(),grayscale:S(),hueRotate:N(),invert:S(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[nh,Xd],inset:D(),margin:D(),opacity:N(),padding:A(),saturate:N(),scale:N(),sepia:S(),skew:N(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",ah]}],container:["container"],columns:[{columns:[rh]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",ah]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}
vendor: 5,048 bytes, line 2
2],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",th,ah]}],basis:[{basis:D()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ah]}],grow:[{grow:S()}],shrink:[{shrink:S()}],order:[{order:["first","last","none",th,ah]}],"grid-cols":[{"grid-cols":[dh]}],"col-start-end":[{col:["auto",{span:["full",th,ah]},ah]}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":[dh]}],"row-start-end":[{row:["auto",{span:[th,ah]},ah]}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ah]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ah]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ah,t]}],"min-w":[{"min-w":[ah,t,"min","max","fit"]}],"max-w":[{"max-w":[ah,t,"none","full","min","max","fit","prose",{screen:[rh]},rh]}],h:[{h:[ah,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ah,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ah,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ah,t,"auto","min","max","fit"]}],"font-size":[{text:["base",rh,Xd]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",eh]}],"font-family":[{font:[dh]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ah]}],"line-clamp":[{"line-clamp":["none",Zd,eh]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Qd,ah]}],"list-image":[{"list-image":["none",ah]}],"list-style-type":[{list:["none","disc","decimal",ah]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Qd,Xd]}],"underline-offset":[{"underline-offset":["auto",Qd,ah]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ah]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ah]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",sh]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ih]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ch]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[f]}
vendor: 4,377 bytes, line 2
2],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[Qd,ah]}],"outline-w":[{outline:[Qd,Xd]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:E()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Qd,Xd]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",rh,uh]}],"shadow-color":[{shadow:[dh]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[a]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",rh,ah]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ah]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",ah]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",ah]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[th,ah]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[b]}],"skew-y":[{"skew-y":[b]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ah]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","
vendor: 4,093 bytes, line 2
2none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ah]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ah]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Qd,Xd,eh]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}),yh=Ud(vh);function wh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return yh(Dd(t))}var _h=n(579);const xh=["className","children"];function bh(e){let{className:t,children:n}
2=e,a=l(e,xh);return(0,_h.jsx)("div",p(p({className:wh("stack-scope animate-pulse rounded-md bg-primary/10",t)},a),{},{children:(0,_h.jsx)("div",{className:"invisible inline",children:n})}))}function kh(){return"undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof document.createElement}var Ch;function Dh(e){return o.use(e)}function Ah(e){const t=o.version;return parseInt(t.split(".")[0])<19?o.forwardRef(e):t=>e(t,t.ref)}function Eh(){throw Dh(ed()),new Error("Somehow a Promise that never resolves was resolved?")}var jh=class extends Error{constructor(e){var t,n,a,r;super(Jt(Ch||(Ch=Ht(["\n      Suspense boundary not found! Read the error message below carefully on how to fix it.\n\n      "," attempted to display a loading indicator, but didn't find a Suspense boundary above it. Please read the error message below carefully.\n      \n      The fix depends on which of the 4 scenarios caused it:\n      \n      1. [Next.js] You are missing a loading.tsx file in your app directory. Fix it by adding a loading.tsx file in your app directory.\n\n      2. [React] You are missing a <Suspense> boundary in your component. Fix it by wrapping your component (or the entire app) in a <Suspense> component.\n\n      3. [Next.js] The component is rendered in the root (outermost) layout.tsx or template.tsx file. Next.js does not wrap those files in a Suspense boundary, even if there is a loading.tsx file in the same folder. To fix it, wrap your layout inside a route group like this:\n\n        - app\n        - - layout.tsx  // contains <html> and <body>, alongside providers and other components that don't need ","\n        - - loading.tsx  // required for suspense\n        - - (main)\n        - - - layout.tsx  // contains the main layout of your app, like a sidebar or a header, and can use ","\n        - - - route.tsx  // your actual main page\n        - - - the rest of your app\n\n        For more information on this approach, see Next's documentation on route groups: https://nextjs.org/docs/app/building-your-application/routing/route-groups\n      \n      4. You caught this error with try-catch or a custom error boundary. Fix this by rethrowing the error or not catching it in the first place.\n\n      See: https://nextjs.org/docs/messages/missing-suspense-with-csr-bailout\n\n      More information on SSR and Suspense boundaries: https://react.dev/reference/react/Suspense#providing-a-fallback-for-server-errors-and-client-only-content\n    "])),null!==(t=e.caller)&&void 0!==t?t:"This code path",null!==(n=e.caller)&&void 0!==n?n:"this code path",null!==(a=e.caller)&&void 0!==a?a:"this code path")),this.name="NoSuspenseBoundaryError",this.reason=null!==(r=e.caller)&&void 0!==r?r:"suspendIfSsr()",this.digest="BAILOUT_TO_CLIENT_SIDE_RENDERING"}};function Sh(e){if(!kh())throw new jh({caller:e})}const Nh=["class","className"],Ph=e=>"boolean"===typeof e?"".concat(e):0===e?"0":e,Th=Dd,Fh=(e,t)=>n=>{var a;if(null==(null===t||void 0===t?void 0:t.variants))return Th(e,null===n||void 0===n?void 0:n.class,null===n||void 0===n?void 0:n.className);const{variants:r,defaultVariants:o}=t,i=Object.keys(r).map(e=>{const t=null===n||void 0===n?void 0:n[e],a=null===o||void 0===o?void 0:o[e];if(null===t)return null;const i=Ph(t)||Ph(a);return r[e][i]}),s=n&&Object.entries(n).reduce((e,t)=>{let[n,a]=t;return void 0===a||(e[n]=a),e},{}),c=null===t||void 0===t||null===(a=t.compoundVariants)||void 0===a?void 0:a.reduce((e,t)=>{let{class:n,className:a}=t,r=l(t,Nh);return Object.entries(r).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes(p(p({},o),s)[t]):p(p({},o),s)[t]===n})?[...e,n,a]:e},[]);return Th(e,i,c,null===n||void 0===n?void 0:n.class,null===n||void 0===n?void 0:n.className)},Oh=["className","type","variant"];var Ih=Fh("stack-scope text-md",{variants:{type:{h1:"text-3xl font-bold",h2:"text-2xl font-semibold",h3:"text-xl font-medium",h4:"text-lg font-medium",p:"text-md",label:"text-sm",footnote:"text-xs",div:"text-md"},variant:{primary:"text-black dark:text-white",secondary:"text-zinc-600 dark:text-zinc-400",destructive:"text-destructive",success:"text-green-500"}},defaultVariants:{type:"p",variant:"primary"}}),Rh=Ah((e,t)=>{let{className:n,type:a,variant:r}=e,o=l(e,Oh);const i=("footnote"===a||"label"===a?"p":a)||"p";return(0,_h.jsx)(i,p({className:wh(Ih({type:a,variant:r,className:n})),ref:t},o))});Rh.displayName="Typography";"undefined"===typeof window||!window.document||window.document.createElement;function Mh(e,t){let{checkForDefaultPrevented:n=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};
2return function(a){if(null===e||void 0===e||e(a),!1===n||!a.defaultPrevented)return null===t||void 0===t?void 0:t(a)}}const Bh=["children"],zh=["scope","children"];function Lh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[];const a=()=>{const t=n.map(e=>o.createContext(e));return function(n){const a=(null===n||void 0===n?void 0:n[e])||t;return o.useMemo(()=>({["__scope".concat(e)]:p(p({},n),{},{[e]:a})}),[n,a])}};return a.scopeName=e,[function(t,a){const r=o.createContext(a),i=n.length;n=[...n,a];const s=t=>{var n;const{scope:a,children:s}=t,c=l(t,zh),u=(null===a||void 0===a||null===(n=a[e])||void 0===n?void 0:n[i])||r,d=o.useMemo(()=>c,Object.values(c));return(0,_h.jsx)(u.Provider,{value:d,children:s})};return s.displayName=t+"Provider",[s,function(n,s){var l;const c=(null===s||void 0===s||null===(l=s[e])||void 0===l?void 0:l[i])||r,u=o.useContext(c);if(u)return u;if(void 0!==a)return a;throw new Error("`".concat(n,"` must be used within `").concat(t,"`"))}]},Uh(a,...t)]}function Uh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const a=t[0];if(1===t.length)return a;const r=()=>{const e=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){const n=e.reduce((e,n)=>{let{useScope:a,scopeName:r}=n;const o=a(t)["__scope".concat(r)];return p(p({},e),o)},{});return o.useMemo(()=>({["__scope".concat(a.scopeName)]:n}),[n])}};return r.scopeName=a.scopeName,r}function Vh(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function qh(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function Hh(e,t){return e.get(qh(e,t))}function Wh(e,t,n){return e.set(qh(e,t),n),n}function Kh(e,t){if("function"===typeof e)return e(t);null!==e&&void 0!==e&&(e.current=t)}function Yh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{let n=!1;const a=t.map(t=>{const a=Kh(t,e);return n||"function"!=typeof a||(n=!0),a});if(n)return()=>{for(let e=0;e<a.length;e++){const n=a[e];"function"==typeof n?n():Kh(t[e],null)}}}}function Gh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.useCallback(Yh(...t),t)}const Jh=["children"],$h=["children"];function Qh(e){const t=Xh(e),n=o.forwardRef((e,n)=>{const{children:a}=e,r=l(e,Jh),i=o.Children.toArray(a),s=i.find(tp);if(s){const e=s.props.children,a=i.map(t=>t===s?o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null:t);return(0,_h.jsx)(t,p(p({},r),{},{ref:n,children:o.isValidElement(e)?o.cloneElement(e,void 0,a):null}))}return(0,_h.jsx)(t,p(p({},r),{},{ref:n,children:a}))});return n.displayName="".concat(e,".Slot"),n}function Xh(e){const t=o.forwardRef((e,t)=>{const{children:n}=e,a=l(e,$h);if(o.isValidElement(n)){const e=function(e){var t,n;let a=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,r=a&&"isReactWarning"in a&&a.isReactWarning;if(r)return e.ref;if(a=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(n),r=function(e,t){const n=p({},t);for(const a in t){const r=e[a],o=t[a];/^on[A-Z]/.test(a)?r&&o?n[a]=function(){const e=o(...arguments);return r(...arguments),e}:r&&(n[a]=r):"style"===a?n[a]=p(p({},r),o):"className"===a&&(n[a]=[r,o].filter(Boolean).join(" "))}return p(p({},e),n)}(a,n.props);return n.type!==o.Fragment&&(r.ref=t?Yh(t,e):e),o.cloneElement(n,r)}return o.Children.count(n)>1?o.Children.only(null):null});return t.displayName="".concat(e,".SlotClone"),t}var Zh=Symbol("radix.slottable");var ep;function tp(e){return o.isValidElement(e)&&"function"===typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Zh}const np=["scope","children"];function ap(e){const t=e+"CollectionProvider",[n,a]=Lh(t),[r,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{const{scope:t,children:n}=e,a=o.useRef(null),i=o.useRef(new Map).current;return(0,_h.jsx)(r,{scope:t,itemMap:i,collectionRef:a,children:n})};s.displayName=t;const c=e+"CollectionSlot",u=Qh(c),d=o.forwardRef((e,t)=>
2{const{scope:n,children:a}=e,r=Gh(t,i(c,n).collectionRef);return(0,_h.jsx)(u,{ref:r,children:a})});d.displayName=c;const h=e+"CollectionItemSlot",f="data-radix-collection-item",m=Qh(h),g=o.forwardRef((e,t)=>{const{scope:n,children:a}=e,r=l(e,np),s=o.useRef(null),c=Gh(t,s),u=i(h,n);return o.useEffect(()=>(u.itemMap.set(s,p({ref:s},r)),()=>{u.itemMap.delete(s)})),(0,_h.jsx)(m,p(p({},{[f]:""}),{},{ref:c,children:a}))});return g.displayName=h,[{Provider:s,Slot:d,ItemSlot:g},function(t){const n=i(e+"CollectionConsumer",t),a=o.useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll("[".concat(f,"]"))),a=Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return a},[n.collectionRef,n.itemMap]);return a},a]}var rp=new WeakMap;ep=new WeakMap,Map;function op(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=function(e,t){const n=e.length,a=ip(t),r=a>=0?a:n+a;return r<0||r>=n?-1:r}(e,t);return-1===n?void 0:e[n]}function ip(e){return e!==e||0===e?0:Math.trunc(e)}var sp=null!==globalThis&&void 0!==globalThis&&globalThis.document?o.useLayoutEffect:()=>{},lp=i[" useId ".trim().toString()]||(()=>{}),cp=0;function up(e){const[t,n]=o.useState(lp());return sp(()=>{e||n(e=>null!==e&&void 0!==e?e:String(cp++))},[e]),e||(t?"radix-".concat(t):"")}var dp=n(7950);const hp=["children"],pp=["children"];function fp(e){const t=mp(e),n=o.forwardRef((e,n)=>{const{children:a}=e,r=l(e,hp),i=o.Children.toArray(a),s=i.find(vp);if(s){const e=s.props.children,a=i.map(t=>t===s?o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null:t);return(0,_h.jsx)(t,p(p({},r),{},{ref:n,children:o.isValidElement(e)?o.cloneElement(e,void 0,a):null}))}return(0,_h.jsx)(t,p(p({},r),{},{ref:n,children:a}))});return n.displayName="".concat(e,".Slot"),n}function mp(e){const t=o.forwardRef((e,t)=>{const{children:n}=e,a=l(e,pp);if(o.isValidElement(n)){const e=function(e){var t,n;let a=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,r=a&&"isReactWarning"in a&&a.isReactWarning;if(r)return e.ref;if(a=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(n),r=function(e,t){const n=p({},t);for(const a in t){const r=e[a],o=t[a];/^on[A-Z]/.test(a)?r&&o?n[a]=function(){const e=o(...arguments);return r(...arguments),e}:r&&(n[a]=r):"style"===a?n[a]=p(p({},r),o):"className"===a&&(n[a]=[r,o].filter(Boolean).join(" "))}return p(p({},e),n)}(a,n.props);return n.type!==o.Fragment&&(r.ref=t?Yh(t,e):e),o.cloneElement(n,r)}return o.Children.count(n)>1?o.Children.only(null):null});return t.displayName="".concat(e,".SlotClone"),t}var gp=Symbol("radix.slottable");function vp(e){return o.isValidElement(e)&&"function"===typeof e.type&&"__radixId"in e.type&&e.type.__radixId===gp}const yp=["asChild"];var wp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=fp("Primitive.".concat(t)),a=o.forwardRef((e,a)=>{const{asChild:r}=e,o=l(e,yp),i=r?n:t;return"undefined"!==typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,_h.jsx)(i,p(p({},o),{},{ref:a}))});return a.displayName="Primitive.".concat(t),p(p({},e),{},{[t]:a})},{});function _p(e,t){e&&dp.flushSync(()=>e.dispatchEvent(t))}function xp(e){const t=o.useRef(e);return o.useEffect(()=>{t.current=e}),o.useMemo(()=>function(){for(var e,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return null===(e=t.current)||void 0===e?void 0:e.call(t,...a)},[])}var bp=i[" useInsertionEffect ".trim().toString()]||sp;function kp(e){let{prop:t,defaultProp:n,onChange:a=()=>{},caller:r}=e;const[i,s,l]=function(e){let{defaultProp:t,onChange:n}=e;const[a,r]=o.useState(t),i=o.useRef(a),s=o.useRef(n);return bp(()=>{s.current=n},[n]),o.useEffect(()=>{var e;i.current!==a&&(null===(e=s.current)||void 0===e||e.call(s,a),i.current=a)},[a,i]),[a,r,s]}({defaultProp:n,onChange:a}),c=void 0!==t,u=c?t:i;{const e=o.useRef(void 0!==t);o.useEffect(()=>{const t=e.current;if(t!==c){const e=t?"controlled":"uncontrolled",n=c?"controlled":"uncontrolled";console.warn("".concat(r," is changing from ").concat(e," to ").concat(n,". Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component."))}e.current=c},[c,r])}const d=o.useCallback(e=>{if(c){const a=function(e){return"function"===typeof e}(e)?e(t):e;var n;if(a!==t)null===(n=l.current)||void 0===n||n.call(l,a)}else s(e)},[c,t,s,l]);return[u,d]}Symbol("RADIX:SYNC_STATE");var Cp=o.createContext(void 0);function Dp(e){const t=o.useContext(Cp);return e||t||"ltr"}const Ap=["__scopeRovingFocusGroup","orientation","loop","dir","currentTabStopId","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus","preventScrollOnEntryFocus"],Ep=["__scopeRovingFocusGroup","focusable","active","tabStopId","children"];var jp="rovingFocusGroup.onEntryFocus",Sp={bubbles:!1,cancelable:!0},Np="RovingFocusGroup",[Pp,Tp,Fp]=ap(Np),[Op,Ip]=Lh(Np,[Fp]),[Rp,Mp]=Op(Np),Bp=o.forwardRef((e,t)=>
2(0,_h.jsx)(Pp.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,_h.jsx)(Pp.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,_h.jsx)(zp,p(p({},e),{},{ref:t}))})}));Bp.displayName=Np;var zp=o.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:a,loop:r=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:u,onEntryFocus:d,preventScrollOnEntryFocus:h=!1}=e,f=l(e,Ap),m=o.useRef(null),g=Gh(t,m),v=Dp(i),[y,w]=kp({prop:s,defaultProp:null!==c&&void 0!==c?c:null,onChange:u,caller:Np}),[_,x]=o.useState(!1),b=xp(d),k=Tp(n),C=o.useRef(!1),[D,A]=o.useState(0);return o.useEffect(()=>{const e=m.current;if(e)return e.addEventListener(jp,b),()=>e.removeEventListener(jp,b)},[b]),(0,_h.jsx)(Rp,{scope:n,orientation:a,dir:v,loop:r,currentTabStopId:y,onItemFocus:o.useCallback(e=>w(e),[w]),onItemShiftTab:o.useCallback(()=>x(!0),[]),onFocusableItemAdd:o.useCallback(()=>A(e=>e+1),[]),onFocusableItemRemove:o.useCallback(()=>A(e=>e-1),[]),children:(0,_h.jsx)(wp.div,p(p({tabIndex:_||0===D?-1:0,"data-orientation":a},f),{},{ref:g,style:p({outline:"none"},e.style),onMouseDown:Mh(e.onMouseDown,()=>{C.current=!0}),onFocus:Mh(e.onFocus,e=>{const t=!C.current;if(e.target===e.currentTarget&&t&&!_){const t=new CustomEvent(jp,Sp);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=k().filter(e=>e.focusable);qp([e.find(e=>e.active),e.find(e=>e.id===y),...e].filter(Boolean).map(e=>e.ref.current),h)}}C.current=!1}),onBlur:Mh(e.onBlur,()=>x(!1))}))})}),Lp="RovingFocusGroupItem",Up=o.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:a=!0,active:r=!1,tabStopId:i,children:s}=e,c=l(e,Ep),u=up(),d=i||u,h=Mp(Lp,n),f=h.currentTabStopId===d,m=Tp(n),{onFocusableItemAdd:g,onFocusableItemRemove:v,currentTabStopId:y}=h;return o.useEffect(()=>{if(a)return g(),()=>v()},[a,g,v]),(0,_h.jsx)(Pp.ItemSlot,{scope:n,id:d,focusable:a,active:r,children:(0,_h.jsx)(wp.span,p(p({tabIndex:f?0:-1,"data-orientation":h.orientation},c),{},{ref:t,onMouseDown:Mh(e.onMouseDown,e=>{a?h.onItemFocus(d):e.preventDefault()}),onFocus:Mh(e.onFocus,()=>h.onItemFocus(d)),onKeyDown:Mh(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void h.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const a=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(a)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(a)?void 0:Vp[a]}(e,h.orientation,h.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=m().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();const a=n.indexOf(e.currentTarget);n=h.loop?function(e,t){return e.map((n,a)=>e[(t+a)%e.length])}(n,a+1):n.slice(a+1)}setTimeout(()=>qp(n))}}),children:"function"===typeof s?s({isCurrentTabStop:f,hasTabStop:null!=y}):s}))})});Up.displayName=Lp;var Vp={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function qp(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=document.activeElement;for(const a of e){if(a===n)return;if(a.focus({preventScroll:t}),document.activeElement!==n)return}}var Hp=Bp,Wp=Up;var Kp=e=>{const{present:t,children:n}=e,a=function(e){const[t,n]=o.useState(),a=o.useRef(null),r=o.useRef(e),i=o.useRef("none"),s=e?"mounted":"unmounted",[l,c]=function(e,t){return o.useReducer((e,n)=>{const a=t[e][n];return null!==a&&void 0!==a?a:e},e)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return o.useEffect(()=>{const e=Yp(a.current);i.current="mounted"===l?e:"none"},[l]),sp(()=>{const t=a.current,n=r.current;if(n!==e){const a=i.current,o=Yp(t);if(e)c("MOUNT");else if("none"===o||"none"===(null===t||void 0===t?void 0:t.display))c("UNMOUNT");else{c(n&&a!==o?"ANIMATION_OUT":"UNMOUNT")}r.current=e}},[e,c]),sp(()=>{if(t){var e;let n;const o=null!==(e=t.ownerDocument.defaultView)&&void 0!==e?e:window,s=e=>{const i=Yp(a.current).includes(CSS.escape(e.animationName));if(e.target===t&&i&&(c("ANIMATION_END"),!r.current)){const e=t.style.animationFillMode;t.style.animationFillMode="forwards",n=o.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=e)})}},l=e=>{e.target===t&&(i.current=Yp(a.current))};return t.addEventListener("animationstart",l),t.addEventListener("animationcancel",s),t.addEventListener("animationend",s),()=>{o.clearTimeout(n),t.removeEventListener("animationstart",l),t.removeEventListener("animationcancel",s),t.removeEventListener("animationend",s)}}c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:o.useCallback(e=>{a.current=e?getComputedStyle(e):null,n(e)},[])}}(t),r="function"===typeof n?n({present:a.isPresent}):o.Children.only(n),i=Gh(a.ref,function(e){var t,n;let a=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,r=a&&"isReactWarning"in a&&a.isReactWarning;if(r)return e.ref;if(a=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(r));return"function"===typeof n||a.isPresent?o.cloneElement(r,{ref:i}):null};function Yp(e){return(null===e||void 0===e?void 0:e.animationName)||"none"}Kp.displayName="Presence";const Gp=["__scopeTabs","value","onValueChange","defaultValue","orientation","dir","activationMode"],Jp=["__scopeTabs","loop"],$p=["__scopeTabs","value","disabled"],Qp=["__scopeTabs","value","forceMount","children"];var Xp="Tabs",[Zp,ef]=Lh(Xp,[Ip]),tf=Ip(),[nf,af]=Zp(Xp),rf=o.forwardRef((e,t)=>
2{const{__scopeTabs:n,value:a,onValueChange:r,defaultValue:o,orientation:i="horizontal",dir:s,activationMode:c="automatic"}=e,u=l(e,Gp),d=Dp(s),[h,f]=kp({prop:a,onChange:r,defaultProp:null!==o&&void 0!==o?o:"",caller:Xp});return(0,_h.jsx)(nf,{scope:n,baseId:up(),value:h,onValueChange:f,orientation:i,dir:d,activationMode:c,children:(0,_h.jsx)(wp.div,p(p({dir:d,"data-orientation":i},u),{},{ref:t}))})});rf.displayName=Xp;var of="TabsList",sf=o.forwardRef((e,t)=>{const{__scopeTabs:n,loop:a=!0}=e,r=l(e,Jp),o=af(of,n),i=tf(n);return(0,_h.jsx)(Hp,p(p({asChild:!0},i),{},{orientation:o.orientation,dir:o.dir,loop:a,children:(0,_h.jsx)(wp.div,p(p({role:"tablist","aria-orientation":o.orientation},r),{},{ref:t}))}))});sf.displayName=of;var lf="TabsTrigger",cf=o.forwardRef((e,t)=>{const{__scopeTabs:n,value:a,disabled:r=!1}=e,o=l(e,$p),i=af(lf,n),s=tf(n),c=hf(i.baseId,a),u=pf(i.baseId,a),d=a===i.value;return(0,_h.jsx)(Wp,p(p({asChild:!0},s),{},{focusable:!r,active:d,children:(0,_h.jsx)(wp.button,p(p({type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:c},o),{},{ref:t,onMouseDown:Mh(e.onMouseDown,e=>{r||0!==e.button||!1!==e.ctrlKey?e.preventDefault():i.onValueChange(a)}),onKeyDown:Mh(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&i.onValueChange(a)}),onFocus:Mh(e.onFocus,()=>{const e="manual"!==i.activationMode;d||r||!e||i.onValueChange(a)})}))}))});cf.displayName=lf;var uf="TabsContent",df=o.forwardRef((e,t)=>{const{__scopeTabs:n,value:a,forceMount:r,children:i}=e,s=l(e,Qp),c=af(uf,n),u=hf(c.baseId,a),d=pf(c.baseId,a),h=a===c.value,f=o.useRef(h);return o.useEffect(()=>{const e=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,_h.jsx)(Kp,{present:r||h,children:n=>{let{present:a}=n;return(0,_h.jsx)(wp.div,p(p({"data-state":h?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":u,hidden:!a,id:d,tabIndex:0},s),{},{ref:t,style:p(p({},e.style),{},{animationDuration:f.current?"0s":void 0}),children:a&&i}))}})});function hf(e,t){return"".concat(e,"-trigger-").concat(t)}function pf(e,t){return"".concat(e,"-content-").concat(t)}df.displayName=uf;var ff=rf,mf=sf,gf=cf,vf=df;const yf=["className"],wf=["className"],_f=["className"];var xf=ff,bf=Ah((e,t)=>{let{className:n}=e,a=l(e,yf);return(0,_h.jsx)(mf,p({ref:t,className:wh("stack-scope inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",n)},a))});bf.displayName=mf.displayName;var kf=Ah((e,t)=>{let{className:n}=e,a=l(e,wf);return(0,_h.jsx)(gf,p({ref:t,className:wh("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",n)},a))});kf.displayName=gf.displayName;var Cf=Ah((e,t)=>{let{className:n}=e,a=l(e,_f);return(0,_h.jsx)(vf,p({ref:t,className:wh("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",n)},a))});function Df(e){return Math.random()<1e-5&&Math.random()>.99999&&Math.random()<1e-5&&Math.random()>.99999?"this will never happen":e}function Af(e){const t=[],n="/projects/".concat(e.id,"/domains");e.config.allow_localhost&&t.push({message:"Localhost is not allowed in production mode, turn off 'Allow localhost' in project settings",relativeFixUrl:n});for(const{domain:a}of e.config.domains){let r;try{const e=a.replace(/\*+/g,"wildcard-placeholder");r=new URL(e)}catch(oL){gn("production-mode-domain-not-valid",new hn("Domain was somehow not a valid URL; we should've caught this when setting the domain in the first place",{domain:a,projectId:e})),t.push({message:"Trusted domain is not a valid URL: "+a,relativeFixUrl:n});continue}xd(r)?t.push({message:"Localhost domains are not allowed to be trusted in production mode: "+a,relativeFixUrl:n}):r.hostname.match(/^\d+(\.\d+)*$/)?t.push({message:"Direct IPs are not valid for trusted domains in production mode: "+a,relativeFixUrl:n}):"https:"!==r.protocol&&t.push({message:"Trusted domains should be HTTPS: "+a,relativeFixUrl:n})}return t}Cf.displayName=vf.displayName;var Ef=Symbol.for("StackAuth--DO-NOT-USE-OR-YOU-WILL-BE-FIRED--StackAppInternals");function jf(e){var t,n,a,r,o,i,s,l,c,u,d,h,f,m,g,v,y,w;return{display_name:e.displayName,description:e.description,is_production_mode:e.isProductionMode,logo_url:e.logoUrl,logo_full_url:e.logoFullUrl,logo_dark_mode_url:e.logoDarkModeUrl,logo_full_dark_mode_url:e.logoFullDarkModeUrl,config:{domains:null===(t=e.config)||void 0===t||null===(t=t.domains)||void 0===t?void 0:t.map(e=>({domain:e.domain,handler_path:e.handlerPath})),oauth_providers:null===(n=e.config)||void 0===n||null===(n=n.oauthProviders)||void 0===n?void 0:n.map(e=>p({id:e.id,type:e.type},"standard"===e.type&&{client_id:e.clientId,client_secret:e.clientSecret,facebook_config_id:e.facebookConfigId,microsoft_tenant_id:e.microsoftTenantId,apple_bundle_ids:e.appleBundleIds})),email_config:(null===(a=e.config)||void 0===a?void 0:a.emailConfig)&&("shared"===e.config.emailConfig.type?{type:"shared"}:{type:"standard",host:e.config.emailConfig.host,port:e.config.emailConfig.port,username:e.config.emailConfig.username,password:e.config.emailConfig.password,sender_name:e.config.emailConfig.senderName,sender_email:e.config.emailConfig.senderEmail}),email_theme:null===(r=e.config)||void 0===r?void 0:r.emailTheme,sign_up_enabled:null===(o=e.config)||void 0===o?void 0:o.signUpEnabled,credential_enabled:null===(i=e.config)||void 0===i?void 0:i.credentialEnabled,magic_link_enabled:null===(s=e.config)||void 0===s?void 0:s.magicLinkEnabled,passkey_enabled:null===(l=e.config)||void 0===l?void 0:l.passkeyEnabled,allow_localhost:null===(c=e.config)||void 0===c?void 0:c.allowLocalhost,create_team_on_sign_up:null===(u=e.config)||void 0===u?void 0:u.createTeamOnSignUp,client_team_creation_enabled:null===(d=e.config)||void 0===d?void 0:d.clientTeamCreationEnabled,client_user_deletion_enabled:null===(h=e.config)||void 0===h?void 0:h.clientUserDeletionEnabled,team_creator_default_permissions:null===(f=e.config)||void 0===f?void 0:f.teamCreatorDefaultPermissions,team_member_default_permissions:null===(m=e.config)||void 0===m?void 0:m.teamMemberDefaultPermissions,user_default_permissions:null===(g=e.config)||void 0===g?void 0:g.userDefaultPermissions,oauth_account_merge_strategy:null===(v=e.config)||void 0===v?void 0:v.oauthAccountMergeStrategy,allow_user_api_keys:null===(y=e.config)||void 0===y?void 0:y.allowUserApiKeys,allow_team_api_keys:null===(w=e.config)||void 0===w?void 0:w.allowTeamApiKeys}}}function Sf(e){const t=new Ju;return function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];if(t.has(a))return t.get(a);const o=e(...a);return t.set(a,o),o}}var Nf,Pf=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._fetcher=e,this._options=t,this._map=new Ju,this.isCacheAvailable=this._createKeyed("isCacheAvailable"),this.getIfCached=this._createKeyed("getIfCached"),this.getOrWait=this._createKeyed("getOrWait"),this.forceSetCac
2hedValue=this._createKeyed("forceSetCachedValue"),this.forceSetCachedValueAsync=this._createKeyed("forceSetCachedValueAsync"),this.refresh=this._createKeyed("refresh"),this.invalidate=this._createKeyed("invalidate"),this.onStateChange=this._createKeyed("onStateChange"),this.isDirty=this._createKeyed("isDirty")}_createKeyed(e){var t=this;return function(n){const a=t.getValueCache(n);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return a[e].apply(a,o)}}getValueCache(e){let t=this._map.get(e);return t||(t=new Tf(async()=>await this._fetcher(e),p(p({},this._options),{},{onSubscribe:this._options.onSubscribe?t=>this._options.onSubscribe(e,t):void 0})),this._map.set(e,t)),t}async refreshWhere(e){const t=[];for(const[n,a]of this._map)e(n)&&t.push(a.refresh());await Promise.all(t)}async invalidateWhere(e){const t=[];for(const[n,a]of this._map)e(n)&&t.push(a.invalidate().catch(()=>{}));await Promise.all(t)}},Tf=class{constructor(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._options=n,this._subscriptionsCount=0,this._unsubscribers=[],this._mostRecentRefreshPromiseIndex=0,this._store=new rl,this._rateLimitOptions=p({concurrency:1,throttleMs:300},on(null!==(t=n.rateLimiter)&&void 0!==t?t:{})),this._fetcher=function(e,t){let n=performance.now(),a=[],r=new Map;const o=async()=>{for(var o,i;;)if(n>performance.now())await nd(Math.max(1,n-performance.now()+1));else{if(0!==a.length)break;{const e=Qi();await new Promise(t=>{r.set(e,t)}),r.delete(e)}}const s=t.batchCalls?a.splice(0,a.length):[a.shift()],l=performance.now(),c=await ld.fromPromise(e()),u=performance.now();n=Math.max(n,l+(null!==(o=t.throttleMs)&&void 0!==o?o:0),u+(null!==(i=t.gapMs)&&void 0!==i?i:0));for(const e of s)"ok"===c.status?e[0](c.data):e[1](c.error)};return rd(async()=>{for(;;)await o()}),()=>new Promise((e,o)=>{var i;n=Math.max(n,performance.now()+(null!==(i=t.debounceMs)&&void 0!==i?i:0)),a.push([e,o]),r.forEach(e=>e())})}(e,p(p({},this._rateLimitOptions),{},{batchCalls:!0}))}isCacheAvailable(){return this._store.isAvailable()}getIfCached(){return this._store.get()}getOrWait(e){const t=this.getIfCached();return"read-write"===e&&"ok"===t.status?Qu(t.data):this._refetch(e)}_set(e){this._store.set(e)}_setAsync(e){0!==this._subscriptionsCount||kh()||this._invalidateCacheSoon();const t=td(e);return this._pendingPromise=t,td(this._store.setAsync(t).then(()=>{}))}_refetch(e){if("read-write"===e&&this._pendingPromise)return this._pendingPromise;const t=td(this._fetcher());return"never"===e?t:td(this._setAsync(t).then(()=>t))}forceSetCachedValue(e){this._set(e)}forceSetCachedValueAsync(e){return this._setAsync(e)}async refresh(){this._subscriptionsCount>0&&await this.getOrWait("write-only")}async invalidate(){this._store.setUnavailable(),this._pendingPromise=void 0,await this.refresh()}isDirty(){return void 0===this._pendingPromise}_invalidateCacheSoon(){const e=++this._mostRecentRefreshPromiseIndex;rd(async()=>{await nd(5e3),0===this._subscriptionsCount&&e===this._mostRecentRefreshPromiseIndex&&await this.invalidate()})}onStateChange(e){const t=this._store.onChange(e);if(rd(this.getOrWait("read-write")),0===this._subscriptionsCount++&&this._options.onSubscribe){const e=this._options.onSubscribe(()=>{rd(this.refresh())});this._unsubscribers.push(e)}let n=!1;return{unsubscribe:()=>{if(!n&&(n=!0,t.unsubscribe(),0===--this._subscriptionsCount)){this._invalidateCacheSoon();for(const e of this._unsubscribers)e()}}}}},Ff=null!==(Nf=globalThis.process)&&void 0!==Nf?Nf:{env:{}},Of="js @stackframe/[email protected]";if(Of.startsWith("STACK_COMPILE_TIME"))throw new hn("Client version was not replaced. Something went wrong during build!");var If=e=>new Pf(async t=>await ld.fromThrowingAsync(async()=>await e(t)),{}),Rf=e=>new Pf(async t=>{let[n,...a]=t;return await ld.fromThrowingAsync(async()=>await e(n,a))},{onSubscribe:(e,t)=>{let[n]=e;const a=n.onInvalidate(()=>t());return()=>a.unsubscribe()}});function Mf(e){var t,n;return p(p({},null!==(t=null===(n=e.inheritsFrom)||void 0===n?void 0:n[Ef].getConstructorOptions())&&void 0!==t?t:{}),on(ln(e,["inheritsFrom"])))}function Bf(){return Ff.env.NEXT_PUBLIC_STACK_PROJECT_ID||Ff.env.STACK_PROJECT_ID||cn(new Error("Welcome to Stack Auth! It seems that you haven't provided a project ID. Please create a project on the Stack dashboard at https://app.stack-auth.com and put it in the NEXT_PUBLIC_STACK_PROJECT_ID environment variable."))}function zf(){return Ff.env.NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY||Ff.env.STACK_PUBLISHABLE_CLIENT_KEY}function Lf(){return Ff.env.STACK_SECRET_SERVER_KEY||cn(new Error("No secret server key provided. Please copy your key from the Stack dashboard and put it in the STACK_SECRET_SERVER_KEY environment variable."))}function Uf(){return JSON.parse(Ff.env.NEXT_PUBLIC_STACK_EXTRA_REQUEST_HEADERS||Ff.env.STACK_EXTRA_REQUEST_HEADERS||"{}")}function Vf(e){let t;return e?t="string"===typeof e?e:kh()?e.browser:e.server:(t=kh()?Ff.env.NEXT_PUBLIC_BROW
2SER_STACK_API_URL||Ff.env.NEXT_PUBLIC_STACK_API_URL_BROWSER||Ff.env.STACK_API_URL_BROWSER:Ff.env.NEXT_PUBLIC_SERVER_STACK_API_URL||Ff.env.NEXT_PUBLIC_STACK_API_URL_SERVER||Ff.env.STACK_API_URL_SERVER,t=t||Ff.env.NEXT_PUBLIC_STACK_API_URL||Ff.env.STACK_API_URL||Ff.env.NEXT_PUBLIC_STACK_URL||qf),(e=>{if(!e)return e;const t=Ff.env.NEXT_PUBLIC_STACK_PORT_PREFIX;return t?e.replace(/\$\{NEXT_PUBLIC_STACK_PORT_PREFIX:-81\}/g,t):e})(t.endsWith("/")?t.slice(0,-1):t)}var qf="https://api.stack-auth.com";function Hf(){return new nl({refreshToken:null,accessToken:null})}var Wf=new Map;function Kf(e,t,n){var a;Sh(n);const r=null!==(i="use-async-cache-execution-hooks",a=Ut[qt][i])&&void 0!==a?a:[];var i;for(const o of r)o({cache:e,caller:n,dependencies:t});const s=o.useId();o.useEffect(()=>{Wf.delete(s)},[...t,s]);const l=(0,o.useCallback)(n=>{const{unsubscribe:a}=e.onStateChange(t,()=>{Wf.delete(s),n()});return a},[e,...t]),c=(0,o.useCallback)(()=>(Wf.has(s)||Wf.set(s,e.getOrWait(t,"read-write")),Wf.get(s)),[e,...t]),u=Dh(o.useSyncExternalStore(l,c,()=>cn(new Error("getServerSnapshot should never be called in useAsyncCache because we restrict to CSR earlier"))));if("error"===u.status){const e=u.error;throw e instanceof Error&&!e.__stackHasConcatenatedStacktraces&&(dn(e,new Error),e.__stackHasConcatenatedStacktraces=!0),e}return u.data}function Yf(e){const t=new Uint8Array(e);let n="";for(const a of t)n+=String.fromCharCode(a);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Gf(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),n=(4-t.length%4)%4,a=t.padEnd(t.length+n,"="),r=atob(a),o=new ArrayBuffer(r.length),i=new Uint8Array(o);for(let s=0;s<r.length;s++)i[s]=r.charCodeAt(s);return o}function Jf(){return $f.stubThis(void 0!==(null===globalThis||void 0===globalThis?void 0:globalThis.PublicKeyCredential)&&"function"===typeof globalThis.PublicKeyCredential)}const $f={stubThis:e=>e};function Qf(e){const{id:t}=e;return p(p({},e),{},{id:Gf(t),transports:e.transports})}function Xf(e){return"localhost"===e||/^((xn--[a-z0-9-]+|[a-z0-9]+(-[a-z0-9]+)*)\.)+([a-z]{2,}|xn--[a-z0-9-]+)$/i.test(e)}class Zf extends Error{constructor(e){let{message:t,code:n,cause:a,name:r}=e;super(t,{cause:a}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=null!==r&&void 0!==r?r:a.name,this.code=n}}const em=new class{constructor(){Object.defineProperty(this,"controller",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}createNewAbortSignal(){if(this.controller){const e=new Error("Cancelling existing WebAuthn API call for new one");e.name="AbortError",this.controller.abort(e)}const e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){const e=new Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}},tm=["cross-platform","platform"];function nm(e){if(e&&!(tm.indexOf(e)<0))return e}async function am(e){var t;!e.optionsJSON&&e.challenge&&(console.warn("startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),e={optionsJSON:e});const{optionsJSON:n,useAutoRegister:a=!1}=e;if(!Jf())throw new Error("WebAuthn is not supported in this browser");const r=p(p({},n),{},{challenge:Gf(n.challenge),user:p(p({},n.user),{},{id:Gf(n.user.id)}),excludeCredentials:null===(t=n.excludeCredentials)||void 0===t?void 0:t.map(Qf)}),o={};let i;a&&(o.mediation="conditional"),o.publicKey=r,o.signal=em.createNewAbortSignal();try{i=await navigator.credentials.create(o)}
2catch(g){throw function(e){let{error:t,options:n}=e;const{publicKey:a}=n;if(!a)throw Error("options was missing required publicKey property");if("AbortError"===t.name){if(n.signal instanceof AbortSignal)return new Zf({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else if("ConstraintError"===t.name){var r,o,i;if(!0===(null===(r=a.authenticatorSelection)||void 0===r?void 0:r.requireResidentKey))return new Zf({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:t});if("conditional"===n.mediation&&"required"===(null===(o=a.authenticatorSelection)||void 0===o?void 0:o.userVerification))return new Zf({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:t});if("required"===(null===(i=a.authenticatorSelection)||void 0===i?void 0:i.userVerification))return new Zf({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:t})}else{if("InvalidStateError"===t.name)return new Zf({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:t});if("NotAllowedError"===t.name)return new Zf({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if("NotSupportedError"===t.name)return 0===a.pubKeyCredParams.filter(e=>"public-key"===e.type).length?new Zf({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:t}):new Zf({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:t});if("SecurityError"===t.name){const e=globalThis.location.hostname;if(!Xf(e))return new Zf({message:"".concat(globalThis.location.hostname," is an invalid domain"),code:"ERROR_INVALID_DOMAIN",cause:t});if(a.rp.id!==e)return new Zf({message:'The RP ID "'.concat(a.rp.id,'" is invalid for this domain'),code:"ERROR_INVALID_RP_ID",cause:t})}else if("TypeError"===t.name){if(a.user.id.byteLength<1||a.user.id.byteLength>64)return new Zf({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:t})}else if("UnknownError"===t.name)return new Zf({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return t}({error:g,options:o})}if(!i)throw new Error("Registration was not completed");const{id:s,rawId:l,response:c,type:u}=i;let d,h,f,m;if("function"===typeof c.getTransports&&(d=c.getTransports()),"function"===typeof c.getPublicKeyAlgorithm)try{h=c.getPublicKeyAlgorithm()}catch(v){rm("getPublicKeyAlgorithm()",v)}if("function"===typeof c.getPublicKey)try{const e=c.getPublicKey();null!==e&&(f=Yf(e))}catch(v){rm("getPublicKey()",v)}if("function"===typeof c.getAuthenticatorData)try{m=Yf(c.getAuthenticatorData())}catch(v){rm("getAuthenticatorData()",v)}return{id:s,rawId:Yf(l),response:{attestationObject:Yf(c.attestationObject),clientDataJSON:Yf(c.clientDataJSON),transports:d,publicKeyAlgorithm:h,publicKey:f,authenticatorData:m},type:u,clientExtensionResults:i.getClientExtensionResults(),authenticatorAttachment:nm(i.authenticatorAttachment)}}function rm(e,t){console.warn("The browser extension that intercepted this WebAuthn API call incorrectly implemented ".concat(e,". You should report this error to them.\n"),t)}const om={stubThis:e=>e};async function im(e){var t;!e.optionsJSON&&e.challenge&&(console.warn("startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),e={optionsJSON:e});const{optionsJSON:n,useBrowserAutofill:a=!1,verifyBrowserAutofillInput:r=!0}=e;if(!Jf())throw new Error("WebAuthn is not supported in this browser");let o;var i;0!==(null===(t=n.allowCredentials)||void 0===t?void 0:t.length)&&(o=null===(i=n.allowCredentials)||void 0===i?void 0:i.map(Qf));const s=p(p({},n),{},{challenge:Gf(n.challenge),allowCredentials:o}),l={};if(a){if(!await function(){if(!Jf())return om.stubThis(new Promise(e=>e(!1)));const e=globalThis.PublicKeyCredential;return void 0===(null===e||void 0===e?void 0:e.isConditionalMediationAvailable)?om.stubThis(new Promise(e=>e(!1))):om.stubThis(e.isConditionalMediationAvailable())}())throw Error("Browser does not support WebAuthn autofill");if(document.querySelectorAll("input[autocomplete$='webauthn']").length<1&&r)throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');l.mediation="conditional",s.allowCredentials=[]}let c;l.publicKey=s,l.signal=em.createNewAbortSignal();try{c=await navigator.credentials.get(l)}
2catch(g){throw function(e){let{error:t,options:n}=e;const{publicKey:a}=n;if(!a)throw Error("options was missing required publicKey property");if("AbortError"===t.name){if(n.signal instanceof AbortSignal)return new Zf({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if("NotAllowedError"===t.name)return new Zf({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if("SecurityError"===t.name){const e=globalThis.location.hostname;if(!Xf(e))return new Zf({message:"".concat(globalThis.location.hostname," is an invalid domain"),code:"ERROR_INVALID_DOMAIN",cause:t});if(a.rpId!==e)return new Zf({message:'The RP ID "'.concat(a.rpId,'" is invalid for this domain'),code:"ERROR_INVALID_RP_ID",cause:t})}else if("UnknownError"===t.name)return new Zf({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return t}({error:g,options:l})}if(!c)throw new Error("Authentication was not completed");const{id:u,rawId:d,response:h,type:f}=c;let m;return h.userHandle&&(m=Yf(h.userHandle)),{id:u,rawId:Yf(d),response:{authenticatorData:Yf(h.authenticatorData),clientDataJSON:Yf(h.clientDataJSON),signature:Yf(h.signature),userHandle:m},type:f,clientExtensionResults:c.getClientExtensionResults(),authenticatorAttachment:nm(c.authenticatorAttachment)}}function sm(e,t){if("undefined"===typeof window||!window.location)throw new hn("".concat(t," option is required in a non-browser environment."),{redirectUrl:e});const n=["after_auth_return_to"],a=new URL(window.location.href),r=e?new URL(e,window.location.href):new URL(window.location.href);for(const o of n)a.searchParams.has(o)&&r.searchParams.set(o,a.searchParams.get(o));return r.hash="",r.toString()}async function lm(e,t,n){return p({description:n.description,expires_at_millis:null==n.expiresAt?n.expiresAt:n.expiresAt.getTime(),is_public:n.isPublic},"user"===e?{user_id:t}:{team_id:t})}function cm(e){return{display_name:e.displayName,profile_image_url:e.profileImageUrl,client_metadata:e.clientMetadata}}function um(e){return{display_name:e.displayName,profile_image_url:e.profileImageUrl,creator_user_id:e.creatorUserId}}var dm="Stack Auth: useUser() already returns the user object. Use `const user = useUser()` (or `const user = await app.getUser()`) instead of destructuring it like `const { user } = ...`.";function hm(e){return Object.freeze(e),new Proxy(e,{get:(e,t,n)=>"user"===t?function(){throw new Error(dm)}():e[t]})}function pm(e){return ld.fromThrowing(()=>JSON.parse(e))}var fm=n(3175);function mm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)e[a]=n[a]}return e}var gm={read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};var vm=function e(t,n){function a(e,a,r){if("undefined"!==typeof document){"number"===typeof(r=mm({},n,r)).expires&&(r.expires=new Date(Date.now()+864e5*r.expires)),r.expires&&(r.expires=r.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var i in r)r[i]&&(o+="; "+i,!0!==r[i]&&(o+="="+r[i].split(";")[0]));return document.cookie=e+"="+t.write(a,e)+o}}return Object.create({set:a,get:function(e){if("undefined"!==typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],a={},r=0;r<n.length;r++){var o=n[r].split("="),i=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(a[s]=t.read(i,s),e===s)break}catch(oL){}}return e?a[e]:a}},remove:function(e,t){a(e,"",mm({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,mm({},this.attributes,t))},withConverter:function(t){return e(mm({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}(gm,{path:"/"});function ym(){if(!kh())throw new Error("cookieClient functions can only be called in a browser environment, yet window is undefined")}async function wm(){function e(){throw new hn("Throwing cookie helper is just a placeholder. This should never be called")}return{get:e,getAll:e,set:e,setOrDelete:e,delete:e}}async function _m(){return kh()?xm():await wm()}function xm(){return{get:bm,getAll:km,set:Om,setOrDelete:Pm,delete:Fm}}function bm(e){var t;return null!==(t=km()[e])&&void 0!==t?t:null}function km(){return ym(),vm.set("stack-is-https","true",{secure:!0,expires:new Date(Date.now()+31536e6)}),vm.get()}async function Cm(){return!!kh()&&Dm()}function Dm(){return"undefined"!==typeof window&&"https:"===window.location.protocol}var Am,Em=void 0;function jm(){return null!==Em&&void 0!==Em?Em:Em=function(){if(ym(),!Dm())return!1;const e="__Host-stack-temporary-chips-test-"+Math.random().toString(36).substring(2,15);document.cookie="".concat(e,"=value1; Secure; path=/");const t=document.cookie.split("; ");if(document.cookie="".concat(e,"=delete1; Secure; path=/; expires=Thu, 01 Jan 1970 00:00:00 UTC;"),t.some(t=>t.startsWith(e+"=")))return!1;const n="__Host-stack-temporary-chips-test-"+Math.random().toString(36).substring(2,15);document.cookie="".concat(n,"=delete1; Secure; SameSite=None; Partitioned; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"),document.cookie="".concat(n,"=delete2; Secure; SameSite=None; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"),document.cookie="".concat(n,"=set1; Secure; SameSite=None; Partitioned; path=/"),document.cookie="".concat(n,"=set2; Secure; SameSite=None; path=/");const a=document.cookie.split("; ").filter(e=>e.startsWith(n+"=")).length;return document.cookie="".concat(n,"=delete3; Secure; SameSite=None; Partitioned; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"),document.cookie="".concat(n,"=delete4; Secure; SameSite=None; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"),2===a}()}function Sm(e,t,n){var a;const r=null!==(a=n.secure)&&void 0!==a?a:Dm(),o=jm();vm.set(e,t,p({expires:"session"===n.maxAge?void 0:new Date(Date.now()+1e3*n.maxAge),domain:n.domain,secure:r,sameSite:"Lax"},o?{partitioned:o,sameSite:"None"}:{}))}function Nm(e,t){for(const n of[!0,!1])void 0!==t.domain&&vm.remove(e,{domain:t.domain,secure:Dm(),partitioned:n}),vm.remove(e,{secure:Dm(),partitioned:n})}function Pm(e,t,n){ym(),null===t?Nm(e,n):Sm(e,t,n)}async function Tm(e,t,n){(await _m()).setOrDelete(e,t,n)}
2function Fm(e,t){ym(),Nm(e,t)}function Om(e,t,n){ym(),Sm(e,t,n)}async function Im(){const e=Ml(),t=await async function(e){return Ol(e,"codeVerifier"),Al(await crypto.subtle.digest("SHA-256",kl(e)))}(e),n=Ml();return await async function(e,t,n){(await _m()).set(e,t,n)}("stack-oauth-outer-"+n,e,{maxAge:3600}),{codeChallenge:t,state:n}}async function Rm(e,t,n){const{codeChallenge:a,state:r}=await Im(),o=await e.getOAuthUrl({provider:t.provider,redirectUrl:sm(t.redirectUrl,"redirectUrl"),errorRedirectUrl:sm(t.errorRedirectUrl,"errorRedirectUrl"),afterCallbackRedirectUrl:sm(window.location.href,"afterCallbackRedirectUrl"),codeChallenge:a,state:r,type:"link",session:n,providerScope:t.providerScope});window.location.assign(o),await ed()}function Mm(){var e;const t=["code","state"],n=new URL(window.location.href);for(const i of t)if(!n.searchParams.has(i))return console.warn(new Error("Missing required query parameter on OAuth callback: ".concat(i,". Maybe you opened or reloaded the oauth-callback page from your history?"))),null;const a=null!==(e=n.searchParams.get("state"))&&void 0!==e?e:cn("This should never happen; isn't state required above?"),r=function(e){ym();const t="stack-oauth-outer-"+e,n=bm(t);return n?(Fm(t,{}),{codeVerifier:n}):null}(a);if(!r)return console.warn(Jt(Am||(Am=Ht(["\n      Stack found an outer OAuth callback state in the query parameters, but not in cookies.\n      \n      This could have multiple reasons:\n        - The cookie expired, because the OAuth flow took too long.\n        - The user's browser deleted the cookie, either manually or because of a very strict cookie policy.\n        - The cookie was already consumed by this page, and the user already logged in.\n        - You are using another OAuth client library with the same callback URL as Stack.\n        - The user opened the OAuth callback page from their history.\n\n      Either way, it is probably safe to ignore this warning unless you are debugging an OAuth issue.\n    "])))),null;const o=new URL(n);for(const i of t)o.searchParams.delete(i);return window.history.replaceState({},"",o.toString()),{originalUrl:n,codeVerifier:r.codeVerifier,state:a}}const Bm=["blockClass"],zm=["blockClass"];function Lm(e){var t;if(null===e||void 0===e||null===(t=e.replays)||void 0===t||!t.blockClass)return e;const n=e.replays,{blockClass:a}=n,r=l(n,Bm);return a instanceof RegExp?{replays:p(p({},r),{},{blockClass:{__regexp:a.source,__flags:a.flags}})}:e}function Um(e){var t;if(null===e||void 0===e||null===(t=e.replays)||void 0===t||!t.blockClass)return e;const n=e.replays,{blockClass:a}=n,r=l(n,zm);if("object"===typeof a&&"__regexp"in a){const e=a;return{replays:p(p({},r),{},{blockClass:new RegExp(e.__regexp,e.__flags)})}}return e}function Vm(){return crypto.randomUUID()}function qm(e){const t=function(e){if(!e)return null;try{const t=JSON.parse(e);return"object"!==typeof t||null===t||"string"!==typeof t.session_id||"number"!==typeof t.created_at_ms||"number"!==typeof t.last_activity_ms?null:t}catch(t){return null}}(localStorage.getItem(e.key));if(t&&e.nowMs-t.last_activity_ms<=18e4)return t;const n={session_id:Vm(),created_at_ms:e.nowMs,last_activity_ms:e.nowMs};return localStorage.setItem(e.key,JSON.stringify(n)),n}var Hm=class{constructor(e,t){var n;this._started=!1,this._cancelled=!1,this._stopRecording=null,this._detachListeners=null,this._flushTimer=null,this._events=[],this._approxBytes=0,this._lastPersistActivity=0,this._recording=!1,this._rrwebModule=null,this._lastBrowserSessionId=null,this._takingSnapshot=!1,this._flushInProgress=!1,this._lastKnownAccessToken=null,this._deps=e,this._replayOptions=t,this._sessionReplaySegmentId=Vm(),this._storageKey=(n=e.projectId,"".concat("stack:session-replay:v1",":").concat(n))}start(){this._started||kh()&&(this._started=!0,rd(()=>this._startRecording(),{noErrorLogging:!0}),this._flushTimer=setInterval(()=>this._tick(),5e3))}stop(){this._cancelled=!0,null!==this._flushTimer&&(clearInterval(this._flushTimer),this._flushTimer=null),rd(()=>this._flush({keepalive:!0}),{noErrorLogging:!0}),this._stopCurrentRecording()}clearBuffer(){this._events=[],this._approxBytes=0}_persistActivity(e){const t=qm({key:this._storageKey,nowMs:e});if(e-this._lastPersistActivity<5e3)return t;this._lastPersistActivity=e;const n=p(p({},t),{},{last_activity_ms:e});return localStorage.setItem(this._storageKey,JSON.stringify(n)),t}async _flush(e){if(!this._lastKnownAccessToken)return;if(0===this._events.length)return;if(this._flushInProgress)return;const t=Date.now(),n=qm({key:this._storageKey,nowMs:t}),a=Vm(),r={browser_session_id:n.session_id,session_replay_segment_id:this._sessionReplaySegmentId,batch_id:a,started_at_ms:n.created_at_ms,sent_at_ms:t,events:this._events};this._events=[],this._approxBytes=0,this._flushInProgress=!0;try{const t=await this._deps.sendBatch(JSON.stringify(r),{keepalive:e.keepalive});if("error"===t.status)return void console.warn("SessionRecorder flush failed:",t.error);t.data.ok||console.warn("SessionRecorder flush failed:",t.data.status,await t.data.text())}finally{this._flushInProgress=!1}}async _startRecording(){var e,t;if(this._recording||this._cancelled)return;if(!this._rrwebModule){const e=await ld.fromPromise(n.e(891).then(n.bind(n,9891)));if("error"===e.status)return void console.warn("SessionRecorder: rrweb import failed. Is rrweb installed?",e.error);this._rrwebModule=e.data}if(this._cancelled)return;this._stopRecording=null!==(e=this._rrwebModule.record(p(p({emit:e=>{const t=Date.now(),n=this._persistActivity(t);if(null===this._lastBrowserSessionId)this._lastBrowserSessionId=n.session_id;else if(n.session_id!==this._lastBrowserSessionId&&!this._takingSnapshot){this._lastBrowserSessionId=n.session_id,this._takingSnapshot=!0;try{this._rrwebModule.record.takeFullSnapshot()}finally{this._takingSnapshot=!1}}this._events.push(e),this._approxBytes+=JSON.stringify(e).length,(this._events.length>=200||this._approxBytes>=512e3)&&rd(()=>this._flush({keepalive:!1}),{noErrorLogging:!0})},maskAllInputs:null===(t=this._replayOptions.maskAllInputs)||void 0===t||t},void 0!==this._replayOptions.blockClass?{blockClass:this._replayOptions.blockClass}:{}),void 0!==this._replayOptions.blockSelector?{blockSelector:this._replayOptions.blockSelector}:{})))&&void 0!==e?e:null,this._recording=!0;const a=()=>{rd(()=>this._flush({keepalive:!0}),{noErrorLogging:!0})};window.addEventListener("pagehide",a),document.addEventListener("visibilitychange",a),this._detachListeners=()=>{window.removeEventListener("pagehide",a),document.removeEventListener("visibilitychange",a)}}_stopCurrentRecording(){this._detachListeners&&(this._detachListeners(),this._detachListeners=null),this._stopRecording&&(this._stopRecording(),this._stopRecording=null),this._events=[],this._approxBytes=0,this._recording=!1}_tick(){if(this._cancelled)return;rd(async()=>{this._lastKnownAccessToken=await this._deps.getAccessToken()},{noErrorLogging:!0});!!this._lastKnownAccessToken&&this._events.length>0&&rd(()=>this._flush({keepalive:!1}),{noErrorLogging:!0})}},Wm=class{constructor(e){this._started=!1,this._cancelled=!1,this._detachListeners=null,this._flushTimer=null,this._events=[],this._approxBytes=0,this._lastKnownAccessToken=null,this._lastUrl=null,this._originalPushState=null,this._originalReplaceState=null,this._onPopState=()=>{this._capturePageView("pop")}
2,this._onClickCapture=e=>{var t,n;const a=e.target;a instanceof Element&&this._pushEvent({event_type:"$click",event_at_ms:Date.now(),data:{tag_name:a.tagName.toLowerCase(),text:null!==(t=null===(n=a.textContent)||void 0===n?void 0:n.trim().substring(0,200))&&void 0!==t?t:null,href:this._findNearestAnchorHref(a),selector:this._buildSelector(a),x:e.clientX,y:e.clientY,page_x:e.pageX,page_y:e.pageY,viewport_width:window.innerWidth,viewport_height:window.innerHeight}})},this._onPageHide=()=>{rd(()=>this._flush({keepalive:!0}),{noErrorLogging:!0})},this._deps=e,this._sessionReplaySegmentId=Vm()}start(){this._started||kh()&&(this._started=!0,this._setupPageViewCapture(),this._setupClickCapture(),this._setupPageHideListeners(),this._flushTimer=setInterval(()=>this._tick(),1e4))}stop(){this._cancelled=!0,null!==this._flushTimer&&(clearInterval(this._flushTimer),this._flushTimer=null),rd(()=>this._flush({keepalive:!0}),{noErrorLogging:!0}),this._teardown()}clearBuffer(){this._events=[],this._approxBytes=0}_pushEvent(e){this._events.push(e),this._approxBytes+=JSON.stringify(e).length,(this._events.length>=50||this._approxBytes>=64e3)&&rd(()=>this._flush({keepalive:!1}),{noErrorLogging:!0})}_capturePageView(e){const t=window.location.href;t===this._lastUrl&&"initial"!==e||(this._lastUrl=t,this._pushEvent({event_type:"$page-view",event_at_ms:Date.now(),data:{url:t,path:window.location.pathname,referrer:document.referrer,title:document.title,entry_type:e,viewport_width:window.innerWidth,viewport_height:window.innerHeight,screen_width:window.screen.width,screen_height:window.screen.height}}))}_setupPageViewCapture(){var e=this;this._capturePageView("initial"),this._originalPushState=history.pushState.bind(history),history.pushState=function(){e._originalPushState(...arguments),e._capturePageView("push")},this._originalReplaceState=history.replaceState.bind(history),history.replaceState=function(){e._originalReplaceState(...arguments),e._capturePageView("replace")},window.addEventListener("popstate",this._onPopState)}_buildSelector(e){const t=[];let n=e,a=0;for(;n&&a<5;){let e=n.tagName.toLowerCase();if(n.id){e+="#".concat(n.id),t.unshift(e);break}if(n.className&&"string"===typeof n.className){const t=n.className.trim().split(/\s+/).filter(Boolean);t.length>0&&(e+=".".concat(t.join(".")))}t.unshift(e),n=n.parentElement,a++}return t.join(" > ")}_findNearestAnchorHref(e){let t=e;for(;t;){if("A"===t.tagName&&t.hasAttribute("href"))return t.getAttribute("href");t=t.parentElement}return null}_setupClickCapture(){document.addEventListener("click",this._onClickCapture,{capture:!0})}_setupPageHideListeners(){window.addEventListener("pagehide",this._onPageHide),document.addEventListener("visibilitychange",this._onPageHide),this._detachListeners=()=>{window.removeEventListener("pagehide",this._onPageHide),document.removeEventListener("visibilitychange",this._onPageHide)}}_teardown(){this._detachListeners&&(this._detachListeners(),this._detachListeners=null),this._originalPushState&&(history.pushState=this._originalPushState,this._originalPushState=null),this._originalReplaceState&&(history.replaceState=this._originalReplaceState,this._originalReplaceState=null),window.removeEventListener("popstate",this._onPopState),document.removeEventListener("click",this._onClickCapture,{capture:!0}),this._events=[],this._approxBytes=0}async _flush(e){if(!this._lastKnownAccessToken)return;if(0===this._events.length)return;const t=Date.now(),n=Vm(),a={session_replay_segment_id:this._sessionReplaySegmentId,batch_id:n,sent_at_ms:t,events:this._events};this._events=[],this._approxBytes=0;const r=await this._deps.sendBatch(JSON.stringify(a),{keepalive:e.keepalive});"error"!==r.status?r.data.ok||console.warn("EventTracker flush failed:",r.data.status,await r.data.text()):console.warn("EventTracker flush failed:",r.error)}_tick(){if(this._cancelled)return;rd(async()=>{this._lastKnownAccessToken=await this._deps.getAccessToken()},{noErrorLogging:!0});!!this._lastKnownAccessToken&&this._events.length>0&&rd(()=>this._flush({keepalive:!1}),{noErrorLogging:!0})}};
2const Km=["analytics"];Ym=globalThis.process;var Ym,Gm,Jm=new Map,$m=class e{constructor(t,n){var a,r,o,i,s;this._uniqueIdentifier=void 0,this._sessionRecorder=null,this._eventTracker=null,this.__DEMO_ENABLE_SLIGHT_FETCH_DELAY=!1,this._ownedAdminApps=new Ju,this._currentUserCache=Rf(async e=>(this.__DEMO_ENABLE_SLIGHT_FETCH_DELAY&&await nd(2e3),e.isKnownToBeInvalid()?null:await this._interface.getClientUserByToken(e))),this._currentProjectCache=If(async()=>ld.orThrow(await this._interface.getClientProject())),this._ownedProjectsCache=Rf(async e=>await this._interface.listProjects(e)),this._currentUserPermissionsCache=Rf(async(e,t)=>{let[n,a]=t;return await this._interface.listCurrentUserTeamPermissions({teamId:n,recursive:a},e)}),this._currentUserProjectPermissionsCache=Rf(async(e,t)=>{let[n]=t;return await this._interface.listCurrentUserProjectPermissions({recursive:n},e)}),this._currentUserTeamsCache=Rf(async e=>await this._interface.listCurrentUserTeams(e)),this._currentUserOAuthConnectionAccessTokensCache=Rf(async(e,t)=>{let[n,a]=t;try{return{accessToken:(await this._interface.createProviderAccessToken(n,a||"",e)).access_token}}catch(r){if(!so.OAuthConnectionDoesNotHaveRequiredScope.isInstance(r)&&!so.OAuthConnectionNotConnectedToUser.isInstance(r))throw r}return null}),this._currentUserOAuthConnectionCache=Rf(async(e,t)=>{let[n,a,r]=t;return await this._getUserOAuthConnectionCacheFn({getUser:async()=>ld.orThrow(await this._currentUserCache.getOrWait([e],"write-only")),getOrWaitOAuthToken:async()=>ld.orThrow(await this._currentUserOAuthConnectionAccessTokensCache.getOrWait([e,n,a||""],"write-only")),useOAuthToken:()=>Kf(this._currentUserOAuthConnectionAccessTokensCache,[e,n,a||""],"connection.useAccessToken()"),providerId:n,scope:a,redirect:r,session:e})}),this._currentUserConnectedAccountsCache=Rf(async e=>(await this._interface.listConnectedAccounts(e)).items.map(t=>this._createOAuthConnectionFromCrudItem(t,e))),this._currentUserOAuthConnectionAccessTokensByAccountCache=Rf(async(e,t)=>{let[n,a,r]=t;try{return{accessToken:(await this._interface.createProviderAccessTokenByAccount(n,a,r,e)).access_token}}catch(o){if(so.OAuthConnectionDoesNotHaveRequiredScope.isInstance(o)||so.OAuthConnectionNotConnectedToUser.isInstance(o))return null;throw o}}),this._currentUserValidConnectedAccountForProviderCache=Rf(async(e,t)=>{var n;let[a,r]=t;const o=ld.orThrow(await this._currentUserConnectedAccountsCache.getOrWait([e],"write-only")).filter(e=>e.provider===a),i=r?r.split(" "):void 0;for(const s of o){if("ok"===(await s.getAccessToken({scopes:i})).status)return s}return await Rm(this._interface,{provider:a,redirectUrl:this.urls.oauthCallback,errorRedirectUrl:this.urls.error,providerScope:Qt(r,(null!==(n=this._oauthScopesOnSignIn[a])&&void 0!==n?n:[]).join(" "))},e),await ed()}),this._teamMemberProfilesCache=Rf(async(e,t)=>{let[n]=t;return await this._interface.listTeamMemberProfiles({teamId:n},e)}),this._teamInvitationsCache=Rf(async(e,t)=>{let[n]=t;return await this._interface.listTeamInvitations({teamId:n},e)}),this._currentUserTeamProfileCache=Rf(async(e,t)=>{let[n]=t;return await this._interface.getTeamMemberProfile({teamId:n,userId:"me"},e)}),this._currentUserTeamInvitationsCache=Rf(async e=>await this._interface.listCurrentUserTeamInvitations(e)),this._clientContactChannelsCache=Rf(async e=>await this._interface.listClientContactChannels(e)),this._userApiKeysCache=Rf(async e=>await this._interface.listProjectApiKeys({user_id:"me"},e,"client")),this._teamApiKeysCache=Rf(async(e,t)=>{let[n]=t;return await this._interface.listProjectApiKeys({team_id:n},e,"client")}),this._notificationCategoriesCache=Rf(async e=>await this._interface.listNotificationCategories(e)),this._currentUserOAuthProvidersCache=Rf(async e=>await this._interface.listOAuthProviders({user_id:"me"},e)),this._userItemCache=Rf(async(e,t)=>{let[n,a]=t;return await this._interface.getItem({userId:n,itemId:a},e)}),this._teamItemCache=Rf(async(e,t)=>{let[n,a]=t;return await this._interface.getItem({teamId:n,itemId:a},e)}),this._customItemCache=Rf(async(e,t)=>
2{let[n,a]=t;return await this._interface.getItem({customCustomerId:n,itemId:a},e)}),this._userProductsCache=Rf(async(e,t)=>{let[n,a,r]=t;return await this._interface.listProducts({customer_type:"user",customer_id:n,cursor:null!==a&&void 0!==a?a:void 0,limit:null!==r&&void 0!==r?r:void 0},e)}),this._teamProductsCache=Rf(async(e,t)=>{let[n,a,r]=t;return await this._interface.listProducts({customer_type:"team",customer_id:n,cursor:null!==a&&void 0!==a?a:void 0,limit:null!==r&&void 0!==r?r:void 0},e)}),this._customProductsCache=Rf(async(e,t)=>{let[n,a,r]=t;return await this._interface.listProducts({customer_type:"custom",customer_id:n,cursor:null!==a&&void 0!==a?a:void 0,limit:null!==r&&void 0!==r?r:void 0},e)}),this._userInvoicesCache=Rf(async(e,t)=>{let[n,a,r]=t;return await this._interface.listInvoices({customer_type:"user",customer_id:n,cursor:null!==a&&void 0!==a?a:void 0,limit:null!==r&&void 0!==r?r:void 0},e)}),this._teamInvoicesCache=Rf(async(e,t)=>{let[n,a,r]=t;return await this._interface.listInvoices({customer_type:"team",customer_id:n,cursor:null!==a&&void 0!==a?a:void 0,limit:null!==r&&void 0!==r?r:void 0},e)}),this._customerBillingCache=Rf(async(e,t)=>{let[n,a]=t;return await this._interface.getCustomerBilling(n,a,e)}),this._convexPartialUserCache=If(async e=>{let[t]=e;return await this._getPartialUserFromConvex(t)}),this._trustedParentDomainCache=If(async e=>{let[t]=e;return await this._getTrustedParentDomain(t)}),this._anonymousSignUpInProgress=null,this._memoryTokenStore=Hf(),this._nextServerCookiesTokenStores=new WeakMap,this._requestTokenStores=new WeakMap,this._storedBrowserCookieTokenStore=null,this._mostRecentQueuedCookieRefreshIndex=0,this._sessionsByTokenStoreAndSessionKey=new WeakMap;const l=Mf(t);if(!e.LazyStackAdminAppImpl.value)throw new hn("Admin app implementation not initialized. Did you import the _StackClientApp from stack-app/apps/implementations/index.ts? You can't import it directly from ./apps/implementations/client-app-impl.ts as that causes a circular dependency (see the comment at _LazyStackAdminAppImpl for more details).");this._options=l,this._extraOptions=n;const c=null!==(a=l.projectId)&&void 0!==a?a:Bf();if("internal"!==c&&!c.match(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i))throw new Error("Invalid project ID: ".concat(c,". Project IDs must be UUIDs. Please check your environment variables and/or your StackApp."));const u=null!==(r=l.publishableClientKey)&&void 0!==r?r:zf();var d;n&&n.interface?this._interface=n.interface:this._interface=new qu(p(p({getBaseUrl:()=>Vf(l.baseUrl),getAnalyticsBaseUrl:()=>{return(e=Vf(l.baseUrl))===qf?"https://r.stack-auth.com":e;var e},extraRequestHeaders:null!==(d=l.extraRequestHeaders)&&void 0!==d?d:Uf(),projectId:c,clientVersion:Of},null!=u?{publishableClientKey:u}:{}),{},{prepareRequest:async()=>{}}));this._tokenStoreInit=l.tokenStore,this._redirectMethod=l.redirectMethod||"none",this._urlOptions=null!==(o=l.urls)&&void 0!==o?o:{},this._oauthScopesOnSignIn=null!==(i=l.oauthScopesOnSignIn)&&void 0!==i?i:{},n&&n.uniqueIdentifier&&(this._uniqueIdentifier=n.uniqueIdentifier,this._initUniqueIdentifier()),this._analyticsOptions=l.analytics;const h=async()=>(this._ensurePersistentTokenStore(),await(await this.getUser({or:"anonymous"})).getAccessToken());kh()&&!0===(null===(s=this._analyticsOptions)||void 0===s||null===(s=s.replays)||void 0===s?void 0:s.enabled)&&(this._sessionRecorder=new Hm({projectId:this.projectId,getAccessToken:h,sendBatch:async(e,t)=>await this._interface.sendSessionReplayBatch(e,await this._getSession(),t)},this._analyticsOptions.replays),this._sessionRecorder.start()),kh()&&"internal"===this.projectId&&(this._eventTracker=new Wm({projectId:this.projectId,getAccessToken:h,sendBatch:async(e,t)=>await this._interface.sendAnalyticsEventBatch(e,await this._getSession(),t)}),this._eventTracker.start())}async _createCookieHelper(e){const t=void 0===e?this._tokenStoreInit:e;return"nextjs-cookie"===t||"cookie"===t?await _m():await wm()}async _getUserOAuthConnectionCacheFn(e){var t;const n=await e.getUser();let a=!0;n&&n.oauth_providers.find(t=>
2t.id===e.providerId)||(a=!1);if(await e.getOrWaitOAuthToken()||(a=!1),!a&&e.redirect){var r;if(!e.session)throw new Error(Jt(Gm||(Gm=Ht(["\n          Cannot add new scopes to a user that is not a CurrentUser. Please ensure that you are calling this function on a CurrentUser object, or remove the 'or: redirect' option.\n\n          Often, you can solve this by calling this function in the browser instead, or by removing the 'or: redirect' option and dealing with the case where the user doesn't have enough permissions.\n        "]))));return await Rm(this._interface,{provider:e.providerId,redirectUrl:this.urls.oauthCallback,errorRedirectUrl:this.urls.error,providerScope:Qt(e.scope||"",(null!==(r=this._oauthScopesOnSignIn[e.providerId])&&void 0!==r?r:[]).join(" "))},e.session),await ed()}if(!a)return null;const o=n.oauth_providers.find(t=>t.id===e.providerId),i=null!==(t=null===o||void 0===o?void 0:o.account_id)&&void 0!==t?t:"";return{id:e.providerId,provider:e.providerId,providerAccountId:i,async getAccessToken(){const t=await e.getOrWaitOAuthToken();if(!t)throw new hn("Failed to retrieve an access token for this connected account (provider: ".concat(e.providerId,"). This usually means the OAuth refresh token has been revoked or expired. The user needs to re-authorize by calling `linkConnectedAccount` or using `getOrLinkConnectedAccount`."));return t},useAccessToken(){const t=e.useOAuthToken();if(!t)throw new hn("Failed to retrieve an access token for this connected account (provider: ".concat(e.providerId,"). This usually means the OAuth refresh token has been revoked or expired. The user needs to re-authorize by calling `linkConnectedAccount` or using `getOrLinkConnectedAccount`."));return t}}}_createOAuthConnectionFromCrudItem(e,t){const n=this,a=e.provider,r=e.provider_account_id;return{id:a,provider:a,providerAccountId:r,async getAccessToken(e){var o,i;const s=null!==(o=null===e||void 0===e||null===(i=e.scopes)||void 0===i?void 0:i.join(" "))&&void 0!==o?o:"",l=ld.orThrow(await n._currentUserOAuthConnectionAccessTokensByAccountCache.getOrWait([t,a,r,s],"write-only"));if(!l){const e=s?"The requested scopes [".concat(s,"] are not available on the existing token."):"The OAuth refresh token has likely been revoked or expired.";return ld.error(new so.OAuthAccessTokenNotAvailable(a,"".concat(e," The user needs to re-authorize by calling `linkConnectedAccount` or using `getOrLinkConnectedAccount`.")))}return ld.ok(l)},useAccessToken(e){var o,i;const s=null!==(o=null===e||void 0===e||null===(i=e.scopes)||void 0===i?void 0:i.join(" "))&&void 0!==o?o:"",l=Kf(n._currentUserOAuthConnectionAccessTokensByAccountCache,[t,a,r,s],"connection.useAccessToken()");if(!l){const e=s?"The requested scopes [".concat(s,"] are not available on the existing token."):"The OAuth refresh token has likely been revoked or expired.";return ld.error(new so.OAuthAccessTokenNotAvailable(a,"".concat(e," The user needs to re-authorize by calling `linkConnectedAccount` or using `getOrLinkConnectedAccount`.")))}return ld.ok(l)}}}_initUniqueIdentifier(){var e,t;if(!this._uniqueIdentifier)throw new hn("Unique identifier not initialized");if(Jm.has(this._uniqueIdentifier))throw new hn("A Stack client app with the same unique identifier already exists");Jm.set(this._uniqueIdentifier,[null!==(e=null===(t=this._extraOptions)||void 0===t?void 0:t.checkString)&&void 0!==e?e:void 0,this])}_getUniqueIdentifier(){return this._uniqueIdentifier||(this._uniqueIdentifier=Qi(),this._initUniqueIdentifier()),this._uniqueIdentifier}async _checkFeatureSupport(e,t){return await this._interface.checkFeatureSupport(p(p({},t),{},{name:e}))}_useCheckFeatureSupport(e,t){throw rd(this._checkFeatureSupport(e,t)),new hn("".concat(e," is not currently supported. Please reach out to Stack support for more information."))}get _legacyRefreshTokenCookieName(){return"stack-refresh-".concat(this.projectId)}get _refreshTokenCookieName(){return"stack-refresh-".concat(this.projectId)}_getRefreshTokenDefaultCookieNameForSecure(e){return"".concat(e?"__Host-":"").concat(this._refreshTokenCookieName,"--default")}_getCustomRefreshCookieName(e){const t=Dn((new TextEncoder).encode(e.toLowerCase()));return"".concat(this._refreshTokenCookieName,"--custom-").concat(t)}_formatRefreshCookieValue(e,t){return JSON.stringify({refresh_token:e,updated_at_millis:t})}_formatAccessCookieValue(e,t){return e&&t?JSON.stringify([e,t]):null}_parseStructuredRefreshCookie(e){if(!e)return null;const t=pm(e);if("ok"!==t.status||"object"!==typeof t.data||null===t.data)return console.warn("Failed to parse structured refresh cookie"),null;const n=t.data,a="refresh_token"in n&&"string"===typeof n.refresh_token?n.refresh_token:null,r="updated_at_millis"in n&&"number"===typeof n.updated_at_millis?n.updated_at_millis:null;return a?{refreshToken:a,updatedAt:r}:(console.warn("Refresh token not found in structured refresh cookie"),null)}_extractRefreshTokenFromCookieMap(e){var t;const{legacyNames:n,structuredPrefixes:a}=this._getRefreshTokenCookieNamePatterns();for(const l of n){const t=e[l];if(t)return{refreshToken:t,updatedAt:null}}let r=null;for(const[l,c]of Object.entries(e)){var o,i,s;if(!a.some(e=>l.startsWith(e)))continue;const e=this._parseStructuredRefreshCookie(c);if(!e)continue;const t=null!==(o=e.updatedAt)&&void 0!==o?o:Number.NEGATIVE_INFINITY,n=null!==(i=null===(s=r)||void 0===s?void 0:s.updatedAt)&&void 0!==i?i:Number.NEGATIVE_INFINITY;(!r||t>n)&&(r=e)}return r?{refreshToken:r.refreshToken,updatedAt:null!==(t=r.updatedAt)&&void 0!==t?t:null}:{refreshToken:null,updatedAt:null}}_getTokensFromCookies(e){var t;const{refreshToken:n}=this._extractRefreshTokenFromCookieMap(e),a=null!==(t=e[this._accessTokenCookieName])&&void 0!==t?t:null;let r=null;if(a&&a.startsWith('["')){const e=pm(a);"ok"===e.status&&"object"===typeof e.data&&null!==e.data&&Array.isArray(e.data)&&2===e.data.length&&"string"===typeof e.data[0]&&"string"===typeof e.data[1]?e.data[0]===n&&(r=e.data[1]):console.warn("Access token cookie has invali
2d format")}return{refreshToken:n,accessToken:r}}get _accessTokenCookieName(){return"stack-access"}_getAllBrowserCookies(){if(!kh())throw new hn("Cannot get browser cookies on the server!");return fm.Kh(document.cookie||"")}_getRefreshTokenCookieNamePatterns(){return{legacyNames:[this._legacyRefreshTokenCookieName,"stack-refresh"],structuredPrefixes:["".concat(this._refreshTokenCookieName,"--"),"__Host-".concat(this._refreshTokenCookieName,"--")]}}_collectRefreshTokenCookieNames(e){const{legacyNames:t,structuredPrefixes:n}=this._getRefreshTokenCookieNamePatterns(),a=new Set;for(const r of t)e[r]&&a.add(r);for(const r of Object.keys(e))n.some(e=>r.startsWith(e))&&a.add(r);return a}_prepareRefreshCookieUpdate(e,t,n,a){const r=this._collectRefreshTokenCookieNames(e);r.delete(a);const o=t?Date.now():null;return{updatedAt:o,refreshCookieValue:t&&null!==o?this._formatRefreshCookieValue(t,o):null,accessTokenPayload:this._formatAccessCookieValue(t,n),cookieNamesToDelete:[...r]}}_queueCustomRefreshCookieUpdate(e,t,n){rd(async()=>{this._mostRecentQueuedCookieRefreshIndex++;const a=this._mostRecentQueuedCookieRefreshIndex;let r;if(kh()&&(r=window.location.hostname),!r)return void console.warn("No hostname found when queueing custom refresh cookie update");const o=await this._trustedParentDomainCache.getOrWait([r],"read-write"),i={maxAge:31536e3,noOpIfServerComponent:!0};if("error"===o.status||!o.data||a!==this._mostRecentQueuedCookieRefreshIndex)return;const s=e&&t?this._formatRefreshCookieValue(e,t):null;await(async(e,t)=>{const a=this._getCustomRefreshCookieName(e),r=p(p({},i),{},{domain:e});"browser"===n?Pm(a,t,r):await Tm(a,t,r)})(o.data,s);const l=await Cm();await Tm(this._getRefreshTokenDefaultCookieNameForSecure(l),null,i)})}async _getTrustedParentDomain(e){const t=ld.orThrow(await this._interface.getClientProject()).config.domains.map(e=>{var t;return null===(t=e.domain.trim().replace(/^https?:\/\//,"").split("/")[0])||void 0===t?void 0:t.toLowerCase()}),n=t.filter(e=>e.startsWith("**.")),a=e.split(".");for(let r=a.length-2;r>=0;r--){const e=a.slice(r).join(".");if(t.includes(e)&&n.includes("**."+e))return e}return null}_getBrowserCookieTokenStore(){if(!kh())throw new Error("Cannot use cookie token store on the server!");if(null===this._storedBrowserCookieTokenStore){const e=e=>{var t;const n=this._getTokensFromCookies(this._getAllBrowserCookies());return{refreshToken:n.refreshToken,accessToken:null!==(t=n.accessToken)&&void 0!==t?t:(null===e||void 0===e?void 0:e.refreshToken)===n.refreshToken?e.accessToken:null}};this._storedBrowserCookieTokenStore=new nl(e(null));let t=!0;setInterval(()=>{if(t){const t=this._storedBrowserCookieTokenStore.get(),n=e(t);tn(n,t)||this._storedBrowserCookieTokenStore.set(n)}},100),this._storedBrowserCookieTokenStore.onChange(e=>{try{var n;const a=e.refreshToken,r="https:"===window.location.protocol,o=this._getRefreshTokenDefaultCookieNameForSecure(r),{updatedAt:i,refreshCookieValue:s,accessTokenPayload:l,cookieNamesToDelete:c}=this._prepareRefreshCookieUpdate(this._getAllBrowserCookies(),a,null!==(n=e.accessToken)&&void 0!==n?n:null,o);Pm(o,s,{maxAge:31536e3,secure:r}),Pm(this._accessTokenCookieName,l,{maxAge:86400}),c.forEach(e=>Fm(e,{})),this._queueCustomRefreshCookieUpdate(a,i,"browser"),t=!0}catch(oL){if(kh())throw oL;t=!1}})}return this._storedBrowserCookieTokenStore}_getOrCreateTokenStore(e,t){const n=void 0===t?this._tokenStoreInit:t;switch(n){case"cookie":return this._getBrowserCookieTokenStore();case"nextjs-cookie":if(kh())return this._getBrowserCookieTokenStore();{const t=this._getTokensFromCookies(e.getAll()),n=new nl(t);return n.onChange(t=>{rd(async()=>{var n;const a=t.refreshToken,r=await Cm(),o=this._getRefreshTokenDefaultCookieNameForSecure(r),{updatedAt:i,refreshCookieValue:s,accessTokenPayload:l,cookieNamesToDelete:c}=this._prepareRefreshCookieUpdate(e.getAll(),a,null!==(n=t.accessToken)&&void 0!==n?n:null,o);await Promise.all([Tm(o,s,{maxAge:31536e3,noOpIfServerComponent:!0}),Tm(this._accessTokenCookieName,l,{maxAge:86400,noOpIfServerComponent:!0})]),c.length>0&&await Promise.all(c.map(e=>async function(e,t){(await _m()).delete(e,t)}(e,{noOpIfServerComponent:!0}))),this._queueCustomRefreshCookieUpdate(a,i,"server")})}),n}case"memory":return this._memoryTokenStore;default:if(null===n)return Hf();if("object"===typeof n&&"headers"in n){if(this._requestTokenStores.has(n))return this._requestTokenStores.get(n);const t=n.headers.get("x-stack-auth");if(t){var a,r;let n;try{if(n=JSON.parse(t),"object"!==typeof n)throw new Error("x-stack-auth header must be a JSON object");
2if(null===n)throw new Error("x-stack-auth header must not be null")}catch(oL){throw new Error("Invalid x-stack-auth header: ".concat(t),{cause:oL})}return this._getOrCreateTokenStore(e,{accessToken:null!==(a=n.accessToken)&&void 0!==a?a:null,refreshToken:null!==(r=n.refreshToken)&&void 0!==r?r:null})}const o=n.headers.get("cookie"),i=fm.Kh(o||""),s=new nl(this._getTokensFromCookies(i));return this._requestTokenStores.set(n,s),s}if("accessToken"in n||"refreshToken"in n)return new nl({refreshToken:n.refreshToken,accessToken:n.accessToken});throw new Error("Invalid token store ".concat(n))}}_useTokenStore(e){Sh();const t=xm();return this._getOrCreateTokenStore(t,e)}_getSessionFromTokenStore(e){var t,n;const a=e.get(),r=ll.calculateSessionKey(a),o=r?null===(t=this._sessionsByTokenStoreAndSessionKey.get(e))||void 0===t?void 0:t.get(r):null;if(o)return o;const i=this._interface.createSession({refreshToken:a.refreshToken,accessToken:a.accessToken});i.onAccessTokenChange(t=>{e.update(e=>{var n;return p(p({},e),{},{accessToken:null!==(n=null===t||void 0===t?void 0:t.token)&&void 0!==n?n:null})})}),i.onInvalidate(()=>{e.update(e=>p(p({},e),{},{accessToken:null,refreshToken:null}))});let s=null!==(n=this._sessionsByTokenStoreAndSessionKey.get(e))&&void 0!==n?n:new Map;return this._sessionsByTokenStoreAndSessionKey.set(e,s),s.set(r,i),i}async _getSession(e){const t=this._getOrCreateTokenStore(await this._createCookieHelper(e),e);return this._getSessionFromTokenStore(t)}_useSession(e){const t=this._useTokenStore(e),n=(0,o.useCallback)(e=>{const{unsubscribe:n}=t.onChange(()=>{e()});return n},[t]),a=(0,o.useCallback)(()=>this._getSessionFromTokenStore(t),[t]);return o.useSyncExternalStore(n,a,a)}async _signInToAccountWithTokens(e){if(!("accessToken"in e)||!("refreshToken"in e))throw new hn("Invalid tokens object; can't sign in with this",{tokens:e});this._getOrCreateTokenStore(await this._createCookieHelper()).set(e)}_hasPersistentTokenStore(e){return null!==(void 0!==e?e:this._tokenStoreInit)}_ensurePersistentTokenStore(e){if(!this._hasPersistentTokenStore(e))throw new Error("Cannot call this function on a Stack app without a persistent token store. Make sure the tokenStore option on the constructor is set to a non-null value when initializing Stack.\n\nStack uses token stores to access access tokens of the current user. For example, on web frontends it is commonly the string value 'cookies' for cookie storage.")}_isInternalProject(){return"internal"===this.projectId}_ensureInternalProject(){if(!this._isInternalProject())throw new Error("Cannot call this function on a Stack app with a project ID other than 'internal'.")}_clientProjectFromCrud(e){return{id:e.id,displayName:e.display_name,config:{signUpEnabled:e.config.sign_up_enabled,credentialEnabled:e.config.credential_enabled,magicLinkEnabled:e.config.magic_link_enabled,passkeyEnabled:e.config.passkey_enabled,clientTeamCreationEnabled:e.config.client_team_creation_enabled,clientUserDeletionEnabled:e.config.client_user_deletion_enabled,allowTeamApiKeys:e.config.allow_team_api_keys,allowUserApiKeys:e.config.allow_user_api_keys,oauthProviders:e.config.enabled_oauth_providers.map(e=>({id:e.id}))}}}_clientPermissionFromCrud(e){return{id:e.id}}_clientTeamUserFromCrud(e){return{id:e.user_id,teamProfile:{displayName:e.display_name,profileImageUrl:e.profile_image_url}}}_clientSentTeamInvitationFromCrud(e,t){return{id:t.id,recipientEmail:t.recipient_email,expiresAt:new Date(t.expires_at_millis),revoke:async()=>{await this._interface.revokeTeamInvitation(t.id,t.team_id,e),await this._teamInvitationsCache.refresh([e,t.team_id])}}}_clientReceivedTeamInvitationFromCrud(e,t){const n=this;return{id:t.id,teamId:t.team_id,teamDisplayName:t.team_display_name,recipientEmail:t.recipient_email,expiresAt:new Date(t.expires_at_millis),accept:async()=>{await n._interface.acceptTeamInvitationById(t.id,e),await Promise.all([n._currentUserTeamInvitationsCache.refresh([e]),n._currentUserTeamsCache.refresh([e]),n._teamInvitationsCache.refresh([e,t.team_id])])}}}_baseApiKeyFromCrud(e){return p(p({id:e.id,description:e.description,expiresAt:e.expires_at_millis?new Date(e.expires_at_millis):void 0,manuallyRevokedAt:e.manually_revoked_at_millis?new Date(e.manually_revoked_at_millis):null,createdAt:new Date(e.created_at_millis)},"team"===e.type?{type:"team",teamId:e.team_id}:{type:"user",userId:e.user_id}),{},{value:"string"===typeof e.value?e.value:{lastFour:e.value.last_four},isValid:function(){return null===this.whyInvalid()},whyInvalid:function(){return this.manuallyRevokedAt?"manually-revoked":this.expiresAt&&this.expiresAt<new Date?"expired":null}})}_clientApiKeyFromCrud(e,t){return p(p({},this._baseApiKeyFromCrud(t)),{},{async revoke(){await this.update({revoked:!0})},update:async n=>{await this._interface.updateProjectApiKey("team"===t.type?{team_id:t.team_id}:{user_id:t.user_id}
2,t.id,n,e,"client"),"team"===t.type?await this._teamApiKeysCache.refresh([e,t.team_id]):await this._userApiKeysCache.refresh([e])}})}_clientTeamFromCrud(e,t){const n=this;return p(p({id:e.id,displayName:e.display_name,profileImageUrl:e.profile_image_url,clientMetadata:e.client_metadata,clientReadOnlyMetadata:e.client_read_only_metadata},this._createCustomer(e.id,"team",t)),{},{async inviteUser(a){var r;await n._interface.sendTeamInvitation({teamId:e.id,email:a.email,session:t,callbackUrl:null!==(r=a.callbackUrl)&&void 0!==r?r:sm(n.urls.teamInvitation,"callbackUrl")}),await n._teamInvitationsCache.refresh([t,e.id])},listUsers:async()=>ld.orThrow(await n._teamMemberProfilesCache.getOrWait([t,e.id],"write-only")).map(e=>n._clientTeamUserFromCrud(e)),useUsers:()=>Kf(n._teamMemberProfilesCache,[t,e.id],"team.useUsers()").map(e=>n._clientTeamUserFromCrud(e)),listInvitations:async()=>ld.orThrow(await n._teamInvitationsCache.getOrWait([t,e.id],"write-only")).map(e=>n._clientSentTeamInvitationFromCrud(t,e)),useInvitations:()=>Kf(n._teamInvitationsCache,[t,e.id],"team.useInvitations()").map(e=>n._clientSentTeamInvitationFromCrud(t,e)),async update(a){await n._interface.updateTeam({data:cm(a),teamId:e.id},t),await n._currentUserTeamsCache.refresh([t])},async delete(){await n._interface.deleteTeam(e.id,t),await n._currentUserTeamsCache.refresh([t])},useApiKeys:()=>Kf(n._teamApiKeysCache,[t,e.id],"team.useApiKeys()").map(e=>n._clientApiKeyFromCrud(t,e)),listApiKeys:async()=>ld.orThrow(await n._teamApiKeysCache.getOrWait([t,e.id],"write-only")).map(e=>n._clientApiKeyFromCrud(t,e)),async createApiKey(a){const r=await n._interface.createProjectApiKey(await lm("team",e.id,a),t,"client");return await n._teamApiKeysCache.refresh([t,e.id]),n._clientApiKeyFromCrud(t,r)}})}_clientContactChannelFromCrud(e,t){const n=this;return{id:e.id,value:e.value,type:e.type,isVerified:e.is_verified,isPrimary:e.is_primary,usedForAuth:e.used_for_auth,async sendVerificationEmail(a){await n._interface.sendCurrentUserContactChannelVerificationEmail(e.id,(null===a||void 0===a?void 0:a.callbackUrl)||sm(n.urls.emailVerification,"callbackUrl"),t)},async update(a){await n._interface.updateClientContactChannel(e.id,function(e){return{value:e.value,used_for_auth:e.usedForAuth,is_primary:e.isPrimary}}(a),t),await n._clientContactChannelsCache.refresh([t])},async delete(){await n._interface.deleteClientContactChannel(e.id,t),await n._clientContactChannelsCache.refresh([t])}}}_clientNotificationCategoryFromCrud(e,t){const n=this;return{id:e.notification_category_id,name:e.notification_category_name,enabled:e.enabled,canDisable:e.can_disable,async setEnabled(a){await n._interface.setNotificationsEnabled(e.notification_category_id,a,t),await n._notificationCategoriesCache.refresh([t])}}}_clientOAuthProviderFromCrud(e,t){const n=this;return{id:e.id,type:e.type,userId:e.user_id,email:e.email,allowSignIn:e.allow_sign_in,allowConnectedAccounts:e.allow_connected_accounts,async update(a){try{return await n._interface.updateOAuthProvider(e.user_id,e.id,{allow_sign_in:a.allowSignIn,allow_connected_accounts:a.allowConnectedAccounts},t),await Promise.all([n._currentUserOAuthProvidersCache.refresh([t]),n._currentUserConnectedAccountsCache.refresh([t])]),ld.ok(void 0)}catch(r){if(so.OAuthProviderAccountIdAlreadyUsedForSignIn.isInstance(r))return ld.error(r);throw r}},async delete(){await n._interface.deleteOAuthProvider(e.user_id,e.id,t),await Promise.all([n._currentUserOAuthProvidersCache.refresh([t]),n._currentUserConnectedAccountsCache.refresh([t])])}}}_clientItemFromCrud(e){return{displayName:e.display_name,quantity:e.quantity,nonNegativeQuantity:Math.max(0,e.quantity)}}_customerProductsFromResponse(e){var t;const n=e.items.map(e=>{var t;return{id:e.id,quantity:e.quantity,displayName:e.product.display_name,customerType:e.product.customer_type,isServerOnly:e.product.server_only,stackable:e.product.stackable,type:e.type,subscription:e.subscription?{subscriptionId:e.subscription.subscription_id,currentPeriodEnd:e.subscription.current_period_end?new Date(e.subscription.current_period_end):null,cancelAtPeriodEnd:e.subscription.cancel_at_period_end,isCancelable:e.subscription.is_cancelable}:null,switchOptions:null===(t=e.switch_options)||void 0===t?void 0:t.map(e=>({productId:e.product_id,displayName:e.product.display_name,prices:e.product.prices}))}});return Object.assign(n,{nextCursor:null!==(t=e.pagination.next_cursor)&&void 0!==t?t:null})}_customerInvoicesFromResponse(e){var t;const n=e.items.map(e=>({status:e.status,amountTotal:e.amount_total,hostedInvoiceUrl:e.hosted_invoice_url,createdAt:new Date(e.created_at_millis)}));return Object.assign(n,{nextCursor:null!==(t=e.pagination.next_cursor)&&void 0!==t?t:null})}_customerBillingFromResponse(e){return{hasCustomer:e.has_customer,defaultPaymentMethod:e.default_payment_method}}_createAuth(e){const t=this;return{_internalSession:e,currentSession:{async getTokens(){var t,n,a;const r=await e.getOrFetchLikelyValidTokens(2e4,75e3);return{accessToken:null!==(t=null===r||void 0===r?void 0:r.accessToken.token)&&void 0!==t?t:null,refreshToken:null!==(n=null===r||void 0===r||null===(a=r.refreshToken)||void 0===a?void 0:a.token)&&void 0!==n?n:null}},useTokens(){var t,n,a,r;const[i,s]=o.useState(0);o.useEffect(()=>{const{unsubscribe:t}=e.startRefreshingAccessToken(3e4,6e4),{unsubscribe:n}=e.onInvalidate(()=>s(e=>e+1)),{unsubscribe:a}=e.onAccessTokenChange(()=>s(e=>e+1));return()=>{t(),n(),a()}},[]);let l=e.isKnownToBeInvalid()?null:e.getAccessTokenIfNotExpiredYet(2e4,75e3);var c,u;null===l&&(l=null!==(c=null===(u=Dh(e.getOrFetchLikelyValidTokens(2e4,75e3)))||void 0===u?void 0:u.accessToken)&&void 0!==c?c:null);return{accessToken:null!==(t=null===(n=l)||void 0===n?void 0:n.token)&&void 0!==t?t:null,refreshToken:null!==(a=null===(r=e.getRefreshToken())||void 0===r?void 0:r.token)&&void 0!==a?a:null}}},async getAccessToken(){return(await this.currentSession.getTokens()).accessToken},useAccessToken(){return this.currentSession.useTokens().accessToken},async getRefreshToken(){return(await this.currentSession.getTokens()).refreshToken},useRefreshToken(){return this.currentSession.useTokens().refreshToken},async getAuthHeaders(){return{"x-stack-auth":JSON.stringify(await this.getAuthJson())}},useAuthHeaders(){return{"x-stack-auth":JSON.stringify(this.useAuthJson())}},async getAuthJson(){return await this.currentSession.getTokens()},useAuthJson(){return this.currentSession.useTokens()},signOut:n=>t._signOut(e,n)}}_editableTeamProfileFromCrud(e,t){const n=this;return{displayName:e.display_name,profileImageUrl:e.profile_image_url,async update(a){await n._interface.updateTeamMemberProfile({teamId:e.team_id,userId:e.user_id,profile:{display_name:a.displayName,profile_image_url:a.profileImageUrl}},t),await n._currentUserTeamProfileCache.refresh([t,e.team_id])}}}_createBaseUser(e){return{id:e.id,displayName:e.display_name,primaryEmail:e.primary_email,primaryEmailVerified:e.primary_email_verified,profileImageUrl:e.profile_image_url,signedUpAt:new Date(e.signed_up_at_millis),clientMetadata:e.client_metadata,clientReadOnlyMetadata:e.client_read_only_metadata,hasPassword:e.has_password,emailAuthEnabled:e.auth_with_email,otpAuthEnabled:e.otp_auth_enabled,oauthProviders:e.oauth_providers,passkeyAuthEnabled:e.passkey_auth_enabled,isMultiFactorRequired:e.requires_totp_mfa,isAnonymous:e.is_anonymous,isRestricted:e.is_restricted,restrictedReason:e.restricted_reason,toClientJson:()=>e}}_createUserExtraFromCurrent(e,t){const n=this;return{getActiveSessions:async()=>(await n._interface.listSessions(t)).items.map(e=>n._clientSessionFromCrud(e)),async revokeSession(e){await n._interface.deleteSession(e,t)},setDisplayName(e){return this.update({displayName:e})},setClientMetadata(e){return this.update({clientMetadata:e})},async setSelectedTeam(e){var t;await this.update({selectedTeamId:"string"===typeof e?e:null!==(t=null===e||void 0===e?void 0:e.id)&&void 0!==t?t:null})},getConnectedAccount:async function(e,a){var r,o;const i=null!==(r=null===a||void 0===a||null===(o=a.scopes)||void 0===o?void 0:o.join(" "))&&void 0!==r?r:"";if("object"===typeof e&&"provider"in e&&"providerAccountId"in e){const{provider:a,providerAccountId:r}=e,o=ld.orThrow(await n._currentUserConnectedAccountsCache.getOrWait([t],"write-only")).find(e=>e.provider===a&&e.providerAccountId===r);return o||null}return ld.orThrow(await n._currentUserOAuthConnectionCache.getOrWait([t,e,i,"redirect"===(null===a||void 0===a?void 0:a.or)],"write-only"))},useConnectedAccount:function(e,a){var r,o;const i=null!==(r=null===a||void 0===a||null===(o=a.scopes)||void 0===o?void 0:o.join(" "))&&void 0!==r?r:"";if("object"===typeof e&&"provider"in e&&"providerAccountId"in e){const{provider:a,providerAccountId:r}=e,o=Kf(n._currentUserConnectedAccountsCache,[t],"user.useConnectedAccount()").find(e=>e.provider===a&&e.providerAccountId===r);return null!==o&&void 0!==o?o:null}return Kf(n._currentUserOAuthConnectionCache,[t,e,i,"redirect"===(null===a||void 0===a?void 0:a.or)],"user.useConnectedAccount()")},listConnectedAccounts:async()=>ld.orThrow(await n._currentUserConnectedAccountsCache.getOrWait([t],"write-only")),useConnectedAccounts:()=>Kf(n._currentUserConnectedAccountsCache,[t],"user.useConnectedAccounts()"),async linkConnectedAccount(e,a){var r,o,i;const s=null!==(r=null===a||void 0===a||null===(o=a.scopes)||void 0===o?void 0:o.join(" "))&&void 0!==r?r:"";await Rm(n._interface,{provider:e,redirectUrl:n.urls.oauthCallback,errorRedirectUrl:n.urls.error,providerScope:Qt(s,(null!==(i=n._oauthScopesOnSignIn[e])&&void 0!==i?i:[]).join(" "))},t),await ed()},async getOrLinkConnectedAccount(e,a){const r=ld.orThrow(await n._currentUserConnectedAccountsCache.getOrWait([t],"write-only")).filter(t=>t.provider===e);for(const t of r){if("ok"===(await t.getAccessToken({scopes:null===a||void 0===a?void 0:a.scopes})).status)return t}return await this.linkConnectedAccount(e,a),await ed()},useOrLinkConnectedAccount(e,a){var r,o;const i=null!==(r=null===a||void 0===a||null===(o=a.scopes)||void 0===o?void 0:o.join(" "))&&void 0!==r?r:"";return Kf(n._currentUserValidConnectedAccountForProviderCache,[t,e,i],"user.useOrLinkConnectedAccount()")},async getTeam(e){var t;return null!==(t=(await this.listTeams()).find(t=>
2t.id===e))&&void 0!==t?t:null},useTeam(e){const t=this.useTeams();return(0,o.useMemo)(()=>{var n;return null!==(n=t.find(t=>t.id===e))&&void 0!==n?n:null},[t,e])},listTeams:async()=>ld.orThrow(await n._currentUserTeamsCache.getOrWait([t],"write-only")).map(e=>n._clientTeamFromCrud(e,t)),useTeams(){const e=Kf(n._currentUserTeamsCache,[t],"user.useTeams()");return(0,o.useMemo)(()=>e.map(e=>n._clientTeamFromCrud(e,t)),[e])},async createTeam(e){const a=await n._interface.createClientTeam(function(e,t){return{display_name:e.displayName,profile_image_url:e.profileImageUrl,creator_user_id:t}}(e,"me"),t);return await n._currentUserTeamsCache.refresh([t]),await this.update({selectedTeamId:a.id}),n._clientTeamFromCrud(a,t)},async leaveTeam(e){await n._interface.leaveTeam(e.id,t)},listTeamInvitations:async()=>ld.orThrow(await n._currentUserTeamInvitationsCache.getOrWait([t],"write-only")).map(e=>n._clientReceivedTeamInvitationFromCrud(t,e)),useTeamInvitations(){const e=Kf(n._currentUserTeamInvitationsCache,[t],"user.useTeamInvitations()");return(0,o.useMemo)(()=>e.map(e=>n._clientReceivedTeamInvitationFromCrud(t,e)),[e])},async listPermissions(e,a){if(e&&"id"in e){var r;const o=e,i=null===(r=null===a||void 0===a?void 0:a.recursive)||void 0===r||r;return ld.orThrow(await n._currentUserPermissionsCache.getOrWait([t,o.id,i],"write-only")).map(e=>n._clientPermissionFromCrud(e))}{var o;const a=null===(o=null===e||void 0===e?void 0:e.recursive)||void 0===o||o;return ld.orThrow(await n._currentUserProjectPermissionsCache.getOrWait([t,a],"write-only")).map(e=>n._clientPermissionFromCrud(e))}},usePermissions(e,a){if(e&&"id"in e){var r;const i=e,s=null===(r=null===a||void 0===a?void 0:a.recursive)||void 0===r||r,l=Kf(n._currentUserPermissionsCache,[t,i.id,s],"user.usePermissions()");return(0,o.useMemo)(()=>l.map(e=>n._clientPermissionFromCrud(e)),[l])}{var i;const a=null===(i=null===e||void 0===e?void 0:e.recursive)||void 0===i||i,r=Kf(n._currentUserProjectPermissionsCache,[t,a],"user.usePermissions()");return(0,o.useMemo)(()=>r.map(e=>n._clientPermissionFromCrud(e)),[r])}},usePermission(e,t){if(e&&"string"!==typeof e){const n=e,a=this.usePermissions(n);return(0,o.useMemo)(()=>{var e;return null!==(e=a.find(e=>e.id===t))&&void 0!==e?e:null},[a,t])}{const t=e,n=this.usePermissions();return(0,o.useMemo)(()=>{var e;return null!==(e=n.find(e=>e.id===t))&&void 0!==e?e:null},[n,t])}},async getPermission(e,t){if(e&&"string"!==typeof e){var n;const a=e;return null!==(n=(await this.listPermissions(a)).find(e=>e.id===t))&&void 0!==n?n:null}{var a;const t=e;return null!==(a=(await this.listPermissions()).find(e=>e.id===t))&&void 0!==a?a:null}},async hasPermission(e,t){if(e&&"string"!==typeof e){const n=e;return null!==await this.getPermission(n,t)}{const t=e;return null!==await this.getPermission(t)}},update:async e=>await n._updateClientUser(e,t),async sendVerificationEmail(a){var r;if(!e.primary_email)throw new hn("User does not have a primary email");return await n._interface.sendVerificationEmail(e.primary_email,null!==(r=null===a||void 0===a?void 0:a.callbackUrl)&&void 0!==r?r:sm(n.urls.emailVerification,"callbackUrl"),t)},async updatePassword(e){const a=await n._interface.updatePassword(e,t);return await n._currentUserCache.refresh([t]),a},async setPassword(e){const a=await n._interface.setPassword(e,t);return await n._currentUserCache.refresh([t]),a},selectedTeam:e.selected_team&&this._clientTeamFromCrud(e.selected_team,t),async getTeamProfile(e){const a=ld.orThrow(await n._currentUserTeamProfileCache.getOrWait([t,e.id],"write-only"));return n._editableTeamProfileFromCrud(a,t)},useTeamProfile(e){const a=Kf(n._currentUserTeamProfileCache,[t,e.id],"user.useTeamProfile()");return n._editableTeamProfileFromCrud(a,t)},async delete(){await n._interface.deleteCurrentUser(t),t.markInvalid()},listContactChannels:async()=>ld.orThrow(await n._clientContactChannelsCache.getOrWait([t],"write-only")).map(e=>n._clientContactChannelFromCrud(e,t)),useContactChannels:()=>Kf(n._clientContactChannelsCache,[t],"user.useContactChannels()").map(e=>n._clientContactChannelFromCrud(e,t)),async createContactChannel(e){const a=await n._interface.createClientContactChannel(function(e,t){return{value:t.value,type:t.type,used_for_auth:t.usedForAuth,is_primary:t.isPrimary,user_id:e}}("me",e),t);return await n._clientContactChannelsCache.refresh([t]),n._clientContactChannelFromCrud(a,t)},useNotificationCategories:()=>Kf(n._notificationCategoriesCache,[t],"user.useNotificationCategories()").map(e=>n._clientNotificationCategoryFromCrud(e,t)),listNotificationCategories:async()=>ld.orThrow(await n._notificationCategoriesCache.getOrWait([t],"write-only")).map(e=>n._clientNotificationCategoryFromCrud(e,t)),useApiKeys:()=>Kf(n._userApiKeysCache,[t],"user.useApiKeys()").map(e=>n._clientApiKeyFromCrud(t,e)),listApiKeys:async()=>(await n._interface.listProjectApiKeys({user_id:"me"},t,"client")).map(e=>n._clientApiKeyFromCrud(t,e)),async createApiKey(e){const a=await n._interface.createProjectApiKey(await lm("user","me",e),t,"client");return await n._userApiKeysCache.refresh([t]),n._clientApiKeyFromCrud(t,a)},useOAuthProviders:()=>Kf(n._currentUserOAuthProvidersCache,[t],"user.useOAuthProviders()").map(e=>n._clientOAuthProviderFromCrud(e,t)),listOAuthProviders:async()=>ld.orThrow(await n._currentUserOAuthProvidersCache.getOrWait([t],"write-only")).map(e=>n._clientOAuthProviderFromCrud(e,t)),useOAuthProvider(e){const t=this.useOAuthProviders();return(0,o.useMemo)(()=>{var n;return null!==(n=t.find(t=>
2t.id===e))&&void 0!==n?n:null},[t,e])},async getOAuthProvider(e){var t;return null!==(t=(await this.listOAuthProviders()).find(t=>t.id===e))&&void 0!==t?t:null},async registerPasskey(e){var a;const r=null===(a=await n._getCurrentUrl())||void 0===a?void 0:a.hostname;if(!r)throw new hn("hostname must be provided if the Stack App does not have a redirect method");const o=await n._interface.initiatePasskeyRegistration({},t);if("ok"!==o.status)return ld.error(new so.PasskeyRegistrationFailed("Failed to get initiation options for passkey registration"));const{options_json:i,code:s}=o.data;if("THIS_VALUE_WILL_BE_REPLACED.example.com"!==i.rp.id)throw new hn("Expected returned RP ID from server to equal sentinel, but found ".concat(i.rp.id));let l;i.rp.id=r;try{l=await am({optionsJSON:i})}catch(u){return u instanceof Zf?ld.error(new so.PasskeyWebAuthnError(u.message,u.name)):(gn("passkey-registration-failed",u),ld.error(new so.PasskeyRegistrationFailed("Failed to start passkey registration due to unknown error")))}const c=await n._interface.registerPasskey({credential:l,code:s},t);return await n._refreshUser(t),c}}}_createInternalUserExtra(e){const t=this;return this._ensureInternalProject(),{createProject:n=>t._createProject(e,n),async transferProject(n,a){await t._interface.transferProject(e,n,a),await t._refreshProject()},listOwnedProjects:()=>t._listOwnedProjects(e),useOwnedProjects:()=>t._useOwnedProjects(e)}}_createCustomer(e,t,n){const a=this,r=null!==n&&void 0!==n?n:a._interface.createSession({refreshToken:null}),o="user"===t?{userId:e}:{teamId:e};return{async getBilling(){const n=ld.orThrow(await a._customerBillingCache.getOrWait([r,t,e],"write-only"));return a._customerBillingFromResponse(n)},useBilling(){const n=Kf(a._customerBillingCache,[r,t,e],"customer.useBilling()");return a._customerBillingFromResponse(n)},async createPaymentMethodSetupIntent(){const n=await a._interface.createCustomerPaymentMethodSetupIntent(t,e,r);return{clientSecret:n.client_secret,stripeAccountId:n.stripe_account_id}},async setDefaultPaymentMethodFromSetupIntent(n){const o=await a._interface.setDefaultCustomerPaymentMethodFromSetupIntent(t,e,n,r);return await a._customerBillingCache.refresh([r,t,e]),o.default_payment_method},getItem:async e=>await a.getItem(p({itemId:e},o)),useItem:e=>a.useItem(p({itemId:e},o)),listProducts:async e=>await a.listProducts(p(p({},e),o)),useProducts:e=>a.useProducts(p(p({},e),o)),listInvoices:async e=>await a.listInvoices(p(p({},e),o)),useInvoices:e=>a.useInvoices(p(p({},e),o)),createCheckoutUrl:async n=>await a._interface.createCheckoutUrl(t,e,n.productId,r,n.returnUrl,"client"),async switchSubscription(n){await a._interface.switchSubscription({customer_type:t,customer_id:e,from_product_id:n.fromProductId,to_product_id:n.toProductId,price_id:n.priceId,quantity:n.quantity},r),await a._customerBillingCache.refresh([r,t,e]),"user"===t?await a._userProductsCache.invalidateWhere(t=>{let[n,a]=t;return n===r&&a===e}):await a._teamProductsCache.invalidateWhere(t=>{let[n,a]=t;return n===r&&a===e})}}}async getItem(e){const t=await this._getSession();let n;return n="userId"in e?ld.orThrow(await this._userItemCache.getOrWait([t,e.userId,e.itemId],"write-only")):"teamId"in e?ld.orThrow(await this._teamItemCache.getOrWait([t,e.teamId,e.itemId],"write-only")):ld.orThrow(await this._customItemCache.getOrWait([t,e.customCustomerId,e.itemId],"write-only")),this._clientItemFromCrud(n)}useItem(e){const t=this._useSession(),[n,a]="userId"in e?[this._userItemCache,e.userId]:"teamId"in e?[this._teamItemCache,e.teamId]:[this._customItemCache,e.customCustomerId],r=Kf(n,[t,a,e.itemId],"app.useItem()");return this._clientItemFromCrud(r)}async listProducts(e){var t,n,a;const r=await this.getUser(),o=null!==(t=null===r||void 0===r?void 0:r._internalSession)&&void 0!==t?t:await this._getSession();if("userId"in e){var i,s;const t=ld.orThrow(await this._userProductsCache.getOrWait([o,e.userId,null!==(i=e.cursor)&&void 0!==i?i:null,null!==(s=e.limit)&&void 0!==s?s:null],"write-only"));return this._customerProductsFromResponse(t)}if("teamId"in e){var l,c;const t=ld.orThrow(await this._teamProductsCache.getOrWait([o,e.teamId,null!==(l=e.cursor)&&void 0!==l?l:null,null!==(c=e.limit)&&void 0!==c?c:null],"write-only"));return this._customerProductsFromResponse(t)}const u=ld.orThrow(await this._customProductsCache.getOrWait([o,e.customCustomerId,null!==(n=e.curs
2or)&&void 0!==n?n:null,null!==(a=e.limit)&&void 0!==a?a:null],"write-only"));return this._customerProductsFromResponse(u)}async listInvoices(e){var t,n;const a=await this._getSession();if("userId"in e){var r,o;const t=ld.orThrow(await this._userInvoicesCache.getOrWait([a,e.userId,null!==(r=e.cursor)&&void 0!==r?r:null,null!==(o=e.limit)&&void 0!==o?o:null],"write-only"));return this._customerInvoicesFromResponse(t)}const i=ld.orThrow(await this._teamInvoicesCache.getOrWait([a,e.teamId,null!==(t=e.cursor)&&void 0!==t?t:null,null!==(n=e.limit)&&void 0!==n?n:null],"write-only"));return this._customerInvoicesFromResponse(i)}async cancelSubscription(e){const t=await this._getSession(),n=await this.getUser();if(!n)throw new so.UserAuthenticationRequired;const a="teamId"in e?"team":"user",r="teamId"in e?e.teamId:n.id;await this._interface.cancelSubscription({customer_type:a,customer_id:r,product_id:e.productId,subscription_id:e.subscriptionId},t),"user"===a?await this._userProductsCache.invalidateWhere(e=>{let[n,a]=e;return n===t&&a===r}):await this._teamProductsCache.invalidateWhere(e=>{let[n,a]=e;return n===t&&a===r})}useProducts(e){var t,n;const a=this._useSession(),r=Kf("userId"in e?this._userProductsCache:"teamId"in e?this._teamProductsCache:this._customProductsCache,[a,"userId"in e?e.userId:"teamId"in e?e.teamId:e.customCustomerId,null!==(t=e.cursor)&&void 0!==t?t:null,null!==(n=e.limit)&&void 0!==n?n:null],"clientApp.useProducts()");return this._customerProductsFromResponse(r)}useInvoices(e){var t,n;const a=this._useSession(),r=Kf("userId"in e?this._userInvoicesCache:this._teamInvoicesCache,[a,"userId"in e?e.userId:e.teamId,null!==(t=e.cursor)&&void 0!==t?t:null,null!==(n=e.limit)&&void 0!==n?n:null],"clientApp.useInvoices()");return this._customerInvoicesFromResponse(r)}_currentUserFromCrud(e,t){return hm(p(p(p(p(p({},this._createBaseUser(e)),this._createAuth(t)),this._createUserExtraFromCurrent(e,t)),this._isInternalProject()?this._createInternalUserExtra(t):{}),this._createCustomer(e.id,"user",t)))}_clientSessionFromCrud(e){var t;return{id:e.id,userId:e.user_id,createdAt:new Date(e.created_at),isImpersonation:e.is_impersonation,lastUsedAt:e.last_used_at?new Date(e.last_used_at):void 0,isCurrentSession:null!==(t=e.is_current_session)&&void 0!==t&&t,geoInfo:e.last_used_at_end_user_ip_info}}_getOwnedAdminApp(t,n){return this._ownedAdminApps.has([n,t])||this._ownedAdminApps.set([n,t],new e.LazyStackAdminAppImpl.value({baseUrl:this._interface.options.getBaseUrl(),projectId:t,tokenStore:null,projectOwnerSession:n,noAutomaticPrefetch:!0})),this._ownedAdminApps.get([n,t])}get projectId(){return this._interface.projectId}get version(){return Of}async _isTrusted(e){return function(e){const t="".concat(gd(),".stack-auth.example.com"),n=wd(e,"https://".concat(t));return!!n&&n.host===t&&"https:"===n.protocol}(e)||"undefined"!==typeof window&&window.location.origin===new URL(e).origin}get urls(){return function(e){var t,n,a;const r=null!==(t=e.handler)&&void 0!==t?t:"/handler",o=null!==(n=e.home)&&void 0!==n?n:"/",i=null!==(a=e.afterSignIn)&&void 0!==a?a:o;return p({handler:r,signIn:"".concat(r,"/sign-in"),afterSignIn:o,signUp:"".concat(r,"/sign-up"),afterSignUp:i,signOut:"".concat(r,"/sign-out"),afterSignOut:o,emailVerification:"".concat(r,"/email-verification"),passwordReset:"".concat(r,"/password-reset"),forgotPassword:"".concat(r,"/forgot-password"),oauthCallback:"".concat(r,"/oauth-callback"),magicLinkCallback:"".concat(r,"/magic-link-callback"),home:o,accountSettings:"".concat(r,"/account-settings"),error:"".concat(r,"/error"),teamInvitation:"".concat(r,"/team-invitation"),mfa:"".concat(r,"/mfa"),onboarding:"".concat(r,"/onboarding")},on(e))}(this._urlOptions)}async _getCurrentUrl(){return"none"===this._redirectMethod?null:new URL(window.location.href)}async _redirectTo(e){"none"!==this._redirectMethod&&("object"===typeof this._redirectMethod&&this._redirectMethod.navigate?this._redirectMethod.navigate(e.url.toString()):e.replace?window.location.replace(e.url):window.location.assign(e.url),await nd(2e3))}useNavigate(){return"object"===typeof this._redirectMethod?this._redirectMethod.useNavigate():"window"===this._redirectMethod?e=>window.location.assign(e):e=>{}}async _redirectIfTrusted(e,t){if(!await this._isTrusted(e))throw new Error("Redirect URL ".concat(e," is not trusted; should be relative."));return await this._redirectTo(p({url:e},t))}async _redirectToHandler(e,t){let n=this.urls[e];if(!n)throw new Error("No URL for handler name ".concat(e));if(null===t||void 0===t||!t.noRedirectBack)if("afterSignIn"===e||"afterSignUp"===e)if("undefined"===typeof window);else{n=new URLSearchParams(window.location.search).get("after_auth_return_to")||n}else if("signIn"===e||"signUp"===e||"onboarding"===e)if("undefined"===typeof window);else{const e=new URL(window.location.href),t=new URL(n,e);e.searchParams.has("after_auth_return_to")?t.searchParams.set("after_auth_return_to",e.searchParams.get("after_auth_return_to")):e.protocol===t.protocol&&e.host===t.host&&t.searchParams.set("after_auth_return_to",bd(e)),n=bd(t)}await this._redirectIfTrusted(n,t)}async redirectToSignIn(e){return await this._redirectToHandler("signIn",e)}async redirectToSignUp(e){return await this._redirectToHandler("signUp",e)}async redirectToSignOut(e){return await this._redirectToHandler("signOut",e)}async redirectToEmailVerification(e){return await this._redirectToHandler("emailVerification",e)}async redirectToPasswordReset(e){return await this._redirectToHandler("passwordReset",e)}async redirectToForgotPassword(e){return await this._redirectToHandler("forgotPassword",e)}async redirectToHome(e){return await this._redirectToHandler("home",e)}
2async redirectToOAuthCallback(e){return await this._redirectToHandler("oauthCallback",e)}async redirectToMagicLinkCallback(e){return await this._redirectToHandler("magicLinkCallback",e)}async redirectToAfterSignIn(e){return await this._redirectToHandler("afterSignIn",e)}async redirectToAfterSignUp(e){return await this._redirectToHandler("afterSignUp",e)}async redirectToOnboarding(e){return await this._redirectToHandler("onboarding",e)}async redirectToAfterSignOut(e){return await this._redirectToHandler("afterSignOut",e)}async redirectToAccountSettings(e){return await this._redirectToHandler("accountSettings",e)}async redirectToError(e){return await this._redirectToHandler("error",e)}async redirectToTeamInvitation(e){return await this._redirectToHandler("teamInvitation",e)}async redirectToMfa(e){return await this._redirectToHandler("mfa",e)}async sendForgotPasswordEmail(e,t){var n;return await this._interface.sendForgotPasswordEmail(e,null!==(n=null===t||void 0===t?void 0:t.callbackUrl)&&void 0!==n?n:sm(this.urls.passwordReset,"callbackUrl"))}async sendMagicLinkEmail(e,t){var n;return await this._interface.sendMagicLinkEmail(e,null!==(n=null===t||void 0===t?void 0:t.callbackUrl)&&void 0!==n?n:sm(this.urls.magicLinkCallback,"callbackUrl"))}async resetPassword(e){return await this._interface.resetPassword(e)}async verifyPasswordResetCode(e){return await this._interface.verifyPasswordResetCode(e)}async verifyTeamInvitationCode(e){return await this._interface.acceptTeamInvitation({type:"check",code:e,session:await this._getSession()})}async acceptTeamInvitation(e){const t=await this._interface.acceptTeamInvitation({type:"use",code:e,session:await this._getSession()});return"ok"===t.status?ld.ok(void 0):ld.error(t.error)}async getTeamInvitationDetails(e){const t=await this._interface.acceptTeamInvitation({type:"details",code:e,session:await this._getSession()});return"ok"===t.status?ld.ok({teamDisplayName:t.data.team_display_name}):ld.error(t.error)}async verifyEmail(e){const t=await this._interface.verifyEmail(e);return await this._currentUserCache.refresh([await this._getSession()]),await this._clientContactChannelsCache.refresh([await this._getSession()]),t}async getUser(e){if("anonymous"===(null===e||void 0===e?void 0:e.or)&&!1===e.includeRestricted)throw new Error("Cannot use { or: 'anonymous' } with { includeRestricted: false }. Anonymous users implicitly include restricted users.");this._ensurePersistentTokenStore(null===e||void 0===e?void 0:e.tokenStore);const t=await this._getSession(null===e||void 0===e?void 0:e.tokenStore);let n=ld.orThrow(await this._currentUserCache.getOrWait([t],"write-only"));const a="anonymous"===(null===e||void 0===e?void 0:e.or)||"anonymous-if-exists[deprecated]"===(null===e||void 0===e?void 0:e.or),r=!0===(null===e||void 0===e?void 0:e.includeRestricted)||a;if(null===n||n.is_anonymous&&!a||n.is_restricted&&!r)switch(null===e||void 0===e?void 0:e.or){case"redirect":null!==n&&void 0!==n&&n.is_anonymous||null===n||void 0===n||!n.is_restricted?await this.redirectToSignIn({replace:!0}):await this.redirectToOnboarding({replace:!0});break;case"throw":throw new Error("User is not signed in but getUser was called with { or: 'throw' }");case"anonymous":{var o;const e=await this._signUpAnonymously();return null!==(o=await this.getUser({tokenStore:e,or:"anonymous-if-exists[deprecated]",includeRestricted:!0}))&&void 0!==o?o:cn("Something went wrong while signing up anonymously")}case void 0:case"anonymous-if-exists[deprecated]":case"return-null":return null}return n&&this._currentUserFromCrud(n,t)}useUser(e){if("anonymous"===(null===e||void 0===e?void 0:e.or)&&!1===e.includeRestricted)throw new Error("Cannot use { or: 'anonymous' } with { includeRestricted: false }. Anonymous users implicitly include restricted users.");this._ensurePersistentTokenStore(null===e||void 0===e?void 0:e.tokenStore);const t=this._useSession(null===e||void 0===e?void 0:e.tokenStore);let n=Kf(this._currentUserCache,[t],"clientApp.useUser()");const a="anonymous"===(null===e||void 0===e?void 0:e.or)||"anonymous-if-exists[deprecated]"===(null===e||void 0===e?void 0:e.or),r=!0===(null===e||void 0===e?void 0:e.includeRestricted)||a;if(null===n||n.is_anonymous&&!a||n.is_restricted&&!r)switch(null===e||void 0===e?void 0:e.or){case"redirect":var i,s;throw null!==(i=n)&&void 0!==i&&i.is_anonymous||null===(s=n)||void 0===s||!s.is_restricted?rd(this.redirectToSignIn({replace:!0})):rd(this.redirectToOnboarding({replace:!0})),Eh(),new hn("suspend should never return");case"throw":throw new Error("User is not signed in but useUser was called with { or: 'throw' }");case"anonymous":throw rd(async()=>{await this._signUpAnonymously(),"undefined"!==typeof window&&window.location.reload()}),Eh(),new hn("suspend should never return");case void 0:case"anonymous-if-exists[deprecated]":case"return-null":n=null}return(0,o.useMemo)(()=>n&&this._currentUserFromCrud(n,t),[n,t,null===e||void 0===e?void 0:e.or])}_getTokenPartialUserFromSession(e,t){const n=e.getAccessTokenIfNotExpiredYet(0,null);if(!n)return null;const a=n.payload.is_anonymous;return a&&"anonymous"!==t.or?null:{id:n.payload.sub,primaryEmail:n.payload.email,displayName:n.payload.name,primaryEmailVerified:n.payload.email_verified,isAnonymous:a,isRestricted:n.payload.is_restricted,restrictedReason:n.payload.restricted_reason}}async _getPartialUserFromConvex(e){var t,n,a;const r=await e.auth.getUserIdentity();return r?{id:r.subject,displayName:null!==(t=r.name)&&void 0!==t?t:null,primaryEmail:null!==(n=r.email)&&void 0!==n?n:null,primaryEmailVerified:r.email_verified,isAnonymous:r.is_anonymous,isRestricted:r.is_restricted,restrictedReason:null!==(a=r.restricted_reason)&&void 0!==a?a:null}:null}async getPartialUser(e){switch(e.from){case"token":{var t;this._ensurePersistentTokenStore(null!==(t=e.tokenStore)&&void 0!==t?t:this._tokenStoreInit);const n=await this._getSession(e.tokenStore);return this._getTokenPartialUserFromSession(n,e)}case"convex":return await this._getPartialUserFromConvex(e.ctx);default:throw new Error("Invalid 'from' option: ".concat(e.from))}}usePartialUser(e){switch(e.from){case"token":{var t;this._ensurePersistentTokenStore(null!==(t=e.tokenStore)&&void 0!==t?t:this._tokenStoreInit);const n=this._useSession(e.tokenStore);return this._getTokenPartialUserFromSession(n,e)}case"convex":return Kf(this._convexPartialUserCache,[e.ctx],"clientApp.usePartialUser()");default:throw new Error("Invalid 'from' option: ".concat(e.from))}}getConvexClientAuth(e){return async t=>{var n,a;const r=await this._getSession(null!==(n=e.tokenStore)&&void 0!==n?n:this._tokenStoreInit);if(!t.forceRefreshToken){var o;const e=await r.getOrFetchLikelyValidTokens(2e4,75e3);return null!==(o=null===e||void 0===e?void 0:e.accessToken.token)&&void 0!==o?o:null}const i=await r.fetchNewTokens();return null!==(a=null===i||void 0===i?void 0:i.accessToken.token)&&void 0!==a?a:null}}
2async getConvexHttpClientAuth(e){var t;const n=await this._getSession(e.tokenStore),a=await n.getOrFetchLikelyValidTokens(2e4,75e3);return null!==(t=null===a||void 0===a?void 0:a.accessToken.token)&&void 0!==t?t:""}async _updateClientUser(e,t){const n=await this._interface.updateClientUser(function(e){return{display_name:e.displayName,client_metadata:e.clientMetadata,selected_team_id:e.selectedTeamId,totp_secret_base64:null!=e.totpMultiFactorSecret?An(e.totpMultiFactorSecret):e.totpMultiFactorSecret,profile_image_url:e.profileImageUrl,otp_auth_enabled:e.otpAuthEnabled,passkey_auth_enabled:e.passkeyAuthEnabled,primary_email:e.primaryEmail}}(e),t);return await this._refreshUser(t),n}async signInWithOAuth(e,t){var n,a;if("undefined"===typeof window)throw new Error("signInWithOAuth can currently only be called in a browser environment");this._ensurePersistentTokenStore();const r=await this._getSession();await async function(e,t,n){const{codeChallenge:a,state:r}=await Im(),o=await e.getOAuthUrl({provider:t.provider,redirectUrl:sm(t.redirectUrl,"redirectUrl"),errorRedirectUrl:sm(t.errorRedirectUrl,"errorRedirectUrl"),codeChallenge:a,state:r,type:"authenticate",providerScope:t.providerScope,session:n});window.location.assign(o),await ed()}(this._interface,{provider:e,redirectUrl:null!==(n=null===t||void 0===t?void 0:t.returnTo)&&void 0!==n?n:this.urls.oauthCallback,errorRedirectUrl:this.urls.error,providerScope:null===(a=this._oauthScopesOnSignIn[e])||void 0===a?void 0:a.join(" ")},r)}async _experimentalMfa(e,t){var n,a;"undefined"!==typeof window&&window.sessionStorage.setItem("stack_mfa_attempt_code",null!==(n=null===(a=e.details)||void 0===a?void 0:a.attempt_code)&&void 0!==n?n:cn("attempt code missing"));throw await this.redirectToMfa(),new hn("we should have redirected in redirectToMfa()")}async _catchMfaRequiredError(e){try{return await e()}catch(oL){if(so.MultiFactorAuthenticationRequired.isInstance(oL))return ld.ok(await this._experimentalMfa(oL,await this._getSession()));throw oL}}async signInWithCredential(e){this._ensurePersistentTokenStore();const t=await this._getSession();let n;try{n=await this._catchMfaRequiredError(async()=>await this._interface.signInWithCredential(e.email,e.password,t))}catch(oL){if(so.InvalidTotpCode.isInstance(oL))return ld.error(oL);throw oL}return"ok"===n.status?(await this._signInToAccountWithTokens(n.data),e.noRedirect||await this.redirectToAfterSignIn({replace:!0}),ld.ok(void 0)):ld.error(n.error)}async signUpWithCredential(e){var t;if(e.noVerificationCallback&&e.verificationCallbackUrl)throw new hn("verificationCallbackUrl is not allowed when noVerificationCallback is true");this._ensurePersistentTokenStore();const n=await this._getSession(),a=e.noVerificationCallback?void 0:null!==(t=e.verificationCallbackUrl)&&void 0!==t?t:sm(this.urls.emailVerification,"verificationCallbackUrl");let r=await this._interface.signUpWithCredential(e.email,e.password,a,n);return"error"===r.status&&r.error instanceof so.RedirectUrlNotWhitelisted&&!e.noVerificationCallback&&void 0!==a&&(console.error("Warning: The verification callback URL is not trusted. Proceeding with signup without email verification. Please add your domain to the trusted domains list in your Stack Auth dashboard.",{url:a}),r=await this._interface.signUpWithCredential(e.email,e.password,void 0,n)),"ok"===r.status?(await this._signInToAccountWithTokens(r.data),e.noRedirect||await this.redirectToAfterSignUp({replace:!0}),ld.ok(void 0)):ld.error(r.error)}async _signUpAnonymously(){return this._ensurePersistentTokenStore(),this._anonymousSignUpInProgress||(this._anonymousSignUpInProgress=(async()=>{this._ensurePersistentTokenStore();const e=await this._getSession(),t=await this._interface.signUpAnonymously(e);if("ok"!==t.status)throw new hn("signUpAnonymously() should never return an error");return await this._signInToAccountWithTokens(t.data),this._anonymousSignUpInProgress=null,t.data})()),await this._anonymousSignUpInProgress}async signInWithMagicLink(e,t){this._ensurePersistentTokenStore();const n=await this._getSession();let a;try{a=await this._catchMfaRequiredError(async()=>await this._interface.signInWithMagicLink(e,n))}catch(oL){if(so.InvalidTotpCode.isInstance(oL))return ld.error(oL);throw oL}return"ok"===a.status?(await this._signInToAccountWithTokens(a.data),null!==t&&void 0!==t&&t.noRedirect||(a.data.newUser?await this.redirectToAfterSignUp({replace:!0}):await this.redirectToAfterSignIn({replace:!0})),ld.ok(void 0)):ld.error(a.error)}async promptCliLogin(e){const t=await this._interface.sendClientRequest("/auth/cli",{method:"POST",headers:{"Content-Type":"application/json"}
2,body:JSON.stringify({expires_in_millis:e.expiresInMillis})},null);if(!t.ok)return ld.error(new so.CliAuthError("Failed to initiate CLI auth: ".concat(t.status," ").concat(await t.text())));const n=await t.json(),a=n.polling_code,r=n.login_code,o="".concat(e.appUrl,"/handler/cli-auth-confirm?login_code=").concat(encodeURIComponent(r));e.promptLink?e.promptLink(o):console.log("Please visit the following URL to authenticate:\n".concat(o));let i=0;for(;i<(null!==(s=e.maxAttempts)&&void 0!==s?s:1/0);){var s;i++;const t=await this._interface.sendClientRequest("/auth/cli/poll",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({polling_code:a})},null);if(!t.ok)return ld.error(new so.CliAuthError("Failed to initiate CLI auth: ".concat(t.status," ").concat(await t.text())));const n=await t.json();if(201===t.status&&"success"===n.status)return ld.ok(n.refresh_token);if("waiting"!==n.status)return"expired"===n.status?ld.error(new so.CliAuthExpiredError("CLI authentication request expired. Please try again.")):"used"===n.status?ld.error(new so.CliAuthUsedError("This authentication token has already been used.")):ld.error(new so.CliAuthError("Unexpected status from CLI auth polling: ".concat(n.status)));var l;await nd(null!==(l=e.waitTimeMillis)&&void 0!==l?l:2e3)}return ld.error(new so.CliAuthError("Timed out waiting for CLI authentication."))}async signInWithMfa(e,t,n){this._ensurePersistentTokenStore();const a=await this._getSession();let r;try{r=await this._catchMfaRequiredError(async()=>await this._interface.signInWithMfa(e,t,a))}catch(oL){if(oL instanceof so.InvalidTotpCode)return ld.error(oL);throw oL}return"ok"===r.status?(await this._signInToAccountWithTokens(r.data),null!==n&&void 0!==n&&n.noRedirect||(r.data.newUser?await this.redirectToAfterSignUp({replace:!0}):await this.redirectToAfterSignIn({replace:!0})),ld.ok(void 0)):ld.error(r.error)}async signInWithPasskey(){this._ensurePersistentTokenStore();const e=await this._getSession();let t;try{t=await this._catchMfaRequiredError(async()=>{const t=await this._interface.initiatePasskeyAuthentication({},e);if("ok"!==t.status)return ld.error(new so.PasskeyAuthenticationFailed("Failed to get initiation options for passkey authentication"));const{options_json:n,code:a}=t.data;if("THIS_VALUE_WILL_BE_REPLACED.example.com"!==n.rpId)throw new hn("Expected returned RP ID from server to equal sentinel, but found ".concat(n.rpId));n.rpId=window.location.hostname;const r=await im({optionsJSON:n});return await this._interface.signInWithPasskey({authentication_response:r,code:a},e)})}catch(n){return n instanceof Zf?ld.error(new so.PasskeyWebAuthnError(n.message,n.name)):ld.error(new so.PasskeyAuthenticationFailed("Failed to sign in with passkey"))}return"ok"===t.status?(await this._signInToAccountWithTokens(t.data),await this.redirectToAfterSignIn({replace:!0}),ld.ok(void 0)):ld.error(t.error)}async callOAuthCallback(){if("undefined"===typeof window)throw new Error("callOAuthCallback can currently only be called in a browser environment");let e;this._ensurePersistentTokenStore();try{e=await this._catchMfaRequiredError(async()=>await async function(e,t){const n=Mm();if(!n)return ld.ok(void 0);try{return ld.ok(await e.callOAuthCallback({oauthParams:n.originalUrl.searchParams,redirectUri:sm(t,"redirectUri"),codeVerifier:n.codeVerifier,state:n.state}))}catch(oL){if(Pn.isKnownError(oL))throw oL;throw new hn("Error signing in during OAuth callback. Please try again.",{cause:oL})}}(this._interface,this.urls.oauthCallback))}catch(oL){if(so.InvalidTotpCode.isInstance(oL))return alert("Invalid TOTP code. Please try signing in again."),!1;throw oL}return!("ok"!==e.status||!e.data)&&(await this._signInToAccountWithTokens(e.data),"afterCallbackRedirectUrl"in e.data&&e.data.afterCallbackRedirectUrl?(await this._redirectTo({url:e.data.afterCallbackRedirectUrl,replace:!0}),!0):e.data.newUser?(await this.redirectToAfterSignUp({replace:!0}),!0):(await this.redirectToAfterSignIn({replace:!0}),!0))}async _signOut(e,t){var n,a;null===(n=this._eventTracker)||void 0===n||n.clearBuffer(),null===(a=this._sessionRecorder)||void 0===a||a.clearBuffer(),await al.withWriteLock(async()=>{await this._interface.signOut(e),null!==t&&void 0!==t&&t.redirectUrl?await this._redirectTo({url:t.redirectUrl,replace:!0}):await this.redirectToAfterSignOut()})}async signOut(e){var t;const n=await this.getUser({tokenStore:null!==(t=null===e||void 0===e?void 0:e.tokenStore)&&void 0!==t?t:void 0});n&&await n.signOut({redirectUrl:null===e||void 0===e?void 0:e.redirectUrl})}async getAccessToken(e){var t;const n=await this.getUser({tokenStore:null!==(t=null===e||void 0===e?void 0:e.tokenStore)&&void 0!==t?t:void 0});return n?await n.getAccessToken():null}useAccessToken(e){var t;const n=this.useUser({tokenStore:null!==(t=null===e||void 0===e?void 0:e.tokenStore)&&void 0!==t?t:void 0});return n?n.useAccessToken():null}async getRefreshToken(e){var t;const n=await this.getUser({tokenStore:null!==(t=null===e||void 0===e?void 0:e.tokenStore)&&void 0!==t?t:void 0});return n?await n.getRefreshToken():null}useRefreshToken(e){var t;const n=this.useUser({tokenStore:null!==(t=null===e||void 0===e?void 0:e.tokenStore)&&void 0!==t?t:void 0});return n?n.useRefreshToken():null}async getAuthHeaders(e){return{"x-stack-auth":JSON.stringify(await this.getAuthJson(e))}}useAuthHeaders(e){return{"x-stack-auth":JSON.stringify(this.useAuthJson(e))}}async getAuthJson(e){var t;const n=await this.getUser({tokenStore:null!==(t=null===e||void 0===e?void 0:e.tokenStore)&&void 0!==t?t:void 0});return n?await n.getAuthJson():{accessToken:null,refreshToken:null}}useAuthJson(e){var t;const n=this.useUser({tokenStore:null!==(t=null===e||void 0===e?void 0:e.tokenStore)&&void 0!==t?t:void 0});return n?n.useAuthJson():{accessToken:null,refreshToken:null}}async getProject(){const e=ld.orThrow(await this._currentProjectCache.getOrWait([],"write-only"));return this._clientProjectFromCrud(e)}useProject(){const e=Kf(this._currentProjectCache,[],"clientApp.useProject()");return(0,o.useMemo)(()=>this._clientProjectFromCrud(e),[e])}async _listOwnedProjects(e){this._ensureInternalProject();return ld.orThrow(await this._ownedProjectsCache.getOrWait([e],"write-only")).map(t=>this._getOwnedAdminApp(t.id,e)._adminOwnedProjectFromCrud(t,()=>this._refreshOwnedProjects(e)))}_useOwnedProjects(e){this._ensureInternalProject();const t=Kf(this._ownedProjectsCache,[e],"clientApp.useOwnedProjects()");return(0,o.useMemo)(()=>t.map(t=>this._getOwnedAdminApp(t.id,e)._adminOwnedProjectFromCrud(t,()=>this._refreshOwnedProjects(e))),[t])}async _createProject(e,t){this._ensureInternalProject();const n=await this._interface.createProject(function(e){return p(p({},jf(e)),{},{display_name:e.displayName,owner_team_id:e.teamId})}(t),e),a=this._getOwnedAdminApp(n.id,e)._adminOwnedProjectFromCrud(n,
2()=>this._refreshOwnedProjects(e));return await this._refreshOwnedProjects(e),a}async _refreshUser(e){await this._refreshSession(e)}async _refreshSession(e){await Promise.all([this._currentUserCache.refresh([e]),this._currentUserConnectedAccountsCache.refresh([e])]),e.suggestAccessTokenExpired()}async _refreshUsers(){}async _refreshProject(){await this._currentProjectCache.refresh([])}async _refreshOwnedProjects(e){await this._ownedProjectsCache.refresh([e])}static get[Ef](){return{fromClientJson:t=>{const n=JSON.stringify(ln(t,[])),a=Jm.get(t.uniqueIdentifier);if(a){const[e,r]=a;if(void 0!==e&&e!==n)throw new hn("The provided app JSON does not match the configuration of the existing client app with the same unique identifier",{providedObj:t,existingString:e});return r}const r=ln(t,["uniqueIdentifier"]),{analytics:o}=r,i=l(r,Km);return new e(p(p({},i),{},{analytics:Um(o)}),{uniqueIdentifier:t.uniqueIdentifier,checkString:n})}}}get[Ef](){var e=this;return{toClientJson:()=>{if("string"!==typeof this._redirectMethod)throw new hn("Cannot serialize to JSON from an application with a non-string redirect method");const e="publishableClientKey"in this._interface.options?this._interface.options.publishableClientKey:void 0;return p(p({baseUrl:this._options.baseUrl,projectId:this.projectId},null!=e?{publishableClientKey:e}:{}),{},{tokenStore:this._tokenStoreInit,urls:this._urlOptions,oauthScopesOnSignIn:this._oauthScopesOnSignIn,uniqueIdentifier:this._getUniqueIdentifier(),redirectMethod:this._redirectMethod,extraRequestHeaders:this._options.extraRequestHeaders,analytics:Lm(this._analyticsOptions)})},setCurrentUser:e=>{rd(async()=>{await this._currentUserCache.forceSetCachedValueAsync([await this._getSession()],ld.fromPromise(e))})},getConstructorOptions:()=>this._options,sendSessionReplayBatch:async(e,t)=>await this._interface.sendSessionReplayBatch(e,await this._getSession(),t),sendAnalyticsEventBatch:async(e,t)=>await this._interface.sendAnalyticsEventBatch(e,await this._getSession(),t),sendRequest:async function(t,n){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"client";return await e._interface.sendClientRequest(t,n,await e._getSession(),a)}}}};$m.LazyStackAdminAppImpl={value:void 0};var Qm=$m,Xm=class extends Qm{constructor(e,t){var n,a,r,o,i;const s=Mf(e),l=null!==(n=s.publishableClientKey)&&void 0!==n?n:zf();super(s,p(p({},t),{},{interface:null!==(a=null===t||void 0===t?void 0:t.interface)&&void 0!==a?a:new Hu(p(p({getBaseUrl:()=>Vf(s.baseUrl),projectId:null!==(r=s.projectId)&&void 0!==r?r:Bf(),extraRequestHeaders:null!==(o=s.extraRequestHeaders)&&void 0!==o?o:Uf(),clientVersion:Of},null!=l?{publishableClientKey:l}:{}),{},{secretServerKey:null!==(i=s.secretServerKey)&&void 0!==i?i:Lf()}))})),this._currentServerUserCache=Rf(async e=>e.isKnownToBeInvalid()?null:await this._interface.getServerUserByToken(e)),this._serverUsersCache=If(async e=>{let[t,n,a,r,o,i,s]=e;return await this._interface.listServerUsers({cursor:t,limit:n,orderBy:a,desc:r,query:o,includeRestricted:i,includeAnonymous:s})}),this._serverUserCache=If(async e=>{let[t]=e;const n=await this._interface.getServerUserById(t);return ld.or(n,null)}),this._serverTeamsCache=If(async e=>{let[t]=e;return await this._interface.listServerTeams({userId:t})}),this._serverUserTeamInvitationsCache=If(async e=>{let[t]=e;return await this._interface.listServerUserTeamInvitations(t)}),this._serverTeamUserPermissionsCache=If(async e=>{let[t,n,a]=e;return await this._interface.listServerTeamPermissions({teamId:t,userId:n,recursive:a},null)}),this._serverUserProjectPermissionsCache=If(async e=>{let[t,n]=e;return await this._interface.listServerProjectPermissions({userId:t,recursive:n},null)}),this._serverUserOAuthConnectionAccessTokensCache=If(async e=>{let[t,n,a]=e;try{return{accessToken:(await this._interface.createServerProviderAccessToken(t,n,a||"")).access_token}}catch(r){if(!so.OAuthConnectionDoesNotHaveRequiredScope.isInstance(r)&&!so.OAuthConnectionNotConnectedToUser.isInstance(r))throw r}return null}),this._serverUserOAuthConnectionCache=If(async e=>{let[t,n,a,r]=e;return await this._getUserOAuthConnectionCacheFn({getUser:async()=>ld.orThrow(await this._serverUserCache.getOrWait([t],"write-only")),getOrWaitOAuthToken:async()=>ld.orThrow(await this._serverUserOAuthConnectionAccessTokensCache.getOrWait([t,n,a||""],"write-only")),useOAuthToken:()=>Kf(this._serverUserOAuthConnectionAccessTokensCache,[t,n,a||""],"user.useConnectedAccount()"),providerId:n,scope:a,redirect:r,session:null})}),this._serverUserConnectedAccountsCache=If(async e=>{let[t]=e;return(await this._interface.listServerConnectedAccounts(t)).items.map(e=>this._createServerOAuthConnectionFromCrudItem(t,e))}),this._serverUserOAuthConnectionAccessTokensByAccountCache=If(async e=>{let[t,n,a,r]=e;try{return{accessToken:(await this._interface.createServerProviderAccessTokenByAccount(t,n,a,r||"")).access_token}}catch(o){if(!so.OAuthConnectionDoesNotHaveRequiredScope.isInstance(o)&&!so.OAuthConnectionNotConnectedToUser.isInstance(o))throw o}return null}),this._serverTeamMemberProfilesCache=If(async e=>{let[t]=e;return await this._interface.listServerTeamMemberProfiles({teamId:t})}),this._serverTeamInvitationsCache=If(async e=>{let[t]=e;return await this._interface.listServerTeamInvitations({teamId:t})}),this._serverUserTeamProfileCache=If(async e=>{let[t,n]=e;return await this._interface.getServerTeamMemberProfile({teamId:t,userId:n})}),this._serverContactChannelsCache=If(async e=>{let[t]=e;return await this._interface.listServerContactChannels(t)}),this._serverNotificationCategoriesCache=If(async e=>{let[t]=e;return await this._interface.listServerNotificationCategories(t)}),this._serverDataVaultStoreValueCache=If(async e=>{let[t,n,a]=e;return await this._interface.getDataVaultStoreValue(a,t,n)}),this._emailDeliveryInfoCache=If(async()=>await this._interface.getEmailDeliveryInfo()),this._serverUserApiKeysCache=If(async e=>{let[t]=e;return await this._interface.listProjectApiKeys({user_id:t},null,"server")}),this._serverTeamApiKeysCache=If(async e=>{let[t]=e;return await this._interface.listProjectApiKeys({team_id:t},null,"server")}),this._convexIdentitySubjectCache=If(async e=>{let[t]=e;const n=await t.auth.getUserIdentity();return n?n.subject:null}),this._serverCheckApiKeyCache=If(async e=>{let[t,n]=e;return await this._interface.checkProjectApiKey(t,n,null,"server")}),this._serverOAuthProvidersCache=If(async e=>{let[t]=e;return await this._interface.listServerOAuthProviders({user_id:t})}),this._serverTeamItemsCache=If(async e=>{let[t,n]=e;return await this._interface.getItem({teamId:t,itemId:n},null,"server")}),this._serverUserItemsCache=If(async e=>{let[t,n]=e;return await this._interface.getItem({userId:t,itemId:n},null,"server")}),this._serverCustomItemsCache=If(async e=>{let[t,n]=e;return await this._interface.getItem({customCustomerId:t,itemId:n},null,"server")}),this._serverUserProductsCache=If(async e=>{let[t,n,a]=e;return await this._interface.listProducts({customer_type:"user",customer_id:t,cursor:null!==n&&void 0!==n?n:void 0,limit:null!==a&&void 0!==a?a:void 0},null,"server")}),this._serverTeamProductsCache=If(async e=>{let[t,n,a]=e;return await this._interface.listProducts({customer_type:"team",customer_id:t,cursor:null!==n&&void 0!==n?n:void 0,limit:null!==a&&void 0!==a?a:void 0},null,"server")}),this._serverCustomProductsCache=If(async e=>{let[t,n,a]=e;return await this._interface.listProducts({customer_type:"custom",customer_id:t,cursor:null!==n&&void 0!==n?n:void 0,limit:null!==a&&void 0!==a?a:void 0},null,"server")})}_createServerCustomer(e,t){const n=this,a="user"===t?n._serverUserProductsCache:n._serverTeamProductsCache,r="user"===t?{userId:e}:{teamId:e};return p(p({},this._createCustomer(e,t,null)),{},{getItem:async e=>await n.getItem(p({itemId:e},r)),useItem:e=>n.useItem(p({itemId:e},r)),async grantProduct(r){"user"===t?"productId"in r?await n.grantProduct({userId:e,productId:r.productId,quantity:r.quantity}):await n.grantProduct({userId:e,product:r.product,quantity:r.quantity}):"productId"in r?await n.grantProduct({teamId:e,productId:r.productId,quantity:r.quantity}):await n.grantProduct({teamId:e,product:r.product,quantity:r.quantity}),await a.refresh([e,null,null])},async createCheckoutUrl(a){const r="productId"in a?a.productId:a.product;return await n._interface.createCheckoutUrl(t,e,r,null,a.returnUrl,"server")}})}async _updateServerUser(e,t){const n=await this._interface.updateServerUser(e,function(e){return p(p({},{display_name:e.displayName,primary_email:e.primaryEmail,client_metadata:e.clientMetadata,client_read_only_metadata:e.clientReadOnlyMetadata,server_metadata:e.serverMetadata,selected_team_id:e.selectedTeamId,primary_email_auth_enabled:e.primaryEmailAuthEnabled,primary_email_verified:e.primaryEmailVerified,password:e.password,profile_image_url:e.profileImageUrl,totp_secret_base64:null!=e.totpMultiFactorSecret?An(e.totpMultiFactorSecret):e.totpMultiFactorSecret}),{},{restricted_by_admin:e.restrictedByAdmin,restricted_by_admin_reason:e.restrictedByAdminReason,restricted_by_admin_private_details:e.restrictedByAdminPrivateDetails})}(t));return await this._refreshUsers(),n}_serverEditableTeamProfileFromCrud(e){const t=this;return{displayName:e.display_name,profileImageUrl:e.profile_image_url,async update(n){await t._interface.updateServerTeamMemberProfile({teamId:e.team_id,userId:e.user_id,profile:{display_name:n.displayName,profile_image_url:n.profileImageUrl}}),await t._serverUserTeamProfileCache.refresh([e.team_id,e.user_id])}}}_serverContactChannelFromCrud(e,t){const n=this;return{id:t.id,value:t.value,type:t.type,isVerified:t.is_verified,isPrimary:t.is_primary,usedForAuth:t.used_for_auth,async sendVerificationEmail(a){var r;await n._interface.sendServerContactChannelVerificationEmail(e,t.id,null!==(r=null===a||void 0===a?void 0:a.callbackUrl)&&void 0!==r?r:sm(n.urls.emailVerification,"callbackUrl"))},async update(a){await n._interface.updateServerContactChannel(e,t.id,function(e){return{value:e.value,is_verified:e.isVerified,used_for_auth:e.usedForAuth,is_primary:e.isPrimary}}(a)),await Promise.all([n._serverContactChannelsCache.refresh([e]),n._serverUserCache.refresh([e])])},async delete(){await n._interface.deleteServerContactChannel(e,t.id),await Promise.all([n._serverContactChannelsCache.refresh([e]),n._serverUserCache.refresh([e])])}}}_serverNotificationCategoryFromCrud(e,t){const n=this;return{id:t.notification_category_id,name:t.notification_category_name,enabled:t.enabled,canDisable:t.can_disable,async setEnabled(a){await n._interface.setServerNotificationsEnabled(e,t.notification_category_id,a),await n._serverNotificationCategoriesCache.refresh([e])}}}_serverOAuthProviderFromCrud(e){const t=this;return{id:e.id,type:e.type,userId:e.user_id,accountId:e.account_id,email:e.email,allowSignIn:e.allow_sign_in,allowConnectedAccounts:e.allow_connected_accounts,async update(n){try{return await t._interface.updateServerOAuthProvider(e.user_id,e.
2id,{account_id:n.accountId,email:n.email,allow_sign_in:n.allowSignIn,allow_connected_accounts:n.allowConnectedAccounts}),await Promise.all([t._serverOAuthProvidersCache.refresh([e.user_id]),t._serverUserConnectedAccountsCache.refresh([e.user_id])]),ld.ok(void 0)}catch(a){if(so.OAuthProviderAccountIdAlreadyUsedForSignIn.isInstance(a))return ld.error(a);throw a}},async delete(){await t._interface.deleteServerOAuthProvider(e.user_id,e.id),await Promise.all([t._serverOAuthProvidersCache.refresh([e.user_id]),t._serverUserConnectedAccountsCache.refresh([e.user_id])])}}}_serverApiKeyFromCrud(e){return p(p({},this._baseApiKeyFromCrud(e)),{},{async revoke(){await this.update({revoked:!0})},update:async t=>{await this._interface.updateProjectApiKey("team"===e.type?{team_id:e.team_id}:{user_id:e.user_id},e.id,await async function(e,t){return on({description:t.description,expires_at_millis:null==t.expiresAt?t.expiresAt:t.expiresAt.getTime(),revoked:t.revoked})}(e.type,t),null,"server"),"team"===e.type?await this._serverTeamApiKeysCache.refresh([e.team_id]):await this._serverUserApiKeysCache.refresh([e.user_id])}})}_createServerOAuthConnectionFromCrudItem(e,t){const n=this,a=t.provider,r=t.provider_account_id;return{id:a,provider:a,providerAccountId:r,async getAccessToken(t){var o,i;const s=null!==(o=null===t||void 0===t||null===(i=t.scopes)||void 0===i?void 0:i.join(" "))&&void 0!==o?o:"",l=ld.orThrow(await n._serverUserOAuthConnectionAccessTokensByAccountCache.getOrWait([e,a,r,s],"write-only"));if(!l){const e=s?"The requested scopes [".concat(s,"] are not available on the existing token."):"The OAuth refresh token has likely been revoked or expired.";return ld.error(new so.OAuthAccessTokenNotAvailable(a,"".concat(e," The user needs to re-authorize by calling `linkConnectedAccount` or using `getOrLinkConnectedAccount`.")))}return ld.ok(l)},useAccessToken(t){var o,i;const s=null!==(o=null===t||void 0===t||null===(i=t.scopes)||void 0===i?void 0:i.join(" "))&&void 0!==o?o:"",l=Kf(n._serverUserOAuthConnectionAccessTokensByAccountCache,[e,a,r,s],"connection.useAccessToken()");if(!l){const e=s?"The requested scopes [".concat(s,"] are not available on the existing token."):"The OAuth refresh token has likely been revoked or expired.";return ld.error(new so.OAuthAccessTokenNotAvailable(a,"".concat(e," The user needs to re-authorize by calling `linkConnectedAccount` or using `getOrLinkConnectedAccount`.")))}return ld.ok(l)}}}_serverUserFromCrud(e){const t=this;const n=e,a=hm(p(p({},super._createBaseUser(e)),{},{lastActiveAt:new Date(e.last_active_at_millis),serverMetadata:e.server_metadata,restrictedByAdmin:n.restricted_by_admin,restrictedByAdminReason:n.restricted_by_admin_reason,restrictedByAdminPrivateDetails:n.restricted_by_admin_private_details,async setPrimaryEmail(n,a){await t._updateServerUser(e.id,{primaryEmail:n,primaryEmailVerified:null===a||void 0===a?void 0:a.verified})},async grantPermission(n,a){if(n&&"string"!==typeof n&&a){const r=n;await t._interface.grantServerTeamUserPermission(r.id,e.id,a);for(const n of[!0,!1])await t._serverTeamUserPermissionsCache.refresh([r.id,e.id,n])}else{const a=n;await t._interface.grantServerProjectPermission(e.id,a);for(const n of[!0,!1])await t._serverUserProjectPermissionsCache.refresh([e.id,n])}},async revokePermission(n,a){if(n&&"string"!==typeof n&&a){const r=n;await t._interface.revokeServerTeamUserPermission(r.id,e.id,a);for(const n of[!0,!1])await t._serverTeamUserPermissionsCache.refresh([r.id,e.id,n])}else{const a=n;await t._interface.revokeServerProjectPermission(e.id,a);for(const n of[!0,!1])await t._serverUserProjectPermissionsCache.refresh([e.id,n])}},async delete(){const n=await t._interface.deleteServerUser(e.id);return await t._refreshUsers(),n},async createSession(n){var a,r;const o=await t._interface.createServerUserSession(e.id,null!==(a=n.expiresInMillis)&&void 0!==a?a:31536e6,null!==(r=n.isImpersonation)&&void 0!==r&&r);return{getTokens:async()=>o}},getActiveSessions:async()=>(await t._interface.listServerSessions(e.id)).items.map(e=>t._clientSessionFromCrud(e)),async revokeSession(e){await t._interface.deleteServerSession(e)},async setDisplayName(e){return await this.update({displayName:e})},async setClientMetadata(e){return await this.update({clientMetadata:e})},async setClientReadOnlyMetadata(e){return await this.update({clientReadOnlyMetadata:e})},async setServerMetadata(e){return await this.update({serverMetadata:e})},async setSelectedTeam(e){var t;return await this.update({selectedTeamId:"string"===typeof e?e:null!==(t=null===e||void 0===e?void 0:e.id)&&void 0!==t?t:null})},getConnectedAccount:async function(n,a){var r,o;const i=null!==(r=null===a||void 0===a||null===(o=a.scopes)||void 0===o?void 0:o.join(" "))&&void 0!==r?r:"";if("object"===typeof n&&"provider"in n&&"providerAccountId"in n){const{provider:a,providerAccountId:r}=n,o=ld.orThrow(await t._serverUserConnectedAccountsCache.getOrWait([e.id],"write-only")).find(e=>e.provider===a&&e.providerAccountId===r);return o||null}return ld.orThrow(await t._serverUserOAuthConnectionCache.getOrWait([e.id,n,i,"redirect"===(null===a||void 0===a?void 0:a.or)],"write-only"))},useConnectedAccount:function(n,a){var r,o;const i=null!==(r=null===a||void 0===a||null===(o=a.scopes)||void 0===o?void 0:o.join(" "))&&void 0!==r?r:"";if("object"===typeof n&&"provider"in n&&"providerAccountId"in n){const{provider:a,providerAccountId:r}=n,o=Kf(t._serverUserConnectedAccountsCache,[e.id],"user.useConnectedAccount()").find(e=>e.provider===a&&e.providerAccountId===r);return null!==o&&void 0!==o?o:null}return Kf(t._serverUserOAuthConnectionCache,[e.id,n,i,"redirect"===(null===a||void 0===a?void 0:a.or)],"user.useConnectedAccount()")},listConnectedAccounts:async()=>ld.orThrow(await t._serverUserConnectedAccountsCache.getOrWait([e.id],"write-only")),useConnectedAccounts:()=>Kf(t._serverUserConnectedAccountsCache,[e.id],"user.useConnectedAccounts()"),async linkConnectedAccount(){throw new hn("linkConnectedAccount is not available for server users. OAuth flows must be initiated on the client side.")},async getOrLinkConnectedAccount(){throw new hn("getOrLinkConnectedAccount is not available for server users. OAuth flows must be initiated on the client side.")},useOrLinkConnectedAccount(){throw new hn("useOrLinkConnectedAccount is not available for server users. OAuth flows must be initiated on the client side.")},selectedTeam:e.selected_team?t._serverTeamFromCrud(e.selected_team):null,async getTeam(e){var t;return null!==(t=(await this.listTeams()).find(t=>
2t.id===e))&&void 0!==t?t:null},useTeam(e){const t=this.useTeams();return(0,o.useMemo)(()=>{var n;return null!==(n=t.find(t=>t.id===e))&&void 0!==n?n:null},[t,e])},listTeams:async()=>ld.orThrow(await t._serverTeamsCache.getOrWait([e.id],"write-only")).map(e=>t._serverTeamFromCrud(e)),useTeams(){const n=Kf(t._serverTeamsCache,[e.id],"user.useTeams()");return(0,o.useMemo)(()=>n.map(e=>t._serverTeamFromCrud(e)),[n])},createTeam:async n=>{const a=await t._interface.createServerTeam(um(p({creatorUserId:e.id},n)));return await t._serverTeamsCache.refresh([void 0]),await t._updateServerUser(e.id,{selectedTeamId:a.id}),t._serverTeamFromCrud(a)},leaveTeam:async n=>{await t._interface.leaveServerTeam({teamId:n.id,userId:e.id})},listTeamInvitations:async()=>ld.orThrow(await t._serverUserTeamInvitationsCache.getOrWait([e.id],"write-only")).map(n=>t._serverReceivedTeamInvitationFromCrud(e.id,n)),useTeamInvitations(){const n=Kf(t._serverUserTeamInvitationsCache,[e.id],"user.useTeamInvitations()");return(0,o.useMemo)(()=>n.map(n=>t._serverReceivedTeamInvitationFromCrud(e.id,n)),[n])},async listPermissions(n,a){if(n&&"id"in n){var r;const o=n,i=null===(r=null===a||void 0===a?void 0:a.recursive)||void 0===r||r;return ld.orThrow(await t._serverTeamUserPermissionsCache.getOrWait([o.id,e.id,i],"write-only")).map(e=>t._serverPermissionFromCrud(e))}{var o;const a=null===(o=null===n||void 0===n?void 0:n.recursive)||void 0===o||o;return ld.orThrow(await t._serverUserProjectPermissionsCache.getOrWait([e.id,a],"write-only")).map(e=>t._serverPermissionFromCrud(e))}},usePermissions(n,a){if(n&&"id"in n){var r;const i=n,s=null===(r=null===a||void 0===a?void 0:a.recursive)||void 0===r||r,l=Kf(t._serverTeamUserPermissionsCache,[i.id,e.id,s],"user.usePermissions()");return(0,o.useMemo)(()=>l.map(e=>t._serverPermissionFromCrud(e)),[l])}{var i;const a=null===(i=null===n||void 0===n?void 0:n.recursive)||void 0===i||i,r=Kf(t._serverUserProjectPermissionsCache,[e.id,a],"user.usePermissions()");return(0,o.useMemo)(()=>r.map(e=>t._serverPermissionFromCrud(e)),[r])}},async getPermission(e,t){if(e&&"string"!==typeof e){var n;const a=e;return null!==(n=(await this.listPermissions(a)).find(e=>e.id===t))&&void 0!==n?n:null}{var a;const t=e;return null!==(a=(await this.listPermissions()).find(e=>e.id===t))&&void 0!==a?a:null}},usePermission(e,t){if(e&&"string"!==typeof e){const n=e,a=this.usePermissions(n);return(0,o.useMemo)(()=>{var e;return null!==(e=a.find(e=>e.id===t))&&void 0!==e?e:null},[a,t])}{const t=e,n=this.usePermissions();return(0,o.useMemo)(()=>{var e;return null!==(e=n.find(e=>e.id===t))&&void 0!==e?e:null},[n,t])}},async hasPermission(e,t){if(e&&"string"!==typeof e){const n=e;return null!==await this.getPermission(n,t)}{const t=e;return null!==await this.getPermission(t)}},async update(n){await t._updateServerUser(e.id,n)},sendVerificationEmail:async()=>await t._checkFeatureSupport("sendVerificationEmail() on ServerUser",{}),async updatePassword(n){const a=await t._interface.updatePassword(n);return await t._serverUserCache.refresh([e.id]),a},async setPassword(n){const a=await this.update(n);return await t._serverUserCache.refresh([e.id]),a},async getTeamProfile(n){const a=ld.orThrow(await t._serverUserTeamProfileCache.getOrWait([n.id,e.id],"write-only"));return t._serverEditableTeamProfileFromCrud(a)},useTeamProfile(n){const a=Kf(t._serverUserTeamProfileCache,[n.id,e.id],"user.useTeamProfile()");return(0,o.useMemo)(()=>t._serverEditableTeamProfileFromCrud(a),[a])},listContactChannels:async()=>ld.orThrow(await t._serverContactChannelsCache.getOrWait([e.id],"write-only")).map(n=>t._serverContactChannelFromCrud(e.id,n)),useContactChannels(){const n=Kf(t._serverContactChannelsCache,[e.id],"user.useContactChannels()");return(0,o.useMemo)(()=>n.map(n=>t._serverContactChannelFromCrud(e.id,n)),[n])},createContactChannel:async n=>{const a=await t._interface.createServerContactChannel(function(e,t){return{type:t.type,value:t.value,is_verified:t.isVerified,user_id:e,used_for_auth:t.usedForAuth,is_primary:t.isPrimary}}(e.id,n));return await Promise.all([t._serverContactChannelsCache.refresh([e.id]),t._serverUserCache.refresh([e.id])]),t._serverContactChannelFromCrud(e.id,a)},useNotificationCategories:()=>Kf(t._serverNotificationCategoriesCache,[e.id],"user.useNotificationCategories()").map(n=>t._serverNotificationCategoryFromCrud(e.id,n)),listNotificationCategories:async()=>ld.orThrow(await t._serverNotificationCategoriesCache.getOrWait([e.id],"write-only")).map(n=>t._serverNotificationCategoryFromCrud(e.id,n)),useApiKeys:()=>Kf(t._serverUserApiKeysCache,[e.id],"user.useApiKeys()").map(e=>t._serverApiKeyFromCrud(e)),listApiKeys:async()=>ld.orThrow(await t._serverUserApiKeysCache.getOrWait([e.id],"write-only")).map(e=>t._serverApiKeyFromCrud(e)),async createApiKey(n){const a=await t._interface.createProjectApiKey(await lm("user",e.id,n),null,"server");return await t._serverUserApiKeysCache.refresh([e.id]),t._serverApiKeyFromCrud(a)},useOAuthProviders(){const n=Kf(t._serverOAuthProvidersCache,[e.id],"user.useOAuthProviders()");return(0,o.useMemo)(()=>n.map(e=>t._serverOAuthProviderFromCrud(e)),[n])},listOAuthProviders:async()=>ld.orThrow(await t._serverOAuthProvidersCache.getOrWait([e.id],"write-only")).map(e=>t._serverOAuthProviderFromCrud(e)),useOAuthProvider(e){const t=this.useOAuthProviders();return(0,o.useMemo)(()=>{var n;return null!==(n=t.find(t=>
2t.id===e))&&void 0!==n?n:null},[t,e])},async getOAuthProvider(e){var t;return null!==(t=(await this.listOAuthProviders()).find(t=>t.id===e))&&void 0!==t?t:null},async registerPasskey(n){var a;const r=(null===n||void 0===n?void 0:n.hostname)||(null===(a=await t._getCurrentUrl())||void 0===a?void 0:a.hostname);if(!r)throw new hn("hostname must be provided if the Stack App does not have a redirect method");const o=await t._interface.initiateServerPasskeyRegistration(e.id);if("ok"!==o.status)return ld.error(new so.PasskeyRegistrationFailed("Failed to get initiation options for passkey registration"));const{options_json:i,code:s}=o.data;if("THIS_VALUE_WILL_BE_REPLACED.example.com"!==i.rp.id)throw new hn("Expected returned RP ID from server to equal sentinel, but found ".concat(i.rp.id));let l;i.rp.id=r;try{l=await am({optionsJSON:i})}catch(p){return p instanceof Zf?ld.error(new so.PasskeyWebAuthnError(p.message,p.name)):(gn("passkey-registration-failed",p),ld.error(new so.PasskeyRegistrationFailed("Failed to start passkey registration due to unknown error")))}const{accessToken:c,refreshToken:u}=await t._interface.createServerUserSession(e.id,12e4,!1),d=new ll({accessToken:c,refreshToken:u,refreshAccessTokenCallback:async()=>null}),h=await t._interface.registerPasskey({credential:l,code:s},d);return await t._serverUserCache.refresh([e.id]),h}},t._createServerCustomer(e.id,"user")));return a}_serverTeamUserFromCrud(e){return hm(p(p({},this._serverUserFromCrud(e.user)),{},{teamProfile:{displayName:e.display_name,profileImageUrl:e.profile_image_url}}))}_serverSentTeamInvitationFromCrud(e){return{id:e.id,recipientEmail:e.recipient_email,expiresAt:new Date(e.expires_at_millis),revoke:async()=>{await this._interface.revokeServerTeamInvitation(e.id,e.team_id),await this._serverTeamInvitationsCache.refresh([e.team_id])}}}_serverReceivedTeamInvitationFromCrud(e,t){const n=this;return{id:t.id,teamId:t.team_id,teamDisplayName:t.team_display_name,recipientEmail:t.recipient_email,expiresAt:new Date(t.expires_at_millis),accept:async()=>{await n._interface.acceptServerTeamInvitationById(t.id,e),await Promise.all([n._serverUserTeamInvitationsCache.refresh([e]),n._serverTeamsCache.refresh([e]),n._serverTeamInvitationsCache.refresh([t.team_id])])}}}_currentUserFromCrud(e,t){return hm(p(p(p({},this._serverUserFromCrud(e)),this._createAuth(t)),this._isInternalProject()?this._createInternalUserExtra(t):{}))}_serverTeamFromCrud(e){const t=this;return p({id:e.id,displayName:e.display_name,profileImageUrl:e.profile_image_url,createdAt:new Date(e.created_at_millis),clientMetadata:e.client_metadata,clientReadOnlyMetadata:e.client_read_only_metadata,serverMetadata:e.server_metadata,async update(n){await t._interface.updateServerTeam(e.id,function(e){return{display_name:e.displayName,profile_image_url:e.profileImageUrl,client_metadata:e.clientMetadata,client_read_only_metadata:e.clientReadOnlyMetadata,server_metadata:e.serverMetadata}}(n)),await t._serverTeamsCache.refresh([void 0])},async delete(){await t._interface.deleteServerTeam(e.id),await t._serverTeamsCache.refresh([void 0])},listUsers:async()=>ld.orThrow(await t._serverTeamMemberProfilesCache.getOrWait([e.id],"write-only")).map(e=>t._serverTeamUserFromCrud(e)),useUsers(){const n=Kf(t._serverTeamMemberProfilesCache,[e.id],"team.useUsers()");return(0,o.useMemo)(()=>n.map(e=>t._serverTeamUserFromCrud(e)),[n])},async addUser(n){await t._interface.addServerUserToTeam({teamId:e.id,userId:n}),await t._serverTeamMemberProfilesCache.refresh([e.id])},async removeUser(n){await t._interface.removeServerUserFromTeam({teamId:e.id,userId:n}),await t._serverTeamMemberProfilesCache.refresh([e.id])},async inviteUser(n){var a;await t._interface.sendServerTeamInvitation({teamId:e.id,email:n.email,callbackUrl:null!==(a=n.callbackUrl)&&void 0!==a?a:sm(t.urls.teamInvitation,"callbackUrl")}),await t._serverTeamInvitationsCache.refresh([e.id])},listInvitations:async()=>ld.orThrow(await t._serverTeamInvitationsCache.getOrWait([e.id],"write-only")).map(e=>t._serverSentTeamInvitationFromCrud(e)),useInvitations(){const n=Kf(t._serverTeamInvitationsCache,[e.id],"team.useInvitations()");return(0,o.useMemo)(()=>n.map(e=>t._serverSentTeamInvitationFromCrud(e)),[n])},useApiKeys:()=>Kf(t._serverTeamApiKeysCache,[e.id],"team.useApiKeys()").map(e=>t._serverApiKeyFromCrud(e)),listApiKeys:async()=>ld.orThrow(await t._serverTeamApiKeysCache.getOrWait([e.id],"write-only")).map(e=>t._serverApiKeyFromCrud(e)),async createApiKey(n){const a=await t._interface.createProjectApiKey(await lm("team",e.id,n),null,"server");return await t._serverTeamApiKeysCache.refresh([e.id]),t._serverApiKeyFromCrud(a)}},t._createServerCustomer(e.id,"team"))}_serverItemFromCrud(e,t){const n=this;return{displayName:t.display_name,quantity:t.quantity,nonNegativeQuantity:Math.max(0,t.quantity),increaseQuantity:async a=>{const r="user"===e.type?{itemId:t.id,userId:e.id}:"team"===e.type?{itemId:t.id,teamId:e.id}:{itemId:t.id,customCustomerId:e.id};await n._interface.updateItemQuantity(r,{delta:a}),"user"===e.type?await n._serverUserItemsCache.refresh([e.id,t.id]):"team"===e.type?await n._serverTeamItemsCache.refresh([e.id,t.id]):await n._serverCustomItemsCache.refresh([e.id,t.id])},decreaseQuantity:async a=>{const r="user"===e.type?{itemId:t.id,userId:e.id}:"team"===e.type?{itemId:t.id,teamId:e.id}:{itemId:t.id,customCustomerId:e.id};await n._interface.updateItemQuantity(r,{delta:-a,allow_negative:!0}),"user"===e.type?await n._serverUserItemsCache.refresh([e.id,t.id]):"team"===e.type?await n._serverTeamItemsCache.refresh([e.id,t.id]):await n._serverCustomItemsCache.refresh([e.id,t.id])},tryDecreaseQuantity:async a=>{try{const r="user"===e.type?{itemId:t.id,userId:e.id}:"team"===e.type?{itemId:t.id,teamId:e.id}:{itemId:t.id,customCustomerId:e.id};return await n._interface.updateItemQuantity(r,{delta:-a}),"user"===e.type?await n._serverUserItemsCache.refresh([e.id,t.id]):"team"===e.type?await n._serverTeamItemsCache.refresh([e.id,t.id]):await n._serverCustomItemsCache.refresh([e.id,t.id]),!0}catch(r){if(r instanceof so.ItemQuantityInsufficientAmount)return!1;throw r}}}}async _getUserApiKey(e){const t=ld.orThrow(await this._serverCheckApiKeyCache.getOrWait(["user",e.apiKey],"write-only"));return t?this._serverApiKeyFromCrud(t):null}async _getTeamApiKey(e){const t=ld.orThrow(await this._serverCheckApiKeyCache.getOrWait(["team",e.apiKey],"write-only"));return t?this._serverApiKeyFromCrud(t):null}_useUserApiKey(e){const t=Kf(this._serverCheckApiKeyCache,["user",e.apiKey],"serverApp.useUserApiKey()");return(0,o.useMemo)(()=>t?this._serverApiKeyFromCrud(t):null,[t])}_useTeamApiKey(e){const t=Kf(this._serverCheckApiKeyCache,["team",e.apiKey],"serverApp.useTeamApiKey()");return(0,o.useMemo)(()=>t?this._serverApiKeyFromCrud(t):null,[t])}async _getUserByApiKey(e){const t=await this._getUserApiKey({apiKey:e});
2return null===t?null:await this.getServerUserById(t.userId)}async _getUserByConvex(e,t){const n=await e.auth.getUserIdentity();if(null===n)return null;const a=await this.getServerUserById(n.subject);return null!==a&&void 0!==a&&a.isAnonymous&&!t?null:a}_useUserByConvex(e,t){const n=Kf(this._convexIdentitySubjectCache,[e],"serverApp.useUserByConvex()");if(null===n)return null;const a=this.useUserById(n);return null!==a&&void 0!==a&&a.isAnonymous&&!t?null:a}_useUserByApiKey(e){const t=this._useUserApiKey({apiKey:e});return null===t?null:this.useUserById(t.userId)}async _getTeamByApiKey(e){const t=await this._getTeamApiKey({apiKey:e});return null===t?null:await this.getTeam(t.teamId)}_useTeamByApiKey(e){const t=this._useTeamApiKey({apiKey:e});return null===t?null:this.useTeam(t.teamId)}async createUser(e){const t=await this._interface.createServerUser(function(e){return{primary_email:e.primaryEmail,password:e.password,otp_auth_enabled:e.otpAuthEnabled,primary_email_auth_enabled:e.primaryEmailAuthEnabled,display_name:e.displayName,primary_email_verified:e.primaryEmailVerified,client_metadata:e.clientMetadata,client_read_only_metadata:e.clientReadOnlyMetadata,server_metadata:e.serverMetadata}}(e));return await this._refreshUsers(),this._serverUserFromCrud(t)}
2async getUser(e){if("string"===typeof e)return await this.getServerUserById(e);if("object"===typeof e&&"apiKey"in e)return await this._getUserByApiKey(e.apiKey);if("object"===typeof e&&"from"in e&&"convex"===e.from)return await this._getUserByConvex(e.ctx,"or"in e&&"anonymous"===e.or);{var t,n,a,r,o,i;if("anonymous"===(null===(t=e)||void 0===t?void 0:t.or)&&!1===e.includeRestricted)throw new Error("Cannot use { or: 'anonymous' } with { includeRestricted: false }. Anonymous users implicitly include restricted users.");this._ensurePersistentTokenStore(null===(n=e)||void 0===n?void 0:n.tokenStore);const c=await this._getSession(null===(a=e)||void 0===a?void 0:a.tokenStore);let u=ld.orThrow(await this._currentServerUserCache.getOrWait([c],"write-only"));const d="anonymous"===(null===(r=e)||void 0===r?void 0:r.or)||"anonymous-if-exists[deprecated]"===(null===(o=e)||void 0===o?void 0:o.or),h=!0===(null===(i=e)||void 0===i?void 0:i.includeRestricted)||d;var s;if(null===u||u.is_anonymous&&!d||u.is_restricted&&!h)switch(null===(s=e)||void 0===s?void 0:s.or){case"redirect":null!==u&&void 0!==u&&u.is_anonymous||null===u||void 0===u||!u.is_restricted?await this.redirectToSignIn({replace:!0}):await this.redirectToOnboarding({replace:!0});break;case"throw":throw new Error("User is not signed in but getUser was called with { or: 'throw' }");case"anonymous":{var l;const e=await this._signUpAnonymously();return null!==(l=await this.getUser({tokenStore:e,or:"anonymous-if-exists[deprecated]",includeRestricted:!0}))&&void 0!==l?l:cn("Something went wrong while signing up anonymously")}case void 0:case"anonymous-if-exists[deprecated]":case"return-null":return null}return u&&this._currentUserFromCrud(u,c)}}async getServerUser(){return console.warn("stackServerApp.getServerUser is deprecated; use stackServerApp.getUser instead"),await this.getUser()}async getServerUserById(e){const t=ld.orThrow(await this._serverUserCache.getOrWait([e],"write-only"));return t&&this._serverUserFromCrud(t)}useUser(e){if("string"===typeof e)return this.useUserById(e);if("object"===typeof e&&"apiKey"in e)return this._useUserByApiKey(e.apiKey);if("object"===typeof e&&"from"in e&&"convex"===e.from)return this._useUserByConvex(e.ctx,"or"in e&&"anonymous"===e.or);{var t,n,a,r,i,s,l;if("anonymous"===(null===(t=e)||void 0===t?void 0:t.or)&&!1===e.includeRestricted)throw new Error("Cannot use { or: 'anonymous' } with { includeRestricted: false }. Anonymous users implicitly include restricted users.");this._ensurePersistentTokenStore(null===(n=e)||void 0===n?void 0:n.tokenStore);const u=this._useSession(null===(a=e)||void 0===a?void 0:a.tokenStore);let d=Kf(this._currentServerUserCache,[u],"serverApp.useUser()");const h="anonymous"===(null===(r=e)||void 0===r?void 0:r.or)||"anonymous-if-exists[deprecated]"===(null===(i=e)||void 0===i?void 0:i.or);null===(s=e)||void 0===s||s.includeRestricted;var c;if(null===d)switch(null===(c=e)||void 0===c?void 0:c.or){case"redirect":throw rd(this.redirectToSignIn({replace:!0})),Eh(),new hn("suspend should never return");case"throw":throw new Error("User is not signed in but useUser was called with { or: 'throw' }");case"anonymous":throw rd(async()=>{await this._signUpAnonymously(),"undefined"!==typeof window&&window.location.reload()}),Eh(),new hn("suspend should never return")}return(0,o.useMemo)(()=>d&&this._currentUserFromCrud(d,u),[d,u,null===(l=e)||void 0===l?void 0:l.or])}}useUserById(e){const t=Kf(this._serverUserCache,[e],"serverApp.useUserById()");return(0,o.useMemo)(()=>t&&this._serverUserFromCrud(t),[t])}async listUsers(e){var t,n;const a=ld.orThrow(await this._serverUsersCache.getOrWait([null===e||void 0===e?void 0:e.cursor,
2null===e||void 0===e?void 0:e.limit,null===e||void 0===e?void 0:e.orderBy,null===e||void 0===e?void 0:e.desc,null===e||void 0===e?void 0:e.query,null===e||void 0===e?void 0:e.includeRestricted,null===e||void 0===e?void 0:e.includeAnonymous],"write-only")),r=a.items.map(e=>this._serverUserFromCrud(e));return r.nextCursor=null!==(t=null===(n=a.pagination)||void 0===n?void 0:n.next_cursor)&&void 0!==t?t:null,r}useUsers(e){var t,n;const a=Kf(this._serverUsersCache,[null===e||void 0===e?void 0:e.cursor,null===e||void 0===e?void 0:e.limit,null===e||void 0===e?void 0:e.orderBy,null===e||void 0===e?void 0:e.desc,null===e||void 0===e?void 0:e.query,null===e||void 0===e?void 0:e.includeRestricted,null===e||void 0===e?void 0:e.includeAnonymous],"serverApp.useUsers()"),r=a.items.map(e=>this._serverUserFromCrud(e));return r.nextCursor=null!==(t=null===(n=a.pagination)||void 0===n?void 0:n.next_cursor)&&void 0!==t?t:null,r}_serverPermissionFromCrud(e){return{id:e.id}}_serverTeamPermissionDefinitionFromCrud(e){return{id:e.id,description:e.description,containedPermissionIds:e.contained_permission_ids}}_serverProjectPermissionDefinitionFromCrud(e){return{id:e.id,description:e.description,containedPermissionIds:e.contained_permission_ids}}async listTeams(){return ld.orThrow(await this._serverTeamsCache.getOrWait([void 0],"write-only")).map(e=>this._serverTeamFromCrud(e))}async getItem(e){if("userId"in e){const t=ld.orThrow(await this._serverUserItemsCache.getOrWait([e.userId,e.itemId],"write-only"));return this._serverItemFromCrud({type:"user",id:e.userId},t)}if("teamId"in e){const t=ld.orThrow(await this._serverTeamItemsCache.getOrWait([e.teamId,e.itemId],"write-only"));return this._serverItemFromCrud({type:"team",id:e.teamId},t)}{const t=ld.orThrow(await this._serverCustomItemsCache.getOrWait([e.customCustomerId,e.itemId],"write-only"));return this._serverItemFromCrud({type:"custom",id:e.customCustomerId},t)}}async listProducts(e){var t,n;if("userId"in e){var a,r;const t=ld.orThrow(await this._serverUserProductsCache.getOrWait([e.userId,null!==(a=e.cursor)&&void 0!==a?a:null,null!==(r=e.limit)&&void 0!==r?r:null],"write-only"));return this._customerProductsFromResponse(t)}if("teamId"in e){var o,i;const t=ld.orThrow(await this._serverTeamProductsCache.getOrWait([e.teamId,null!==(o=e.cursor)&&void 0!==o?o:null,null!==(i=e.limit)&&void 0!==i?i:null],"write-only"));return this._customerProductsFromResponse(t)}const s=ld.orThrow(await this._serverCustomProductsCache.getOrWait([e.customCustomerId,null!==(t=e.cursor)&&void 0!==t?t:null,null!==(n=e.limit)&&void 0!==n?n:null],"write-only"));return this._customerProductsFromResponse(s)}useItem(e){let t,n,a;"userId"in e?(t="user",n=e.userId,a=this._serverUserItemsCache):"teamId"in e?(t="team",n=e.teamId,a=this._serverTeamItemsCache):(t="custom",n=e.customCustomerId,a=this._serverCustomItemsCache);const r=Kf(a,[n,e.itemId],"serverApp.useItem()");return(0,o.useMemo)(()=>this._serverItemFromCrud({type:t,id:n},r),[r])}async grantProduct(e){let t,n;"userId"in e?(t="user",n=e.userId):"teamId"in e?(t="team",n=e.teamId):(t="custom",n=e.customCustomerId),await this._interface.grantProduct({customerType:t,customerId:n,productId:"productId"in e?e.productId:void 0,product:"product"in e?e.product:void 0,quantity:e.quantity});const a="user"===t?this._serverUserProductsCache:"team"===t?this._serverTeamProductsCache:this._serverCustomProductsCache;await a.refresh([n,null,null])}async createTeam(e){const t=await this._interface.createServerTeam(um(e));return await this._serverTeamsCache.refresh([void 0]),this._serverTeamFromCrud(t)}useTeams(){const e=Kf(this._serverTeamsCache,[void 0],"serverApp.useTeams()");return(0,o.useMemo)(()=>e.map(e=>this._serverTeamFromCrud(e)),[e])}async getTeam(e){if("object"===typeof e&&"apiKey"in e)return await this._getTeamByApiKey(e.apiKey);{var t;const n=e;return null!==(t=(await this.listTeams()).find(e=>e.id===n))&&void 0!==t?t:null}}useTeam(e){if("object"===typeof e&&"apiKey"in e)return this._useTeamByApiKey(e.apiKey);{const t=e,n=this.useTeams();return(0,o.useMemo)(()=>{var e;return null!==(e=n.find(e=>e.id===t))&&void 0!==e?e:null},[n,t])}}_createServerDataVaultStore(e){const t=e=>{if("string"!==typeof e.secret)throw new Error("secret must be a string, got "+typeof e.secret)};return{id:e,setValue:async(n,a,r)=>{t(r),await this._interface.setDataVaultStoreValue(r.secret,e,n,a)},getValue:async(n,a)=>(t(a),ld.orThrow(await this._serverDataVaultStoreValueCache.getOrWait([e,n,a.secret],"write-only"))),useValue:(n,a)=>(t(a),Kf(this._serverDataVaultStoreValueCache,[e,n,a.secret],"store.useValue()"))}}async getDataVaultStore(e){return this._createServerDataVaultStore(e)}useDataVaultStore(e){return(0,o.useMemo)(()=>this._createServerDataVaultStore(e),[e])}async sendEmail(e){await this._interface.sendEmail(e)}async getEmailDeliveryStats(){return ld.orThrow(await this._emailDeliveryInfoCache.getOrWait([],"write-only"))}useEmailDeliveryStats(){return Kf(this._emailDeliveryInfoCache,[],"stackServerApp.useEmailDeliveryStats()")}
2async _refreshSession(e){await Promise.all([super._refreshUser(e),this._currentServerUserCache.refresh([e])])}async _refreshUsers(){await Promise.all([super._refreshUsers(),this._serverUserCache.refreshWhere(()=>!0),this._serverUsersCache.refreshWhere(()=>!0),this._serverContactChannelsCache.refreshWhere(()=>!0),this._serverOAuthProvidersCache.refreshWhere(()=>!0),this._serverUserConnectedAccountsCache.refreshWhere(()=>!0)])}async createOAuthProvider(e){try{const t=await this._interface.createServerOAuthProvider({user_id:e.userId,provider_config_id:e.providerConfigId,account_id:e.accountId,email:e.email,allow_sign_in:e.allowSignIn,allow_connected_accounts:e.allowConnectedAccounts});return await Promise.all([this._serverOAuthProvidersCache.refresh([e.userId]),this._serverUserConnectedAccountsCache.refresh([e.userId])]),ld.ok(this._serverOAuthProviderFromCrud(t))}catch(t){if(so.OAuthProviderAccountIdAlreadyUsedForSignIn.isInstance(t))return ld.error(t);throw t}}};const Zm=["requirePublishableClientKey"];var eg=class extends Xm{constructor(e,t){var n,a,r,o,i,s;const l=Mf(e),c=null!==(n=l.publishableClientKey)&&void 0!==n?n:zf();super(l,p(p({},t),{},{interface:null!==(a=null===t||void 0===t?void 0:t.interface)&&void 0!==a?a:new Wu(p({getBaseUrl:()=>Vf(l.baseUrl),projectId:null!==(r=l.projectId)&&void 0!==r?r:Bf(),extraRequestHeaders:null!==(o=l.extraRequestHeaders)&&void 0!==o?o:Uf(),clientVersion:Of},l.projectOwnerSession?{projectOwnerSession:l.projectOwnerSession}:p(p({},c?{publishableClientKey:c}:{}),{},{secretServerKey:null!==(i=l.secretServerKey)&&void 0!==i?i:Lf(),superSecretAdminKey:null!==(s=l.superSecretAdminKey)&&void 0!==s?s:Ff.env.STACK_SUPER_SECRET_ADMIN_KEY||cn(new Error("No super secret admin key provided. Please copy your key from the Stack dashboard and put it in the STACK_SUPER_SECRET_ADMIN_KEY environment variable."))})))})),this._adminProjectCache=If(async()=>await this._interface.getProject()),this._internalApiKeysCache=If(async()=>await this._interface.listInternalApiKeys()),this._adminEmailThemeCache=If(async e=>{let[t]=e;return await this._interface.getEmailTheme(t)}),this._adminEmailThemesCache=If(async()=>await this._interface.listEmailThemes()),this._adminEmailTemplatesCache=If(async()=>await this._interface.listInternalEmailTemplates()),this._adminEmailDraftsCache=If(async()=>await this._interface.listInternalEmailDrafts()),this._adminTeamPermissionDefinitionsCache=If(async()=>await this._interface.listTeamPermissionDefinitions()),this._adminProjectPermissionDefinitionsCache=If(async()=>await this._interface.listProjectPermissionDefinitions()),this._svixTokenCache=If(async()=>await this._interface.getSvixToken()),this._metricsCache=If(async e=>{let[t]=e;return await this._interface.getMetrics(t)}),this._emailPreviewCache=If(async e=>{let[t,n,a,r]=e;return await this._interface.renderEmailPreview({themeId:t,themeTsxSource:n,templateId:a,templateTsxSource:r})}),this._emailPreviewWithEditableMarkersCache=If(async e=>{let[t,n,a,r,o]=e;return await this._interface.renderEmailPreview({themeId:t,themeTsxSource:n,templateId:a,templateTsxSource:r,editableMarkers:!0,editableSource:o})}),this._configOverridesCache=If(async()=>await this._interface.getConfig()),this._stripeAccountInfoCache=If(async()=>{try{return await this._interface.getStripeAccountInfo()}catch(e){if(404===(null===e||void 0===e?void 0:e.status))return null;throw e}}),this._transactionsCache=If(async e=>{let[t,n,a,r]=e;return await this._interface.listTransactions({cursor:t,limit:n,type:a,customerType:r})})}_adminConfigFromCrud(e){return JSON.parse(e.config_string)}_adminOwnedProjectFromCrud(e,t){if(null!==this._tokenStoreInit)throw new hn("Owned apps must always have tokenStore === null \u2014 did you not create this project with app._createOwnedApp()?");return p(p({},this._adminProjectFromCrud(e,t)),{},{app:this})}_adminProjectFromCrud(e,t){var n,a,r,i,s,c;if(e.id!==this.projectId)throw new hn("The project ID of the provided project JSON (".concat(e.id,") does not match the project ID of the app (").concat(this.projectId,")!"));const u=this;return{id:e.id,displayName:e.display_name,description:e.description,createdAt:new Date(e.created_at_millis),isProductionMode:e.is_production_mode,ownerTeamId:e.owner_team_id,logoUrl:e.logo_url,logoFullUrl:e.logo_full_url,logoDarkModeUrl:e.logo_dark_mode_url,logoFullDarkModeUrl:e.logo_full_dark_mode_url,config:{signUpEnabled:e.config.sign_up_enabled,credentialEnabled:e.config.credential_enabled,magicLinkEnabled:e.config.magic_link_enabled,passkeyEnabled:e.config.passkey_enabled,clientTeamCreationEnabled:e.config.client_team_creation_enabled,clientUserDeletionEnabled:e.config.client_user_deletion_enabled,allowLocalhost:e.config.allow_localhost,oauthAccountMergeStrategy:e.config.oauth_account_merge_strategy,allowUserApiKeys:e.config.allow_user_api_keys,allowTeamApiKeys:e.config.allow_team_api_keys,oauthProviders:e.config.oauth_providers.map(e=>{var t,n;return"shared"===e.type?{id:e.id,type:"shared"}:{id:e.id,type:"standard",clientId:null!==(t=e.client_id)&&void 0!==t?t:cn("Client ID is missing"),clientSecret:null!==(n=e.client_secret)&&void 0!==n?n:cn("
2Client secret is missing"),facebookConfigId:e.facebook_config_id,microsoftTenantId:e.microsoft_tenant_id,appleBundleIds:e.apple_bundle_ids}}),emailConfig:"shared"===e.config.email_config.type?{type:"shared"}:{type:"standard",host:null!==(n=e.config.email_config.host)&&void 0!==n?n:cn("Email host is missing"),port:null!==(a=e.config.email_config.port)&&void 0!==a?a:cn("Email port is missing"),username:null!==(r=e.config.email_config.username)&&void 0!==r?r:cn("Email username is missing"),password:null!==(i=e.config.email_config.password)&&void 0!==i?i:cn("Email password is missing"),senderName:null!==(s=e.config.email_config.sender_name)&&void 0!==s?s:cn("Email sender name is missing"),senderEmail:null!==(c=e.config.email_config.sender_email)&&void 0!==c?c:cn("Email sender email is missing")},emailTheme:e.config.email_theme,domains:e.config.domains.map(e=>({domain:e.domain,handlerPath:e.handler_path})),createTeamOnSignUp:e.config.create_team_on_sign_up,teamCreatorDefaultPermissions:e.config.team_creator_default_permissions,teamMemberDefaultPermissions:e.config.team_member_default_permissions,userDefaultPermissions:e.config.user_default_permissions},getConfig:async()=>u._adminConfigFromCrud(await u._interface.getConfig()),useConfig(){const e=Kf(u._configOverridesCache,[],"project.useConfig()");return(0,o.useMemo)(()=>u._adminConfigFromCrud(e),[e])},async updateConfig(e){await u._interface.updateConfigOverride("environment",e),await u._refreshProjectConfig()},async pushConfig(e,t){var n;await u._interface.setConfigOverride("branch",e,(n=t.source,"pushed-from-github"===n.type?{type:"pushed-from-github",owner:n.owner,repo:n.repo,branch:n.branch,commit_hash:n.commitHash,config_file_path:n.configFilePath}:n)),await u._refreshProjectConfig()},async updatePushedConfig(e){await u._interface.updateConfigOverride("branch",e),await u._refreshProjectConfig()},async getPushedConfigSource(){const e=await u._interface.getPushedConfigSource();return"pushed-from-github"===(t=e).type?{type:"pushed-from-github",owner:t.owner,repo:t.repo,branch:t.branch,commitHash:t.commit_hash,configFilePath:t.config_file_path}:t;var t},async unlinkPushedConfigSource(){await u._interface.unlinkPushedConfigSource(),await u._refreshProjectConfig()},async resetConfigOverrideKeys(e,t){await u._interface.resetConfigOverrideKeys(e,t),await u._refreshProjectConfig()},async getConfigOverride(e){const t=await u._interface.getConfigOverride(e);return JSON.parse(t.config_string)},async replaceConfigOverride(e,t){if("branch"===e){const n=await u._interface.getPushedConfigSource();await u._interface.setConfigOverride(e,t,n)}else await u._interface.setConfigOverride(e,t);await u._refreshProjectConfig()},async update(e){const{requirePublishableClientKey:n}=e,a=jf(l(e,Zm)),r=!!a.config&&(o=a.config,Object.values(o)).some(e=>void 0!==e);var o;const i=an(a).some(e=>{let[t,n]=e;return"config"===t?r:void 0!==n});i&&(await u._interface.updateProject(a),await t()),void 0!==n&&(await u._interface.updateConfigOverride("project",{"project.requirePublishableClientKey":n}),await u._refreshProjectConfig())},async delete(){await u._interface.deleteProject()},getProductionModeErrors:async()=>Af(e),useProductionModeErrors:()=>Af(e)}}_adminEmailTemplateFromCrud(e){return{type:e.type,subject:e.subject,content:e.content,isDefault:e.is_default}}async getProject(){return this._adminProjectFromCrud(ld.orThrow(await this._adminProjectCache.getOrWait([],"write-only")),()=>this._refreshProject())}useProject(){const e=Kf(this._adminProjectCache,[],"adminApp.useProject()");return(0,o.useMemo)(()=>this._adminProjectFromCrud(e,()=>this._refreshProject()),[e])}_createInternalApiKeyBaseFromCrud(e){const t=this;return{id:e.id,description:e.description,expiresAt:new Date(e.expires_at_millis),manuallyRevokedAt:e.manually_revoked_at_millis?new Date(e.manually_revoked_at_millis):null,createdAt:new Date(e.created_at_millis),isValid(){return null===this.whyInvalid()},whyInvalid(){return this.expiresAt.getTime()<Date.now()?"expired":this.manuallyRevokedAt?"manually-revoked":null},async revoke(){const n=await t._interface.revokeInternalApiKeyById(e.id);return await t._refreshInternalApiKeys(),n}}}_createInternalApiKeyFromCrud(e){return p(p({},this._createInternalApiKeyBaseFromCrud(e)),{},{publishableClientKey:e.publishable_client_key?{lastFour:e.publishable_client_key.last_four}:null,secretServerKey:e.secret_server_key?{lastFour:e.secret_server_key.last_four}:null,superSecretAdminKey:e.super_secret_admin_key?{lastFour:e.super_secret_admin_key.last_four}:null})}_createInternalApiKeyFirstViewFromCrud(e){return p(p({},this._createInternalApiKeyBaseFromCrud(e)),{},{publishableClientKey:e.publishable_client_key,secretServerKey:e.secret_server_key,superSecretAdminKey:e.super_secret_admin_key})}async listInternalApiKeys(){return ld.orThrow(await this._internalApiKeysCache.getOrWait([],"write-only")).map(e=>this._createInternalApiKeyFromCrud(e))}useInternalApiKeys(){const e=Kf(this._internalApiKeysCache,[],"adminApp.useInternalApiKeys()");return(0,o.useMemo)(()=>e.map(e=>this._createInternalApiKeyFromCrud(e)),[e])}async createInternalApiKey(e){const t=await this._interface.createInternalApiKey(function(e){return{description:e.description,expires_at_millis:e.expiresAt.getTime(),has_publishable_client_key:e.hasPublishableClientKey,has_secret_server_key:e.hasSecretServerKey,has_super_secret_admin_key:e.hasSuperSecretAdminKey}}(e));return await this._refreshInternalApiKeys(),this._createInternalApiKeyFirstViewFromCrud(t)}useEmailThemes(){const e=Kf(this._adminEmailThemesCache,[],"adminApp.useEmailThemes()");return(0,o.useMemo)(()=>e.map(e=>({id:e.id,displayName:e.display_name})),[e])}useEmailTemplates(){const e=Kf(this._adminEmailTemplatesCache,[],"adminApp.useEmailTemplates()");return(0,o.useMemo)(()=>e.map(e=>({id:e.id,displayName:e.display_name,themeId:e.theme_id,tsxSource:e.tsx_source})),[e])}useEmailDrafts(){const e=Kf(this._adminEmailDraftsCache,[],"adminApp.useEmailDrafts()");return(0,o.useMemo)(()=>e.map(e=>({id:e.id,displayName:e.display_name,themeId:e.theme_id,tsxSource:e.tsx_source,sentAt:e.sent_at_millis?new Date(e.sent_at_millis):null})),[e])}async listEmailThemes(){return ld.orThrow(await this._adminEmailThemesCache.getOrWait([],"write-only")).map(e=>({id:e.id,displayName:e.display_name}))}async listEmailTemplates(){return ld.orThrow(await this._adminEmailTemplatesCache.getOrWait([],"write-only")).map(e=>({id:e.id,displayName:e.display_name,themeId:e.theme_id,tsxSource:e.tsx_source}))}async listEmailDrafts(){return ld.orThrow(await this._adminEmailDraftsCache.getOrWait([],"write-only")).map(e=>({id:e.id,displayName:e.display_name,themeId:e.theme_id,tsxSource:e.tsx_source,sentAt:e.sent_at_millis?new Date(e.sent_at_millis):null}))}async createTeamPermissionDefinition(e){const t=await this._interface.createTeamPermissionDefinition(function(e){return{id:e.id,description:e.description,contained_permission_ids:e.containedPermissionIds}}(e));return await this._adminTeamPermissionDefinitionsCache.refresh([]),this._serverTeamPermissionDefinitionFromCrud(t)}async updateTeamPermissionDefinition(e,t){await this._interface.updateTeamPermissionDefinition(e,function(e){return{description:e.description,contained_permission_ids:e.containedPermissionIds}}(t)),await this._adminTeamPermissionDefinitionsCache.refresh([])}async deleteTeamPermissionDefinition(e){await this._interface.deleteTeamPermissionDefinition(e),await this._adminTeamPermissionDefinitionsCache.refresh([])}async listTeamPermissionDefinitions(){return ld.orThrow(await this._adminTeamPermissionDefinitionsCache.getOrWait([],"write-only")).map(e=>this._serverTeamPermissionDefinitionFromCrud(e))}useTeamPermissionDefinitions(){const e=Kf(this._adminTeamPermissionDefinitionsCache,[],"adminApp.useTeamPermissionDefinitions()");return(0,o.useMemo)(()=>e.map(e=>this._serverTeamPermissionDefinitionFromCrud(e)),[e])}async createProjectPermissionDefinition(e){const t=await this._interface.createProjectPermissionDefinition(function(e){return{id:e.id,description:e.description,contained_permission_ids:e.containedPermissionIds}}(e));return await this._adminProjectPermissionDefinitionsCache.refresh([]),this._serverProjectPermissionDefinitionFromCrud(t)}async updateProjectPermissionDefinition(e,t){await this._interface.updateProjectPermissionDefinition(e,function(e){return{description:e.description,contained_permission_ids:e.containedPermissionIds}}(t)),await this._adminProjectPermissionDefinitionsCache.refresh([])}async deleteProjectPermissionDefinition(e){await this._interface.deleteProjectPermissionDefinition(e),await this._adminProjectPermissionDefinitionsCache.refresh([])}async listProjectPermissionDefinitions(){return ld.orThrow(await this._adminProjectPermissionDefinitionsCache.getOrWait([],"write-only")).map(e=>this._serverProjectPermissionDefinitionFromCrud(e))}useProjectPermissionDefinitions(){const e=Kf(this._adminProjectPermissionDefinitionsCache,[],"adminApp.useProjectPermissionDefinitions()");return(0,o.useMemo)(()=>e.map(e=>this._serverProjectPermissionDefinitionFromCrud(e)),[e])}useSvixToken(){const e=Kf(this._svixTokenCache,[],"adminApp.useSvixToken()");return{token:e.token,url:e.url}}async _refreshProject(){await Promise.all([super._refreshProject(),this._adminProjectCache.refresh([])])}async _refreshProjectConfig(){await Promise.all([this._configOverridesCache.refresh([]),this._adminProjectCache.refresh([])])}async _refreshInternalApiKeys(){await this._internalApiKeysCache.refresh([])}async _refreshUsers(){await Promise.all([super._refreshUsers(),this._metricsCache.refresh([!1]),this._metricsCache.refresh([!0])])}get[Ef](){var e=this;return p(p({},super[Ef]),{},{useMetrics:function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Kf(e._metricsCache,[t],"adminApp.useMetrics()")}})}async sendTestEmail(e){const t=await this._interface.sendTestEmail({recipient_email:e.recipientEmail,email_config:p(p({},sn(e.emailConfig,["host","port","username","password"])),{},{sender_email:e.emailConfig.senderEmail,sender_name:e.emailConfig.senderName})});return t.success?ld.ok(void 0):ld.error({errorMessage:null!==(n=t.error_message)&&void 0!==n?n:cn("Email test error not specified")});var n}async sendTestWebhook(e){const t=await this._interface.sendTestWebhook({endpoint_id:e.endpointId});return t.success?ld.ok(void 0):ld.error({errorMessage:null!==(n=t.error_message)&&void 0!==n?n:cn("Webhook test error not specified")});var n}async listSentEmails(){return(await this._interface.listSentEmails()).items.map(e=>{var t,n,a;return{id:e.id,to:null!==(t=e.to)&&void 0!==t?t:[],subject:e.subject,recipient:null!==(n=null===(a=e.to)||void 0===a?void 0:a[0])&&void 0!==n?n:"",sentAt:new Date(e.sent_at_millis),error:e.error}})}async sendSignInInvitationEmail(e,t){await this._interface.sendSignInInvitationEmail(e,t)}async createEmailTemplate(e){const t=await this._interface.createEmailTemplate(e);return await this._adminEmailTemplatesCache.refresh([]),t}async deleteEmailTemplate(e){await this._interface.deleteEmailTemplate(e),await this._adminEmailTemplatesCache.refresh([])}async createEmailDraft(e){const t=await this._interface.createEmailDraft({display_name:e.displayName,theme_id:e.themeId,tsx_source:e.tsxSource});return await this._adminEmailDraftsCache.refresh([]),t}async updateEmailDraft(e,t){await this._interface.updateEmailDraft(e,{display_name:t.displayName,theme_id:t.themeId,tsx_source:t.tsxSource}),await this._adminEmailDraftsCache.refresh([])}async deleteEmailDraft(e){await this._interface.deleteEmailDraft(e);const t=this._adminEmailDraftsCache.getIfCached([]);"ok"===t.status&&"ok"===t.data.status&&this._adminEmailDraftsCache.forceSetCac
2hedValue([],ld.ok(t.data.data.filter(t=>t.id!==e))),await this._adminEmailDraftsCache.refresh([])}async sendChatMessage(e,t,n,a){return await this._interface.sendChatMessage(e,t,n,a)}async saveChatMessage(e,t){await this._interface.saveChatMessage(e,t)}async listChatMessages(e){return await this._interface.listChatMessages(e)}async applyWysiwygEdit(e){return await this._interface.applyWysiwygEdit(e)}async createEmailTheme(e){const t=await this._interface.createEmailTheme(e);return await this._adminEmailThemesCache.refresh([]),t}async getEmailPreview(e){return(await this._interface.renderEmailPreview(e)).html}useEmailPreview(e){return Kf(this._emailPreviewCache,[e.themeId,e.themeTsxSource,e.templateId,e.templateTsxSource],"adminApp.useEmailPreview()").html}async getEmailPreviewWithEditableMarkers(e){const t=await this._interface.renderEmailPreview(p(p({},e),{},{editableMarkers:!0,editableSource:e.editableSource}));return{html:t.html,editableRegions:t.editable_regions}}useEmailPreviewWithEditableMarkers(e){const t=Kf(this._emailPreviewWithEditableMarkersCache,[e.themeId,e.themeTsxSource,e.templateId,e.templateTsxSource,e.editableSource],"adminApp.useEmailPreviewWithEditableMarkers()");return{html:t.html,editableRegions:t.editable_regions}}useEmailTheme(e){const t=Kf(this._adminEmailThemeCache,[e],"adminApp.useEmailTheme()");return{displayName:t.display_name,tsxSource:t.tsx_source}}async updateEmailTheme(e,t){await this._interface.updateEmailTheme(e,t),await this._adminEmailThemesCache.refresh([]),await this._adminEmailThemeCache.invalidate([e])}async deleteEmailTheme(e){await this._interface.deleteEmailTheme(e),await this._adminEmailThemesCache.refresh([]),await this._adminEmailThemeCache.invalidate([e])}async updateEmailTemplate(e,t,n){const a=await this._interface.updateEmailTemplate(e,t,n);return await this._adminEmailTemplatesCache.refresh([]),{renderedHtml:a.rendered_html}}async setupPayments(){return await this._interface.setupPayments()}async createStripeWidgetAccountSession(){return await this._interface.createStripeWidgetAccountSession()}async getPaymentMethodConfigs(){return await this._interface.getPaymentMethodConfigs()}async updatePaymentMethodConfigs(e,t){await this._interface.updatePaymentMethodConfigs(e,t)}async createItemQuantityChange(e){await this._interface.updateItemQuantity(p({itemId:e.itemId},"userId"in e?{userId:e.userId}:"teamId"in e?{teamId:e.teamId}:{customCustomerId:e.customCustomerId}),{delta:e.quantity,expires_at:e.expiresAt,description:e.description,allow_negative:!0})}async refundTransaction(e){await this._interface.refundTransaction({type:e.type,id:e.id,refundEntries:e.refundEntries}),await this._transactionsCache.invalidateWhere(()=>!0)}async listTransactions(e){return ld.orThrow(await this._transactionsCache.getOrWait([e.cursor,e.limit,e.type,e.customerType],"write-only"))}_emailOutboxCrudToAdmin(e){const t=e.to;let n;n="user-primary-email"===t.type?{type:"user-primary-email",userId:t.user_id}:"user-custom-emails"===t.type?{type:"user-custom-emails",userId:t.user_id,emails:t.emails}:{type:"custom-emails",emails:t.emails};const a={id:e.id,createdAt:new Date(e.created_at_millis),updatedAt:new Date(e.updated_at_millis),to:n,scheduledAt:new Date(e.scheduled_at_millis),isPaused:!1,hasRendered:!1,hasDelivered:!1,sendRetries:e.send_retries,nextSendRetryAt:e.next_send_retry_at_millis?new Date(e.next_send_retry_at_millis):null,sendAttemptErrors:e.send_attempt_errors?e.send_attempt_errors.map(e=>({attemptNumber:e.attempt_number,timestamp:e.timestamp,externalMessage:e.external_message,externalDetails:e.external_details,internalMessage:e.internal_message,internalDetails:e.internal_details})):null},r=e.has_rendered?p(p({},a),{},{startedRenderingAt:new Date(e.started_rendering_at_millis),renderedAt:new Date(e.rendered_at_millis),subject:e.subject,html:e.html,text:e.text,isTransactional:e.is_transactional,isHighPriority:e.is_high_priority,notificationCategoryId:e.notification_category_id,hasRendered:!0}):null,o=r&&e.started_sending_at_millis?p(p({},r),{},{startedSendingAt:new Date(e.started_sending_at_millis)}):null,i=o&&e.has_delivered?p(p({},o),{},{deliveredAt:new Date(e.delivered_at_millis),hasDelivered:!0}):null;return(()=>{switch(e.status){case"paused":return p(p({},a),{},{status:"paused",simpleStatus:"in-progress",isPaused:!0});case"preparing":return p(p({},a),{},{status:"preparing",simpleStatus:"in-progress"});case"rendering":return p(p({},a),{},{status:"rendering",simpleStatus:"in-progress",startedRenderingAt:new Date(e.started_rendering_at_millis)});case"render-error":return p(p({},a),{},{status:"render-error",simpleStatus:"error",startedRenderingAt:new Date(e.started_rendering_at_millis),renderedAt:new Date(e.rendered_at_millis),renderError:e.render_error});case"scheduled":return p(p({},r),{},{status:"scheduled",simpleStatus:"in-progress"});case"queued":return p(p({},r),{},{status:"queued",simpleStatus:"in-progress"});case"sending":return p(p({},o),{},{status:"sending",simpleStatus:"in-progress"});case"server-error":return p(p({},o),{},{status:"server-error",simpleStatus:"error",errorAt:new Date(e.error_at_millis),serverError:e.server_error});case"skipped":var t;return p(p({},a),{},{status:"skipped",simpleStatus:"ok",skippedAt:new Date(e.skipped_at_millis),skippedReason:e.skipped_reason,skippedDetails:null!==(t=e.skipped_details)&&void 0!==t?t:{},hasRendered:e.has_rendered,startedRenderingAt:e.started_rendering_at_millis?new Date(e.started_rendering_at_millis):void 0,renderedAt:e.rendered_at_millis?new Date(e.rendered_at_millis):void 0,subject:e.subject,html:e.html,text:e.text,isTransactional:e.is_transactional,isHighPriority:e.is_high_priority,notificationCategoryId:e.notification_category_id,startedSendingAt:e.started_sending_at_millis?new Date(e.started_sending_at_millis):void 0});case"bounced":return p(p({},o),{},{status:"bounced",simpleStatus:"error",bouncedAt:new Date(e.bounced_at_millis)});case"delivery-delayed":return p(p({},o),{},{status:"delivery-delayed",simpleStatus:"ok",deliveryDelayedAt:new Date(e.delivery_delayed_at_millis)});case"sent":return p(p({},i),{},{status:"sent",simpleStatus:"ok",canHaveDeliveryInfo:e.can_have_delivery_info});case"opened":return p(p({},i),{},{status:"opened",simpleStatus:"ok",openedAt:new Date(e.opened_at_millis),canHaveDeliveryInfo:!0});case"clicked":return p(p({},i),{},{status:"clicked",simpleStatus:"ok",clickedAt:new Date(e.clicked_at_millis),canHaveDeliveryInfo:!0});case"marked-as-spam":return p(p({},i),{},{status:"marked-as-spam",simpleStatus:"ok",markedAsSpamAt:new Date(e.marked_as_
2spam_at_millis),canHaveDeliveryInfo:!0});default:throw new hn("Unknown email outbox status: ".concat(e.status),{status:e.status})}})()}async listOutboxEmails(e){var t,n;const a=await this._interface.listOutboxEmails({status:null===e||void 0===e?void 0:e.status,simple_status:null===e||void 0===e?void 0:e.simpleStatus,limit:null===e||void 0===e?void 0:e.limit,cursor:null===e||void 0===e?void 0:e.cursor});return{items:a.items.map(e=>this._emailOutboxCrudToAdmin(e)),nextCursor:null!==(t=null===(n=a.pagination)||void 0===n?void 0:n.next_cursor)&&void 0!==t?t:null}}async getOutboxEmail(e){const t=await this._interface.getOutboxEmail(e);return this._emailOutboxCrudToAdmin(t)}async updateOutboxEmail(e,t){const n=await this._interface.updateOutboxEmail(e,{is_paused:t.isPaused,scheduled_at_millis:t.scheduledAtMillis,cancel:t.cancel});return this._emailOutboxCrudToAdmin(n)}async pauseOutboxEmail(e){return await this.updateOutboxEmail(e,{isPaused:!0})}async unpauseOutboxEmail(e){return await this.updateOutboxEmail(e,{isPaused:!1})}async cancelOutboxEmail(e){return await this.updateOutboxEmail(e,{cancel:!0})}useTransactions(e){return Kf(this._transactionsCache,[e.cursor,e.limit,e.type,e.customerType],"adminApp.useTransactions()")}async getStripeAccountInfo(){return await this._interface.getStripeAccountInfo()}useStripeAccountInfo(){return Kf(this._stripeAccountInfoCache,[],"adminApp.useStripeAccountInfo()")}async queryAnalytics(e){return await this._interface.queryAnalytics(e)}async listSessionReplays(e){const t=await this._interface.listSessionReplays({cursor:null===e||void 0===e?void 0:e.cursor,limit:null===e||void 0===e?void 0:e.limit}),n=t.items.map(e=>({id:e.id,projectUser:{id:e.project_user.id,displayName:e.project_user.display_name,primaryEmail:e.project_user.primary_email},startedAt:new Date(e.started_at_millis),lastEventAt:new Date(e.last_event_at_millis),chunkCount:e.chunk_count,eventCount:e.event_count}));return{items:n,nextCursor:t.pagination.next_cursor}}async listSessionReplayChunks(e,t){const n=await this._interface.listSessionReplayChunks(e,{cursor:null===t||void 0===t?void 0:t.cursor,limit:null===t||void 0===t?void 0:t.limit}),a=n.items.map(e=>({id:e.id,batchId:e.batch_id,sessionReplaySegmentId:e.session_replay_segment_id,browserSessionId:e.browser_session_id,eventCount:e.event_count,byteLength:e.byte_length,firstEventAt:new Date(e.first_event_at_millis),lastEventAt:new Date(e.last_event_at_millis),createdAt:new Date(e.created_at_millis)}));return{items:a,nextCursor:n.pagination.next_cursor}}async getSessionReplayChunkEvents(e,t){return await this._interface.getSessionReplayChunkEvents(e,t)}async getSessionReplayEvents(e,t){const n=await this._interface.getSessionReplayEvents(e,t);return{chunks:n.chunks.map(e=>({id:e.id,batchId:e.batch_id,sessionReplaySegmentId:e.session_replay_segment_id,eventCount:e.event_count,byteLength:e.byte_length,firstEventAt:new Date(e.first_event_at_millis),lastEventAt:new Date(e.last_event_at_millis),createdAt:new Date(e.created_at_millis)})),chunkEvents:n.chunk_events.map(e=>({chunkId:e.chunk_id,events:e.events}))}}async previewAffectedUsersByOnboardingChange(e,t){const n=await this._interface.previewAffectedUsersByOnboardingChange({require_email_verification:e.requireEmailVerification},t);return{affectedUsers:n.affected_users.map(e=>({id:e.id,displayName:e.display_name,primaryEmail:e.primary_email,restrictedReason:e.restricted_reason})),totalAffectedCount:n.total_affected_count}}};var{_StackAdminAppImpl:tg,_StackClientAppImpl:ng,_StackServerAppImpl:ag}=(Qm.LazyStackAdminAppImpl.value=eg,{_StackAdminAppImpl:Df(eg),_StackClientAppImpl:Df(Qm),_StackServerAppImpl:Df(Xm)}),rg=ng,og=o.createContext(null);function ig(e){const t=e.serialized?rg[Ef].fromClientJson(e.app):e.app;return Ut.__STACK_AUTH__={app:t},(0,_h.jsx)(og.Provider,{value:{app:t},children:e.children})}function sg(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=lg(e);if(e.projectIdMustMatch&&t.projectId!==e.projectIdMustMatch)throw new Error("Unexpected project ID in useStackApp: "+t.projectId);return e.projectIdMustMatch,t.useUser(e)}function lg(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("function"!==typeof o.useContext)throw new Error("useStackApp() can only be used in a React Client Component. Make sure you're not calling it from a Server Component, or any other environment.");const t=(0,o.useContext)(og);if(null===t)throw new Error("useStackApp must be used within a StackProvider");const n=t.app;if(e.projectIdMustMatch&&n.projectId!==e.projectIdMustMatch)throw new Error("Unexpected project ID in useStackApp: "+n.projectId);return n}var cg=e=>e instanceof Date,ug=e=>null==e;const dg=e=>"object"===typeof e;var hg=e=>!ug(e)&&!Array.isArray(e)&&dg(e)&&!cg(e);"undefined"!==typeof window&&window.HTMLElement;var pg=e=>/^\w*$/.test(e),fg=e=>void 0===e,mg=e=>Array.isArray(e)?e.filter(Boolean):[],gg=e=>mg(e.replace(/["|']|\]/g,"").split(/\.|\[/)),vg=(e,t,n)=>{if(!t||!hg(e))return n;const a=(pg(t)?[t]:gg(t)).reduce((e,t)=>
2ug(e)?e:e[t],e);return fg(a)||a===e?fg(e[t])?n:e[t]:a},yg=(e,t,n)=>{let a=-1;const r=pg(t)?[t]:gg(t),o=r.length,i=o-1;for(;++a<o;){const t=r[a];let o=n;if(a!==i){const n=e[t];o=hg(n)||Array.isArray(n)?n:isNaN(+r[a+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=o,e=e[t]}};const wg=o.createContext(null);wg.displayName="HookFormContext";"undefined"!==typeof window?o.useLayoutEffect:o.useEffect;var _g=(e,t,n,a,r)=>t?p(p({},n[e]),{},{types:p(p({},n[e]&&n[e].types?n[e].types:{}),{},{[a]:r||!0})}):{};const xg=(e,t,n)=>{if(e&&"reportValidity"in e){const a=vg(n,t);e.setCustomValidity(a&&a.message||""),e.reportValidity()}},bg=(e,t)=>{for(const n in t.fields){const a=t.fields[n];a&&a.ref&&"reportValidity"in a.ref?xg(a.ref,n,e):a&&a.refs&&a.refs.forEach(t=>xg(t,n,e))}},kg=(e,t)=>{t.shouldUseNativeValidation&&bg(e,t);const n={};for(const a in e){const r=vg(t.fields,a),o=Object.assign(e[a]||{},{ref:r&&r.ref});if(Cg(t.names||Object.keys(e),a)){const e=Object.assign({},vg(n,a));yg(e,"root",o),yg(n,a,e)}else yg(n,a,o)}return n},Cg=(e,t)=>{const n=Dg(t);return e.some(e=>Dg(e).match("^".concat(n,"\\.\\d+")))};function Dg(e){return e.replace(/\]|\[/g,"")}function Ag(e,t,n){return void 0===n&&(n={}),function(a,r,o){try{return Promise.resolve(function(i,s){try{var l=(null!=t&&t.context,Promise.resolve(e["sync"===n.mode?"validateSync":"validate"](a,Object.assign({abortEarly:!1},t,{context:r}))).then(function(e){return o.shouldUseNativeValidation&&bg({},o),{values:n.raw?Object.assign({},a):e,errors:{}}}))}catch(oL){return s(oL)}return l&&l.then?l.then(void 0,s):l}(0,function(e){if(!e.inner)throw e;return{values:{},errors:kg((t=e,n=!o.shouldUseNativeValidation&&"all"===o.criteriaMode,(t.inner||[]).reduce(function(e,t){if(e[t.path]||(e[t.path]={message:t.message,type:t.type}),n){var a=e[t.path].types,r=a&&a[t.type];e[t.path]=_g(t.path,n,e,t.type,r?[].concat(r,t.message):t.message)}return e},{})),o)};var t,n}))}catch(oL){return Promise.reject(oL)}}}const Eg=["children"],jg=["children"];var Sg=Symbol.for("react.lazy"),Ng=i[" use ".trim().toString()];function Pg(e){return null!=e&&"object"===typeof e&&"$$typeof"in e&&e.$$typeof===Sg&&"_payload"in e&&function(e){return"object"===typeof e&&null!==e&&"then"in e}(e._payload)}function Tg(e){const t=Og(e),n=o.forwardRef((e,n)=>{let{children:a}=e,r=l(e,Eg);Pg(a)&&"function"===typeof Ng&&(a=Ng(a._payload));const i=o.Children.toArray(a),s=i.find(Bg);if(s){const e=s.props.children,a=i.map(t=>t===s?o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null:t);return(0,_h.jsx)(t,p(p({},r),{},{ref:n,children:o.isValidElement(e)?o.cloneElement(e,void 0,a):null}))}return(0,_h.jsx)(t,p(p({},r),{},{ref:n,children:a}))});return n.displayName="".concat(e,".Slot"),n}var Fg=Tg("Slot");function Og(e){const t=o.forwardRef((e,t)=>{let{children:n}=e,a=l(e,jg);if(Pg(n)&&"function"===typeof Ng&&(n=Ng(n._payload)),o.isValidElement(n)){const e=function(e){var t,n;let a=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,r=a&&"isReactWarning"in a&&a.isReactWarning;if(r)return e.ref;if(a=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(n),r=function(e,t){const n=p({},t);for(const a in t){const r=e[a],o=t[a];/^on[A-Z]/.test(a)?r&&o?n[a]=function(){const e=o(...arguments);return r(...arguments),e}:r&&(n[a]=r):"style"===a?n[a]=p(p({},r),o):"className"===a&&(n[a]=[r,o].filter(Boolean).join(" "))}return p(p({},e),n)}(a,n.props);return n.type!==o.Fragment&&(r.ref=t?Yh(t,e):e),o.cloneElement(n,r)}return o.Children.count(n)>1?o.Children.only(null):null});return t.displayName="".concat(e,".SlotClone"),t}var Ig=Symbol("radix.slottable");function Rg(e){const t=e=>{let{children:t}=e;return(0,_h.jsx)(_h.Fragment,{children:t})};return t.displayName="".concat(e,".Slottable"),t.__radixId=Ig,t}var Mg=Rg("Slottable");function Bg(e){return o.isValidElement(e)&&"function"===typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Ig}const zg=["asChild"];var Lg=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>
2{const n=Tg("Primitive.".concat(t)),a=o.forwardRef((e,a)=>{const{asChild:r}=e,o=l(e,zg),i=r?n:t;return"undefined"!==typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,_h.jsx)(i,p(p({},o),{},{ref:a}))});return a.displayName="Primitive.".concat(t),p(p({},e),{},{[t]:a})},{});var Ug=o.forwardRef((e,t)=>(0,_h.jsx)(Lg.label,p(p({},e),{},{ref:t,onMouseDown:t=>{var n;t.target.closest("button, input, select, textarea")||(null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})));Ug.displayName="Label";var Vg=Ug;const qg=["className"],Hg=["className"];var Wg=Fh("stack-scope text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 text-gray-600 dark:text-gray-400"),Kg=Ah((e,t)=>{let{className:n}=e,a=l(e,qg);return(0,_h.jsx)("label",p({ref:t,className:wh(Wg(),n)},a))});Kg.displayName=Vg.displayName,Ah((e,t)=>{let{className:n}=e,a=l(e,Hg);return(0,_h.jsx)("span",p({ref:t,className:wh(Wg(),n)},a))}).displayName=Vg.displayName;const Yg=["className","type","prefixItem"],Gg=["delay","defaultValue"];var Jg=Ah((e,t)=>{let{className:n,type:a,prefixItem:r}=e,o=l(e,Yg);const i="stack-scope flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50";return r?(0,_h.jsxs)("div",{className:"flex flex-row items-center backdrop-blur-md bg-white/20 dark:bg-black/20 flex-1",children:[(0,_h.jsx)("div",{className:"flex self-stretch justify-center items-center text-muted-foreground pl-3 select-none bg-muted/70 pr-3 border-r border-input rounded-l-md",children:r}),(0,_h.jsx)("input",p({type:a,className:wh(i,"rounded-l-none",n),ref:t},o))]}):(0,_h.jsx)("div",{className:"flex flex-row items-center backdrop-blur-md bg-white/20 dark:bg-black/20 flex-1",children:(0,_h.jsx)("input",p({type:a,className:wh(i,n),ref:t},o))})});Jg.displayName="Input";var $g=Ah((e,t)=>{let{delay:n=500,defaultValue:a}=e,r=l(e,Gg);const[i,s]=o.useState(null!==a&&void 0!==a?a:""),c=o.useRef(null);return(0,_h.jsx)(Jg,p(p({ref:t},r),{},{value:i,onChange:e=>{s(e.target.value),c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{var t;null===(t=r.onChange)||void 0===t||t.call(r,e)},n)}}))});$g.displayName="DelayedInput";const Qg=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Xg=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},Zg=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim()};var ev={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const tv=["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"],nv=(0,o.forwardRef)((e,t)=>{let{color:n="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:c,iconNode:u}=e,d=l(e,tv);return(0,o.createElement)("svg",p(p(p({ref:t},ev),{},{width:a,height:a,stroke:n,strokeWidth:i?24*Number(r)/Number(a):r,className:Zg("lucide",s)},!c&&!(e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(d)&&{"aria-hidden":"true"}),d),[...u.map(e=>{let[t,n]=e;return(0,o.createElement)(t,n)}),...Array.isArray(c)?c:[c]])}),av=["className"],rv=(e,t)=>{const n=(0,o.forwardRef)((n,a)=>{let{className:r}=n,i=l(n,av);return(0,o.createElement)(nv,p({ref:a,iconNode:t,className:Zg("lucide-".concat(Qg(Xg(e))),"lucide-".concat(e),r)},i))});return n.displayName=Xg(e),n},ov=rv("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),iv=rv("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);
2function sv(e,t){const[n,a]=o.useState(void 0),[r,i]=o.useState(0),s=o.useCallback(async function(){i(e=>e+1);try{return await e(...arguments)}catch(oL){throw a(oL),oL}finally{i(e=>e-1)}},t);return[s,r>0,n]}function lv(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}var cv=["color"],uv=(0,o.forwardRef)(function(e,t){var n=e.color,a=void 0===n?"currentColor":n,r=lv(e,cv);return(0,o.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,o.createElement)("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),dv=["color"],hv=(0,o.forwardRef)(function(e,t){var n=e.color,a=void 0===n?"currentColor":n,r=lv(e,dv);return(0,o.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,o.createElement)("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),pv=["color"],fv=(0,o.forwardRef)(function(e,t){var n=e.color,a=void 0===n?"currentColor":n,r=lv(e,pv);return(0,o.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,o.createElement)("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),mv=["color"],gv=(0,o.forwardRef)(function(e,t){var n=e.color,a=void 0===n?"currentColor":n,r=lv(e,mv);return(0,o.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,o.createElement)("path",{d:"M8.84182 3.13514C9.04327 3.32401 9.05348 3.64042 8.86462 3.84188L5.43521 7.49991L8.86462 11.1579C9.05348 11.3594 9.04327 11.6758 8.84182 11.8647C8.64036 12.0535 8.32394 12.0433 8.13508 11.8419L4.38508 7.84188C4.20477 7.64955 4.20477 7.35027 4.38508 7.15794L8.13508 3.15794C8.32394 2.95648 8.64036 2.94628 8.84182 3.13514Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),vv=["color"],yv=(0,o.forwardRef)(function(e,t){var n=e.color,a=void 0===n?"currentColor":n,r=lv(e,vv);return(0,o.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,o.createElement)("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),wv=["color"],_v=(0,o.forwardRef)(function(e,t){var n=e.color,a=void 0===n?"currentColor":n,r=lv(e,wv);return(0,o.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,o.createElement)("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),xv=["color"],bv=(0,o.forwardRef)(function(e,t){var n=e.color,a=void 0===n?"currentColor":n,r=lv(e,xv);return(0,o.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,o.createElement)("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),kv=["color"],Cv=(0,o.forwardRef)(function(e,t){var n=e.color,a=void 0===n?"currentColor":n,r=lv(e,kv);return(0,o.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,o.createElement)("path",{d:"M5 7.5C5 7.22386 5.22386 7 5.5 7H9.5C9.77614 7 10 7.22386 10 7.5C10 7.77614 9.77614 8 9.5 8H5.5C5.22386 8 5 7.77614 5 7.5Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),Dv=["color"],Av=(0,o.forwardRef)(function(e,t){var n=e.color,a=void 0===n?"currentColor":n,r=lv(e,Dv);return(0,o.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,o.createElement)("path",{d:"M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",fill:a}))}),Ev=["color"],jv=(0,o.forwardRef)(function(e,t){var n=e.color,a=void 0===n?"currentColor":n,r=lv(e,Ev);return(0,o.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,o.createElement)("path",{d:"M3.625 7.5C3.625 8.12132 3.12132 8.625 2.5 8.625C1.87868 8.625 1.375 8.12132 1.375 7.5C1.375 6.87868 1.87868 6.375 2.5 6.375C3.12132 6.375 3.625 6.87868 3.625 7.5ZM8.625 7.5C8.625 8.12132 8.12132 8.625 7.5 8.625C6.87868 8.625 6.375 8.12132 6.375 7.5C6.375 6.87868 6.87868 6.375 7.5 6.375C8.12132 6.375 8.625 6.87868 8.625 7.5ZM12.5 8.625C13.1213 8.625 13.625 8.12132 13.625 7.5C13.625 6.87868 13.1213 6.375 12.5 6.375C11.8787 6.375 11.375 6.87868 11.375 7.5C11.375 8.12132 11.8787 8.625 12.5 8.625Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),Sv=["color"],Nv=(0,o.forwardRef)(function(e,t){var n=e.color,a=void 0===n?"currentColor":n,r=lv(e,Sv);return(0,o.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,o.createElement)("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),Pv=["color"],Tv=(0,o.forwardRef)(function(e,t){var n=e.color,a=void 0===n?"currentColor":n,r=lv(e,Pv);return(0,o.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,o.createElement)("path",{d:"M5.5 3C4.67157 3 4 3.67157 4 4.5C4 5.32843 4.67157 6 5.5 6C6.32843 6 7 5.32843 7 4.5C7 3.67157 6.32843 3 5.5 3ZM3 5C3.01671 5 3.03323 4.99918 3.04952 4.99758C3.28022 6.1399 4.28967 7 5.5 7C6.71033 7 7.71978 6.1399 7.95048 4.99758C7.96677 4.99918 7.98329 5 8 5H13.5C13.7761 5 14 4.77614 14 4.5C14 4.22386 13.7761 4 13.5 4H8C7.98329 4 7.96677 4.00082 7.95048 4.00242C7.71978 2.86009 6.71033 2 5.5 2C4.28967 2 3.28022 2.86009 3.04952 4.00242C3.03323 4.00082 3.01671 4 3 4H1.5C1.22386 4 1 4.22386 1 4.5C1 4.77614 1.22386 5 1.5 5H3ZM11.9505 10.9976C11.7198 12.1399 10.7103 13 9.5 13C8.28967 13 7.28022 12.1399 7.04952 10.9976C7.03323 10.9992 7.01671 11 7 11H1.5C1.22386 11 1 10.7761 1 10.5C1 10.2239 1.22386 10 1.5 10H7C7.01671 10 7.03323 10.0008 7.04952 10.0024C7.28022 8.8601 8.28967 8 9.5 8C10.7103 8 11.7198 8.8601 11.9505 10.0024C11.9668 10.0008 11.9833 10 12 10H13.5C13.7761 10 14 10.2239 14 10.5C14 10.7761 13.7761 11 13.5 11H12C11.9833 11 11.9668 10.9992 11.9505 10.9976ZM8 10.5C8 9.67157 8.67157 9 9.5 9C10.3284 9 11 9.67157 11 10.5C11 11.3284 10.3284 12 9.5 12C8.67157 12 8 11.3284 8 10.5Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))}),Fv=["color"],Ov=(0,o.forwardRef)(function(e,t){var n=e.color,a=void 0===n?"currentColor":n,r=lv(e,Fv);return(0,o.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r,{ref:t}),(0,o.createElement)("path",{d:"M1.84998 7.49998C1.84998 4.66458 4.05979 1.84998 7.49998 1.84998C10.2783 1.84998 11.6515 3.9064 12.2367 5H10.5C10.2239 5 10 5.22386 10 5.5C10 5.77614 10.2239 6 10.5 6H13.5C13.7761 6 14 5.77614 14 5.5V2.5C14 2.22386 13.7761 2 13.5 2C13.2239 2 13 2.22386 13 2.5V4.31318C12.2955 3.07126 10.6659 0.849976 7.49998 0.849976C3.43716 0.849976 0.849976 4.18537 0.849976 7.49998C0.849976 10.8146 3.43716 14.15 7.49998 14.15C9.44382 
214.15 11.0622 13.3808 12.2145 12.2084C12.8315 11.5806 13.3133 10.839 13.6418 10.0407C13.7469 9.78536 13.6251 9.49315 13.3698 9.38806C13.1144 9.28296 12.8222 9.40478 12.7171 9.66014C12.4363 10.3425 12.0251 10.9745 11.5013 11.5074C10.5295 12.4963 9.16504 13.15 7.49998 13.15C4.05979 13.15 1.84998 10.3354 1.84998 7.49998Z",fill:a,fillRule:"evenodd",clipRule:"evenodd"}))});const Iv=["size"];var Rv=Ah((e,t)=>{let{size:n=15}=e,a=l(e,Iv);return(0,_h.jsx)("span",p(p({ref:t},a),{},{className:wh("stack-scope",a.className),children:(0,_h.jsx)(Ov,{className:"animate-spin",width:n,height:n})}))});Rv.displayName="Spinner";const Mv=["className","variant","size","asChild"],Bv=["onClick","loading","loadingStyle","children","size"];var zv=Fh("stack-scope inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",plain:""},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9",plain:""}},defaultVariants:{variant:"default",size:"default"}}),Lv=Ah((e,t)=>{let{className:n,variant:a,size:r,asChild:o=!1}=e,i=l(e,Mv);const s=o?Fg:"button";return(0,_h.jsx)(s,p({className:wh(zv({variant:a,size:r,className:n})),ref:t},i))});Lv.displayName="Button";var Uv=Ah((e,t)=>{let{onClick:n,loading:a,loadingStyle:r="spinner",children:o,size:i}=e,s=l(e,Bv);const[c,u]=sv(async e=>{await(null===n||void 0===n?void 0:n(e))},[n]),d=a||u;return(0,_h.jsxs)(Lv,p(p({},s),{},{ref:t,disabled:s.disabled||d,onClick:e=>ad(c(e)),size:i,className:wh("relative",d&&"[&>:not(.stack-button-do-not-hide-when-siblings-are)]:invisible",s.className),children:["spinner"===r&&(0,_h.jsx)(Rv,{className:wh("absolute inset-0 flex items-center justify-center stack-button-do-not-hide-when-siblings-are",!d&&"invisible")}),(0,_h.jsx)(Mg,{children:"string"===typeof o?(0,_h.jsx)("span",{children:o}):o})]}))});Uv.displayName="Button";const Vv=["className"];var qv=Ah((e,t)=>{let{className:n}=e,a=l(e,Vv);const[r,i]=(0,o.useState)(!1);return(0,_h.jsxs)("div",{className:"relative",children:[(0,_h.jsx)(Jg,p({type:r?"text":"password",className:wh("stack-scope hide-password-toggle pr-10",n),ref:t},a)),(0,_h.jsx)(Uv,{type:"button",variant:"ghost",size:"sm",className:"absolute right-0 top-0 h-full px-3 py-2 hover:bg-transparent",onClick:()=>i(e=>!e),disabled:a.disabled,"aria-label":r?"Hide password":"Show password",tabIndex:-1,children:r?(0,_h.jsx)(ov,{className:"h-4 w-4","aria-hidden":"true"}):(0,_h.jsx)(iv,{className:"h-4 w-4","aria-hidden":"true"})})]})});qv.displayName="PasswordInput";const Hv=["_f"],Wv=["name"],Kv=["_f"],Yv=["ref","message","type"],Gv=["formControl"];var Jv=e=>"checkbox"===e.type,$v=e=>e instanceof Date,Qv=e=>null==e;const Xv=e=>"object"===typeof e;var Zv=e=>!Qv(e)&&!Array.isArray(e)&&Xv(e)&&!$v(e),ey=e=>Zv(e)&&e.target?Jv(e.target)?e.target.checked:e.target.value:e,ty=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),ny="undefined"!==typeof window&&"undefined"!==typeof window.HTMLElement&&"undefined"!==typeof document;function ay(e){if(e instanceof Date)return new Date(e);const t="undefined"!==typeof FileList&&e instanceof FileList;if(ny&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&(!Zv(e)||!(e=>{const t=e.constructor&&e.constructor.prototype;return Zv(t)&&t.hasOwnProperty("isPrototypeOf")})(e)))return e;const a=n?[]:Object.create(Object.getPrototypeOf(e));for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=ay(e[r]));return a}var ry=e=>/^\w*$/.test(e),oy=e=>void 0===e,iy=e=>Array.isArray(e)?e.filter(Boolean):[],sy=e=>iy(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ly=(e,t,n)=>{if(!t||!Zv(e))return n;const a=(ry(t)?[t]:sy(t)).reduce((e,t)=>
vendor: 4,792 bytes, line 2
2Qv(e)?e:e[t],e);return oy(a)||a===e?oy(e[t])?n:e[t]:a},cy=e=>"boolean"===typeof e,uy=e=>"function"===typeof e,dy=(e,t,n)=>{let a=-1;const r=ry(t)?[t]:sy(t),o=r.length,i=o-1;for(;++a<o;){const t=r[a];let o=n;if(a!==i){const n=e[t];o=Zv(n)||Array.isArray(n)?n:isNaN(+r[a+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=o,e=e[t]}};const hy="blur",py="focusout",fy="onBlur",my="onChange",gy="onSubmit",vy="onTouched",yy="all",wy="max",_y="min",xy="maxLength",by="minLength",ky="pattern",Cy="required",Dy="validate",Ay=o.createContext(null);Ay.displayName="HookFormControlContext";var Ey=function(e,t,n){let a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const r={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(r,o,{get:()=>{const r=o;return t._proxyFormState[r]!==yy&&(t._proxyFormState[r]=!a||yy),n&&(n[r]=!0),e[r]}});return r};const jy="undefined"!==typeof window?o.useLayoutEffect:o.useEffect;var Sy=e=>"string"===typeof e,Ny=(e,t,n,a,r)=>Sy(e)?(a&&t.watch.add(e),ly(n,e,r)):Array.isArray(e)?e.map(e=>(a&&t.watch.add(e),ly(n,e))):(a&&(t.watchAll=!0),n),Py=e=>Qv(e)||!Xv(e);function Ty(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new WeakSet;if(Py(e)||Py(t))return Object.is(e,t);if($v(e)&&$v(t))return Object.is(e.getTime(),t.getTime());const a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const o of a){const a=e[o];if(!r.includes(o))return!1;if("ref"!==o){const e=t[o];if($v(a)&&$v(e)||Zv(a)&&Zv(e)||Array.isArray(a)&&Array.isArray(e)?!Ty(a,e,n):!Object.is(a,e))return!1}}return!0}const Fy=o.createContext(null);Fy.displayName="HookFormContext";var Oy=(e,t,n,a,r)=>t?p(p({},n[e]),{},{types:p(p({},n[e]&&n[e].types?n[e].types:{}),{},{[a]:r||!0})}):{},Iy=e=>Array.isArray(e)?e:[e],Ry=()=>{let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function My(e,t){const n={};for(const a in e)if(e.hasOwnProperty(a)){const r=e[a],o=t[a];if(r&&Zv(r)&&o){const e=My(r,o);Zv(e)&&(n[a]=e)}else e[a]&&(n[a]=o)}return n}var By=e=>Zv(e)&&!Object.keys(e).length,zy=e=>"file"===e.type,Ly=e=>{if(!ny)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Uy=e=>"select-multiple"===e.type,Vy=e=>"radio"===e.type,qy=e=>Ly(e)&&e.isConnected;function Hy(e,t){const n=Array.isArray(t)?t:ry(t)?[t]:sy(t),a=1===n.length?e:function(e,t){const n=t.slice(0,-1).length;let a=0;for(;a<n;)e=oy(e)?a++:e[t[a++]];return e}(e,n),r=n.length-1,o=n[r];return a&&delete a[o],0!==r&&(Zv(a)&&By(a)||Array.isArray(a)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!oy(e[t]))return!1;return!0}(a))&&Hy(e,n.slice(0,-1)),e}function Wy(e){return Array.isArray(e)||Zv(e)&&!(e=>{for(const t in e)if(uy(e[t]))return!0;return!1})(e)}function Ky(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(const n in e){const a=e[n];Wy(a)?(t[n]=Array.isArray(a)?[]:{},Ky(a,t[n])):oy(a)||(t[n]=!0)}return t}function Yy(e,t,n){n||(n=Ky(t));for(const a in e){const r=e[a];if(Wy(r))oy(t)||Py(n[a])?n[a]=Ky(r,Array.isArray(r)?[]:{}):Yy(r,Qv(t)?{}:t[a],n[a]);else{const e=t[a];n[a]=!Ty(r,e)}}return n}const Gy={value:!1,isValid:!1},Jy={value:!0,isValid:!0};var $y=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!oy(e[0].attributes.value)?oy(e[0].value)||""===e[0].value?Jy:{value:e[0].value,isValid:!0}:Jy:Gy}return Gy},Qy=(e,t)=>{let{valueAsNumber:n,valueAsDate:a,setValueAs:r}=t;return oy(e)?e:n?""===e?NaN:e?+e:e:a&&Sy(e)?new Date(e):r?r(e):e};const Xy={isValid:!1,value:null};var Zy=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,Xy):Xy;function ew(e){const t=e.ref;return zy(t)?t.files:Vy(t)?Zy(e.refs).value:Uy(t)?[...t.selectedOptions].map(e=>{let{value:t}=e;return t}):Jv(t)?$y(e.refs).value:Qy(oy(t.value)?e.ref.value:t.value,e)}var tw=e=>e instanceof RegExp,nw=e=>oy(e)?e:tw(e)?e.source:Zv(e)?tw(e.value)?e.value.source:e.value:e,aw=e=>({isOnSubmit:!e||e===gy,isOnBlur:e===fy,isOnChange:e===my,isOnAll:e===yy,isOnTouch:e===vy});const rw="AsyncFunction";var ow=e=>!!e&&!!e.validate&&!!(uy(e.validate)&&e.validate.constructor.name===rw||Zv(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===rw)),iw=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))));const sw=(e,t,n,a)=>{for(const r of n||Object.keys(e)){const n=ly(e,r);if(n){const{_f:e}=n,o=l(n,Hv);if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],r)&&!a)return!0;
2if(e.ref&&t(e.ref,e.name)&&!a)return!0;if(sw(o,t))break}else if(Zv(o)&&sw(o,t))break}}};function lw(e,t,n){const a=ly(e,n);if(a||ry(n))return{error:a,name:n};const r=n.split(".");for(;r.length;){const a=r.join("."),o=ly(t,a),i=ly(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(i&&i.type)return{name:a,error:i};if(i&&i.root&&i.root.type)return{name:"".concat(a,".root"),error:i.root};r.pop()}return{name:n}}var cw=(e,t,n)=>{const a=Iy(ly(e,n));return dy(a,"root",t[n]),dy(e,n,a),e};function uw(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"validate";if(Sy(e)||Array.isArray(e)&&e.every(Sy)||cy(e)&&!e)return{type:n,message:Sy(e)?e:"",ref:t}}var dw=e=>Zv(e)&&!tw(e)?e:{value:e,message:""},hw=async(e,t,n,a,r,o)=>{const{ref:i,refs:s,required:l,maxLength:c,minLength:u,min:d,max:h,pattern:f,validate:m,name:g,valueAsNumber:v,mount:y}=e._f,w=ly(n,g);if(!y||t.has(g))return{};const _=s?s[0]:i,x=e=>{r&&_.reportValidity&&(_.setCustomValidity(cy(e)?"":e||""),_.reportValidity())},b={},k=Vy(i),C=Jv(i),D=k||C,A=(v||zy(i))&&oy(i.value)&&oy(w)||Ly(i)&&""===i.value||""===w||Array.isArray(w)&&!w.length,E=Oy.bind(null,g,a,b),j=function(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:xy,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:by;const o=e?t:n;b[g]=p({type:e?a:r,message:o,ref:i},E(e?a:r,o))};if(o?!Array.isArray(w)||!w.length:l&&(!D&&(A||Qv(w))||cy(w)&&!w||C&&!$y(s).isValid||k&&!Zy(s).isValid)){const{value:e,message:t}=Sy(l)?{value:!!l,message:l}:dw(l);if(e&&(b[g]=p({type:Cy,message:t,ref:_},E(Cy,t)),!a))return x(t),b}if(!A&&(!Qv(d)||!Qv(h))){let e,t;const n=dw(h),r=dw(d);if(Qv(w)||isNaN(w)){const a=i.valueAsDate||new Date(w),o=e=>new Date((new Date).toDateString()+" "+e),s="time"==i.type,l="week"==i.type;Sy(n.value)&&w&&(e=s?o(w)>o(n.value):l?w>n.value:a>new Date(n.value)),Sy(r.value)&&w&&(t=s?o(w)<o(r.value):l?w<r.value:a<new Date(r.value))}else{const a=i.valueAsNumber||(w?+w:w);Qv(n.value)||(e=a>n.value),Qv(r.value)||(t=a<r.value)}if((e||t)&&(j(!!e,n.message,r.message,wy,_y),!a))return x(b[g].message),b}if((c||u)&&!A&&(Sy(w)||o&&Array.isArray(w))){const e=dw(c),t=dw(u),n=!Qv(e.value)&&w.length>+e.value,r=!Qv(t.value)&&w.length<+t.value;if((n||r)&&(j(n,e.message,t.message),!a))return x(b[g].message),b}if(f&&!A&&Sy(w)){const{value:e,message:t}=dw(f);if(tw(e)&&!w.match(e)&&(b[g]=p({type:ky,message:t,ref:i},E(ky,t)),!a))return x(t),b}if(m)if(uy(m)){const e=uw(await m(w,n),_);if(e&&(b[g]=p(p({},e),E(Dy,e.message)),!a))return x(e.message),b}else if(Zv(m)){let e={};for(const t in m){if(!By(e)&&!a)break;const r=uw(await m[t](w,n),_,t);r&&(e=p(p({},r),E(t,r.message)),x(r.message),a&&(b[g]=e))}if(!By(e)&&(b[g]=p({ref:_},e),!a))return b}return x(!0),b};const pw={mode:gy,reValidateMode:my,shouldFocusError:!0};function fw(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=p(p({},pw),t),a={submitCount:0,isDirty:!1,isReady:!1,isLoading:uy(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},r={},o=(Zv(n.defaultValues)||Zv(n.values))&&ay(n.defaultValues||n.values)||{},i=n.shouldUnregister?{}:ay(o),s={action:!1,mount:!1,watch:!1,keepIsValid:!1},c={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},u=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h=p({},d);let f=p({},h);const m={array:Ry(),state:Ry()},g=n.criteriaMode===yy,v=async e=>{if(!s.keepIsValid&&!n.disabled&&(h.isValid||f.isValid||e)){let e;n.resolver?(e=By((await b()).errors),y()):e=await k(r,!0),e!==a.isValid&&m.state.next({isValid:e})}},y=(e,t)=>{!n.disabled&&(h.isValidating||h.validatingFields||f.isValidating||f.validatingFields)&&((e||Array.from(c.mount)).forEach(e=>{e&&(t?dy(a.validatingFields,e,t):Hy(a.validatingFields,e))}),m.state.next({validatingFields:a.validatingFields,isValidating:!By(a.validatingFields)}))},w=(e,t,n,a)=>{const l=ly(r,e);if(l){const r=ly(i,e,oy(n)?ly(o,e):n);
vendor: 4,178 bytes, line 2
2oy(r)||a&&a.defaultChecked||t?dy(i,e,t?r:ew(l._f)):A(e,r),s.mount&&!s.action&&v()}},_=(e,t,r,i,s)=>{let l=!1,c=!1;const u={name:e};if(!n.disabled){if(!r||i){(h.isDirty||f.isDirty)&&(c=a.isDirty,a.isDirty=u.isDirty=C(),l=c!==u.isDirty);const n=Ty(ly(o,e),t);c=!!ly(a.dirtyFields,e),n?Hy(a.dirtyFields,e):dy(a.dirtyFields,e,!0),u.dirtyFields=a.dirtyFields,l=l||(h.dirtyFields||f.dirtyFields)&&c!==!n}if(r){const t=ly(a.touchedFields,e);t||(dy(a.touchedFields,e,r),u.touchedFields=a.touchedFields,l=l||(h.touchedFields||f.touchedFields)&&t!==r)}l&&s&&m.state.next(u)}return l?u:{}},x=(t,r,o,i)=>{const s=ly(a.errors,t),l=(h.isValid||f.isValid)&&cy(r)&&a.isValid!==r;var c;if(n.delayError&&o?(c=()=>((e,t)=>{dy(a.errors,e,t),m.state.next({errors:a.errors})})(t,o),e=e=>{clearTimeout(u),u=setTimeout(c,e)},e(n.delayError)):(clearTimeout(u),e=null,o?dy(a.errors,t,o):Hy(a.errors,t)),(o?!Ty(s,o):s)||!By(i)||l){const e=p(p(p({},i),l&&cy(r)?{isValid:r}:{}),{},{errors:a.errors,name:t});a=p(p({},a),e),m.state.next(e)}},b=async e=>{y(e,!0);const t=await n.resolver(i,n.context,((e,t,n,a)=>{const r={};for(const o of e){const e=ly(t,o);e&&dy(r,o,e._f)}return{criteriaMode:n,names:[...e],fields:r,shouldUseNativeValidation:a}})(e||c.mount,r,n.criteriaMode,n.shouldUseNativeValidation));return t},k=async function(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{valid:!0};for(const s in e){const u=e[s];if(u){const{_f:e}=u,s=l(u,Kv);if(e){const s=c.array.has(e.name),l=u._f&&ow(u._f);l&&h.validatingFields&&y([e.name],!0);const d=await hw(u,c.disabled,i,g,n.shouldUseNativeValidation&&!r,s);if(l&&h.validatingFields&&y([e.name]),d[e.name]&&(o.valid=!1,r||t.shouldUseNativeValidation))break;!r&&(ly(d,e.name)?s?cw(a.errors,d,e.name):dy(a.errors,e.name,d[e.name]):Hy(a.errors,e.name))}!By(s)&&await k(s,r,o)}}return o.valid},C=(e,t)=>!n.disabled&&(e&&t&&dy(i,e,t),!Ty(T(),o)),D=(e,t,n)=>Ny(e,c,p({},s.mount?i:oy(t)?o:Sy(e)?{[e]:t}:t),n,t),A=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=ly(r,e);let o=t;if(a){const n=a._f;n&&(!n.disabled&&dy(i,e,Qy(t,n)),o=Ly(n.ref)&&Qv(t)?"":t,Uy(n.ref)?[...n.ref.options].forEach(e=>e.selected=o.includes(e.value)):n.refs?Jv(n.ref)?n.refs.forEach(e=>{e.defaultChecked&&e.disabled||(Array.isArray(o)?e.checked=!!o.find(t=>t===e.value):e.checked=o===e.value||!!o)}):n.refs.forEach(e=>e.checked=e.value===o):zy(n.ref)?n.ref.value="":(n.ref.value=o,n.ref.type||m.state.next({name:e,values:ay(i)})))}(n.shouldDirty||n.shouldTouch)&&_(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&P(e)},E=(e,t,n)=>{for(const a in t){if(!t.hasOwnProperty(a))return;const o=t[a],i=e+"."+a,s=ly(r,i);(c.array.has(e)||Zv(o)||s&&!s._f)&&!$v(o)?E(i,o,n):A(i,o,n)}},j=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const l=ly(r,e),u=c.array.has(e),d=ay(t);dy(i,e,d),u?(m.array.next({name:e,values:ay(i)}),(h.isDirty||h.dirtyFields||f.isDirty||f.dirtyFields)&&n.shouldDirty&&m.state.next({name:e,dirtyFields:Yy(o,i),isDirty:C(e,d)})):!l||l._f||Qv(d)?A(e,d,n):E(e,d,n),iw(e,c)?m.state.next(p(p({},a),{},{name:e,values:ay(i)})):m.state.next({name:s.mount?e:void 0,values:ay(i)})},S=async t=>{s.mount=!0;const o=t.target;let l=o.name,u=!0;const d=ly(r,l),w=e=>{u=Number.isNaN(e)||$v(e)&&isNaN(e.getTime())||Ty(e,ly(i,l,e))},C=aw(n.mode),D=aw(n.reValidateMode);if(d){let s,A;const E=o.type?ew(d._f):ey(t),j=t.type===hy||t.type===py,S=!(e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate))(d._f)&&!n.resolver&&!ly(a.errors,l)&&!d._f.deps||((e,t,n,a,r)=>!r.isOnAll&&(!n&&r.isOnTouch?!(t||e):(n?a.isOnBlur:r.isOnBlur)?!e:!(n?a.isOnChange:r.isOnChange)||e))(j,ly(a.touchedFields,l),a.isSubmitted,D,C),N=iw(l,c,j);dy(i,l,E),j?o&&o.readOnly||(d._f.onBlur&&d._f.onBlur(t),e&&e(0)):d._f.onChange&&d._f.onChange(t);const T=_(l,E,j),F=!By(T)||N;if(!j&&m.state.next({name:l,type:t.type,values:ay(i)}),S)return(h.isValid||f.isValid)&&("onBlur"===n.mode?j&&v():j||v()),F&&m.state.next(p({name:l},N?{}:T));if(!j&&N&&m.state.next(p({},a)),n.resolver){const{errors:e}=await b([l]);if(y([l]),w(E),u){const t=lw(a.errors,r,l),n=lw(e,r,t.name||l);s=n.error,l=n.name,A=By(e)}}
2else y([l],!0),s=(await hw(d,c.disabled,i,g,n.shouldUseNativeValidation))[l],y([l]),w(E),u&&(s?A=!1:(h.isValid||f.isValid)&&(A=await k(r,!0)));u&&(d._f.deps&&(!Array.isArray(d._f.deps)||d._f.deps.length>0)&&P(d._f.deps),x(l,A,s,T))}},N=(e,t)=>{if(ly(a.errors,t)&&e.focus)return e.focus(),1},P=async function(e){let t,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=Iy(e);if(n.resolver){const n=await(async e=>{const{errors:t}=await b(e);if(y(e),e)for(const n of e){const e=ly(t,n);e?dy(a.errors,n,e):Hy(a.errors,n)}else a.errors=t;return t})(oy(e)?e:s);t=By(n),o=e?!s.some(e=>ly(n,e)):t}else e?(o=(await Promise.all(s.map(async e=>{const t=ly(r,e);return await k(t&&t._f?{[e]:t}:t)}))).every(Boolean),(o||a.isValid)&&v()):o=t=await k(r);return m.state.next(p(p(p({},!Sy(e)||(h.isValid||f.isValid)&&t!==a.isValid?{}:{name:e}),n.resolver||!e?{isValid:t}:{}),{},{errors:a.errors})),i.shouldFocus&&!o&&sw(r,N,e?s:c.mount),o},T=(e,t)=>{let n=p({},s.mount?i:o);return t&&(n=My(t.dirtyFields?a.dirtyFields:a.touchedFields,n)),oy(e)?n:Sy(e)?ly(n,e):e.map(e=>ly(n,e))},F=(e,t)=>({invalid:!!ly((t||a).errors,e),isDirty:!!ly((t||a).dirtyFields,e),error:ly((t||a).errors,e),isValidating:!!ly(a.validatingFields,e),isTouched:!!ly((t||a).touchedFields,e)}),O=(e,t,n)=>{const o=(ly(r,e,{_f:{}})._f||{}).ref,i=ly(a.errors,e)||{},{ref:s,message:c,type:u}=i,d=l(i,Yv);dy(a.errors,e,p(p(p({},d),t),{},{ref:o})),m.state.next({name:e,errors:a.errors,isValid:!1}),n&&n.shouldFocus&&o&&o.focus&&o.focus()},I=e=>m.state.subscribe({next:t=>{var n,r,s;n=e.name,r=t.name,s=e.exact,n&&r&&n!==r&&!Iy(n).some(e=>e&&(s?e===r:e.startsWith(r)||r.startsWith(e)))||!((e,t,n,a)=>{n(e);const{name:r}=e,o=l(e,Wv);return By(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(e=>t[e]===(!a||yy))})(t,e.formState||h,q,e.reRenderRoot)||e.callback(p(p(p({values:p({},i)},a),t),{},{defaultValues:o}))}}).unsubscribe,R=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(const s of e?Iy(e):c.mount)c.mount.delete(s),c.array.delete(s),t.keepValue||(Hy(r,s),Hy(i,s)),!t.keepError&&Hy(a.errors,s),!t.keepDirty&&Hy(a.dirtyFields,s),!t.keepTouched&&Hy(a.touchedFields,s),!t.keepIsValidating&&Hy(a.validatingFields,s),!n.shouldUnregister&&!t.keepDefaultValue&&Hy(o,s);m.state.next({values:ay(i)}),m.state.next(p(p({},a),t.keepDirty?{isDirty:C()}:{})),!t.keepIsValid&&v()},M=e=>{let{disabled:t,name:n}=e;if(cy(t)&&s.mount||t||c.disabled.has(n)){const e=c.disabled.has(n)!==!!t;t?c.disabled.add(n):c.disabled.delete(n),e&&s.mount&&!s.action&&v(
2)}},B=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=ly(r,e);const i=cy(t.disabled)||cy(n.disabled);return dy(r,e,p(p({},a||{}),{},{_f:p(p({},a&&a._f?a._f:{ref:{name:e}}),{},{name:e,mount:!0},t)})),c.mount.add(e),a?M({disabled:cy(t.disabled)?t.disabled:n.disabled,name:e}):w(e,!0,t.value),p(p(p({},i?{disabled:t.disabled||n.disabled}:{}),n.progressive?{required:!!t.required,min:nw(t.min),max:nw(t.max),minLength:nw(t.minLength),maxLength:nw(t.maxLength),pattern:nw(t.pattern)}:{}),{},{name:e,onChange:S,onBlur:S,ref:i=>{if(i){B(e,t),a=ly(r,e);const n=oy(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,s=(e=>Vy(e)||Jv(e))(n),l=a._f.refs||[];if(s?l.find(e=>e===n):n===a._f.ref)return;dy(r,e,{_f:p(p({},a._f),s?{refs:[...l.filter(qy),n,...Array.isArray(ly(o,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n})}),w(e,!1,void 0,n)}else a=ly(r,e,{}),a._f&&(a._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!ty(c.array,e)||!s.action)&&c.unMount.add(e)}})},z=()=>n.shouldFocusError&&sw(r,N,c.mount),L=(e,t)=>async o=>{let s;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let l=ay(i);if(m.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await b();y(),a.errors=e,l=ay(t)}else await k(r);if(c.disabled.size)for(const e of c.disabled)Hy(l,e);if(Hy(a.errors,"root"),By(a.errors)){m.state.next({errors:{}});try{await e(l,o)}catch(u){s=u}}else t&&await t(p({},a.errors),o),z(),setTimeout(z);if(m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:By(a.errors)&&!s,submitCount:a.submitCount+1,errors:a.errors}),s)throw s},U=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const l=e?ay(e):o,u=ay(l),d=By(e),f=d?o:u;if(t.keepDefaultValues||(o=l),!t.keepValues){if(t.keepDirtyValues){const e=new Set([...c.mount,...Object.keys(Yy(o,i))]);for(const t of Array.from(e)){const e=ly(a.dirtyFields,t),n=ly(i,t),r=ly(f,t);e&&!oy(n)?dy(f,t,n):e||oy(r)||j(t,r)}}else{if(ny&&oy(e))for(const e of c.mount){const t=ly(r,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(Ly(e)){const t=e.closest("form");if(t){t.reset();break}}}}if(t.keepFieldsRef)for(const e of c.mount)j(e,ly(f,e));else r={}}i=n.shouldUnregister?t.keepDefaultValues?ay(o):{}:ay(f),m.array.next({values:p({},f)}),m.state.next({values:p({},f)})}c={mount:t.keepDirtyValues?c.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!h.isValid||!!t.keepIsValid||!!t.keepDirtyValues||!n.shouldUnregister&&!By(f),s.watch=!!n.shouldUnregister,s.keepIsValid=!!t.keepIsValid,s.action=!1,t.keepErrors||(a.errors={}),m.state.next({submitCount:t.keepSubmitCount?a.submitCount:0,isDirty:!d&&(t.keepDirty?a.isDirty:!(!t.keepDefaultValues||Ty(e,o))),isSubmitted:!!t.keepIsSubmitted&&a.isSubmitted,dirtyFields:d?{}:t.keepDirtyValues?t.keepDefaultValues&&i?Yy(o,i):a.dirtyFields:t.keepDefaultValues&&e?Yy(o,e):t.keepDirty?a.dirtyFields:{},touchedFields:t.keepTouched?a.touchedFields:{},errors:t.keepErrors?a.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&a.isSubmitSuccessful,isSubmitting:!1,defaultValues:o})},V=(e,t)=>U(uy(e)?e(i):e,p(p({},n.resetOptions),t)),q=e=>{a=p(p({},a),e)},H={control:{register:B,unregister:R,getFieldState:F,handleSubmit:L,setError:O,_subscribe:I,_runSchema:b,_updateIsValidating:y,_focusError:z,_getWatch:D,_getDirty:C,_setValid:v,_setFieldArray:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],l=arguments.length>2?arguments[2]:void 0,c=arguments.length>3?arguments[3]:void 0,u=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],d=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(c&&l&&!n.disabled){if(s.action=!0,d&&Array.isArray(ly(r,e))){const t=l(ly(r,e),c.argA,c.argB);u&&dy(r,e,t)}if(d&&Array.isArray(ly(a.errors,e))){const t=l(ly(a.errors,e),c.argA,c.argB);u&&dy(a.errors,e,t),((e,t)=>{!iy(ly(e,t)).length&&Hy(e,t)})(a.errors,e)}if((h.touchedFields||f.touchedFields)&&d&&Array.isArray(ly(a.touchedFields,e))){const t=l(ly(a.touchedFields,e),c.argA,c.argB);u&&dy(a.touchedFields,e,t)}(h.dirtyFields||f.dirtyFields)&&(a.dirtyFields=Yy(o,i)),m.state.next({name:e,isDirty:C(e,t),dirtyFields:a.dirtyFields,errors:a.errors,isValid:a.isValid})}else dy(i,e,t)},_setDisabledField:M,_setErrors:e=>{a.errors=e,m.state.next({errors:a.errors,isValid:!1})},_getFieldArray:e=>iy(ly(s.mount?i:o,e,n.shouldUnregister?ly(o,e,[]):[])),_reset:U,_resetDefaultValues:()=>uy(n.defaultValues)&&n.defaultValues().then(e=>{V(e,n.resetOptions),m.state.next({isLoading:!1})}),_removeUnmounted:()=>
2{for(const e of c.unMount){const t=ly(r,e);t&&(t._f.refs?t._f.refs.every(e=>!qy(e)):!qy(t._f.ref))&&R(e)}c.unMount=new Set},_disableForm:e=>{cy(e)&&(m.state.next({disabled:e}),sw(r,(t,n)=>{const a=ly(r,n);a&&(t.disabled=a._f.disabled||e,Array.isArray(a._f.refs)&&a._f.refs.forEach(t=>{t.disabled=a._f.disabled||e}))},0,!1))},_subjects:m,_proxyFormState:h,get _fields(){return r},get _formValues(){return i},get _state(){return s},set _state(e){s=e},get _defaultValues(){return o},get _names(){return c},set _names(e){c=e},get _formState(){return a},get _options(){return n},set _options(e){n=p(p({},n),e)}},subscribe:e=>(s.mount=!0,f=p(p({},f),e.formState),I(p(p({},e),{},{formState:p(p({},d),e.formState)}))),trigger:P,register:B,handleSubmit:L,watch:(e,t)=>uy(e)?m.state.subscribe({next:n=>"values"in n&&e(D(void 0,t),n)}):D(e,t,!0),setValue:j,getValues:T,reset:V,resetField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ly(r,e)&&(oy(t.defaultValue)?j(e,ay(ly(o,e))):(j(e,t.defaultValue),dy(o,e,ay(t.defaultValue))),t.keepTouched||Hy(a.touchedFields,e),t.keepDirty||(Hy(a.dirtyFields,e),a.isDirty=t.defaultValue?C(e,ay(ly(o,e))):C()),t.keepError||(Hy(a.errors,e),h.isValid&&v()),m.state.next(p({},a)))},clearErrors:e=>{const t=e?Iy(e):void 0;null===t||void 0===t||t.forEach(e=>Hy(a.errors,e)),t?t.forEach(e=>{m.state.next({name:e,errors:a.errors})}):m.state.next({errors:{}})},unregister:R,setError:O,setFocus:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=ly(r,e),a=n&&n._f;if(a){const e=a.refs?a.refs[0]:a.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&uy(e.select)&&e.select()})}},getFieldState:F};return p(p({},H),{},{formControl:H})}function mw(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=o.useRef(void 0),n=o.useRef(void 0),[a,r]=o.useState({isDirty:!1,isValidating:!1,isLoading:uy(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:uy(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current=p(p({},e.formControl),{},{formState:a}),e.defaultValues&&!uy(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const n=fw(e),{formControl:r}=n,o=l(n,Gv);t.current=p(p({},o),{},{formState:a})}const i=t.current.control;return i._options=e,jy(()=>{const e=i._subscribe({formState:i._proxyFormState,callback:()=>r(p({},i._formState)),reRenderRoot:!0});return r(e=>p(p({},e),{},{isReady:!0})),i._formState.isReady=!0,e},[i]),o.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),o.useEffect(()=>{e.mode&&(i._options.mode=e.mode),e.reValidateMode&&(i._options.reValidateMode=e.reValidateMode)},[i,e.mode,e.reValidateMode]),o.useEffect(()=>{e.errors&&(i._setErrors(e.errors),i._focusError())},[i,e.errors]),o.useEffect(()=>{e.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[i,e.shouldUnregister]),o.useEffect(()=>{if(i._proxyFormState.isDirty){const e=i._getDirty();e!==a.isDirty&&i._subjects.state.next({isDirty:e})}},[i,a.isDirty]),o.useEffect(()=>{var t;e.values&&!Ty(e.values,n.current)?(i._reset(e.values,p({keepFieldsRef:!0},i._options.resetOptions)),(null===(t=i._options.resetOptions)||void 0===t?void 0:t.keepIsValid)||i._setValid(),n.current=e.values,r(e=>p({},e))):i._resetDefaultValues()},[i,e.values]),o.useEffect(()=>{i._state.mount||(i._setValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next(p({},i._formState))),i._removeUnmounted()}),t.current.formState=o.useMemo(()=>Ey(a,i),[i,a]),t.current}var gw=(0,o.createContext)(null);function vw(e){return(0,_h.jsx)(gw.Provider,{value:{quetzalKeys:e.quetzalKeys,quetzalLocale:e.quetzalLocale},children:e.children})}function yw(){const e=o.useContext(gw);if(!e)throw new Error("Translation context not found; did you forget to wrap your app in a <StackProvider />?");return{t:(t,n)=>{var a,r;const{quetzalKeys:o,quetzalLocale:i}=e;let s=null!==(a=i.get(null!==(r=o.get(t))&&void 0!==r?r:void 0))&&void 0!==a?a:t;for(const[e,l]of Object.entries(n||{}))s=s.replace("{".concat(e,"}"),l);return s}}}function ww(e){let{text:t}=e;return t?(0,_h.jsx)("div",{className:"text-red-500 text-sm mt-1",children:t}):null}function _w(e){return(0,_h.jsx)("a",{href:e.href,target:e.target,className:e.className,onClick:e.onClick,children:e.children})}function xw(e){return(0,_h.jsx)(_w,p(p({},e),{},{className:wh("underline font-medium",e.className),children:e.children}))}function bw(){var e,t;const{t:n}=yw(),a=gs({email:Ns(n("Please enter a valid email")).defined().nonEmpty(n("Please enter your email")),password:ks.defined().nonEmpty(n("Please enter your password"))}),{register:r,handleSubmit:i,setError:s,formState:{errors:l}}=mw({resolver:Ag(a)}),c=lg(),[u,d]=(0,o.useState)(!1),h=async e=>{d(!0);try{const{email:t,password:n}
2=e,a=await c.signInWithCredential({email:t,password:n});"error"===a.status&&s("email",{type:"manual",message:a.error.message})}finally{d(!1)}};return(0,_h.jsxs)("form",{className:"flex flex-col items-stretch stack-scope",onSubmit:e=>ad(i(h)(e)),noValidate:!0,children:[(0,_h.jsx)(Kg,{htmlFor:"email",className:"mb-1",children:n("Email")}),(0,_h.jsx)(Jg,p({id:"email",type:"email",autoComplete:"email"},r("email"))),(0,_h.jsx)(ww,{text:null===(e=l.email)||void 0===e||null===(e=e.message)||void 0===e?void 0:e.toString()}),(0,_h.jsx)(Kg,{htmlFor:"password",className:"mt-4 mb-1",children:n("Password")}),(0,_h.jsx)(qv,p({id:"password",autoComplete:"current-password"},r("password"))),(0,_h.jsx)(ww,{text:null===(t=l.password)||void 0===t||null===(t=t.message)||void 0===t?void 0:t.toString()}),(0,_h.jsx)(xw,{href:c.urls.forgotPassword,className:"mt-1 text-sm",children:n("Forgot password?")}),(0,_h.jsx)(Uv,{type:"submit",className:"mt-6",loading:u,children:n("Sign In")})]})}function kw(e){return e.length<8?new so.PasswordTooShort(8):e.length>70?new so.PasswordTooLong(70):void 0}function Cw(e){var t,n,a;const{t:r}=yw(),i=gs(p({email:Ns(r("Please enter a valid email")).defined().nonEmpty(r("Please enter your email")),password:ks.defined().nonEmpty(r("Please enter your password")).test({name:"is-valid-password",test:(e,t)=>{const n=kw(e);return!n||t.createError({message:n.message})}})},!e.noPasswordRepeat&&{passwordRepeat:ks.nullable().oneOf([$o("password"),"",null],r("Passwords do not match")).nonEmpty(r("Please repeat your password"))})),{register:s,handleSubmit:l,setError:c,formState:{errors:u},clearErrors:d}=mw({resolver:Ag(i)}),h=lg(),[f,m]=(0,o.useState)(!1),g=async e=>{m(!0);try{const{email:t,password:n}=e,a=await h.signUpWithCredential({email:t,password:n});"error"===a.status&&c("email",{type:"manual",message:a.error.message})}finally{m(!1)}},v=s("password"),y=s("passwordRepeat");return(0,_h.jsxs)("form",{className:"flex flex-col items-stretch stack-scope",onSubmit:e=>ad(l(g)(e)),noValidate:!0,children:[(0,_h.jsx)(Kg,{htmlFor:"email",className:"mb-1",children:r("Email")}),(0,_h.jsx)(Jg,p({id:"email",type:"email",autoComplete:"email"},s("email"))),(0,_h.jsx)(ww,{text:null===(t=u.email)||void 0===t||null===(t=t.message)||void 0===t?void 0:t.toString()}),(0,_h.jsx)(Kg,{htmlFor:"password",className:"mt-4 mb-1",children:r("Password")}),(0,_h.jsx)(qv,p(p({id:"password",autoComplete:"new-password"},v),{},{onChange:e=>{d("password"),d("passwordRepeat"),rd(v.onChange(e))}})),(0,_h.jsx)(ww,{text:null===(n=u.password)||void 0===n||null===(n=n.message)||void 0===n?void 0:n.toString()}),!e.noPasswordRepeat&&(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsx)(Kg,{htmlFor:"repeat-password",className:"mt-4 mb-1",children:r("Repeat Password")}),(0,_h.jsx)(qv,p(p({id:"repeat-password"},y),{},{onChange:e=>{d("password"),d("passwordRepeat"),rd(y.onChange(e))}})),(0,_h.jsx)(ww,{text:null===(a=u.passwordRepeat)||void 0===a||null===(a=a.message)||void 0===a?void 0:a.toString()})]}),(0,_h.jsx)(Uv,{type:"submit",className:"mt-6",loading:f,children:r("Sign Up")})]})}function Dw(e){return(0,o.useLayoutEffect)(()=>{(0,eval)(e.script)},[]),(0,_h.jsx)("script",{suppressHydrationWarning:!0,nonce:e.nonce,dangerouslySetInnerHTML:{__html:e.script}})}function Aw(e){let{children:t,fullPage:n}=e;const a=(0,o.useId)(),r="stack-full-page-container-".concat(a),i="(([id]) => {\n    const el = document.getElementById(id);\n    if (!el) {\n      // component is not full page\n      return;\n    }\n    const offset = el.getBoundingClientRect().top + document.documentElement.scrollTop;\n    el.style.minHeight = `calc(100vh - ${offset}px)`;\n  })(".concat(JSON.stringify([r]),")");return n?(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsx)("div",{suppressHydrationWarning:!0,id:r,style:{minHeight:"100vh",alignSelf:"stretch",flexGrow:1,display:"flex",justifyContent:"center",alignItems:"center"},className:"stack-scope",children:t}),(0,_h.jsx)(Dw,{script:i})]}):(0,_h.jsx)(_h.Fragment,{children:t})}const Ew=["asChild"];var jw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>
2{const n=Tg("Primitive.".concat(t)),a=o.forwardRef((e,a)=>{const{asChild:r}=e,o=l(e,Ew),i=r?n:t;return"undefined"!==typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,_h.jsx)(i,p(p({},o),{},{ref:a}))});return a.displayName="Primitive.".concat(t),p(p({},e),{},{[t]:a})},{});const Sw=["decorative","orientation"];var Nw="horizontal",Pw=["horizontal","vertical"],Tw=o.forwardRef((e,t)=>{const{decorative:n,orientation:a=Nw}=e,r=l(e,Sw),o=function(e){return Pw.includes(e)}(a)?a:Nw,i=n?{role:"none"}:{"aria-orientation":"vertical"===o?o:void 0,role:"separator"};return(0,_h.jsx)(jw.div,p(p(p({"data-orientation":o},i),r),{},{ref:t}))});Tw.displayName="Separator";var Fw=Tw;const Ow=["className","orientation","decorative"];var Iw=Ah((e,t)=>{let{className:n,orientation:a="horizontal",decorative:r=!0}=e,o=l(e,Ow);return(0,_h.jsx)(Fw,p({ref:t,decorative:r,orientation:a,className:wh("stack-scope shrink-0 bg-border","horizontal"===a?"h-[1px] w-full":"h-full w-[1px]",n)},o))});function Rw(e){let{text:t}=e;return(0,_h.jsxs)("div",{className:"flex items-center justify-center my-6 stack-scope",children:[(0,_h.jsx)("div",{className:"flex-1",children:(0,_h.jsx)(Iw,{})}),(0,_h.jsx)("div",{className:"mx-2 text-sm text-zinc-500",children:t}),(0,_h.jsx)("div",{className:"flex-1",children:(0,_h.jsx)(Iw,{})})]})}function Mw(e){if(null==e)throw new TypeError("Cannot destructure "+e)}Iw.displayName=Fw.displayName;var Bw=Object.defineProperty,zw=Object.defineProperties,Lw=Object.getOwnPropertyDescriptors,Uw=Object.getOwnPropertySymbols,Vw=Object.prototype.hasOwnProperty,qw=Object.prototype.propertyIsEnumerable,Hw=(e,t,n)=>t in e?Bw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ww="".concat(40,"px"),Kw=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");var Yw=o.createContext({}),Gw=o.forwardRef((e,t)=>{var n,a,r,i,s,l=e,{value:c,onChange:u,maxLength:d,textAlign:h="left",pattern:p,placeholder:f,inputMode:m="numeric",onComplete:g,pushPasswordManagerStrategy:v="increase-width",pasteTransformer:y,containerClassName:w,noScriptCSSFallback:_=$w,render:x,children:b}=l,k=((e,t)=>{var n={};for(var a in e)Vw.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&Uw)for(var a of Uw(e))t.indexOf(a)<0&&qw.call(e,a)&&(n[a]=e[a]);return n})(l,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]);let[C,D]=o.useState("string"==typeof k.defaultValue?k.defaultValue:""),A=null!=c?c:C,E=function(e){let t=o.useRef();return o.useEffect(()=>{t.current=e}),t.current}(A),j=o.useCallback(e=>{null==u||u(e),D(e)},[u]),S=o.useMemo(()=>p?"string"==typeof p?new RegExp(p):p:null,[p]),N=o.useRef(null),P=o.useRef(null),T=o.useRef({value:A,onChange:j,isIOS:"undefined"!=typeof window&&(null==(a=null==(n=null==window?void 0:window.CSS)?void 0:n.supports)?void 0:a.call(n,"-webkit-touch-callout","none"))}),F=o.useRef({prev:[null==(r=N.current)?void 0:r.selectionStart,null==(i=N.current)?void 0:i.selectionEnd,null==(s=N.current)?void 0:s.selectionDirection]});o.useImperativeHandle(t,()=>N.current,[]),o.useEffect(()=>{let e=N.current,t=P.current;if(!e||!t)return;function n(){if(document.activeElement!==e)return z(null),void U(null);let t,n=e.selectionStart,a=e.selectionEnd,r=e.selectionDirection,o=e.maxLength,i=e.value,s=F.current.prev,l=-1,c=-1;if(0!==i.length&&null!==n&&null!==a){let e=n===a,r=n===i.length&&i.length<o;if(e&&!r){let e=n;if(0===e)l=0,c=1,t="forward";else if(e===o)l=e-1,c=e,t="backward";else if(o>1&&i.length>1){let n=0;if(null!==s[0]&&null!==s[1]){t=e<s[1]?"backward":"forward";let a=s[0]===s[1]&&s[0]<o;"backward"===t&&!a&&(n=-1)}l=n+e,c=n+e+1}}-1!==l&&-1!==c&&l!==c&&N.current.setSelectionRange(l,c,t)}let u=-1!==l?l:n,d=-1!==c?c:a,h=null!=t?t:r;z(u),U(d),F.current.prev=[u,d,h]}if(T.current.value!==e.value&&T.current.onChange(e.value),F.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",n,{
vendor: 4,617 bytes, line 2
2capture:!0}),n(),document.activeElement===e&&M(!0),!document.getElementById("input-otp-style")){let e=document.createElement("style");if(e.id="input-otp-style",document.head.appendChild(e),e.sheet){let t="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";Jw(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),Jw(e.sheet,"[data-input-otp]:autofill { ".concat(t," }")),Jw(e.sheet,"[data-input-otp]:-webkit-autofill { ".concat(t," }")),Jw(e.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),Jw(e.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let a=()=>{t&&t.style.setProperty("--root-height","".concat(e.clientHeight,"px"))};a();let r=new ResizeObserver(a);return r.observe(e),()=>{document.removeEventListener("selectionchange",n,{capture:!0}),r.disconnect()}},[]);let[O,I]=o.useState(!1),[R,M]=o.useState(!1),[B,z]=o.useState(null),[L,U]=o.useState(null);o.useEffect(()=>{!function(e){setTimeout(e,0),setTimeout(e,10),setTimeout(e,50)}(()=>{var e,t,n,a;null==(e=N.current)||e.dispatchEvent(new Event("input"));let r=null==(t=N.current)?void 0:t.selectionStart,o=null==(n=N.current)?void 0:n.selectionEnd,i=null==(a=N.current)?void 0:a.selectionDirection;null!==r&&null!==o&&(z(r),U(o),F.current.prev=[r,o,i])})},[A,R]),o.useEffect(()=>{void 0!==E&&A!==E&&E.length<d&&A.length===d&&(null==g||g(A))},[d,g,E,A]);let V=function(e){let{containerRef:t,inputRef:n,pushPasswordManagerStrategy:a,isFocused:r}=e,[i,s]=o.useState(!1),[l,c]=o.useState(!1),[u,d]=o.useState(!1),h=o.useMemo(()=>"none"!==a&&("increase-width"===a||"experimental-no-flickering"===a)&&i&&l,[i,l,a]),p=o.useCallback(()=>{let e=t.current,r=n.current;if(!e||!r||u||"none"===a)return;let o=e,i=o.getBoundingClientRect().left+o.offsetWidth-18,l=o.getBoundingClientRect().top+o.offsetHeight/2;0===document.querySelectorAll(Kw).length&&document.elementFromPoint(i,l)===e||(s(!0),d(!0))},[t,n,u,a]);return o.useEffect(()=>{let e=t.current;if(!e||"none"===a)return;function n(){let t=window.innerWidth-e.getBoundingClientRect().right;c(t>=40)}n();let r=setInterval(n,1e3);return()=>{clearInterval(r)}},[t,a]),o.useEffect(()=>{let e=r||document.activeElement===n.current;if("none"===a||!e)return;let t=setTimeout(p,0),o=setTimeout(p,2e3),i=setTimeout(p,5e3),s=setTimeout(()=>{d(!0)},6e3);return()=>{clearTimeout(t),clearTimeout(o),clearTimeout(i),clearTimeout(s)}},[n,r,a,p]),{hasPWMBadge:i,willPushPWMBadge:h,PWM_BADGE_SPACE_WIDTH:Ww}}({containerRef:P,inputRef:N,pushPasswordManagerStrategy:v,isFocused:R}),q=o.useCallback(e=>{let t=e.currentTarget.value.slice(0,d);t.length>0&&S&&!S.test(t)?e.preventDefault():("string"==typeof E&&t.length<E.length&&document.dispatchEvent(new Event("selectionchange")),j(t))},[d,j,E,S]),H=o.useCallback(()=>{var e;if(N.current){let t=Math.min(N.current.value.length,d-1),n=N.current.value.length;null==(e=N.current)||e.setSelectionRange(t,n),z(t),U(n)}M(!0)},[d]),W=o.useCallback(e=>{var t,n;let a=N.current;if(!y&&(!T.current.isIOS||!e.clipboardData||!a))return;let r=e.clipboardData.getData("text/plain"),o=y?y(r):r;e.preventDefault();let i=null==(t=N.current)?void 0:t.selectionStart,s=null==(n=N.current)?void 0:n.selectionEnd,l=(i!==s?A.slice(0,i)+o+A.slice(s):A.slice(0,i)+o+A.slice(i)).slice(0,d);if(l.length>0&&S&&!S.test(l))return;a.value=l,j(l);let c=Math.min(l.length,d-1),u=l.length;a.setSelectionRange(c,u),z(c),U(u)},[d,j,S,A]),K=o.useMemo(()=>({position:"relative",cursor:k.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[k.disabled]),Y=o.useMemo(()=>({position:"absolute",inset:0,width:V.willPushPWMBadge?"calc(100% + ".concat(V.PWM_BADGE_SPACE_WIDTH,")"):"100%",clipPath:V.willPushPWMBadge?"inset(0 ".concat(V.PWM_BADGE_SPACE_WIDTH," 0 0)"):void 0,height:"100%",display:"flex",textAlign:h,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[V.PWM_BADGE_SPACE_WIDTH,V.willPushPWMBadge,h]),G=o.useMemo(()=>o.createElement("input",((e,t)=>
2zw(e,Lw(t)))(((e,t)=>{for(var n in t||(t={}))Vw.call(t,n)&&Hw(e,n,t[n]);if(Uw)for(var n of Uw(t))qw.call(t,n)&&Hw(e,n,t[n]);return e})({autoComplete:k.autoComplete||"one-time-code"},k),{"data-input-otp":!0,"data-input-otp-placeholder-shown":0===A.length||void 0,"data-input-otp-mss":B,"data-input-otp-mse":L,inputMode:m,pattern:null==S?void 0:S.source,"aria-placeholder":f,style:Y,maxLength:d,value:A,ref:N,onPaste:e=>{var t;W(e),null==(t=k.onPaste)||t.call(k,e)},onChange:q,onMouseOver:e=>{var t;I(!0),null==(t=k.onMouseOver)||t.call(k,e)},onMouseLeave:e=>{var t;I(!1),null==(t=k.onMouseLeave)||t.call(k,e)},onFocus:e=>{var t;H(),null==(t=k.onFocus)||t.call(k,e)},onBlur:e=>{var t;M(!1),null==(t=k.onBlur)||t.call(k,e)}})),[q,H,W,m,Y,d,L,B,k,null==S?void 0:S.source,A]),J=o.useMemo(()=>({slots:Array.from({length:d}).map((e,t)=>{var n;let a=R&&null!==B&&null!==L&&(B===L&&t===B||t>=B&&t<L),r=void 0!==A[t]?A[t]:null;return{char:r,placeholderChar:void 0!==A[0]?null:null!=(n=null==f?void 0:f[t])?n:null,isActive:a,hasFakeCaret:a&&null===r}}),isFocused:R,isHovering:!k.disabled&&O}),[R,O,d,L,B,k.disabled,A]),$=o.useMemo(()=>x?x(J):o.createElement(Yw.Provider,{value:J},b),[b,J,x]);return o.createElement(o.Fragment,null,null!==_&&o.createElement("noscript",null,o.createElement("style",null,_)),o.createElement("div",{ref:P,"data-input-otp-container":!0,style:K,className:w},$,o.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},G)))});function Jw(e,t){try{e.insertRule(t)}catch(oL){console.error("input-otp could not insert CSS rule:",t)}}Gw.displayName="Input";var $w="\n[data-input-otp] {\n  --nojs-bg: white !important;\n  --nojs-fg: black !important;\n\n  background-color: var(--nojs-bg) !important;\n  color: var(--nojs-fg) !important;\n  caret-color: var(--nojs-fg) !important;\n  letter-spacing: .25em !important;\n  text-align: center !important;\n  border: 1px solid var(--nojs-fg) !important;\n  border-radius: 4px !important;\n  width: 100% !important;\n}\n@media (prefers-color-scheme: dark) {\n  [data-input-otp] {\n    --nojs-bg: black !important;\n    --nojs-fg: white !important;\n  }\n}";const Qw=["className","containerClassName"],Xw=["className"],Zw=["index","className","size"];var e_=Ah((e,t)=>{let{className:n,containerClassName:a}=e,r=l(e,Qw);return(0,_h.jsx)(Gw,p({ref:t,containerClassName:wh("stack-scope flex items-center gap-2 has-[:disabled]:opacity-50",a),className:wh("disabled:cursor-not-allowed",n)},r))});e_.displayName="InputOTP";var t_=Ah((e,t)=>{let{className:n}=e,a=l(e,Xw);return(0,_h.jsx)("div",p({ref:t,className:wh("flex items-center gap-1",n)},a))});t_.displayName="InputOTPGroup";var n_=Ah((e,t)=>{let{index:n,className:a,size:r="default"}=e,i=l(e,Zw);const s=o.useContext(Yw),{char:c,hasFakeCaret:u,isActive:d}=s.slots[n];return(0,_h.jsxs)("div",p(p({ref:t,className:wh("relative flex h-9 w-9 items-center justify-center border border-input text-sm rounded-md","lg"===r?"h-10 w-10 text-lg font-medium":"",d&&"z-10 ring-1 ring-ring",a)},i),{},{children:[c,u&&(0,_h.jsx)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:(0,_h.jsx)("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]}))});function a_(e){const{t:t}=yw(),[n,a]=(0,o.useState)(""),[r,i]=(0,o.useState)(!1),s=lg(),[l,c]=(0,o.useState)(null);return(0,o.useEffect)(()=>{6!==n.length||r||(i(!0),s.signInWithMagicLink(n+e.nonce).then(e=>{if("error"===e.status)if(so.VerificationCodeError.isInstance(e.error))c(t("Invalid code"));else{if(!so.InvalidTotpCode.isInstance(e.error))throw e.error;c(t("Invalid TOTP code"))}}).catch(e=>console.error(e)).finally(()=>{i(!1),a("")})),0!==n.length&&6!==n.length&&c(null)},[n,r]),(0,_h.jsxs)("div",{className:"flex flex-col items-stretch stack-scope",children:[(0,_h.jsxs)("form",{className:"w-full flex flex-col items-center mb-2",children:[(0,_h.jsx)(Rh,{className:"mb-2",children:t("Enter the code from your email")}),(0,_h.jsx)(e_,{maxLength:6,type:"text",inputMode:"text",pattern:"^[a-zA-Z0-9]+$",value:n,onChange:e=>a(e.toUpperCase()),disabled:r,children:(0,_h.jsx)(t_,{children:[0,1,2,3,4,5].map(e=>(0,_h.jsx)(n_,{index:e,size:"lg"},e))})}),l&&(0,_h.jsx)(ww,{text:l})]}),(0,_h.jsx)(Uv,{variant:"link",onClick:e.onBack,className:"underline",children:t("Cancel")})]})}function r_(){const{t:e}=yw(),t=lg(),[n,a]=(0,o.useState)(!1),[r,i]=(0,o.useState)(null),s=gs({email:Ns(e("Please enter a valid email")).defined().nonEmpty(e("Please enter your email"))}),{register:l,handleSubmit:c,setError:u,formState:{errors:d}}=mw({resolver:Ag(s)}),h=async n=>{a(!0);try{const{email:e}=n,a=await t.sendMagicLinkEmail(e);if("error"===a.status)return void u("email",{type:"manual",message:a.error.message});i(a.data.nonce)}catch(oL){if(!so.SignUpNotEnabled.isInstance(oL))throw oL;u("email",{type:"manual",message:e("New account registration is not allowed")})}finally{a(!1)}};return r?(0,_h.jsx)(a_,{nonce:r,onBack:()=>i(null)}):(0,_h.jsxs)("form",{className:"flex flex-col items-stretch stack-scope",onSubmit:e=>ad(c(h)(e)),noValidate:!0,children:[(0,_h.jsx)(Kg,{htmlFor:"email",className:"mb-1",children:e("Email")}),(0,_h.jsx)(Jg,p({id:"email",type:"email",autoComplete:"email"},l("email"))),(0,_h.jsx)(ww,{text:null===(f=d.email)||void 0===f||null===(f=f.message)||void 0===f?void 0:f.toString()}),(0,_h.jsx)(Uv,{type:"submit",className:"mt-6",loading:n,children:e("Send email")})]});var f}n_.displayName="InputOTPSlot",Ah((e,t)=>{let n=Object.assign({},(Mw(e),e));return(0,_h.jsx)("div",p(p({ref:t,role:"separator"},n),{},{children:(0,_h.jsx)(Cv,{})}))}).displayName="InputOTPSeparator";const o_=["fullPage"];function i_(e){let{fullPage:t=!1}=e,n=l(e,o_);return(0,_h.jsx)(Aw,{fullPage:t,children:(0,_h.jsxs)("div",{className:"text-center stack-scope flex flex-col gap-4",style:{maxWidth:"380px",flexBasis:"380px",padding:t?"1rem":0},children:[(0,_h.jsx)(Rh,{type:"h3",children:n.title}),n.children,(n.primaryButtonText||n.secondaryButtonText)&&(0,_h.jsxs)("div",{className:"flex justify-center gap-4 my-5",children:[n.secondaryButtonText&&(0,_h.jsx)(Uv,{variant:"secondary",onClick:n.secondaryAction,children:n.secondaryButtonText}),n.primaryButtonText&&(0,_h.jsx)(Uv,{onClick:n.primaryAction,children:n.primaryButtonText})]})]})})}function s_(e){let{type:t,fullPage:n=!1}=e;const a=lg(),{t:r}=yw();let o,i=null,s=null,l=null,c=null,u=null;switch(t){case"signedIn":o=r("You are already signed in"),c=()=>a.redirectToHome(),u=()=>a.redirectToSignOut(),s=r("Go home"),l=r("Sign out");break;case"signedOut":o=r("You are not currently signed in."),c=()=>a.redirectToSignIn(),s=r("Sign in");break;case"signUpDisabled":o=r("Sign up for new users is not enabled at the moment."),c=()=>a.redirectToHome(),u=()=>a.redirectToSignIn(),s=r("Go home"),l=r("Sign in");break;case"emailSent":o=r("Email sent!"),i=r("If the user with this e-mail address exists, an e-mail was sent to your inbox. Make sure to check your spam folder."),c=()=>a.redirectToHome(),s=r("Go home");break;case"passwordReset":o=r("Password reset successfully!"),i=r("Your password has been reset. You can now sign in with your new password."),c=()=>a.redirectToSignIn({noRedirectBack:!0}),s=r("Sign in");break;case"unknownError":o=r("An unknown error occurred"),i=r("Please try again and if the problem persists, contact support."),c=()=>a.redirectToHome(),s=r("Go home")}return(0,_h.jsx)(i_,{title:o,fullPage:n,primaryButtonText:s,primaryAction:c,secondaryButtonText:l||void 0,secondaryAction:u||void 0,children:i&&(0,_h.jsx)(Rh,{children:i})})}function l_(e){let{iconSize:t}=e;return(0,_h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",children:[(0,_h.jsx)("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),(0,_h.jsx)("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),(0,_h.jsx)("path",{fill:"#FBBC05",d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),(0,_h.jsx)("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"}),(0,_h.jsx)("path",{fill:"none",d:"M1 1h22v22H1z"})]})}function c_(e){let{iconSize:t}=e;return(0,_h.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 512 512",children:(0,_h.jsx)("path",{fill:"#FFFFFF",d:"M512 256C512 114.6 397.4 0 256 0S0 114.6 0 256C0 376 82.7 476.8 194.2 504.5V334.2H141.4V256h52.8V222.3c0-87.1 39.4-127.5 125-127.5c16.2 0 44.2 3.2 55.7 6.4V172c-6-.6-16.5-1-29.6-1c-42 0-58.2 15.9-58.2 57.2V256h83.6l-14.4 78.2H287V510.1C413.8 494.8 512 386.9 512 256h0z"})})}function u_(e){let{iconSize:t}=e;return(0,_h.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 496 512",children:(0,_h.jsx)("path",{fill:"#FFFFFF",d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3 .3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5 .3-6.2 2.3zm44.2-1.7c-2.9 .7-4.9 2.6-4.6 4.9 .3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3 .7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3 .3 2.9 2.3 3.9 1.6 1 3.6 .7 4.3-.7 .7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3 .7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3 .7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"})})}function d_(e){let{iconSize:t}=e;return(0,_h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 21 21",children:[(0,_h.jsx)("title",{children:"MS-SymbolLockup"}),(0,_h.jsx)("path",{fill:"#f25022",d:"M1 1h9v9H1z"}),(0,_h.jsx)("path",{fill:"#00a4ef",d:"M1 11h9v9H1z"}),(0,_h.jsx)("path",{fill:"#7fba00",d:"M11 1h9v9h-9z"}),(0,_h.jsx)("path",{fill:"#ffb900",d:"M11 11h9v9h-9z"})]})}function h_(e){let{iconSize:t}=e;return(0,_h.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 496 512",children:(0,_h.jsx)("path",{fill:"#ffffff",d:"M248 8C111.1 8 0 119.1 0 256s111.1 248 248 248 248-111.1 248-248S384.9 8 248 8zm100.7 364.9c-4.2 0-6.8-1.3-10.7-3.6-62.4-37.6-135-39.2-206.7-24.5-3.9 1-9 2.6-11.9 2.6-9.7 0-15.8-7.7-15.8-15.8 0-10.3 6.1-15.2 13.6-16.8 81.9-18.1 165.6-16.5 237 26.2 6.1 3.9 9.7 7.4 9.7 16.5s-7.1 15.4-15.2 15.4zm26.9-65.6c-5.2 0-8.7-2.3-12.3-4.2-62.5-37-155.7-51.9-238.6-29.4-4.8 1.3-7.4 2.6-11.9 2.6-10.7 0-19.4-8.7-19.4-19.4s5.2-17.8 15.5-20.7c27.8-7.8 56.2-13.6 97.8-13.6 64.9 0 127.6 16.1 177 45.5 8.1 4.8 11.3 11 11.3 19.7-.1 10.8-8.5 19.5-19.4 19.5zm31-76.2c-5.2 0-8.4-1.3-12.9-3.9-71.2-42.5-198.5-52.7-280.9-29.7-3.6 1-8.1 2.6-12.9 2.6-13.2 0-23.3-10.3-23.3-23.6 0-13.6 8.4-21.3 17.4-23.9 35.2-10.3 74.6-15.2 117.5-15.2 73 0 149.5 15.2 205.4 47.8 7.8 4.5 12.9 10.7 12.9 22.6 0 13.6-11 23.3-23.2 23.3z"})})}function p_(e){let{iconSize:t}=e;return(0,_h.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 127.14 96.36",children:(0,_h.jsx)("path",{fill:"#fff",d:"M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.
26.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z"})})}function f_(e){let{iconSize:t}=e;return(0,_h.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 -10 256 256",version:"1.1",preserveAspectRatio:"xMidYMid",children:(0,_h.jsxs)("g",{children:[(0,_h.jsx)("path",{d:"M128.07485,236.074667 L128.07485,236.074667 L175.17885,91.1043048 L80.9708495,91.1043048 L128.07485,236.074667 L128.07485,236.074667 Z",fill:"#E24329"}),(0,_h.jsx)("path",{d:"M128.07485,236.074423 L80.9708495,91.104061 L14.9557638,91.104061 L128.07485,236.074423 L128.07485,236.074423 Z",fill:"#FC6D26"}),(0,_h.jsx)("path",{d:"M14.9558857,91.1044267 L14.9558857,91.1044267 L0.641828571,135.159589 C-0.663771429,139.17757 0.766171429,143.57955 4.18438095,146.06275 L128.074971,236.074789 L14.9558857,91.1044267 L14.9558857,91.1044267 Z",fill:"#FCA326"}),(0,_h.jsx)("path",{d:"M14.9558857,91.1045486 L80.9709714,91.1045486 L52.6000762,3.79026286 C51.1408762,-0.703146667 44.7847619,-0.701927619 43.3255619,3.79026286 L14.9558857,91.1045486 L14.9558857,91.1045486 Z",fill:"#E24329"}),(0,_h.jsx)("path",{d:"M128.07485,236.074423 L175.17885,91.104061 L241.193935,91.104061 L128.07485,236.074423 L128.07485,236.074423 Z",fill:"#FC6D26"}),(0,_h.jsx)("path",{d:"M241.193935,91.1044267 L241.193935,91.1044267 L255.507992,135.159589 C256.813592,139.17757 255.38365,143.57955 251.96544,146.06275 L128.07485,236.074789 L241.193935,91.1044267 L241.193935,91.1044267 Z",fill:"#FCA326"}),(0,_h.jsx)("path",{d:"M241.193935,91.1045486 L175.17885,91.1045486 L203.549745,3.79026286 C205.008945,-0.703146667 211.365059,-0.701927619 212.824259,3.79026286 L241.193935,91.1045486 L241.193935,91.1045486 Z",fill:"#E24329"})]})})}function m_(e){let{iconSize:t}=e;return(0,_h.jsxs)("svg",{preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",viewBox:"-0.9662264221278978 -0.5824607696358868 257.93281329857973 230.8324730411935",width:t,height:t,children:[(0,_h.jsxs)("linearGradient",{id:"a",x1:"108.633%",x2:"46.927%",y1:"13.818%",y2:"78.776%",children:[(0,_h.jsx)("stop",{offset:".18",stopColor:"#0052cc"}),(0,_h.jsx)("stop",{offset:"1",stopColor:"#2684ff"})]}),(0,_h.jsxs)("g",{fill:"none",children:[(0,_h.jsx)("path",{d:"M101.272 152.561h53.449l12.901-75.32H87.06z"}),(0,_h.jsx)("path",{d:"M8.308 0A8.202 8.202 0 0 0 .106 9.516l34.819 211.373a11.155 11.155 0 0 0 10.909 9.31h167.04a8.202 8.202 0 0 0 8.201-6.89l34.82-213.752a8.202 8.202 0 0 0-8.203-9.514zm146.616 152.768h-53.315l-14.436-75.42h80.67z",fill:"#2684ff"}),(0,_h.jsx)("path",{d:"M244.61 77.242h-76.916l-12.909 75.36h-53.272l-62.902 74.663a11.105 11.105 0 0 0 7.171 2.704H212.73a8.196 8.196 0 0 0 8.196-6.884z",fill:"url(#a)"})]})]})}function g_(e){let{iconSize:t}=e;return(0,_h.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#fff",height:t,width:t,viewBox:"0 0 310 310",children:(0,_h.jsxs)("g",{id:"XMLID_801_",children:[(0,_h.jsx)("path",{id:"XMLID_802_",d:"M72.16,99.73H9.927c-2.762,0-5,2.239-5,5v199.928c0,2.762,2.238,5,5,5H72.16c2.762,0,5-2.238,5-5V104.73   C77.16,101.969,74.922,99.73,72.16,99.73z"}),(0,_h.jsx)("path",{id:"XMLID_803_",d:"M41.066,0.341C18.422,0.341,0,18.743,0,41.362C0,63.991,18.422,82.4,41.066,82.4   c22.626,0,41.033-18.41,41.033-41.038C82.1,18.743,63.692,0.341,41.066,0.341z"}),(0,_h.jsx)("path",{id:"XMLID_804_",d:"M230.454,94.761c-24.995,0-43.472,10.745-54.679,22.954V104.73c0-2.761-2.238-5-5-5h-59.599   c-2.762,0-5,2.239-5,5v199.928c0,2.762,2.238,5,5,5h62.097c2.762,0,5-2.238,5-5v-98.918c0-33.333,9.054-46.319,32.29-46.319   c25.306,0,27.317,20.818,27.317,48.034v97.204c0,2.762,2.238,5,5,5H305c2.762,0,5-2.238,5-5V194.995   C310,145.43,300.549,94.761,230.454,94.761z"})]})})}function v_(e){let{iconSize:t}=e;return(0,_h.jsxs)("svg",{fill:"#fff",height:t,width:t,version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22.773 22.773",children:[(0,_h.jsx)("path",{d:"M15.769,0c0.053,0,0.106,0,0.162,0c0.13,1.606-0.483,2.806-1.228,3.675c-0.731,0.863-1.732,1.7-3.351,1.573c-0.108-1.583,0.506-2.694,1.25-3.561C13.292,0.879,14.557,0.16,15.769,0z"}),(0,_h.jsx)("path",{d:"M20.67,16.716c0,0.016,0,0.03,0,0.045c-0.455,1.378-1.104,2.559-1.896,3.655c-0.723,0.995-1.
2609,2.334-3.191,2.334c-1.367,0-2.275-0.879-3.676-0.903c-1.482-0.024-2.297,0.735-3.652,0.926c-0.155,0-0.31,0-0.462,0c-0.995-0.144-1.798-0.932-2.383-1.642c-1.725-2.098-3.058-4.808-3.306-8.276c0-0.34,0-0.679,0-1.019c0.105-2.482,1.311-4.5,2.914-5.478c0.846-0.52,2.009-0.963,3.304-0.765c0.555,0.086,1.122,0.276,1.619,0.464c0.471,0.181,1.06,0.502,1.618,0.485c0.378-0.011,0.754-0.208,1.135-0.347c1.116-0.403,2.21-0.865,3.652-0.648c1.733,0.262,2.963,1.032,3.723,2.22c-1.466,0.933-2.625,2.339-2.427,4.74C17.818,14.688,19.086,15.964,20.67,16.716z"})]})}function y_(e){let{iconSize:t}=e;return(0,_h.jsx)("svg",{"aria-label":"X",viewBox:"0 0 1200 1227",width:t,height:t,xmlns:"http://www.w3.org/2000/svg",children:(0,_h.jsx)("path",{fill:"#FFFFFF",d:"M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z"})})}function w_(e){let{iconSize:t}=e;return(0,_h.jsx)("svg",{"aria-label":"Twitch",viewBox:"0 0 2400 2800",width:t,height:t,xmlns:"http://www.w3.org/2000/svg",children:(0,_h.jsxs)("g",{children:[(0,_h.jsx)("polygon",{fill:"#FFFFFF",points:"2200,1300 1800,1700 1400,1700 1050,2050 1050,1700 600,1700 600,200 2200,200"}),(0,_h.jsx)("g",{children:(0,_h.jsxs)("g",{id:"Layer_1-2",children:[(0,_h.jsx)("path",{fill:"#9146FF",d:"M500,0L0,500v1800h600v500l500-500h400l900-900V0H500z M2200,1300l-400,400h-400l-350,350v-350H600V200h1600 V1300z"}),(0,_h.jsx)("rect",{x:"1700",y:"550",fill:"#9146FF",width:"200",height:"600"}),(0,_h.jsx)("rect",{x:"1150",y:"550",fill:"#9146FF",width:"200",height:"600"})]})})]})})}const __=["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"];var x_,b_="dismissableLayer.update",k_="dismissableLayer.pointerDownOutside",C_="dismissableLayer.focusOutside",D_=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),A_=o.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:c,onDismiss:u}=e,d=l(e,__),h=o.useContext(D_),[f,m]=o.useState(null),g=null!==(n=null===f||void 0===f?void 0:f.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,v]=o.useState({}),y=Gh(t,e=>m(e)),w=Array.from(h.layers),[_]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),x=w.indexOf(_),b=f?w.indexOf(f):-1,k=h.layersWithOutsidePointerEventsDisabled.size>0,C=b>=x,D=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document;const n=xp(e),a=o.useRef(!1),r=o.useRef(()=>{});return o.useEffect(()=>{const e=e=>{if(e.target&&!a.current){let a=function(){S_(k_,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",r.current),r.current=a,t.addEventListener("click",r.current,{once:!0})):a()}else t.removeEventListener("click",r.current);a.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>a.current=!0}}(e=>{const t=e.target,n=[...h.branches].some(e=>e.contains(t));C&&!n&&(null===i||void 0===i||i(e),null===c||void 0===c||c(e),e.defaultPrevented||null===u||void 0===u||u())},g),A=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document;const n=xp(e),a=o.useRef(!1);return o.useEffect(()=>{const e=e=>{if(e.target&&!a.current){S_(C_,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}(e=>{const t=e.target;[...h.branches].some(e=>e.contains(t))||(null===s||void 0===s||s(e),null===c||void 0===c||c(e),e.defaultPrevented||null===u||void 0===u||u())},g);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document;const n=xp(e);o.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{b===h.layers.size-1&&(null===r||void 0===r||r(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},g),o.useEffect(()=>{if(f)return a&&(0===h.layersWithOutsidePointerEventsDisabled.size&&(x_=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(f)),h.layers.add(f),j_(),()=>{a&&1===h.layersWithOutsidePointerEventsDisabled.size&&(g.body.style.pointerEvents=x_)}},[f,g,a,h]),o.useEffect(()=>()=>{f&&(h.layers.delete(f),h.layersWithOutsidePointerEventsDisabled.delete(f),j_())},[f,h]),o.useEffect(()=>{const e=()=>v({});return document.addEventListener(b_,e),()=>document.removeEventListener(b_,e)},[]),(0,_h.jsx)(wp.div,p(p({},d),{},{ref:y,style:p({pointerEvents:k?C?"auto":"none":void 0},e.style),onFocusCapture:Mh(e.onFocusCapture,A.onFocusCapture),onBlurCapture:Mh(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:Mh(e.onPointerDownCapture,D.onPointerDownCapture)}))});A_.displayName="DismissableLayer";var E_=o.forwardRef((e,t)=>
vendor: 5,833 bytes, line 2
2{const n=o.useContext(D_),a=o.useRef(null),r=Gh(t,a);return o.useEffect(()=>{const e=a.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,_h.jsx)(wp.div,p(p({},e),{},{ref:r}))});function j_(){const e=new CustomEvent(b_);document.dispatchEvent(e)}function S_(e,t,n,a){let{discrete:r}=a;const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?_p(o,i):o.dispatchEvent(i)}E_.displayName="DismissableLayerBranch";const N_=["top","right","bottom","left"],P_=Math.min,T_=Math.max,F_=Math.round,O_=Math.floor,I_=e=>({x:e,y:e}),R_={left:"right",right:"left",bottom:"top",top:"bottom"},M_={start:"end",end:"start"};function B_(e,t,n){return T_(e,P_(t,n))}function z_(e,t){return"function"===typeof e?e(t):e}function L_(e){return e.split("-")[0]}function U_(e){return e.split("-")[1]}function V_(e){return"x"===e?"y":"x"}function q_(e){return"y"===e?"height":"width"}const H_=new Set(["top","bottom"]);function W_(e){return H_.has(L_(e))?"y":"x"}function K_(e){return V_(W_(e))}function Y_(e){return e.replace(/start|end/g,e=>M_[e])}const G_=["left","right"],J_=["right","left"],$_=["top","bottom"],Q_=["bottom","top"];function X_(e,t,n,a){const r=U_(e);let o=function(e,t,n){switch(e){case"top":case"bottom":return n?t?J_:G_:t?G_:J_;case"left":case"right":return t?$_:Q_;default:return[]}}(L_(e),"start"===n,a);return r&&(o=o.map(e=>e+"-"+r),t&&(o=o.concat(o.map(Y_)))),o}function Z_(e){return e.replace(/left|right|bottom|top/g,e=>R_[e])}function ex(e){return"number"!==typeof e?function(e){return p({top:0,right:0,bottom:0,left:0},e)}(e):{top:e,right:e,bottom:e,left:e}}function tx(e){const{x:t,y:n,width:a,height:r}=e;return{width:a,height:r,top:n,left:t,right:t+a,bottom:n+r,x:t,y:n}}const nx=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],ax=["strategy"],rx=["mainAxis","crossAxis","limiter"],ox=["apply"];function ix(e,t,n){let{reference:a,floating:r}=e;const o=W_(t),i=K_(t),s=q_(i),l=L_(t),c="y"===o,u=a.x+a.width/2-r.width/2,d=a.y+a.height/2-r.height/2,h=a[s]/2-r[s]/2;let p;switch(l){case"top":p={x:u,y:a.y-r.height};break;case"bottom":p={x:u,y:a.y+a.height};break;case"right":p={x:a.x+a.width,y:d};break;case"left":p={x:a.x-r.width,y:d};break;default:p={x:a.x,y:a.y}}switch(U_(t)){case"start":p[i]-=h*(n&&c?-1:1);break;case"end":p[i]+=h*(n&&c?-1:1)}return p}async function sx(e,t){var n;void 0===t&&(t={});const{x:a,y:r,platform:o,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=z_(t,e),f=ex(p),m=s[h?"floating"===d?"reference":"floating":d],g=tx(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:a,y:r,width:i.floating.width,height:i.floating.height}:i.reference,y=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),w=await(null==o.isElement?void 0:o.isElement(y))&&await(null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},_=tx(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-_.top+f.top)/w.y,bottom:(_.bottom-g.bottom+f.bottom)/w.y,left:(g.left-_.left+f.left)/w.x,right:(_.right-g.right+f.right)/w.x}}function lx(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function cx(e){return N_.some(t=>e[t]>=0)}const ux=new Set(["left","top"]);function dx(){return"undefined"!==typeof window}function hx(e){return mx(e)?(e.nodeName||"").toLowerCase():"#document"}function px(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function fx(e){var t;return null==(t=(mx(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function mx(e){return!!dx()&&(e instanceof Node||e instanceof px(e).Node)}function gx(e){return!!dx()&&(e instanceof Element||e instanceof px(e).Element)}function vx(e){return!!dx()&&(e instanceof HTMLElement||e instanceof px(e).HTMLElement)}function yx(e){return!(!dx()||"undefined"===typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof px(e).ShadowRoot)}const wx=new Set(["inline","contents"]);function _x(e){const{overflow:t,overflowX:n,overflowY:a,display:r}=Tx(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&!wx.has(r)}const xx=new Set(["table","td","th"]);function bx(e){return xx.has(hx(e))}const kx=[":popover-open",":modal"];function Cx(e){return kx.some(t=>{try{return e.matches(t)}catch(vF){return!1}})}const Dx=["transform","translate","scale","rotate","perspective"],Ax=["transform","translate","scale","rotate","perspective","filter"],Ex=["paint","layout","strict","content"];function jx(e){const t=Sx(),n=gx(e)?Tx(e):e;return Dx.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Ax.some(e=>(n.willChange||"").includes(e))||Ex.some(e=>(n.contain||"").includes(e))}function Sx(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Nx=new Set(["html","body","#document"]);function Px(e){return Nx.has(hx(e))}function Tx(e){return px(e).getComputedStyle(e)}function Fx(e){return gx(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ox(e){if("html"===hx(e))return e;const t=e.assignedSlot||e.parentNode||yx(e)&&e.host||fx(e);return yx(t)?t.host:t}function Ix(e){const t=Ox(e);return Px(t)?e.ownerDocument?e.ownerDocument.body:e.body:vx(t)&&_x(t)?t:Ix(t)}
vendor: 4,284 bytes, line 2
2function Rx(e,t,n){var a;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=Ix(e),o=r===(null==(a=e.ownerDocument)?void 0:a.body),i=px(r);if(o){const e=Mx(i);return t.concat(i,i.visualViewport||[],_x(r)?r:[],e&&n?Rx(e):[])}return t.concat(r,Rx(r,[],n))}function Mx(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Bx(e){const t=Tx(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const r=vx(e),o=r?e.offsetWidth:n,i=r?e.offsetHeight:a,s=F_(n)!==o||F_(a)!==i;return s&&(n=o,a=i),{width:n,height:a,$:s}}function zx(e){return gx(e)?e:e.contextElement}function Lx(e){const t=zx(e);if(!vx(t))return I_(1);const n=t.getBoundingClientRect(),{width:a,height:r,$:o}=Bx(t);let i=(o?F_(n.width):n.width)/a,s=(o?F_(n.height):n.height)/r;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const Ux=I_(0);function Vx(e){const t=px(e);return Sx()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ux}function qx(e,t,n,a){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),o=zx(e);let i=I_(1);t&&(a?gx(a)&&(i=Lx(a)):i=Lx(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==px(e))&&t}(o,n,a)?Vx(o):I_(0);let l=(r.left+s.x)/i.x,c=(r.top+s.y)/i.y,u=r.width/i.x,d=r.height/i.y;if(o){const e=px(o),t=a&&gx(a)?px(a):a;let n=e,r=Mx(n);for(;r&&a&&t!==n;){const e=Lx(r),t=r.getBoundingClientRect(),a=Tx(r),o=t.left+(r.clientLeft+parseFloat(a.paddingLeft))*e.x,i=t.top+(r.clientTop+parseFloat(a.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=i,n=px(r),r=Mx(n)}}return tx({width:u,height:d,x:l,y:c})}function Hx(e,t){const n=Fx(e).scrollLeft;return t?t.left+n:qx(fx(e)).left+n}function Wx(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Hx(e,n),y:n.top+t.scrollTop}}const Kx=new Set(["absolute","fixed"]);function Yx(e,t,n){let a;if("viewport"===t)a=function(e,t){const n=px(e),a=fx(e),r=n.visualViewport;let o=a.clientWidth,i=a.clientHeight,s=0,l=0;if(r){o=r.width,i=r.height;const e=Sx();(!e||e&&"fixed"===t)&&(s=r.offsetLeft,l=r.offsetTop)}const c=Hx(a);if(c<=0){const e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r);i<=25&&(o-=i)}else c<=25&&(o+=c);return{width:o,height:i,x:s,y:l}}(e,n);else if("document"===t)a=function(e){const t=fx(e),n=Fx(e),a=e.ownerDocument.body,r=T_(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),o=T_(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let i=-n.scrollLeft+Hx(e);const s=-n.scrollTop;return"rtl"===Tx(a).direction&&(i+=T_(t.clientWidth,a.clientWidth)-r),{width:r,height:o,x:i,y:s}}(fx(e));else if(gx(t))a=function(e,t){const n=qx(e,!0,"fixed"===t),a=n.top+e.clientTop,r=n.left+e.clientLeft,o=vx(e)?Lx(e):I_(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:r*o.x,y:a*o.y}}(t,n);else{const n=Vx(e);a={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return tx(a)}function Gx(e,t){const n=Ox(e);return!(n===t||!gx(n)||Px(n))&&("fixed"===Tx(n).position||Gx(n,t))}function Jx(e,t,n){const a=vx(t),r=fx(t),o="fixed"===n,i=qx(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=I_(0);function c(){l.x=Hx(r)}if(a||!a&&!o)if(("body"!==hx(t)||_x(r))&&(s=Fx(t)),a){const e=qx(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else r&&c();o&&!a&&r&&c();const u=!r||a||o?I_(0):Wx(r,s);return{x:i.left+s.scrollLeft-l.x-u.x,y:i.top+s.scrollTop-l.y-u.y,width:i.width,height:i.height}}function $x(e){return"static"===Tx(e).position}function Qx(e,t){if(!vx(e)||"fixed"===Tx(e).position)return null;if(t)return t(e);let n=e.offsetParent;return fx(e)===n&&(n=n.ownerDocument.body),n}function Xx(e,t){const n=px(e);if(Cx(e))return n;if(!vx(e)){let t=Ox(e);for(;t&&!Px(t);){if(gx(t)&&!$x(t))return t;t=Ox(t)}return n}let a=Qx(e,t);for(;a&&bx(a)&&$x(a);)a=Qx(a,t);return a&&Px(a)&&$x(a)&&!jx(a)?n:a||function(e){let t=Ox(e);for(;vx(t)&&!Px(t);){if(jx(t))return t;if(Cx(t))return null;t=Ox(t)}return null}(e)||n}const Zx={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:a,strategy:r}=e;const o="fixed"===r,i=fx(a),s=!!t&&Cx(t.floating);if(a===i||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=I_(1);const u=I_(0),d=vx(a);
vendor: 4,384 bytes, line 2
2if((d||!d&&!o)&&(("body"!==hx(a)||_x(i))&&(l=Fx(a)),vx(a))){const e=qx(a);c=Lx(a),u.x=e.x+a.clientLeft,u.y=e.y+a.clientTop}const h=!i||d||o?I_(0):Wx(i,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}},getDocumentElement:fx,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:a,strategy:r}=e;const o=[..."clippingAncestors"===n?Cx(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let a=Rx(e,[],!1).filter(e=>gx(e)&&"body"!==hx(e)),r=null;const o="fixed"===Tx(e).position;let i=o?Ox(e):e;for(;gx(i)&&!Px(i);){const t=Tx(i),n=jx(i);n||"fixed"!==t.position||(r=null),(o?!n&&!r:!n&&"static"===t.position&&r&&Kx.has(r.position)||_x(i)&&!n&&Gx(e,i))?a=a.filter(e=>e!==i):r=t,i=Ox(i)}return t.set(e,a),a}(t,this._c):[].concat(n),a],i=o[0],s=o.reduce((e,n)=>{const a=Yx(t,n,r);return e.top=T_(a.top,e.top),e.right=P_(a.right,e.right),e.bottom=P_(a.bottom,e.bottom),e.left=T_(a.left,e.left),e},Yx(t,i,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Xx,getElementRects:async function(e){const t=this.getOffsetParent||Xx,n=this.getDimensions,a=await n(e.floating);return{reference:Jx(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Bx(e);return{width:t,height:n}},getScale:Lx,isElement:gx,isRTL:function(e){return"rtl"===Tx(e).direction}};function eb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function tb(e,t,n,a){void 0===a&&(a={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:i="function"===typeof ResizeObserver,layoutShift:s="function"===typeof IntersectionObserver,animationFrame:l=!1}=a,c=zx(e),u=r||o?[...c?Rx(c):[],...Rx(t)]:[];u.forEach(e=>{r&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)});const d=c&&s?function(e,t){let n,a=null;const r=fx(e);function o(){var e;clearTimeout(n),null==(e=a)||e.disconnect(),a=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:f}=c;if(s||t(),!h||!f)return;const m={rootMargin:-O_(d)+"px "+-O_(r.clientWidth-(u+h))+"px "+-O_(r.clientHeight-(d+f))+"px "+-O_(u)+"px",threshold:T_(0,P_(1,l))||1};let g=!0;function v(t){const a=t[0].intersectionRatio;if(a!==l){if(!g)return i();a?i(!1,a):n=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==a||eb(c,e.getBoundingClientRect())||i(),g=!1}try{a=new IntersectionObserver(v,p(p({},m),{},{root:r.ownerDocument}))}catch(vF){a=new IntersectionObserver(v,m)}a.observe(e)}(!0),o}(c,n):null;let h,f=-1,m=null;i&&(m=new ResizeObserver(e=>{let[a]=e;a&&a.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),c&&!l&&m.observe(c),m.observe(t));let g=l?qx(e):null;return l&&function t(){const a=qx(e);g&&!eb(g,a)&&n();g=a,h=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{r&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(h)}}const nb=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:r,y:o,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:a,elements:r}=e,o=await(null==a.isRTL?void 0:a.isRTL(r.floating)),i=L_(n),s=U_(n),l="y"===W_(n),c=ux.has(i)?-1:1,u=o&&l?-1:1,d=z_(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:f}="number"===typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"===typeof f&&(p="end"===s?-1*f:f),l?{x:p*u,y:h*c}:{x:h*c,y:p*u}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(a=s.arrow)&&a.alignmentOffset?{}:{x:r+l.x,y:o+l.y,data:p(p({},l),{},{placement:i})}}}},ab=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:r}=t,o=z_(e,t),{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}}}=o,u=l(o,rx),d={x:n,y:a},h=await sx(t,u),f=W_(L_(r)),m=V_(f);let g=d[m],v=d[f];if(i){const e="y"===m?"bottom":"right";g=B_(g+h["y"===m?"top":"left"],g,g-h[e])}if(s){const e="y"===f?"bottom":"right";v=B_(v+h["y"===f?"top":"left"],v,v-h[e])}
vendor: 4,727 bytes, line 2
2const y=c.fn(p(p({},t),{},{[m]:g,[f]:v}));return p(p({},y),{},{data:{x:y.x-n,y:y.y-a,enabled:{[m]:i,[f]:s}}})}}},rb=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,a;const{placement:r,middlewareData:o,rects:i,initialPlacement:s,platform:c,elements:u}=t,d=z_(e,t),{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0}=d,y=l(d,nx);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const w=L_(r),_=W_(s),x=L_(s)===s,b=await(null==c.isRTL?void 0:c.isRTL(u.floating)),k=f||(x||!v?[Z_(s)]:function(e){const t=Z_(e);return[Y_(e),t,Y_(t)]}(s)),C="none"!==g;!f&&C&&k.push(...X_(s,v,g,b));const D=[s,...k],A=await sx(t,y),E=[];let j=(null==(a=o.flip)?void 0:a.overflows)||[];if(h&&E.push(A[w]),p){const e=function(e,t,n){void 0===n&&(n=!1);const a=U_(e),r=K_(e),o=q_(r);let i="x"===r?a===(n?"end":"start")?"right":"left":"start"===a?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=Z_(i)),[i,Z_(i)]}(r,i,b);E.push(A[e[0]],A[e[1]])}if(j=[...j,{placement:r,overflows:E}],!E.every(e=>e<=0)){var S,N;const e=((null==(S=o.flip)?void 0:S.index)||0)+1,t=D[e];if(t){if(!("alignment"===p&&_!==W_(t))||j.every(e=>W_(e.placement)!==_||e.overflows[0]>0))return{data:{index:e,overflows:j},reset:{placement:t}}}let n=null==(N=j.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:N.placement;if(!n)switch(m){case"bestFit":{var P;const e=null==(P=j.filter(e=>{if(C){const t=W_(e.placement);return t===_||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:P[0];e&&(n=e);break}case"initialPlacement":n=s}if(r!==n)return{reset:{placement:n}}}return{}}}},ob=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,a;const{placement:r,rects:o,platform:i,elements:s}=t,c=z_(e,t),{apply:u=()=>{}}=c,d=l(c,ox),h=await sx(t,d),f=L_(r),m=U_(r),g="y"===W_(r),{width:v,height:y}=o.floating;let w,_;"top"===f||"bottom"===f?(w=f,_=m===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(_=f,w="end"===m?"top":"bottom");const x=y-h.top-h.bottom,b=v-h.left-h.right,k=P_(y-h[w],x),C=P_(v-h[_],b),D=!t.middlewareData.shift;let A=k,E=C;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(E=b),null!=(a=t.middlewareData.shift)&&a.enabled.y&&(A=x),D&&!m){const e=T_(h.left,0),t=T_(h.right,0),n=T_(h.top,0),a=T_(h.bottom,0);g?E=v-2*(0!==e||0!==t?e+t:T_(h.left,h.right)):A=y-2*(0!==n||0!==a?n+a:T_(h.top,h.bottom))}await u(p(p({},t),{},{availableWidth:E,availableHeight:A}));const j=await i.getDimensions(s.floating);return v!==j.width||y!==j.height?{reset:{rects:!0}}:{}}}},ib=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,a=z_(e,t),{strategy:r="referenceHidden"}=a,o=l(a,ax);switch(r){case"referenceHidden":{const e=lx(await sx(t,p(p({},o),{},{elementContext:"reference"})),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:cx(e)}}}case"escaped":{const e=lx(await sx(t,p(p({},o),{},{altBoundary:!0})),n.floating);return{data:{escapedOffsets:e,escaped:cx(e)}}}default:return{}}}}},sb=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:r,rects:o,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=z_(e,t)||{};if(null==c)return{};const d=ex(u),h={x:n,y:a},f=K_(r),m=q_(f),g=await i.getDimensions(c),v="y"===f,y=v?"top":"left",w=v?"bottom":"right",_=v?"clientHeight":"clientWidth",x=o.reference[m]+o.reference[f]-h[f]-o.floating[m],b=h[f]-o.reference[f],k=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let C=k?k[_]:0;C&&await(null==i.isElement?void 0:i.isElement(k))||(C=s.floating[_]||o.floating[m]);const D=x/2-b/2,A=C/2-g[m]/2-1,E=P_(d[y],A),j=P_(d[w],A),S=E,N=C-g[m]-j,P=C/2-g[m]/2+D,T=B_(S,P,N),F=!l.arrow&&null!=U_(r)&&P!==T&&o.reference[m]/2-(P<S?E:j)-g[m]/2<0,O=F?P<S?P-S:P-N:0;return{[f]:h[f]+O,data:p({[f]:T,centerOffset:P-T-O},F&&{alignmentOffset:O}),reset:F}}}),lb=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:a,placement:r,rects:o,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=z_(e,t),u={x:n,y:a},d=W_(r),h=V_(d);let f=u[h],m=u[d];const g=z_(s,t),v="number"===typeof g?{mainAxis:g,crossAxis:0}:p({mainAxis:0,crossAxis:0},g);if(l){const e="y"===h?"height":"width",t=o.reference[h]-o.floating[e]+v.mainAxis,n=o.reference[h]+o.reference[e]-v.mainAxis;f<t?f=t:f>n&&(f=n)}if(c){var y,w;const e="y"===h?"width":"height",t=ux.has(L_(r)),n=o.reference[d]-o.floating[e]+(t&&(null==(y=i.offset)?void 0:y[d])||0)+(t?0:v.crossAxis),a=o.reference[d]+o.reference[e]+(t?0:(null==(w=i.offset)?void 0:w[d])||0)-(t?v.crossAxis:0);m<n?m=n:m>a&&(m=a)}return{[h]:f,[d]:m}}}}
2,cb=(e,t,n)=>{const a=new Map,r=p({platform:Zx},n),o=p(p({},r.platform),{},{_c:a});return(async(e,t,n)=>{const{placement:a="bottom",strategy:r="absolute",middleware:o=[],platform:i}=n,s=o.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=ix(c,a,l),h=a,f={},m=0;for(let g=0;g<s.length;g++){const{name:n,fn:o}=s[g],{x:v,y:y,data:w,reset:_}=await o({x:u,y:d,initialPlacement:a,placement:h,strategy:r,middlewareData:f,rects:c,platform:i,elements:{reference:e,floating:t}});u=null!=v?v:u,d=null!=y?y:d,f=p(p({},f),{},{[n]:p(p({},f[n]),w)}),_&&m<=50&&(m++,"object"===typeof _&&(_.placement&&(h=_.placement),_.rects&&(c=!0===_.rects?await i.getElementRects({reference:e,floating:t,strategy:r}):_.rects),({x:u,y:d}=ix(c,h,l))),g=-1)}return{x:u,y:d,placement:h,strategy:r,middlewareData:f}})(e,t,p(p({},r),{},{platform:o}))};var ub="undefined"!==typeof document?o.useLayoutEffect:function(){};function db(e,t){if(e===t)return!0;if(typeof e!==typeof t)return!1;if("function"===typeof e&&e.toString()===t.toString())return!0;let n,a,r;if(e&&t&&"object"===typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(a=n;0!==a--;)if(!db(e[a],t[a]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(a=n;0!==a--;)if(!{}.hasOwnProperty.call(t,r[a]))return!1;for(a=n;0!==a--;){const n=r[a];if(("_owner"!==n||!e.$$typeof)&&!db(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function hb(e){if("undefined"===typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pb(e,t){const n=hb(e);return Math.round(t*n)/n}function fb(e){const t=o.useRef(e);return ub(()=>{t.current=e}),t}const mb=(e,t)=>p(p({},nb(e)),{},{options:[e,t]}),gb=(e,t)=>p(p({},ab(e)),{},{options:[e,t]}),vb=(e,t)=>p(p({},lb(e)),{},{options:[e,t]}),yb=(e,t)=>p(p({},rb(e)),{},{options:[e,t]}),wb=(e,t)=>p(p({},ob(e)),{},{options:[e,t]}),_b=(e,t)=>p(p({},ib(e)),{},{options:[e,t]}),xb=(e,t)=>p(p({},(e=>({name:"arrow",options:e,fn(t){const{element:n,padding:a}="function"===typeof e?e(t):e;return n&&function(e){return{}.hasOwnProperty.call(e,"current")}(n)?null!=n.current?sb({element:n.current,padding:a}).fn(t):{}:n?sb({element:n,padding:a}).fn(t):{}}}))(e)),{},{options:[e,t]}),bb=["children","width","height"];var kb=o.forwardRef((e,t)=>{const{children:n,width:a=10,height:r=5}=e,o=l(e,bb);return(0,_h.jsx)(wp.svg,p(p({},o),{},{ref:t,width:a,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,_h.jsx)("polygon",{points:"0,0 30,0 15,10"})}))});kb.displayName="Arrow";var Cb=kb;function Db(e){const[t,n]=o.useState(void 0);return sp(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const a=t[0];let r,o;if("borderBoxSize"in a){const e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}const Ab=["__scopePopper","virtualRef"],Eb=["__scopePopper","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","onPlaced"],jb=["__scopePopper"];var Sb="Popper",[Nb,Pb]=Lh(Sb),[Tb,Fb]=Nb(Sb),Ob=e=>{const{__scopePopper:t,children:n}=e,[a,r]=o.useState(null);return(0,_h.jsx)(Tb,{scope:t,anchor:a,onAnchorChange:r,children:n})};Ob.displayName=Sb;var Ib="PopperAnchor",Rb=o.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:a}=e,r=l(e,Ab),i=Fb(Ib,n),s=o.useRef(null),c=Gh(t,s),u=o.useRef(null);return o.useEffect(()=>{const e=u.current;u.current=(null===a||void 0===a?void 0:a.current)||s.current,e!==u.current&&i.onAnchorChange(u.current)}),a?null:(0,_h.jsx)(wp.div,p(p({},r),{},{ref:c}))});Rb.displayName=Ib;var Mb="PopperContent",[Bb,zb]=Nb(Mb),Lb=o.forwardRef((e,t)=>{var n,a,r,i,s,c,u,d;const{__scopePopper:h,side:f="bottom",sideOffset:m=0,align:g="center",alignOffset:v=0,arrowPadding:y=0,avoidCollisions:w=!0,collisionBoundary:_=[],collisionPadding:x=0,sticky:b="partial",hideWhenDetached:k=!1,updatePositionStrategy:C="optimized",onPlaced:D}=e,A=l(e,Eb),E=Fb(Mb,h),[j,S]=o.useState(null),N=Gh(t,e=>S(e)),[P,T]=o.useState(null),F=Db(P),O=null!==(n=null===F||void 0===F?void 0:F.width)&&void 0!==n?n:0,I=null!==(a=null===F||void 0===F?void 0:F.height)&&void 0!==a?a:0,R=f+("center"!==g?"-"+g:""),M="number"===typeof x?x:p({top:0,right:0,bottom:0,left:0},x),B=Array.isArray(_)?_:[_],z=B.length>0,L={padding:M,boundary:B.filter(Hb),altBoundary:z},{refs:U,floatingStyles:V,placement:q,isPositioned:H,middlewareData:W}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:a=[],platform:r,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}
2=e,[d,h]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=o.useState(a);db(f,a)||m(a);const[g,v]=o.useState(null),[y,w]=o.useState(null),_=o.useCallback(e=>{e!==C.current&&(C.current=e,v(e))},[]),x=o.useCallback(e=>{e!==D.current&&(D.current=e,w(e))},[]),b=i||g,k=s||y,C=o.useRef(null),D=o.useRef(null),A=o.useRef(d),E=null!=c,j=fb(c),S=fb(r),N=fb(u),P=o.useCallback(()=>{if(!C.current||!D.current)return;const e={placement:t,strategy:n,middleware:f};S.current&&(e.platform=S.current),cb(C.current,D.current,e).then(e=>{const t=p(p({},e),{},{isPositioned:!1!==N.current});T.current&&!db(A.current,t)&&(A.current=t,dp.flushSync(()=>{h(t)}))})},[f,t,n,S,N]);ub(()=>{!1===u&&A.current.isPositioned&&(A.current.isPositioned=!1,h(e=>p(p({},e),{},{isPositioned:!1})))},[u]);const T=o.useRef(!1);ub(()=>(T.current=!0,()=>{T.current=!1}),[]),ub(()=>{if(b&&(C.current=b),k&&(D.current=k),b&&k){if(j.current)return j.current(b,k,P);P()}},[b,k,P,j,E]);const F=o.useMemo(()=>({reference:C,floating:D,setReference:_,setFloating:x}),[_,x]),O=o.useMemo(()=>({reference:b,floating:k}),[b,k]),I=o.useMemo(()=>{const e={position:n,left:0,top:0};if(!O.floating)return e;const t=pb(O.floating,d.x),a=pb(O.floating,d.y);return l?p(p({},e),{},{transform:"translate("+t+"px, "+a+"px)"},hb(O.floating)>=1.5&&{willChange:"transform"}):{position:n,left:t,top:a}},[n,l,O.floating,d.x,d.y]);return o.useMemo(()=>p(p({},d),{},{update:P,refs:F,elements:O,floatingStyles:I}),[d,P,F,O,I])}({strategy:"fixed",placement:R,whileElementsMounted:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return tb(...t,{animationFrame:"always"===C})},elements:{reference:E.anchor},middleware:[mb({mainAxis:m+I,alignmentAxis:v}),w&&gb(p({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?vb():void 0},L)),w&&yb(p({},L)),wb(p(p({},L),{},{apply:e=>{let{elements:t,rects:n,availableWidth:a,availableHeight:r}=e;const{width:o,height:i}=n.reference,s=t.floating.style;s.setProperty("--radix-popper-available-width","".concat(a,"px")),s.setProperty("--radix-popper-available-height","".concat(r,"px")),s.setProperty("--radix-popper-anchor-width","".concat(o,"px")),s.setProperty("--radix-popper-anchor-height","".concat(i,"px"))}})),P&&xb({element:P,padding:y}),Wb({arrowWidth:O,arrowHeight:I}),k&&_b(p({strategy:"referenceHidden"},L))]}),[K,Y]=Kb(q),G=xp(D);sp(()=>{H&&(null===G||void 0===G||G())},[H,G]);const J=null===(r=W.arrow)||void 0===r?void 0:r.x,$=null===(i=W.arrow)||void 0===i?void 0:i.y,Q=0!==(null===(s=W.arrow)||void 0===s?void 0:s.centerOffset),[X,Z]=o.useState();return sp(()=>{j&&Z(window.getComputedStyle(j).zIndex)},[j]),(0,_h.jsx)("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:p(p({},V),{},{transform:H?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:X,"--radix-popper-transform-origin":[null===(c=W.transformOrigin)||void 0===c?void 0:c.x,null===(u=W.transformOrigin)||void 0===u?void 0:u.y].join(" ")},(null===(d=W.hide)||void 0===d?void 0:d.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}),dir:e.dir,children:(0,_h.jsx)(Bb,{scope:h,placedSide:K,onArrowChange:T,arrowX:J,arrowY:$,shouldHideArrow:Q,children:(0,_h.jsx)(wp.div,p(p({"data-side":K,"data-align":Y},A),{},{ref:N,style:p(p({},A.style),{},{animation:H?void 0:"none"})}))})})});Lb.displayName=Mb;var Ub="PopperArrow",Vb={top:"bottom",right:"left",bottom:"top",left:"right"},qb=o.forwardRef(function(e,t){const{__scopePopper:n}=e,a=l(e,jb),r=zb(Ub,n),o=Vb[r.placedSide];return(0,_h.jsx)("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:(0,_h.jsx)(Cb,p(p({},a),{},{ref:t,style:p(p({},a.style),{},{display:"block"})}))})});function Hb(e){return null!==e}qb.displayName=Ub;var Wb=e=>({name:"transformOrigin",options:e,fn(t){var n,a,r,o,i;const{placement:s,rects:l,middlewareData:c}=t,u=0!==(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset),d=u?0:e.arrowWidth,h=u?0:e.arrowHeight,[p,f]=Kb(s),m={start:"0%",center:"50%",end:"100%"}[f],g=(null!==(a=null===(r=c.arrow)||void 0===r?void 0:r.x)&&void 0!==a?a:0)+d/2,v=(null!==(o=null===(i=c.arrow)||void 0===i?void 0:i.y)&&void 0!==o?o:0)+h/2;let y="",w="";return"bottom"===p?(y=u?m:"".concat(g,"px"),w="".concat(-h,"px")):"top"===p?(y=u?m:"".concat(g,"px"),w="".concat(l.floating.height+h,"px")):"right"===p?(y="".concat(-h,"px"),w=u?m:"".concat(v,"px")):"left"===p&&(y="".concat(l.floating.width+h,"px"),w=u?m:"".concat(v,"px")),{data:{x:y,y:w}}}});function Kb(e){const[t,n="center"]=e.split("-");return[t,n]}var Yb=Ob,Gb=Rb,Jb=Lb,$b=qb;const Qb=["container"];var Xb=o.forwardRef((e,t)=>
2{var n;const{container:a}=e,r=l(e,Qb),[i,s]=o.useState(!1);sp(()=>s(!0),[]);const c=a||i&&(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body);return c?dp.createPortal((0,_h.jsx)(wp.div,p(p({},r),{},{ref:t})),c):null});Xb.displayName="Portal";var Zb=Symbol("radix.slottable");function ek(e){const t=e=>{let{children:t}=e;return(0,_h.jsx)(_h.Fragment,{children:t})};return t.displayName="".concat(e,".Slottable"),t.__radixId=Zb,t}var tk=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),nk=o.forwardRef((e,t)=>(0,_h.jsx)(wp.span,p(p({},e),{},{ref:t,style:p(p({},tk),e.style)})));nk.displayName="VisuallyHidden";var ak=nk;const rk=["__scopeTooltip"],ok=["forceMount","side"],ik=["__scopeTooltip","children","aria-label","onEscapeKeyDown","onPointerDownOutside"],sk=["__scopeTooltip"];var[lk,ck]=Lh("Tooltip",[Pb]),uk=Pb(),dk="TooltipProvider",hk=700,pk="tooltip.open",[fk,mk]=lk(dk),gk=e=>{const{__scopeTooltip:t,delayDuration:n=hk,skipDelayDuration:a=300,disableHoverableContent:r=!1,children:i}=e,s=o.useRef(!0),l=o.useRef(!1),c=o.useRef(0);return o.useEffect(()=>{const e=c.current;return()=>window.clearTimeout(e)},[]),(0,_h.jsx)(fk,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:o.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:o.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,a)},[a]),isPointerInTransitRef:l,onPointerInTransitChange:o.useCallback(e=>{l.current=e},[]),disableHoverableContent:r,children:i})};gk.displayName=dk;var vk="Tooltip",[yk,wk]=lk(vk),_k=e=>{const{__scopeTooltip:t,children:n,open:a,defaultOpen:r,onOpenChange:i,disableHoverableContent:s,delayDuration:l}=e,c=mk(vk,e.__scopeTooltip),u=uk(t),[d,h]=o.useState(null),f=up(),m=o.useRef(0),g=null!==s&&void 0!==s?s:c.disableHoverableContent,v=null!==l&&void 0!==l?l:c.delayDuration,y=o.useRef(!1),[w,_]=kp({prop:a,defaultProp:null!==r&&void 0!==r&&r,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(pk))):c.onClose(),null===i||void 0===i||i(e)},caller:vk}),x=o.useMemo(()=>w?y.current?"delayed-open":"instant-open":"closed",[w]),b=o.useCallback(()=>{window.clearTimeout(m.current),m.current=0,y.current=!1,_(!0)},[_]),k=o.useCallback(()=>{window.clearTimeout(m.current),m.current=0,_(!1)},[_]),C=o.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{y.current=!0,_(!0),m.current=0},v)},[v,_]);return o.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),(0,_h.jsx)(Yb,p(p({},u),{},{children:(0,_h.jsx)(yk,{scope:t,contentId:f,open:w,stateAttribute:x,trigger:d,onTriggerChange:h,onTriggerEnter:o.useCallback(()=>{c.isOpenDelayedRef.current?C():b()},[c.isOpenDelayedRef,C,b]),onTriggerLeave:o.useCallback(()=>{g?k():(window.clearTimeout(m.current),m.current=0)},[k,g]),onOpen:b,onClose:k,disableHoverableContent:g,children:n})}))};_k.displayName=vk;var xk="TooltipTrigger",bk=o.forwardRef((e,t)=>{const{__scopeTooltip:n}=e,a=l(e,rk),r=wk(xk,n),i=mk(xk,n),s=uk(n),c=Gh(t,o.useRef(null),r.onTriggerChange),u=o.useRef(!1),d=o.useRef(!1),h=o.useCallback(()=>u.current=!1,[]);return o.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),(0,_h.jsx)(Gb,p(p({asChild:!0},s),{},{children:(0,_h.jsx)(wp.button,p(p({"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute},a),{},{ref:c,onPointerMove:Mh(e.onPointerMove,e=>{"touch"!==e.pointerType&&(d.current||i.isPointerInTransitRef.current||(r.onTriggerEnter(),d.current=!0))}),onPointerLeave:Mh(e.onPointerLeave,()=>{r.onTriggerLeave(),d.current=!1}),onPointerDown:Mh(e.onPointerDown,()=>{r.open&&r.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Mh(e.onFocus,()=>{u.current||r.onOpen()}),onBlur:Mh(e.onBlur,r.onClose),onClick:Mh(e.onClick,r.onClose)}))}))});bk.displayName=xk;var kk="TooltipPortal",[Ck,Dk]=lk(kk,{forceMount:void 0}),Ak=e=>{const{__scopeTooltip:t,forceMount:n,children:a,container:r}=e,o=wk(kk,t);return(0,_h.jsx)(Ck,{scope:t,forceMount:n,children:(0,_h.jsx)(Kp,{present:n||o.open,children:(0,_h.jsx)(Xb,{asChild:!0,container:r,children:a})})})};Ak.displayName=kk;var Ek="TooltipContent",jk=o.forwardRef((e,t)=>
2{const n=Dk(Ek,e.__scopeTooltip),{forceMount:a=n.forceMount,side:r="top"}=e,o=l(e,ok),i=wk(Ek,e.__scopeTooltip);return(0,_h.jsx)(Kp,{present:a||i.open,children:i.disableHoverableContent?(0,_h.jsx)(Fk,p(p({side:r},o),{},{ref:t})):(0,_h.jsx)(Sk,p(p({side:r},o),{},{ref:t}))})}),Sk=o.forwardRef((e,t)=>{const n=wk(Ek,e.__scopeTooltip),a=mk(Ek,e.__scopeTooltip),r=o.useRef(null),i=Gh(t,r),[s,l]=o.useState(null),{trigger:c,onClose:u}=n,d=r.current,{onPointerInTransitChange:h}=a,f=o.useCallback(()=>{l(null),h(!1)},[h]),m=o.useCallback((e,t)=>{const n=e.currentTarget,a={x:e.clientX,y:e.clientY},r=function(e,t){const n=Math.abs(t.top-e.y),a=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,a,r,o)){case o:return"left";case r:return"right";case n:return"top";case a:return"bottom";default:throw new Error("unreachable")}}(a,n.getBoundingClientRect()),o=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;const a=[];switch(t){case"top":a.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":a.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":a.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":a.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return a}(a,r),i=function(e){const t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),function(e){if(e.length<=1)return e.slice();const t=[];for(let a=0;a<e.length;a++){const n=e[a];for(;t.length>=2;){const e=t[t.length-1],a=t[t.length-2];if(!((e.x-a.x)*(n.y-a.y)>=(e.y-a.y)*(n.x-a.x)))break;t.pop()}t.push(n)}t.pop();const n=[];for(let a=e.length-1;a>=0;a--){const t=e[a];for(;n.length>=2;){const e=n[n.length-1],a=n[n.length-2];if(!((e.x-a.x)*(t.y-a.y)>=(e.y-a.y)*(t.x-a.x)))break;n.pop()}n.push(t)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...o,...function(e){const{top:t,right:n,bottom:a,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:a},{x:r,y:a}]}(t.getBoundingClientRect())]);l(i),h(!0)},[h]);return o.useEffect(()=>()=>f(),[f]),o.useEffect(()=>{if(c&&d){const e=e=>m(e,d),t=e=>m(e,c);return c.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}},[c,d,m,f]),o.useEffect(()=>{if(s){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},a=(null===c||void 0===c?void 0:c.contains(t))||(null===d||void 0===d?void 0:d.contains(t)),r=!function(e,t){const{x:n,y:a}=e;let r=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const e=t[o],s=t[i],l=e.x,c=e.y,u=s.x,d=s.y;c>a!==d>a&&n<(u-l)*(a-c)/(d-c)+l&&(r=!r)}return r}(n,s);a?f():r&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,d,s,u,f]),(0,_h.jsx)(Fk,p(p({},e),{},{ref:i}))}),[Nk,Pk]=lk(vk,{isInside:!1}),Tk=ek("TooltipContent"),Fk=o.forwardRef((e,t)=>{const{__scopeTooltip:n,children:a,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:s}=e,c=l(e,ik),u=wk(Ek,n),d=uk(n),{onClose:h}=u;return o.useEffect(()=>(document.addEventListener(pk,h),()=>document.removeEventListener(pk,h)),[h]),o.useEffect(()=>{if(u.trigger){const e=e=>{const t=e.target;null!==t&&void 0!==t&&t.contains(u.trigger)&&h()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[u.trigger,h]),(0,_h.jsx)(A_,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:h,children:(0,_h.jsxs)(Jb,p(p(p({"data-state":u.stateAttribute},d),c),{},{ref:t,style:p(p({},c.style),{"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}),children:[(0,_h.jsx)(Tk,{children:a}),(0,_h.jsx)(Nk,{scope:n,isInside:!0,children:(0,_h.jsx)(ak,{id:u.contentId,role:"tooltip",children:r||a})})]}))})});jk.displayName=Ek;var Ok="TooltipArrow",Ik=o.forwardRef((e,t)=>
2{const{__scopeTooltip:n}=e,a=l(e,sk),r=uk(n);return Pk(Ok,n).isInside?null:(0,_h.jsx)($b,p(p(p({},r),a),{},{ref:t}))});Ik.displayName=Ok;var Rk=gk,Mk=_k,Bk=bk,zk=jk;const Lk=rv("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),Uk=rv("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),Vk=["className","sideOffset"];var qk=Ah((e,t)=>(0,_h.jsx)(Rk,p({delayDuration:0},e)));qk.displayName=Rk.displayName;var Hk=Mk,Wk=Bk,Kk=Ah((e,t)=>{let{className:n,sideOffset:a=4}=e,r=l(e,Vk);return(0,_h.jsx)(zk,p({ref:t,sideOffset:a,className:wh("stack-scope z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n)},r))});function Yk(e){const t=wh("w-4 h-4 text-muted-foreground",e.inline&&"inline"),n="warning"===e.type?(0,_h.jsx)(Lk,{className:t}):"info"===e.type?(0,_h.jsx)(Uk,{className:t}):null,a=(0,_h.jsxs)(_h.Fragment,{children:[n,e.children]});return(0,_h.jsxs)(Hk,{open:!e.disabled&&void 0,children:[(0,_h.jsx)(Wk,{asChild:!0,children:e.inline?(0,_h.jsx)("span",{className:wh(e.className),children:a}):(0,_h.jsx)("div",{className:wh("flex items-center gap-1",e.className),children:a})}),e.tooltip&&(0,_h.jsx)(Ak,{children:(0,_h.jsx)(Kk,{children:(0,_h.jsx)("div",{className:"max-w-60 text-center text-wrap whitespace-pre-wrap",children:e.tooltip})})})]})}Kk.displayName=zk.displayName;const Gk={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],ol
2ive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};for(const n in Gk)Object.freeze(Gk[n]);const Jk=Object.freeze(Gk),$k=Object.create(null);for(const n in Jk)Object.hasOwn(Jk,n)&&($k[Jk[n]]=n);const Qk={to:{},get:{}};function Xk(e,t,n){return Math.min(Math.max(t,e),n)}function Zk(e){const t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}Qk.get=function(e){let t,n;switch(e.slice(0,3).toLowerCase()){case"hsl":t=Qk.get.hsl(e),n="hsl";break;case"hwb":t=Qk.get.hwb(e),n="hwb";break;default:t=Qk.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},Qk.get.rgb=function(e){if(!e)return null;let t,n,a,r=[0,0,0,1];if(t=e.match(/^#([a-f\d]{6})([a-f\d]{2})?$/i)){for(a=t[2],t=t[1],n=0;n<3;n++){const e=2*n;r[n]=Number.parseInt(t.slice(e,e+2),16)}a&&(r[3]=Number.parseInt(a,16)/255)}else if(t=e.match(/^#([a-f\d]{3,4})$/i)){for(t=t[1],a=t[3],n=0;n<3;n++)r[n]=Number.parseInt(t[n]+t[n],16);a&&(r[3]=Number.parseInt(a+a,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)\s*(?:[\s,|/]\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(%?)\s*)?\)$/i)){for(n=0;n<3;n++)r[n]=Number.parseFloat(t[n+1]);t[4]&&(r[3]=t[5]?.01*Number.parseFloat(t[4]):Number.parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/i)))return(t=e.toLowerCase().match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:Object.hasOwn(Jk,t[1])?(r=Jk[t[1]].slice(),r[3]=1,r):null:null;for(n=0;n<3;n++)r[n]=Math.round(2.55*Number.parseFloat(t[n+1]));t[4]&&(r[3]=t[5]?.01*Number.parseFloat(t[4]):Number.parseFloat(t[4]))}for(n=0;n<3;n++)r[n]=Xk(r[n],0,255);return r[3]=Xk(r[3],0,1),r},Qk.get.hsl=function(e){if(!e)return null;const t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i);if(t){const e=Number.parseFloat(t[4]);return[(Number.parseFloat(t[1])%360+360)%360,Xk(Number.parseFloat(t[2]),0,100),Xk(Number.parseFloat(t[3]),0,100),Xk(Number.isNaN(e)?1:e,0,1)]}return null},Qk.get.hwb=function(e){if(!e)return null;const t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*[\s,]\s*([+-]?[\d.]+)%\s*[\s,]\s*([+-]?[\d.]+)%\s*(?:[\s,]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i);if(t){const e=Number.parseFloat(t[4]);return[(Number.parseFloat(t[1])%360+360)%360,Xk(Number.parseFloat(t[2]),0,100),Xk(Number.parseFloat(t[3]),0,100),Xk(Number.isNaN(e)?1:e,0,1)]}return null},Qk.to.hex=function(){return"#"+Zk(arguments.length<=0?void 0:arguments[0])+Zk(arguments.length<=1?void 0:arguments[1])+Zk(arguments.length<=2?void 0:arguments[2])+((arguments.length<=3?void 0:arguments[3])<1?Zk(Math.round(255*(arguments.length<=3?void 0:arguments[3]))):"")},Qk.to.rgb=function(){return arguments.length<4||1===(arguments.length<=3?void 0:arguments[3])?"rgb("+Math.round(arguments.length<=0?void 0:arguments[0])+", "+Math.round(arguments.length<=1?void 0:arguments[1])+", "+Math.round(arguments.length<=2?void 0:arguments[2])+")":"rgba("+Math.round(arguments.length<=0?void 0:arguments[0])+", "+
2Math.round(arguments.length<=1?void 0:arguments[1])+", "+Math.round(arguments.length<=2?void 0:arguments[2])+", "+(arguments.length<=3?void 0:arguments[3])+")"},Qk.to.rgb.percent=function(){const e=Math.round((arguments.length<=0?void 0:arguments[0])/255*100),t=Math.round((arguments.length<=1?void 0:arguments[1])/255*100),n=Math.round((arguments.length<=2?void 0:arguments[2])/255*100);return arguments.length<4||1===(arguments.length<=3?void 0:arguments[3])?"rgb("+e+"%, "+t+"%, "+n+"%)":"rgba("+e+"%, "+t+"%, "+n+"%, "+(arguments.length<=3?void 0:arguments[3])+")"},Qk.to.hsl=function(){return arguments.length<4||1===(arguments.length<=3?void 0:arguments[3])?"hsl("+(arguments.length<=0?void 0:arguments[0])+", "+(arguments.length<=1?void 0:arguments[1])+"%, "+(arguments.length<=2?void 0:arguments[2])+"%)":"hsla("+(arguments.length<=0?void 0:arguments[0])+", "+(arguments.length<=1?void 0:arguments[1])+"%, "+(arguments.length<=2?void 0:arguments[2])+"%, "+(arguments.length<=3?void 0:arguments[3])+")"},Qk.to.hwb=function(){let e="";return arguments.length>=4&&1!==(arguments.length<=3?void 0:arguments[3])&&(e=", "+(arguments.length<=3?void 0:arguments[3])),"hwb("+(arguments.length<=0?void 0:arguments[0])+", "+(arguments.length<=1?void 0:arguments[1])+"%, "+(arguments.length<=2?void 0:arguments[2])+"%"+e+")"},Qk.to.keyword=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $k[t.slice(0,3)]};const eC=Qk,tC={};for(const n of Object.keys(Jk))tC[Jk[n]]=n;const nC={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},aC=nC,rC=(6/29)**3;function oC(e){const t=e>.0031308?1.055*e**(1/2.4)-.055:12.92*e;return Math.min(Math.max(0,t),1)}function iC(e){return e>.04045?((e+.055)/1.055)**2.4:e/12.92}
vendor: 7,106 bytes, line 2
2for(const n of Object.keys(nC)){if(!("channels"in nC[n]))throw new Error("missing channels property: "+n);if(!("labels"in nC[n]))throw new Error("missing channel labels property: "+n);if(nC[n].labels.length!==nC[n].channels)throw new Error("channel and label counts mismatch: "+n);const{channels:e,labels:t}=nC[n];delete nC[n].channels,delete nC[n].labels,Object.defineProperty(nC[n],"channels",{value:e}),Object.defineProperty(nC[n],"labels",{value:t})}function sC(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}function lC(e){const t=function(){const e={},t=Object.keys(aC);for(let{length:n}=t,a=0;a<n;a++)e[t[a]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length>0;){const e=n.pop(),a=Object.keys(aC[e]);for(let{length:r}=a,o=0;o<r;o++){const r=a[o],i=t[r];-1===i.distance&&(i.distance=t[e].distance+1,i.parent=e,n.unshift(r))}}return t}function cC(e,t){return function(n){return t(e(n))}}function uC(e,t){const n=[t[e].parent,e];let a=aC[t[e].parent][e],r=t[e].parent;for(;t[r].parent;)n.unshift(t[r].parent),a=cC(aC[t[r].parent][r],a),r=t[r].parent;return a.conversion=n,a}nC.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,a=e[2]/255,r=Math.min(t,n,a),o=Math.max(t,n,a),i=o-r;let s,l;switch(o){case r:s=0;break;case t:s=(n-a)/i;break;case n:s=2+(a-t)/i;break;case a:s=4+(t-n)/i}s=Math.min(60*s,360),s<0&&(s+=360);const c=(r+o)/2;return l=o===r?0:c<=.5?i/(o+r):i/(2-o-r),[s,100*l,100*c]},nC.rgb.hsv=function(e){let t,n,a,r,o;const i=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(i,s,l),u=c-Math.min(i,s,l),d=function(e){return(c-e)/6/u+.5};if(0===u)r=0,o=0;else{switch(o=u/c,t=d(i),n=d(s),a=d(l),c){case i:r=a-n;break;case s:r=1/3+t-a;break;case l:r=2/3+n-t}r<0?r+=1:r>1&&(r-=1)}return[360*r,100*o,100*c]},nC.rgb.hwb=function(e){const t=e[0],n=e[1];let a=e[2];const r=nC.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(n,a));return a=1-1/255*Math.max(t,Math.max(n,a)),[r,100*o,100*a]},nC.rgb.oklab=function(e){const t=iC(e[0]/255),n=iC(e[1]/255),a=iC(e[2]/255),r=Math.cbrt(.4122214708*t+.5363325363*n+.0514459929*a),o=Math.cbrt(.2119034982*t+.6806995451*n+.1073969566*a),i=Math.cbrt(.0883024619*t+.2817188376*n+.6299787005*a);return[100*(.2104542553*r+.793617785*o-.0040720468*i),100*(1.9779984951*r-2.428592205*o+.4505937099*i),100*(.0259040371*r+.7827717662*o-.808675766*i)]},nC.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,a=e[2]/255,r=Math.min(1-t,1-n,1-a);return[100*((1-t-r)/(1-r)||0),100*((1-n-r)/(1-r)||0),100*((1-a-r)/(1-r)||0),100*r]},nC.rgb.keyword=function(e){const t=tC[e];if(t)return t;let n,a=Number.POSITIVE_INFINITY;for(const r of Object.keys(Jk)){const t=sC(e,Jk[r]);t<a&&(a=t,n=r)}return n},nC.keyword.rgb=function(e){return[...Jk[e]]},nC.rgb.xyz=function(e){const t=iC(e[0]/255),n=iC(e[1]/255),a=iC(e[2]/255);return[100*(.4124564*t+.3575761*n+.1804375*a),100*(.2126729*t+.7151522*n+.072175*a),100*(.0193339*t+.119192*n+.9503041*a)]},nC.rgb.lab=function(e){const t=nC.rgb.xyz(e);let n=t[0],a=t[1],r=t[2];n/=95.047,a/=100,r/=108.883,n=n>rC?n**(1/3):7.787*n+16/116,a=a>rC?a**(1/3):7.787*a+16/116,r=r>rC?r**(1/3):7.787*r+16/116;return[116*a-16,500*(n-a),200*(a-r)]},nC.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,a=e[2]/100;let r,o;if(0===n)return o=255*a,[o,o,o];const i=a<.5?a*(1+n):a+n-a*n,s=2*a-i,l=[0,0,0];for(let c=0;c<3;c++)r=t+1/3*-(c-1),r<0&&r++,r>1&&r--,o=6*r<1?s+6*(i-s)*r:2*r<1?i:3*r<2?s+(i-s)*(2/3-r)*6:s,l[c]=255*o;return l},nC.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,a=e[2]/100,r=n;const o=Math.max(a,.01);a*=2,n*=a<=1?a:2-a,r*=o<=1?o:2-o;return[t,100*(0===a?2*r/(o+r):2*n/(a+n)),100*((a+n)/2)]},nC.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let a=e[2]/100;const r=Math.floor(t)%6,o=t-Math.floor(t),i=255*a*(1-n),s=255*a*(1-n*o),l=255*a*(1-n*(1-o));switch(a*=255,r){case 0:return[a,l,i];case 1:return[s,a,i];case 2:return[i,a,l];case 3:return[i,s,a];case 4:return[l,i,a];case 5:return[a,i,s]}},nC.hsv.hsl=function(e){const t=e[0],n=e[1]/100,a=e[2]/100,r=Math.max(a,.01);let o,i;i=(2-n)*a;const s=(2-n)*r;return o=n*r,o/=s<=1?s:2-s,o=o||0,i/=2,[t,100*o,100*i]},nC.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,a=e[2]/100;const r=n+a;let o;r>1&&(n/=r,a/=r);const i=Math.floor(6*t),s=1-a;o=6*t-i,0!==(1&i)&&(o=1-o);const l=n+o*(s-n);let c,u,d;switch(i){default:case 6:case 0:c=s,u=l,d=n;break;case 1:c=l,u=s,d=n;break;case 2:c=n,u=s,d=l;break;case 3:c=n,u=l,d=s;break;case 4:c=l,u=n,d=s;break;case 5:c=s,u=n,d=l}return[255*c,255*u,255*d]},nC.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,a=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,t*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r)),255*(1-Math.min(1,a*(1-r)+r))]},nC.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,a=e[2]/100;let r,o,i;return r=3.2404542*t+-1.5371385*n+-.4985314*a,o=-.969266*t+1.8760108*n+.041556*a,i=.0556434*t+-.2040259*n+1.0572252*a,r=oC(r),o=oC(o),i=oC(i),[255*r,255*o,255*i]},nC.xyz.lab=function(e){let t=e[0],n=e[1],a=e[2];t/=95.047,n/=100,a/=108.883,t=t>rC?t**(1/3):7.787*t+16/116,n=n>rC?n**(1/3):7.787*n+16/116,a=a>rC?a**(1/3):7.787*a+16/116;return[116*n-16,500*(t-n),200*(n-a)]},nC.xyz.oklab=function(e){const t=e[0]/100,n=e[1]/100,a=e[2]/100,r=Math.cbrt(.8189330101*t+.3618667424*n-.1288597137*a),o=Math.cbrt(.0329845436*t+.9293118715*n+.0361456387*a),i=Math.cbrt(.0482003018*t+.2643662691*n+.633851707*a);return[100*(.2104542553*r+.793617785*o-.0040720468*i),100*(1.9779984951*r-2.428592205*o+.4505937099*i),100*(.0259040371*r+.7827717662*o-.808675766*i)]},nC.oklab.oklch=function(e){return nC.lab.lch(e)},nC.oklab.xyz=function(e){const t=e[0]/100,n=e[1]/100,a=e[2]/100,r=(.999999998*t+.396337792*n+.215803758*a)**3,o=(1.000000008*t-.105561342*n-.063854175*a)**3,i=(1.000000055*t-.089484182*n-1.291485538*a)**3;return[100*(1.227013851*r-.55779998*o+.281256149*i),100*(-.040580178*r+1.11225687*o-.071676679*i),100*(-.076381285*r-.421481978*o+1.58616322*i)]},nC.oklab.rgb=function(e){const t=e[0]/100,n=e[1]/100,a=e[2]/100,r=(t+.3963377774*n+.2158037573*a)**3,o=(t-.1055613458*n-.0638541728*a)**3,i=(t-.0894841775*n-1.291485548*a)**3;return[255*oC(4.0767416621*r-3.3077115913*o+.2309699292*i),255*oC(-1.2684380046*r+2.6097574011*o-.3413193965*i),255*oC(-.0041960863*r-.7034186147*o+1.707614701*i)]},nC.oklch.oklab=function(e){return nC.lch.lab(e)},nC.lab.xyz=function(e){let t,n,a;n=(e[0]+16)/116,t=e[1]/500+n,a=n-e[2]/200;const r=n**3,o=t**3,i=a**3;return n=r>rC?r:(n-16/116)/7.787,t=o>rC?o:(t-16/116)/7.787,a=i>rC?i:(a-16/116)/7.787,t*=95.047,n*=100,a*=108.883,[t,n,a]},nC.lab.lch=function(e){const t=e[0],n=e[1],a=e[2];let r;r=360*Math.atan2(a,n)/2/Math.PI,r<0&&(r+=360);return[t,Math.sqrt(n*n+a*a),r]},nC.lch.lab=function(e){const t=e[0],n=e[1],a=e[2]/360*2*Math.PI;return[t,n*Math.cos(a),n*Math.sin(a)]},nC.rgb.ansi16=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const[n,a,r]=e;let o=null===t?nC.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),0===o)return 30;let i=30+(Math.round(r/255)<<2|Math.round(a/255)<<1|Math.round(n/255));return 2===o&&(i+=60),i},nC.hsv.ansi16=function(e){return nC.rgb.ansi16(nC.hsv.rgb(e),e[2])},nC.rgb.ansi256=function(e){const t=e[0],n=e[1],a=e[2];if(t>>4===n>>4&&n>>4===a>>4)return t<8?16:t>
vendor: 5,576 bytes, line 2
2248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(a/255*5)},nC.ansi16.rgb=function(e){let t=(e=e[0])%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(Math.trunc(e>50)+1);return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},nC.ansi256.rgb=function(e){if((e=e[0])>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},nC.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".slice(t.length)+t},nC.hex.rgb=function(e){const t=e.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=[...n].map(e=>e+e).join(""));const a=Number.parseInt(n,16);return[a>>16&255,a>>8&255,255&a]},nC.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,a=e[2]/255,r=Math.max(Math.max(t,n),a),o=Math.min(Math.min(t,n),a),i=r-o;let s;return s=i<=0?0:r===t?(n-a)/i%6:r===n?2+(a-t)/i:4+(t-n)/i,s/=6,s%=1,[360*s,100*i,100*(i<1?o/(1-i):0)]},nC.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,a=n<.5?2*t*n:2*t*(1-n);let r=0;return a<1&&(r=(n-.5*a)/(1-a)),[e[0],100*a,100*r]},nC.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,a=t*n;let r=0;return a<1&&(r=(n-a)/(1-a)),[e[0],100*a,100*r]},nC.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,a=e[2]/100;if(0===n)return[255*a,255*a,255*a];const r=[0,0,0],o=t%1*6,i=o%1,s=1-i;let l=0;switch(Math.floor(o)){case 0:r[0]=1,r[1]=i,r[2]=0;break;case 1:r[0]=s,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=i;break;case 3:r[0]=0,r[1]=s,r[2]=1;break;case 4:r[0]=i,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=s}return l=(1-n)*a,[255*(n*r[0]+l),255*(n*r[1]+l),255*(n*r[2]+l)]},nC.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let a=0;return n>0&&(a=t/n),[e[0],100*a,100*n]},nC.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let a=0;return n>0&&n<.5?a=t/(2*n):n>=.5&&n<1&&(a=t/(2*(1-n))),[e[0],100*a,100*n]},nC.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},nC.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,a=n-t;let r=0;return a<1&&(r=(n-a)/(1-a)),[e[0],100*a,100*r]},nC.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},nC.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},nC.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},nC.gray.hsl=function(e){return[0,0,e[0]]},nC.gray.hsv=nC.gray.hsl,nC.gray.hwb=function(e){return[0,100,e[0]]},nC.gray.cmyk=function(e){return[0,0,0,e[0]]},nC.gray.lab=function(e){return[e[0],0,0]},nC.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".slice(n.length)+n},nC.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const dC=function(e){const t=lC(e),n={},a=Object.keys(t);for(let{length:r}=a,o=0;o<r;o++){const e=a[o];null!==t[e].parent&&(n[e]=uC(e,t))}return n},hC={},pC=Object.keys(aC);function fC(e){const t=function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];const r=n[0];return void 0===r||null===r?r:(r.length>1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function mC(e){const t=function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];const r=n[0];if(void 0===r||null===r)return r;r.length>1&&(n=r);const o=e(n);if("object"===typeof o)for(let{length:e}=o,i=0;i<e;i++)o[i]=Math.round(o[i]);return o};return"conversion"in e&&(t.conversion=e.conversion),t}for(const n of pC){hC[n]={},Object.defineProperty(hC[n],"channels",{value:aC[n].channels}),Object.defineProperty(hC[n],"labels",{value:aC[n].labels});const e=dC(n),t=Object.keys(e);for(const a of t){const t=e[a];hC[n][a]=mC(t),hC[n][a].raw=fC(t)}}const gC=hC,vC=["keyword","gray","hex"],yC={};for(const n of Object.keys(gC))yC[[...gC[n].labels].sort().join("")]=n;const wC={};function _C(e,t){if(!(this instanceof _C))return new _C(e,t);if(t&&t in vC&&(t=null),t&&!(t in gC))throw new Error("Unknown model: "+t);let n,a;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof _C)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"===typeof e){const t=eC.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,a=gC[this.model].channels,this.color=t.value.slice(0,a),this.valpha="number"===typeof t.value[a]?t.value[a]:1}else if(e.length>0){this.model=t||"rgb",a=gC[this.model].channels;const n=Array.prototype.slice.call(e,0,a);this.color=DC(n,a),this.valpha="number"===typeof e[a]?e[a]:1}else if("number"===typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"===typeof e.alpha?e.alpha:0);const a=t.sort().join("");if(!(a in yC))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=yC[a];const{labels:r}=gC[this.model],o=[];for(n=0;n<r.length;n++)o.push(e[r[n]]);this.color=DC(o)}if(wC[this.model])for(a=gC[this.model].channels,n=0;n<a;n++){const e=wC[this.model][n];e&&(this.color[n]=e(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}_C.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in eC.to?this:this.rgb();t=t.round("number"===typeof e?e:1);const n=1===t.valpha?t.color:[...t.color,this.valpha];return eC.to[t.model](...n)}
2,percentString(e){const t=this.rgb().round("number"===typeof e?e:1),n=1===t.valpha?t.color:[...t.color,this.valpha];return eC.to.rgb.percent(...n)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=gC[this.model],{labels:n}=gC[this.model];for(let a=0;a<t;a++)e[n[a]]=this.color[a];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new _C([...this.color.map(xC(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new _C([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:bC("rgb",0,kC(255)),green:bC("rgb",1,kC(255)),blue:bC("rgb",2,kC(255)),hue:bC(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:bC("hsl",1,kC(100)),lightness:bC("hsl",2,kC(100)),saturationv:bC("hsv",1,kC(100)),value:bC("hsv",2,kC(100)),chroma:bC("hcg",1,kC(100)),gray:bC("hcg",2,kC(100)),white:bC("hwb",1,kC(100)),wblack:bC("hwb",2,kC(100)),cyan:bC("cmyk",0,kC(100)),magenta:bC("cmyk",1,kC(100)),yellow:bC("cmyk",2,kC(100)),black:bC("cmyk",3,kC(100)),x:bC("xyz",0,kC(95.047)),y:bC("xyz",1,kC(100)),z:bC("xyz",2,kC(108.833)),l:bC("lab",0,kC(100)),a:bC("lab",1),b:bC("lab",2),keyword(e){return void 0!==e?new _C(e):gC[this.model].keyword(this.color)},hex(e){return void 0!==e?new _C(e):eC.to.hex(...this.rgb().round().color)},hexa(e){if(void 0!==e)return new _C(e);const t=this.rgb().round().color;let n=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===n.length&&(n="0"+n),eC.to.hex(...t)+n},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[n,a]of e.entries()){const e=a/255;t[n]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return _C.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),a=this.rgb(),r=void 0===t?.5:t,o=2*r-1,i=n.alpha()-a.alpha(),s=((o*i===-1?o:(o+i)/(1+o*i))+1)/2,l=1-s;return _C.rgb(s*n.red()+l*a.red(),s*n.green()+l*a.green(),s*n.blue()+l*a.blue(),n.alpha()*r+a.alpha()*(1-r))}};for(const n of Object.keys(gC)){if(vC.includes(n))continue;const{channels:e}=gC[n];_C.prototype[n]=function(){if(this.model===n)return new _C(this);for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.length>0?new _C(t,n):new _C([...CC(gC[this.model][n].raw(this.color)),this.valpha],n)},_C[n]=function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];let o=a[0];return"number"===typeof o&&(o=DC(a,e)),new _C(o,n)}}function xC(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function bC(e,t,n){e=Array.isArray(e)?e:[e];for(const a of e)(wC[a]||(wC[a]=[]))[t]=n;return e=e[0],function(a){let r;return void 0!==a?(n&&(a=n(a)),r=this[e](),r.color[t]=a,r):(r=this[e]().color[t],n&&(r=n(r)),r)}}function kC(e){return function(t){return Math.max(0,Math.min(e,t))}}function CC(e){return Array.isArray(e)?e:[e]}function DC(e,t){for(let n=0;n<t;n++)"number"!==typeof e[n]&&(e[n]=0);return e}const AC=_C;var EC=22;function jC(e){let{provider:t,type:n,isMock:a=!1}=e;const{t:r}=yw(),i=lg(),s=(0,o.useId)().replaceAll(":","-"),l=function(){const[e,t]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{window.self!==window.top&&t(!0)},[]),e}(),[c,u]=(0,o.useState)(null);let d;switch((0,o.useEffect)(()=>{u(localStorage.getItem("_STACK_AUTH.lastUsed"))},[]),t){case"google":d={backgroundColor:"#fff",textColor:"#000",
2name:"Google",border:"1px solid #ddd",icon:(0,_h.jsx)(l_,{iconSize:EC})};break;case"github":d={backgroundColor:"#111",textColor:"#fff",border:"1px solid #333",name:"GitHub",icon:(0,_h.jsx)(u_,{iconSize:EC})};break;case"facebook":d={backgroundColor:"#1877F2",textColor:"#fff",name:"Facebook",icon:(0,_h.jsx)(c_,{iconSize:EC})};break;case"microsoft":d={backgroundColor:"#2f2f2f",textColor:"#fff",name:"Microsoft",icon:(0,_h.jsx)(d_,{iconSize:EC})};break;case"spotify":d={backgroundColor:"#1DB954",textColor:"#fff",name:"Spotify",icon:(0,_h.jsx)(h_,{iconSize:EC})};break;case"discord":d={backgroundColor:"#5865F2",textColor:"#fff",name:"Discord",icon:(0,_h.jsx)(p_,{iconSize:EC})};break;case"gitlab":d={backgroundColor:"#111",textColor:"#fff",border:"1px solid #333",name:"Gitlab",icon:(0,_h.jsx)(f_,{iconSize:EC})};break;case"apple":d={backgroundColor:"#000",textColor:"#fff",border:"1px solid #333",name:"Apple",icon:(0,_h.jsx)(v_,{iconSize:EC})};break;case"bitbucket":d={backgroundColor:"#fff",textColor:"#000",border:"1px solid #ddd",name:"Bitbucket",icon:(0,_h.jsx)(m_,{iconSize:EC})};break;
2case"linkedin":d={backgroundColor:"#0073b1",textColor:"#fff",name:"LinkedIn",icon:(0,_h.jsx)(g_,{iconSize:EC})};break;case"x":d={backgroundColor:"#000",textColor:"#fff",name:"X",icon:(0,_h.jsx)(y_,{iconSize:EC})};break;case"twitch":d={backgroundColor:"#6441a5",textColor:"#fff",name:"Twitch",icon:(0,_h.jsx)(w_,{iconSize:EC})};break;default:d={name:t,icon:null}}const h="\n    .stack-oauth-button-".concat(s," {\n      background-color: ").concat(d.backgroundColor," !important;\n      color: ").concat(d.textColor," !important;\n      border: ").concat(d.border," !important;\n    }\n    .stack-oauth-button-").concat(s,":hover {\n      background-color: ").concat(((e,t)=>(e.isLight()&&(t=-t),e.hsl(e.hue(),e.saturationl(),e.lightness()+t).toString()))(AC(d.backgroundColor),10)," !important;\n    }\n  ");return(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsx)("style",{children:h}),(0,_h.jsx)(Yk,{disabled:!l,tooltip:l?"This auth provider is not supported in an iframe for security reasons.":void 0,className:"stack-scope w-full inline-flex",children:(0,_h.jsxs)(Uv,{onClick:async()=>{localStorage.setItem("_STACK_AUTH.lastUsed",t),await i.signInWithOAuth(t)},className:"stack-oauth-button-".concat(s," stack-scope relative w-full"),disabled:l,children:[!a&&c===t&&(0,_h.jsx)("span",{className:"absolute -top-2 -right-2 bg-blue-500 text-white text-xs px-2 py-1 rounded-md",children:"last"}),(0,_h.jsxs)("div",{className:"flex items-center w-full gap-4",children:[d.icon,(0,_h.jsx)("span",{className:"flex-1",children:r("sign-up"===n?"Sign up with {provider}":"Sign in with {provider}",{provider:d.name})})]})]})})]})}function SC(e){let{type:t,mockProject:n}=e;const a=lg(),r=n||a.useProject();return(0,_h.jsx)("div",{className:"gap-4 flex flex-col items-stretch stack-scope",children:r.config.oauthProviders.map(e=>(0,_h.jsx)(jC,{provider:e.id,type:t,isMock:!!n},e.id))})}const NC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),PC=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>Boolean(e)&&n.indexOf(e)===t).join(" ")};var TC={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const FC=["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"],OC=(0,o.forwardRef)((e,t)=>{let{color:n="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:c,iconNode:u}=e,d=l(e,FC);return(0,o.createElement)("svg",p(p({ref:t},TC),{},{width:a,height:a,stroke:n,strokeWidth:i?24*Number(r)/Number(a):r,className:PC("lucide",s)},d),[...u.map(e=>{let[t,n]=e;return(0,o.createElement)(t,n)}),...Array.isArray(c)?c:[c]])}),IC=["className"],RC=(e,t)=>{const n=(0,o.forwardRef)((n,a)=>{let{className:r}=n,i=l(n,IC);return(0,o.createElement)(OC,p({ref:a,iconNode:t,className:PC("lucide-".concat(NC(e)),r)},i))});return n.displayName="".concat(e),n},MC=RC("KeyRound",[["path",{d:"M2 18v3c0 .6.4 1 1 1h4v-3h3v-3h2l1.4-1.4a6.5 6.5 0 1 0-4-4Z",key:"167ctg"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);function BC(e){let{type:t}=e;const{t:n}=yw(),a=lg(),r=(0,o.useId)().replaceAll(":","-");return(0,_h.jsx)(_h.Fragment,{children:(0,_h.jsx)(Uv,{onClick:async()=>{await a.signInWithPasskey()},className:"stack-oauth-button-".concat(r," stack-scope"),children:(0,_h.jsxs)("div",{className:"flex items-center w-full gap-4",children:[(0,_h.jsx)(MC,{}),(0,_h.jsx)("span",{className:"flex-1",children:n("sign-up"===t?"Sign up with Passkey":"Sign in with Passkey")})]})})})}function zC(e){return(0,_h.jsx)(o.Suspense,{fallback:(0,_h.jsx)(LC,p({},e)),children:(0,_h.jsx)(UC,p({},e))})}function LC(e){return(0,_h.jsx)(Aw,{fullPage:!!e.fullPage,children:(0,_h.jsx)("div",{className:"stack-scope flex flex-col items-stretch",style:{maxWidth:"380px",flexBasis:"380px",padding:e.fullPage?"1rem":0},children:(0,_h.jsxs)("div",{className:"text-center mb-6 flex flex-col",children:[(0,_h.jsx)(bh,{className:"h-9 w-2/3 self-center"}),(0,_h.jsx)(bh,{className:"h-3 w-16 mt-8"}),(0,_h.jsx)(bh,{className:"h-9 w-full mt-1"}),(0,_h.jsx)(bh,{className:"h-3 w-24 mt-2"}),(0,_h.jsx)(bh,{className:"h-9 w-full mt-1"}),(0,_h.jsx)(bh,{className:"h-9 w-full mt-6"})]})})})}function UC(e){const t=lg(),n=sg(),a=t.useProject(),r=e.mockProject||a,{t:i}=yw();if((0,o.useEffect)(()=>{e.automaticRedirect&&n&&!e.mockProject&&rd("sign-in"===e.type?t.redirectToAfterSignIn({replace:!0}):t.redirectToAfterSignUp({replace:!0}))},[n,e.mockProject,t,e.automaticRedirect]),n&&!e.mockProject&&!e.automaticRedirect)return(0,_h.jsx)(s_,{type:"signedIn",fullPage:e.fullPage});if("sign-up"===e.type&&!r.config.signUpEnabled)return(0,_h.jsx)(s_,{type:"signUpDisabled",fullPage:e.fullPage});const s=r.config.oauthProviders.length>0,l=!0===r.config.passkeyEnabled&&"sign-in"===e.type,c=(r.config.credentialEnabled||r.config.magicLinkEnabled)&&(s||l);return(0,_h.jsx)(Aw,{fullPage:!!e.fullPage,children:(0,_h.jsxs)("div",{className:"stack-scope flex flex-col items-stretch",style:{maxWidth:"380px",flexBasis:"380px",padding:e.fullPage?"1rem":0},children:[(0,_h.jsxs)("div",{className:"text-center mb-6",children:[(0,_h.jsx)(Rh,{type:"h2",children:"sign-in"===e.type?i("Sign in to your account"):i("Create a new account")}
2),"sign-in"===e.type?r.config.signUpEnabled&&(0,_h.jsxs)(Rh,{children:[i("Don't have an account?")," ",(0,_h.jsx)(xw,{href:t.urls.signUp,onClick:e=>{rd(t.redirectToSignUp()),e.preventDefault()},children:i("Sign up")})]}):(0,_h.jsxs)(Rh,{children:[i("Already have an account?")," ",(0,_h.jsx)(xw,{href:t.urls.signIn,onClick:e=>{rd(t.redirectToSignIn()),e.preventDefault()},children:i("Sign in")})]})]}),(s||l)&&(0,_h.jsxs)("div",{className:"gap-4 flex flex-col items-stretch stack-scope",children:[s&&(0,_h.jsx)(SC,{type:e.type,mockProject:e.mockProject}),l&&(0,_h.jsx)(BC,{type:e.type})]}),c&&(0,_h.jsx)(Rw,{text:i("Or continue with")}),r.config.credentialEnabled&&r.config.magicLinkEnabled?(0,_h.jsxs)(xf,{defaultValue:e.firstTab||"magic-link",children:[(0,_h.jsxs)(bf,{className:wh("w-full mb-2",{"flex-row-reverse":"password"===e.firstTab}),children:[(0,_h.jsx)(kf,{value:"magic-link",className:"flex-1",children:i("Email")}),(0,_h.jsx)(kf,{value:"password",className:"flex-1",children:i("Email & Password")})]}),(0,_h.jsx)(Cf,{value:"magic-link",children:(0,_h.jsx)(r_,{})}),(0,_h.jsx)(Cf,{value:"password",children:"sign-up"===e.type?(0,_h.jsx)(Cw,{noPasswordRepeat:e.noPasswordRepeat}):(0,_h.jsx)(bw,{})})]}):r.config.credentialEnabled?"sign-up"===e.type?(0,_h.jsx)(Cw,{noPasswordRepeat:e.noPasswordRepeat}):(0,_h.jsx)(bw,{}):r.config.magicLinkEnabled?(0,_h.jsx)(r_,{}):s||l?null:(0,_h.jsx)(Rh,{variant:"destructive",className:"text-center",children:i("No authentication method enabled.")}),e.extraInfo&&(0,_h.jsx)("div",{className:wh("flex flex-col items-center text-center text-sm text-gray-500",{"mt-2":r.config.credentialEnabled||r.config.magicLinkEnabled,"mt-6":!(r.config.credentialEnabled||r.config.magicLinkEnabled)}),children:(0,_h.jsx)("div",{children:e.extraInfo})})]})})}function VC(e){return(0,_h.jsx)(zC,{fullPage:!!e.fullPage,type:"sign-in",automaticRedirect:!!e.automaticRedirect,extraInfo:e.extraInfo,firstTab:e.firstTab,mockProject:e.mockProject})}function qC(e){return(0,_h.jsx)(zC,{fullPage:!!e.fullPage,type:"sign-up",automaticRedirect:!!e.automaticRedirect,noPasswordRepeat:e.noPasswordRepeat,extraInfo:e.extraInfo,firstTab:e.firstTab})}const HC=RC("Contact",[["path",{d:"M17 18a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2",key:"1mghuy"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["circle",{cx:"12",cy:"10",r:"2",key:"1yojzk"}],["line",{x1:"8",x2:"8",y1:"2",y2:"4",key:"1ff9gb"}],["line",{x1:"16",x2:"16",y1:"2",y2:"4",key:"1ufoma"}]]),WC=RC("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),KC=RC("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]),YC=RC("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]),GC=RC("Key",[["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["path",{d:"m15.5 7.5 3 3L22 7l-3-3",key:"1rn1fs"}]]),JC=RC("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),$C=RC("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]),QC=RC("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);const XC=RC("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
2],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function ZC(e){const t=(Sh("useHash"),(0,o.useSyncExternalStore)(e=>{const t=setInterval(()=>e(),10);return()=>clearInterval(t)},()=>window.location.hash.substring(1))),n=e.items.findIndex(e=>e.id&&e.id===t);return(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsx)("div",{className:wh("hidden sm:flex stack-scope h-full",e.className),children:(0,_h.jsx)(tD,{items:e.items,title:e.title,selectedIndex:n})}),(0,_h.jsx)("div",{className:wh("sm:hidden stack-scope h-full",e.className),children:(0,_h.jsx)(nD,{items:e.items,title:e.title,selectedIndex:n})})]})}function eD(e){const t=lg().useNavigate(),n=-1===e.selectedIndex?0:e.selectedIndex;return e.items.map((e,a)=>"item"===e.type?(0,_h.jsxs)(Uv,{variant:"ghost",size:"sm",className:wh(n===a&&"sm:bg-muted","justify-start text-md text-zinc-800 dark:text-zinc-300 px-2 text-left"),onClick:()=>{e.id&&t("#"+e.id)},children:[e.icon,e.title]},a):(0,_h.jsx)(Rh,{children:e.title},a))}function tD(e){const t=e.items[-1===e.selectedIndex?0:e.selectedIndex];return(0,_h.jsxs)("div",{className:"stack-scope flex w-full h-full max-w-full relative",children:[(0,_h.jsxs)("div",{className:"flex max-w-[200px] min-w-[200px] border-r flex-col items-stretch gap-2 p-2 overflow-y-auto",children:[e.title&&(0,_h.jsx)("div",{className:"mb-2 ml-2",children:(0,_h.jsx)(Rh,{type:"h2",className:"text-lg font-semibold text-zinc-800 dark:text-zinc-300",children:e.title})}),(0,_h.jsx)(eD,{items:e.items,selectedIndex:e.selectedIndex})]}),(0,_h.jsx)("div",{className:"flex-1 w-0 flex justify-center gap-4 py-2 px-4",children:(0,_h.jsxs)("div",{className:"flex flex-col max-w-[800px] w-[800px]",children:[(0,_h.jsxs)("div",{className:"mt-4 mb-6",children:[(0,_h.jsx)(Rh,{type:"h4",className:"font-semibold",children:t.title}),t.description&&(0,_h.jsx)(Rh,{variant:"secondary",type:"label",children:t.description})]}),(0,_h.jsx)("div",{className:"flex-1",children:t.content})]})})]})}function nD(e){const t=e.items[e.selectedIndex],n=lg().useNavigate();return-1===e.selectedIndex?(0,_h.jsxs)("div",{className:"flex flex-col gap-2 p-2",children:[e.title&&(0,_h.jsx)("div",{className:"mb-2 ml-2",children:(0,_h.jsx)(Rh,{type:"h2",className:"text-lg font-semibold text-zinc-800 dark:text-zinc-300",children:e.title})}),(0,_h.jsx)(eD,{items:e.items,selectedIndex:e.selectedIndex})]}):(0,_h.jsxs)("div",{className:"flex-1 flex flex-col gap-4 py-2 px-4",children:[(0,_h.jsxs)("div",{className:"flex flex-col",children:[(0,_h.jsxs)("div",{className:"flex justify-between",children:[(0,_h.jsx)(Rh,{type:"h4",className:"font-semibold",children:t.title}),(0,_h.jsx)(Uv,{variant:"ghost",size:"icon",onClick:()=>{n("#")},children:(0,_h.jsx)(XC,{className:"h-5 w-5"})})]}),t.description&&(0,_h.jsx)(Rh,{variant:"secondary",type:"label",children:t.description})]}),(0,_h.jsx)("div",{className:"flex-1",children:t.content})]})}const aD=["scope","children"];function rD(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const a=t[0];if(1===t.length)return a;const r=()=>{const e=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){const n=e.reduce((e,n)=>{let{useScope:a,scopeName:r}=n;const o=a(t)["__scope".concat(r)];return p(p({},e),o)},{});return o.useMemo(()=>({["__scope".concat(a.scopeName)]:n}),[n])}};return r.scopeName=a.scopeName,r}const oD=["asChild"];var iD=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=Tg("Primitive.".concat(t)),a=o.forwardRef((e,a)=>{const{asChild:r}=e,o=l(e,oD),i=r?n:t;return"undefined"!==typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,_h.jsx)(i,p(p({},o),{},{ref:a}))});return a.displayName="Primitive.".concat(t),p(p({},e),{},{[t]:a})},{});var sD=n(9461);function lD(){return()=>{}}const cD=["__scopeAvatar"],uD=["__scopeAvatar","src","onLoadingStatusChange"],dD=["__scopeAvatar","delayMs"];var hD="Avatar",[pD,fD]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[];const a=()=>{const t=n.map(e=>o.createContext(e));return function(n){const a=(null===n||void 0===n?void 0:n[e])||t;return o.useMemo(()=>
2({["__scope".concat(e)]:p(p({},n),{},{[e]:a})}),[n,a])}};return a.scopeName=e,[function(t,a){const r=o.createContext(a);r.displayName=t+"Context";const i=n.length;n=[...n,a];const s=t=>{var n;const{scope:a,children:s}=t,c=l(t,aD),u=(null===a||void 0===a||null===(n=a[e])||void 0===n?void 0:n[i])||r,d=o.useMemo(()=>c,Object.values(c));return(0,_h.jsx)(u.Provider,{value:d,children:s})};return s.displayName=t+"Provider",[s,function(n,s){var l;const c=(null===s||void 0===s||null===(l=s[e])||void 0===l?void 0:l[i])||r,u=o.useContext(c);if(u)return u;if(void 0!==a)return a;throw new Error("`".concat(n,"` must be used within `").concat(t,"`"))}]},rD(a,...t)]}(hD),[mD,gD]=pD(hD),vD=o.forwardRef((e,t)=>{const{__scopeAvatar:n}=e,a=l(e,cD),[r,i]=o.useState("idle");return(0,_h.jsx)(mD,{scope:n,imageLoadingStatus:r,onImageLoadingStatusChange:i,children:(0,_h.jsx)(iD.span,p(p({},a),{},{ref:t}))})});vD.displayName=hD;var yD="AvatarImage",wD=o.forwardRef((e,t)=>{const{__scopeAvatar:n,src:a,onLoadingStatusChange:r=()=>{}}=e,i=l(e,uD),s=gD(yD,n),c=function(e,t){let{referrerPolicy:n,crossOrigin:a}=t;const r=(0,sD.useSyncExternalStore)(lD,()=>!0,()=>!1),i=o.useRef(null),s=r?(i.current||(i.current=new window.Image),i.current):null,[l,c]=o.useState(()=>bD(s,e));return sp(()=>{c(bD(s,e))},[s,e]),sp(()=>{const e=e=>()=>{c(e)};if(!s)return;const t=e("loaded"),r=e("error");return s.addEventListener("load",t),s.addEventListener("error",r),n&&(s.referrerPolicy=n),"string"===typeof a&&(s.crossOrigin=a),()=>{s.removeEventListener("load",t),s.removeEventListener("error",r)}},[s,a,n]),l}(a,i),u=xp(e=>{r(e),s.onImageLoadingStatusChange(e)});return sp(()=>{"idle"!==c&&u(c)},[c,u]),"loaded"===c?(0,_h.jsx)(iD.img,p(p({},i),{},{ref:t,src:a})):null});wD.displayName=yD;var _D="AvatarFallback",xD=o.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:a}=e,r=l(e,dD),i=gD(_D,n),[s,c]=o.useState(void 0===a);return o.useEffect(()=>{if(void 0!==a){const e=window.setTimeout(()=>c(!0),a);return()=>window.clearTimeout(e)}},[a]),s&&"loaded"!==i.imageLoadingStatus?(0,_h.jsx)(iD.span,p(p({},r),{},{ref:t})):null});function bD(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}xD.displayName=_D;var kD=vD,CD=wD,DD=xD;const AD=["className"],ED=["className"],jD=["className"];var SD=Ah((e,t)=>{let{className:n}=e,a=l(e,AD);return(0,_h.jsx)(kD,p({ref:t,className:wh("stack-scope relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",n)},a))});SD.displayName=kD.displayName;var ND=Ah((e,t)=>{let{className:n}
2=e,a=l(e,ED);return(0,_h.jsx)(CD,p({ref:t,className:wh("aspect-square h-full w-full",n)},a))});ND.displayName=CD.displayName;var PD=Ah((e,t)=>{let{className:n}=e,a=l(e,jD);return(0,_h.jsx)(DD,p({ref:t,className:wh("flex h-full w-full items-center justify-center rounded-full bg-muted",n)},a))});PD.displayName=DD.displayName;const TD=RC("UserRound",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);function FD(e){return"personal"===e.team?(0,_h.jsx)("div",{className:"flex items-center justify-center min-w-6 min-h-6 max-w-6 max-h-6 rounded bg-zinc-200",children:(0,_h.jsx)(TD,{className:"w-4 h-4"})}):e.team.profileImageUrl?(0,_h.jsx)(SD,{className:"min-w-6 min-h-6 max-w-6 max-h-6 rounded",children:(0,_h.jsx)(ND,{src:e.team.profileImageUrl,alt:e.team.displayName})}):(0,_h.jsx)("div",{className:"flex items-center justify-center min-w-6 min-h-6 max-w-6 max-h-6 rounded bg-zinc-200",children:(0,_h.jsx)(Rh,{className:"text-zinc-800 dark:text-zinc-800",children:e.team.displayName.slice(0,1).toUpperCase()})})}function OD(e,t){return(e%t+Math.abs(t))%t}var ID=[[60,"second"],[60,"minute"],[24,"hour"],[7,"day"],[5,"week"]];function RD(e){return function(e){if(!(e instanceof Date))throw new Error("fromNow only accepts Date objects (received: ".concat(e,")"));const t=(new Date).getTime()-e.getTime();let n=Math.abs(t)/1e3;if(n<15)return{result:"just now",secondsUntilChange:15-n};let a=1;for(const[r,o]of ID){const e=Math.round(n);if(e<r)return t<0?{result:"in ".concat(e," ").concat(o).concat(1===e?"":"s"),secondsUntilChange:OD((n-e+.5)*a,a)}:{result:"".concat(e," ").concat(o).concat(1===e?"":"s"," ago"),secondsUntilChange:OD((e-n-.5)*a,a)};a*=r,n/=r}return{result:e.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),secondsUntilChange:1/0}}(e).result}const MD=["className"],BD=["className"],zD=["className"],LD=["className"],UD=["className"],VD=["className"],qD=["className"],HD=["className"];var WD=Ah((e,t)=>{let{className:n}=e,a=l(e,MD);return(0,_h.jsx)("div",{className:"relative w-full overflow-auto",children:(0,_h.jsx)("table",p({ref:t,className:wh("stack-scope w-full caption-bottom text-sm",n)},a))})});WD.displayName="Table";var KD=Ah((e,t)=>{let{className:n}=e,a=l(e,BD);return(0,_h.jsx)("thead",p({ref:t,className:wh("[&_tr]:border-b",n)},a))});KD.displayName="TableHeader";var YD=Ah((e,t)=>{let{className:n}=e,a=l(e,zD);return(0,_h.jsx)("tbody",p({ref:t,className:wh("[&_tr:last-child]:border-0",n)},a))});YD.displayName="TableBody",Ah((e,t)=>{let{className:n}=e,a=l(e,LD);return(0,_h.jsx)("tfoot",p({ref:t,className:wh("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",n)},a))}).displayName="TableFooter";var GD=Ah((e,t)=>{let{className:n}=e,a=l(e,UD);return(0,_h.jsx)("tr",p({ref:t,className:wh("border-b data-[state=selected]:bg-muted",a.onClick?"hover:bg-muted/50 cursor-pointer":"",n)},a))});GD.displayName="TableRow";var JD=Ah((e,t)=>{let{className:n}=e,a=l(e,VD);return(0,_h.jsx)("th",p({ref:t,className:wh("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n)},a))});JD.displayName="TableHead";var $D=Ah((e,t)=>{let{className:n}=e,a=l(e,qD);return(0,_h.jsx)("td",p({ref:t,className:wh("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n)},a))});$D.displayName="TableCell",Ah((e,t)=>{let{className:n}=e,a=l(e,HD);return(0,_h.jsx)("caption",p({ref:t,className:wh("mt-4 text-sm text-muted-foreground",n)},a))}).displayName="TableCaption";const QD=["className","variant"];var XD=Fh("stack-scope inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground shadow",outline:"text-foreground"}},defaultVariants:{variant:"default"}}),ZD=Ah((e,t)=>{let{className:n,variant:a}=e,r=l(e,QD);return(0,_h.jsx)("div",p({ref:t,className:wh(XD({variant:a}),n)},r))});ZD.displayName="Badge";var eA=0;function tA(){o.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:nA()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:nA()),eA++,
2()=>{1===eA&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),eA--}},[])}function nA(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}const aA=["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"];var rA="focusScope.autoFocusOnMount",oA="focusScope.autoFocusOnUnmount",iA={bubbles:!1,cancelable:!0},sA=o.forwardRef((e,t)=>{const{loop:n=!1,trapped:a=!1,onMountAutoFocus:r,onUnmountAutoFocus:i}=e,s=l(e,aA),[c,u]=o.useState(null),d=xp(r),h=xp(i),f=o.useRef(null),m=Gh(t,e=>u(e)),g=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(a){let e=function(e){if(g.paused||!c)return;const t=e.target;c.contains(t)?f.current=t:dA(f.current,{select:!0})},t=function(e){if(g.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||dA(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&dA(c)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const a=new MutationObserver(n);return c&&a.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),a.disconnect()}}},[a,c,g.paused]),o.useEffect(()=>{if(c){hA.add(g);const t=document.activeElement;if(!c.contains(t)){const n=new CustomEvent(rA,iA);c.addEventListener(rA,d),c.dispatchEvent(n),n.defaultPrevented||(!function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=document.activeElement;for(const a of e)if(dA(a,{select:t}),document.activeElement!==n)return}((e=lA(c),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&dA(c))}return()=>{c.removeEventListener(rA,d),setTimeout(()=>{const e=new CustomEvent(oA,iA);c.addEventListener(oA,h),c.dispatchEvent(e),e.defaultPrevented||dA(null!==t&&void 0!==t?t:document.body,{select:!0}),c.removeEventListener(oA,h),hA.remove(g)},0)}}var e},[c,d,h,g]);const v=o.useCallback(e=>{if(!n&&!a)return;if(g.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){const t=e.currentTarget,[a,o]=function(e){const t=lA(e),n=cA(t,e),a=cA(t.reverse(),e);return[n,a]}(t);a&&o?e.shiftKey||r!==o?e.shiftKey&&r===a&&(e.preventDefault(),n&&dA(o,{select:!0})):(e.preventDefault(),n&&dA(a,{select:!0})):r===t&&e.preventDefault()}},[n,a,g.paused]);return(0,_h.jsx)(wp.div,p(p({tabIndex:-1},s),{},{ref:m,onKeyDown:v}))});function lA(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function cA(e,t){for(const n of e)if(!uA(n,{upTo:t}))return n}function uA(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==n&&e===n)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function dA(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}sA.displayName="FocusScope";var hA=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null===n||void 0===n||n.pause()),e=pA(e,t),e.unshift(t)},remove(t){var n;e=pA(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function pA(e,t){const n=[...e],a=n.indexOf(t);return-1!==a&&n.splice(a,1),n}const fA=["children"],mA=["children"];function gA(e){const t=vA(e),n=o.forwardRef((e,n)=>{const{children:a}=e,r=l(e,fA),i=o.Children.toArray(a),s=i.find(wA);if(s){const e=s.props.children,a=i.map(t=>t===s?o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null:t);return(0,_h.jsx)(t,p(p({},r),{},{ref:n,children:o.isValidElement(e)?o.cloneElement(e,void 0,a):null}))}return(0,_h.jsx)(t,p(p({},r),{},{ref:n,children:a}))});return n.displayName="".concat(e,".Slot"),n}function vA(e){const t=o.forwardRef((e,t)=>
2{const{children:n}=e,a=l(e,mA);if(o.isValidElement(n)){const e=function(e){var t,n;let a=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,r=a&&"isReactWarning"in a&&a.isReactWarning;if(r)return e.ref;if(a=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(n),r=function(e,t){const n=p({},t);for(const a in t){const r=e[a],o=t[a];/^on[A-Z]/.test(a)?r&&o?n[a]=function(){const e=o(...arguments);return r(...arguments),e}:r&&(n[a]=r):"style"===a?n[a]=p(p({},r),o):"className"===a&&(n[a]=[r,o].filter(Boolean).join(" "))}return p(p({},e),n)}(a,n.props);return n.type!==o.Fragment&&(r.ref=t?Yh(t,e):e),o.cloneElement(n,r)}return o.Children.count(n)>1?o.Children.only(null):null});return t.displayName="".concat(e,".SlotClone"),t}var yA=Symbol("radix.slottable");function wA(e){return o.isValidElement(e)&&"function"===typeof e.type&&"__radixId"in e.type&&e.type.__radixId===yA}var _A=function(e){return"undefined"===typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},xA=new WeakMap,bA=new WeakMap,kA={},CA=0,DA=function(e){return e&&(e.host||DA(e.parentNode))},AA=function(e,t,n,a){var r=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=DA(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);kA[n]||(kA[n]=new WeakMap);var o=kA[n],i=[],s=new Set,l=new Set(r),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};r.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(a),r=null!==t&&"false"!==t,l=(xA.get(e)||0)+1,c=(o.get(e)||0)+1;xA.set(e,l),o.set(e,c),i.push(e),1===l&&r&&bA.set(e,!0),1===c&&e.setAttribute(n,"true"),r||e.setAttribute(a,"true")}catch(oL){console.error("aria-hidden: cannot operate on ",e,oL)}})};return u(t),s.clear(),CA++,function(){i.forEach(function(e){var t=xA.get(e)-1,r=o.get(e)-1;xA.set(e,t),o.set(e,r),t||(bA.has(e)||e.removeAttribute(a),bA.delete(e)),r||e.removeAttribute(n)}),--CA||(xA=new WeakMap,xA=new WeakMap,bA=new WeakMap,kA={})}},EA=function(e,t,n){void 0===n&&(n="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),r=t||_A(e);return r?(a.push.apply(a,Array.from(r.querySelectorAll("[aria-live], script"))),AA(a,r,n,"aria-hidden")):function(){return null}},jA=function(e,t){return jA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},jA(e,t)};function SA(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}jA(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var NA=function(){return NA=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},NA.apply(this,arguments)};function PA(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}Object.create;function TA(e,t,n){if(n||2===arguments.length)for(var a,r=0,o=t.length;r<o;r++)!a&&r in t||(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}Object.create;"function"===typeof SuppressedError&&SuppressedError;var FA="right-scroll-bar-position",OA="width-before-scroll-bar";function IA(e,t){return"function"===typeof e?e(t):e&&(e.current=t),e}var RA="undefined"!==typeof window?o.useLayoutEffect:o.useEffect,MA=new WeakMap;function BA(e,t){var n=function(e,t){var n=(0,o.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}(t||null,function(t){return e.forEach(function(e){return IA(e,t)})});return RA(function(){var t=MA.get(n);if(t){var a=new Set(t),r=new Set(e),o=n.current;a.forEach(function(e){r.has(e)||IA(e,null)}),r.forEach(function(e){a.has(e)||IA(e,o)})}MA.set(n,e)},[e]),n}function zA(e){return e}function LA(e,t){void 0===t&&(t=zA);var n=[],a=!1,r={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var r=t(e,a);return n.push(r),function(){n=n.filter(function(e){return e!==r})}},assignSyncMedium:function(e){for(a=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){a=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var o=function(){var n=t;
vendor: 1,694 bytes, line 2
2t=[],n.forEach(e)},i=function(){return Promise.resolve().then(o)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}};return r}var UA=function(e){void 0===e&&(e={});var t=LA(null);return t.options=NA({async:!0,ssr:!1},e),t}(),VA=function(){},qA=o.forwardRef(function(e,t){var n=o.useRef(null),a=o.useState({onScrollCapture:VA,onWheelCapture:VA,onTouchMoveCapture:VA}),r=a[0],i=a[1],s=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,h=e.shards,p=e.sideCar,f=e.noRelative,m=e.noIsolation,g=e.inert,v=e.allowPinchZoom,y=e.as,w=void 0===y?"div":y,_=e.gapMode,x=PA(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),b=p,k=BA([n,t]),C=NA(NA({},x),r);return o.createElement(o.Fragment,null,d&&o.createElement(b,{sideCar:UA,removeScrollBar:u,shards:h,noRelative:f,noIsolation:m,inert:g,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:_}),s?o.cloneElement(o.Children.only(l),NA(NA({},C),{ref:k})):o.createElement(w,NA({},C,{className:c,ref:k}),l))});qA.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},qA.classNames={fullWidth:OA,zeroRight:FA};var HA,WA=function(e){var t=e.sideCar,n=PA(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return o.createElement(a,NA({},n))};WA.isSideCarExport=!0;function KA(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=HA||n.nc;return t&&e.setAttribute("nonce",t),e}var YA=function(){var e=0,t=null;return{add:function(n){var a,r;
vendor: 9,154 bytes, line 2
20==e&&(t=KA())&&(r=n,(a=t).styleSheet?a.styleSheet.cssText=r:a.appendChild(document.createTextNode(r)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},GA=function(){var e=function(){var e=YA();return function(t,n){o.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}}();return function(t){var n=t.styles,a=t.dynamic;return e(n,a),null}},JA={left:0,top:0,right:0,gap:0},$A=function(e){return parseInt(e||"",10)||0},QA=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return JA;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],a=t["padding"===e?"paddingTop":"marginTop"],r=t["padding"===e?"paddingRight":"marginRight"];return[$A(n),$A(a),$A(r)]}(e),n=document.documentElement.clientWidth,a=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,a-n+t[2]-t[0])}},XA=GA(),ZA="data-scroll-locked",eE=function(e,t,n,a){var r=e.left,o=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(a,";\n   padding-right: ").concat(s,"px ").concat(a,";\n  }\n  body[").concat(ZA,"] {\n    overflow: hidden ").concat(a,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(a,";"),"margin"===n&&"\n    padding-left: ".concat(r,"px;\n    padding-top: ").concat(o,"px;\n    padding-right: ").concat(i,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(a,";\n    "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(a,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(FA," {\n    right: ").concat(s,"px ").concat(a,";\n  }\n  \n  .").concat(OA," {\n    margin-right: ").concat(s,"px ").concat(a,";\n  }\n  \n  .").concat(FA," .").concat(FA," {\n    right: 0 ").concat(a,";\n  }\n  \n  .").concat(OA," .").concat(OA," {\n    margin-right: 0 ").concat(a,";\n  }\n  \n  body[").concat(ZA,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},tE=function(){var e=parseInt(document.body.getAttribute(ZA)||"0",10);return isFinite(e)?e:0},nE=function(e){var t=e.noRelative,n=e.noImportant,a=e.gapMode,r=void 0===a?"margin":a;o.useEffect(function(){return document.body.setAttribute(ZA,(tE()+1).toString()),function(){var e=tE()-1;e<=0?document.body.removeAttribute(ZA):document.body.setAttribute(ZA,e.toString())}},[]);var i=o.useMemo(function(){return QA(r)},[r]);return o.createElement(XA,{styles:eE(i,!t,r,n?"":"!important")})},aE=!1;if("undefined"!==typeof window)try{var rE=Object.defineProperty({},"passive",{get:function(){return aE=!0,!0}});window.addEventListener("test",rE,rE),window.removeEventListener("test",rE,rE)}catch(TAe){aE=!1}var oE=!!aE&&{passive:!1},iE=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},sE=function(e,t){var n=t.ownerDocument,a=t;do{if("undefined"!==typeof ShadowRoot&&a instanceof ShadowRoot&&(a=a.host),lE(e,a)){var r=cE(e,a);if(r[1]>r[2])return!0}a=a.parentNode}while(a&&a!==n.body);return!1},lE=function(e,t){return"v"===e?function(e){return iE(e,"overflowY")}(t):function(e){return iE(e,"overflowX")}(t)},cE=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},uE=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},dE=function(e){return[e.deltaX,e.deltaY]},hE=function(e){return e&&"current"in e?e.current:e},pE=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},fE=0,mE=[];function gE(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const vE=(yE=function(e){var t=o.useRef([]),n=o.useRef([0,0]),a=o.useRef(),r=o.useState(fE++)[0],i=o.useState(GA)[0],s=o.useRef(e);o.useEffect(function(){s.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var t=TA([e.lockRef.current],(e.shards||[]).map(hE),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var l=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var r,o=uE(e),i=n.current,l="deltaX"in e?e.deltaX:i[0]-o[0],c="deltaY"in e?e.deltaY:i[1]-o[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var h=window.getSelection(),p=h&&h.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var f=sE(d,u);if(!f)return!0;if(f?r=d:(r="v"===d?"h":"v",f=sE(d,u)),!f)return!1;if(!a.current&&"changedTouches"in e&&(l||c)&&(a.current=r),!r)return!0;var m=a.current||r;return function(e,t,n,a,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=o*a,s=n.target,l=t.contains(s),c=!1,u=i>0,d=0,h=0;do{if(!s)break;var p=cE(e,s),f=p[0],m=p[1]-p[2]-o*f;(f||m)&&lE(e,s)&&(d+=m,h+=f);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(r&&Math.abs(d)<1||!r&&i>d)||!u&&(r&&Math.abs(h)<1||!r&&-i>h))&&(c=!0),c}(m,t,e,"h"===m?l:c,!0)},[]),c=o.useCallback(function(e){var n=e;if(mE.length&&mE[mE.length-1]===i){var a="deltaY"in n?dE(n):uE(n),r=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,a)})[0];if(r&&r.should)n.cancelable&&n.preventDefault();else if(!r){var o=(s.current.shards||[]).map(hE).filter(Boolean).filter(function(e){return e.contains(n.target)});(o.length>0?l(n,o[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=o.useCallback(function(e,n,a,r){var o={name:e,delta:n,target:a,should:r,shadowParent:gE(a)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),d=o.useCallback(function(e){n.current=uE(e),a.current=void 0},[]),h=o.useCallback(function(t){u(t.type,dE(t),t.target,l(t,e.lockRef.current))},[]),p=o.useCallback(function(t){u(t.type,uE(t),t.target,l(t,e.lockRef.current))},[]);o.useEffect(function(){return mE.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",c,oE),document.addEventListener("touchmove",c,oE),document.addEventListener("touchstart",d,oE),function(){mE=mE.filter(function(e){return e!==i}),document.removeEventListener("wheel",c,oE),document.removeEventListener("touchmove",c,oE),document.removeEventListener("touchstart",d,oE)}},[]);var f=e.removeScrollBar,m=e.inert;return o.createElement(o.Fragment,null,m?o.createElement(i,{styles:pE(r)}):null,f?o.createElement(nE,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},UA.useMedium(yE),WA);var yE,wE=o.forwardRef(function(e,t){return o.createElement(qA,NA({},e,{ref:t,sideCar:vE}))});wE.classNames=qA.classNames;const _E=wE,xE=["__scopeMenu"],bE=["forceMount"],kE=["__scopeMenu","loop","trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEntryFocus","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","disableOutsideScroll"],CE=["__scopeMenu"],DE=["__scopeMenu"],AE=["disabled","onSelect"],EE=["__scopeMenu","disabled","textValue"],jE=["checked","onCheckedChange"],SE=["value","onValueChange"],NE=["value"],PE=["__scopeMenu","forceMount"],TE=["__scopeMenu"],FE=["__scopeMenu"],OE=["forceMount"];var IE=["Enter"," "],RE=["ArrowUp","PageDown","End"],ME=["ArrowDown","PageUp","Home",...RE],BE={ltr:[...IE,"ArrowRight"],rtl:[...IE,"ArrowLeft"]},zE={ltr:["ArrowLeft"],rtl:["ArrowRight"]},LE="Menu",[UE,VE,qE]=ap(LE),[HE,WE]=Lh(LE,[qE,Pb,Ip]),KE=Pb(),YE=Ip(),[GE,JE]=HE(LE),[$E,QE]=HE(LE),XE=e=>{const{__scopeMenu:t,open:n=!1,children:a,dir:r,onOpenChange:i,modal:s=!0}=e,l=KE(t),[c,u]=o.useState(null),d=o.useRef(!1),h=xp(i),f=Dp(r);return o.useEffect(()=>{const e=()=>{d.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>d.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,_h.jsx)(Yb,p(p({},l),{},{children:(0,_h.jsx)(GE,{scope:t,open:n,onOpenChange:h,content:c,onContentChange:u,children:(0,_h.jsx)($E,{scope:t,onClose:o.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:d,dir:f,modal:s,children:a})})}))};XE.displayName=LE;var ZE=o.forwardRef((e,t)=>
2{const{__scopeMenu:n}=e,a=l(e,xE),r=KE(n);return(0,_h.jsx)(Gb,p(p(p({},r),a),{},{ref:t}))});ZE.displayName="MenuAnchor";var ej="MenuPortal",[tj,nj]=HE(ej,{forceMount:void 0}),aj=e=>{const{__scopeMenu:t,forceMount:n,children:a,container:r}=e,o=JE(ej,t);return(0,_h.jsx)(tj,{scope:t,forceMount:n,children:(0,_h.jsx)(Kp,{present:n||o.open,children:(0,_h.jsx)(Xb,{asChild:!0,container:r,children:a})})})};aj.displayName=ej;var rj="MenuContent",[oj,ij]=HE(rj),sj=o.forwardRef((e,t)=>{const n=nj(rj,e.__scopeMenu),{forceMount:a=n.forceMount}=e,r=l(e,bE),o=JE(rj,e.__scopeMenu),i=QE(rj,e.__scopeMenu);return(0,_h.jsx)(UE.Provider,{scope:e.__scopeMenu,children:(0,_h.jsx)(Kp,{present:a||o.open,children:(0,_h.jsx)(UE.Slot,{scope:e.__scopeMenu,children:i.modal?(0,_h.jsx)(lj,p(p({},r),{},{ref:t})):(0,_h.jsx)(cj,p(p({},r),{},{ref:t}))})})})}),lj=o.forwardRef((e,t)=>{const n=JE(rj,e.__scopeMenu),a=o.useRef(null),r=Gh(t,a);return o.useEffect(()=>{const e=a.current;if(e)return EA(e)},[]),(0,_h.jsx)(dj,p(p({},e),{},{ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Mh(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),cj=o.forwardRef((e,t)=>{const n=JE(rj,e.__scopeMenu);return(0,_h.jsx)(dj,p(p({},e),{},{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),uj=gA("MenuContent.ScrollLock"),dj=o.forwardRef((e,t)=>{const{__scopeMenu:n,loop:a=!1,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:u,onEscapeKeyDown:d,onPointerDownOutside:h,onFocusOutside:f,onInteractOutside:m,onDismiss:g,disableOutsideScroll:v}=e,y=l(e,kE),w=JE(rj,n),_=QE(rj,n),x=KE(n),b=YE(n),k=VE(n),[C,D]=o.useState(null),A=o.useRef(null),E=Gh(t,A,w.onContentChange),j=o.useRef(0),S=o.useRef(""),N=o.useRef(0),P=o.useRef(null),T=o.useRef("right"),F=o.useRef(0),O=v?_E:o.Fragment,I=v?{as:uj,allowPinchZoom:!0}:void 0,R=e=>{var t,n;const a=S.current+e,r=k().filter(e=>!e.disabled),o=document.activeElement,i=null===(t=r.find(e=>e.ref.current===o))||void 0===t?void 0:t.textValue,s=function(e,t,n){const a=t.length>1&&Array.from(t).every(e=>e===t[0]),r=a?t[0]:t,o=n?e.indexOf(n):-1;let i=function(e,t){return e.map((n,a)=>e[(t+a)%e.length])}(e,Math.max(o,0));1===r.length&&(i=i.filter(e=>e!==n));const s=i.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return s!==n?s:void 0}(r.map(e=>e.textValue),a,i),l=null===(n=r.find(e=>e.textValue===s))||void 0===n?void 0:n.ref.current;!function e(t){S.current=t,window.clearTimeout(j.current),""!==t&&(j.current=window.setTimeout(()=>e(""),1e3))}(a),l&&setTimeout(()=>l.focus())};o.useEffect(()=>()=>window.clearTimeout(j.current),[]),tA();const M=o.useCallback(e=>{var t,n;return T.current===(null===(t=P.current)||void 0===t?void 0:t.side)&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const{x:n,y:a}=e;let r=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const e=t[o],s=t[i],l=e.x,c=e.y,u=s.x,d=s.y;c>a!==d>a&&n<(u-l)*(a-c)/(d-c)+l&&(r=!r)}return r}(n,t)}(e,null===(n=P.current)||void 0===n?void 0:n.area)},[]);return(0,_h.jsx)(oj,{scope:n,searchRef:S,onItemEnter:o.useCallback(e=>{M(e)&&e.preventDefault()},[M]),onItemLeave:o.useCallback(e=>{var t;M(e)||(null===(t=A.current)||void 0===t||t.focus(),D(null))},[M]),onTriggerLeave:o.useCallback(e=>{M(e)&&e.preventDefault()},[M]),pointerGraceTimerRef:N,onPointerGraceIntentChange:o.useCallback(e=>{P.current=e},[]),children:(0,_h.jsx)(O,p(p({},I),{},{children:(0,_h.jsx)(sA,{asChild:!0,trapped:r,onMountAutoFocus:Mh(i,e=>{var t;e.preventDefault(),null===(t=A.current)||void 0===t||t.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,_h.jsx)(A_,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:h,onFocusOutside:f,onInteractOutside:m,onDismiss:g,children:(0,_h.jsx)(Hp,p(p({asChild:!0},b),{},{dir:_.dir,orientation:"vertical",loop:a,currentTabStopId:C,onCurrentTabStopIdChange:D,onEntryFocus:Mh(u,e=>{_.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,_h.jsx)(Jb,p(p(p({role:"menu","aria-orientation":"vertical","data-state":zj(w.open),"data-radix-menu-content":"",dir:_.dir},x),y),{},{ref:E,style:p({outline:"none"},y.style),onKeyDown:Mh(y.onKeyDown,e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,a=1===e.ke
2y.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&a&&R(e.key));const r=A.current;if(e.target!==r)return;if(!ME.includes(e.key))return;e.preventDefault();const o=k().filter(e=>!e.disabled).map(e=>e.ref.current);RE.includes(e.key)&&o.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(o)}),onBlur:Mh(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(j.current),S.current="")}),onPointerMove:Mh(e.onPointerMove,Vj(e=>{const t=e.target,n=F.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>F.current?"right":"left";T.current=t,F.current=e.clientX}}))}))}))})})}))})});sj.displayName=rj;var hj=o.forwardRef((e,t)=>{const{__scopeMenu:n}=e,a=l(e,CE);return(0,_h.jsx)(wp.div,p(p({role:"group"},a),{},{ref:t}))});hj.displayName="MenuGroup";var pj=o.forwardRef((e,t)=>{const{__scopeMenu:n}=e,a=l(e,DE);return(0,_h.jsx)(wp.div,p(p({},a),{},{ref:t}))});pj.displayName="MenuLabel";var fj="MenuItem",mj="menu.itemSelect",gj=o.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:a}=e,r=l(e,AE),i=o.useRef(null),s=QE(fj,e.__scopeMenu),c=ij(fj,e.__scopeMenu),u=Gh(t,i),d=o.useRef(!1);return(0,_h.jsx)(vj,p(p({},r),{},{ref:u,disabled:n,onClick:Mh(e.onClick,()=>{const e=i.current;if(!n&&e){const t=new CustomEvent(mj,{bubbles:!0,cancelable:!0});e.addEventListener(mj,e=>null===a||void 0===a?void 0:a(e),{once:!0}),_p(e,t),t.defaultPrevented?d.current=!1:s.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),d.current=!0},onPointerUp:Mh(e.onPointerUp,e=>{var t;d.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:Mh(e.onKeyDown,e=>{const t=""!==c.searchRef.current;n||t&&" "===e.key||IE.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))});gj.displayName=fj;var vj=o.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:a=!1,textValue:r}=e,i=l(e,EE),s=ij(fj,n),c=YE(n),u=o.useRef(null),d=Gh(t,u),[h,f]=o.useState(!1),[m,g]=o.useState("");return o.useEffect(()=>{const e=u.current;var t;e&&g((null!==(t=e.textContent)&&void 0!==t?t:"").trim())},[i.children]),(0,_h.jsx)(UE.ItemSlot,{scope:n,disabled:a,textValue:null!==r&&void 0!==r?r:m,children:(0,_h.jsx)(Wp,p(p({asChild:!0},c),{},{focusable:!a,children:(0,_h.jsx)(wp.div,p(p({role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0},i),{},{ref:d,onPointerMove:Mh(e.onPointerMove,Vj(e=>{if(a)s.onItemLeave(e);else if(s.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}})),onPointerLeave:Mh(e.onPointerLeave,Vj(e=>s.onItemLeave(e))),onFocus:Mh(e.onFocus,()=>f(!0)),onBlur:Mh(e.onBlur,()=>f(!1))}))}))})}),yj=o.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:a}=e,r=l(e,jE);return(0,_h.jsx)(Aj,{scope:e.__scopeMenu,checked:n,children:(0,_h.jsx)(gj,p(p({role:"menuitemcheckbox","aria-checked":Lj(n)?"mixed":n},r),{},{ref:t,"data-state":Uj(n),onSelect:Mh(r.onSelect,()=>null===a||void 0===a?void 0:a(!!Lj(n)||!n),{checkForDefaultPrevented:!1})}))})});yj.displayName="MenuCheckboxItem";var wj="MenuRadioGroup",[_j,xj]=HE(wj,{value:void 0,onValueChange:()=>{}}),bj=o.forwardRef((e,t)=>{const{value:n,onValueChange:a}=e,r=l(e,SE),o=xp(a);return(0,_h.jsx)(_j,{scope:e.__scopeMenu,value:n,onValueChange:o,children:(0,_h.jsx)(hj,p(p({},r),{},{ref:t}))})});bj.displayName=wj;var kj="MenuRadioItem",Cj=o.forwardRef((e,t)=>{const{value:n}=e,a=l(e,NE),r=xj(kj,e.__scopeMenu),o=n===r.value;return(0,_h.jsx)(Aj,{scope:e.__scopeMenu,checked:o,children:(0,_h.jsx)(gj,p(p({role:"menuitemradio","aria-checked":o},a),{},{ref:t,"data-state":Uj(o),onSelect:Mh(a.onSelect,()=>{var e;return null===(e=r.onValueChange)||void 0===e?void 0:e.call(r,n)},{checkForDefaultPrevented:!1})}))})});Cj.displayName=kj;var Dj="MenuItemIndicator",[Aj,Ej]=HE(Dj,{checked:!1}),jj=o.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:a}=e,r=l(e,PE),o=Ej(Dj,n);return(0,_h.jsx)(Kp,{present:a||Lj(o.checked)||!0===o.checked,children:(0,_h.jsx)(wp.span,p(p({},r),{},{ref:t,"data-state":Uj(o.checked)}))})});jj.displayName=Dj;var Sj=o.forwardRef((e,t)=>
2{const{__scopeMenu:n}=e,a=l(e,TE);return(0,_h.jsx)(wp.div,p(p({role:"separator","aria-orientation":"horizontal"},a),{},{ref:t}))});Sj.displayName="MenuSeparator";var Nj=o.forwardRef((e,t)=>{const{__scopeMenu:n}=e,a=l(e,FE),r=KE(n);return(0,_h.jsx)($b,p(p(p({},r),a),{},{ref:t}))});Nj.displayName="MenuArrow";var Pj="MenuSub",[Tj,Fj]=HE(Pj),Oj=e=>{const{__scopeMenu:t,children:n,open:a=!1,onOpenChange:r}=e,i=JE(Pj,t),s=KE(t),[l,c]=o.useState(null),[u,d]=o.useState(null),h=xp(r);return o.useEffect(()=>(!1===i.open&&h(!1),()=>h(!1)),[i.open,h]),(0,_h.jsx)(Yb,p(p({},s),{},{children:(0,_h.jsx)(GE,{scope:t,open:a,onOpenChange:h,content:u,onContentChange:d,children:(0,_h.jsx)(Tj,{scope:t,contentId:up(),triggerId:up(),trigger:l,onTriggerChange:c,children:n})})}))};Oj.displayName=Pj;var Ij="MenuSubTrigger",Rj=o.forwardRef((e,t)=>{const n=JE(Ij,e.__scopeMenu),a=QE(Ij,e.__scopeMenu),r=Fj(Ij,e.__scopeMenu),i=ij(Ij,e.__scopeMenu),s=o.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:c}=i,u={__scopeMenu:e.__scopeMenu},d=o.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return o.useEffect(()=>d,[d]),o.useEffect(()=>{const e=l.current;return()=>{window.clearTimeout(e),c(null)}},[l,c]),(0,_h.jsx)(ZE,p(p({asChild:!0},u),{},{children:(0,_h.jsx)(vj,p(p({id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":zj(n.open)},e),{},{ref:Yh(t,r.onTriggerChange),onClick:t=>{var a;null===(a=e.onClick)||void 0===a||a.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Mh(e.onPointerMove,Vj(t=>{i.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||s.current||(i.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:Mh(e.onPointerLeave,Vj(e=>{var t;d();const a=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(a){var r;const t=null===(r=n.content)||void 0===r?void 0:r.dataset.side,o="right"===t,s=o?-5:5,c=a[o?"left":"right"],u=a[o?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+s,y:e.clientY},{x:c,y:a.top},{x:u,y:a.top},{x:u,y:a.bottom},{x:c,y:a.bottom}],side:t}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:Mh(e.onKeyDown,t=>{const r=""!==i.searchRef.current;var o;e.disabled||r&&" "===t.key||BE[a.dir].includes(t.key)&&(n.onOpenChange(!0),null===(o=n.content)||void 0===o||o.focus(),t.preventDefault())})}))}))});Rj.displayName=Ij;var Mj="MenuSubContent",Bj=o.forwardRef((e,t)=>{const n=nj(rj,e.__scopeMenu),{forceMount:a=n.forceMount}=e,r=l(e,OE),i=JE(rj,e.__scopeMenu),s=QE(rj,e.__scopeMenu),c=Fj(Mj,e.__scopeMenu),u=o.useRef(null),d=Gh(t,u);return(0,_h.jsx)(UE.Provider,{scope:e.__scopeMenu,children:(0,_h.jsx)(Kp,{present:a||i.open,children:(0,_h.jsx)(UE.Slot,{scope:e.__scopeMenu,children:(0,_h.jsx)(dj,p(p({id:c.contentId,"aria-labelledby":c.triggerId},r),{},{ref:d,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;s.isUsingKeyboardRef.current&&(null===(t=u.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:Mh(e.onFocusOutside,e=>{e.target!==c.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:Mh(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:Mh(e.onKeyDown,e=>{const t=e.currentTarget.contains(e.target),n=zE[s.dir].includes(e.key);var a;t&&n&&(i.onOpenChange(!1),null===(a=c.trigger)||void 0===a||a.focus(),e.preventDefault())})}))})})})});function zj(e){return e?"open":"closed"}function Lj(e){return"indeterminate"===e}function Uj(e){return Lj(e)?"indeterminate":e?"checked":"unchecked"}function Vj(e){return t=>"mouse"===t.pointerType?e(t):void 0}Bj.displayName=Mj;var qj=XE,Hj=ZE,Wj=aj,Kj=sj,Yj=hj,Gj=pj,Jj=gj,$j=yj,Qj=bj,Xj=Cj,Zj=jj,eS=Sj,tS=Nj,nS=Rj,aS=Bj;const rS=["__scopeDropdownMenu","disabled"],oS=["__scopeDropdownMenu"],iS=["__scopeDropdownMenu"],sS=["__scopeDropdownMenu"],lS=["__scopeDropdownMenu"],cS=["__scopeDropdownMenu"],uS=["__scopeDropdownMenu"],dS=["__scopeDropdownMenu"],hS=["__scopeDropdownMenu"],pS=["__scopeDropdownMenu"],fS=["__scopeDropdownMenu"],mS=["__scopeDropdownMenu"],gS=["__scopeDropdownMenu"],vS=["__scopeDropdownMenu"];var yS="DropdownMenu",[wS,_S]=Lh(yS,[WE]),xS=WE(),[bS,kS]=wS(yS),CS=e=>{const{__scopeDropdownMenu:t,children:n,dir:a,open:r,defaultOpen:i,onOpenChange:s,modal:l=!0}=e,c=xS(t),u=o.useRef(null),[d,h]=kp({prop:r,defaultProp:null!==i&&void 0!==i&&i,onChange:s,caller:yS});return(0,_h.jsx)(bS,{scope:t,triggerId:up(),triggerRef:u,contentId:up(),open:d,onOpenChange:h,onOpenToggle:o.useCallback(()=>h(e=>!e),[h]),modal:l,children:(0,_h.jsx)(qj,p(p({},c),{},{open:d,onOpenChange:h,dir:a,modal:l,children:n}))})};CS.displayName=yS;var DS="DropdownMenuTrigger",AS=o.forwardRef((e,t)=>
2{const{__scopeDropdownMenu:n,disabled:a=!1}=e,r=l(e,rS),o=kS(DS,n),i=xS(n);return(0,_h.jsx)(Hj,p(p({asChild:!0},i),{},{children:(0,_h.jsx)(wp.button,p(p({type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":a?"":void 0,disabled:a},r),{},{ref:Yh(t,o.triggerRef),onPointerDown:Mh(e.onPointerDown,e=>{a||0!==e.button||!1!==e.ctrlKey||(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:Mh(e.onKeyDown,e=>{a||(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})}))}))});AS.displayName=DS;var ES=e=>{const{__scopeDropdownMenu:t}=e,n=l(e,oS),a=xS(t);return(0,_h.jsx)(Wj,p(p({},a),n))};ES.displayName="DropdownMenuPortal";var jS="DropdownMenuContent",SS=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n}=e,a=l(e,iS),r=kS(jS,n),i=xS(n),s=o.useRef(!1);return(0,_h.jsx)(Kj,p(p(p({id:r.contentId,"aria-labelledby":r.triggerId},i),a),{},{ref:t,onCloseAutoFocus:Mh(e.onCloseAutoFocus,e=>{var t;s.current||null===(t=r.triggerRef.current)||void 0===t||t.focus(),s.current=!1,e.preventDefault()}),onInteractOutside:Mh(e.onInteractOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,a=2===t.button||n;r.modal&&!a||(s.current=!0)}),style:p(p({},e.style),{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"})}))});SS.displayName=jS;var NS=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n}=e,a=l(e,sS),r=xS(n);return(0,_h.jsx)(Yj,p(p(p({},r),a),{},{ref:t}))});NS.displayName="DropdownMenuGroup";var PS=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n}=e,a=l(e,lS),r=xS(n);return(0,_h.jsx)(Gj,p(p(p({},r),a),{},{ref:t}))});PS.displayName="DropdownMenuLabel";var TS=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n}=e,a=l(e,cS),r=xS(n);return(0,_h.jsx)(Jj,p(p(p({},r),a),{},{ref:t}))});TS.displayName="DropdownMenuItem";var FS=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n}=e,a=l(e,uS),r=xS(n);return(0,_h.jsx)($j,p(p(p({},r),a),{},{ref:t}))});FS.displayName="DropdownMenuCheckboxItem";var OS=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n}=e,a=l(e,dS),r=xS(n);return(0,_h.jsx)(Qj,p(p(p({},r),a),{},{ref:t}))});OS.displayName="DropdownMenuRadioGroup";var IS=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n}=e,a=l(e,hS),r=xS(n);return(0,_h.jsx)(Xj,p(p(p({},r),a),{},{ref:t}))});IS.displayName="DropdownMenuRadioItem";var RS=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n}=e,a=l(e,pS),r=xS(n);return(0,_h.jsx)(Zj,p(p(p({},r),a),{},{ref:t}))});RS.displayName="DropdownMenuItemIndicator";var MS=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n}=e,a=l(e,fS),r=xS(n);return(0,_h.jsx)(eS,p(p(p({},r),a),{},{ref:t}))});MS.displayName="DropdownMenuSeparator";var BS=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n}=e,a=l(e,mS),r=xS(n);return(0,_h.jsx)(tS,p(p(p({},r),a),{},{ref:t}))});BS.displayName="DropdownMenuArrow";var zS=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n}=e,a=l(e,gS),r=xS(n);return(0,_h.jsx)(nS,p(p(p({},r),a),{},{ref:t}))});zS.displayName="DropdownMenuSubTrigger";var LS=o.forwardRef((e,t)=>{const{__scopeDropdownMenu:n}=e,a=l(e,vS),r=xS(n);return(0,_h.jsx)(aS,p(p(p({},r),a),{},{ref:t,style:p(p({},e.style),{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"})}))});LS.displayName="DropdownMenuSubContent";var US=CS,VS=AS,qS=ES,HS=SS,WS=PS,KS=TS,YS=FS,GS=IS,JS=RS,$S=MS,QS=zS,XS=LS;const ZS=["className","inset","children"],eN=["className"],tN=["className","sideOffset"],nN=["className","inset"],aN=["className","children","checked"],rN=["className","children"],oN=["className","inset"],iN=["className"];var sN=o.createContext(void 0),lN=Ah((e,t)=>{var n;let a=Object.assign({},(Mw(e),e));const[r,i]=o.useState(!!a.open);return(0,_h.jsx)(sN.Provider,{value:{open:r,setOpen:e=>{var t;null===(t=a.onOpenChange)||void 0===t||t.call(a,e),i(e)}},children:(0,_h.jsx)(US,p(p({},a),{},{open:null!==(n=a.open)&&void 0!==n?n:r,onOpenChange:e=>{var t;null===(t=a.onOpenChange)||void 0===t||t.call(a,e),i(e)}}))})});lN.displayName=US.displayName;var cN=VS;Ah((e,t)=>{let{className:n,inset:a,children:r}=e,o=l(e,ZS);return(0,_h.jsxs)(QS,p(p({ref:t,className:wh("stack-scope flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",a&&"pl-8",n)},o),{},{children:[r,(0,_h.jsx)(yv,{className:"ml-auto h-4 w-4"})]}))}).displayName=QS.displayName,Ah((e,t)=>{let{className:n}=e,a=l(e,eN);return(0,_h.jsx)(XS,p({ref:t,className:wh("stack-scope z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
2de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n)},a))}).displayName=XS.displayName;var uN=Ah((e,t)=>{let{className:n,sideOffset:a=4}=e,r=l(e,tN);return(0,_h.jsx)(qS,{children:(0,_h.jsx)(HS,p({ref:t,sideOffset:a,className:wh("stack-scope z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n)},r))})});uN.displayName=HS.displayName;var dN=Ah((e,t)=>{var n;let{className:a,inset:r}=e,i=l(e,nN);const{setOpen:s}=null!==(n=o.useContext(sN))&&void 0!==n?n:cn("No DropdownMenuContext found"),[c,u]=sv(async e=>{var t;await(null===(t=i.onClick)||void 0===t?void 0:t.call(i,e)),s(!1)},[i.onClick]);return(0,_h.jsxs)(KS,p(p({ref:t,className:wh("stack-scope relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r&&"pl-8",a)},i),{},{disabled:u||i.disabled,onClick:i.onClick?e=>{e.preventDefault(),e.stopPropagation(),ad(c(e))}:void 0,children:[(0,_h.jsx)("div",{style:{visibility:u?"visible":"hidden",position:"absolute",inset:0,display:"flex",justifyContent:"center",alignItems:"center"},children:(0,_h.jsx)(Rv,{})}),(0,_h.jsx)("div",{style:{visibility:u?"hidden":"visible"},children:i.children})]}))});dN.displayName=KS.displayName;var hN=Ah((e,t)=>{let{className:n,children:a,checked:r}=e,o=l(e,aN);return(0,_h.jsxs)(YS,p(p({ref:t,className:wh("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),checked:r},o),{},{children:[(0,_h.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,_h.jsx)(JS,{children:(0,_h.jsx)(hv,{className:"h-4 w-4"})})}),a]}))});hN.displayName=YS.displayName,Ah((e,t)=>{let{className:n,children:a}=e,r=l(e,rN);return(0,_h.jsxs)(GS,p(p({ref:t,className:wh("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n)},r),{},{children:[(0,_h.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,_h.jsx)(JS,{children:(0,_h.jsx)(Av,{className:"h-4 w-4 fill-current"})})}),a]}))}).displayName=GS.displayName;var pN=Ah((e,t)=>{let{className:n,inset:a}=e,r=l(e,oN);return(0,_h.jsx)(WS,p({ref:t,className:wh("px-2 py-1.5 text-sm font-semibold",a&&"pl-8",n)},r))});pN.displayName=WS.displayName;var fN=Ah((e,t)=>{let{className:n}=e,a=l(e,iN);return(0,_h.jsx)($S,p({ref:t,className:wh("-mx-1 my-1 h-px bg-muted",n)},a))});fN.displayName=$S.displayName;function mN(e){const t=(0,o.useRef)(null),[n,a]=(0,o.useState)(!1),r="text-ellipsis text-nowrap overflow-x-hidden";return(0,o.useEffect)(()=>{const e=()=>{if(t.current){const e=t.current.scrollWidth>t.current.clientWidth;a(e)}};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),(0,_h.jsx)("div",{className:"relative",style:{minWidth:e.size},children:(0,_h.jsxs)("div",{className:"flex items-center gap-2 absolute inset-0",children:[(0,_h.jsx)("div",{className:r,ref:t,children:n?(0,_h.jsx)(Yk,{tooltip:e.children,children:(0,_h.jsx)("div",{className:r,children:e.children})}):e.children}),e.icon&&(0,_h.jsx)("div",{children:e.icon})]})})}function gN(e){const t=!!e.ignoreAfterYears&&new Date((new Date).setFullYear((new Date).getFullYear()+e.ignoreAfterYears))<e.date,n=e.date.toLocaleTimeString([],{year:"numeric",month:"numeric",day:"numeric",hour:"2-digit",minute:"2-digit"});return(0,_h.jsx)(mN,{size:140,children:t?"Never":n})}function vN(e){var t;return(0,_h.jsxs)(lN,{children:[(0,_h.jsx)(cN,{asChild:!0,children:(0,_h.jsxs)(Uv,{variant:"ghost",className:wh("flex h-8 w-8 p-0 data-[state=open]:bg-muted",e.invisible&&"invisible"),children:[(0,_h.jsx)(jv,{className:"h-4 w-4"}),(0,_h.jsx)("span",{className:"sr-only",children:"Open menu"})]})}),(0,_h.jsx)(uN,{align:"end",className:"min-w-[150px] max-w-[300px] stack-scope",children:null===(t=e.items)||void 0===t?void 0:t.map((e,t)=>{if("-"===e)return(0,_h.jsx)(fN,{},t);const n={onClick:e.onClick,className:wh(e.danger?"text-destructive":""),disabled:e.disabled},a=(0,o.createElement)(dN,p(p({},n),{},{key:t}),e.item);return e.disabled&&e.disabledTooltip?(0,_h.jsx)(Yk,{tooltip:e.disabledTooltip,children:o.cloneElement(a,{className:wh(n.className,"opacity-50 cursor-not-allowed")})},t):a})})]})}function yN(e){return(0,_h.jsx)("div",{className:"flex items-center gap-1 flex-wrap",children:e.badges.map((e,t)=>(0,_h.jsx)(ZD,{variant:"secondary",children:e},t))})}function wN(e){return(0,_h.jsx)("div",{className:"flex flex-col gap-6",children:e.children})}function _N(e){const{t:t}=yw(),n=sg({or:null!==e&&void 0!==e&&e.mockSessions||null!==e&&void 0!==e&&e.mockMode?"return-null":"throw"}),[a,r]=(0,o.useState)(!(null!==e&&void 0!==e&&e.mockSessions)),[i,s]=(0,o.useState)(!1),[l,c]=(0,o.useState)([]),[u,d]=(0,o.useState)(!1),h=null!==e&&void 0!==e&&e.mockSessions?e.mockSessions.map(e=>({id:e.id,isCurrentSession:e.isCurrentSession,isImpersonation:e.isImpersonation||!1,createdAt:e.createdAt,lastUsedAt:e.lastUsedAt,geoInfo:e.geoInfo})):[{id:"current-session",isCurrentSession:!0,createdAt:(new Date).toISOString(),lastUsedAt:(new Date).toISOString(),geoInfo:{ip:"192.168.1.1",cityName:"San Francisco"}},{id:"mobile-session",isCurrentSession:!1,createdAt:new Date(Date.now()-864e5).toISOString(),lastUsedAt:new Date(Date.now()-72e5).toISOString(),geoInfo:{ip:"10.0.0.1",cityName:"New York"}}];(0,o.useEffect)(()=>null!==e&&void 0!==e&&e.mockSessions||null!==e&&void 0!==e&&e.mockMode&&!n?(c(h),void r(!1)):void(n&&rd(async()=>{r(!0);const e=await n.getActiveSessions();c(e),r(!1)})),[n,null===e||void 0===e?void 0:e.mockSessions]);return(0,_h.jsx)(wN,{children:(0,_h.jsxs)("div",{children:[(0,_h.jsxs)("div",{className:"flex justify-between items-center mb-2",children:[(0,_h.jsx)(Rh,{className:"font-medium",children:t("Active Sessions")}),l.filter(e=>!e.isCurrentSession).length>0&&!a&&(u?(0,_h.jsxs)("div",{className:"flex gap-2",children:[(0,_h.jsx)(Uv,{variant:"destructive",size:"sm",loading:i,onClick:async()=>{s(!0);try{if(null!==e&&void 0!==e&&e.mockSessions)c(e=>e.filter(e=>e.isCurrentSession));else if(n){const e=l.filter(e=>!e.isCurrentSession).map(e=>n.revokeSession(e.id));await Promise.all(e),c(e=>e.filter(e=>e.isCurrentSession))}}catch(t){throw gn("all-sessions-revoke",{error:t,sessionIds:l.map(e=>e.id)}),t}finally{s(!1),d(!1)}},children:t("Confirm")}),(0,_h.jsx)(Uv,{variant:"secondary",size:"sm",disabled:i,onClick:()=>d(!1),children:t("Cancel")})]}):(0,_h.jsx)(Uv,{variant:"outline",size:"sm",onClick:()=>d(!0),children:t("Revoke All Other Sessions")}))]}),(0,_h.jsx)(Rh,{variant:"secondary",type:"footnote",className:"mb-4",children:t("These are devices where you're currently logged in. You can revoke access to end a session.")}),a?(0,_h.jsx)(bh,{className:"h-[300px] w-full rounded-md"}):(0,_h.jsx)("div",{className:"border rounded-md",children:(0,_h.jsxs)(WD,{children:[(0,_h.jsx)(KD,{children:(0,_h.jsxs)(GD,{children:[(0,_h.jsx)(JD,{className:"w-[200px]",children:t("Session")}),(0,_h.jsx)(JD,{className:"w-[150px]",children:t("IP Address")}),(0,_h.jsx)(JD,{className:"w-[150px]",children:t("Location")}),(0,_h.jsx)(JD,{className:"w-[150px]",children:t("Last used")}),(0,_h.jsx)(JD,{className:"w-[80px]"})]})}),(0,_h.jsx)(YD,{children:0===l.length?(0,_h.jsx)(GD,{children:(0,_h.jsx)($D,{colSpan:5,className:"text-center py-6",children:(0,_h.jsx)(Rh,{variant:"secondary",children:t("No active sessions foun
2d")})})}):l.map(a=>{var r,o;return(0,_h.jsxs)(GD,{children:[(0,_h.jsx)($D,{children:(0,_h.jsxs)("div",{className:"flex flex-col",children:[(0,_h.jsx)(Rh,{children:a.isCurrentSession?t("Current Session"):t("Other Session")}),a.isImpersonation&&(0,_h.jsx)(ZD,{variant:"secondary",className:"w-fit mt-1",children:t("Impersonation")}),(0,_h.jsx)(Rh,{variant:"secondary",type:"footnote",children:t("Signed in {time}",{time:new Date(a.createdAt).toLocaleDateString()})})]})}),(0,_h.jsx)($D,{children:(0,_h.jsx)(Rh,{children:(null===(r=a.geoInfo)||void 0===r?void 0:r.ip)||t("-")})}),(0,_h.jsx)($D,{children:(0,_h.jsx)(Rh,{children:(null===(o=a.geoInfo)||void 0===o?void 0:o.cityName)||t("Unknown")})}),(0,_h.jsx)($D,{children:(0,_h.jsxs)("div",{className:"flex flex-col",children:[(0,_h.jsx)(Rh,{children:a.lastUsedAt?RD(new Date(a.lastUsedAt)):t("Never")}),(0,_h.jsx)(Rh,{variant:"secondary",type:"footnote",title:a.lastUsedAt?new Date(a.lastUsedAt).toLocaleString():"",children:a.lastUsedAt?new Date(a.lastUsedAt).toLocaleDateString():""})]})}),(0,_h.jsx)($D,{align:"right",children:(0,_h.jsx)(vN,{items:[{item:t("Revoke"),onClick:()=>(async t=>{if(null!==e&&void 0!==e&&e.mockSessions)c(e=>e.filter(e=>e.id!==t));else if(n)try{await n.revokeSession(t),c(e=>e.filter(e=>e.id!==t))}catch(a){throw gn("session-revoke",{sessionId:t,error:a}),a}})(a.id),danger:!0,disabled:a.isCurrentSession,disabledTooltip:a.isCurrentSession?t("You cannot revoke your current session"):void 0}]})})]},a.id)})})]})})]})})}const xN=["children"],bN=["children"];function kN(e){const t=CN(e),n=o.forwardRef((e,n)=>{const{children:a}=e,r=l(e,xN),i=o.Children.toArray(a),s=i.find(AN);if(s){const e=s.props.children,a=i.map(t=>t===s?o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null:t);return(0,_h.jsx)(t,p(p({},r),{},{ref:n,children:o.isValidElement(e)?o.cloneElement(e,void 0,a):null}))}return(0,_h.jsx)(t,p(p({},r),{},{ref:n,children:a}))});return n.displayName="".concat(e,".Slot"),n}function CN(e){const t=o.forwardRef((e,t)=>{const{children:n}=e,a=l(e,bN);if(o.isValidElement(n)){const e=function(e){var t,n;let a=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,r=a&&"isReactWarning"in a&&a.isReactWarning;if(r)return e.ref;if(a=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(n),r=function(e,t){const n=p({},t);for(const a in t){const r=e[a],o=t[a];/^on[A-Z]/.test(a)?r&&o?n[a]=function(){const e=o(...arguments);return r(...arguments),e}:r&&(n[a]=r):"style"===a?n[a]=p(p({},r),o):"className"===a&&(n[a]=[r,o].filter(Boolean).join(" "))}return p(p({},e),n)}(a,n.props);return n.type!==o.Fragment&&(r.ref=t?Yh(t,e):e),o.cloneElement(n,r)}return o.Children.count(n)>1?o.Children.only(null):null});return t.displayName="".concat(e,".SlotClone"),t}var DN=Symbol("radix.slottable");function AN(e){return o.isValidElement(e)&&"function"===typeof e.type&&"__radixId"in e.type&&e.type.__radixId===DN}const EN=["__scopeDialog"],jN=["forceMount"],SN=["__scopeDialog"],NN=["forceMount"],PN=["__scopeDialog","trapFocus","onOpenAutoFocus","onCloseAutoFocus"],TN=["__scopeDialog"],FN=["__scopeDialog"],ON=["__scopeDialog"];var IN="Dialog",[RN,MN]=Lh(IN),[BN,zN]=RN(IN),LN=e=>{const{__scopeDialog:t,children:n,open:a,defaultOpen:r,onOpenChange:i,modal:s=!0}=e,l=o.useRef(null),c=o.useRef(null),[u,d]=kp({prop:a,defaultProp:null!==r&&void 0!==r&&r,onChange:i,caller:IN});return(0,_h.jsx)(BN,{scope:t,triggerRef:l,contentRef:c,contentId:up(),titleId:up(),descriptionId:up(),open:u,onOpenChange:d,onOpenToggle:o.useCallback(()=>d(e=>!e),[d]),modal:s,children:n})};LN.displayName=IN;var UN="DialogTrigger",VN=o.forwardRef((e,t)=>{const{__scopeDialog:n}=e,a=l(e,EN),r=zN(UN,n),o=Gh(t,r.triggerRef);return(0,_h.jsx)(wp.button,p(p({type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":lP(r.open)},a),{},{ref:o,onClick:Mh(e.onClick,r.onOpenToggle)}))});VN.displayName=UN;var qN="DialogPortal",[HN,WN]=RN(qN,{forceMount:void 0}),KN=e=>{const{__scopeDialog:t,forceMount:n,children:a,container:r}=e,i=zN(qN,t);return(0,_h.jsx)(HN,{scope:t,forceMount:n,children:o.Children.map(a,e=>(0,_h.jsx)(Kp,{present:n||i.open,children:(0,_h.jsx)(Xb,{asChild:!0,container:r,children:e})}))})};KN.displayName=qN;var YN="DialogOverlay",GN=o.forwardRef((e,t)=>
2{const n=WN(YN,e.__scopeDialog),{forceMount:a=n.forceMount}=e,r=l(e,jN),o=zN(YN,e.__scopeDialog);return o.modal?(0,_h.jsx)(Kp,{present:a||o.open,children:(0,_h.jsx)($N,p(p({},r),{},{ref:t}))}):null});GN.displayName=YN;var JN=kN("DialogOverlay.RemoveScroll"),$N=o.forwardRef((e,t)=>{const{__scopeDialog:n}=e,a=l(e,SN),r=zN(YN,n);return(0,_h.jsx)(_E,{as:JN,allowPinchZoom:!0,shards:[r.contentRef],children:(0,_h.jsx)(wp.div,p(p({"data-state":lP(r.open)},a),{},{ref:t,style:p({pointerEvents:"auto"},a.style)}))})}),QN="DialogContent",XN=o.forwardRef((e,t)=>{const n=WN(QN,e.__scopeDialog),{forceMount:a=n.forceMount}=e,r=l(e,NN),o=zN(QN,e.__scopeDialog);return(0,_h.jsx)(Kp,{present:a||o.open,children:o.modal?(0,_h.jsx)(ZN,p(p({},r),{},{ref:t})):(0,_h.jsx)(eP,p(p({},r),{},{ref:t}))})});XN.displayName=QN;var ZN=o.forwardRef((e,t)=>{const n=zN(QN,e.__scopeDialog),a=o.useRef(null),r=Gh(t,n.contentRef,a);return o.useEffect(()=>{const e=a.current;if(e)return EA(e)},[]),(0,_h.jsx)(tP,p(p({},e),{},{ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Mh(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:Mh(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:Mh(e.onFocusOutside,e=>e.preventDefault())}))}),eP=o.forwardRef((e,t)=>{const n=zN(QN,e.__scopeDialog),a=o.useRef(!1),r=o.useRef(!1);return(0,_h.jsx)(tP,p(p({},e),{},{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,i;(null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented)||(a.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault());a.current=!1,r.current=!1},onInteractOutside:t=>{var o,i;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(a.current=!0,"pointerdown"===t.detail.originalEvent.type&&(r.current=!0));const s=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&r.current&&t.preventDefault()}}))}),tP=o.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:a,onOpenAutoFocus:r,onCloseAutoFocus:i}=e,s=l(e,PN),c=zN(QN,n),u=o.useRef(null),d=Gh(t,u);return tA(),(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsx)(sA,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:r,onUnmountAutoFocus:i,children:(0,_h.jsx)(A_,p(p({role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":lP(c.open)},s),{},{ref:d,onDismiss:()=>c.onOpenChange(!1)}))}),(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsx)(hP,{titleId:c.titleId}),(0,_h.jsx)(pP,{contentRef:u,descriptionId:c.descriptionId})]})]})}),nP="DialogTitle",aP=o.forwardRef((e,t)=>{const{__scopeDialog:n}=e,a=l(e,TN),r=zN(nP,n);return(0,_h.jsx)(wp.h2,p(p({id:r.titleId},a),{},{ref:t}))});aP.displayName=nP;var rP="DialogDescription",oP=o.forwardRef((e,t)=>{const{__scopeDialog:n}=e,a=l(e,FN),r=zN(rP,n);return(0,_h.jsx)(wp.p,p(p({id:r.descriptionId},a),{},{ref:t}))});oP.displayName=rP;var iP="DialogClose",sP=o.forwardRef((e,t)=>{const{__scopeDialog:n}=e,a=l(e,ON),r=zN(iP,n);return(0,_h.jsx)(wp.button,p(p({type:"button"},a),{},{ref:t,onClick:Mh(e.onClick,()=>r.onOpenChange(!1))}))});function lP(e){return e?"open":"closed"}sP.displayName=iP;var cP="DialogTitleWarning",[uP,dP]=function(e,t){const n=o.createContext(t),a=e=>{const{children:t}=e,a=l(e,Bh),r=o.useMemo(()=>a,Object.values(a));return(0,_h.jsx)(n.Provider,{value:r,children:t})};return a.displayName=e+"Provider",[a,function(a){const r=o.useContext(n);if(r)return r;if(void 0!==t)return t;throw new Error("`".concat(a,"` must be used within `").concat(e,"`"))}]}(cP,{contentName:QN,titleName:nP,docsSlug:"dialog"}),hP=e=>{let{titleId:t}=e;const n=dP(cP),a="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return o.useEffect(()=>{if(t){document.getElementById(t)||console.error(a)}},[a,t]),null},pP=e=>{let{contentRef:t,descriptionId:n}=e;const a=dP("DialogDescriptionWarning"),r="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(a.contentName,"}.");return o.useEffect(()=>{var e;const a=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");if(n&&a){document.getElementById(n)||console.warn(r)}},[r,t,n]),null},fP=LN,mP=VN,gP=KN,vP=GN,yP=XN,wP=aP,_P=oP,xP=sP;const bP=["className"],kP=["className","children","overlayProps","noCloseButton"],CP=["className"],DP=["className"],AP=["className"],EP=["className"],jP=["className"];var SP=fP,NP=mP,PP=gP,TP=Ah((e,t)=>{let{className:n}=e,a=l(e,bP);return(0,_h.jsx)(vP,p({ref:t,className:wh("stack-scope fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in",n)},a))});TP.displayName=vP.displayName;var FP=Ah((e,t)=>{let{className:n,children:a,overlayProps:r,noCloseButton:o}=e,i=l(e,kP);return(0,_h.jsxs)(PP,{children:[(0,_h.jsx)(TP,p({},r)),(0,_h.jsxs)(yP,p(p({ref:t,className:wh("stack-scope fixed left-[50%] top-[50%] max-h-screen z-50 flex flex-col w-full max-w-lg translate-x-[-50%] translate-y-[-50%] border bg-background p-6 shadow-lg duration-100 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
2nded-lg",n)},i),{},{children:[a,!o&&(0,_h.jsxs)(xP,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,_h.jsx)(bv,{className:"h-4 w-4"}),(0,_h.jsx)("span",{className:"sr-only",children:"Close"})]})]}))]})});FP.displayName=yP.displayName;var OP=e=>{let{className:t}=e,n=l(e,CP);return(0,_h.jsx)("div",p({className:wh("stack-scope overflow-y-auto flex flex-col gap-4 w-[calc(100%+3rem)] -mx-6 px-6 my-2 py-2",t)},n))},IP=e=>{let{className:t}=e,n=l(e,DP);return(0,_h.jsx)("div",p({className:wh("stack-scope flex flex-col space-y-1.5 text-center sm:text-left",t)},n))};IP.displayName="DialogHeader";var RP=e=>{let{className:t}=e,n=l(e,AP);return(0,_h.jsx)("div",p({className:wh("stack-scope flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t)},n))};RP.displayName="DialogFooter";var MP=Ah((e,t)=>{let{className:n}=e,a=l(e,EP);return(0,_h.jsx)(wP,p({ref:t,className:wh("stack-scope text-lg font-semibold leading-none tracking-tight",n)},a))});MP.displayName=wP.displayName;var BP=Ah((e,t)=>{let{className:n}=e,a=l(e,jP);return(0,_h.jsx)(_P,p({ref:t,className:wh("stack-scope text-sm text-muted-foreground",n)},a))});BP.displayName=_P.displayName;const zP=["className","variant"],LP=["className"],UP=["className"];var VP=Fh("stack-scope relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive bg-destructive/5",success:"border-success/50 text-success dark:border-success [&>svg]:text-success bg-success/5"}},defaultVariants:{variant:"default"}}),qP=Ah((e,t)=>{let{className:n,variant:a}=e,r=l(e,zP);return(0,_h.jsx)("div",p({ref:t,role:"alert",className:wh(VP({variant:a}),n)},r))});function HP(e){const t=o.useRef({value:e,previous:e});return o.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}qP.displayName="Alert",Ah((e,t)=>{let{className:n}=e,a=l(e,LP);return(0,_h.jsx)("h5",p({ref:t,className:wh("mb-1 font-medium leading-none tracking-tight",n)},a))}).displayName="AlertTitle",Ah((e,t)=>{let{className:n}=e,a=l(e,UP);return(0,_h.jsx)("div",p({ref:t,className:wh("text-sm [&_p]:leading-relaxed",n)},a))}).displayName="AlertDescription";const WP=["__scopeCheckbox","onKeyDown","onClick"],KP=["__scopeCheckbox","name","checked","defaultChecked","required","disabled","value","onCheckedChange","form"],YP=["__scopeCheckbox","forceMount"],GP=["__scopeCheckbox"];var JP="Checkbox",[$P,QP]=Lh(JP),[XP,ZP]=$P(JP);function eT(e){const{__scopeCheckbox:t,checked:n,children:a,defaultChecked:r,disabled:i,form:s,name:l,onCheckedChange:c,required:u,value:d="on",internal_do_not_use_render:h}=e,[f,m]=kp({prop:n,defaultProp:null!==r&&void 0!==r&&r,onChange:c,caller:JP}),[g,v]=o.useState(null),[y,w]=o.useState(null),_=o.useRef(!1),x=!g||(!!s||!!g.closest("form")),b={checked:f,disabled:i,setChecked:m,control:g,setControl:v,name:l,form:s,value:d,hasConsumerStoppedPropagationRef:_,required:u,defaultChecked:!cT(r)&&r,isFormControl:x,bubbleInput:y,setBubbleInput:w};return(0,_h.jsx)(XP,p(p({scope:t},b),{},{children:lT(h)?h(b):a}))}var tT="CheckboxTrigger",nT=o.forwardRef((e,t)=>{let{__scopeCheckbox:n,onKeyDown:a,onClick:r}=e,i=l(e,WP);const{control:s,value:c,disabled:u,checked:d,required:h,setControl:f,setChecked:m,hasConsumerStoppedPropagationRef:g,isFormControl:v,bubbleInput:y}=ZP(tT,n),w=Gh(t,f),_=o.useRef(d);return o.useEffect(()=>{const e=null===s||void 0===s?void 0:s.form;if(e){const t=()=>m(_.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[s,m]),(0,_h.jsx)(wp.button,p(p({type:"button",role:"checkbox","aria-checked":cT(d)?"mixed":d,"aria-required":h,"data-state":uT(d),"data-disabled":u?"":void 0,disabled:u,value:c},i),{},{ref:w,onKeyDown:Mh(a,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:Mh(r,e=>{m(e=>!!cT(e)||!e),y&&v&&(g.current=e.isPropagationStopped(),g.current||e.stopPropagation())})}))});nT.displayName=tT;var aT=o.forwardRef((e,t)=>
2{const{__scopeCheckbox:n,name:a,checked:r,defaultChecked:o,required:i,disabled:s,value:c,onCheckedChange:u,form:d}=e,h=l(e,KP);return(0,_h.jsx)(eT,{__scopeCheckbox:n,checked:r,defaultChecked:o,disabled:s,required:i,onCheckedChange:u,name:a,form:d,value:c,internal_do_not_use_render:e=>{let{isFormControl:a}=e;return(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsx)(nT,p(p({},h),{},{ref:t,__scopeCheckbox:n})),a&&(0,_h.jsx)(sT,{__scopeCheckbox:n})]})}})});aT.displayName=JP;var rT="CheckboxIndicator",oT=o.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:a}=e,r=l(e,YP),o=ZP(rT,n);return(0,_h.jsx)(Kp,{present:a||cT(o.checked)||!0===o.checked,children:(0,_h.jsx)(wp.span,p(p({"data-state":uT(o.checked),"data-disabled":o.disabled?"":void 0},r),{},{ref:t,style:p({pointerEvents:"none"},e.style)}))})});oT.displayName=rT;var iT="CheckboxBubbleInput",sT=o.forwardRef((e,t)=>{let{__scopeCheckbox:n}=e,a=l(e,GP);const{control:r,hasConsumerStoppedPropagationRef:i,checked:s,defaultChecked:c,required:u,disabled:d,name:h,value:f,form:m,bubbleInput:g,setBubbleInput:v}=ZP(iT,n),y=Gh(t,v),w=HP(s),_=Db(r);o.useEffect(()=>{const e=g;if(!e)return;const t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set,a=!i.current;if(w!==s&&n){const t=new Event("click",{bubbles:a});e.indeterminate=cT(s),n.call(e,!cT(s)&&s),e.dispatchEvent(t)}},[g,w,s,i]);const x=o.useRef(!cT(s)&&s);return(0,_h.jsx)(wp.input,p(p({type:"checkbox","aria-hidden":!0,defaultChecked:null!==c&&void 0!==c?c:x.current,required:u,disabled:d,name:h,value:f,form:m},a),{},{tabIndex:-1,ref:y,style:p(p(p({},a.style),_),{},{position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"})}))});function lT(e){return"function"===typeof e}function cT(e){return"indeterminate"===e}function uT(e){return cT(e)?"indeterminate":e?"checked":"unchecked"}sT.displayName=iT;const dT=["className"];var hT=Ah((e,t)=>{let{className:n}=e,a=l(e,dT);return(0,_h.jsx)(aT,p(p({ref:t,className:wh("stack-scope peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",n)},a),{},{children:(0,_h.jsx)(oT,{className:wh("flex items-center justify-center text-current"),children:(0,_h.jsx)(hv,{className:"h-4 w-4"})})}))});function pT(e){var t,n,a;const r=!0===e.okButton?{}:e.okButton,i=!0===e.cancelButton?{}:e.cancelButton,s=!(!r&&!i),l=!0===e.title?e.cancelButton?"Confirmation":"Alert":e.title,c=e.titleIcon||(e.danger?Lk:Uk),[u,d]=o.useState(!!e.open),h=null!==(t=e.open)&&void 0!==t?t:u,[f,m]=o.useState(!1),g=(0,o.useId)(),[v,y]=o.useState(0),w=t=>{var n,a;t?y(v+1):(null===(a=e.onClose)||void 0===a||a.call(e),m(!1));d(t),null===(n=e.onOpenChange)||void 0===n||n.call(e,t)};return(0,_h.jsxs)(SP,{open:h,onOpenChange:w,children:[e.trigger&&(0,_h.jsx)(NP,{asChild:!0,children:e.trigger}),(0,_h.jsxs)(FP,{onInteractOutside:e.preventClose?e=>e.preventDefault():void 0,className:e.preventClose?"[&>button]:hidden":"",children:[(0,_h.jsxs)(IP,{children:[(0,_h.jsxs)(MP,{className:"flex items-center",children:[(0,_h.jsx)(c,{className:"h-4 w-4 mr-2"}),l]}),(0,_h.jsx)(BP,{children:e.description})]}),(0,_h.jsxs)(OP,{className:"pb-2",children:[(0,_h.jsx)("div",{children:(0,_h.jsx)(o.Suspense,{fallback:(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsx)(bh,{className:"h-9 w-2/3 self-center"}),(0,_h.jsx)(bh,{className:"h-3 w-16 mt-8"}),(0,_h.jsx)(bh,{className:"h-9 w-full mt-1"}),(0,_h.jsx)(bh,{className:"h-3 w-24 mt-2"}),(0,_h.jsx)(bh,{className:"h-9 w-full mt-1"}),(0,_h.jsx)(bh,{className:"h-9 w-full mt-6"})]}),children:e.children})}),e.confirmText&&(0,_h.jsx)(qP,{children:(0,_h.jsxs)(Kg,{className:"flex gap-4 items-center",children:[(0,_h.jsx)(hT,{id:g,checked:f,onCheckedChange:e=>m(!!e)}),e.confirmText]})})]}),s&&(0,_h.jsxs)(RP,{className:"gap-2",children:[i&&(0,_h.jsx)(Uv,p(p({variant:"secondary",color:"neutral",onClick:async()=>{var e;"prevent-close"!==await(null===(e=i.onClick)||void 0===e?void 0:e.call(i))&&w(!1)}},i.props),{},{children:null!==(n=i.label)&&void 0!==n?n:"Cancel"})),r&&(0,_h.jsx)(Uv,p(p({disabled:!!e.confirmText&&!f,variant:e.danger?"destructive":"default",onClick:async()=>{var e;"prevent-close"!==await(null===(e=r.onClick)||void 0===e?void 0:e.call(r))&&w(!1)}},r.props),{},{children:null!==(a=r.label)&&void 0!==a?a:"OK"}))]})]})]},v)}
2hT.displayName=aT.displayName;const fT=["className"];var mT=Ah((e,t)=>{let{className:n}=e,a=l(e,fT);return(0,_h.jsx)("textarea",p({className:wh("stack-scope flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",n),ref:t},a))});mT.displayName="Textarea";const gT=rv("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);var vT=0;var yT=new Map,wT=e=>{if(yT.has(e))return;const t=setTimeout(()=>{yT.delete(e),kT({type:"REMOVE_TOAST",toastId:e})},1e6);yT.set(e,t)},_T=(e,t)=>{switch(t.type){case"ADD_TOAST":return p(p({},e),{},{toasts:[t.toast,...e.toasts].slice(0,1)});case"UPDATE_TOAST":return p(p({},e),{},{toasts:e.toasts.map(e=>e.id===t.toast.id?p(p({},e),t.toast):e)});case"DISMISS_TOAST":{const{toastId:n}=t;return n?wT(n):e.toasts.forEach(e=>{wT(e.id)}),p(p({},e),{},{toasts:e.toasts.map(e=>e.id===n||void 0===n?p(p({},e),{},{open:!1}):e)})}case"REMOVE_TOAST":return void 0===t.toastId?p(p({},e),{},{toasts:[]}):p(p({},e),{},{toasts:e.toasts.filter(e=>e.id!==t.toastId)})}},xT=[],bT={toasts:[]};function kT(e){bT=_T(bT,e),xT.forEach(e=>{e(bT)})}function CT(e){let t=Object.assign({},(Mw(e),e));const n=(vT=(vT+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>kT({type:"DISMISS_TOAST",toastId:n});return kT({type:"ADD_TOAST",toast:p(p({},t),{},{id:n,open:!0,onOpenChange:e=>{e||a()}})}),{id:n,dismiss:a,update:e=>kT({type:"UPDATE_TOAST",toast:p(p({},e),{},{id:n})})}}var DT=Ah((e,t)=>{const{toast:n}=function(){const[e,t]=o.useState(bT);return o.useEffect(()=>(xT.push(t),()=>{const e=xT.indexOf(t);e>-1&&xT.splice(e,1)}),[e]),p(p({},e),{},{toast:CT,dismiss:e=>kT({type:"DISMISS_TOAST",toastId:e})})}();return(0,_h.jsx)(Uv,p(p({variant:"secondary"},e),{},{className:wh("h-6 w-6 p-1",e.className),ref:t,onClick:async function(){for(var t,a=arguments.length,r=new Array(a),o=0;o<a;o++)r[o]=arguments[o];await(null===(t=e.onClick)||void 0===t?void 0:t.call(e,...r));try{await navigator.clipboard.writeText(e.content),n({description:"Copied to clipboard!",variant:"success"})}catch(oL){n({description:"Failed to copy to clipboard",variant:"destructive"})}},children:(0,_h.jsx)(gT,{})}))});function AT(e){return(0,_h.jsxs)("div",{children:[e.label&&(0,_h.jsxs)(Kg,{className:"flex items-center gap-2 mb-2",children:[e.label,e.helper&&(0,_h.jsx)(Yk,{type:"info",tooltip:e.helper})]}),"textarea"===e.type?(0,_h.jsxs)("div",{className:"relative pr-2",children:[(0,_h.jsx)(mT,{readOnly:!0,value:e.value,style:{height:e.height,fontFamily:e.monospace?"ui-monospace, monospace":"inherit",whiteSpace:e.monospace?"pre":"normal",resize:e.fixedSize?"none":"vertical"}}),(0,_h.jsx)(DT,{content:e.value,className:"absolute right-4 top-2"})]}):(0,_h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_h.jsx)(Jg,{readOnly:!0,value:e.value,style:{fontFamily:e.monospace?"ui-monospace, monospace":"inherit"}}),(0,_h.jsx)(DT,{content:e.value})]})]})}DT.displayName="CopyButton";var ET=63072e8,jT={864e5:"1 day",6048e5:"7 days",2592e6:"30 days",7776e6:"90 days",31536e6:"1 year",[ET]:"Never"};function ST(e){const{t:t}=yw(),[n,a]=(sg({or:e.mockMode?"return-null":"redirect"}),(0,o.useState)(!1)),r=gs({description:cs().defined().nonEmpty(t("Description is required")),expiresIn:cs().defined()}),{register:i,handleSubmit:s,formState:{errors:l},reset:c}=mw({resolver:Ag(r),defaultValues:{description:"",expiresIn:Object.keys(jT)[2]}}),u=async t=>{a(!0);try{const n=new Date(Date.now()+parseInt(t.expiresIn)),a=await e.createApiKey({description:t.description,expiresAt:n});e.onKeyCreated&&e.onKeyCreated(a),c(),e.onOpenChange(!1)}catch(n){gn("Failed to create API key",{error:n})}finally{a(!1)}};return(0,_h.jsx)(pT,{open:e.open,onOpenChange:e.onOpenChange,title:t("Create API Key"),description:t("API keys grant programmatic access to your account."),children:(0,_h.jsxs)("form",{onSubmit:e=>{e.preventDefault(),rd(s(u))},className:"space-y-4",children:[(0,_h.jsxs)("div",{className:"space-y-2",children:[(0,_h.jsx)(Kg,{htmlFor:"description",children:t("Description")}),(0,_h.jsx)(Jg,p({id:"description",placeholder:t("e.g. Development, Production, CI/CD")},i("description"))),l.description&&(0,_h.jsx)(ww,{text:l.description.message})]}),(0,_h.jsxs)("div",{className:"space-y-2",children:[(0,_h.jsx)(Kg,{htmlFor:"expiresIn",children:t("Expires In")}),(0,_h.jsx)("select",p(p({id:"expiresIn",className:"w-full p-2 border border-input rounded-md bg-background"},i("expiresIn")),{},{children:Object.entries(jT).map(e=>{let[n,a]=e;return(0,_h.jsx)("option",{value:n,children:t(a)},n)})}
2)),l.expiresIn&&(0,_h.jsx)(ww,{text:l.expiresIn.message})]}),(0,_h.jsxs)("div",{className:"flex justify-end gap-2 pt-4",children:[(0,_h.jsx)(Uv,{type:"button",variant:"secondary",onClick:()=>{c(),e.onOpenChange(!1)},children:t("Cancel")}),(0,_h.jsx)(Uv,{type:"submit",loading:n,children:t("Create")})]})]})})}function NT(e){var t,n;const{t:a}=yw();return(0,_h.jsx)(pT,{open:!!e.apiKey,title:a("API Key"),okButton:{label:a("Close")},onClose:e.onClose,preventClose:!0,confirmText:a("I understand that I will not be able to view this key again."),children:(0,_h.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,_h.jsxs)(Rh,{children:[a("Here is your API key.")," ",(0,_h.jsx)("span",{className:"font-bold",children:a("Copy it to a safe place. You will not be able to view it again.")})]}),(0,_h.jsx)(AT,{type:"input",monospace:!0,value:null!==(t=null===(n=e.apiKey)||void 0===n?void 0:n.value)&&void 0!==t?t:"",label:a("Secret API Key")})]})})}function PT(e){var t,n,a;return(0,_h.jsx)(Jg,{placeholder:e.placeholder,value:e.keyName?"".concat(null!==(t=null===(n=e.table.getColumn(e.keyName))||void 0===n?void 0:n.getFilterValue())&&void 0!==t?t:""):null!==(a=e.table.getState().globalFilter)&&void 0!==a?a:"",onChange:t=>{var n;return e.keyName?null===(n=e.table.getColumn(e.keyName))||void 0===n?void 0:n.setFilterValue(t.target.value):e.table.setGlobalFilter(t.target.value)},className:wh("h-8 w-[250px]",e.className)})}var TT=.999,FT=/[\\\/_+.#"@\[\(\{&]/,OT=/[\\\/_+.#"@\[\(\{&]/g,IT=/[\s-]/,RT=/[\s-]/g;function MT(e,t,n,a,r,o,i){if(o===t.length)return r===e.length?1:.99;var s="".concat(r,",").concat(o);if(void 0!==i[s])return i[s];for(var l,c,u,d,h=a.charAt(o),p=n.indexOf(h,r),f=0;p>=0;)(l=MT(e,t,n,a,p+1,o+1,i))>f&&(p===r?l*=1:FT.test(e.charAt(p-1))?(l*=.8,(u=e.slice(r,p-1).match(OT))&&r>0&&(l*=Math.pow(TT,u.length))):IT.test(e.charAt(p-1))?(l*=.9,(d=e.slice(r,p-1).match(RT))&&r>0&&(l*=Math.pow(TT,d.length))):(l*=.17,r>0&&(l*=Math.pow(TT,p-r))),e.charAt(p)!==t.charAt(o)&&(l*=.9999)),(l<.1&&n.charAt(p-1)===a.charAt(o+1)||a.charAt(o+1)===a.charAt(o)&&n.charAt(p-1)!==a.charAt(o))&&(.1*(c=MT(e,t,n,a,p+1,o+2,i))>l&&(l=.1*c)),l>f&&(f=l),p=n.indexOf(h,p+1);return i[s]=f,f}function BT(e){return e.toLowerCase().replace(RT," ")}function zT(e,t,n){return MT(e=n&&n.length>0?"".concat(e+" "+n.join(" ")):e,t,BT(e),BT(t),0,0,{})}const LT=["asChild"];var UT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=Tg("Primitive.".concat(t)),a=o.forwardRef((e,a)=>{const{asChild:r}=e,o=l(e,LT),i=r?n:t;return"undefined"!==typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,_h.jsx)(i,p(p({},o),{},{ref:a}))});return a.displayName="Primitive.".concat(t),p(p({},e),{},{[t]:a})},{});const VT=["label","children","value","onValueChange","filter","shouldFilter","loop","disablePointerSelection","vimBindings"],qT=["disabled","value","onSelect","forceMount","keywords"],HT=["heading","children","forceMount"],WT=["alwaysRender"],KT=["onValueChange"],YT=["children","label"],GT=["open","onOpenChange","overlayClassName","contentClassName","container"],JT=["progress","children","label"];var $T='[cmdk-group=""]',QT='[cmdk-group-items=""]',XT='[cmdk-item=""]',ZT="".concat(XT,':not([aria-disabled="true"])'),eF="cmdk-item-select",tF="data-value",nF=(e,t,n)=>zT(e,t,n),aF=o.createContext(void 0),rF=()=>o.useContext(aF),oF=o.createContext(void 0),iF=()=>o.useContext(oF),sF=o.createContext(void 0),lF=o.forwardRef((e,t)=>{let n=bF(()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),a=bF(()=>new Set),r=bF(()=>new Map),i=bF(()=>new Map),s=bF(()=>new Set),c=_F(e),{label:u,children:d,value:h,onValueChange:f,filter:m,shouldFilter:g,loop:v,disablePointerSelection:y=!1,vimBindings:w=!0}=e,_=l(e,VT),x=up(),b=up(),k=up(),C=o.useRef(null),D=DF();xF(()=>{if(void 0!==h){let e=h.trim();n.current.value=e,A.emit()}},[h]),xF(()=>{D(6,T)},[]);let A=o.useMemo(()=>({subscribe:e=>(s.current.add(e),()=>s.current.delete(e)),snapshot:()=>n.current,setState:(e,t,a)=>{var r,o,i,s;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)P(
2),S(),D(1,N);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(k);e?e.focus():null==(r=document.getElementById(x))||r.focus()}if(D(7,()=>{var e;n.current.selectedItemId=null==(e=F())?void 0:e.id,A.emit()}),a||D(5,T),void 0!==(null==(o=c.current)?void 0:o.value)){let e=null!=t?t:"";return void(null==(s=(i=c.current).onValueChange)||s.call(i,e))}}A.emit()}},emit:()=>{s.current.forEach(e=>e())}}),[]),E=o.useMemo(()=>({value:(e,t,a)=>{var r;t!==(null==(r=i.current.get(e))?void 0:r.value)&&(i.current.set(e,{value:t,keywords:a}),n.current.filtered.items.set(e,j(t,a)),D(2,()=>{S(),A.emit()}))},item:(e,t)=>(a.current.add(e),t&&(r.current.has(t)?r.current.get(t).add(e):r.current.set(t,new Set([e]))),D(3,()=>{P(),S(),n.current.value||N(),A.emit()}),()=>{i.current.delete(e),a.current.delete(e),n.current.filtered.items.delete(e);let t=F();D(4,()=>{P(),(null==t?void 0:t.getAttribute("id"))===e&&N(),A.emit()})}),group:e=>(r.current.has(e)||r.current.set(e,new Set),()=>{i.current.delete(e),r.current.delete(e)}),filter:()=>c.current.shouldFilter,label:u||e["aria-label"],getDisablePointerSelection:()=>c.current.disablePointerSelection,listId:x,inputId:k,labelId:b,listInnerRef:C}),[]);function j(e,t){var a,r;let o=null!=(r=null==(a=c.current)?void 0:a.filter)?r:nF;return e?o(e,n.current.search,t):0}function S(){if(!n.current.search||!1===c.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(n=>{let a=r.current.get(n),o=0;a.forEach(t=>{let n=e.get(t);o=Math.max(n,o)}),t.push([n,o])});let a=C.current;O().sort((t,n)=>{var a,r;let o=t.getAttribute("id"),i=n.getAttribute("id");return(null!=(a=e.get(i))?a:0)-(null!=(r=e.get(o))?r:0)}).forEach(e=>{let t=e.closest(QT);t?t.appendChild(e.parentElement===t?e:e.closest("".concat(QT," > *"))):a.appendChild(e.parentElement===a?e:e.closest("".concat(QT," > *")))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let n=null==(t=C.current)?void 0:t.querySelector("".concat($T,"[").concat(tF,'="').concat(encodeURIComponent(e[0]),'"]'));null==n||n.parentElement.appendChild(n)})}function N(){let e=O().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(tF);A.setState("value",t||void 0)}function P(){var e,t,o,s;if(!n.current.search||!1===c.current.shouldFilter)return void(n.current.filtered.count=a.current.size);n.current.filtered.groups=new Set;let l=0;for(let r of a.current){let a=j(null!=(t=null==(e=i.current.get(r))?void 0:e.value)?t:"",null!=(s=null==(o=i.current.get(r))?void 0:o.keywords)?s:[]);n.current.filtered.items.set(r,a),a>0&&l++}for(let[a,i]of r.current)for(let e of i)if(n.current.filtered.items.get(e)>0){n.current.filtered.groups.add(a);break}n.current.filtered.count=l}function T(){var e,t,n;let a=F();a&&((null==(e=a.parentElement)?void 0:e.firstChild)===a&&(null==(n=null==(t=a.closest($T))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),a.scrollIntoView({block:"nearest"}))}function F(){var e;return null==(e=C.current)?void 0:e.querySelector("".concat(XT,'[aria-selected="true"]'))}function O(){var e;return Array.from((null==(e=C.current)?void 0:e.querySelectorAll(ZT))||[])}function I(e){let t=O()[e];t&&A.setState("value",t.getAttribute(tF))}function R(e){var t;let n=F(),a=O(),r=a.findIndex(e=>e===n),o=a[r+e];null!=(t=c.current)&&t.loop&&(o=r+e<0?a[a.length-1]:r+e===a.length?a[0]:a[r+e]),o&&A.setState("value",o.getAttribute(tF))}function M(e){let t,n=F(),a=null==n?void 0:n.closest($T);for(;a&&!t;)a=e>0?yF(a,$T):wF(a,$T),t=null==a?void 0:a.querySelector(ZT);t?A.setState("value",t.getAttribute(tF)):R(e)}let B=()=>I(O().length-1),z=e=>{e.preventDefault(),e.metaKey?B():e.altKey?M(1):R(1)},L=e=>{e.preventDefault(),e.metaKey?I(0):e.altKey?M(-1):R(-1)};return o.createElement(UT.div,p(p({ref:t,tabIndex:-1},_),{},{"cmdk-root":"",onKeyDown:e=>{var t;null==(t=_.onKeyDown)||t.call(_,e);let n=e.nativeEvent.isComposing||229===e.keyCode;if(!e.defaultPrevented&&!n)switch(e.key){case"n":case"j":w&&e.ctrlKey&&z(e);break;case"ArrowDown":z(e);break;case"p":case"k":w&&e.ctrlKey&&L(e);break;case"ArrowUp":L(e);break;case"Home":e.preventDefault(),I(0);break;case"End":e.preventDefault(),B();break;case"Enter":{e.preventDefault();let t=F();if(t){let e=new Event(eF);t.dispatchEvent(e)}}}}}),o.createElement("label",{"cmdk-label":"",htmlFor:E.inputId,id:E.labelId,style:EF},u),AF(e,e=>o.createElement(oF.Provider,{value:A},o.createElement(aF.Provider,{value:E},e))))}),cF=o.forwardRef((e,t)=>
2{var n,a;let r=up(),i=o.useRef(null),s=o.useContext(sF),c=rF(),u=_F(e),d=null!=(a=null==(n=u.current)?void 0:n.forceMount)?a:null==s?void 0:s.forceMount;xF(()=>{if(!d)return c.item(r,null==s?void 0:s.id)},[d]);let h=CF(r,i,[e.value,e.children,i],e.keywords),f=iF(),m=kF(e=>e.value&&e.value===h.current),g=kF(e=>!(!d&&!1!==c.filter())||(!e.search||e.filtered.items.get(r)>0));function v(){var e,t;y(),null==(t=(e=u.current).onSelect)||t.call(e,h.current)}function y(){f.setState("value",h.current,!0)}if(o.useEffect(()=>{let t=i.current;if(t&&!e.disabled)return t.addEventListener(eF,v),()=>t.removeEventListener(eF,v)},[g,e.onSelect,e.disabled]),!g)return null;let{disabled:w,value:_,onSelect:x,forceMount:b,keywords:k}=e,C=l(e,qT);return o.createElement(UT.div,p(p({ref:Yh(i,t)},C),{},{id:r,"cmdk-item":"",role:"option","aria-disabled":!!w,"aria-selected":!!m,"data-disabled":!!w,"data-selected":!!m,onPointerMove:w||c.getDisablePointerSelection()?void 0:y,onClick:w?void 0:v}),e.children)}),uF=o.forwardRef((e,t)=>{let{heading:n,children:a,forceMount:r}=e,i=l(e,HT),s=up(),c=o.useRef(null),u=o.useRef(null),d=up(),h=rF(),f=kF(e=>!(!r&&!1!==h.filter())||(!e.search||e.filtered.groups.has(s)));xF(()=>h.group(s),[]),CF(s,c,[e.value,e.heading,u]);let m=o.useMemo(()=>({id:s,forceMount:r}),[r]);return o.createElement(UT.div,p(p({ref:Yh(c,t)},i),{},{"cmdk-group":"",role:"presentation",hidden:!f||void 0}),n&&o.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:d},n),AF(e,e=>o.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?d:void 0},o.createElement(sF.Provider,{value:m},e))))}),dF=o.forwardRef((e,t)=>{let{alwaysRender:n}=e,a=l(e,WT),r=o.useRef(null),i=kF(e=>!e.search);return n||i?o.createElement(UT.div,p(p({ref:Yh(r,t)},a),{},{"cmdk-separator":"",role:"separator"})):null}),hF=o.forwardRef((e,t)=>{let{onValueChange:n}=e,a=l(e,KT),r=null!=e.value,i=iF(),s=kF(e=>e.search),c=kF(e=>e.selectedItemId),u=rF();return o.useEffect(()=>{null!=e.value&&i.setState("search",e.value)},[e.value]),o.createElement(UT.input,p(p({ref:t},a),{},{"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":c,id:u.inputId,type:"text",value:r?e.value:s,onChange:e=>{r||i.setState("search",e.target.value),null==n||n(e.target.value)}}))}),pF=o.forwardRef((e,t)=>{let{children:n,label:a="Suggestions"}=e,r=l(e,YT),i=o.useRef(null),s=o.useRef(null),c=kF(e=>e.selectedItemId),u=rF();return o.useEffect(()=>{if(s.current&&i.current){let e,t=s.current,n=i.current,a=new ResizeObserver(()=>{e=requestAnimationFrame(()=>{let e=t.offsetHeight;n.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")})});return a.observe(t),()=>{cancelAnimationFrame(e),a.unobserve(t)}}},[]),o.createElement(UT.div,p(p({ref:Yh(i,t)},r),{},{"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":c,"aria-label":a,id:u.listId}),AF(e,e=>o.createElement("div",{ref:Yh(s,u.listInnerRef),"cmdk-list-sizer":""},e)))}),fF=o.forwardRef((e,t)=>{let{open:n,onOpenChange:a,overlayClassName:r,contentClassName:i,container:s}=e,c=l(e,GT);return o.createElement(fP,{open:n,onOpenChange:a},o.createElement(gP,{container:s},o.createElement(vP,{"cmdk-overlay":"",className:r}),o.createElement(yP,{"aria-label":e.label,"cmdk-dialog":"",className:i},o.createElement(lF,p({ref:t},c)))))}),mF=o.forwardRef((e,t)=>kF(e=>0===e.filtered.count)?o.createElement(UT.div,p(p({ref:t},e),{},{"cmdk-empty":"",role:"presentation"})):null),gF=o.forwardRef((e,t)=>{let{progress:n,children:a,label:r="Loading..."}=e,i=l(e,JT);return o.createElement(UT.div,p(p({ref:t},i),{},{"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":r}),AF(e,e=>o.createElement("div",{"aria-hidden":!0},e)))}),vF=Object.assign(lF,{List:pF,Item:cF,Input:hF,Group:uF,Separator:dF,Dialog:fF,Empty:mF,Loading:gF});function yF(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function wF(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function _F(e){let t=o.useRef(e);return xF(()=>{t.current=e}),t}var xF="undefined"==typeof window?o.useEffect:o.useLayoutEffect;function bF(e){let t=o.useRef();return void 0===t.current&&(t.current=e()),t}function kF(e){let t=iF(),n=()=>e(t.snapshot());return o.useSyncExternalStore(t.subscribe,n,n)}
2function CF(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],r=o.useRef(),i=rF();return xF(()=>{var o;let s=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():r.current}})(),l=a.map(e=>e.trim());i.value(e,s,l),null==(o=t.current)||o.setAttribute(tF,s),r.current=s}),r}var DF=()=>{let[e,t]=o.useState(),n=bF(()=>new Map);return xF(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,a)=>{n.current.set(e,a),t({})}};function AF(e,t){let{asChild:n,children:a}=e;return n&&o.isValidElement(a)?o.cloneElement(function(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}(a),{ref:a.ref},t(a.props.children)):t(a)}var EF={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const jF=["className"],SF=["className"],NF=["className"],PF=["className"],TF=["className"],FF=["className"];var OF=Ah((e,t)=>{let{className:n}=e,a=l(e,jF);return(0,_h.jsx)(vF,p({ref:t,className:wh("stack-scope flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",n)},a))});OF.displayName=vF.displayName;var IF=Ah((e,t)=>{let{className:n}=e,a=l(e,SF);return(0,_h.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,_h.jsx)(Nv,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,_h.jsx)(vF.Input,p({ref:t,className:wh("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",n)},a))]})});IF.displayName=vF.Input.displayName;var RF=Ah((e,t)=>{let{className:n}=e,a=l(e,NF);return(0,_h.jsx)(vF.List,p({ref:t,className:wh("max-h-[300px] overflow-y-auto overflow-x-hidden",n)},a))});RF.displayName=vF.List.displayName;var MF=Ah((e,t)=>(0,_h.jsx)(vF.Empty,p({ref:t,className:"py-6 text-center text-sm"},e)));MF.displayName=vF.Empty.displayName;var BF=Ah((e,t)=>{let{className:n}=e,a=l(e,PF);return(0,_h.jsx)(vF.Group,p({ref:t,className:wh("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",n)},a))});BF.displayName=vF.Group.displayName;var zF=Ah((e,t)=>{let{className:n}=e,a=l(e,TF);return(0,_h.jsx)(vF.Separator,p({ref:t,className:wh("-mx-1 h-px bg-border",n)},a))});zF.displayName=vF.Separator.displayName;var LF=Ah((e,t)=>{let{className:n}=e,a=l(e,FF);return(0,_h.jsx)(vF.Item,p({ref:t,className:wh("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50",n)},a))});LF.displayName=vF.Item.displayName;const UF=["children"],VF=["children"];function qF(e){const t=HF(e),n=o.forwardRef((e,n)=>{const{children:a}=e,r=l(e,UF),i=o.Children.toArray(a),s=i.find(KF);if(s){const e=s.props.children,a=i.map(t=>t===s?o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null:t);return(0,_h.jsx)(t,p(p({},r),{},{ref:n,children:o.isValidElement(e)?o.cloneElement(e,void 0,a):null}))}return(0,_h.jsx)(t,p(p({},r),{},{ref:n,children:a}))});return n.displayName="".concat(e,".Slot"),n}function HF(e){const t=o.forwardRef((e,t)=>{const{children:n}=e,a=l(e,VF);if(o.isValidElement(n)){const e=function(e){var t,n;let a=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,r=a&&"isReactWarning"in a&&a.isReactWarning;if(r)return e.ref;if(a=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(n),r=function(e,t){const n=p({},t);for(const a in t){const r=e[a],o=t[a];/^on[A-Z]/.test(a)?r&&o?n[a]=function(){const e=o(...arguments);return r(...arguments),e}:r&&(n[a]=r):"style"===a?n[a]=p(p({}
2,r),o):"className"===a&&(n[a]=[r,o].filter(Boolean).join(" "))}return p(p({},e),n)}(a,n.props);return n.type!==o.Fragment&&(r.ref=t?Yh(t,e):e),o.cloneElement(n,r)}return o.Children.count(n)>1?o.Children.only(null):null});return t.displayName="".concat(e,".SlotClone"),t}var WF=Symbol("radix.slottable");function KF(e){return o.isValidElement(e)&&"function"===typeof e.type&&"__radixId"in e.type&&e.type.__radixId===WF}const YF=["__scopePopover"],GF=["__scopePopover"],JF=["forceMount"],$F=["__scopePopover","trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside"],QF=["__scopePopover"],XF=["__scopePopover"];var ZF="Popover",[eO,tO]=Lh(ZF,[Pb]),nO=Pb(),[aO,rO]=eO(ZF),oO=e=>{const{__scopePopover:t,children:n,open:a,defaultOpen:r,onOpenChange:i,modal:s=!1}=e,l=nO(t),c=o.useRef(null),[u,d]=o.useState(!1),[h,f]=kp({prop:a,defaultProp:null!==r&&void 0!==r&&r,onChange:i,caller:ZF});return(0,_h.jsx)(Yb,p(p({},l),{},{children:(0,_h.jsx)(aO,{scope:t,contentId:up(),triggerRef:c,open:h,onOpenChange:f,onOpenToggle:o.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:u,onCustomAnchorAdd:o.useCallback(()=>d(!0),[]),onCustomAnchorRemove:o.useCallback(()=>d(!1),[]),modal:s,children:n})}))};oO.displayName=ZF;var iO="PopoverAnchor",sO=o.forwardRef((e,t)=>{const{__scopePopover:n}=e,a=l(e,YF),r=rO(iO,n),i=nO(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:c}=r;return o.useEffect(()=>(s(),()=>c()),[s,c]),(0,_h.jsx)(Gb,p(p(p({},i),a),{},{ref:t}))});sO.displayName=iO;var lO="PopoverTrigger",cO=o.forwardRef((e,t)=>{const{__scopePopover:n}=e,a=l(e,GF),r=rO(lO,n),o=nO(n),i=Gh(t,r.triggerRef),s=(0,_h.jsx)(wp.button,p(p({type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":kO(r.open)},a),{},{ref:i,onClick:Mh(e.onClick,r.onOpenToggle)}));return r.hasCustomAnchor?s:(0,_h.jsx)(Gb,p(p({asChild:!0},o),{},{children:s}))});cO.displayName=lO;var uO="PopoverPortal",[dO,hO]=eO(uO,{forceMount:void 0}),pO=e=>{const{__scopePopover:t,forceMount:n,children:a,container:r}=e,o=rO(uO,t);return(0,_h.jsx)(dO,{scope:t,forceMount:n,children:(0,_h.jsx)(Kp,{present:n||o.open,children:(0,_h.jsx)(Xb,{asChild:!0,container:r,children:a})})})};pO.displayName=uO;var fO="PopoverContent",mO=o.forwardRef((e,t)=>{const n=hO(fO,e.__scopePopover),{forceMount:a=n.forceMount}=e,r=l(e,JF),o=rO(fO,e.__scopePopover);return(0,_h.jsx)(Kp,{present:a||o.open,children:o.modal?(0,_h.jsx)(vO,p(p({},r),{},{ref:t})):(0,_h.jsx)(yO,p(p({},r),{},{ref:t}))})});mO.displayName=fO;var gO=qF("PopoverContent.RemoveScroll"),vO=o.forwardRef((e,t)=>{const n=rO(fO,e.__scopePopover),a=o.useRef(null),r=Gh(t,a),i=o.useRef(!1);return o.useEffect(()=>{const e=a.current;if(e)return EA(e)},[]),(0,_h.jsx)(_E,{as:gO,allowPinchZoom:!0,children:(0,_h.jsx)(wO,p(p({},e),{},{ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Mh(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),i.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:Mh(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,a=2===t.button||n;i.current=a},{checkForDefaultPrevented:!1}),onFocusOutside:Mh(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})}))})}),yO=o.forwardRef((e,t)=>{const n=rO(fO,e.__scopePopover),a=o.useRef(!1),r=o.useRef(!1);return(0,_h.jsx)(wO,p(p({},e),{},{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,i;(null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented)||(a.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault());a.current=!1,r.current=!1},onInteractOutside:t=>{var o,i;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(a.current=!0,"pointerdown"===t.detail.originalEvent.type&&(r.current=!0));const s=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&r.current&&t.preventDefault()}}))}),wO=o.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:a,onOpenAutoFocus:r,onCloseAutoFocus:o,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:d}=e,h=l(e,$F),f=rO(fO,n),m=nO(n);return tA(),(0,_h.jsx)(sA,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:r,onUnmountAutoFocus:o,children:(0,_h.jsx)(A_,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:d,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:(0,_h.jsx)(Jb,p(p(p({"data-state":kO(f.open),role:"dialog",id:f.contentId},m),h),{},{ref:t,style:p(p({},h.style),{"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"})}))})})}),_O="PopoverClose",xO=o.forwardRef((e,t)=>
2{const{__scopePopover:n}=e,a=l(e,QF),r=rO(_O,n);return(0,_h.jsx)(wp.button,p(p({type:"button"},a),{},{ref:t,onClick:Mh(e.onClick,()=>r.onOpenChange(!1))}))});xO.displayName=_O;var bO=o.forwardRef((e,t)=>{const{__scopePopover:n}=e,a=l(e,XF),r=nO(n);return(0,_h.jsx)($b,p(p(p({},r),a),{},{ref:t}))});function kO(e){return e?"open":"closed"}bO.displayName="PopoverArrow";var CO=oO,DO=cO,AO=pO,EO=mO;const jO=["className","align","sideOffset"];var SO=CO,NO=DO,PO=Ah((e,t)=>{let{className:n,align:a="center",sideOffset:r=4}=e,o=l(e,jO);return(0,_h.jsx)(AO,{children:(0,_h.jsx)(EO,p({ref:t,align:a,sideOffset:r,className:wh("stack-scope z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n)},o))})});PO.displayName=EO.displayName;const TO=rv("list-filter",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);
2function FO(e){let{column:t,title:n,options:a}=e;null===t||void 0===t||t.getFacetedUniqueValues();const r=new Set(null===t||void 0===t?void 0:t.getFilterValue());return(0,_h.jsxs)(SO,{children:[(0,_h.jsx)(NO,{asChild:!0,children:(0,_h.jsxs)(Uv,{variant:"outline",size:"sm",className:"h-8 border",children:[(0,_h.jsx)(TO,{className:"mr-2 h-4 w-4 text-gray-500"}),n,r.size>0&&(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsx)(Iw,{orientation:"vertical",className:"mx-2 h-4"}),(0,_h.jsx)(ZD,{variant:"secondary",className:"rounded-sm px-1 font-normal lg:hidden",children:r.size}),(0,_h.jsx)("div",{className:"hidden space-x-1 lg:flex",children:r.size>2?(0,_h.jsxs)(ZD,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:[r.size," selected"]}):a.filter(e=>r.has(e.value)).map(e=>(0,_h.jsx)(ZD,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:e.label},e.value))})]})]})}),(0,_h.jsx)(PO,{className:"w-[200px] p-0",align:"start",children:(0,_h.jsxs)(OF,{children:[(0,_h.jsx)(IF,{placeholder:n}),(0,_h.jsxs)(RF,{children:[(0,_h.jsx)(MF,{children:"No results found."}),(0,_h.jsx)(BF,{children:a.map(e=>{const n=r.has(e.value);return(0,_h.jsxs)(LF,{onSelect:()=>{n?r.delete(e.value):r.add(e.value);const a=Array.from(r);null===t||void 0===t||t.setFilterValue(a.length?a:void 0)},children:[(0,_h.jsx)("div",{className:wh("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",n?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:(0,_h.jsx)(hv,{className:wh("h-4 w-4")})}),e.icon&&(0,_h.jsx)(e.icon,{className:"mr-2 h-4 w-4 text-muted-foreground"}),(0,_h.jsx)("span",{children:e.label})]},e.value)})}),r.size>0&&(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsx)(zF,{}),(0,_h.jsx)(BF,{children:(0,_h.jsx)(LF,{onSelect:()=>null===t||void 0===t?void 0:t.setFilterValue(void 0),className:"justify-center text-center",children:"Clear filters"})})]})]})]})})]})}const OO=rv("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]),IO=rv("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);function RO(e){return(0,_h.jsx)(dN,{onClick:e.onClick,children:(0,_h.jsxs)("div",{className:"flex items-center",children:[(0,_h.jsx)(e.icon,{className:"mr-2 h-3.5 w-3.5 text-muted-foreground/70"}),e.children]})})}function MO(e){let{column:t,columnTitle:n,className:a}=e;return(0,_h.jsx)("div",{className:wh("flex items-center space-x-2",a),children:(0,_h.jsxs)(lN,{children:[(0,_h.jsx)(cN,{asChild:!0,children:(0,_h.jsxs)(Uv,{variant:"ghost",size:"sm",className:wh("-ml-3 h-8 data-[state=open]:bg-accent",!t.getCanSort()&&"pointer-events-none"),children:[(0,_h.jsx)("span",{children:n}),"desc"===t.getIsSorted()?(0,_h.jsx)(OO,{className:"ml-2 h-4 w-4"}):"asc"===t.getIsSorted()?(0,_h.jsx)(IO,{className:"ml-2 h-4 w-4"}):null]})}),(0,_h.jsxs)(uN,{align:"start",className:"stack-scope",children:[(0,_h.jsx)(RO,{icon:IO,onClick:()=>t.toggleSorting(!1),children:"Asc"}),(0,_h.jsx)(RO,{icon:OO,onClick:()=>t.toggleSorting(!0),children:"Desc"})]})]})})}function BO(e,t){return"function"===typeof e?e(t):e}function zO(e,t){return n=>{t.setState(t=>p(p({},t),{},{[e]:BO(n,t[e])}))}}function LO(e){return e instanceof Function}function UO(e,t){const n=[],a=e=>{e.forEach(e=>{n.push(e);const r=t(e);null!=r&&r.length&&a(r)})};return a(e),n}function VO(e,t,n){let a,r=[];return o=>{let i;
2n.key&&n.debug&&(i=Date.now());const s=e(o),l=s.length!==r.length||s.some((e,t)=>r[t]!==e);if(!l)return a;let c;if(r=s,n.key&&n.debug&&(c=Date.now()),a=t(...s),null==n||null==n.onChange||n.onChange(a),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-i))/100,t=Math.round(100*(Date.now()-c))/100,a=t/16,r=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info("%c\u23f1 ".concat(r(t,5)," /").concat(r(e,5)," ms"),"\n            font-size: .6rem;\n            font-weight: bold;\n            color: hsl(".concat(Math.max(0,Math.min(120-120*a,120)),"deg 100% 31%);"),null==n?void 0:n.key)}return a}}function qO(e,t,n,a){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:a}}const HO="debugHeaders";function WO(e,t,n){var a;let r={id:null!=(a=n.id)?a:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(r),e},getContext:()=>({table:e,header:r,column:t})};return e._features.forEach(t=>{null==t.createHeader||t.createHeader(r,e)}),r}const KO={createTable:e=>{e.getHeaderGroups=VO(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,a,r)=>{var o,i;const s=null!=(o=null==a?void 0:a.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[],l=null!=(i=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[];return YO(t,[...s,...n.filter(e=>!(null!=a&&a.includes(e.id))&&!(null!=r&&r.includes(e.id))),...l],e)},qO(e.options,HO)),e.getCenterHeaderGroups=VO(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,a,r)=>YO(t,n=n.filter(e=>!(null!=a&&a.includes(e.id))&&!(null!=r&&r.includes(e.id))),e,"center"),qO(e.options,HO)),e.getLeftHeaderGroups=VO(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,a)=>{var r;return YO(t,null!=(r=null==a?void 0:a.map(e=>n.find(t=>t.id===e)).filter(Boolean))?r:[],e,"left")},qO(e.options,HO)),e.getRightHeaderGroups=VO(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,a)=>{var r;return YO(t,null!=(r=null==a?void 0:a.map(e=>n.find(t=>t.id===e)).filter(Boolean))?r:[],e,"right")},qO(e.options,HO)),e.getFooterGroups=VO(()=>[e.getHeaderGroups()],e=>[...e].reverse(),qO(e.options,HO)),e.getLeftFooterGroups=VO(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),qO(e.options,HO)),e.getCenterFooterGroups=VO(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),qO(e.options,HO)),e.getRightFooterGroups=VO(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),qO(e.options,HO)),e.getFlatHeaders=VO(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),qO(e.options,HO)),e.getLeftFlatHeaders=VO(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),qO(e.options,HO)),e.getCenterFlatHeaders=VO(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),qO(e.options,HO)),e.getRightFlatHeaders=VO(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),qO(e.options,HO)),e.getCenterLeafHeaders=VO(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),qO(e.options,HO)),e.getLeftLeafHeaders=VO(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),qO(e.options,HO)),e.getRightLeafHeaders=VO(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),qO(e.options,HO)),e.getLeafHeaders=VO(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>{var a,r,o,i,s,l;return[...null!=(a=null==(r=e[0])?void 0:r.headers)?a:[],...null!=(o=null==(i=t[0])?void 0:i.headers)?o:[],...null!=(s=null==(l=n[0])?void 0:l.headers)?s:[]].map(e=>e.getLeafHeaders()).flat()},qO(e.options,HO))}};function YO(e,t,n,a){var r,o;let i=0;const s=function(e,t){void 0===t&&(t=1),i=Math.max(i,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;null!=(n=e.columns)&&n.length&&s(e.columns,t+1)},0)};s(e);let l=[];const c=(e,t)=>
2{const r={depth:t,id:[a,"".concat(t)].filter(Boolean).join("_"),headers:[]},o=[];e.forEach(e=>{const i=[...o].reverse()[0];let s,l=!1;if(e.column.depth===r.depth&&e.column.parent?s=e.column.parent:(s=e.column,l=!0),i&&(null==i?void 0:i.column)===s)i.subHeaders.push(e);else{const r=WO(n,s,{id:[a,t,s.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:l,placeholderId:l?"".concat(o.filter(e=>e.column===s).length):void 0,depth:t,index:o.length});r.subHeaders.push(e),o.push(r)}r.headers.push(e),e.headerGroup=r}),l.push(r),t>0&&c(o,t-1)},u=t.map((e,t)=>WO(n,e,{depth:i,index:t}));c(u,i-1),l.reverse();const d=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,n=0,a=[0];e.subHeaders&&e.subHeaders.length?(a=[],d(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:r}=e;t+=n,a.push(r)})):t=1;return n+=Math.min(...a),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}});return d(null!=(r=null==(o=l[0])?void 0:o.headers)?r:[]),l}const GO=(e,t,n,a,r,o,i)=>{let s={id:t,index:a,original:n,depth:r,parentId:i,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(s._valuesCache[t]=n.accessorFn(s.original,a),s._valuesCache[t]):void 0},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(s._uniqueValuesCache[t]=n.columnDef.getUniqueValues(s.original,a),s._uniqueValuesCache[t]):(s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=s.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=o?o:[],getLeafRows:()=>UO(s.subRows,e=>e.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let e=[],t=s;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:VO(()=>[e.getAllLeafColumns()],t=>t.map(t=>function(e,t,n,a){const r={id:"".concat(t.id,"_").concat(n.id),row:t,column:n,getValue:()=>t.getValue(a),renderValue:()=>{var t;return null!=(t=r.getValue())?t:e.options.renderFallbackValue},getContext:VO(()=>[e,n,t,r],(e,t,n,a)=>({table:e,column:t,row:n,cell:a,getValue:a.getValue,renderValue:a.renderValue}),qO(e.options,"debugCells"))};return e._features.forEach(a=>{null==a.createCell||a.createCell(r,n,t,e)},{}),r}(e,s,t,t.id)),qO(e.options,"debugRows")),_getAllCellsByColumnId:VO(()=>[s.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),qO(e.options,"debugRows"))};for(let l=0;l<e._features.length;l++){const t=e._features[l];null==t||null==t.createRow||t.createRow(s,e)}return s},JO={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.i
2d),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},$O=(e,t,n)=>{var a,r;const o=null==n||null==(a=n.toString())?void 0:a.toLowerCase();return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())||null==(r=r.toLowerCase())?void 0:r.includes(o))};$O.autoRemove=e=>iI(e);const QO=(e,t,n)=>{var a;return Boolean(null==(a=e.getValue(t))||null==(a=a.toString())?void 0:a.includes(n))};QO.autoRemove=e=>iI(e);const XO=(e,t,n)=>{var a;return(null==(a=e.getValue(t))||null==(a=a.toString())?void 0:a.toLowerCase())===(null==n?void 0:n.toLowerCase())};XO.autoRemove=e=>iI(e);const ZO=(e,t,n)=>{var a;return null==(a=e.getValue(t))?void 0:a.includes(n)};ZO.autoRemove=e=>iI(e);const eI=(e,t,n)=>!n.some(n=>{var a;return!(null!=(a=e.getValue(t))&&a.includes(n))});eI.autoRemove=e=>iI(e)||!(null!=e&&e.length);const tI=(e,t,n)=>n.some(n=>{var a;return null==(a=e.getValue(t))?void 0:a.includes(n)});tI.autoRemove=e=>iI(e)||!(null!=e&&e.length);const nI=(e,t,n)=>e.getValue(t)===n;nI.autoRemove=e=>iI(e);const aI=(e,t,n)=>e.getValue(t)==n;aI.autoRemove=e=>iI(e);const rI=(e,t,n)=>{let[a,r]=n;const o=e.getValue(t);return o>=a&&o<=r};rI.resolveFilterValue=e=>{let[t,n]=e,a="number"!==typeof t?parseFloat(t):t,r="number"!==typeof n?parseFloat(n):n,o=null===t||Number.isNaN(a)?-1/0:a,i=null===n||Number.isNaN(r)?1/0:r;if(o>i){const e=o;o=i,i=e}return[o,i]},rI.autoRemove=e=>iI(e)||iI(e[0])&&iI(e[1]);const oI={includesString:$O,includesStringSensitive:QO,equalsString:XO,arrIncludes:ZO,arrIncludesAll:eI,arrIncludesSome:tI,equals:nI,weakEquals:aI,inNumberRange:rI};function iI(e){return void 0===e||null===e||""===e}const sI={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>p({columnFilters:[]},e),getDefaultOptions:e=>({onColumnFiltersChange:zO("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],a=null==n?void 0:n.getValue(e.id);return"string"===typeof a?oI.includesString:"number"===typeof a?oI.inNumberRange:"boolean"===typeof a||null!==a&&"object"===typeof a?oI.equals:Array.isArray(a)?oI.arrIncludes:oI.weakEquals},e.getFilterFn=()=>{var n,a;return LO(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(a=t.options.filterFns)?void 0:a[e.columnDef.filterFn])?n:oI[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,a,r;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(a=t.options.enableColumnFilters)||a)&&(null==(r=t.options.enableFilters)||r)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find(t=>t.id===e.id))?void 0:n.value},e.getFilterIndex=()=>{var n,a;return null!=(n=null==(a=t.getState().columnFilters)?void 0:a.findIndex(t=>t.id===e.id))?n:-1},e.setFilterValue=n=>{t.setColumnFilters(t=>{const a=e.getFilterFn(),r=null==t?void 0:t.find(t=>t.id===e.id),o=BO(n,r?r.value:void 0);var i;if(lI(a,o,e))return null!=(i=null==t?void 0:t.filter(t=>t.id!==e.id))?i:[];const s={id:e.id,value:o};var l;return r?null!=(l=null==t?void 0:t.map(t=>t.id===e.id?s:t))?l:[]:null!=t&&t.length?[...t,s]:[s]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var a;return null==(a=BO(t,e))?void 0:a.filter(e=>{const t=n.find(t=>t.id===e.id);if(t){if(lI(t.getFilterFn(),e.value,t))return!1}return!0})})},e.resetColumnFilters=t=>{var n,a;e.setColumnFilters(t?[]:null!=(n=null==(a=e.initialState)?void 0:a.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function lI(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||"undefined"===typeof t||"string"===typeof t&&!t}
2const cI={sum:(e,t,n)=>n.reduce((t,n)=>{const a=n.getValue(e);return t+("number"===typeof a?a:0)},0),min:(e,t,n)=>{let a;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(a>n||void 0===a&&n>=n)&&(a=n)}),a},max:(e,t,n)=>{let a;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(a<n||void 0===a&&n>=n)&&(a=n)}),a},extent:(e,t,n)=>{let a,r;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(void 0===a?n>=n&&(a=r=n):(a>n&&(a=n),r<n&&(r=n)))}),[a,r]},mean:(e,t)=>{let n=0,a=0;if(t.forEach(t=>{let r=t.getValue(e);null!=r&&(r=+r)>=r&&(++n,a+=r)}),n)return a/n},median:(e,t)=>{if(!t.length)return;const n=t.map(t=>t.getValue(e));if(a=n,!Array.isArray(a)||!a.every(e=>"number"===typeof e))return;var a;if(1===n.length)return n[0];const r=Math.floor(n.length/2),o=n.sort((e,t)=>e-t);return n.length%2!==0?o[r]:(o[r-1]+o[r])/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},uI={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>p({grouping:[]},e),getDefaultOptions:e=>({onGroupingChange:zO("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},e.getCanGroup=()=>{var n,a;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(a=t.options.enableGrouping)||a)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],a=null==n?void 0:n.getValue(e.id);return"number"===typeof a?cI.sum:"[object Date]"===Object.prototype.toString.call(a)?cI.extent:void 0},e.getAggregationFn=()=>{var n,a;if(!e)throw new Error;return LO(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(a=t.options.aggregationFns)?void 0:a[e.columnDef.aggregationFn])?n:cI[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,a;e.setGrouping(t?[]:null!=(n=null==(a=e.initialState)?void 0:a.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const a=t.getColumn(n);return null!=a&&a.columnDef.getGroupingValue?(e._groupingValuesCache[n]=a.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,a)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}};const dI={getInitialState:e=>p({columnOrder:[]},e),getDefaultOptions:e=>({onColumnOrderChange:zO("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=VO(e=>[yI(t,e)],t=>t.findIndex(t=>t.id===e.id),qO(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var a;return(null==(a=yI(t,n)[0])?void 0:a.id)===e.id},e.getIsLastColumn=n=>{var a;const r=yI(t,n);return(null==(a=r[r.length-1])?void 0:a.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=VO(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>a=>{let r=[];if(null!=e&&e.length){const t=[...e],n=[...a];for(;n.length&&t.length;){const e=t.shift(),a=n.findIndex(t=>t.id===e);a>-1&&r.push(n.splice(a,1)[0])}r=[...r,...n]}else r=a;return function(e,t,n){if(null==t||!t.length||!n)return e;const a=e.filter(e=>!t.includes(e.id));if("remove"===n)return a;const r=t.map(t=>e.find(e=>
2e.id===t)).filter(Boolean);return[...r,...a]}(r,t,n)},qO(e.options,"debugTable"))}},hI={getInitialState:e=>p({columnPinning:{left:[],right:[]}},e),getDefaultOptions:e=>({onColumnPinningChange:zO("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const a=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,r,o,i,s,l;return"right"===n?{left:(null!=(o=null==e?void 0:e.left)?o:[]).filter(e=>!(null!=a&&a.includes(e))),right:[...(null!=(i=null==e?void 0:e.right)?i:[]).filter(e=>!(null!=a&&a.includes(e))),...a]}:"left"===n?{left:[...(null!=(s=null==e?void 0:e.left)?s:[]).filter(e=>!(null!=a&&a.includes(e))),...a],right:(null!=(l=null==e?void 0:e.right)?l:[]).filter(e=>!(null!=a&&a.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=a&&a.includes(e))),right:(null!=(r=null==e?void 0:e.right)?r:[]).filter(e=>!(null!=a&&a.includes(e)))}})},e.getCanPin=()=>e.getLeafColumns().some(e=>{var n,a,r;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(a=null!=(r=t.options.enableColumnPinning)?r:t.options.enablePinning)||a)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(e=>e.id),{left:a,right:r}=t.getState().columnPinning,o=n.some(e=>null==a?void 0:a.includes(e)),i=n.some(e=>null==r?void 0:r.includes(e));return o?"left":!!i&&"right"},e.getPinnedIndex=()=>{var n,a;const r=e.getIsPinned();return r?null!=(n=null==(a=t.getState().columnPinning)||null==(a=a[r])?void 0:a.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=VO(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{const a=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!a.includes(e.column.id))},qO(t.options,"debugRows")),e.getLeftVisibleCells=VO(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>p(p({},e),{},{position:"left"})),qO(t.options,"debugRows")),e.getRightVisibleCells=VO(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>p(p({},e),{},{position:"right"})),qO(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,a;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(a=e.initialState)?void 0:a.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const a=e.getState().columnPinning;var r,o;return t?Boolean(null==(n=a[t])?void 0:n.length):Boolean((null==(r=a.left)?void 0:r.length)||(null==(o=a.right)?void 0:o.length))},e.getLeftLeafColumns=VO(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),qO(e.options,"debugColumns")),e.getRightLeafColumns=VO(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),qO(e.options,"debugColumns")),e.getCenterLeafColumns=VO(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{const a=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!a.includes(e.id))},qO(e.options,"debugColumns"))}};const pI={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},fI={getDefaultColumnDef:()=>pI,getInitialState:e=>p({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}},e),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:zO("columnSizing",e),onColumnSizingInfoChange:zO("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,a,r;const o=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:pI.minSize,null!=(a=null!=o?o:e.columnDef.size)?a:pI.size),null!=(r=e.columnDef.maxSize)?r:pI.maxSize)},e.getStart=VO(e=>[e,yI(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),qO(t.options,"debugColumns")),e.getAfter=VO(e=>[e,yI(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>
2e+t.getSize(),0),qO(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(t=>{let n=e.id,{[n]:a}=t;return l(t,[n].map(u))})},e.getCanResize=()=>{var n,a;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(a=t.options.enableColumnResizing)||a)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var a;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(a=e.column.getSize())?a:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const a=t.getColumn(e.column.id),r=null==a?void 0:a.getCanResize();return o=>{if(!a||!r)return;if(null==o.persist||o.persist(),gI(o)&&o.touches&&o.touches.length>1)return;const i=e.getSize(),s=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[a.id,a.getSize()]],l=gI(o)?Math.round(o.touches[0].clientX):o.clientX,c={},u=(e,n)=>{"number"===typeof n&&(t.setColumnSizingInfo(e=>{var a,r;const o="rtl"===t.options.columnResizeDirection?-1:1,i=(n-(null!=(a=null==e?void 0:e.startOffset)?a:0))*o,s=Math.max(i/(null!=(r=null==e?void 0:e.startSize)?r:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;c[t]=Math.round(100*Math.max(n+n*s,0))/100}),p(p({},e),{},{deltaOffset:i,deltaPercentage:s})}),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing(e=>p(p({},e),c)))},d=e=>u("move",e),h=e=>{u("end",e),t.setColumnSizingInfo(e=>p(p({},e),{},{isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},f=n||("undefined"!==typeof document?document:null);const m={moveHandler:e=>d(e.clientX),upHandler:e=>{null==f||f.removeEventListener("mousemove",m.moveHandler),null==f||f.removeEventListener("mouseup",m.upHandler),h(e.clientX)}},g={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==f||f.removeEventListener("touchmove",g.moveHandler),null==f||f.removeEventListener("touchend",g.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),h(null==(t=e.touches[0])?void 0:t.clientX)}},v=!!function(){if("boolean"===typeof mI)return mI;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(TAe){e=!1}return mI=e,mI}()&&{passive:!1};gI(o)?(null==f||f.addEventListener("touchmove",g.moveHandler,v),null==f||f.addEventListener("touchend",g.upHandler,v)):(null==f||f.addEventListener("mousemove",m.moveHandler,v),null==f||f.addEventListener("mouseup",m.upHandler,v)),t.setColumnSizingInfo(e=>p(p({},e),{},{startOffset:l,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:a.id}))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}}};let mI=null;function gI(e){return"touchstart"===e.type}const vI={getInitialState:e=>p({columnVisibility:{}},e),getDefaultOptions:e=>({onColumnVisibilityChange:zO("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(t=>p(p({},t),{},{[e.id]:null!=n?n:!e.getIsVisible()}))},e.getIsVisible=()=>{var n,a;const r=e.columns;return null==(n=r.length?r.some(e=>e.getIsVisible()):null==(a=t.getState().columnVisibility)?void 0:a[e.id])||n},e.getCanHide=()=>{var n,a;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(a=t.options.enableHiding)||a)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=VO(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),qO(t.options,"debugRows")),e.getVisibleCells=VO(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],qO(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>VO(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),qO(e.options,"debugColumns"));e.getVisibleFlatColumns=t(0,()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t(0,()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t(0,()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t(0,()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t(0,()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,n)=>p(p({},e),{},{[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}};function yI(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}
2const wI={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},_I={getInitialState:e=>p({globalFilter:void 0},e),getDefaultOptions:e=>({onGlobalFilterChange:zO("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const a=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"===typeof a||"number"===typeof a}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,a,r,o;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(a=t.options.enableGlobalFilter)||a)&&(null==(r=t.options.enableFilters)||r)&&(null==(o=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||o)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>oI.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:a}=e.options;return LO(a)?a:"auto"===a?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[a])?t:oI[a]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},xI={getInitialState:e=>p({expanded:{}},e),getDefaultOptions:e=>({onExpandedChange:zO("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var a,r;if(t){if(null!=(a=null!=(r=e.options.autoResetAll)?r:e.options.autoResetExpanded)?a:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}}else e._queue(()=>{t=!0})},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,a;e.setExpanded(t?{}:null!=(n=null==(a=e.initialState)?void 0:a.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"===typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some(e=>!e.getIsExpanded())},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{const n=e.split(".");t=Math.max(t,n.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(a=>{var r;const o=!0===a||!(null==a||!a[e.id]);let i={};if(!0===a?Object.keys(t.getRowModel().rowsById).forEach(e=>{i[e]=!0}):i=a,n=null!=(r=n)?r:!o,!o&&n)return p(p({},i),{},{[e.id]:!0});if(o&&!n){const t=e.id,{[t]:n}=i;return l(i,[t].map(u))}return a})},e.getIsExpanded=()=>{var n;const a=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===a||(null==a?void 0:a[e.id]))},e.getCanExpand=()=>{var n,a,r;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(a=t.options.enableExpanding)||a)&&!(null==(r=e.subRows)||
2!r.length)},e.getIsAllParentsExpanded=()=>{let n=!0,a=e;for(;n&&a.parentId;)a=t.getRow(a.parentId,!0),n=a.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},bI={getInitialState:e=>p(p({},e),{},{pagination:p(p({},{pageIndex:0,pageSize:10}),null==e?void 0:e.pagination)}),getDefaultOptions:e=>({onPaginationChange:zO("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var a,r;if(t){if(null!=(a=null!=(r=e.options.autoResetAll)?r:e.options.autoResetPageIndex)?a:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}}else e._queue(()=>{t=!0})},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>BO(t,e)),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination(n=>{let a=BO(t,n.pageIndex);const r="undefined"===typeof e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return a=Math.max(0,Math.min(a,r)),p(p({},n),{},{pageIndex:a})})},e.resetPageIndex=t=>{var n,a;e.setPageIndex(t?0:null!=(n=null==(a=e.initialState)||null==(a=a.pagination)?void 0:a.pageIndex)?n:0)},e.resetPageSize=t=>{var n,a;e.setPageSize(t?10:null!=(n=null==(a=e.initialState)||null==(a=a.pagination)?void 0:a.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination(e=>{const n=Math.max(1,BO(t,e.pageSize)),a=e.pageSize*e.pageIndex,r=Math.floor(a/n);return p(p({},e),{},{pageIndex:r,pageSize:n})})},e.setPageCount=t=>e.setPagination(n=>{var a;let r=BO(t,null!=(a=e.options.pageCount)?a:-1);return"number"===typeof r&&(r=Math.max(-1,r)),p(p({},n),{},{pageCount:r})}),e.getPageOptions=VO(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map((e,t)=>t)),t},qO(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();
2return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},kI={getInitialState:e=>p({rowPinning:{top:[],bottom:[]}},e),getDefaultOptions:e=>({onRowPinningChange:zO("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,a,r)=>{const o=a?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],i=r?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],s=new Set([...i,e.id,...o]);t.setRowPinning(e=>{var t,a,r,o,i,l;return"bottom"===n?{top:(null!=(r=null==e?void 0:e.top)?r:[]).filter(e=>!(null!=s&&s.has(e))),bottom:[...(null!=(o=null==e?void 0:e.bottom)?o:[]).filter(e=>!(null!=s&&s.has(e))),...Array.from(s)]}:"top"===n?{top:[...(null!=(i=null==e?void 0:e.top)?i:[]).filter(e=>!(null!=s&&s.has(e))),...Array.from(s)],bottom:(null!=(l=null==e?void 0:e.bottom)?l:[]).filter(e=>!(null!=s&&s.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=s&&s.has(e))),bottom:(null!=(a=null==e?void 0:e.bottom)?a:[]).filter(e=>!(null!=s&&s.has(e)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:a,enablePinning:r}=t.options;return"function"===typeof a?a(e):null==(n=null!=a?a:r)||n},e.getIsPinned=()=>{const n=[e.id],{top:a,bottom:r}=t.getState().rowPinning,o=n.some(e=>null==a?void 0:a.includes(e)),i=n.some(e=>null==r?void 0:r.includes(e));return o?"top":!!i&&"bottom"},e.getPinnedIndex=()=>{var n,a;const r=e.getIsPinned();if(!r)return-1;const o=null==(n="top"===r?t.getTopRows():t.getBottomRows())?void 0:n.map(e=>{let{id:t}=e;return t});return null!=(a=null==o?void 0:o.indexOf(e.id))?a:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,a;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(a=e.initialState)?void 0:a.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const a=e.getState().rowPinning;var r,o;return t?Boolean(null==(n=a[t])?void 0:n.length):Boolean((null==(r=a.top)?void 0:r.length)||(null==(o=a.bottom)?void 0:o.length))},e._getPinnedRows=(t,n,a)=>{var r;return(null==(r=e.options.keepPinnedRows)||r?(null!=n?n:[]).map(t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null}):(null!=n?n:[]).map(e=>t.find(t=>t.id===e))).filter(Boolean).map(e=>p(p({},e),{},{position:a}))},e.getTopRows=VO(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),qO(e.options,"debugRows")),e.getBottomRows=VO(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),qO(e.options,"debugRows")),e.getCenterRows=VO(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,n)=>{const a=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter(e=>!a.has(e.id))},qO(e.options,"debugRows"))}},CI={getInitialState:e=>p({rowSelection:{}},e),getDefaultOptions:e=>({onRowSelectionChange:zO("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t="undefined"!==typeof t?t:!e.getIsAllRowsSelected();const a=p({},n),r=e.getPreGroupedRowModel().flatRows;return t?r.forEach(e=>{e.getCanSelect()&&(a[e.id]=!0)}):r.forEach(e=>{delete a[e.id]}),a})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const a="undefined"!==typeof t?t:!e.getIsAllPageRowsSelected(),r=p({},n);return e.getRowModel().rows.forEach(t=>{DI(r,t.id,a,!0,e)}),r}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=VO(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?AI(e,n):{rows:[],flatRows:[],rowsById:{}},qO(e.options,"debugTable")),e.getFilteredSelectedRowModel=VO(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?AI(e,n):{rows:[],flatRows:[],rowsById:{}},qO(e.options,"debugTable")),e.getGroupedSelectedRowModel=VO(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?AI(e,n):{rows:[],flatRows:[],rowsById:{}},qO(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let a=Boolean(t.length&&Object.keys(n).length);return a&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(a=!1),a},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:n}=e.getState();let a=!!t.length;return a&&t.some(e=>!n[e.id])&&(a=!1),a},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,a)=>{const r=e.getIsSelected();t.setRowSelection(o=>{var i;if(n="undefined"!==typeof n?n:!r,e.getCanSelect()&&r===n)return o;const s=p({},o);return DI(s,e.id,n,null==(i=null==a?void 0:a.selectChildren)||i,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return EI(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===jI(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===jI(e,n)},e.getCanSelect=()=>{var n;return"function"===typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"===typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"===typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var a;t&&e.toggleSelected(null==(a=n.target)?void 0:a.checked)}}}},DI=(e,t,n,a,r)=>{var o;const i=r.getRow(t,!0);n?(i.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),i.getCanSelect()&&(e[t]=!0)):delete e[t],a&&null!=(o=i.subRows)&&o.length&&i.getCanSelectSubRows()&&i.subRows.forEach(t=>DI(e,t.id,n,a,r))};function AI(e,t){const n=e.getState().rowSelection,a=[],r={},o=function(e,t){return e.map(e=>{var t;const i=EI(e,n);if(i&&(a.push(e),r[e.id]=e),null!=(t=e.subRows)&&t.length&&(e=p(p({},e),{},{subRows:o(e.subRows)})),i)return e}
2).filter(Boolean)};return{rows:o(t.rows),flatRows:a,rowsById:r}}function EI(e,t){var n;return null!=(n=t[e.id])&&n}function jI(e,t,n){var a;if(null==(a=e.subRows)||!a.length)return!1;let r=!0,o=!1;return e.subRows.forEach(e=>{if((!o||r)&&(e.getCanSelect()&&(EI(e,t)?o=!0:r=!1),e.subRows&&e.subRows.length)){const n=jI(e,t);"all"===n?o=!0:"some"===n?(o=!0,r=!1):r=!1}}),r?"all":!!o&&"some"}const SI=/([0-9]+)/gm;function NI(e,t){return e===t?0:e>t?1:-1}function PI(e){return"number"===typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"===typeof e?e:""}function TI(e,t){const n=e.split(SI).filter(Boolean),a=t.split(SI).filter(Boolean);for(;n.length&&a.length;){const e=n.shift(),t=a.shift(),r=parseInt(e,10),o=parseInt(t,10),i=[r,o].sort();if(isNaN(i[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(i[1]))return isNaN(r)?-1:1;if(r>o)return 1;if(o>r)return-1}}return n.length-a.length}const FI={alphanumeric:(e,t,n)=>TI(PI(e.getValue(n)).toLowerCase(),PI(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>TI(PI(e.getValue(n)),PI(t.getValue(n))),text:(e,t,n)=>NI(PI(e.getValue(n)).toLowerCase(),PI(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>NI(PI(e.getValue(n)),PI(t.getValue(n))),datetime:(e,t,n)=>{const a=e.getValue(n),r=t.getValue(n);return a>r?1:a<r?-1:0},basic:(e,t,n)=>NI(e.getValue(n),t.getValue(n))},OI={getInitialState:e=>p({sorting:[]},e),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:zO("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let a=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return FI.datetime;if("string"===typeof n&&(a=!0,n.split(SI).length>1))return FI.alphanumeric}return a?FI.text:FI.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"===typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,a;if(!e)throw new Error;return LO(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(a=t.options.sortingFns)?void 0:a[e.columnDef.sortingFn])?n:FI[e.columnDef.sortingFn]},e.toggleSorting=(n,a)=>{const r=e.getNextSortingOrder(),o="undefined"!==typeof n&&null!==n;t.setSorting(i=>{const s=null==i?void 0:i.find(t=>t.id===e.id),l=null==i?void 0:i.findIndex(t=>t.id===e.id);let c,u=[],d=o?n:"desc"===r;var h;(c=null!=i&&i.length&&e.getCanMultiSort()&&a?s?"toggle":"add":null!=i&&i.length&&l!==i.length-1?"replace":s?"toggle":"replace","toggle"===c&&(o||r||(c="remove")),"add"===c)?(u=[...i,{id:e.id,desc:d}],u.splice(0,u.length-(null!=(h=t.options.maxMultiSortColCount)?h:Number.MAX_SAFE_INTEGER))):u="toggle"===c?i.map(t=>t.id===e.id?p(p({},t),{},{desc:d}):t):"remove"===c?i.filter(t=>t.id!==e.id):[{id:e.id,desc:d}];return u})},e.getFirstSortDir=()=>{var n,a;return(null!=(n=null!=(a=e.columnDef.sortDescFirst)?a:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var a,r;const o=e.getFirstSortDir(),i=e.getIsSorted();return i?!!(i===o||null!=(a=t.options.enableSortingRemoval)&&!a||n&&null!=(r=t.options.enableMultiRemove)&&!r)&&("desc"===i?"asc":"desc"):o},e.getCanSort=()=>{var n,a;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(a=t.options.enableSorting)||a)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,a;return null!=(n=null!=(a=e.columnDef.enableMultiSort)?a:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const a=null==(n=t.getState().sorting)?void 0:n.find(t=>t.id===e.id);return!!a&&(a.desc?"desc":"asc")},e.getSortIndex=()=>{var n,a;return null!=(n=null==(a=t.getState().sorting)?void 0:a.findIndex(t=>t.id===e.id))?n:-1},e.clearSorting=()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return a=>{n&&(null==a.persist||a.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(a))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,a;e.setSorting(t?[]:null!=(n=null==(a=e.initialState)?void 0:a.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},II=[KO,vI,dI,hI,JO,sI,wI,_I,OI,uI,xI,bI,kI,CI,fI];function RI(e){var t,n;const a=[...II,...null!=(t=e._features)?t:[]];let r={_features:a};const o=r._features.reduce((e,t)=>
2Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(r)),{});let i=p(p({},{}),null!=(n=e.initialState)?n:{});r._features.forEach(e=>{var t;i=null!=(t=null==e.getInitialState?void 0:e.getInitialState(i))?t:i});const s=[];let l=!1;const c={_features:a,options:p(p({},o),e),initialState:i,_queue:e=>{s.push(e),l||(l=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();l=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{r.setState(r.initialState)},setOptions:e=>{const t=BO(e,r.options);r.options=(e=>r.options.mergeOptions?r.options.mergeOptions(o,e):p(p({},o),e))(t)},getState:()=>r.options.state,setState:e=>{null==r.options.onStateChange||r.options.onStateChange(e)},_getRowId:(e,t,n)=>{var a;return null!=(a=null==r.options.getRowId?void 0:r.options.getRowId(e,t,n))?a:"".concat(n?[n.id,t].join("."):t)},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?r.getPrePaginationRowModel():r.getRowModel()).rowsById[e];if(!n&&(n=r.getCoreRowModel().rowsById[e],!n))throw new Error;return n},_getDefaultColumnDef:VO(()=>[r.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},p(p({header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null}},r._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{})),e)},qO(e,"debugColumns")),_getColumnDefs:()=>r.options.columns,getAllColumns:VO(()=>[r._getColumnDefs()],e=>{const t=function(e,n,a){return void 0===a&&(a=0),e.map(e=>{const o=function(e,t,n,a){var r,o;const i=p(p({},e._getDefaultColumnDef()),t),s=i.accessorKey;let l,c=null!=(r=null!=(o=i.id)?o:s?"function"===typeof String.prototype.replaceAll?s.replaceAll(".","_"):s.replace(/\./g,"_"):void 0)?r:"string"===typeof i.header?i.header:void 0;if(i.accessorFn?l=i.accessorFn:s&&(l=s.includes(".")?e=>{let t=e;for(const a of s.split(".")){var n;t=null==(n=t)?void 0:n[a]}return t}:e=>e[i.accessorKey]),!c)throw new Error;let u={id:"".concat(String(c)),accessorFn:l,parent:a,depth:n,columnDef:i,columns:[],getFlatColumns:VO(()=>[!0],()=>{var e;return[u,...null==(e=u.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},qO(e.options,"debugColumns")),getLeafColumns:VO(()=>[e._getOrderColumnsFn()],e=>{var t;if(null!=(t=u.columns)&&t.length){let t=u.columns.flatMap(e=>e.getLeafColumns());return e(t)}return[u]},qO(e.options,"debugColumns"))};for(const d of e._features)null==d.createColumn||d.createColumn(u,e);return u}(r,e,a,n),i=e;return o.columns=i.columns?t(i.columns,o,a+1):[],o})};return t(e)},qO(e,"debugColumns")),getAllFlatColumns:VO(()=>[r.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),qO(e,"debugColumns")),_getAllFlatColumnsById:VO(()=>[r.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),qO(e,"debugColumns")),getAllLeafColumns:VO(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),qO(e,"debugColumns")),getColumn:e=>r._getAllFlatColumnsById()[e]};Object.assign(r,c);for(let u=0;u<r._features.length;u++){const e=r._features[u];null==e||null==e.createTable||e.createTable(r)}return r}function MI(e){const t=[],n=e=>{var a;t.push(e),null!=(a=e.subRows)&&a.length&&e.getIsExpanded()&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function BI(e,t,n){return n.options.filterFromLeafRows?function(e,t,n){var a;const r=[],o={},i=null!=(a=n.options.maxLeafRowFilterDepth)?a:100,s=function(e,a){void 0===a&&(a=0);const l=[];for(let u=0;u<e.length;u++){var c;let d=e[u];const h=GO(n,d.id,d.original,d.index,d.depth,void 0,d.parentId);if(h.columnFilters=d.columnFilters,null!=(c=d.subRows)&&c.length&&a<i){if(h.subRows=s(d.subRows,a+1),d=h,t(d)&&!h.subRows.length){l.push(d),o[d.id]=d,r.push(d);continue}if(t(d)||h.subRows.length){l.push(d),o[d.id]=d,r.push(d);continue}}else d=h,t(d)&&(l.push(d),o[d.id]=d,r.push(d))}return l};return{rows:s(e),flatRows:r,rowsById:o}}
2(e,t,n):function(e,t,n){var a;const r=[],o={},i=null!=(a=n.options.maxLeafRowFilterDepth)?a:100,s=function(e,a){void 0===a&&(a=0);const l=[];for(let u=0;u<e.length;u++){let d=e[u];if(t(d)){var c;if(null!=(c=d.subRows)&&c.length&&a<i){const e=GO(n,d.id,d.original,d.index,d.depth,void 0,d.parentId);e.subRows=s(d.subRows,a+1),d=e}l.push(d),r.push(d),o[d.id]=d}}return l};return{rows:s(e),flatRows:r,rowsById:o}}(e,t,n)}function zI(e,t){return e?function(e){return"function"===typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"===typeof n||function(e){return"object"===typeof e&&"symbol"===typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?o.createElement(e,t):e:null;var n}function LI(e,t){let[n,a]=t;return Math.min(a,Math.max(n,e))}const UI=["children"],VI=["children"];function qI(e){const t=HI(e),n=o.forwardRef((e,n)=>{const{children:a}=e,r=l(e,UI),i=o.Children.toArray(a),s=i.find(KI);if(s){const e=s.props.children,a=i.map(t=>t===s?o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null:t);return(0,_h.jsx)(t,p(p({},r),{},{ref:n,children:o.isValidElement(e)?o.cloneElement(e,void 0,a):null}))}return(0,_h.jsx)(t,p(p({},r),{},{ref:n,children:a}))});return n.displayName="".concat(e,".Slot"),n}function HI(e){const t=o.forwardRef((e,t)=>{const{children:n}=e,a=l(e,VI);if(o.isValidElement(n)){const e=function(e){var t,n;let a=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,r=a&&"isReactWarning"in a&&a.isReactWarning;if(r)return e.ref;if(a=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(n),r=function(e,t){const n=p({},t);for(const a in t){const r=e[a],o=t[a];/^on[A-Z]/.test(a)?r&&o?n[a]=function(){const e=o(...arguments);return r(...arguments),e}:r&&(n[a]=r):"style"===a?n[a]=p(p({},r),o):"className"===a&&(n[a]=[r,o].filter(Boolean).join(" "))}return p(p({},e),n)}(a,n.props);return n.type!==o.Fragment&&(r.ref=t?Yh(t,e):e),o.cloneElement(n,r)}return o.Children.count(n)>1?o.Children.only(null):null});return t.displayName="".concat(e,".SlotClone"),t}var WI=Symbol("radix.slottable");function KI(e){return o.isValidElement(e)&&"function"===typeof e.type&&"__radixId"in e.type&&e.type.__radixId===WI}const YI=["__scopeSelect","disabled"],GI=["__scopeSelect","className","style","children","placeholder"],JI=["__scopeSelect","children"],$I=["__scopeSelect","position","onCloseAutoFocus","onEscapeKeyDown","onPointerDownOutside","side","sideOffset","align","alignOffset","arrowPadding","collisionBoundary","collisionPadding","sticky","hideWhenDetached","avoidCollisions"],QI=["__scopeSelect","onPlaced"],XI=["__scopeSelect","align","collisionPadding"],ZI=["__scopeSelect","nonce"],eR=["__scopeSelect"],tR=["__scopeSelect"],nR=["__scopeSelect","value","disabled","textValue"],aR=["__scopeSelect","className","style"],rR=["__scopeSelect"],oR=["__scopeSelect","onAutoScroll"],iR=["__scopeSelect"],sR=["__scopeSelect"],lR=["__scopeSelect","value"];var cR=[" ","Enter","ArrowUp","ArrowDown"],uR=[" ","Enter"],dR="Select",[hR,pR,fR]=ap(dR),[mR,gR]=Lh(dR,[fR,Pb]),vR=Pb(),[yR,wR]=mR(dR),[_R,xR]=mR(dR),bR=e=>{const{__scopeSelect:t,children:n,open:a,defaultOpen:r,onOpenChange:i,value:s,defaultValue:l,onValueChange:c,dir:u,name:d,autoComplete:h,disabled:f,required:m,form:g}=e,v=vR(t),[y,w]=o.useState(null),[_,x]=o.useState(null),[b,k]=o.useState(!1),C=Dp(u),[D,A]=kp({prop:a,defaultProp:null!==r&&void 0!==r&&r,onChange:i,caller:dR}),[E,j]=kp({prop:s,defaultProp:l,onChange:c,caller:dR}),S=o.useRef(null),N=!y||(g||!!y.closest("form")),[P,T]=o.useState(new Set),F=Array.from(P).map(e=>e.props.value).join(";");return(0,_h.jsx)(Yb,p(p({},v),{},{children:(0,_h.jsxs)(yR,{required:m,scope:t,trigger:y,onTriggerChange:w,valueNode:_,onValueNodeChange:x,valueNodeHasChildren:b,onValueNodeHasChildrenChange:k,contentId:up(),value:E,onValueChange:j,open:D,onOpenChange:A,dir:C,triggerPointerDownPosRef:S,disabled:f,children:[(0,_h.jsx)(hR.Provider,{scope:t,children:(0,_h.jsx)(_R,{scope:e.__scopeSelect,onNativeOptionAdd:o.useCallback(e=>{T(t=>new Set(t).add(e))},[]),onNativeOptionRemove:o.useCallback(e=>{T(t=>{const n=new Set(t);return n.delete(e),n})},[]),children:n})}),N?(0,_h.jsxs)(uM,{"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:h,value:E,onChange:e=>j(e.target.value),disabled:f,form:g,children:[void 0===E?(0,_h.jsx)("option",{value:""}):null,Array.from(P)]},F):null]})}))};bR.displayName=dR;var kR="SelectTrigger",CR=o.forwardRef((e,t)=>
2{const{__scopeSelect:n,disabled:a=!1}=e,r=l(e,YI),i=vR(n),s=wR(kR,n),c=s.disabled||a,u=Gh(t,s.onTriggerChange),d=pR(n),h=o.useRef("touch"),[f,m,g]=hM(e=>{const t=d().filter(e=>!e.disabled),n=t.find(e=>e.value===s.value),a=pM(t,e,n);void 0!==a&&s.onValueChange(a.value)}),v=e=>{c||(s.onOpenChange(!0),g()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,_h.jsx)(Gb,p(p({asChild:!0},i),{},{children:(0,_h.jsx)(wp.button,p(p({type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":dM(s.value)?"":void 0},r),{},{ref:u,onClick:Mh(r.onClick,e=>{e.currentTarget.focus(),"mouse"!==h.current&&v(e)}),onPointerDown:Mh(r.onPointerDown,e=>{h.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(v(e),e.preventDefault())}),onKeyDown:Mh(r.onKeyDown,e=>{const t=""!==f.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),t&&" "===e.key||cR.includes(e.key)&&(v(),e.preventDefault())})}))}))});CR.displayName=kR;var DR="SelectValue",AR=o.forwardRef((e,t)=>{const{__scopeSelect:n,className:a,style:r,children:o,placeholder:i=""}=e,s=l(e,GI),c=wR(DR,n),{onValueNodeHasChildrenChange:u}=c,d=void 0!==o,h=Gh(t,c.onValueNodeChange);return sp(()=>{u(d)},[u,d]),(0,_h.jsx)(wp.span,p(p({},s),{},{ref:h,style:{pointerEvents:"none"},children:dM(c.value)?(0,_h.jsx)(_h.Fragment,{children:i}):o}))});AR.displayName=DR;var ER=o.forwardRef((e,t)=>{const{__scopeSelect:n,children:a}=e,r=l(e,JI);return(0,_h.jsx)(wp.span,p(p({"aria-hidden":!0},r),{},{ref:t,children:a||"\u25bc"}))});ER.displayName="SelectIcon";var jR=e=>(0,_h.jsx)(Xb,p({asChild:!0},e));jR.displayName="SelectPortal";var SR="SelectContent",NR=o.forwardRef((e,t)=>{const n=wR(SR,e.__scopeSelect),[a,r]=o.useState();if(sp(()=>{r(new DocumentFragment)},[]),!n.open){const t=a;return t?dp.createPortal((0,_h.jsx)(TR,{scope:e.__scopeSelect,children:(0,_h.jsx)(hR.Slot,{scope:e.__scopeSelect,children:(0,_h.jsx)("div",{children:e.children})})}),t):null}return(0,_h.jsx)(IR,p(p({},e),{},{ref:t}))});NR.displayName=SR;var PR=10,[TR,FR]=mR(SR),OR=qI("SelectContent.RemoveScroll"),IR=o.forwardRef((e,t)=>{const{__scopeSelect:n,position:a="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:i,onPointerDownOutside:s,side:c,sideOffset:u,align:d,alignOffset:h,arrowPadding:f,collisionBoundary:m,collisionPadding:g,sticky:v,hideWhenDetached:y,avoidCollisions:w}=e,_=l(e,$I),x=wR(SR,n),[b,k]=o.useState(null),[C,D]=o.useState(null),A=Gh(t,e=>k(e)),[E,j]=o.useState(null),[S,N]=o.useState(null),P=pR(n),[T,F]=o.useState(!1),O=o.useRef(!1);o.useEffect(()=>{if(b)return EA(b)},[b]),tA();const I=o.useCallback(e=>{const[t,...n]=P().map(e=>e.ref.current),[a]=n.slice(-1),r=document.activeElement;for(const o of e){if(o===r)return;if(null===o||void 0===o||o.scrollIntoView({block:"nearest"}),o===t&&C&&(C.scrollTop=0),o===a&&C&&(C.scrollTop=C.scrollHeight),null===o||void 0===o||o.focus(),document.activeElement!==r)return}},[P,C]),R=o.useCallback(()=>I([E,b]),[I,E,b]);o.useEffect(()=>{T&&R()},[T,R]);const{onOpenChange:M,triggerPointerDownPosRef:B}=x;o.useEffect(()=>{if(b){let e={x:0,y:0};const t=t=>{var n,a,r,o;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(a=B.current)||void 0===a?void 0:a.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(r=null===(o=B.current)||void 0===o?void 0:o.y)&&void 0!==r?r:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():b.contains(n.target)||M(!1),document.removeEventListener("pointermove",t),B.current=null};return null!==B.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[b,M,B]),o.useEffect(()=>{const e=()=>M(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[M]);const[z,L]=hM(e=>{const t=P().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),a=pM(t,e,n);a&&setTimeout(()=>a.ref.current.focus())}),U=o.useCallback((e,t,n)=>{const a=!O.current&&!n;(void 0!==x.value&&x.value===t||a)&&(j(e),a&&(O.current=!0))},[x.value]),V=o.useCallback(()=>null===b||void 0===b?void 0:b.focus(),[b]),q=o.useCallback((e,t,n)=>{const a=!O.current&&!n;(void 0!==x.value&&x.value===t||a)&&N(e)},[x.value]),H="popper"===a?MR:RR,W=H===MR?{side:c,sideOffset:u,align:d,alignOffset:h,arrowPadding:f,collisionBoundary:m,collisionPadding:g,sticky:v,hideWhenDetached:y,avoidCollisions:w}:{};return(0,_h.jsx)(TR,{scope:n,content:b,viewport:C,onViewportChange:D,itemRefCallback:U,selectedItem:E,onItemLeave:V,itemTextRefCallback:q,focusSelectedItem:R,selectedItemText:S,position:a,isPositioned:T,searchRef:z,children:(0,_h.jsx)(_E,{as:OR,allowPinchZoom:!0,children:(0,_h.jsx)(sA,{asChild:!0,trapped:x.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:Mh(r,e=>{var t;null===(t=x.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,_h.jsx)(A_,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:(0,_h.jsx)(H,p(p(p({role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:e=>e.preventDefault()},_),W),{},{onPlaced:()=>F(!0),ref:A,style:p({display:"flex",flexDirection:"column",outline:"none"},_.style),onKeyDown:Mh(_.onKeyDown,e=>{const t=e.ctrlKey||e.altKey||e.metaKey;
2if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||L(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=P().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,a=t.indexOf(n);t=t.slice(a+1)}setTimeout(()=>I(t)),e.preventDefault()}})}))})})})})});IR.displayName="SelectContentImpl";var RR=o.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:a}=e,r=l(e,QI),i=wR(SR,n),s=FR(SR,n),[c,u]=o.useState(null),[d,h]=o.useState(null),f=Gh(t,e=>h(e)),m=pR(n),g=o.useRef(!1),v=o.useRef(!0),{viewport:y,selectedItem:w,selectedItemText:_,focusSelectedItem:x}=s,b=o.useCallback(()=>{if(i.trigger&&i.valueNode&&c&&d&&y&&w&&_){const e=i.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),n=i.valueNode.getBoundingClientRect(),r=_.getBoundingClientRect();if("rtl"!==i.dir){const a=r.left-t.left,o=n.left-a,i=e.left-o,s=e.width+i,l=Math.max(s,t.width),u=window.innerWidth-PR,d=LI(o,[PR,Math.max(PR,u-l)]);c.style.minWidth=s+"px",c.style.left=d+"px"}else{const a=t.right-r.right,o=window.innerWidth-n.right-a,i=window.innerWidth-e.right-o,s=e.width+i,l=Math.max(s,t.width),u=window.innerWidth-PR,d=LI(o,[PR,Math.max(PR,u-l)]);c.style.minWidth=s+"px",c.style.right=d+"px"}const o=m(),s=window.innerHeight-2*PR,l=y.scrollHeight,u=window.getComputedStyle(d),h=parseInt(u.borderTopWidth,10),p=parseInt(u.paddingTop,10),f=parseInt(u.borderBottomWidth,10),v=h+p+l+parseInt(u.paddingBottom,10)+f,x=Math.min(5*w.offsetHeight,v),b=window.getComputedStyle(y),k=parseInt(b.paddingTop,10),C=parseInt(b.paddingBottom,10),D=e.top+e.height/2-PR,A=s-D,E=w.offsetHeight/2,j=h+p+(w.offsetTop+E),S=v-j;if(j<=D){const e=o.length>0&&w===o[o.length-1].ref.current;c.style.bottom="0px";const t=d.clientHeight-y.offsetTop-y.offsetHeight,n=j+Math.max(A,E+(e?C:0)+t+f);c.style.height=n+"px"}else{const e=o.length>0&&w===o[0].ref.current;c.style.top="0px";const t=Math.max(D,h+y.offsetTop+(e?k:0)+E)+S;c.style.height=t+"px",y.scrollTop=j-D+y.offsetTop}c.style.margin="".concat(PR,"px 0"),c.style.minHeight=x+"px",c.style.maxHeight=s+"px",null===a||void 0===a||a(),requestAnimationFrame(()=>g.current=!0)}},[m,i.trigger,i.valueNode,c,d,y,w,_,i.dir,a]);sp(()=>b(),[b]);const[k,C]=o.useState();sp(()=>{d&&C(window.getComputedStyle(d).zIndex)},[d]);const D=o.useCallback(e=>{e&&!0===v.current&&(b(),null===x||void 0===x||x(),v.current=!1)},[b,x]);return(0,_h.jsx)(BR,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:g,onScrollButtonChange:D,children:(0,_h.jsx)("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:(0,_h.jsx)(wp.div,p(p({},r),{},{ref:f,style:p({boxSizing:"border-box",maxHeight:"100%"},r.style)}))})})});RR.displayName="SelectItemAlignedPosition";var MR=o.forwardRef((e,t)=>{const{__scopeSelect:n,align:a="start",collisionPadding:r=PR}=e,o=l(e,XI),i=vR(n);return(0,_h.jsx)(Jb,p(p(p({},i),o),{},{ref:t,align:a,collisionPadding:r,style:p(p({boxSizing:"border-box"},o.style),{"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"})}))});MR.displayName="SelectPopperPosition";var[BR,zR]=mR(SR,{}),LR="SelectViewport",UR=o.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:a}=e,r=l(e,ZI),i=FR(LR,n),s=zR(LR,n),c=Gh(t,i.onViewportChange),u=o.useRef(0);return(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),(0,_h.jsx)(hR.Slot,{scope:n,children:(0,_h.jsx)(wp.div,p(p({"data-radix-select-viewport":"",role:"presentation"},r),{},{ref:c,style:p({position:"relative",flex:1,overflow:"hidden auto"},r.style),onScroll:Mh(r.onScroll,e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:a}=s;
2if(null!==a&&void 0!==a&&a.current&&n){const e=Math.abs(u.current-t.scrollTop);if(e>0){const a=window.innerHeight-2*PR,r=parseFloat(n.style.minHeight),o=parseFloat(n.style.height),i=Math.max(r,o);if(i<a){const r=i+e,o=Math.min(a,r),s=r-o;n.style.height=o+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}u.current=t.scrollTop})}))})]})});UR.displayName=LR;var VR="SelectGroup",[qR,HR]=mR(VR),WR=o.forwardRef((e,t)=>{const{__scopeSelect:n}=e,a=l(e,eR),r=up();return(0,_h.jsx)(qR,{scope:n,id:r,children:(0,_h.jsx)(wp.div,p(p({role:"group","aria-labelledby":r},a),{},{ref:t}))})});WR.displayName=VR;var KR="SelectLabel",YR=o.forwardRef((e,t)=>{const{__scopeSelect:n}=e,a=l(e,tR),r=HR(KR,n);return(0,_h.jsx)(wp.div,p(p({id:r.id},a),{},{ref:t}))});YR.displayName=KR;var GR="SelectItem",[JR,$R]=mR(GR),QR=o.forwardRef((e,t)=>{const{__scopeSelect:n,value:a,disabled:r=!1,textValue:i}=e,s=l(e,nR),c=wR(GR,n),u=FR(GR,n),d=c.value===a,[h,f]=o.useState(null!==i&&void 0!==i?i:""),[m,g]=o.useState(!1),v=Gh(t,e=>{var t;return null===(t=u.itemRefCallback)||void 0===t?void 0:t.call(u,e,a,r)}),y=up(),w=o.useRef("touch"),_=()=>{r||(c.onValueChange(a),c.onOpenChange(!1))};if(""===a)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,_h.jsx)(JR,{scope:n,value:a,disabled:r,textId:y,isSelected:d,onItemTextChange:o.useCallback(e=>{f(t=>{var n;return t||(null!==(n=null===e||void 0===e?void 0:e.textContent)&&void 0!==n?n:"").trim()})},[]),children:(0,_h.jsx)(hR.ItemSlot,{scope:n,value:a,disabled:r,textValue:h,children:(0,_h.jsx)(wp.div,p(p({role:"option","aria-labelledby":y,"data-highlighted":m?"":void 0,"aria-selected":d&&m,"data-state":d?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1},s),{},{ref:v,onFocus:Mh(s.onFocus,()=>g(!0)),onBlur:Mh(s.onBlur,()=>g(!1)),onClick:Mh(s.onClick,()=>{"mouse"!==w.current&&_()}),onPointerUp:Mh(s.onPointerUp,()=>{"mouse"===w.current&&_()}),onPointerDown:Mh(s.onPointerDown,e=>{w.current=e.pointerType}),onPointerMove:Mh(s.onPointerMove,e=>{var t;(w.current=e.pointerType,r)?null===(t=u.onItemLeave)||void 0===t||t.call(u):"mouse"===w.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Mh(s.onPointerLeave,e=>{var t;e.currentTarget===document.activeElement&&(null===(t=u.onItemLeave)||void 0===t||t.call(u))}),onKeyDown:Mh(s.onKeyDown,e=>{var t;""!==(null===(t=u.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(uR.includes(e.key)&&_()," "===e.key&&e.preventDefault())})}))})})});QR.displayName=GR;var XR="SelectItemText",ZR=o.forwardRef((e,t)=>{const{__scopeSelect:n,className:a,style:r}=e,i=l(e,aR),s=wR(XR,n),c=FR(XR,n),u=$R(XR,n),d=xR(XR,n),[h,f]=o.useState(null),m=Gh(t,e=>f(e),u.onItemTextChange,e=>{var t;return null===(t=c.itemTextRefCallback)||void 0===t?void 0:t.call(c,e,u.value,u.disabled)}),g=null===h||void 0===h?void 0:h.textContent,v=o.useMemo(()=>(0,_h.jsx)("option",{value:u.value,disabled:u.disabled,children:g},u.value),[u.disabled,u.value,g]),{onNativeOptionAdd:y,onNativeOptionRemove:w}=d;return sp(()=>(y(v),()=>w(v)),[y,w,v]),(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsx)(wp.span,p(p({id:u.textId},i),{},{ref:m})),u.isSelected&&s.valueNode&&!s.valueNodeHasChildren?dp.createPortal(i.children,s.valueNode):null]})});ZR.displayName=XR;var eM="SelectItemIndicator",tM=o.forwardRef((e,t)=>{const{__scopeSelect:n}=e,a=l(e,rR);return $R(eM,n).isSelected?(0,_h.jsx)(wp.span,p(p({"aria-hidden":!0},a),{},{ref:t})):null});tM.displayName=eM;var nM="SelectScrollUpButton",aM=o.forwardRef((e,t)=>{const n=FR(nM,e.__scopeSelect),a=zR(nM,e.__scopeSelect),[r,i]=o.useState(!1),s=Gh(t,a.onScrollButtonChange);return sp(()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;i(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),r?(0,_h.jsx)(iM,p(p({},e),{},{ref:s,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null});aM.displayName=nM;var rM="SelectScrollDownButton",oM=o.forwardRef((e,t)=>
2{const n=FR(rM,e.__scopeSelect),a=zR(rM,e.__scopeSelect),[r,i]=o.useState(!1),s=Gh(t,a.onScrollButtonChange);return sp(()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;i(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),r?(0,_h.jsx)(iM,p(p({},e),{},{ref:s,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null});oM.displayName=rM;var iM=o.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:a}=e,r=l(e,oR),i=FR("SelectScrollButton",n),s=o.useRef(null),c=pR(n),u=o.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return o.useEffect(()=>()=>u(),[u]),sp(()=>{var e;const t=c().find(e=>e.ref.current===document.activeElement);null===t||void 0===t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})},[c]),(0,_h.jsx)(wp.div,p(p({"aria-hidden":!0},r),{},{ref:t,style:p({flexShrink:0},r.style),onPointerDown:Mh(r.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(a,50))}),onPointerMove:Mh(r.onPointerMove,()=>{var e;null===(e=i.onItemLeave)||void 0===e||e.call(i),null===s.current&&(s.current=window.setInterval(a,50))}),onPointerLeave:Mh(r.onPointerLeave,()=>{u()})}))}),sM=o.forwardRef((e,t)=>{const{__scopeSelect:n}=e,a=l(e,iR);return(0,_h.jsx)(wp.div,p(p({"aria-hidden":!0},a),{},{ref:t}))});sM.displayName="SelectSeparator";var lM="SelectArrow",cM=o.forwardRef((e,t)=>{const{__scopeSelect:n}=e,a=l(e,sR),r=vR(n),o=wR(lM,n),i=FR(lM,n);return o.open&&"popper"===i.position?(0,_h.jsx)($b,p(p(p({},r),a),{},{ref:t})):null});cM.displayName=lM;var uM=o.forwardRef((e,t)=>{let{__scopeSelect:n,value:a}=e,r=l(e,lR);const i=o.useRef(null),s=Gh(t,i),c=HP(a);return o.useEffect(()=>{const e=i.current;if(!e)return;const t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,"value").set;if(c!==a&&n){const t=new Event("change",{bubbles:!0});n.call(e,a),e.dispatchEvent(t)}},[c,a]),(0,_h.jsx)(wp.select,p(p({},r),{},{style:p(p({},tk),r.style),ref:s,defaultValue:a}))});function dM(e){return""===e||void 0===e}function hM(e){const t=xp(e),n=o.useRef(""),a=o.useRef(0),r=o.useCallback(e=>{const r=n.current+e;t(r),function e(t){n.current=t,window.clearTimeout(a.current),""!==t&&(a.current=window.setTimeout(()=>e(""),1e3))}(r)},[t]),i=o.useCallback(()=>{n.current="",window.clearTimeout(a.current)},[]);return o.useEffect(()=>()=>window.clearTimeout(a.current),[]),[n,r,i]}function pM(e,t,n){const a=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,r=n?e.indexOf(n):-1;let o=function(e,t){return e.map((n,a)=>e[(t+a)%e.length])}(e,Math.max(r,0));1===a.length&&(o=o.filter(e=>e!==n));const i=o.find(e=>e.textValue.toLowerCase().startsWith(a.toLowerCase()));return i!==n?i:void 0}uM.displayName="SelectBubbleInput";var fM=bR,mM=CR,gM=AR,vM=ER,yM=jR,wM=NR,_M=UR,xM=WR,bM=YR,kM=QR,CM=ZR,DM=tM,AM=aM,EM=oM,jM=sM;const SM=["className","children","loading"],NM=["className"],PM=["className"],TM=["className","children","position"],FM=["className"],OM=["className","children"],IM=["className"];var RM=fM,MM=xM,BM=gM,zM=Ah((e,t)=>{let{className:n,children:a,loading:r}=e,o=l(e,SM);return(0,_h.jsxs)(mM,p(p({ref:t,className:wh("backdrop-blur-md bg-white/20 dark:bg-black/20 flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r&&"cursor-wait",n)},o),{},{children:[a,(0,_h.jsx)(vM,{asChild:!0,children:r?(0,_h.jsx)("div",{className:"h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent opacity-50"}):(0,_h.jsx)(uv,{className:"h-4 w-4 opacity-50"})})]}))});zM.displayName=mM.displayName;var LM=Ah((e,t)=>{let{className:n}=e,a=l(e,NM);return(0,_h.jsx)(AM,p(p({ref:t,className:wh("flex cursor-default items-center justify-center py-1",n)},a),{},{children:(0,_h.jsx)(_v,{})}))});LM.displayName=AM.displayName;var UM=Ah((e,t)=>{let{className:n}=e,a=l(e,PM);return(0,_h.jsx)(EM,p(p({ref:t,className:wh("flex cursor-default items-center justify-center py-1",n)},a),{},{children:(0,_h.jsx)(fv,{})}))});UM.displayName=EM.displayName;var VM=Ah((e,t)=>{let{className:n,children:a,position:r="popper"}=e,o=l(e,TM);return(0,_h.jsx)(yM,{children:(0,_h.jsxs)(wM,p(p({ref:t,className:wh("stack-scope relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
2de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===r&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:r},o),{},{children:[(0,_h.jsx)(LM,{}),(0,_h.jsx)(_M,{className:wh("p-1","popper"===r&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),(0,_h.jsx)(UM,{})]}))})});VM.displayName=wM.displayName;var qM=Ah((e,t)=>{let{className:n}=e,a=l(e,FM);return(0,_h.jsx)(bM,p({ref:t,className:wh("px-2 py-1.5 text-sm font-semibold",n)},a))});qM.displayName=bM.displayName;var HM=Ah((e,t)=>{let{className:n,children:a}=e,r=l(e,OM);return(0,_h.jsxs)(kM,p(p({ref:t,className:wh("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n)},r),{},{children:[(0,_h.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,_h.jsx)(DM,{children:(0,_h.jsx)(hv,{className:"h-4 w-4"})})}),(0,_h.jsx)(CM,{children:a})]}))});HM.displayName=kM.displayName;var WM,KM=Ah((e,t)=>{let{className:n}=e,a=l(e,IM);return(0,_h.jsx)(jM,p({ref:t,className:wh("-mx-1 my-1 h-px bg-muted",n)},a))});function YM(e){let{table:t}=e;return(0,_h.jsxs)("div",{className:"flex items-center justify-between px-2 flex-col sm:flex-row gap-y-4 sm:gap-y-0",children:[(0,_h.jsx)("div",{className:"flex-1 text-sm text-muted-foreground",children:0!==t.getFilteredSelectedRowModel().rows.length?"".concat(t.getFilteredSelectedRowModel().rows.length," of ").concat(t.getFilteredRowModel().rows.length," row(s) selected"):void 0}),(0,_h.jsxs)("div",{className:"flex items-center gap-x-6 lg:gap-x-8 flex-col sm:flex-row gap-y-4 sm:gap-y-0",children:[(0,_h.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,_h.jsx)("p",{className:"text-sm font-medium",children:"Rows per page"}),(0,_h.jsxs)(RM,{value:"".concat(t.getState().pagination.pageSize),onValueChange:e=>{t.setPageSize(Number(e))},children:[(0,_h.jsx)(zM,{className:"h-8 w-[70px]",children:(0,_h.jsx)(BM,{placeholder:t.getState().pagination.pageSize})}),(0,_h.jsx)(VM,{side:"top",children:[10,20,30,40,50].map(e=>(0,_h.jsx)(HM,{value:"".concat(e),children:e},e))})]})]}),(0,_h.jsxs)("div",{className:"flex items-center gap-4",children:[(0,_h.jsx)("div",{className:"flex items-center justify-center text-sm font-medium",children:t.getState().pagination.pageIndex+1}),(0,_h.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,_h.jsxs)(Uv,{variant:"outline",className:"h-8 w-8 p-0",onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),children:[(0,_h.jsx)("span",{className:"sr-only",children:"Go to previous page"}),(0,_h.jsx)(gv,{className:"h-4 w-4"})]}),(0,_h.jsxs)(Uv,{variant:"outline",className:"h-8 w-8 p-0",onClick:()=>t.nextPage(),disabled:!t.getCanNextPage(),children:[(0,_h.jsx)("span",{className:"sr-only",children:"Go to next page"}),(0,_h.jsx)(yv,{className:"h-4 w-4"})]})]})]})]})]})}KM.displayName=jM.displayName,function(e){e.csv="text/csv",e.tsv="text/tab-separated-values",e.plain="text/plain"}(WM||(WM={}));var GM=e=>e,JM=e=>e,$M=GM,QM=GM,XM=GM,ZM=GM,eB=GM,tB={fieldSeparator:",",decimalSeparator:".",quoteStrings:!0,quoteCharacter:'"',showTitle:!1,title:"My Generated Report",filename:"generated",showColumnHeaders:!0,useTextFile:!1,fileExtension:"csv",mediaType:WM.csv,useBom:!0,columnHeaders:[],useKeysAsHeaders:!1,boolDisplay:{true:"TRUE",false:"FALSE"},replaceUndefinedWith:""},nB=e=>Object.assign({},tB,e);class aB extends Error{constructor(e){super(e),this.name="CsvGenerationError"}}class rB extends Error{constructor(e){super(e),this.name="EmptyHeadersError"}}class oB extends Error{constructor(e){super(e),this.name="CsvDownloadEnvironmentError"}}class iB extends Error{constructor(e){super(e),this.name="UnsupportedDataFormatError"}}var sB=e=>ZM("object"===typeof e?e.key:e),lB=e=>eB("object"===typeof e?e.displayLabel:e),cB=e=>t=>QM(e+t+"\r\n"),uB=e=>(t,n)=>dB(e)(XM(t+n)),dB=e=>t=>t+e.fieldSeparator,hB=(e,t)=>
2{if((e=>+e===e&&(!isFinite(e)||Boolean(e%1)))(t)){if("locale"===e.decimalSeparator)return $M(t.toLocaleString());if(e.decimalSeparator)return $M(t.toString().replace(".",e.decimalSeparator))}return $M(t.toString())},pB=(e,t)=>{let n=t;return(e.quoteStrings||e.fieldSeparator&&t.indexOf(e.fieldSeparator)>-1||e.quoteCharacter&&t.indexOf(e.quoteCharacter)>-1||t.indexOf("\n")>-1||t.indexOf("\r")>-1)&&(n=e.quoteCharacter+function(e,t){return'"'==t&&e.indexOf('"')>-1?e.replace(/"/g,'""'):e}(t,e.quoteCharacter)+e.quoteCharacter),$M(n)},fB=(e,t)=>{if("number"===typeof t)return hB(e,t);if("string"===typeof t)return pB(e,t);if("boolean"===typeof t&&e.boolDisplay)return((e,t)=>{const n=t?"true":"false";return $M(e.boolDisplay[n])})(e,t);if(null===t||"undefined"===typeof t)return((e,t)=>"undefined"===typeof t&&void 0!==e.replaceUndefinedWith?pB(e,e.replaceUndefinedWith+""):pB(e,null===t?"null":""))(e,t);throw new iB("\n    typeof ".concat(typeof t," isn't supported. Only number, string, boolean, null and undefined are supported.\n    Please convert the data in your object to one of those before generating the CSV.\n    "))},mB=e=>t=>{const n=nB(e),a=n.useKeysAsHeaders?Object.keys(t[0]):n.columnHeaders;let r=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return n.reduce((e,t)=>t(e),e)}(QM(""),(e=>t=>e.useBom?QM(t+"\ufeff"):t)(n),(e=>t=>e.showTitle?cB(QM(t+e.title))(XM("")):t)(n),((e,t)=>n=>{if(!e.showColumnHeaders)return n;if(t.length<1)throw new rB("Option to show headers but none supplied. Make sure there are keys in your collection or that you've supplied headers through the config options.");let a=XM("");for(let r=0;r<t.length;r++){const n=lB(t[r]);a=uB(e)(a,fB(e,JM(n)))}return a=XM(a.slice(0,-1)),cB(n)(a)})(n,a),((e,t,n)=>a=>{let r=a;for(var o=0;o<n.length;o++){let a=XM("");for(let r=0;r<t.length;r++){const i=sB(t[r]),s=n[o][JM(i)];a=uB(e)(a,fB(e,s))}a=XM(JM(a).slice(0,-1)),r=cB(r)(a)}return r})(n,a,t));if(r.length<1)throw new aB("Output is empty. Is your data formatted correctly?");return r},gB=e=>t=>{if(!window)throw new oB("Downloading only supported in a browser environment.");const n=(e=>t=>{const n=nB(e),a=t,r=n.useTextFile?"text/plain":n.mediaType;return new Blob([a],{type:"".concat(r,";charset=utf8;")})})(e)(t),a=nB(e),r=a.useTextFile?"txt":a.fileExtension,o="".concat(a.filename,".").concat(r),i=document.createElement("a");i.download=o,i.href=URL.createObjectURL(n),i.setAttribute("visibility","hidden"),document.body.appendChild(i),i.click(),document.body.removeChild(i)};const vB=rv("download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);function yB(e){let{table:t,variant:n="secondary",className:a="ml-auto hidden h-8 px-3 text-xs gap-1.5 lg:flex",iconClassName:r="h-3.5 w-3.5"}=e;return(0,_h.jsxs)(lN,{children:[(0,_h.jsx)(cN,{asChild:!0,children:(0,_h.jsxs)(Uv,{variant:n,size:"sm",className:a,children:[(0,_h.jsx)(Tv,{className:r}),"View"]}
2)}),(0,_h.jsxs)(uN,{align:"end",children:[(0,_h.jsx)(pN,{children:"Toggle columns"}),(0,_h.jsx)(fN,{}),t.getAllColumns().filter(e=>("undefined"!==typeof e.accessorFn||"accessorKey"in e.columnDef)&&e.getCanHide()).map(e=>(0,_h.jsx)(hN,{className:"capitalize",checked:e.getIsVisible(),onCheckedChange:t=>e.toggleVisibility(!!t),children:e.id},e.id))]})]})}function wB(e){let{table:t,toolbarRender:n,showDefaultToolbar:a,defaultColumnFilters:r,defaultSorting:o,showResetFilters:i=!0}=e;const s=!tn(t.getState().columnFilters,r),l=!tn(t.getState().sorting,o);return(0,_h.jsxs)("div",{className:"flex items-center justify-between",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-2 flex-wrap flex-1 stack-scope",children:[null===n||void 0===n?void 0:n(t),i&&(s||l)&&(0,_h.jsxs)(Uv,{variant:"ghost",onClick:()=>{t.setColumnFilters(r),t.setSorting(o)},className:"h-8 px-2 lg:px-3",children:["Reset filters",(0,_h.jsx)(bv,{className:"ml-2 h-4 w-4"})]})]}),a&&(0,_h.jsx)(_h.Fragment,{children:(0,_h.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,_h.jsx)(yB,{table:t}),(0,_h.jsxs)(Uv,{variant:"outline",size:"sm",className:"ml-auto hidden h-8 lg:flex",onClick:()=>{const e=nB({fieldSeparator:",",filename:"data",decimalSeparator:".",useKeysAsHeaders:!0}),n=e=>{const t=e.renderValue();if(null!==t)return["string","number","boolean","undefined"].includes(typeof t)?t:t instanceof Date?t.toISOString():"object"===typeof t?JSON.stringify(t):void 0},a=t.getCoreRowModel().rows.map(e=>Object.fromEntries(e.getAllCells().map(e=>[e.column.id,n(e)]).filter(e=>{let[t,n]=e;return void 0!==n})));if(0===a.length)return void alert("No data to export");const r=mB(e)(a);gB(e)(r)},children:[(0,_h.jsx)(vB,{className:"mr-2 h-4 w-4"}),"Export CSV"]})]})})]})}function _B(e){return(0,_h.jsxs)("div",{className:"space-y-4",children:[(0,_h.jsx)(wB,{table:e.table,toolbarRender:e.toolbarRender,showDefaultToolbar:e.showDefaultToolbar,defaultColumnFilters:e.defaultColumnFilters,defaultSorting:e.defaultSorting}),(0,_h.jsx)("div",{className:"rounded-md border",children:(0,_h.jsxs)(WD,{children:[(0,_h.jsx)(KD,{children:e.table.getHeaderGroups().map(e=>(0,_h.jsx)(GD,{children:e.headers.map(e=>(0,_h.jsx)(JD,{colSpan:e.colSpan,children:e.isPlaceholder?null:zI(e.column.columnDef.header,e.getContext())},e.id))},e.id))}),(0,_h.jsx)(YD,{children:e.table.getRowModel().rows.length?e.table.getRowModel().rows.map(t=>(0,_h.jsx)(GD,{"data-state":t.getIsSelected()&&"selected",onClick:n=>{var a;n.target instanceof Node&&n.currentTarget.contains(n.target)&&(null===(a=e.onRowClick)||void 0===a||a.call(e,t.original))},children:t.getVisibleCells().map(e=>(0,_h.jsx)($D,{children:zI(e.column.columnDef.cell,e.getContext())},e.id))},t.id)):(0,_h.jsx)(GD,{children:(0,_h.jsx)($D,{colSpan:e.columns.length,className:"h-24 text-center",children:"No results."})})})]})}),(0,_h.jsx)(YM,{table:e.table})]})}function xB(e){let{columns:t,data:n,toolbarRender:a,defaultVisibility:r,defaultColumnFilters:i,defaultSorting:s,showDefaultToolbar:l=!0,onRowClick:c}=e;const[u,d]=o.useState(s),[h,p]=o.useState(i),[f,m]=o.useState({pageIndex:0,pageSize:10}),[g,v]=o.useState();return(0,_h.jsx)(bB,{columns:t,data:n,toolbarRender:a,defaultVisibility:r,sorting:u,setSorting:d,defaultSorting:s,columnFilters:h,setColumnFilters:p,defaultColumnFilters:i,manualPagination:!1,manualFiltering:!1,pagination:f,setPagination:m,globalFilter:g,setGlobalFilter:v,showDefaultToolbar:l,onRowClick:c})}function bB(e){let{columns:t,data:n,toolbarRender:a,defaultVisibility:r,sorting:i,setSorting:s,defaultColumnFilters:l,defaultSorting:c,pagination:u,setPagination:d,rowCount:h,columnFilters:f,setColumnFilters:m,globalFilter:g,setGlobalFilter:v,manualPagination:y=!0,manualFiltering:w=!0,showDefaultToolbar:_=!0,onRowClick:x}=e;const[b,k]=o.useState({}),[C,D]=o.useState(r||{}),A=function(e){const t=p({state:{},onStateChange:()=>{},renderFallbackValue:null},e),[n]=o.useState(()=>({current:RI(t)})),[a,r]=o.useState(()=>n.current.initialState);return n.current.setOptions(t=>p(p(p({},t),e),{},{state:p(p({},a),e.state),onStateChange:t=>{r(t),null==e.onStateChange||e.onStateChange(t)}
2})),n.current}({data:n,columns:t,state:{sorting:i,columnVisibility:C,rowSelection:b,columnFilters:f,pagination:u,globalFilter:g},enableRowSelection:!0,onGlobalFilterChange:v,onRowSelectionChange:k,onSortingChange:s,onColumnFiltersChange:m,onColumnVisibilityChange:D,onPaginationChange:d,getColumnCanGlobalFilter:e=>{var t;return null!==(t=e.columnDef.enableGlobalFilter)&&void 0!==t?t:_I.getDefaultOptions(A).getColumnCanGlobalFilter(e)},getCoreRowModel:e=>VO(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},a=function(t,r,o){void 0===r&&(r=0);const i=[];for(let l=0;l<t.length;l++){const c=GO(e,e._getRowId(t[l],l,o),t[l],l,r,void 0,null==o?void 0:o.id);var s;n.flatRows.push(c),n.rowsById[c.id]=c,i.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(t[l],l),null!=(s=c.originalSubRows)&&s.length&&(c.subRows=a(c.originalSubRows,r+1,c)))}return i};return n.rows=a(t),n},qO(e.options,"debugTable",0,()=>e._autoResetPageIndex())),getFilteredRowModel:e=>VO(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,a)=>{if(!t.rows.length||(null==n||!n.length)&&!a){for(let e=0;e<t.flatRows.length;e++)t.flatRows[e].columnFilters={},t.flatRows[e].columnFiltersMeta={};return t}const r=[],o=[];(null!=n?n:[]).forEach(t=>{var n;const a=e.getColumn(t.id);if(!a)return;const o=a.getFilterFn();o&&r.push({id:t.id,filterFn:o,resolvedValue:null!=(n=null==o.resolveFilterValue?void 0:o.resolveFilterValue(t.value))?n:t.value})});const i=(null!=n?n:[]).map(e=>e.id),s=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter(e=>e.getCanGlobalFilter());let c,u;a&&s&&l.length&&(i.push("__global__"),l.forEach(e=>{var t;o.push({id:e.id,filterFn:s,resolvedValue:null!=(t=null==s.resolveFilterValue?void 0:s.resolveFilterValue(a))?t:a})}));for(let e=0;e<t.flatRows.length;e++){const n=t.flatRows[e];if(n.columnFilters={},r.length)for(let e=0;e<r.length;e++){c=r[e];const t=c.id;n.columnFilters[t]=c.filterFn(n,t,c.resolvedValue,e=>{n.columnFiltersMeta[t]=e})}if(o.length){for(let e=0;e<o.length;e++){u=o[e];const t=u.id;if(u.filterFn(n,t,u.resolvedValue,e=>{n.columnFiltersMeta[t]=e})){n.columnFilters.__global__=!0;break}}!0!==n.columnFilters.__global__&&(n.columnFilters.__global__=!1)}}return BI(t.rows,e=>{for(let t=0;t<i.length;t++)if(!1===e.columnFilters[i[t]])return!1;return!0},e)},qO(e.options,"debugTable",0,()=>e._autoResetPageIndex())),getPaginationRowModel:e=>VO(()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded],(t,n)=>{if(!n.rows.length)return n;const{pageSize:a,pageIndex:r}=t;let{rows:o,flatRows:i,rowsById:s}=n;const l=a*r,c=l+a;let u;o=o.slice(l,c),u=e.options.paginateExpandedRows?{rows:o,flatRows:i,rowsById:s}:MI({rows:o,flatRows:i,rowsById:s}),u.flatRows=[];const d=e=>{u.flatRows.push(e),e.subRows.length&&e.subRows.forEach(d)};return u.rows.forEach(d),u},qO(e.options,"debugTable")),getSortedRowModel:e=>VO(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const a=e.getState().sorting,r=[],o=a.filter(t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()}),i={};o.forEach(t=>{const n=e.getColumn(t.id);n&&(i[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})});const s=e=>{const t=e.map(e=>p({},e));return t.sort((e,t)=>{for(let a=0;a<o.length;a+=1){var n;const r=o[a],s=i[r.id],l=s.sortUndefined,c=null!=(n=null==r?void 0:r.desc)&&n;let u=0;if(l){const n=void 0===e.getValue(r.id),a=void 0===t.getValue(r.id);if(n||a){if("first"===l)return n?-1:1;if("last"===l)return n?1:-1;u=n&&a?0:n?l:-l}}if(0===u&&(u=s.sortingFn(e,t,r.id)),0!==u)return c&&(u*=-1),s.invertSorting&&(u*=-1),u}return e.index-t.index}),t.forEach(e=>{var t;r.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=s(e.subRows))}),t};return{rows:s(n.rows),flatRows:r,rowsById:n.rowsById}},qO(e.options,"debugTable",0,()=>e._autoResetPageIndex())),getFacetedRowModel:(e,t)=>VO(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter,e.getFilteredRowModel()],(n,a,r)=>{if(!n.rows.length||(null==a||!a.length)&&!r)return n;const o=[...a.map(e=>e.id).filter(e=>
2e!==t),r?"__global__":void 0].filter(Boolean);return BI(n.rows,e=>{for(let t=0;t<o.length;t++)if(!1===e.columnFilters[o[t]])return!1;return!0},e)},qO(e.options,"debugTable")),getFacetedUniqueValues:(e,t)=>VO(()=>{var n;return[null==(n=e.getColumn(t))?void 0:n.getFacetedRowModel()]},e=>{if(!e)return new Map;let n=new Map;for(let r=0;r<e.flatRows.length;r++){const o=e.flatRows[r].getUniqueValues(t);for(let e=0;e<o.length;e++){const t=o[e];var a;n.has(t)?n.set(t,(null!=(a=n.get(t))?a:0)+1):n.set(t,1)}}return n},qO(e.options,"debugTable","getFacetedUniqueValues_".concat(t))),autoResetAll:!1,manualPagination:y,manualFiltering:w,rowCount:h});return(0,_h.jsx)(_B,{table:A,columns:t,toolbarRender:a,showDefaultToolbar:_,defaultColumnFilters:l,defaultSorting:c,onRowClick:x})}function kB(e){return(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsx)(PT,{table:e,placeholder:"Search table"}),(0,_h.jsx)(FO,{column:e.getColumn("status"),title:"Status",options:["valid","expired","revoked"].map(e=>({value:e,label:e}))})]})}function CB(e){return(0,_h.jsx)(pT,{open:e.open,onOpenChange:e.onOpenChange,title:"Revoke API Key",danger:!0,cancelButton:!0,okButton:{label:"Revoke Key",onClick:async()=>{await e.apiKey.revoke()}},confirmText:"I understand this will unlink all the apps using this API key",children:"Are you sure you want to revoke API key *****".concat(e.apiKey.value.lastFour,"?")})}function DB(e){let{row:t}=e;const[n,a]=(0,o.useState)(!1);return(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsx)(CB,{apiKey:t.original,open:n,onOpenChange:a}),(0,_h.jsx)(vN,{invisible:"valid"!==t.original.status,items:[{item:"Revoke",danger:!0,onClick:()=>a(!0)}]})]})}var AB=[{accessorKey:"description",header:e=>{let{column:t}=e;return(0,_h.jsx)(MO,{column:t,columnTitle:"Description"})},cell:e=>{let{row:t}=e;return(0,_h.jsx)(mN,{size:100,children:t.original.description})}},{accessorKey:"status",header:e=>{let{column:t}=e;return(0,_h.jsx)(MO,{column:t,columnTitle:"Status"})},cell:e=>{let{row:t}=e;return(0,_h.jsx)(yN,{badges:[t.original.status]})},filterFn:function(e,t,n){return n.includes(e.getValue(t))}},{id:"value",accessorFn:e=>e.value.lastFour,header:e=>{let{column:t}=e;return(0,_h.jsx)(MO,{column:t,columnTitle:"Client Key"})},cell:e=>{let{row:t}=e;return(0,_h.jsxs)(mN,{children:["*******",t.original.value.lastFour]})},enableSorting:!1},{accessorKey:"expiresAt",header:e=>{let{column:t}=e;return(0,_h.jsx)(MO,{column:t,columnTitle:"Expires At"})},cell:e=>{let{row:t}=e;return"revoked"===t.original.status?(0,_h.jsx)(mN,{children:"-"}):t.original.expiresAt?(0,_h.jsx)(gN,{date:t.original.expiresAt,ignoreAfterYears:50}):(0,_h.jsx)(mN,{children:"Never"})}},{accessorKey:"createdAt",header:e=>{let{column:t}=e;return(0,_h.jsx)(MO,{column:t,columnTitle:"Created At"})},cell:e=>{let{row:t}=e;return(0,_h.jsx)(gN,{date:t.original.createdAt,ignoreAfterYears:50})}},{id:"actions",cell:e=>{let{row:t}=e;return(0,_h.jsx)(DB,{row:t})}}];function EB(e){const t=(0,o.useMemo)(()=>e.apiKeys.map(e=>p(p({},e),{},{status:{valid:"valid","manually-revoked":"revoked",expired:"expired"}[e.whyInvalid()||"valid"]})).sort((e,t)=>e.status===t.status?e.createdAt<t.createdAt?1:-1:"valid"===e.status?-1:1),[e.apiKeys]);return(0,_h.jsx)(xB,{data:t,columns:AB,toolbarRender:kB,defaultColumnFilters:[],defaultSorting:[]})}function jB(e){const{t:t}=yw(),n=!!(null!==e&&void 0!==e&&e.mockApiKeys||null!==e&&void 0!==e&&e.mockMode),a=sg({or:n?"return-null":"redirect"});if(!n&&!a)return null;const r=null!==e&&void 0!==e&&e.mockApiKeys?e.mockApiKeys.map(e=>({id:e.id,description:e.description,createdAt:new Date(e.createdAt),expiresAt:e.expiresAt?new Date(e.expiresAt):void 0,manuallyRevokedAt:e.manuallyRevokedAt?new Date(e.manuallyRevokedAt):null,value:{lastFour:e.id.slice(-4).padStart(4,"0")},type:"user",userId:"mock-user-id",update:async()=>{console.log("Mock API key update called")},revoke:async()=>{console.log("Mock API key revoke called")},isValid:()=>{const t=new Date,n=!!e.expiresAt&&new Date(e.expiresAt)<t,a=!!e.manuallyRevokedAt;return!n&&!a},whyInvalid:()=>{const t=new Date;return e.manuallyRevokedAt?"manually-revoked":e.expiresAt&&new Date(e.expiresAt)<t?"expired":null}})):[{id:"key-1",description:"Development Key",createdAt:new Date(Date.now()-1728e5),expiresAt:void 0,manuallyRevokedAt:null,value:{lastFour:"ey-1".slice(-4).padStart(4,"0")},type:"user",userId:"mock-user-id",update:async()=>{console.log("Mock API key update called")},revoke:async()=>{console.log("Mock API key revoke called")},isValid:()=>!0,whyInvalid:()=>null}];let i;i=n?r:a?a.useApiKeys():[];const[s,l]=(0,o.useState)(!1),[c,u]=(0,o.useState)(null),d=ST,h=NT;return(0,_h.jsxs)(wN,{children:[(0,_h.jsx)(Uv,{onClick:()=>l(!0),children:t("Create API Key")}),(0,_h.jsx)(EB,{apiKeys:i}),(0,_h.jsx)(d,{open:s,onOpenChange:l,onKeyCreated:u,createApiKey:async e=>{if(n){var t;return{id:"key-".concat(Date.now()),description:e.description,createdAt:(new Date).toISOString(),expiresAt:null===(t=e.expiresAt)||void 0===t?void 0:t.toISOString(),value:"sk_dev_mock_key_"+Math.random().toString(36).substring(2),update:async()=>{console.log("Mock API key update called")},revoke:async()=>{console.log("Mock API key revoke called")},isValid:()=>!0,whyInvalid:()=>null,type:"user",userId:"mock-user-id"}}if(!a)throw new Error("User not available");return await a.createApiKey(e)},mockMode:n}),(0,_h.jsx)(h,{apiKey:c,onClose:()=>u(null)})]})}function SB(e){const{t:t}=yw(),n=sg({or:null!==e&&void 0!==e&&e.mockMode?"return-null":"redirect"});if(null!==e&&void 0!==e&&e.mockMode&&!n)return(0,_h.jsxs)("div",{children:[(0,_h.jsx)("div",{className:"flex flex-col md:flex-row justify-between mb-4 gap-4",children:(0,_h.jsx)(Rh,{className:"font-medium",children:t("Emails")})}),(0,_h.jsx)(Rh,{variant:"secondary",children:t("Email management is not available in demo mode.")})]});if(!n)return null;const a=n.useContactChannels(),[r,i]=(0,o.useState)(0===a.length),[s,l]=(0,o.useState)(!1),[c,u]=(0,o.useState)(null),d=1===a.filter(e=>e.usedForAuth&&"email"===e.type).length;(0,o.useEffect)(()=>{c&&rd(async()=>{const e=a.find(e=>e.value===c);e&&!e.isVerified&&await e.sendVerificationEmail(),u(null)})},[a,c]);const h=gs({email:Ns(t("Please enter a valid email address")).notOneOf(a.map(e=>e.value),t("Email already exists")).defined().nonEmpty(t("Email is required"))}),{register:f,handleSubmit:m,formState:{errors:g},reset:v}=mw({resolver:Ag(h)}),y=async e=>{l(!0);try{await n.createContactChannel({type:"email",value:e.email,usedForAuth:!1}),u(e.email)}finally{l(!1)}i(!1),v()};return(0,_h.jsxs)("div",{children:[(0,_h.jsxs)("div",{className:"flex flex-col md:flex-row justify-between mb-4 gap-4",children:[(0,_h.jsx)(Rh,{className:"font-medium",children:t("Emails")}),r?(0,_h.jsxs)("form",{onSubmit:e=>{e.preventDefault(),rd(m(y))},className:"flex flex-col",children:[(0,_h.jsxs)("div",{className:"flex gap-2",children:[(0,_h.jsx)(Jg,p(p({},f("email")),{},{placeholder:t("Enter email")})),(0,_h.jsx)(Uv,{type:"submit",loading:s,children:t("Add")}),(0,_h.jsx)(Uv,{variant:"secondary",onClick:()=>{i(!1),v()},children:t("Cancel")})]}),g.email&&(0,_h.jsx)(ww,{text:g.email.message})]}):(0,_h.jsx)("div",{className:"flex md:justify-end",children:(0,_h.jsx)(Uv,{variant:"secondary",onClick:()=>i(!0),children:t("Add an email")})})]}),a.length>0?(0,_h.jsx)("div",{className:"border rounded-md",children:(0,_h.jsx)(WD,{children:(0,_h.jsx)(YD,{children:a.filter(e=>"email"===e.type).sort((e,t)=>
2e.isPrimary!==t.isPrimary?e.isPrimary?-1:1:e.isVerified!==t.isVerified?e.isVerified?-1:1:0).map(e=>(0,_h.jsxs)(GD,{children:[(0,_h.jsx)($D,{children:(0,_h.jsxs)("div",{className:"flex flex-col md:flex-row gap-2 md:gap-4",children:[e.value,(0,_h.jsxs)("div",{className:"flex gap-2",children:[e.isPrimary?(0,_h.jsx)(ZD,{children:t("Primary")}):null,e.isVerified?null:(0,_h.jsx)(ZD,{variant:"destructive",children:t("Unverified")}),e.usedForAuth?(0,_h.jsx)(ZD,{variant:"outline",children:t("Used for sign-in")}):null]})]})}),(0,_h.jsx)($D,{className:"flex justify-end",children:(0,_h.jsx)(vN,{items:[...e.isVerified?[]:[{item:t("Send verification email"),onClick:async()=>{await e.sendVerificationEmail()}}],...!e.isPrimary&&e.isVerified?[{item:t("Set as primary"),onClick:async()=>{await e.update({isPrimary:!0})}}]:e.isPrimary?[]:[{item:t("Set as primary"),onClick:async()=>{},disabled:!0,disabledTooltip:t("Please verify your email first")}],...!e.usedForAuth&&e.isVerified?[{item:t("Use for sign-in"),onClick:async()=>{try{await e.update({usedForAuth:!0})}catch(oL){so.ContactChannelAlreadyUsedForAuthBySomeoneElse.isInstance(oL)&&alert(t("This email is already used for sign-in by another user."))}}}]:[],...e.usedForAuth&&!d?[{item:t("Stop using for sign-in"),onClick:async()=>{await e.update({usedForAuth:!1})}}]:e.usedForAuth?[{item:t("Stop using for sign-in"),onClick:async()=>{},disabled:!0,disabledTooltip:t("You can not remove your last sign-in email")}]:[],...d&&e.usedForAuth?[{item:t("Remove"),onClick:async()=>{},disabled:!0,disabledTooltip:t("You can not remove your last sign-in email")}]:[{item:t("Remove"),onClick:async()=>{await e.delete()},danger:!0}]]})})]},e.id))})})}):null]})}const NB=new class{uint8(e,t){if(e.byteLength<t+1)throw new TypeError("Insufficient bytes");return e[t]}uint16(e,t){if(e.byteLength<t+2)throw new TypeError("Insufficient bytes");return e[t]<<8|e[t+1]}uint32(e,t){if(e.byteLength<t+4)throw new TypeError("Insufficient bytes");let n=0;for(let a=0;a<4;a++)n|=e[t+a]<<24-8*a;return n}uint64(e,t){if(e.byteLength<t+8)throw new TypeError("Insufficient bytes");let n=0n;for(let a=0;a<8;a++)n|=BigInt(e[t+a])<<BigInt(56-8*a);return n}putUint8(e,t,n){if(e.length<n+1)throw new TypeError("Not enough space");if(t<0||t>255)throw new TypeError("Invalid uint8 value");e[n]=t}putUint16(e,t,n){if(e.length<n+2)throw new TypeError("Not enough space");if(t<0||t>65535)throw new TypeError("Invalid uint16 value");e[n]=t>>8,e[n+1]=255&t}putUint32(e,t,n){if(e.length<n+4)throw new TypeError("Not enough space");if(t<0||t>4294967295)throw new TypeError("Invalid uint32 value");for(let a=0;a<4;a++)e[n+a]=t>>8*(3-a)&255}putUint64(e,t,n){if(e.length<n+8)throw new TypeError("Not enough space");if(t<0||t>18446744073709551615n)throw new TypeError("Invalid uint64 value");for(let a=0;a<8;a++)e[n+a]=Number(t>>BigInt(8*(7-a))&0xffn)}};new class{uint8(e,t){if(e.byteLength<t+1)throw new TypeError("Insufficient bytes");return e[t]}uint16(e,t){if(e.byteLength<t+2)throw new TypeError("Insufficient bytes");return e[t]|e[t+1]<<8}uint32(e,t){if(e.byteLength<t+4)throw new TypeError("Insufficient bytes");let n=0;for(let a=0;a<4;a++)n|=e[t+a]<<8*a;return n}uint64(e,t){if(e.byteLength<t+8)throw new TypeError("Insufficient bytes");let n=0n;for(let a=0;a<8;a++)n|=BigInt(e[t+a])<<BigInt(8*a);return n}putUint8(e,t,n){if(e.length<1+n)throw new TypeError("Insufficient space");if(t<0||t>255)throw new TypeError("Invalid uint8 value");e[n]=t}putUint16(e,t,n){if(e.length<2+n)throw new TypeError("Insufficient space");if(t<0||t>65535)throw new TypeError("Invalid uint16 value");e[n+1]=t>>8,e[n]=255&t}putUint32(e,t,n){if(e.length<4+n)throw new TypeError("Insufficient space");if(t<0||t>4294967295)throw new TypeError("Invalid uint32 value");for(let a=0;a<4;a++)e[n+a]=t>>8*a&255}putUint64(e,t,n){if(e.length<8+n)throw new TypeError("Insufficient space");if(t<0||t>18446744073709551615n)throw new TypeError("Invalid uint64 value");for(let a=0;a<8;a++)e[n+a]=Number(t>>BigInt(8*a)&0xffn)}};function PB(e,t){return(e<<t|e>>>32-t)>>>0}class TB{constructor(e,t){d(this,"k0",void 0),d(this,"inner",void 0),d(this,"outer",void 0);const n=new e;t.byteLength===n.blockSize?this.k0=t:t.byteLength>n.blockSize?(this.k0=new Uint8Array(n.blockSize),n.update(t),this.k0.set(n.digest())):(this.k0=new Uint8Array(n.blockSize),this.k0.set(t)),this.inner=new e;const a=new Uint8Array(this.k0.byteLength).fill(54);for(let o=0;o<a.byteLength;o++)a[o]^=this.k0[o];this.inner.update(a),this.outer=new e;
2const r=new Uint8Array(this.k0.byteLength).fill(92);for(let o=0;o<r.byteLength;o++)r[o]^=this.k0[o];this.outer.update(r)}update(e){this.inner.update(e)}digest(){return this.outer.update(this.inner.digest()),this.outer.digest()}}class FB{constructor(){d(this,"blockSize",64),d(this,"size",20),d(this,"blocks",new Uint8Array(64)),d(this,"currentBlockSize",0),d(this,"H",new Uint32Array([1732584193,4023233417,2562383102,271733878,3285377520])),d(this,"l",0),d(this,"w",new Uint32Array(80))}update(e){if(this.l+=8*e.byteLength,this.currentBlockSize+e.byteLength<64)return this.blocks.set(e,this.currentBlockSize),void(this.currentBlockSize+=e.byteLength);let t=0;if(this.currentBlockSize>0){const n=e.slice(0,64-this.currentBlockSize);this.blocks.set(n,this.currentBlockSize),this.process(),t+=n.byteLength,this.currentBlockSize=0}for(;t+64<=e.byteLength;){const n=e.slice(t,t+64);this.blocks.set(n),this.process(),t+=64}if(e.byteLength-t>0){const n=e.slice(t);this.blocks.set(n),this.currentBlockSize=n.byteLength}}digest(){this.blocks[this.currentBlockSize]=128,this.currentBlockSize+=1,64-this.currentBlockSize<8&&(this.blocks.fill(0,this.currentBlockSize),this.process(),this.currentBlockSize=0),this.blocks.fill(0,this.currentBlockSize),NB.putUint64(this.blocks,BigInt(this.l),this.blockSize-8),this.process();const e=new Uint8Array(20);for(let t=0;t<5;t++)NB.putUint32(e,this.H[t],4*t);return e}process(){for(let o=0;o<16;o++)this.w[o]=(this.blocks[4*o]<<24|this.blocks[4*o+1]<<16|this.blocks[4*o+2]<<8|this.blocks[4*o+3])>>>0;for(let o=16;o<80;o++)this.w[o]=PB((this.w[o-3]^this.w[o-8]^this.w[o-14]^this.w[o-16])>>>0,1);let e=this.H[0],t=this.H[1],n=this.H[2],a=this.H[3],r=this.H[4];for(let o=0;o<80;o++){let i,s;o<20?(i=(t&n^~t&a)>>>0,s=1518500249):o<40?(i=(t^n^a)>>>0,s=1859775393):o<60?(i=(t&n^t&a^n&a)>>>0,s=2400959708):(i=(t^n^a)>>>0,s=3395469782);const l=PB(e,5)+r+i+this.w[o]+s|0;r=a,a=n,n=PB(t,30),t=e,e=l}this.H[0]=this.H[0]+e|0,this.H[1]=this.H[1]+t|0,this.H[2]=this.H[2]+n|0,this.H[3]=this.H[3]+a|0,this.H[4]=this.H[4]+r|0}}function OB(e,t,n){let a="";for(let r=0;r<e.byteLength;r+=5){let o=0n,i=0;for(let t=0;t<5&&r+t<e.byteLength;t++)o=o<<8n|BigInt(e[r+t]),i+=8;i%5!==0&&(o<<=BigInt(5-i%5),i+=5-i%5);for(let e=0;e<8;e++)i>=5?(a+=t[Number(o>>BigInt(i-5)&0x1fn)],i-=5):i>0?(a+=t[Number(o<<BigInt(6-i)&0x3fn)],i=0):n===RB.Include&&(a+="=")}return a}const IB="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";var RB,MB;!function(e){e[e.Include=0]="Include",e[e.None=1]="None"}(RB||(RB={})),function(e){e[e.Required=0]="Required",e[e.Ignore=1]="Ignore"}(MB||(MB={}));var BB,zB;!function(e){e[e.Include=0]="Include",e[e.None=1]="None"}(BB||(BB={})),function(e){e[e.Required=0]="Required",e[e.Ignore=1]="Ignore"}(zB||(zB={}));function LB(e,t,n){if(n<6||n>8)throw new TypeError("Digits must be between 6 and 8");const a=new Uint8Array(8);NB.putUint64(a,t,0);const r=function(e,t,n){const a=new TB(e,t);return a.update(n),a.digest()}(FB,e,a),o=15&r[r.byteLength-1],i=r.slice(o,o+4);i[0]&=127;return(NB.uint32(i,0)%10**n).toString().padStart(n,"0")}function UB(e,t,n,a){const r=function(e,t,n,a){if(n<6||n>8)throw new TypeError("Digits must be between 6 and 8");if(a.length!==n)return!1;const r=(new TextEncoder).encode(a),o=LB(e,t,n),i=function(e,t){if(e.length!==t.length)return!1;let n=0;for(let a=0;a<e.length;a++)n|=e[a]^t[a];return 0===n}(r,(new TextEncoder).encode(o));return i}(e,BigInt(Math.floor(Date.now()/(1e3*t))),n,a);return r}function VB(e,t,n,a,r){const o=encodeURIComponent(e),i=encodeURIComponent(t),s="otpauth://totp/".concat(o,":").concat(i),l=new URLSearchParams;return l.set("issuer",e),l.set("algorithm","SHA1"),l.set("secret",OB(n,IB,RB.None)),l.set("period",a.toString()),l.set("digits",r.toString()),s+"?"+l.toString()}var qB=n(8970);function HB(e){return(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsx)(Iw,{}),(0,_h.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2",children:[(0,_h.jsxs)("div",{className:"sm:flex-1 flex flex-col justify-center",children:[(0,_h.jsx)(Rh,{className:"font-medium",children:e.title}),e.description&&(0,_h.jsx)(Rh,{variant:"secondary",type:"footnote",children:e.description})]}),(0,_h.jsx)("div",{className:"sm:flex-1 sm:items-end flex flex-col gap-2 ",children:e.children})]})]})}function WB(e){const{t:t}=yw(),n=lg().useProject(),a=sg({or:null!==e&&void 0!==e&&e.mockMode?"return-null":"throw"});if(null!==e&&void 0!==e&&e.mockMode&&!a)return(0,_h.jsx)(HB,{title:t("Multi-factor authentication"),description:t("MFA management is not available in demo mode."),children:(0,_h.jsx)(Rh,{variant:"secondary",children:t("MFA management is not available in demo mode.")})});if(!a)return null;const[r,i]=(0,o.useState)(null),[s,l]=(0,o.useState)(null),[c,u]=(0,o.useState)(""),[d,h]=(0,o.useState)(!1),p=a.isMultiFactorRequired,[f,m]=sv(async()=>{await a.update({totpMultiFactorSecret:r}),i(null),l(null),u("")},[r,a]);return(0,o.useEffect)(()=>{h(!1),ad(async()=>{r&&UB(r,30,6,c)&&await f(),h(!0)})},[c,r,f]),(0,_h.jsx)(HB,{title:t("Multi-factor authentication"),description:t(p?"Multi-factor authentication is currently enabled.":"Multi-factor authentication is currently disabled."),children:(0,_h.jsxs)("div",{className:"flex flex-col gap-4",children:[!p&&r&&(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsx)(Rh,{children:t("Scan this QR code with your authenticator app:")}),(0,_h.jsx)("img",{width:200,height:200,src:null!==s&&void 0!==s?s:cn("TOTP QR code failed to generate"),alt:t("TOTP multi-factor authentication QR code")}
2),(0,_h.jsx)(Rh,{children:t("Then, enter your six-digit MFA code:")}),(0,_h.jsx)(Jg,{value:c,onChange:e=>{h(!1),u(e.target.value)},placeholder:"123456",maxLength:6,disabled:m}),d&&6===c.length&&(0,_h.jsx)(Rh,{variant:"destructive",children:t("Incorrect code. Please try again.")}),(0,_h.jsx)("div",{className:"flex",children:(0,_h.jsx)(Uv,{variant:"secondary",onClick:()=>{i(null),l(null),u("")},children:t("Cancel")})})]}),(0,_h.jsx)("div",{className:"flex gap-2",children:p?(0,_h.jsx)(Uv,{variant:"secondary",onClick:async()=>{await a.update({totpMultiFactorSecret:null})},children:t("Disable MFA")}):!r&&(0,_h.jsx)(Uv,{variant:"secondary",onClick:async()=>{const e=md(new Uint8Array(20));l(await async function(e,t,n){var a;const r=VB(e.displayName,null!==(a=t.primaryEmail)&&void 0!==a?a:t.id,n,30,6);return await qB.dY(r)}(n,a,e)),i(e)},children:t("Enable MFA")})})]})})}function KB(e){const{t:t}=yw(),n=sg({or:null!==e&&void 0!==e&&e.mockMode?"return-null":"throw"});if(null!==e&&void 0!==e&&e.mockMode&&!n)return(0,_h.jsx)(HB,{title:t("One-Time Password"),description:t("OTP management is not available in demo mode."),children:(0,_h.jsx)(Rh,{variant:"secondary",children:t("OTP management is not available in demo mode.")})});if(!n)return null;const a=lg().useProject(),r=n.useContactChannels(),i=n.otpAuthEnabled&&!n.hasPassword&&0===n.oauthProviders.length&&!n.passkeyAuthEnabled,[s,l]=(0,o.useState)(!1),c=r.filter(e=>"email"===e.type&&e.isVerified&&e.usedForAuth).length>0;if(!a.config.magicLinkEnabled)return null;return(0,_h.jsx)(HB,{title:t("OTP sign-in"),description:n.otpAuthEnabled?t("OTP/magic link sign-in is currently enabled."):t("Enable sign-in via magic link or OTP sent to your sign-in emails."),children:(0,_h.jsx)("div",{className:"flex md:justify-end",children:c?n.otpAuthEnabled?i?(0,_h.jsx)(Rh,{variant:"secondary",type:"label",children:t("OTP sign-in is enabled and cannot be disabled as it is currently the only sign-in method")}):s?(0,_h.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,_h.jsx)(Rh,{variant:"destructive",children:t("Are you sure you want to disable OTP sign-in? You will not be able to sign in with only emails anymore.")}),(0,_h.jsxs)("div",{className:"flex gap-2",children:[(0,_h.jsx)(Uv,{variant:"destructive",onClick:async()=>{await n.update({otpAuthEnabled:!1}),l(!1)},children:t("Disable")}),(0,_h.jsx)(Uv,{variant:"secondary",onClick:()=>l(!1),children:t("Cancel")})]})]}):(0,_h.jsx)(Uv,{variant:"secondary",onClick:()=>l(!0),children:t("Disable OTP")}):(0,_h.jsx)(Uv,{variant:"secondary",onClick:async()=>{await n.update({otpAuthEnabled:!0})},children:t("Enable OTP")}):(0,_h.jsx)(Rh,{variant:"secondary",type:"label",children:t("To enable OTP sign-in, please add a verified sign-in email.")})})})}function YB(e){const{t:t}=yw(),n=sg({or:null!==e&&void 0!==e&&e.mockMode?"return-null":"throw"});if(null!==e&&void 0!==e&&e.mockMode&&!n)return(0,_h.jsx)(HB,{title:t("Passkey"),description:t("Passkey management is not available in demo mode."),children:(0,_h.jsx)(Rh,{variant:"secondary",children:t("Passkey management is not available in demo mode.")})});if(!n)return null;const a=lg().useProject(),r=n.useContactChannels(),i=n.passkeyAuthEnabled,s=n.passkeyAuthEnabled&&!n.hasPassword&&0===n.oauthProviders.length&&!n.otpAuthEnabled,[l,c]=(0,o.useState)(!1),u=r.filter(e=>"email"===e.type&&e.isVerified&&e.usedForAuth).length>0;if(!a.config.passkeyEnabled)return null;return(0,_h.jsx)(_h.Fragment,{children:(0,_h.jsx)(HB,{title:t("Passkey"),description:t(i?"Passkey registered":"Register a passkey"),children:(0,_h.jsxs)("div",{className:"flex md:justify-end gap-2",children:[!u&&(0,_h.jsx)(Rh,{variant:"secondary",type:"label",children:t("To enable Passkey sign-in, please add a verified sign-in email.")}),u&&i&&s&&(0,_h.jsx)(Rh,{variant:"secondary",type:"label",children:t("Passkey sign-in is enabled and cannot be disabled as it is currently the only sign-in method")}),!i&&u&&(0,_h.jsx)("div",{children:(0,_h.jsx)(Uv,{onClick:async()=>{await n.registerPasskey()},variant:"secondary",children:t("Add new passkey")})}),u&&i&&!s&&!l&&(0,_h.jsx)(Uv,{variant:"secondary",onClick:()=>c(!0),children:t("Delete Passkey")}),u&&i&&!s&&l&&(0,_h.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,_h.jsx)(Rh,{variant:"destructive",children:t("Are you sure you want to disable Passkey sign-in? You will not be able to sign in with your passkey anymore.")}),(0,_h.jsxs)("div",{className:"flex gap-2",children:[(0,_h.jsx)(Uv,{variant:"destructive",onClick:async()=>{await n.update({passkeyAuthEnabled:!1}),c(!1)},children:t("Disable")}),(0,_h.jsx)(Uv,{variant:"secondary",onClick:()=>c(!1),children:t("Cancel")})]})]})]})})})}function GB(e){var t,n,a;const{t:r}=yw(),i=sg({or:null!==e&&void 0!==e&&e.mockMode?"return-null":"throw"});if(null!==e&&void 0!==e&&e.mockMode&&!i)return(0,_h.jsx)(HB,{title:r("Password"),description:r("Password management is not available in demo mode."),children:(0,_h.jsx)(Rh,{variant:"secondary",children:r("Password management is not available in demo mode.")})});if(!i)return null;const s=i.useContactChannels(),[l,c]=(0,o.useState)(!1),[u,d]=(0,o.useState)(!1),h=lg().useProject(),f=gs({oldPassword:i.hasPassword?ks.defined().nonEmpty(r
2("Please enter your old password")):cs(),newPassword:ks.defined().nonEmpty(r("Please enter your password")).test({name:"is-valid-password",test:(e,t)=>{const n=kw(e);return!n||t.createError({message:n.message})}}),newPasswordRepeat:cs().nullable().oneOf([$o("newPassword"),"",null],r("Passwords do not match")).defined().nonEmpty(r("Please repeat your password"))}),{register:m,handleSubmit:g,setError:v,formState:{errors:y},clearErrors:w,reset:_}=mw({resolver:Ag(f)}),x=s.filter(e=>"email"===e.type&&e.usedForAuth).length>0,b=async e=>{d(!0);try{const{oldPassword:t,newPassword:n}=e;(i.hasPassword?await i.updatePassword({oldPassword:t,newPassword:n}):await i.setPassword({password:n}))?v("oldPassword",{type:"manual",message:r("Incorrect password")}):(_(),c(!1))}finally{d(!1)}},k=m("newPassword"),C=m("newPasswordRepeat");return h.config.credentialEnabled?(0,_h.jsx)(HB,{title:r("Password"),description:i.hasPassword?r("Update your password"):r("Set a password for your account"),children:(0,_h.jsx)("div",{className:"flex flex-col gap-4",children:l?(0,_h.jsxs)("form",{onSubmit:e=>ad(g(b)(e)),noValidate:!0,children:[i.hasPassword&&(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsx)(Kg,{htmlFor:"old-password",className:"mb-1",children:r("Old password")}),(0,_h.jsx)(Jg,p({id:"old-password",type:"password",autoComplete:"current-password"},m("oldPassword"))),(0,_h.jsx)(ww,{text:null===(t=y.oldPassword)||void 0===t||null===(t=t.message)||void 0===t?void 0:t.toString()})]}),(0,_h.jsx)(Kg,{htmlFor:"new-password",className:"mt-4 mb-1",children:r("New password")}),(0,_h.jsx)(qv,p(p({id:"new-password",autoComplete:"new-password"},k),{},{onChange:e=>{w("newPassword"),w("newPasswordRepeat"),rd(k.onChange(e))}})),(0,_h.jsx)(ww,{text:null===(n=y.newPassword)||void 0===n||null===(n=n.message)||void 0===n?void 0:n.toString()}),(0,_h.jsx)(Kg,{htmlFor:"repeat-password",className:"mt-4 mb-1",children:r("Repeat new password")}),(0,_h.jsx)(qv,p(p({id:"repeat-password",autoComplete:"new-password"},C),{},{onChange:e=>{w("newPassword"),w("newPasswordRepeat"),rd(C.onChange(e))}})),(0,_h.jsx)(ww,{text:null===(a=y.newPasswordRepeat)||void 0===a||null===(a=a.message)||void 0===a?void 0:a.toString()}),(0,_h.jsxs)("div",{className:"mt-6 flex gap-4",children:[(0,_h.jsx)(Uv,{type:"submit",loading:u,children:i.hasPassword?r("Update Password"):r("Set Password")}),(0,_h.jsx)(Uv,{variant:"secondary",onClick:()=>{c(!1),_()},children:r("Cancel")})]})]}):x?(0,_h.jsx)(Uv,{variant:"secondary",onClick:()=>c(!0),children:i.hasPassword?r("Update password"):r("Set password")}):(0,_h.jsx)(Rh,{variant:"secondary",type:"label",children:r("To set a password, please add a sign-in email.")})})}):null}function JB(e){return(0,_h.jsxs)(wN,{children:[(0,_h.jsx)(SB,{mockMode:null===e||void 0===e?void 0:e.mockMode}),(0,_h.jsx)(GB,{mockMode:null===e||void 0===e?void 0:e.mockMode}),(0,_h.jsx)(YB,{mockMode:null===e||void 0===e?void 0:e.mockMode}),(0,_h.jsx)(KB,{mockMode:null===e||void 0===e?void 0:e.mockMode}),(0,_h.jsx)(WB,{mockMode:null===e||void 0===e?void 0:e.mockMode})]})}const $B=["__scopeSwitch","name","checked","defaultChecked","required","disabled","value","onCheckedChange","form"],QB=["__scopeSwitch"],XB=["__scopeSwitch","control","checked","bubbles"];var ZB="Switch",[ez,tz]=Lh(ZB),[nz,az]=ez(ZB),rz=o.forwardRef((e,t)=>{const{__scopeSwitch:n,name:a,checked:r,defaultChecked:i,required:s,disabled:c,value:u="on",onCheckedChange:d,form:h}=e,f=l(e,$B),[m,g]=o.useState(null),v=Gh(t,e=>g(e)),y=o.useRef(!1),w=!m||(h||!!m.closest("form")),[_,x]=kp({prop:r,defaultProp:null!==i&&void 0!==i&&i,onChange:d,caller:ZB});return(0,_h.jsxs)(nz,{scope:n,checked:_,disabled:c,children:[(0,_h.jsx)(wp.button,p(p({type:"button",role:"switch","aria-checked":_,"aria-required":s,"data-state":lz(_),"data-disabled":c?"":void 0,disabled:c,value:u},f),{},{ref:v,onClick:Mh(e.onClick,e=>{x(e=>!e),w&&(y.current=e.isPropagationStopped(),y.current||e.stopPropagation())})})),w&&(0,_h.jsx)(sz,{control:m,bubbles:!y.current,name:a,value:u,checked:_,required:s,disabled:c,form:h,style:{transform:"translateX(-100%)"}})]})});rz.displayName=ZB;var oz="SwitchThumb",iz=o.forwardRef((e,t)=>
2{const{__scopeSwitch:n}=e,a=l(e,QB),r=az(oz,n);return(0,_h.jsx)(wp.span,p(p({"data-state":lz(r.checked),"data-disabled":r.disabled?"":void 0},a),{},{ref:t}))});iz.displayName=oz;var sz=o.forwardRef((e,t)=>{let{__scopeSwitch:n,control:a,checked:r,bubbles:i=!0}=e,s=l(e,XB);const c=o.useRef(null),u=Gh(c,t),d=HP(r),h=Db(a);return o.useEffect(()=>{const e=c.current;if(!e)return;const t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(d!==r&&n){const t=new Event("click",{bubbles:i});n.call(e,r),e.dispatchEvent(t)}},[d,r,i]),(0,_h.jsx)("input",p(p({type:"checkbox","aria-hidden":!0,defaultChecked:r},s),{},{tabIndex:-1,ref:u,style:p(p(p({},s.style),h),{},{position:"absolute",pointerEvents:"none",opacity:0,margin:0})}))});function lz(e){return e?"checked":"unchecked"}sz.displayName="SwitchBubbleInput";var cz=rz,uz=iz;const dz=["className"],hz=["loading","onClick","onCheckedChange"];var pz=Ah((e,t)=>{let{className:n}=e,a=l(e,dz);return(0,_h.jsx)(cz,p(p({className:wh("stack-scope peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",n)},a),{},{ref:t,children:(0,_h.jsx)(uz,{className:wh("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}))});pz.displayName=cz.displayName;var fz=Ah((e,t)=>{let{loading:n,onClick:a,onCheckedChange:r}=e,o=l(e,hz);const[i,s]=sv(async e=>{await(null===a||void 0===a?void 0:a(e))},[a]),[c,u]=sv(async e=>{await(null===r||void 0===r?void 0:r(e))},[r]),d=n||s||u;return(0,_h.jsxs)("span",{className:"relative leading-[0]",children:[(0,_h.jsx)(pz,p(p({},o),{},{ref:t,onClick:e=>ad(i(e)),onCheckedChange:e=>ad(c(e)),disabled:o.disabled||d,style:p({visibility:d?"hidden":"visible"},o.style)})),(0,_h.jsx)("span",{className:wh("absolute inset-0 flex items-center justify-center",!d&&"hidden"),children:(0,_h.jsx)(Rv,{})})]})});function mz(){const{t:e}=yw(),t=sg({or:"redirect"}).useNotificationCategories();return(0,_h.jsxs)(wN,{children:[(0,_h.jsx)(Iw,{}),(0,_h.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,_h.jsx)("div",{className:"sm:flex-1 flex flex-col justify-center pb-2",children:(0,_h.jsx)(Rh,{className:"font-medium",children:e("Choose which emails you want to receive")})}),t.map(e=>(0,_h.jsxs)("div",{className:"flex justify-start gap-4 items-center",children:[(0,_h.jsx)(fz,{checked:e.enabled,onCheckedChange:t=>{e.setEnabled(t)},disabled:!e.canDisable}),(0,_h.jsx)(Rh,{children:e.name}),!e.canDisable&&(0,_h.jsx)(Rh,{variant:"secondary",type:"footnote",children:"(cannot be disabled)"})]},e.id))]})]})}fz.displayName="Switch";const gz=["name","min","max","step","orientation","disabled","minStepsBetweenThumbs","defaultValue","value","onValueChange","onValueCommit","inverted","form"],vz=["min","max","dir","inverted","onSlideStart","onSlideMove","onSlideEnd","onStepKeyDown"],yz=["min","max","inverted","onSlideStart","onSlideMove","onSlideEnd","onStepKeyDown"],wz=["__scopeSlider","onSlideStart","onSlideMove","onSlideEnd","onHomeKeyDown","onEndKeyDown","onStepKeyDown"],_z=["__scopeSlider"],xz=["__scopeSlider"],bz=["__scopeSlider","index","name"],kz=["__scopeSlider","value"];var Cz=["PageUp","PageDown"],Dz=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Az={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Ez="Slider",[jz,Sz,Nz]=ap(Ez),[Pz,Tz]=Lh(Ez,[Nz]),[Fz,Oz]=Pz(Ez),Iz=o.forwardRef((e,t)=>{const{name:n,min:a=0,max:r=100,step:i=1,orientation:s="horizontal",disabled:c=!1,minStepsBetweenThumbs:u=0,defaultValue:d=[a],value:h,onValueChange:f=()=>{},onValueCommit:m=()=>{},inverted:g=!1,form:v}=e,y=l(e,gz),w=o.useRef(new Set),_=o.useRef(0),x="horizontal"===s?Bz:zz,[b=[],k]=kp({prop:h,defaultProp:d,onChange:e=>{var t;null===(t=[...w.current][_.current])||void 0===t||t.focus(),f(e)}}),C=o.useRef(b);
2function D(e,t){let{commit:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{commit:!1};const o=function(e){return(String(e).split(".")[1]||"").length}(i),s=function(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-a)/i)*i+a,o),l=LI(s,[a,r]);k(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;const a=[...e];return a[n]=t,a.sort((e,t)=>e-t)}(e,l,t);if(function(e,t){if(t>0){const n=function(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}(e);return Math.min(...n)>=t}return!0}(a,u*i)){_.current=a.indexOf(l);const t=String(a)!==String(e);return t&&n&&m(a),t?a:e}return e})}return(0,_h.jsx)(Fz,{scope:e.__scopeSlider,name:n,disabled:c,min:a,max:r,valueIndexToChangeRef:_,thumbs:w.current,values:b,orientation:s,form:v,children:(0,_h.jsx)(jz.Provider,{scope:e.__scopeSlider,children:(0,_h.jsx)(jz.Slot,{scope:e.__scopeSlider,children:(0,_h.jsx)(x,p(p({"aria-disabled":c,"data-disabled":c?"":void 0},y),{},{ref:t,onPointerDown:Mh(y.onPointerDown,()=>{c||(C.current=b)}),min:a,max:r,inverted:g,onSlideStart:c?void 0:function(e){const t=function(e,t){if(1===e.length)return 0;const n=e.map(e=>Math.abs(e-t)),a=Math.min(...n);return n.indexOf(a)}(b,e);D(e,t)},onSlideMove:c?void 0:function(e){D(e,_.current)},onSlideEnd:c?void 0:function(){const e=C.current[_.current];b[_.current]!==e&&m(b)},onHomeKeyDown:()=>!c&&D(a,0,{commit:!0}),onEndKeyDown:()=>!c&&D(r,b.length-1,{commit:!0}),onStepKeyDown:e=>{let{event:t,direction:n}=e;if(!c){const e=Cz.includes(t.key)||t.shiftKey&&Dz.includes(t.key)?10:1,a=_.current;D(b[a]+i*e*n,a,{commit:!0})}}}))})})})});Iz.displayName=Ez;var[Rz,Mz]=Pz(Ez,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Bz=o.forwardRef((e,t)=>{const{min:n,max:a,dir:r,inverted:i,onSlideStart:s,onSlideMove:c,onSlideEnd:u,onStepKeyDown:d}=e,h=l(e,vz),[f,m]=o.useState(null),g=Gh(t,e=>m(e)),v=o.useRef(void 0),y=Dp(r),w="ltr"===y,_=w&&!i||!w&&i;function x(e){const t=v.current||f.getBoundingClientRect(),r=$z([0,t.width],_?[n,a]:[a,n]);return v.current=t,r(e-t.left)}return(0,_h.jsx)(Rz,{scope:e.__scopeSlider,startEdge:_?"left":"right",endEdge:_?"right":"left",direction:_?1:-1,size:"width",children:(0,_h.jsx)(Lz,p(p({dir:y,"data-orientation":"horizontal"},h),{},{ref:g,style:p(p({},h.style),{},{"--radix-slider-thumb-transform":"translateX(-50%)"}),onSlideStart:e=>{const t=x(e.clientX);null===s||void 0===s||s(t)},onSlideMove:e=>{const t=x(e.clientX);null===c||void 0===c||c(t)},onSlideEnd:()=>{v.current=void 0,null===u||void 0===u||u()},onStepKeyDown:e=>{const t=Az[_?"from-left":"from-right"].includes(e.key);null===d||void 0===d||d({event:e,direction:t?-1:1})}}))})}),zz=o.forwardRef((e,t)=>{const{min:n,max:a,inverted:r,onSlideStart:i,onSlideMove:s,onSlideEnd:c,onStepKeyDown:u}=e,d=l(e,yz),h=o.useRef(null),f=Gh(t,h),m=o.useRef(void 0),g=!r;function v(e){const t=m.current||h.current.getBoundingClientRect(),r=$z([0,t.height],g?[a,n]:[n,a]);return m.current=t,r(e-t.top)}return(0,_h.jsx)(Rz,{scope:e.__scopeSlider,startEdge:g?"bottom":"top",endEdge:g?"top":"bottom",size:"height",direction:g?1:-1,children:(0,_h.jsx)(Lz,p(p({"data-orientation":"vertical"},d),{},{ref:f,style:p(p({},d.style),{},{"--radix-slider-thumb-transform":"translateY(50%)"}),onSlideStart:e=>{const t=v(e.clientY);null===i||void 0===i||i(t)},onSlideMove:e=>{const t=v(e.clientY);null===s||void 0===s||s(t)},onSlideEnd:()=>{m.current=void 0,null===c||void 0===c||c()},onStepKeyDown:e=>{const t=Az[g?"from-bottom":"from-top"].includes(e.key);null===u||void 0===u||u({event:e,direction:t?-1:1})}}))})}),Lz=o.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:a,onSlideMove:r,onSlideEnd:o,onHomeKeyDown:i,onEndKeyDown:s,onStepKeyDown:c}=e,u=l(e,wz),d=Oz(Ez,n);return(0,_h.jsx)(wp.span,p(p({},u),{},{ref:t,onKeyDown:Mh(e.onKeyDown,e=>{"Home"===e.key?(i(e),e.preventDefault()):"End"===e.key?(s(e),e.preventDefault()):Cz.concat(Dz).includes(e.key)&&(c(e),e.preventDefault())}),onPointerDown:Mh(e.onPointerDown,e=>{const t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),d.thumbs.has(t)?t.focus():a(e)}),onPointerMove:Mh(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&r(e)}),onPointerUp:Mh(e.onPointerUp,e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),o(e))})}))}),Uz="SliderTrack",Vz=o.forwardRef((e,t)=>
2{const{__scopeSlider:n}=e,a=l(e,_z),r=Oz(Uz,n);return(0,_h.jsx)(wp.span,p(p({"data-disabled":r.disabled?"":void 0,"data-orientation":r.orientation},a),{},{ref:t}))});Vz.displayName=Uz;var qz="SliderRange",Hz=o.forwardRef((e,t)=>{const{__scopeSlider:n}=e,a=l(e,xz),r=Oz(qz,n),i=Mz(qz,n),s=Gh(t,o.useRef(null)),c=r.values.length,u=r.values.map(e=>Jz(e,r.min,r.max)),d=c>1?Math.min(...u):0,h=100-Math.max(...u);return(0,_h.jsx)(wp.span,p(p({"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0},a),{},{ref:s,style:p(p({},e.style),{},{[i.startEdge]:d+"%",[i.endEdge]:h+"%"})}))});Hz.displayName=qz;var Wz="SliderThumb",Kz=o.forwardRef((e,t)=>{const n=Sz(e.__scopeSlider),[a,r]=o.useState(null),i=Gh(t,e=>r(e)),s=o.useMemo(()=>a?n().findIndex(e=>e.ref.current===a):-1,[n,a]);return(0,_h.jsx)(Yz,p(p({},e),{},{ref:i,index:s}))}),Yz=o.forwardRef((e,t)=>{const{__scopeSlider:n,index:a,name:r}=e,i=l(e,bz),s=Oz(Wz,n),c=Mz(Wz,n),[u,d]=o.useState(null),h=Gh(t,e=>d(e)),f=!u||(s.form||!!u.closest("form")),m=Db(u),g=s.values[a],v=void 0===g?0:Jz(g,s.min,s.max),y=function(e,t){return t>2?"Value ".concat(e+1," of ").concat(t):2===t?["Minimum","Maximum"][e]:void 0}(a,s.values.length),w=null===m||void 0===m?void 0:m[c.size],_=w?function(e,t,n){const a=e/2,r=$z([0,50],[0,a]);return(a-r(t)*n)*n}(w,v,c.direction):0;return o.useEffect(()=>{if(u)return s.thumbs.add(u),()=>{s.thumbs.delete(u)}},[u,s.thumbs]),(0,_h.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[c.startEdge]:"calc(".concat(v,"% + ").concat(_,"px)")},children:[(0,_h.jsx)(jz.ItemSlot,{scope:e.__scopeSlider,children:(0,_h.jsx)(wp.span,p(p({role:"slider","aria-label":e["aria-label"]||y,"aria-valuemin":s.min,"aria-valuenow":g,"aria-valuemax":s.max,"aria-orientation":s.orientation,"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,tabIndex:s.disabled?void 0:0},i),{},{ref:h,style:void 0===g?{display:"none"}:e.style,onFocus:Mh(e.onFocus,()=>{s.valueIndexToChangeRef.current=a})}))}),f&&(0,_h.jsx)(Gz,{name:null!==r&&void 0!==r?r:s.name?s.name+(s.values.length>1?"[]":""):void 0,form:s.form,value:g},a)]})});Kz.displayName=Wz;var Gz=o.forwardRef((e,t)=>{let{__scopeSlider:n,value:a}=e,r=l(e,kz);const i=o.useRef(null),s=Gh(i,t),c=HP(a);return o.useEffect(()=>{const e=i.current;if(!e)return;const t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"value").set;if(c!==a&&n){const t=new Event("input",{bubbles:!0});n.call(e,a),e.dispatchEvent(t)}},[c,a]),(0,_h.jsx)(wp.input,p(p({style:{display:"none"}},r),{},{ref:s,defaultValue:a}))});function Jz(e,t,n){return LI(100/(n-t)*(e-t),[0,100])}function $z(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const a=(t[1]-t[0])/(e[1]-e[0]);return t[0]+a*(n-e[0])}}Gz.displayName="RadioBubbleInput";var Qz=Iz,Xz=Vz,Zz=Hz,eL=Kz;const tL=["className"];var nL=Ah((e,t)=>{let{className:n}=e,a=l(e,tL);return(0,_h.jsxs)(Qz,p(p({ref:t,className:wh("stack-scope relative flex w-full touch-none select-none items-center",n)},a),{},{children:[(0,_h.jsx)(Xz,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20",children:(0,_h.jsx)(Zz,{className:"absolute h-full bg-primary"})}),(0,_h.jsx)(eL,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-background shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})]}))});function aL(e,t){return new Promise(function(n,a){let r;return rL(e).then(function(e){try{return r=e,n(new Blob([t.slice(0,2),r,t.slice(2)],{type:"image/jpeg"}))}catch(e){return a(e)}},a)})}nL.displayName=Qz.displayName;const rL=e=>new Promise((t,n)=>{const a=new FileReader;a.addEventListener("load",e=>{let{target:{result:a}}=e;const r=new DataView(a);let o=0;if(65496!==r.getUint16(o))return n("not a valid JPEG");for(o+=2;;){const e=r.getUint16(o);if(65498===e)break;const i=r.getUint16(o+2);if(65505===e&&1165519206===r.getUint32(o+4)){const e=o+10;let s;switch(r.getUint16(e)){case 18761:s=!0;break;case 19789:s=!1;break;
vendor: 2,923 bytes, line 2
2default:return n("TIFF header contains invalid endian")}if(42!==r.getUint16(e+2,s))return n("TIFF header contains invalid version");const l=r.getUint32(e+4,s),c=e+l+2+12*r.getUint16(e+l,s);for(let t=e+l+2;t<c;t+=12)if(274==r.getUint16(t,s)){if(3!==r.getUint16(t+2,s))return n("Orientation data type is invalid");if(1!==r.getUint32(t+4,s))return n("Orientation data count is invalid");r.setUint16(t+8,1,s);break}return t(a.slice(o,o+2+i))}o+=2+i}return t(new Blob)}),a.readAsArrayBuffer(e)});var oL={},iL={get exports(){return oL},set exports(e){oL=e}};!function(){var e,t,n={};iL.exports=n,n.parse=function(e,t){for(var a=n.bin.readUshort,r=n.bin.readUint,o=0,i={},s=new Uint8Array(e),l=s.length-4;101010256!=r(s,l);)l--;o=l,o+=4;var c=a(s,o+=4);a(s,o+=2);var u=r(s,o+=2),d=r(s,o+=4);o+=4,o=d;for(var h=0;h<c;h++){r(s,o),o+=4,o+=4,o+=4,r(s,o+=4),u=r(s,o+=4);var p=r(s,o+=4),f=a(s,o+=4),m=a(s,o+2),g=a(s,o+4);o+=6;var v=r(s,o+=8);o+=4,o+=f+m+g,n._readLocal(s,v,i,u,p,t)}return i},n._readLocal=function(e,t,a,r,o,i){var s=n.bin.readUshort,l=n.bin.readUint;l(e,t),s(e,t+=4),s(e,t+=2);var c=s(e,t+=2);l(e,t+=2),l(e,t+=4),t+=4;var u=s(e,t+=8),d=s(e,t+=2);t+=2;var h=n.bin.readUTF8(e,t,u);if(t+=u,t+=d,i)a[h]={size:o,csize:r};else{var p=new Uint8Array(e.buffer,t);if(0==c)a[h]=new Uint8Array(p.buffer.slice(t,t+r));else{if(8!=c)throw"unknown compression method: "+c;var f=new Uint8Array(o);n.inflateRaw(p,f),a[h]=f}}},n.inflateRaw=function(e,t){return n.F.inflate(e,t)},n.inflate=function(e,t){return e[0],e[1],n.inflateRaw(new Uint8Array(e.buffer,e.byteOffset+2,e.length-6),t)},n.deflate=function(e,t){null==t&&(t={level:6});var a=0,r=new Uint8Array(50+Math.floor(1.1*e.length));r[a]=120,r[a+1]=156,a+=2,a=n.F.deflateRaw(e,r,a,t.level);var o=n.adler(e,0,e.length);return r[a+0]=o>>>24&255,r[a+1]=o>>>16&255,r[a+2]=o>>>8&255,r[a+3]=o>>>0&255,new Uint8Array(r.buffer,0,a+4)},n.deflateRaw=function(e,t){null==t&&(t={level:6});var a=new Uint8Array(50+Math.floor(1.1*e.length)),r=n.F.deflateRaw(e,a,r,t.level);return new Uint8Array(a.buffer,0,r)},n.encode=function(e,t){null==t&&(t=!1);var a=0,r=n.bin.writeUint,o=n.bin.writeUshort,i={};for(var s in e){var l=!n._noNeed(s)&&!t,c=e[s],u=n.crc.crc(c,0,c.length);i[s]={cpr:l,usize:c.length,crc:u,file:l?n.deflateRaw(c):c}}for(var s in i)a+=i[s].file.length+30+46+2*n.bin.sizeUTF8(s);a+=22;var d=new Uint8Array(a),h=0,p=[];for(var s in i){var f=i[s];p.push(h),h=n._writeHeader(d,h,s,f,0)}var m=0,g=h;for(var s in i)f=i[s],p.push(h),h=n._writeHeader(d,h,s,f,1,p[m++]);var v=h-g;return r(d,h,101010256),h+=4,o(d,h+=4,m),o(d,h+=2,m),r(d,h+=2,v),r(d,h+=4,g),h+=4,h+=2,d.buffer},n._noNeed=function(e){var t=e.split(".").pop().toLowerCase();return-1!="png,jpg,jpeg,zip".indexOf(t)},n._writeHeader=function(e,t,a,r,o,i){var s=n.bin.writeUint,l=n.bin.writeUshort,c=r.file;return s(e,t,0==o?67324752:33639248),t+=4,1==o&&(t+=2),l(e,t,20),l(e,t+=2,0),l(e,t+=2,r.cpr?8:0),s(e,t+=2,0),s(e,t+=4,r.crc
vendor: 7,652 bytes, line 2
2),s(e,t+=4,c.length),s(e,t+=4,r.usize),l(e,t+=4,n.bin.sizeUTF8(a)),l(e,t+=2,0),t+=2,1==o&&(t+=2,t+=2,s(e,t+=6,i),t+=4),t+=n.bin.writeUTF8(e,t,a),0==o&&(e.set(c,t),t+=c.length),t},n.crc={table:function(){for(var e=new Uint32Array(256),t=0;t<256;t++){for(var n=t,a=0;a<8;a++)1&n?n=3988292384^n>>>1:n>>>=1;e[t]=n}return e}(),update:function(e,t,a,r){for(var o=0;o<r;o++)e=n.crc.table[255&(e^t[a+o])]^e>>>8;return e},crc:function(e,t,a){return 4294967295^n.crc.update(4294967295,e,t,a)}},n.adler=function(e,t,n){for(var a=1,r=0,o=t,i=t+n;o<i;){for(var s=Math.min(o+5552,i);o<s;)r+=a+=e[o++];a%=65521,r%=65521}return r<<16|a},n.bin={readUshort:function(e,t){return e[t]|e[t+1]<<8},writeUshort:function(e,t,n){e[t]=255&n,e[t+1]=n>>8&255},readUint:function(e,t){return 16777216*e[t+3]+(e[t+2]<<16|e[t+1]<<8|e[t])},writeUint:function(e,t,n){e[t]=255&n,e[t+1]=n>>8&255,e[t+2]=n>>16&255,e[t+3]=n>>24&255},readASCII:function(e,t,n){for(var a="",r=0;r<n;r++)a+=String.fromCharCode(e[t+r]);return a},writeASCII:function(e,t,n){for(var a=0;a<n.length;a++)e[t+a]=n.charCodeAt(a)},pad:function(e){return e.length<2?"0"+e:e},readUTF8:function(e,t,a){for(var r,o="",i=0;i<a;i++)o+="%"+n.bin.pad(e[t+i].toString(16));try{r=decodeURIComponent(o)}catch(r){return n.bin.readASCII(e,t,a)}return r},writeUTF8:function(e,t,n){for(var a=n.length,r=0,o=0;o<a;o++){var i=n.charCodeAt(o);if(0==(4294967168&i))e[t+r]=i,r++;else if(0==(4294965248&i))e[t+r]=192|i>>6,e[t+r+1]=128|63&i,r+=2;else if(0==(4294901760&i))e[t+r]=224|i>>12,e[t+r+1]=128|i>>6&63,e[t+r+2]=128|63&i,r+=3;else{if(0!=(4292870144&i))throw"e";e[t+r]=240|i>>18,e[t+r+1]=128|i>>12&63,e[t+r+2]=128|i>>6&63,e[t+r+3]=128|63&i,r+=4}}return r},sizeUTF8:function(e){for(var t=e.length,n=0,a=0;a<t;a++){var r=e.charCodeAt(a);if(0==(4294967168&r))n++;else if(0==(4294965248&r))n+=2;else if(0==(4294901760&r))n+=3;else{if(0!=(4292870144&r))throw"e";n+=4}}return n}},n.F={},n.F.deflateRaw=function(e,t,a,r){var o=[[0,0,0,0,0],[4,4,8,4,0],[4,5,16,8,0],[4,6,16,16,0],[4,10,16,32,0],[8,16,32,32,0],[8,16,128,128,0],[8,32,128,256,0],[32,128,258,1024,1],[32,258,258,4096,1]][r],i=n.F.U,s=n.F._goodIndex;n.F._hash;var l=n.F._putsE,c=0,u=a<<3,d=0,h=e.length;if(0==r){for(;c<h;)l(t,u,c+(C=Math.min(65535,h-c))==h?1:0),u=n.F._copyExact(e,c,C,t,u+8),c+=C;return u>>>3}var p=i.lits,f=i.strt,m=i.prev,g=0,v=0,y=0,w=0,_=0,x=0;for(h>2&&(f[x=n.F._hash(e,0)]=0),c=0;c<h;c++){if(_=x,c+1<h-2){x=n.F._hash(e,c+1);var b=c+1&32767;m[b]=f[x],f[x]=b}if(d<=c){(g>14e3||v>26697)&&h-c>100&&(d<c&&(p[g]=c-d,g+=2,d=c),u=n.F._writeBlock(c==h-1||d==h?1:0,p,g,w,e,y,c-y,t,u),g=v=w=0,y=c);var k=0;c<h-2&&(k=n.F._bestMatch(e,c,m,_,Math.min(o[2],h-c),o[3]));var C=k>>>16,D=65535&k;if(0!=k){D=65535&k;var A=s(C=k>>>16,i.of0);i.lhst[257+A]++;var E=s(D,i.df0);i.dhst[E]++,w+=i.exb[A]+i.dxb[E],p[g]=C<<23|c-d,p[g+1]=D<<16|A<<8|E,g+=2,d=c+C}else i.lhst[e[c]]++;v++}}for(y==c&&0!=e.length||(d<c&&(p[g]=c-d,g+=2,d=c),u=n.F._writeBlock(1,p,g,w,e,y,c-y,t,u),g=0,v=0,g=v=w=0,y=c);0!=(7&u);)u++;return u>>>3},n.F._bestMatch=function(e,t,a,r,o,i){var s=32767&t,l=a[s],c=s-l+32768&32767;if(l==s||r!=n.F._hash(e,t-c))return 0;for(var u=0,d=0,h=Math.min(32767,t);c<=h&&0!=--i&&l!=s;){if(0==u||e[t+u]==e[t+u-c]){var p=n.F._howLong(e,t,c);if(p>u){if(d=c,(u=p)>=o)break;c+2<p&&(p=c+2);for(var f=0,m=0;m<p-2;m++){var g=t-c+m+32768&32767,v=g-a[g]+32768&32767;v>f&&(f=v,l=g)}}}c+=(s=l)-(l=a[s])+32768&32767}return u<<16|d},n.F._howLong=function(e,t,n){if(e[t]!=e[t-n]||e[t+1]!=e[t+1-n]||e[t+2]!=e[t+2-n])return 0;var a=t,r=Math.min(e.length,t+258);for(t+=3;t<r&&e[t]==e[t-n];)t++;return t-a},n.F._hash=function(e,t){return(e[t]<<8|e[t+1])+(e[t+2]<<4)&65535},n.saved=0,n.F._writeBlock=function(e,t,a,r,o,i,s,l,c){var u,d,h,p,f,m,g,v,y,w=n.F.U,_=n.F._putsF,x=n.F._putsE;w.lhst[256]++,d=(u=n.F.getTrees())[0],h=u[1],p=u[2],f=u[3],m=u[4],g=u[5],v=u[6],y=u[7];var b=32+(0==(c+3&7)?0:8-(c+3&7))+(s<<3),k=r+n.F.contSize(w.fltree,w.lhst)+n.F.contSize(w.fdtree,w.dhst),C=r+n.F.contSize(w.ltree,w.lhst)+n.F.contSize(w.dtree,w.dhst);C+=14+3*g+n.F.contSize(w.itree,w.ihst)+(2*w.ihst[16]+3*w.ihst[17]+7*w.ihst[18]);for(var D=0;D<286;D++)w.lhst[D]=0;for(D=0;D<30;D++)w.dhst[D]=0;for(D=0;D<19;D++)w.ihst[D]=0;var A=b<k&&b<C?0:k<C?1:2;if(_(l,c,e),_(l,c+1,A),c+=3,0==A){for(;0!=(7&c);)c++;c=n.F._copyExact(o,i,s,l,c)}else{var E,j;if(1==A&&(E=w.fltree,j=w.fdtree),2==A){n.F.makeCodes(w.ltree,d),n.F.revCodes(w.ltree,d),n.F.makeCodes(w.dtree,h),n.F.revCodes(w.dtree,h),n.F.makeCodes(w.itree,p),n.F.revCodes(w.itree,p),E=w.ltree,j=w.dtree,x(l,c,f-257),x(l,c+=5,m-1),x(l,c+=5,g-4),c+=4;for(var S=0;S<g;S++)x(l,c+3*S,w.itree[1+(w.ordr[S]<<1)]);c+=3*g,c=n.F._codeTiny(v,w.itree,l,c),c=n.F._codeTiny(y,w.itree,l,c)}for(var N=i,P=0;P<a;P+=2){for(var T=t[P],F=T>>>23,O=N+(8388607&T);N<O;)c=n.F._writeLit(o[N++],E,l,c);if(0!=F){var I=t[P+1],R=I>>16,M=I>>8&255,B=255&I;x(l,c=n.F._writeLit(257+M,E,l,c),F-w.of0[M]),c+=w.exb[M],_(l,c=n.F._writeLit(B,j,l,c),R-w.df0[B]),c+=w.dxb[B],N+=F}}c=n.F._writeLit(256,E,l,c)}return c},n.F._copyExact=function(e,t,n,a,r){var o=r>>>3;return a[o]=n,a[o+1]=n>>>8,a[o+2]=255-a[o],a[o+3]=255-a[o+1],o+=4,a.set(new Uint8Array(e.buffer,t,n),o),r+(n+4<<3)},n.F.getTrees=function(){for(var e=n.F.U,t=n.F._hufTree(e.lhst,e.ltree,15),a=n.F._hufTree(e.dhst,e.dtree,15),r=[],o=n.F._lenCodes(e.ltree,r),i=[],s=n.F._lenCodes(e.dtree,i),l=0;l<r.length;l+=2)e.ihst[r[l]]++;for(l=0;l<i.length;l+=2)e.ihst[i[l]]++;for(var c=n.F._hufTree(e.ihst,e.itree,7),u=19;u>4&&0==e.itree[1+(e.ordr[u-1]<<1)];)u--;return[t,a,c,o,s,u,r,i]},n.F.getSecond=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(e[n+1]);return t},n.F.nonZero=function(e){for(var t="",n=0;n<e.length;n+=2)0!=e[n+1]&&(t+=(n>>1)+",");return t},n.F.contSize=function(e,t){for(var n=0,a=0;a<t.length;a++)n+=t[a]*e[1+(a<<1)];return n},n.F._codeTiny=function(e,t,a,r){for(var o=0;o<e.length;o+=2){var i=e[o],s=e[o+1];r=n.F._writeLit(i,t,a,r);var l=16==i?2:17==i?3:7;i>15&&(n.F._putsE(a,r,s,l),r+=l)}return r},n.F._lenCodes=function(e,t){for(var n=e.length;2!=n&&0==e[n-1];)n-=2;for(var a=0;a<n;a+=2){var r=e[a+1],o=a+3<n?e[a+3]:-1,i=a+5<n?e[a+5]:-1,s=0==a?-1:e[a-1];if(0==r&&o==r&&i==r){for(var l=a+5;l+2<n&&e[l+2]==r;)l+=2;(c=Math.min(l+1-a>>>1,138))<11?t.push(17,c-3):t.push(18,c-11),a+=2*c-2}else if(r==s&&o==r&&i==r){for(l=a+5;l+2<n&&e[l+2]==r;)l+=2;var c=Math.min(l+1-a>>>1,6);t.push(16,c-3),a+=2*c-2}else t.push(r,0)}return n>>>1},n.F._hufTree=function(e,t,a){var r=[],o=e.length,i=t.length,s=0;for(s=0;s<i;s+=2)t[s]=0,t[s+1]=0;for(s=0;s<o;s++)0!=e[s]&&r.push({lit:s,f:e[s]});var l=r.length,c=r.slice(0);if(0==l)return 0;if(1==l){var u=r[0].lit;return c=0==u?1:0,t[1+(u<<1)]=1,t[1+(c<<1)]=1,1}r.sort(function(e,t){return e.f-t.f});var d=r[0],h=r[1],p=0,f=1,m=2;for(r[0]={lit:-1,f:d.f+h.f,l:d,r:h,d:0};f!=l-1;)d=p!=f&&(m==l||r[p].f<r[m].f)?r[p++]:r[m++],h=p!=f&&(m==l||r[p].f<r[m].f)?r[p++]:r[m++],r[f++]={lit:-1,f:d.f+h.f,l:d,r:h};var g=n.F.setDepth(r[f-1],0);for(g>a&&(n.F.restrictDepth(c,a,g),g=a),s=0;s<l;s++)t[1+(c[s].lit<<1)]=c[s].d;return g},n.F.setDepth=function(e,t){return-1!=e.lit?(e.d=t,t):Math.max(n.F.setDepth(e.l,t+1),n.F.setDepth(e.r,t+1))},n.F.restrictDepth=function(e,t,n){var a=0,r=1<<n-t,o=0;for(e.sort(function(e,t){return t.d==e.d?e.f-t.f:t.d-e.d}),a=0;a<e.length&&e[a].d>t;a++){var i=e[a].d;e[a].d=t,o+=r-(1<<n-i)}for(o>>>=n-t;o>0;)(i=e[a].d)<t?(e[a].d++,o-=1<<t-i-1):a++;for(;a>=0;a--)e[a].d==t&&o<0&&(e[a].d--,o++);0!=o&&console.log("debt left")},n.F._goodIndex=function(e,t){var n=0;return t[16|n]<=e&&(n|=16),t[8|n]<=e&&(n|=8),t[4|n]<=e&&(n|=4),t[2|n]<=e&&(n|=2),t[1|n]<=e&&(n|=1),n},n.F._writeLit=function(e,t,a,r){return n.F._putsF(a,r,t[e<<1]),r+t[1+(e<<1)]},n.F.inflate=function(e,t){var a=Uint8Array;
vendor: 4,905 bytes, line 2
2if(3==e[0]&&0==e[1])return t||new a(0);var r=n.F,o=r._bitsF,i=r._bitsE,s=r._decodeTiny,l=r.makeCodes,c=r.codes2map,u=r._get17,d=r.U,h=null==t;h&&(t=new a(e.length>>>2<<3));for(var p,f,m=0,g=0,v=0,y=0,w=0,_=0,x=0,b=0,k=0;0==m;)if(m=o(e,k,1),g=o(e,k+1,2),k+=3,0!=g){if(h&&(t=n.F._check(t,b+(1<<17))),1==g&&(p=d.flmap,f=d.fdmap,_=511,x=31),2==g){v=i(e,k,5)+257,y=i(e,k+5,5)+1,w=i(e,k+10,4)+4,k+=14;for(var C=0;C<38;C+=2)d.itree[C]=0,d.itree[C+1]=0;var D=1;for(C=0;C<w;C++){var A=i(e,k+3*C,3);d.itree[1+(d.ordr[C]<<1)]=A,A>D&&(D=A)}k+=3*w,l(d.itree,D),c(d.itree,D,d.imap),p=d.lmap,f=d.dmap,k=s(d.imap,(1<<D)-1,v+y,e,k,d.ttree);var E=r._copyOut(d.ttree,0,v,d.ltree);_=(1<<E)-1;var j=r._copyOut(d.ttree,v,y,d.dtree);x=(1<<j)-1,l(d.ltree,E),c(d.ltree,E,p),l(d.dtree,j),c(d.dtree,j,f)}for(;;){var S=p[u(e,k)&_];k+=15&S;var N=S>>>4;if(N>>>8==0)t[b++]=N;else{if(256==N)break;var P=b+N-254;if(N>264){var T=d.ldef[N-257];P=b+(T>>>3)+i(e,k,7&T),k+=7&T}var F=f[u(e,k)&x];k+=15&F;var O=F>>>4,I=d.ddef[O],R=(I>>>4)+o(e,k,15&I);for(k+=15&I,h&&(t=n.F._check(t,b+(1<<17)));b<P;)t[b]=t[b++-R],t[b]=t[b++-R],t[b]=t[b++-R],t[b]=t[b++-R];b=P}}}else{0!=(7&k)&&(k+=8-(7&k));var M=4+(k>>>3),B=e[M-4]|e[M-3]<<8;h&&(t=n.F._check(t,b+B)),t.set(new a(e.buffer,e.byteOffset+M,B),b),k=M+B<<3,b+=B}return t.length==b?t:t.slice(0,b)},n.F._check=function(e,t){var n=e.length;if(t<=n)return e;var a=new Uint8Array(Math.max(n<<1,t));return a.set(e,0),a},n.F._decodeTiny=function(e,t,a,r,o,i){for(var s=n.F._bitsE,l=n.F._get17,c=0;c<a;){var u=e[l(r,o)&t];o+=15&u;var d=u>>>4;if(d<=15)i[c]=d,c++;else{var h=0,p=0;16==d?(p=3+s(r,o,2),o+=2,h=i[c-1]):17==d?(p=3+s(r,o,3),o+=3):18==d&&(p=11+s(r,o,7),o+=7);for(var f=c+p;c<f;)i[c]=h,c++}}return o},n.F._copyOut=function(e,t,n,a){for(var r=0,o=0,i=a.length>>>1;o<n;){var s=e[o+t];a[o<<1]=0,a[1+(o<<1)]=s,s>r&&(r=s),o++}for(;o<i;)a[o<<1]=0,a[1+(o<<1)]=0,o++;return r},n.F.makeCodes=function(e,t){for(var a,r,o,i,s=n.F.U,l=e.length,c=s.bl_count,u=0;u<=t;u++)c[u]=0;for(u=1;u<l;u+=2)c[e[u]]++;var d=s.next_code;for(a=0,c[0]=0,r=1;r<=t;r++)a=a+c[r-1]<<1,d[r]=a;for(o=0;o<l;o+=2)0!=(i=e[o+1])&&(e[o]=d[i],d[i]++)},n.F.codes2map=function(e,t,a){for(var r=e.length,o=n.F.U.rev15,i=0;i<r;i+=2)if(0!=e[i+1])for(var s=i>>1,l=e[i+1],c=s<<4|l,u=t-l,d=e[i]<<u,h=d+(1<<u);d!=h;)a[o[d]>>>15-t]=c,d++},n.F.revCodes=function(e,t){for(var a=n.F.U.rev15,r=15-t,o=0;o<e.length;o+=2){var i=e[o]<<t-e[o+1];e[o]=a[i]>>>r}},n.F._putsE=function(e,t,n){n<<=7&t;var a=t>>>3;e[a]|=n,e[a+1]|=n>>>8},n.F._putsF=function(e,t,n){n<<=7&t;var a=t>>>3;e[a]|=n,e[a+1]|=n>>>8,e[a+2]|=n>>>16},n.F._bitsE=function(e,t,n){return(e[t>>>3]|e[1+(t>>>3)]<<8)>>>(7&t)&(1<<n)-1},n.F._bitsF=function(e,t,n){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)&(1<<n)-1},n.F._get17=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)},n.F._get25=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16|e[3+(t>>>3)]<<24)>>>(7&t)},n.F.U=(e=Uint16Array,t=Uint32Array,{next_code:new e(16),bl_count:new e(16),ordr:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],of0:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],exb:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],ldef:new e(32),df0:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],dxb:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],ddef:new t(32),flmap:new e(512),fltree:[],fdmap:new e(32),fdtree:[],lmap:new e(32768),ltree:[],ttree:[],dmap:new e(32768),dtree:[],imap:new e(512),itree:[],rev15:new e(32768),lhst:new t(286),dhst:new t(30),ihst:new t(19),lits:new t(15e3),strt:new e(65536),prev:new e(32768)}),function(){for(var e=n.F.U,t=0;t<32768;t++){var a=t;a=(4278255360&(a=(4042322160&(a=(3435973836&(a=(2863311530&a)>>>1|(1431655765&a)<<1))>>>2|(858993459&a)<<2))>>>4|(252645135&a)<<4))>>>8|(16711935&a)<<8,e.rev15[t]=(a>>>16|a<<16)>>>17}function r(e,t,n){for(;0!=t--;)e.push(0,n)}for(t=0;t<32;t++)e.ldef[t]=e.of0[t]<<3|e.exb[t],e.ddef[t]=e.df0[t]<<4|e.dxb[t];r(e.fltree,144,8),r(e.fltree,112,9),r(e.fltree,24,7),r(e.fltree,8,8),n.F.makeCodes(e.fltree,9),n.F.codes2map(e.fltree,9,e.flmap),n.F.revCodes(e.fltree,9),r(e.fdtree,32,5),n.F.makeCodes(e.fdtree,5),n.F.codes2map(e.fdtree,5,e.fdmap),n.F.revCodes(e.fdtree,5),r(e.itree,19,0),r(e.ltree,286,0),r(e.dtree,30,0),r(e.ttree,320,0)}()}();var sL=function(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,a.get?a:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}({__proto__:null,default:oL},[oL]);const lL=function(){var e={nextZero(e,t){for(;0!=e[t];)t++;return t},readUshort:(e,t)=>e[t]<<8|e[t+1],writeUshort(e,t,n){e[t]=n>>8&255,e[t+1]=255&n},readUint:(e,t)=>
vendor: 5,277 bytes, line 2
216777216*e[t]+(e[t+1]<<16|e[t+2]<<8|e[t+3]),writeUint(e,t,n){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n},readASCII(e,t,n){let a="";for(let r=0;r<n;r++)a+=String.fromCharCode(e[t+r]);return a},writeASCII(e,t,n){for(let a=0;a<n.length;a++)e[t+a]=n.charCodeAt(a)},readBytes(e,t,n){const a=[];for(let r=0;r<n;r++)a.push(e[t+r]);return a},pad:e=>e.length<2?"0".concat(e):e,readUTF8(t,n,a){let r,o="";for(let i=0;i<a;i++)o+="%".concat(e.pad(t[n+i].toString(16)));try{r=decodeURIComponent(o)}catch(r){return e.readASCII(t,n,a)}return r}};function t(t,n,a,r){const i=n*a,s=o(r),l=Math.ceil(n*s/8),c=new Uint8Array(4*i),u=new Uint32Array(c.buffer),{ctype:d}=r,{depth:h}=r,p=e.readUshort;if(6==d){const e=i<<2;if(8==h)for(var f=0;f<e;f+=4)c[f]=t[f],c[f+1]=t[f+1],c[f+2]=t[f+2],c[f+3]=t[f+3];if(16==h)for(f=0;f<e;f++)c[f]=t[f<<1]}else if(2==d){const e=r.tabs.tRNS;if(null==e){if(8==h)for(f=0;f<i;f++){var m=3*f;u[f]=255<<24|t[m+2]<<16|t[m+1]<<8|t[m]}if(16==h)for(f=0;f<i;f++)m=6*f,u[f]=255<<24|t[m+4]<<16|t[m+2]<<8|t[m]}else{var g=e[0];const n=e[1],a=e[2];if(8==h)for(f=0;f<i;f++){var v=f<<2;m=3*f,u[f]=255<<24|t[m+2]<<16|t[m+1]<<8|t[m],t[m]==g&&t[m+1]==n&&t[m+2]==a&&(c[v+3]=0)}if(16==h)for(f=0;f<i;f++)v=f<<2,m=6*f,u[f]=255<<24|t[m+4]<<16|t[m+2]<<8|t[m],p(t,m)==g&&p(t,m+2)==n&&p(t,m+4)==a&&(c[v+3]=0)}}else if(3==d){const e=r.tabs.PLTE,o=r.tabs.tRNS,s=o?o.length:0;if(1==h)for(var y=0;y<a;y++){var w=y*l,_=y*n;for(f=0;f<n;f++){v=_+f<<2;var x=3*(b=t[w+(f>>3)]>>7-(7&f)&1);c[v]=e[x],c[v+1]=e[x+1],c[v+2]=e[x+2],c[v+3]=b<s?o[b]:255}}if(2==h)for(y=0;y<a;y++)for(w=y*l,_=y*n,f=0;f<n;f++)v=_+f<<2,x=3*(b=t[w+(f>>2)]>>6-((3&f)<<1)&3),c[v]=e[x],c[v+1]=e[x+1],c[v+2]=e[x+2],c[v+3]=b<s?o[b]:255;if(4==h)for(y=0;y<a;y++)for(w=y*l,_=y*n,f=0;f<n;f++)v=_+f<<2,x=3*(b=t[w+(f>>1)]>>4-((1&f)<<2)&15),c[v]=e[x],c[v+1]=e[x+1],c[v+2]=e[x+2],c[v+3]=b<s?o[b]:255;if(8==h)for(f=0;f<i;f++){var b;v=f<<2,x=3*(b=t[f]),c[v]=e[x],c[v+1]=e[x+1],c[v+2]=e[x+2],c[v+3]=b<s?o[b]:255}}else if(4==d){if(8==h)for(f=0;f<i;f++){v=f<<2;var k=t[C=f<<1];c[v]=k,c[v+1]=k,c[v+2]=k,c[v+3]=t[C+1]}if(16==h)for(f=0;f<i;f++){var C;v=f<<2,k=t[C=f<<2],c[v]=k,c[v+1]=k,c[v+2]=k,c[v+3]=t[C+2]}}else if(0==d)for(g=r.tabs.tRNS?r.tabs.tRNS:-1,y=0;y<a;y++){const e=y*l,a=y*n;if(1==h)for(var D=0;D<n;D++){var A=(k=255*(t[e+(D>>>3)]>>>7-(7&D)&1))==255*g?0:255;u[a+D]=A<<24|k<<16|k<<8|k}else if(2==h)for(D=0;D<n;D++)A=(k=85*(t[e+(D>>>2)]>>>6-((3&D)<<1)&3))==85*g?0:255,u[a+D]=A<<24|k<<16|k<<8|k;else if(4==h)for(D=0;D<n;D++)A=(k=17*(t[e+(D>>>1)]>>>4-((1&D)<<2)&15))==17*g?0:255,u[a+D]=A<<24|k<<16|k<<8|k;else if(8==h)for(D=0;D<n;D++)A=(k=t[e+D])==g?0:255,u[a+D]=A<<24|k<<16|k<<8|k;else if(16==h)for(D=0;D<n;D++)k=t[e+(D<<1)],A=p(t,e+(D<<1))==g?0:255,u[a+D]=A<<24|k<<16|k<<8|k}return c}function n(e,t,n,s){const l=o(e),c=Math.ceil(n*l/8),u=new Uint8Array((c+1+e.interlace)*s);return t=e.tabs.CgBI?r(t,u):a(t,u),0==e.interlace?t=i(t,e,0,n,s):1==e.interlace&&(t=function(e,t){const n=t.width,a=t.height,r=o(t),s=r>>3,l=Math.ceil(n*r/8),c=new Uint8Array(a*l);let u=0;const d=[0,0,4,0,2,0,1],h=[0,4,0,2,0,1,0],p=[8,8,8,4,4,2,2],f=[8,8,4,4,2,2,1];let m=0;for(;m<7;){const o=p[m],v=f[m];let y=0,w=0,_=d[m];for(;_<a;)_+=o,w++;let x=h[m];for(;x<n;)x+=v,y++;const b=Math.ceil(y*r/8);i(e,t,u,y,w);let k=0,C=d[m];for(;C<a;){let t=h[m],a=u+k*b<<3;for(;t<n;){var g;if(1==r&&(g=(g=e[a>>3])>>7-(7&a)&1,c[C*l+(t>>3)]|=g<<7-(7&t)),2==r&&(g=(g=e[a>>3])>>6-(7&a)&3,c[C*l+(t>>2)]|=g<<6-((3&t)<<1)),4==r&&(g=(g=e[a>>3])>>4-(7&a)&15,c[C*l+(t>>1)]|=g<<4-((1&t)<<2)),r>=8){const n=C*l+t*s;for(let t=0;t<s;t++)c[n+t]=e[(a>>3)+t]}a+=r,t+=v}k++,C+=o}y*w!=0&&(u+=w*(1+b)),m+=1}return c}(t,e)),t}function a(e,t){return r(new Uint8Array(e.buffer,2,e.length-6),t)}var r=function(){const e={H:{}};return e.H.N=function(t,n){const a=Uint8Array;let r,o,i=0,s=0,l=0,c=0,u=0,d=0,h=0,p=0,f=0;if(3==t[0]&&0==t[1])return n||new a(0);const m=e.H,g=m.b,v=m.e,y=m.R,w=m.n,_=m.A,x=m.Z,b=m.m,k=null==n;for(k&&(n=new a(t.length>>>2<<5));0==i;)if(i=g(t,f,1),s=g(t,f+1,2),f+=3,0!=s){if(k&&(n=e.H.W(n,p+(1<<17))),1==s&&(r=b.J,o=b.h,d=511,h=31),2==s){l=v(t,f,5)+257,c=v(t,f+5,5)+1,u=v(t,f+10,4)+4,f+=14;let e=1;for(var C=0;C<38;C+=2)b.Q[C]=0,b.Q[C+1]=0;for(C=0;C<u;C++){const n=v(t,f+3*C,3);b.Q[1+(b.X[C]<<1)]=n,n>e&&(e=n)}f+=3*u,w(b.Q,e),_(b.Q,e,b.u),r=b.w,o=b.d,f=y(b.u,(1<<e)-1,l+c,t,f,b.v);const n=m.V(b.v,0,l,b.C);d=(1<<n)-1;const a=m.V(b.v,l,c,b.D);h=(1<<a)-1,w(b.C,n),_(b.C,n,r),w(b.D,a),_(b.D,a,o)}for(;;){const e=r[x(t,f)&d];f+=15&e;const a=e>>>4;if(a>>>8==0)n[p++]=a;else{if(256==a)break;{let e=p+a-254;if(a>264){const n=b.q[a-257];e=p+(n>>>3)+v(t,f,7&n),f+=7&n}const r=o[x(t,f)&h];f+=15&r;const i=r>>>4,s=b.c[i],l=(s>>>4)+g(t,f,15&s);for(f+=15&s;p<e;)n[p]=n[p++-l],n[p]=n[p++-l],n[p]=n[p++-l],n[p]=n[p++-l];p=e}}}}else{0!=(7&f)&&(f+=8-(7&f));const r=4+(f>>>3),o=t[r-4]|t[r-3]<<8;k&&(n=e.H.W(n,p+o)),n.set(new a(t.buffer,t.byteOffset+r,o),p),f=r+o<<3,p+=o}return n.length==p?n:n.slice(0,p)},e.H.W=function(e,t){const n=e.length;if(t<=n)return e;const a=new Uint8Array(n<<1);return a.set(e,0),a},e.H.R=function(t,n,a,r,o,i){const s=e.H.e,l=e.H.Z;let c=0;for(;c<a;){const e=t[l(r,o)&n];o+=15&e;const a=e>>>4;if(a<=15)i[c]=a,c++;else{let e=0,t=0;16==a?(t=3+s(r,o,2),o+=2,e=i[c-1]):17==a?(t=3+s(r,o,3),o+=3):18==a&&(t=11+s(r,o,7),o+=7);const n=c+t;for(;c<n;)i[c]=e,c++}
vendor: 14,702 bytes, line 2
2}return o},e.H.V=function(e,t,n,a){let r=0,o=0;const i=a.length>>>1;for(;o<n;){const n=e[o+t];a[o<<1]=0,a[1+(o<<1)]=n,n>r&&(r=n),o++}for(;o<i;)a[o<<1]=0,a[1+(o<<1)]=0,o++;return r},e.H.n=function(t,n){const a=e.H.m,r=t.length;let o,i,s,l;const c=a.j;for(var u=0;u<=n;u++)c[u]=0;for(u=1;u<r;u+=2)c[t[u]]++;const d=a.K;for(o=0,c[0]=0,i=1;i<=n;i++)o=o+c[i-1]<<1,d[i]=o;for(s=0;s<r;s+=2)l=t[s+1],0!=l&&(t[s]=d[l],d[l]++)},e.H.A=function(t,n,a){const r=t.length,o=e.H.m.r;for(let e=0;e<r;e+=2)if(0!=t[e+1]){const r=e>>1,i=t[e+1],s=r<<4|i,l=n-i;let c=t[e]<<l;const u=c+(1<<l);for(;c!=u;)a[o[c]>>>15-n]=s,c++}},e.H.l=function(t,n){const a=e.H.m.r,r=15-n;for(let e=0;e<t.length;e+=2){const o=t[e]<<n-t[e+1];t[e]=a[o]>>>r}},e.H.M=function(e,t,n){n<<=7&t;const a=t>>>3;e[a]|=n,e[a+1]|=n>>>8},e.H.I=function(e,t,n){n<<=7&t;const a=t>>>3;e[a]|=n,e[a+1]|=n>>>8,e[a+2]|=n>>>16},e.H.e=function(e,t,n){return(e[t>>>3]|e[1+(t>>>3)]<<8)>>>(7&t)&(1<<n)-1},e.H.b=function(e,t,n){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)&(1<<n)-1},e.H.Z=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)},e.H.i=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16|e[3+(t>>>3)]<<24)>>>(7&t)},e.H.m=function(){const e=Uint16Array,t=Uint32Array;return{K:new e(16),j:new e(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],q:new e(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],c:new t(32),J:new e(512),_:[],h:new e(32),$:[],w:new e(32768),C:[],v:[],d:new e(32768),D:[],u:new e(512),Q:[],r:new e(32768),s:new t(286),Y:new t(30),a:new t(19),t:new t(15e3),k:new e(65536),g:new e(32768)}}(),function(){const t=e.H.m;for(var n=0;n<32768;n++){let e=n;e=(2863311530&e)>>>1|(1431655765&e)<<1,e=(3435973836&e)>>>2|(858993459&e)<<2,e=(4042322160&e)>>>4|(252645135&e)<<4,e=(4278255360&e)>>>8|(16711935&e)<<8,t.r[n]=(e>>>16|e<<16)>>>17}function a(e,t,n){for(;0!=t--;)e.push(0,n)}for(n=0;n<32;n++)t.q[n]=t.S[n]<<3|t.T[n],t.c[n]=t.p[n]<<4|t.z[n];a(t._,144,8),a(t._,112,9),a(t._,24,7),a(t._,8,8),e.H.n(t._,9),e.H.A(t._,9,t.J),e.H.l(t._,9),a(t.$,32,5),e.H.n(t.$,5),e.H.A(t.$,5,t.h),e.H.l(t.$,5),a(t.Q,19,0),a(t.C,286,0),a(t.D,30,0),a(t.v,320,0)}(),e.H.N}();function o(e){return[1,null,3,1,2,null,4][e.ctype]*e.depth}function i(e,t,n,a,r){let i=o(t);const l=Math.ceil(a*i/8);let c,u;i=Math.ceil(i/8);let d=e[n],h=0;if(d>1&&(e[n]=[0,0,1][d-2]),3==d)for(h=i;h<l;h++)e[h+1]=e[h+1]+(e[h+1-i]>>>1)&255;for(let o=0;o<r;o++)if(c=n+o*l,u=c+o+1,d=e[u-1],h=0,0==d)for(;h<l;h++)e[c+h]=e[u+h];else if(1==d){for(;h<i;h++)e[c+h]=e[u+h];for(;h<l;h++)e[c+h]=e[u+h]+e[c+h-i]}else if(2==d)for(;h<l;h++)e[c+h]=e[u+h]+e[c+h-l];else if(3==d){for(;h<i;h++)e[c+h]=e[u+h]+(e[c+h-l]>>>1);for(;h<l;h++)e[c+h]=e[u+h]+(e[c+h-l]+e[c+h-i]>>>1)}else{for(;h<i;h++)e[c+h]=e[u+h]+s(0,e[c+h-l],0);for(;h<l;h++)e[c+h]=e[u+h]+s(e[c+h-i],e[c+h-l],e[c+h-i-l])}return e}function s(e,t,n){const a=e+t-n,r=a-e,o=a-t,i=a-n;return r*r<=o*o&&r*r<=i*i?e:o*o<=i*i?t:n}function l(t,n,a){a.width=e.readUint(t,n),n+=4,a.height=e.readUint(t,n),n+=4,a.depth=t[n],n++,a.ctype=t[n],n++,a.compress=t[n],n++,a.filter=t[n],n++,a.interlace=t[n],n++}function c(e,t,n,a,r,o,i,s,l){const c=Math.min(t,r),u=Math.min(n,o);let d=0,h=0;for(let x=0;x<u;x++)for(let n=0;n<c;n++)if(i>=0&&s>=0?(d=x*t+n<<2,h=(s+x)*r+i+n<<2):(d=(-s+x)*t-i+n<<2,h=x*r+n<<2),0==l)a[h]=e[d],a[h+1]=e[d+1],a[h+2]=e[d+2],a[h+3]=e[d+3];else if(1==l){var p=e[d+3]*(1/255),f=e[d]*p,m=e[d+1]*p,g=e[d+2]*p,v=a[h+3]*(1/255),y=a[h]*v,w=a[h+1]*v,_=a[h+2]*v;const t=1-p,n=p+v*t,r=0==n?0:1/n;a[h+3]=255*n,a[h+0]=(f+y*t)*r,a[h+1]=(m+w*t)*r,a[h+2]=(g+_*t)*r}else if(2==l)p=e[d+3],f=e[d],m=e[d+1],g=e[d+2],v=a[h+3],y=a[h],w=a[h+1],_=a[h+2],p==v&&f==y&&m==w&&g==_?(a[h]=0,a[h+1]=0,a[h+2]=0,a[h+3]=0):(a[h]=f,a[h+1]=m,a[h+2]=g,a[h+3]=p);else if(3==l){if(p=e[d+3],f=e[d],m=e[d+1],g=e[d+2],v=a[h+3],y=a[h],w=a[h+1],_=a[h+2],p==v&&f==y&&m==w&&g==_)continue;if(p<220&&v>20)return!1}return!0}return{decode:function(t){const o=new Uint8Array(t);let i=8;const s=e,c=s.readUshort,u=s.readUint,d={tabs:{},frames:[]},h=new Uint8Array(o.length);let p,f=0,m=0;const g=[137,80,78,71,13,10,26,10];for(var v=0;v<8;v++)if(o[v]!=g[v])throw"The input is not a PNG file!";for(;i<o.length;){const t=s.readUint(o,i);i+=4;const g=s.readASCII(o,i,4);if(i+=4,"IHDR"==g)l(o,i,d);else if("iCCP"==g){for(var y=i;0!=o[y];)y++;s.readASCII(o,i,y-i),o[y+1];const n=o.slice(y+2,i+t);let l=null;try{l=a(n)}catch(e){l=r(n)}d.tabs[g]=l}else if("CgBI"==g)d.tabs[g]=o.slice(i,i+4);else if("IDAT"==g){for(v=0;v<t;v++)h[f+v]=o[i+v];f+=t}else if("acTL"==g)d.tabs[g]={num_frames:u(o,i),num_plays:u(o,i+4)},p=new Uint8Array(o.length);else if("fcTL"==g){0!=m&&((C=d.frames[d.frames.length-1]).data=n(d,p.slice(0,m),C.rect.width,C.rect.height),m=0);const e={x:u(o,i+12),y:u(o,i+16),width:u(o,i+4),height:u(o,i+8)};let t=c(o,i+22);t=c(o,i+20)/(0==t?100:t);const a={rect:e,delay:Math.round(1e3*t),dispose:o[i+24],blend:o[i+25]};d.frames.push(a)}else if("fdAT"==g){for(v=0;v<t-4;v++)p[m+v]=o[i+v+4];m+=t-4}else if("pHYs"==g)d.tabs[g]=[s.readUint(o,i),s.readUint(o,i+4),o[i+8]];else if("cHRM"==g)for(d.tabs[g]=[],v=0;v<8;v++)d.tabs[g].push(s.readUint(o,i+4*v));else if("tEXt"==g||"zTXt"==g){null==d.tabs[g]&&(d.tabs[g]={});var w=s.nextZero(o,i),_=s.readASCII(o,i,w-i),x=i+t-w-1;if("tEXt"==g)k=s.readASCII(o,w+1,x);else{var b=a(o.slice(w+2,w+2+x));k=s.readUTF8(b,0,b.length)}d.tabs[g][_]=k}else if("iTXt"==g){null==d.tabs[g]&&(d.tabs[g]={}),w=0,y=i,w=s.nextZero(o,y),_=s.readASCII(o,y,w-y);const e=o[y=w+1];var k;o[y+1],y+=2,w=s.nextZero(o,y),s.readASCII(o,y,w-y),y=w+1,w=s.nextZero(o,y),s.readUTF8(o,y,w-y),x=t-((y=w+1)-i),0==e?k=s.readUTF8(o,y,x):(b=a(o.slice(y,y+x)),k=s.readUTF8(b,0,b.length)),d.tabs[g][_]=k}else if("PLTE"==g)d.tabs[g]=s.readBytes(o,i,t);else if("hIST"==g){const e=d.tabs.PLTE.length/3;for(d.tabs[g]=[],v=0;v<e;v++)d.tabs[g].push(c(o,i+2*v))}else if("tRNS"==g)3==d.ctype?d.tabs[g]=s.readBytes(o,i,t):0==d.ctype?d.tabs[g]=c(o,i):2==d.ctype&&(d.tabs[g]=[c(o,i),c(o,i+2),c(o,i+4)]);else if("gAMA"==g)d.tabs[g]=s.readUint(o,i)/1e5;else if("sRGB"==g)d.tabs[g]=o[i];else if("bKGD"==g)0==d.ctype||4==d.ctype?d.tabs[g]=[c(o,i)]:2==d.ctype||6==d.ctype?d.tabs[g]=[c(o,i),c(o,i+2),c(o,i+4)]:3==d.ctype&&(d.tabs[g]=o[i]);else if("IEND"==g)break;i+=t,s.readUint(o,i),i+=4}var C;return 0!=m&&((C=d.frames[d.frames.length-1]).data=n(d,p.slice(0,m),C.rect.width,C.rect.height)),d.data=n(d,h,d.width,d.height),delete d.compress,delete d.interlace,delete d.filter,d},toRGBA8:function(e){const n=e.width,a=e.height;if(null==e.tabs.acTL)return[t(e.data,n,a,e).buffer];const r=[];null==e.frames[0].data&&(e.frames[0].data=e.data);const o=n*a*4,i=new Uint8Array(o),s=new Uint8Array(o),l=new Uint8Array(o);for(let d=0;d<e.frames.length;d++){const h=e.frames[d],p=h.rect.x,f=h.rect.y,m=h.rect.width,g=h.rect.height,v=t(h.data,m,g,e);if(0!=d)for(var u=0;u<o;u++)l[u]=i[u];if(0==h.blend?c(v,m,g,i,n,a,p,f,0):1==h.blend&&c(v,m,g,i,n,a,p,f,1),r.push(i.buffer.slice(0)),0==h.dispose);else if(1==h.dispose)c(s,m,g,i,n,a,p,f,0);else if(2==h.dispose)for(u=0;u<o;u++)i[u]=l[u]}return r},_paeth:s,_copyTile:c,_bin:e}}();!function(){const{_copyTile:e}=lL,{_bin:t}=lL,n=lL._paeth;var a={table:function(){const e=new Uint32Array(256);for(let t=0;t<256;t++){let n=t;for(let e=0;e<8;e++)1&n?n=3988292384^n>>>1:n>>>=1;e[t]=n}return e}(),update(e,t,n,r){for(let o=0;o<r;o++)e=a.table[255&(e^t[n+o])]^e>>>8;return e},crc:(e,t,n)=>4294967295^a.update(4294967295,e,t,n)};function r(e,t,n,a){t[n]+=e[0]*a>>4,t[n+1]+=e[1]*a>>4,t[n+2]+=e[2]*a>>4,t[n+3]+=e[3]*a>>4}function o(e){return Math.max(0,Math.min(255,e))}function i(e,t){const n=e[0]-t[0],a=e[1]-t[1],r=e[2]-t[2],o=e[3]-t[3];return n*n+a*a+r*r+o*o}function s(e,t,n,a,s,l,c){null==c&&(c=1);const u=a.length,d=[];for(var h=0;h<u;h++){const e=a[h];d.push([e>>>0&255,e>>>8&255,e>>>16&255,e>>>24&255])}for(h=0;h<u;h++){let e=4294967295;for(var p=0,f=0;f<u;f++){var m=i(d[h],d[f]);f!=h&&m<e&&(e=m,p=f)}}const g=new Uint32Array(s.buffer),v=new Int16Array(t*n*4),y=[0,8,2,10,12,4,14,6,3,11,1,9,15,7,13,5];for(h=0;h<y.length;h++)y[h]=255*((y[h]+.5)/16-.5);for(let _=0;_<n;_++)for(let s=0;s<t;s++){var w;h=4*(_*t+s),2!=c?w=[o(e[h]+v[h]),o(e[h+1]+v[h+1]),o(e[h+2]+v[h+2]),o(e[h+3]+v[h+3])]:(m=y[4*(3&_)+(3&s)],w=[o(e[h]+m),o(e[h+1]+m),o(e[h+2]+m),o(e[h+3]+m)]),p=0;let x=16777215;for(f=0;f<u;f++){const e=i(w,d[f]);e<x&&(x=e,p=f)}const b=d[p],k=[w[0]-b[0],w[1]-b[1],w[2]-b[2],w[3]-b[3]];1==c&&(s!=t-1&&r(k,v,h+4,7),_!=n-1&&(0!=s&&r(k,v,h+4*t-4,3),r(k,v,h+4*t,5),s!=t-1&&r(k,v,h+4*t+4,1))),l[h>>2]=p,g[h>>2]=a[p]}}function l(e,n,r,o,i){null==i&&(i={});const{crc:s}=a,l=t.writeUint,c=t.writeUshort,u=t.writeASCII;let d=8;const h=e.frames.length>1;let p,f=!1,m=33+(h?20:0);if(null!=i.sRGB&&(m+=13),null!=i.pHYs&&(m+=21),null!=i.iCCP&&(p=pako.deflate(i.iCCP),m+=21+p.length+4),3==e.ctype){for(var g=e.plte.length,v=0;v<g;v++)e.plte[v]>>>24!=255&&(f=!0);m+=8+3*g+4+(f?8+1*g+4:0)}for(var y=0;y<e.frames.length;y++)h&&(m+=38),m+=(b=e.frames[y]).cimg.length+12,0!=y&&(m+=4);m+=12;const w=new Uint8Array(m),_=[137,80,78,71,13,10,26,10];for(v=0;v<8;v++)w[v]=_[v];if(l(w,d,13),d+=4,u(w,d,"IHDR"),d+=4,l(w,d,n),d+=4,l(w,d,r),d+=4,w[d]=e.depth,d++,w[d]=e.ctype,d++,w[d]=0,d++,w[d]=0,d++,w[d]=0,d++,l(w,d,s(w,d-17,17)),d+=4,null!=i.sRGB&&(l(w,d,1),d+=4,u(w,d,"sRGB"),d+=4,w[d]=i.sRGB,d++,l(w,d,s(w,d-5,5)),d+=4),null!=i.iCCP){const e=13+p.length;l(w,d,e),d+=4,u(w,d,"iCCP"),d+=4,u(w,d,"ICC profile"),d+=11,d+=2,w.set(p,d),d+=p.length,l(w,d,s(w,d-(e+4),e+4)),d+=4}if(null!=i.pHYs&&(l(w,d,9),d+=4,u(w,d,"pHYs"),d+=4,l(w,d,i.pHYs[0]),d+=4,l(w,d,i.pHYs[1]),d+=4,w[d]=i.pHYs[2],d++,l(w,d,s(w,d-13,13)),d+=4),h&&(l(w,d,8),d+=4,u(w,d,"acTL"),d+=4,l(w,d,e.frames.length),d+=4,l(w,d,null!=i.loop?i.loop:0),d+=4,l(w,d,s(w,d-12,12)),d+=4),3==e.ctype){for(l(w,d,3*(g=e.plte.length)),d+=4,u(w,d,"PLTE"),d+=4,v=0;v<g;v++){const t=3*v,n=e.plte[v],a=255&n,r=n>>>8&255,o=n>>>16&255;w[d+t+0]=a,w[d+t+1]=r,w[d+t+2]=o}if(d+=3*g,l(w,d,s(w,d-3*g-4,3*g+4)),d+=4,f){for(l(w,d,g),d+=4,u(w,d,"tRNS"),d+=4,v=0;v<g;v++)w[d+v]=e.plte[v]>>>24&255;d+=g,l(w,d,s(w,d-g-4,g+4)),d+=4}}let x=0;for(y=0;y<e.frames.length;y++){var b=e.frames[y];h&&(l(w,d,26),d+=4,u(w,d,"fcTL"),d+=4,l(w,d,x++),d+=4,l(w,d,b.rect.width),d+=4,l(w,d,b.rect.height),d+=4,l(w,d,b.rect.x),d+=4,l(w,d,b.rect.y),d+=4,c(w,d,o[y]),d+=2,c(w,d,1e3),d+=2,w[d]=b.dispose,d++,w[d]=b.blend,d++,l(w,d,s(w,d-30,30)),d+=4);const t=b.cimg;l(w,d,(g=t.length)+(0==y?0:4)),d+=4;const n=d;u(w,d,0==y?"IDAT":"fdAT"),d+=4,0!=y&&(l(w,d,x++),d+=4),w.set(t,d),d+=g,l(w,d,s(w,n,d-n)),d+=4}return l(w,d,0),d+=4,u(w,d,"IEND"),d+=4,l(w,d,s(w,d-4,4)),d+=4,w.buffer}function c(e,t,n){for(let a=0;a<e.frames.length;a++){const r=e.frames[a];r.rect.width;const o=r.rect.height,i=new Uint8Array(o*r.bpl+o);r.cimg=p(r.img,o,r.bpp,r.bpl,i,t,n)}}function u(t,n,a,r,o){const i=o[0],l=o[1],c=o[2],u=o[3],p=o[4],f=o[5];let g=6,v=8,y=255;for(var w=0;w<t.length;w++){const e=new Uint8Array(t[w]);for(var _=e.length,x=0;x<_;x+=4)y&=e[x+3]}const b=255!=y,k=function(t,n,a,r,o,i){const s=[];for(var l=0;l<t.length;l++){const d=new Uint8Array(t[l]),p=new Uint32Array(d.buffer);var c;let m=0,g=0,v=n,y=a,w=r?1:0;if(0!=l){const _=i||r||1==l||0!=s[l-2].dispose?1:2;let x=0,b=1e9;for(let e=0;e<_;e++){var u=new Uint8Array(t[l-1-e]);const r=new Uint32Array(t[l-1-e]);let i=n,s=a,c=-1,d=-1;for(let e=0;e<a;e++)for(let t=0;t<n;t++)p[f=e*n+t]!=r[f]&&(t<i&&(i=t),t>c&&(c=t),e<s&&(s=e),e>d&&(d=e));-1==c&&(i=s=c=d=0),o&&(1==(1&i)&&i--,1==(1&s)&&s--);const h=(c-i+1)*(d-s+1);h<b&&(b=h,x=e,m=i,g=s,v=c-i+1,y=d-s+1)}u=new Uint8Array(t[l-1-x]),1==x&&(s[l-1].dispose=2),c=new Uint8Array(v*y*4),e(u,n,a,c,v,y,-m,-g,0),w=e(d,n,a,c,v,y,-m,-g,3)?1:0,1==w?h(d,n,a,c,{x:m,y:g,width:v,height:y}):e(d,n,a,c,v,y,-m,-g,0)}else c=d.slice(0);s.push({rect:{x:m,y:g,width:v,height:y},img:c,blend:w,dispose:0})}if(r)for(l=0;l<s.length;l++){if(1==(m=s[l]).blend)continue;const e=m.rect,r=s[l-1].rect,i=Math.min(e.x,r.x),c=Math.min(e.y,r.y),u={x:i,y:c,width:Math.max(e.x+e.width,r.x+r.width)-i,height:Math.max(e.y+e.height,r.y+r.height)-c};s[l-1].dispose=1,l-1!=0&&d(t,n,a,s,l-1,u,o),d(t,n,a,s,l,u,o)}let p=0;if(1!=t.length)for(var f=0;f<s.length;f++){var m;p+=(m=s[f]).rect.width*m.rect.height}return s}(t,n,a,i,l,c),C={},D=[],A=[];if(0!=r){const e=[];for(x=0;x<k.length;x++)e.push(k[x].img.buffer);const t=function(e){let t=0;for(var n=0;n<e.length;n++)t+=e[n].byteLength;const a=new Uint8Array(t);let r=0;for(n=0;n<e.length;n++){const t=new Uint8Array(e[n]),o=t.length;for(let e=0;e<o;e+=4){let n=t[e],o=t[e+1],i=t[e+2];const s=t[e+3];0==s&&(n=o=i=0),a[r+e]=n,a[r+e+1]=o,a[r+e+2]=i,a[r+e+3]=s}r+=o}return a.buffer}(e),n=m(t,r);for(x=0;x<n.plte.length;x++)D.push(n.plte[x].est.rgba);let a=0;for(x=0;x<k.length;x++){const e=(j=k[x]).img.length;var E=new Uint8Array(n.inds.buffer,a>>2,e>>2);A.push(E);const t=new Uint8Array(n.abuf,a,e);f&&s(j.img,j.rect.width,j.rect.height,D,t,E),j.img.set(t),a+=e}}else for(w=0;w<k.length;w++){var j=k[w];const e=new Uint32Array(j.img.buffer);var S=j.rect.width;for(_=e.length,E=new Uint8Array(_),A.push(E),x=0;x<_;x++){const t=e[x];if(0!=x&&t==e[x-1])E[x]=E[x-1];else if(x>S&&t==e[x-S])E[x]=E[x-S];else{let e=C[t];if(null==e&&(C[t]=e=D.length,D.push(t),D.length>=300))break;E[x]=e}}}const N=D.length;for(N<=256&&0==p&&(v=N<=2?1:N<=4?2:N<=16?4:8,v=Math.max(v,u)),w=0;w<k.length;w++){(j=k[w]).rect.x,j.rect.y,S=j.rect.width;const e=j.rect.height;let t=j.img;new Uint32Array(t.buffer);let n=4*S,a=4;if(N<=256&&0==p){n=Math.ceil(v*S/8);var P=new Uint8Array(n*e);const r=A[w];for(let t=0;t<e;t++){x=t*n;const e=t*S;if(8==v)for(var T=0;T<S;T++)P[x+T]=r[e+T];else if(4==v)for(T=0;T<S;T++)P[x+(T>>1)]|=r[e+T]<<4-4*(1&T);else if(2==v)for(T=0;T<S;T++)P[x+(T>>2)]|=r[e+T]<<6-2*(3&T);else if(1==v)for(T=0;T<S;T++)P[x+(T>>3)]|=r[e+T]<<7-1*(7&T)}t=P,g=3,a=1}else if(0==b&&1==k.length){P=new Uint8Array(S*e*3);const r=S*e;for(x=0;x<r;x++){const e=3*x,n=4*x;P[e]=t[n],P[e+1]=t[n+1],P[e+2]=t[n+2]}t=P,g=2,a=3,n=3*S}j.img=t,j.bpl=n,j.bpp=a}return{ctype:g,depth:v,plte:D,frames:k}}function d(t,n,a,r,o,i,s){const l=Uint8Array,c=Uint32Array,u=new l(t[o-1]),d=new c(t[o-1]),p=o+1<t.length?new l(t[o+1]):null,f=new l(t[o]),m=new c(f.buffer);let g=n,v=a,y=-1,w=-1;for(let e=0;e<i.height;e++)for(let t=0;t<i.width;t++){const a=i.x+t,s=i.y+e,l=s*n+a,c=m[l];0==c||0==r[o-1].dispose&&d[l]==c&&(null==p||0!=p[4*l+3])||(a<g&&(g=a),a>y&&(y=a),s<v&&(v=s),s>w&&(w=s))}-1==y&&(g=v=y=w=0),s&&(1==(1&g)&&g--,1==(1&v)&&v--),i={x:g,y:v,width:y-g+1,height:w-v+1};
vendor: 4,558 bytes, line 2
2const _=r[o];_.rect=i,_.blend=1,_.img=new Uint8Array(i.width*i.height*4),0==r[o-1].dispose?(e(u,n,a,_.img,i.width,i.height,-i.x,-i.y,0),h(f,n,a,_.img,i)):e(f,n,a,_.img,i.width,i.height,-i.x,-i.y,0)}function h(t,n,a,r,o){e(t,n,a,r,o.width,o.height,-o.x,-o.y,2)}function p(e,t,n,a,r,o,i){const s=[];let l,c=[0,1,2,3,4];-1!=o?c=[o]:(t*a>5e5||1==n)&&(c=[0]),i&&(l={level:0});const u=sL;for(var d=0;d<c.length;d++){for(let o=0;o<t;o++)f(r,e,o,a,n,c[d]);s.push(u.deflate(r,l))}let h,p=1e9;for(d=0;d<s.length;d++)s[d].length<p&&(h=d,p=s[d].length);return s[h]}function f(e,t,a,r,o,i){const s=a*r;let l=s+a;if(e[l]=i,l++,0==i)if(r<500)for(var c=0;c<r;c++)e[l+c]=t[s+c];else e.set(new Uint8Array(t.buffer,s,r),l);else if(1==i){for(c=0;c<o;c++)e[l+c]=t[s+c];for(c=o;c<r;c++)e[l+c]=t[s+c]-t[s+c-o]+256&255}else if(0==a){for(c=0;c<o;c++)e[l+c]=t[s+c];if(2==i)for(c=o;c<r;c++)e[l+c]=t[s+c];if(3==i)for(c=o;c<r;c++)e[l+c]=t[s+c]-(t[s+c-o]>>1)+256&255;if(4==i)for(c=o;c<r;c++)e[l+c]=t[s+c]-n(t[s+c-o],0,0)+256&255}else{if(2==i)for(c=0;c<r;c++)e[l+c]=t[s+c]+256-t[s+c-r]&255;if(3==i){for(c=0;c<o;c++)e[l+c]=t[s+c]+256-(t[s+c-r]>>1)&255;for(c=o;c<r;c++)e[l+c]=t[s+c]+256-(t[s+c-r]+t[s+c-o]>>1)&255}if(4==i){for(c=0;c<o;c++)e[l+c]=t[s+c]+256-n(0,t[s+c-r],0)&255;for(c=o;c<r;c++)e[l+c]=t[s+c]+256-n(t[s+c-o],t[s+c-r],t[s+c-o-r])&255}}}function m(e,t){const n=new Uint8Array(e),a=n.slice(0),r=new Uint32Array(a.buffer),o=g(a,t),i=o[0],s=o[1],l=n.length,c=new Uint8Array(l>>2);let u;if(n.length<2e7)for(var d=0;d<l;d+=4)u=v(i,h=n[d]*(1/255),p=n[d+1]*(1/255),f=n[d+2]*(1/255),m=n[d+3]*(1/255)),c[d>>2]=u.ind,r[d>>2]=u.est.rgba;else for(d=0;d<l;d+=4){var h=n[d]*(1/255),p=n[d+1]*(1/255),f=n[d+2]*(1/255),m=n[d+3]*(1/255);for(u=i;u.left;)u=y(u.est,h,p,f,m)<=0?u.left:u.right;c[d>>2]=u.ind,r[d>>2]=u.est.rgba}return{abuf:a.buffer,inds:c,plte:s}}function g(e,t,n){null==n&&(n=1e-4);const a=new Uint32Array(e.buffer),r={i0:0,i1:e.length,bst:null,est:null,tdst:0,left:null,right:null};r.bst=x(e,r.i0,r.i1),r.est=b(r.bst);const o=[r];for(;o.length<t;){let t=0,r=0;for(var i=0;i<o.length;i++)o[i].est.L>t&&(t=o[i].est.L,r=i);if(t<n)break;const s=o[r],l=w(e,a,s.i0,s.i1,s.est.e,s.est.eMq255);if(s.i0>=l||s.i1<=l){s.est.L=0;continue}const c={i0:s.i0,i1:l,bst:null,est:null,tdst:0,left:null,right:null};c.bst=x(e,c.i0,c.i1),c.est=b(c.bst);const u={i0:l,i1:s.i1,bst:null,est:null,tdst:0,left:null,right:null};for(u.bst={R:[],m:[],N:s.bst.N-c.bst.N},i=0;i<16;i++)u.bst.R[i]=s.bst.R[i]-c.bst.R[i];for(i=0;i<4;i++)u.bst.m[i]=s.bst.m[i]-c.bst.m[i];u.est=b(u.bst),s.left=c,s.right=u,o[r]=c,o.push(u)}for(o.sort((e,t)=>t.bst.N-e.bst.N),i=0;i<o.length;i++)o[i].ind=i;return[r,o]}function v(e,t,n,a,r){if(null==e.left)return e.tdst=function(e,t,n,a,r){const o=t-e[0],i=n-e[1],s=a-e[2],l=r-e[3];return o*o+i*i+s*s+l*l}(e.est.q,t,n,a,r),e;const o=y(e.est,t,n,a,r);let i=e.left,s=e.right;o>0&&(i=e.right,s=e.left);const l=v(i,t,n,a,r);if(l.tdst<=o*o)return l;const c=v(s,t,n,a,r);return c.tdst<l.tdst?c:l}function y(e,t,n,a,r){const{e:o}=e;return o[0]*t+o[1]*n+o[2]*a+o[3]*r-e.eMq}function w(e,t,n,a,r,o){for(a-=4;n<a;){for(;_(e,n,r)<=o;)n+=4;for(;_(e,a,r)>o;)a-=4;if(n>=a)break;const i=t[n>>2];t[n>>2]=t[a>>2],t[a>>2]=i,n+=4,a-=4}for(;_(e,n,r)>o;)n-=4;return n+4}function _(e,t,n){return e[t]*n[0]+e[t+1]*n[1]+e[t+2]*n[2]+e[t+3]*n[3]}function x(e,t,n){const a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r=[0,0,0,0],o=n-t>>2;for(let i=t;i<n;i+=4){const t=e[i]*(1/255),n=e[i+1]*(1/255),o=e[i+2]*(1/255),s=e[i+3]*(1/255);r[0]+=t,r[1]+=n,r[2]+=o,r[3]+=s,a[0]+=t*t,a[1]+=t*n,a[2]+=t*o,a[3]+=t*s,a[5]+=n*n,a[6]+=n*o,a[7]+=n*s,a[10]+=o*o,a[11]+=o*s,a[15]+=s*s}return a[4]=a[1],a[8]=a[2],a[9]=a[6],a[12]=a[3],a[13]=a[7],a[14]=a[11],{R:a,m:r,N:o}}function b(e){const{R:t}=e,{m:n}=e,{N:a}=e,r=n[0],o=n[1],i=n[2],s=n[3],l=0==a?0:1/a,c=[t[0]-r*r*l,t[1]-r*o*l,t[2]-r*i*l,t[3]-r*s*l,t[4]-o*r*l,t[5]-o*o*l,t[6]-o*i*l,t[7]-o*s*l,t[8]-i*r*l,t[9]-i*o*l,t[10]-i*i*l,t[11]-i*s*l,t[12]-s*r*l,t[13]-s*o*l,t[14]-s*i*l,t[15]-s*s*l],u=c,d=k;let h=[Math.random(),Math.random(),Math.random(),Math.random()],p=0,f=0;if(0!=a)for(let g=0;g<16&&(h=d.multVec(u,h),f=Math.sqrt(d.dot(h,h)),h=d.sml(1/f,h),!(0!=g&&Math.abs(f-p)<1e-9));g++)p=f;const m=[r*l,o*l,i*l,s*l];return{Cov:c,q:m,e:h,L:p,eMq255:d.dot(d.sml(255,m),h),eMq:d.dot(h,m),rgba:(Math.round(255*m[3])<<24|Math.round(255*m[2])<<16|Math.round(255*m[1])<<8|Math.round(255*m[0]))>>>0}}var k={multVec:(e,t)=>[e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3],e[4]*t[0]+e[5]*t[1]+e[6]*t[2]+e[7]*t[3],e[8]*t[0]+e[9]*t[1]+e[10]*t[2]+e[11]*t[3],e[12]*t[0]+e[13]*t[1]+e[14]*t[2]+e[15]*t[3]],dot:(e,t)=>
vendor: 6,685 bytes, line 2
2e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3],sml:(e,t)=>[e*t[0],e*t[1],e*t[2],e*t[3]]};lL.encode=function(e,t,n,a,r,o,i){null==a&&(a=0),null==i&&(i=!1);const s=u(e,t,n,a,[!1,!1,!1,0,i,!1]);return c(s,-1),l(s,t,n,r,o)},lL.encodeLL=function(e,t,n,a,r,o,i,s){const u={ctype:0+(1==a?0:2)+(0==r?0:4),depth:o,frames:[]},d=(a+r)*o,h=d*t;for(let l=0;l<e.length;l++)u.frames.push({rect:{x:0,y:0,width:t,height:n},img:new Uint8Array(e[l]),blend:0,dispose:1,bpp:Math.ceil(d/8),bpl:Math.ceil(h/8)});return c(u,0,!0),l(u,t,n,i,s)},lL.encode.compress=u,lL.encode.dither=s,lL.quantize=m,lL.quantize.getKDtree=g,lL.quantize.getNearest=v}();const cL={toArrayBuffer(e,t){const n=e.width,a=e.height,r=n<<2,o=e.getContext("2d").getImageData(0,0,n,a),i=new Uint32Array(o.data.buffer),s=(32*n+31)/32<<2,l=s*a,c=122+l,u=new ArrayBuffer(c),d=new DataView(u),h=1<<20;let p,f,m,g,v=h,y=0,w=0,_=0;function x(e){d.setUint16(w,e,!0),w+=2}function b(e){d.setUint32(w,e,!0),w+=4}function k(e){w+=e}x(19778),b(c),k(4),b(122),b(108),b(n),b(-a>>>0),x(1),x(32),b(3),b(l),b(2835),b(2835),k(8),b(16711680),b(65280),b(255),b(4278190080),b(1466527264),function e(){for(;y<a&&v>0;){for(g=122+y*s,p=0;p<r;)v--,f=i[_++],m=f>>>24,d.setUint32(g+p,f<<8|m),p+=4;y++}_<i.length?(v=h,setTimeout(e,cL._dly)):t(u)}()},toBlob(e,t){this.toArrayBuffer(e,e=>{t(new Blob([e],{type:"image/bmp"}))})},_dly:9};var uL={CHROME:"CHROME",FIREFOX:"FIREFOX",DESKTOP_SAFARI:"DESKTOP_SAFARI",IE:"IE",IOS:"IOS",ETC:"ETC"},dL={[uL.CHROME]:16384,[uL.FIREFOX]:11180,[uL.DESKTOP_SAFARI]:16384,[uL.IE]:8192,[uL.IOS]:4096,[uL.ETC]:8192};const hL="undefined"!=typeof window,pL="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,fL=hL&&window.cordova&&window.cordova.require&&window.cordova.require("cordova/modulemapper"),mL=(hL||pL)&&(fL&&fL.getOriginalSymbol(window,"File")||"undefined"!=typeof File&&File),gL=(hL||pL)&&(fL&&fL.getOriginalSymbol(window,"FileReader")||"undefined"!=typeof FileReader&&FileReader);function vL(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();return new Promise(a=>{const r=e.split(","),o=r[0].match(/:(.*?);/)[1],i=globalThis.atob(r[1]);let s=i.length;const l=new Uint8Array(s);for(;s--;)l[s]=i.charCodeAt(s);const c=new Blob([l],{type:o});c.name=t,c.lastModified=n,a(c)})}function yL(e){return new Promise((t,n)=>{const a=new gL;a.onload=()=>t(a.result),a.onerror=e=>n(e),a.readAsDataURL(e)})}function wL(e){return new Promise((t,n)=>{const a=new Image;a.onload=()=>t(a),a.onerror=e=>n(e),a.src=e})}function _L(){if(void 0!==_L.cachedResult)return _L.cachedResult;let e=uL.ETC;const{userAgent:t}=navigator;return/Chrom(e|ium)/i.test(t)?e=uL.CHROME:/iP(ad|od|hone)/i.test(t)&&/WebKit/i.test(t)?e=uL.IOS:/Safari/i.test(t)?e=uL.DESKTOP_SAFARI:/Firefox/i.test(t)?e=uL.FIREFOX:(/MSIE/i.test(t)||1==!!document.documentMode)&&(e=uL.IE),_L.cachedResult=e,_L.cachedResult}function xL(e,t){const n=_L(),a=dL[n];let r=e,o=t,i=r*o;const s=r>o?o/r:r/o;for(;i>a*a;){const e=(a+r)/2,t=(a+o)/2;e<t?(o=t,r=t*s):(o=e*s,r=e),i=r*o}return{width:r,height:o}}function bL(e,t){let n,a;try{if(n=new OffscreenCanvas(e,t),a=n.getContext("2d"),null===a)throw new Error("getContext of OffscreenCanvas returns null")}catch(e){n=document.createElement("canvas"),a=n.getContext("2d")}return n.width=e,n.height=t,[n,a]}function kL(e,t){const{width:n,height:a}=xL(e.width,e.height),[r,o]=bL(n,a);return t&&/jpe?g/.test(t)&&(o.fillStyle="white",o.fillRect(0,0,r.width,r.height)),o.drawImage(e,0,0,r.width,r.height),r}function CL(){return void 0!==CL.cachedResult||(CL.cachedResult=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"undefined"!=typeof document&&"ontouchend"in document),CL.cachedResult}function DL(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(n,a){let r,o;var i=function(){try{return o=kL(r,t.fileType||e.type),n([r,o])}catch(e){return a(e)}},s=function(t){try{var n=function(e){try{throw e}catch(e){return a(e)}};try{let t;return yL(e).then(function(e){try{return t=e,wL(t).then(function(e){try{return r=e,function(){try{return i()}catch(e){return a(e)}}()}catch(e){return n(e)}},n)}catch(e){return n(e)}},n)}catch(e){n(e)}}catch(e){return a(e)}};try{if(CL()||[uL.DESKTOP_SAFARI,uL.MOBILE_SAFARI].includes(_L()))throw new Error("Skip createImageBitmap on IOS and Safari");return createImageBitmap(e).then(function(e){try{return r=e,i()}catch(e){return s()}},s)}catch(e){s()}})}function AL(e,t,n,a){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;return new Promise(function(o,i){let s;if("image/png"===t){let c,u,d;return c=e.getContext("2d"),({data:u}=c.getImageData(0,0,e.width,e.height)),d=lL.encode([u.buffer],e.width,e.height,4096*r),s=new Blob([d],{type:t}),s.name=n,s.lastModified=a,l.call(this)}{if("image/bmp"===t)return new Promise(t=>cL.toBlob(e,t)).then(function(e){try{return s=e,s.name=n,s.lastModified=a,h.call(this)}catch(e){return i(e)}}.bind(this),i);{if("function"==typeof OffscreenCanvas&&e instanceof OffscreenCanvas)return e.convertToBlob({type:t,quality:r}).then(function(e){try{return s=e,s.name=n,s.lastModified=a,p.call(this)}catch(e){return i(e)}}.bind(this),i);{let f;return f=e.toDataURL(t,r),vL(f,n,a).then(function(e){try{return s=e,p.call(this)}catch(e){return i(e)}}.bind(this),i)}function p(){return h.call(this)}}function h(){return l.call(this)}}function l(){return o(s)}})}function EL(e){e.width=0,e.height=0}function jL(){return new Promise(function(e,t){let n,a,r,o,i;return void 0!==jL.cachedResult?e(jL.cachedResult):(n="data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==",vL("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==","test.jpg",Date.now()).then(function(n){try{return a=n,DL(a).then(function(n){try{return r=n[1],AL(r,a.type,a.name,a.lastModified).then(function(n){try{return o=n,EL(r),DL(o).then(function(n){try{return i=n[0],jL.cachedResult=1===i.width&&2===i.height,e
2(jL.cachedResult)}catch(e){return t(e)}},t)}catch(e){return t(e)}},t)}catch(e){return t(e)}},t)}catch(e){return t(e)}},t))})}function SL(e){return new Promise((t,n)=>{const a=new gL;a.onload=e=>{const n=new DataView(e.target.result);if(65496!=n.getUint16(0,!1))return t(-2);const a=n.byteLength;let r=2;for(;r<a;){if(n.getUint16(r+2,!1)<=8)return t(-1);const e=n.getUint16(r,!1);if(r+=2,65505==e){if(1165519206!=n.getUint32(r+=2,!1))return t(-1);const e=18761==n.getUint16(r+=6,!1);r+=n.getUint32(r+4,e);const a=n.getUint16(r,e);r+=2;for(let o=0;o<a;o++)if(274==n.getUint16(r+12*o,e))return t(n.getUint16(r+12*o+8,e))}else{if(65280!=(65280&e))break;r+=n.getUint16(r,!1)}}return t(-1)},a.onerror=e=>n(e),a.readAsArrayBuffer(e)})}function NL(e,t){const{width:n}=e,{height:a}=e,{maxWidthOrHeight:r}=t;let o,i=e;return isFinite(r)&&(n>r||a>r)&&([i,o]=bL(n,a),n>a?(i.width=r,i.height=a/n*r):(i.width=n/a*r,i.height=r),o.drawImage(e,0,0,i.width,i.height),EL(e)),i}function PL(e,t){const{width:n}=e,{height:a}=e,[r,o]=bL(n,a);switch(t>4&&t<9?(r.width=a,r.height=n):(r.width=n,r.height=a),t){case 2:o.transform(-1,0,0,1,n,0);break;case 3:o.transform(-1,0,0,-1,n,a);break;case 4:o.transform(1,0,0,-1,0,a);break;case 5:o.transform(0,1,1,0,0,0);break;case 6:o.transform(0,1,-1,0,a,0);break;case 7:o.transform(0,-1,-1,0,a,n);break;case 8:o.transform(0,-1,1,0,0,n)}return o.drawImage(e,0,0,n,a),EL(e),r}function TL(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return new Promise(function(a,r){let o,i,s,l,c,u,d,h,p,f,m,g,v,y,w,_,x,b,k,C;function D(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5;if(t.signal&&t.signal.aborted)throw t.signal.reason;o+=e,t.onProgress(Math.min(o,100))}function A(e){if(t.signal&&t.signal.aborted)throw t.signal.reason;o=Math.min(Math.max(e,o),100),t.onProgress(o)}return o=n,i=t.maxIteration||10,s=1024*t.maxSizeMB*1024,D(),DL(e,t).then(function(n){try{return[,l]=n,D(),c=NL(l,t),D(),new Promise(function(n,a){var r;if(!(r=t.exifOrientation))return SL(e).then(function(e){try{return r=e,o.call(this)}catch(e){return a(e)}}.bind(this),a);function o(){return n(r)}return o.call(this)}).then(function(n){try{return u=n,D(),jL().then(function(n){try{return d=n?c:PL(c,u),D(),h=t.initialQuality||1,p=t.fileType||e.type,AL(d,p,e.name,e.lastModified,h).then(function(n){try{{if(f=n,D(),m=f.size>s,g=f.size>e.size,!m&&!g)return A(100),a(f);var o;function E(){if(i--&&(w>s||w>v)){let t,n;return t=C?.95*k.width:k.width,n=C?.95*k.height:k.height,[x,b]=bL(t,n),b.drawImage(k,0,0,t,n),h*="image/png"===p?.85:.95,AL(x,p,e.name,e.lastModified,h).then(function(e){try{return _=e,EL(k),k=x,w=_.size,A(Math.min(99,Math.floor((y-w)/(y-s)*100))),E}catch(e){return r(e)}},r)}return[1]}return v=e.size,y=f.size,w=y,k=d,C=!t.alwaysKeepResolution&&m,(o=function(e){for(;e;){if(e.then)return void e.then(o,r);try{if(e.pop){if(e.length)return e.pop()?j.call(this):e;e=E}else e=e.call(this)}catch(e){return r(e)}}}.bind(this))(E);function j(){return EL(k),EL(x),EL(c),EL(d),EL(l),A(100),a(_)}}}catch(u){return r(u)}}.bind(this),r)}catch(e){return r(e)}}.bind(this),r)}catch(e){return r(e)}}.bind(this),r)}catch(e){return r(e)}}.bind(this),r)})}let FL;function OL(e,t){return new Promise((n,a)=>{FL||(FL=function(e){const t=[];return"function"==typeof e?t.push("(".concat(e,")()")):t.push(e),URL.createObjectURL(new Blob(t))}("\nlet scriptImported = false\nself.addEventListener('message', async (e) => {\n  const { file, id, imageCompressionLibUrl, options } = e.data\n  options.onProgress = (progress) => self.postMessage({ progress, id })\n  try {\n    if (!scriptImported) {\n      // console.log('[worker] importScripts', imageCompressionLibUrl)\n      self.importScripts(imageCompressionLibUrl)\n      scriptImported = true\n    }\n    // console.log('[worker] self', self)\n    const compressedFile = await imageCompression(file, options)\n    self.postMessage({ file: compressedFile, id })\n  } catch (e) {\n    // console.error('[worker] error', e)\n    self.postMessage({ error: e.message + '\\n' + e.stack, id })\n  }\n})\n"));const r=new Worker(FL);r.addEventListener("message",function(e){if(t.signal&&t.signal.aborted)r.terminate();else if(void 0===e.data.progress){if(e.data.error)return a(new Error(e.data.error)),void r.terminate();n(e.data.file),r.terminate()}else t.onProgress(e.data.progress)}),r.addEventListener("error",a),t.signal&&t.signal.addEventListener("abort",()=>{a(t.signal.reason),r.terminate()}),r.postMessage({file:e,imageCompressionLibUrl:t.libURL,options:p(p({},t),{},{onProgress:void 0,signal:void 0})})})}function IL(e,t){return new Promise(function(n,a){let r,o,i,s,l,c;if(r=p({},t),i=0,({onProgress:s}=r),r.maxSizeMB=r.maxSizeMB||Number.POSITIVE_INFINITY,l="boolean"!=typeof r.useWebWorker||r.useWebWorker,delete r.useWebWorker,r.onProgress=e=>{i=e,"function"==typeof s&&s(i)},!(e instanceof Blob||e instanceof mL))return a(new Error("The file given is not an instance of Blob or File"));if(!/^image/.test(e.type))return a(new Error("The file given is not an image"));if(c="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,!l||"function"!=typeof Worker||c)return TL(e,r).then(function(e){try{return o=e,h.call(this)}catch(e){return a(e)}}.bind(this),a);var u=function(){try{return h.call(this)}catch(e){return a(e)}}.bind(this),d=function(t){try{return TL(e,r).then(function(e){try{return o=e,u()}catch(e){return a(e)}},a)}catch(e){return a(e)}};try{return r.libURL=r.libURL||"https://cdn.jsdelivr.net/npm/[email protected]/dist/browser-image-compression.js",OL(e,r).then(function(e){try{return o=e,u()}catch(e){return d()}},d)}catch(e){d()}function h(){try{o.name=e.name,o.lastModified=e.lastModified}catch(e){}try{r.preserveExif&&"image/jpeg"===e.type&&(!r.fileType||r.fileType&&r.fileType===e.type)&&(o=aL(e,o))}catch(e){}return n(o)}})}IL.getDataUrlFromFile=yL,IL.getFilefromDataUrl=vL,IL.loadImage=wL,IL.drawImageInCanvas=kL,IL.drawFileInCanvas=DL,IL.canvasToFile=AL,IL.getExifOrientation=SL,IL.handleMaxWidthOrHeight=NL,IL.followExifOrientation=PL,IL.cleanupCanvasMemory=EL,IL.isAutoOrientationInBrowser=jL,IL.approximateBelowMaximumCanvasSizeOfBrowser=xL,IL.copyExifWithoutOrientation=aL,IL.getBrowserName=_L,IL.version="2.0.2";const RL=RC("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);var ML=n(1185);function BL(e,t,n,a,r){void 0===r&&(r=0);var o=WL(t.width,t.height,r),i=o.width,s=o.height;return{x:zL(e.x,i,n.width,a),y:zL(e.y,s,n.height,a)}}function zL(e,t,n,a){var r=t*a/2-n/2;return KL(e,-r,r)}function LL(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function UL(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function VL(e,t){return Math.min(e,Math.max(0,t))}function qL(e,t){return t}function HL(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function WL(e,t,n){var a=n*Math.PI/180;return{width:Math.abs(Math.cos(a)*e)+Math.abs(Math.sin(a)*t),height:Math.abs(Math.sin(a)*e)+Math.abs(Math.cos(a)*t)}}function KL(e,t,n){return Math.min(Math.max(e,t),n)}function YL(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return"string"===typeof e&&e.length>0}).join(" ").trim()}var GL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.cropperRef=o.createRef(),n.imageRef=o.createRef(),n.videoRef=o.createRef(),n.containerPosition={x:0,y:0}
2,n.containerRef=null,n.styleRef=null,n.containerRect=null,n.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},n.dragStartPosition={x:0,y:0},n.dragStartCrop={x:0,y:0},n.gestureZoomStart=0,n.gestureRotationStart=0,n.isTouching=!1,n.lastPinchDistance=0,n.lastPinchRotation=0,n.rafDragTimeout=null,n.rafPinchTimeout=null,n.wheelTimer=null,n.currentDoc="undefined"!==typeof document?document:null,n.currentWindow="undefined"!==typeof window?window:null,n.resizeObserver=null,n.previousCropSize=null,n.isInitialized=!1,n.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},n.initResizeObserver=function(){if("undefined"!==typeof window.ResizeObserver&&n.containerRef){var e=!0;n.resizeObserver=new window.ResizeObserver(function(t){e?e=!1:n.computeSizes()}),n.resizeObserver.observe(n.containerRef)}},n.preventZoomSafari=function(e){return e.preventDefault()},n.cleanEvents=function(){n.currentDoc&&(n.currentDoc.removeEventListener("mousemove",n.onMouseMove),n.currentDoc.removeEventListener("mouseup",n.onDragStopped),n.currentDoc.removeEventListener("touchmove",n.onTouchMove),n.currentDoc.removeEventListener("touchend",n.onDragStopped),n.currentDoc.removeEventListener("gesturechange",n.onGestureChange),n.currentDoc.removeEventListener("gestureend",n.onGestureEnd),n.currentDoc.removeEventListener("scroll",n.onScroll))},n.clearScrollEvent=function(){n.containerRef&&n.containerRef.removeEventListener("wheel",n.onWheel),n.wheelTimer&&clearTimeout(n.wheelTimer)},n.onMediaLoad=function(){var e=n.computeSizes();e&&(n.previousCropSize=e,n.emitCropData(),n.setInitialCrop(e),n.isInitialized=!0),n.props.onMediaLoaded&&n.props.onMediaLoaded(n.mediaSize)},n.setInitialCrop=function(e){if(n.props.initialCroppedAreaPercentages){var t=function(e,t,n,a,r,o){var i=WL(t.width,t.height,n),s=KL(a.width/i.width*(100/e.width),r,o);return{crop:{x:s*i.width/2-a.width/2-i.width*s*(e.x/100),y:s*i.height/2-a.height/2-i.height*s*(e.y/100)},zoom:s}}(n.props.initialCroppedAreaPercentages,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom),a=t.crop,r=t.zoom;n.props.onCropChange(a),n.props.onZoomChange&&n.props.onZoomChange(r)}else if(n.props.initialCroppedAreaPixels){var o=function(e,t,n,a,r,o){void 0===n&&(n=0);var i=WL(t.naturalWidth,t.naturalHeight,n),s=KL(function(e,t,n){var a=function(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}(t);return n.height>n.width?n.height/(e.height*a):n.width/(e.width*a)}(e,t,a),r,o),l=a.height>a.width?a.height/e.height:a.width/e.width;return{crop:{x:((i.width-e.width)/2-e.x)*l,y:((i.height-e.height)/2-e.y)*l},zoom:s}}(n.props.initialCroppedAreaPixels,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom);a=o.crop,r=o.zoom;n.props.onCropChange(a),n.props.onZoomChange&&n.props.onZoomChange(r)}},n.computeSizes=function(){var e,t,a,r,o,i,s=n.imageRef.current||n.videoRef.current;if(s&&n.containerRef){n.containerRect=n.containerRef.getBoundingClientRect(),n.saveContainerPosition();var l=n.containerRect.width/n.containerRect.height,c=(null===(e=n.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=n.videoRef.current)||void 0===t?void 0:t.videoWidth)||0,u=(null===(a=n.imageRef.current)||void 0===a?void 0:a.naturalHeight)||(null===(r=n.videoRef.current)||void 0===r?void 0:r.videoHeight)||0,d=c/u,h=void 0;if(s.offsetWidth<c||s.offsetHeight<u)switch(n.state.mediaObjectFit){default:case"contain":h=l>d?{width:n.containerRect.height*d,height:n.containerRect.height}:{width:n.containerRect.width,height:n.containerRect.width/d};break;case"horizontal-cover":h={width:n.containerRect.width,height:n.containerRect.width/d};break;case"vertical-cover":h={width:n.containerRect.height*d,height:n.containerRect.height}}else h={width:s.offsetWidth,height:s.offsetHeight};n.mediaSize=NA(NA({},h),{naturalWidth:c,naturalHeight:u}),n.props.setMediaSize&&n.props.setMediaSize(n.mediaSize);var p=n.props.cropSize?n.props.cropSize:function(e,t,n,a,r,o){void 0===o&&(o=0);var i=WL(e,t,o),s=i.width,l=i.height,c=Math.min(s,n),u=Math.min(l,a);return c>u*r?{width:u*r,height:u}:{width:c,height:c/r}}(n.mediaSize.width,n.mediaSize.height,n.containerRect.width,n.containerRect.height,n.props.aspect,n.props.rotation);return(null===(o=n.state.cropSize)||void 0===o?void 0:o.height)===p.height&&(null===(i=n.state.cropSize)||void 0===i?void 0:i.width)===p.width||n.props.onCropSizeChange&&n.props.onCropSizeChange(p),n.setState({cropSize:p},n.recomputeCropPosition),n.props.setCropSize&&n.props.setCropSize(p),p}},n.saveContainerPosition=function(){if(n.containerRef){var e=n.containerRef.getBoundingClientRect();n.containerPosition={x:e.left,y:e.top}}},n.onMouseDown=function(e){n.currentDoc&&(e.preventDefault(),n.currentDoc.addEventListener("mousemove",n.onMouseMove),n.currentDoc.addEventListener("mouseup",n.onDragStopped),n.saveContainerPosition(),n.onDragStart(t.getMousePoint(e)))},n.onMouseMove=function(e){return n.onDrag(t.getMousePoint(e))},n.onScroll=function(e){n.currentDoc&&(e.preventDefault(),n.saveContainerPosition())},n.onTouchStart=function(e){n.currentDoc&&(n.isTouching=!0,n.props.onTouchRequest&&!n.props.onTouchRequest(e)||(n.currentDoc.addEventListener("touchmove",n.onTouchMove,{passive:!1}),n.currentDoc.addEventListener("touchend",n.onDragStopped),n.saveContainerPosition(),2===e.touches.length?n.onPinchStart(e):1===e.touches.length&&n.onDragStart(t.getTouchPoint(e.touches[0]))))},n.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?n.onPinchMove(e):1===e.touches.length&&n.onDrag(t.getTouchPoint(e.touches[0]))},n.onGestureStart=function(e){n.currentDoc&&(e.preventDefault(),n.currentDoc.addEventListener("gesturechange",n.onGestureChange),n.currentDoc.addEventListener("gestureend",n.onGestureEnd),n.gestureZoomStart=n.props.zoom,n.gestureRotationStart=n.props.rotation)},n.onGestureChange=function(e){if(e.preventDefault(),!n.isTouching){var a=t.getMousePoint(e),r=n.gestureZoomStart-1+e.scale;if(n.setNewZoom(r,a,{shouldUpdatePosition:!0}),n.props.onRotationChange){var o=n.gestureRotationStart+e.rotation;n.props.onRotationChange(o)}}},n.onGestureEnd=function(e){n.cleanEvents()},n.onDragStart=function(e){var t,a,r=e.x,o=e.y;n.dragStartPosition={x:r,y:o},n.dragStartCrop=NA({},n.props.crop),null===(a=(t=n.props).onInteractionStart)||void 0===a||a.call(t)}
2,n.onDrag=function(e){var t=e.x,a=e.y;n.currentWindow&&(n.rafDragTimeout&&n.currentWindow.cancelAnimationFrame(n.rafDragTimeout),n.rafDragTimeout=n.currentWindow.requestAnimationFrame(function(){if(n.state.cropSize&&void 0!==t&&void 0!==a){var e=t-n.dragStartPosition.x,r=a-n.dragStartPosition.y,o={x:n.dragStartCrop.x+e,y:n.dragStartCrop.y+r},i=n.props.restrictPosition?BL(o,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):o;n.props.onCropChange(i)}}))},n.onDragStopped=function(){var e,t;n.isTouching=!1,n.cleanEvents(),n.emitCropData(),null===(t=(e=n.props).onInteractionEnd)||void 0===t||t.call(e)},n.onWheel=function(e){if(n.currentWindow&&(!n.props.onWheelRequest||n.props.onWheelRequest(e))){e.preventDefault();var a=t.getMousePoint(e),r=ML(e).pixelY,o=n.props.zoom-r*n.props.zoomSpeed/200;n.setNewZoom(o,a,{shouldUpdatePosition:!0}),n.state.hasWheelJustStarted||n.setState({hasWheelJustStarted:!0},function(){var e,t;return null===(t=(e=n.props).onInteractionStart)||void 0===t?void 0:t.call(e)}),n.wheelTimer&&clearTimeout(n.wheelTimer),n.wheelTimer=n.currentWindow.setTimeout(function(){return n.setState({hasWheelJustStarted:!1},function(){var e,t;return null===(t=(e=n.props).onInteractionEnd)||void 0===t?void 0:t.call(e)})},250)}},n.getPointOnContainer=function(e,t){var a=e.x,r=e.y;if(!n.containerRect)throw new Error("The Cropper is not mounted");return{x:n.containerRect.width/2-(a-t.x),y:n.containerRect.height/2-(r-t.y)}},n.getPointOnMedia=function(e){var t=e.x,a=e.y,r=n.props,o=r.crop,i=r.zoom;return{x:(t+o.x)/i,y:(a+o.y)/i}},n.setNewZoom=function(e,t,a){var r=(void 0===a?{}:a).shouldUpdatePosition,o=void 0===r||r;if(n.state.cropSize&&n.props.onZoomChange){var i=KL(e,n.props.minZoom,n.props.maxZoom);if(o){var s=n.getPointOnContainer(t,n.containerPosition),l=n.getPointOnMedia(s),c={x:l.x*i-s.x,y:l.y*i-s.y},u=n.props.restrictPosition?BL(c,n.mediaSize,n.state.cropSize,i,n.props.rotation):c;n.props.onCropChange(u)}n.props.onZoomChange(i)}},n.getCropData=function(){return n.state.cropSize?function(e,t,n,a,r,o,i){void 0===o&&(o=0),void 0===i&&(i=!0);var s=i?VL:qL,l=WL(t.width,t.height,o),c=WL(t.naturalWidth,t.naturalHeight,o),u={x:s(100,((l.width-n.width/r)/2-e.x/r)/l.width*100),y:s(100,((l.height-n.height/r)/2-e.y/r)/l.height*100),width:s(100,n.width/l.width*100/r),height:s(100,n.height/l.height*100/r)},d=Math.round(s(c.width,u.width*c.width/100)),h=Math.round(s(c.height,u.height*c.height/100)),p=c.width>=c.height*a?{width:Math.round(h*a),height:h}:{width:d,height:Math.round(d/a)};return{croppedAreaPercentages:u,croppedAreaPixels:NA(NA({},p),{x:Math.round(s(c.width-p.width,u.x*c.width/100)),y:Math.round(s(c.height-p.height,u.y*c.height/100))})}}(n.props.restrictPosition?BL(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop,n.mediaSize,n.state.cropSize,n.getAspect(),n.props.zoom,n.props.rotation,n.props.restrictPosition):null},n.emitCropData=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,a=e.croppedAreaPixels;n.props.onCropComplete&&n.props.onCropComplete(t,a),n.props.onCropAreaChange&&n.props.onCropAreaChange(t,a)}},n.emitCropAreaChange=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,a=e.croppedAreaPixels;n.props.onCropAreaChange&&n.props.onCropAreaChange(t,a)}},n.recomputeCropPosition=function(){var e,t;if(n.state.cropSize){var a=n.props.crop;if(n.isInitialized&&(null===(e=n.previousCropSize)||void 0===e?void 0:e.width)&&(null===(t=n.previousCropSize)||void 0===t?void 0:t.height))if(Math.abs(n.previousCropSize.width-n.state.cropSize.width)>1e-6||Math.abs(n.previousCropSize.height-n.state.cropSize.height)>1e-6){var r=n.state.cropSize.width/n.previousCropSize.width,o=n.state.cropSize.height/n.previousCropSize.height;a={x:n.props.crop.x*r,y:n.props.crop.y*o}}var i=n.props.restrictPosition?BL(a,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):a;n.previousCropSize=n.state.cropSize,n.props.onCropChange(i),n.emitCropData()}},n.onKeyDown=function(e){var t,a,r=n.props,o=r.crop,i=r.onCropChange,s=r.keyboardStep,l=r.zoom,c=r.rotation,u=s;if(n.state.cropSize){e.shiftKey&&(u*=.2);var d=NA({},o);switch(e.key){case"ArrowUp":d.y-=u,e.preventDefault();break;case"ArrowDown":d.y+=u,e.preventDefault();break;case"ArrowLeft":d.x-=u,e.preventDefault();break;case"ArrowRight":d.x+=u,e.preventDefault();break;default:return}n.props.restrictPosition&&(d=BL(d,n.mediaSize,n.state.cropSize,l,c)),e.repeat||null===(a=(t=n.props).onInteractionStart)||void 0===a||a.call(t),i(d)}},n.onKeyUp=function(e){var t,a;switch(e.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":e.preventDefault();break;default:return}n.emitCropData(),null===(a=(t=n.props).onInteractionEnd)||void 0===a||a.call(t)},n}return SA(t,e),t.prototype.componentDidMount=function(){this.currentDoc&&this.currentWindow&&(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),"undefined"===typeof window.ResizeObserver&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=".reactEasyCrop_Container {\n  position: absolute;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  overflow: hidden;\n  user-select: none;\n  touch-action: none;\n  cursor: move;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n  will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n  max-width: 100%;\n  max-height: 100%;\n  margin: auto;\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n  width: 100%;\n  height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n  width: auto;\n  height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n  position: absolute;\n  left: 50%;\n  top: 50%;\n  transform: translate(-50%, -50%);\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  box-sizing: border-box;\n  box-shadow: 0 0 0 9999em;\n  color: rgba(0, 0, 0, 0.5);\n  overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n  border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n  content: ' ';\n  box-sizing: border-box;\n  position: absolute;\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  top: 0;\n  bottom: 0;\n  left: 33.33%;\n  right: 33.33%;\n  border-top: 0;\n  border-bottom: 0;\n}
2\n\n.reactEasyCrop_CropAreaGrid::after {\n  content: ' ';\n  box-sizing: border-box;\n  position: absolute;\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  top: 33.33%;\n  bottom: 33.33%;\n  left: 0;\n  right: 0;\n  border-left: 0;\n  border-right: 0;\n}\n",this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef),this.props.setCropperRef&&this.props.setCropperRef(this.cropperRef))},t.prototype.componentWillUnmount=function(){var e,t;this.currentDoc&&this.currentWindow&&("undefined"===typeof window.ResizeObserver&&this.currentWindow.removeEventListener("resize",this.computeSizes),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&(null===(t=this.styleRef.parentNode)||void 0===t||t.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(e){var t,n,a,r,o,i,s,l,c;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect||e.objectFit!==this.props.objectFit?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(n=this.props.cropSize)||void 0===n?void 0:n.height)||(null===(a=e.cropSize)||void 0===a?void 0:a.width)!==(null===(r=this.props.cropSize)||void 0===r?void 0:r.width)?this.computeSizes():(null===(o=e.crop)||void 0===o?void 0:o.x)===(null===(i=this.props.crop)||void 0===i?void 0:i.x)&&(null===(s=e.crop)||void 0===s?void 0:s.y)===(null===(l=this.props.crop)||void 0===l?void 0:l.y)||this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&&(null===(c=this.videoRef.current)||void 0===c||c.load());var u=this.getObjectFit();u!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:u},this.computeSizes)},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,n=e.aspect;return t?t.width/t.height:n},t.prototype.getObjectFit=function(){var e,t,n,a;if("cover"===this.props.objectFit){if((this.imageRef.current||this.videoRef.current)&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var r=this.containerRect.width/this.containerRect.height;return((null===(e=this.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=this.videoRef.current)||void 0===t?void 0:t.videoWidth)||0)/((null===(n=this.imageRef.current)||void 0===n?void 0:n.naturalHeight)||(null===(a=this.videoRef.current)||void 0===a?void 0:a.videoHeight)||0)<r?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},t.prototype.onPinchStart=function(e){var n=t.getTouchPoint(e.touches[0]),a=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=LL(n,a),this.lastPinchRotation=UL(n,a),this.onDragStart(HL(n,a))},t.prototype.onPinchMove=function(e){var n=this;if(this.currentDoc&&this.currentWindow){var a=t.getTouchPoint(e.touches[0]),r=t.getTouchPoint(e.touches[1]),o=HL(a,r);this.onDrag(o),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var e=LL(a,r),t=n.props.zoom*(e/n.lastPinchDistance);n.setNewZoom(t,o,{shouldUpdatePosition:!1}),n.lastPinchDistance=e;var i=UL(a,r),s=n.props.rotation+(i-n.lastPinchRotation);n.props.onRotationChange&&n.props.onRotationChange(s),n.lastPinchRotation=i})}},t.prototype.render=function(){var e,t=this,n=this.props,a=n.image,r=n.video,i=n.mediaProps,s=n.cropperProps,l=n.transform,c=n.crop,u=c.x,d=c.y,h=n.rotation,p=n.zoom,f=n.cropShape,m=n.showGrid,g=n.roundCropAreaPixels,v=n.style,y=v.containerStyle,w=v.cropAreaStyle,_=v.mediaStyle,x=n.classes,b=x.containerClassName,k=x.cropAreaClassName,C=x.mediaClassName,D=null!==(e=this.state.mediaObjectFit)&&void 0!==e?e:this.getObjectFit();return o.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(e){return t.containerRef
2=e},"data-testid":"container",style:y,className:YL("reactEasyCrop_Container",b)},a?o.createElement("img",NA({alt:"",className:YL("reactEasyCrop_Image","contain"===D&&"reactEasyCrop_Contain","horizontal-cover"===D&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===D&&"reactEasyCrop_Cover_Vertical",C)},i,{src:a,ref:this.imageRef,style:NA(NA({},_),{transform:l||"translate(".concat(u,"px, ").concat(d,"px) rotate(").concat(h,"deg) scale(").concat(p,")")}),onLoad:this.onMediaLoad})):r&&o.createElement("video",NA({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:YL("reactEasyCrop_Video","contain"===D&&"reactEasyCrop_Contain","horizontal-cover"===D&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===D&&"reactEasyCrop_Cover_Vertical",C)},i,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:NA(NA({},_),{transform:l||"translate(".concat(u,"px, ").concat(d,"px) rotate(").concat(h,"deg) scale(").concat(p,")")}),controls:!1}),(Array.isArray(r)?r:[{src:r}]).map(function(e){return o.createElement("source",NA({key:e.src},e))})),this.state.cropSize&&o.createElement("div",NA({ref:this.cropperRef,style:NA(NA({},w),{width:g?Math.round(this.state.cropSize.width):this.state.cropSize.width,height:g?Math.round(this.state.cropSize.height):this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,"data-testid":"cropper",className:YL("reactEasyCrop_CropArea","round"===f&&"reactEasyCrop_CropAreaRound",m&&"reactEasyCrop_CropAreaGrid",k)},s)))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:1},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(o.Component);function JL(e){var t;const n=e.user;return(0,_h.jsxs)(SD,{style:{height:e.size||34,width:e.size||34},className:e.border?"border":"",children:[(0,_h.jsx)(ND,{src:(null===n||void 0===n?void 0:n.profileImageUrl)||""}),(0,_h.jsx)(PD,{children:n?(0,_h.jsx)("div",{className:"font-medium",style:{fontSize:.4*(e.size||34)},children:null===(t=n.displayName||n.primaryEmail)||void 0===t?void 0:t.slice(0,2).toUpperCase()}):(0,_h.jsx)(TD,{className:"text-zinc-500",size:.6*(e.size||34)})})]})}async function $L(e,t){const n=await(e=>new Promise((t,n)=>{const a=new Image;a.addEventListener("load",()=>t(a)),a.addEventListener("error",e=>n(e)),a.setAttribute("crossOrigin","anonymous"),a.src=e}))(e),a=document.createElement("canvas"),r=a.getContext("2d");if(!r)return null;const o={x:Math.max(0,t.x),y:Math.max(0,t.y),width:Math.max(1,t.width),height:Math.max(1,t.height)};return a.width=o.width,a.height=o.height,r.drawImage(n,o.x,o.y,o.width,o.height,0,0,o.width,o.height),a.toDataURL("image/jpeg")}function QL(e){const{t:t}=yw(),[n,a]=(0,o.useState)(null),[r,i]=(0,o.useState)(null),[s,l]=(0,o.useState)({x:0,y:0}),[c,u]=(0,o.useState)(1),[d,h]=(0,o.useState)(null);function p(){a(null),i(null),l({x:0,y:0}),u(1),h(null)}const f=(0,o.useCallback)(e=>{l(e)},[]),m=(0,o.useCallback)((e,t)=>{h(t)},[]),g=(0,o.useCallback)(e=>{u(e)},[]);return n?(0,_h.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,_h.jsx)("div",{className:"relative w-64 h-64",children:(0,_h.jsx)(GL,{image:n||e.user.profileImageUrl||"",crop:s,zoom:c,aspect:1,cropShape:"round",showGrid:!1,onCropChange:f,onCropComplete:m,onZoomChange:g})}),(0,_h.jsx)(nL,{min:1,max:3,step:.1,value:[c],onValueChange:e=>g(e[0])}),(0,_h.jsxs)("div",{className:"flex flex-row gap-2",children:[(0,_h.jsx)(Uv,{onClick:async()=>{if(n&&d){const a=await $L(n,d);if(a){const t=await IL(await IL.getFilefromDataUrl(a,"profile-image"),{maxSizeMB:.1,fileType:"image/jpeg"}),n=await IL.getDataUrlFromFile(t);await e.onProfileImageUrlChange(n),p()}else i(t("Could not crop image."))}},children:t("Save")}),(0,_h.jsx)(Uv,{variant:"secondary",onClick:p,children:t("Cancel")})]})]}):(0,_h.jsxs)("div",{className:"flex flex-col",children:[(0,_h.jsxs)("div",{className:"cursor-pointer relative",onClick:function(){const e=document.createElement("input");e.type="file",e.onchange=n=>{var r;const o=null===(r=n.target.files)||void 0===r?void 0:r[0];o&&ad(async()=>{const r=await function(e){return new Promise((t,n)=>{const a=new FileReader;a.readAsDataURL(e),a.onload=()=>t(a.result),a.onerror=e=>n(e)})}(o);await async function(e){try{const t=await fetch(e,{method:"HEAD"});return(await t.blob()).type.startsWith("image/")}catch(n){return!1}}(r)?(a(r),i(null)):i(t("Invalid image")),e.remove()})},e.click()},children:[(0,_h.jsx)(JL,{size:60,user:e.user,border:!0}),(0,_h.jsx)("div",{className:"absolute top-0 left-0 h-[60px] w-[60px] bg-gray-500/20 backdrop-blur-sm items-center justify-center rounded-full flex opacity-0 hover:opacity-100 transition-opacity",children:(0,_h.jsx)("div",{className:"bg-background p-2 rounded-full",children:(0,_h.jsx)(RL,{className:"h-5 w-5"})})})]}),r&&(0,_h.jsx)(Rh,{variant:"destructive",type:"label",children:r})]})}const XL=RC("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z",key:"1lpok0"}]]);function ZL(e){const[t,n]=(0,o.useState)(!1),[a,r]=(0,o.useState)(e.value),{t:i}=yw();return(0,_h.jsx)("div",{className:"flex items-center gap-2",children:t?(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsx)(Jg,{value:a,onChange:e=>r(e.target.value)}),(0,_h.jsx)(Uv,{size:"sm",onClick:async()=>{var t;await(null===(t=e.onSave)||void 0===t?void 0:t.call(e,a)),n(!1)},children:i("Save")}),(0,_h.jsx)(Uv,{size:"sm",variant:"secondary",onClick:()=>{r(e.value),n(!1)},children:i("Cancel")})]}):(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsx)(Rh,{children:e.value}),(0,_h.jsx)(Uv,{onClick:()=>n(!0),size:"icon",variant:"ghost",children:(0,_h.jsx)(XL,{className:"w-4 h-4"})})]})})}function eU(e){const{t:t}=yw(),n=sg({or:null!==e&&void 0!==e&&e.mockUser?"return-null":"redirect"}),a=null!==e&&void 0!==e&&e.mockUser?{displayName:e.mockUser.dis
2playName||"John Doe",profileImageUrl:e.mockUser.profileImageUrl||null,update:async()=>{console.log("Mock update called")}}:n;return a?(0,_h.jsxs)(wN,{children:[(0,_h.jsx)(HB,{title:t("User name"),description:t("This is a display name and is not used for authentication"),children:(0,_h.jsx)(ZL,{value:a.displayName||"",onSave:async e=>{await a.update({displayName:e})}})}),(0,_h.jsx)(HB,{title:t("Profile image"),description:t("Upload your own image as your avatar"),children:(0,_h.jsx)(QL,{user:a,onProfileImageUrlChange:async e=>{await a.update({profileImageUrl:e})}})})]}):null}function tU(e){return(0,_h.jsx)(o.Suspense,{fallback:(0,_h.jsx)(nU,{}),children:(0,_h.jsx)(aU,p({},e))})}function nU(){return(0,_h.jsx)(bh,{className:"h-9 w-full max-w-64 stack-scope"})}function aU(e){var t;const{t:n}=yw(),a=lg(),r=sg(),i=e.mockUser?{useProject:()=>e.mockProject||{config:{clientTeamCreationEnabled:!1}},useNavigate:()=>()=>{},urls:{accountSettings:"/account-settings"}}:a,s=e.mockUser?{selectedTeam:e.mockUser.team,useTeams:()=>e.mockTeams||[],setSelectedTeam:async()=>{}}:r,l=i.useNavigate(),c=i.useProject(),u=null!==(t=e.teams)&&void 0!==t?t:null===s||void 0===s?void 0:s.useTeams(),d=e.team||(null===u||void 0===u?void 0:u.find(t=>t.id===e.teamId)),h=(0,o.useMemo)(()=>null===u||void 0===u?void 0:u.sort((e,t)=>t.id===(null===d||void 0===d?void 0:d.id)?1:-1),[u,d]);return(0,_h.jsxs)(RM,{value:(null===d||void 0===d?void 0:d.id)||(e.allowNull?"null-sentinel":void 0),onValueChange:t=>{ad(async()=>{let n=null;if("null-sentinel"!==t){if(n=(null===h||void 0===h?void 0:h.find(e=>e.id===t))||null,!n)throw new hn("Team not found, this should not happen")}else n=null;e.onChange&&await e.onChange(n)})},children:[(0,_h.jsx)(zM,{className:wh("stack-scope max-w-64",e.triggerClassName),children:(0,_h.jsx)(BM,{placeholder:"Select team"})}),(0,_h.jsxs)(VM,{className:"stack-scope",children:[d?(0,_h.jsxs)(MM,{children:[(0,_h.jsx)(qM,{children:(0,_h.jsxs)("div",{className:"flex items-center justify-between",children:[(0,_h.jsx)("span",{children:n("Current team")}),(0,_h.jsx)(Uv,{variant:"ghost",size:"icon",className:"h-6 w-6",onClick:()=>{e.mockUser||l("".concat(i.urls.accountSettings,"#team-").concat(d.id))},children:(0,_h.jsx)(JC,{className:"h-4 w-4"})})]})}),(0,_h.jsx)(HM,{value:d.id,children:(0,_h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_h.jsx)(FD,{team:d}),(0,_h.jsx)(Rh,{className:"max-w-40 truncate",children:d.displayName})]})})]}):void 0,e.allowNull&&(0,_h.jsx)(MM,{children:(0,_h.jsx)(HM,{value:"null-sentinel",children:(0,_h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_h.jsx)(FD,{team:"personal"}),(0,_h.jsx)(Rh,{className:"max-w-40 truncate",children:e.nullLabel||n("No team")})]})})}),null!==h&&void 0!==h&&h.length?(0,_h.jsxs)(MM,{children:[(0,_h.jsx)(qM,{children:n("Other teams")}),h.filter(e=>e.id!==(null===d||void 0===d?void 0:d.id)).map(e=>(0,_h.jsx)(HM,{value:e.id,children:(0,_h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_h.jsx)(FD,{team:e}),(0,_h.jsx)(Rh,{className:"max-w-64 truncate",children:e.displayName})]})},e.id))]}):null,null!==h&&void 0!==h&&h.length||e.allowNull?null:(0,_h.jsx)(MM,{children:(0,_h.jsx)(qM,{children:n("No teams yet")})}),c.config.clientTeamCreationEnabled&&(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsx)(KM,{}),(0,_h.jsx)("div",{children:(0,_h.jsxs)(Uv,{onClick:()=>{e.mockUser||l("".concat(i.urls.accountSettings,"#team-creation"))},className:"w-full",variant:"ghost",children:[(0,_h.jsx)($C,{className:"mr-2 h-4 w-4"})," ",n("Create a team")]})})]})]})]})}var rU,oU=n(3393),iU="basil",sU="https://js.stripe.com",lU="".concat(sU,"/").concat(iU,"/stripe.js"),cU=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,uU=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/,dU="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",hU=function(e){return cU.test(e)||uU.test(e)},pU=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(lU).concat(t);var a=document.head||document.body;if(!a)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return a.appendChild(n),n},fU=null,mU=null,gU=null,vU=function(e){return null!==fU?fU:(fU=new Promise(function(t,n){if("undefined"!==typeof window&&"undefined"!==typeof document)if(window.Stripe&&e&&console.warn(dU),window.Stripe)t(window.Stripe);else try{var a=function(){for(var e=document.querySelectorAll('script[src^="'.concat(sU,'"]')),t=0;t<e.length;t++){var n=e[t];if(hU(n.src))return n}return null}();if(a&&e)console.warn(dU);else if(a){if(a&&null!==gU&&null!==mU){var r;a.removeEventListener("load",gU),a.removeEventListener("error",mU),null===(r=a.parentNode)||void 0===r||r.removeChild(a),a=pU(e)}}else a=pU(e);gU=function(e,t){return function(){window.Stripe?e(window.Stripe):t(new Error("Stripe.js not available"))}}(t,n),mU=function(e){return function(t){e(new Error("Failed to load Stripe.js",{cause:t}))}}(n),a.addEventListener("load",gU),a.addEventListener("error",mU)}catch(o){return void n(o)}else t(null)}),fU.catch(function(e){return fU=null,Promise.reject(e)}))}
2,yU=!1,wU=function(){return rU||(rU=vU(null).catch(function(e){return rU=null,Promise.reject(e)}))};Promise.resolve().then(function(){return wU()}).catch(function(e){yU||console.warn(e)});var _U=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];yU=!0;var a=Date.now();return wU().then(function(e){return function(e,t,n){if(null===e)return null;var a=t[0].match(/^pk_test/),r=function(e){return 3===e?"v3":e}(e.version),o=iU;a&&r!==o&&console.warn("Stripe.js@".concat(r," was loaded on the page, but @stripe/stripe-js@").concat("7.9.0"," expected Stripe.js@").concat(o,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var i=e.apply(void 0,t);return function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"7.9.0",startTime:t})}(i,n),i}(e,t,a)})};function xU(e){return[e.brand?e.brand.toUpperCase():null,e.last4?"\u2022\u2022\u2022\u2022 ".concat(e.last4):null,e.exp_month&&e.exp_year?"exp ".concat(e.exp_month,"/").concat(e.exp_year):null].filter(Boolean).join(" \xb7 ")}var bU=(e,t)=>{if(!e)return t("Unknown");switch(e){case"draft":return t("Draft");case"open":return t("Open");case"paid":return t("Paid");case"uncollectible":return t("Uncollectible");case"void":return t("Void");default:return t("Unknown")}},kU=(e,t)=>{if("number"!==typeof e||Number.isNaN(e))return t("Unknown");const n=e/100,a=new Intl.NumberFormat(void 0,{minimumFractionDigits:2,maximumFractionDigits:2}).format(n);return"$".concat(a)},CU=(e,t)=>!e||Number.isNaN(e.getTime())?t("Unknown"):new Intl.DateTimeFormat(void 0,{year:"numeric",month:"short",day:"numeric"}).format(e);function DU(e){const t=(0,oU.useStripe)(),n=(0,oU.useElements)(),[a,r]=(0,o.useState)(null),i="color-scheme"in document.documentElement.style&&"dark"===document.documentElement.style["color-scheme"];return(0,_h.jsxs)("div",{className:"space-y-4",children:[(0,_h.jsxs)("div",{className:"space-y-2",children:[(0,_h.jsx)(Rh,{className:"font-medium",children:"Card details"}),(0,_h.jsx)("div",{className:"rounded-md border border-input p-3",children:(0,_h.jsx)(oU.CardElement,{options:{hidePostalCode:!0,style:{base:{color:i?"white":"black"}}}})})]}),a&&(0,_h.jsx)(Rh,{variant:"secondary",type:"footnote",children:a}),(0,_h.jsx)(Uv,{onClick:async()=>{if(!t||!n)return void r("Stripe is still loading. Please try again.");const a=n.getElement(oU.CardElement);if(!a)return void r("Card element not found.");const o=await t.confirmCardSetup(e.clientSecret,{payment_method:{card:a}});var i;o.error?r(null!==(i=o.error.message)&&void 0!==i?i:"Failed to save payment method."):o.setupIntent.id?await e.onSetupIntentSucceeded(o.setupIntent.id):r("No setup intent returned from Stripe.")},children:"Save payment method"})]})}function AU(e){var t;return e.mockMode?(0,_h.jsx)(EU,{title:e.title}):e.customer?(0,_h.jsx)(jU,{title:e.title,customer:e.customer,customerType:null!==(t=e.customerType)&&void 0!==t?t:"user"}):null}function EU(e){const{t:t}=yw();return(0,_h.jsxs)("div",{className:"space-y-4",children:[e.title&&(0,_h.jsx)(Rh,{className:"font-medium",children:e.title}),(0,_h.jsxs)(HB,{title:t("Payment method"),description:t("Manage the default payment method used for subscriptions and invoices."),children:[(0,_h.jsx)(Rh,{children:xU({id:"pm_mock",brand:"visa",last4:"4242",exp_month:12,exp_year:2030})}),(0,_h.jsx)(Uv,{disabled:!0,children:t("Update payment method")})]}),(0,_h.jsx)(HB,{title:t("Active plans"),description:t("View your active plans and purchases."),children:(0,_h.jsxs)("div",{className:"space-y-3",children:[(0,_h.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,_h.jsxs)("div",{className:"min-w-0",children:[(0,_h.jsx)(Rh,{className:"truncate",children:t("Pro")}),(0,_h.jsxs)(Rh,{variant:"secondary",type:"footnote",children:[t("Renews on")," Jan 1, 2030"]})]}),(0,_h.jsx)(Uv,{disabled:!0,variant:"secondary",color:"neutral",children:t("Cancel subscription")})]}),(0,_h.jsx)("div",{className:"flex items-start justify-between gap-4",children:(0,_h.jsxs)("div",{className:"min-w-0",children:[(0,_h.jsx)(Rh,{className:"truncate",children:t("Credits pack")}),(0,_h.jsx)(Rh,{variant:"secondary",type:"footnote",children:t("One-time purchase")})]})})]})})]})}function jU(e){var t,n,a,r;const{t:i}=yw(),s=lg(),l=e.customer.useBilling().defaultPaymentMethod,c=e.customer.useProducts(),u=e.customer.useInvoices({limit:10}),d=c.filter(t=>t.customerType===e.customerType),[h,p]=(0,o.useState)(!1),[f,m]=(0,o.useState)(null),[g,v]=(0,o.useState)(null),[y,w]=(0,o.useState)(null),[_,x]=(0,o.useState)(null),[b,k]=(0,o.useState)(null),C=(0,o.useMemo)(()=>
2{if(!g)return null;const e={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:"443",FAST_REFRESH:!0,REACT_APP_BACKEND_URL:"https://view-draft-1.emergent.host",REACT_APP_STACK_PROJECT_ID:"3a872e07-920f-4f9c-8671-e7fb80c5cf46"}.NEXT_PUBLIC_STACK_STRIPE_PUBLISHABLE_KEY;return e?_U(e,{stripeAccount:g}):null},[g]),D=e=>{e instanceof so.DefaultPaymentMethodRequired?CT({title:i("No default payment method"),description:i("Add a payment method before switching plans."),variant:"destructive"}):alert("An unhandled error occurred. Please ".concat("report this to the developer.","\n\n").concat(e))},A=()=>{p(!1),m(null),v(null)},E=()=>{x(null),k(null)},j=_&&null!==(t=d.find(e=>e.id===_))&&void 0!==t?t:null,S=null!==(n=null===j||void 0===j?void 0:j.switchOptions)&&void 0!==n?n:[],N=null!==(a=S.find(e=>e.productId===b))&&void 0!==a?a:null,P=N&&null!==(r=Object.keys(N.prices)[0])&&void 0!==r?r:null;return(0,_h.jsxs)("div",{className:"space-y-4",children:[e.title&&(0,_h.jsx)(Rh,{className:"font-medium",children:e.title}),l&&(0,_h.jsxs)(HB,{title:i("Payment method"),description:i("Manage the default payment method used for subscriptions and invoices."),children:[(0,_h.jsx)(Rh,{children:xU(l)}),(0,_h.jsx)(Uv,{onClick:()=>{rd(async()=>{p(!0);const t=await e.customer.createPaymentMethodSetupIntent();m(t.clientSecret),v(t.stripeAccountId)},{onError:D})},children:i("Update payment method")}),(0,_h.jsx)(pT,{open:h,onOpenChange:e=>{e?p(!0):A()},title:i("Update payment method"),children:f&&g&&C?(0,_h.jsx)(oU.Elements,{stripe:C,options:{clientSecret:f},children:(0,_h.jsx)(DU,{clientSecret:f,onSetupIntentSucceeded:async t=>{await e.customer.setDefaultPaymentMethodFromSetupIntent(t),A()}})}):(0,_h.jsx)(bh,{className:"h-10 w-full"})})]}),d.length>0&&(0,_h.jsxs)(HB,{title:i("Active plans"),description:i("View your active plans and purchases."),children:[(0,_h.jsx)("div",{className:"space-y-3",children:d.map((e,t)=>{var n,a,r,o,s,c;const u=1!==e.quantity?" \xd7".concat(e.quantity):"",d="subscription"===e.type,h=d&&!(null===(n=e.subscription)||void 0===n||!n.isCancelable),p=d&&l&&!!e.id&&(null!==(a=null===(r=e.switchOptions)||void 0===r?void 0:r.length)&&void 0!==a?a:0)>0,f=d&&null!==(o=null===(s=e.subscription)||void 0===s?void 0:s.currentPeriodEnd)&&void 0!==o?o:null,m="one_time"===e.type?i("One-time purchase"):f?"".concat(i("Renews on")," ").concat(new Intl.DateTimeFormat(void 0,{year:"numeric",month:"short",day:"numeric"}).format(f)):i("Subscription");return(0,_h.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,_h.jsxs)("div",{className:"min-w-0",children:[(0,_h.jsxs)(Rh,{className:"truncate",children:[e.displayName,u]}),(0,_h.jsx)(Rh,{variant:"secondary",type:"footnote",children:m})]}),(0,_h.jsxs)("div",{className:"flex flex-col items-end gap-2",children:[p&&(0,_h.jsx)(Uv,{variant:"secondary",color:"neutral",onClick:()=>{var t,n,a,r;return a=e.id,r=null!==(t=null===(n=e.switchOptions)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.productId)&&void 0!==t?t:null,x(a),void k(r)},children:i("Change plan")}),h&&(0,_h.jsx)(Uv,{variant:"secondary",color:"neutral",onClick:()=>{var t,n,a;return w({productId:null!==(t=e.id)&&void 0!==t?t:"_inline",subscriptionId:null!==(n=null===(a=e.subscription)||void 0===a?void 0:a.subscriptionId)&&void 0!==n?n:void 0})},children:i("Cancel subscription")})]})]},null!==(c=e.id)&&void 0!==c?c:"".concat(e.displayName,"-").concat(t))})}),(0,_h.jsx)(pT,{open:null!==y,onOpenChange:e=>{e||w(null)},title:i("Cancel subscription"),description:i("Canceling will stop future renewals for this subscription."),danger:!0,cancelButton:!0,okButton:{label:i("Cancel subscription"),onClick:async()=>{if(!y)return;const{productId:t,subscriptionId:n}=y;"team"===e.customerType?await s.cancelSubscription({teamId:e.customer.id,productId:t,subscriptionId:n}):await s.cancelSubscription({productId:t,subscriptionId:n}),w(null)}}}),(0,_h.jsx)(pT,{open:null!==_,onOpenChange:e=>{e||E()},title:i("Change plan"),description:i("Select a new plan from the same product line."),cancelButton:!0,okButton:{label:i("Switch plan"),onClick:async()=>{const t=_,n=b;if(!t||!n)return;if(!P)return;const a=await ld.fromThrowingAsync(()=>e.customer.switchSubscription({fromProductId:t,toProductId:n,priceId:P}));if("error"===a.status)return D(a.error),"prevent-close";E()},props:{disabled:!_||!b||!P}},children:(0,_h.jsx)("div",{className:"space-y-2",children:0===S.length?(0,_h.jsx)(Rh,{variant:"secondary",type:"footnote",children:i("No other plans available for this subscription.")}):(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsx)(Rh,{type:"footnote",children:i("Choose a plan")}),(0,_h.jsxs)(RM,{value:null!==b&&void 0!==b?b:void 0,onValueChange:e=>k(e||null),children:[(0,_h.jsx)(zM,{className:"w-full",children:(0,_h.jsx)(BM,{placeholder:i("Choose a plan")})}),(0,_h.jsx)(VM,{children:S.map(e=>(0,_h.jsx)(HM,{value:e.productId,children:e.displayName},e.productId))})]})]})})})]}),u.length>0&&(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsx)(Iw,{}),(0,_h.jsxs)("div",{className:"space-y-2",children:[(0,_h.jsxs)("div",{className:"space-y-1",children:[(0,_h.jsx)(Rh,{className:"font-medium",children:i("Invoices")}),(0,_h.jsx)(Rh,{variant:"secondary",type:"footnote",children:i("Review past invoices and receipts.")})]}),(0,_h.jsx)("div",{className:"border rounded-md",children:(0,_h.jsxs)(WD,{children:[(0,_h.jsx)(KD,{children:(0,_h.jsxs)(GD,{children:[(0,_h.jsx)(JD,{className:"w-[140px]",children:i("Date")}),(0,_h.jsx)(JD,{className:"w-[120px]",children:i("Status")}),(0,_h.jsx)(JD,{className:"w-[120px]",children:i("Amount")}),(0,_h.jsx)(JD,{className:"w-[120px] text-right",children:i("Invoice")})]})}),(0,_h.jsx)(YD,{children:u.map((e,t)=>{const n=e.createdAt.getTime(),a=Number.isNaN(n)?"invoice-".concat(t):"invoice-".concat(n,"-").concat(t);return(0,_h.jsxs)(GD,{children:[(0,_h.jsx)($D,{children:(0,_h.jsx)(Rh,{children:CU(e.createdAt,i)})}),(0,_h.jsx)($D,{children:(0,_h.jsx)(Rh,{children:bU(e.status,i)})}),(0,_h.jsx)($D,{children:(0,_h.jsx)(Rh,{children:kU(e.amountTotal,i)})}),(0,_h.jsx)($D,{align:"right",children:e.hostedInvoiceUrl?(0,_h.jsx)(Uv,{asChild:!0,variant:"secondary",color:"neutral",size:"sm",children:(0,_h.jsx)("a",{href:e.hostedInvoiceUrl,target:"_blank",rel:"noreferrer",children:i("View")})}):(0,_h.jsx)(Rh,{variant:"secondary",type:"footnote",children:i("Unavailable")})})]},a)})})]})})]})]})]})}function SU(e){var t,n,a,r;const{t:i}=yw(),s=sg({or:e.mockMode?"return-null":"redirect"}),l=null!==(t=null!==(n=e.availableTeams)&&void 0!==n?n:null===s||void 0===s?void 0:s.useTeams())&&void 0!==t?t:[],c=null===(a=e.allowPersonal)||void 0===a||a,u=l.length>0,[d,h]=(0,o.useState)(null),p=null!==d&&void 0!==d?d:c?null:null!==(r=l[0])&&void 0!==r?r:null,f=null!==p&&void 0!==p?p:c?s:null,m=p?"team":"user";return(0,o.useEffect)(()=>{var t;e.mockMode||(!c&&!d&&l.length>0?h(l[0]):d&&!l.some(e=>e.id===d.id)&&h(c?null:null!==(t=l[0])&&void 0!==t?t:null))},[c,e.mockMode,d,l]),e.mockMode?(0,_h.jsx)(wN,{children:(0,_h.jsx)(AU,{mockMode:!0})}):f?(0,_h.jsxs)(wN,{children:[u?(0,_h.jsx)(tU,{team:null!==p&&void 0!==p?p:void 0,teams:l,allowNull:c,nullLabel:i("Personal"),onChange:async e=>{h(e)}}):null,(0,_h.jsx)(AU,{customer:f,customerType:m})]}):null}const NU=["__scopeCollapsible","open","defaultOpen","disabled","onOpenChange"],PU=["__scopeCollapsible"],TU=["forceMount"],FU=["__scopeCollapsible","present","children"];var OU="Collapsible",[IU,RU]=Lh(OU),[MU,BU]=IU(OU),zU=o.forwardRef((e,t)=>
2{const{__scopeCollapsible:n,open:a,defaultOpen:r,disabled:i,onOpenChange:s}=e,c=l(e,NU),[u,d]=kp({prop:a,defaultProp:null!==r&&void 0!==r&&r,onChange:s,caller:OU});return(0,_h.jsx)(MU,{scope:n,disabled:i,contentId:up(),open:u,onOpenToggle:o.useCallback(()=>d(e=>!e),[d]),children:(0,_h.jsx)(wp.div,p(p({"data-state":WU(u),"data-disabled":i?"":void 0},c),{},{ref:t}))})});zU.displayName=OU;var LU="CollapsibleTrigger",UU=o.forwardRef((e,t)=>{const{__scopeCollapsible:n}=e,a=l(e,PU),r=BU(LU,n);return(0,_h.jsx)(wp.button,p(p({type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":WU(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled},a),{},{ref:t,onClick:Mh(e.onClick,r.onOpenToggle)}))});UU.displayName=LU;var VU="CollapsibleContent",qU=o.forwardRef((e,t)=>{const{forceMount:n}=e,a=l(e,TU),r=BU(VU,e.__scopeCollapsible);return(0,_h.jsx)(Kp,{present:n||r.open,children:e=>{let{present:n}=e;return(0,_h.jsx)(HU,p(p({},a),{},{ref:t,present:n}))}})});qU.displayName=VU;var HU=o.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:a,children:r}=e,i=l(e,FU),s=BU(VU,n),[c,u]=o.useState(a),d=o.useRef(null),h=Gh(t,d),f=o.useRef(0),m=f.current,g=o.useRef(0),v=g.current,y=s.open||c,w=o.useRef(y),_=o.useRef(void 0);return o.useEffect(()=>{const e=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(e)},[]),sp(()=>{const e=d.current;if(e){_.current=_.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";const t=e.getBoundingClientRect();f.current=t.height,g.current=t.width,w.current||(e.style.transitionDuration=_.current.transitionDuration,e.style.animationName=_.current.animationName),u(a)}},[s.open,a]),(0,_h.jsx)(wp.div,p(p({"data-state":WU(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!y},i),{},{ref:h,style:p({"--radix-collapsible-content-height":m?"".concat(m,"px"):void 0,"--radix-collapsible-content-width":v?"".concat(v,"px"):void 0},e.style),children:y&&r}))});function WU(e){return e?"open":"closed"}var KU=zU,YU=UU,GU=qU;const JU=["type"],$U=["value","defaultValue","onValueChange","collapsible"],QU=["value","defaultValue","onValueChange"],XU=["__scopeAccordion","disabled","dir","orientation"],ZU=["__scopeAccordion","value"],eV=["__scopeAccordion"],tV=["__scopeAccordion"],nV=["__scopeAccordion"];var aV="Accordion",rV=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[oV,iV,sV]=ap(aV),[lV,cV]=Lh(aV,[sV,RU]),uV=RU(),dV=o.forwardRef((e,t)=>{const{type:n}=e,a=l(e,JU),r=a,o=a;return(0,_h.jsx)(oV.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?(0,_h.jsx)(vV,p(p({},o),{},{ref:t})):(0,_h.jsx)(gV,p(p({},r),{},{ref:t}))})});dV.displayName=aV;var[hV,pV]=lV(aV),[fV,mV]=lV(aV,{collapsible:!1}),gV=o.forwardRef((e,t)=>{const{value:n,defaultValue:a,onValueChange:r=()=>{},collapsible:i=!1}=e,s=l(e,$U),[c,u]=kp({prop:n,defaultProp:null!==a&&void 0!==a?a:"",onChange:r,caller:aV});return(0,_h.jsx)(hV,{scope:e.__scopeAccordion,value:o.useMemo(()=>c?[c]:[],[c]),onItemOpen:u,onItemClose:o.useCallback(()=>i&&u(""),[i,u]),children:(0,_h.jsx)(fV,{scope:e.__scopeAccordion,collapsible:i,children:(0,_h.jsx)(_V,p(p({},s),{},{ref:t}))})})}),vV=o.forwardRef((e,t)=>{const{value:n,defaultValue:a,onValueChange:r=()=>{}}=e,i=l(e,QU),[s,c]=kp({prop:n,defaultProp:null!==a&&void 0!==a?a:[],onChange:r,caller:aV}),u=o.useCallback(e=>c(function(){return[...arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e]}),[c]),d=o.useCallback(e=>c(function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter(t=>t!==e)}),[c]);return(0,_h.jsx)(hV,{scope:e.__scopeAccordion,value:s,onItemOpen:u,onItemClose:d,children:(0,_h.jsx)(fV,{scope:e.__scopeAccordion,collapsible:!0,children:(0,_h.jsx)(_V,p(p({},i),{},{ref:t}))})})}),[yV,wV]=lV(aV),_V=o.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:a,dir:r,orientation:i="vertical"}=e,s=l(e,XU),c=Gh(o.useRef(null),t),u=iV(n),d="ltr"===Dp(r),h=Mh(e.onKeyDown,e=>{var t;if(!rV.includes(e.key))return;const n=e.target,a=u().filter(e=>{var t;return!(null!==(t=e.ref.current)&&void 0!==t&&t.disabled)}),r=a.findIndex(e=>e.ref.current===n),o=a.length;if(-1===r)return;e.preventDefault();let s=r;const l=o-1,c=()=>{s=r+1,s>l&&(s=0)},h=()=>{s=r-1,s<0&&(s=l)};switch(e.key){case"Home":s=0;break;case"End":s=l;break;case"ArrowRight":"horizontal"===i&&(d?c():h());break;case"ArrowDown":"vertical"===i&&c();break;case"ArrowLeft":"horizontal"===i&&(d?h():c());break;case"ArrowUp":"vertical"===i&&h()}null===(t=a[s%o].ref.current)||void 0===t||t.focus()});return(0,_h.jsx)(yV,{scope:n,disabled:a,direction:r,orientation:i,children:(0,_h.jsx)(oV.Slot,{scope:n,children:(0,_h.jsx)(wp.div,p(p({},s),{},{"data-orientation":i,ref:c,onKeyDown:a?void 0:h}))})})}),xV="AccordionItem",[bV,kV]=lV(xV),CV=o.forwardRef((e,t)=>
2{const{__scopeAccordion:n,value:a}=e,r=l(e,ZU),o=wV(xV,n),i=pV(xV,n),s=uV(n),c=up(),u=a&&i.value.includes(a)||!1,d=o.disabled||e.disabled;return(0,_h.jsx)(bV,{scope:n,open:u,disabled:d,triggerId:c,children:(0,_h.jsx)(KU,p(p(p({"data-orientation":o.orientation,"data-state":PV(u)},s),r),{},{ref:t,disabled:d,open:u,onOpenChange:e=>{e?i.onItemOpen(a):i.onItemClose(a)}}))})});CV.displayName=xV;var DV="AccordionHeader",AV=o.forwardRef((e,t)=>{const{__scopeAccordion:n}=e,a=l(e,eV),r=wV(aV,n),o=kV(DV,n);return(0,_h.jsx)(wp.h3,p(p({"data-orientation":r.orientation,"data-state":PV(o.open),"data-disabled":o.disabled?"":void 0},a),{},{ref:t}))});AV.displayName=DV;var EV="AccordionTrigger",jV=o.forwardRef((e,t)=>{const{__scopeAccordion:n}=e,a=l(e,tV),r=wV(aV,n),o=kV(EV,n),i=mV(EV,n),s=uV(n);return(0,_h.jsx)(oV.ItemSlot,{scope:n,children:(0,_h.jsx)(YU,p(p(p({"aria-disabled":o.open&&!i.collapsible||void 0,"data-orientation":r.orientation,id:o.triggerId},s),a),{},{ref:t}))})});jV.displayName=EV;var SV="AccordionContent",NV=o.forwardRef((e,t)=>{const{__scopeAccordion:n}=e,a=l(e,nV),r=wV(aV,n),o=kV(SV,n),i=uV(n);return(0,_h.jsx)(GU,p(p(p({role:"region","aria-labelledby":o.triggerId,"data-orientation":r.orientation},i),a),{},{ref:t,style:p({"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)"},e.style)}))});function PV(e){return e?"open":"closed"}NV.displayName=SV;var TV=CV,FV=AV,OV=jV,IV=NV;const RV=["className"],MV=["className","children","disabled"],BV=["className","children"];var zV=dV,LV=Ah((e,t)=>{let{className:n}=e,a=l(e,RV);return(0,_h.jsx)(TV,p({ref:t,className:wh("border-b",n)},a))});LV.displayName="AccordionItem";var UV=Ah((e,t)=>{let{className:n,children:a,disabled:r}=e,o=l(e,MV);return(0,_h.jsx)(FV,{className:"stack-scope flex",children:(0,_h.jsxs)(OV,p(p({ref:t,className:wh("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",n)},o),{},{children:[a,!r&&(0,_h.jsx)(fv,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]}))})});UV.displayName=OV.displayName;var VV=Ah((e,t)=>{let{className:n,children:a}=e,r=l(e,BV);return(0,_h.jsx)(IV,p(p({ref:t,className:"stack-scope text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"},r),{},{children:(0,_h.jsx)("div",{className:wh("pb-4 pt-0",n),children:a})}))});function qV(e){const{t:t}=yw(),n=sg({or:null!==e&&void 0!==e&&e.mockMode?"return-null":"redirect"}),a=lg(),r=a.useProject(),[i,s]=(0,o.useState)(!1);if(!((null===e||void 0===e?void 0:e.mockMode)||r.config.clientUserDeletionEnabled))return null;return(0,_h.jsx)(HB,{title:t("Delete Account"),description:t("Permanently remove your account and all associated data"),children:(0,_h.jsx)("div",{className:"stack-scope flex flex-col items-stretch",children:(0,_h.jsx)(zV,{type:"single",collapsible:!0,className:"w-full",children:(0,_h.jsxs)(LV,{value:"item-1",children:[(0,_h.jsx)(UV,{children:t("Danger zone")}),(0,_h.jsx)(VV,{children:i?(0,_h.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,_h.jsx)(Rh,{variant:"destructive",children:t("Are you sure you want to delete your account? This action is IRREVERSIBLE and will delete ALL associated data.")}),(0,_h.jsxs)("div",{className:"flex gap-2",children:[(0,_h.jsx)(Uv,{variant:"destructive",onClick:async()=>{if(null!==e&&void 0!==e&&e.mockMode)return alert("Mock mode: Account deletion clicked"),void s(!1);n&&(await n.delete(),await a.redirectToHome())},children:t("Delete Account")}),(0,_h.jsx)(Uv,{variant:"secondary",onClick:()=>s(!1),children:t("Cancel")})]})]}):(0,_h.jsx)("div",{children:(0,_h.jsx)(Uv,{variant:"destructive",onClick:()=>s(!0),children:t("Delete account")})})})]})})})})}function HV(e){const{t:t}=yw(),n=sg({or:null!==e&&void 0!==e&&e.mockMode?"return-null":"throw"});return(0,_h.jsx)(HB,{title:t("Sign out"),description:t("End your current session"),children:(0,_h.jsx)("div",{children:(0,_h.jsx)(Uv,{variant:"secondary",onClick:async()=>{null!==e&&void 0!==e&&e.mockMode?alert("Mock mode: Sign out clicked"):n&&await n.signOut()},children:t("Sign out")})})})}function WV(e){return(0,_h.jsxs)(wN,{children:[(0,_h.jsx)(qV,{mockMode:null===e||void 0===e?void 0:e.mockMode}),(0,_h.jsx)(HV,{mockMode:null===e||void 0===e?void 0:e.mockMode})]})}function KV(e){var t;const{t:n}=yw(),a=gs({displayName:cs().defined().nonEmpty(n("Please enter a team name"))}),{register:r,handleSubmit:i,formState:{errors:s}}=mw({resolver:Ag(a)}),l=lg(),c=l.useProject(),u=sg({or:null!==e&&void 0!==e&&e.mockMode?"return-null":"redirect"}),d=l.useNavigate(),[h,f]=(0,o.useState)(!1);if(null!==e&&void 0!==e&&e.mockMode)return(0,_h.jsx)(wN,{children:(0,_h.jsx)(i_,{title:n("Team creation is disabled in demo mode")})});if(!c.config.clientTeamCreationEnabled)return(0,_h.jsx)(i_,{title:n("Team creation is not enabled")});const m=async t=>{if(null!==e&&void 0!==e&&e.mockMode)return void alert("Mock mode: Team creation clicked");let n;f(!0);try{n=await(null===u||void 0===u?void 0:u.createTeam({displayName:t.displayName}))}finally{f(!1)}n&&d("#team-".concat(n.id))};return(0,_h.jsx)(wN,{children:(0,_h.jsx)(HB,{title:n("Create a Team"),description:n("Enter a display name for your new team"),children:(0,_h.jsxs)("form",{onSubmit:e=>ad(i(m)(e)),noValidate:!0,className:"flex gap-2 flex-col sm:flex-row",children:[(0,_h.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,_h.jsx)(Jg,p({id:"displayName",type:"text"},r("displayName"))),(0,_h.jsx)(ww,{text:null===(t=s.displayName)||void 0===t||null===(t=t.message)||void 0===t?void 0:t.toString()})]}),(0,_h.jsx)(Uv,{type:"submit",loading:h,children:n("Create")})]})})})}function YV(e){const{t:t}=yw(),n=sg({or:"redirect"}),[a,r]=(0,o.useState)(!1);return(0,_h.jsx)(HB,{title:t("Leave Team"),description:t("leave this team and remove your team profile"),children:a?(0,_h.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,_h.jsx)(Rh,{variant:"destructive",children:t("Are you sure you want to leave the team?")}),(0,_h.jsxs)("div",{className:"flex gap-2",children:[(0,_h.jsx)(Uv,{variant:"destructive",onClick:async()=>{await n.leaveTeam(e.team),window.location.reload()},children:t("Leave")}),(0,_h.jsx)(Uv,{variant:"secondary",onClick:()=>r(!1),children:t("Cancel")})]})]}):(0,_h.jsx)("div",{children:(0,_h.jsx)(Uv,{variant:"secondary",onClick:()=>r(!0),children:t("Leave team")})})})}function GV(e){const t=sg({or:"redirect"}),n=t.useTeam(e.team.id),a=lg().useProject();if(!n)throw new hn("Team not found");const r=a.config.allowTeamApiKeys;return t.usePermission(e.team,"$manage_api_keys")&&r?(0,_h.jsx)(JV,{team:e.team}):null}function JV(e){const{t:t}=yw(),[n,a]=(0,o.useState)(!1),[r,i]=(0,o.useState)(null),s=e.team.useApiKeys(),l=ST,c=NT;return(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsx)(HB,{title:t("API Keys"),description:t("API keys grant programmatic access to your team."),children:(0,_h.jsx)(Uv,{onClick:()=>a(!0),children:t("Create API Key")})}),(0,_h.jsx)(EB,{apiKeys:s}),(0,_h.jsx)(l,{open:n,onOpenChange:a,onKeyCreated:i,createApiKey:async t=>await e.team.createApiKey(t)}),(0,_h.jsx)(c,{apiKey:r,onClose:()=>i(null)})]})}function $V(e){const{t:t}=yw();return sg({or:"redirect"}).usePermission(e.team,"$update_team")?(0,_h.jsx)(HB,{title:t("Team display name"),description:t("Change the display name of your team"),children:(0,_h.jsx)(ZL,{value:e.team.displayName,onSave:async t=>await e.team.update({displayName:t})})}):null}VV.displayName=IV.displayName;const QV=RC("Trash",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}
2],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]]);function XV(e){return sg({or:"redirect"}).usePermission(e.team,"$invite_members")?(0,_h.jsx)(eq,{team:e.team}):null}function ZV(e){const t=sg({or:"redirect"}),{t:n}=yw(),a=e.team.useInvitations(),r=t.usePermission(e.team,"$remove_members");return(0,_h.jsx)(_h.Fragment,{children:(0,_h.jsxs)(WD,{className:"mt-6",children:[(0,_h.jsx)(KD,{children:(0,_h.jsxs)(GD,{children:[(0,_h.jsx)(JD,{className:"w-[200px]",children:n("Outstanding invitations")}),(0,_h.jsx)(JD,{className:"w-[60px]",children:n("Expires")}),(0,_h.jsx)(JD,{className:"w-[36px] max-w-[36px]"})]})}),(0,_h.jsxs)(YD,{children:[a.map((e,t)=>(0,_h.jsxs)(GD,{children:[(0,_h.jsx)($D,{children:(0,_h.jsx)(Rh,{children:e.recipientEmail})}),(0,_h.jsx)($D,{children:(0,_h.jsx)(Rh,{variant:"secondary",children:e.expiresAt.toLocaleString()})}),(0,_h.jsx)($D,{align:"right",className:"max-w-[36px]",children:r&&(0,_h.jsx)(Uv,{onClick:async()=>await e.revoke(),size:"icon",variant:"ghost",children:(0,_h.jsx)(QV,{className:"w-4 h-4"})})})]},e.id)),0===a.length&&(0,_h.jsx)(GD,{children:(0,_h.jsx)($D,{colSpan:3,children:(0,_h.jsx)(Rh,{variant:"secondary",children:n("No outstanding invitations")})})})]})]})})}function eq(e){var t;const n=sg({or:"redirect"}),{t:a}=yw(),r=n.usePermission(e.team,"$read_members"),i=gs({email:Ns(a("Please enter a valid email address")).defined().nonEmpty(a("Please enter an email address"))}),{register:s,handleSubmit:l,formState:{errors:c},watch:u}=mw({resolver:Ag(i)}),[d,h]=(0,o.useState)(!1),[f,m]=(0,o.useState)(null),g=async t=>{h(!0);try{await e.team.inviteUser({email:t.email}),m(t.email)}finally{h(!1)}};return(0,o.useEffect)(()=>{m(null)},[u("email")]),(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsx)(HB,{title:a("Invite member"),description:a("Invite a user to your team through email"),children:(0,_h.jsxs)("form",{onSubmit:e=>ad(l(g)(e)),noValidate:!0,className:"w-full",children:[(0,_h.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row w-full",children:[(0,_h.jsx)(Jg,p({placeholder:a("Email")},s("email"))),(0,_h.jsx)(Uv,{type:"submit",loading:d,children:a("Invite User")})]}),(0,_h.jsx)(ww,{text:null===(t=c.email)||void 0===t||null===(t=t.message)||void 0===t?void 0:t.toString()}),f&&(0,_h.jsxs)(Rh,{type:"label",variant:"secondary",children:["Invited ",f]})]})}),r&&(0,_h.jsx)(ZV,{team:e.team})]})}function tq(e){const t=sg({or:"redirect"}),n=t.usePermission(e.team,"$read_members"),a=t.usePermission(e.team,"$invite_members");return n||a?(0,_h.jsx)(nq,{team:e.team}):null}function nq(e){const{t:t}=yw(),n=e.team.useUsers();return(0,_h.jsxs)("div",{children:[(0,_h.jsx)(Rh,{className:"font-medium mb-2",children:t("Members")}),(0,_h.jsx)("div",{className:"border rounded-md",children:(0,_h.jsxs)(WD,{children:[(0,_h.jsx)(KD,{children:(0,_h.jsxs)(GD,{children:[(0,_h.jsx)(JD,{className:"w-[100px]",children:t("User")}),(0,_h.jsx)(JD,{className:"w-[200px]",children:t("Name")}
2)]})}),(0,_h.jsx)(YD,{children:n.map((e,n)=>{let{id:a,teamProfile:r}=e;return(0,_h.jsxs)(GD,{children:[(0,_h.jsx)($D,{children:(0,_h.jsx)(JL,{user:r})}),(0,_h.jsxs)($D,{children:[r.displayName&&(0,_h.jsx)(Rh,{children:r.displayName}),!r.displayName&&(0,_h.jsx)(Rh,{className:"text-muted-foreground italic",children:t("No display name set")})]})]},a)})})]})})]})}function aq(e){const{t:t}=yw();return sg({or:"redirect"}).usePermission(e.team,"$update_team")?(0,_h.jsx)(HB,{title:t("Team profile image"),description:t("Upload an image for your team"),children:(0,_h.jsx)(QL,{user:e.team,onProfileImageUrlChange:async t=>{await e.team.update({profileImageUrl:t})}})}):null}function rq(e){const{t:t}=yw(),n=sg({or:"redirect"}).useTeamProfile(e.team);return(0,_h.jsx)(HB,{title:t("Team user name"),description:t("Overwrite your user display name in this team"),children:(0,_h.jsx)(ZL,{value:n.displayName||"",onSave:async e=>{await n.update({displayName:e})}})})}function oq(e){return(0,_h.jsxs)(wN,{children:[(0,_h.jsx)(rq,{team:e.team},"user-profile-".concat(e.team.id)),(0,_h.jsx)(aq,{team:e.team},"profile-image-".concat(e.team.id)),(0,_h.jsx)($V,{team:e.team},"display-name-".concat(e.team.id)),(0,_h.jsx)(tq,{team:e.team},"member-list-".concat(e.team.id)),(0,_h.jsx)(XV,{team:e.team},"member-invitation-".concat(e.team.id)),(0,_h.jsx)(GV,{team:e.team},"api-keys-".concat(e.team.id)),(0,_h.jsx)(YV,{team:e.team},"leave-team-".concat(e.team.id))]})}var iq={Contact:HC,ShieldCheck:WC,Bell:KC,Monitor:YC,Key:GC,Settings:JC,CirclePlus:$C,CreditCard:QC},sq=e=>{let{name:t}=e;const n=iq[t];return(0,_h.jsx)(n,{className:"mr-2 h-4 w-4"})};function lq(e){var t,n;const{t:a}=yw(),r=sg({or:e.mockUser?"return-null":"redirect"}),i=lg().useProject(),s=e.mockUser?{useTeams:()=>[],useBilling:()=>({hasCustomer:!1})}:r,l=e.mockProject||i,c=(null===s||void 0===s?void 0:s.useTeams())||[],u=(null===s||void 0===s||s.useBilling(),(0,o.useMemo)(()=>c.map(e=>e.id).join("|"),[c])),d=(0,o.useMemo)(()=>c,[u]),h=(0,o.useRef)(null!==r&&void 0!==r?r:null),p=null!==(t=null===r||void 0===r?void 0:r.id)&&void 0!==t?t:null,[f,m]=(0,o.useState)(()=>({userHasProducts:!1,teamIdsWithProducts:new Set,isReady:!!e.mockUser}));(0,o.useEffect)(()=>{h.current=null!==r&&void 0!==r?r:null},[r]),(0,o.useEffect)(()=>{if(e.mockUser||!p)return;let t=!1;return ad(async()=>{const e=h.current;if(!e||e.id!==p)return;const[n,a]=await Promise.all([e.listProducts({limit:1}),Promise.all(d.map(async t=>{if(!await e.hasPermission(t,"team_admin"))return null;return(await t.listProducts({limit:1})).some(e=>"team"===e.customerType)?t.id:null}))]);if(t)return;const r=n.some(e=>"user"===e.customerType),o=new Set(a.filter(e=>null!==e));m({userHasProducts:r,teamIdsWithProducts:o,isReady:!0})}),()=>{t=!0}},[e.mockUser,d,p]);const g=(0,o.useMemo)(()=>d.filter(e=>f.teamIdsWithProducts.has(e.id)),[f.teamIdsWithProducts,d]),v=e.mockUser||f.isReady&&(f.userHasProducts||g.length>0);return e.mockUser||r?(0,_h.jsx)(Aw,{fullPage:!!e.fullPage,children:(0,_h.jsx)("div",{className:"self-stretch flex-grow w-full",children:(0,_h.jsx)(ZC,{items:[{title:a("My Profile"),type:"item",id:"profile",icon:(0,_h.jsx)(sq,{name:"Contact"}),content:(0,_h.jsx)(eU,{mockUser:e.mockUser})},{title:a("Emails & Auth"),type:"item",id:"auth",icon:(0,_h.jsx)(sq,{name:"ShieldCheck"}),content:(0,_h.jsx)(o.Suspense,{fallback:(0,_h.jsx)(uq,{}),children:(0,_h.jsx)(JB,{mockMode:!!e.mockUser})})},{title:a("Notifications"),type:"item",id:"notifications",icon:(0,_h.jsx)(sq,{name:"Bell"}),content:(0,_h.jsx)(o.Suspense,{fallback:(0,_h.jsx)(gq,{}),children:(0,_h.jsx)(mz,{})})},{title:a("Active Sessions"),type:"item",id:"sessions",icon:(0,_h.jsx)(sq,{name:"Monitor"}),content:(0,_h.jsx)(o.Suspense,{fallback:(0,_h.jsx)(dq,{}),children:(0,_h.jsx)(_N,{mockSessions:e.mockSessions,mockMode:!!e.mockUser})})},...l.config.allowUserApiKeys?[{title:a("API Keys"),type:"item",id:"api-keys",icon:(0,_h.jsx)(sq,{name:"Key"}),content:(0,_h.jsx)(o.Suspense,{fallback:(0,_h.jsx)(hq,{}),children:(0,_h.jsx)(jB,{mockApiKeys:e.mockApiKeys,mockMode:!!e.mockUser})})}]:[],...v?[{title:a("Payments"),type:"item",id:"payments",icon:(0,_h.jsx)(sq,{name:"CreditCard"}),content:(0,_h.jsx)(o.Suspense,{fallback:(0,_h.jsx)(pq,{}),children:(0,_h.jsx)(SU,{mockMode:!!e.mockUser,allowPersonal:f.userHasProducts,availableTeams:g})})}]:[],{title:a("Settings"),type:"item",id:"settings",icon:(0,_h.jsx)(sq,{name:"Settings"}),content:(0,_h.jsx)(WV,{mockMode:!!e.mockUser})},...(null===(n=e.extraItems)||void 0===n?void 0:n.map(e=>({title:e.title,type:"item",id:e.id,icon:(()=>{const t=e.iconName;return t?(0,_h.jsx)(sq,{name:t}):e.icon?e.icon:null})(),content:e.content})))||[],...c.length>0||l.config.clientTeamCreationEnabled?[{title:a("Teams"),type:"divider"}]:[],...c.map(e=>({title:(0,_h.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,_h.jsx)(FD,{team:e}),(0,_h.jsx)(Rh,{className:"max-w-[320px] md:w-[90%] truncate",children:e.displayName})]}),type:"item",id:"team-".concat(e.id),content:(0,_h.jsx)(o.Suspense,{fallback:(0,_h.jsx)(fq,{}),children:(0,_h.jsx)(oq,{team:e})})})),...l.config.clientTeamCreationEnabled?[{title:a("Create a team"),icon:(0,_h.jsx)(sq,{name:"CirclePlus"}),type:"item",id:"team-creation",content:(0,_h.jsx)(o.Suspense,{fallback:(0,_h.jsx)(mq,{}),children:(0,_h.jsx)(KV,{mockMode:!!e.mockUser})})}]:[]].filter(e=>"divider"===e.type||e.content),title:a("Account Settings")})})}):null}function cq(e){return(0,_h.jsx)("div",{className:"flex flex-col gap-6",children:e.children})}function uq(){return(0,_h.jsxs)(cq,{children:[(0,_h.jsx)(bh,{className:"h-9 w-full mt-1"}),(0,_h.jsx)(bh,{className:"h-9 w-full mt-1"}),(0,_h.jsx)(bh,{className:"h-9 w-full mt-1"}),(0,_h.jsx)(bh,{className:"h-9 w-full mt-1"})]})}function dq(){return(0,_h.jsxs)(cq,{children:[(0,_h.jsx)(bh,{className:"h-6 w-48 mb-2"}),(0,_h.jsx)(bh,{className:"h-4 w-full mb-4"}),(0,_h.jsx)(bh,{className:"h-[200px] w-full mt-1 rounded-md"})]})}function hq(){return(0,_h.jsxs)(cq,{children:[(0,_h.jsx)(bh,{className:"h-9 w-full mt-1"}),(0,_h.jsx)(bh,{className:"h-[200px] w-full mt-1 rounded-md"})]})}function pq(){return(0,_h.jsxs)(cq,{children:[(0,_h.jsx)(bh,{className:"h-6 w-48 mb-2"}),(0,_h.jsx)(bh,{className:"h-9 w-full mt-1"}),(0,_h.jsx)(bh,{className:"h-9 w-full mt-1"}),(0,_h.jsx)(bh,{className:"h-[200px] w-full mt-1 rounded-md"})]})}function fq(){return(0,_h.jsxs)(cq,{children:[(0,_h.jsx)(bh,{className:"h-9 w-full mt-1"}),(0,_h.jsx)(bh,{className:"h-9 w-full mt-1"}),(0,_h.jsx)(bh,{className:"h-9 w-full mt-1"}),(0,_h.jsx)(bh,{className:"h-[200px] w-full mt-1 rounded-md"})]})}function mq(){return(0,_h.jsxs)(cq,{children:[(0,_h.jsx)(bh,{className:"h-9 w-full mt-1"}),(0,_h.jsx)(bh,{className:"h-9 w-full mt-1"})]})}function gq(){return(0,_h.jsxs)(cq,{children:[(0,_h.jsx)(bh,{className:"h-9 w-full mt-1"}),(0,_h.jsx)(bh,{className:"h-9 w-full mt-1"})]})}function vq(e){let{fullPage:t=!0}=e;const{t:n}=yw(),a=lg(),[r,i]=(0,o.useState)(!1),[s,l]=(0,o.useState)(!1),[c,u]=(0,o.useState)(null),d=a.useUser({or:"redirect"});return s?(0,_h.jsx)(i_,{title:n("CLI Authorization Successful"),fullPage:t,children:(0,_h.jsx)(Rh,{children:n("The CLI application has been authorized successfully. You can close this window and return to the command line.")})}):c?(0,_h.jsxs)(i_,{title:n("Authorization Failed"),fullPage:t,primaryButtonText:n("Try Again"),primaryAction:()=>u(null),children:[(0,_h.jsx)(Rh,{className:"text-red-600",children:n("Failed to authorize the CLI application:")}),(0,_h.jsx)(Rh,{className:"text-red-600",children:c.message})]}):(0,_h.jsxs)(i_,{title:n("Authorize CLI Application"),fullPage:t,primaryButtonText:n(r?"Authorizing...":"Authorize"),primaryAction:async()=>
2{if(!r){i(!0);try{const e=new URLSearchParams(window.location.search).get("login_code");if(!e)throw new Error("Missing login code in URL parameters");if(!(await d.currentSession.getTokens()).refreshToken)throw new Error("You must be logged in to authorize CLI access");const t=await a[Ef].sendRequest("/auth/cli/complete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({login_code:e,refresh_token:(await d.currentSession.getTokens()).refreshToken})});if(!t.ok)throw new Error("Authorization failed: ".concat(t.status," ").concat(await t.text()));l(!0)}catch(TAe){u(TAe)}finally{i(!1)}}},children:[(0,_h.jsx)(Rh,{children:n("A command line application is requesting access to your account. Click the button below to authorize it.")}),(0,_h.jsx)(Rh,{variant:"destructive",children:n("WARNING: Make sure you trust the command line application, as it will gain access to your account. If you did not initiate this request, you can close this page and ignore it. We will never send you this link via email or any other means.")})]})}function yq(e){var t;const{t:n}=yw(),a=lg(),[r,i]=(sg(),o.useState(null)),s=(0,_h.jsx)(i_,{title:n("Invalid Verification Link"),fullPage:!!e.fullPage,children:(0,_h.jsx)("p",{children:n("Please check if you have the correct link. If you continue to have issues, please contact support.")})}),l=(0,_h.jsx)(i_,{title:n("Expired Verification Link"),fullPage:!!e.fullPage,children:(0,_h.jsx)("p",{children:n("Your email verification link has expired. Please request a new verification link from your account settings.")})});if(null===(t=e.searchParams)||void 0===t||!t.code)return s;if(r){if("error"===r.status){if(so.VerificationCodeNotFound.isInstance(r.error))return s;if(so.VerificationCodeExpired.isInstance(r.error))return l;if(!so.VerificationCodeAlreadyUsed.isInstance(r.error))throw r.error}return(0,_h.jsx)(i_,{title:n("You email has been verified!"),fullPage:!!e.fullPage,primaryButtonText:n("Go home"),primaryAction:async()=>{await a.redirectToHome()}})}return(0,_h.jsx)(i_,{title:n("Do you want to verify your email?"),fullPage:!!e.fullPage,primaryButtonText:n("Verify"),primaryAction:async()=>{var t;const n=await a.verifyEmail((null===(t=e.searchParams)||void 0===t?void 0:t.code)||cn("No verification code provided"));i(n)},secondaryButtonText:n("Cancel"),secondaryAction:async()=>{await a.redirectToHome()}})}function wq(e){let{error:t,fullPage:n=!1}=e;const a=lg();return(0,_h.jsxs)(i_,{title:"An error occurred",fullPage:n,primaryButtonText:"Go Home",primaryAction:()=>a.redirectToHome(),children:[(0,_h.jsxs)(Rh,{children:["Error Code: ",t.errorCode]}),(0,_h.jsxs)(Rh,{children:["Error Message: ",t.message]})]})}function _q(e){const{t:t}=yw(),n=lg(),a=e.searchParams.errorCode,r=e.searchParams.message,o=e.searchParams.details,i=(0,_h.jsx)(s_,{type:"unknownError",fullPage:!!e.fullPage});if(!a||!r)return i;let s;try{const e=o?JSON.parse(o):{};s=Pn.fromJson({code:a,message:r,details:e})}catch(oL){return i}return so.OAuthConnectionAlreadyConnectedToAnotherUser.isInstance(s)?(0,_h.jsx)(i_,{title:t("Failed to connect account"),fullPage:!!e.fullPage,primaryButtonText:t("Go Home"),primaryAction:()=>n.redirectToHome(),children:(0,_h.jsx)(Rh,{children:t("This account is already connected to another user. Please connect a different account.")})}):so.UserAlreadyConnectedToAnotherOAuthConnection.isInstance(s)?(0,_h.jsx)(i_,{title:t("Failed to connect account"),fullPage:!!e.fullPage,primaryButtonText:t("Go Home"),primaryAction:()=>n.redirectToHome(),children:(0,_h.jsx)(Rh,{children:t("The user is already connected to another OAuth account. Did you maybe selected the wrong account on the OAuth provider page?")})}):so.OAuthProviderAccessDenied.isInstance(s)?(0,_h.jsx)(i_,{title:t("OAuth provider access denied"),fullPage:!!e.fullPage,primaryButtonText:t("Sign in again"),primaryAction:()=>n.redirectToSignIn(),secondaryButtonText:t("Go Home"),secondaryAction:()=>n.redirectToHome(),children:(0,_h.jsx)(Rh,{children:t("The sign-in operation has been cancelled or denied. Please try again.")})}):(0,_h.jsx)(wq,{error:s,fullPage:!!e.fullPage})}function xq(e){var t;let{onSent:n}=e;const{t:a}=yw(),r=gs({email:Ns(a("Please enter a valid email")).defined().nonEmpty(a("Please enter your email"))}),{register:i,handleSubmit:s,formState:{errors:l},clearErrors:c}=mw({resolver:Ag(r)}),u=lg(),[d,h]=(0,o.useState)(!1),f=async e=>{h(!0);try{const{email:t}=e;await u.sendForgotPasswordEmail(t),null===n||void 0===n||n()}finally{h(!1)}};return(0,_h.jsxs)("form",{className:"flex flex-col items-stretch stack-scope",onSubmit:e=>ad(s(f)(e)),noValidate:!0,children:[(0,_h.jsx)(Kg,{htmlFor:"email",className:"mb-1",children:a("Your Email")}),(0,_h.jsx)(Jg,p(p({id:"email",type:"email",autoComplete:"email"},i("email")),{},{onChange:()=>c("email")})),(0,_h.jsx)(ww,{text:null===(t=l.email)||void 0===t||null===(t=t.message)||void 0===t?void 0:t.toString()}),(0,_h.jsx)(Uv,{type:"submit",className:"mt-6",loading:d,children:a("Send Email")})]})}function bq(e){const{t:t}=yw(),n=lg(),a=sg(),[r,i]=(0,o.useState)(!1);return a?(0,_h.jsx)(s_,{type:"signedIn",fullPage:!!e.fullPage}):r?(0,_h.jsx)(s_,{type:"emailSent",fullPage:!!e.fullPage}):(0,_h.jsx)(Aw,{fullPage:!!e.fullPage,children:(0,_h.jsxs)("div",{className:wh("stack-scope max-w-[380px] flex-basis-[380px]",e.fullPage?"p-4":"p-0"),
2children:[(0,_h.jsxs)("div",{className:"text-center",children:[(0,_h.jsx)(Rh,{type:"h2",children:t("Reset Your Password")}),(0,_h.jsxs)(Rh,{children:[t("Don't need to reset?")," ",(0,_h.jsx)(xw,{href:n.urls.signIn,children:t("Sign in")})]})]}),(0,_h.jsx)("div",{className:"mt-6",children:(0,_h.jsx)(xq,{onSent:()=>i(!0)})})]})})}Sf(async(e,t)=>await e.signInWithMagicLink(t));function kq(e){var t;const{t:n}=yw(),a=lg(),r=sg(),[i,s]=o.useState(null);if(r)return(0,_h.jsx)(s_,{type:"signedIn",fullPage:!!e.fullPage});const l=(0,_h.jsx)(i_,{title:n("Invalid Magic Link"),fullPage:!!e.fullPage,children:(0,_h.jsx)("p",{children:n("Please check if you have the correct link. If you continue to have issues, please contact support.")})}),c=(0,_h.jsx)(i_,{title:n("Expired Magic Link"),fullPage:!!e.fullPage,children:(0,_h.jsx)("p",{children:n("Your magic link has expired. Please request a new magic link if you need to sign-in.")})}),u=(0,_h.jsx)(i_,{title:n("Magic Link Already Used"),fullPage:!!e.fullPage,children:(0,_h.jsx)("p",{children:n("The magic link has already been used. The link can only be used once. Please request a new magic link if you need to sign-in again.")})});if(null===(t=e.searchParams)||void 0===t||!t.code)return l;if(i){if("error"===i.status){if(so.VerificationCodeNotFound.isInstance(i.error))return l;if(so.VerificationCodeExpired.isInstance(i.error))return c;if(so.VerificationCodeAlreadyUsed.isInstance(i.error))return u;throw i.error}return(0,_h.jsx)(i_,{title:n("Signed in successfully!"),fullPage:!!e.fullPage,primaryButtonText:n("Go home"),primaryAction:async()=>{await a.redirectToHome()}})}return(0,_h.jsx)(i_,{title:n("Do you want to sign in?"),fullPage:!!e.fullPage,primaryButtonText:n("Sign in"),primaryAction:async()=>{var t;const n=await a.signInWithMagicLink((null===(t=e.searchParams)||void 0===t?void 0:t.code)||cn("No magic link provided"));s(n)},secondaryButtonText:n("Cancel"),secondaryAction:async()=>{await a.redirectToHome()}})}const Cq=RC("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);function Dq(e){let{onSuccess:t,onCancel:n}=e;const a=lg(),{t:r}=yw(),[i,s]=(0,o.useState)(""),l=(0,o.useRef)(null),[c,u]=(0,o.useState)(!1),[d,h]=(0,o.useState)(null),[p,f]=(0,o.useState)(!1),[m,g]=(0,o.useState)(null);(0,o.useEffect)(()=>{if(!m&&"undefined"!==typeof window){const e=window.sessionStorage.getItem("stack_mfa_attempt_code");e&&g(e)}},[m]),(0,o.useEffect)(()=>{if(6===i.length&&!c){if(document.activeElement instanceof HTMLElement&&document.activeElement.blur(),l.current){const e=l.current.querySelectorAll("input");for(const t of e)t.blur()}u(!0),h(null),m?a.signInWithMfa(i,m,{noRedirect:!0}).then(async e=>{if("ok"!==e.status)throw e.error;f(!0),"undefined"!==typeof window&&window.sessionStorage.removeItem("stack_mfa_attempt_code"),t?t():await a.redirectToAfterSignIn()}).catch(e=>{e instanceof so.InvalidTotpCode?h(r("Invalid TOTP code")):h(r("Verification failed"))}).finally(()=>{u(!1),p||s("")}):(u(!1),h(r("Missing verification information")))}0!==i.length&&6!==i.length&&h(null)},[i,c,t,m,a,r,p]);const v=(0,o.useMemo)(()=>p?"opacity-85 transition-all duration-300":d?"ring-red-500 border-red-500":"focus:ring-primary/50",[d,p]);return(0,_h.jsxs)("div",{className:"flex flex-col items-stretch stack-scope",children:[(0,_h.jsxs)("form",{ref:l,className:"w-full flex flex-col items-center gap-4",children:[(0,_h.jsx)(e_,{maxLength:6,type:"text",inputMode:"numeric",placeholder:"\xb7\xb7\xb7\xb7\xb7\xb7",value:i,onChange:e=>s(e.toUpperCase()),disabled:c||p,children:(0,_h.jsx)(t_,{children:[0,1,2,3,4,5].map(e=>(0,_h.jsx)(n_,{index:e,size:"lg",className:wh("border focus:ring-2 transition-all",v)},e))})}),(0,_h.jsxs)("div",{className:"h-8 flex flex-col gap-4 items-center justify-center w-full",children:[p?(0,_h.jsxs)("div",{className:"flex items-center gap-2 animate-in fade-in duration-300 slide-in-from-bottom-2",children:[(0,_h.jsx)(Cq,{className:"w-5 h-5 text-green-600 animate-in zoom-in duration-300"}),(0,_h.jsx)(Rh,{className:"text-sm font-medium",children:r("Verified! Redirecting...")})]}):c?(0,_h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_h.jsx)(Rv,{className:"text-primary h-4 w-4"}
2),(0,_h.jsx)(Rh,{className:"text-sm",children:r("Verifying...")})]}):null,null===d||c||p?null:(0,_h.jsx)(ww,{text:d})]})]}),n&&!p&&(0,_h.jsx)(Uv,{variant:"link",onClick:n,className:"underline mt-4 self-center",disabled:c||p,children:r("Cancel")})]})}function Aq(e){const{t:t}=yw(),n=t("Multi-Factor Authentication"),a=t("Enter the six-digit code from your authenticator app");return e.fullPage?(0,_h.jsx)(Aw,{fullPage:!0,children:(0,_h.jsxs)("div",{className:"stack-scope flex flex-col items-stretch",style:{maxWidth:"380px",flexBasis:"380px",padding:"1rem"},children:[(0,_h.jsxs)("div",{className:"text-center mb-6",children:[(0,_h.jsx)(Rh,{type:"h2",children:n}),(0,_h.jsx)(Rh,{className:"mt-2",children:a})]}),(0,_h.jsx)(Dq,{onSuccess:e.onSuccess,onCancel:e.onCancel})]})}):(0,_h.jsxs)("div",{className:"flex flex-col items-stretch stack-scope",children:[(0,_h.jsx)(Rh,{className:"mb-4 text-center",children:a}),(0,_h.jsx)(Dq,{onSuccess:e.onSuccess,onCancel:e.onCancel})]})}function Eq(e){let{fullPage:t}=e;const{t:n}=yw(),a=lg(),r=(0,o.useRef)(!1),[i,s]=(0,o.useState)(null),[l,c]=(0,o.useState)(!1);return(0,o.useEffect)(()=>rd(async()=>{if(r.current)return;r.current=!0;let e=!1;try{e=await a.callOAuthCallback()}catch(oL){gn("<OAuthCallback />",oL),s(oL)}e||await a.redirectToSignIn({noRedirectBack:!0})}),[]),(0,o.useEffect)(()=>{setTimeout(()=>c(!0),3e3)},[]),(0,_h.jsx)(Aw,{fullPage:null!==t&&void 0!==t&&t,containerClassName:"flex items-center justify-center",children:(0,_h.jsxs)("div",{className:wh("text-center justify-center items-center stack-scope flex flex-col gap-4 max-w-[380px]",t?"p-4":"p-0"),children:[(0,_h.jsx)("div",{className:"flex flex-col justify-center items-center gap-4",children:(0,_h.jsx)(Rv,{size:20})}),l?(0,_h.jsxs)("p",{children:[n("If you are not redirected automatically, "),(0,_h.jsx)(xw,{className:"whitespace-nowrap",href:a.urls.home,children:n("click here")})]}):null,i?(0,_h.jsxs)("div",{children:[(0,_h.jsx)("p",{children:n("Something went wrong while processing the OAuth callback:")}),(0,_h.jsx)("pre",{children:JSON.stringify(i,null,2)}),(0,_h.jsx)("p",{children:n("This is most likely an error in Stack. Please report it.")})]}):null]})})}function jq(e){const{t:t}=yw(),n=lg(),a=sg({or:"return-null",includeRestricted:!0});if(a&&!a.isRestricted)return rd(n.redirectToAfterSignIn()),null;if(!a||a.isAnonymous)return rd(n.redirectToSignIn()),null;const r=a.restrictedReason;if("email_not_verified"===(null===r||void 0===r?void 0:r.type)){return!!a.primaryEmail?(0,_h.jsx)(Nq,{user:a,email:a.primaryEmail,fullPage:e.fullPage}):(0,_h.jsx)(Sq,{fullPage:e.fullPage})}return(0,_h.jsx)(i_,{title:t("Complete your account setup"),fullPage:!!e.fullPage,secondaryButtonText:t("Sign out"),secondaryAction:async()=>{await a.signOut()},children:(0,_h.jsx)("p",{children:t("You have not yet completed your account setup. Please reach out to support if you believe this is an error.")})})}function Sq(e){const{t:t}=yw(),n=sg({or:"throw",includeRestricted:!0}),[a,r]=(lg(),(0,o.useState)(!1)),i=gs({email:Ns(t("Please enter a valid email address")).defined().nonEmpty(t("Email is required"))}),{register:s,handleSubmit:l,formState:{errors:c}}=mw({resolver:Ag(i)}),u=async t=>{r(!0);try{var a;await n.update({primaryEmail:t.email}),null===(a=e.onEmailAdded)||void 0===a||a.call(e)}finally{r(!1)}};return(0,_h.jsxs)(i_,{title:t("Add your email address"),fullPage:!!e.fullPage,secondaryButtonText:t("Sign out"),secondaryAction:async()=>{await n.signOut()},children:[(0,_h.jsx)(Rh,{className:"mb-4",children:t("Please add an email address to complete your account setup. We'll send you a verification email.")}),(0,_h.jsxs)("form",{onSubmit:e=>ad(l(u)(e)),noValidate:!0,className:"flex flex-col gap-2",children:[(0,_h.jsx)(Jg,p(p({},s("email")),{},{placeholder:t("Enter your email"),type:"email"})),c.email&&(0,_h.jsx)(ww,{text:c.email.message}),(0,_h.jsx)(Uv,{type:"submit",loading:a,className:"w-full",children:t("Continue")})]})]})}function Nq(e){const{t:t}=yw(),{user:n,email:a}=e,[r,i]=(0,o.useState)(!1);return r?(0,_h.jsx)(Sq,{fullPage:e.fullPage,onEmailAdded:()=>i(!1)}):(0,_h.jsx)(i_,{title:t("Please check your email inbox"),fullPage:!!e.fullPage,primaryButtonText:t("Resend verification email"),primaryAction:async()=>{await n.sendVerificationEmail()},secondaryButtonText:t("Sign out"),secondaryAction:async()=>{await n.signOut()},children:(0,_h.jsxs)(Rh,{children:[t("Please verify your email address "),(0,_h.jsx)("span",{className:"font-semibold",children:a})," (",(0,_h.jsx)("button",{type:"button",className:"text-primary hover:underline",onClick:()=>i(!0),children:t("change")}),"). ",t("Click the button below to resend the verification link.")]})})}function Pq(e){var t,n;const{t:a}=yw(),r=gs({password:ks.defined(a("Please enter your password")).nonEmpty(a("Please enter your password")).test({name:"is-valid-password",test:(e,t)=>
2{const n=kw(e);return!n||t.createError({message:n.message})}}),passwordRepeat:cs().nullable().oneOf([$o("password"),null],a("Passwords do not match")).defined().nonEmpty(a("Please repeat your password"))}),{register:i,handleSubmit:s,formState:{errors:l},clearErrors:c}=mw({resolver:Ag(r)}),u=lg(),[d,h]=(0,o.useState)(!1),[f,m]=(0,o.useState)(!1),[g,v]=(0,o.useState)(!1),y=async t=>{v(!0);try{const{password:n}=t;if("error"===(await u.resetPassword({password:n,code:e.code})).status)return void m(!0);h(!0)}finally{v(!1)}};return d?(0,_h.jsx)(s_,{type:"passwordReset",fullPage:!!e.fullPage}):f?(0,_h.jsx)(i_,{title:a("Failed to reset password"),fullPage:!!e.fullPage,children:a("Failed to reset password. Please request a new password reset link")}):(0,_h.jsx)(Aw,{fullPage:!!e.fullPage,children:(0,_h.jsxs)("div",{className:wh("flex flex-col items-stretch max-w-[380px] flex-basis-[380px]",e.fullPage?"p-4":"p-0"),children:[(0,_h.jsx)("div",{className:"text-center mb-6",children:(0,_h.jsx)(Rh,{type:"h2",children:a("Reset Your Password")})}),(0,_h.jsxs)("form",{className:"flex flex-col items-stretch",onSubmit:e=>ad(s(y)(e)),noValidate:!0,children:[(0,_h.jsx)(Kg,{htmlFor:"password",className:"mb-1",children:a("New Password")}),(0,_h.jsx)(qv,p(p({id:"password",autoComplete:"new-password"},i("password")),{},{onChange:()=>{c("password"),c("passwordRepeat")}})),(0,_h.jsx)(ww,{text:null===(t=l.password)||void 0===t||null===(t=t.message)||void 0===t?void 0:t.toString()}),(0,_h.jsx)(Kg,{htmlFor:"repeat-password",className:"mt-4 mb-1",children:a("Repeat New Password")}),(0,_h.jsx)(qv,p(p({id:"repeat-password",autoComplete:"new-password"},i("passwordRepeat")),{},{onChange:()=>{c("password"),c("passwordRepeat")}})),(0,_h.jsx)(ww,{text:null===(n=l.passwordRepeat)||void 0===n||null===(n=n.message)||void 0===n?void 0:n.toString()}),(0,_h.jsx)(Uv,{type:"submit",className:"mt-6",loading:g,children:a("Reset Password")})]})]})})}var Tq=Sf(async(e,t)=>await e.verifyPasswordResetCode(t));function Fq(e){let{searchParams:t,fullPage:n=!1}=e;const{t:a}=yw(),r=lg(),o=(0,_h.jsx)(i_,{title:a("Invalid Password Reset Link"),fullPage:n,children:(0,_h.jsx)(Rh,{children:a("Please double check if you have the correct password reset link.")})}),i=(0,_h.jsx)(i_,{title:a("Expired Password Reset Link"),fullPage:n,children:(0,_h.jsx)(Rh,{children:a("Your password reset link has expired. Please request a new password reset link from the login page.")})}),s=(0,_h.jsx)(i_,{title:a("Used Password Reset Link"),fullPage:n,children:(0,_h.jsx)(Rh,{children:a("This password reset link has already been used. If you need to reset your password again, please request a new password reset link from the login page.")})}),l=t.code;if(!l)return o;const c=Dh(Tq(r,l));if("error"===c.status){if(so.VerificationCodeNotFound.isInstance(c.error))return o;if(so.VerificationCodeExpired.isInstance(c.error))return i;if(so.VerificationCodeAlreadyUsed.isInstance(c.error))return s;throw c.error}return(0,_h.jsx)(Pq,{code:l,fullPage:n})}var Oq=Sf(async e=>await e.signOut());function Iq(e){const t=sg();return t&&Dh(Oq(t)),(0,_h.jsx)(s_,{type:"signedOut",fullPage:e.fullPage})}var Rq=Sf(async(e,t)=>await e.verifyTeamInvitationCode(t)),Mq=Sf(async(e,t)=>await e.getTeamInvitationDetails(t));function Bq(e){const{t:t}=yw(),n=lg(),[a,r]=o.useState(!1),[i,s]=o.useState(null),l=Dh(Mq(n,e.searchParams.code||""));return i||"error"===l.status?(0,_h.jsx)(s_,{type:"unknownError",fullPage:e.fullPage}):a?(0,_h.jsx)(i_,{title:t("Team invitation"),fullPage:e.fullPage,primaryButtonText:"Go home",primaryAction:()=>n.redirectToHome(),children:(0,_h.jsxs)(Rh,{children:["You have successfully joined ",l.data.teamDisplayName]})}):(0,_h.jsx)(i_,{title:t("Team invitation"),fullPage:e.fullPage,primaryButtonText:t("Join"),primaryAction:()=>ad(async()=>{const t=await n.acceptTeamInvitation(e.searchParams.code||"");"error"===t.status?s(t.error.message):r(!0)}),secondaryButtonText:t("Ignore"),secondaryAction:()=>n.redirectToHome(),children:(0,_h.jsxs)(Rh,{children:["You are invited to join ",l.data.teamDisplayName]})})}function zq(e){let{fullPage:t=!1,searchParams:n}=e;const{t:a}=yw(),r=sg({includeRestricted:!0}),o=lg(),i=(0,_h.jsx)(i_,{title:a("Invalid Team Invitation Link"),fullPage:t,children:(0,_h.jsx)(Rh,{children:a("Please double check if you have the correct team invitation link.")})}),s=(0,_h.jsx)(i_,{title:a("Expired Team Invitation Link"),fullPage:t,children:(0,_h.jsx)(Rh,{children:a("Your team invitation link has expired. Please request a new team invitation link ")})}),l=(0,_h.jsx)(i_,{title:a("Used Team Invitation Link"),fullPage:t,children:(0,_h.jsx)(Rh,{children:a("This team invitation link has already been used.")})});if(!n.code)return i;if(!r)return(0,_h.jsx)(i_,{title:a("Team invitation"),fullPage:t,primaryButtonText:a("Sign in"),primaryAction:()=>o.redirectToSignIn(),secondaryButtonText:a("Cancel"),secondaryAction:()=>o.redirectToHome(),children:(0,_h.jsx)(Rh,{children:a("Sign in or create an account to join the team.")})});if(r.isRestricted)return(0,_h.jsx)(i_,{title:a("Complete your account setup"),fullPage:t,primaryButtonText:a("Complete setup"),primaryAction:()=>o.redirectToOnboarding(),secondaryButtonText:a("Cancel"),secondaryAction:()=>o.redirectToHome(),children:(0,_h.jsx)(Rh,{children:a("Please complete your account setup before joining teams.")})});const c=Dh(Rq(o,n.code||""));if("error"===c.status){const e=c.error;if(so.VerificationCodeNotFound.isInstance(e))return i;if(so.VerificationCodeExpired.isInstance(e))return s;if(so.VerificationCodeAlreadyUsed.isInstance(e))return l;throw e}return(0,_h.jsx)(Bq,{fullPage:t,searchParams:n})}var Lq={signIn:"sign-in",signUp:"sign-up",emailVerification:"email-verification",passwordReset:"password-reset",forgotPassword:"forgot-password",signOut:"sign-out",oauthCallback:"oauth-callback",magicLinkCallback:"magic-link-callback",teamInvitation:"team-invitation",accountSettings:"account-settings",cliAuthConfirm:"cli-auth-confirm",mfa:"mfa",error:"error",onboarding:"onboarding"},Uq=p(p({},Object.fromEntries(Object.entries(Lq).map(e=>{let[t,n]=e;return[n,n]}))),{},{"log-in":Lq.signIn,register:Lq.signUp});function Vq(e){var t;const n=lg(),a=null!==(t=e.location)&&void 0!==t?t:window.location.pathname,r=new URLSearchParams(window.location.search),{path:i,searchParams:s}=(0,o.useMemo)(()=>{const e=new URL(n.urls.handler,"http://example.com").pathname;return{path:a.startsWith(e)?a.slice(e.length).replace(/^\/+/,""):a.replace(/^\/+/,""),searchParams:Object.fromEntries(r.entries())}},[a,r,n.urls.handler]),l=function(e){const{path:t,searchParams:n,fullPage:a,componentProps:r,redirectIfNotHandler:o,onNotFound:i,app:s}=e;switch(t){case Lq.signIn:return null===o||void 0===o||o("signIn"),(0,_h.jsx)(VC,p({fullPage:a,automaticRedirect:!0},qq(null===r||void 0===r?void 0:r.SignIn)));case Lq.signUp:return null===o||void 0===o||o("signUp"),(0,_h.jsx)(qC,p({fullPage:a,automaticRedirect:!0},qq(null===r||void 0===r?void 0:r.SignUp)));case Lq.emailVerification:return null===o||void 0===o||o("emailVerification"),(0,_h.jsx)(yq,p({searchParams:n,fullPage:a},qq(null===r||void 0===r?void 0:r.EmailVerification)));case Lq.passwordReset:return null===o||void 0===o||o("passwordReset"),(0,_h.jsx)(Fq,p({searchParams:n,fullPage:a},qq(null===r||void 0===r?void 0:r.PasswordReset)));case Lq.forgotPassword:return null===o||void 0===o||o("forgotPassword"),(0,_h.jsx)(bq,p({fullPage:a},qq(null===r||void 0===r?void 0:r.ForgotPassword)));case Lq.signOut:return null===o||void 0===o||o("signOut"),(0,_h.jsx)(Iq,p({fullPage:a},qq(null===r||void 0===r?void 0:r.SignOut)));case Lq.oauthCallback:return null===o||void 0===o||o("oauthCallback"),(0,_h.jsx)(Eq,p({fullPage:a},qq(null===r||void 0===r?void 0:r.OAuthCallback)));case Lq.magicLinkCallback:return null===o||void 0===o||o("magicLinkCallback"),(0,_h.jsx)(kq,p({searchParams:n,fullPage:a},qq(null===r||void 0===r?void 0:r.MagicLinkCallback)));case Lq.teamInvitation:return null===o||void 0===o||o("teamInvitation"),(0,_h.jsx)(zq,p({searchParams:n,fullPage:a},qq(null===r||void 0===r?void 0:r.TeamInvitation)));case Lq.accountSettings:return(0,_h.jsx)(lq,p({fullPage:a},qq(null===r||void 0===r?void 0:r.AccountSettings)));case Lq.error:return(0,_h.jsx)(_q,p({searchParams:n,fullPage:a},qq(null===r||void 0===r?void 0:r.ErrorPage)));case Lq.cliAuthConfirm:return(0,_h.jsx)(vq,p({fullPage:a},qq(null===r||void 0===r?void 0:r.CliAuthConfirmation)));case Lq.mfa:return null===o||void 0===o||o("mfa"),(0,_h.jsx)(Aq,p({fullPage:a},qq(null===r||void 0===r?void 0:r.MFA)));case Lq.onboarding:return null===o||void 0===o||o("onboarding"),(0,_h.jsx)(jq,p({fullPage:a},qq(null===r||void 0===r?void 0:r.Onboarding)));default:if(Object.values(Lq).includes(t))throw new hn("Path alias ".concat(t," not included in switch statement, but in availablePaths?"),{availablePaths:Lq});for(const[e,a]of Object.entries(Uq))if(t.toLowerCase().replaceAll("-","")===e.toLowerCase().replaceAll("-",""))return{redirect:"".concat(s.urls.handler,"/").concat(a,"?").concat(new 
2URLSearchParams(n).toString())};return i()}}({path:i,searchParams:s,fullPage:e.fullPage,componentProps:e.componentProps,redirectIfNotHandler:e=>{const t=n.urls[e],a=n.urls.handler;if(t!==a&&t.startsWith(a+"/"))return;const r=new URL(t,"http://example.com");for(const[n,o]of Object.entries(s))r.searchParams.set(n,o);window.location.href=bd(r)},onNotFound:()=>(0,_h.jsx)(i_,{title:"Page does not exist",fullPage:e.fullPage,primaryButtonText:"Go to Home",primaryAction:()=>n.redirectToHome(),children:"The page you are looking for could not be found. Please check the URL and try again."}),app:n});return l&&"redirect"in l?(window.location.href=l.redirect,null):l}function qq(e){return void 0===e?e:on(e)}const Hq=["app","routeProps","params","searchParams"];function Wq(e){let{app:t,routeProps:n,params:a,searchParams:r}=e,o=l(e,Hq);return(0,_h.jsx)(Vq,p({},o))}var Kq=new Map(an({"-":"__stack-auto-translation-0","A command line application is requesting access to your account. Click the button below to authorize it.":"__stack-auto-translation-1","Account settings":"__stack-auto-translation-2","Account Settings":"__stack-auto-translation-3","Active plans":"__stack-auto-translation-4","Active Sessions":"__stack-auto-translation-5",Add:"__stack-auto-translation-6","Add a payment method before switching plans.":"__stack-auto-translation-7","Add an email":"__stack-auto-translation-8","Add new passkey":"__stack-auto-translation-9","Add your email address":"__stack-auto-translation-10","Already have an account?":"__stack-auto-translation-11",Amount:"__stack-auto-translation-12","An unknown error occurred":"__stack-auto-translation-13","API Key":"__stack-auto-translation-14","API Keys":"__stack-auto-translation-15","API keys grant programmatic access to your account.":"__stack-auto-translation-16","API keys grant programmatic access to your team.":"__stack-auto-translation-17","Are you sure you want to delete your account? This action is IRREVERSIBLE and will delete ALL associated data.":"__stack-auto-translation-18","Are you sure you want to disable OTP sign-in? You will not be able to sign in with only emails anymore.":"__stack-auto-translation-19","Are you sure you want to disable Passkey sign-in? You will not be able to sign in with your passkey anymore.":"__stack-auto-translation-20","Are you sure you want to leave the team?":"__stack-auto-translation-21","Authorization Failed":"__stack-auto-translation-22",Authorize:"__stack-auto-translation-23","Authorize CLI Application":"__stack-auto-translation-24","Authorizing...":"__stack-auto-translation-25",Cancel:"__stack-auto-translation-26","Cancel subscription":"__stack-auto-translation-27","Canceling will stop future renewals for this subscription.":"__stack-auto-translation-28",change:"__stack-auto-translation-29","Change plan":"__stack-auto-translation-30","Change the display name of your team":"__stack-auto-translation-31","Choose a plan":"__stack-auto-translation-32","Choose which emails you want to receive":"__stack-auto-translation-33","CLI Authorization Successful":"__stack-auto-translation-34","click here":"__stack-auto-translation-35","Click the button below to resend the verification link.":"__stack-auto-translation-36",Close:"__stack-auto-translation-37","Complete setup":"__stack-auto-translation-38","Complete your account setup":"__stack-auto-translation-39",Confirm:"__stack-auto-translation-40",Continue:"__stack-auto-translation-41","Copy it to a safe place. You will not be able to view it again.":"__stack-auto-translation-42","Could not crop image.":"__stack-auto-translation-43",Create:"__stack-auto-translation-44","Create a new account":"__stack-auto-translation-45","Create a team":"__stack-auto-translation-46","Create a Team":"__stack-auto-translation-47","Create API Key":"__stack-auto-translation-48","Credits pack":"__stack-auto-translation-49","Current Session":"__stack-auto-translation-50","Current team":"__stack-auto-translation-51","Danger zone":"__stack-auto-translation-52",Date:"__stack-auto-translation-53","Delete account":"__stack-auto-translation-54","Delete Account":"__stack-auto-translation-55","Delete Passkey":"__stack-auto-translation-56",Description:"__stack-auto-translation-57","Description is required":"__stack-auto-translation-58",Disable:"__stack-auto-translation-59","Disable MFA":"__stack-auto-translation-60","Disable OTP":"__stack-auto-translation-61","Display name":"__stack-auto-translation-62","Do you want to sign in?":"__stack-auto-translation-63","Do you want to verify your email?":"__stack-auto-translation-64","Don't have an account?":"__stack-auto-translation-65","Don't need to reset?":"__stack-auto-translation-66",Draft:"__stack-auto-translation-67","e.g. Development, Production, CI/CD":"__stack-auto-translation-68",Email:"__stack-auto-translation-69","Email & Password":"__stack-auto-translation-70","Email already exists":"__stack-auto-translation-71","Email is required":"__stack-auto-translation-72","Email management is not available in demo mode.":"__stack-auto-translation-73","Email sent!":"__stack-auto-translation-74",Emails:"__stack-auto-translation-75","Emails & Auth":"__stack-auto-translation-76","Enable MFA":"__stack-auto-translation-77","Enable OTP":"__stack-auto-translation-78","Enable sign-in via magic link or OTP sent to your sign-in emails.":"__stack-auto-translation-79","End your current session":"__stack-auto-translation-80","Enter a display name for your new team":"__stack-auto-translation-81","Enter email":"__stack-auto-translation-82","Enter the code from your email":"__stack-auto-translation-83","Enter the six-digit code from your authenticator app":"__stack-auto-translation-84","Enter your email":"__stack-auto-translation-85","Expired Magic Link":"__stack-auto-translation-86","Expired Password Reset Link":"__stack-auto-translation-87","Expired Team Invitation Link":"__stack-auto-translation-88","Expired Verification Link":"__stack-auto-translation-89",Expires:"__stack-auto-translation-90","Expires In":"__stack-auto-translation-91","Failed to authorize the CLI application:":"__stack-auto-translation-92","Failed to connect account":"__stack-auto-translation-93","Failed to reset password":"__stack-auto-translation-94","Failed to reset password. Please request a new password reset link":"__stack-auto-translation-95","Forgot password?":"__stack-auto-translation-96","Go home":"__stack-auto-translation-97","Go Home":"__stack-auto-translation-98","Here is your API key.":"__stack-auto-translation-99","I understand that I will not be able to view this key again.":"__stack-auto-translation-100","If the user with this e-mail address exists, an e-mail was sent to your inbox. Make sure to check your spam folder.":"__stack-auto-translation-101","If you are not redirected automatically, ":"__stack-auto-translation-102",Ignore:"__stack-auto-translation-103",Impersonation:"__stack-auto-translation-104","Incorrect code. Please try again.":"__stack-auto-translation-105","Incorrect password":"__stack-auto-translation-106","Invalid code":"__stack-auto-translation-107","Invalid image":"__stack-auto-translation-108","Invalid Magic Link":"__stack-auto-translation-109","Invalid Password Reset Link":"__stack-auto-translation-110","Invalid Team Invitation Link":"__stack-auto-translation-111","Invalid TOTP code":"__stack-auto-translation-112","Invalid Verification Link":"__stack-auto-translation-113","Invite a user to your team through email":"__stack-auto-translation-114","Invite member":"__stack-auto-translation-115","Invite User":"__stack-auto-translation-116",Invoice:"__stack-auto-translation-117",Invoices:"__stack-auto-translation-118","IP Address":"__stack-auto-translation-119",Join:"__stack-auto-translation-120","Last used":"__stack-auto-translation-121",Leave:"__stack-auto-translation-122","Leave team":"__stack-auto-translation-123","Leave Team":"__stack-auto-translation-124","leave this team and remove your team profile":"__stack-auto-translation-125",Location:"__stack-auto-translation-126","Magic Link Already Used":"__stack-auto-translation-127","Manage the default payment method used for subscriptions and invoices.":"__stack-auto-translation-128",Members:"__stack-auto-translation-129","MFA management is not available in demo mode.":"__stack-auto-translation-130","Missing verification information":"__stack-auto-translation-131","Multi-factor authentication":"__stack-auto-translation-132","Multi-Factor Authentication":"__stack-auto-translation-133","Multi-factor authentication is currently disabled.":"__stack-auto-translation-134","Multi-factor authentication is currently enabled.":"__stack-auto-translation-135","My Profile":"__stack-auto-translation-136",Name:"__stack-auto-translation-137",Never:"__stack-auto-translation-138","New account registration is not allowed":"__stack-auto-translation-139","New password":"__stack-auto-translation-140","New Password":"__stack-auto-translation-141","No active sessions foun
2d":"__stack-auto-translation-142","No authentication method enabled.":"__stack-auto-translation-143","No default payment method":"__stack-auto-translation-144","No display name set":"__stack-auto-translation-145","No other plans available for this subscription.":"__stack-auto-translation-146","No outstanding invitations":"__stack-auto-translation-147","No team":"__stack-auto-translation-148","No teams yet":"__stack-auto-translation-149","Not signed in":"__stack-auto-translation-150",Notifications:"__stack-auto-translation-151","OAuth provider access denied":"__stack-auto-translation-152","Old password":"__stack-auto-translation-153","One-Time Password":"__stack-auto-translation-154","One-time purchase":"__stack-auto-translation-155",Open:"__stack-auto-translation-156","Or continue with":"__stack-auto-translation-157","Other Session":"__stack-auto-translation-158","Other teams":"__stack-auto-translation-159","OTP management is not available in demo mode.":"__stack-auto-translation-160","OTP sign-in":"__stack-auto-translation-161","OTP sign-in is enabled and cannot be disabled as it is currently the only sign-in method":"__stack-auto-translation-162","OTP/magic link sign-in is currently enabled.":"__stack-auto-translation-163","Outstanding invitations":"__stack-auto-translation-164","Overwrite your user display name in this team":"__stack-auto-translation-165",Paid:"__stack-auto-translation-166",Passkey:"__stack-auto-translation-167","Passkey management is not available in demo mode.":"__stack-auto-translation-168","Passkey registered":"__stack-auto-translation-169","Passkey sign-in is enabled and cannot be disabled as it is currently the only sign-in method":"__stack-auto-translation-170",Password:"__stack-auto-translation-171","Password management is not available in demo mode.":"__stack-auto-translation-172","Password reset successfully!":"__stack-auto-translation-173","Passwords do not match":"__stack-auto-translation-174","Payment method":"__stack-auto-translation-175",Payments:"__stack-auto-translation-176","Permanently remove your account and all associated data":"__stack-auto-translation-177",Personal:"__stack-auto-translation-178","Please add an email address to complete your account setup. We'll send you a verification email.":"__stack-auto-translation-179","Please check if you have the correct link. If you continue to have issues, please contact support.":"__stack-auto-translation-180","Please check your email inbox":"__stack-auto-translation-181","Please complete your account setup before joining teams.":"__stack-auto-translation-182","Please double check if you have the correct password reset link.":"__stack-auto-translation-183","Please double check if you have the correct team invitation link.":"__stack-auto-translation-184","Please enter a team name":"__stack-auto-translation-185","Please enter a valid email":"__stack-auto-translation-186","Please enter a valid email address":"__stack-auto-translation-187","Please enter an email address":"__stack-auto-translation-188","Please enter your email":"__stack-auto-translation-189","Please enter your old password":"__stack-auto-translation-190","Please enter your password":"__stack-auto-translation-191","Please repeat your password":"__stack-auto-translation-192","Please try again and if the problem persists, contact support.":"__stack-auto-translation-193","Please verify your email address ":"__stack-auto-translation-194","Please verify your email first":"__stack-auto-translation-195",Primary:"__stack-auto-translation-196",Pro:"__stack-auto-translation-197","Profile image":"__stack-auto-translation-198","Register a passkey":"__stack-auto-translation-199",Remove:"__stack-auto-translation-200","Renews on":"__stack-auto-translation-201","Repeat new password":"__stack-auto-translation-202","Repeat New Password":"__stack-auto-translation-203","Repeat Password":"__stack-auto-translation-204","Resend verification email":"__stack-auto-translation-205","Reset Password":"__stack-auto-translation-206","Reset Your Password":"__stack-auto-translation-207","Review past invoices and receipts.":"__stack-auto-translation-208",Revoke:"__stack-auto-translation-209","Revoke All Other Sessions":"__stack-auto-translation-210",Save:"__stack-auto-translation-211","Scan this QR code with your authenticator app:":"__stack-auto-translation-212","Secret API Key":"__stack-auto-translation-213","Select a new plan from the same product line.":"__stack-auto-translation-214","Send email":"__stack-auto-translation-215","Send Email":"__stack-auto-translation-216","Send verification email":"__stack-auto-translation-217",Session:"__stack-auto-translation-218","Set a password for your account":"__stack-auto-translation-219","Set as primary":"__stack-auto-translation-220","Set password":"__stack-auto-translation-221","Set Password":"__stack-auto-translation-222",Settings:"__stack-auto-translation-223","Sign in":"__stack-auto-translation-224","Sign In":"__stack-auto-translation-225","Sign in again":"__stack-auto-translation-226","Sign in or create an account to join the team.":"__stack-auto-translation-227","Sign in to your account":"__stack-auto-translation-228","Sign in with Passkey":"__stack-auto-translation-229","Sign in with {provider}":"__stack-auto-translation-230","Sign out":"__stack-auto-translation-231","Sign up":"__stack-auto-translation-232","Sign Up":"__stack-auto-translation-233","Sign up for new users is not enabled at the moment.":"__stack-auto-translation-234","Sign up with Passkey":"__stack-auto-translation-235","Sign up with {provider}":"__stack-auto-translation-236","Signed in successfully!":"__stack-auto-translation-237","Signed in {time}":"__stack-auto-translation-238","Something went wrong while processing the OAuth callback:":"__stack-auto-translation-239",Status:"__stack-auto-translation-240","Stop using for sign-in":"__stack-auto-translation-241",Subscription:"__stack-auto-translation-242","Switch plan":"__stack-auto-translation-243","Team creation is disabled in demo mode":"__stack-auto-translation-244","Team creation is not enabled":"__stack-auto-translation-245","Team display name":"__stack-auto-translation-246","Team invitation":"__stack-auto-translation-247","Team profile image":"__stack-auto-translation-248","Team user name":"__stack-auto-translation-249",Teams:"__stack-auto-translation-250","The CLI application has been authorized successfully. You can close this window and return to the command line.":"__stack-auto-translation-251","The magic link has already been used. The link can only be used once. Please request a new magic link if you need to sign-in again.":"__stack-auto-translation-252","The sign-in operation has been cancelled or denied. Please try again.":"__stack-auto-translation-253","The user is already connected to another OAuth account. Did you maybe selected the wrong account on the OAuth provider page?":"__stack-auto-translation-254","Then, enter your six-digit MFA co
2de:":"__stack-auto-translation-255","These are devices where you're currently logged in. You can revoke access to end a session.":"__stack-auto-translation-256","This account is already connected to another user. Please connect a different account.":"__stack-auto-translation-257","This email is already used for sign-in by another user.":"__stack-auto-translation-258","This is a display name and is not used for authentication":"__stack-auto-translation-259","This is most likely an error in Stack. Please report it.":"__stack-auto-translation-260","This password reset link has already been used. If you need to reset your password again, please request a new password reset link from the login page.":"__stack-auto-translation-261","This team invitation link has already been used.":"__stack-auto-translation-262","To enable OTP sign-in, please add a verified sign-in email.":"__stack-auto-translation-263","To enable Passkey sign-in, please add a verified sign-in email.":"__stack-auto-translation-264","To set a password, please add a sign-in email.":"__stack-auto-translation-265","Toggle theme":"__stack-auto-translation-266","TOTP multi-factor authentication QR code":"__stack-auto-translation-267","Try Again":"__stack-auto-translation-268",Unavailable:"__stack-auto-translation-269",Uncollectible:"__stack-auto-translation-270",Unknown:"__stack-auto-translation-271",Unverified:"__stack-auto-translation-272","Update password":"__stack-auto-translation-273","Update Password":"__stack-auto-translation-274","Update payment method":"__stack-auto-translation-275","Update your password":"__stack-auto-translation-276","Upload an image for your team":"__stack-auto-translation-277","Upload your own image as your avatar":"__stack-auto-translation-278","Use for sign-in":"__stack-auto-translation-279","Used for sign-in":"__stack-auto-translation-280","Used Password Reset Link":"__stack-auto-translation-281","Used Team Invitation Link":"__stack-auto-translation-282",User:"__stack-auto-translation-283","User name":"__stack-auto-translation-284","Verification failed":"__stack-auto-translation-285","Verified! Redirecting...":"__stack-auto-translation-286",Verify:"__stack-auto-translation-287","Verifying...":"__stack-auto-translation-288",View:"__stack-auto-translation-289","View your active plans and purchases.":"__stack-auto-translation-290",Void:"__stack-auto-translation-291","WARNING: Make sure you trust the command line application, as it will gain access to your account. If you did not initiate this request, you can close this page and ignore it. We will never send you this link via email or any other means.":"__stack-auto-translation-292","You are already signed in":"__stack-auto-translation-293","You are not currently signed in.":"__stack-auto-translation-294","You can not remove your last sign-in email":"__stack-auto-translation-295","You cannot revoke your current session":"__stack-auto-translation-296","You email has been verified!":"__stack-auto-translation-297","You have not yet completed your account setup. Please reach out to support if you believe this is an error.":"__stack-auto-translation-298","Your Email":"__stack-auto-translation-299","Your email verification link has expired. Please request a new verification link from your account settings.":"__stack-auto-translation-300","Your magic link has expired. Please request a new magic link if you need to sign-in.":"__stack-auto-translation-301","Your password has been reset. You can now sign in with your new password.":"__stack-auto-translation-302","Your password reset link has expired. Please request a new password reset link from the login page.":"__stack-auto-translation-303","Your team invitation link has expired. Please request a new team invitation link ":"__stack-auto-translation-304"})),Yq=new Map(an({"de-DE":new Map(an({"__stack-auto-translation-0":"-","__stack-auto-translation-1":"Eine Befehlszeilenanwendung fordert Zugriff auf Ihr Konto an. Klicken Sie unten auf die Schaltfl\xe4che, um sie zu autorisieren.","__stack-auto-translation-10":"E-Mail-Adresse hinzuf\xfcgen","__stack-auto-translation-100":"Ich verstehe, dass ich diesen Schl\xfcssel nicht erneut einsehen kann.","__stack-auto-translation-101":"Wenn der Benutzer mit dieser E-Mail-Adresse existiert, wurde eine E-Mail an Ihren Posteingang gesendet. \xdcberpr\xfcfen Sie auch Ihren 
2Spam-Ordner.","__stack-auto-translation-102":"Wenn Sie nicht automatisch weitergeleitet werden, ","__stack-auto-translation-103":"Ignorieren","__stack-auto-translation-104":"Identit\xe4tswechsel","__stack-auto-translation-105":"Falscher Code. Bitte versuchen Sie es erneut.","__stack-auto-translation-106":"Falsches Passwort","__stack-auto-translation-107":"Ung\xfcltiger Code","__stack-auto-translation-108":"Ung\xfcltiges Bild","__stack-auto-translation-109":"Ung\xfcltiger Magic Link","__stack-auto-translation-11":"Haben Sie bereits ein Konto?","__stack-auto-translation-110":"Ung\xfcltiger Link zum Zur\xfccksetzen des Passworts","__stack-auto-translation-111":"Ung\xfcltiger Team-Einladungslink","__stack-auto-translation-112":"Ung\xfcltiger TOTP-Code","__stack-auto-translation-113":"Ung\xfcltiger Verifizierungslink","__stack-auto-translation-114":"Laden Sie einen Benutzer per E-Mail in Ihr Team ein","__stack-auto-translation-115":"Mitglied einladen","__stack-auto-translation-116":"Benutzer einladen","__stack-auto-translation-117":"Rechnung","__stack-auto-translation-118":"Rechnungen","__stack-auto-translation-119":"IP-Adresse","__stack-auto-translation-12":"Betrag","__stack-auto-translation-120":"Beitreten","__stack-auto-translation-121":"Zuletzt verwendet","__stack-auto-translation-122":"Verlassen","__stack-auto-translation-123":"Team verlassen","__stack-auto-translation-124":"Team verlassen","__stack-auto-translation-125":"dieses Team verlassen und Ihr Teamprofil entfernen","__stack-auto-translation-126":"Standort","__stack-auto-translation-127":"Magic Link bereits verwendet","__stack-auto-translation-128":"Verwalten Sie die Standard-Zahlungsmethode f\xfcr Abonnements und Rechnungen.","__stack-auto-translation-129":"Mitglieder","__stack-auto-translation-13":"Ein unbekannter Fehler ist aufgetreten","__stack-auto-translation-130":"MFA-Verwaltung ist im Demo-Modus nicht verf\xfcgbar.","__stack-auto-translation-131":"Fehlende Verifizierungsinformationen","__stack-auto-translation-132":"Mehr-Faktor-Authentifizierung","__stack-auto-translation-133":"Mehr-Faktor-Authentifizierung","__stack-auto-translation-134":"Mehr-Faktor-Authentifizierung ist derzeit deaktiviert.","__stack-auto-translation-135":"Mehrfaktor-Authentifizierung ist derzeit aktiviert.","__stack-auto-translation-136":"Mein Profil","__stack-auto-translation-137":"Name","__stack-auto-translation-138":"Nie","__stack-auto-translation-139":"Neue Kontoregistrierung ist nicht erlaubt","__stack-auto-translation-14":"API-Schl\xfcssel","__stack-auto-translation-140":"Neues Passwort","__stack-auto-translation-141":"Neues Passwort","__stack-auto-translation-142":"Keine aktiven Sitzungen gefunden","__stack-auto-translation-143":"Keine Authentifizierungsmethode aktiviert.","__stack-auto-translation-144":"Keine Standard-Zahlungsmethode","__stack-auto-translation-145":"Kein Anzeigename festgelegt","__stack-auto-translation-146":"Keine weiteren Pl\xe4ne f\xfcr dieses Abonnement verf\xfcgbar.","__stack-auto-translation-147":"Keine ausstehenden Einladungen","__stack-auto-translation-148":"Kein Team","__stack-auto-translation-149":"Noch keine Teams","__stack-auto-translation-15":"API-Schl\xfcssel","__stack-auto-translation-150":"Nicht angemeldet","__stack-auto-translation-151":"Benachrichtigungen","__stack-auto-translation-152":"OAuth-Anbieter-Zugriff verweigert","__stack-auto-translation-153":"Altes Passwort","__stack-auto-translation-154":"Einmalpasswort","__stack-auto-translation-155":"Einmaliger Kauf","__stack-auto-translation-156":"Offen","__stack-auto-translation-157":"Oder fortfahren mit","__stack-auto-translation-158":"Andere Sitzung","__stack-auto-translation-159":"Andere Teams","__stack-auto-translation-16":"API-Schl\xfcssel gew\xe4hren programmatischen Zugriff auf Ihr Konto.","__stack-auto-translation-160":"OTP-Verwaltung ist im Demo-Modus nicht verf\xfcgbar.","__stack-auto-translation-161":"OTP-Anmeldung","__stack-auto-translation-162":"OTP-Anmeldung ist aktiviert und kann nicht deaktiviert werden, da es derzeit die einzige Anmeldemethode ist","__stack-auto-translation-163":"Die Anmeldung per OTP/magischem Link ist derzeit aktiviert.","__stack-auto-translation-164":"Ausstehende Einladungen","__stack-auto-translation-165":"\xdcberschreiben Sie Ihren Anzeigenamen in diesem Team","__stack-auto-translation-166":"Bezahlt","__stack-auto-translation-167":"Passkey","__stack-auto-translation-168":"Passkey-Verwaltung ist im Demo-Modus nicht verf\xfcgbar.","__stack-auto-translation-169":"Passkey registriert","__stack-auto-translation-17":"API-Schl\xfcssel gew\xe4hren programmatischen Zugriff auf Ihr Team.","__stack-auto-translation-170":"Passkey-Anmeldung ist aktiviert und kann nicht deaktiviert werden, da es derzeit die einzige Anmeldemethode ist","__stack-auto-translation-171":"Passwort","__stack-auto-translation-172":"Passwortverwaltung ist im Demo-Modus nicht verf\xfcgbar.","__stack-auto-translation-173":"Passwort erfolgreich zur\xfcckgesetzt!","__stack-auto-translation-174":"Passw\xf6rter stimmen nicht \xfcberein","__stack-auto-translation-175":"Zahlungsmethode","__stack-auto-translation-176":"Zahlungen","__stack-auto-translation-177":"L\xf6schen Sie Ihr Konto und alle zugeh\xf6rigen Daten dauerhaft","__stack-auto-translation-178":"Pers\xf6nlich","__stack-auto-translation-179":"Bitte f\xfcgen Sie eine E-Mail-Adresse hinzu, um Ihre Kontoeinrichtung abzuschlie\xdfen. Wir senden Ihnen eine Best\xe4tigungs-E-Mail.","__stack-auto-translation-18":"Sind Sie sicher, dass Sie Ihr Konto l\xf6schen m\xf6chten? Diese Aktion ist UNWIDERRUFLICH und l\xf6scht ALLE zugeh\xf6rigen Daten.","__stack-auto-translation-180":"Bitte \xfcberpr\xfcfen Sie, ob Sie den richtigen Link haben. Bei anhaltenden Problemen kontaktieren Sie bitte den Support.","__stack-auto-translation-181":"Bitte \xfcberpr\xfcfen Sie Ihren E-Mail-Posteingang","__stack-auto-translation-182":"Bitte schlie\xdfen Sie Ihre Kontoeinrichtung ab, bevor Sie Teams beitreten.","__stack-auto-translation-183":"Bitte \xfcberpr\xfcfen Sie, ob Sie den richtigen Link zum Zur\xfccksetzen des Passworts haben.","__stack-auto-translation-184":"Bitte \xfcberpr\xfcfen Sie, ob Sie den korrekten Teameinladungslink haben.","__stack-auto-translation-185":"Bitte geben Sie einen Teamnamen ein","__stack-auto-translation-186":"Bitte geben Sie eine g\xfcltige E-Mail-Adresse ein","__stack-auto-translation-187":"Bitte geben Sie eine g\xfcltige E-Mail-Adresse ein","__stack-auto-translation-188":"Bitte geben Sie eine E-Mail-Adresse ein","__stack-auto-translation-189":"Bitte geben Sie Ihre E-Mail-Adresse ein","__stack-auto-translation-19":"Sind Sie sicher, dass Sie die OTP-Anmeldung deaktivieren m\xf6chten? Sie k\xf6nnen sich dann nicht mehr nur mit E-Mails anmelden.","__stack-auto-translation-190":"Bitte geben Sie Ihr altes Passwort ein","__stack-auto-translation-191":"Bitte geben Sie Ihr Passwort ein","__stack-auto-translation-192":"Bitte wiederholen Sie Ihr Passwort","__stack-auto-translation-193":"Bitte versuchen Sie es erneut und kontaktieren Sie den Support, falls das Problem weiterhin besteht.","__stack-auto-translation-194":"Bitte best\xe4tigen Sie Ihre E-Mail-Adresse ","__stack-auto-translation-195":"Bitte verifizieren Sie zuerst Ihre E-Mail","__stack-auto-translation-196":"Prim\xe4r","__stack-auto-translation-197":"Pro","__stack-auto-translation-198":"Profilbild","__stack-auto-translation-199":"Passkey registrieren","__stack-auto-translation-2":"Kontoeinstellungen","__stack-auto-translation-20":"M\xf6chten Sie die Passkey-Anmeldung wirklich deaktivieren? Sie k\xf6nnen sich dann nicht mehr mit Ihrem Passkey anmelden.","__stack-auto-translation-200":"Entfernen","__stack-auto-translation-201":"Verl\xe4ngert am","__stack-auto-translation-202":"Neues Passwort wiederholen","__stack-auto-translation-203":"Neues Passwort wiederholen","__stack-auto-translation-204":"Passwort wiederholen","__stack-auto-translation-205":"Verifizierungs-E-Mail erneut senden","__stack-auto-translation-206":"Passwort zur\xfccksetzen","__stack-auto-translation-207":"Passwort zur\xfccksetzen","__stack-auto-translation-208":"Vergangene Rechnungen und Belege einsehen.","__stack-auto-translation-209":"Widerrufen","__stack-auto-translation-21":"Sind Sie sicher, dass Sie das Team verlassen m\xf6chten?","__stack-auto-translation-210":"Alle anderen Sitzungen widerrufen","__stack-auto-translation-211":"Speichern","__stack-auto-translation-212":"Scannen Sie diesen QR-Code mit Ihrer Authentifizierungs-App:","__stack-auto-translation-213":"Geheimer API-Schl\xfcssel","__stack-auto-translation-214":"W\xe4hlen Sie einen neuen Tarif aus derselben Produktlinie.","__stack-auto-translation-215":"E-Mail senden","__stack-auto-translation-216":"E-Mail senden","__stack-auto-translation-217":"E-Mail-Verifizierung senden","__stack-auto-translation-218":"Sitzung","__stack-auto-translation-219":"Legen Sie ein Passwort f\xfcr Ihr Konto fest","__stack-auto-translation-22":"Autorisierung fehlgeschlagen","__stack-auto-translation-220":"Als Prim\xe4r festlegen","__stack-auto-translation-221":"Passwort festlegen","__stack-auto-translation-222":"Passwort festlegen","__stack-auto-translation-223":"Einstellungen","__stack-auto-translation-224":"Anmelden","__stack-auto-translation-225":"Anmelden","__stack-auto-translation-226":"Erneut anmelden","__stack-auto-translation-227":"Melden Sie sich an oder erstellen Sie ein Konto, um dem Team beizutreten.","__stack-auto-translation-228":"Melden Sie sich in Ihrem Konto an","__stack-auto-translation-229":"Mit Passkey anmelden","__stack-auto-translation-23":"Autorisieren","__stack-auto-translation-230":"Mit {provider} anmelden","__stack-auto-translation-231":"Abmelden","__stack-auto-translation-232":"Registrieren","__stack-auto-translation-233":"Registrieren","__stack-auto-translation-234":"Die Registrierung f\xfcr neue Benutzer ist derzeit nicht aktiviert.","__stack-auto-translation-235":"Mit Passkey registrieren","__stack-auto-translation-236":"Mit {provider} registrieren","__stack-auto-translation-237":"Erfolgreich angemeldet!","__stack-auto-translation-238":"Angemeldet {time}","__stack-auto-translation-239":"Bei der Verarbeitung des OAuth-Callbacks ist etwas schiefgelaufen:","__stack-auto-translation-24":"CLI-Anwendung autorisieren","__stack-auto-translation-240":"Status","__stack-auto-translation-241":"Nicht mehr zur Anmeldung verwenden","__stack-auto-translation-242":"Abonnement","__stack-auto-translation-243":"Plan wechseln","__stack-auto-translation-244":"Team-Erstellung ist im Demo-Modus deaktiviert","__stack-auto-translation-245":"Teamerstellung ist nicht aktiviert","__stack-auto-translation-246":"Team-Anzeigename","__stack-auto-translation-247":"Teameinladung","__stack-auto-translation-248":"Teamprofilbild","__stack-auto-translation-249":"Teamnutzername","__stack-auto-translation-25":"Autorisierung...","__stack-auto-translation-250":"Teams","__stack-auto-translation-251":"Die CLI-Anwendung wurde erfolgreich autorisiert. Sie k\xf6nnen dieses Fenster schlie\xdfen und zur Befehlszeile zur\xfcckkehren.","__stack-auto-translation-252":"Der magische Link wurde bereits verwendet. Der Link kann nur einmal benutzt werden. Bitte fordern Sie einen neuen magischen Link an, wenn Sie sich erneut anmelden m\xfcssen.","__stack-auto-translation-253":"Der Anmeldevorgang wurde abgebrochen oder verweigert. Bitte versuchen Sie es erneut.","__stack-auto-translation-254":"Der Benutzer ist bereits mit einem anderen OAuth-Konto verbunden. Haben Sie vielleicht das falsche Konto auf der Seite des OAuth-Anbieters ausgew\xe4hlt?","__stack-auto-translation-255":"Geben Sie dann Ihren sechsstelligen MFA-Code ein:","__stack-auto-translation-256":"Dies sind Ger\xe4te, auf denen Sie derzeit angemeldet sind. Sie k\xf6nnen den Zugriff widerrufen, um eine Sitzung zu beenden.","__stack-auto-translation-257":"Dieses Konto ist bereits mit einem anderen Benutzer verbunden. Bitte verbinden Sie ein anderes Konto.","__stack-auto-translation-258":"Diese E-Mail wird bereits von einem anderen Benutzer f\xfcr die Anmeldung verwendet.","__stack-auto-translation-259":"Dies ist ein Anzeigename und wird nicht f\xfcr die Authentifizierung verwendet","__stack-auto-translation-26":"Abbrechen","__stack-auto-translation-260":"Dies ist h\xf6chstwahrscheinlich ein Fehler in Stack. Bitte melden Sie ihn.","__stack-auto-translation-261":"Dieser Link zum Zur\xfccksetzen des Passworts wurde bereits verwendet. Falls Sie Ihr Passwort erneut zur\xfccksetzen m\xfcssen, fordern Sie bitte einen neuen Link auf der Anmeldeseite an.","__stack-auto-translation-262":"Dieser Teameinladungslink wurde bereits verwendet.","__stack-auto-translation-263":"Um die OTP-Anmeldung zu aktivieren, f\xfcgen Sie bitte eine verifizierte Anmelde-E-Mail hinzu.","__stack-auto-translation-264":"Um die Passkey-Anmeldung zu aktivieren, f\xfcgen Sie bitte eine verifizierte Anmelde-E-Mail hinzu.","__stack-auto-translation-265":"Um ein Passwort festzulegen, f\xfcgen Sie bitte eine Anmelde-E-Mail hinzu.","__stack-auto-translation-266":"Theme umschalten","__stack-auto-translation-267":"TOTP-Mehrfaktor-Authentifizierungs-QR-Code","__stack-auto-translation-268":"Erneut versuchen","__stack-auto-translation-269":"Nicht verf\xfcgbar","__stack-auto-translation-27":"Abo k\xfcndigen","__stack-auto-translation-270":"Uneinbringlich","__stack-auto-translation-271":"Unbekannt","__stack-auto-translation-272":"Nicht verifiziert","__stack-auto-translation-273":"Passwort aktualisieren","__stack-auto-translation-274":"Passwort aktualisieren","__stack-auto-translation-275":"Zahlungsmethode \xe4ndern","__stack-auto-translation-276":"Aktualisieren Sie Ihr Passwort","__stack-auto-translation-277":"Laden Sie ein Bild f\xfcr Ihr Team hoch","__stack-auto-translation-278":"Laden Sie Ihr eigenes Bild als Avatar hoch","__stack-auto-translation-279":"F\xfcr die Anmeldung verwenden","__stack-auto-translation-28":"Durch das K\xfcndigen werden zuk\xfcnftige Verl\xe4ngerungen f\xfcr dieses Abonnement gestoppt.","__stack-auto-translation-280":"F\xfcr die Anmeldung verwendet","__stack-auto-translation-281":"Verwendeter Link zum Zur\xfccksetzen des Passworts","__stack-auto-translation-282":"Verwendeter Team-Einladungslink","__stack-auto-translation-283":"Benutzer","__stack-auto-translation-284":"Benutzername","__stack-auto-translation-285":"Verifizierung fehlgeschlagen","__stack-auto-translation-286":"Verifiziert! Weiterleitung...","__stack-auto-translation-287":"Best\xe4tigen","__stack-auto-translation-288":"Best\xe4tigung...","__stack-auto-translation-289":"Ansehen","__stack-auto-translation-29":"\xe4ndern","__stack-auto-translation-290":"Aktive Tarife und K\xe4ufe anzeigen.","__stack-auto-translation-291":"Storniert","__stack-auto-translation-292":"WARNUNG: Stellen Sie sicher, dass Sie der Kommandozeilenanwendung vertrauen, da sie Zugriff auf Ihr Konto erhalten wird. Falls Sie diese Anfrage nicht initiiert haben, k\xf6nnen Sie diese Seite schlie\xdfen und ignorieren. Wir werden Ihnen diesen Link niemals per E-Mail oder auf anderem Wege zusenden.","__stack-auto-translation-293":"Sie sind bereits angemeldet","__stack-auto-translation-294":"Sie sind derzeit nicht angemeldet.","__stack-auto-translation-295":"Sie k\xf6nnen Ihre letzte Anmelde-E-Mail nicht entfernen","__stack-auto-translation-296":"Sie k\xf6nnen Ihre aktuelle Sitzung nicht widerrufen","__stack-auto-translation-297":"Ihre E-Mail wurde verifiziert!","__stack-auto-translation-298":"Sie haben Ihre Kontoeinrichtung noch nicht abgeschlossen. Bitte wenden Sie sich an den Support, wenn Sie glauben, dass dies ein Fehler ist.","__stack-auto-translation-299":"Ihre E-Mail-Adresse","__stack-auto-translation-3":"Kontoeinstellungen","__stack-auto-translation-30":"Tarif \xe4ndern","__stack-auto-translation-300":"Ihr E-Mail-Best\xe4tigungslink 
2ist abgelaufen. Bitte fordern Sie in Ihren Kontoeinstellungen einen neuen Best\xe4tigungslink an.","__stack-auto-translation-301":"Ihr Magic Link ist abgelaufen. Bitte fordern Sie einen neuen Magic Link an, wenn Sie sich anmelden m\xfcssen.","__stack-auto-translation-302":"Ihr Passwort wurde zur\xfcckgesetzt. Sie k\xf6nnen sich jetzt mit Ihrem neuen Passwort anmelden.","__stack-auto-translation-303":"Ihr Link zum Zur\xfccksetzen des Passworts ist abgelaufen. Bitte fordern Sie einen neuen Link zum Zur\xfccksetzen des Passworts von der Anmeldeseite an.","__stack-auto-translation-304":"Ihr Team-Einladungslink ist abgelaufen. Bitte fordern Sie einen neuen an","__stack-auto-translation-31":"\xc4ndern Sie den Anzeigenamen Ihres Teams","__stack-auto-translation-32":"Plan w\xe4hlen","__stack-auto-translation-33":"W\xe4hlen Sie aus, welche E-Mails Sie erhalten m\xf6chten","__stack-auto-translation-34":"CLI-Autorisierung erfolgreich","__stack-auto-translation-35":"hier klicken","__stack-auto-translation-36":"Klicken Sie auf die Schaltfl\xe4che unten, um den Verifizierungslink erneut zu senden.","__stack-auto-translation-37":"Schlie\xdfen","__stack-auto-translation-38":"Einrichtung abschlie\xdfen","__stack-auto-translation-39":"Kontoeinrichtung abschlie\xdfen","__stack-auto-translation-4":"Aktive Tarife","__stack-auto-translation-40":"Best\xe4tigen","__stack-auto-translation-41":"Weiter","__stack-auto-translation-42":"Kopieren Sie es an einen sicheren Ort. Sie k\xf6nnen es sp\xe4ter nicht mehr einsehen.","__stack-auto-translation-43":"Bild konnte nicht zugeschnitten werden.","__stack-auto-translation-44":"Erstellen","__stack-auto-translation-45":"Ein neues Konto erstellen","__stack-auto-translation-46":"Team erstellen","__stack-auto-translation-47":"Team erstellen","__stack-auto-translation-48":"API-Schl\xfcssel erstellen","__stack-auto-translation-49":"Guthaben-Paket","__stack-auto-translation-5":"Aktive Sitzungen","__stack-auto-translation-50":"Aktuelle Sitzung","__stack-auto-translation-51":"Aktuelles Team","__stack-auto-translation-52":"Gefahrenzone","__stack-auto-translation-53":"Datum","__stack-auto-translation-54":"Konto l\xf6schen","__stack-auto-translation-55":"Konto l\xf6schen","__stack-auto-translation-56":"Passkey l\xf6schen","__stack-auto-translation-57":"Beschreibung","__stack-auto-translation-58":"Beschreibung ist erforderlich","__stack-auto-translation-59":"Deaktivieren","__stack-auto-translation-6":"Hinzuf\xfcgen","__stack-auto-translation-60":"MFA deaktivieren","__stack-auto-translation-61":"OTP deaktivieren","__stack-auto-translation-62":"Anzeigename","__stack-auto-translation-63":"M\xf6chten Sie sich anmelden?","__stack-auto-translation-64":"M\xf6chten Sie Ihre E-Mail-Adresse best\xe4tigen?","__stack-auto-translation-65":"Noch kein Konto?","__stack-auto-translation-66":"Kein Zur\xfccksetzen n\xf6tig?","__stack-auto-translation-67":"Entwurf","__stack-auto-translation-68":"z.B. Entwicklung, Produktion, CI/CD","__stack-auto-translation-69":"E-Mail","__stack-auto-translation-7":"F\xfcgen Sie eine Zahlungsmethode hinzu, bevor Sie den Plan wechseln.","__stack-auto-translation-70":"E-Mail & Passwort","__stack-auto-translation-71":"E-Mail existiert bereits","__stack-auto-translation-72":"E-Mail ist erforderlich","__stack-auto-translation-73":"E-Mail-Verwaltung ist im Demo-Modus nicht verf\xfcgbar.","__stack-auto-translation-74":"E-Mail gesendet!","__stack-auto-translation-75":"E-Mails","__stack-auto-translation-76":"E-Mails & Authentifizierung","__stack-auto-translation-77":"MFA aktivieren","__stack-auto-translation-78":"OTP aktivieren","__stack-auto-translation-79":"Aktivieren Sie die Anmeldung \xfcber einen magischen Link oder OTP, die an Ihre Anmelde-E-Mails gesendet werden.","__stack-auto-translation-8":"E-Mail hinzuf\xfcgen","__stack-auto-translation-80":"Beenden Sie Ihre aktuelle Sitzung","__stack-auto-translation-81":"Geben Sie einen Anzeigenamen f\xfcr Ihr neues Team ein","__stack-auto-translation-82":"E-Mail eingeben","__stack-auto-translation-83":"Geben Sie den Code aus Ihrer E-Mail ein","__stack-auto-translation-84":"Geben Sie den sechsstelligen Code aus Ihrer Authenticator-App ein","__stack-auto-translation-85":"E-Mail eingeben","__stack-auto-translation-86":"Abgelaufener Magic Link","__stack-auto-translation-87":"Abgelaufener Link zum Zur\xfccksetzen des Passworts","__stack-auto-translation-88":"Abgelaufener Team-Einladungslink","__stack-auto-translation-89":"Abgelaufener Verifizierungslink","__stack-auto-translation-9":"Neue Passkey hinzuf\xfcgen","__stack-auto-translation-90":"L\xe4uft ab","__stack-auto-translation-91":"L\xe4uft ab in","__stack-auto-translation-92":"Fehler bei der Autorisierung der CLI-Anwendung:","__stack-auto-translation-93":"Verbindung des Kontos fehlgeschlagen","__stack-auto-translation-94":"Passwort konnte nicht zur\xfcckgesetzt werden","__stack-auto-translation-95":"Passwort konnte nicht zur\xfcckgesetzt werden. Bitte fordern Sie einen neuen Link zum Zur\xfccksetzen des Passworts an","__stack-auto-translation-96":"Passwort vergessen?","__stack-auto-translation-97":"Zur Startseite","__stack-auto-translation-98":"Zur Startseite","__stack-auto-translation-99":"Hier ist dein API-Schl\xfcssel."})),"en-US":new Map(an({"__stack-auto-translation-0":"-","__stack-auto-translation-1":"A command line application is requesting access to your account. Click the button below to authorize it.","__stack-auto-translation-10":"Add your email address","__stack-auto-translation-100":"I understand that I will not be able to view this key again.","__stack-auto-translation-101":"If the user with this e-mail address exists, an e-mail was sent to your inbox. Make sure to check your spam folder.","__stack-auto-translation-102":"If you are not redirected automatically, ","__stack-auto-translation-103":"Ignore","__stack-auto-translation-104":"Impersonation","__stack-auto-translation-105":"Incorrect code. Please try again.","__stack-auto-translation-106":"Incorrect password","__stack-auto-translation-107":"Invalid code","__stack-auto-translation-108":"Invalid image","__stack-auto-translation-109":"Invalid Magic Link","__stack-auto-translation-11":"Already have an account?","__stack-auto-translation-110":"Invalid Password Reset Link","__stack-auto-translation-111":"Invalid Team Invitation Link","__stack-auto-translation-112":"Invalid TOTP code","__stack-auto-translation-113":"Invalid Verification Link","__stack-auto-translation-114":"Invite a user to your team through email","__stack-auto-translation-115":"Invite member","__stack-auto-translation-116":"Invite User","__stack-auto-translation-117":"Invoice","__stack-auto-translation-118":"Invoices","__stack-auto-translation-119":"IP Address","__stack-auto-translation-12":"Amount","__stack-auto-translation-120":"Join","__stack-auto-translation-121":"Last used","__stack-auto-translation-122":"Leave","__stack-auto-translation-123":"Leave team","__stack-auto-translation-124":"Leave Team","__stack-auto-translation-125":"leave this team and remove your team profile","__stack-auto-translation-126":"Location","__stack-auto-translation-127":"Magic Link Already Used","__stack-auto-translation-128":"Manage the default payment method used for subscriptions and invoices.","__stack-auto-translation-129":"Members","__stack-auto-translation-13":"An unknown error occurred","__stack-auto-translation-130":"MFA management is not available in demo mode.","__stack-auto-translation-131":"Missing verification information","__stack-auto-translation-132":"Multi-factor authentication","__stack-auto-translation-133":"Multi-Factor Authentication","__stack-auto-translation-134":"Multi-factor authentication is currently disabled.","__stack-auto-translation-135":"Multi-factor authentication is currently enabled.","__stack-auto-translation-136":"My Profile","__stack-auto-translation-137":"Name","__stack-auto-translation-138":"Never","__stack-auto-translation-139":"New account registration is not allowed","__stack-auto-translation-14":"API Key","__stack-auto-translation-140":"New password","__stack-auto-translation-141":"New Password","__stack-auto-translation-142":"No active sessions foun
2d","__stack-auto-translation-143":"No authentication method enabled.","__stack-auto-translation-144":"No default payment method","__stack-auto-translation-145":"No display name set","__stack-auto-translation-146":"No other plans available for this subscription.","__stack-auto-translation-147":"No outstanding invitations","__stack-auto-translation-148":"No team","__stack-auto-translation-149":"No teams yet","__stack-auto-translation-15":"API Keys","__stack-auto-translation-150":"Not signed in","__stack-auto-translation-151":"Notifications","__stack-auto-translation-152":"OAuth provider access denied","__stack-auto-translation-153":"Old password","__stack-auto-translation-154":"One-Time Password","__stack-auto-translation-155":"One-time purchase","__stack-auto-translation-156":"Open","__stack-auto-translation-157":"Or continue with","__stack-auto-translation-158":"Other Session","__stack-auto-translation-159":"Other teams","__stack-auto-translation-16":"API keys grant programmatic access to your account.","__stack-auto-translation-160":"OTP management is not available in demo mode.","__stack-auto-translation-161":"OTP sign-in","__stack-auto-translation-162":"OTP sign-in is enabled and cannot be disabled as it is currently the only sign-in method","__stack-auto-translation-163":"OTP/magic link sign-in is currently enabled.","__stack-auto-translation-164":"Outstanding invitations","__stack-auto-translation-165":"Overwrite your user display name in this team","__stack-auto-translation-166":"Paid","__stack-auto-translation-167":"Passkey","__stack-auto-translation-168":"Passkey management is not available in demo mode.","__stack-auto-translation-169":"Passkey registered","__stack-auto-translation-17":"API keys grant programmatic access to your team.","__stack-auto-translation-170":"Passkey sign-in is enabled and cannot be disabled as it is currently the only sign-in method","__stack-auto-translation-171":"Password","__stack-auto-translation-172":"Password management is not available in demo mode.","__stack-auto-translation-173":"Password reset successfully!","__stack-auto-translation-174":"Passwords do not match","__stack-auto-translation-175":"Payment method","__stack-auto-translation-176":"Payments","__stack-auto-translation-177":"Permanently remove your account and all associated data","__stack-auto-translation-178":"Personal","__stack-auto-translation-179":"Please add an email address to complete your account setup. We'll send you a verification email.","__stack-auto-translation-18":"Are you sure you want to delete your account? This action is IRREVERSIBLE and will delete ALL associated data.","__stack-auto-translation-180":"Please check if you have the correct link. If you continue to have issues, please contact support.","__stack-auto-translation-181":"Please check your email inbox","__stack-auto-translation-182":"Please complete your account setup before joining teams.","__stack-auto-translation-183":"Please double check if you have the correct password reset link.","__stack-auto-translation-184":"Please double check if you have the correct team invitation link.","__stack-auto-translation-185":"Please enter a team name","__stack-auto-translation-186":"Please enter a valid email","__stack-auto-translation-187":"Please enter a valid email address","__stack-auto-translation-188":"Please enter an email address","__stack-auto-translation-189":"Please enter your email","__stack-auto-translation-19":"Are you sure you want to disable OTP sign-in? You will not be able to sign in with only emails anymore.","__stack-auto-translation-190":"Please enter your old password","__stack-auto-translation-191":"Please enter your password","__stack-auto-translation-192":"Please repeat your password","__stack-auto-translation-193":"Please try again and if the problem persists, contact support.","__stack-auto-translation-194":"Please verify your email address ","__stack-auto-translation-195":"Please verify your email first","__stack-auto-translation-196":"Primary","__stack-auto-translation-197":"Pro","__stack-auto-translation-198":"Profile image","__stack-auto-translation-199":"Register a passkey","__stack-auto-translation-2":"Account settings","__stack-auto-translation-20":"Are you sure you want to disable Passkey sign-in? You will not be able to sign in with your passkey anymore.","__stack-auto-translation-200":"Remove","__stack-auto-translation-201":"Renews on","__stack-auto-translation-202":"Repeat new password","__stack-auto-translation-203":"Repeat New Password","__stack-auto-translation-204":"Repeat Password","__stack-auto-translation-205":"Resend verification email","__stack-auto-translation-206":"Reset Password","__stack-auto-translation-207":"Reset Your Password","__stack-auto-translation-208":"Review past invoices and receipts.","__stack-auto-translation-209":"Revoke","__stack-auto-translation-21":"Are you sure you want to leave the team?","__stack-auto-translation-210":"Revoke All Other Sessions","__stack-auto-translation-211":"Save","__stack-auto-translation-212":"Scan this QR code with your authenticator app:","__stack-auto-translation-213":"Secret API Key","__stack-auto-translation-214":"Select a new plan from the same product line.","__stack-auto-translation-215":"Send email","__stack-auto-translation-216":"Send Email","__stack-auto-translation-217":"Send verification email","__stack-auto-translation-218":"Session","__stack-auto-translation-219":"Set a password for your account","__stack-auto-translation-22":"Authorization Failed","__stack-auto-translation-220":"Set as primary","__stack-auto-translation-221":"Set password","__stack-auto-translation-222":"Set Password","__stack-auto-translation-223":"Settings","__stack-auto-translation-224":"Sign in","__stack-auto-translation-225":"Sign In","__stack-auto-translation-226":"Sign in again","__stack-auto-translation-227":"Sign in or create an account to join the team.","__stack-auto-translation-228":"Sign in to your account","__stack-auto-translation-229":"Sign in with Passkey","__stack-auto-translation-23":"Authorize","__stack-auto-translation-230":"Sign in with {provider}","__stack-auto-translation-231":"Sign out","__stack-auto-translation-232":"Sign up","__stack-auto-translation-233":"Sign Up","__stack-auto-translation-234":"Sign up for new users is not enabled at the moment.","__stack-auto-translation-235":"Sign up with Passkey","__stack-auto-translation-236":"Sign up with {provider}","__stack-auto-translation-237":"Signed in successfully!","__stack-auto-translation-238":"Signed in {time}","__stack-auto-translation-239":"Something went wrong while processing the OAuth callback:","__stack-auto-translation-24":"Authorize CLI Application","__stack-auto-translation-240":"Status","__stack-auto-translation-241":"Stop using for sign-in","__stack-auto-translation-242":"Subscription","__stack-auto-translation-243":"Switch plan","__stack-auto-translation-244":"Team creation is disabled in demo mode","__stack-auto-translation-245":"Team creation is not enabled","__stack-auto-translation-246":"Team display name","__stack-auto-translation-247":"Team invitation","__stack-auto-translation-248":"Team profile image","__stack-auto-translation-249":"Team user name","__stack-auto-translation-25":"Authorizing...","__stack-auto-translation-250":"Teams","__stack-auto-translation-251":"The CLI application has been authorized successfully. You can close this window and return to the command line.","__stack-auto-translation-252":"The magic link has already been used. The link can only be used once. Please request a new magic link if you need to sign-in again.","__stack-auto-translation-253":"The sign-in operation has been cancelled or denied. Please try again.","__stack-auto-translation-254":"The user is already connected to another OAuth account. Did you maybe selected the wrong account on the OAuth provider page?","__stack-auto-translation-255":"Then, enter your six-digit MFA co
2de:","__stack-auto-translation-256":"These are devices where you're currently logged in. You can revoke access to end a session.","__stack-auto-translation-257":"This account is already connected to another user. Please connect a different account.","__stack-auto-translation-258":"This email is already used for sign-in by another user.","__stack-auto-translation-259":"This is a display name and is not used for authentication","__stack-auto-translation-26":"Cancel","__stack-auto-translation-260":"This is most likely an error in Stack. Please report it.","__stack-auto-translation-261":"This password reset link has already been used. If you need to reset your password again, please request a new password reset link from the login page.","__stack-auto-translation-262":"This team invitation link has already been used.","__stack-auto-translation-263":"To enable OTP sign-in, please add a verified sign-in email.","__stack-auto-translation-264":"To enable Passkey sign-in, please add a verified sign-in email.","__stack-auto-translation-265":"To set a password, please add a sign-in email.","__stack-auto-translation-266":"Toggle theme","__stack-auto-translation-267":"TOTP multi-factor authentication QR code","__stack-auto-translation-268":"Try Again","__stack-auto-translation-269":"Unavailable","__stack-auto-translation-27":"Cancel subscription","__stack-auto-translation-270":"Uncollectible","__stack-auto-translation-271":"Unknown","__stack-auto-translation-272":"Unverified","__stack-auto-translation-273":"Update password","__stack-auto-translation-274":"Update Password","__stack-auto-translation-275":"Update payment method","__stack-auto-translation-276":"Update your password","__stack-auto-translation-277":"Upload an image for your team","__stack-auto-translation-278":"Upload your own image as your avatar","__stack-auto-translation-279":"Use for sign-in","__stack-auto-translation-28":"Canceling will stop future renewals for this subscription.","__stack-auto-translation-280":"Used for sign-in","__stack-auto-translation-281":"Used Password Reset Link","__stack-auto-translation-282":"Used Team Invitation Link","__stack-auto-translation-283":"User","__stack-auto-translation-284":"User name","__stack-auto-translation-285":"Verification failed","__stack-auto-translation-286":"Verified! Redirecting...","__stack-auto-translation-287":"Verify","__stack-auto-translation-288":"Verifying...","__stack-auto-translation-289":"View","__stack-auto-translation-29":"change","__stack-auto-translation-290":"View your active plans and purchases.","__stack-auto-translation-291":"Void","__stack-auto-translation-292":"WARNING: Make sure you trust the command line application, as it will gain access to your account. If you did not initiate this request, you can close this page and ignore it. We will never send you this link via email or any other means.","__stack-auto-translation-293":"You are already signed in","__stack-auto-translation-294":"You are not currently signed in.","__stack-auto-translation-295":"You can not remove your last sign-in email","__stack-auto-translation-296":"You cannot revoke your current session","__stack-auto-translation-297":"You email has been verified!","__stack-auto-translation-298":"You have not yet completed your account setup. Please reach out to support if you believe this is an error.","__stack-auto-translation-299":"Your Email","__stack-auto-translation-3":"Account Settings","__stack-auto-translation-30":"Change plan","__stack-auto-translation-300":"Your email verification link has expired. Please request a new verification link from your account settings.","__stack-auto-translation-301":"Your magic link has expired. Please request a new magic link if you need to sign-in.","__stack-auto-translation-302":"Your password has been reset. You can now sign in with your new password.","__stack-auto-translation-303":"Your password reset link has expired. Please request a new password reset link from the login page.","__stack-auto-translation-304":"Your team invitation link has expired. Please request a new team invitation link ","__stack-auto-translation-31":"Change the display name of your team","__stack-auto-translation-32":"Choose a plan","__stack-auto-translation-33":"Choose which emails you want to re
2ceive","__stack-auto-translation-34":"CLI Authorization Successful","__stack-auto-translation-35":"click here","__stack-auto-translation-36":"Click the button below to resend the verification link.","__stack-auto-translation-37":"Close","__stack-auto-translation-38":"Complete setup","__stack-auto-translation-39":"Complete your account setup","__stack-auto-translation-4":"Active plans","__stack-auto-translation-40":"Confirm","__stack-auto-translation-41":"Continue","__stack-auto-translation-42":"Copy it to a safe place. You will not be able to view it again.","__stack-auto-translation-43":"Could not crop image.","__stack-auto-translation-44":"Create","__stack-auto-translation-45":"Create a new account","__stack-auto-translation-46":"Create a team","__stack-auto-translation-47":"Create a Team","__stack-auto-translation-48":"Create API Key","__stack-auto-translation-49":"Credits pack","__stack-auto-translation-5":"Active Sessions","__stack-auto-translation-50":"Current Session","__stack-auto-translation-51":"Current team","__stack-auto-translation-52":"Danger zone","__stack-auto-translation-53":"Date","__stack-auto-translation-54":"Delete account","__stack-auto-translation-55":"Delete Account","__stack-auto-translation-56":"Delete Passkey","__stack-auto-translation-57":"Description","__stack-auto-translation-58":"Description is required","__stack-auto-translation-59":"Disable","__stack-auto-translation-6":"Add","__stack-auto-translation-60":"Disable MFA","__stack-auto-translation-61":"Disable OTP","__stack-auto-translation-62":"Display name","__stack-auto-translation-63":"Do you want to sign in?","__stack-auto-translation-64":"Do you want to verify your email?","__stack-auto-translation-65":"Don't have an account?","__stack-auto-translation-66":"Don't need to reset?","__stack-auto-translation-67":"Draft","__stack-auto-translation-68":"e.g. Development, Production, CI/CD","__stack-auto-translation-69":"Email","__stack-auto-translation-7":"Add a payment method before switching plans.","__stack-auto-translation-70":"Email & Password","__stack-auto-translation-71":"Email already exists","__stack-auto-translation-72":"Email is required","__stack-auto-translation-73":"Email management is not available in demo mode.","__stack-auto-translation-74":"Email sent!","__stack-auto-translation-75":"Emails","__stack-auto-translation-76":"Emails & Auth","__stack-auto-translation-77":"Enable MFA","__stack-auto-translation-78":"Enable OTP","__stack-auto-translation-79":"Enable sign-in via magic link or OTP sent to your sign-in emails.","__stack-auto-translation-8":"Add an email","__stack-auto-translation-80":"End your current session","__stack-auto-translation-81":"Enter a display name for your new team","__stack-auto-translation-82":"Enter email","__stack-auto-translation-83":"Enter the code from your email","__stack-auto-translation-84":"Enter the six-digit code from your authenticator app","__stack-auto-translation-85":"Enter your email","__stack-auto-translation-86":"Expired Magic Link","__stack-auto-translation-87":"Expired Password Reset Link","__stack-auto-translation-88":"Expired Team Invitation Link","__stack-auto-translation-89":"Expired Verification Link","__stack-auto-translation-9":"Add new passkey","__stack-auto-translation-90":"Expires","__stack-auto-translation-91":"Expires In","__stack-auto-translation-92":"Failed to authorize the CLI application:","__stack-auto-translation-93":"Failed to connect account","__stack-auto-translation-94":"Failed to reset password","__stack-auto-translation-95":"Failed to reset password. Please request a new password reset link","__stack-auto-translation-96":"Forgot password?","__stack-auto-translation-97":"Go home","__stack-auto-translation-98":"Go Home","__stack-auto-translation-99":"Here is your API key."})),"es-419":new Map(an({"__stack-auto-translation-0":"-","__stack-auto-translation-1":"Una aplicaci\xf3n de l\xednea de comandos est\xe1 solicitando acceso a tu cuenta. Haz clic en el bot\xf3n de abajo para autorizarla.","__stack-auto-translation-10":"Agrega tu correo electr\xf3nico","__stack-auto-translation-100":"Entiendo que no podr\xe9 ver esta clave nuevamente.","__stack-auto-translation-101":"Si el usuario con esta direcci\xf3n de correo existe, se envi\xf3 un email a su bandeja de entrada. Aseg\xfarese de revisar su carpeta de spam.","__stack-auto-translation-102":"Si no se le redirige autom\xe1ticamente, ","__stack-auto-translation-103":"Ignorar","__stack-auto-translation-104":"Suplantaci\xf3n","__stack-auto-translation-105":"C\xf3digo incorrecto. Int\xe9ntelo de nuevo.","__stack-auto-translation-106":"Contrase\xf1a incorrecta","__stack-auto-translation-107":"C\xf3digo no v\xe1lido","__stack-auto-translation-108":"Imagen no v\xe1lida","__stack-auto-translation-109":"Enlace m\xe1gico no v\xe1lido","__stack-auto-translation-11":"\xbfYa tienes una cuenta?","__stack-auto-translation-110":"Enlace de restablecimiento de contrase\xf1a no v\xe1lido","__stack-auto-translation-111":"Enlace de invitaci\xf3n de equipo inv\xe1lido","__stack-auto-translation-112":"C\xf3digo TOTP inv\xe1lido","__stack-auto-translation-113":"Enlace de verificaci\xf3n inv\xe1lido","__stack-auto-translation-114":"Invita a un usuario a tu equipo por correo electr\xf3nico","__stack-auto-translation-115":"Invitar miembro","__stack-auto-translation-116":"Invitar Usuario","__stack-auto-translation-117":"Factura","__stack-auto-translation-118":"Facturas","__stack-auto-translation-119":"Direcci\xf3n IP","__stack-auto-translation-12":"Monto","__stack-auto-translation-120":"Unirse","__stack-auto-translation-121":"\xdaltimo uso","__stack-auto-translation-122":"Salir","__stack-auto-translation-123":"Abandonar equipo","__stack-auto-translation-124":"Salir del equipo","__stack-auto-translation-125":"abandona este equipo y elimina tu perfil de equipo","__stack-auto-translation-126":"Ubicaci\xf3n","__stack-auto-translation-127":"Enlace M\xe1gico Ya Utilizado","__stack-auto-translation-128":"Administra el m\xe9todo de pago predeterminado para suscripciones y facturas.","__stack-auto-translation-129":"Miembros","__stack-auto-translation-13":"Se produjo un error desconocido","__stack-auto-translation-130":"La administraci\xf3n de MFA no est\xe1 disponible en modo demo.","__stack-auto-translation-131":"Informaci\xf3n de verificaci\xf3n faltante","__stack-auto-translation-132":"Autenticaci\xf3n de m\xfaltiples factores","__stack-auto-translation-133":"Autenticaci\xf3n de m\xfaltiples factores","__stack-auto-translation-134":"La autenticaci\xf3n de m\xfaltiples factores est\xe1 actualmente desactivada.","__stack-auto-translation-135":"La autenticaci\xf3n de m\xfaltiples factores est\xe1 actualmente habilitada.","__stack-auto-translation-136":"Mi perfil","__stack-auto-translation-137":"Nombre","__stack-auto-translation-138":"Nunca","__stack-auto-translation-139":"No se permite el registro de nuevas cuentas","__stack-auto-translation-14":"Clave API","__stack-auto-translation-140":"Nueva contrase\xf1a","__stack-auto-translation-141":"Nueva Contrase\xf1a","__stack-auto-translation-142":"No se encontraron sesiones activas","__stack-auto-translation-143":"Ning\xfan m\xe9todo de autenticaci\xf3n habilitado.","__stack-auto-translation-144":"Sin m\xe9todo de pago predeterminado","__stack-auto-translation-145":"Nombre para mostrar no establecido","__stack-auto-translation-146":"No hay otros planes disponibles para esta suscripci\xf3n.","__stack-auto-translation-147":"No hay invitaciones pendientes","__stack-auto-translation-148":"Sin equipo","__stack-auto-translation-149":"Sin equipos a\xfan","__stack-auto-translation-15":"Claves API","__stack-auto-translation-150":"No ha iniciado sesi\xf3n","__stack-auto-translation-151":"Notificaciones","__stack-auto-translation-152":"Acceso denegado por el proveedor de OAuth","__stack-auto-translation-153":"Contrase\xf1a anterior","__stack-auto-translation-154":"Contrase\xf1a de un solo uso","__stack-auto-translation-155":"Compra \xfanica","__stack-auto-translation-156":"Pendiente","__stack-auto-translation-157":"O continuar con","__stack-auto-translation-158":"Otra Sesi\xf3n","__stack-auto-translation-159":"Otros equipos","__stack-auto-translation-16":"Las claves API otorgan acceso program\xe1tico a tu cuenta.","__stack-auto-translation-160":"La gesti\xf3n de OTP no est\xe1 disponible en modo demo.","__stack-auto-translation-161":"Inicio de sesi\xf3n con OTP","__stack-auto-translation-162":"El inicio de sesi\xf3n con OTP est\xe1 activado y no se puede deshabilitar ya que actualmente es el \xfanico m\xe9todo de inicio de sesi\xf3n","__stack-auto-translation-163":"El inicio de sesi\xf3n por OTP/enlace m\xe1gico est\xe1 actualmente activado.","__stack-auto-translation-164":"Invitaciones pendientes","__stack-auto-translation-165":"Sobrescribe tu nombre de usuario para mostrar en este equipo","__stack-auto-translation-166":"Pagado","__stack-auto-translation-167":"Clave de acceso","__stack-auto-translation-168":"La gesti\xf3n de claves de acceso no est\xe1 disponible en modo demo.","__stack-auto-translation-169":"Clave de acceso registrada","__stack-auto-translation-17":"Las claves API otorgan acceso program\xe1tico a tu equipo.","__stack-auto-translation-170":"El inicio de sesi\xf3n con clave de acceso est\xe1 activado y no se puede desactivar ya que es el \xfanico m\xe9todo de inicio de sesi\xf3n actual","__stack-auto-translation-171":"Contrase\xf1a","__stack-auto-translation-172":"La administraci\xf3n de contrase\xf1as no est\xe1 disponible en modo demo.","__stack-auto-translation-173":"\xa1Contrase\xf1a restablecida con \xe9xito!","__stack-auto-translation-174":"Las contrase\xf1as no coinciden","__stack-auto-translation-175":"M\xe9todo de pago","__stack-auto-translation-176":"Pagos","__stack-auto-translation-177":"Elimina permanentemente tu cuenta y todos los datos asociados","__stack-auto-translation-178":"Personal","__stack-auto-translation-179":"Por favor agrega una direcci\xf3n de correo electr\xf3nico para completar la configuraci\xf3n de tu cuenta. Te enviaremos un correo de verificaci\xf3n.","__stack-auto-translation-18":"\xbfEst\xe1 seguro de que desea eliminar su cuenta? Esta acci\xf3n es IRREVERSIBLE y eliminar\xe1 TODOS los datos asociados.","__stack-auto-translation-180":"Por favor, verifique si tiene el enlace correcto. Si contin\xfaa teniendo problemas, comun\xedquese con soporte.","__stack-auto-translation-181":"Por favor revisa tu bandeja de entrada","__stack-auto-translation-182":"Por favor completa la configuraci\xf3n de tu cuenta antes de unirte a equipos.","__stack-auto-translation-183":"Por favor, verifica que tengas el enlace correcto para restablecer la contrase\xf1a.","__stack-auto-translation-184":"Por favor, verifique si tiene el enlace de invitaci\xf3n al equipo correcto.","__stack-auto-translation-185":"Por favor, ingrese un nombre de equipo","__stack-auto-translation-186":"Por favor, ingrese un correo electr\xf3nico v\xe1lido","__stack-auto-translation-187":"Por favor, ingrese una direcci\xf3n de correo electr\xf3nico v\xe1lida","__stack-auto-translation-188":"Por favor, ingrese una direcci\xf3n de correo electr\xf3nico","__stack-auto-translation-189":"Por favor ingrese su correo electr\xf3nico","__stack-auto-translation-19":"\xbfEst\xe1 seguro de que desea deshabilitar el inicio de sesi\xf3n con OTP? Ya no podr\xe1 iniciar sesi\xf3n solo con correos electr\xf3nicos.","__stack-auto-translation-190":"Por favor, ingrese su contrase\xf1a anterior","__stack-auto-translation-191":"Por favor ingrese su contrase\xf1a","__stack-auto-translation-192":"Por favor repita su contrase\xf1a","__stack-auto-translation-193":"Int\xe9ntelo de nuevo y si el problema persiste, comun\xedquese con soporte.","__stack-auto-translation-194":"Por favor verifica tu direcci\xf3n de correo electr\xf3nico ","__stack-auto-translation-195":"Por favor, verifique su correo electr\xf3nico primero","__stack-auto-translation-196":"Principal","__stack-auto-translation-197":"Pro","__stack-auto-translation-198":"Imagen de perfil","__stack-auto-translation-199":"Registrar una clave de acceso","__stack-auto-translation-2":"Configuraci\xf3n de cuenta","__stack-auto-translation-20":"\xbfEst\xe1s seguro de que quieres deshabilitar el inicio de sesi\xf3n con clave de acceso? Ya no podr\xe1s iniciar sesi\xf3n con tu clave de acceso.","__stack-auto-translation-200":"Eliminar","__stack-auto-translation-201":"Se renueva el","__stack-auto-translation-202":"Repetir nueva contrase\xf1a","__stack-auto-translation-203":"Repetir Nueva Contrase\xf1a","__stack-auto-translation-204":"Repetir contrase\xf1a","__stack-auto-translation-205":"Reenviar correo de verificaci\xf3n","__stack-auto-translation-206":"Restablecer Contrase\xf1a","__stack-auto-translation-207":"Restablecer su contrase\xf1a","__stack-auto-translation-208":"Revisa facturas y recibos anteriores.","__stack-auto-translation-209":"Revocar","__stack-auto-translation-21":"\xbfEst\xe1s seguro de que quieres abandonar el equipo?","__stack-auto-translation-210":"Revocar todas las otras sesiones","__stack-auto-translation-211":"Guardar","__stack-auto-translation-212":"Escanea este c\xf3digo QR con tu aplicaci\xf3n de autenticaci\xf3n:","__stack-auto-translation-213":"Clave API secreta","__stack-auto-translation-214":"Selecciona un nuevo plan de la misma l\xednea de productos.","__stack-auto-translation-215":"Enviar correo","__stack-auto-translation-216":"Enviar Correo","__stack-auto-translation-217":"Enviar correo de verificaci\xf3n","__stack-auto-translation-218":"Sesi\xf3n","__stack-auto-translation-219":"Establezca una contrase\xf1a para su cuenta","__stack-auto-translation-22":"Autorizaci\xf3n Fallida","__stack-auto-translation-220":"Establecer como principal","__stack-auto-translation-221":"Establecer contrase\xf1a","__stack-auto-translation-222":"Establecer Contrase\xf1a","__stack-auto-translation-223":"Configuraci\xf3n","__stack-auto-translation-224":"Iniciar sesi\xf3n","__stack-auto-translation-225":"Iniciar sesi\xf3n","__stack-auto-translation-226":"Iniciar sesi\xf3n de nuevo","__stack-auto-translation-227":"Inicie sesi\xf3n o cree una cuenta para unirse al equipo.","__stack-auto-translation-228":"Inicia sesi\xf3n en tu cuenta","__stack-auto-translation-229":"Iniciar sesi\xf3n con clave de acceso","__stack-auto-translation-23":"Autorizar","__stack-auto-translation-230":"Iniciar sesi\xf3n con {provider}","__stack-auto-translation-231":"Cerrar sesi\xf3n","__stack-auto-translation-232":"Registrarse","__stack-auto-translation-233":"Registrarse","__stack-auto-translation-234":"En este momento no est\xe1 habilitado el registro para nuevos usuarios.","__stack-auto-translation-235":"Registrarse con clave de acceso","__stack-auto-translation-236":"Registrarse con {provider}","__stack-auto-translation-237":"\xa1Sesi\xf3n iniciada con \xe9xito!","__stack-auto-translation-238":"Iniciado sesi\xf3n {time}","__stack-auto-translation-239":"Algo sali\xf3 mal al procesar la devoluci\xf3n de llamada de OAuth:","__stack-auto-translation-24":"Autorizar Aplicaci\xf3n CLI","__stack-auto-translation-240":"Estado","__stack-auto-translation-241":"Dejar de usar para iniciar sesi\xf3n","__stack-auto-translation-242":"Suscripci\xf3n","__stack-auto-translation-243":"Cambiar plan","__stack-auto-translation-244":"La creaci\xf3n de equipos est\xe1 deshabilitada en modo demo","__stack-auto-translation-245":"La creaci\xf3n de equipos no est\xe1 habilitada","__stack-auto-translation-246":"Nombre de visualizaci\xf3n del equipo","__stack-auto-translation-247":"Invitaci\xf3n al equipo","__stack-auto-translation-248":"Imagen de perfil del equipo","__stack-auto-translation-249":"Nombre de usuario del equipo","__stack-auto-translation-25":"Autorizando...","__stack-auto-translation-250":"Equipos","__stack-auto-translation-251":"La aplicaci\xf3n CLI ha sido autorizada exitosamente. Puedes cerrar esta ventana y regresar a la l\xednea de comandos.","__stack-auto-translation-252":"El enlace m\xe1gico ya ha sido utilizado. El enlace solo puede usarse una vez. Por favor, solicita un nuevo enlace m\xe1gico si necesitas iniciar sesi\xf3n nuevamente.","__stack-auto-translation-253":"La operaci\xf3n de inicio de sesi\xf3n ha sido cancelada o denegada. Por favor, int\xe9ntelo de nuevo.","__stack-auto-translation-254":"El usuario ya est\xe1 conectado a otra cuenta de OAuth. \xbfQu
2iz\xe1s seleccionaste la cuenta incorrecta en la p\xe1gina del proveedor de OAuth?","__stack-auto-translation-255":"Luego, ingrese su c\xf3digo MFA de seis d\xedgitos:","__stack-auto-translation-256":"Estos son los dispositivos donde has iniciado sesi\xf3n actualmente. Puedes revocar el acceso para finalizar una sesi\xf3n.","__stack-auto-translation-257":"Esta cuenta ya est\xe1 conectada a otro usuario. Por favor, conecta una cuenta diferente.","__stack-auto-translation-258":"Este correo electr\xf3nico ya est\xe1 siendo usado para iniciar sesi\xf3n por otro usuario.","__stack-auto-translation-259":"Este es un nombre para mostrar y no se usa para autenticaci\xf3n","__stack-auto-translation-26":"Cancelar","__stack-auto-translation-260":"Es muy probable que esto sea un error en Stack. Por favor, rep\xf3rtelo.","__stack-auto-translation-261":"Este enlace para restablecer la contrase\xf1a ya ha sido utilizado. Si necesita restablecer su contrase\xf1a nuevamente, solicite un nuevo enlace desde la p\xe1gina de inicio de sesi\xf3n.","__stack-auto-translation-262":"Este enlace de invitaci\xf3n al equipo ya ha sido utilizado.","__stack-auto-translation-263":"Para activar el inicio de sesi\xf3n con OTP, agregue un correo electr\xf3nico de inicio de sesi\xf3n verificado.","__stack-auto-translation-264":"Para activar el inicio de sesi\xf3n con clave de acceso, agregue un correo electr\xf3nico de inicio de sesi\xf3n verificado.","__stack-auto-translation-265":"Para establecer una contrase\xf1a, agregue un correo electr\xf3nico de inicio de sesi\xf3n.","__stack-auto-translation-266":"Cambiar tema","__stack-auto-translation-267":"C\xf3digo QR de autenticaci\xf3n multifactor TOTP","__stack-auto-translation-268":"Intentar de nuevo","__stack-auto-translation-269":"No disponible","__stack-auto-translation-27":"Cancelar suscripci\xf3n","__stack-auto-translation-270":"Incobrable","__stack-auto-translation-271":"Desconocido","__stack-auto-translation-272":"No verificado","__stack-auto-translation-273":"Actualizar contrase\xf1a","__stack-auto-translation-274":"Actualizar Contrase\xf1a","__stack-auto-translation-275":"Actualizar m\xe9todo de pago","__stack-auto-translation-276":"Actualiza tu contrase\xf1a","__stack-auto-translation-277":"Sube una imagen para tu equipo","__stack-auto-translation-278":"Sube tu propia imagen como tu avatar","__stack-auto-translation-279":"Usar para iniciar sesi\xf3n","__stack-auto-translation-28":"Cancelar detendr\xe1 las renovaciones futuras de esta suscripci\xf3n.","__stack-auto-translation-280":"Usado para iniciar sesi\xf3n","__stack-auto-translation-281":"Enlace de Restablecimiento de Contrase\xf1a Usado","__stack-auto-translation-282":"Enlace de Invitaci\xf3n Utilizado","__stack-auto-translation-283":"Usuario","__stack-auto-translation-284":"Nombre de usuario","__stack-auto-translation-285":"La verificaci\xf3n fall\xf3","__stack-auto-translation-286":"\xa1Verificado! Redirigiendo...","__stack-auto-translation-287":"Verificar","__stack-auto-translation-288":"Verificando...","__stack-auto-translation-289":"Ver","__stack-auto-translation-29":"cambiar","__stack-auto-translation-290":"Ver tus planes activos y compras.","__stack-auto-translation-291":"Anulada","__stack-auto-translation-292":"ADVERTENCIA: Aseg\xfarese de confiar en la aplicaci\xf3n de l\xednea de comandos, ya que obtendr\xe1 acceso a su cuenta. Si no inici\xf3 esta solicitud, puede cerrar esta p\xe1gina e ignorarla. Nunca le enviaremos este enlace por correo electr\xf3nico ni por ning\xfan otro medio.","__stack-auto-translation-293":"Ya has iniciado sesi\xf3n","__stack-auto-translation-294":"No est\xe1s conectado actualmente.","__stack-auto-translation-295":"No puedes eliminar tu \xfaltimo correo electr\xf3nico de inicio de sesi\xf3n","__stack-auto-translation-296":"No puedes revocar tu sesi\xf3n actual","__stack-auto-translation-297":"\xa1Tu correo electr\xf3nico ha sido verificado!","__stack-auto-translation-298":"A\xfan no has completado la configuraci\xf3n de tu cuenta. Por favor contacta a soporte si crees que esto es un error.","__stack-auto-translation-299":"Tu correo electr\xf3nico","__stack-auto-translation-3":"Configuraci\xf3n de cuenta","__stack-auto-translation-30":"Cambiar plan","__stack-auto-translation-300":"Su enlace de verificaci\xf3n de correo electr\xf3nico ha expirado. Por favor, solicite un nuevo enlace de verificaci\xf3n desde la configuraci\xf3n de su cuenta.","__stack-auto-translation-301":"Su enlace m\xe1gico ha expirado. Por favor, solicite un nuevo enlace m\xe1gico si necesita iniciar sesi\xf3n.","__stack-auto-translation-302":"Tu contrase\xf1a ha sido restablecida. Ahora puedes iniciar sesi\xf3n con tu nueva contrase\xf1a.","__stack-auto-translation-303":"Su enlace para restablecer la contrase\xf1a ha expirado. Por favor, solicite un nuevo enlace desde la p\xe1gina de inicio de sesi\xf3n.","__stack-auto-translation-304":"Su enlace de invitaci\xf3n al equipo ha expirado. Por favor, solicite un nuevo enlace de invitaci\xf3n al equipo","__stack-auto-translation-31":"Cambiar el nombre visible de tu equipo","__stack-auto-translation-32":"Elegir un plan","__stack-auto-translation-33":"Elige qu\xe9 correos electr\xf3nicos quieres recibir","__stack-auto-translation-34":"Autorizaci\xf3n de CLI exitosa","__stack-auto-translation-35":"haga clic aqu\xed","__stack-auto-translation-36":"Haz clic en el bot\xf3n de abajo para reenviar el enlace de verificaci\xf3n.","__stack-auto-translation-37":"Cerrar","__stack-auto-translation-38":"Completar configuraci\xf3n","__stack-auto-translation-39":"C
2ompleta la configuraci\xf3n de tu cuenta","__stack-auto-translation-4":"Planes activos","__stack-auto-translation-40":"Confirmar","__stack-auto-translation-41":"Continuar","__stack-auto-translation-42":"C\xf3piala en un lugar seguro. No podr\xe1s verla de nuevo.","__stack-auto-translation-43":"No se pudo recortar la imagen.","__stack-auto-translation-44":"Crear","__stack-auto-translation-45":"Crear una cuenta nueva","__stack-auto-translation-46":"Crear un equipo","__stack-auto-translation-47":"Crear un equipo","__stack-auto-translation-48":"Crear Clave API","__stack-auto-translation-49":"Paquete de cr\xe9ditos","__stack-auto-translation-5":"Sesiones Activas","__stack-auto-translation-50":"Sesi\xf3n actual","__stack-auto-translation-51":"Equipo actual","__stack-auto-translation-52":"Zona de peligro","__stack-auto-translation-53":"Fecha","__stack-auto-translation-54":"Eliminar cuenta","__stack-auto-translation-55":"Eliminar cuenta","__stack-auto-translation-56":"Eliminar clave de acceso","__stack-auto-translation-57":"Descripci\xf3n","__stack-auto-translation-58":"Se requiere una descripci\xf3n","__stack-auto-translation-59":"Deshabilitar","__stack-auto-translation-6":"Agregar","__stack-auto-translation-60":"Deshabilitar MFA","__stack-auto-translation-61":"Deshabilitar OTP","__stack-auto-translation-62":"Nombre para mostrar","__stack-auto-translation-63":"\xbfDesea iniciar sesi\xf3n?","__stack-auto-translation-64":"\xbfQuieres verificar tu correo electr\xf3nico?","__stack-auto-translation-65":"\xbfNo tienes una cuenta?","__stack-auto-translation-66":"\xbfNo necesitas restablecer?","__stack-auto-translation-67":"Borrador","__stack-auto-translation-68":"p. ej. Desarrollo, Producci\xf3n, CI/CD","__stack-auto-translation-69":"Correo electr\xf3nico","__stack-auto-translation-7":"Agrega un m\xe9todo de pago antes de cambiar de plan.","__stack-auto-translation-70":"Correo y contrase\xf1a","__stack-auto-translation-71":"El correo electr\xf3nico ya existe","__stack-auto-translation-72":"El correo electr\xf3nico es obligatorio","__stack-auto-translation-73":"La administraci\xf3n de correo electr\xf3nico no est\xe1 disponible en modo demo.","__stack-auto-translation-74":"\xa1Correo enviado!","__stack-auto-translation-75":"Correos electr\xf3nicos","__stack-auto-translation-76":"Correos electr\xf3nicos y autenticaci\xf3n","__stack-auto-translation-77":"Activar MFA","__stack-auto-translation-78":"Activar OTP","__stack-auto-translation-79":"Activar inicio de sesi\xf3n mediante enlace m\xe1gico o OTP enviado a sus correos electr\xf3nicos de inicio de sesi\xf3n.","__stack-auto-translation-8":"Agregar un correo electr\xf3nico","__stack-auto-translation-80":"Finalizar su sesi\xf3n actual","__stack-auto-translation-81":"Ingrese un nombre para mostrar para su nuevo equipo","__stack-auto-translation-82":"Ingrese correo electr\xf3nico","__stack-auto-translation-83":"Ingrese el c\xf3digo de su correo electr\xf3nico","__stack-auto-translation-84":"Ingresa el c\xf3digo de seis d\xedgitos de tu aplicaci\xf3n de autenticaci\xf3n","__stack-auto-translation-85":"Ingresa tu correo electr\xf3nico","__stack-auto-translation-86":"Enlace m\xe1gico caducado","__stack-auto-translation-87":"Enlace de Restablecimiento de Contrase\xf1a Expirado","__stack-auto-translation-88":"Enlace de invitaci\xf3n al equipo caducado","__stack-auto-translation-89":"Enlace de verificaci\xf3n caducado","__stack-auto-translation-9":"Agregar nueva clave de acceso","__stack-auto-translation-90":"Vence","__stack-auto-translation-91":"Vence en","__stack-auto-translation-92":"No se pudo autorizar la aplicaci\xf3n CLI:","__stack-auto-translation-93":"Error al conectar la cuenta","__stack-auto-translation-94":"Fallo al restablecer contrase\xf1a","__stack-auto-translation-95":"No se pudo restablecer la contrase\xf1a. Solicite un nuevo enlace de restablecimiento","__stack-auto-translation-96":"\xbfOlvidaste tu contrase\xf1a?","__stack-auto-translation-97":"Ir a inicio","__stack-auto-translation-98":"Ir a inicio","__stack-auto-translation-99":"Aqu\xed est\xe1 tu clave API."})),"es-ES":new Map(an({"__stack-auto-translation-0":"-","__stack-auto-translation-1":"Una aplicaci\xf3n de l\xednea de comandos est\xe1 solicitando acceso a tu cuenta. Haz clic en el bot\xf3n de abajo para autorizarla.","__stack-auto-translation-10":"A\xf1ade tu direcci\xf3n de correo electr\xf3nico","__stack-auto-translation-100":"Entiendo que no podr\xe9 ver esta clave de nuevo.","__stack-auto-translation-101":"Si el usuario con esta direcci\xf3n de correo existe, se ha enviado un correo a su bandeja de entrada. Aseg\xfarese de revisar su carpeta de spam.","__stack-auto-translation-102":"Si no es redirigido autom\xe1ticamente, ","__stack-auto-translation-103":"Ignorar","__stack-auto-translation-104":"Suplantaci\xf3n","__stack-auto-translation-105":"C\xf3digo incorrecto. Por favor, int\xe9ntelo de nuevo.","__stack-auto-translation-106":"Contrase\xf1a incorrecta","__stack-auto-translation-107":"C\xf3digo no v\xe1lido","__stack-auto-translation-108":"Imagen no v\xe1lida","__stack-auto-translation-109":"Enlace M\xe1gico No V\xe1lido","__stack-auto-translation-11":"\xbfYa tienes una cuenta?","__stack-auto-translation-110":"Enlace de restablecimiento de contrase\xf1a no v\xe1lido","__stack-auto-translation-111":"Enlace de invitaci\xf3n al equipo no v\xe1lido","__stack-auto-translation-112":"C\xf3digo TOTP no v\xe1lido","__stack-auto-translation-113":"Enlace de verificaci\xf3n no v\xe1lido","__stack-auto-translation-114":"Invita a un usuario a tu equipo por correo electr\xf3nico","__stack-auto-translation-115":"Invitar miembro","__stack-auto-translation-116":"Invitar usuario","__stack-auto-translation-117":"Factura","__stack-auto-translation-118":"Facturas","__stack-auto-translation-119":"Direcci\xf3n IP","__stack-auto-translation-12":"Importe","__stack-auto-translation-120":"Unirse","__stack-auto-translation-121":"\xdaltimo uso","__stack-auto-translation-122":"Salir","__stack-auto-translation-123":"Abandonar equipo","__stack-auto-translation-124":"Abandonar equipo","__stack-auto-translation-125":"abandonar este equipo y eliminar tu perfil de equipo","__stack-auto-translation-126":"Ubicaci\xf3n","__stack-auto-translation-127":"Enlace m\xe1gico ya utilizado","__stack-auto-translation-128":"Gestiona el m\xe9todo de pago predeterminado para suscripciones y facturas.","__stack-auto-translation-129":"Miembros","__stack-auto-translation-13":"Se produjo un error desconocido","__stack-auto-translation-130":"La gesti\xf3n de MFA no est\xe1 disponible en modo demo.","__stack-auto-translation-131":"Falta informaci\xf3n de verificaci\xf3n","__stack-auto-translation-132":"Autenticaci\xf3n de m\xfaltiples factores","__stack-auto-translation-133":"Autenticaci\xf3n de m\xfaltiples factores","__stack-auto-translation-134":"La autenticaci\xf3n de m\xfaltiples factores est\xe1 actualmente desactivada.","__stack-auto-translation-135":"La autenticaci\xf3n de m\xfaltiples factores est\xe1 actualmente habilitada.","__stack-auto-translation-136":"Mi perfil","__stack-auto-translation-137":"Nombre","__stack-auto-translation-138":"Nunca","__stack-auto-translation-139":"No se permite el registro de nuevas cuentas","__stack-auto-translation-14":"Clave API","__stack-auto-translation-140":"Nueva contrase\xf1a","__stack-auto-translation-141":"Nueva contrase\xf1a","__stack-auto-translation-142":"No se encontraron sesiones activas","__stack-auto-translation-143":"Ning\xfan m\xe9todo de autenticaci\xf3n habilitado.","__stack-auto-translation-144":"Sin m\xe9todo de pago predeterminado","__stack-auto-translation-145":"Nombre visible no establecido","__stack-auto-translation-146":"No hay otros planes disponibles para esta suscripci\xf3n.","__stack-auto-translation-147":"No hay invitaciones pendientes","__stack-auto-translation-148":"Sin equipo","__stack-auto-translation-149":"Sin equipos a\xfan","__stack-auto-translation-15":"Claves API","__stack-auto-translation-150":"No has iniciado sesi\xf3n","__stack-auto-translation-151":"Notificaciones","__stack-auto-translation-152":"Acceso denegado al proveedor de OAuth","__stack-auto-translation-153":"Contrase\xf1a anterior","__stack-auto-translation-154":"Contrase\xf1a de un solo uso","__stack-auto-translation-155":"Compra \xfanica","__stack-auto-translation-156":"Abierta","__stack-auto-translation-157":"O continuar con","__stack-auto-translation-158":"Otra sesi\xf3n","__stack-auto-translation-159":"Otros equipos","__stack-auto-translation-16":"Las claves API otorgan acceso program\xe1tico a tu cuenta.","__stack-auto-translation-160":"La gesti\xf3n de OTP no est\xe1 disponible en modo demostraci\xf3n.","__stack-auto-translation-161":"Inicio de sesi\xf3n por OTP","__stack-auto-translation-162":"El inicio de sesi\xf3n por OTP est\xe1 habilitado y no se puede deshabilitar ya que actualmente es el \xfanico m\xe9todo de inicio de sesi\xf3n","__stack-auto-translation-163":"El inicio de sesi\xf3n por OTP/enlace m\xe1gico est\xe1 actualmente habilitado.","__stack-auto-translation-164":"Invitaciones pendientes","__stack-auto-translation-165":"Sobrescribe tu nombre para mostrar en este equipo","__stack-auto-translation-166":"Pagado","__stack-auto-translation-167":"Clave de acceso","__stack-auto-translation-168":"La gesti\xf3n de claves de acceso no est\xe1 disponible en modo demo.","__stack-auto-translation-169":"Clave de acceso registrada","__stack-auto-translation-17":"Las claves API otorgan acceso program\xe1tico a tu equipo.","__stack-auto-translation-170":"El inicio de sesi\xf3n con clave de acceso est\xe1 habilitado y no se puede deshabilitar ya que es el \xfanico m\xe9todo de inicio de sesi\xf3n actual","__stack-auto-translation-171":"Contrase\xf1a","__stack-auto-translation-172":"La gesti\xf3n de contrase\xf1as no est\xe1 disponible en modo demo.","__stack-auto-translation-173":"\xa1Contrase\xf1a restablecida correctamente!","__stack-auto-translation-174":"Las contrase\xf1as no coinciden","__stack-auto-translation-175":"M\xe9todo de pago","__stack-auto-translation-176":"Pagos","__stack-auto-translation-177":"Eliminar permanentemente tu cuenta y todos los datos asociados","__stack-auto-translation-178":"Personal","__stack-auto-translation-179":"Por favor, a\xf1ade una direcci\xf3n de correo electr\xf3nico para completar la configuraci\xf3n de tu cuenta. Te enviaremos un email de verificaci\xf3n.","__stack-auto-translation-18":"\xbfEst\xe1s seguro de que quieres eliminar tu cuenta? Esta acci\xf3n es IRREVERSIBLE y eliminar\xe1 TODOS los datos asociados.","__stack-auto-translation-180":"Por favor, verifique si tiene el enlace correcto. Si contin\xfaa teniendo problemas, contacte con soporte.","__stack-auto-translation-181":"Por favor, revisa tu bandeja de entrada","__stack-auto-translation-182":"Por favor, completa la configuraci\xf3n de tu cuenta antes de unirte a equipos.","__stack-auto-translation-183":"Por favor, verifique si tiene el enlace correcto para restablecer la contrase\xf1a.","__stack-auto-translation-184":"Por favor, comprueba si tienes el enlace de invitaci\xf3n al equipo correcto.","__stack-auto-translation-185":"Introduce un nombre de equipo","__stack-auto-translation-186":"Por favor, introduce un email v\xe1lido","__stack-auto-translation-187":"Por favor, introduzca una direcci\xf3n de correo electr\xf3nico v\xe1lida","__stack-auto-translation-188":"Por favor, introduzca una direcci\xf3n de email","__stack-auto-translation-189":"Introduzca su correo electr\xf3nico","__stack-auto-translation-19":"\xbfEst\xe1 seguro de que desea deshabilitar el inicio de sesi\xf3n por OTP? Ya no podr\xe1 iniciar sesi\xf3n solo con correos electr\xf3nicos.","__stack-auto-translation-190":"Por favor, introduce tu contrase\xf1a antigua","__stack-auto-translation-191":"Por favor, ingrese su contrase\xf1a","__stack-auto-translation-192":"Por favor, repita su contrase\xf1a","__stack-auto-translation-193":"Int\xe9ntelo de nuevo y, si el problema persiste, contacte con soporte.","__stack-auto-translation-194":"Por favor, verifica tu direcci\xf3n de email ","__stack-auto-translation-195":"Por favor, verifica tu email primero","__stack-auto-translation-196":"Principal","__stack-auto-translation-197":"Pro","__stack-auto-translation-198":"Imagen de perfil","__stack-auto-translation-199":"Registrar una clave de acceso","__stack-auto-translation-2":"Configuraci\xf3n de la cuenta","__stack-auto-translation-20":"\xbfEst\xe1 seguro de que desea deshabilitar el inicio de sesi\xf3n con clave de acceso? Ya no podr\xe1 iniciar sesi\xf3n con su clave de acceso.","__stack-auto-translation-200":"Eliminar","__stack-auto-translation-201":"Se renueva el","__stack-auto-translation-202":"Repita la nueva contrase\xf1a","__stack-auto-translation-203":"Repita la nueva contrase\xf1a","__stack-auto-translation-204":"Repetir Contrase\xf1a","__stack-auto-translation-205":"Reenviar correo de verificaci\xf3n","__stack-auto-translation-206":"Restablecer Contrase\xf1a","__stack-auto-translation-207":"Restablecer tu contrase\xf1a","__stack-auto-translation-208":"Revisa facturas y recibos anteriores.","__stack-auto-translation-209":"Revocar","__stack-auto-translation-21":"\xbfEst\xe1 seguro de que desea abandonar el equipo?","__stack-auto-translation-210":"Revocar todas las dem\xe1s sesiones","__stack-auto-translation-211":"Guardar","__stack-auto-translation-212":"Escanea este c\xf3digo QR con tu aplicaci\xf3n de autenticaci\xf3n:","__stack-auto-translation-213":"Clave API secreta","__stack-auto-translation-214":"Selecciona un nuevo plan de la misma l\xednea de productos.","__stack-auto-translation-215":"Enviar correo","__stack-auto-translation-216":"Enviar correo","__stack-auto-translation-217":"Enviar correo de verificaci\xf3n","__stack-auto-translation-218":"Sesi\xf3n","__stack-auto-translation-219":"Establece una contrase\xf1a para tu cuenta","__stack-auto-translation-22":"Autorizaci\xf3n fallida","__stack-auto-translation-220":"Establecer como principal","__stack-auto-translation-221":"Establecer contrase\xf1a","__stack-auto-translation-222":"Establecer contrase\xf1a","__stack-auto-translation-223":"Configuraci\xf3n","__stack-auto-translation-224":"Iniciar sesi\xf3n","__stack-auto-translation-225":"Iniciar sesi\xf3n","__stack-auto-translation-226":"Iniciar sesi\xf3n de nuevo","__stack-auto-translation-227":"Inicia sesi\xf3n o crea una cuenta para unirte al equipo.","__stack-auto-translation-228":"Iniciar sesi\xf3n en tu cuenta","__stack-auto-translation-229":"Iniciar sesi\xf3n con Clave de acceso","__stack-auto-translation-23":"Autorizar","__stack-auto-translation-230":"Iniciar sesi\xf3n con {provider}","__stack-auto-translation-231":"Cerrar sesi\xf3n","__stack-auto-translation-232":"Registrarse","__stack-auto-translation-233":"Registrarse","__stack-auto-translation-234":"El registro de nuevos usuarios no est\xe1 habilitado en este momento.","__stack-auto-translation-235":"Registrarse con Clave de acceso","__stack-auto-translation-236":"Registrarse con {provider}","__stack-auto-translation-237":"\xa1Sesi\xf3n iniciada con \xe9xito!","__stack-auto-translation-238":"Iniciado sesi\xf3n {time}","__stack-auto-translation-239":"Algo sali\xf3 mal al procesar la devoluci\xf3n de llamada de OAuth:","__stack-auto-translation-24":"Autorizar aplicaci\xf3n CLI","__stack-auto-translation-240":"Estado","__stack-auto-translation-241":"Dejar de usar para iniciar sesi\xf3n","__stack-auto-translation-242":"Suscripci\xf3n","__stack-auto-translation-243":"Cambiar plan","__stack-auto-translation-244":"La creaci\xf3n de equipos est\xe1 deshabilitada en modo demo","__stack-auto-translation-245":"La creaci\xf3n de equipos no est\xe1 habilitada","__stack-auto-translation-246":"Nombre visible del equipo","__stack-auto-translation-247":"Invitaci\xf3n al equipo","__stack-auto-translation-248":"Imagen de perfil del equipo","__stack-auto-translation-249":"Nombre de usuario del equipo","__stack-auto-translation-25":"Autorizando...","__stack-auto-translation-250":"Equipos","__stack-auto-translation-251":"La aplicaci\xf3n CLI se ha autorizado correctamente. Puedes cerrar esta ventana y volver a la l\xednea de comandos.","__stack-auto-translation-252":"El enlace m\xe1gico ya ha sido utilizado. El enlace solo se puede usar una vez. Por favor, solicita un nuevo enlace m\xe1gico si necesitas iniciar sesi\xf3n de nuevo.","__stack-auto-translation
2-253":"La operaci\xf3n de inicio de sesi\xf3n ha sido cancelada o denegada. Por favor, int\xe9ntelo de nuevo.","__stack-auto-translation-254":"El usuario ya est\xe1 conectado a otra cuenta OAuth. \xbfQuiz\xe1s seleccion\xf3 la cuenta equivocada en la p\xe1gina del proveedor OAuth?","__stack-auto-translation-255":"Luego, ingrese su c\xf3digo MFA de seis d\xedgitos:","__stack-auto-translation-256":"Estos son los dispositivos donde has iniciado sesi\xf3n actualmente. Puedes revocar el acceso para finalizar una sesi\xf3n.","__stack-auto-translation-257":"Esta cuenta ya est\xe1 conectada a otro usuario. Por favor, conecta una cuenta diferente.","__stack-auto-translation-258":"Este email ya est\xe1 siendo usado para iniciar sesi\xf3n por otro usuario.","__stack-auto-translation-259":"Este es un nombre visible y no se utiliza para la autenticaci\xf3n","__stack-auto-translation-26":"Cancelar","__stack-auto-translation-260":"Es probable que sea un error en Stack. Por favor, rep\xf3rtelo.","__stack-auto-translation-261":"Este enlace para restablecer la contrase\xf1a ya ha sido utilizado. Si necesita restablecer su contrase\xf1a de nuevo, solicite un nuevo enlace desde la p\xe1gina de inicio de sesi\xf3n.","__stack-auto-translation-262":"Este enlace de invitaci\xf3n al equipo ya ha sido utilizado.","__stack-auto-translation-263":"Para habilitar el inicio de sesi\xf3n por OTP, a\xf1ada un email de inicio de sesi\xf3n verificado.","__stack-auto-translation-264":"Para habilitar el inicio de sesi\xf3n con clave de acceso, a\xf1ada un email de inicio de sesi\xf3n verificado.","__stack-auto-translation-265":"Para establecer una contrase\xf1a, a\xf1ade un email de inicio de sesi\xf3n.","__stack-auto-translation-266":"Cambiar tema","__stack-auto-translation-267":"C\xf3digo QR de autenticaci\xf3n multifactor TOTP","__stack-auto-translation-268":"Intentar de nuevo","__stack-auto-translation-269":"No disponible","__stack-auto-translation-27":"Cancelar suscripci\xf3n","__stack-auto-translation-270":"Incobrable","__stack-auto-translation-271":"Desconocido","__stack-auto-translation-272":"Sin verificar","__stack-auto-translation-273":"Actualizar contrase\xf1a","__stack-auto-translation-274":"Actualizar Contrase\xf1a","__stack-auto-translation-275":"Actualizar m\xe9todo de pago","__stack-auto-translation-276":"Actualiza tu contrase\xf1a","__stack-auto-translation-277":"Sube una imagen para tu equipo","__stack-auto-translation-278":"Sube tu propia imagen como avatar","__stack-auto-translation-279":"Usar para iniciar sesi\xf3n","__stack-auto-translation-28":"Cancelar detendr\xe1 las renovaciones futuras de esta suscripci\xf3n.","__stack-auto-translation-280":"Usado para iniciar sesi\xf3n","__stack-auto-translation-281":"Enlace de restablecimiento de contrase\xf1a utilizado","__stack-auto-translation-282":"Enlace de invitaci\xf3n al equipo utilizado","__stack-auto-translation-283":"Usuario","__stack-auto-translation-284":"Nombre de usuario","__stack-auto-translation-285":"Verificaci\xf3n fallida","__stack-auto-translation-286":"\xa1Verificado! Redirigiendo...","__stack-auto-translation-287":"Verificar","__stack-auto-translation-288":"Verificando...","__stack-auto-translation-289":"Ver","__stack-auto-translation-29":"cambiar","__stack-auto-translation-290":"Ver tus planes activos y compras.","__stack-auto-translation-291":"Anulada","__stack-auto-translation-292":"ADVERTENCIA: Aseg\xfarate de confiar en la aplicaci\xf3n de l\xednea de comandos, ya que obtendr\xe1 acceso a tu cuenta. Si no iniciaste esta solicitud, puedes cerrar esta p\xe1gina e ignorarla. Nunca te enviaremos este enlace por correo electr\xf3nico ni por ning\xfan otro medio.","__stack-auto-translation-293":"Ya has iniciado sesi\xf3n","__stack-auto-translation-294":"No est\xe1 registrado actualmente.","__stack-auto-translation-295":"No puedes eliminar tu \xfaltimo email de inicio de sesi\xf3n","__stack-auto-translation-296":"No puedes revocar tu sesi\xf3n actual","__stack-auto-translation-297":"\xa1Tu email ha sido verificado!","__stack-auto-translation-298":"A\xfan no has completado la configuraci\xf3n de tu cuenta. Por favor, contacta con soporte si crees que esto es un error.","__stack-auto-translation-299":"Tu correo electr\xf3nico","__stack-auto-translation-3":"Configuraci\xf3n de la cuenta","__stack-auto-translation-30":"Cambiar plan","__stack-auto-translation-300":"Su enlace de verificaci\xf3n de correo electr\xf3nico ha caducado. Por favor, solicite un nuevo enlace de verificaci\xf3n desde la configuraci\xf3n de su cuenta.","__stack-auto-translation-301":"Su enlace m\xe1gico ha caducado. Por favor, solicite un nuevo enlace m\xe1gico si necesita iniciar sesi\xf3n.","__stack-auto-translation-302":"Tu contrase\xf1a ha sido restablecida. Ahora puedes iniciar sesi\xf3n con tu nueva contrase\xf1a.","__stack-auto-translation-303":"Tu enlace para restablecer la contrase\xf1a ha caducado. Solicita un nuevo enlace desde la p\xe1gina de inicio de sesi\xf3n.","__stack-auto-translation-304":"Tu enlace de invitaci\xf3n al equipo ha caducado. Por favor, solicita un nuevo enlace de invitaci\xf3n","__stack-auto-translation-31":"Cambiar el nombre visible de tu equipo","__stack-auto-translation-32":"Elegir un plan","__stack-auto-translation-33":"Elige qu\xe9 correos electr\xf3nicos quieres recibir","__stack-auto-translation-34":"Autorizaci\xf3n de CLI exitosa","__stack-auto-translation-35":"haga clic aqu\xed","__stack-auto-translation-36":"Haz clic en el bot\xf3n de abajo para reenviar el enlace de verificaci\xf3n.","__stack-auto-translation-37":"Cerrar","__stack-auto-translation-38":"Completar configuraci\xf3n","__stack-auto-translation-39":"C
2ompleta la configuraci\xf3n de tu cuenta","__stack-auto-translation-4":"Planes activos","__stack-auto-translation-40":"Confirmar","__stack-auto-translation-41":"Continuar","__stack-auto-translation-42":"C\xf3piala en un lugar seguro. No podr\xe1s verla de nuevo.","__stack-auto-translation-43":"No se pudo recortar la imagen.","__stack-auto-translation-44":"Crear","__stack-auto-translation-45":"Crear una nueva cuenta","__stack-auto-translation-46":"Crear un equipo","__stack-auto-translation-47":"Crear un equipo","__stack-auto-translation-48":"Crear clave API","__stack-auto-translation-49":"Paquete de cr\xe9ditos","__stack-auto-translation-5":"Sesiones activas","__stack-auto-translation-50":"Sesi\xf3n actual","__stack-auto-translation-51":"Equipo actual","__stack-auto-translation-52":"Zona de peligro","__stack-auto-translation-53":"Fecha","__stack-auto-translation-54":"Eliminar cuenta","__stack-auto-translation-55":"Eliminar cuenta","__stack-auto-translation-56":"Eliminar clave de acceso","__stack-auto-translation-57":"Descripci\xf3n","__stack-auto-translation-58":"La descripci\xf3n es obligatoria","__stack-auto-translation-59":"Deshabilitar","__stack-auto-translation-6":"A\xf1adir","__stack-auto-translation-60":"Deshabilitar MFA","__stack-auto-translation-61":"Deshabilitar OTP","__stack-auto-translation-62":"Nombre visible","__stack-auto-translation-63":"\xbfQuieres iniciar sesi\xf3n?","__stack-auto-translation-64":"\xbfQuieres verificar tu email?","__stack-auto-translation-65":"\xbfNo tienes una cuenta?","__stack-auto-translation-66":"\xbfNo necesitas restablecer?","__stack-auto-translation-67":"Borrador","__stack-auto-translation-68":"p. ej. Desarrollo, Producci\xf3n, CI/CD","__stack-auto-translation-69":"Correo electr\xf3nico","__stack-auto-translation-7":"A\xf1ade un m\xe9todo de pago antes de cambiar de plan.","__stack-auto-translation-70":"Correo y contrase\xf1a","__stack-auto-translation-71":"El correo electr\xf3nico ya existe","__stack-auto-translation-72":"El correo electr\xf3nico es obligatorio","__stack-auto-translation-73":"La gesti\xf3n de correo electr\xf3nico no est\xe1 disponible en modo demo.","__stack-auto-translation-74":"\xa1Correo enviado!","__stack-auto-translation-75":"Correos electr\xf3nicos","__stack-auto-translation-76":"Correos electr\xf3nicos y autenticaci\xf3n","__stack-auto-translation-77":"Habilitar MFA","__stack-auto-translation-78":"Habilitar OTP","__stack-auto-translation-79":"Habilitar el inicio de sesi\xf3n mediante enlace m\xe1gico o OTP enviado a tus correos electr\xf3nicos de inicio de sesi\xf3n.","__stack-auto-translation-8":"A\xf1adir un email","__stack-auto-translation-80":"Finalizar su sesi\xf3n actual","__stack-auto-translation-81":"Introduce un nombre visible para tu nuevo equipo","__stack-auto-translation-82":"Introducir email","__stack-auto-translation-83":"Introduzca el c\xf3digo de su correo electr\xf3nico","__stack-auto-translation-84":"Introduzca el c\xf3digo de seis d\xedgitos de su aplicaci\xf3n de autenticaci\xf3n","__stack-auto-translation-85":"Introduce tu email","__stack-auto-translation-86":"Enlace m\xe1gico caducado","__stack-auto-translation-87":"Enlace de restablecimiento de contrase\xf1a caducado","__stack-auto-translation-88":"Enlace de invitaci\xf3n al equipo caducado","__stack-auto-translation-89":"Enlace de verificaci\xf3n caducado","__stack-auto-translation-9":"A\xf1adir nueva clave de acceso","__stack-auto-translation-90":"Caduca","__stack-auto-translation-91":"Caduca en","__stack-auto-translation-92":"Error al autorizar la aplicaci\xf3n de CLI:","__stack-auto-translation-93":"Error al conectar la cuenta","__stack-auto-translation-94":"Error al restablecer la contrase\xf1a","__stack-auto-translation-95":"Error al restablecer la contrase\xf1a. Solicite un nuevo enlace de restablecimiento","__stack-auto-translation-96":"\xbfOlvidaste tu contrase\xf1a?","__stack-auto-translation-97":"Ir a inicio","__stack-auto-translation-98":"Ir a inicio","__stack-auto-translation-99":"Aqu\xed est\xe1 tu clave API."})),"fr-CA":new Map(an({"__stack-auto-translation-0":"-","__stack-auto-translation-1":"Une application en ligne de commande demande l'acc\xe8s \xe0 votre compte. Cliquez sur le bouton ci-dessous pour l'autoriser.","__stack-auto-translation-10":"Ajoutez votre adresse courriel","__stack-auto-translation-100":"Je comprends que je ne pourrai plus voir cette cl\xe9 \xe0 n
2ouveau.","__stack-auto-translation-101":"Si l'utilisateur avec cette adresse courriel existe, un courriel a \xe9t\xe9 envoy\xe9 \xe0 votre bo\xeete de r\xe9ception. Assurez-vous de v\xe9rifier votre dossier de courrier ind\xe9sirable.","__stack-auto-translation-102":"Si vous n'\xeates pas redirig\xe9 automatiquement, ","__stack-auto-translation-103":"Ignorer","__stack-auto-translation-104":"Usurpation d'identit\xe9","__stack-auto-translation-105":"Code incorrect. Veuillez r\xe9essayer.","__stack-auto-translation-106":"Mot de passe incorrect","__stack-auto-translation-107":"Code invalide","__stack-auto-translation-108":"Image non valide","__stack-auto-translation-109":"Lien magique invalide","__stack-auto-translation-11":"Vous avez d\xe9j\xe0 un compte?","__stack-auto-translation-110":"Lien de r\xe9initialisation du mot de passe invalide","__stack-auto-translation-111":"Lien d'invitation d'\xe9quipe invalide","__stack-auto-translation-112":"Code TOTP non valide","__stack-auto-translation-113":"Lien de v\xe9rification invalide","__stack-auto-translation-114":"Invitez un utilisateur \xe0 votre \xe9quipe par courriel","__stack-auto-translation-115":"Inviter un membre","__stack-auto-translation-116":"Inviter l'utilisateur","__stack-auto-translation-117":"Facture","__stack-auto-translation-118":"Factures","__stack-auto-translation-119":"Adresse IP","__stack-auto-translation-12":"Montant","__stack-auto-translation-120":"Joindre","__stack-auto-translation-121":"Derni\xe8re utilisation","__stack-auto-translation-122":"Quitter","__stack-auto-translation-123":"Quitter l'\xe9quipe","__stack-auto-translation-124":"Quitter l'\xe9quipe","__stack-auto-translation-125":"quitter cette \xe9quipe et supprimer votre profil d'\xe9quipe","__stack-auto-translation-126":"Emplacement","__stack-auto-translation-127":"Lien magique d\xe9j\xe0 utilis\xe9","__stack-auto-translation-128":"G\xe9rer le mode de paiement par d\xe9faut utilis\xe9 pour les abonnements et les factures.","__stack-auto-translation-129":"Membres","__stack-auto-translation-13":"Une erreur inconnue s'est produite","__stack-auto-translation-130":"La gestion de l'AMF n'est pas disponible en mode d\xe9mo.","__stack-auto-translation-131":"Informations de v\xe9rification manquantes","__stack-auto-translation-132":"Authentification \xe0 plusieurs facteurs","__stack-auto-translation-133":"Authentification \xe0 plusieurs facteurs","__stack-auto-translation-134":"L'authentification \xe0 plusieurs facteurs est actuellement d\xe9sactiv\xe9e.","__stack-auto-translation-135":"L'authentification \xe0 plusieurs facteurs est actuellement activ\xe9e.","__stack-auto-translation-136":"Mon profil","__stack-auto-translation-137":"Nom","__stack-auto-translation-138":"Jamais","__stack-auto-translation-139":"L'inscription de nouveaux comptes n'est pas autoris\xe9e","__stack-auto-translation-14":"Cl\xe9 API","__stack-auto-translation-140":"Nouveau mot de passe","__stack-auto-translation-141":"Nouveau mot de passe","__stack-auto-translation-142":"Aucune session active trouv\xe9e","__stack-auto-translation-143":"Aucune m\xe9thode d'authentification activ\xe9e.","__stack-auto-translation-144":"Aucun mode de paiement par d\xe9faut","__stack-auto-translation-145":"Aucun nom d'affichage d\xe9fini","__stack-auto-translation-146":"Aucun autre forfait disponible pour cet abonnement.","__stack-auto-translation-147":"Aucune invitation en attente","__stack-auto-translation-148":"Aucune \xe9quipe","__stack-auto-translation-149":"Aucune \xe9quipe pour l'instant","__stack-auto-translation-15":"Cl\xe9s d'API","__stack-auto-translation-150":"Non connect\xe9","__stack-auto-translation-151":"Notifications","__stack-auto-translation-152":"Acc\xe8s au fournisseur OAuth refus\xe9","__stack-auto-translation-153":"Ancien mot de passe","__stack-auto-translation-154":"Mot de passe \xe0 usage unique","__stack-auto-translation-155":"Achat unique","__stack-auto-translation-156":"Ouverte","__stack-auto-translation-157":"Ou continuer avec","__stack-auto-translation-158":"Autre session","__stack-auto-translation-159":"Autres \xe9quipes","__stack-auto-translation-16":"Les cl\xe9s d'API permettent un acc\xe8s programmatique \xe0 votre compte.","__stack-auto-translation-160":"La gestion de l'OTP n'est pas disponible en mode d\xe9mo.","__stack-auto-translation-161":"Connexion par OTP","__stack-auto-translation-162":"La connexion par OTP est activ\xe9e et ne peut pas \xeatre d\xe9sactiv\xe9e c
2ar c'est actuellement la seule m\xe9thode de connexion","__stack-auto-translation-163":"La connexion par OTP/lien magique est actuellement activ\xe9e.","__stack-auto-translation-164":"Invitations en attente","__stack-auto-translation-165":"Remplacez votre nom d'affichage d'utilisateur dans cette \xe9quipe","__stack-auto-translation-166":"Pay\xe9","__stack-auto-translation-167":"Cl\xe9 d'acc\xe8s","__stack-auto-translation-168":"La gestion des cl\xe9s d'acc\xe8s n'est pas disponible en mode d\xe9mo.","__stack-auto-translation-169":"Cl\xe9 d'acc\xe8s enregistr\xe9e","__stack-auto-translation-17":"Les cl\xe9s d'API permettent un acc\xe8s programmatique \xe0 votre \xe9quipe.","__stack-auto-translation-170":"La connexion par cl\xe9 d'acc\xe8s est activ\xe9e et ne peut \xeatre d\xe9sactiv\xe9e car c'est actuellement la seule m\xe9thode de connexion","__stack-auto-translation-171":"Mot de passe","__stack-auto-translation-172":"La gestion des mots de passe n'est pas disponible en mode d\xe9mo.","__stack-auto-translation-173":"R\xe9initialisation du mot de passe r\xe9ussie !","__stack-auto-translation-174":"Les mots de passe ne correspondent pas","__stack-auto-translation-175":"Mode de paiement","__stack-auto-translation-176":"Paiements","__stack-auto-translation-177":"Supprimer d\xe9finitivement votre compte et toutes les donn\xe9es associ\xe9es","__stack-auto-translation-178":"Personnel","__stack-auto-translation-179":"Veuillez ajouter une adresse courriel pour terminer la configuration de votre compte. Nous vous enverrons un courriel de v\xe9rification.","__stack-auto-translation-18":"\xcates-vous s\xfbr de vouloir supprimer votre compte ? Cette action est IRR\xc9VERSIBLE et supprimera TOUTES les donn\xe9es associ\xe9es.","__stack-auto-translation-180":"Veuillez v\xe9rifier si vous avez le bon lien. Si les probl\xe8mes persistent, contactez le support.","__stack-auto-translation-181":"Veuillez v\xe9rifier votre bo\xeete de r\xe9ception","__stack-auto-translation-182":"Veuillez compl\xe9ter la configuration de votre compte avant de joindre des \xe9quipes.","__stack-auto-translation-183":"Veuillez v\xe9rifier si vous avez le bon lien de r\xe9initialisation du mot de passe.","__stack-auto-translation-184":"Veuillez v\xe9rifier si vous avez le bon lien d'invitation d'\xe9quipe.","__stack-auto-translation-185":"Veuillez saisir un nom d'\xe9quipe","__stack-auto-translation-186":"Veuillez saisir une adresse courriel valide","__stack-auto-translation-187":"Veuillez saisir une adresse courriel valide","__stack-auto-translation-188":"Veuillez saisir une adresse courriel","__stack-auto-translation-189":"Veuillez saisir votre courriel","__stack-auto-translation-19":"\xcates-vous s\xfbr de vouloir d\xe9sactiver la connexion par OTP ? Vous ne pourrez plus vous connecter uniquement avec des courriels.","__stack-auto-translation-190":"Veuillez entrer votre ancien mot de passe","__stack-auto-translation-191":"Veuillez entrer votre mot de passe","__stack-auto-translation-192":"Veuillez r\xe9p\xe9ter votre mot de passe","__stack-auto-translation-193":"Veuillez r\xe9essayer et si le probl\xe8me persiste, contactez le support.","__stack-auto-translation-194":"Veuillez v\xe9rifier votre adresse courriel ","__stack-auto-translation-195":"Veuillez d'abord v\xe9rifier votre courriel","__stack-auto-translation-196":"Principal","__stack-auto-translation-197":"Pro","__stack-auto-translation-198":"Image de profil","__stack-auto-translation-199":"Enregistrer une cl\xe9 d'acc\xe8s","__stack-auto-translation-2":"Param\xe8tres du compte","__stack-auto-translation-20":"\xcates-vous s\xfbr de vouloir d\xe9sactiver la connexion par cl\xe9 d'acc\xe8s ? Vous ne pourrez plus vous connecter avec votre cl\xe9 d'acc\xe8s.","__stack-auto-translation-200":"Supprimer","__stack-auto-translation-201":"Renouvellement le","__stack-auto-translation-202":"R\xe9p\xe9tez le nouveau mot de passe","__stack-auto-translation-203":"R\xe9p\xe9tez le nouveau mot de passe","__stack-auto-translation-204":"R\xe9p\xe9ter le mot de passe","__stack-auto-translation-205":"Renvoyer le courriel de v\xe9rification","__stack-auto-translation-206":"R\xe9initialiser le mot de passe","__stack-auto-translation-207":"R\xe9initialisez votre mot de passe","__stack-auto-translation-208":"Consultez les factures et re\xe7us ant\xe9rieurs.","__stack-auto-translation-209":"R\xe9voquer","__stack-auto-translation-21":"\xcates-vous s\xfbr de vouloir quitter l'\xe9quipe?","__stack-auto-translation-210":"R\xe9voquer toutes les autres sessions","__stack-auto-translation-211":"Enregistrer","__stack-auto-translation-212":"Scannez ce code QR avec votre application d'authentification :","__stack-auto-translation-213":"Cl\xe9 API secr\xe8te","__stack-auto-translation-214":"S\xe9lectionnez un nouveau plan de la m\xeame gamme de produits.","__stack-auto-translation-215":"Envoyer le courriel","__stack-auto-translation-216":"Envoyer le courriel","__stack-auto-translation-217":"Envoyer un courriel de v\xe9rification","__stack-auto-translation-218":"Session","__stack-auto-translation-219":"D\xe9finir un mot de passe pour votre compte","__stack-auto-translation-22":"\xc9chec de l'autorisation","__stack-auto-translation-220":"D\xe9finir comme principal","__stack-auto-translation-221":"D\xe9finir le mot de passe","__stack-auto-translation-222":"D\xe9finir le mot de passe","__stack-auto-translation-223":"Param\xe8tres","__stack-auto-translation-224":"Connexion","__stack-auto-translation-225":"Se connecter","__stack-auto-translation-226":"Se connecter \xe0 nouveau","__stack-auto-translation-227":"Connectez-vous ou cr\xe9ez un compte pour rejoindre l'\xe9quipe.","__stack-auto-translation-228":"Connectez-vous \xe0 votre compte","__stack-auto-translation-229":"Se connecter avec cl\xe9 d'acc\xe8s","__stack-auto-translation-23":"Autoriser","__stack-auto-translation-230":"Se connecter avec {provider}","__stack-auto-translation-231":"Se d\xe9connecter","__stack-auto-translation-232":"S'inscrire","__stack-auto-translation-233":"S'inscrire","__stack-auto-translation-234":"L'inscription de nouveaux utilisateurs n'est pas activ\xe9e pour le moment.","__stack-auto-translation-235":"S'inscrire avec Cl\xe9 d'acc\xe8s","__stack-auto-translation-236":"S'inscrire avec {provider}","__stack-auto-translation-237":"Connexion r\xe9ussie !","__stack-auto-translation-238":"Connect\xe9(e) le {time}","__stack-auto-translation-239":"Une erreur s'est produite lors du traitement du rappel OAuth :","__stack-auto-translation-24":"Autoriser l'application CLI","__stack-auto-translation-240":"\xc9tat","__stack-auto-translation-241":"Cesser d'utiliser pour la connexion","__stack-auto-translation-242":"Abonnement","__stack-auto-translation-243":"Changer de forfait","__stack-auto-translation-244":"La cr\xe9ation d'\xe9quipe est d\xe9sactiv\xe9e en mode d\xe9mo","__stack-auto-translation-245":"La cr\xe9ation d'\xe9quipe n'est pas activ\xe9e","__stack-auto-translation-246":"Nom d'affichage de l'\xe9quipe","__stack-auto-translation-247":"Invitation d'\xe9quipe","__stack-auto-translation-248":"Image de profil d'\xe9quipe","__stack-auto-translation-249":"Nom d'utilisateur d'\xe9quipe","__stack-auto-translation-25":"Autorisation en cours...","__stack-auto-translation-250":"\xc9quipes","__stack-auto-translation-251":"L'application CLI a \xe9t\xe9 autoris\xe9e avec succ\xe8s. Vous pouvez fermer cette fen\xeatre et retourner \xe0 la ligne de commande.","__stack-auto-translation-252":"Le lien magique a d\xe9j\xe0 \xe9t\xe9 utilis\xe9. Le lien ne peut \xeatre utilis\xe9 qu'une seule fois. Veuillez demander un nouveau lien magique si vous devez vous reconnecter.","__stack-auto-translation-253":"L'op\xe9ration de connexion a \xe9t\xe9 annul\xe9e ou refus\xe9e. Veuillez r\xe9essayer.","__stack-auto-translation-254":"L'utilisateur est d\xe9j\xe0 connect\xe9 \xe0 un autre compte OAuth. Avez-vous peut-\xeatre s\xe9lectionn\xe9 le mauvais compte sur la page du fournisseur OAuth ?","__stack-auto-translation-255":"Ensuite, saisissez votre code MFA \xe0 six chiffres :","__stack-auto-translation-256":"Voici les appareils sur lesquels vous \xeates actuellement connect\xe9. Vous pouvez r\xe9voquer l'acc\xe8s pour mettre fin \xe0 une session.","__stack-auto-translation-257":"Ce compte est d\xe9j\xe0 associ\xe9 \xe0 un autre utilisateur. Veuillez connecter un compte diff\xe9rent.","__stack-auto-translation-258":"Ce courriel est d\xe9j\xe0 utilis\xe9 pour la connexion par un autre utilisateur.","__stack-auto-translation-259":"Il s'agit d'un nom d'affichage et n'est pas utilis\xe9 pour l'authentification","__stack-auto-translation-26":"Annuler","__stack-auto-translation-260":"Il s'agit probablement d'une erreur dans Stack. Veuillez la signaler.","__stack-auto-translation-261":"Ce lien de r\xe9initialisation de mot de passe a d\xe9j\xe0 \xe9t\xe9 utilis\xe9. Si vous devez \xe0 nouveau r\xe9initialiser votre mot de passe, veuillez demander un nouveau lien depuis la page de connexion.","__stack-auto-translation-262":"Ce lien d'invitation d'\xe9quipe a d\xe9j\xe0 \xe9t\xe9 utilis\xe9.","__stack-auto-translation-263":"Pour activer la connexion par OTP, veuillez ajouter un courriel de connexion v\xe9rifi\xe9.","__stack-auto-translation-264":"Pour activer la connexion par cl\xe9 d'acc\xe8s, veuillez ajouter un courriel de connexion v\xe9rifi\xe9.","__stack-auto-translation-265":"Pour d\xe9finir un mot de passe, veuillez ajouter un courriel de connexion.","__stack-auto-translation-266":"Changer de th\xe8me","__stack-auto-translation-267":"Code QR d'authentification \xe0 plusieurs facteur
2s TOTP","__stack-auto-translation-268":"R\xe9essayer","__stack-auto-translation-269":"Non disponible","__stack-auto-translation-27":"Annuler l'abonnement","__stack-auto-translation-270":"Irr\xe9couvrable","__stack-auto-translation-271":"Inconnu","__stack-auto-translation-272":"Non v\xe9rifi\xe9","__stack-auto-translation-273":"Mettre \xe0 jour le mot de passe","__stack-auto-translation-274":"Mettre \xe0 jour le mot de passe","__stack-auto-translation-275":"Modifier le mode de paiement","__stack-auto-translation-276":"Mettre \xe0 jour votre mot de passe","__stack-auto-translation-277":"T\xe9l\xe9versez une image pour votre \xe9quipe","__stack-auto-translation-278":"T\xe9l\xe9versez votre propre image comme avatar","__stack-auto-translation-279":"Utiliser pour la connexion","__stack-auto-translation-28":"L'annulation arr\xeatera les renouvellements futurs de cet abonnement.","__stack-auto-translation-280":"Utilis\xe9 pour la connexion","__stack-auto-translation-281":"Lien de r\xe9initialisation de mot de passe utilis\xe9","__stack-auto-translation-282":"Lien d'invitation d'\xe9quipe utilis\xe9","__stack-auto-translation-283":"Utilisateur","__stack-auto-translation-284":"Nom d'utilisateur","__stack-auto-translation-285":"\xc9chec de la v\xe9rification","__stack-auto-translation-286":"V\xe9rifi\xe9! Redirection en cours...","__stack-auto-translation-287":"V\xe9rifier","__stack-auto-translation-288":"V\xe9rification...","__stack-auto-translation-289":"Voir","__stack-auto-translation-29":"modifier","__stack-auto-translation-290":"Consultez vos forfaits actifs et vos achats.","__stack-auto-translation-291":"Annul\xe9e","__stack-auto-translation-292":"AVERTISSEMENT : Assurez-vous de faire confiance \xe0 l'application en ligne de commande, car elle aura acc\xe8s \xe0 votre compte. Si vous n'avez pas initi\xe9 cette demande, vous pouvez fermer cette page et l'ignorer. Nous ne vous enverrons jamais ce lien par courriel ou par tout autre moyen.","__stack-auto-translation-293":"Vous \xeates d\xe9j\xe0 connect\xe9","__stack-auto-translation-294":"Vous n'\xeates pas connect\xe9 actuellement.","__stack-auto-translation-295":"Vous ne pouvez pas supprimer votre dernier courriel de connexion","__stack-auto-translation-296":"Vous ne pouvez pas r\xe9voquer votre session actuelle","__stack-auto-translation-297":"Votre courriel a \xe9t\xe9 v\xe9rifi\xe9 !","__stack-auto-translation-298":"Vous n'avez pas encore compl\xe9t\xe9 la configuration de votre compte. Veuillez contacter le support si vous pensez qu'il s'agit d'une erreur.","__stack-auto-translation-299":"Votre courriel","__stack-auto-translation-3":"Param\xe8tres du compte","__stack-auto-translation-30":"Changer de forfait","__stack-auto-translation-300":"Votre lien de v\xe9rification de courriel a expir\xe9. Veuillez demander un nouveau lien de v\xe9rification dans les param\xe8tres de votre compte.","__stack-auto-translation-301":"Votre lien magique a expir\xe9. Veuillez demander un nouveau lien magique si vous avez besoin de vous connecter.","__stack-auto-translation-302":"Votre mot de passe a \xe9t\xe9 r\xe9initialis\xe9. Vous pouvez maintenant vous connecter avec votre nouveau mot de passe.","__stack-auto-translation-303":"Votre lien de r\xe9initialisation du mot de passe a expir\xe9. Veuillez demander un nouveau lien \xe0 partir de la page de connexion.","__stack-auto-translation-304":"Votre lien d'invitation d'\xe9quipe a expir\xe9. Veuillez demander un nouveau lien d'invitation","__stack-auto-translation-31":"Modifier le nom d'affichage de votre \xe9quipe","__stack-auto-translation-32":"Choisir un forfait","__stack-auto-translation-33":"Choisissez quels courriels vous souhaitez recevoir","__stack-auto-translation-34":"Autorisation CLI r\xe9ussie","__stack-auto-translation-35":"cliquez ici","__stack-auto-translation-36":"Cliquez sur le bouton ci-dessous pour renvoyer le lien de v\xe9rification.","__stack-auto-translation-37":"Fermer","__stack-auto-translation-38":"Terminer la configuration","__stack-auto-translation-39":"Compl\xe9tez la configuration de votre compte","__stack-auto-translation-4":"Forfaits actifs","__stack-auto-translation-40":"Confirmer","__stack-auto-translation-41":"Continuer","__stack-auto-translation-42":"Copiez-le dans un endroit s\xfbr. Vous ne pourrez plus le consulter.","__stack-auto-translation-43":"Impossible de recadrer l'image.","__stack-auto-translation-44":"Cr\xe9er","__stack-auto-translation-45":"Cr\xe9er un nouveau compte","__stack-auto-translation-46":"Cr\xe9er une \xe9quipe","__stack-auto-translation-47":"Cr\xe9er une \xe9quipe","__stack-auto-translation-48":"Cr\xe9er une cl\xe9 API","__stack-auto-translation-49":"Forfait de cr\xe9dits","__stack-auto-translation-5":"Sessions actives","__stack-auto-translation-50":"Session actuelle","__stack-auto-translation-51":"\xc9quipe actuelle","__stack-auto-translation-52":"Zone dangereuse","__stack-auto-translation-53":"Date","__stack-auto-translation-54":"Supprimer le compte","__stack-auto-translation-55":"Supprimer le compte","__stack-auto-translation-56":"Supprimer la cl\xe9 d'acc\xe8s","__stack-auto-translation-57":"Description","__stack-auto-translation-58":"La description est requise","__stack-auto-translation-59":"D\xe9sactiver","__stack-auto-translation-6":"Ajouter","__stack-auto-translation-60":"D\xe9sactiver l'AMF","__stack-auto-translation-61":"D\xe9sactiver OTP","__stack-auto-translation-62":"Nom d'affichage","__stack-auto-translation-63":"Voulez-vous vous connecter ?","__stack-auto-translation-64":"Voulez-vous v\xe9rifier votre courriel ?","__stack-auto-translation-65":"Vous n'avez pas de compte ?","__stack-auto-translation-66":"Pas besoin de r\xe9initialiser ?","__stack-auto-translation-67":"Brouillon","__stack-auto-translation-68":"p. ex. D\xe9veloppement, Production, CI/CD","__stack-auto-translation-69":"Courriel","__stack-auto-translation-7":"Ajoutez un mode de paiement avant de changer de forfait.","__stack-auto-translation-70":"Courriel et mot de passe","__stack-auto-translation-71":"Le courriel existe d\xe9j\xe0","__stack-auto-translation-72":"Le courriel est requis","__stack-auto-translation-73":"La gestion des courriels n'est pas disponible en mode d\xe9mo.","__stack-auto-translation-74":"Courriel envoy\xe9 !","__stack-auto-translation-75":"Courriels","__stack-auto-translation-76":"Courriels et authentification","__stack-auto-translation-77":"Activer l'AMF","__stack-auto-translation-78":"Activer l'OTP","__stack-auto-translation-79":"Activer la connexion par lien magique ou OTP envoy\xe9 \xe0 vos courriels de connexion.","__stack-auto-translation-8":"Ajouter un courriel","__stack-auto-translation-80":"Terminez votre session actuelle","__stack-auto-translation-81":"Entrez un nom d'affichage pour votre nouvelle \xe9quipe","__stack-auto-translation-82":"Saisir le courriel","__stack-auto-translation-83":"Entrez le code re\xe7u par courriel","__stack-auto-translation-84":"Entrez le code \xe0 six chiffres de votre application d'authentification","__stack-auto-translation-85":"Entrez votre courriel","__stack-auto-translation-86":"Lien magique expir\xe9","__stack-auto-translation-87":"Lien de r\xe9initialisation de mot de passe expir\xe9","__stack-auto-translation-88":"Lien d'invitation d'\xe9quipe expir\xe9","__stack-auto-translation-89":"Lien de v\xe9rification expir\xe9","__stack-auto-translation-9":"Ajouter une nouvelle cl\xe9 d'acc\xe8s","__stack-auto-translation-90":"Expire","__stack-auto-translation-91":"Expire dans","__stack-auto-translation-92":"\xc9chec de l'autorisation de l'application CLI :","__stack-auto-translation-93":"\xc9chec de connexion du compte","__stack-auto-translation-94":"\xc9chec de la r\xe9initialisation du mot de passe","__stack-auto-translation-95":"\xc9chec de la r\xe9initialisation du mot de passe. Veuillez demander un nouveau lien de r\xe9initialisation","__stack-auto-translation-96":"Mot de passe oubli\xe9 ?","__stack-auto-translation-97":"Accueil","__stack-auto-translation-98":"Accueil","__stack-auto-translation-99":"Voici votre cl\xe9 API."}
2)),"fr-FR":new Map(an({"__stack-auto-translation-0":"-","__stack-auto-translation-1":"Une application en ligne de commande demande l'acc\xe8s \xe0 votre compte. Cliquez sur le bouton ci-dessous pour l'autoriser.","__stack-auto-translation-10":"Ajoutez votre adresse e-mail","__stack-auto-translation-100":"Je comprends que je ne pourrai plus consulter cette cl\xe9.","__stack-auto-translation-101":"Si l'utilisateur avec cette adresse e-mail existe, un e-mail a \xe9t\xe9 envoy\xe9 dans votre bo\xeete de r\xe9ception. Assurez-vous de v\xe9rifier votre dossier de courrier ind\xe9sirable.","__stack-auto-translation-102":"Si vous n'\xeates pas redirig\xe9 automatiquement, ","__stack-auto-translation-103":"Ignorer","__stack-auto-translation-104":"Usurpation","__stack-auto-translation-105":"Code incorrect. Veuillez r\xe9essayer.","__stack-auto-translation-106":"Mot de passe incorrect","__stack-auto-translation-107":"Code invalide","__stack-auto-translation-108":"Image invalide","__stack-auto-translation-109":"Lien magique invalide","__stack-auto-translation-11":"Vous avez d\xe9j\xe0 un compte ?","__stack-auto-translation-110":"Lien de r\xe9initialisation de mot de passe non valide","__stack-auto-translation-111":"Lien d'invitation d'\xe9quipe non valide","__stack-auto-translation-112":"Code TOTP invalide","__stack-auto-translation-113":"Lien de v\xe9rification invalide","__stack-auto-translation-114":"Invitez un utilisateur \xe0 rejoindre votre \xe9quipe par e-mail","__stack-auto-translation-115":"Inviter un membre","__stack-auto-translation-116":"Inviter l'utilisateur","__stack-auto-translation-117":"Facture","__stack-auto-translation-118":"Factures","__stack-auto-translation-119":"Adresse IP","__stack-auto-translation-12":"Montant","__stack-auto-translation-120":"Rejoindre","__stack-auto-translation-121":"Derni\xe8re utilisation","__stack-auto-translation-122":"Quitter","__stack-auto-translation-123":"Quitter l'\xe9quipe","__stack-auto-translation-124":"Quitter l'\xe9quipe","__stack-auto-translation-125":"quitter cette \xe9quipe et supprimer votre profil d'\xe9quipe","__stack-auto-translation-126":"Localisation","__stack-auto-translation-127":"Lien magique d\xe9j\xe0 utilis\xe9","__stack-auto-translation-128":"G\xe9rer le mode de paiement par d\xe9faut utilis\xe9 pour les abonnements et les factures.","__stack-auto-translation-129":"Membres","__stack-auto-translation-13":"Une erreur inconnue s'est produite","__stack-auto-translation-130":"La gestion MFA n'est pas disponible en mode d\xe9mo.","__stack-auto-translation-131":"Informations de v\xe9rification manquantes","__stack-auto-translation-132":"Authentification \xe0 plusieurs facteurs","__stack-auto-translation-133":"Authentification \xe0 plusieurs facteurs","__stack-auto-translation-134":"L'authentification \xe0 plusieurs facteurs est actuellement d\xe9sactiv\xe9e.","__stack-auto-translation-135":"L'authentification \xe0 plusieurs facteurs est actuellement activ\xe9e.","__stack-auto-translation-136":"Mon profil","__stack-auto-translation-137":"Nom","__stack-auto-translation-138":"Jamais","__stack-auto-translation-139":"L'inscription de nouveaux comptes n'est pas autoris\xe9e","__stack-auto-translation-14":"Cl\xe9 API","__stack-auto-translation-140":"Nouveau mot de passe","__stack-auto-translation-141":"Nouveau mot de passe","__stack-auto-translation-142":"Aucune session active trouv\xe9e","__stack-auto-translation-143":"Aucune m\xe9thode d'authentification activ\xe9e.","__stack-auto-translation-144":"Aucun moyen de paiement par d\xe9faut","__stack-auto-translation-145":"Aucun nom d'affichage d\xe9fini","__stack-auto-translation-146":"Aucun autre plan disponible pour cet abonnement.","__stack-auto-translation-147":"Aucune invitation en attente","__stack-auto-translation-148":"Aucune \xe9quipe","__stack-auto-translation-149":"Aucune \xe9quipe pour l'instant","__stack-auto-translation-15":"Cl\xe9s API","__stack-auto-translation-150":"Non connect\xe9","__stack-auto-translation-151":"Notifications","__stack-auto-translation-152":"Acc\xe8s refus\xe9 par le fournisseur OAuth","__stack-auto-translation-153":"Ancien mot de passe","__stack-auto-translation-154":"Mot de passe \xe0 usage unique","__stack-auto-translation-155":"Achat unique","__stack-auto-translation-156":"Ouvert","__stack-auto-translation-157":"Ou continuer avec","__stack-auto-translation-158":"Autre session","__stack-auto-translation-159":"Autres \xe9quipes","__stack-auto-translation-16":"Les cl\xe9s API permettent un acc\xe8s programmatique \xe0 votre compte.","__stack-auto-translation-160":"La gestion des OTP n'est pas disponible en mode d\xe9mo.","__stack-auto-translation-161":"Connexion OTP","__stack-auto-translation-162":"La connexion OTP est activ\xe9e et ne peut pas \xeatre d\xe9sactiv\xe9e c
2ar c'est actuellement la seule m\xe9thode de connexion","__stack-auto-translation-163":"La connexion par OTP/lien magique est actuellement activ\xe9e.","__stack-auto-translation-164":"Invitations en attente","__stack-auto-translation-165":"Remplacez votre nom d'affichage dans cette \xe9quipe","__stack-auto-translation-166":"Pay\xe9e","__stack-auto-translation-167":"Cl\xe9 d'acc\xe8s","__stack-auto-translation-168":"La gestion des cl\xe9s d'acc\xe8s n'est pas disponible en mode d\xe9mo.","__stack-auto-translation-169":"Cl\xe9 d'acc\xe8s enregistr\xe9e","__stack-auto-translation-17":"Les cl\xe9s API permettent un acc\xe8s programmatique \xe0 votre \xe9quipe.","__stack-auto-translation-170":"La connexion par cl\xe9 d'acc\xe8s est activ\xe9e et ne peut pas \xeatre d\xe9sactiv\xe9e car c'est actuellement la seule m\xe9thode de connexion","__stack-auto-translation-171":"Mot de passe","__stack-auto-translation-172":"La gestion des mots de passe n'est pas disponible en mode d\xe9mo.","__stack-auto-translation-173":"R\xe9initialisation du mot de passe r\xe9ussie !","__stack-auto-translation-174":"Les mots de passe ne correspondent pas","__stack-auto-translation-175":"Moyen de paiement","__stack-auto-translation-176":"Paiements","__stack-auto-translation-177":"Supprimez d\xe9finitivement votre compte et toutes les donn\xe9es associ\xe9es","__stack-auto-translation-178":"Personnel","__stack-auto-translation-179":"Veuillez ajouter une adresse e-mail pour finaliser la configuration de votre compte. Nous vous enverrons un e-mail de v\xe9rification.","__stack-auto-translation-18":"\xcates-vous s\xfbr de vouloir supprimer votre compte ? Cette action est IRR\xc9VERSIBLE et supprimera TOUTES les donn\xe9es associ\xe9es.","__stack-auto-translation-180":"Veuillez v\xe9rifier si vous avez le bon lien. Si vous continuez \xe0 rencontrer des probl\xe8mes, veuillez contacter le support.","__stack-auto-translation-181":"Veuillez v\xe9rifier votre bo\xeete de r\xe9ception","__stack-auto-translation-182":"Veuillez finaliser la configuration de votre compte avant de rejoindre des \xe9quipes.","__stack-auto-translation-183":"Veuillez v\xe9rifier si vous avez le bon lien de r\xe9initialisation de mot de passe.","__stack-auto-translation-184":"Veuillez v\xe9rifier que vous disposez du bon lien d'invitation d'\xe9quipe.","__stack-auto-translation-185":"Veuillez saisir un nom d'\xe9quipe","__stack-auto-translation-186":"Veuillez saisir une adresse e-mail valide","__stack-auto-translation-187":"Veuillez saisir une adresse e-mail valide","__stack-auto-translation-188":"Veuillez saisir une adresse e-mail","__stack-auto-translation-189":"Veuillez saisir votre adresse e-mail","__stack-auto-translation-19":"\xcates-vous s\xfbr de vouloir d\xe9sactiver la connexion OTP ? Vous ne pourrez plus vous connecter uniquement avec des e-mails.","__stack-auto-translation-190":"Veuillez saisir votre ancien mot de passe","__stack-auto-translation-191":"Veuillez saisir votre mot de passe","__stack-auto-translation-192":"Veuillez r\xe9p\xe9ter votre mot de passe","__stack-auto-translation-193":"Veuillez r\xe9essayer et si le probl\xe8me persiste, contactez le support.","__stack-auto-translation-194":"Veuillez v\xe9rifier votre adresse e-mail ","__stack-auto-translation-195":"Veuillez d'abord v\xe9rifier votre adresse e-mail","__stack-auto-translation-196":"Principal","__stack-auto-translation-197":"Pro","__stack-auto-translation-198":"Image de profil","__stack-auto-translation-199":"Enregistrer une cl\xe9 d'acc\xe8s","__stack-auto-translation-2":"Param\xe8tres du compte","__stack-auto-translation-20":"\xcates-vous s\xfbr de vouloir d\xe9sactiver la connexion par cl\xe9 d'acc\xe8s ? Vous ne pourrez plus vous connecter avec votre cl\xe9 d'acc\xe8s.","__stack-auto-translation-200":"Supprimer","__stack-auto-translation-201":"Renouvellement le","__stack-auto-translation-202":"R\xe9p\xe9ter le nouveau mot de passe","__stack-auto-translation-203":"R\xe9p\xe9ter le nouveau mot de passe","__stack-auto-translation-204":"R\xe9p\xe9ter le mot de passe","__stack-auto-translation-205":"Renvoyer l'e-mail de v\xe9rification","__stack-auto-translation-206":"R\xe9initialiser le mot de passe","__stack-auto-translation-207":"R\xe9initialisez votre mot de passe","__stack-auto-translation-208":"Consultez les factures et re\xe7us pass\xe9s.","__stack-auto-translation-209":"R\xe9voquer","__stack-auto-translation-21":"\xcates-vous s\xfbr de vouloir quitter l'\xe9quipe ?","__stack-auto-translation-210":"R\xe9voquer toutes les autres sessions","__stack-auto-translation-211":"Enregistrer","__stack-auto-translation-212":"Scannez ce code QR avec votre application d'authentification :","__stack-auto-translation-213":"Cl\xe9 API secr\xe8te","__stack-auto-translation-214":"S\xe9lectionnez un nouveau plan dans la m\xeame gamme de produits.","__stack-auto-translation-215":"Envoyer l'e-mail","__stack-auto-translation-216":"Envoyer l'e-mail","__stack-auto-translation-217":"Envoyer un e-mail de v\xe9rification","__stack-auto-translation-218":"Session","__stack-auto-translation-219":"D\xe9finissez un mot de passe pour votre compte","__stack-auto-translation-22":"\xc9chec d'autorisation","__stack-auto-translation-220":"D\xe9finir comme principal","__stack-auto-translation-221":"D\xe9finir le mot de passe","__stack-auto-translation-222":"D\xe9finir le mot de passe","__stack-auto-translation-223":"Param\xe8tres","__stack-auto-translation-224":"Se connecter","__stack-auto-translation-225":"Se connecter","__stack-auto-translation-226":"Se connecter \xe0 nouveau","__stack-auto-translation-227":"Connectez-vous ou cr\xe9ez un compte pour rejoindre l'\xe9quipe.","__stack-auto-translation-228":"Connectez-vous \xe0 votre compte","__stack-auto-translation-229":"Se connecter avec Passkey","__stack-auto-translation-23":"Autoriser","__stack-auto-translation-230":"Se connecter avec {provider}","__stack-auto-translation-231":"Se d\xe9connecter","__stack-auto-translation-232":"S'inscrire","__stack-auto-translation-233":"S'inscrire","__stack-auto-translation-234":"L'inscription pour les nouveaux utilisateurs n'est pas activ\xe9e pour le moment.","__stack-auto-translation-235":"S'inscrire avec Cl\xe9 d'acc\xe8s","__stack-auto-translation-236":"S'inscrire avec {provider}","__stack-auto-translation-237":"Connexion r\xe9ussie !","__stack-auto-translation-238":"Connect\xe9(e) {time}","__stack-auto-translation-239":"Une erreur est survenue lors du traitement de la r\xe9ponse OAuth :","__stack-auto-translation-24":"Autoriser l'application CLI","__stack-auto-translation-240":"Statut","__stack-auto-translation-241":"Ne plus utiliser pour la connexion","__stack-auto-translation-242":"Abonnement","__stack-auto-translation-243":"Changer d'offre","__stack-auto-translation-244":"La cr\xe9ation d'\xe9quipes est d\xe9sactiv\xe9e en mode d\xe9mo","__stack-auto-translation-245":"La cr\xe9ation d'\xe9quipe n'est pas activ\xe9e","__stack-auto-translation-246":"Nom d'affichage de l'\xe9quipe","__stack-auto-translation-247":"Invitation d'\xe9quipe","__stack-auto-translation-248":"Image de profil d'\xe9quipe","__stack-auto-translation-249":"Nom d'utilisateur de l'\xe9quipe","__stack-auto-translation-25":"Autorisation en cours...","__stack-auto-translation-250":"\xc9quipes","__stack-auto-translation-251":"L'application CLI a \xe9t\xe9 autoris\xe9e avec succ\xe8s. Vous pouvez fermer cette fen\xeatre et retourner \xe0 la ligne de commande.","__stack-auto-translation-252":"Le lien magique a d\xe9j\xe0 \xe9t\xe9 utilis\xe9. Le lien ne peut \xeatre utilis\xe9 qu'une seule fois. Veuillez demander un nouveau lien magique si vous devez vous reconnecter.","__stack-auto-translation-253":"L'op\xe9ration de connexion a \xe9t\xe9 annul\xe9e ou refus\xe9e. Veuillez r\xe9essayer.","__stack-auto-translation-254":"L'utilisateur est d\xe9j\xe0 connect\xe9 \xe0 un autre compte OAuth. Avez-vous peut-\xeatre s\xe9lectionn\xe9 le mauvais compte sur la page du fournisseur OAuth ?","__stack-auto-translation-255":"Ensuite, saisissez votre code MFA \xe0 six chiffres :","__stack-auto-translation-256":"Ce sont les appareils sur lesquels vous \xeates actuellement connect\xe9. Vous pouvez r\xe9voquer l'acc\xe8s pour mettre fin \xe0 une session.","__stack-auto-translation-257":"Ce compte est d\xe9j\xe0 connect\xe9 \xe0 un autre utilisateur. Veuillez connecter un compte diff\xe9rent.","__stack-auto-translation-258":"Cet e-mail est d\xe9j\xe0 utilis\xe9 pour la connexion par un autre utilisateur.","__stack-auto-translation-259":"Il s'agit d'un nom d'affichage et n'est pas utilis\xe9 pour l'authentification","__stack-auto-translation-26":"Annuler","__stack-auto-translation-260":"Il s'agit probablement d'une erreur dans Stack. Veuillez la signaler.","__stack-auto-translation-261":"Ce lien de r\xe9initialisation de mot de passe a d\xe9j\xe0 \xe9t\xe9 utilis\xe9. Si vous devez \xe0 nouveau r\xe9initialiser votre mot de passe, veuillez demander un nouveau lien de r\xe9initialisation depuis la page de connexion.","__stack-auto-translation-262":"Ce lien d'invitation d'\xe9quipe a d\xe9j\xe0 \xe9t\xe9 utilis\xe9.","__stack-auto-translation-263":"Pour activer la connexion OTP, veuillez ajouter une adresse e-mail de connexion v\xe9rifi\xe9e.","__stack-auto-translation-264":"Pour activer la connexion par cl\xe9 d'acc\xe8s, veuillez ajouter une adresse e-mail de connexion v\xe9rifi\xe9e.","__stack-auto-translation-265":"Pour d\xe9finir un mot de passe, veuillez ajouter une adresse e-mail de connexion.","__stack-auto-translation-266":"Changer de th\xe8me","__stack-auto-translation-267":"Code QR d'authentification \xe0 plusieurs facteur
2s TOTP","__stack-auto-translation-268":"R\xe9essayer","__stack-auto-translation-269":"Indisponible","__stack-auto-translation-27":"Annuler l'abonnement","__stack-auto-translation-270":"Irr\xe9couvrable","__stack-auto-translation-271":"Inconnu","__stack-auto-translation-272":"Non v\xe9rifi\xe9","__stack-auto-translation-273":"Modifier le mot de passe","__stack-auto-translation-274":"Modifier le mot de passe","__stack-auto-translation-275":"Modifier le moyen de paiement","__stack-auto-translation-276":"Mettez \xe0 jour votre mot de passe","__stack-auto-translation-277":"T\xe9l\xe9chargez une image pour votre \xe9quipe","__stack-auto-translation-278":"T\xe9l\xe9chargez votre propre image comme avatar","__stack-auto-translation-279":"Utiliser pour la connexion","__stack-auto-translation-28":"L'annulation arr\xeatera les renouvellements futurs de cet abonnement.","__stack-auto-translation-280":"Utilis\xe9 pour la connexion","__stack-auto-translation-281":"Lien de r\xe9initialisation de mot de passe utilis\xe9","__stack-auto-translation-282":"Lien d'invitation d'\xe9quipe d\xe9j\xe0 utilis\xe9","__stack-auto-translation-283":"Utilisateur","__stack-auto-translation-284":"Nom d'utilisateur","__stack-auto-translation-285":"\xc9chec de la v\xe9rification","__stack-auto-translation-286":"V\xe9rifi\xe9 ! Redirection...","__stack-auto-translation-287":"V\xe9rifier","__stack-auto-translation-288":"V\xe9rification...","__stack-auto-translation-289":"Voir","__stack-auto-translation-29":"modifier","__stack-auto-translation-290":"Consultez vos abonnements et achats actifs.","__stack-auto-translation-291":"Annul\xe9e","__stack-auto-translation-292":"AVERTISSEMENT : Assurez-vous de faire confiance \xe0 l'application en ligne de commande, car elle aura acc\xe8s \xe0 votre compte. Si vous n'avez pas initi\xe9 cette demande, vous pouvez fermer cette page et l'ignorer. Nous ne vous enverrons jamais ce lien par email ou par tout autre moyen.","__stack-auto-translation-293":"Vous \xeates d\xe9j\xe0 connect\xe9","__stack-auto-translation-294":"Vous n'\xeates pas connect\xe9 actuellement.","__stack-auto-translation-295":"Vous ne pouvez pas supprimer votre derni\xe8re adresse e-mail de connexion","__stack-auto-translation-296":"Vous ne pouvez pas r\xe9voquer votre session actuelle","__stack-auto-translation-297":"Votre email a \xe9t\xe9 v\xe9rifi\xe9 !","__stack-auto-translation-298":"Vous n'avez pas encore termin\xe9 la configuration de votre compte. Veuillez contacter le support si vous pensez qu'il s'agit d'une erreur.","__stack-auto-translation-299":"Votre e-mail","__stack-auto-translation-3":"Param\xe8tres du compte","__stack-auto-translation-30":"Changer de forfait","__stack-auto-translation-300":"Votre lien de v\xe9rification d'e-mail a expir\xe9. Veuillez demander un nouveau lien de v\xe9rification dans les param\xe8tres de votre compte.","__stack-auto-translation-301":"Votre lien magique a expir\xe9. Veuillez demander un nouveau lien magique si vous devez vous connecter.","__stack-auto-translation-302":"Votre mot de passe a \xe9t\xe9 r\xe9initialis\xe9. Vous pouvez maintenant vous connecter avec votre nouveau mot de passe.","__stack-auto-translation-303":"Votre lien de r\xe9initialisation du mot de passe a expir\xe9. Veuillez demander un nouveau lien depuis la page de connexion.","__stack-auto-translation-304":"Votre lien d'invitation d'\xe9quipe a expir\xe9. Veuillez demander un nouveau lien d'invitation d'\xe9quipe","__stack-auto-translation-31":"Modifiez le nom d'affichage de votre \xe9quipe","__stack-auto-translation-32":"Choisir un forfait","__stack-auto-translation-33":"Choisissez quels e-mails vous souhaitez recevoir","__stack-auto-translation-34":"Autorisation CLI r\xe9ussie","__stack-auto-translation-35":"cliquez ici","__stack-auto-translation-36":"Cliquez sur le bouton ci-dessous pour renvoyer le lien de v\xe9rification.","__stack-auto-translation-37":"Fermer","__stack-auto-translation-38":"Terminer la configuration","__stack-auto-translation-39":"Finalisez la configuration de votre compte","__stack-auto-translation-4":"Forfaits actifs","__stack-auto-translation-40":"Confirmer","__stack-auto-translation-41":"Continuer","__stack-auto-translation-42":"Copiez-la dans un endroit s\xfbr. Vous ne pourrez plus la consulter ult\xe9rieurement.","__stack-auto-translation-43":"Impossible de recadrer l'image.","__stack-auto-translation-44":"Cr\xe9er","__stack-auto-translation-45":"Cr\xe9er un nouveau compte","__stack-auto-translation-46":"Cr\xe9er une \xe9quipe","__stack-auto-translation-47":"Cr\xe9er une \xe9quipe","__stack-auto-translation-48":"Cr\xe9er une cl\xe9 API","__stack-auto-translation-49":"Pack de cr\xe9dits","__stack-auto-translation-5":"Sessions actives","__stack-auto-translation-50":"Session actuelle","__stack-auto-translation-51":"\xc9quipe actuelle","__stack-auto-translation-52":"Zone dangereuse","__stack-auto-translation-53":"Date","__stack-auto-translation-54":"Supprimer le compte","__stack-auto-translation-55":"Supprimer le compte","__stack-auto-translation-56":"Supprimer la cl\xe9 d'acc\xe8s","__stack-auto-translation-57":"Description","__stack-auto-translation-58":"La description est obligatoire","__stack-auto-translation-59":"D\xe9sactiver","__stack-auto-translation-6":"Ajouter","__stack-auto-translation-60":"D\xe9sactiver MFA","__stack-auto-translation-61":"D\xe9sactiver l'OTP","__stack-auto-translation-62":"Nom d'affichage","__stack-auto-translation-63":"Voulez-vous vous connecter ?","__stack-auto-translation-64":"Voulez-vous v\xe9rifier votre e-mail ?","__stack-auto-translation-65":"Vous n'avez pas de compte ?","__stack-auto-translation-66":"Pas besoin de r\xe9initialiser ?","__stack-auto-translation-67":"Brouillon","__stack-auto-translation-68":"ex. D\xe9veloppement, Production, CI/CD","__stack-auto-translation-69":"Adresse e-mail","__stack-auto-translation-7":"Ajoutez un moyen de paiement avant de changer de forfait.","__stack-auto-translation-70":"E-mail et mot de passe","__stack-auto-translation-71":"Cet email existe d\xe9j\xe0","__stack-auto-translation-72":"L'adresse e-mail est requise","__stack-auto-translation-73":"La gestion des e-mails n'est pas disponible en mode d\xe9mo.","__stack-auto-translation-74":"E-mail envoy\xe9 !","__stack-auto-translation-75":"E-mails","__stack-auto-translation-76":"E-mails et authentification","__stack-auto-translation-77":"Activer l'AMF","__stack-auto-translation-78":"Activer l'OTP","__stack-auto-translation-79":"Activer la connexion via un lien magique ou un OTP envoy\xe9 \xe0 vos e-mails de connexion.","__stack-auto-translation-8":"Ajouter un e-mail","__stack-auto-translation-80":"Mettre fin \xe0 votre session actuelle","__stack-auto-translation-81":"Entrez un nom d'affichage pour votre nouvelle \xe9quipe","__stack-auto-translation-82":"Saisir l'adresse e-mail","__stack-auto-translation-83":"Saisissez le code re\xe7u par e-mail","__stack-auto-translation-84":"Saisissez le code \xe0 six chiffres de votre application d'authentification","__stack-auto-translation-85":"Entrez votre e-mail","__stack-auto-translation-86":"Lien magique expir\xe9","__stack-auto-translation-87":"Lien de r\xe9initialisation expir\xe9","__stack-auto-translation-88":"Lien d'invitation d'\xe9quipe expir\xe9","__stack-auto-translation-89":"Lien de v\xe9rification expir\xe9","__stack-auto-translation-9":"Ajouter une nouvelle cl\xe9 d'acc\xe8s","__stack-auto-translation-90":"Expire","__stack-auto-translation-91":"Expire dans","__stack-auto-translation-92":"\xc9chec de l'autorisation de l'application CLI :","__stack-auto-translation-93":"\xc9chec de la connexion du compte","__stack-auto-translation-94":"\xc9chec de r\xe9initialisation","__stack-auto-translation-95":"\xc9chec de la r\xe9initialisation du mot de passe. Veuillez demander un nouveau lien de r\xe9initialisation","__stack-auto-translation-96":"Mot de passe oubli\xe9 ?","__stack-auto-translation-97":"Accueil","__stack-auto-translation-98":"Accueil","__stack-auto-translation-99":"Voici votre cl\xe9 API."})),"it-IT":new Map(an({"__stack-auto-translation-0":"-","__stack-auto-translation-1":"Un'applicazione a riga di comando sta ric
2hiedendo l'accesso al tuo account. Fai clic sul pulsante qui sotto per autorizzarla.","__stack-auto-translation-10":"Aggiungi il tuo indirizzo email","__stack-auto-translation-100":"Ho capito che non potr\xf2 visualizzare nuovamente questa chiave.","__stack-auto-translation-101":"Se l'utente con questo indirizzo e-mail esiste, un'e-mail \xe8 stata inviata alla tua casella di posta. Assicurati di controllare la cartella dello spam.","__stack-auto-translation-102":"Se non vieni reindirizzato automaticamente, ","__stack-auto-translation-103":"Ignora","__stack-auto-translation-104":"Impersonazione","__stack-auto-translation-105":"Codice errato. Per favore riprova.","__stack-auto-translation-106":"Password non corretta","__stack-auto-translation-107":"Codice non valido","__stack-auto-translation-108":"Immagine non valida","__stack-auto-translation-109":"Link Magico Non Valido","__stack-auto-translation-11":"Hai gi\xe0 un account?","__stack-auto-translation-110":"Link di Reimpostazione Password Non Valido","__stack-auto-translation-111":"Link di invito al team non valido","__stack-auto-translation-112":"Codice TOTP non valido","__stack-auto-translation-113":"Link di verifica non valido","__stack-auto-translation-114":"Invita un utente al tuo team tramite email","__stack-auto-translation-115":"Invita membro","__stack-auto-translation-116":"Invita Utente","__stack-auto-translation-117":"Fattura","__stack-auto-translation-118":"Fatture","__stack-auto-translation-119":"Indirizzo IP","__stack-auto-translation-12":"Importo","__stack-auto-translation-120":"Unisciti","__stack-auto-translation-121":"Ultimo utilizzo","__stack-auto-translation-122":"Abbandona","__stack-auto-translation-123":"Lascia il team","__stack-auto-translation-124":"Lascia il Team","__stack-auto-translation-125":"lascia questa squadra e rimuovi il tuo profilo del team","__stack-auto-translation-126":"Posizione","__stack-auto-translation-127":"Link magico gi\xe0 utilizzato","__stack-auto-translation-128":"Gestisci il metodo di pagamento predefinito per abbonamenti e fatture.","__stack-auto-translation-129":"Membri","__stack-auto-translation-13":"Si \xe8 verificato un errore sconosciuto","__stack-auto-translation-130":"La gestione MFA non \xe8 disponibile in modalit\xe0 demo.","__stack-auto-translation-131":"Informazioni di verifica mancanti","__stack-auto-translation-132":"Autenticazione a pi\xf9 fattori","__stack-auto-translation-133":"Autenticazione a pi\xf9 fattori","__stack-auto-translation-134":"L'autenticazione a pi\xf9 fattori \xe8 attualmente disabilitata.","__stack-auto-translation-135":"L'autenticazione a pi\xf9 fattori \xe8 attualmente attiva.","__stack-auto-translation-136":"Il mio profilo","__stack-auto-translation-137":"Nome","__stack-auto-translation-138":"Mai","__stack-auto-translation-139":"La registrazione di nuovi account non \xe8 consentita","__stack-auto-translation-14":"Chiave API","__stack-auto-translation-140":"Nuova password","__stack-auto-translation-141":"Nuova Password","__stack-auto-translation-142":"Nessuna sessione attiva trovata","__stack-auto-translation-143":"Nessun metodo di autenticazione abilitato.","__stack-auto-translation-144":"Nessun metodo di pagamento predefinito","__stack-auto-translation-145":"Nessun nome visualizzato impostato","__stack-auto-translation-146":"Nessun altro piano disponibile per questo abbonamento.","__stack-auto-translation-147":"Nessun invito in sospeso","__stack-auto-translation-148":"Nessun team","__stack-auto-translation-149":"Nessun team ancora","__stack-auto-translation-15":"Chiavi API","__stack-auto-translation-150":"Non hai effettuato l'accesso","__stack-auto-translation-151":"Notifiche","__stack-auto-translation-152":"Accesso al provider OAuth negato","__stack-auto-translation-153":"Vecchia password","__stack-auto-translation-154":"Password Monouso","__stack-auto-translation-155":"Acquisto unico","__stack-auto-translation-156":"Aperta","__stack-auto-translation-157":"Oppure continua con","__stack-auto-translation-158":"Altra Sessione","__stack-auto-translation-159":"Altri team","__stack-auto-translation-16":"Le chiavi API consentono l'accesso programmatico al tuo account.","__stack-auto-translation-160":"La gestione OTP non \xe8 disponibile in modalit\xe0 demo.","__stack-auto-translation-161":"Accesso con OTP","__stack-auto-translation-162":"L'accesso con OTP \xe8 abilitato e non pu\xf2 essere disattivato poich\xe9 \xe8 attualmente l'unico metodo di accesso disponibile","__stack-auto-translation-163":"L'accesso tramite OTP/link magico \xe8 attualmente abilitato.","__stack-auto-translation-164":"Inviti in sospeso","__stack-auto-translation-165":"Sovrascrivi il tuo nome visualizzato in questo team","__stack-auto-translation-166":"Pagato","__stack-auto-translation-167":"Passkey","__stack-auto-translation-168":"La gestione delle passkey non \xe8 disponibile in modalit\xe0 demo.","__stack-auto-translation-169":"Passkey registrata","__stack-auto-translation-17":"Le chiavi API consentono l'accesso programmatico al tuo team.","__stack-auto-translation-170":"L'accesso con Passkey \xe8 attivo e non pu\xf2 essere disattivato poich\xe9 \xe8 attualmente l'unico metodo di accesso","__stack-auto-translation-171":"Password","__stack-auto-translation-172":"La gestione delle password non \xe8 disponibile in modalit\xe0 demo.","__stack-auto-translation-173":"Password reimpostata con successo!","__stack-auto-translation-174":"Le password non corrispondono","__stack-auto-translation-175":"Metodo di pagamento","__stack-auto-translation-176":"Pagamenti","__stack-auto-translation-177":"Rimuovi permanentemente il tuo account e tutti i dati associati","__stack-auto-translation-178":"Personale","__stack-auto-translation-179":"Aggiungi un indirizzo email per completare la configurazione del tuo account. Ti invieremo un'email di verifica.","__stack-auto-translation-18":"Sei sicuro di voler eliminare il tuo account? Questa azione \xe8 IRREVERSIBILE e canceller\xe0 TUTTI i dati associati.","__stack-auto-translation-180":"Verifica di avere il link corretto. Se continui ad avere problemi, contatta l'assistenza.","__stack-auto-translation-181":"Controlla la tua casella email","__stack-auto-translation-182":"Completa la configurazione dell'account prima di unirti ai team.","__stack-auto-translation-183":"Si prega di verificare di avere il link corretto per il ripristino della password.","__stack-auto-translation-184":"Verifica di avere il link di invito al team corretto.","__stack-auto-translation-185":"Inserisci un nome per il team","__stack-auto-translation-186":"Inserisci un indirizzo email valido","__stack-auto-translation-187":"Inserisci un indirizzo email valido","__stack-auto-translation-188":"Inserisci un indirizzo email","__stack-auto-translation-189":"Inserisci la tua email","__stack-auto-translation-19":"Sei sicuro di voler disattivare l'accesso con OTP? Non potrai pi\xf9 accedere solo con le email.","__stack-auto-translation-190":"Inserisci la tua vecchia password","__stack-auto-translation-191":"Inserisci la tua password","__stack-auto-translation-192":"Per favore ripeti la tua password","__stack-auto-translation-193":"Si prega di riprovare e se il problema persiste, contattare l'assistenza.","__stack-auto-translation-194":"Verifica il tuo indirizzo email ","__stack-auto-translation-195":"Per favore verifica prima la tua email","__stack-auto-translation-196":"Principale","__stack-auto-translation-197":"Pro","__stack-auto-translation-198":"Immagine del profilo","__stack-auto-translation-199":"Registra una passkey","__stack-auto-translation-2":"Impostazioni account","__stack-auto-translation-20":"Sei sicuro di voler disattivare l'accesso con Passkey? Non potrai pi\xf9 accedere utilizzando la tua passkey.","__stack-auto-translation-200":"Rimuovi","__stack-auto-translation-201":"Si rinnova il","__stack-auto-translation-202":"Ripeti nuova password","__stack-auto-translation-203":"Ripeti Nuova Password","__stack-auto-translation-204":"Ripeti Password","__stack-auto-translation-205":"Reinvia email di verifica","__stack-auto-translation-206":"Reimposta Password","__stack-auto-translation-207":"Reimposta la tua password","__stack-auto-translation-208":"Consulta fatture e ricevute precedenti.","__stack-auto-translation-209":"Revoca","__stack-auto-translation-21":"Sei sicuro di voler lasciare il team?","__stack-auto-translation-210":"Revoca Tutte le Altre Sessioni","__stack-auto-translation-211":"Salva","__stack-auto-translation-212":"Scansiona questo codice QR con la tua app di autenticazione:","__stack-auto-translation-213":"Chiave API 
2segreta","__stack-auto-translation-214":"Seleziona un nuovo piano dalla stessa linea di prodotti.","__stack-auto-translation-215":"Invia email","__stack-auto-translation-216":"Invia Email","__stack-auto-translation-217":"Invia email di verifica","__stack-auto-translation-218":"Sessione","__stack-auto-translation-219":"Imposta una password per il tuo account","__stack-auto-translation-22":"Autorizzazione Fallita","__stack-auto-translation-220":"Imposta come principale","__stack-auto-translation-221":"Imposta password","__stack-auto-translation-222":"Imposta Password","__stack-auto-translation-223":"Impostazioni","__stack-auto-translation-224":"Accedi","__stack-auto-translation-225":"Accedi","__stack-auto-translation-226":"Accedi di nuovo","__stack-auto-translation-227":"Accedi o crea un account per unirti al team.","__stack-auto-translation-228":"Accedi al tuo account","__stack-auto-translation-229":"Accedi con Passkey","__stack-auto-translation-23":"Autorizza","__stack-auto-translation-230":"Accedi con {provider}","__stack-auto-translation-231":"Esci","__stack-auto-translation-232":"Registrati","__stack-auto-translation-233":"Registrati","__stack-auto-translation-234":"L'iscrizione per i nuovi utenti non \xe8 attualmente abilitata.","__stack-auto-translation-235":"Registrati con Passkey","__stack-auto-translation-236":"Registrati con {provider}","__stack-auto-translation-237":"Accesso effettuato con successo!","__stack-auto-translation-238":"Accesso effettuato {time}","__stack-auto-translation-239":"Qualcosa \xe8 andato storto durante l'elaborazione del callback OAuth:","__stack-auto-translation-24":"Autorizza Applicazione CLI","__stack-auto-translation-240":"Stato","__stack-auto-translation-241":"Interrompi l'utilizzo per l'accesso","__stack-auto-translation-242":"Abbonamento","__stack-auto-translation-243":"Cambia piano","__stack-auto-translation-244":"La creazione del team \xe8 disattivata in modalit\xe0 demo","__stack-auto-translation-245":"La creazione del team non \xe8 abilitata","__stack-auto-translation-246":"Nome visualizzato del team","__stack-auto-translation-247":"Invito di squadra","__stack-auto-translation-248":"Immagine del profilo del team","__stack-auto-translation-249":"Nome utente del team","__stack-auto-translation-25":"Autorizzazione in corso...","__stack-auto-translation-250":"Team","__stack-auto-translation-251":"L'applicazione CLI \xe8 stata autorizzata con successo. Puoi chiudere questa finestra e tornare alla riga di comando.","__stack-auto-translation-252":"Il link magico \xe8 gi\xe0 stato utilizzato. Il link pu\xf2 essere usato una sola volta. Si prega di richiedere un nuovo link magico se \xe8 necessario accedere nuovamente.","__stack-auto-translation-253":"L'operazione di accesso \xe8 stata annullata o negata. Si prega di riprovare.","__stack-auto-translation-254":"L'utente \xe8 gi\xe0 collegato a un altro account OAuth. Hai forse selezionato l'account sbagliato nella pagina del provider OAuth?","__stack-auto-translation-255":"Quindi, inserisci il tuo codice MFA a sei cifre:","__stack-auto-translation-256":"Questi sono i dispositivi in cui hai effettuato l'accesso. Puoi revocare l'accesso per terminare una sessione.","__stack-auto-translation-257":"Questo account \xe8 gi\xe0 collegato a un altro utente. Si prega di collegare un account diverso.","__stack-auto-translation-258":"Questa email \xe8 gi\xe0 utilizzata per l'accesso da un altro utente.","__stack-auto-translation-259":"Questo \xe8 un nome visualizzato e non viene utilizzato per l'autenticazione","__stack-auto-translation-26":"Annulla","__stack-auto-translation-260":"Questo \xe8 molto probabilmente un errore in Stack. Si prega di segnalarlo.","__stack-auto-translation-261":"Questo link per il ripristino della password \xe8 gi\xe0 stato utilizzato. Se devi reimpostare nuovamente la password, richiedi un nuovo link dalla pagina di accesso.","__stack-auto-translation-262":"Questo link di invito al team \xe8 gi\xe0 stato utilizzato.","__stack-auto-translation-263":"Per abilitare l'accesso con OTP, aggiungi un'email di accesso verificata.","__stack-auto-translation-264":"Per abilitare l'accesso con Passkey, aggiungi un'email di accesso verificata.","__stack-auto-translation-265":"Per impostare una password, aggiungi un'email di accesso.","__stack-auto-translation-266":"Cambia tema","__stack-auto-translation-267":"Codice QR per l'autenticazione a pi\xf9 fattori TOTP","__stack-auto-translation-268":"Riprova","__stack-auto-translation-269":"Non disponibile","__stack-auto-translation-27":"Annulla abbonamento","__stack-auto-translation-270":"Inesigibile","__stack-auto-translation-271":"Sconosciuto","__stack-auto-translation-272":"Non verificato","__stack-auto-translation-273":"Aggiorna password","__stack-auto-translation-274":"Aggiorna Password","__stack-auto-translation-275":"Aggiorna metodo di pagamento","__stack-auto-translation-276":"Agg
2iorna la tua password","__stack-auto-translation-277":"Carica un'immagine per il tuo team","__stack-auto-translation-278":"Carica la tua immagine come avatar","__stack-auto-translation-279":"Usa per l'accesso","__stack-auto-translation-28":"L'annullamento interromper\xe0 i rinnovi futuri di questo abbonamento.","__stack-auto-translation-280":"Usato per l'accesso","__stack-auto-translation-281":"Link per il ripristino della password gi\xe0 utilizzato","__stack-auto-translation-282":"Link di invito al team gi\xe0 utilizzato","__stack-auto-translation-283":"Utente","__stack-auto-translation-284":"Nome utente","__stack-auto-translation-285":"Verifica fallita","__stack-auto-translation-286":"Verificato! Reindirizzamento in corso...","__stack-auto-translation-287":"Verifica","__stack-auto-translation-288":"Verifica in corso...","__stack-auto-translation-289":"Visualizza","__stack-auto-translation-29":"modifica","__stack-auto-translation-290":"Visualizza i tuoi piani attivi e acquisti.","__stack-auto-translation-291":"Annullata","__stack-auto-translation-292":"ATTENZIONE: Assicurati di fidarti dell'applicazione da riga di comando, poich\xe9 avr\xe0 accesso al tuo account. Se non hai avviato tu questa richiesta, puoi chiudere questa pagina e ignorarla. Non ti invieremo mai questo link via email o con altri mezzi.","__stack-auto-translation-293":"Hai gi\xe0 effettuato l'accesso","__stack-auto-translation-294":"Non sei attualmente autenticato.","__stack-auto-translation-295":"Non puoi rimuovere la tua ultima email di accesso","__stack-auto-translation-296":"Non puoi revocare la sessione corrente","__stack-auto-translation-297":"La tua email \xe8 stata verificata!","__stack-auto-translation-298":"Non hai ancora completato la configurazione del tuo account. Contatta il supporto se ritieni che si tratti di un errore.","__stack-auto-translation-299":"La tua email","__stack-auto-translation-3":"Impostazioni Account","__stack-auto-translation-30":"Cambia piano","__stack-auto-translation-300":"Il tuo link di verifica dell'email \xe8 scaduto. Richiedi un nuovo link di verifica dalle impostazioni del tuo account.","__stack-auto-translation-301":"Il tuo link magico \xe8 scaduto. Richiedi un nuovo link magico se hai bisogno di accedere.","__stack-auto-translation-302":"La tua password \xe8 stata reimpostata. Ora puoi accedere con la tua nuova password.","__stack-auto-translation-303":"Il tuo link per il reset della password \xe8 scaduto. Ti preghiamo di richiedere un nuovo link per il reset della password dalla pagina di accesso.","__stack-auto-translation-304":"Il tuo link di invito al team \xe8 scaduto. Richiedi un nuovo link di invito","__stack-auto-translation-31":"Modifica il nome visualizzato del tuo team","__stack-auto-translation-32":"Scegli un piano","__stack-auto-translation-33":"Scegli quali email desideri ricevere","__stack-auto-translation-34":"Autorizzazione CLI riuscita","__stack-auto-translation-35":"clicca qui","__stack-auto-translation-36":"Clicca il pulsante qui sotto per reinviare il link di verifica.","__stack-auto-translation-37":"Chiudi","__stack-auto-translation-38":"Completa configurazione","__stack-auto-translation-39":"Completa la configurazione dell'account","__stack-auto-translation-4":"Piani attivi","__stack-auto-translation-40":"Conferma","__stack-auto-translation-41":"Continua","__stack-auto-translation-42":"Copialo in un luogo sicuro. Non potrai visualizzarlo di nuovo.","__stack-auto-translation-43":"Impossibile ritagliare l'immagine.","__stack-auto-translation-44":"Crea","__stack-auto-translation-45":"Crea un nuovo account","__stack-auto-translation-46":"Crea un team","__stack-auto-translation-47":"Crea un Team","__stack-auto-translation-48":"Crea Chiave API","__stack-auto-translation-49":"Pacchetto crediti","__stack-auto-translation-5":"Sessioni Attive","__stack-auto-translation-50":"Sessione Corrente","__stack-auto-translation-51":"Team attuale","__stack-auto-translation-52":"Zona pericolosa","__stack-auto-translation-53":"Data","__stack-auto-translation-54":"Elimina account","__stack-auto-translation-55":"Elimina Account","__stack-auto-translation-56":"Elimina Passkey","__stack-auto-translation-57":"Descrizione","__stack-auto-translation-58":"La descrizione \xe8 obbligatoria","__stack-auto-translation-59":"Disattiva","__stack-auto-translation-6":"Agg
2iungi","__stack-auto-translation-60":"Disattiva MFA","__stack-auto-translation-61":"Disattiva OTP","__stack-auto-translation-62":"Nome visualizzato","__stack-auto-translation-63":"Vuoi accedere?","__stack-auto-translation-64":"Vuoi verificare la tua email?","__stack-auto-translation-65":"Non hai un account?","__stack-auto-translation-66":"Non hai bisogno di reimpostare?","__stack-auto-translation-67":"Bozza","__stack-auto-translation-68":"es. Sviluppo, Produzione, CI/CD","__stack-auto-translation-69":"Email","__stack-auto-translation-7":"Aggiungi un metodo di pagamento prima di cambiare piano.","__stack-auto-translation-70":"Email e password","__stack-auto-translation-71":"L'email esiste gi\xe0","__stack-auto-translation-72":"L'email \xe8 obbligatoria","__stack-auto-translation-73":"La gestione delle email non \xe8 disponibile in modalit\xe0 demo.","__stack-auto-translation-74":"Email inviato!","__stack-auto-translation-75":"Email","__stack-auto-translation-76":"Email e Autenticazione","__stack-auto-translation-77":"Abilita MFA","__stack-auto-translation-78":"Abilita OTP","__stack-auto-translation-79":"Abilita l'accesso tramite link magico o OTP inviato alle tue email di accesso.","__stack-auto-translation-8":"Aggiungi un'email","__stack-auto-translation-80":"Termina la sessione corrente","__stack-auto-translation-81":"Inserisci un nome visualizzato per il tuo nuovo team","__stack-auto-translation-82":"Inserisci email","__stack-auto-translation-83":"Inserisci il codice ricevuto via email","__stack-auto-translation-84":"Inserisci il codice a sei cifre dalla tua app di autenticazione","__stack-auto-translation-85":"Inserisci la tua email","__stack-auto-translation-86":"Link magico scaduto","__stack-auto-translation-87":"Link per il Reset della Password Scaduto","__stack-auto-translation-88":"Link di invito al team scaduto","__stack-auto-translation-89":"Link di verifica scaduto","__stack-auto-translation-9":"Aggiungi nuova passkey","__stack-auto-translation-90":"Scade","__stack-auto-translation-91":"Scade tra","__stack-auto-translation-92":"Autorizzazione dell'applicazione CLI fallita:","__stack-auto-translation-93":"Impossibile connettere l'account","__stack-auto-translation-94":"Impossibile reimpostare la password","__stack-auto-translation-95":"Impossibile reimpostare la password. Richiedi un nuovo link di reset","__stack-auto-translation-96":"Password dimenticata?","__stack-auto-translation-97":"Vai alla home","__stack-auto-translation-98":"Vai alla home","__stack-auto-translation-99":"Ecco la tua chiave API."})),"ja-JP":new Map(an({"__stack-auto-translation-0":"-","__stack-auto-translation-1":"\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u3042\u306a\u305f\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u8981\u6c42\u3057\u3066\u3044\u307e\u3059\u3002\u4e0b\u306e\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u627f\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002","__stack-auto-translation-10":"\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u8ffd\u52a0","__stack-auto-translation-100":"\u3053\u306e\u30ad\u30fc\u3092\u518d\u5ea6\u8868\u793a\u3067\u304d\u306a\u3044\u3053\u3068\u3092\u7406\u89e3\u3057\u307e\u3057\u305f\u3002","__stack-auto-translation-101":"\u3053\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u5b58\u5728\u3059\u308b\u5834\u5408\u3001\u30e1\u30fc\u30eb\u304c\u9001\u4fe1\u3055\u308c\u307e\u3057\u305f\u3002\u8ff7\u60d1\u30e1\u30fc\u30eb\u30d5\u30a9\u30eb\u30c0\u3082\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002","__stack-auto-translation-102":"\u81ea\u52d5\u7684\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3055\u308c\u306a\u3044\u5834\u5408\u306f\u3001","__stack-auto-translation-103":"\u7121\u8996","__stack-auto-translation-104":"\u306a\u308a\u3059\u307e\u3057","__stack-auto-translation-105":"\u4e0d\u6b63\u306a\u30b3\u30fc\u30c9\u3067\u3059\u3002\u3082\u3046\u4e00\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002","__stack-auto-translation-106":"\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093","__stack-auto-translation-107":"\u7121\u52b9\u306a\u30b3\u30fc\u30c9","__stack-auto-translation-108":"\u7121\u52b9\u306a\u753b\u50cf","__stack-auto-translation-109":"\u7121\u52b9\u306a\u30de\u30b8\u30c3\u30af\u30ea\u30f3\u30af","__stack-auto-translation-11":"\u3059\u3067\u306b\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u304a\u6301\u3061\u3067\u3059\u304b\uff1f","__stack-auto-translation-110":"\u7121\u52b9\u306a\u30d1\u30b9\u30ef\u30fc\u30c9\u30ea\u30bb\u30c3\u30c8\u30ea\u30f3\u30af","__stack-auto-translation-111":"\u7121\u52b9\u306a\u30c1\u30fc\u30e0\u62db\u5f85\u30ea\u30f3\u30af","__stack-auto-translation-112":"\u7121\u52b9\u306aTOTP\u30b3\u30fc\u30c9","__stack-auto-translation-113":"\u7121\u52b9\u306a\u8a8d\u8a3c\u30ea\u30f3\u30af","__stack-auto-translation-114":"\u30e1\u30fc\u30eb\u3067\u30c1\u30fc\u30e0\u306b\u30e6\u30fc\u30b6\u30fc\u3092\u62db\u5f85","__stack-auto-translation-115":"\u30e1\u30f3\u30d0\u30fc\u3092\u62db\u5f85","__stack-auto-translation-116":"\u30e6\u30fc\u30b6\u30fc\u3092\u62db\u5f85","__stack-auto-translation-117":"\u8acb\u6c42\u66f8","__stack-auto-translation-118":"\u8acb\u6c42\u66f8","__stack-auto-translation-119":"IP\u30a2\u30c9\u30ec\u30b9","__stack-auto-translation-12":"\u91d1\u984d","__stack-auto-translation-120":"\u53c2\u52a0","__stack-auto-translation-121":"\u6700\u7d42\u4f7f\u7528\u65e5\u6642","__stack-auto-translation-122":"\u9000\u51fa","__stack-auto-translation-123":"\u30c1\u30fc\u30e0\u3092\u9000\u51fa","__stack-auto-translation-124":"\u30c1\u30fc\u30e0\u3092\u9000\u51fa","__stack-auto-translation-125":"\u3053\u306e\u30c1\u30fc\u30e0\u3092\u9000\u51fa\u3057\u3001\u30c1\u30fc\u30e0\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u3092\u524a\u9664\u3059\u308b","__stack-auto-translation-126":"\u5834\u6240","__stack-auto-translation-127":"\u30de\u30b8\u30c3\u30af\u30ea\u30f3\u30af\u306f\u65e2\u306b\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059","__stack-auto-translation-128":"\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u3068\u8acb\u6c42\u66f8\u3067\u4f7f\u7528\u3059\u308b\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u652f\u6255\u3044\u65b9\u6cd5\u3092\u7ba1\u7406\u3057\u307e\u3059\u3002","__stack-auto-translation-129":"\u30e1\u30f3\u30d0\u30fc","__stack-auto-translation-13":"\u4e0d\u660e\u306a\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f","__stack-auto-translation-130":"\u591a\u8981\u7d20\u8a8d\u8a3c\uff08MFA\uff09\u306e\u7ba1\u7406\u306f\u30c7\u30e2\u30e2\u30fc\u30c9\u3067\u306f\u5229\u7528\u3067\u304d\u307e\u305b\u3093\u3002","__stack-auto-translation-131":"\u8a8d\u8a3c\u60c5\u5831\u304c\u4e0d\u8db3\u3057\u3066\u3044\u307e\u3059","__stack-auto-translation-132":"\u591a\u8981\u7d20\u8a8d\u8a3c","__stack-auto-translation-133":"\u591a\u8981\u7d20\u8a8d\u8a3c","__stack-auto-translation-134":"\u591a\u8981\u7d20\u8a8d\u8a3c\u306f\u73fe\u5728\u7121\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002","__stack-auto-translation-135":"\u591a\u8981\u7d20\u8a8d\u8a3c\u306f\u73fe\u5728\u6709\u52b9\u3067\u3059\u3002","__stack-auto-translation-136":"\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb","__stack-auto-translation-137":"\u540d\u524d","__stack-auto-translation-138":"\u306a\u3057","__stack-auto-translation-139":"\u65b0\u898f\u30a2\u30ab\u30a6\u30f3\u30c8\u767b\u9332\u306f\u8a31\u53ef\u3055\u308c\u3066\u3044\u307e\u305b\u3093","__stack-auto-translation-14":"API\u30ad\u30fc","__stack-auto-translation-140":"\u65b0\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9","__stack-auto-translation-141":"\u65b0\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9","__stack-auto-translation-142":"\u30a2\u30af\u30c6\u30a3\u30d6\u306a\u30bb\u30c3\u30b7\u30e7\u30f3\u304c\u3042\u308a\u307e\u305b\u3093","__stack-auto-translation-143":"\u8a8d\u8a3c\u65b9\u6cd5\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u305b\u3093\u3002","__stack-auto-translation-144":"\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u652f\u6255\u3044\u65b9\u6cd5\u304c\u3042\u308a\u307e\u305b\u3093","__stack-auto-translation-145":"\u8868\u793a\u540d\u672a\u8a2d\u5b9a","__stack-auto-translation-146":"\u3053\u306e\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u306b\u306f\u4ed6\u306e\u30d7\u30e9\u30f3\u304c\u3042\u308a\u307e\u305b\u3093\u3002","__stack-auto-translation-147":"\u4fdd\u7559\u4e2d\u306e\u62db\u5f85\u306f\u3042\u308a\u307e\u305b\u3093","__stack-auto-translation-148":"\u30c1\u30fc\u30e0\u306a\u3057","__stack-auto-translation-149":"\u307e\u3060\u30c1\u30fc\u30e0\u304c\u3042\u308a\u307e\u305b\u3093","__stack-auto-translation-15":"API\u30ad\u30fc","__stack-auto-translation-150":"\u30b5\u30a4\u30f3\u30a4\u30f3\u3057\u3066\u3044\u307e\u305b\u3093","__stack-auto-translation-151":"\u901a\u77e5","__stack-auto-translation-152":"OAuth \u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u306e\u30a2\u30af\u30bb\u30b9\u304c\u62d2\u5426\u3055\u308c\u307e\u3057\u305f","__stack-auto-translation-153":"\u4ee5\u524d\u306e\u30d1\u30b9\u30ef\u30fc\u30c9","__stack-auto-translation-154":"\u30ef\u30f3\u30bf\u30a4\u30e0\u30d1\u30b9\u30ef\u30fc\u30c9","__stack-auto-translation-155":"1\u56de\u9650\u308a\u306e\u8cfc\u5165","__stack-auto-translation-156":"\u672a\u6255\u3044","__stack-auto-translation-157":"\u307e\u305f\u306f\u3001\u6b21\u306e\u65b9\u6cd5\u3067\u7d9a\u884c","__stack-auto-translation-158":"\u4ed6\u306e\u30bb\u30c3\u30b7\u30e7\u30f3","__stack-auto-translation-159":"\u4ed6\u306e\u30c1\u30fc\u30e0","__stack-auto-translation-16":"API\u30ad\u30fc\u306f\u3042\u306a\u305f\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3078\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u7684\u306a\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3057\u307e\u3059\u3002","__stack-auto-translation-160":"\u30c7\u30e2\u30e2\u30fc\u30c9\u3067\u306fOTP\u7ba1\u7406\u306f\u5229\u7528\u3067\u304d\u307e\u305b\u3093\u3002","__stack-auto-translation-161":"OTP\u30b5\u30a4\u30f3\u30a4\u30f3","__stack-auto-translation-162":"OTP\u30b5\u30a4\u30f3\u30a4\u30f3\u304c\u6709\u52b9\u3067\u3001\u73fe\u5728\u552f\u4e00\u306e\u30b5\u30a4\u30f3\u30a4\u30f3\u65b9\u6cd5\u306e\u305f\u3081\u7121\u52b9\u5316\u3067\u304d\u307e\u305b\u3093","__stack-auto-translation-163":"OTP/\u30de\u30b8\u30c3\u30af\u30ea\u30f3\u30af\u306b\u3088\u308b\u30b5\u30a4\u30f3\u30a4\u30f3\u306f\u73fe\u5728\u6709\u52b9\u3067\u3059\u3002","__stack-auto-translation-164":"\u672a\u51e6\u7406\u306e\u62db\u5f85","__stack-auto-translation-165":"\u3053\u306e\u30c1\u30fc\u30e0\u3067\u306e\u30e6\u30fc\u30b6\u30fc\u8868\u793a\u540d\u3092\u4e0a\u66f8\u304d\u3059\u308b","__stack-auto-translation-166":"\u652f\u6255\u6e08","__stack-auto-translation-167":"\u30d1\u30b9\u30ad\u30fc","__stack-auto-translation-168":"\u30d1\u30b9\u30ad\u30fc\u7ba1\u7406\u306f\u30c7\u30e2\u30e2\u30fc\u30c9\u3067\u306f\u5229\u7528\u3067\u304d\u307e\u305b\u3093\u3002","__stack-auto-translation-169":"\u30d1\u30b9\u30ad\u30fc\u304c\u767b\u9332\u3055\u308c\u307e\u3057\u305f","__stack-auto-translation-17":"API\u30ad\u30fc\u306f\u30c1\u30fc\u30e0\u3078\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u7684\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3057\u307e\u3059\u3002","__stack-auto-translation-170":"\u30d1\u30b9\u30ad\u30fc\u306b\u3088\u308b\u30b5\u30a4\u30f3\u30a4\u30f3\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u304a\u308a\u3001\u73fe\u5728\u552f\u4e00\u306e\u30b5\u30a4\u30f3\u30a4\u30f3\u65b9\u6cd5\u306e\u305f\u3081\u7121\u52b9\u5316\u3067\u304d\u307e\u305b\u3093","__stack-auto-translation-171":"\u30d1\u30b9\u30ef\u30fc\u30c9","__stack-auto-translation-172":"\u30d1\u30b9\u30ef\u30fc\u30c9\u7ba1\u7406\u306f\u30c7\u30e2\u30e2\u30fc\u30c9\u3067\u306f\u5229\u7528\u3067\u304d\u307e\u305b\u3093\u3002","__stack-auto-translation-173":"\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u30ea\u30bb\u30c3\u30c8\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\uff01","__stack-auto-translation-174":"\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u4e00\u81f4\u3057\u307e\u305b\u3093","__stack-auto-translation-175":"\u652f\u6255\u3044\u65b9\u6cd5","__stack-auto-translation-176":"\u652f\u6255\u3044","__stack-auto-translation-177":"\u30a2\u30ab\u30a6\u30f3\u30c8\u3068\u3059\u3079\u3066\u306e\u95a2\u9023\u30c7\u30fc\u30bf\u3092\u5b8c\u5168\u306b\u524a\u9664\u3059\u308b","__stack-auto-translation-178":"\u500b\u4eba","__stack-auto-translation-179":"\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u8a2d\u5b9a\u3092\u5b8c\u4e86\u3059\u308b\u306b\u306f\u3001\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u78ba\u8a8d\u30e1\u30fc\u30eb\u3092\u304a\u9001\u308a\u3057\u307e\u3059\u3002","__stack-auto-translation-18":"\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u524a\u9664\u3057\u3066\u3082\u3088\u308d\u3057\u3044\u3067\u3059\u304b\uff1f\u3053\u306e\u64cd\u4f5c\u306f\u53d6\u308a\u6d88\u3057\u3067\u304d\u305a\u3001\u95a2\u9023\u3059\u308b\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u304c\u524a\u9664\u3055\u308c\u307e\u3059\u3002","__stack-auto-translation-180":"\u6b63\u3057\u3044\u30ea\u30f3\u30af\u304b\u3069\u3046\u304b\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002\u554f\u984c\u304c\u89e3\u6c7a\u3057\u306a\u3044\u5834\u5408\u306f\u3001\u30b5\u30dd\u30fc\u30c8\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002","__stack-auto-translation-181":"\u30e1\u30fc\u30eb\u306e\u53d7\u4fe1\u30c8\u30ec\u30a4\u3092\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044","__stack-auto-translation-182":"\u30c1\u30fc\u30e0\u306b\u53c2\u52a0\u3059\u308b\u524d\u306b\u30a2\u30ab\u30a6\u30f3\u30c8\u8a2d\u5b9a\u3092\u5b8c\u4e86\u3057\u3066\u304f\u3060\u3055\u3044\u3002","__stack-auto-translation-183":"\u6b63\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u30ea\u30bb\u30c3\u30c8\u30ea\u30f3\u30af\u304b\u3069\u3046\u304b\u518d\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002","__stack-auto-translation-184":"\u6b63\u3057\u3044\u30c1\u30fc\u30e0\u62db\u5f85\u30ea\u30f3\u30af\u3092\u304a\u6301\u3061\u304b\u3069\u3046\u304b\u518d\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002","__stack-auto-translation-185":"\u30c1\u30fc\u30e0\u540d\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044","__stack-auto-translation-186":"\u6709\u52b9\u306a\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044","__stack-auto-translation-187":"\u6709\u52b9\u306a\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044","__stack-auto-translation-188":"\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044","__stack-auto-translation-189":"\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044","__stack-auto-translation-19":"OTP\u30ed\u30b0\u30a4\u30f3\u3092\u7121\u52b9\u306b\u3057\u3066\u3082\u3088\u308d\u3057\u3044\u3067\u3059\u304b\uff1f\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306e\u307f\u3067\u306e\u30ed\u30b0\u30a4\u30f3\u304c\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3059\u3002","__stack-auto-translation-190":"\u4ee5\u524d\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044","__stack-auto-translation-191":"\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044","__stack-auto-translation-192":"\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u3082\u3046\u4e00\u5ea6\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044","__stack-auto-translation-193":"\u3082\u3046\u4e00\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002\u554f\u984c\u304c\u89e3\u6c7a\u3057\u306a\u3044\u5834\u5408\u306f\u30b5\u30dd\u30fc\u30c8\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002","__stack-auto-translation-194":"\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u8a8d\u8a3c\u3057\u3066\u304f\u3060\u3055\u3044 ","__stack-auto-translation-195":"\u5148\u306b\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u8a8d\u8a3c\u3057\u3066\u304f\u3060\u3055\u3044","__stack-auto-translation-196":"\u4e3b\u8981","__stack-auto-translation-197":"Pro","__stack-auto-translation-198":"\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u753b\u50cf","__stack-auto-translation-199":"\u30d1\u30b9\u30ad\u30fc\u3092\u767b\u9332","__stack-auto-translation-2":"\u30a2\u30ab\u30a6\u30f3\u30c8\u8a2d\u5b9a","__stack-auto-translation-20":"\u30d1\u30b9\u30ad\u30fc\u3067\u306e\u30b5\u30a4\u30f3\u30a4\u30f3\u3092\u7121\u52b9\u306b\u3057\u307e\u3059\u304b\uff1f\u4eca\u5f8c\u30d1\u30b9\u30ad\u30fc\u3067\u30b5\u30a4\u30f3\u3
20a4\u30f3\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3059\u3002","__stack-auto-translation-200":"\u524a\u9664","__stack-auto-translation-201":"\u66f4\u65b0\u65e5","__stack-auto-translation-202":"\u65b0\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u518d\u5165\u529b","__stack-auto-translation-203":"\u65b0\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u518d\u5165\u529b","__stack-auto-translation-204":"\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u518d\u5165\u529b","__stack-auto-translation-205":"\u78ba\u8a8d\u30e1\u30fc\u30eb\u3092\u518d\u9001\u4fe1","__stack-auto-translation-206":"\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u30ea\u30bb\u30c3\u30c8","__stack-auto-translation-207":"\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u30ea\u30bb\u30c3\u30c8","__stack-auto-translation-208":"\u904e\u53bb\u306e\u8acb\u6c42\u66f8\u3068\u9818\u53ce\u66f8\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002","__stack-auto-translation-209":"\u53d6\u308a\u6d88\u3059","__stack-auto-translation-21":"\u30c1\u30fc\u30e0\u3092\u9000\u51fa\u3057\u3066\u3082\u3088\u308d\u3057\u3044\u3067\u3059\u304b\uff1f","__stack-auto-translation-210":"\u4ed6\u306e\u3059\u3079\u3066\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u53d6\u308a\u6d88\u3059","__stack-auto-translation-211":"\u4fdd\u5b58","__stack-auto-translation-212":"\u8a8d\u8a3c\u30a2\u30d7\u30ea\u3067\u3053\u306eQR\u30b3\u30fc\u30c9\u3092\u30b9\u30ad\u30e3\u30f3\u3057\u3066\u304f\u3060\u3055\u3044\uff1a","__stack-auto-translation-213":"\u30b7\u30fc\u30af\u30ec\u30c3\u30c8API\u30ad\u30fc","__stack-auto-translation-214":"\u540c\u3058\u88fd\u54c1\u30e9\u30a4\u30f3\u304b\u3089\u65b0\u3057\u3044\u30d7\u30e9\u30f3\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002","__stack-auto-translation-215":"\u30e1\u30fc\u30eb\u3092\u9001\u4fe1","__stack-auto-translation-216":"\u30e1\u30fc\u30eb\u3092\u9001\u4fe1","__stack-auto-translation-217":"\u78ba\u8a8d\u30e1\u30fc\u30eb\u3092\u9001\u4fe1","__stack-auto-translation-218":"\u30bb\u30c3\u30b7\u30e7\u30f3","__stack-auto-translation-219":"\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3059\u308b","__stack-auto-translation-22":"\u8a8d\u8a3c\u306b\u5931\u6557\u3057\u307e\u3057\u305f","__stack-auto-translation-220":"\u4e3b\u8981\u306b\u8a2d\u5b9a","__stack-auto-translation-221":"\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a","__stack-auto-translation-222":"\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a","__stack-auto-translation-223":"\u8a2d\u5b9a","__stack-auto-translation-224":"\u30ed\u30b0\u30a4\u30f3","__stack-auto-translation-225":"\u30ed\u30b0\u30a4\u30f3","__stack-auto-translation-226":"\u3082\u3046\u4e00\u5ea6\u30ed\u30b0\u30a4\u30f3","__stack-auto-translation-227":"\u30c1\u30fc\u30e0\u306b\u53c2\u52a0\u3059\u308b\u306b\u306f\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u304b\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002","__stack-auto-translation-228":"\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u30ed\u30b0\u30a4\u30f3","__stack-auto-translation-229":"\u30d1\u30b9\u30ad\u30fc\u3067\u30ed\u30b0\u30a4\u30f3","__stack-auto-translation-23":"\u8a8d\u8a3c","__stack-auto-translation-230":"{provider}\u3067\u30ed\u30b0\u30a4\u30f3","__stack-auto-translation-231":"\u30b5\u30a4\u30f3\u30a2\u30a6\u30c8","__stack-auto-translation-232":"\u767b\u9332","__stack-auto-translation-233":"\u767b\u9332","__stack-auto-translation-234":"\u73fe\u5728\u3001\u65b0\u898f\u30e6\u30fc\u30b6\u30fc\u306e\u767b\u9332\u306f\u7121\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002","__stack-auto-translation-235":"\u30d1\u30b9\u30ad\u30fc\u3067\u767b\u9332","__stack-auto-translation-236":"{provider}\u3067\u767b\u9332","__stack-auto-translation-237":"\u30ed\u30b0\u30a4\u30f3\u306b\u6210\u529f\u3057\u307e\u3057\u305f\uff01","__stack-auto-translation-238":"\u30ed\u30b0\u30a4\u30f3\u6642\u9593\uff1a{time}","__stack-auto-translation-239":"OAuth \u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u306e\u51e6\u7406\u4e2d\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\uff1a","__stack-auto-translation-24":"CLI\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u8a8d\u8a3c","__stack-auto-translation-240":"\u30b9\u30c6\u30fc\u30bf\u30b9","__stack-auto-translation-241":"\u30b5\u30a4\u30f3\u30a4\u30f3\u306b\u4f7f\u7528\u3057\u306a\u3044","__stack-auto-translation-242":"\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3","__stack-auto-translation-243":"\u30d7\u30e9\u30f3\u3092\u5909\u66f4","__stack-auto-translation-244":"\u30c7\u30e2\u30e2\u30fc\u30c9\u3067\u306f\u30c1\u30fc\u30e0\u4f5c\u6210\u304c\u7121\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u3059","__stack-auto-translation-245":"\u30c1\u30fc\u30e0\u4f5c\u6210\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u305b\u3093","__stack-auto-translation-246":"\u30c1\u30fc\u30e0\u8868\u793a\u540d","__stack-auto-translation-247":"\u30c1\u30fc\u30e0\u62db\u5f85","__stack-auto-translation-248":"\u30c1\u30fc\u30e0\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u753b\u50cf","__stack-auto-translation-249":"\u30c1\u30fc\u30e0\u5185\u30e6\u30fc\u30b6\u30fc\u540d","__stack-auto-translation-25":"\u8a8d\u8a3c\u4e2d...","__stack-auto-translation-250":"\u30c1\u30fc\u30e0","__stack-auto-translation-251":"CLI\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8a8d\u8a3c\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002\u3053\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u9589\u3058\u3066\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306b\u623b\u3063\u3066\u304f\u3060\u3055\u3044\u3002","__stack-auto-translation-252":"\u30de\u30b8\u30c3\u30af\u30ea\u30f3\u30af\u306f\u65e2\u306b\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30ea\u30f3\u30af\u306f\u4e00\u5ea6\u3057\u304b\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093\u3002\u518d\u5ea6\u30b5\u30a4\u30f3\u30a4\u30f3\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u65b0\u3057\u3044\u30de\u30b8\u30c3\u30af\u30ea\u30f3\u30af\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066\u304f\u3060\u3055\u3044\u3002","__stack-auto-translation-253":"\u30b5\u30a4\u30f3\u30a4\u30f3\u64cd\u4f5c\u306f\u30ad\u30e3\u30f3\u30bb\u30eb\u3055\u308c\u305f\u304b\u62d2\u5426\u3055\u308c\u307e\u3057\u305f\u3002\u3082\u3046\u4e00\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002","__stack-auto-translation-254":"\u30e6\u30fc\u30b6\u30fc\u306f\u65e2\u306b\u5225\u306eOAuth\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u63a5\u7d9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002OAuth\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u306e\u30da\u30fc\u30b8\u3067\u9593\u9055\u3063\u305f\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u9078\u629e\u3057\u305f\u53ef\u80fd\u6027\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f","__stack-auto-translation-255":"\u6b21\u306b\u30016\u6841\u306eMFA\u30b3\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\uff1a","__stack-auto-translation-256":"\u73fe\u5728\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308b\u30c7\u30d0\u30a4\u30b9\u3067\u3059\u3002\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u7d42\u4e86\u3059\u308b\u306b\u306f\u30a2\u30af\u30bb\u30b9\u3092\u53d6\u308a\u6d88\u3057\u3066\u304f\u3060\u3055\u3044\u3002","__stack-auto-translation-257":"\u3053\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u306f\u65e2\u306b\u5225\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u63a5\u7d9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u5225\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u63a5\u7d9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002","__stack-auto-translation-258":"\u3053\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306f\u65e2\u306b\u4ed6\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u30b5\u30a4\u30f3\u30a4\u30f3\u306b\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002","__stack-auto-translation-259":"\u3053\u308c\u306f\u8868\u793a\u540d\u3067\u3042\u308a\u3001\u8a8d\u8a3c\u306b\u306f\u4f7f\u7528\u3055\u308c\u307e\u305b\u3093","__stack-auto-translation-26":"\u30ad\u30e3\u30f3\u30bb\u30eb","__stack-auto-translation-260":"\u3053\u308c\u306fStack\u306e\u30a8\u30e9\u30fc\u3067\u3042\u308b\u53ef\u80fd\u6027\u304c\u9ad8\u3044\u3067\u3059\u3002\u3054\u5831\u544a\u304f\u3060\u3055\u3044\u3002","__stack-auto-translation-261":"\u3053\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u30ea\u30bb\u30c3\u30c8\u30ea\u30f3\u30af\u306f\u65e2\u306b\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u518d\u5ea6\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u30ea\u30bb\u30c3\u30c8\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u30ed\u30b0\u30a4\u30f3\u30da\u30fc\u30b8\u304b\u3089\u65b0\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u30ea\u30bb\u30c3\u30c8\u30ea\u30f3\u30af\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066\u304f\u3060\u3055\u3044\u3002","__stack-auto-translation-262":"\u3053\u306e\u30c1\u30fc\u30e0\u62db\u5f85\u30ea\u30f3\u30af\u306f\u65e2\u306b\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002","__stack-auto-translation-263":"OTP \u30ed\u30b0\u30a4\u30f3\u3092\u6709\u52b9\u306b\u3059\u308b\u306b\u306f\u3001\u78ba\u8a8d\u6e08\u307f\u306e\u30b5\u30a4\u30f3\u30a4\u30f3\u30e1\u30fc\u30eb\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002","__stack-auto-translation-264":"\u30d1\u30b9\u30ad\u30fc\u3067\u306e\u30b5\u30a4\u30f3\u30a4\u30f3\u3092\u6709\u52b9\u306b\u3059\u308b\u306b\u306f\u3001\u8a8d\u8a3c\u6e08\u307f\u306e\u30b5\u30a4\u30f3\u30a4\u30f3\u30e1\u30fc\u30eb\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002","__stack-auto-translation-265":"\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3059\u308b\u306b\u306f\u3001\u30b5\u30a4\u30f3\u30a4\u30f3\u7528\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002","__stack-auto-translation-266":"\u30c6\u30fc\u30de\u5207\u66ff","__stack-auto-translation-267":"TOTP\u591a\u8981\u7d20\u8a8d\u8a3cQR\u30b3\u30fc\u30c9","__stack-auto-translation-268":"\u518d\u8a66\u884c","__stack-auto-translation-269":"\u5229\u7528\u4e0d\u53ef","__stack-auto-translation-27":"\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u3092\u30ad\u30e3\u30f3\u30bb\u30eb","__stack-auto-translation-270":"\u56de\u53ce\u4e0d\u80fd","__stack-auto-translation-271":"\u4e0
2d\u660e","__stack-auto-translation-272":"\u672a\u8a8d\u8a3c","__stack-auto-translation-273":"\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u66f4\u65b0","__stack-auto-translation-274":"\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u66f4\u65b0","__stack-auto-translation-275":"\u652f\u6255\u3044\u65b9\u6cd5\u3092\u66f4\u65b0","__stack-auto-translation-276":"\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u66f4\u65b0","__stack-auto-translation-277":"\u30c1\u30fc\u30e0\u7528\u306e\u753b\u50cf\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9","__stack-auto-translation-278":"\u30a2\u30d0\u30bf\u30fc\u3068\u3057\u3066\u72ec\u81ea\u306e\u753b\u50cf\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9","__stack-auto-translation-279":"\u30b5\u30a4\u30f3\u30a4\u30f3\u306b\u4f7f\u7528","__stack-auto-translation-28":"\u30ad\u30e3\u30f3\u30bb\u30eb\u3059\u308b\u3068\u3001\u3053\u306e\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u306e\u4eca\u5f8c\u306e\u66f4\u65b0\u304c\u505c\u6b62\u3055\u308c\u307e\u3059\u3002","__stack-auto-translation-280":"\u30b5\u30a4\u30f3\u30a4\u30f3\u306b\u4f7f\u7528","__stack-auto-translation-281":"\u4f7f\u7528\u6e08\u307f\u30d1\u30b9\u30ef\u30fc\u30c9\u30ea\u30bb\u30c3\u30c8\u30ea\u30f3\u30af","__stack-auto-translation-282":"\u4f7f\u7528\u6e08\u307f\u30c1\u30fc\u30e0\u62db\u5f85\u30ea\u30f3\u30af","__stack-auto-translation-283":"\u30e6\u30fc\u30b6\u30fc","__stack-auto-translation-284":"\u30e6\u30fc\u30b6\u30fc\u540d","__stack-auto-translation-285":"\u8a8d\u8a3c\u306b\u5931\u6557\u3057\u307e\u3057\u305f","__stack-auto-translation-286":"\u8a8d\u8a3c\u6e08\u307f\uff01\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u4e2d...","__stack-auto-translation-287":"\u78ba\u8a8d","__stack-auto-translation-288":"\u78ba\u8a8d\u4e2d...","__stack-auto-translation-289":"\u8868\u793a","__stack-auto-translation-29":"\u5909\u66f4","__stack-auto-translation-290":"\u6709\u52b9\u306a\u30d7\u30e9\u30f3\u3068\u8cfc\u5165\u5185\u5bb9\u3092\u8868\u793a\u3057\u307e\u3059\u3002","__stack-auto-translation-291":"\u7121\u52b9","__stack-auto-translation-292":"\u8b66\u544a\uff1a\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u3042\u306a\u305f\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u3001\u4fe1\u983c\u3067\u304d\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u958b\u59cb\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001\u3053\u306e\u30da\u30fc\u30b8\u3092\u9589\u3058\u3066\u7121\u8996\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u5f53\u793e\u304c\u3053\u306e\u30ea\u30f3\u30af\u3092\u30e1\u30fc\u30eb\u3084\u305d\u306e\u4ed6\u306e\u624b\u6bb5\u3067\u9001\u4fe1\u3059\u308b\u3053\u3068\u306f\u6c7a\u3057\u3066\u3042\u308a\u307e\u305b\u3093\u3002","__stack-auto-translation-293":"\u3059\u3067\u306b\u30b5\u30a4\u30f3\u30a4\u30f3\u3057\u3066\u3044\u307e\u3059","__stack-auto-translation-294":"\u73fe\u5728\u30b5\u30a4\u30f3\u30a4\u30f3\u3057\u3066\u3044\u307e\u305b\u3093\u3002","__stack-auto-translation-295":"\u6700\u5f8c\u306e\u30b5\u30a4\u30f3\u30a4\u30f3\u30e1\u30fc\u30eb\u306f\u524a\u9664\u3067\u304d\u307e\u305b\u3093","__stack-auto-translation-296":"\u73fe\u5728\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u53d6\u308a\u6d88\u3059\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093","__stack-auto-translation-297":"\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u304c\u8a8d\u8a3c\u3055\u308c\u307e\u3057\u305f\uff01","__stack-auto-translation-298":"\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u8a2d\u5b9a\u304c\u307e\u3060\u5b8c\u4e86\u3057\u3066\u3044\u307e\u305b\u3093\u3002\u30a8\u30e9\u30fc\u3060\u3068\u601d\u308f\u308c\u308b\u5834\u5408\u306f\u3001\u30b5\u30dd\u30fc\u30c8\u307e\u3067\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002","__stack-auto-translation-299":"\u3042\u306a\u305f\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9","__stack-auto-translation-3":"\u30a2\u30ab\u30a6\u30f3\u30c8\u8a2d\u5b9a","__stack-auto-translation-30":"\u30d7\u30e9\u30f3\u3092\u5909\u66f4","__stack-auto-translation-300":"\u30e1\u30fc\u30eb\u8a8d\u8a3c\u30ea\u30f3\u30af\u306e\u6709\u52b9\u671f\u9650\u304c\u5207\u308c\u307e\u3057\u305f\u3002\u30a2\u30ab\u30a6\u30f3\u30c8\u8a2d\u5b9a\u304b\u3089\u65b0\u3057\u3044\u8a8d\u8a3c\u30ea\u30f3\u30af\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066\u304f\u3060\u3055\u3044\u3002","__stack-auto-translation-301":"\u30de\u30b8\u30c3\u30af\u30ea\u30f3\u30af\u306e\u6709\u52b9\u671f\u9650\u304c\u5207\u308c\u307e\u3057\u305f\u3002\u30b5\u30a4\u30f3\u30a4\u30f3\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u65b0\u3057\u3044\u30de\u30b8\u30c3\u30af\u30ea\u30f3\u30af\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066\u304f\u3060\u3055\u3044\u3002","__stack-auto-translation-302":"\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u30ea\u30bb\u30c3\u30c8\u3055\u308c\u307e\u3057\u305f\u3002\u65b0\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u307e\u3059\u3002","__stack-auto-translation-303":"\u30d1\u30b9\u30ef\u30fc\u30c9\u30ea\u30bb\u30c3\u30c8\u30ea\u30f3\u30af\u306e\u6709\u52b9\u671f\u9650\u304c\u5207\u308c\u307e\u3057\u305f\u3002\u30ed\u30b0\u30a4\u30f3\u30da\u30fc\u30b8\u304b\u3089\u65b0\u3057\u3044\u30ea\u30bb\u30c3\u30c8\u30ea\u30f3\u30af\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066\u304f\u3060\u3055\u3044\u3002","__stack-auto-translation-304":"\u30c1\u30fc\u30e0\u62db\u5f85\u30ea\u30f3\u30af\u306e\u6709\u52b9\u671f\u9650\u304c\u5207\u308c\u3066\u3044\u307e\u3059\u3002\u65b0\u3057\u3044\u30c1\u30fc\u30e0\u62db\u5f85\u30ea\u30f3\u30af\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066\u304f\u3060\u3055\u3044","__stack-auto-translation-31":"\u30c1\u30fc\u30e0\u306e\u8868\u793a\u540d\u3092\u5909\u66f4\u3059\u308b","__stack-auto-translation-32":"\u30d7\u30e9\u30f3\u3092\u9078\u629e","__stack-auto-translation-33":"\u53d7\u4fe1\u3057\u305f\u3044\u30e1\u30fc\u30eb\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044","__stack-auto-translation-34":"CLI\u8a8d\u8a3c\u6210\u529f","__stack-auto-translation-35":"\u3053\u3053\u3092\u30af\u30ea\u30c3\u30af","__stack-auto-translation-36":"\u4e0b\u306e\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u78ba\u8a8d\u30ea\u30f3\u30af\u3092\u518d\u9001\u4fe1\u3057\u3066\u304f\u3060\u3055\u3044\u3002","__stack-auto-translation-37":"\u9589\u3058\u308b","__stack-auto-translation-38":"\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3092\u5b8c\u4e86","__stack-auto-translation-39":"\u30a2\u30ab\u30a6\u30f3\u30c8\u8a2d\u5b9a\u3092\u5b8c\u4e86\u3057\u3066\u304f\u3060\u3055\u3044","__stack-auto-translation-4":"\u6709\u52b9\u306a\u30d7\u30e9\u30f3","__stack-auto-translation-40":"\u78ba\u8a8d","__stack-auto-translation-41":"\u7d9a\u3051\u308b","__stack-auto-translation-42":"\u5b89\u5168\u306a\u5834\u6240\u306b\u30b3\u30d4\u30fc\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u518d\u5ea6\u8868\u793a\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002","__stack-auto-translation-43":"\u753b\u50cf\u3092\u30c8\u30ea\u30df\u30f3\u30b0\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002","__stack-auto-translation-44":"\u4f5c\u6210","__stack-auto-translation-45":"\u65b0\u3057\u3044\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210","__stack-auto-translation-46":"\u30c1\u30fc\u30e0\u3092\u4f5c\u6210","__stack-auto-translation-47":"\u30c1\u30fc\u30e0\u3092\u4f5c\u6210","__stack-auto-translation-48":"API\u30ad\u30fc\u3092\u4f5c\u6210","__stack-auto-translation-49":"\u30af\u30ec\u30b8\u30c3\u30c8\u30d1\u30c3\u30af","__stack-auto-translation-5":"\u30a2\u30af\u30c6\u30a3\u30d6\u306a\u30bb\u30c3\u30b7\u30e7\u30f3","__stack-auto-translation-50":"\u73fe\u5728\u306e\u30bb\u30c3\u30b7\u30e7\u30f3","__stack-auto-translation-51":"\u73fe\u5728\u306e\u30c1\u30fc\u30e0","__stack-auto-translation-52":"\u5371\u967a\u30a8\u30ea\u30a2","__stack-auto-translation-53":"\u65e5\u4ed8","__stack-auto-translation-54":"\u30a2\u30ab\u30a6\u30f3\u30c8\u524a\u9664","__stack-auto-translation-55":"\u30a2\u30ab\u30a6\u30f3\u30c8\u524a\u9664","__stack-auto-translation-56":"\u30d1\u30b9\u30ad\u30fc\u3092\u524a\u9664","__stack-auto-translation-57":"\u8aac\u660e","__stack-auto-translation-58":"\u8aac\u660e\u304c\u5fc5\u8981\u3067\u3059","__stack-auto-translation-59":"\u7121\u52b9\u5316","__stack-auto-translation-6":"\u8ffd\u52a0","__stack-auto-translation-60":"MFA\u3092\u7121\u52b9\u306b\u3059\u308b","__stack-auto-translation-61":"OTP\u3092\u7121\u52b9\u306b\u3059\u308b","__stack-auto-translation-62":"\u8868\u793a\u540d","__stack-auto-translation-63":"\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059\u304b\uff1f","__stack-auto-translation-64":"\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u8a8d\u8a3c\u3057\u307e\u3059\u304b\uff1f","__stack-auto-translation-65":"\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u304a\u6301\u3061\u3067\u306a\u3044\u65b9?","__stack-auto-translation-66":"\u30ea\u30bb\u30c3\u30c8\u306e\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f","__stack-auto-translation-67":"\u4e0b\u66f8\u304d","__stack-auto-translation-68":"\u4f8b: \u958b\u767a\u74b0\u5883\u3001\u672c\u756a\u74b0\u5883\u3001CI/CD","__stack-auto-translation-69":"\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9","__stack-auto-translation-7":"\u30d7\u30e9\u30f3\u3092\u5207\u308a\u66ff\u3048\u308b\u524d\u306b\u652f\u6255\u3044\u65b9\u6cd5\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002","__stack-auto-translation-70":"\u30e1\u30fc\u30eb & \u30d1\u30b9\u30ef\u30fc\u30c9","__stack-auto-translation-71":"\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u304c\u65e2\u306b\u5b58\u5728\u3057\u307e\u3059","__stack-auto-translation-72":"\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306f\u5fc5\u9808\u3067\u3059","__stack-auto-translation-73":"\u30c7\u30e2\u30e2\u30fc\u30c9\u3067\u306f\u30e1\u30fc\u30eb\u7ba1\u7406\u3092\u5229\u7528\u3067\u304d\u307e\u305b\u3093\u3002","__stack-auto-translation-74":"\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3057\u307e\u3057\u305f\uff01","__stack-auto-translation-75":"\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9","__stack-auto-translation-76":"\u30e1\u30fc\u30eb & \u8a8d\u8a3c","__stack-auto-translation-77":"MFA\u3092\u6709\u52b9\u306b\u3059\u308b","__stack-auto-translation-78":"OTP\u3092\u6709\u52b9\u306b\u3059\u308b","__stack-auto-translation-79":"\u30b5\u30a4\u30f3\u30a4\u30f3\u30e1\u30fc\u30eb\u306b\u30de\u30b8\u30c3\u30af\u30ea\u30f3\u30af\u307e\u305f\u306fOTP\u3092\u9001\u4fe1\u3057\u3066\u30b5\u30a4\u30f3\u30a4\u30f3\u3092\u6709\u52b9\u306b\u3059\u308b","__stack-auto-translation-8":"\u30e1\u30fc\u30eb\u3092\u8ffd\u52a0","__stack-auto-translation-80":"\u73fe\u5728\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u7d42\u4e86","__stack-auto-translation-81":"\u65b0\u3057\u3044\u30c1\u30fc\u30e0\u306e\u8868\u793a\u540d\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044","__stack-auto-translation-82":"\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b","__stack-auto-translation-83":"\u30e1\u30fc\u30eb\u306b\u8a18\u8f09\u3055\u308c\u305f\u30b3\u30fc\u30c9\u3092\u5165\u529b","__stack-auto-translation-84":"\u8a8d\u8a3c\u30a2\u30d7\u30ea\u304b\u30896\u6841\u306e\u30b3\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044","__stack-auto-translation-85":"\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b","__stack-auto-translation-86":"\u671f\u9650\u5207\u308c\u306e\u30de\u30b8\u30c3\u30af\u30ea\u30f3\u30af","__stack-auto-translation-87":"\u671f\u9650\u5207\u308c\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u30ea\u30bb\u30c3\u30c8\u30ea\u30f3\u30af","__stack-auto-translation-88":"\u30c1\u30fc\u30e0\u62db\u5f85\u30ea\u30f3\u30af\u306e\u671f\u9650\u5207\u308c","__stack-auto-translation-89":"\u30e1\u30fc\u30eb\u8a8d\u8a3c\u30ea\u30f3\u30af\u306e\u671f\u9650\u5207\u308c","__stack-auto-translation-9":"\u65b0\u3057\u3044\u30d1\u30b9\u30ad\u30fc\u3092\u8ffd\u52a0","__stack-auto-translation-90":"\u6709\u52b9\u671f\u9650","__stack-auto-translation-91":"\u6709\u52b9\u671f\u9650","__stack-auto-translation-92":"CLI\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8a8d\u8a3c\u306b\u5931\u6557\u3057\u307e\u3057\u305f\uff1a","__stack-auto-translation-93":"\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u63a5\u7d9a\u306b\u5931\u6557\u3057\u307e\u3057\u305f","__stack-auto-translation-94":"\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u30ea\u30bb\u30c3\u30c8\u306b\u5931\u6557\u3057\u307e\u3057\u305f","__stack-auto-translation-95":"\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u30ea\u30bb\u30c3\u30c8\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002\u65b0\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u30ea\u30bb\u30c3\u30c8\u30ea\u30f3\u30af\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066\u304f\u3060\u3055\u3044","__stack-auto-translation-96":"\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u304a\u5fd8\u308c\u3067\u3059\u304b\uff1f","__stack-auto-translation-97":"\u30db\u30fc\u30e0\u3078","__stack-auto-translation-98":"\u30db\u30fc\u30e0\u3078","__stack-auto-translation-99":"\u3053\u3061\u3089\u304c\u3042\u306a\u305f\u306eAPI\u30ad\u30fc\u3067\u3059\u3002"})),"ko-KR":new Map(an({"__stack-auto-translation-0":"-","__stack-auto-translation-1":"\uba85\ub839\uc904 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc774 \uacc4\uc815 \uc811\uadfc \uad8c\ud55c\uc744 \uc694\uccad\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uc544\ub798 \ubc84\ud2bc\uc744 \ud074\ub9ad\ud558\uc5ec \uc2b9\uc778\ud558\uc138\uc694.","__stack-auto-translation-10":"\uc774\uba54\uc77c \uc8fc\uc18c \ucd94\uac00","__stack-auto-translation-100":"\uc774 \ud0a4\ub97c \ub2e4\uc2dc \ubcfc \uc218 \uc5c6\ub2e4\ub294 \uac83\uc744 \uc774\ud574\ud588\uc2b5\ub2c8\ub2e4.","__stack-auto-translation-101":"\ud574\ub2f9 \uc774\uba54\uc77c \uc8fc\uc18c\uc758 \uc0ac\uc6a9\uc790\uac00 \uc874\uc7ac\ud558\uba74 \ubc1b\uc740\ud3b8\uc9c0\ud568\uc73c\ub85c \uc774\uba54\uc77c\uc744 \ubcf4\ub0c8\uc2b5\ub2c8\ub2e4. \uc2a4\ud338 \ud3f4\ub354\ub3
2c4 \ud655\uc778\ud574 \uc8fc\uc138\uc694.","__stack-auto-translation-102":"\uc790\ub3d9\uc73c\ub85c \ub9ac\ub2e4\uc774\ub809\ud2b8\ub418\uc9c0 \uc54a\ub294 \uacbd\uc6b0, ","__stack-auto-translation-103":"\ubb34\uc2dc","__stack-auto-translation-104":"\ub300\ub9ac \uc811\uc18d","__stack-auto-translation-105":"\uc798\ubabb\ub41c \ucf54\ub4dc\uc785\ub2c8\ub2e4. \ub2e4\uc2dc \uc2dc\ub3c4\ud574 \uc8fc\uc138\uc694.","__stack-auto-translation-106":"\uc798\ubabb\ub41c \ube44\ubc00\ubc88\ud638","__stack-auto-translation-107":"\uc798\ubabb\ub41c \ucf54\ub4dc","__stack-auto-translation-108":"\uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 \uc774\ubbf8\uc9c0","__stack-auto-translation-109":"\uc798\ubabb\ub41c \ub9e4\uc9c1 \ub9c1\ud06c","__stack-auto-translation-11":"\uc774\ubbf8 \uacc4\uc815\uc774 \uc788\uc73c\uc2e0\uac00\uc694?","__stack-auto-translation-110":"\uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 \ube44\ubc00\ubc88\ud638 \uc7ac\uc124\uc815 \ub9c1\ud06c","__stack-auto-translation-111":"\uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 \ud300 \ucd08\ub300 \ub9c1\ud06c","__stack-auto-translation-112":"\uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 TOTP \ucf54\ub4dc","__stack-auto-translation-113":"\uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 \uc778\uc99d \ub9c1\ud06c","__stack-auto-translation-114":"\uc774\uba54\uc77c\ub85c \ud300\uc5d0 \uc0ac\uc6a9\uc790 \ucd08\ub300\ud558\uae30","__stack-auto-translation-115":"\uba64\ubc84 \ucd08\ub300","__stack-auto-translation-116":"\uc0ac\uc6a9\uc790 \ucd08\ub300","__stack-auto-translation-117":"\uccad\uad6c\uc11c","__stack-auto-translation-118":"\uccad\uad6c\uc11c","__stack-auto-translation-119":"IP \uc8fc\uc18c","__stack-auto-translation-12":"\uae08\uc561","__stack-auto-translation-120":"\ucc38\uc5ec","__stack-auto-translation-121":"\ucd5c\uadfc \uc0ac\uc6a9","__stack-auto-translation-122":"\ub098\uac00\uae30","__stack-auto-translation-123":"\ud300 \ub098\uac00\uae30","__stack-auto-translation-124":"\ud300 \ub098\uac00\uae30","__stack-auto-translation-125":"\uc774 \ud300\uc5d0\uc11c \ub098\uac00\uace0 \ud300 \ud504\ub85c\ud544\uc744 \uc0ad\uc81c\ud569\ub2c8\ub2e4","__stack-auto-translation-126":"\uc704\uce58","__stack-auto-translation-127":"\ub9e4\uc9c1 \ub9c1\ud06c \uc0ac\uc6a9 \uc644\ub8cc","__stack-auto-translation-128":"\uad6c\ub3c5 \ubc0f \uccad\uad6c\uc11c\uc5d0 \uc0ac\uc6a9\ub418\ub294 \uae30\ubcf8 \uacb0\uc81c \uc218\ub2e8\uc744 \uad00\ub9ac\ud569\ub2c8\ub2e4.","__stack-auto-translation-129":"\uba64\ubc84","__stack-auto-translation-13":"\uc54c \uc218 \uc5c6\ub294 \uc624\ub958\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4","__stack-auto-translation-130":"\ub370\ubaa8 \ubaa8\ub4dc\uc5d0\uc11c\ub294 MFA \uad00\ub9ac\uac00 \ubd88\uac00\ub2a5\ud569\ub2c8\ub2e4.","__stack-auto-translation-131":"\uc778\uc99d \uc815\ubcf4 \ub204\ub77d","__stack-auto-translation-132":"\ub2e4\uc911 \uc778\uc99d","__stack-auto-translation-133":"\ub2e4\uc911 \uc778\uc99d","__stack-auto-translation-134":"\ud604\uc7ac \ub2e4\uc911 \uc778\uc99d\uc774 \ube44\ud65c\uc131\ud654\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4.","__stack-auto-translation-135":"\ub2e4\uc911 \uc778\uc99d\uc774 \ud604\uc7ac \ud65c\uc131\ud654\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4.","__stack-auto-translation-136":"\ub0b4 \ud504\ub85c\ud544","__stack-auto-translation-137":"\uc774\ub984","__stack-auto-translation-138":"\uc5c6\uc74c","__stack-auto-translation-139":"\uc0c8 \uacc4\uc815 \ub4f1\ub85d\uc774 \ud5c8\uc6a9\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4","__stack-auto-translation-14":"API \ud0a4","__stack-auto-translation-140":"\uc0c8 \ube44\ubc00\ubc88\ud638","__stack-auto-translation-141":"\uc0c8 \ube44\ubc00\ubc88\ud638","__stack-auto-translation-142":"\ud65c\uc131 \uc138\uc158 \uc5c6\uc74c","__stack-auto-translation-143":"\uc778\uc99d \ubc29\ubc95\uc774 \ud65c\uc131\ud654\ub418\uc9c0 \uc54a\uc74c.","__stack-auto-translation-144":"\uae30\ubcf8 \uacb0\uc81c \uc218\ub2e8 \uc5c6\uc74c","__stack-auto-translation-145":"\ud45c\uc2dc \uc774\ub984\uc774 \uc124\uc815\ub418\uc9c0 \uc54a\uc74c","__stack-auto-translation-146":"\uc774 \uad6c\ub3c5\uc5d0 \uc0ac\uc6a9 \uac00\ub2a5\ud55c \ub2e4\ub978 \ud50c\ub79c\uc774 \uc5c6\uc2b5\ub2c8\ub2e4.","__stack-auto-translation-147":"\ub300\uae30 \uc911\uc778 \ucd08\ub300 \uc5c6\uc74c","__stack-auto-translation-148":"\ud300 \uc5c6\uc74c","__stack-auto-translation-149":"\uc544\uc9c1 \ud300 \uc5c6\uc74c","__stack-auto-translation-15":"API \ud0a4","__stack-auto-translation-150":"\ub85c\uadf8\uc778\ub418\uc9c0 \uc54a\uc74c","__stack-auto-translation-151":"\uc54c\ub9bc","__stack-auto-translation-152":"OAuth \uacf5\uae09\uc790 \uc561\uc138\uc2a4 \uac70\ubd80\ub428","__stack-auto-translation-153":"\uc774\uc804 \ube44\ubc00\ubc88\ud638","__stack-auto-translation-154":"\uc77c\ud68c\uc6a9 \ube44\ubc00\ubc88\ud638","__stack-auto-translation-155":"\uc77c\ud68c\uc131 \uad6c\ub9e4","__stack-auto-translation-156":"\ubbf8\uacb0","__stack-auto-translation-157":"\ub610\ub294 \ub2e4\uc74c\uc73c\ub85c \uacc4\uc18d","__stack-auto-translation-158":"\ub2e4\ub978 \uc138\uc158","__stack-auto-translation-159":"\ub2e4\ub978 \ud300","__stack-auto-translation-16":"API \ud0a4\ub294 \uacc4\uc815\uc5d0 \ud504\ub85c\uadf8\ub798\ubc0d \ubc29\uc2dd\uc73c\ub85c \uc811\uadfc\ud560 \uc218 \uc788\ub294 \uad8c\ud55c\uc744 \ubd80\uc5ec\ud569\ub2c8\ub2e4.","__stack-auto-translation-160":"\ub370\ubaa8 \ubaa8\ub4dc\uc5d0\uc11c\ub294 OTP \uad00\ub9ac\ub97c \uc0ac\uc6a9\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4.","__stack-auto-translation-161":"OTP \ub85c\uadf8\uc778","__stack-auto-translation-162":"OTP \ub85c\uadf8\uc778\uc774 \ud65c\uc131\ud654\ub418\uc5b4 \uc788\uc73c\uba70 \ud604\uc7ac \uc720\uc77c\ud55c \ub85c\uadf8\uc778 \ubc29\ubc95\uc774\ubbc0\ub85c \ube44\ud65c\uc131\ud654\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4","__stack-auto-translation-163":"OTP/\ub9e4\uc9c1 \ub9c1\ud06c \ub85c\uadf8\uc778\uc774 \ud604\uc7ac \ud65c\uc131\ud654\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4.","__stack-auto-translation-164":"\ubbf8\ucc98\ub9ac\ub41c \ucd08\ub300","__stack-auto-translation-165":"\uc774 \ud300\uc5d0\uc11c \uc0ac\uc6a9\uc790 \ud45c\uc2dc \uc774\ub984 \ub36e\uc5b4\uc4f0\uae30","__stack-auto-translation-166":"\uacb0\uc81c \uc644\ub8cc","__stack-auto-translation-167":"\ud328\uc2a4\ud0a4","__stack-auto-translation-168":"\ub370\ubaa8 \ubaa8\ub4dc\uc5d0\uc11c\ub294 \ud328\uc2a4\ud0a4 \uad00\ub9ac\ub97c \uc0ac\uc6a9\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4.","__stack-auto-translation-169":"\ud328\uc2a4\ud0a4 \ub4f1\ub85d\ub428","__stack-auto-translation-17":"API \ud0a4\ub294 \ud300\uc5d0 \ud504\ub85c\uadf8\ub798\ubc0d \ubc29\uc2dd\uc758 \uc811\uadfc \uad8c\ud55c\uc744 \ubd80\uc5ec\ud569\ub2c8\ub2e4.","__stack-auto-translation-170":"\ud328\uc2a4\ud0a4 \ub85c\uadf8\uc778\uc774 \ud65c\uc131\ud654\ub418\uc5b4 \uc788\uc73c\uba70 \ud604\uc7ac \uc720\uc77c\ud55c \ub85c\uadf8\uc778 \ubc29\ubc95\uc774\ubbc0\ub85c \ube44\ud65c\uc131\ud654\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4","__stack-auto-translation-171":"\ube44\ubc00\ubc88\ud638","__stack-auto-translation-172":"\ube44\ubc00\ubc88\ud638 \uad00\ub9ac\ub294 \ub370\ubaa8 \ubaa8\ub4dc\uc5d0\uc11c \uc0ac\uc6a9\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4.","__stack-auto-translation-173":"\ube44\ubc00\ubc88\ud638\uac00 \uc131\uacf5\uc801\uc73c\ub85c \uc7ac\uc124\uc815\ub418\uc5c8\uc2b5\ub2c8\ub2e4!","__stack-auto-translation-174":"\ube44\ubc00\ubc88\ud638\uac00 \uc77c\uce58\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4","__stack-auto-translation-175":"\uacb0\uc81c \uc218\ub2e8","__stack-auto-translation-176":"\uacb0\uc81c","__stack-auto-translation-177":"\uacc4\uc815\uacfc \uad00\ub828\ub41c \ubaa8\ub4e0 \ub370\uc774\ud130\ub97c \uc601\uad6c\uc801\uc73c\ub85c \uc0ad\uc81c","__stack-auto-translation-178":"\uac1c\uc778","__stack-auto-translation-179":"\uacc4\uc815 \uc124\uc815\uc744 \uc644\ub8cc\ud558\ub824\uba74 \uc774\uba54\uc77c \uc8fc\uc18c\ub97c \ucd94\uac00\ud574 \uc8fc\uc138\uc694. \uc778\uc99d \uc774\uba54\uc77c\uc744 \ubcf4\ub0b4\ub4dc\ub9bd\ub2c8\ub2e4.","__stack-auto-translation-18":"\uacc4\uc815\uc744 \uc0ad\uc81c\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c? \uc774 \uc791\uc5c5\uc740 \ub418\ub3cc\ub9b4 \uc218 \uc5c6\uc73c\uba70 \ubaa8\ub4e0 \uad00\ub828 \ub370\uc774\ud130\uac00 \uc0ad\uc81c\ub429\ub2c8\ub2e4.","__stack-auto-translation-180":"\uc62c\ubc14\ub978 \ub9c1\ud06c\uc778\uc9c0 \ud655\uc778\ud574 \uc8fc\uc138\uc694. \ubb38\uc81c\uac00 \uacc4\uc18d\ub418\uba74 \uace0\uac1d \uc9c0\uc6d0\uc5d0 \ubb38\uc758\ud558\uc138\uc694.","__stack-auto-translation-181":"\uc774\uba54\uc77c \ubc1b\uc740 \ud3b8\uc9c0\ud568\uc744 \ud655\uc778\ud574 \uc8fc\uc138\uc694","__stack-auto-translation-182":"\ud300\uc5d0 \ucc38\uc5ec\ud558\uae30 \uc804\uc5d0 \uacc4\uc815 \uc124\uc815\uc744 \uc644\ub8cc\ud574 \uc8fc\uc138\uc694.","__stack-auto-translation-183":"\uc62c\ubc14\ub978 \ube44\ubc00\ubc88\ud638 \uc7ac\uc124\uc815 \ub9c1\ud06c\uc778\uc9c0 \ub2e4\uc2dc \ud55c \ubc88 \ud655\uc778\ud574 \uc8fc\uc138\uc694.","__stack-auto-translation-184":"\uc62c\ubc14\ub978 \ud300 \ucd08\ub300 \ub9c1\ud06c\uc778\uc9c0 \ub2e4\uc2dc \ud655\uc778\ud574 \uc8fc\uc138\uc694.","__stack-auto-translation-185":"\ud300 \uc774\ub984\uc744 \uc785\ub825\ud574 \uc8fc\uc138\uc694","__stack-auto-translation-186":"\uc720\ud6a8\ud55c \uc774\uba54\uc77c\uc744 \uc785\ub825\ud574 \uc8fc\uc138\uc694","__stack-auto-translation-187":"\uc720\ud6a8\ud55c \uc774\uba54\uc77c \uc8fc\uc18c\ub97c \uc785\ub825\ud574 \uc8fc\uc138\uc694","__stack-auto-translation-188":"\uc774\uba54\uc77c \uc8fc\uc18c\ub97c \uc785\ub825\ud574 \uc8fc\uc138\uc694","__stack-auto-translation-189":"\uc774\uba54\uc77c\uc744 \uc785\ub825\ud574 \uc8fc\uc138\uc694","__stack-auto-translation-19":"OTP \ub85c\uadf8\uc778\uc744 \ube44\ud65c\uc131\ud654\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c? \ub354 \uc774\uc0c1 \uc774\uba54\uc77c\ub9cc\uc73c\ub85c \ub85c\uadf8\uc778\ud560 \uc218 \uc5c6\uac8c \ub429\ub2c8\ub2e4.","__stack-auto-translation-190":"\uc774\uc804 \ube44\ubc00\ubc88\ud638\ub97c \uc785\ub825\ud574 \uc8fc\uc138\uc694","__stack-auto-translation-191":"\ube44\ubc00\ubc88\ud638\ub97c \uc785\ub825\ud574 \uc8fc\uc138\uc694","__stack-auto-translation-192":"\ube44\ubc00\ubc88\ud638\ub97c \ub2e4\uc2dc \uc785\ub825\ud574 \uc8fc\uc138\uc694","__stack-auto-translation-193":"\ub2e4\uc2dc \uc2dc\ub3c4\ud574 \ubcf4\uc2dc\uace0 \ubb38\uc81c\uac00 \uacc4\uc18d\ub418\uba74 \uc9c0\uc6d0\ud300\uc5d0 \ubb38\uc758\ud558\uc138\uc694.","__stack-auto-translation-194":"\uc774\uba54\uc77c \uc8fc\uc18c\ub97c \uc778\uc99d\ud574 \uc8fc\uc138\uc694 ","__stack-auto-translation-195":"\uba3c\uc800 \uc774\uba54\uc77c\uc744 \uc778\uc99d\ud574 \uc8fc\uc138\uc694","__stack-auto-translation-196":"\uc8fc\uc694","__stack-auto-translation-197":"Pro","__stack-auto-translation-198":"\ud504\ub85c\ud544 \uc774\ubbf8\uc9c0","__stack-auto-translation-199":"\ud328\uc2a4\ud0a4 \ub4f1\ub85d","__stack-auto-translation-2":"\uacc4\uc815 \uc124\uc815","__stack-auto-translation-20":"\ud328\uc2a4\ud0a4 \ub85c\uadf8\uc778\uc744 \ube44\ud65c\uc131\ud654\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c? \ub354 \uc774\uc0c1 \ud328\uc2a4\ud0a4\ub85c \ub85c\uadf8\uc778\ud560 \uc218 \uc5c6\uac8c \ub429\ub2c8\ub2e4.","__stack-auto-translation-200":"\uc0ad\uc81c","__stack-auto-translation-201":"\uac31\uc2e0\uc77c","__stack-auto-translation-202":"\uc0c8 \ube44\ubc00\ubc88\ud638 \ud655\uc778","__stack-auto-translation-203":"\uc0c8 \ube44\ubc00\ubc88\ud638 \ud655\uc778","__stack-auto-translation-204":"\ube44\ubc00\ubc88\ud638 \ud655\uc778","__stack-auto-translation-205":"\uc778\uc99d \uc774\uba54\uc77c \uc7ac\uc804\uc1a1","__stack-auto-translation-206":"\ube44\ubc00\ubc88\ud638 \uc7ac\uc124\uc815","__stack-auto-translation-207":"\ube44\ubc00\ubc88\ud638 \uc7ac\uc124\uc815","__stack-auto-translation-208":"\uacfc\uac70 \uccad\uad6c\uc11c \ubc0f \uc601\uc218\uc99d\uc744 \ud655\uc778\ud558\uc138\uc694.","__stack-auto-translation-209":"\ucde8\uc18c","__stack-auto-translation-21":"\uc815\ub9d0\ub85c \ud300\uc744 \ub098\uac00\uc2dc\uaca0\uc2b5\ub2c8\uae4c?","__stack-auto-translation-210":"\ub2e4\ub978 \ubaa8\ub4e0 \uc138\uc158 \ucde8\uc18c","__stack-auto-translation-211":"\uc800\uc7a5","__stack-auto-translation-212":"\uc778\uc99d \uc571\uc73c\ub85c \uc774 QR \ucf54\ub4dc\ub97c \uc2a4\uce94\ud558\uc138\uc694:","__stack-auto-translation-213":"\ube44\ubc00 API \ud0a4","__stack-auto-translation-214":"\ub3d9\uc77c\ud55c \uc81c\ud488 \ub77c\uc778\uc5d0\uc11c \uc0c8 \ud50c\ub79c\uc744 \uc120\ud0dd\ud558\uc138\uc694.","__stack-auto-translation-215":"\uc774\uba54\uc77c \ubcf4\ub0b4\uae30","__stack-auto-translation-216":"\uc774\uba54\uc77c \ubcf4\ub0b4\uae30","__stack-auto-translation-217":"\uc778\uc99d \uc774\uba54\uc77c \ubcf4\ub0b4\uae30","__stack-auto-translation-218":"\uc138\uc158","__stack-auto-translation-219":"\uacc4\uc815\uc5d0 \ube44\ubc00\ubc88\ud638 \uc124\uc815\ud558\uae30","__stack-auto-translation-22":"\uc778\uc99d \uc2e4\ud328","__stack-auto-translation-220":"\uc8fc\uc694\ub85c \uc124\uc815","__stack-auto-translation-221":"\ube44\ubc00\ubc88\ud638 \uc124\uc815","__stack-auto-translation-222":"\ube44\ubc00\ubc88\ud638 \uc124\uc815","__stack-auto-translation-223":"\uc124\uc815","__stack-auto-translation-224":"\ub85c\uadf8\uc778","__stack-auto-translation-225":"\ub85c\uadf8\uc778","__stack-auto-translation-226":"\ub2e4\uc2dc \ub85c\uadf8\uc778","__stack-auto-translation-227":"\ud300\uc5d0 \ucc38\uc5ec\ud558\ub824\uba74 \ub85c\uadf8\uc778\ud558\uac70\ub098 \uacc4\uc815\uc744 \uc0dd\uc131\ud558\uc138\uc694.","__stack-auto-translation-228":"\uacc4\uc815\uc5d0 \ub85c\uadf8\uc778","__stack-auto-translation-229":"\ud328\uc2a4\ud0a4\ub85c \ub85c\uadf8\uc778","__stack-auto-translation-23":"\uc2b9\uc778","__stack-auto-translation-230":"{provider}(\uc73c)\ub85c \ub85c\uadf8\uc778","__stack-auto-translation-231":"\ub85c\uadf8\uc544\uc6c3","__stack-auto-translation-232":"\uac00\uc785\ud558\uae30","__stack-auto-translation-233":"\uac00\uc785\ud558\uae30","__stack-auto-translation-234":"\ud604\uc7ac \uc2e0\uaddc \uc0ac\uc6a9\uc790 \uac00\uc785\uc774 \ud65c\uc131\ud654\ub418\uc5b4 \uc788\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.","__stack-auto-translation-235":"\ud328\uc2a4\ud0a4\ub85c \uac00\uc785\ud558\uae30","__stack-auto-translation-236":"{provider}(\uc73c)\ub85c \uac00\uc785","__stack-auto-translation-237":"\ub85c\uadf8\uc778 \uc131\uacf5!","__stack-auto-translation-238":"{time}\uc5d0 \ub85c\uadf8\uc778\ub428","__stack-auto-translation-239":"OAuth \ucf5c\ubc31\uc744 \ucc98\ub9ac\ud558\ub294 \ub3d9\uc548 \ubb38\uc81c\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4:","__stack-auto-translation-24":"CLI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uc778\uc99d","__stack-auto-translation-240":"\uc0c1\ud0dc","__stack-auto-translation-241":"\ub85c\uadf8\uc778\uc5d0 \uc0ac\uc6a9 \uc911\uc9c0","__stack-auto-translation-242":"\uad6c\ub3c5","__stack-auto-translation-243":"\ud50c\ub79c \ubcc0\uacbd","__stack-auto-translation-244":"\ub370\ubaa8 \ubaa8\ub4dc\uc5d0\uc11c\ub294 \ud300 \uc0dd\uc131\uc774 \ube44\ud65c\uc131\ud654\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4","__stack-auto-translation-245":"\ud300 \uc0dd\uc131\uc774 \ud65c\uc131\ud654\ub418\uc5b4 \uc788\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4","__stack-auto-translation-246":"\ud300 \ud45c\uc2dc \uc774\ub984","__stack-auto-translation-247":"\ud300 \ucd08\ub300","__stack-auto-translation-248":"\ud300 \ud504\ub85c\ud544 \uc774\ubbf8\uc9c0","__stack-auto-translation-249":"\ud300 \uc0ac\uc6a9\uc790 \uc774\ub984","__stack-auto-translation-25":"\uc778\uc99d \uc911...","__stack-auto-translation-250":"\ud300","__stack-auto-translation-251":"CLI \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc774 \uc131\uacf5\uc801\uc73c\ub85c \uc2b9\uc778\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \uc774 \ucc3d\uc744 \ub2eb\uace0 \uba85\ub839\uc904\ub85c \ub3cc\uc544\uac00\uc138\uc694.","__stack-auto-translation-252":"\ub9e4\uc9c1 \ub9c1\ud06c\uac00 \uc774\ubbf8 \uc0ac\uc6a9\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \ub9c1\ud06c\ub294 \ud55c \ubc88\ub9cc \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub2e4\uc2dc \ub85c\uadf8\uc778\ud574\uc57c \ud558\ub294 \uacbd\uc6b0 \uc0c8 \ub9e4\uc9c1 \ub9c1\ud06c\ub97c \uc694\uccad\ud558\uc138\uc694.","__stack-auto-translation-253":"\ub85c\uadf8\uc778 \uc791\uc5c5\uc774 \ucde8\uc18c\ub418\uc5c8\uac70\ub098 \uac70\ubd80\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \ub2e4\uc2dc \uc2dc\ub3c4\ud574 \uc8fc\uc138\uc694.","__stack-auto-translation-254":"\uc0ac\uc6a9\uc790\ub294 \uc774\ubbf8 \ub2e4\ub978 OAuth \uacc4\uc815\uc5d0 \uc5f0\uacb0\ub418\uc5b4 \uc788\uc2b5\ub2c
28\ub2e4. OAuth \uc81c\uacf5\uc790 \ud398\uc774\uc9c0\uc5d0\uc11c \uc798\ubabb\ub41c \uacc4\uc815\uc744 \uc120\ud0dd\ud558\uc168\ub098\uc694?","__stack-auto-translation-255":"\uadf8\ub7f0 \ub2e4\uc74c 6\uc790\ub9ac MFA \ucf54\ub4dc\ub97c \uc785\ub825\ud558\uc138\uc694:","__stack-auto-translation-256":"\ud604\uc7ac \ub85c\uadf8\uc778\ub41c \uae30\uae30\ub4e4\uc785\ub2c8\ub2e4. \uc138\uc158\uc744 \uc885\ub8cc\ud558\ub824\uba74 \uc811\uadfc \uad8c\ud55c\uc744 \ud574\uc81c\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.","__stack-auto-translation-257":"\uc774 \uacc4\uc815\uc740 \uc774\ubbf8 \ub2e4\ub978 \uc0ac\uc6a9\uc790\uc640 \uc5f0\uacb0\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. \ub2e4\ub978 \uacc4\uc815\uc744 \uc5f0\uacb0\ud574 \uc8fc\uc138\uc694.","__stack-auto-translation-258":"\uc774 \uc774\uba54\uc77c\uc740 \uc774\ubbf8 \ub2e4\ub978 \uc0ac\uc6a9\uc790\uc758 \ub85c\uadf8\uc778\uc5d0 \uc0ac\uc6a9\ub418\uace0 \uc788\uc2b5\ub2c8\ub2e4.","__stack-auto-translation-259":"\uc774\uac83\uc740 \ud45c\uc2dc \uc774\ub984\uc774\uba70 \uc778\uc99d\uc5d0 \uc0ac\uc6a9\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4","__stack-auto-translation-26":"\ucde8\uc18c","__stack-auto-translation-260":"\uc774\uac83\uc740 Stack\uc758 \uc624\ub958\uc77c \uac00\ub2a5\uc131\uc774 \ub192\uc2b5\ub2c8\ub2e4. \uc2e0\uace0\ud574 \uc8fc\uc138\uc694.","__stack-auto-translation-261":"\uc774 \ube44\ubc00\ubc88\ud638 \uc7ac\uc124\uc815 \ub9c1\ud06c\ub294 \uc774\ubbf8 \uc0ac\uc6a9\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \ube44\ubc00\ubc88\ud638\ub97c \ub2e4\uc2dc \uc7ac\uc124\uc815\ud574\uc57c \ud558\ub294 \uacbd\uc6b0, \ub85c\uadf8\uc778 \ud398\uc774\uc9c0\uc5d0\uc11c \uc0c8 \ube44\ubc00\ubc88\ud638 \uc7ac\uc124\uc815 \ub9c1\ud06c\ub97c \uc694\uccad\ud558\uc138\uc694.","__stack-auto-translation-262":"\uc774 \ud300 \ucd08\ub300 \ub9c1\ud06c\ub294 \uc774\ubbf8 \uc0ac\uc6a9\ub418\uc5c8\uc2b5\ub2c8\ub2e4.","__stack-auto-translation-263":"OTP \ub85c\uadf8\uc778\uc744 \ud65c\uc131\ud654\ud558\ub824\uba74 \uc778\uc99d\ub41c \ub85c\uadf8\uc778 \uc774\uba54\uc77c\uc744 \ucd94\uac00\ud558\uc138\uc694.","__stack-auto-translation-264":"\ud328\uc2a4\ud0a4 \ub85c\uadf8\uc778\uc744 \ud65c\uc131\ud654\ud558\ub824\uba74 \uc778\uc99d\ub41c \ub85c\uadf8\uc778 \uc774\uba54\uc77c\uc744 \ucd94\uac00\ud558\uc138\uc694.","__stack-auto-translation-265":"\ube44\ubc00\ubc88\ud638\ub97c \uc124\uc815\ud558\ub824\uba74 \ub85c\uadf8\uc778 \uc774\uba54\uc77c\uc744 \ucd94\uac00\ud558\uc138\uc694.","__stack-auto-translation-266":"\ud14c\ub9c8 \uc804\ud658","__stack-auto-translation-267":"TOTP \ub2e4\uc911 \uc778\uc99d QR \ucf54\ub4dc","__stack-auto-translation-268":"\ub2e4\uc2dc \uc2dc\ub3c4","__stack-auto-translation-269":"\uc0ac\uc6a9 \ubd88\uac00","__stack-auto-translation-27":"\uad6c\ub3c5 \ucde8\uc18c","__stack-auto-translation-270":"\ud68c\uc218\ubd88\uac00","__stack-auto-translation-271":"\uc54c \uc218 \uc5c6\uc74c","__stack-auto-translation-272":"\ubbf8\uc778\uc99d","__stack-auto-translation-273":"\ube44\ubc00\ubc88\ud638 \ubcc0\uacbd","__stack-auto-translation-274":"\ube44\ubc00\ubc88\ud638 \ubcc0\uacbd","__stack-auto-translation-275":"\uacb0\uc81c \uc218\ub2e8 \ubcc0\uacbd","__stack-auto-translation-276":"\ube44\ubc00\ubc88\ud638 \uc5c5\ub370\uc774\ud2b8","__stack-auto-translation-277":"\ud300\uc744 \uc704\ud55c \uc774\ubbf8\uc9c0 \uc5c5\ub85c\ub4dc","__stack-auto-translation-278":"\uc544\ubc14\ud0c0\ub85c \uc0ac\uc6a9\ud560 \uc774\ubbf8\uc9c0 \uc5c5\ub85c\ub4dc","__stack-auto-translation-279":"\ub85c\uadf8\uc778\uc5d0 \uc0ac\uc6a9","__stack-auto-translation-28":"\ucde8\uc18c\ud558\uba74 \uc774 \uad6c\ub3c5\uc758 \ud5a5\ud6c4 \uac31\uc2e0\uc774 \uc911\ub2e8\ub429\ub2c8\ub2e4.","__stack-auto-translation-280":"\ub85c\uadf8\uc778\uc5d0 \uc0ac\uc6a9\ub428","__stack-auto-translation-281":"\uc0ac\uc6a9\ub41c \ube44\ubc00\ubc88\ud638 \uc7ac\uc124\uc815 \ub9c1\ud06c","__stack-auto-translation-282":"\uc0ac\uc6a9\ub41c \ud300 \ucd08\ub300 \ub9c1\ud06c","__stack-auto-translation-283":"\uc0ac\uc6a9\uc790","__stack-auto-translation-284":"\uc0ac\uc6a9\uc790 \uc774\ub984","__stack-auto-translation-285":"\uc778\uc99d \uc2e4\ud328","__stack-auto-translation-286":"\uc778\uc99d\ub428! \ub9ac\ub514\ub809\uc158 \uc911...","__stack-auto-translation-287":"\uc778\uc99d","__stack-auto-translation-288":"\uc778\uc99d \uc911...","__stack-auto-translation-289":"\ubcf4\uae30","__stack-auto-translation-29":"\ubcc0\uacbd","__stack-auto-translation-290":"\ud65c\uc131 \ud50c\ub79c \ubc0f \uad6c\ub9e4 \ub0b4\uc5ed\uc744 \ud655\uc778\ud558\uc138\uc694.","__stack-auto-translation-291":"\ubb34\ud6a8","__stack-auto-translation-292":"\uacbd\uace0: \uba85\ub839\uc904 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc2e0\ub8b0\ud560 \uc218 \uc788\ub294\uc9c0 \ud655\uc778\ud558\uc138\uc694. \ud574\ub2f9 \uc571\uc774 \uacc4\uc815\uc5d0 \uc811\uadfc\ud560 \uc218 \uc788\uac8c \ub429\ub2c8\ub2e4. \uc774 \uc694\uccad\uc744 \uc2dc\uc791\ud558\uc9c0 \uc54a\uc558\ub2e4\uba74 \uc774 \ud398\u
2c774\uc9c0\ub97c \ub2eb\uace0 \ubb34\uc2dc\ud558\uc138\uc694. \ub2f9\uc0ac\ub294 \uc808\ub300 \uc774 \ub9c1\ud06c\ub97c \uc774\uba54\uc77c\uc774\ub098 \ub2e4\ub978 \ubc29\ubc95\uc73c\ub85c \ubcf4\ub0b4\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.","__stack-auto-translation-293":"\uc774\ubbf8 \ub85c\uadf8\uc778\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4","__stack-auto-translation-294":"\ud604\uc7ac \ub85c\uadf8\uc778\ub418\uc5b4 \uc788\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.","__stack-auto-translation-295":"\ub9c8\uc9c0\ub9c9 \ub85c\uadf8\uc778 \uc774\uba54\uc77c\uc744 \uc0ad\uc81c\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4","__stack-auto-translation-296":"\ud604\uc7ac \uc138\uc158\uc744 \ud574\uc81c\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4","__stack-auto-translation-297":"\uc774\uba54\uc77c\uc774 \uc778\uc99d\ub418\uc5c8\uc2b5\ub2c8\ub2e4!","__stack-auto-translation-298":"\uc544\uc9c1 \uacc4\uc815 \uc124\uc815\uc744 \uc644\ub8cc\ud558\uc9c0 \uc54a\uc558\uc2b5\ub2c8\ub2e4. \uc624\ub958\ub77c\uace0 \uc0dd\uac01\ub418\uba74 \uc9c0\uc6d0\ud300\uc5d0 \ubb38\uc758\ud574 \uc8fc\uc138\uc694.","__stack-auto-translation-299":"\uc774\uba54\uc77c \uc8fc\uc18c","__stack-auto-translation-3":"\uacc4\uc815 \uc124\uc815","__stack-auto-translation-30":"\ud50c\ub79c \ubcc0\uacbd","__stack-auto-translation-300":"\uc774\uba54\uc77c \uc778\uc99d \ub9c1\ud06c\uac00 \ub9cc\ub8cc\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \uacc4\uc815 \uc124\uc815\uc5d0\uc11c \uc0c8 \uc778\uc99d \ub9c1\ud06c\ub97c \uc694\uccad\ud574 \uc8fc\uc138\uc694.","__stack-auto-translation-301":"\ub9e4\uc9c1 \ub9c1\ud06c\uac00 \ub9cc\ub8cc\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \ub85c\uadf8\uc778\uc774 \ud544\uc694\ud558\uc2dc\uba74 \uc0c8 \ub9e4\uc9c1 \ub9c1\ud06c\ub97c \uc694\uccad\ud574 \uc8fc\uc138\uc694.","__stack-auto-translation-302":"\ube44\ubc00\ubc88\ud638\uac00 \uc7ac\uc124\uc815\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \uc774\uc81c \uc0c8 \ube44\ubc00\ubc88\ud638\ub85c \ub85c\uadf8\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.","__stack-auto-translation-303":"\ube44\ubc00\ubc88\ud638 \uc7ac\uc124\uc815 \ub9c1\ud06c\uac00 \ub9cc\ub8cc\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \ub85c\uadf8\uc778 \ud398\uc774\uc9c0\uc5d0\uc11c \uc0c8 \ube44\ubc00\ubc88\ud638 \uc7ac\uc124\uc815 \ub9c1\ud06c\ub97c \uc694\uccad\ud574 \uc8fc\uc138\uc694.","__stack-auto-translation-304":"\ud300 \ucd08\ub300 \ub9c1\ud06c\uac00 \ub9cc\ub8cc\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \uc0c8\ub85c\uc6b4 \ud300 \ucd08\ub300 \ub9c1\ud06c\ub97c \uc694\uccad\ud574 \uc8fc\uc138\uc694","__stack-auto-translation-31":"\ud300\uc758 \ud45c\uc2dc \uc774\ub984 \ubcc0\uacbd","__stack-auto-translation-32":"\ud50c\ub79c \uc120\ud0dd","__stack-auto-translation-33":"\uc218\uc2e0\ud560 \uc774\uba54\uc77c \uc120\ud0dd","__stack-auto-translation-34":"CLI \uc778\uc99d \uc131\uacf5","__stack-auto-translation-35":"\uc5ec\uae30\ub97c \ud074\ub9ad","__stack-auto-translation-36":"\uc544\ub798 \ubc84\ud2bc\uc744 \ud074\ub9ad\ud558\uc5ec \uc778\uc99d \ub9c1\ud06c\ub97c \ub2e4\uc2dc \ubcf4\ub0b4\uc138\uc694.","__stack-auto-translation-37":"\ub2eb\uae30","__stack-auto-translation-38":"\uc124\uc815 \uc644\ub8cc","__stack-auto-translation-39":"\uacc4\uc815 \uc124\uc815 \uc644\ub8cc\ud558\uae30","__stack-auto-translation-4":"\ud65c\uc131 \ud50c\ub79c","__stack-auto-translation-40":"\ud655\uc778","__stack-auto-translation-41":"\uacc4\uc18d","__stack-auto-translation-42":"\uc548\uc804\ud55c \uacf3\uc5d0 \ubcf5\uc0ac\ud558\uc138\uc694. \ub2e4\uc2dc \ubcfc \uc218 \uc5c6\uc2b5\ub2c8\ub2e4.","__stack-auto-translation-43":"\uc774\ubbf8\uc9c0\ub97c \uc790\ub97c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4.","__stack-auto-translation-44":"\uc0dd\uc131","__stack-auto-translation-45":"\uc0c8 \uacc4\uc815 \ub9cc\ub4e4\uae30","__stack-auto-translation-46":"\ud300 \ub9cc\ub4e4\uae30","__stack-auto-translation-47":"\ud300 \ub9cc\ub4e4\uae30","__stack-auto-translation-48":"API \ud0a4 \uc0dd\uc131","__stack-auto-translation-49":"\ud06c\ub808\ub527 \ud329","__stack-auto-translation-5":"\ud65c\uc131 \uc138\uc158","__stack-auto-translation-50":"\ud604\uc7ac \uc138\uc158","__stack-auto-translation-51":"\ud604\uc7ac \ud300","__stack-auto-translation-52":"\uc704\ud5d8 \uad6c\uc5ed","__stack-auto-translation-53":"\ub0a0\uc9dc","__stack-auto-translation-54":"\uacc4\uc815 \uc0ad\uc81c","__stack-auto-translation-55":"\uacc4\uc815 \uc0ad\uc81c","__stack-auto-translation-56":"\ud328\uc2a4\ud0a4 \uc0ad\uc81c","__stack-auto-translation-57":"\uc124\uba85","__stack-auto-translation-58":"\uc124\uba85\uc774 \ud544\uc694\ud569\ub2c8\ub2e4","__stack-auto-translation-59":"\ube44\ud65c\uc131\ud654","__stack-auto-translation-6":"\ucd94\uac00","__stack-auto-translation-60":"MFA \ube44\ud65c\uc131\ud654","__stack-auto-translation-61":"OTP \ube44\ud65c\uc131\ud654","__stack-auto-translation-62":"\ud45c\uc2dc \uc774\ub984","__stack-auto-translation-63":"\ub85c\uadf8\uc778\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?","__stack-auto-translation-64":"\uc774\uba54\uc77c\uc744 \uc778\uc99d\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?","__stack-auto-translation-65":"\uacc4\uc815\uc774 \uc5c6\uc73c\uc2e0\uac00\uc694?","__stack-auto-translation-66":"\uc7ac\uc124\uc815\uc774 \ud544\uc694 \uc5c6\ub098\uc694?","__stack-auto-translation-67":"\ucd08\uc548","__stack-auto-translation-68":"\uc608: \uac1c\ubc1c, \ud504\ub85c\ub355\uc158, CI/CD","__stack-auto-translation-69":"\uc774\uba54\uc77c","__stack-auto-translation-7":"\uc694\uae08\uc81c\ub97c \ubcc0\uacbd\ud558\uae30 \uc804\uc5d0 \uacb0\uc81c \uc218\ub2e8\uc744 \ucd94\uac00\ud558\uc138\uc694.","__stack-auto-translation-70":"\uc774\uba54\uc77c & \ube44\ubc00\ubc88\ud638","__stack-auto-translation-71":"\uc774\uba54\uc77c\uc774 \uc774\ubbf8 \uc874\uc7ac\ud569\ub2c8\ub2e4","__stack-auto-translation-72":"\uc774\uba54\uc77c \ud544\uc218","__stack-auto-translation-73":"\ub370\ubaa8 \ubaa8\ub4dc\uc5d0\uc11c\ub294 \uc774\uba54\uc77c \uad00\ub9ac\ub97c \uc0ac\uc6a9\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4.","__stack-auto-translation-74":"\uc774\uba54\uc77c \uc804\uc1a1 \uc644\ub8cc!","__stack-auto-translation-75":"\uc774\uba54\uc77c","__stack-auto-translation-76":"\uc774\uba54\uc77c \ubc0f \uc778\uc99d","__stack-auto-translation-77":"MFA \ud65c\uc131\ud654","__stack-auto-translation-78":"OTP \ud65c\uc131\ud654","__stack-auto-translation-79":"\ub85c\uadf8\uc778 \uc774\uba54\uc77c\ub85c \uc804\uc1a1\ub418\ub294 \ub9e4\uc9c1 \ub9c1\ud06c \ub610\ub294 OTP\ub85c \ub85c\uadf8\uc778 \ud65c\uc131\ud654.","__stack-auto-translation-8":"\uc774\uba54\uc77c \ucd94\uac00","__stack-auto-translation-80":"\ud604\uc7ac \uc138\uc158 \uc885\ub8cc","__stack-auto-translation-81":"\uc0c8 \ud300\uc758 \ud45c\uc2dc \uc774\ub984\uc744 \uc785\ub825\ud558\uc138\uc694","__stack-auto-translation-82":"\uc774\uba54\uc77c \uc785\ub825","__stack-auto-translation-83":"\uc774\uba54\uc77c\ub85c \ubc1b\uc740 \ucf54\ub4dc\ub97c \uc785\ub825\ud558\uc138\uc694","__stack-auto-translation-84":"\uc778\uc99d \uc571\uc5d0\uc11c 6\uc790\ub9ac \ucf54\ub4dc\ub97c \uc785\ub825\ud558\uc138\uc694","__stack-auto-translation-85":"\uc774\uba54\uc77c\uc744 \uc785\ub825\ud558\uc138\uc694","__stack-auto-translation-86":"\ub9cc\ub8cc\ub41c \ub9e4\uc9c1 \ub9c1\ud06c","__stack-auto-translation-87":"\ub9cc\ub8cc\ub41c \ube44\ubc00\ubc88\ud638 \uc7ac\uc124\uc815 \ub9c1\ud06c","__stack-auto-translation-88":"\ub9cc\ub8cc\ub41c \ud300 \ucd08\ub300 \ub9c1\ud06c","__stack-auto-translation-89":"\ub9cc\ub8cc\ub41c \uc778\uc99d \ub9c1\ud06c","__stack-auto-translation-9":"\uc0c8 \ud328\uc2a4\ud0a4 \ucd94\uac00","__stack-auto-translation-90":"\ub9cc\ub8cc","__stack-auto-translation-91":"\ub9cc\ub8cc \uae30\uac04","__stack-auto-translation-92":"CLI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uc778\uc99d \uc2e4\ud328:","__stack-auto-translation-93":"\uacc4\uc815 \uc5f0\uacb0 \uc2e4\ud328","__stack-auto-translation-94":"\ube44\ubc00\ubc88\ud638 \uc7ac\uc124\uc815 \uc2e4\ud328","__stack-auto-translation-95":"\ube44\ubc00\ubc88\ud638 \uc7ac\uc124\uc815 \uc2e4\ud328. \uc0c8\ub85c\uc6b4 \ube44\ubc00\ubc88\ud638 \uc7ac\uc124\uc815 \ub9c1\ud06c\ub97c \uc694\uccad\ud574 \uc8fc\uc138\uc694","__stack-auto-translation-96":"\ube44\ubc00\ubc88\ud638\ub97c \uc78a\uc73c\uc168\ub098\uc694?","__stack-auto-translation-97":"\ud648\uc73c\ub85c \uc774\ub3d9","__stack-auto-translation-98":"\ud648\uc73c\ub85c \uc774\ub3d9","__stack-auto-translation-99":"API \ud0a4\uac00 \uc5ec\uae30 \uc788\uc2b5\ub2c8\ub2e4."})),"pt-BR":new Map(an({"__stack-auto-translation-0":"-","__stack-auto-translation-1":"Um aplicativo de linha de comando est\xe1 solicitando acesso \xe0 sua conta. Clique no bot\xe3o abaixo para autoriz\xe1-lo.","__stack-auto-translation-10":"Adicione seu endere\xe7o de email","__stack-auto-translation-100":"Entendo que n\xe3o poderei visualizar esta chave novamente.","__stack-auto-translation-101":"Se o usu\xe1rio com este endere\xe7o de e-mail existir, um e-mail foi enviado para sua caixa de entrada. Certifique-se de verificar sua pasta de spam.","__stack-auto-translation-102":"Se voc\xea n\xe3o for redirecionado automaticamente, ","__stack-auto-translation-103":"Ignorar","__stack-auto-translation-104":"Personifica\xe7\xe3o","__stack-auto-translation-105":"C\xf3digo incorreto. Por favor, tente novamente.","__stack-auto-translation-106":"Senha incorreta","__stack-auto-translation-107":"C\xf3digo inv\xe1lido","__stack-auto-translation-108":"Imagem inv\xe1lida","__stack-auto-translation-109":"Link M\xe1gico Inv\xe1lido","__stack-auto-translation-11":"J\xe1 tem uma conta?","__stack-auto-translation-110":"Link de Redefini\xe7\xe3o de Senha Inv\xe1lido","__stack-auto-translation-111":"Link de Convite de Equipe Inv\xe1lido","__stack-auto-translation-112":"C\xf3digo TOTP inv\xe1lido","__stack-auto-translation-113":"Link de Verifica\xe7\xe3o Inv\xe1lido","__stack-auto-translation-114":"Convide um usu\xe1rio para sua equipe por e-mail","__stack-auto-translation-115":"Convidar membro","__stack-auto-translation-116":"Convidar Usu\xe1rio","__stack-auto-translation-117":"Fatura","__stack-auto-translation-118":"Faturas","__stack-auto-translation-119":"Endere\xe7o IP","__stack-auto-translation-12":"Valor","__stack-auto-translation-120":"Entrar","__stack-auto-translation-121":"\xdaltimo uso","__stack-auto-translation-122":"Sair","__stack-auto-translation-123":"Sair da equipe","__stack-auto-translation-124":"Sair da Equipe","__stack-auto-translation-125":"sair desta equipe e remover seu perfil de equipe","__stack-auto-translation-126":"Localiza\xe7\xe3o","__stack-auto-translation-127":"Link M\xe1gico J\xe1 Utilizado","__stack-auto-translation-128":"Gerencie o m\xe9todo de pagamento padr\xe3o usado para assinaturas e faturas.","__stack-auto-translation-129":"Membros","__stack-auto-translation-13":"Um erro desconhecido ocorreu","__stack-auto-translation-130":"O gerenciamento de MFA n\xe3o est\xe1 dispon\xedvel no modo de demonstra\xe7\xe3o.","__stack-auto-translation-131":"Informa\xe7\xf5es de verifica\xe7\xe3o ausentes","__stack-auto-translation-132":"Autentica\xe7\xe3o de m\xfaltiplos fatores","__stack-auto-translation-133":"Autentica\xe7\xe3o de M\xfalt
2iplos Fatores","__stack-auto-translation-134":"A autentica\xe7\xe3o de m\xfaltiplos fatores est\xe1 atualmente desativada.","__stack-auto-translation-135":"A autentica\xe7\xe3o multifator est\xe1 atualmente ativada.","__stack-auto-translation-136":"Meu Perfil","__stack-auto-translation-137":"Nome","__stack-auto-translation-138":"Nunca","__stack-auto-translation-139":"N\xe3o \xe9 permitido o registro de novas contas","__stack-auto-translation-14":"Chave de API","__stack-auto-translation-140":"Nova senha","__stack-auto-translation-141":"Nova Senha","__stack-auto-translation-142":"Nenhuma sess\xe3o ativa encontrada","__stack-auto-translation-143":"Nenhum m\xe9todo de autentica\xe7\xe3o habilitado.","__stack-auto-translation-144":"Nenhuma forma de pagamento padr\xe3o","__stack-auto-translation-145":"Nome de exibi\xe7\xe3o n\xe3o definido","__stack-auto-translation-146":"N\xe3o h\xe1 outros planos dispon\xedveis para esta assinatura.","__stack-auto-translation-147":"Sem convites pendentes","__stack-auto-translation-148":"Sem equipe","__stack-auto-translation-149":"Ainda sem equipes","__stack-auto-translation-15":"Chaves de API","__stack-auto-translation-150":"N\xe3o conectado","__stack-auto-translation-151":"Notifica\xe7\xf5es","__stack-auto-translation-152":"Acesso ao provedor OAuth negado","__stack-auto-translation-153":"Senha antiga","__stack-auto-translation-154":"Senha de Uso \xdanico","__stack-auto-translation-155":"Compra \xfanica","__stack-auto-translation-156":"Aberta","__stack-auto-translation-157":"Ou continuar com","__stack-auto-translation-158":"Outra Sess\xe3o","__stack-auto-translation-159":"Outras equipes","__stack-auto-translation-16":"Chaves de API concedem acesso program\xe1tico \xe0 sua conta.","__stack-auto-translation-160":"O gerenciamento de OTP n\xe3o est\xe1 dispon\xedvel no modo de demonstra\xe7\xe3o.","__stack-auto-translation-161":"Autentica\xe7\xe3o por OTP","__stack-auto-translation-162":"A autentica\xe7\xe3o por OTP est\xe1 habilitada e n\xe3o pode ser desativada, pois atualmente \xe9 o \xfanico m\xe9todo de autentica\xe7\xe3o","__stack-auto-translation-163":"O login por OTP/link m\xe1gico est\xe1 atualmente habilitado.","__stack-auto-translation-164":"Convites pendentes","__stack-auto-translation-165":"Substitua seu nome de exibi\xe7\xe3o de usu\xe1rio nesta equipe","__stack-auto-translation-166":"Pago","__stack-auto-translation-167":"Chave de acesso","__stack-auto-translation-168":"O gerenciamento de chaves de acesso n\xe3o est\xe1 dispon\xedvel no modo de demonstra\xe7\xe3o.","__stack-auto-translation-169":"Chave de acesso registrada","__stack-auto-translation-17":"Chaves de API concedem acesso program\xe1tico \xe0 sua equipe.","__stack-auto-translation-170":"O acesso por chave de acesso est\xe1 habilitado e n\xe3o pode ser desativado, pois \xe9 atualmente o \xfanico m\xe9todo de acesso","__stack-auto-translation-171":"Senha","__stack-auto-translation-172":"O gerenciamento de senha n\xe3o est\xe1 dispon\xedvel no modo de demonstra\xe7\xe3o.","__stack-auto-translation-173":"Senha redefinida com sucesso!","__stack-auto-translation-174":"As senhas n\xe3o coincidem","__stack-auto-translation-175":"Forma de pagamento","__stack-auto-translation-176":"Pagamentos","__stack-auto-translation-177":"Remover permanentemente sua conta e todos os dados associados","__stack-auto-translation-178":"Pessoal","__stack-auto-translation-179":"Por favor, adicione um endere\xe7o de e-mail para concluir a configura\xe7\xe3o da sua conta. Enviaremos um e-mail de verifica\xe7\xe3o.","__stack-auto-translation-18":"Tem certeza de que deseja excluir sua conta? Esta a\xe7\xe3o \xe9 IRREVERS\xcdVEL e excluir\xe1 TODOS os dados associados.","__stack-auto-translation-180":"Verifique se voc\xea tem o link correto. Se continuar tendo problemas, entre em contato com o suporte.","__stack-auto-translation-181":"Verifique sua caixa de entrada","__stack-auto-translation-182":"Por favor, conclua a configura\xe7\xe3o da sua conta antes de entrar em equipes.","__stack-auto-translation-183":"Verifique novamente se voc\xea tem o link correto para redefini\xe7\xe3o de senha.","__stack-auto-translation-184":"Por favor, verifique se voc\xea tem o link de convite para equipe correto.","__stack-auto-translation-185":"Por favor, insira um nome para a equipe","__stack-auto-translation-186":"Por favor, insira um e-mail v\xe1lido","__stack-auto-translation-187":"Insira um endere\xe7o de e-mail v\xe1lido","__stack-auto-translation-188":"Por favor, insira um endere\xe7o de e-mail","__stack-auto-translation-189":"Por favor, insira seu e-mail","__stack-auto-translation-19":"Tem certeza de que deseja desativar a autentica\xe7\xe3o por OTP? Voc\xea n\xe3o poder\xe1 mais entrar apen
2as com e-mails.","__stack-auto-translation-190":"Por favor, digite sua senha antiga","__stack-auto-translation-191":"Insira sua senha","__stack-auto-translation-192":"Por favor, repita sua senha","__stack-auto-translation-193":"Por favor, tente novamente e, se o problema persistir, entre em contato com o suporte.","__stack-auto-translation-194":"Por favor, verifique seu endere\xe7o de email ","__stack-auto-translation-195":"Por favor, verifique seu email primeiro","__stack-auto-translation-196":"Prim\xe1rio","__stack-auto-translation-197":"Pro","__stack-auto-translation-198":"Imagem de perfil","__stack-auto-translation-199":"Registrar uma chave de acesso","__stack-auto-translation-2":"Configura\xe7\xf5es da conta","__stack-auto-translation-20":"Tem certeza que deseja desativar o login com chave de acesso? Voc\xea n\xe3o poder\xe1 mais entrar com sua chave de acesso.","__stack-auto-translation-200":"Remover","__stack-auto-translation-201":"Renova em","__stack-auto-translation-202":"Repita a nova senha","__stack-auto-translation-203":"Repita a Nova Senha","__stack-auto-translation-204":"Repetir Senha","__stack-auto-translation-205":"Reenviar email de verifica\xe7\xe3o","__stack-auto-translation-206":"Redefinir Senha","__stack-auto-translation-207":"Redefina Sua Senha","__stack-auto-translation-208":"Revise faturas e recibos anteriores.","__stack-auto-translation-209":"Revogar","__stack-auto-translation-21":"Tem certeza de que deseja sair da equipe?","__stack-auto-translation-210":"Revogar Todas as Outras Sess\xf5es","__stack-auto-translation-211":"Salvar","__stack-auto-translation-212":"Escaneie este c\xf3digo QR com seu aplicativo autenticador:","__stack-auto-translation-213":"Chave de API Secreta","__stack-auto-translation-214":"Selecione um novo plano da mesma linha de produtos.","__stack-auto-translation-215":"Enviar e-mail","__stack-auto-translation-216":"Enviar Email","__stack-auto-translation-217":"Enviar email de verifica\xe7\xe3o","__stack-auto-translation-218":"Sess\xe3o","__stack-auto-translation-219":"Defina uma senha para sua conta","__stack-auto-translation-22":"Autoriza\xe7\xe3o Falhou","__stack-auto-translation-220":"Definir como prim\xe1rio","__stack-auto-translation-221":"Definir senha","__stack-auto-translation-222":"Definir Senha","__stack-auto-translation-223":"Configura\xe7\xf5es","__stack-auto-translation-224":"Entrar","__stack-auto-translation-225":"Entrar","__stack-auto-translation-226":"Entrar novamente","__stack-auto-translation-227":"Fa\xe7a login ou crie uma conta para entrar na equipe.","__stack-auto-translation-228":"Entrar na sua conta","__stack-auto-translation-229":"Entrar com Chave de acesso","__stack-auto-translation-23":"Autorizar","__stack-auto-translation-230":"Entrar com {provider}","__stack-auto-translation-231":"Sair","__stack-auto-translation-232":"Cadastrar-se","__stack-auto-translation-233":"Cadastrar-se","__stack-auto-translation-234":"O cadastro para novos usu\xe1rios n\xe3o est\xe1 dispon\xedvel no momento.","__stack-auto-translation-235":"Cadastre-se com Chave de acesso","__stack-auto-translation-236":"Cadastre-se com {provider}","__stack-auto-translation-237":"Login realizado com sucesso!","__stack-auto-translation-238":"Conectado em {time}","__stack-auto-translation-239":"Algo deu errado ao processar o retorno de chamada OAuth:","__stack-auto-translation-24":"Autorizar Aplicativo de CLI","__stack-auto-translation-240":"Status","__stack-auto-translation-241":"Parar de usar para login","__stack-auto-translation-242":"Assinatura","__stack-auto-translation-243":"Mudar plano","__stack-auto-translation-244":"A cria\xe7\xe3o de equipes est\xe1 desativada no modo de demonstra\xe7\xe3o","__stack-auto-translation-245":"Cria\xe7\xe3o de equipe n\xe3o est\xe1 habilitada","__stack-auto-translation-246":"Nome de exibi\xe7\xe3o da equipe","__stack-auto-translation-247":"Convite para equipe","__stack-auto-translation-248":"Imagem de perfil da equipe","__stack-auto-translation-249":"Nome de usu\xe1rio na equipe","__stack-auto-translation-25":"Autorizando...","__stack-auto-translation-250":"Equipes","__stack-auto-translation-251":"A aplica\xe7\xe3o CLI foi autorizada com sucesso. Voc\xea pode fechar esta janela e retornar \xe0 linha de comando.","__stack-auto-translation-252":"O link m\xe1gico j\xe1 foi utilizado. O link s\xf3 pode ser usado uma vez. Por favor, solicite um novo link m\xe1gico se precisar fazer login novamente.","__stack-auto-translation-253":"A opera\xe7\xe3o de login foi cancelada ou negada. Tente novamente.","__stack-auto-translation-254":"O usu\xe1rio j\xe1 est\xe1 conectado a outra conta OAuth. Voc\xea selecionou a conta errada na p\xe1gina do provedor OAuth?","__stack-auto-translation-255":"Em seguida, insira seu c\xf3digo MFA de seis d\xedgitos:","__stack-auto-translation-256":"Estes s\xe3o os dispositivos onde voc\xea est\xe1 atualmente conectado. V
2oc\xea pode revogar o acesso para encerrar uma sess\xe3o.","__stack-auto-translation-257":"Esta conta j\xe1 est\xe1 conectada a outro usu\xe1rio. Por favor, conecte uma conta diferente.","__stack-auto-translation-258":"Este email j\xe1 est\xe1 sendo usado para login por outro usu\xe1rio.","__stack-auto-translation-259":"Este \xe9 um nome de exibi\xe7\xe3o e n\xe3o \xe9 usado para autentica\xe7\xe3o","__stack-auto-translation-26":"Cancelar","__stack-auto-translation-260":"Isto \xe9 provavelmente um erro no Stack. Por favor, reporte-o.","__stack-auto-translation-261":"Este link de redefini\xe7\xe3o de senha j\xe1 foi utilizado. Se precisar redefinir sua senha novamente, solicite um novo link na p\xe1gina de login.","__stack-auto-translation-262":"Este link de convite para a equipe j\xe1 foi utilizado.","__stack-auto-translation-263":"Para habilitar a autentica\xe7\xe3o por OTP, adicione um email de login verificado.","__stack-auto-translation-264":"Para habilitar o login por chave de acesso, adicione um email de login verificado.","__stack-auto-translation-265":"Para definir uma senha, adicione um email de login.","__stack-auto-translation-266":"Alternar tema","__stack-auto-translation-267":"C\xf3digo QR de autentica\xe7\xe3o de m\xfaltiplos fatores TOTP","__stack-auto-translation-268":"Tentar novamente","__stack-auto-translation-269":"Indispon\xedvel","__stack-auto-translation-27":"Cancelar assinatura","__stack-auto-translation-270":"Incobr\xe1vel","__stack-auto-translation-271":"Desconhecido","__stack-auto-translation-272":"N\xe3o verificado","__stack-auto-translation-273":"Atualizar senha","__stack-auto-translation-274":"Atualizar Senha","__stack-auto-translation-275":"Atualizar forma de pagamento","__stack-auto-translation-276":"Atualize sua senha","__stack-auto-translation-277":"Envie uma imagem para sua equipe","__stack-auto-translation-278":"Envie sua pr\xf3pria imagem como seu avatar","__stack-auto-translation-279":"Usar para login","__stack-auto-translation-28":"Cancelar interromper\xe1 as renova\xe7\xf5es futuras desta assinatura.","__stack-auto-translation-280":"Usado para login","__stack-auto-translation-281":"Link de Redefini\xe7\xe3o de Senha Utilizado","__stack-auto-translation-282":"Link de Convite de Equipe Usado","__stack-auto-translation-283":"Usu\xe1rio","__stack-auto-translation-284":"Nome de usu\xe1rio","__stack-auto-translation-285":"Verifica\xe7\xe3o falhou","__stack-auto-translation-286":"Verificado! Redirecionando...","__stack-auto-translation-287":"Verificar","__stack-auto-translation-288":"Verificando...","__stack-auto-translation-289":"Visualizar","__stack-auto-translation-29":"alterar","__stack-auto-translation-290":"Veja seus planos ativos e compras.","__stack-auto-translation-291":"Anulada","__stack-auto-translation-292":"AVISO: Certifique-se de confiar no aplicativo de linha de comando, pois ele ter\xe1 acesso \xe0 sua conta. Se voc\xea n\xe3o iniciou esta solicita\xe7\xe3o, voc\xea pode fechar esta p\xe1gina e ignor\xe1-la. Nunca enviaremos este link por email ou qualquer outro meio.","__stack-auto-translation-293":"Voc\xea j\xe1 est\xe1 conectado","__stack-auto-translation-294":"Voc\xea n\xe3o est\xe1 atualmente conectado.","__stack-auto-translation-295":"Voc\xea n\xe3o pode remover seu \xfaltimo email de login","__stack-auto-translation-296":"Voc\xea n\xe3o pode revogar sua sess\xe3o atual","__stack-auto-translation-297":"Seu email foi verificado!","__stack-auto-translation-298":"Voc\xea ainda n\xe3o concluiu a configura\xe7\xe3o da sua conta. Entre em contato com o suporte se acreditar que isso \xe9 um erro.","__stack-auto-translation-299":"Seu E-mail","__stack-auto-translation-3":"Configura\xe7\xf5es da Conta","__stack-auto-translation-30":"Alterar plano","__stack-auto-translation-300":"Seu link de verifica\xe7\xe3o de e-mail expirou. Por favor, solicite um novo link de verifica\xe7\xe3o nas configura\xe7\xf5es da sua conta.","__stack-auto-translation-301":"Seu link m\xe1gico expirou. Por favor, solicite um novo link m\xe1gico se precisar fazer login.","__stack-auto-translation-302":"Sua senha foi redefinida. Agora voc\xea pode entrar com sua nova senha.","__stack-auto-translation-303":"Seu link de redefini\xe7\xe3o de senha expirou. Por favor, solicite um novo link de redefini\xe7\xe3o de senha na p\xe1gina de login.","__stack-auto-translation-304":"Seu link de convite para a equipe expirou. Solicite um novo link de convite para a equipe","__stack-auto-translation-31":"Alterar o nome de exibi\xe7\xe3o da sua equipe","__stack-auto-translation-32":"Escolher um plano","__stack-auto-translation-33":"Escolha quais e-mails voc\xea deseja receber","__stack-auto-translation-34":"Autoriza\xe7\xe3o de CLI Bem-sucedida","__stack-auto-translation-35":"clique aqui","__stack-auto-translation-36":"Clique no bot\xe3o abaixo para reenviar o link de verifica\xe7\xe3o.","__stack-auto-translation-37":"Fechar","__stack-auto-translation-38":"Concluir configura\xe7\xe3o","__stack-auto-translation-39":"C
2onclua a configura\xe7\xe3o da sua conta","__stack-auto-translation-4":"Planos ativos","__stack-auto-translation-40":"Confirmar","__stack-auto-translation-41":"Continuar","__stack-auto-translation-42":"Copie para um local seguro. Voc\xea n\xe3o poder\xe1 visualiz\xe1-la novamente.","__stack-auto-translation-43":"N\xe3o foi poss\xedvel cortar a imagem.","__stack-auto-translation-44":"Criar","__stack-auto-translation-45":"Criar uma nova conta","__stack-auto-translation-46":"Criar uma equipe","__stack-auto-translation-47":"Criar uma Equipe","__stack-auto-translation-48":"Criar Chave de API","__stack-auto-translation-49":"Pacote de cr\xe9ditos","__stack-auto-translation-5":"Sess\xf5es Ativas","__stack-auto-translation-50":"Sess\xe3o Atual","__stack-auto-translation-51":"Equipe atual","__stack-auto-translation-52":"Zona de perigo","__stack-auto-translation-53":"Data","__stack-auto-translation-54":"Excluir conta","__stack-auto-translation-55":"Excluir Conta","__stack-auto-translation-56":"Excluir Chave de acesso","__stack-auto-translation-57":"Descri\xe7\xe3o","__stack-auto-translation-58":"Descri\xe7\xe3o \xe9 obrigat\xf3ria","__stack-auto-translation-59":"Desativar","__stack-auto-translation-6":"Adicionar","__stack-auto-translation-60":"Desativar MFA","__stack-auto-translation-61":"Desativar OTP","__stack-auto-translation-62":"Nome de exibi\xe7\xe3o","__stack-auto-translation-63":"Deseja entrar?","__stack-auto-translation-64":"Deseja verificar seu email?","__stack-auto-translation-65":"N\xe3o tem uma conta?","__stack-auto-translation-66":"N\xe3o precisa redefinir?","__stack-auto-translation-67":"Rascunho","__stack-auto-translation-68":"ex.: Desenvolvimento, Produ\xe7\xe3o, CI/CD","__stack-auto-translation-69":"Email","__stack-auto-translation-7":"Adicione uma forma de pagamento antes de mudar de plano.","__stack-auto-translation-70":"Email e Senha","__stack-auto-translation-71":"E-mail j\xe1 existe","__stack-auto-translation-72":"E-mail \xe9 obrigat\xf3rio","__stack-auto-translation-73":"Gerenciamento de email n\xe3o est\xe1 dispon\xedvel no modo de demonstra\xe7\xe3o.","__stack-auto-translation-74":"E-mail enviado!","__stack-auto-translation-75":"E-mails","__stack-auto-translation-76":"E-mails & Autentica\xe7\xe3o","__stack-auto-translation-77":"Habilitar MFA","__stack-auto-translation-78":"Habilitar OTP","__stack-auto-translation-79":"Habilitar login via link m\xe1gico ou OTP enviado para seus e-mails de acesso.","__stack-auto-translation-8":"Adicionar um e-mail","__stack-auto-translation-80":"Encerre sua sess\xe3o atual","__stack-auto-translation-81":"Insira um nome de exibi\xe7\xe3o para sua nova equipe","__stack-auto-translation-82":"Inserir email","__stack-auto-translation-83":"Digite o c\xf3digo do seu e-mail","__stack-auto-translation-84":"Digite o c\xf3digo de seis d\xedgitos do seu aplicativo autenticador","__stack-auto-translation-85":"Digite seu email","__stack-auto-translation-86":"Link M\xe1gico Expirado","__stack-auto-translation-87":"Link de Redefini\xe7\xe3o de Senha Expirado","__stack-auto-translation-88":"Link de Convite de Equipe Expirado","__stack-auto-translation-89":"Link de Verifica\xe7\xe3o Expirado","__stack-auto-translation-9":"Adicionar nova chave de acesso","__stack-auto-translation-90":"Expira","__stack-auto-translation-91":"Expira em","__stack-auto-translation-92":"Falha ao autorizar a aplica\xe7\xe3o CLI:","__stack-auto-translation-93":"Falha ao conectar conta","__stack-auto-translation-94":"Falha ao redefinir senha","__stack-auto-translation-95":"Falha ao redefinir senha. Solicite um novo link de redefini\xe7\xe3o de senha","__stack-auto-translation-96":"Esqueceu a senha?","__stack-auto-translation-97":"Ir para in\xedcio","__stack-auto-translation-98":"Ir para in\xedcio","__stack-auto-translation-99":"Aqui est\xe1 a sua chave de API."})),"pt-PT":new Map(an({"__stack-auto-translation-0":"-","__stack-auto-translation-1":"Uma aplica\xe7\xe3o de linha de comandos est\xe1 a solicitar acesso \xe0 sua conta. Clique no bot\xe3o abaixo para autoriz\xe1-la.","__stack-auto-translation-10":"Adicione o seu endere\xe7o de email","__stack-auto-translation-100":"Compreendo que n\xe3o poderei visualizar esta chave novamente.","__stack-auto-translation-101":"Se o utilizador com este endere\xe7o de e-mail existir, foi enviado um e-mail para a sua caixa de entrada. Certifique-se de verificar a sua pasta de spam.","__stack-auto-translation-102":"Se n\xe3o for redirecionado automaticamente, ","__stack-auto-translation-103":"Ignorar","__stack-auto-translation-104":"Personifica\xe7\xe3o","__stack-auto-translation-105":"C\xf3digo incorreto. Por favor, tente novamente.","__stack-auto-translation-106":"Palavra-passe incorreta","__stack-auto-translation-107":"C\xf3digo inv\xe1lido","__stack-auto-translation-108":"Imagem inv\xe1lida","__stack-auto-translation-109":"Link M\xe1gico Inv\xe1lido","__stack-auto-translation-11":"J\xe1 tem uma conta?","__stack-auto-translation-110":"Link Inv\xe1lido de Redefini\xe7\xe3o de Palavra-passe","__stack-auto-translation-111":"Link de Convite de Equipa Inv\xe1lido","__stack-auto-translation-112":"C\xf3digo TOTP inv\xe1lido","__stack-auto-translation-113":"Link de Verifica\xe7\xe3o Inv\xe1lido","__stack-auto-translation-114":"Convidar um utilizador para a sua equipa atrav\xe9s de e-mail","__stack-auto-translation-115":"Convidar membro","__stack-auto-translation-116":"Convidar Utilizador","__stack-auto-translation-117":"Fatura","__stack-auto-translation-118":"Faturas","__stack-auto-translation-119":"Endere\xe7o IP","__stack-auto-translation-12":"Valor","__stack-auto-translation-120":"Juntar","__stack-auto-translation-121":"\xdaltima utiliza\xe7\xe3o","__stack-auto-translation-122":"Sair","__stack-auto-translation-123":"Sair da equipa","__stack-auto-translation-124":"Sair da Equipa","__stack-auto-translation-125":"abandonar esta equipa e remover o seu perfil de equipa","__stack-auto-translation-126":"Localiza\xe7\xe3o","__stack-auto-translation-127":"Link M\xe1gico J\xe1 Utilizado","__stack-auto-translation-128":"Gerir o m\xe9todo de pagamento predefinido para subscri\xe7\xf5es e faturas.","__stack-auto-translation-129":"Membros","__stack-auto-translation-13":"Ocorreu um erro desconhecido","__stack-auto-translation-130":"A gest\xe3o de MFA n\xe3o est\xe1 dispon\xedvel no modo de demonstra\xe7\xe3o.","__stack-auto-translation-131":"Informa\xe7\xf5es de verifica\xe7\xe3o em falta","__stack-auto-translation-132":"Autentica\xe7\xe3o de M\xfalt
2iplos Fatores","__stack-auto-translation-133":"Autentica\xe7\xe3o de M\xfaltiplos Fatores","__stack-auto-translation-134":"A autentica\xe7\xe3o multifator est\xe1 atualmente desativada.","__stack-auto-translation-135":"A autentica\xe7\xe3o multifator est\xe1 atualmente ativada.","__stack-auto-translation-136":"O Meu Perfil","__stack-auto-translation-137":"Nome","__stack-auto-translation-138":"Nunca","__stack-auto-translation-139":"N\xe3o \xe9 permitido registar novas contas","__stack-auto-translation-14":"Chave de API","__stack-auto-translation-140":"Nova palavra-passe","__stack-auto-translation-141":"Nova Palavra-passe","__stack-auto-translation-142":"N\xe3o foram encontradas sess\xf5es ativas","__stack-auto-translation-143":"Nenhum m\xe9todo de autentica\xe7\xe3o ativado.","__stack-auto-translation-144":"Sem m\xe9todo de pagamento padr\xe3o","__stack-auto-translation-145":"Sem nome de exibi\xe7\xe3o definido","__stack-auto-translation-146":"N\xe3o existem outros planos dispon\xedveis para esta subscri\xe7\xe3o.","__stack-auto-translation-147":"N\xe3o h\xe1 convites pendentes","__stack-auto-translation-148":"Sem equipa","__stack-auto-translation-149":"Ainda sem equipas","__stack-auto-translation-15":"Chaves de API","__stack-auto-translation-150":"N\xe3o tem sess\xe3o iniciada","__stack-auto-translation-151":"Notifica\xe7\xf5es","__stack-auto-translation-152":"Acesso ao provedor OAuth negado","__stack-auto-translation-153":"Palavra-passe antiga","__stack-auto-translation-154":"Palavra-passe de Utiliza\xe7\xe3o \xdanica","__stack-auto-translation-155":"Compra \xfanica","__stack-auto-translation-156":"Aberta","__stack-auto-translation-157":"Ou continuar com","__stack-auto-translation-158":"Outra Sess\xe3o","__stack-auto-translation-159":"Outras equipas","__stack-auto-translation-16":"As chaves de API concedem acesso program\xe1tico \xe0 sua conta.","__stack-auto-translation-160":"A gest\xe3o de OTP n\xe3o est\xe1 dispon\xedvel no modo de demonstra\xe7\xe3o.","__stack-auto-translation-161":"Autentica\xe7\xe3o OTP","__stack-auto-translation-162":"A autentica\xe7\xe3o OTP est\xe1 ativada e n\xe3o pode ser desativada, pois \xe9 atualmente o \xfanico m\xe9todo de autentica\xe7\xe3o","__stack-auto-translation-163":"O in\xedcio de sess\xe3o por OTP/link m\xe1gico est\xe1 atualmente ativado.","__stack-auto-translation-164":"Convites pendentes","__stack-auto-translation-165":"Substituir o seu nome de exibi\xe7\xe3o nesta equipa","__stack-auto-translation-166":"Pago","__stack-auto-translation-167":"Chave de acesso","__stack-auto-translation-168":"A gest\xe3o de chaves de acesso n\xe3o est\xe1 dispon\xedvel no modo de demonstra\xe7\xe3o.","__stack-auto-translation-169":"Chave de acesso registada","__stack-auto-translation-17":"As chaves de API concedem acesso program\xe1tico \xe0 sua equipa.","__stack-auto-translation-170":"O in\xedcio de sess\xe3o por chave de acesso est\xe1 ativo e n\xe3o pode ser desativado pois \xe9 atualmente o \xfanico m\xe9todo de autentica\xe7\xe3o","__stack-auto-translation-171":"Palavra-passe","__stack-auto-translation-172":"A gest\xe3o de palavra-passe n\xe3o est\xe1 dispon\xedvel no modo de demonstra\xe7\xe3o.","__stack-auto-translation-173":"Palavra-passe redefinida com sucesso!","__stack-auto-translation-174":"As palavras-passe n\xe3o coincidem","__stack-auto-translation-175":"M\xe9todo de pagamento","__stack-auto-translation-176":"Pagamentos","__stack-auto-translation-177":"Remover permanentemente a sua conta e todos os dados associados","__stack-auto-translation-178":"Pessoal","__stack-auto-translation-179":"Por favor, adicione um endere\xe7o de email para concluir a configura\xe7\xe3o da sua conta. Enviaremos um email de verifica\xe7\xe3o.","__stack-auto-translation-18":"Tem a certeza que pretende eliminar a sua conta? Esta a\xe7\xe3o \xe9 IRREVERS\xcdVEL e ir\xe1 apagar TODOS os dados associados.","__stack-auto-translation-180":"Por favor, verifique se tem o link correto. Se continuar a ter problemas, entre em contacto com o suporte.","__stack-auto-translation-181":"Por favor, verifique a sua caixa de email","__stack-auto-translation-182":"Por favor, conclua a configura\xe7\xe3o da sua conta antes de se juntar a equipas.","__stack-auto-translation-183":"Por favor, verifique novamente se tem o link correto para redefini\xe7\xe3o da palavra-passe.","__stack-auto-translation-184":"Verifique novamente se possui o link de convite para a equipa correto.","__stack-auto-translation-185":"Por favor, insira um nome para a equipa","__stack-auto-translation-186":"Por favor, introduza um email v\xe1lido","__stack-auto-translation-187":"Introduza um endere\xe7o de email v\xe1lido","__stack-auto-translation-188":"Por favor, introduza um endere\xe7o de email","__stack-auto-translation-189":"Introduza o seu email","__stack-auto-translation-19":"Tem certeza de que deseja desativar a autentica\xe7\xe3o OTP? J\xe1 n\xe3o poder\xe1 iniciar sess\xe3o a
2penas com e-mails.","__stack-auto-translation-190":"Por favor, insira a sua palavra-passe antiga","__stack-auto-translation-191":"Por favor, introduza a sua palavra-passe","__stack-auto-translation-192":"Por favor, repita a sua palavra-passe","__stack-auto-translation-193":"Tente novamente e, se o problema persistir, contacte o suporte.","__stack-auto-translation-194":"Por favor, verifique o seu endere\xe7o de email ","__stack-auto-translation-195":"Por favor, verifique o seu email primeiro","__stack-auto-translation-196":"Principal","__stack-auto-translation-197":"Pro","__stack-auto-translation-198":"Imagem de perfil","__stack-auto-translation-199":"Registar uma chave de acesso","__stack-auto-translation-2":"Defini\xe7\xf5es da conta","__stack-auto-translation-20":"Tem a certeza de que pretende desativar o in\xedcio de sess\xe3o por chave de acesso? N\xe3o poder\xe1 mais iniciar sess\xe3o com a sua chave de acesso.","__stack-auto-translation-200":"Remover","__stack-auto-translation-201":"Renova a","__stack-auto-translation-202":"Repetir nova palavra-passe","__stack-auto-translation-203":"Repetir Nova Palavra-passe","__stack-auto-translation-204":"Repita a palavra-passe","__stack-auto-translation-205":"Reenviar email de verifica\xe7\xe3o","__stack-auto-translation-206":"Redefinir Palavra-passe","__stack-auto-translation-207":"Repor a Sua Palavra-passe","__stack-auto-translation-208":"Rever faturas e recibos anteriores.","__stack-auto-translation-209":"Revogar","__stack-auto-translation-21":"Tem a certeza de que deseja sair da equipa?","__stack-auto-translation-210":"Revogar Todas as Outras Sess\xf5es","__stack-auto-translation-211":"Guardar","__stack-auto-translation-212":"Fa\xe7a scan deste c\xf3digo QR com a sua aplica\xe7\xe3o de autentica\xe7\xe3o:","__stack-auto-translation-213":"Chave de API Secreta","__stack-auto-translation-214":"Selecione um novo plano da mesma linha de produtos.","__stack-auto-translation-215":"Enviar e-mail","__stack-auto-translation-216":"Enviar Email","__stack-auto-translation-217":"Enviar email de verifica\xe7\xe3o","__stack-auto-translation-218":"Sess\xe3o","__stack-auto-translation-219":"Defina uma palavra-passe para a sua conta","__stack-auto-translation-22":"Autoriza\xe7\xe3o Falhou","__stack-auto-translation-220":"Definir como principal","__stack-auto-translation-221":"Definir palavra-passe","__stack-auto-translation-222":"Definir Palavra-passe","__stack-auto-translation-223":"Defini\xe7\xf5es","__stack-auto-translation-224":"Iniciar sess\xe3o","__stack-auto-translation-225":"Iniciar Sess\xe3o","__stack-auto-translation-226":"Iniciar sess\xe3o novamente","__stack-auto-translation-227":"Inicie sess\xe3o ou crie uma conta para se juntar \xe0 equipa.","__stack-auto-translation-228":"Iniciar sess\xe3o na sua conta","__stack-auto-translation-229":"Iniciar sess\xe3o com Chave de acesso","__stack-auto-translation-23":"Autorizar","__stack-auto-translation-230":"Iniciar sess\xe3o com {provider}","__stack-auto-translation-231":"Terminar sess\xe3o","__stack-auto-translation-232":"Inscrever-se","__stack-auto-translation-233":"Inscrever-se","__stack-auto-translation-234":"As inscri\xe7\xf5es para novos utilizadores n\xe3o est\xe3o ativadas de momento.","__stack-auto-translation-235":"Registar com chave de acesso","__stack-auto-translation-236":"Registar-se com {provider}","__stack-auto-translation-237":"Autentica\xe7\xe3o bem-sucedida!","__stack-auto-translation-238":"Sess\xe3o iniciada {time}","__stack-auto-translation-239":"Algo correu mal durante o processamento do callback OAuth:","__stack-auto-translation-24":"Autorizar Aplica\xe7\xe3o CLI","__stack-auto-translation-240":"Estado","__stack-auto-translation-241":"Parar de utilizar para in\xedcio de sess\xe3o","__stack-auto-translation-242":"Subscri\xe7\xe3o","__stack-auto-translation-243":"Mudar plano","__stack-auto-translation-244":"A cria\xe7\xe3o de equipas est\xe1 desativada no modo de demonstra\xe7\xe3o","__stack-auto-translation-245":"A cria\xe7\xe3o de equipas n\xe3o est\xe1 ativada","__stack-auto-translation-246":"Nome de exibi\xe7\xe3o da equipa","__stack-auto-translation-247":"Convite para equipa","__stack-auto-translation-248":"Imagem de perfil da equipa","__stack-auto-translation-249":"Nome de utilizador da equipa","__stack-auto-translation-25":"A autorizar...","__stack-auto-translation-250":"Equipas","__stack-auto-translation-251":"A aplica\xe7\xe3o CLI foi autorizada com sucesso. Pode fechar esta janela e voltar \xe0 linha de comandos.","__stack-auto-translation-252":"O link m\xe1gico j\xe1 foi utilizado. O link s\xf3 pode ser usado uma vez. Por favor, solicite um novo link m\xe1gico se precisar de iniciar sess\xe3o novamente.","__stack-auto-translation-253":"A opera\xe7\xe3o de in\xedcio de sess\xe3o foi cancelada ou negada. Por favor, tente novamente.","__stack-auto-translation-254":"O utilizador j\xe1 est\xe1 conectado a outra conta OAuth. Ter\xe1 selecionado a conta errada na p\xe1gina do provedor OAuth?","__stack-auto-translation-255":"Em seguida, introduza o seu c\xf3digo MFA de seis d\xedgitos:","__stack-auto-translation-256":"Estes s\xe3o os dispositivos onde est\xe1 atualmente autenticado. Pode revogar o acesso para terminar uma sess\xe3o.","__stack-auto-translation-257":"Esta conta j\xe1 est\xe1 associada a outro utilizador. Por favor, associe uma conta diferente.","__stack-auto-translation-258":"Este email j\xe1 \xe9 utilizado para iniciar sess\xe3o por outro utilizador.","__stack-auto-translation-259":"Este \xe9 um nome de exibi\xe7\xe3o e n\xe3o \xe9 utilizado para autentica\xe7\xe3o","__stack-auto-translation-26":"Cancelar","__stack-auto-translation-260":"Isto \xe9 provavelmente um erro no Stack. Por favor, reporte-o.","__stack-auto-translation-261":"Este link de reposi\xe7\xe3o de palavra-passe j\xe1 foi utilizado. Se precisar de repor a sua palavra-passe novamente, solicite um novo link de reposi\xe7\xe3o na p\xe1gina de in\xedcio de sess\xe3o.","__stack-auto-translation-262":"Este link de convite para a equipa j\xe1 foi utilizado.","__stack-auto-translation-263":"Para ativar a autentica\xe7\xe3o OTP, adicione um email de acesso verificado.","__stack-auto-translation-264":"Para ativar o in\xedcio de sess\xe3o com chave de acesso, adicione um email de in\xedcio de sess\xe3o verificado.","__stack-auto-translation-265":"Para definir uma palavra-passe, adicione um email de acesso.","__stack-auto-translation-266":"Alternar tema","__stack-auto-translation-267":"C\xf3digo QR de autentica\xe7\xe3o multifator TOTP","__stack-auto-translation-268":"Tentar Novamente","__stack-auto-translation-269":"Indispon\xedvel","__stack-auto-translation-27":"Cancelar subscri\xe7\xe3o","__stack-auto-translation-270":"Incobr\xe1vel","__stack-auto-translation-271":"Desconhecido","__stack-auto-translation-272":"N\xe3o verificado","__stack-auto-translation-273":"Atualizar palavra-passe","__stack-auto-translation-274":"Atualizar Palavra-passe","__stack-auto-translation-275":"Atualizar m\xe9todo de pagamento","__stack-auto-translation-276":"Atualize a sua palavra-passe","__stack-auto-translation-277":"Carregar uma imagem para a sua equipa","__stack-auto-translation-278":"Carregue a sua pr\xf3pria imagem como avatar","__stack-auto-translation-279":"Usar para iniciar sess\xe3o","__stack-auto-translation-28":"O cancelamento ir\xe1 parar as renova\xe7\xf5es futuras desta subscri\xe7\xe3o.","__stack-auto-translation-280":"Utilizado para iniciar sess\xe3o","__stack-auto-translation-281":"Link de Redefini\xe7\xe3o de Palavra-passe Utilizado","__stack-auto-translation-282":"Link de Convite para Equipa Utilizado","__stack-auto-translation-283":"Utilizador","__stack-auto-translation-284":"Nome de utilizador","__stack-auto-translation-285":"Falha na verifica\xe7\xe3o","__stack-auto-translation-286":"Verificado! A redirecionar...","__stack-auto-translation-287":"Verificar","__stack-auto-translation-288":"A verificar...","__stack-auto-translation-289":"Ver","__stack-auto-translation-29":"alterar","__stack-auto-translation-290":"Ver os seus planos ativos e compras.","__stack-auto-translation-291":"Anulada","__stack-auto-translation-292":"AVISO: Certifique-se de que confia na aplica\xe7\xe3o de linha de comandos, pois esta ter\xe1 acesso \xe0 sua conta. Se n\xe3o iniciou este pedido, pode fechar esta p\xe1gina e ignor\xe1-lo. Nunca enviaremos este link por email ou qualquer outro meio.","__stack-auto-translation-293":"J\xe1 est\xe1 autenticado","__stack-auto-translation-294":"N\xe3o tem sess\xe3o iniciada de momento.","__stack-auto-translation-295":"N\xe3o \xe9 poss\xedvel remover o seu \xfaltimo email de in\xedcio de sess\xe3o","__stack-auto-translation-296":"N\xe3o pode revogar a sua sess\xe3o atual","__stack-auto-translation-297":"O seu email foi verificado!","__stack-auto-translation-298":"Ainda n\xe3o concluiu a configura\xe7\xe3o da sua conta. Por favor, contacte o suporte se acreditar que isto \xe9 um erro.","__stack-auto-translation-299":"O seu email","__stack-auto-translation-3":"Defini\xe7\xf5es da Conta","__stack-auto-translation-30":"Alterar plano","__stack-auto-translation-300":"O seu link de verifica\xe7\xe3o de email expirou. Por favor, solicite um novo link de verifica\xe7\xe3o nas defini\xe7\xf5es da sua conta.","__stack-auto-translation-301":"O seu link m\xe1gico expirou. Por favor, solicite um novo link m\xe1gico se precisar de iniciar sess\xe3o.","__stack-auto-translation-302":"A sua palavra-passe foi redefinida. Agora pode iniciar sess\xe3o com a sua nova palavra-passe.","__stack-auto-translation-303":"O seu link de redefini\xe7\xe3o de palavra-passe expirou. Por favor, solicite um novo link na p\xe1gina de in\xedcio de sess\xe3o.","__stack-auto-translation-304":"O seu link de convite para a equipa expirou. Por favor, solicite um novo link de convite","__stack-auto-translation-31":"Alterar o nome de apresenta\xe7\xe3o da sua equipa","__stack-auto-translation-32":"Escolher um plano","__stack-auto-translation-33":"Escolha quais e-mails deseja receber","__stack-auto-translation-34":"Autoriza\xe7\xe3o da CLI bem-sucedida","__stack-auto-translation-35":"clique aqui","__stack-auto-translation-36":"Clique no bot\xe3o abaixo para reenviar o link de verifica\xe7\xe3o.","__stack-auto-translation-37":"Fechar","__stack-auto-translation-38":"Concluir configura\xe7\xe3o","__stack-auto-translation-39":"C
2onclua a configura\xe7\xe3o da sua conta","__stack-auto-translation-4":"Planos ativos","__stack-auto-translation-40":"Confirmar","__stack-auto-translation-41":"Continuar","__stack-auto-translation-42":"Copie-a para um local seguro. N\xe3o poder\xe1 visualiz\xe1-la novamente.","__stack-auto-translation-43":"N\xe3o foi poss\xedvel cortar a imagem.","__stack-auto-translation-44":"Criar","__stack-auto-translation-45":"Criar uma nova conta","__stack-auto-translation-46":"Criar uma equipa","__stack-auto-translation-47":"Criar uma Equipa","__stack-auto-translation-48":"Criar Chave API","__stack-auto-translation-49":"Pacote de cr\xe9ditos","__stack-auto-translation-5":"Sess\xf5es Ativas","__stack-auto-translation-50":"Sess\xe3o Atual","__stack-auto-translation-51":"Equipa atual","__stack-auto-translation-52":"Zona de perigo","__stack-auto-translation-53":"Data","__stack-auto-translation-54":"Eliminar conta","__stack-auto-translation-55":"Eliminar Conta","__stack-auto-translation-56":"Eliminar Chave de Acesso","__stack-auto-translation-57":"Descri\xe7\xe3o","__stack-auto-translation-58":"A descri\xe7\xe3o \xe9 obrigat\xf3ria","__stack-auto-translation-59":"Desativar","__stack-auto-translation-6":"Adicionar","__stack-auto-translation-60":"Desativar MFA","__stack-auto-translation-61":"Desativar OTP","__stack-auto-translation-62":"Nome de exibi\xe7\xe3o","__stack-auto-translation-63":"Quer iniciar sess\xe3o?","__stack-auto-translation-64":"Pretende verificar o seu email?","__stack-auto-translation-65":"N\xe3o tem uma conta?","__stack-auto-translation-66":"N\xe3o precisa redefinir?","__stack-auto-translation-67":"Rascunho","__stack-auto-translation-68":"ex.: Desenvolvimento, Produ\xe7\xe3o, CI/CD","__stack-auto-translation-69":"Email","__stack-auto-translation-7":"Adicione um m\xe9todo de pagamento antes de mudar de plano.","__stack-auto-translation-70":"Email e Palavra-passe","__stack-auto-translation-71":"O email j\xe1 existe","__stack-auto-translation-72":"O email \xe9 obrigat\xf3rio","__stack-auto-translation-73":"A gest\xe3o de emails n\xe3o est\xe1 dispon\xedvel no modo de demonstra\xe7\xe3o.","__stack-auto-translation-74":"Email enviado!","__stack-auto-translation-75":"E-mails","__stack-auto-translation-76":"E-mails e autentica\xe7\xe3o","__stack-auto-translation-77":"Ativar MFA","__stack-auto-translation-78":"Ativar OTP","__stack-auto-translation-79":"Ativar autentica\xe7\xe3o via link m\xe1gico ou OTP enviado para os seus e-mails de in\xedcio de sess\xe3o.","__stack-auto-translation-8":"Adicionar um email","__stack-auto-translation-80":"Terminar a sua sess\xe3o atual","__stack-auto-translation-81":"Insira um nome de exibi\xe7\xe3o para a sua nova equipa","__stack-auto-translation-82":"Introduza o email","__stack-auto-translation-83":"Insira o c\xf3digo do seu email","__stack-auto-translation-84":"Introduza o c\xf3digo de seis d\xedgitos da sua aplica\xe7\xe3o de autentica\xe7\xe3o","__stack-auto-translation-85":"Insira o seu email","__stack-auto-translation-86":"Link M\xe1gica Expirada","__stack-auto-translation-87":"Link de Redefini\xe7\xe3o de Palavra-passe Expirado","__stack-auto-translation-88":"Link de Convite para Equipa Expirado","__stack-auto-translation-89":"Link de Verifica\xe7\xe3o Expirado","__stack-auto-translation-9":"Adicionar nova chave de acesso","__stack-auto-translation-90":"Expira","__stack-auto-translation-91":"Expira Em","__stack-auto-translation-92":"Falha ao autorizar a aplica\xe7\xe3o CLI:","__stack-auto-translation-93":"Falha ao conectar conta","__stack-auto-translation-94":"Falha ao redefinir a palavra-passe","__stack-auto-translation-95":"Falha ao redefinir a palavra-passe. Por favor, solicite um novo link de redefini\xe7\xe3o","__stack-auto-translation-96":"Esqueceu-se da palavra-passe?","__stack-auto-translation-97":"Ir para in\xedcio","__stack-auto-translation-98":"Ir para in\xedcio","__stack-auto-translation-99":"Aqui est\xe1 a sua chave API."})),"zh-CN":new Map(an({"__stack-auto-translation-0":"-","__stack-auto-translation-1":"\u547d\u4ee4\u884c\u5e94\u7528\u7a0b\u5e8f\u6b63\u5728\u8bf7\u6c42\u8bbf\u95ee\u60a8\u7684\u5e10\u6237\u3002\u70b9\u51fb\u4e0b\u65b9\u6309\u94ae\u4ee5\u6388\u6743\u3002","__stack-auto-translation-10":"\u6dfb\u52a0\u60a8\u7684\u90ae\u7bb1\u5730\u5740","__stack-auto-translation-100":"\u6211\u7406\u89e3\u6211\u5c06\u65e0\u6cd5\u518d\u6b21\u67e5\u7
270b\u6b64\u5bc6\u94a5\u3002","__stack-auto-translation-101":"\u5982\u679c\u5b58\u5728\u4f7f\u7528\u6b64\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u7684\u7528\u6237\uff0c\u4e00\u5c01\u7535\u5b50\u90ae\u4ef6\u5df2\u53d1\u9001\u5230\u60a8\u7684\u6536\u4ef6\u7bb1\u3002\u8bf7\u52a1\u5fc5\u68c0\u67e5\u60a8\u7684\u5783\u573e\u90ae\u4ef6\u6587\u4ef6\u5939\u3002","__stack-auto-translation-102":"\u5982\u679c\u60a8\u6ca1\u6709\u88ab\u81ea\u52a8\u91cd\u5b9a\u5411\uff0c","__stack-auto-translation-103":"\u5ffd\u7565","__stack-auto-translation-104":"\u6a21\u62df\u8eab\u4efd","__stack-auto-translation-105":"\u4ee3\u7801\u4e0d\u6b63\u786e\u3002\u8bf7\u91cd\u8bd5\u3002","__stack-auto-translation-106":"\u5bc6\u7801\u4e0d\u6b63\u786e","__stack-auto-translation-107":"\u65e0\u6548\u4ee3\u7801","__stack-auto-translation-108":"\u65e0\u6548\u56fe\u7247","__stack-auto-translation-109":"\u65e0\u6548\u7684\u9b54\u6cd5\u94fe\u63a5","__stack-auto-translation-11":"\u5df2\u6709\u8d26\u6237\uff1f","__stack-auto-translation-110":"\u65e0\u6548\u7684\u5bc6\u7801\u91cd\u7f6e\u94fe\u63a5","__stack-auto-translation-111":"\u65e0\u6548\u7684\u56e2\u961f\u9080\u8bf7\u94fe\u63a5","__stack-auto-translation-112":"\u65e0\u6548\u7684 TOTP \u4ee3\u7801","__stack-auto-translation-113":"\u65e0\u6548\u7684\u9a8c\u8bc1\u94fe\u63a5","__stack-auto-translation-114":"\u901a\u8fc7\u7535\u5b50\u90ae\u4ef6\u9080\u8bf7\u7528\u6237\u52a0\u5165\u60a8\u7684\u56e2\u961f","__stack-auto-translation-115":"\u9080\u8bf7\u6210\u5458","__stack-auto-translation-116":"\u9080\u8bf7\u7528\u6237","__stack-auto-translation-117":"\u53d1\u7968","__stack-auto-translation-118":"\u53d1\u7968","__stack-auto-translation-119":"IP \u5730\u5740","__stack-auto-translation-12":"\u91d1\u989d","__stack-auto-translation-120":"\u52a0\u5165","__stack-auto-translation-121":"\u4e0a\u6b21\u4f7f\u7528","__stack-auto-translation-122":"\u79bb\u5f00","__stack-auto-translation-123":"\u9000\u51fa\u56e2\u961f","__stack-auto-translation-124":"\u79bb\u5f00\u56e2\u961f","__stack-auto-translation-125":"\u79bb\u5f00\u6b64\u56e2\u961f\u5e76\u5220\u9664\u60a8\u7684\u56e2\u961f\u8d44\u6599","__stack-auto-translation-126":"\u4f4d\u7f6e","__stack-auto-translation-127":"\u9b54\u6cd5\u94fe\u63a5\u5df2\u4f7f\u7528","__stack-auto-translation-128":"\u7ba1\u7406\u7528\u4e8e\u8ba2\u9605\u548c\u53d1\u7968\u7684\u9ed8\u8ba4\u4ed8\u6b3e\u65b9\u5f0f\u3002","__stack-auto-translation-129":"\u6210\u5458","__stack-auto-translation-13":"\u53d1\u751f\u672a\u77e5\u9519\u8bef","__stack-auto-translation-130":"\u6f14\u793a\u6a21\u5f0f\u4e0b\u65e0\u6cd5\u4f7f\u7528\u591a\u56e0\u7d20\u8ba4\u8bc1\u7ba1\u7406\u3002","__stack-auto-translation-131":"\u7f3a\u5c11\u9a8c\u8bc1\u4fe1\u606f","__stack-auto-translation-132":"\u591a\u91cd\u8eab\u4efd\u8ba4\u8bc1","__stack-auto-translation-133":"\u591a\u91cd\u8eab\u4efd\u8ba4\u8bc1","__stack-auto-translation-134":"\u591a\u91cd\u8eab\u4efd\u8ba4\u8bc1\u76ee\u524d\u5df2\u7981\u7528\u3002","__stack-auto-translation-135":"\u591a\u91cd\u8eab\u4efd\u9a8c\u8bc1\u76ee\u524d\u5df2\u542f\u7528\u3002","__stack-auto-translation-136":"\u6211\u7684\u4e2a\u4eba\u8d44\u6599","__stack-auto-translation-137":"\u59d3\u540d","__stack-auto-translation-138":"\u4ece\u672a","__stack-auto-translation-139":"\u4e0d\u5141\u8bb8\u6ce8\u518c\u65b0\u8d26\u6237","__stack-auto-translation-14":"API \u5bc6\u94a5","__stack-auto-translation-140":"\u65b0\u5bc6\u7801","__stack-auto-translation-141":"\u65b0\u5bc6\u7801","__stack-auto-translation-142":"\u672a\u627e\u5230\u6d3b\u52a8\u4f1a\u8bdd","__stack-auto-translation-143":"\u672a\u542f\u7528\u4efb\u4f55\u8eab\u4efd\u9a8c\u8bc1\u65b9\u6cd5\u3002","__stack-auto-translation-144":"\u65e0\u9ed8\u8ba4\u652f\u4ed8\u65b9\u5f0f","__stack-auto-translation-145":"\u672a\u8bbe\u7f6e\u663e\u793a\u540d\u79f0","__stack-auto-translation-146":"\u6b64\u8ba2\u9605\u6682\u65e0\u5176\u4ed6\u53ef\u7528\u5957\u9910\u3002","__stack-auto-translation-147":"\u6ca1\u6709\u5f85\u5904\u7406\u9080\u8bf7","__stack-auto-translation-148":"\u65e0\u56e2\u961f","__stack-auto-translation-149":"\u5c1a\u65e0\u56e2\u961f","__stack-auto-translation-15":"API \u5bc6\u94a5","__stack-auto-translation-150":"\u672a\u767b\u5f55","__stack-auto-translation-151":"\u901a\u77e5","__stack-auto-translation-152":"OAuth \u63d0\u4f9b\u5546\u8bbf\u95ee\u88ab\u62d2\u7edd","__stack-auto-translation-153":"\u65e7\u5bc6\u7801","__stack-auto-translation-154":"\u4e00\u6b21\u6027\u5bc6\u7801","__stack-auto-translation-155":"\u4e00\u6b21\u6027\u8d2d\u4e70","__stack-auto-translation-156":"\u5f85\u4ed8\u6b3e","__stack-auto-translation-157":"\u6216\u7ee7\u7eed\u4f7f\u7528","__stack-auto-translation-158":"\u5176\u4ed6\u4f1a\u8bdd","__stack-auto-translation-159":"\u5176\u4ed6\u56e2\u961f","__stack-auto-translation-16":"API \u5bc6\u94a5\u6388\u4e88\u5bf9\u60a8\u8d26\u6237\u7684\u7a0b\u5e8f\u5316\u8bbf\u95ee\u6743\u9650\u3002","__stack-auto-translation-160":"\u6f14\u793a\u6a21\u5f0f\u4e0b\u65e0\u6cd5\u7ba1\u7406\u4e00\u6b21\u6027\u5bc6\u7801\u3002","__stack-auto-translation-161":"OTP \u767b\u5f55","__stack-auto-translation-162":"\u5df2\u542f\u7528 OTP \u767b\u5f55\uff0c\u4e14\u65e0\u6cd5\u7981\u7528\uff0c\u56e0\u4e3a\u5b83\u76ee\u524d\u662f\u552f\u4e00\u7684\u767b\u5f55\u65b9\u5f0f","__stack-auto-translation-163":"OTP/\u9b54\u6cd5\u94fe\u63a5\u767b\u5f55\u76ee\u524d\u5df2\u542f\u7528\u3002","__stack-auto-translation-164":"\u5f85\u5904\u7406\u9080\u8bf7","__stack-auto-translation-165":"\u5728\u8fd9\u4e2a\u56e2\u961f\u4e2d\u8986\u76d6\u4f60\u7684\u7528\u6237\u663e\u793a\u540d\u79f0","__stack-auto-translation-166":"\u5df2\u652f\u4ed8","__stack-auto-translation-167":"\u5bc6\u94a5","__stack-auto-translation-168":"\u5bc6\u94a5\u7ba1\u7406\u5728\u6f14\u793a\u6a21\u5f0f\u4e0b\u4e0d\u53ef\u7528\u3002","__stack-auto-translation-169":"\u5bc6\u94a5\u5df2\u6ce8\u518c","__stack-auto-translation-17":"API \u5bc6\u94a5\u6388\u4e88\u5bf9\u60a8\u56e2\u961f\u7684\u7f16\u7a0b\u8bbf\u95ee\u6743\u9650\u3002","__stack-auto-translation-170":"\u5bc6\u94a5\u767b\u5f55\u5df2\u542f\u7528\uff0c\u4e14\u65e0\u6cd5\u7981\u7528\uff0c\u56e0\u4e3a\u5b83\u76ee\u524d\u662f\u552f\u4e00\u7684\u767b\u5f55\u65b9\u5f0f","__stack-auto-translation-171":"\u5bc6\u7801","__stack-auto-translation-172":"\u6f14\u793a\u6a21\u5f0f\u4e0b\u65e0\u6cd5\u7ba1\u7406\u5bc6\u7801\u3002","__stack-auto-translation-173":"\u5bc6\u7801\u91cd\u7f6e\u6210\u529f\uff01","__stack-auto-translation-174":"\u5bc6\u7801\u4e0d\u5339\u914d","__stack-auto-translation-175":"\u652f\u4ed8\u65b9\u5f0f","__stack-auto-translation-176":"\u652f\u4ed8","__stack-auto-translation-177":"\u6c38\u4e45\u5220\u9664\u60a8\u7684\u8d26\u6237\u548c\u6240\u6709\u76f8\u5173\u6570\u636e","__stack-auto-translation-178":"\u4e2a\u4eba","__stack-auto-translation-179":"\u8bf7\u6dfb\u52a0\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u4ee5\u5b8c\u6210\u8d26\u6237\u8bbe\u7f6e\u3002\u6211\u4eec\u5c06\u5411\u60a8\u53d1\u9001\u9a8c\u8bc1\u90ae\u4ef6\u3002","__stack-auto-translation-18":"\u60a8\u786e\u5b9a\u8981\u5220\u9664\u60a8\u7684\u8d26\u6237\u5417\uff1f\u6b64\u64cd\u4f5c\u4e0d\u53ef\u9006\uff0c\u5c06\u5220\u9664\u6240\u6709\u76f8\u5173\u6570\u636e\u3002","__stack-auto-translation-180":"\u8bf7\u68c0\u67e5\u60a8\u662f\u5426\u6709\u6b63\u786e\u7684\u94fe\u63a5\u3002\u5982\u679c\u7ee7\u7eed\u9047\u5230\u95ee\u9898\uff0c\u8bf7\u8054\u7cfb\u652f\u6301\u4eba\u5458\u3002","__stack-auto-translation-181":"\u8bf7\u67e5\u7
270b\u60a8\u7684\u90ae\u7bb1\u6536\u4ef6\u7bb1","__stack-auto-translation-182":"\u8bf7\u5148\u5b8c\u6210\u8d26\u6237\u8bbe\u7f6e\uff0c\u7136\u540e\u518d\u52a0\u5165\u56e2\u961f\u3002","__stack-auto-translation-183":"\u8bf7\u518d\u6b21\u786e\u8ba4\u60a8\u662f\u5426\u6709\u6b63\u786e\u7684\u5bc6\u7801\u91cd\u7f6e\u94fe\u63a5\u3002","__stack-auto-translation-184":"\u8bf7\u518d\u6b21\u786e\u8ba4\u60a8\u662f\u5426\u62e5\u6709\u6b63\u786e\u7684\u56e2\u961f\u9080\u8bf7\u94fe\u63a5\u3002","__stack-auto-translation-185":"\u8bf7\u8f93\u5165\u56e2\u961f\u540d\u79f0","__stack-auto-translation-186":"\u8bf7\u8f93\u5165\u6709\u6548\u7684\u90ae\u7bb1","__stack-auto-translation-187":"\u8bf7\u8f93\u5165\u6709\u6548\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740","__stack-auto-translation-188":"\u8bf7\u8f93\u5165\u7535\u5b50\u90ae\u4ef6\u5730\u5740","__stack-auto-translation-189":"\u8bf7\u8f93\u5165\u60a8\u7684\u90ae\u7bb1","__stack-auto-translation-19":"\u60a8\u786e\u5b9a\u8981\u7981\u7528 OTP \u767b\u5f55\u5417\uff1f\u7981\u7528\u540e\uff0c\u60a8\u5c06\u65e0\u6cd5\u4ec5\u4f7f\u7528\u7535\u5b50\u90ae\u7bb1\u767b\u5f55\u3002","__stack-auto-translation-190":"\u8bf7\u8f93\u5165\u60a8\u7684\u65e7\u5bc6\u7801","__stack-auto-translation-191":"\u8bf7\u8f93\u5165\u60a8\u7684\u5bc6\u7801","__stack-auto-translation-192":"\u8bf7\u91cd\u590d\u8f93\u5165\u5bc6\u7801","__stack-auto-translation-193":"\u8bf7\u91cd\u8bd5\uff0c\u5982\u679c\u95ee\u9898\u4ecd\u7136\u5b58\u5728\uff0c\u8bf7\u8054\u7cfb\u5ba2\u670d\u3002","__stack-auto-translation-194":"\u8bf7\u9a8c\u8bc1\u60a8\u7684\u90ae\u7bb1\u5730\u5740","__stack-auto-translation-195":"\u8bf7\u5148\u9a8c\u8bc1\u60a8\u7684\u7535\u5b50\u90ae\u7bb1","__stack-auto-translation-196":"\u4e3b\u8981","__stack-auto-translation-197":"\u4e13\u4e1a\u7248","__stack-auto-translation-198":"\u5934\u50cf","__stack-auto-translation-199":"\u6ce8\u518c\u5bc6\u94a5","__stack-auto-translation-2":"\u8d26\u6237\u8bbe\u7f6e","__stack-auto-translation-20":"\u60a8\u786e\u5b9a\u8981\u7981\u7528\u5bc6\u94a5\u767b\u5f55\u5417\uff1f\u7981\u7528\u540e\uff0c\u60a8\u5c06\u65e0\u6cd5\u518d\u4f7f\u7528\u5bc6\u94a5\u767b\u5f55\u3002","__stack-auto-translation-200":"\u5220\u9664","__stack-auto-translation-201":"\u7eed\u8ba2\u65e5\u671f","__stack-auto-translation-202":"\u91cd\u590d\u65b0\u5bc6\u7801","__stack-auto-translation-203":"\u91cd\u590d\u65b0\u5bc6\u7801","__stack-auto-translation-204":"\u91cd\u590d\u5bc6\u7801","__stack-auto-translation-205":"\u91cd\u65b0\u53d1\u9001\u9a8c\u8bc1\u90ae\u4ef6","__stack-auto-translation-206":"\u91cd\u7f6e\u5bc6\u7801","__stack-auto-translation-207":"\u91cd\u7f6e\u60a8\u7684\u5bc6\u7801","__stack-auto-translation-208":"\u67e5\u770b\u5386\u53f2\u53d1\u7968\u548c\u6536\u636e\u3002","__stack-auto-translation-209":"\u64a4\u9500","__stack-auto-translation-21":"\u60a8\u786e\u5b9a\u8981\u79bb\u5f00\u56e2\u961f\u5417\uff1f","__stack-auto-translation-210":"\u64a4\u9500\u6240\u6709\u5176\u4ed6\u4f1a\u8bdd","__stack-auto-translation-211":"\u4fdd\u5b58","__stack-auto-translation-212":"\u4f7f\u7528\u60a8\u7684\u8eab\u4efd\u9a8c\u8bc1\u5668\u5e94\u7528\u626b\u63cf\u6b64\u4e8c\u7ef4\u7801\uff1a","__stack-auto-translation-213":"\u5bc6\u94a5 API \u5bc6\u94a5","__stack-auto-translation-214":"\u4ece\u540c\u4e00\u4ea7\u54c1\u7ebf\u4e2d\u9009\u62e9\u65b0\u7684\u5957\u9910\u3002","__stack-auto-translation-215":"\u53d1\u9001\u90ae\u4ef6","__stack-auto-translation-216":"\u53d1\u9001\u90ae\u4ef6","__stack-auto-translation-217":"\u53d1\u9001\u9a8c\u8bc1\u90ae\u4ef6","__stack-auto-translation-218":"\u4f1a\u8bdd","__stack-auto-translation-219":"\u4e3a\u60a8\u7684\u8d26\u6237\u8bbe\u7f6e\u5bc6\u7801","__stack-auto-translation-22":"\u6388\u6743\u5931\u8d25","__stack-auto-translation-220":"\u8bbe\u7f6e\u4e3a\u4e3b\u8981","__stack-auto-translation-221":"\u8bbe\u7f6e\u5bc6\u7801","__stack-auto-translation-222":"\u8bbe\u7f6e\u5bc6\u7801","__stack-auto-translation-223":"\u8bbe\u7f6e","__stack-auto-translation-224":"\u767b\u5f55","__stack-auto-translation-225":"\u767b\u5f55","__stack-auto-translation-226":"\u518d\u6b21\u767b\u5f55","__stack-auto-translation-227":"\u767b\u5f55\u6216\u521b\u5efa\u8d26\u6237\u4ee5\u52a0\u5165\u56e2\u961f\u3002","__stack-auto-translation-228":"\u767b\u5f55\u60a8\u7684\u5e10\u6237","__stack-auto-translation-229":"\u4f7f\u7528\u5bc6\u94a5\u767b\u5f55","__stack-auto-translation-23":"\u6388\u6743","__stack-auto-translation-230":"\u4f7f\u7528{provider}\u767b\u5f55","__stack-auto-translation-231":"\u9000\u51fa\u767b\u5f55","__stack-auto-translation-232":"\u6ce8\u518c","__stack-auto-translation-233":"\u6ce8\u518c","__stack-auto-translation-234":"\u76ee\u524d\u4e0d\u5141\u8bb8\u65b0\u7528\u6237\u6ce8\u518c\u3002","__stack-auto-translation-235":"\u4f7f\u7528\u901a\u884c\u5bc6\u94a5\u6ce8\u518c","__stack-auto-translation-236":"\u7528 {provider} \u6ce8\u518c","__stack-auto-translation-237":"\u767b\u5f55\u6210\u529f\uff01","__stack-auto-translation-238":"\u767b\u5f55\u4e8e {time}","__stack-auto-translation-239":"\u5904\u7406 OAuth \u56de\u8c03\u65f6\u51fa\u73b0\u9519\u8bef\uff1a","__stack-auto-translation-24":"\u6388\u6743\u547d\u4ee4\u884c\u5e94\u7528\u7a0b\u5e8f","__stack-auto-translation-240":"\u72b6\u6001","__stack-auto-translation-241":"\u505c\u6b62\u4f7f\u7528\u767b\u5f55","__stack-auto-translation-242":"\u8ba2\u9605","__stack-auto-translation-243":"\u5207\u6362\u5957\u9910","__stack-auto-translation-244":"\u6f14\u793a\u6a21\u5f0f\u4e0b\u5df2\u7981\u7528\u56e2\u961f\u521b\u5efa","__stack-auto-translation-245":"\u56e2\u961f\u521b\u5efa\u672a\u542f\u7528","__stack-auto-translation-246":"\u56e2\u961f\u663e\u793a\u540d\u79f0","__stack-auto-translation-247":"\u56e2\u961f\u9080\u8bf7","__stack-auto-translation-248":"\u56e2\u961f\u5934\u50cf","__stack-auto-translation-249":"\u56e2\u961f\u7528\u6237\u540d","__stack-auto-translation-25":"\u6b63\u5728\u6388\u6743...","__stack-auto-translation-250":"\u56e2\u961f","__stack-auto-translation-251":"CLI \u5e94\u7528\u5df2\u6210\u529f\u6388\u6743\u3002\u60a8\u53ef\u4ee5\u5173\u95ed\u6b64\u7a97\u53e3\u5e76\u8fd4\u56de\u547d\u4ee4\u884c\u3002","__stack-auto-translation-252":"\u9b54\u6cd5\u94fe\u63a5\u5df2\u88ab\u4f7f\u7528\u3002\u8be5\u94fe\u63a5\u53ea\u80fd\u4f7f\u7528\u4e00\u6b21\u3002\u5982\u679c\u9700\u8981\u518d\u6b21\u767b\u5f55\uff0c\u8bf7\u91cd\u65b0\u7533\u8bf7\u4e00\u4e2a\u65b0\u7684\u9b54\u6cd5\u94fe\u63a5\u3002","__stack-auto-translation-253":"\u767b\u5f55\u64cd\u4f5c\u5df2\u88ab\u53d6\u6d88\u6216\u62d2\u7edd\u3002\u8bf7\u91cd\u8bd5\u3002","__stack-auto-translation-254":"\u7528\u6237\u5df2\u8fde\u
263a5\u5230\u53e6\u4e00\u4e2a OAuth \u8d26\u6237\u3002\u60a8\u662f\u5426\u5728 OAuth \u63d0\u4f9b\u5546\u9875\u9762\u4e0a\u9009\u62e9\u4e86\u9519\u8bef\u7684\u8d26\u6237\uff1f","__stack-auto-translation-255":"\u7136\u540e\uff0c\u8f93\u5165\u60a8\u7684\u516d\u4f4d\u6570 MFA \u7801\uff1a","__stack-auto-translation-256":"\u8fd9\u4e9b\u662f\u60a8\u5f53\u524d\u5df2\u767b\u5f55\u7684\u8bbe\u5907\u3002\u60a8\u53ef\u4ee5\u64a4\u9500\u8bbf\u95ee\u6743\u9650\u4ee5\u7ed3\u675f\u4f1a\u8bdd\u3002","__stack-auto-translation-257":"\u6b64\u5e10\u6237\u5df2\u4e0e\u53e6\u4e00\u7528\u6237\u5173\u8054\u3002\u8bf7\u8fde\u63a5\u5176\u4ed6\u5e10\u6237\u3002","__stack-auto-translation-258":"\u6b64\u7535\u5b50\u90ae\u7bb1\u5df2\u88ab\u53e6\u4e00\u7528\u6237\u7528\u4e8e\u767b\u5f55\u3002","__stack-auto-translation-259":"\u8fd9\u662f\u663e\u793a\u540d\u79f0\uff0c\u4e0d\u7528\u4e8e\u8eab\u4efd\u9a8c\u8bc1","__stack-auto-translation-26":"\u53d6\u6d88","__stack-auto-translation-260":"\u8fd9\u5f88\u53ef\u80fd\u662f Stack \u4e2d\u7684\u9519\u8bef\u3002\u8bf7\u62a5\u544a\u6b64\u95ee\u9898\u3002","__stack-auto-translation-261":"\u6b64\u5bc6\u7801\u91cd\u7f6e\u94fe\u63a5\u5df2\u88ab\u4f7f\u7528\u3002\u5982\u679c\u60a8\u9700\u8981\u518d\u6b21\u91cd\u7f6e\u5bc6\u7801\uff0c\u8bf7\u4ece\u767b\u5f55\u9875\u9762\u8bf7\u6c42\u65b0\u7684\u5bc6\u7801\u91cd\u7f6e\u94fe\u63a5\u3002","__stack-auto-translation-262":"\u6b64\u56e2\u961f\u9080\u8bf7\u94fe\u63a5\u5df2\u88ab\u4f7f\u7528\u3002","__stack-auto-translation-263":"\u8981\u542f\u7528 OTP \u767b\u5f55\uff0c\u8bf7\u6dfb\u52a0\u5df2\u9a8c\u8bc1\u7684\u767b\u5f55\u90ae\u7bb1\u3002","__stack-auto-translation-264":"\u8981\u542f\u7528\u901a\u884c\u5bc6\u94a5\u767b\u5f55\uff0c\u8bf7\u6dfb\u52a0\u5df2\u9a8c\u8bc1\u7684\u767b\u5f55\u90ae\u7bb1\u3002","__stack-auto-translation-265":"\u8981\u8bbe\u7f6e\u5bc6\u7801\uff0c\u8bf7\u5148\u6dfb\u52a0\u767b\u5f55\u90ae\u7bb1\u3002","__stack-auto-translation-266":"\u5207\u6362\u4e3b\u9898","__stack-auto-translation-267":"TOTP \u591a\u91cd\u8eab\u4efd\u8ba4\u8bc1\u4e8c\u7ef4\u7801","__stack-auto-translation-268":"\u91cd\u8bd5","__stack-auto-translation-269":"\u4e0d\u53ef\u7528","__stack-auto-translation-27":"\u53d6\u6d88\u8ba2\u9605","__stack-auto-translation-270":"\u65e0\u6cd5\u6536\u6b3e","__stack-auto-translation-271":"\u672a\u77e5","__stack-auto-translation-272":"\u672a\u9a8c\u8bc1","__stack-auto-translation-273":"\u66f4\u65b0\u5bc6\u7801","__stack-auto-translation-274":"\u66f4\u65b0\u5bc6\u7801","__stack-auto-translation-275":"\u66f4\u65b0\u4ed8\u6b3e\u65b9\u5f0f","__stack-auto-translation-276":"\u66f4\u65b0\u60a8\u7684\u5bc6\u7801","__stack-auto-translation-277":"\u4e3a\u56e2\u961f\u4e0a\u4f20\u56fe\u7247","__stack-auto-translation-278":"\u4e0a\u4f20\u60a8\u81ea\u5df1\u7684\u56fe\u50cf\u4f5c\u4e3a\u5934\u50cf","__stack-auto-translation-279":"\u7528\u4e8e\u767b\u5f55","__stack-auto-translation-28":"\u53d6\u6d88\u540e\u5c06\u505c\u6b62\u6b64\u8ba2\u9605\u7684\u540e\u7eed\u7eed\u8d39\u3002","__stack-auto-translation-280":"\u7528\u4e8e\u767b\u5f55","__stack-auto-translation-281":"\u5df2\u4f7f\u7528\u7684\u5bc6\u7801\u91cd\u7f6e\u94fe\u63a5","__stack-auto-translation-282":"\u5df2\u4f7f\u7528\u7684\u56e2\u961f\u9080\u8bf7\u94fe\u63a5","__stack-auto-translation-283":"\u7528\u6237","__stack-auto-translation-284":"\u7528\u6237\u540d","__stack-auto-translation-285":"\u9a8c\u8bc1\u5931\u8d25","__stack-auto-translation-286":"\u5df2\u9a8c\u8bc1\uff01\u6b63\u5728\u91cd\u5b9a\u5411...","__stack-auto-translation-287":"\u9a8c\u8bc1","__stack-auto-translation-288":"\u9a8c\u8bc1\u4e2d...","__stack-auto-translation-289":"\u67e5\u770b","__stack-auto-translation-29":"\u66f4\u6539","__stack-auto-translation-290":"\u67e5\u770b\u60a8\u7684\u6d3b\u52a8\u5957\u9910\u548c\u8d2d\u4e70\u8bb0\u5f55\u3002","__stack-auto-translation-291":"\u4f5c\u5e9f","__stack-auto-translation-292":"\u8b66\u544a\uff1a\u8bf7\u786e\u4fdd\u60a8\u4fe1\u4efb\u8be5\u547d\u4ee4\u884c\u5e94\u7528\u7a0b\u5e8f\uff0c\u56e0\u4e3a\u5b83\u5c06\u83b7\u5f97\u60a8\u8d26\u6237\u7684\u8bbf\u95ee\u6743\u9650\u3002\u5982\u679c\u60a8\u672a\u53d1\u8d77\u6b64\u8bf7\u6c42\uff0c\u53ef\u4ee5\u5173\u95ed\u6b64\u9875\u9762\u5e76\u5ffd\u7565\u5b83\u3002\u6211\u4eec\u7edd\u4e0d\u4f1a\u901a\u8fc7\u7535\u5b50\u90ae\u7bb1\u6216\u5176\u4ed6\u65b9\u5f0f\u5411\u60a8\u53d1\u9001\u6b64\u94fe\u63a5\u3002","__stack-auto-translation-293":"\u60a8\u5df2\u7ecf\u767b\u5f55","__stack-auto-translation-294":"\u60a8\u5f53\u524d\u672a\u767b\u5f55\u3002","__stack-auto-translation-295":"\u4f60\u4e0d\u80fd\u5220\u9664\u6700\u540e\u4e00\u4e2a\u7528\u4e8e\u767b\u5f55\u7684\u7535\u5b50\u90ae\u7bb1","__stack-auto-translation-296":"\u4f60\u4e0d\u80fd\u64a4\u9500\u5f53\u524d\u4f1a\u8bdd","__stack-auto-translation-297":"\u60a8\u7684\u90ae\u7bb1\u5df2\u9a8c\u8bc1\uff01","__stack-auto-translation-298":"\u60a8\u5c1a\u672a\u5b8c\u6210\u8d26\u6237\u8bbe\u7f6e\u3002\u5982\u679c\u60a8\u8ba4\u4e3a\u8fd9\u662f\u9519\u8bef\uff0c\u8bf7\u8054\u7cfb\u652f\u6301\u56e2\u961f\u3002","__stack-auto-translation-299":"\u60a8\u7684\u90ae\u7bb1","__stack-auto-translation-3":"\u8d26\u6237\u8bbe\u7f6e","__stack-auto-translation-30":"\u66f4\u6539\u5957\u9910","__stack-auto-translation-300":"\u60a8\u7684\u90ae\u7bb1\u9a8c\u8bc1\u94fe\u63a5\u5df2\u8fc7\u671f\u3002\u8bf7\u4ece\u60a8\u7684\u8d26\u6237\u8bbe\u7f6e\u4e2d\u91cd\u65b0\u8bf7\u6c42\u4e00\u4e2a\u65b0\u7684\u9a8c\u8bc1\u94fe\u63a5\u3002","__stack-auto-translation-301":"\u60a8\u7684\u9b54\u6cd5\u94fe\u63a5\u5df2\u8fc7\u671f\u3002\u5982\u679c\u60a8\u9700\u8981\u767b\u5f55\uff0c\u8bf7\u7533\u8bf7\u4e00\u4e2a\u65b0\u7684\u9b54\u6cd5\u94fe\u63a5\u3002","__stack-auto-translation-302":"\u60a8\u7684\u5bc6\u7801\u5df2\u91cd\u7f6e\u3002\u60a8\u73b0\u5728\u53ef\u4ee5\u4f7f\u7528\u65b0\u5bc6\u7801\u767b\u5f55\u3002","__stack-auto-translation-303":"\u60a8\u7684\u5bc6\u7801\u91cd\u7f6e\u94fe\u63a5\u5df2\u8fc7\u671f\u3002\u8bf7\u4ece\u767b\u5f55\u9875\u9762\u7533\u8bf7\u65b0\u7684\u5bc6\u7801\u91cd\u7f6e\u94fe\u63a5\u3002","__stack-auto-translation-304":"\u60a8\u7684\u56e2\u961f\u9080\u8bf7\u94fe\u63a5\u5df2\u8fc7\u671f\u3002\u8bf7\u7533\u8bf7\u65b0\u7684\u56e2\u961f\u9080\u8bf7\u94fe\u63a5","__stack-auto-translation-31":"\u66f4\u6539\u56e2\u961f\u663e\u793a\u540d\u79f0","__stack-auto-translation-32":"\u9009\u62e9\u5957\u9910","__stack-auto-translation-33":"\u9009\u62e9\u60a8\u60f3\u8981\u63a5\u6536\u7684\u7535\u5b50\u90ae\u4ef6","__stack-auto-translation-34":"CLI \u6388\u6743\u6210\u529f","__stack-auto-translation-35":"\u70b9\u51fb\u6b64\u5904","__stack-auto-translation-36":"\u70b9\u51fb\u4e0b\u65b9\u6309\u94ae\u91cd\u65b0\u53d1\u9001\u9a8c\u8bc1\u94fe\u63a5\u3002","__stack-auto-translation-37":"\u5173\u95ed","__stack-auto-translation-38":"\u5b8c\u6210\u8bbe\u7f6e","__stack-auto-translation-39":"\u5b8c\u6210\u8d26\u6237\u8bbe\u7f6e","__stack-auto-translation-4":"\u6d3b\u8dc3\u5957\u9910","__stack-auto-translation-40":"\u786e\u8ba4","__stack-auto-translation-41":"\u7ee7\u7eed","__stack-auto-translation-42":"\u5c06\u5176\u590d\u5236\u5230\u5b89\u5168\u7684\u5730\u65b9\u3002\u60a8\u5c06\u65e0\u6cd5\u518d\u6b21\u67e5\u7
270b\u5b83\u3002","__stack-auto-translation-43":"\u65e0\u6cd5\u88c1\u526a\u56fe\u7247\u3002","__stack-auto-translation-44":"\u521b\u5efa","__stack-auto-translation-45":"\u521b\u5efa\u65b0\u8d26\u6237","__stack-auto-translation-46":"\u521b\u5efa\u56e2\u961f","__stack-auto-translation-47":"\u521b\u5efa\u56e2\u961f","__stack-auto-translation-48":"\u521b\u5efa API \u5bc6\u94a5","__stack-auto-translation-49":"\u79ef\u5206\u5305","__stack-auto-translation-5":"\u6d3b\u52a8\u4f1a\u8bdd","__stack-auto-translation-50":"\u5f53\u524d\u4f1a\u8bdd","__stack-auto-translation-51":"\u5f53\u524d\u56e2\u961f","__stack-auto-translation-52":"\u5371\u9669\u533a\u57df","__stack-auto-translation-53":"\u65e5\u671f","__stack-auto-translation-54":"\u5220\u9664\u8d26\u6237","__stack-auto-translation-55":"\u5220\u9664\u8d26\u6237","__stack-auto-translation-56":"\u5220\u9664\u5bc6\u94a5","__stack-auto-translation-57":"\u63cf\u8ff0","__stack-auto-translation-58":"\u63cf\u8ff0\u662f\u5fc5\u9700\u7684","__stack-auto-translation-59":"\u7981\u7528","__stack-auto-translation-6":"\u6dfb\u52a0","__stack-auto-translation-60":"\u7981\u7528 MFA","__stack-auto-translation-61":"\u7981\u7528 OTP","__stack-auto-translation-62":"\u663e\u793a\u540d\u79f0","__stack-auto-translation-63":"\u60a8\u8981\u767b\u5f55\u5417\uff1f","__stack-auto-translation-64":"\u60a8\u60f3\u9a8c\u8bc1\u60a8\u7684\u90ae\u7bb1\u5417\uff1f","__stack-auto-translation-65":"\u8fd8\u6ca1\u6709\u8d26\u53f7\uff1f","__stack-auto-translation-66":"\u4e0d\u9700\u8981\u91cd\u7f6e\uff1f","__stack-auto-translation-67":"\u8349\u7a3f","__stack-auto-translation-68":"\u4f8b\u5982\uff1a\u5f00\u53d1\u73af\u5883\u3001\u751f\u4ea7\u73af\u5883\u3001CI/CD","__stack-auto-translation-69":"\u90ae\u7bb1","__stack-auto-translation-7":"\u5207\u6362\u5957\u9910\u524d\u8bf7\u5148\u6dfb\u52a0\u652f\u4ed8\u65b9\u5f0f\u3002","__stack-auto-translation-70":"\u90ae\u7bb1\u548c\u5bc6\u7801","__stack-auto-translation-71":"\u7535\u5b50\u90ae\u7bb1\u5df2\u5b58\u5728","__stack-auto-translation-72":"\u90ae\u7bb1\u5fc5\u586b","__stack-auto-translation-73":"\u90ae\u7bb1\u7ba1\u7406\u5728\u6f14\u793a\u6a21\u5f0f\u4e0b\u4e0d\u53ef\u7528\u3002","__stack-auto-translation-74":"\u90ae\u4ef6\u5df2\u53d1\u9001\uff01","__stack-auto-translation-75":"\u7535\u5b50\u90ae\u4ef6","__stack-auto-translation-76":"\u7535\u5b50\u90ae\u4ef6\u548c\u8eab\u4efd\u9a8c\u8bc1","__stack-auto-translation-77":"\u542f\u7528 MFA","__stack-auto-translation-78":"\u542f\u7528 OTP","__stack-auto-translation-79":"\u542f\u7528\u901a\u8fc7\u9b54\u6cd5\u94fe\u63a5\u6216\u53d1\u9001\u5230\u60a8\u7684\u767b\u5f55\u90ae\u7bb1\u7684\u4e00\u6b21\u6027\u5bc6\u7801\u8fdb\u884c\u767b\u5f55\u3002","__stack-auto-translation-8":"\u6dfb\u52a0\u7535\u5b50\u90ae\u4ef6","__stack-auto-translation-80":"\u7ed3\u675f\u60a8\u7684\u5f53\u524d\u4f1a\u8bdd","__stack-auto-translation-81":"\u4e3a\u60a8\u7684\u65b0\u56e2\u961f\u8f93\u5165\u663e\u793a\u540d\u79f0","__stack-auto-translation-82":"\u8f93\u5165\u90ae\u7bb1","__stack-auto-translation-83":"\u8f93\u5165\u60a8\u90ae\u7bb1\u4e2d\u7684\u9a8c\u8bc1\u7801","__stack-auto-translation-84":"\u8f93\u5165\u60a8\u8eab\u4efd\u9a8c\u8bc1\u5e94\u7528\u4e2d\u7684\u516d\u4f4d\u6570\u4ee3\u7801","__stack-auto-translation-85":"\u8f93\u5165\u60a8\u7684\u90ae\u7bb1","__stack-auto-translation-86":"\u8fc7\u671f\u7684\u9b54\u6cd5\u94fe\u63a5","__stack-auto-translation-87":"\u5bc6\u7801\u91cd\u7f6e\u94fe\u63a5\u5df2\u8fc7\u671f","__stack-auto-translation-88":"\u8fc7\u671f\u7684\u56e2\u961f\u9080\u8bf7\u94fe\u63a5","__stack-auto-translation-89":"\u9a8c\u8bc1\u94fe\u63a5\u5df2\u8fc7\u671f","__stack-auto-translation-9":"\u6dfb\u52a0\u65b0\u5bc6\u94a5","__stack-auto-translation-90":"\u5230\u671f","__stack-auto-translation-91":"\u5230\u671f\u65f6\u95f4","__stack-auto-translation-92":"\u65e0\u6cd5\u6388\u6743 CLI \u5e94\u7528\u7a0b\u5e8f\uff1a","__stack-auto-translation-93":"\u65e0\u6cd5\u8fde\u63a5\u5e10\u6237","__stack-auto-translation-94":"\u91cd\u7f6e\u5bc6\u7801\u5931\u8d25","__stack-auto-translation-95":"\u5bc6\u7801\u91cd\u7f6e\u5931\u8d25\u3002\u8bf7\u91cd\u65b0\u7533\u8bf7\u5bc6\u7801\u91cd\u7f6e\u94fe\u63a5","__stack-auto-translation-96":"\u5fd8\u8bb0\u5bc6\u7801\uff1f","__stack-auto-translation-97":"\u8fd4\u56de\u4e3b\u9875","__stack-auto-translation-98":"\u8fd4\u56de\u4e3b\u9875","__stack-auto-translation-99":"\u8fd9\u662f\u60a8\u7684 API \u5bc6\u94a5\u3002"})),"zh-TW":new Map(an({"__stack-auto-translation-0":"-","__stack-auto-translation-1":"\u547d\u4ee4\u5217\u61c9\u7528\u7a0b\u5e8f\u6b63\u5728\u8acb\u6c42\u8a2a\u554f\u60a8\u7684\u5e33\u6236\u3002\u9ede\u64ca\u4e0b\u65b9\u6309\u9215\u4ee5\u6388\u6b0a\u3002","__stack-auto-translation-10":"\u65b0\u589e\u60a8\u7684\u96fb\u5b50\u90f5\u4ef6\u5730\u5740","__stack-auto-translation-100":"\u6211\u4e86\u89e3\u6211\u5c07\u7121\u6cd5\u518d\u6b21\u67e5\u7
270b\u6b64\u91d1\u9470\u3002","__stack-auto-translation-101":"\u5982\u679c\u6b64\u96fb\u5b50\u90f5\u4ef6\u5730\u5740\u7684\u4f7f\u7528\u8005\u5b58\u5728\uff0c\u4e00\u5c01\u96fb\u5b50\u90f5\u4ef6\u5df2\u767c\u9001\u5230\u60a8\u7684\u6536\u4ef6\u7bb1\u3002\u8acb\u52d9\u5fc5\u6aa2\u67e5\u60a8\u7684\u5783\u573e\u90f5\u4ef6\u8cc7\u6599\u593e\u3002","__stack-auto-translation-102":"\u5982\u679c\u60a8\u6c92\u6709\u81ea\u52d5\u91cd\u65b0\u5c0e\u5411\uff0c","__stack-auto-translation-103":"\u5ffd\u7565","__stack-auto-translation-104":"\u6a21\u64ec\u8eab\u4efd","__stack-auto-translation-105":"\u4ee3\u78bc\u4e0d\u6b63\u78ba\u3002\u8acb\u518d\u8a66\u4e00\u6b21\u3002","__stack-auto-translation-106":"\u5bc6\u78bc\u4e0d\u6b63\u78ba","__stack-auto-translation-107":"\u9a57\u8b49\u78bc\u7121\u6548","__stack-auto-translation-108":"\u7121\u6548\u7684\u5716\u7247","__stack-auto-translation-109":"\u7121\u6548\u7684\u9b54\u6cd5\u9023\u7d50","__stack-auto-translation-11":"\u5df2\u7d93\u6709\u5e33\u865f\u4e86\u55ce\uff1f","__stack-auto-translation-110":"\u7121\u6548\u7684\u5bc6\u78bc\u91cd\u8a2d\u9023\u7d50","__stack-auto-translation-111":"\u7121\u6548\u7684\u5718\u968a\u9080\u8acb\u9023\u7d50","__stack-auto-translation-112":"\u7121\u6548\u7684 TOTP \u4ee3\u78bc","__stack-auto-translation-113":"\u7121\u6548\u7684\u9a57\u8b49\u9023\u7d50","__stack-auto-translation-114":"\u900f\u904e\u96fb\u5b50\u90f5\u4ef6\u9080\u8acb\u4f7f\u7528\u8005\u52a0\u5165\u60a8\u7684\u5718\u968a","__stack-auto-translation-115":"\u9080\u8acb\u6210\u54e1","__stack-auto-translation-116":"\u9080\u8acb\u7528\u6236","__stack-auto-translation-117":"\u767c\u7968","__stack-auto-translation-118":"\u767c\u7968","__stack-auto-translation-119":"IP \u4f4d\u5740","__stack-auto-translation-12":"\u91d1\u984d","__stack-auto-translation-120":"\u52a0\u5165","__stack-auto-translation-121":"\u6700\u5f8c\u4f7f\u7528","__stack-auto-translation-122":"\u96e2\u958b","__stack-auto-translation-123":"\u96e2\u958b\u5718\u968a","__stack-auto-translation-124":"\u96e2\u958b\u5718\u968a","__stack-auto-translation-125":"\u96e2\u958b\u6b64\u5718\u968a\u4e26\u79fb\u9664\u60a8\u7684\u5718\u968a\u6a94\u6848","__stack-auto-translation-126":"\u4f4d\u7f6e","__stack-auto-translation-127":"\u9b54\u6cd5\u9023\u7d50\u5df2\u88ab\u4f7f\u7528","__stack-auto-translation-128":"\u7ba1\u7406\u8a02\u95b1\u548c\u5e33\u55ae\u4f7f\u7528\u7684\u9810\u8a2d\u4ed8\u6b3e\u65b9\u5f0f\u3002","__stack-auto-translation-129":"\u6210\u54e1","__stack-auto-translation-13":"\u767c\u751f\u672a\u77e5\u932f\u8aa4","__stack-auto-translation-130":"\u591a\u91cd\u56e0\u7d20\u8a8d\u8b49\u7ba1\u7406\u5728\u6f14\u793a\u6a21\u5f0f\u4e0b\u4e0d\u53ef\u7528\u3002","__stack-auto-translation-131":"\u7f3a\u5c11\u9a57\u8b49\u8cc7\u8a0a","__stack-auto-translation-132":"\u591a\u91cd\u8981\u7d20\u9a57\u8b49","__stack-auto-translation-133":"\u591a\u91cd\u8981\u7d20\u9a57\u8b49","__stack-auto-translation-134":"\u76ee\u524d\u5df2\u505c\u7528\u591a\u91cd\u8981\u7d20\u9a57\u8b49\u3002","__stack-auto-translation-135":"\u76ee\u524d\u5df2\u555f\u7528\u591a\u91cd\u8981\u7d20\u9a57\u8b49\u3002","__stack-auto-translation-136":"\u6211\u7684\u500b\u4eba\u8cc7\u6599","__stack-auto-translation-137":"\u540d\u7a31","__stack-auto-translation-138":"\u5f9e\u672a","__stack-auto-translation-139":"\u4e0d\u5141\u8a31\u8a3b\u518a\u65b0\u5e33\u6236","__stack-auto-translation-14":"API \u91d1\u9470","__stack-auto-translation-140":"\u65b0\u5bc6\u78bc","__stack-auto-translation-141":"\u65b0\u5bc6\u78bc","__stack-auto-translation-142":"\u672a\u627e\u5230\u6d3b\u52d5\u6703\u8a71","__stack-auto-translation-143":"\u672a\u555f\u7528\u4efb\u4f55\u8eab\u4efd\u9a57\u8b49\u65b9\u6cd5\u3002","__stack-auto-translation-144":"\u7121\u9810\u8a2d\u4ed8\u6b3e\u65b9\u5f0f","__stack-auto-translation-145":"\u672a\u8a2d\u7f6e\u986f\u793a\u540d\u7a31","__stack-auto-translation-146":"\u6b64\u8a02\u95b1\u6c92\u6709\u5176\u4ed6\u53ef\u7528\u65b9\u6848\u3002","__stack-auto-translation-147":"\u7121\u5f85\u8655\u7406\u9080\u8acb","__stack-auto-translation-148":"\u7121\u5718\u968a","__stack-auto-translation-149":"\u5c1a\u7121\u5718\u968a","__stack-auto-translation-15":"API \u91d1\u9470","__stack-auto-translation-150":"\u672a\u767b\u5165","__stack-auto-translation-151":"\u901a\u77e5","__stack-auto-translation-152":"OAuth \u63d0\u4f9b\u8005\u5b58\u53d6\u906d\u62d2","__stack-auto-translation-153":"\u820a\u5bc6\u78bc","__stack-auto-translation-154":"\u4e00\u6b21\u6027\u5bc6\u78bc","__stack-auto-translation-155":"\u4e00\u6b21\u6027\u8cfc\u8cb7","__stack-auto-translation-156":"\u5f85\u4ed8\u6b3e","__stack-auto-translation-157":"\u6216\u7e7c\u7e8c\u4f7f\u7528","__stack-auto-translation-158":"\u5176\u4ed6\u5de5\u4f5c\u968e\u6bb5","__stack-auto-translation-159":"\u5176\u4ed6\u5718\u968a","__stack-auto-translation-16":"API \u91d1\u9470\u6388\u4e88\u60a8\u5e33\u6236\u7684\u7a0b\u5f0f\u5316\u5b58\u53d6\u6b0a\u9650\u3002","__stack-auto-translation-160":"\u4e00\u6b21\u6027\u5bc6\u78bc\u7ba1\u7406\u5728\u6f14\u793a\u6a21\u5f0f\u4e0b\u4e0d\u53ef\u7528\u3002","__stack-auto-translation-161":"OTP \u767b\u5165","__stack-auto-translation-162":"\u5df2\u555f\u7528 OTP \u767b\u5165\uff0c\u76ee\u524d\u7121\u6cd5\u505c\u7528\uff0c\u56e0\u70ba\u9019\u662f\u552f\u4e00\u7684\u767b\u5165\u65b9\u5f0f","__stack-auto-translation-163":"\u76ee\u524d\u5df2\u555f\u7528 OTP/\u9b54\u6cd5\u9023\u7d50\u767b\u5165\u3002","__stack-auto-translation-164":"\u5f85\u8655\u7406\u9080\u8acb","__stack-auto-translation-165":"\u8986\u5beb\u60a8\u5728\u6b64\u5718\u968a\u4e2d\u7684\u4f7f\u7528\u8005\u986f\u793a\u540d\u7a31","__stack-auto-translation-166":"\u5df2\u4ed8\u6b3e","__stack-auto-translation-167":"\u901a\u884c\u91d1\u9470","__stack-auto-translation-168":"\u901a\u884c\u91d1\u9470\u7ba1\u7406\u5728\u6f14\u793a\u6a21\u5f0f\u4e0b\u4e0d\u53ef\u7528\u3002","__stack-auto-translation-169":"\u901a\u884c\u91d1\u9470\u5df2\u8a3b\u518a","__stack-auto-translation-17":"API \u91d1\u9470\u63d0\u4f9b\u5c0d\u60a8\u5718\u968a\u7684\u7a0b\u5f0f\u5316\u5b58\u53d6\u6b0a\u9650\u3002","__stack-auto-translation-170":"\u901a\u884c\u91d1\u9470\u767b\u5165\u5df2\u555f\u7528\uff0c\u76ee\u524d\u7121\u6cd5\u505c\u7528\uff0c\u56e0\u70ba\u9019\u662f\u552f\u4e00\u7684\u767b\u5165\u65b9\u5f0f","__stack-auto-translation-171":"\u5bc6\u78bc","__stack-auto-translation-172":"\u5bc6\u78bc\u7ba1\u7406\u5728\u6f14\u793a\u6a21\u5f0f\u4e0b\u4e0d\u53ef\u7528\u3002","__stack-auto-translation-173":"\u5bc6\u78bc\u91cd\u8a2d\u62
210\u529f\uff01","__stack-auto-translation-174":"\u5bc6\u78bc\u4e0d\u7b26\u5408","__stack-auto-translation-175":"\u4ed8\u6b3e\u65b9\u5f0f","__stack-auto-translation-176":"\u4ed8\u6b3e","__stack-auto-translation-177":"\u6c38\u4e45\u522a\u9664\u60a8\u7684\u5e33\u6236\u548c\u6240\u6709\u76f8\u95dc\u8cc7\u6599","__stack-auto-translation-178":"\u500b\u4eba","__stack-auto-translation-179":"\u8acb\u65b0\u589e\u96fb\u5b50\u90f5\u4ef6\u5730\u5740\u4ee5\u5b8c\u6210\u5e33\u865f\u8a2d\u5b9a\u3002\u6211\u5011\u6703\u5bc4\u9001\u9a57\u8b49\u90f5\u4ef6\u7d66\u60a8\u3002","__stack-auto-translation-18":"\u60a8\u78ba\u5b9a\u8981\u522a\u9664\u60a8\u7684\u5e33\u6236\u55ce\uff1f\u6b64\u64cd\u4f5c\u662f\u4e0d\u53ef\u9006\u7684\uff0c\u4e26\u5c07\u522a\u9664\u6240\u6709\u76f8\u95dc\u8cc7\u6599\u3002","__stack-auto-translation-180":"\u8acb\u6aa2\u67e5\u60a8\u7684\u9023\u7d50\u662f\u5426\u6b63\u78ba\u3002\u5982\u679c\u60a8\u7e7c\u7e8c\u9047\u5230\u554f\u984c\uff0c\u8acb\u806f\u7d61\u5ba2\u6236\u652f\u63f4\u3002","__stack-auto-translation-181":"\u8acb\u6aa2\u67e5\u60a8\u7684\u96fb\u5b50\u90f5\u4ef6\u6536\u4ef6\u7bb1","__stack-auto-translation-182":"\u8acb\u5148\u5b8c\u6210\u5e33\u865f\u8a2d\u5b9a\u518d\u52a0\u5165\u5718\u968a\u3002","__stack-auto-translation-183":"\u8acb\u518d\u6b21\u78ba\u8a8d\u60a8\u662f\u5426\u64c1\u6709\u6b63\u78ba\u7684\u5bc6\u78bc\u91cd\u8a2d\u9023\u7d50\u3002","__stack-auto-translation-184":"\u8acb\u518d\u6b21\u78ba\u8a8d\u60a8\u662f\u5426\u6709\u6b63\u78ba\u7684\u5718\u968a\u9080\u8acb\u9023\u7d50\u3002","__stack-auto-translation-185":"\u8acb\u8f38\u5165\u5718\u968a\u540d\u7a31","__stack-auto-translation-186":"\u8acb\u8f38\u5165\u6709\u6548\u7684\u96fb\u5b50\u90f5\u4ef6\u5730\u5740","__stack-auto-translation-187":"\u8acb\u8f38\u5165\u6709\u6548\u7684\u96fb\u5b50\u90f5\u4ef6\u5730\u5740","__stack-auto-translation-188":"\u8acb\u8f38\u5165\u96fb\u5b50\u90f5\u4ef6\u5730\u5740","__stack-auto-translation-189":"\u8acb\u8f38\u5165\u60a8\u7684\u96fb\u5b50\u90f5\u4ef6","__stack-auto-translation-19":"\u60a8\u78ba\u5b9a\u8981\u505c\u7528 OTP \u767b\u5165\u55ce\uff1f\u60a8\u5c07\u7121\u6cd5\u518d\u50c5\u4f7f\u7528\u96fb\u5b50\u90f5\u4ef6\u9032\u884c\u767b\u5165\u3002","__stack-auto-translation-190":"\u8acb\u8f38\u5165\u60a8\u7684\u820a\u5bc6\u78bc","__stack-auto-translation-191":"\u8acb\u8f38\u5165\u60a8\u7684\u5bc6\u78bc","__stack-auto-translation-192":"\u8acb\u91cd\u8907\u8f38\u5165\u60a8\u7684\u5bc6\u78bc","__stack-auto-translation-193":"\u8acb\u518d\u8a66\u4e00\u6b21\uff0c\u5982\u679c\u554f\u984c\u4ecd\u7136\u5b58\u5728\uff0c\u8acb\u806f\u7d61\u5ba2\u6236\u652f\u63f4\u3002","__stack-auto-translation-194":"\u8acb\u9a57\u8b49\u60a8\u7684\u96fb\u5b50\u90f5\u4ef6\u5730\u5740","__stack-auto-translation-195":"\u8acb\u5148\u9a57\u8b49\u60a8\u7684\u96fb\u5b50\u90f5\u4ef6","__stack-auto-translation-196":"\u4e3b\u8981","__stack-auto-translation-197":"\u5c08\u696d\u7248","__stack-auto-translation-198":"\u500b\u4eba\u982d\u50cf","__stack-auto-translation-199":"\u8a3b\u518a\u901a\u884c\u91d1\u9470","__stack-auto-translation-2":"\u5e33\u6236\u8a2d\u5b9a","__stack-auto-translation-20":"\u60a8\u78ba\u5b9a\u8981\u505c\u7528\u901a\u884c\u91d1\u9470\u767b\u5165\u55ce\uff1f\u505c\u7528\u5f8c\u60a8\u5c07\u7121\u6cd5\u518d\u4f7f\u7528\u901a\u884c\u91d1\u9470\u767b\u5165\u3002","__stack-auto-translation-200":"\u79fb\u9664","__stack-auto-translation-201":"\u7e8c\u8a02\u65e5\u671f","__stack-auto-translation-202":"\u91cd\u8907\u65b0\u5bc6\u78bc","__stack-auto-translation-203":"\u91cd\u8907\u65b0\u5bc6\u78bc","__stack-auto-translation-204":"\u91cd\u8907\u5bc6\u78bc","__stack-auto-translation-205":"\u91cd\u65b0\u767c\u9001\u9a57\u8b49\u96fb\u5b50\u90f5\u4ef6","__stack-auto-translation-206":"\u91cd\u8a2d\u5bc6\u78bc","__stack-auto-translation-207":"\u91cd\u8a2d\u60a8\u7684\u5bc6\u78bc","__stack-auto-translation-208":"\u67e5\u770b\u904e\u5f80\u767c\u7968\u8207\u6536\u64da\u3002","__stack-auto-translation-209":"\u64a4\u92b7","__stack-auto-translation-21":"\u60a8\u78ba\u5b9a\u8981\u96e2\u958b\u5718\u968a\u55ce\uff1f","__stack-auto-translation-210":"\u64a4\u92b7\u6240\u6709\u5176\u4ed6\u5de5\u4f5c\u968e\u6bb5","__stack-auto-translation-211":"\u5132\u5b58","__stack-auto-translation-212":"\u8acb\u4f7f\u7528\u60a8\u7684\u8eab\u4efd\u9a57\u8b49\u5668\u61c9\u7528\u7a0b\u5f0f\u6383\u63cf\u6b64 QR \u78bc\uff1a","__stack-auto-translation-213":"\u5bc6\u9470 API \u91d1\u9470","__stack-auto-translation-214":"\u9078\u64c7\u540c\u4e00\u7522\u54c1\u7dda\u4e2d\u7684\u65b0\u65b9\u6848\u3002","__stack-auto-translation-215":"\u767c\u9001\u96fb\u5b50\u90f5\u4ef6","__stack-auto-translation-216":"\u767c\u9001\u96fb\u5b50\u90f5\u4ef6","__stack-auto-translation-217":"\u767c\u9001\u9a57\u8b49\u96fb\u5b50\u90f5\u4ef6","__stack-auto-translation-218":"\u5de5\u4f5c\u968e\u6bb5","__stack-auto-translation-219":"\u70ba\u60a8\u7684\u5e33\u6236\u8a2d\u5b9a\u5bc6\u78bc","__stack-auto-translation-22":"\u6388\u6b0a\u5931\u6557","__stack-auto-translation-220":"\u8a2d\u70ba\u4e3b\u8981","__stack-auto-translation-221":"\u8a2d\u5b9a\u5bc6\u78bc","__stack-auto-translation-222":"\u8a2d\u5b9a\u5bc6\u78bc","__stack-auto-translation-223":"\u8a2d\u5b9a","__stack-auto-translation-224":"\u767b\u5165","__stack-auto-translation-225":"\u767b\u5165","__stack-auto-translation-226":"\u518d\u6b21\u767b\u5165","__stack-auto-translation-227":"\u767b\u5165\u6216\u5efa\u7acb\u5e33\u6236\u4ee5\u52a0\u5165\u5718\u968a\u3002","__stack-auto-translation-228":"\u767b\u5165\u60a8\u7684\u5e33\u6236","__stack-auto-translation-229":"\u4f7f\u7528\u901a\u884c\u91d1\u9470\u767b\u5165","__stack-auto-translation-23":"\u6388\u6b0a","__stack-auto-translation-230":"\u4ee5 {provider} \u767b\u5165","__stack-auto-translation-231":"\u767b\u51fa","__stack-auto-translation-232":"\u8a3b\u518a","__stack-auto-translation-233":"\u8a3b\u518a","__stack-auto-translation-234":"\u76ee\u524d\u4e0d\u958b\u653e\u65b0\u4f7f\u7528\u8005\u8a3b\u518a\u3002","__stack-auto-translation-235":"\u4f7f\u7528\u901a\u884c\u91d1\u9470\u8a3b\u518a","__stack-auto-translation-236":"\u4f7f\u7528 {provider} \u8a3b\u518a","__stack-auto-translation-237":"\u767b\u5165\u6210\u529f\uff01","__stack-auto-translation-238":"\u767b\u5165\u65bc {time}","__stack-auto-translation-239":"\u8655\u7406 OAuth \u56de\u8abf\u6642\u51fa\u73fe\u932f\u8aa4\uff1a","__stack-auto-translation-24":"\u6388\u6b0a\u547d\u4ee4\u5217\u61c9\u7528\u7a0b\u5f0f","__stack-auto-translation-240":"\u72c0\u614b","__stack-auto-translation-241":"\u505c\u6b62\u4f7f\u7528\u65bc\u767b\u5165","__stack-auto-translation-242":"\u8a02\u95b1","__stack-auto-translation-243":"\u5207\u63db\u65b9\u6848","__stack-auto-translation-244":"\u5718\u968a\u5275\u5efa\u5728\u6f14\u793a\u6a21\u5f0f\u4e0b\u5df2\u505c\u7528","__stack-auto-translation-245":"\u5718\u968a\u5275\u5efa\u529f\u80fd\u672a\u555f\u7528","__stack-auto-translation-246":"\u5718\u968a\u986f\u793a\u540d\u7a31","__stack-auto-translation-247":"\u5718\u968a\u9080\u8acb","__stack-auto-translation-248":"\u5718\u968a\u982d\u50cf","__stack-auto-translation-249":"\u5
2718\u968a\u4f7f\u7528\u8005\u540d\u7a31","__stack-auto-translation-25":"\u6388\u6b0a\u4e2d...","__stack-auto-translation-250":"\u5718\u968a","__stack-auto-translation-251":"CLI \u61c9\u7528\u7a0b\u5f0f\u5df2\u6210\u529f\u6388\u6b0a\u3002\u60a8\u53ef\u4ee5\u95dc\u9589\u6b64\u8996\u7a97\u4e26\u8fd4\u56de\u547d\u4ee4\u5217\u3002","__stack-auto-translation-252":"\u8a72\u9b54\u6cd5\u9023\u7d50\u5df2\u88ab\u4f7f\u7528\u904e\u3002\u6b64\u9023\u7d50\u50c5\u80fd\u4f7f\u7528\u4e00\u6b21\u3002\u5982\u679c\u60a8\u9700\u8981\u518d\u6b21\u767b\u5165\uff0c\u8acb\u91cd\u65b0\u7533\u8acb\u4e00\u500b\u65b0\u7684\u9b54\u6cd5\u9023\u7d50\u3002","__stack-auto-translation-253":"\u767b\u5165\u64cd\u4f5c\u5df2\u88ab\u53d6\u6d88\u6216\u62d2\u7d55\u3002\u8acb\u91cd\u8a66\u3002","__stack-auto-translation-254":"\u4f7f\u7528\u8005\u5df2\u7d93\u9023\u63a5\u5230\u53e6\u4e00\u500b OAuth \u5e33\u6236\u3002\u60a8\u53ef\u80fd\u5728 OAuth \u63d0\u4f9b\u8005\u9801\u9762\u4e0a\u9078\u64c7\u4e86\u932f\u8aa4\u7684\u5e33\u6236\u55ce\uff1f","__stack-auto-translation-255":"\u7136\u5f8c\uff0c\u8f38\u5165\u60a8\u7684\u516d\u4f4d\u6578MFA\u9a57\u8b49\u78bc\uff1a","__stack-auto-translation-256":"\u9019\u4e9b\u662f\u60a8\u76ee\u524d\u767b\u5165\u7684\u88dd\u7f6e\u3002\u60a8\u53ef\u4ee5\u64a4\u92b7\u5b58\u53d6\u6b0a\u4ee5\u7d50\u675f\u5de5\u4f5c\u968e\u6bb5\u3002","__stack-auto-translation-257":"\u6b64\u5e33\u865f\u5df2\u8207\u5176\u4ed6\u4f7f\u7528\u8005\u9023\u7d50\u3002\u8acb\u9023\u7d50\u4e0d\u540c\u7684\u5e33\u865f\u3002","__stack-auto-translation-258":"\u6b64\u96fb\u5b50\u90f5\u4ef6\u5df2\u88ab\u53e6\u4e00\u4f4d\u4f7f\u7528\u8005\u7528\u65bc\u767b\u5165\u3002","__stack-auto-translation-259":"\u9019\u662f\u4e00\u500b\u986f\u793a\u540d\u7a31\uff0c\u4e0d\u7528\u65bc\u8eab\u4efd\u9a57\u8b49","__stack-auto-translation-26":"\u53d6\u6d88","__stack-auto-translation-260":"\u9019\u5f88\u53ef\u80fd\u662f Stack \u7684\u932f\u8aa4\u3002\u8acb\u56de\u5831\u6b64\u554f\u984c\u3002","__stack-auto-translation-261":"\u6b64\u5bc6\u78bc\u91cd\u7f6e\u9023\u7d50\u5df2\u88ab\u4f7f\u7528\u3002\u5982\u679c\u60a8\u9700\u8981\u518d\u6b21\u91cd\u7f6e\u5bc6\u78bc\uff0c\u8acb\u5f9e\u767b\u5165\u9801\u9762\u91cd\u65b0\u7533\u8acb\u65b0\u7684\u5bc6\u78bc\u91cd\u7f6e\u9023\u7d50\u3002","__stack-auto-translation-262":"\u6b64\u5718\u968a\u9080\u8acb\u9023\u7d50\u5df2\u88ab\u4f7f\u7528\u3002","__stack-auto-translation-263":"\u8acb\u65b0\u589e\u5df2\u9a57\u8b49\u7684\u767b\u5165\u96fb\u5b50\u90f5\u4ef6\u4ee5\u555f\u7528 OTP \u767b\u5165\u3002","__stack-auto-translation-264":"\u82e5\u8981\u555f\u7528\u901a\u884c\u91d1\u9470\u767b\u5165\uff0c\u8acb\u65b0\u589e\u5df2\u9a57\u8b49\u7684\u767b\u5165\u96fb\u5b50\u90f5\u4ef6\u3002","__stack-auto-translation-265":"\u8acb\u65b0\u589e\u767b\u5165\u96fb\u5b50\u90f5\u4ef6\u4ee5\u8a2d\u5b9a\u5bc6\u78bc\u3002","__stack-auto-translation-266":"\u5207\u63db\u4e3b\u984c","__stack-auto-translation-267":"TOTP \u591a\u91cd\u8981\u7d20\u9a57\u8b49 QR \u78bc","__stack-auto-translation-268":"\u91cd\u8a66","__stack-auto-translation-269":"\u7121\u6cd5\u4f7f\u7528","__stack-auto-translation-27":"\u53d6\u6d88\u8a02\u95b1","__stack-auto-translation-270":"\u7121\u6cd5\u6536\u6b3e","__stack-auto-translation-271":"\u672a\u77e5","__stack-auto-translation-272":"\u672a\u9a57\u8b49","__stack-auto-translation-273":"\u66f4\u65b0\u5bc6\u78bc","__stack-auto-translation-274":"\u66f4\u65b0\u5bc6\u78bc","__stack-auto-translation-275":"\u66f4\u65b0\u4ed8\u6b3e\u65b9\u5f0f","__stack-auto-translation-276":"\u66f4\u65b0\u60a8\u7684\u5bc6\u78bc","__stack-auto-translation-277":"\u4e0a\u50b3\u60a8\u5718\u968a\u7684\u5716\u50cf","__stack-auto-translation-278":"\u4e0a\u50b3\u60a8\u81ea\u5df1\u7684\u5716\u50cf\u4f5c\u70ba\u982d\u50cf","__stack-auto-translation-279":"\u7528\u65bc\u767b\u5165","__stack-auto-translation-28":"\u53d6\u6d88\u5f8c\u5c07\u505c\u6b62\u6b64\u8a02\u95b1\u7684\u672a\u4f86\u7e8c\u8a02\u3002","__stack-auto-translation-280":"\u7528\u65bc\u767b\u5165","__stack-auto-translation-281":"\u5df2\u4f7f\u7528\u7684\u5bc6\u78bc\u91cd\u8a2d\u9023\u7d50","__stack-auto-translation-282":"\u5df2\u4f7f\u7528\u7684\u5718\u968a\u9080\u8acb\u9023\u7d50","__stack-auto-translation-283":"\u4f7f\u7528\u8005","__stack-auto-translation-284":"\u4f7f\u7528\u8005\u540d\u7a31","__stack-auto-translation-285":"\u9a57\u8b49\u5931\u6557","__stack-auto-translation-286":"\u5df2\u9a57\u8b49\uff01\u6b63\u5728\u91cd\u5b9a\u5411...","__stack-auto-translation-287":"\u9a57\u8b49","__stack-auto-translation-288":"\u9a57\u8b49\u4e2d...","__stack-auto-translation-289":"\u6aa2\u8996","__stack-auto-translation-29":"\u8b8a\u66f4","__stack-auto-translation-290":"\u6aa2\u8996\u60a8\u7684\u6709\u6548\u65b9\u6848\u8207\u8cfc\u8cb7\u9805\u76ee\u3002","__stack-auto-translation-291":"\u4f5c\u5ee2","__stack-auto-translation-292":"\u8b66\u544a\uff1a\u8acb\u78ba\u4fdd\u60a8\u4fe1\u4efb\u8a72\u547d\u4ee4\u884c\u61c9\u7528\u7a0b\u5f0f\uff0c\u56e0\u70ba\u5b83\u5c07\u7372\u53d6\u60a8\u5e33\u6236\u7684\u8a2a\u554f\u6b0a\u9650\u3002\u5982\u679c\u60a8\u6c92\u6709\u767c\u8d77\u6b64\u8acb\u6c42\uff0c\u60a8\u53ef\u4ee5\u95dc\u9589\u6b64\u9801\u9762\u4e26\u5ffd\u7565\u5b83\u3002\u6211\u5011\u7d55\u4e0d\u6703\u901a\u904e\u96fb\u5b50\u90f5\u4ef6\u6216\u5176\u4ed6\u65b9\u5f0f\u5411\u60a8\u767c\u9001\u6b64\u9
2023\u7d50\u3002","__stack-auto-translation-293":"\u60a8\u5df2\u7d93\u767b\u5165","__stack-auto-translation-294":"\u60a8\u76ee\u524d\u5c1a\u672a\u767b\u5165\u3002","__stack-auto-translation-295":"\u60a8\u7121\u6cd5\u79fb\u9664\u6700\u5f8c\u4e00\u500b\u7528\u65bc\u767b\u5165\u7684\u96fb\u5b50\u90f5\u4ef6","__stack-auto-translation-296":"\u60a8\u7121\u6cd5\u64a4\u92b7\u76ee\u524d\u5de5\u4f5c\u968e\u6bb5","__stack-auto-translation-297":"\u60a8\u7684\u96fb\u5b50\u90f5\u4ef6\u5df2\u9a57\u8b49\uff01","__stack-auto-translation-298":"\u60a8\u5c1a\u672a\u5b8c\u6210\u5e33\u6236\u8a2d\u7f6e\u3002\u5982\u679c\u60a8\u8a8d\u70ba\u9019\u662f\u932f\u8aa4\uff0c\u8acb\u806f\u7e6b\u652f\u63f4\u5718\u968a\u3002","__stack-auto-translation-299":"\u60a8\u7684\u96fb\u5b50\u90f5\u4ef6","__stack-auto-translation-3":"\u5e33\u6236\u8a2d\u5b9a","__stack-auto-translation-30":"\u8b8a\u66f4\u65b9\u6848","__stack-auto-translation-300":"\u60a8\u7684\u96fb\u5b50\u90f5\u4ef6\u9a57\u8b49\u9023\u7d50\u5df2\u904e\u671f\u3002\u8acb\u5f9e\u60a8\u7684\u5e33\u6236\u8a2d\u5b9a\u4e2d\u8acb\u6c42\u65b0\u7684\u9a57\u8b49\u9023\u7d50\u3002","__stack-auto-translation-301":"\u60a8\u7684\u9b54\u6cd5\u9023\u7d50\u5df2\u904e\u671f\u3002\u5982\u679c\u60a8\u9700\u8981\u767b\u5165\uff0c\u8acb\u91cd\u65b0\u7533\u8acb\u65b0\u7684\u9b54\u6cd5\u9023\u7d50\u3002","__stack-auto-translation-302":"\u60a8\u7684\u5bc6\u78bc\u5df2\u91cd\u8a2d\u3002\u60a8\u73fe\u5728\u53ef\u4ee5\u4f7f\u7528\u65b0\u5bc6\u78bc\u767b\u5165\u3002","__stack-auto-translation-303":"\u60a8\u7684\u5bc6\u78bc\u91cd\u8a2d\u9023\u7d50\u5df2\u904e\u671f\u3002\u8acb\u5f9e\u767b\u5165\u9801\u9762\u91cd\u65b0\u7533\u8acb\u65b0\u7684\u5bc6\u78bc\u91cd\u8a2d\u9023\u7d50\u3002","__stack-auto-translation-304":"\u60a8\u7684\u5718\u968a\u9080\u8acb\u9023\u7d50\u5df2\u904e\u671f\u3002\u8acb\u91cd\u65b0\u7533\u8acb\u65b0\u7684\u5718\u968a\u9080\u8acb\u9023\u7d50","__stack-auto-translation-31":"\u66f4\u6539\u5718\u968a\u7684\u986f\u793a\u540d\u7a31","__stack-auto-translation-32":"\u9078\u64c7\u65b9\u6848","__stack-auto-translation-33":"\u9078\u64c7\u60a8\u60f3\u63a5\u6536\u7684\u96fb\u5b50\u90f5\u4ef6","__stack-auto-translation-34":"CLI \u6388\u6b0a\u6210\u529f","__stack-auto-translation-35":"\u9ede\u64ca\u9019\u88e1","__stack-auto-translation-36":"\u9ede\u64ca\u4e0b\u65b9\u6309\u9215\u91cd\u65b0\u767c\u9001\u9a57\u8b49\u9023\u7d50\u3002","__stack-auto-translation-37":"\u95dc\u9589","__stack-auto-translation-38":"\u5b8c\u6210\u8a2d\u5b9a","__stack-auto-translation-39":"\u5b8c\u6210\u5e33\u865f\u8a2d\u5b9a","__stack-auto-translation-4":"\u6709\u6548\u65b9\u6848","__stack-auto-translation-40":"\u78ba\u8a8d","__stack-auto-translation-41":"\u7e7c\u7e8c","__stack-auto-translation-42":"\u5c07\u5176\u8907\u88fd\u5230\u5b89\u5168\u7684\u5730\u65b9\u3002\u4f60\u5c07\u7121\u6cd5\u518d\u6b21\u67e5\u770b\u5b83\u3002","__stack-auto-translation-43":"\u7121\u6cd5\u88c1\u526a\u5716\u7247\u3002","__stack-auto-translation-44":"\u5efa\u7acb","__stack-auto-translation-45":"\u5efa\u7acb\u65b0\u5e33\u6236","__stack-auto-translation-46":"\u5efa\u7acb\u5718\u968a","__stack-auto-translation-47":"\u5efa\u7acb\u5718\u968a","__stack-auto-translation-48":"\u5efa\u7acb API \u91d1\u9470","__stack-auto-translation-49":"\u9ede\u6578\u5305","__stack-auto-translation-5":"\u6d3b\u52d5\u6703\u8a71","__stack-auto-translation-50":"\u76ee\u524d\u5de5\u4f5c\u968e\u6bb5","__stack-auto-translation-51":"\u76ee\u524d\u5718\u968a","__stack-auto-translation-52":"\u5371\u96aa\u5340\u57df","__stack-auto-translation-53":"\u65e5\u671f","__stack-auto-translation-54":"\u522a\u9664\u5e33\u865f","__stack-auto-translation-55":"\u522a\u9664\u5e33\u6236","__stack-auto-translation-56":"\u522a\u9664\u901a\u884c\u91d1\u9470","__stack-auto-translation-57":"\u63cf\u8ff0","__stack-auto-translation-58":"\u5fc5\u9808\u586b\u5beb\u63cf\u8ff0","__stack-auto-translation-59":"\u505c\u7528","__stack-auto-translation-6":"\u65b0\u589e","__stack-auto-translation-60":"\u505c\u7528 MFA","__stack-auto-translation-61":"\u505c\u7528 OTP","__stack-auto-translation-62":"\u986f\u793a\u540d\u7a31","__stack-auto-translation-63":"\u60a8\u8981\u767b\u5165\u55ce\uff1f","__stack-auto-translation-64":"\u60a8\u8981\u9a57\u8b49\u60a8\u7684\u96fb\u5b50\u90f5\u4ef6\u55ce\uff1f","__stack-auto-translation-65":"\u9084\u6c92\u6709\u5e33\u6236\u55ce\uff1f","__stack-auto-translation-66":"\u4e0
2d\u9700\u8981\u91cd\u8a2d\u5bc6\u78bc\u55ce\uff1f","__stack-auto-translation-67":"\u8349\u7a3f","__stack-auto-translation-68":"\u4f8b\u5982\uff1a\u958b\u767c\u3001\u751f\u7522\u3001CI/CD","__stack-auto-translation-69":"\u96fb\u5b50\u90f5\u4ef6","__stack-auto-translation-7":"\u5207\u63db\u65b9\u6848\u524d\u8acb\u5148\u65b0\u589e\u4ed8\u6b3e\u65b9\u5f0f\u3002","__stack-auto-translation-70":"\u96fb\u90f5\u8207\u5bc6\u78bc","__stack-auto-translation-71":"\u96fb\u5b50\u90f5\u4ef6\u5df2\u5b58\u5728","__stack-auto-translation-72":"\u96fb\u5b50\u90f5\u4ef6\u70ba\u5fc5\u586b","__stack-auto-translation-73":"\u96fb\u5b50\u90f5\u4ef6\u7ba1\u7406\u5728\u6f14\u793a\u6a21\u5f0f\u4e0b\u4e0d\u53ef\u7528\u3002","__stack-auto-translation-74":"\u96fb\u5b50\u90f5\u4ef6\u5df2\u767c\u9001\uff01","__stack-auto-translation-75":"\u96fb\u5b50\u90f5\u4ef6","__stack-auto-translation-76":"\u96fb\u5b50\u90f5\u4ef6\u8207\u9a57\u8b49","__stack-auto-translation-77":"\u555f\u7528\u591a\u91cd\u8981\u7d20\u8eab\u4efd\u9a57\u8b49","__stack-auto-translation-78":"\u555f\u7528 OTP","__stack-auto-translation-79":"\u555f\u7528\u900f\u904e\u9b54\u6cd5\u9023\u7d50\u6216\u767c\u9001\u5230\u60a8\u7684\u767b\u5165\u96fb\u5b50\u90f5\u4ef6\u7684\u4e00\u6b21\u6027\u5bc6\u78bc\u9032\u884c\u767b\u5165\u3002","__stack-auto-translation-8":"\u65b0\u589e\u96fb\u5b50\u90f5\u4ef6","__stack-auto-translation-80":"\u7d50\u675f\u60a8\u7684\u76ee\u524d\u5de5\u4f5c\u968e\u6bb5","__stack-auto-translation-81":"\u8f38\u5165\u60a8\u65b0\u5718\u968a\u7684\u986f\u793a\u540d\u7a31","__stack-auto-translation-82":"\u8f38\u5165\u96fb\u5b50\u90f5\u4ef6","__stack-auto-translation-83":"\u8f38\u5165\u60a8\u96fb\u5b50\u90f5\u4ef6\u4e2d\u7684\u9a57\u8b49\u78bc","__stack-auto-translation-84":"\u8acb\u8f38\u5165\u60a8\u8eab\u4efd\u9a57\u8b49\u61c9\u7528\u7a0b\u5f0f\u4e2d\u7684\u516d\u4f4d\u6578\u4ee3\u78bc","__stack-auto-translation-85":"\u8f38\u5165\u60a8\u7684\u96fb\u5b50\u90f5\u4ef6","__stack-auto-translation-86":"\u5df2\u904e\u671f\u7684\u9b54\u6cd5\u9023\u7d50","__stack-auto-translation-87":"\u5bc6\u78bc\u91cd\u8a2d\u9023\u7d50\u5df2\u904e\u671f","__stack-auto-translation-88":"\u5df2\u904e\u671f\u7684\u5718\u968a\u9080\u8acb\u9023\u7d50","__stack-auto-translation-89":"\u9a57\u8b49\u9023\u7d50\u5df2\u904e\u671f","__stack-auto-translation-9":"\u65b0\u589e\u901a\u884c\u91d1\u9470","__stack-auto-translation-90":"\u5230\u671f","__stack-auto-translation-91":"\u5230\u671f\u6642\u9593","__stack-auto-translation-92":"\u7121\u6cd5\u6388\u6b0a\u547d\u4ee4\u5217\u61c9\u7528\u7a0b\u5f0f\uff1a","__stack-auto-translation-93":"\u5e33\u6236\u9023\u63a5\u5931\u6557","__stack-auto-translation-94":"\u91cd\u8a2d\u5bc6\u78bc\u5931\u6557","__stack-auto-translation-95":"\u91cd\u8a2d\u5bc6\u78bc\u5931\u6557\u3002\u8acb\u91cd\u65b0\u7533\u8acb\u5bc6\u78bc\u91cd\u8a2d\u9023\u7d50","__stack-auto-translation-96":"\u5fd8\u8a18\u5bc6\u78bc\uff1f","__stack-auto-translation-97":"\u56de\u9996\u9801","__stack-auto-translation-98":"\u56de\u9996\u9801","__stack-auto-translation-99":"\u9019\u662f\u60a8\u7684 API \u91d1\u9470\u3002"}))}));function Gq(e){let{lang:t,translationOverrides:n,children:a}=e;const r=Yq.get(null!==t&&void 0!==t?t:void 0),o=new Map(r);for(const[s,l]of Object.entries(null!==n&&void 0!==n?n:{})){var i;const e=null!==(i=Kq.get(s))&&void 0!==i?i:cn(new Error("Invalid translation override: Original key ".concat(JSON.stringify(s)," not found. Make sure you are passing the correct values into the translationOverrides property of the component.")));o.set(e,l)}return(0,_h.jsx)(vw,{quetzalKeys:Kq,quetzalLocale:o,children:a})}var Jq=function(e){let{children:t,app:n,lang:a,translationOverrides:r}=e;return(0,_h.jsxs)(ig,{app:n,serialized:!1,children:[(0,_h.jsx)(o.Suspense,{fallback:null}),(0,_h.jsx)(Gq,{lang:a,translationOverrides:r,children:t})]})},$q=()=>{const e=["data-joy-color-scheme","data-mui-color-scheme","data-theme","data-color-scheme","class"],t=e=>e.includes("dark")?"dark":e.includes("light")?"light":null,n=e=>{let t=document.getElementById("--stack-theme-mode");t||(t=document.createElement("style"),t.id="--stack-theme-mode",t.innerHTML="/* This tag is used by Stack Auth to set the theme in the browser without causing a hydration error (since React ignores additional tags in the <head>). We later use the `html:has(head > [data-stack-theme=XYZ])` selector to apply styles based on the theme. */",document.head.appendChild(t)),t.setAttribute("data-stack-theme",e)},a=()=>{const e=getComputedStyle(document.documentElement).getPropertyValue("color-scheme");if(e){const a=t(e);if(a)return n(a),!0}return!1},r=()=>{let e=getComputedStyle(document.documentElement).getPropertyValue("--background");if(e){/^\d+\s\d+%\s\d+(\.\d+)?%$/.test(e)&&(e="hsl(".concat(e,")"));const t=(e=>{const t=document.createElement("div");t.style.color=e,document.body.appendChild(t);const n=getComputedStyle(t).color;document.body.removeChild(t);const a=n.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);return a?[parseInt(a[1]),parseInt(a[2]),parseInt(a[3])]:null})(e);if(t){const e=(e=>(299*e[0]+587*e[1]+114*e[2])/1e3)(t);return n(e<128?"dark":"light"),!0}}return!1},o=()=>{for(const a of e){const e=document.documentElement.getAttribute(a);if(e){const a=t(e);if(a)return n(a),!0}}return!1};new MutationObserver(t=>{t.forEach(t=>{a()||t.attributeName&&e.includes(t.attributeName)&&o()||r()})}).observe(document.documentElement,{attributes:!0,attributeFilter:e}),a()||o()||r()};function Qq(e){return(0,_h.jsx)(Dw,{nonce:e.nonce,script:"(".concat($q.toString(),")()")})}var Xq,Zq={light:{background:"hsl(0 0% 100%)",foreground:"hsl(240 10% 3.9%)",card:"hsl(0 0% 100%)",cardForeground:"hsl(240 10% 3.9%)",popover:"hsl(0 0% 100%)",popoverForeground:"hsl(240 10% 3.9%)",primary:"hsl(240 5.9% 10%)",primaryForeground:"hsl(0 0% 98%)",secondary:"hsl(240 4.8% 95.9%)",secondaryForeground:"hsl(240 5.9% 10%)",muted:"hsl(240 4.8% 95.9%)",mutedForeground:"hsl(240 3.8% 46.1%)",accent:"hsl(240 4.8% 95.9%)",accentForeground:"hsl(240 5.9% 10%)",destructive:"hsl(0 84.2% 60.2%)",destructiveForeground:"hsl(0 0% 98%)",border:"hsl(240 5.9% 90%)",input:"hsl(240 5.9% 90%)",ring:"hsl(240 10% 3.9%)"},dark:{background:"hsl(240 10% 3.9%)",foreground:"hsl(0 0% 98%)",card:"hsl(240 10% 3.9%)",cardForeground:"hsl(0 0% 98%)",popover:"hsl(240 10% 3.9%)",popoverForeground:"hsl(0 0% 98%)",primary:"hsl(0 0% 98%)",primaryForeground:"hsl(240 5.9% 10%)",secondary:"hsl(240 3.7% 15.9%)",secondaryForeground:"hsl(0 0% 98%)",muted:"hsl(240 3.7% 15.9%)",mutedForeground:"hsl(240 5% 64.9%)",accent:"hsl(240 3.7% 15.9%)",accentForeground:"hsl(0 0% 98%)",destructive:"hsl(0 62.8% 50%)",destructiveForeground:"hsl(0 0% 98%)",border:"hsl(240 3.7% 15.9%)",input:"hsl(240 3.7% 15.9%)",ring:"hsl(240 4.9% 83.9%)"},radius:"0.5rem"};const eH=["dark","light"];function tH(e){return Object.fromEntries(Object.entries(e).map(e=>{let[t,n]=e;const a=AC(n).hsl().array();return[t.replace(/[A-Z]/g,e=>"-".concat(e.toLowerCase())),"".concat(a[0]," ").concat(a[1],"% ").concat(a[2],"%")]}))}function nH(e){const{dark:t,light:n}=e,a=l(e,eH),r={light:p(p({},tH(n)),a),dark:tH(t)};function o(e){return Object.entries(e).map(e=>"--".concat(e[0],": ").concat(e[1],";\n")).join("")}return Jt(Xq||(Xq=Ht(["\n    .stack-scope {\n      ",'\n    }\n    html:has(head > [data-stack-theme="dark"]) .stack-scope { \n      ',"\n    }\n  "])),o(r.light),o(r.dark))}function aH(e){let{theme:t,children:n,nonce:a}=e;const r=p(p(p({},Zq),t),{},{dark:p(p({},Zq.dark),null===t||void 0===t?void 0:t.dark),light:p(p({},Zq.light),null===t||void 0===t?void 0:t.light)});return(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsx)(Qq,{nonce:a}),(0,_h.jsx)("style",{suppressHydrationWarning:!0,nonce:a,dangerouslySetInnerHTML:{__html:':where(.stack-scope) *, :where(.stack-scope) ::before, :where(.stack-scope) ::after, *:where(.stack-scope), :where(.stack-scope)::before, :where(.stack-scope)::after {\n  --tw-border-spacing-x: 0;\n  --tw-border-spacing-y: 0;\n  --tw-translate-x: 0;\n  --tw-translate-y: 0;\n  --tw-rotate: 0;\n  --tw-skew-x: 0;\n  --tw-skew-y: 0;\n  --tw-scale-x: 1;\n  --tw-scale-y: 1;\n  --tw-pan-x:  ;\n  --tw-pan-y:  ;\n  --tw-pinch-zoom:  ;\n  --tw-scroll-snap-strictness: proximity;\n  --tw-gradient-from-position:  ;
2\n  --tw-gradient-via-position:  ;\n  --tw-gradient-to-position:  ;\n  --tw-ordinal:  ;\n  --tw-slashed-zero:  ;\n  --tw-numeric-figure:  ;\n  --tw-numeric-spacing:  ;\n  --tw-numeric-fraction:  ;\n  --tw-ring-inset:  ;\n  --tw-ring-offset-width: 0px;\n  --tw-ring-offset-color: #fff;\n  --tw-ring-color: rgb(59 130 246 / 0.5);\n  --tw-ring-offset-shadow: 0 0 #0000;\n  --tw-ring-shadow: 0 0 #0000;\n  --tw-shadow: 0 0 #0000;\n  --tw-shadow-colored: 0 0 #0000;\n  --tw-blur:  ;\n  --tw-brightness:  ;\n  --tw-contrast:  ;\n  --tw-grayscale:  ;\n  --tw-hue-rotate:  ;\n  --tw-invert:  ;\n  --tw-saturate:  ;\n  --tw-sepia:  ;\n  --tw-drop-shadow:  ;\n  --tw-backdrop-blur:  ;\n  --tw-backdrop-brightness:  ;\n  --tw-backdrop-contrast:  ;\n  --tw-backdrop-grayscale:  ;\n  --tw-backdrop-hue-rotate:  ;\n  --tw-backdrop-invert:  ;\n  --tw-backdrop-opacity:  ;\n  --tw-backdrop-saturate:  ;\n  --tw-backdrop-sepia:  ;\n  --tw-contain-size:  ;\n  --tw-contain-layout:  ;\n  --tw-contain-paint:  ;\n  --tw-contain-style:  ;\n}\n:where(.stack-scope) ::backdrop, :where(.stack-scope)::backdrop {\n  --tw-border-spacing-x: 0;\n  --tw-border-spacing-y: 0;\n  --tw-translate-x: 0;\n  --tw-translate-y: 0;\n  --tw-rotate: 0;\n  --tw-skew-x: 0;\n  --tw-skew-y: 0;\n  --tw-scale-x: 1;\n  --tw-scale-y: 1;\n  --tw-pan-x:  ;\n  --tw-pan-y:  ;\n  --tw-pinch-zoom:  ;\n  --tw-scroll-snap-strictness: proximity;\n  --tw-gradient-from-position:  ;\n  --tw-gradient-via-position:  ;\n  --tw-gradient-to-position:  ;\n  --tw-ordinal:  ;\n  --tw-slashed-zero:  ;\n  --tw-numeric-figure:  ;\n  --tw-numeric-spacing:  ;\n  --tw-numeric-fraction:  ;\n  --tw-ring-inset:  ;\n  --tw-ring-offset-width: 0px;\n  --tw-ring-offset-color: #fff;\n  --tw-ring-color: rgb(59 130 246 / 0.5);\n  --tw-ring-offset-shadow: 0 0 #0000;\n  --tw-ring-shadow: 0 0 #0000;\n  --tw-shadow: 0 0 #0000;\n  --tw-shadow-colored: 0 0 #0000;\n  --tw-blur:  ;\n  --tw-brightness:  ;\n  --tw-contrast:  ;\n  --tw-grayscale:  ;\n  --tw-hue-rotate:  ;\n  --tw-invert:  ;\n  --tw-saturate:  ;\n  --tw-sepia:  ;\n  --tw-drop-shadow:  ;\n  --tw-backdrop-blur:  ;\n  --tw-backdrop-brightness:  ;\n  --tw-backdrop-contrast:  ;\n  --tw-backdrop-grayscale:  ;\n  --tw-backdrop-hue-rotate:  ;\n  --tw-backdrop-invert:  ;\n  --tw-backdrop-opacity:  ;\n  --tw-backdrop-saturate:  ;\n  --tw-backdrop-sepia:  ;\n  --tw-contain-size:  ;\n  --tw-contain-layout:  ;\n  --tw-contain-paint:  ;\n  --tw-contain-style:  ;\n}\n/*\n! tailwindcss v3.4.14 | MIT License | https://tailwindcss.com\n*/\n/*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n:where(.stack-scope) *,\n:where(.stack-scope) ::before,\n:where(.stack-scope) ::after,\n*:where(.stack-scope),\n:where(.stack-scope)::before,\n:where(.stack-scope)::after {\n  box-sizing: border-box;\n  /* 1 */\n  border-width: 0;\n  /* 2 */\n  border-style: solid;\n  /* 2 */\n  border-color: #e5e7eb;\n  /* 2 */\n}\n:where(.stack-scope) ::before,\n:where(.stack-scope) ::after,\n:where(.stack-scope)::before,\n:where(.stack-scope)::after {\n  --tw-content: \'\';\n}\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user\'s configured `sans` font-family by default.\n5. Use the user\'s configured `sans` font-feature-settings by default.\n6. Use the user\'s configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\n:where(.stack-scope) html,\n:where(.stack-scope) :host,\nhtml:where(.stack-scope),\n:where(.stack-scope):host {\n  line-height: 1.5;\n  /* 1 */\n  -webkit-text-size-adjust: 100%;\n  /* 2 */\n  -moz-tab-size: 4;\n  /* 3 */\n  -o-tab-size: 4;\n     tab-size: 4;\n  /* 3 */\n  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n  /* 4 */\n  font-feature-settings: normal;\n  /* 5 */\n  font-variation-settings: normal;\n  /* 6 */\n  -webkit-tap-highlight-color: transparent;\n  /* 7 */\n}\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n:where(.stack-scope) body, body:where(.stack-scope) {\n  margin: 0;\n  /* 1 */\n  line-height: inherit;\n  /* 2 */\n}\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n:where(.stack-scope) hr, hr:where(.stack-scope) {\n  height: 0;\n  /* 1 */\n  color: inherit;\n  /* 2 */\n  border-top-width: 1px;\n  /* 3 */\n}\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n:where(.stack-scope) abbr:where([title]), abbr:where(.stack-scope):where([title]) {\n  text-decoration: underline dotted;\n}\n/*\nRemove the default font size and weight for headings.\n*/\n:where(.stack-scope) h1,\n:where(.stack-scope) h2,\n:where(.stack-scope) h3,\n:where(.stack-scope) h4,\n:where(.stack-scope) h5,\n:where(.stack-scope) h6,\nh1:where(.stack-scope),\nh2:where(.stack-scope),\nh3:where(.stack-scope),\nh4:where(.stack-scope),\nh5:where(.stack-scope),\nh6:where(.stack-scope) {\n  font-size: inherit;\n  font-weight: inherit;\n}\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n:where(.stack-scope) a, a:where(.stack-scope) {\n  color: inherit;\n  text-decoration: inherit;\n}\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n:where(.stack-scope) b,\n:where(.stack-scope) strong,\nb:where(.stack-scope),\nstrong:where(.stack-scope) {\n  font-weight: bolder;\n}\n/*\n1. Use the user\'s configured `mono` font-family by default.\n2. Use the user\'s configured `mono` font-feature-settings by default.\n3. Use the user\'s configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\n:where(.stack-scope) code,\n:where(.stack-scope) kbd,\n:where(.stack-scope) samp,\n:where(.stack-scope) pre,\ncode:where(.stack-scope),\nkbd:where(.stack-scope),\nsamp:where(.stack-scope),\npre:where(.stack-scope) {\n  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;\n  /* 1 */\n  font-feature-settings: normal;\n  /* 2 */\n  font-variation-settings: normal;\n  /* 3 */\n  font-size: 1em;\n  /* 4 */\n}\n/*\nAdd the correct font size in all browsers.\n*/\n:where(.stack-scope) small, small:where(.stack-scope) {\n  font-size: 80%;\n}\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n:where(.stack-scope) sub,\n:where(.stack-scope) sup,\nsub:where(.stack-scope),\nsup:where(.stack-scope) {\n  font-size: 75%;\n  line-height: 0;\n  position: relative;\n  vertical-align: baseline;\n}\n:where(.stack-scope) sub, sub:where(.stack-scope) {\n  bottom: -0.25em;
2\n}\n:where(.stack-scope) sup, sup:where(.stack-scope) {\n  top: -0.5em;\n}\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n:where(.stack-scope) table, table:where(.stack-scope) {\n  text-indent: 0;\n  /* 1 */\n  border-color: inherit;\n  /* 2 */\n  border-collapse: collapse;\n  /* 3 */\n}\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n:where(.stack-scope) button,\n:where(.stack-scope) input,\n:where(.stack-scope) optgroup,\n:where(.stack-scope) select,\n:where(.stack-scope) textarea,\nbutton:where(.stack-scope),\ninput:where(.stack-scope),\noptgroup:where(.stack-scope),\nselect:where(.stack-scope),\ntextarea:where(.stack-scope) {\n  font-family: inherit;\n  /* 1 */\n  font-feature-settings: inherit;\n  /* 1 */\n  font-variation-settings: inherit;\n  /* 1 */\n  font-size: 100%;\n  /* 1 */\n  font-weight: inherit;\n  /* 1 */\n  line-height: inherit;\n  /* 1 */\n  letter-spacing: inherit;\n  /* 1 */\n  color: inherit;\n  /* 1 */\n  margin: 0;\n  /* 2 */\n  padding: 0;\n  /* 3 */\n}\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n:where(.stack-scope) button,\n:where(.stack-scope) select,\nbutton:where(.stack-scope),\nselect:where(.stack-scope) {\n  text-transform: none;\n}\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n:where(.stack-scope) button,\n:where(.stack-scope) input:where([type=\'button\']),\n:where(.stack-scope) input:where([type=\'reset\']),\n:where(.stack-scope) input:where([type=\'submit\']),\nbutton:where(.stack-scope),\ninput:where(.stack-scope):where([type=\'button\']),\ninput:where(.stack-scope):where([type=\'reset\']),\ninput:where(.stack-scope):where([type=\'submit\']) {\n  -webkit-appearance: button;\n  /* 1 */\n  background-color: transparent;\n  /* 2 */\n  background-image: none;\n  /* 2 */\n}\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n:where(.stack-scope) :-moz-focusring, :where(.stack-scope):-moz-focusring {\n  outline: auto;\n}\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n:where(.stack-scope) :-moz-ui-invalid, :where(.stack-scope):-moz-ui-invalid {\n  box-shadow: none;\n}\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n:where(.stack-scope) progress, progress:where(.stack-scope) {\n  vertical-align: baseline;\n}\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n:where(.stack-scope) ::-webkit-inner-spin-button,\n:where(.stack-scope) ::-webkit-outer-spin-button,\n:where(.stack-scope)::-webkit-inner-spin-button,\n:where(.stack-scope)::-webkit-outer-spin-button {\n  height: auto;\n}\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n:where(.stack-scope) [type=\'search\'], [type=\'search\'] :where(.stack-scope) {\n  -webkit-appearance: textfield;\n  /* 1 */\n  outline-offset: -2px;\n  /* 2 */\n}\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n:where(.stack-scope) ::-webkit-search-decoration, :where(.stack-scope)::-webkit-search-decoration {\n  -webkit-appearance: none;\n}\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n:where(.stack-scope) ::-webkit-file-upload-button, :where(.stack-scope)::-webkit-file-upload-button {\n  -webkit-appearance: button;\n  /* 1 */\n  font: inherit;\n  /* 2 */\n}\n/*\nAdd the correct display in Chrome and Safari.\n*/\n:where(.stack-scope) summary, summary:where(.stack-scope) {\n  display: list-item;\n}\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n:where(.stack-scope) blockquote,\n:where(.stack-scope) dl,\n:where(.stack-scope) dd,\n:where(.stack-scope) h1,\n:where(.stack-scope) h2,\n:where(.stack-scope) h3,\n:where(.stack-scope) h4,\n:where(.stack-scope) h5,\n:where(.stack-scope) h6,\n:where(.stack-scope) hr,\n:where(.stack-scope) figure,\n:where(.stack-scope) p,\n:where(.stack-scope) pre,\nblockquote:where(.stack-scope),\ndl:where(.stack-scope),\ndd:where(.stack-scope),\nh1:where(.stack-scope),\nh2:where(.stack-scope),\nh3:where(.stack-scope),\nh4:where(.stack-scope),\nh5:where(.stack-scope),\nh6:where(.stack-scope),\nhr:where(.stack-scope),\nfigure:where(.stack-scope),\np:where(.stack-scope),\npre:where(.stack-scope) {\n  margin: 0;\n}\n:where(.stack-scope) fieldset, fieldset:where(.stack-scope) {\n  margin: 0;\n  padding: 0;\n}\n:where(.stack-scope) legend, legend:where(.stack-scope) {\n  padding: 0;\n}\n:where(.stack-scope) ol,\n:where(.stack-scope) ul,\n:where(.stack-scope) menu,\nol:where(.stack-scope),\nul:where(.stack-scope),\nmenu:where(.stack-scope) {\n  list-style: none;\n  margin: 0;\n  padding: 0;\n}\n/*\nReset default styling for dialogs.\n*/\n:where(.stack-scope) dialog, dialog:where(.stack-scope) {\n  padding: 0;\n}\n/*\nPrevent resizing textareas horizontally by default.\n*/\n:where(.stack-scope) textarea, textarea:where(.stack-scope) {\n  resize: vertical;\n}\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user\'s configured gray 400 color.\n*/\n:where(.stack-scope) input::-moz-placeholder, :where(.stack-scope) textarea::-moz-placeholder, input:where(.stack-scope)::-moz-placeholder, textarea:where(.stack-scope)::-moz-placeholder {\n  opacity: 1;\n  /* 1 */\n  color: #9ca3af;\n  /* 2 */\n}\n:where(.stack-scope) input::placeholder,\n:where(.stack-scope) textarea::placeholder,\ninput:where(.stack-scope)::placeholder,\ntextarea:where(.stack-scope)::placeholder {\n  opacity: 1;\n  /* 1 */\n  color: #9ca3af;\n  /* 2 */\n}\n/*\nSet the default cursor for buttons.\n*/\n:where(.stack-scope) button,\n:where(.stack-scope) [role="button"],\nbutton:where(.stack-scope),\n[role="button"] :where(.stack-scope) {\n  cursor: pointer;\n}\n/*\nMake sure disabled buttons don\'t get the pointer cursor.\n*/\n:where(.stack-scope) :disabled, :where(.stack-scope):disabled {\n  cursor: default;\n}\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/je
2nsimmons/cssremedy/issues/14#issuecomment-634934210)\n   This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n:where(.stack-scope) img,\n:where(.stack-scope) svg,\n:where(.stack-scope) video,\n:where(.stack-scope) canvas,\n:where(.stack-scope) audio,\n:where(.stack-scope) iframe,\n:where(.stack-scope) embed,\n:where(.stack-scope) object,\nimg:where(.stack-scope),\nsvg:where(.stack-scope),\nvideo:where(.stack-scope),\ncanvas:where(.stack-scope),\naudio:where(.stack-scope),\niframe:where(.stack-scope),\nembed:where(.stack-scope),\nobject:where(.stack-scope) {\n  display: block;\n  /* 1 */\n  vertical-align: middle;\n  /* 2 */\n}\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n:where(.stack-scope) img,\n:where(.stack-scope) video,\nimg:where(.stack-scope),\nvideo:where(.stack-scope) {\n  max-width: 100%;\n  height: auto;\n}\n/* Make elements with the HTML hidden attribute stay hidden by default */\n:where(.stack-scope) [hidden]:where(:not([hidden="until-found"])), [hidden] :where(.stack-scope):where(:not([hidden="until-found"])) {\n  display: none;\n}\n:where(.stack-scope) .sr-only, :where(.stack-scope).sr-only {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  padding: 0;\n  margin: -1px;\n  overflow: hidden;\n  clip: rect(0, 0, 0, 0);\n  white-space: nowrap;\n  border-width: 0;\n}\n:where(.stack-scope) .pointer-events-none, :where(.stack-scope).pointer-events-none {\n  pointer-events: none;\n}\n:where(.stack-scope) .pointer-events-auto, :where(.stack-scope).pointer-events-auto {\n  pointer-events: auto;\n}\n:where(.stack-scope) .visible, :where(.stack-scope).visible {\n  visibility: visible;\n}\n:where(.stack-scope) .invisible, :where(.stack-scope).invisible {\n  visibility: hidden;\n}\n:where(.stack-scope) .static, :where(.stack-scope).static {\n  position: static;\n}\n:where(.stack-scope) .fixed, :where(.stack-scope).fixed {\n  position: fixed;\n}\n:where(.stack-scope) .absolute, :where(.stack-scope).absolute {\n  position: absolute;\n}\n:where(.stack-scope) .relative, :where(.stack-scope).relative {\n  position: relative;\n}\n:where(.stack-scope) .inset-0, :where(.stack-scope).inset-0 {\n  inset: 0px;\n}\n:where(.stack-scope) .inset-x-0, :where(.stack-scope).inset-x-0 {\n  left: 0px;\n  right: 0px;\n}\n:where(.stack-scope) .inset-y-0, :where(.stack-scope).inset-y-0 {\n  top: 0px;\n  bottom: 0px;\n}\n:where(.stack-scope) .-right-2, :where(.stack-scope).-right-2 {\n  right: -0.5rem;\n}\n:where(.stack-scope) .-top-2, :where(.stack-scope).-top-2 {\n  top: -0.5rem;\n}\n:where(.stack-scope) .bottom-0, :where(.stack-scope).bottom-0 {\n  bottom: 0px;\n}\n:where(.stack-scope) .left-0, :where(.stack-scope).left-0 {\n  left: 0px;\n}\n:where(.stack-scope) .left-2, :where(.stack-scope).left-2 {\n  left: 0.5rem;\n}\n:where(.stack-scope) .left-3, :where(.stack-scope).left-3 {\n  left: 0.75rem;\n}\n:where(.stack-scope) .left-\\[50\\%\\], :where(.stack-scope).left-\\[50\\%\\] {\n  left: 50%;\n}\n:where(.stack-scope) .right-0, :where(.stack-scope).right-0 {\n  right: 0px;\n}\n:where(.stack-scope) .right-1, :where(.stack-scope).right-1 {\n  right: 0.25rem;\n}\n:where(.stack-scope) .right-2, :where(.stack-scope).right-2 {\n  right: 0.5rem;\n}\n:where(.stack-scope) .right-3, :where(.stack-scope).right-3 {\n  right: 0.75rem;\n}\n:where(.stack-scope) .right-4, :where(.stack-scope).right-4 {\n  right: 1rem;\n}\n:where(.stack-scope) .top-0, :where(.stack-scope).top-0 {\n  top: 0px;\n}\n:where(.stack-scope) .top-1, :where(.stack-scope).top-1 {\n  top: 0.25rem;\n}\n:where(.stack-scope) .top-2, :where(.stack-scope).top-2 {\n  top: 0.5rem;\n}\n:where(.stack-scope) .top-4, :where(.stack-scope).top-4 {\n  top: 1rem;\n}\n:where(.stack-scope) .top-\\[1px\\], :where(.stack-scope).top-\\[1px\\] {\n  top: 1px;\n}\n:where(.stack-scope) .top-\\[50\\%\\], :where(.stack-scope).top-\\[50\\%\\] {\n  top: 50%;\n}\n:where(.stack-scope) .top-\\[60\\%\\], :where(.stack-scope).top-\\[60\\%\\] {\n  top: 60%;\n}\n:where(.stack-scope) .top-full, :where(.stack-scope).top-full {\n  top: 100%;\n}\n:where(.stack-scope) .z-10, :where(.stack-scope).z-10 {\n  z-index: 10;\n}\n:where(.stack-scope) .z-50, :where(.stack-scope).z-50 {\n  z-index: 50;\n}\n:where(.stack-scope) .z-\\[100\\], :where(.stack-scope).z-\\[100\\] {\n  z-index: 100;\n}\n:where(.stack-scope) .z-\\[1\\], :where(.stack-scope).z-\\[1\\] {\n  z-index: 1;\n}\n:where(.stack-scope) .-mx-1, :where(.stack-scope).-mx-1 {\n  margin-left: -0.25rem;\n  margin-right: -0.25rem;\n}\n:where(.stack-scope) .-mx-6, :where(.stack-scope).-mx-6 {\n  margin-left: -1.5rem;\n  margin-right: -1.5rem;\n}\n:where(.stack-scope) .mx-2, :where(.stack-scope).mx-2 {\n  margin-left: 0.5rem;\n  margin-right: 0.5rem;\n}\n:where(.stack-scope) .my-1, :where(.stack-scope).my-1 {\n  margin-top: 0.25rem;\n  margin-bottom: 0.25rem;\n}\n:where(.stack-scope) .my-2, :where(.stack-scope).my-2 {\n  margin-top: 0.5rem;\n  margin-bottom: 0.5rem;\n}\n:where(.stack-scope) .my-5, :where(.stack-scope).my-5 {\n  margin-top: 1.25rem;\n  margin-bottom: 1.25rem;\n}\n:where(.stack-scope) .my-6, :where(.stack-scope).my-6 {\n  margin-top: 1.5rem;\n  margin-bottom: 1.5rem;\n}\n:where(.stack-scope) .-ml-3, :where(.stack-scope).-ml-3 {\n  margin-left: -0.75rem;\n}\n:where(.stack-scope) .mb-1, :where(.stack-scope).mb-1 {\n  margin-bottom: 0.25rem;\n}\n:where(.stack-scope) .mb-2, :where(.stack-scope).mb-2 {\n  margin-bottom: 0.5rem;\n}\n:where(.stack-scope) .mb-4, :where(.stack-scope).mb-4 {\n  margin-bottom: 1rem;\n}\n:where(.stack-scope) .mb-6, :where(.stack-scope).mb-6 {\n  margin-bottom: 1.5rem;\n}\n:where(.stack-scope) .ml-1, :where(.stack-scope).ml-1 {\n  margin-left: 0.25rem;\n}\n:where(.stack-scope) .ml-2, :where(.stack-scope).ml-2 {\n  margin-left: 0.5rem;\n}\n:where(.stack-scope) .ml-auto, :where(.stack-scope).ml-auto {\n  margin-left: auto;\n}\n:where(.stack-scope) .mr-1\\.5, :where(.stack-scope).mr-1\\.5 {\n  margin-right: 0.375rem;\n}\n:where(.stack-scope) .mr-2, :where(.stack-scope).mr-2 {\n  margin-right: 0.5rem;\n}\n:where(.stack-scope) .mr-4, :where(.stack-scope).mr-4 {\n  margin-right: 1rem;\n}\n:where(.stack-scope) .mt-1, :where(.stack-scope).mt-1 {\n  margin-top: 0.25rem;\n}\n:where(.stack-scope) .mt-1\\.5, :where(.stack-scope).mt-1\\.5 {\n  margin-top: 0.375rem;\n}\n:where(.stack-scope) .mt-2, :where(.stack-scope).mt-2 {\n  margin-top: 0.5rem;\n}\n:where(.stack-scope) .mt-4, :where(.stack-scope).mt-4 {\n  margin-top: 1rem;\n}\n:where(.stack-scope) .mt-6, :where(.stack-scope).mt-6 {\n  margin-top: 1.5rem;\n}\n:where(.stack-scope) .mt-8, :where(.stack-scope).mt-8 {\n  margin-top: 2rem;\n}\n:where(.stack-scope) .box-border, :where(.stack-scope).box-border {\n  box-sizing: border-box;\n}\n:where(.stack-scope) .block, :where(.stack-scope).block {\n  display: block;\n}\n:where(.stack-scope) .inline, :where(.stack-scope).inline {\n  display: inline;\n}\n:where(.stack-scope) .flex, :where(.stack-scope).flex {\n  display: flex;\n}\n:where(.stack-scope) .inline-flex, :where(.stack-scope).inline-flex {\n  display: inline-flex;\n}\n:where(.stack-scope) .\\!table, :where(.stack-scope).\\!table {\n  display: table !important;\n}\n:where(.stack-scope) .table, :where(.stack-scope).table {\n  display: table;\n}\n:where(.stack-scope) .grid, :where(.stack-scope).grid {\n  display: grid;\n}\n:where(.stack-scope) .hidden, :where(.stack-scope).hidden {\n  display: none;\n}\n:where(.stack-scope) .aspect-square, :where(.stack-scope).aspect-square {\n  aspect-ratio: 1 / 1;\n}\n:where(.stack-scope) .h-0\\.5, :where(.stack-scope).h-0\\.5 {\n  height: 0.125rem;\n}\n:where(.stack-scope) .h-1\\.5, :where(.stack-scope).h-1\\.5 {\n  height: 0.375rem;\n}\n:where(.stack-scope) .h-10, :where(.stack-scope).h-10 {\n  height: 2.5rem;\n}\n:where(.stack-scope) .h-2, :where(.stack-scope).h-2 {\n  height: 0.5rem;\n}\n:where(.stack-scope) .h-2\\.5, :where(.stack-scope).h-2\\.5 {\n  height: 0.625rem;\n}\n:where(.stack-scope) .h-24, :where(.stack-scope).h-24 {\n  height: 6rem;\n}\n:where(.stack-scope) .h-3, :where(.stack-scope).h-3 {\n  height: 0.75rem;\n}\n:where(.stack-scope) .h-3\\.5, :where(.stack-scope).h-3\\.5 {\n  height: 0.875rem;\n}\n:where(.stack-scope) .h-4, :where(.stack-scope).h-4 {\n  height: 1rem;\n}\n:where(.stack-scope) .h-5, :where(.stack-scope).h-5 {\n  height: 1.25rem;\n}\n:where(.stack-scope) .h-6, :where(.stack-scope).h-6 {\n  height: 1.5rem;\n}\n:where(.stack-scope) .h-64, :where(.stack-scope).h-64 {\n  height: 16rem;\n}\n:where(.stack-scope) .h-7, :where(.stack-scope).h-7 {\n  height: 1.75rem;\n}\n:where(.stack-scope) .h-8, :where(.stack-scope).h-8 {\n  height: 2rem;\n}\n:where(.stack-scope) .h-9, :where(.stack-scope).h-9 {\n  height: 2.25rem;\n}\n:where(.stack-scope) .h-\\[1px\\], :where(.stack-scope).h-\\[1px\\] {\n  height: 1px;\n}\n:where(.stack-scope) .h-\\[200px\\], :where(.stack-scope).h-\\[200px\\] {\n  height: 200px;\n}\n:where(.stack-scope) .h-\\[300px\\], :where(.stack-scope).h-\\[300px\\] {\n  height: 300px;\n}\n:where(.stack-scope) .h-\\[34px\\], :where(.stack-scope).h-\\[34px\\] {\n  height: 34px;\n}\n:where(.stack-scope) .h-\\[60px\\], :where(.stack-scope).h-\\[60px\\] {\n  height: 60px;\n}\n:where(.stack-scope) .h-\\[var\\(--radix-navigation-menu-viewport-height\\)\\], :where(.stack-scope).h-\\[var\\(--radix-navigation-menu-viewport-height\\)\\] {\n  height: var(--radix-navigation-menu-viewport-height);\n}\n:where(.stack-scope) .h-\\[var\\(--radix-select-trigger-height\\)\\], :where(.stack-scope).h-\\[var\\(--radix-select-trigger-height\\)\\] {\n  height: var(--radix-select-trigger-height);\n}\n:where(.stack-scope) .h-full, :where(.stack-scope).h-full {\n  height: 100%;\n}\n:where(.stack-scope) .h-px, :where(.stack-scope).h-px {\n  height: 1px;\n}\n:where(.stack-scope) .max-h-6, :where(.stack-scope).max-h-6 {\n  max-height: 1.5rem;\n}\n:where(.stack-scope) .max-h-96, :where(.stack-scope).max-h-96 {\n  max-height: 24rem;\n}\n:where(.stack-scope) .max-h-\\[300px\\], :where(.stack-scope).max-h-\\[300px\\] {\n  max-height: 300px;\n}\n:where(.stack-scope) .max-h-screen, :where(.stack-scope).max-h-screen {\n  max-height: 100vh;\n}\n:where(.stack-scope) .min-h-6, :where(.stack-scope).min-h-6 {\n  min-height: 1.5rem;\n}\n:where(.stack-scope) .min-h-\\[60px\\], :where(.stack-scope).min-h-\\[60px\\] {\n  min-height: 60px;\n}\n:where(.stack-scope) .w-0, :where(.stack-scope).w-0 {\n  width: 0px;\n}\n:where(.stack-scope) .w-10, :where(.stack-scope).w-10 {\n  width: 2.5rem;\n}\n:where(.stack-scope) .w-16, :where(.stack-scope).w-16 {\n  width: 4rem;\n}\n:where(.stack-scope) .w-2, :where(.stack-scope).w-2 {\n  width: 0.5rem;\n}\n:where(.stack-scope) .w-2\\.5, :where(.stack-scope).w-2\\.5 {\n  width: 0.625rem;\n}\n:where(.stack-scope) .w-2\\/3, :where(.stack-scope).w-2\\/3 {\n  width: 66.666667%;\n}\n:where(.stack-scope) .w-24, :where(.stack-scope).w-24 {\n  width: 6rem;\n}\n:where(.stack-scope) .w-3, :where(.stack-scope).w-3 {\n  width: 0.75rem;\n}\n:where(.stack-scope) .w-3\\.5, :where(.stack-scope).w-3\\.5 {\n  width: 0.875rem;\n}\n:where(.stack-scope) .w-3\\/4, :where(.stack-scope).w-3\\/4 {\n  width: 75%;\n}\n:where(.stack-scope) .w-4, :where(.stack-scope).w-4 {\n  width: 1rem;\n}\n:where(.stack-scope) .w-48, :where(.stack-scope).w-48 {\n  width: 12rem;\n}\n:where(.stack-scope) .w-5, :where(.stack-scope).w-5 {\n  width: 1.25rem;\n}\n:where(.stack-scope) .w-6, :where(.stack-scope).w-6 {\n  width: 1.5rem;\n}\n:where(.stack-scope) .w-64, :where(.stack-scope).w-64 {\n  width: 16rem;\n}\n:where(.stack-scope) .w-7, :where(.stack-scope).w-7 {\n  width: 1.75rem;\n}\n:where(.stack-scope) .w-72, :where(.stack-scope).w-72 {\n  width: 18rem;\n}\n:where(.stack-scope) .w-8, :where(.stack-scope).w-8 {\n  width: 2rem;\n}\n:where(.stack-scope) .w-9, :where(.stack-scope).w-9 {\n  width: 2.25rem;\n}\n:where(.stack-scope) .w-\\[100px\\], :where(.stack-scope).w-\\[100px\\] {\n  width: 100px;\n}\n:where(.stack-scope) .w-\\[120px\\], :where(.stack-scope).w-\\[120px\\] {\n  width: 120px;\n}\n:where(.stack-scope) .w-\\[140px\\], :where(.stack-scope).w-\\[140px\\] {\n  width: 140px;\n}\n:where(.stack-scope) .w-\\[150px\\], :where(.stack-scope).w-\\[150px\\] {\n  width: 150px;\n}\n:where(.stack-scope) .w-\\[1px\\], :where(.stack-scope).w-\\[1p
2x\\] {\n  width: 1px;\n}\n:where(.stack-scope) .w-\\[200px\\], :where(.stack-scope).w-\\[200px\\] {\n  width: 200px;\n}\n:where(.stack-scope) .w-\\[250px\\], :where(.stack-scope).w-\\[250px\\] {\n  width: 250px;\n}\n:where(.stack-scope) .w-\\[34px\\], :where(.stack-scope).w-\\[34px\\] {\n  width: 34px;\n}\n:where(.stack-scope) .w-\\[36px\\], :where(.stack-scope).w-\\[36px\\] {\n  width: 36px;\n}\n:where(.stack-scope) .w-\\[60px\\], :where(.stack-scope).w-\\[60px\\] {\n  width: 60px;\n}\n:where(.stack-scope) .w-\\[70px\\], :where(.stack-scope).w-\\[70px\\] {\n  width: 70px;\n}\n:where(.stack-scope) .w-\\[800px\\], :where(.stack-scope).w-\\[800px\\] {\n  width: 800px;\n}\n:where(.stack-scope) .w-\\[80px\\], :where(.stack-scope).w-\\[80px\\] {\n  width: 80px;\n}\n:where(.stack-scope) .w-\\[calc\\(100\\%\\+3rem\\)\\], :where(.stack-scope).w-\\[calc\\(100\\%\\+3rem\\)\\] {\n  width: calc(100% + 3rem);\n}\n:where(.stack-scope) .w-fit, :where(.stack-scope).w-fit {\n  width: -moz-fit-content;\n  width: fit-content;\n}\n:where(.stack-scope) .w-full, :where(.stack-scope).w-full {\n  width: 100%;\n}\n:where(.stack-scope) .w-max, :where(.stack-scope).w-max {\n  width: -moz-max-content;\n  width: max-content;\n}\n:where(.stack-scope) .w-px, :where(.stack-scope).w-px {\n  width: 1px;\n}\n:where(.stack-scope) .min-w-0, :where(.stack-scope).min-w-0 {\n  min-width: 0px;\n}\n:where(.stack-scope) .min-w-6, :where(.stack-scope).min-w-6 {\n  min-width: 1.5rem;\n}\n:where(.stack-scope) .min-w-\\[12rem\\], :where(.stack-scope).min-w-\\[12rem\\] {\n  min-width: 12rem;\n}\n:where(.stack-scope) .min-w-\\[150px\\], :where(.stack-scope).min-w-\\[150px\\] {\n  min-width: 150px;\n}\n:where(.stack-scope) .min-w-\\[200px\\], :where(.stack-scope).min-w-\\[200px\\] {\n  min-width: 200px;\n}\n:where(.stack-scope) .min-w-\\[8rem\\], :where(.stack-scope).min-w-\\[8rem\\] {\n  min-width: 8rem;\n}\n:where(.stack-scope) .min-w-\\[var\\(--radix-select-trigger-width\\)\\], :where(.stack-scope).min-w-\\[var\\(--radix-select-trigger-width\\)\\] {\n  min-width: var(--radix-select-trigger-width);\n}\n:where(.stack-scope) .max-w-40, :where(.stack-scope).max-w-40 {\n  max-width: 10rem;\n}\n:where(.stack-scope) .max-w-6, :where(.stack-scope).max-w-6 {\n  max-width: 1.5rem;\n}\n:where(.stack-scope) .max-w-60, :where(.stack-scope).max-w-60 {\n  max-width: 15rem;\n}\n:where(.stack-scope) .max-w-64, :where(.stack-scope).max-w-64 {\n  max-width: 16rem;\n}\n:where(.stack-scope) .max-w-\\[200px\\], :where(.stack-scope).max-w-\\[200px\\] {\n  max-width: 200px;\n}\n:where(.stack-scope) .max-w-\\[300px\\], :where(.stack-scope).max-w-\\[300px\\] {\n  max-width: 300px;\n}\n:where(.stack-scope) .max-w-\\[320px\\], :where(.stack-scope).max-w-\\[320px\\] {\n  max-width: 320px;\n}\n:where(.stack-scope) .max-w-\\[36px\\], :where(.stack-scope).max-w-\\[3
26px\\] {\n  max-width: 36px;\n}\n:where(.stack-scope) .max-w-\\[380px\\], :where(.stack-scope).max-w-\\[380px\\] {\n  max-width: 380px;\n}\n:where(.stack-scope) .max-w-\\[800px\\], :where(.stack-scope).max-w-\\[800px\\] {\n  max-width: 800px;\n}\n:where(.stack-scope) .max-w-full, :where(.stack-scope).max-w-full {\n  max-width: 100%;\n}\n:where(.stack-scope) .max-w-lg, :where(.stack-scope).max-w-lg {\n  max-width: 32rem;\n}\n:where(.stack-scope) .max-w-max, :where(.stack-scope).max-w-max {\n  max-width: -moz-max-content;\n  max-width: max-content;\n}\n:where(.stack-scope) .flex-1, :where(.stack-scope).flex-1 {\n  flex: 1 1 0%;\n}\n:where(.stack-scope) .flex-shrink-0, :where(.stack-scope).flex-shrink-0 {\n  flex-shrink: 0;\n}\n:where(.stack-scope) .shrink-0, :where(.stack-scope).shrink-0 {\n  flex-shrink: 0;\n}\n:where(.stack-scope) .flex-grow, :where(.stack-scope).flex-grow {\n  flex-grow: 1;\n}\n:where(.stack-scope) .grow, :where(.stack-scope).grow {\n  flex-grow: 1;\n}\n:where(.stack-scope) .caption-bottom, :where(.stack-scope).caption-bottom {\n  caption-side: bottom;\n}\n:where(.stack-scope) .border-collapse, :where(.stack-scope).border-collapse {\n  border-collapse: collapse;\n}\n:where(.stack-scope) .translate-x-\\[-50\\%\\], :where(.stack-scope).translate-x-\\[-50\\%\\] {\n  --tw-translate-x: -50%;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n:where(.stack-scope) .translate-y-\\[-50\\%\\], :where(.stack-scope).translate-y-\\[-50\\%\\] {\n  --tw-translate-y: -50%;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n:where(.stack-scope) .rotate-45, :where(.stack-scope).rotate-45 {\n  --tw-rotate: 45deg;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n:where(.stack-scope) .transform, :where(.stack-scope).transform {\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n@keyframes pulse {\n  50% {\n    opacity: .5;\n  }\n}\n:where(.stack-scope) .animate-pulse, :where(.stack-scope).animate-pulse {\n  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;\n}\n@keyframes spin {\n  to {\n    transform: rotate(360deg);\n  }\n}\n:where(.stack-scope) .animate-spin, :where(.stack-scope).animate-spin {\n  animation: spin 1s linear infinite;\n}\n:where(.stack-scope) .cursor-default, :where(.stack-scope).cursor-default {\n  cursor: default;\n}\n:where(.stack-scope) .cursor-not-allowed, :where(.stack-scope).cursor-not-allowed {\n  cursor: not-allowed;\n}\n:where(.stack-scope) .cursor-pointer, :where(.stack-scope).cursor-pointer {\n  cursor: pointer;\n}\n:where(.stack-scope) .cursor-wait, :where(.stack-scope).cursor-wait {\n  cursor: wait;\n}\n:where(.stack-scope) .touch-none, :where(.stack-scope).touch-none {\n  touch-action: none;\n}\n:where(.stack-scope) .select-none, :where(.stack-scope).select-none {\n  -moz-user-select: none;\n       user-select: none;\n}\n:where(.stack-scope) .resize, :where(.stack-scope).resize {\n  resize: both;\n}\n:where(.stack-scope) .list-none, :where(.stack-scope).list-none {\n  list-style-type: none;\n}\n:where(.stack-scope) .flex-row, :where(.stack-scope).flex-row {\n  flex-direction: row;\n}\n:where(.stack-scope) .flex-row-reverse, :where(.stack-scope).flex-row-reverse {\n  flex-direction: row-reverse;\n}\n:where(.stack-scope) .flex-col, :where(.stack-scope).flex-col {\n  flex-direction: column;\n}\n:where(.stack-scope) .flex-col-reverse, :where(.stack-scope).flex-col-reverse {\n  flex-direction: column-reverse;\n}\n:where(.stack-scope) .flex-wrap, :where(.stack-scope).flex-wrap {\n  flex-wrap: wrap;\n}\n:where(.stack-scope) .items-start, :where(.stack-scope).items-start {\n  align-items: flex-start;\n}\n:where(.stack-scope) .items-end, :where(.stack-scope).items-end {\n  align-items: flex-end;\n}\n:where(.stack-scope) .items-center, :where(.stack-scope).items-center {\n  align-items: center;\n}\n:where(.stack-scope) .items-stretch, :where(.stack-scope).items-stretch {\n  align-items: stretch;\n}\n:where(.stack-scope) .justify-start, :where(.stack-scope).justify-start {\n  justify-content: flex-start;\n}\n:where(.stack-scope) .justify-end, :where(.stack-scope).justify-end {\n  justify-content: flex-end;\n}\n:where(.stack-scope) .justify-center, :where(.stack-scope).justify-center {\n  justify-content: center;\n}\n:where(.stack-scope) .justify-between, :where(.stack-scope).justify-between {\n  justify-content: space-between;\n}\n:where(.stack-scope) .justify-evenly, :where(.stack-scope).justify-evenly {\n  justify-content: space-evenly;\n}\n:where(.stack-scope) .gap-1, :where(.stack-scope).gap-1 {\n  gap: 0.25rem;\n}\n:where(.stack-scope) .gap-1\\.5, :where(.stack-scope).gap-1\\.5 {\n  gap: 0.375rem;\n}\n:where(.stack-scope) .gap-2, :where(.stack-scope).gap-2 {\n  gap: 0.5rem;\n}\n:where(.stack-scope) .gap-4, :where(.stack-scope).gap-4 {\n  gap: 1rem;\n}\n:where(.stack-scope) .gap-6, :where(.stack-scope).gap-6 {\n  gap: 1.5rem;\n}\n:where(.stack-scope) .gap-x-6, :where(.stack-scope).gap-x-6 {\n  -moz-column-gap: 1.5rem;\n       column-gap: 1.5rem;\n}\n:where(.stack-scope) .gap-y-4, :where(.stack-scope).gap-y-4 {\n  row-gap: 1rem;\n}\n:where(.stack-scope) .space-x-1 > :not([hidden]) ~ :not([hidden]), :where(.stack-scope).space-x-1 > :not([hidden]) ~ :not([hidden]) {\n  --tw-space-x-reverse: 0;\n  margin-right: calc(0.25rem * var(--tw-space-x-reverse));\n  margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)));\n}\n:where(.stack-scope) .space-x-2 > :not([hidden]) ~ :not([hidden]), :where(.stack-scope).space-x-2 > :not([hidden]) ~ :not([hidden]) {\n  --tw-space-x-reverse: 0;\n  margin-right: calc(0.5rem * var(--tw-space-x-reverse));\n  margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));\n}\n:where(.stack-scope) .space-y-1 > :not([hidden]) ~ :not([hidden]), :where(.stack-scope).space-y-1 > :not([hidden]) ~ :not([hidden]) {\n  --tw-space-y-reverse: 0;\n  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));\n  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));\n}\n:where(.stack-scope) .space-y-1\\.5 > :not([hidden]) ~ :not([hidden]), :where(.stack-scope).space-y-1\\.5 > :not([hidden]) ~ :not([hidden]) {\n  --tw-space-y-reverse: 0;\n  margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));\n  margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));\n}\n:where(.stack-scope) .space-y-2 > :not([hidden]) ~ :not([hidden]), :where(.stack-scope).space-y-2 > :not([hidden]) ~ :not([hidden]) {\n  --tw-space-y-reverse: 0;\n  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));\n  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));\n}\n:where(.stack-scope) .space-y-3 > :not([hidden]) ~ :not([hidden]), :where(.stack-scope).space-y-3 > :not([hidden]) ~ :not([hidden]) {\n  --tw-space-y-reverse: 0;\n  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));\n  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));\n}\n:where(.stack-scope) .space-y-4 > :not([hidden]) ~ :not([hidden]), :where(.stack-scope).space-y-4 > :not([hidden]) ~ :not([hidden]) {\n  --tw-space-y-reverse: 0;\n  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));\n  margin-bottom: calc(1rem * var(--tw-space-y-reverse));\n}\n:where(.stack-scope) .self-center, :where(.stack-scope).self-center {\n  align-self: center;\n}\n:where(.stack-scope) .self-stretch, :where(.stack-scope).self-stretch {\n  align-self: stretch;\n}\n:where(.stack-scope) .overflow-auto, :where(.stack-scope).overflow-auto {\n  overflow: auto;\n}\n:where(.stack-scope) .overflow-hidden, :where(.stack-scope).overflow-hidden {\n  overflow: hidden;\n}\n:where(.stack-scope) .overflow-y-auto, :where(.stack-scope).overflow-y-auto {\n  overflow-y: auto;\n}\n:where(.stack-scope) .overflow-x-hidden, :where(.stack-scope).overflow-x-hidden {\n  overflow-x: hidden;\n}\n:where(.stack-scope) .truncate, :where(.stack-scope).truncate {\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n}\n:where(.stack-scope) .overflow-ellipsis, :where(.stack-scope).overflow-ellipsis {\n  text-overflow: ellipsis;\n}\n:where(.stack-scope) .text-ellipsis, :where(.stack-scope).text-ellipsis {\n  text-overflow: ellipsis;\n}\n:where(.stack-scope) .whitespace-nowrap, :where(.stack-scope).whitespace-nowrap {\n  white-space: nowrap;\n}\n:where(.stack-scope) .whitespace-pre-wrap, :where(.stack-scope).whitespace-pre-wrap {\n  white-space: pre-wrap;\n}\n:where(.stack-scope) .text-wrap, :where(.stack-scope).text-wrap {\n  text-wrap: wrap;\n}\n:where(.stack-scope) .text-nowrap, :where(.stack-scope).text-nowrap {\n  text-wrap: nowrap;\n}\n:where(.stack-scope) .break-words, :where(.stack-scope).break-words {\n  overflow-wrap: break-word;\n}\n:where(.stack-scope) .rounded, :where(.stack-scope).rounded {\n  border-radius: 0.25rem;\n}\n:where(.stack-scope) .rounded-\\[inherit\\], :where(.stack-scope).rounded-\\[inherit\\] {\n  border-radius: inherit;\n}\n:where(.stack-scope) .rounded-full, :where(.stack-scope).rounded-full {\n  border-radius: 9999px;\n}\n:where(.stack-scope) .rounded-lg, :where(.stack-scope).rounded-lg {\n  border-radius: var(--radius);\n}\n:where(.stack-scope) .rounded-md, :where(.stack-scope).rounded-md {\n  border-radius: calc(var(--radius) - 2px);\n}\n:where(.stack-scope) .rounded-sm, :where(.stack-scope).rounded-sm {\n  border-radius: calc(var(--radius) - 4px);\n}\n:where(.stack-scope) .rounded-xl, :where(.stack-scope).rounded-xl {\n  border-radius: 0.75rem;\n}\n:where(.stack-scope) .rounded-b-md, :where(.stack-scope).rounded-b-md {\n  border-bottom-right-radius: calc(var(--radius) - 2px);\n  border-bottom-left-radius: calc(var(--radius) - 2px);\n}\n:where(.stack-scope) .rounded-l-md, :where(.stack-scope).rounded-l-md {\n  border-top-left-radius: calc(var(--radius) - 2px);\n  border-bottom-left-radius: calc(var(--radius) - 2px);\n}\n:where(.stack-scope) .rounded-l-none, :where(.stack-scope).rounded-l-none {\n  border-top-left-radius: 0px;\n  border-bottom-left-radius: 0px;\n}\n:where(.stack-scope) .rounded-tl-sm, :where(.stack-scope).rounded-tl-sm {\n  border-top-left-radius: calc(var(--radius) - 4px);\n}\n:where(.stack-scope) .border, :where(.stack-scope).border {\n  border-width: 1px;\n}\n:where(.stack-scope) .border-2, :where(.stack-scope).border-2 {\n  border-width: 2px;\n}\n:where(.stack-scope) .border-b, :where(.stack-scope).border-b {\n  border-bottom-width: 1px;\n}\n:where(.stack-scope) .border-l, :where(.stack-scope).border-l {\n  border-left-width: 1px;\n}\n:where(.stack-scope) .border-r, :where(.stack-scope).border-r {\n  border-right-width: 1px;\n}\n:where(.stack-scope) .border-t, :where(.stack-scope).border-t {\n  border-top-width: 1px;\n}\n:where(.stack-scope) .border-border, :where(.stack-scope).border-border {\n  border-color: hsl(var(--border));\n}\n:where(.stack-scope) .border-current, :where(.stack-scope).border-current {\n  border-color: currentColor;\n}\n:where(.stack-scope) .border-destructive, :where(.stack-scope).border-destructive {\n  border-color: hsl(var(--destructive));\n}\n:where(.stack-scope) .border-destructive\\/50, :where(.stack-scope).border-destructive\\/50 {\n  border-color: hsl(var(--destructive) / 0.5);\n}\n:where(.stack-scope) .border-input, :where(.stack-scope).border-input {\n  border-color: hsl(var(--input));\n}\n:where(.stack-scope) .border-primary, :where(.stack-scope).border-primary {\n  border-color: hsl(var(--primary));\n}\n:where(.stack-scope) .border-primary\\/50, :where(.stack-scope).border-primary\\/50 {\n  border-color: hsl(var(--primary) / 0.5);\n}\n:where(.stack-scope) .border-red-500, :where(.stack-scope).border-red-500 {\n  --tw-border-opacity: 1;\n  border-color: rgb(239 68 68 / var(--tw-border-opacity));\n}\n:where(.stack-scope) .border-success, :where(.stack-scope).border-success {\n  border-color: hsl(var(--success));\n}\n:where(.stack-scope) .border-success\\/50, :where(.stack-scope).border-success\\/50 {\n  border-color: hsl(var(--success) / 0.5);\n}\n:where(.stack-scope) .border-transparent, :where(.stack-scope).border-transparent {\n  border-color: transparent;\n}\n:where(.stack-scope) .border-l-transparent, :where(.stack-scope).border-l-transparent {\n  border-left-color: transparent;\n}\n:where(.stack-scope) .border-t-transparent, :where(.stack-scope).border-t-transparent {\n  border-top-color: transparent;\n}\n:where(.stack-scope) .bg-background, :where(.stack-scope).bg-background {\n  background-color: hsl(var(--background));\n}\n:where(.stack-scope) .bg-black\\/80, :where(.stack-scope).bg-black\\/80 {\n  background-color: rgb(0 0 0 / 0.8);\n}\n:where(.stack-scope) .bg-blue-500, :where(.stack-scope).bg-blue-500 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n}\n:where(.stack-scope) .bg-border, :where(.stack-scope).bg-border {\n  background-color: hsl(var(--border));\n}\n:where(.stack-scope) .bg-card, :where(.stack-scope).bg-card {\n  background-color: hsl(var(--card));\n}\n:where(.stack-scope) .bg-destructive, :where(.stack-scope).bg-destructive {\n  background-color: hsl(var(--destructive));\n}\n:where(.stack-scope) .bg-destructive\\/5, :where(.stack-scope).bg-destructive\\/5 {\n  background-color: hsl(var(--destructive) / 0.05);\n}\n:where(.stack-scope) .bg-foreground, :where(.stack-scope).bg-foreground {\n  background-color: hsl(var(--foreground));\n}\n:where(.stack-scope) .bg-gray-200, :where(.stack-scope).bg-gray-200 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(229 231 235 / var(--tw-bg-opacity));\n}\n:where(.stack-scope) .bg-gray-400, :where(.stack-scope).bg-gray-400 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(156 163 175 / var(--tw-bg-opacity));\n}\n:where(.stack-scope) .bg-gray-500\\/20, :where(.stack-scope).bg-gray-500\\/20 {\n  background-color: rgb(107 114 128 / 0.2);\n}\n:where(.stack-scope) .bg-green-500, :where(.stack-scope).bg-green-500 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(34 197 94 / var(--tw-bg-opacity));\n}\n:where(.stack-scope) .bg-muted, :where(.stack-scope).bg-muted {\n  background-color: hsl(var(--muted));\n}\n:where(.stack-scope) .bg-muted\\/50, :where(.stack-scope).bg-muted\\/50 {\n  background-color: hsl(var(--muted) / 0.5);\n}\n:where(.stack-scope) .bg-muted\\/70, :where(.stack-scope).bg-muted\\/70 {\n  background-color: hsl(var(--muted) / 0.7);\n}\n:where(.stack-scope) .bg-popover, :where(.stack-scope).bg-popover {\n  background-color: hsl(var(--popover));\n}\n:where(.stack-scope) .bg-primary, :where(.stack-scope).bg-primary {\n  background-color: hsl(var(--primary));\n}\n:where(.stack-scope) .bg-primary\\/10, :where(.stack-scope).bg-primary\\/10 {\n  background-color: hsl(var(--primary) / 0.1);\n}\n:where(.stack-scope) .bg-primary\\/20, :where(.stack-scope).bg-primary\\/20 {\n  background-color: hsl(var(--primary) / 0.2);\n}\n:where(.stack-scope) .bg-red-500, :where(.stack-scope).bg-red-500 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(239 68 68 / var(--tw-bg-opacity));\n}\n:where(.stack-scope) .bg-secondary, :where(.stack-scope).bg-secondary {\n  background-color: hsl(var(--secondary));\n}\n:where(.stack-scope) .bg-success, :where(.stack-scope).bg-success {\n  background-color: hsl(var(--success));\n}\n:where(.stack-scope) .bg-success\\/5, :where(.stack-scope).bg-success\\/5 {\n  background-color: hsl(var(--success) / 0.05);\n}\n:where(.stack-scope) .bg-transparent, :where(.stack-scope).bg-transparent {\n  background-color: transparent;\n}\n:where(.stack-scope) .bg-white, :where(.stack-scope).bg-white {\n  --tw-bg-opacity: 1;\n  background-color: rgb(255 255 255 / var(--tw-bg-opacity));\n}\n:where(.stack-scope) .bg-white\\/20, :where(.stack-scope).bg-white\\/20 {\n  background-color: rgb(255 255 255 / 0.2);\n}\n:where(.stack-scope) .bg-yellow-500, :where(.stack-scope).bg-yellow-500 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(234 179 8 / var(--tw-bg-opacity));\n}\n:where(.stack-scope) .bg-zinc-
2200, :where(.stack-scope).bg-zinc-200 {\n  --tw-bg-opacity: 1;\n  background-color: rgb(228 228 231 / var(--tw-bg-opacity));\n}\n:where(.stack-scope) .fill-current, :where(.stack-scope).fill-current {\n  fill: currentColor;\n}\n:where(.stack-scope) .fill-primary, :where(.stack-scope).fill-primary {\n  fill: hsl(var(--primary));\n}\n:where(.stack-scope) .p-0, :where(.stack-scope).p-0 {\n  padding: 0px;\n}\n:where(.stack-scope) .p-1, :where(.stack-scope).p-1 {\n  padding: 0.25rem;\n}\n:where(.stack-scope) .p-1\\.5, :where(.stack-scope).p-1\\.5 {\n  padding: 0.375rem;\n}\n:where(.stack-scope) .p-2, :where(.stack-scope).p-2 {\n  padding: 0.5rem;\n}\n:where(.stack-scope) .p-3, :where(.stack-scope).p-3 {\n  padding: 0.75rem;\n}\n:where(.stack-scope) .p-4, :where(.stack-scope).p-4 {\n  padding: 1rem;\n}\n:where(.stack-scope) .p-6, :where(.stack-scope).p-6 {\n  padding: 1.5rem;\n}\n:where(.stack-scope) .p-\\[1px\\], :where(.stack-scope).p-\\[1px\\] {\n  padding: 1px;\n}\n:where(.stack-scope) .px-1, :where(.stack-scope).px-1 {\n  padding-left: 0.25rem;\n  padding-right: 0.25rem;\n}\n:where(.stack-scope) .px-2, :where(.stack-scope).px-2 {\n  padding-left: 0.5rem;\n  padding-right: 0.5rem;\n}\n:where(.stack-scope) .px-2\\.5, :where(.stack-scope).px-2\\.5 {\n  padding-left: 0.625rem;\n  padding-right: 0.625rem;\n}\n:where(.stack-scope) .px-3, :where(.stack-scope).px-3 {\n  padding-left: 0.75rem;\n  padding-right: 0.75rem;\n}\n:where(.stack-scope) .px-4, :where(.stack-scope).px-4 {\n  padding-left: 1rem;\n  padding-right: 1rem;\n}\n:where(.stack-scope) .px-6, :where(.stack-scope).px-6 {\n  padding-left: 1.5rem;\n  padding-right: 1.5rem;\n}\n:where(.stack-scope) .px-8, :where(.stack-scope).px-8 {\n  padding-left: 2rem;\n  padding-right: 2rem;\n}\n:where(.stack-scope) .py-0\\.5, :where(.stack-scope).py-0\\.5 {\n  padding-top: 0.125rem;\n  padding-bottom: 0.125rem;\n}\n:where(.stack-scope) .py-1, :where(.stack-scope).py-1 {\n  padding-top: 0.25rem;\n  padding-bottom: 0.25rem;\n}\n:where(.stack-scope) .py-1\\.5, :where(.stack-scope).py-1\\.5 {\n  padding-top: 0.375rem;\n  padding-bottom: 0.375rem;\n}\n:where(.stack-scope) .py-2, :where(.stack-scope).py-2 {\n  padding-top: 0.5rem;\n  padding-bottom: 0.5rem;\n}\n:where(.stack-scope) .py-3, :where(.stack-scope).py-3 {\n  padding-top: 0.75rem;\n  padding-bottom: 0.75rem;\n}\n:where(.stack-scope) .py-4, :where(.stack-scope).py-4 {\n  padding-top: 1rem;\n  padding-bottom: 1rem;\n}\n:where(.stack-scope) .py-6, :where(.stack-scope).py-6 {\n  padding-top: 1.5rem;\n  padding-bottom: 1.5rem;\n}\n:where(.stack-scope) .pb-0, :where(.stack-scope).pb-0 {\n  padding-bottom: 0px;\n}\n:where(.stack-scope) .pb-2, :where(.stack-scope).pb-2 {\n  padding-bottom: 0.5rem;\n}\n:where(.stack-scope) .pb-4, :where(.stack-scope).pb-4 {\n  padding-bottom: 1rem;\n}\n:where(.stack-scope) .pl-2, :where(.stack-scope).pl-2 {\n  padding-left: 0.5rem;\n}\n:where(.stack-scope) .pl-3, :where(.stack-scope).pl-3 {\n  padding-left: 0.75rem;\n}\n:where(.stack-scope) .pl-8, :where(.stack-scope).pl-8 {\n  padding-left: 2rem;\n}\n:where(.stack-scope) .pr-10, :where(.stack-scope).pr-10 {\n  padding-right: 2.5rem;\n}\n:where(.stack-scope) .pr-2, :where(.stack-scope).pr-2 {\n  padding-right: 0.5rem;\n}\n:where(.stack-scope) .pr-3, :where(.stack-scope).pr-3 {\n  padding-right: 0.75rem;\n}\n:where(.stack-scope) .pr-6, :where(.stack-scope).pr-6 {\n  padding-right: 1.5rem;\n}\n:where(.stack-scope) .pr-8, :where(.stack-scope).pr-8 {\n  padding-right: 2rem;\n}\n:where(.stack-scope) .pt-0, :where(.stack-scope).pt-0 {\n  padding-top: 0px;\n}\n:where(.stack-scope) .pt-1, :where(.stack-scope).pt-1 {\n  padding-top: 0.25rem;\n}\n:where(.stack-scope) .pt-4, :where(.stack-scope).pt-4 {\n  padding-top: 1rem;\n}\n:where(.stack-scope) .text-left, :where(.stack-scope).text-left {\n  text-align: left;\n}\n:where(.stack-scope) .text-center, :where(.stack-scope).text-center {\n  text-align: center;\n}\n:where(.stack-scope) .text-right, :where(.stack-scope).text-right {\n  text-align: right;\n}\n:where(.stack-scope) .align-middle, :where(.stack-scope).align-middle {\n  vertical-align: middle;\n}\n:where(.stack-scope) .text-2xl, :where(.stack-scope).text-2xl {\n  font-size: 1.5rem;\n  line-height: 2rem;\n}\n:where(.stack-scope) .text-3xl, :where(.stack-scope).text-3xl {\n  font-size: 1.875rem;\n  line-height: 2.25rem;\n}\n:where(.stack-scope) .text-\\[0\\.8rem\\], :where(.stack-scope).text-\\[0\\.8rem\\] {\n  font-size: 0.8rem;\n}\n:where(.stack-scope) .text-lg, :where(.stack-scope).text-lg {\n  font-size: 1.125rem;\n  line-height: 1.75rem;\n}\n:where(.stack-scope) .text-sm, :where(.stack-scope).text-sm {\n  font-size: 0.875rem;\n  line-height: 1.25rem;\n}\n:where(.stack-scope) .text-xl, :where(.stack-scope).text-xl {\n  font-size: 1.25rem;\n  line-height: 1.75rem;\n}\n:where(.stack-scope) .text-xs, :where(.stack-scope).text-xs {\n  font-size: 0.75rem;\n  line-height: 1rem;\n}\n:where(.stack-scope) .font-bold, :where(.stack-scope).font-bold {\n  font-weight: 700;\n}\n:where(.stack-scope) .font-medium, :where(.stack-scope).font-medium {\n  font-weight: 500;\n}\n:where(.stack-scope) .font-normal, :where(.stack-scope).font-normal {\n  font-weight: 400;\n}\n:where(.stack-scope) .font-semibold, :where(.stack-scope).font-semibold {\n  font-weight: 600;\n}\n:where(.stack-scope) .uppercase, :where(.stack-scope).uppercase {\n  text-transform: uppercase;\n}\n:where(.stack-scope) .capitalize, :where(.stack-scope).capitalize {\n  text-transform: capitalize;\n}\n:where(.stack-scope) .italic, :where(.stack-scope).italic {\n  font-style: italic;\n}\n:where(.stack-scope) .leading-6, :where(.stack-scope).leading-6 {\n  line-height: 1.5rem;\n}\n:where(.stack-scope) .leading-\\[0\\], :where(.stack-scope).leading-\\[0\\] {\n  line-height: 0;\n}\n:where(.stack-scope) .leading-none, :where(.stack-scope).leading-none {\n  line-height: 1;\n}\n:where(.stack-scope) .tracking-tight, :where(.stack-scope).tracking-tight {\n  letter-spacing: -0.025em;\n}\n:where(.stack-scope) .tracking-widest, :where(.stack-scope).tracking-widest {\n  letter-spacing: 0.1em;\n}\n:where(.stack-scope) .text-black, :where(.stack-scope).text-black {\n  --tw-text-opacity: 1;\n  color: rgb(0 0 0 / var(--tw-text-opacity));\n}\n:where(.stack-scope) .text-card-foreground, :where(.stack-scope).text-card-foreground {\n  color: hsl(var(--card-foreground));\n}\n:where(.stack-scope) .text-current, :where(.stack-scope).text-current {\n  color: currentColor;\n}\n:where(.stack-scope) .text-destructive, :where(.stack-scope).text-destructive {\n  color: hsl(var(--destructive));\n}\n:where(.stack-scope) .text-destructive-foreground, :where(.stack-scope).text-destructive-foreground {\n  color: hsl(var(--destructive-foreground));\n}\n:where(.stack-scope) .text-foreground, :where(.stack-scope).text-foreground {\n  color: hsl(var(--foreground));\n}\n:where(.stack-scope) .text-foreground\\/50, :where(.stack-scope).text-foreground\\/50 {\n  color: hsl(var(--foreground) / 0.5);\n}\n:where(.stack-scope) .text-gray-500, :where(.stack-scope).text-gray-500 {\n  --tw-text-opacity: 1;\n  color: rgb(107 114 128 / var(--tw-text-opacity));\n}\n:where(.stack-scope) .text-gray-600, :where(.stack-scope).text-gray-600 {\n  --tw-text-opacity: 1;\n  color: rgb(75 85 99 / var(--tw-text-opacity));\n}\n:where(.stack-scope) .text-gray-700, :where(.stack-scope).text-gray-700 {\n  --tw-text-opacity: 1;\n  color: rgb(55 65 81 / var(--tw-text-opacity));\n}\n:where(.stack-scope) .text-green-500, :where(.stack-scope).text-green-500 {\n  --tw-text-opacity: 1;\n  color: rgb(34 197 94 / var(--tw-text-opacity));\n}\n:where(.stack-scope) .text-green-600, :where(.stack-scope).text-green-600 {\n  --tw-text-opacity: 1;\n  color: rgb(22 163 74 / var(--tw-text-opacity));\n}\n:where(.stack-scope) .text-muted-foreground, :where(.stack-scope).text-muted-foreground {\n  color: hsl(var(--muted-foreground));\n}\n:where(.stack-scope) .text-muted-foreground\\/70, :where(.stack-scope).text-muted-foreground\\/70 {\n  color: hsl(var(--muted-foreground) / 0.7);\n}\n:where(.stack-scope) .text-popover-foreground, :where(.stack-scope).text-popover-foreground {\n  color: hsl(var(--popover-foreground));\n}\n:where(.stack-scope) .text-primary, :where(.stack-scope).text-primary {\n  color: hsl(var(--primary));\n}\n:where(.stack-scope) .text-primary-foreground, :where(.stack-scope).text-primary-foreground {\n  color: hsl(var(--primary-foreground));\n}\n:where(.stack-scope) .text-red-500, :where(.stack-scope).text-red-500 {\n  --tw-text-opacity: 1;\n  color: rgb(239 68 68 / var(--tw-text-opacity));\n}\n:where(.stack-scope) .text-red-600, :where(.stack-scope).text-red-600 {\n  --tw-text-opacity: 1;\n  color: rgb(220 38 38 / var(--tw-text-opacity));\n}\n:where(.stack-scope) .text-secondary-foreground, :where(.stack-scope).text-secondary-foreground {\n  color: hsl(var(--secondary-foreground));\n}\n:where(.stack-scope) .text-success, :where(.stack-scope).text-success {\n  color: hsl(var(--success));\n}\n:where(.stack-scope) .text-success-foreground, :where(.stack-scope).text-success-foreground {\n  color: hsl(var(--success-foreground));\n}\n:where(.stack-scope) .text-white, :where(.stack-scope).text-white {\n  --tw-text-opacity: 1;\n  color: rgb(255 255 255 / var(--tw-text-opacity));\n}\n:where(.stack-scope) .text-zinc-500, :where(.stack-scope).text-zinc-500 {\n  --tw-text-opacity: 1;\n  color: rgb(113 113 122 / var(--tw-text-opacity));\n}\n:where(.stack-scope) .text-zinc-600, :where(.stack-scope).text-zinc-600 {\n  --tw-text-opacity: 1;\n  color: rgb(82 82 91 / var(--tw-text-opacity));\n}\n:where(.stack-scope) .text-zinc-700, :where(.stack-scope).text-zinc-700 {\n  --tw-text-opacity: 1;\n  color: rgb(63 63 70 / var(--tw-text-opacity));\n}\n:where(.stack-scope) .text-zinc-800, :where(.stack-scope).text-zinc-800 {\n  --tw-text-opacity: 1;\n  color: rgb(39 39 42 / var(--tw-text-opacity));\n}\n:where(.stack-scope) .underline, :where(.stack-scope).underline {\n  text-decoration-line: underline;\n}\n:where(.stack-scope) .underline-offset-4, :where(.stack-scope).underline-offset-4 {\n  text-underline-offset: 4px;\n}\n:where(.stack-scope) .opacity-0, :where(.stack-scope).opacity-0 {\n  opacity: 0;\n}\n:where(.stack-scope) .opacity-50, :where(.stack-scope).opacity-50 {\n  opacity: 0.5;\n}\n:where(.stack-scope) .opacity-60, :where(.stack-scope).opacity-60 {\n  opacity: 0.6;\n}\n:where(.stack-scope) .opacity-70, :where(.stack-scope).opacity-70 {\n  opacity: 0.7;\n}\n:where(.stack-scope) .opacity-85, :where(.stack-scope).opacity-85 {\n  opacity: 0.85;\n}\n:where(.stack-scope) .opacity-90, :where(.stack-scope).opacity-90 {\n  opacity: 0.9;\n}\n:where(.stack-scope) .shadow, :where(.stack-scope).shadow {\n  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
2\n  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n:where(.stack-scope) .shadow-2xl, :where(.stack-scope).shadow-2xl {\n  --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);\n  --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n:where(.stack-scope) .shadow-lg, :where(.stack-scope).shadow-lg {\n  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);\n  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n:where(.stack-scope) .shadow-md, :where(.stack-scope).shadow-md {\n  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);\n  --tw-shadow-colored: 0 4px 6px -1px var(--tw-sha
2dow-color), 0 2px 4px -2px var(--tw-shadow-color);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n:where(.stack-scope) .shadow-sm, :where(.stack-scope).shadow-sm {\n  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n:where(.stack-scope) .outline-none, :where(.stack-scope).outline-none {\n  outline: 2px solid transparent;\n  outline-offset: 2px;\n}\n:where(.stack-scope) .outline, :where(.stack-scope).outline {\n  outline-style: solid;\n}\n:where(.stack-scope) .ring, :where(.stack-scope).ring {\n  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n:where(.stack-scope) .ring-0, :where(.stack-scope).ring-0 {\n  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-sha
2dow, 0 0 #0000);\n}\n:where(.stack-scope) .ring-1, :where(.stack-scope).ring-1 {\n  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n:where(.stack-scope) .ring-red-500, :where(.stack-scope).ring-red-500 {\n  --tw-ring-opacity: 1;\n  --tw-ring-color: rgb(239 68 68 / var(--tw-ring-opacity));\n}\n:where(.stack-scope) .ring-ring, :where(.stack-scope).ring-ring {\n  --tw-ring-color: hsl(var(--ring));\n}\n:where(.stack-scope) .ring-offset-background, :where(.stack-scope).ring-offset-background {\n  --tw-ring-offset-color: hsl(var(--background));\n}\n:where(.stack-scope) .blur, :where(.stack-scope).blur {\n  --tw-blur: blur(8px);\n  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n:where(.stack-scope) .filter, :where(.stack-scope).filter {\n  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n:where(.stack-scope) .backdrop-blur-md, :where(.stack-scope).backdrop-blur-md {\n  --tw-backdrop-blur: blur(12px);\n  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n}\n:where(.stack-scope) .backdrop-blur-sm, :where(.stack-scope).backdrop-blur-sm {\n  --tw-backdrop-blur: blur(4px);\n  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n}\n:where(.stack-scope) .transition, :where(.stack-scope).transition {\n  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n  transition-duration: 150ms;\n}\n:where(.stack-scope) .transition-all, :where(.stack-scope).transition-all {\n  transition-property: all;\n  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n  transition-duration: 150ms;\n}\n:where(.stack-scope) .transition-colors, :where(.stack-scope).transition-colors {\n  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n  transition-duration: 150ms;\n}\n:where(.stack-scope) .transition-opacity, :where(.stack-scope).transition-opacity {\n  transition-property: opacity;\n  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n  transition-duration: 150ms;\n}\n:where(.stack-scope) .transition-transform, :where(.stack-scope).transition-transform {\n  transition-property: transform;\n  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n  transition-duration: 150ms;\n}\n:where(.stack-scope) .duration-100, :where(.stack-scope).duration-100 {\n  transition-duration: 100ms;\n}\n:where(.stack-scope) .duration-1000, :where(.stack-scope).duration-1000 {\n  transition-duration: 1000ms;\n}\n:where(.stack-scope) .duration-200, :where(.stack-scope).duration-200 {\n  transition-duration: 200ms;\n}\n:where(.stack-scope) .duration-300, :where(.stack-scope).duration-300 {\n  transition-duration: 300ms;\n}\n:where(.stack-scope) .ease-in-out, :where(.stack-scope).ease-in-out {\n  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n@keyframes enter {\n  from {\n    opacity: var(--tw-enter-opacity, 1);\n    transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0));\n  }\n}\n@keyframes exit {\n  to {\n    opacity: var(--tw-exit-opacity, 1);\n    transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0));\n  }\n}\n:where(.stack-scope) .animate-in, :where(.stack-scope).animate-in {\n  animation-name: enter;\n  animation-duration: 150ms;\n  --tw-enter-opacity: initial;\n  --tw-enter-scale: initial;\n  --tw-enter-rotate: initial;\n  --tw-enter-translate-x: initial;\n  --tw-enter-translate-y: initial;\n}\n:where(.stack-scope) .fade-in, :where(.stack-scope).fade-in {\n  --tw-enter-opacity: 0;\n}\n:where(.stack-scope) .fade-in-0, :where(.stack-scope).fade-in-0 {\n  --tw-enter-opacity: 0;\n}\n:where(.stack-scope) .zoom-in, :where(.stack-scope).zoom-in {\n  --tw-enter-scale: 0;\n}\n:where(.stack-scope) .zoom-in-95, :where(.stack-scope).zoom-in-95 {\n  --tw-enter-scale: .95;\n}\n:where(.stack-scope) .slide-in-from-bottom-2, :where(.stack-scope).slide-in-from-bottom-2 {\n  --tw-enter-translate-y: 0.5rem;\n}\n:where(.stack-scope) .duration-100, :where(.stack-scope).duration-100 {\n  animation-duration: 100ms;\n}\n:where(.stack-scope) .duration-1000, :where(.stack-scope).duration-1000 {\n  animation-duration: 1000ms;\n}\n:where(.stack-scope) .duration-200, :where(.stack-scope).duration-200 {\n  animation-duration: 200ms;\n}\n:where(.stack-scope) .duration-300, :where(.stack-scope).duration-300 {\n  animation-duration: 300ms;\n}\n:where(.stack-scope) .ease-in-out, :where(.stack-scope).ease-in-out {\n  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n:where(.stack-scope) .running, :where(.stack-scope).running {\n  animation-play-state: running;\n}\n:where(.stack-scope) .paused, :where(.stack-scope).paused {\n  animation-play-state: paused;\n}\n:where(.stack-scope) *, *:where(.stack-scope) {\n  border-color: hsl(var(--border));\n}\n:where(.stack-scope) * .hide-password-toggle::-ms-reveal,\n  :where(.stack-scope) * .hide-password-toggle::-ms-clear,\n  *:where(.stack-scope) .hide-password-toggle::-ms-reveal,\n  *:where(.stack-scope) .hide-password-toggle::-ms-clear {\n    visibility: hidden;\n    pointer-events: none;\n    display: none;\n  }\n:where(.stack-scope) .file\\:border-0::file-selector-button, :where(.stack-scope).file\\:border-0::file-selector-button {\n  border-width: 0px;\n}\n:where(.stack-scope) .file\\:bg-transparent::file-selector-button, :where(.stack-scope).file\\:bg-transparent::file-selector-button {\n  background-color: transparent;\n}\n:where(.stack-scope) .file\\:text-sm::file-selector-button, :where(.stack-scope).file\\:text-sm::file-selector-button {\n  font-size: 0.875rem;\n  line-height: 1.25rem;\n}\n:where(.stack-scope) .file\\:font-medium::file-selector-button, :where(.stack-scope).file\\:font-medium::file-selector-button {\n  font-weight: 500;\n}\n:where(.stack-scope) .placeholder\\:text-muted-foreground::-moz-placeholder, :where(.stack-scope).placeholder\\:text-muted-foreground::-moz-placeholder {\n  color: hsl(var(--muted-foreground));\n}\n:where(.stack-scope) .placeholder\\:text-muted-foreground::placeholder, :where(.stack-scope).placeholder\\:text-muted-foreground::placeholder {\n  color: hsl(var(--muted-foreground));\n}\n:where(.stack-scope) .after\\:absolute::after, :where(.stack-scope).after\\:absolute::after {\n  
2content: var(--tw-content);\n  position: absolute;\n}\n:where(.stack-scope) .after\\:inset-y-0::after, :where(.stack-scope).after\\:inset-y-0::after {\n  content: var(--tw-content);\n  top: 0px;\n  bottom: 0px;\n}\n:where(.stack-scope) .after\\:left-1\\/2::after, :where(.stack-scope).after\\:left-1\\/2::after {\n  content: var(--tw-content);\n  left: 50%;\n}\n:where(.stack-scope) .after\\:w-1::after, :where(.stack-scope).after\\:w-1::after {\n  content: var(--tw-content);\n  width: 0.25rem;\n}\n:where(.stack-scope) .after\\:-translate-x-1\\/2::after, :where(.stack-scope).after\\:-translate-x-1\\/2::after {\n  content: var(--tw-content);\n  --tw-translate-x: -50%;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n:where(.stack-scope) .focus-within\\:relative:focus-within, :where(.stack-scope).focus-within\\:relative:focus-within {\n  position: relative;\n}\n:where(.stack-scope) .focus-within\\:z-20:focus-within, :where(.stack-scope).focus-within\\:z-20:focus-within {\n  z-index: 20;\n}\n:where(.stack-scope) .hover\\:bg-accent:hover, :where(.stack-scope).hover\\:bg-accent:hover {\n  background-color: hsl(var(--accent));\n}\n:where(.stack-scope) .hover\\:bg-destructive\\/90:hover, :where(.stack-scope).hover\\:bg-destructive\\/90:hover {\n  background-color: hsl(var(--destructive) / 0.9);\n}\n:where(.stack-scope) .hover\\:bg-muted:hover, :where(.stack-scope).hover\\:bg-muted:hover {\n  background-color: hsl(var(--muted));\n}\n:where(.stack-scope) .hover\\:bg-muted\\/50:hover, :where(.stack-scope).hover\\:bg-muted\\/50:hover {\n  background-color: hsl(var(--muted) / 0.5);\n}\n:where(.stack-scope) .hover\\:bg-primary:hover, :where(.stack-scope).hover\\:bg-primary:hover {\n  background-color: hsl(var(--primary));\n}\n:where(.stack-scope) .hover\\:bg-primary\\/90:hover, :where(.stack-scope).hover\\:bg-primary\\/90:hover {\n  background-color: hsl(var(--primary) / 0.9);\n}\n:where(.stack-scope) .hover\\:bg-secondary:hover, :where(.stack-scope).hover\\:bg-secondary:hover {\n  background-color: hsl(var(--secondary));\n}\n:where(.stack-scope) .hover\\:bg-secondary\\/80:hover, :where(.stack-scope).hover\\:bg-secondary\\/80:hover {\n  background-color: hsl(var(--secondary) / 0.8);\n}\n:where(.stack-scope) .hover\\:bg-transparent:hover, :where(.stack-scope).hover\\:bg-transparent:hover {\n  background-color: transparent;\n}\n:where(.stack-scope) .hover\\:text-accent-foreground:hover, :where(.stack-scope).hover\\:text-accent-foreground:hover {\n  color: hsl(var(--accent-foreground));\n}\n:where(.stack-scope) .hover\\:text-foreground:hover, :where(.stack-scope).hover\\:text-foreground:hover {\n  color: hsl(var(--foreground));\n}\n:where(.stack-scope) .hover\\:text-muted-foreground:hover, :where(.stack-scope).hover\\:text-muted-foreground:hover {\n  color: hsl(var(--muted-foreground));\n}\n:where(.stack-scope) .hover\\:text-primary-foreground:hover, :where(.stack-scope).hover\\:text-primary-foreground:hover {\n  color: hsl(var(--primary-foreground));\n}\n:where(.stack-scope) .hover\\:underline:hover, :where(.stack-scope).hover\\:underline:hover {\n  text-decoration-line: underline;\n}\n:where(.stack-scope) .hover\\:opacity-100:hover, :where(.stack-scope).hover\\:opacity-100:hover {\n  opacity: 1;\n}\n:where(.stack-scope) .hover\\:transition-none:hover, :where(.stack-scope).hover\\:transition-none:hover {\n  transition-property: none;\n}\n:where(.stack-scope) .focus\\:bg-accent:focus, :where(.stack-scope).focus\\:bg-accent:focus {\n  background-color: hsl(var(--accent));\n}\n:where(.stack-scope) .focus\\:bg-primary:focus, :where(.stack-scope).focus\\:bg-primary:focus {\n  background-color: hsl(var(--primary));\n}\n:where(.stack-scope) .focus\\:text-accent-foreground:focus, :where(.stack-scope).focus\\:text-accent-foreground:focus {\n  color: hsl(var(--accent-foreground));\n}\n:where(.stack-scope) .focus\\:text-primary-foreground:focus, :where(.stack-scope).focus\\:text-primary-foreground:focus {\n  color: hsl(var(--primary-foreground));\n}\n:where(.stack-scope) .focus\\:opacity-100:focus, :where(.stack-scope).focus\\:opacity-100:focus {\n  opacity: 1;\n}\n:where(.stack-scope) .focus\\:outline-none:focus, :where(.stack-scope).focus\\:outline-none:focus {\n  outline: 2px solid transparent;\n  outline-offset: 2px;\n}\n:where(.stack-scope) .focus\\:ring-1:focus, :where(.stack-scope).focus\\:ring-1:focus {\n  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-sha
2dow, 0 0 #0000);\n}\n:where(.stack-scope) .focus\\:ring-2:focus, :where(.stack-scope).focus\\:ring-2:focus {\n  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n:where(.stack-scope) .focus\\:ring-primary\\/50:focus, :where(.stack-scope).focus\\:ring-primary\\/50:focus {\n  --tw-ring-color: hsl(var(--primary) / 0.5);\n}\n:where(.stack-scope) .focus\\:ring-ring:focus, :where(.stack-scope).focus\\:ring-ring:focus {\n  --tw-ring-color: hsl(var(--ring));\n}\n:where(.stack-scope) .focus\\:ring-offset-2:focus, :where(.stack-scope).focus\\:ring-offset-2:focus {\n  --tw-ring-offset-width: 2px;\n}\n:where(.stack-scope) .focus-visible\\:outline-none:focus-visible, :where(.stack-scope).focus-visible\\:outline-none:focus-visible {\n  outline: 2px solid transparent;\n  outline-offset: 2px;\n}\n:where(.stack-scope) .focus-visible\\:ring-1:focus-visible, :where(.stack-scope).focus-visible\\:ring-1:focus-visible {\n  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-sha
2dow, 0 0 #0000);\n}\n:where(.stack-scope) .focus-visible\\:ring-2:focus-visible, :where(.stack-scope).focus-visible\\:ring-2:focus-visible {\n  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n:where(.stack-scope) .focus-visible\\:ring-ring:focus-visible, :where(.stack-scope).focus-visible\\:ring-ring:focus-visible {\n  --tw-ring-color: hsl(var(--ring));\n}\n:where(.stack-scope) .focus-visible\\:ring-offset-1:focus-visible, :where(.stack-scope).focus-visible\\:ring-offset-1:focus-visible {\n  --tw-ring-offset-width: 1px;\n}\n:where(.stack-scope) .focus-visible\\:ring-offset-2:focus-visible, :where(.stack-scope).focus-visible\\:ring-offset-2:focus-visible {\n  --tw-ring-offset-width: 2px;\n}\n:where(.stack-scope) .focus-visible\\:ring-offset-background:focus-visible, :where(.stack-scope).focus-visible\\:ring-offset-background:focus-visible {\n  --tw-ring-offset-color: hsl(var(--background));\n}\n:where(.stack-scope) .disabled\\:pointer-events-none:disabled, :where(.stack-scope).disabled\\:pointer-events-none:disabled {\n  pointer-events: none;\n}\n:where(.stack-scope) .disabled\\:cursor-not-allowed:disabled, :where(.stack-scope).disabled\\:cursor-not-allowed:disabled {\n  cursor: not-allowed;\n}\n:where(.stack-scope) .disabled\\:opacity-50:disabled, :where(.stack-scope).disabled\\:opacity-50:disabled {\n  opacity: 0.5;\n}\n:where(.stack-scope) .group:hover .group-hover\\:opacity-100, :where(.stack-scope).group:hover .group-hover\\:opacity-100 {\n  opacity: 1;\n}\n:where(.stack-scope) .group.destructive .group-\\[\\.destructive\\]\\:border-muted\\/40, :where(.stack-scope).group.destructive .group-\\[\\.destructive\\]\\:border-muted\\/40 {\n  border-color: hsl(var(--muted) / 0.4);\n}\n:where(.stack-scope) .group.destructive .group-\\[\\.destructive\\]\\:text-red-300, :where(.stack-scope).group.destructive .group-\\[\\.destructive\\]\\:text-red-300 {\n  --tw-text-opacity: 1;\n  color: rgb(252 165 165 / var(--tw-text-opacity));\n}\n:where(.stack-scope) .group.success .group-\\[\\.success\\]\\:text-green-300, :where(.stack-scope).group.success .group-\\[\\.success\\]\\:text-green-300 {\n  --tw-text-opacity: 1;\n  color: rgb(134 239 172 / var(--tw-text-opacity));\n}\n:where(.stack-scope) .group.destructive .group-\\[\\.destructive\\]\\:hover\\:border-destructive\\/30:hover, :where(.stack-scope).group.destructive .group-\\[\\.destructive\\]\\:hover\\:border-destructive\\/30:hover {\n  border-color: hsl(var(--destructive) / 0.3);\n}\n:where(.stack-scope) .group.destructive .group-\\[\\.destructive\\]\\:hover\\:bg-destructive:hover, :where(.stack-scope).group.destructive .group-\\[\\.destructive\\]\\:hover\\:bg-destructive:hover {\n  background-color: hsl(var(--destructive));\n}\n:where(.stack-scope) .group.destructive .group-\\[\\.destructive\\]\\:hover\\:text-destructive-foreground:hover, :where(.stack-scope).group.destructive .group-\\[\\.destructive\\]\\:hover\\:text-destructive-foreground:hover {\n  color: hsl(var(--destructive-foreground));\n}\n:where(.stack-scope) .group.destructive .group-\\[\\.destructive\\]\\:hover\\:text-red-50:hover, :where(.stack-scope).group.destructive .group-\\[\\.destructive\\]\\:hover\\:text-red-50:hover {\n  --tw-text-opacity: 1;\n  color: rgb(254 242 242 / var(--tw-text-opacity));\n}\n:where(.stack-scope) .group.success .group-\\[\\.success\\]\\:hover\\:text-green-50:hover, :where(.stack-scope).group.success .group-\\[\\.success\\]\\:hover\\:text-green-50:hover {\n  --tw-text-opacity: 1;\n  color: rgb(240 253 244 / var(--tw-text-opacity));\n}\n:where(.stack-scope) .group.destructive .group-\\[\\.destructive\\]\\:focus\\:ring-destructive:focus, :where(.stack-scope).group.destructive .group-\\[\\.destructive\\]\\:focus\\:ring-destructive:focus {\n  --tw-ring-color: hsl(var(--destructive));\n}\n:where(.stack-scope) .group.destructive .group-\\[\\.destructive\\]\\:focus\\:ring-red-400:focus, :where(.stack-scope).group.destructive .group-\\[\\.destructive\\]\\:focus\\:ring-red-400:focus {\n  --tw-ring-opacity: 1;\n  --tw-ring-color: rgb(248 113 113 / var(--tw-ring-opacity));\n}\n:where(.stack-scope) .group.success .group-\\[\\.success\\]\\:focus\\:ring-green-400:focus, :where(.stack-scope).group.success .group-\\[\\.success\\]\\:focus\\:ring-green-400:focus {\n  --tw-ring-opacity: 1;\n  --tw-ring-color: rgb(74 222 128 / var(--tw-ring-opacity));\n}\n:where(.stack-scope) .group.destructive .group-\\[\\.destructive\\]\\:focus\\:ring-offset-red-600:focus, :where(.stack-scope).group.destructive .group-\\[\\.destructive\\]\\:focus\\:ring-offset-red-600:focus {\n  --tw-ring-offset-color: #dc2626;\n}\n:where(.stack-scope) .group.success .group-\\[\\.success\\]\\:focus\\:ring-offset-green-600:focus, :where(.stack-scope).group.success .group-\\[\\.success\\]\\:focus\\:ring-offset-green-600:focus {\n  --tw-ring-offset-color: #16a34a;\n}\n:where(.stack-scope) .peer:disabled ~ .peer-disabled\\:cursor-not-allowed, :where(.stack-scope).peer:disabled ~ .peer-disabled\\:cursor-not-allowed {\n  cursor: n
2ot-allowed;\n}\n:where(.stack-scope) .peer:disabled ~ .peer-disabled\\:opacity-70, :where(.stack-scope).peer:disabled ~ .peer-disabled\\:opacity-70 {\n  opacity: 0.7;\n}\n:where(.stack-scope) .has-\\[\\:disabled\\]\\:opacity-50:has(:disabled), :where(.stack-scope).has-\\[\\:disabled\\]\\:opacity-50:has(:disabled) {\n  opacity: 0.5;\n}\n:where(.stack-scope) .aria-selected\\:bg-accent[aria-selected="true"], :where(.stack-scope).aria-selected\\:bg-accent[aria-selected="true"] {\n  background-color: hsl(var(--accent));\n}\n:where(.stack-scope) .aria-selected\\:text-accent-foreground[aria-selected="true"], :where(.stack-scope).aria-selected\\:text-accent-foreground[aria-selected="true"] {\n  color: hsl(var(--accent-foreground));\n}\n:where(.stack-scope) .aria-selected\\:opacity-100[aria-selected="true"], :where(.stack-scope).aria-selected\\:opacity-100[aria-selected="true"] {\n  opacity: 1;\n}\n:where(.stack-scope) .data-\\[disabled\\=true\\]\\:pointer-events-none[data-disabled="true"], :where(.stack-scope).data-\\[disabled\\=true\\]\\:pointer-events-none[data-disabled="true"] {\n  pointer-events: none;\n}\n:where(.stack-scope) .data-\\[disabled\\]\\:pointer-events-none[data-disabled], :where(.stack-scope).data-\\[disabled\\]\\:pointer-events-none[data-disabled] {\n  pointer-events: none;\n}\n:where(.stack-scope) .data-\\[panel-group-direction\\=vertical\\]\\:h-px[data-panel-group-direction="vertical"], :where(.stack-scope).data-\\[panel-group-direction\\=vertical\\]\\:h-px[data-panel-group-direction="vertical"] {\n  height: 1px;\n}\n:where(.stack-scope) .data-\\[panel-group-direction\\=vertical\\]\\:w-full[data-panel-group-direction="vertical"], :where(.stack-scope).data-\\[panel-group-direction\\=vertical\\]\\:w-full[data-panel-group-direction="vertical"] {\n  width: 100%;\n}\n:where(.stack-scope) .data-\\[side\\=bottom\\]\\:translate-y-1[data-side="bottom"], :where(.stack-scope).data-\\[side\\=bottom\\]\\:translate-y-1[data-side="bottom"] {\n  --tw-translate-y: 0.25rem;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n:where(.stack-scope) .data-\\[side\\=left\\]\\:-translate-x-1[data-side="left"], :where(.stack-scope).data-\\[side\\=left\\]\\:-translate-x-1[data-side="left"] {\n  --tw-translate-x: -0.25rem;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n:where(.stack-scope) .data-\\[side\\=right\\]\\:translate-x-1[data-side="right"], :where(.stack-scope).data-\\[side\\=right\\]\\:translate-x-1[data-side="right"] {\n  --tw-translate-x: 0.25rem;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n:where(.stack-scope) .data-\\[side\\=top\\]\\:-translate-y-1[data-side="top"], :where(.stack-scope).data-\\[side\\=top\\]\\:-translate-y-1[data-side="top"] {\n  --tw-translate-y: -0.25rem;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n:where(.stack-scope) .data-\\[state\\=checked\\]\\:translate-x-4[data-state="checked"], :where(.stack-scope).data-\\[state\\=checked\\]\\:translate-x-4[data-state="checked"] {\n  --tw-translate-x: 1rem;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n:where(.stack-scope) .data-\\[state\\=unchecked\\]\\:translate-x-0[data-state="unchecked"], :where(.stack-scope).data-\\[state\\=unchecked\\]\\:translate-x-0[data-state="unchecked"] {\n  --tw-translate-x: 0px;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n:where(.stack-scope) .data-\\[swipe\\=cancel\\]\\:translate-x-0[data-swipe="cancel"], :where(.stack-scope).data-\\[swipe\\=cancel\\]\\:translate-x-0[data-swipe="cancel"] {\n  --tw-translate-x: 0px;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n:where(.stack-scope) .data-\\[swipe\\=end\\]\\:translate-x-\\[var\\(--radix-toast-swipe-end-x\\)\\][data-swipe="end"], :where(.stack-scope).data-\\[swipe\\=end\\]\\:translate-x-\\[var\\(--radix-toast-swipe-end-x\\)\\][data-swipe="end"] {\n  --tw-translate-x: var(--radix-toast-swipe-end-x);\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n:where(.stack-scope) .data-\\[swipe\\=move\\]\\:translate-x-\\[var\\(--radix-toast-swipe-move-x\\)\\][data-swipe="move"], :where(.stack-scope).data-\\[swipe\\=move\\]\\:translate-x-\\[var\\(--radix-toast-swipe-move-x\\)\\][data-swipe="move"] {\n  --tw-translate-x: var(--radix-toast-swipe-move-x);\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n@keyframes accordion-up {\n  from {\n    height: var(--radix-accordion-content-height);\n  }\n\n  to {\n    height: 0;\n  }\n}\n:where(.stack-scope) .data-\\[state\\=closed\\]\\:animate-accordion-up[data-state="closed"], :where(.stack-scope).data-\\[state\\=closed\\]\\:animate-accordion-up[data-state="closed"] {\n  animation: accordion-up 0.2s ease-out;\n}\n@keyframes accordion-down {\n  from {\n    height: 0;\n  }\n\n  to {\n    height: var(--radix-accordion-content-height);\n  }\n}\n:where(.stack-scope) .data-\\[state\\=open\\]\\:animate-accordion-down[data-state="open"], :where(.stack-scope).data-\\[state\\=open\\]\\:animate-accordion-down[data-state="open"] {\n  animation: accordion-down 0.2s ease-out;\n}\n:where(.stack-scope) .data-\\[panel-group-direction\\=vertical\\]\\:flex-col[data-
2panel-group-direction="vertical"], :where(.stack-scope).data-\\[panel-group-direction\\=vertical\\]\\:flex-col[data-panel-group-direction="vertical"] {\n  flex-direction: column;\n}\n:where(.stack-scope) .data-\\[active\\]\\:bg-accent\\/50[data-active], :where(.stack-scope).data-\\[active\\]\\:bg-accent\\/50[data-active] {\n  background-color: hsl(var(--accent) / 0.5);\n}\n:where(.stack-scope) .data-\\[state\\=active\\]\\:bg-background[data-state="active"], :where(.stack-scope).data-\\[state\\=active\\]\\:bg-background[data-state="active"] {\n  background-color: hsl(var(--background));\n}\n:where(.stack-scope) .data-\\[state\\=checked\\]\\:bg-primary[data-state="checked"], :where(.stack-scope).data-\\[state\\=checked\\]\\:bg-primary[data-state="checked"] {\n  background-color: hsl(var(--primary));\n}\n:where(.stack-scope) .data-\\[state\\=on\\]\\:bg-accent[data-state="on"], :where(.stack-scope).data-\\[state\\=on\\]\\:bg-accent[data-state="on"] {\n  background-color: hsl(var(--accent));\n}\n:where(.stack-scope) .data-\\[state\\=open\\]\\:bg-accent[data-state="open"], :where(.stack-scope).data-\\[state\\=open\\]\\:bg-accent[data-state="open"] {\n  background-color: hsl(var(--accent));\n}\n:where(.stack-scope) .data-\\[state\\=open\\]\\:bg-accent\\/50[data-state="open"], :where(.stack-scope).data-\\[state\\=open\\]\\:bg-accent\\/50[data-state="open"] {\n  background-color: hsl(var(--accent) / 0.5);\n}\n:where(.stack-scope) .data-\\[state\\=open\\]\\:bg-muted[data-state="open"], :where(.stack-scope).data-\\[state\\=open\\]\\:bg-muted[data-state="open"] {\n  background-color: hsl(var(--muted));\n}\n:where(.stack-scope) .data-\\[state\\=open\\]\\:bg-secondary[data-state="open"], :where(.stack-scope).data-\\[state\\=open\\]\\:bg-secondary[data-state="open"] {\n  background-color: hsl(var(--secondary));\n}\n:where(.stack-scope) .data-\\[state\\=selected\\]\\:bg-muted[data-state="selected"], :where(.stack-scope).data-\\[state\\=selected\\]\\:bg-muted[data-state="selected"] {\n  background-color: hsl(var(--muted));\n}\n:where(.stack-scope) .data-\\[state\\=unchecked\\]\\:bg-input[data-state="unchecked"], :where(.stack-scope).data-\\[state\\=unchecked\\]\\:bg-input[data-state="unchecked"] {\n  background-color: hsl(var(--input));\n}\n:where(.stack-scope) .data-\\[state\\=active\\]\\:text-foreground[data-state="active"], :where(.stack-scope).data-\\[state\\=active\\]\\:text-foreground[data-state="active"] {\n  color: hsl(var(--foreground));\n}\n:where(.stack-scope) .data-\\[state\\=checked\\]\\:text-primary-foreground[data-state="checked"], :where(.stack-scope).data-\\[state\\=checked\\]\\:text-primary-foreground[data-state="checked"] {\n  color: hsl(var(--primary-foreground));\n}\n:where(.stack-scope) .data-\\[state\\=on\\]\\:text-accent-foreground[data-state="on"], :where(.stack-scope).data-\\[state\\=on\\]\\:text-accent-foreground[data-state="on"] {\n  color: hsl(var(--accent-foreground));\n}\n:where(.stack-scope) .data-\\[state\\=open\\]\\:text-accent-foreground[data-state="open"], :where(.stack-scope).data-\\[state\\=open\\]\\:text-accent-foreground[data-state="open"] {\n  color: hsl(var(--accent-foreground));\n}\n:where(.stack-scope) .data-\\[state\\=open\\]\\:text-muted-foreground[data-state="open"], :where(.stack-scope).data-\\[state\\=open\\]\\:text-muted-foreground[data-state="open"] {\n  color: hsl(var(--muted-foreground));\n}\n:where(.stack-scope) .data-\\[disabled\\=true\\]\\:opacity-50[data-disabled="true"], :where(.stack-scope).data-\\[disabled\\=true\\]\\:opacity-50[data-disabled="true"] {\n  opacity: 0.5;\n}\n:where(.stack-scope) .data-\\[disabled\\]\\:opacity-50[data-disabled], :where(.stack-scope).data-\\[disabled\\]\\:opacity-50[data-disabled] {\n  opacity: 0.5;\n}\n:where(.stack-scope) .data-\\[state\\=active\\]\\:shadow-sm[data-state="active"], :where(.stack-scope).data-\\[state\\=active\\]\\:shadow-sm[data-state="active"] {\n  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
2\n  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n:where(.stack-scope) .data-\\[swipe\\=move\\]\\:transition-none[data-swipe="move"], :where(.stack-scope).data-\\[swipe\\=move\\]\\:transition-none[data-swipe="move"] {\n  transition-property: none;\n}\n:where(.stack-scope) .data-\\[state\\=closed\\]\\:duration-100[data-state="closed"], :where(.stack-scope).data-\\[state\\=closed\\]\\:duration-100[data-state="closed"] {\n  transition-duration: 100ms;\n}\n:where(.stack-scope) .data-\\[state\\=open\\]\\:duration-100[data-state="open"], :where(.stack-scope).data-\\[state\\=open\\]\\:duration-100[data-state="open"] {\n  transition-duration: 100ms;\n}\n:where(.stack-scope) .data-\\[motion\\^\\=from-\\]\\:animate-in[data-motion^="from-"], :where(.stack-scope).data-\\[motion\\^\\=from-\\]\\:animate-in[data-motion^="from-"] {\n  animation-name: enter;\n  animation-duration: 150ms;\n  --tw-enter-opacity: initial;\n  --tw-enter-scale: initial;\n  --tw-enter-rotate: initial;\n  --tw-enter-translate-x: initial;\n  --tw-enter-translate-y: initial;\n}\n:where(.stack-scope) .data-\\[state\\=open\\]\\:animate-in[data-state="open"], :where(.stack-scope).data-\\[state\\=open\\]\\:animate-in[data-state="open"] {\n  animation-name: enter;\n  animation-duration: 150ms;\n  --tw-enter-opacity: initial;\n  --tw-enter-scale: initial;\n  --tw-enter-rotate: initial;\n  --tw-enter-translate-x: initial;\n  --tw-enter-translate-y: initial;\n}\n:where(.stack-scope) .data-\\[state\\=visible\\]\\:animate-in[data-state="visible"], :where(.stack-scope).data-\\[state\\=visible\\]\\:animate-in[data-state="visible"] {\n  animation-name: enter;\n  animation-duration: 150ms;\n  --tw-enter-opacity: initial;\n  --tw-enter-scale: initial;\n  --tw-enter-rotate: initial;\n  --tw-enter-translate-x: initial;\n  --tw-enter-translate-y: initial;\n}\n:where(.stack-scope) .data-\\[motion\\^\\=to-\\]\\:animate-out[data-motion^="to-"], :where(.stack-scope).data-\\[motion\\^\\=to-\\]\\:animate-out[data-motion^="to-"] {\n  animation-name: exit;\n  animation-duration: 150ms;\n  --tw-exit-opacity: initial;\n  --tw-exit-scale: initial;\n  --tw-exit-rotate: initial;\n  --tw-exit-translate-x: initial;\n  --tw-exit-translate-y: initial;\n}\n:where(.stack-scope) .data-\\[state\\=closed\\]\\:animate-out[data-state="closed"], :where(.stack-scope).data-\\[state\\=closed\\]\\:animate-out[data-state="closed"] {\n  animation-name: exit;\n  animation-duration: 150ms;\n  --tw-exit-opacity: initial;\n  --tw-exit-scale: initial;\n  --tw-exit-rotate: initial;\n  --tw-exit-translate-x: initial;\n  --tw-exit-translate-y: initial;\n}\n:where(.stack-scope) .data-\\[state\\=hidden\\]\\:animate-out[data-state="hidden"], :where(.stack-scope).data-\\[state\\=hidden\\]\\:animate-out[data-state="hidden"] {\n  animation-name: exit;\n  animation-duration: 150ms;\n  --tw-exit-opacity: initial;\n  --tw-exit-scale: initial;\n  --tw-exit-rotate: initial;\n  --tw-exit-translate-x: initial;\n  --tw-exit-translate-y: initial;\n}\n:where(.stack-scope) .data-\\[swipe\\=end\\]\\:animate-out[data-swipe="end"], :where(.stack-scope).data-\\[swipe\\=end\\]\\:animate-out[data-swipe="end"] {\n  animation-name: exit;\n  animation-duration: 150ms;\n  --tw-exit-opacity: initial;\n  --tw-exit-scale: initial;\n  --tw-exit-rotate: initial;\n  --tw-exit-translate-x: initial;\n  --tw-exit-translate-y: initial;\n}\n:where(.stack-scope) .data-\\[motion\\^\\=from-\\]\\:fade-in[data-motion^="from-"], :where(.stack-scope).data-\\[motion\\^\\=from-\\]\\:fade-in[data-motion^="from-"] {\n  --tw-enter-opacity: 0;\n}\n:where(.stack-scope) .data-\\[motion\\^\\=to-\\]\\:fade-out[data-motion^="to-"], :where(.stack-scope).data-\\[motion\\^\\=to-\\]\\:fade-out[data-motion^="to-"] {\n  --tw-exit-opacity: 0;\n}\n:where(.stack-scope) .data-\\[state\\=closed\\]\\:fade-out[data-state="closed"], :where(.stack-scope).data-\\[state\\=closed\\]\\:fade-out[data-state="closed"] {\n  --tw-exit-opacity: 0;\n}\n:where(.stack-scope) .data-\\[state\\=closed\\]\\:fade-out-0[data-state="closed"], :where(.stack-scope).data-\\[state\\=closed\\]\\:fade-out-0[data-state="closed"] {\n  --tw-exit-opacity: 0;\n}\n:where(.stack-scope) .data-\\[state\\=closed\\]\\:fade-out-80[data-state="closed"], :where(.stack-scope).data-\\[state\\=closed\\]\\:fade-out-80[data-state="closed"] {\n  --tw-exit-opacity: 0.8;\n}\n:where(.stack-scope) .data-\\[state\\=hidden\\]\\:fade-out[data-state="hidden"], :where(.stack-scope).data-\\[state\\=hidden\\]\\:fade-out[data-state="hidden"] {\n  --tw-exit-opacity: 0;\n}\n:where(.stack-scope) .data-\\[state\\=open\\]\\:fade-in[data-state="open"], :where(.stack-scope).data-\\[state\\=open\\]\\:fade-in[data-state="open"] {\n  --tw-enter-opacity: 0;\n}\n:where(.stack-scope) .data-\\[state\\=open\\]\\:fade-in-0[data-state="open"], :where(.stack-scope).data-\\[state\\=open\\]\\:fade-in-0[data-state="open"] {\n  --tw-enter-opacity: 0;\n}\n:where(.stack-scope) .data-\\[state\\=visible\\]\\:fade-in[data-state="visible"], :where(.stack-scope).data-\\[state\\=visible\\]\\:fade-in[data-state="visible"] {\n  --tw-enter-opacity: 0;\n}\n:where(.stack-scope) .data-\\[state\\=closed\\]\\:zoom-out-95[data-state="closed"], :where(.stack-scope).data-\\[state\\=closed\\]\\:zoom-out-95[data-state="closed"] {\n  --tw-exit-scale: .95;\n}\n:where(.stack-scope) .data-\\[state\\=open\\]\\:zoom-in-90[data-state="open"], :where(.stack-scope).data-\\[state\\=open\\]\\:zoom-in-90[data-state="open"] {\n  --tw-enter-scale: .9;\n}\n:where(.stack-scope) .data-\\[state\\=open\\]\\:zoom-in-95[data-state="open"], :where(.stack-scope).data-\\[state\\=open\\]\\:zoom-in-95[data-state="open"] {\n  --tw-enter-scale: .95;\n}\n:where(.stack-scope) .data-\\[motion\\=from-end\\]\\:slide-in-from-right-52[data-motion="from-end"], :where(.stack-scope).data-\\[motion\\=from-end\\]\\:slide-in-from-right-52[data-motion="from-end"] {\n  --tw-enter-translate-x: 13rem;\n}\n:where(.stack-scope) .data-\\[motion\\=from-start\\]\\:slide-in-from-left-52[data-motion="from-start"], :where(.stack-scope).data-\\[motion\\=from-start\\]\\:slide-in-from-left-52[data-motion="from-start"] {\n  --tw-enter-translate-x: -13rem;\n}\n:where(.stack-scope) .data-\\[motion\\=to-end\\]\\:slide-out-to-right-52[data-motion="to-end"], :where(.stack-scope).data-\\[motion\\=to-end\\]\\:slide-out-to-right-52[data-motion="to-end"] {\n  --tw-exit-translate-x: 13rem;\n}\n:where(.stack-scope) .data-\\[motion\\=to-start\\]\\:slide-out-to-left-52[data-motion="to-start"], :where(.stack-scope).data-\\[motion\\=to-start\\]\\:slide-out-to-left-52[data-motion="to-start"] {\n  --tw-exit-translate-x: -13rem;\n}\n:where(.stack-scope) .data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side="bottom"], :where(.stack-scope).data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side="bottom"] {\n  --tw-enter-translate-y: -0.5rem;\n}\n:where(.stack-scope) .data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side="left"], :where(.stack-scope).data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side="left"] {\n  --tw-enter-translate-x: 0.5rem;\n}\n:where(.stack-scope) .data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side="right"], :where(.stack-scope).data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side="right"] {\n  --tw-enter-translate-x: -0.5rem;\n}\n:where(.stack-scope) .data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side="top"], :where(.stack-scope).data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side="top"] {\n  --tw-enter-translate-y: 0.5rem;\n}\n:where(.stack-scope) .data-\\[state\\=closed\\]\\:slide-out-to-bottom[data-state="closed"], :where(.stack-scope).data-\\[state\\=closed\\]\\:slide-out-to-bottom[data-state="closed"] {\n  --tw-exit-translate-y: 100%;\n}\n:where(.stack-scope) .data-\\[state\\=closed\\]\\:slide-out-to-left[data-state="closed"], :where(.stack-scope).data-\\[state\\=closed\\]\\:slide-out-to-left[data-state="closed"] {\n  --tw-exit-translate-x: -100%;\n}\n:where(.stack-scope) .data-\\[state\\=closed\\]\\:slide-out-to-left-1\\/2[data-state="closed"], :where(.stack-scope).data-\\[state\\=closed\\]\\:slide-out-to-left-1\\/2[data-state="closed"] {\n  --tw-exit-translate-x: -50%;\n}\n:where(.stack-scope) .data-\\[state\\=closed\\]\\:slide-out-to-right[data-state="closed"], :where(.stack-scope).data-\\[state\\=closed\\]\\:slide-out-to-right[data-state="closed"] {\n  --tw-exit-translate-x: 100%;\n}\n:where(.stack-scope) .data-\\[state\\=closed\\]\\:slide-out-to-right-full[data-state="closed"], :where(.stack-scope).data-\\[state\\=closed\\]\\:slide-out-to-right-full[data-state="closed"] {\n  --tw-exit-translate-x: 100%;\n}\n:where(.stack-scope) .data-\\[state\\=closed\\]\\:slide-out-to-top[data-state="closed"], :where(.stack-scope).data-\\[state\\=closed\\]\\:slide-out-to-top[data-state="closed"] {\n  --tw-exit-translate-y: -100%;\n}\n:where(.stack-scope) .data-\\[state\\=closed\\]\\:slide-out-to-top-\\[48\\%\\][data-state="closed"], :where(.stack-scope).data-\\[state\\=closed\\]\\:slide-out-to-top-\\[48\\%\\][data-state="closed"] {\n  --tw-exit-translate-y: -48%;\n}\n:where(.stack-scope) .data-\\[state\\=open\\]\\:slide-in-from-bottom[data-state="open"], :where(.stack-scope).data-\\[state\\=open\\]\\:slide-in-from-bottom[data-state="open"] {\n  --tw-enter-translate-y: 100%;\n}\n:where(.stack-scope) .data-\\[state\\=open\\]\\:slide-in-from-left[data-state="open"], :where(.stack-scope).data-\\[state\\=open\\]\\:slide-in-from-left[data-state="open"] {\n  --tw-enter-translate-x: -100%;\n}\n:where(.stack-scope) .data-\\[state\\=open\\]\\:slide-in-from-left-1\\/2[data-state="open"], :where(.stack-scope).data-\\[state\\=open\\]\\:slide-in-from-left-1\\/2[data-state="open"] {\n  --tw-enter-translate-x: -50%;\n}\n:where(.stack-scope) .data-\\[state\\=open\\]\\:slide-in-from-right[data-state="open"], :where(.stack-scope).data-\\[state\\=open\\]\\:slide-in-from-right[data-state="open"] {\n  --tw-enter-translate-x: 100%;\n}\n:where(.stack-scope) .data-\\[state\\=open\\]\\:slide-in-from-top[data-state="open"], :where(.stack-scope).data-\\[state\\=open\\]\\:slide-in-from-top[data-state="open"] {\n  --tw-enter-translate-y: -100%;\n}\n:where(.stack-scope) .data-\\[state\\=open\\]\\:slide-in-from-top-\\[48\\%\\][data-state="open"], :where(.stack-scope).data-\\[state\\=open\\]\\:slide-in-from-top-\\[48\\%\\][data-state="open"] {\n  --tw-enter-translate-y: -48%;\n}\n:where(.stack-scope) .data-\\[state\\=open\\]\\:slide-in-from-top-full[data-state="open"], :where(.stack-scope).data-\\[state\\=open\\]\\:slide-in-from-top-full[data-state="open"] {\n  --tw-enter-translate-y: -100%;\n}\n:where(.stack-scope) .data-\\[state\\=closed\\]\\:duration-100[data-state="closed"], :where(.stack-scope).data-\\[state\\=closed\\]\\:duration-100[data-state="closed"] {\n  animation-duration: 100ms;\n}\n:where(.stack-scope) .data-\\[state\\=open\\]\\:duration-100[data-state="open"], :where(.stack-scope).data-\\[state\\=open\\]\\:duration-100[data-state="open"] {\n  animation-duration: 100ms;\n}\n:where(.stack-scope) .data-\\[panel-group-direction\\=vertical\\]\\:after\\:left-0[data-panel-group-direction="vertical"]::after, :where(.stack-scope).data-\\[panel-group-direction\\=vertical\\]\\:after\\:left-0[data-panel-group-direction="vertical"]::after {\n  
2content: var(--tw-content);\n  left: 0px;\n}\n:where(.stack-scope) .data-\\[panel-group-direction\\=vertical\\]\\:after\\:h-1[data-panel-group-direction="vertical"]::after, :where(.stack-scope).data-\\[panel-group-direction\\=vertical\\]\\:after\\:h-1[data-panel-group-direction="vertical"]::after {\n  content: var(--tw-content);\n  height: 0.25rem;\n}\n:where(.stack-scope) .data-\\[panel-group-direction\\=vertical\\]\\:after\\:w-full[data-panel-group-direction="vertical"]::after, :where(.stack-scope).data-\\[panel-group-direction\\=vertical\\]\\:after\\:w-full[data-panel-group-direction="vertical"]::after {\n  content: var(--tw-content);\n  width: 100%;\n}\n:where(.stack-scope) .data-\\[panel-group-direction\\=vertical\\]\\:after\\:-translate-y-1\\/2[data-panel-group-direction="vertical"]::after, :where(.stack-scope).data-\\[panel-group-direction\\=vertical\\]\\:after\\:-translate-y-1\\/2[data-panel-group-direction="vertical"]::after {\n  content: var(--tw-content);\n  --tw-translate-y: -50%;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n:where(.stack-scope) .data-\\[panel-group-direction\\=vertical\\]\\:after\\:translate-x-0[data-panel-group-direction="vertical"]::after, :where(.stack-scope).data-\\[panel-group-direction\\=vertical\\]\\:after\\:translate-x-0[data-panel-group-direction="vertical"]::after {\n  content: var(--tw-content);\n  --tw-translate-x: 0px;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n:where(.stack-scope) .group[data-state="open"] .group-data-\\[state\\=open\\]\\:rotate-180, :where(.stack-scope).group[data-state="open"] .group-data-\\[state\\=open\\]\\:rotate-180 {\n  --tw-rotate: 180deg;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n@media (min-width: 640px) {\n  :where(.stack-scope) .sm\\:bottom-0, :where(.stack-scope).sm\\:bottom-0 {\n    bottom: 0px;\n  }\n\n  :where(.stack-scope) .sm\\:right-0, :where(.stack-scope).sm\\:right-0 {\n    right: 0px;\n  }\n\n  :where(.stack-scope) .sm\\:top-auto, :where(.stack-scope).sm\\:top-auto {\n    top: auto;\n  }\n\n  :where(.stack-scope) .sm\\:flex, :where(.stack-scope).sm\\:flex {\n    display: flex;\n  }\n\n  :where(.stack-scope) .sm\\:hidden, :where(.stack-scope).sm\\:hidden {\n    display: none;\n  }\n\n  :where(.stack-scope) .sm\\:max-w-sm, :where(.stack-scope).sm\\:max-w-sm {\n    max-width: 24rem;\n  }\n\n  :where(.stack-scope) .sm\\:flex-1, :where(.stack-scope).sm\\:flex-1 {\n    flex: 1 1 0%;\n  }\n\n  :where(.stack-scope) .sm\\:flex-row, :where(.stack-scope).sm\\:flex-row {\n    flex-direction: row;\n  }\n\n  :where(.stack-scope) .sm\\:flex-col, :where(.stack-scope).sm\\:flex-col {\n    flex-direction: column;\n  }\n\n  :where(.stack-scope) .sm\\:items-end, :where(.stack-scope).sm\\:items-end {\n    align-items: flex-end;\n  }\n\n  :where(.stack-scope) .sm\\:justify-end, :where(.stack-scope).sm\\:justify-end {\n    justify-content: flex-end;\n  }\n\n  :where(.stack-scope) .sm\\:gap-2\\.5, :where(.stack-scope).sm\\:gap-2\\.5 {\n    gap: 0.625rem;\n  }\n\n  :where(.stack-scope) .sm\\:gap-y-0, :where(.stack-scope).sm\\:gap-y-0 {\n    row-gap: 0px;\n  }\n\n  :where(.stack-scope) .sm\\:space-x-2 > :not([hidden]) ~ :not([hidden]), :where(.stack-scope).sm\\:space-x-2 > :not([hidden]) ~ :not([hidden]) {\n    --tw-space-x-reverse: 0;\n    margin-right: calc(0.5rem * var(--tw-space-x-reverse));\n    margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));\n  }\n\n  :where(.stack-scope) .sm\\:rounded-lg, :where(.stack-scope).sm\\:rounded-lg {\n    border-radius: var(--radius);\n  }\n\n  :where(.stack-scope) .sm\\:bg-muted, :where(.stack-scope).sm\\:bg-muted {\n    background-color: hsl(var(--muted));\n  }\n\n  :where(.stack-scope) .sm\\:text-left, :where(.stack-scope).sm\\:text-left {\n    text-align: left;\n  }\n\n  :where(.stack-scope) .data-\\[state\\=open\\]\\:sm\\:slide-in-from-bottom-full[data-state="open"], :where(.stack-scope).data-\\[state\\=open\\]\\:sm\\:slide-in-from-bottom-full[data-state="open"] {\n    --tw-enter-translate-y: 100%;\n  }\n}\n@media (min-width: 768px) {\n  :where(.stack-scope) .md\\:absolute, :where(.stack-scope).md\\:absolute {\n    position: absolute;\n  }\n\n  :where(.stack-scope) .md\\:w-\\[90\\%\\], :where(.stack-scope).md\\:w-\\[90\\%\\] {\n    width: 90%;\n  }\n\n  :where(.stack-scope) .md\\:w-\\[var\\(--radix-navigation-menu-viewport-width\\)\\], :where(.stack-scope).md\\:w-\\[var\\(--radix-navigation-menu-viewport-width\\)\\] {\n    width: var(--radix-navigation-menu-viewport-width);\n  }\n\n  :where(.stack-scope) .md\\:w-auto, :where(.stack-scope).md\\:w-auto {\n    width: auto;\n  }\n\n  :where(.stack-scope) .md\\:max-w-\\[420px\\], :where(.stack-scope).md\\:max-w-\\[420px\\] {\n    max-width: 420px;\n  }\n\n  :where(.stack-scope) .md\\:flex-row, :where(.stack-scope).md\\:flex-row {\n    flex-direction: row;\n  }\n\n  :where(.stack-scope) .md\\:justify-end, :where(.stack-scope).md\\:justify-end {\n    justify-content: flex-end;\n  }\n\n  :where(.stack-scope) .md\\:gap-4, :where(.stack-scope).md\\:gap-4 {\n    gap: 1rem;\n  }\n}\n@media (min-width: 1024px) {\n  :where(.stack-scope) .lg\\:flex, :where(.stack-scope).lg\\:flex {\n    display: flex;\n  }\n\n  :where(.stack-scope) .lg\\:hidden, :where(.stack-scope).lg\\:hidden {\n    display: none;\n  }\n\n  :where(.stack-scope) .lg\\:gap-x-8, :where(.stack-scope).lg\\:gap-x-8 {\n    -moz-column-gap: 2rem;\n         column-gap: 2rem;\n  }\n\n  :where(.stack-scope) .lg\\:px-3, :where(.stack-scope).lg\\:px-3 {\n    padding-left: 0.75rem;\n    padding-right: 0.75rem;\n  }\n}\n:where(.stack-scope) .dark\\:border-destructive:where(html:has(head > [data-stack-theme="dark"]), html:has(head > [data-stack-theme="dark"]) *), :where(.stack-scope).dark\\:border-destructive:where(html:has(head > [data-stack-theme="dark"]), html:has(head > [data-stack-theme="dark"]) *) {\n  border-color: hsl(var(--destructive));\n}\n:where(.stack-scope) .dark\\:border-gray-600:where(html:has(head > [data-stack-theme="dark"]), html:has(head > [data-stack-theme="dark"]) *), :where(.stack-scope).dark\\:border-gray-600:where(html:has(head > [data-stack-theme="dark"]), html:has(head > [data-stack-theme="dark"]) *) {\n  --tw-border-opacity: 1;\n  border-color: rgb(75 85 99 / var(--tw-border-opacity));\n}
2\n:where(.stack-scope) .dark\\:border-success:where(html:has(head > [data-stack-theme="dark"]), html:has(head > [data-stack-theme="dark"]) *), :where(.stack-scope).dark\\:border-success:where(html:has(head > [data-stack-theme="dark"]), html:has(head > [data-stack-theme="dark"]) *) {\n  border-color: hsl(var(--success));\n}\n:where(.stack-scope) .dark\\:bg-black:where(html:has(head > [data-stack-theme="dark"]), html:has(head > [data-stack-theme="dark"]) *), :where(.stack-scope).dark\\:bg-black:where(html:has(head > [data-stack-theme="dark"]), html:has(head > [data-stack-theme="dark"]) *) {\n  --tw-bg-opacity: 1;\n  background-color: rgb(0 0 0 / var(--tw-bg-opacity));\n}\n:where(.stack-scope) .dark\\:bg-black\\/20:where(html:has(head > [data-stack-theme="dark"]), html:has(head > [data-stack-theme="dark"]) *), :where(.stack-scope).dark\\:bg-black\\/20:where(html:has(head > [data-stack-theme="dark"]), html:has(head > [data-stack-theme="dark"]) *) {\n  background-color: rgb(0 0 0 / 0.2);\n}\n:where(.stack-scope) .dark\\:bg-gray-500:where(html:has(head > [data-stack-theme="dark"]), html:has(head > [data-stack-theme="dark"]) *), :where(.stack-scope).dark\\:bg-gray-500:where(html:has(head > [data-stack-theme="dark"]), html:has(head > [data-stack-theme="dark"]) *) {\n  --tw-bg-opacity: 1;\n  background-color: rgb(107 114 128 / var(--tw-bg-opacity));\n}\n:where(.stack-scope) .dark\\:bg-gray-700:where(html:has(head > [data-stack-theme="dark"]), html:has(head > [data-stack-theme="dark"]) *), :where(.stack-scope).dark\\:bg-gray-700:where(html:has(head > [data-stack-theme="dark"]), html:has(head > [data-stack-theme="dark"]) *) {\n  --tw-bg-opacity: 1;\n  background-color: rgb(55 65 81 / var(--tw-bg-opacity));\n}\n:where(.stack-scope) .dark\\:bg-gray-800:where(html:has(head > [data-stack-theme="dark"]), html:has(head > [data-stack-theme="dark"]) *), :where(.stack-scope).dark\\:bg-gray-800:where(html:has(head > [data-stack-theme="dark"]), html:has(head > [data-stack-theme="dark"]) *) {\n  --tw-bg-opacity: 1;\n  background-color: rgb(31 41 55 / var(--tw-bg-opacity));\n}\n:where(.stack-scope) .dark\\:bg-zinc-800:where(html:has(head > [data-stack-theme="dark"]), html:has(head > [data-stack-theme="dark"]) *), :where(.stack-scope).dark\\:bg-zinc-800:where(html:has(head > [data-stack-theme="dark"]), html:has(head > [data-stack-theme="dark"]) *) {\n  --tw-bg-opacity: 1;\n  background-color: rgb(39 39 42 / var(--tw-bg-opacity));\n}\n:where(.stack-scope) .dark\\:text-foreground:where(html:has(head > [data-stack-theme="dark"]), html:has(head > [data-stack-theme="dark"]) *), :where(.stack-scope).dark\\:text-foreground:where(html:has(head > [data-stack-theme="dark"]), html:has(head > [data-stack-theme="dark"]) *) {\n  color: hsl(var(--foreground));\n}\n:where(.stack-scope) .dark\\:text-gray-300:where(html:has(head > [data-stack-theme="dark"]), html:has(head > [data-stack-theme="dark"]) *), :where(.stack-scope).dark\\:text-gray-300:where(html:has(head > [data-stack-theme="dark"]), html:has(head > [data-stack-theme="dark"]) *) {\n  --tw-text-opacity: 1;\n  color: rgb(209 213 219 / var(--tw-text-opacity));\n}\n:where(.stack-scope) .dark\\:text-gray-400:where(html:has(head > [data-stack-theme="dark"]), html:has(head > [data-stack-theme="dark"]) *), :where(.stack-scope).dark\\:text-gray-400:where(html:has(head > [data-stack-theme="dark"]), html:has(head > [data-stack-theme="dark"]) *) {\n  --tw-text-opacity: 1;\n  color: rgb(156 163 175 / var(--tw-text-opacity));\n}\n:where(.stack-scope) .dark\\:text-white:where(html:has(head > [data-stack-theme="dark"]), html:has(head > [data-stack-theme="dark"]) *), :where(.stack-scope).dark\\:text-white:where(html:has(head > [data-stack-theme="dark"]), html:has(head > [data-stack-theme="dark"]) *) {\n  --tw-text-opacity: 1;\n  color: rgb(255 255 255 / var(--tw-text-opacity));\n}\n:where(.stack-scope) .dark\\:text-zinc-300:where(html:has(head > [data-stack-theme="dark"]), html:has(head > [data-stack-theme="dark"]) *), :where(.stack-scope).dark\\:text-zinc-300:where(html:has(head > [data-stack-theme="dark"]), html:has(head > [data-stack-theme="dark"]) *) {\n  --tw-text-opacity: 1;\n  color: rgb(212 212 216 / var(--tw-text-opacity));\n}\n:where(.stack-scope) .dark\\:text-zinc-400:where(html:has(head > [data-stack-theme="dark"]), html:has(head > [data-stack-theme="dark"]) *), :where(.stack-scope).dark\\:text-zinc-400:where(html:has(head > [data-stack-theme="dark"]), html:has(head > [data-stack-theme="dark"]) *) {\n  --tw-text-opacity: 1;\n  color: rgb(161 161 170 / var(--tw-text-opacity));\n}\n:where(.stack-scope) .dark\\:text-zinc-800:where(html:has(head > [data-stack-theme="dark"]), html:has(head > [data-stack-theme="dark"]) *), :where(.stack-scope).dark\\:text-zinc-800:where(html:has(head > [data-stack-theme="dark"]), html:has(head > [data-stack-theme="dark"]) *) {\n  --tw-text-opacity: 1;\n  color: rgb(39 39 42 / var(--tw-text-opacity));\n}\n:where(.stack-scope) .\\[\\&\\+div\\]\\:text-xs+div, :where(.stack-scope).\\[\\&\\+div\\]\\:text-xs+div {\n  font-size: 0.75rem;\n  line-height: 1rem;\n}\n:where(.stack-scope) .\\[\\&\\:has\\(\\>\\.range_end\\)\\]\\:rounded-r-md:has(>.range end), :where(.stack-scope).\\[\\&\\:has\\(\\>\\.range_end\\)\\]\\:rounded-r-md:has(>.range end) {\n  border-top-right-radius: calc(var(--radius) - 2px);\n  border-bottom-right-radius: calc(var(--radius) - 2px);\n}\n:where(.stack-scope) .\\[\\&\\:has\\(\\>\\.range_start\\)\\]\\:rounded-l-md:has(>.range start), :where(.stack-scope).\\[\\&\\:has\\(\\>\\.range_start\\)\\]\\:rounded-l-md:has(>.range start) {\n  border-top-left-radius: calc(var(--radius) - 2px);\n  border-bottom-left-radius: calc(var(--radius) - 2px);\n}\n:where(.stack-scope) .\\[\\&\\:has\\(\\[aria-selected\\]\\)\\]\\:rounded-md:
2has([aria-selected]), :where(.stack-scope).\\[\\&\\:has\\(\\[aria-selected\\]\\)\\]\\:rounded-md:has([aria-selected]) {\n  border-radius: calc(var(--radius) - 2px);\n}\n:where(.stack-scope) .\\[\\&\\:has\\(\\[aria-selected\\]\\)\\]\\:bg-accent:has([aria-selected]), :where(.stack-scope).\\[\\&\\:has\\(\\[aria-selected\\]\\)\\]\\:bg-accent:has([aria-selected]) {\n  background-color: hsl(var(--accent));\n}\n:where(.stack-scope) .first\\:\\[\\&\\:has\\(\\[aria-selected\\]\\)\\]\\:rounded-l-md:has([aria-selected]):first-child, :where(.stack-scope).first\\:\\[\\&\\:has\\(\\[aria-selected\\]\\)\\]\\:rounded-l-md:has([aria-selected]):first-child {\n  border-top-left-radius: calc(var(--radius) - 2px);\n  border-bottom-left-radius: calc(var(--radius) - 2px);\n}\n:where(.stack-scope) .last\\:\\[\\&\\:has\\(\\[aria-selected\\]\\)\\]\\:rounded-r-md:has([aria-selected]):last-child, :where(.stack-scope).last\\:\\[\\&\\:has\\(\\[aria-selected\\]\\)\\]\\:rounded-r-md:has([aria-selected]):last-child {\n  border-top-right-radius: calc(var(--radius) - 2px);\n  border-bottom-right-radius: calc(var(--radius) - 2px);\n}\n:where(.stack-scope) .\\[\\&\\:has\\(\\[aria-selected\\]\\.outside\\)\\]\\:bg-accent\\/50:has([aria-selected].outside), :where(.stack-scope).\\[\\&\\:has\\(\\[aria-selected\\]\\.outside\\)\\]\\:bg-accent\\/50:has([aria-selected].outside) {\n  background-color: hsl(var(--accent) / 0.5);\n}\n:where(.stack-scope) .\\[\\&\\:has\\(\\[aria-selected\\]\\.range_end\\)\\]\\:rounded-r-md:has([aria-selected].range end), :where(.stack-scope).\\[\\&\\:has\\(\\[aria-selected\\]\\.range_end\\)\\]\\:rounded-r-md:has([aria-selected].range end) {\n  border-top-right-radius: calc(var(--radius) - 2px);\n  border-bottom-right-radius: calc(var(--radius) - 2px);\n}\n:where(.stack-scope) .\\[\\&\\:has\\(\\[role\\=checkbox\\]\\)\\]\\:pr-0:has([role=checkbox]), :where(.stack-scope).\\[\\&\\:has\\(\\[role\\=checkbox\\]\\)\\]\\:pr-0:has([role=checkbox]) {\n  padding-right: 0px;\n}\n:where(.stack-scope) .\\[\\&\\>\\:not\\(\\.stack-button-do-not-hide-when-siblings-are\\)\\]\\:invisible>:not(.stack-button-do-not-hide-when-siblings-are), :where(.stack-scope).\\[\\&\\>\\:not\\(\\.stack-button-do-not-hide-when-siblings-are\\)\\]\\:invisible>:not(.stack-button-do-not-hide-when-siblings-are) {\n  visibility: hidden;\n}\n:where(.stack-scope) .\\[\\&\\>\\[role\\=checkbox\\]\\]\\:translate-y-\\[2px\\]>[role=checkbox], :where(.stack-scope).\\[\\&\\>\\[role\\=checkbox\\]\\]\\:translate-y-\\[2px\\]>[role=checkbox] {\n  --tw-translate-y: 2px;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n:where(.stack-scope) .\\[\\&\\>button\\]\\:hidden>button, :where(.stack-scope).\\[\\&\\>button\\]\\:hidden>button {\n  display: none;\n}\n:where(.stack-scope) .\\[\\&\\>span\\]\\:line-clamp-1>span, :where(.stack-scope).\\[\\&\\>span\\]\\:line-clamp-1>span {\n  overflow: hidden;\n  display: -webkit-box;\n  -webkit-box-orient: vertical;\n  -webkit-line-clamp: 1;\n}\n:where(.stack-scope) .\\[\\&\\>svg\\+div\\]\\:translate-y-\\[-3px\\]>svg+div, :where(.stack-scope).\\[\\&\\>svg\\+div\\]\\:translate-y-\\[-3px\\]>svg+div {\n  --tw-translate-y: -3px;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n:where(.stack-scope) .\\[\\&\\>svg\\]\\:absolute>svg, :where(.stack-scope).\\[\\&\\>svg\\]\\:absolute>svg {\n  position: absolute;\n}\n:where(.stack-scope) .\\[\\&\\>svg\\]\\:left-4>svg, :where(.stack-scope).\\[\\&\\>svg\\]\\:left-4>svg {\n  left: 1rem;\n}\n:where(.stack-scope) .\\[\\&\\>svg\\]\\:top-4>svg, :where(.stack-scope).\\[\\&\\>svg\\]\\:top-4>svg {\n  top: 1rem;\n}\n:where(.stack-scope) .\\[\\&\\>svg\\]\\:size-3\\.5>svg, :where(.stack-scope).\\[\\&\\>svg\\]\\:size-3\\.5>svg {\n  width: 0.875rem;\n  height: 0.875rem;\n}\n:where(.stack-scope) .\\[\\&\\>svg\\]\\:text-destructive>svg, :where(.stack-scope).\\[\\&\\>svg\\]\\:text-destructive>
2svg {\n  color: hsl(var(--destructive));\n}\n:where(.stack-scope) .\\[\\&\\>svg\\]\\:text-foreground>svg, :where(.stack-scope).\\[\\&\\>svg\\]\\:text-foreground>svg {\n  color: hsl(var(--foreground));\n}\n:where(.stack-scope) .\\[\\&\\>svg\\]\\:text-success>svg, :where(.stack-scope).\\[\\&\\>svg\\]\\:text-success>svg {\n  color: hsl(var(--success));\n}\n:where(.stack-scope) .\\[\\&\\>svg\\~\\*\\]\\:pl-7>svg~*, :where(.stack-scope).\\[\\&\\>svg\\~\\*\\]\\:pl-7>svg~* {\n  padding-left: 1.75rem;\n}\n:where(.stack-scope) .\\[\\&\\>tr\\]\\:last\\:border-b-0:last-child>tr, :where(.stack-scope).\\[\\&\\>tr\\]\\:last\\:border-b-0:last-child>tr {\n  border-bottom-width: 0px;\n}\n:where(.stack-scope) .\\[\\&\\[data-panel-group-direction\\=vertical\\]\\>div\\]\\:rotate-90[data-panel-group-direction=vertical]>div, :where(.stack-scope).\\[\\&\\[data-panel-group-direction\\=vertical\\]\\>div\\]\\:rotate-90[data-panel-group-direction=vertical]>div {\n  --tw-rotate: 90deg;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n:where(.stack-scope) .\\[\\&\\[data-state\\=open\\]\\>svg\\]\\:rotate-180[data-state=open]>svg, :where(.stack-scope).\\[\\&\\[data-state\\=open\\]\\>svg\\]\\:rotate-180[data-state=open]>svg {\n  --tw-rotate: 180deg;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n:where(.stack-scope) .\\[\\&_\\[cmdk-group-heading\\]\\]\\:px-2 [cmdk-group-heading], :where(.stack-scope).\\[\\&_\\[cmdk-group-heading\\]\\]\\:px-2 [cmdk-group-heading] {\n  padding-left: 0.5rem;\n  padding-right: 0.5rem;\n}\n:where(.stack-scope) .\\[\\&_\\[cmdk-group-heading\\]\\]\\:py-1\\.5 [cmdk-group-heading], :where(.stack-scope).\\[\\&_\\[cmdk-group-heading\\]\\]\\:py-1\\.5 [cmdk-group-heading] {\n  padding-top: 0.375rem;\n  padding-bottom: 0.375rem;\n}\n:where(.stack-scope) .\\[\\&_\\[cmdk-group-heading\\]\\]\\:text-xs [cmdk-group-heading], :where(.stack-scope).\\[\\&_\\[cmdk-group-heading\\]\\]\\:text-xs [cmdk-group-heading] {\n  font-size: 0.75rem;\n  line-height: 1rem;\n}\n:where(.stack-scope) .\\[\\&_\\[cmdk-group-heading\\]\\]\\:font-medium [cmdk-group-heading], :where(.stack-scope).\\[\\&_\\[cmdk-group-heading\\]\\]\\:font-medium [cmdk-group-heading] {\n  font-weight: 500;\n}\n:where(.stack-scope) .\\[\\&_\\[cmdk-group-heading\\]\\]\\:text-muted-foreground [cmdk-group-heading], :where(.stack-scope).\\[\\&_\\[cmdk-group-heading\\]\\]\\:text-muted-foreground [cmdk-group-heading] {\n  color: hsl(var(--muted-foreground));\n}\n:where(.stack-scope) .\\[\\&_\\[cmdk-group\\]\\:not\\(\\[hidden\\]\\)_\\~\\[cmdk-group\\]\\]\\:pt-0 [cmdk-group]:not([hidden]) ~[cmdk-group], :where(.stack-scope).\\[\\&_\\[cmdk-group\\]\\:not\\(\\[hidden\\]\\)_\\~\\[cmdk-group\\]\\]\\:pt-0 [cmdk-group]:not([hidden]) ~[cmdk-group] {\n  padding-top: 0px;\n}\n:where(.stack-scope) .\\[\\&_\\[cmdk-group\\]\\]\\:px-2 [cmdk-group], :where(.stack-scope).\\[\\&_\\[cmdk-group\\]\\]\\:px-2 [cmdk-group] {\n  padding-left: 0.5rem;\n  padding-right: 0.5rem;\n}\n:where(.stack-scope) .\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:h-5 [cmdk-input-wrapper] svg, :where(.stack-scope).\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:h-5 [cmdk-input-wrapper] svg {\n  height: 1.25rem;\n}\n:where(.stack-scope) .\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:w-5 [cmdk-input-wrapper] svg, :where(.stack-scope).\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:w-5 [cmdk-input-wrapper] svg {\n  width: 1.25rem;\n}\n:where(.stack-scope) .\\[\\&_\\[cmdk-input\\]\\]\\:h-12 [cmdk-input], :where(.stack-scope).\\[\\&_\\[cmdk-input\\]\\]\\:h-12 [cmdk-input] {\n  height: 3rem;\n}\n:where(.stack-scope) .\\[\\&_\\[cmdk-item\\]\\]\\:px-2 [cmdk-item], :where(.stack-scope).\\[\\&_\\[cmdk-item\\]\\]\\:px-2 [cmdk-item] {\n  padding-left: 0.5rem;\n  padding-right: 0.5rem;\n}\n:where(.stack-scope) .\\[\\&_\\[cmdk-item\\]\\]\\:py-3 [cmdk-item], :where(.stack-scope).\\[\\&_\\[cmdk-item\\]\\]\\:py-3 [cmdk-item] {\n  padding-top: 0.75rem;\n  padding-bottom: 0.75rem;\n}\n:where(.stack-scope) .\\[\\&_\\[cmdk-item\\]_svg\\]\\:h-5 [cmdk-item] svg, :where(.stack-scope).\\[\\&_\\[cmdk-item\\]_svg\\]\\:h-5 [cmdk-item] svg {\n  height: 1.25rem;\n}\n:where(.stack-scope) .\\[\\&_\\[cmdk-item\\]_svg\\]\\:w-5 [cmdk-item] svg, :where(.stack-scope).\\[\\&_\\[cmdk-item\\]_svg\\]\\:w-5 [cmdk-item] svg {\n  width: 1.25rem;\n}\n:where(.stack-scope) .\\[\\&_p\\]\\:leading-relaxed p, :where(.stack-scope).\\[\\&_p\\]\\:leading-relaxed p {\n  line-height: 1.625;\n}\n:where(.stack-scope) .\\[\\&_svg\\]\\:invisible svg, :where(.stack-scope).\\[\\&_svg\\]\\:invisible svg {\n  visibility: hidden;\n}\n:where(.stack-scope) .\\[\\&_tr\\:last-child\\]\\:border-0 tr:last-child, :where(.stack-scope).\\[\\&_tr\\:last-child\\]\\:border-0 tr:last-child {\n  border-width: 0px;\n}\n:where(.stack-scope) .\\[\\&_tr\\]\\:border-b tr, :where(.stack-scope).\\[\\&_tr\\]\\:border-b tr {\n  border-bottom-width: 1px;\n}\n'+nH(r)}}),(0,_h.jsx)(qk,{children:n})]})}var rH=(e,t,n,a,r,o,i,s)=>
2{let l=document.documentElement,c=["light","dark"];function u(t){(Array.isArray(e)?e:[e]).forEach(e=>{let n="class"===e,a=n&&o?r.map(e=>o[e]||e):r;n?(l.classList.remove(...a),l.classList.add(o&&o[t]?o[t]:t)):l.setAttribute(e,t)}),function(e){s&&c.includes(e)&&(l.style.colorScheme=e)}(t)}if(a)u(a);else try{let e=localStorage.getItem(t)||n;u(i&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e)}catch(Dg){}},oH=o.createContext(void 0),iH={setTheme:e=>{},themes:[]};o.memo(e=>{let{forcedTheme:t,storageKey:n,attribute:a,enableSystem:r,enableColorScheme:i,defaultTheme:s,value:l,themes:c,nonce:u,scriptProps:d}=e,h=JSON.stringify([a,n,s,t,c,l,r,i]).slice(1,-1);return o.createElement("script",p(p({},d),{},{suppressHydrationWarning:!0,nonce:"undefined"==typeof window?u:"",dangerouslySetInnerHTML:{__html:"(".concat(rH.toString(),")(").concat(h,")")}}))});const sH=["message"];const lH=Array(12).fill(0),cH=e=>{let{visible:t,className:n}=e;return o.createElement("div",{className:["sonner-loading-wrapper",n].filter(Boolean).join(" "),"data-visible":t},o.createElement("div",{className:"sonner-spinner"},lH.map((e,t)=>o.createElement("div",{className:"sonner-loading-bar",key:"spinner-bar-".concat(t)}))))},uH=o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},o.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),dH=o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},o.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),hH=o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},o.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),pH=o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},o.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),fH=o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},o.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),o.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}));let mH=1;const gH=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;const{message:n}=e,a=l(e,sH),r="number"===typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:mH++,o=this.toasts.find(e=>e.id===r),i=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),o?this.toasts=this.toasts.map(t=>t.id===r?(this.publish(p(p(p({},t),e),{},{id:r,title:n})),p(p(p({},t),e),{},{id:r,dismissible:i,title:n})):t):this.addToast(p(p({title:n},a),{},{dismissible:i,id:r})),r},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create(p(p({},t),{},{message:e})),this.error=(e,t)=>
2this.create(p(p({},t),{},{message:e,type:"error"})),this.success=(e,t)=>this.create(p(p({},t),{},{type:"success",message:e})),this.info=(e,t)=>this.create(p(p({},t),{},{type:"info",message:e})),this.warning=(e,t)=>this.create(p(p({},t),{},{type:"warning",message:e})),this.loading=(e,t)=>this.create(p(p({},t),{},{type:"loading",message:e})),this.promise=(e,t)=>{if(!t)return;let n;void 0!==t.loading&&(n=this.create(p(p({},t),{},{promise:e,type:"loading",message:t.loading,description:"function"!==typeof t.description?t.description:void 0})));const a=Promise.resolve(e instanceof Function?e():e);let r,i=void 0!==n;const s=a.then(async e=>{r=["resolve",e];if(o.isValidElement(e))i=!1,this.create({id:n,type:"default",message:e});else if(vH(e)&&!e.ok){i=!1;const a="function"===typeof t.error?await t.error("HTTP error! status: ".concat(e.status)):t.error,r="function"===typeof t.description?await t.description("HTTP error! status: ".concat(e.status)):t.description,s="object"===typeof a&&!o.isValidElement(a)?a:{message:a};this.create(p({id:n,type:"error",description:r},s))}else if(e instanceof Error){i=!1;const a="function"===typeof t.error?await t.error(e):t.error,r="function"===typeof t.description?await t.description(e):t.description,s="object"===typeof a&&!o.isValidElement(a)?a:{message:a};this.create(p({id:n,type:"error",description:r},s))}else if(void 0!==t.success){i=!1;const a="function"===typeof t.success?await t.success(e):t.success,r="function"===typeof t.description?await t.description(e):t.description,s="object"===typeof a&&!o.isValidElement(a)?a:{message:a};this.create(p({id:n,type:"success",description:r},s))}}).catch(async e=>{if(r=["reject",e],void 0!==t.error){i=!1;const a="function"===typeof t.error?await t.error(e):t.error,r="function"===typeof t.description?await t.description(e):t.description,s="object"===typeof a&&!o.isValidElement(a)?a:{message:a};this.create(p({id:n,type:"error",description:r},s))}}).finally(()=>{i&&(this.dismiss(n),n=void 0),null==t.finally||t.finally.call(t)}),l=()=>new Promise((e,t)=>s.then(()=>"reject"===r[0]?t(r[1]):e(r[1])).catch(t));return"string"!==typeof n&&"number"!==typeof n?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{const n=(null==t?void 0:t.id)||mH++;return this.create(p({jsx:e(n),id:n},t)),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},vH=e=>e&&"object"===typeof e&&"ok"in e&&"boolean"===typeof e.ok&&"status"in e&&"number"===typeof e.status,yH=(e,t)=>{const n=(null==t?void 0:t.id)||mH++;return gH.addToast(p(p({title:e},t),{},{id:n})),n},wH=Object.assign(yH,{success:gH.success,info:gH.info,warning:gH.warning,error:gH.error,custom:gH.custom,message:gH.message,promise:gH.promise,dismiss:gH.dismiss,loading:gH.loading},{getHistory:()=>gH.toasts,getToasts:()=>gH.getActiveToasts()});function _H(e){return void 0!==e.label}!function(e){if(!e||"undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}
vendor: 14,864 bytes, line 2
2("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
2const xH=3,bH=14;function kH(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}const CH=e=>{var t,n,a,r,i,s,l,c,u;const{invert:d,toast:h,unstyled:f,interacting:m,setHeights:g,visibleToasts:v,heights:y,index:w,toasts:_,expanded:x,removeToast:b,defaultRichColors:k,closeButton:C,style:D,cancelButtonStyle:A,actionButtonStyle:E,className:j="",descriptionClassName:S="",duration:N,position:P,gap:T,expandByDefault:F,classNames:O,icons:I,closeButtonAriaLabel:R="Close toast"}
vendor: 8,917 bytes, line 2
2=e,[M,B]=o.useState(null),[z,L]=o.useState(null),[U,V]=o.useState(!1),[q,H]=o.useState(!1),[W,K]=o.useState(!1),[Y,G]=o.useState(!1),[J,$]=o.useState(!1),[Q,X]=o.useState(0),[Z,ee]=o.useState(0),te=o.useRef(h.duration||N||4e3),ne=o.useRef(null),ae=o.useRef(null),re=0===w,oe=w+1<=v,ie=h.type,se=!1!==h.dismissible,le=h.className||"",ce=h.descriptionClassName||"",ue=o.useMemo(()=>y.findIndex(e=>e.toastId===h.id)||0,[y,h.id]),de=o.useMemo(()=>{var e;return null!=(e=h.closeButton)?e:C},[h.closeButton,C]),he=o.useMemo(()=>h.duration||N||4e3,[h.duration,N]),pe=o.useRef(0),fe=o.useRef(0),me=o.useRef(0),ge=o.useRef(null),[ve,ye]=P.split("-"),we=o.useMemo(()=>y.reduce((e,t,n)=>n>=ue?e:e+t.height,0),[y,ue]),_e=(()=>{const[e,t]=o.useState(document.hidden);return o.useEffect(()=>{const e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),e})(),xe=h.invert||d,be="loading"===ie;fe.current=o.useMemo(()=>ue*T+we,[ue,we]),o.useEffect(()=>{te.current=he},[he]),o.useEffect(()=>{V(!0)},[]),o.useEffect(()=>{const e=ae.current;if(e){const t=e.getBoundingClientRect().height;return ee(t),g(e=>[{toastId:h.id,height:t,position:h.position},...e]),()=>g(e=>e.filter(e=>e.toastId!==h.id))}},[g,h.id]),o.useLayoutEffect(()=>{if(!U)return;const e=ae.current,t=e.style.height;e.style.height="auto";const n=e.getBoundingClientRect().height;e.style.height=t,ee(n),g(e=>e.find(e=>e.toastId===h.id)?e.map(e=>e.toastId===h.id?p(p({},e),{},{height:n}):e):[{toastId:h.id,height:n,position:h.position},...e])},[U,h.title,h.description,g,h.id,h.jsx,h.action,h.cancel]);const ke=o.useCallback(()=>{H(!0),X(fe.current),g(e=>e.filter(e=>e.toastId!==h.id)),setTimeout(()=>{b(h)},200)},[h,b,g,fe]);o.useEffect(()=>{if(h.promise&&"loading"===ie||h.duration===1/0||"loading"===h.type)return;let e;return x||m||_e?(()=>{if(me.current<pe.current){const e=(new Date).getTime()-pe.current;te.current=te.current-e}me.current=(new Date).getTime()})():te.current!==1/0&&(pe.current=(new Date).getTime(),e=setTimeout(()=>{null==h.onAutoClose||h.onAutoClose.call(h,h),ke()},te.current)),()=>clearTimeout(e)},[x,m,h,ie,_e,ke]),o.useEffect(()=>{h.delete&&(ke(),null==h.onDismiss||h.onDismiss.call(h,h))},[ke,h.delete]);const Ce=h.icon||(null==I?void 0:I[ie])||(e=>{switch(e){case"success":return uH;case"info":return hH;case"warning":return dH;case"error":return pH;default:return null}})(ie);var De,Ae;return o.createElement("li",{tabIndex:0,ref:ae,className:kH(j,le,null==O?void 0:O.toast,null==h||null==(t=h.classNames)?void 0:t.toast,null==O?void 0:O.default,null==O?void 0:O[ie],null==h||null==(n=h.classNames)?void 0:n[ie]),"data-sonner-toast":"","data-rich-colors":null!=(De=h.richColors)?De:k,"data-styled":!Boolean(h.jsx||h.unstyled||f),"data-mounted":U,"data-promise":Boolean(h.promise),"data-swiped":J,"data-removed":q,"data-visible":oe,"data-y-position":ve,"data-x-position":ye,"data-index":w,"data-front":re,"data-swiping":W,"data-dismissible":se,"data-type":ie,"data-invert":xe,"data-swipe-out":Y,"data-swipe-direction":z,"data-expanded":Boolean(x||F&&U),"data-testid":h.testId,style:p(p({"--index":w,"--toasts-before":w,"--z-index":_.length-w,"--offset":"".concat(q?Q:fe.current,"px"),"--initial-height":F?"auto":"".concat(Z,"px")},D),h.style),onDragEnd:()=>{K(!1),B(null),ge.current=null},onPointerDown:e=>{2!==e.button&&!be&&se&&(ne.current=new Date,X(fe.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(K(!0),ge.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,n;if(Y||!se)return;ge.current=null;const a=Number((null==(e=ae.current)?void 0:e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),r=Number((null==(t=ae.current)?void 0:t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),o=(new Date).getTime()-(null==(n=ne.current)?void 0:n.getTime()),i="x"===M?a:r,s=Math.abs(i)/o;if(Math.abs(i)>=45||s>.11)return X(fe.current),null==h.onDismiss||h.onDismiss.call(h,h),L("x"===M?a>0?"right":"left":r>0?"down":"up"),ke(),void G(!0);var l,c;null==(l=ae.current)||l.style.setProperty("--swipe-amount-x","0px"),null==(c=ae.current)||c.style.setProperty("--swipe-amount-y","0px"),$(!1),K(!1),B(null)},onPointerMove:t=>{var n,a,r;if(!ge.current||!se)return;if((null==(n=window.getSelection())?void 0:n.toString().length)>0)return;const o=t.clientY-ge.current.y,i=t.clientX-ge.current.x;var s;const l=null!=(s=e.swipeDirections)?s:function(e){const[t,n]=e.split("-"),a=[];return t&&a.push(t),n&&a.push(n),a}(P);!M&&(Math.abs(i)>1||Math.abs(o)>1)&&B(Math.abs(i)>Math.abs(o)?"x":"y");let c={x:0,y:0};const u=e=>1/(1.5+Math.abs(e)/20);if("y"===M){if(l.includes("top")||l.includes("bottom"))if(l.includes("top")&&o<0||l.includes("bottom")&&o>0)c.y=o;else{const e=o*u(o);c.y=Math.abs(e)<Math.abs(o)?e:o}}else if("x"===M&&(l.includes("left")||l.includes("right")))if(l.includes("left")&&i<0||l.includes("right")&&i>0)c.x=i;else{const e=i*u(i);c.x=Math.abs(e)<Math.abs(i)?e:i}(Math.abs(c.x)>0||Math.abs(c.y)>0)&&$(!0),null==(a=ae.current)||a.style.setProperty("--swipe-amount-x","".concat(c.x,"px")),null==(r=ae.current)||r.style.setProperty("--swipe-amount-y","".concat(c.y,"px"))}},de&&!h.jsx&&"loading"!==ie?o.createElement("button",{"aria-label":R,"data-disabled":be,"data-close-button":!0,onClick:be||!se?()=>{}:()=>{ke(),null==h.onDismiss||h.onDismiss.call(h,h)},className:kH(null==O?void 0:O.closeButton,null==h||null==(a=h.classNames)?void 0:a.closeButton)},null!=(Ae=null==I?void 0:I.close)?Ae:fH):null,(ie||h.icon||h.promise)&&null!==h.icon&&(null!==(null==I?void 0:I[ie])||h.icon)?o.createElement("div",{"data-icon":"",className:kH(null==O?void 0:O.icon,null==h||null==(r=h.classNames)?void 0:r.icon)},h.promise||"loading"===h.type&&!h.icon?h.icon||function(){var e,t;return(null==I?void 0:I.loading)?o.createElement("div",{className:kH(null==O?void 0:O.loader,null==h||null==(t=h.classNames)?void 0:t.loader,"sonner-loader"),"data-visible":"loading"===ie},I.loading):o.createElement(cH,{className:kH(null==O?void 0:O.loader,null==h||null==(e=h.classNames)?void 0:e.loader),visible:"loading"===ie})}():null,"loading"!==h.type?Ce:null):null,o.createElement("div",{"data-content":"",className:kH(null==O?void 0:O.content,null==h||null==(i=h.classNames)?void 0:i.content)},o.createElement("div",{"data-title":"",className:kH(null==O?void 0:O.title,null==h||null==(s=h.classNames)?void 0:s.title)},h.jsx?h.jsx:"function"===typeof h.title?h.title():h.title),h.description?o.createElement("div",{"data-description":"",className:kH(S,ce,null==O?void 0:O.description,null==h||null==(l=h.classNames)?void 0:l.description)},"function"===typeof h.description?h.description():h.description):null),o.isValidElement(h.cancel)?h.cancel:h.cancel&&_H(h.cancel)?o.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||A,onClick:e=>{_H(h.cancel)&&se&&(null==h.cancel.onClick||h.cancel.onClick.call(h.cancel,e),ke())},className:kH(null==O?void 0:O.cancelButton,null==h||null==(c=h.classNames)?void 0:c.cancelButton)},h.cancel.label):null,o.isValidElement(h.action)?h.action:h.action&&_H(h.action)?o.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||E,onClick:e=>{_H(h.action)&&(null==h.action.onClick||h.action.onClick.call(h.action,e),e.defaultPrevented||ke())},className:kH(null==O?void 0:O.actionButton,null==h||null==(u=h.classNames)?void 0:u.actionButton)},h.action.label):null)};function DH(){if("undefined"===typeof window)return"ltr";if("undefined"===typeof document)return"ltr";const e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}function AH(e,t){const n={};return[e,t].forEach((e,t)=>{const a=1===t,r=a?"--mobile-offset":"--offset",o=a?"16px":"24px";function i(e){["top","right","bottom","left"].forEach(t=>{n["".concat(r,"-").concat(t)]="number"===typeof e?"".concat(e,"px"):e})}"number"===typeof e||"string"===typeof e?i(e):"object"===typeof e?["top","right","bottom","left"].forEach(t=>{void 0===e[t]?n["".concat(r,"-").concat(t)]=o:n["".concat(r,"-").concat(t)]="number"===typeof e[t]?"".concat(e[t],"px"):e[t]}):i(o)}),n}const EH=o.forwardRef(function(e,t){const{id:n,invert:a,position:r="bottom-right",hotkey:i=["altKey","KeyT"],expand:s,closeButton:l,className:c,offset:u,mobileOffset:d,theme:h="light",richColors:f,duration:m,style:g,visibleToasts:v=xH,toastOptions:y,dir:w=DH(),gap:_=bH,icons:x,containerAriaLabel:b="Notifications"}=e,[k,C]=o.useState([]),D=o.useMemo(()=>n?k.filter(e=>e.toasterId===n):k.filter(e=>!e.toasterId),[k,n]),A=o.useMemo(()=>Array.from(new Set([r].concat(D.filter(e=>e.position).map(e=>e.position)))),[D,r]),[E,j]=o.useState([]),[S,N]=o.useState(!1),[P,T]=o.useState(!1),[F,O]=o.useState("system"!==h?h:"undefined"!==typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
2k":"light"),I=o.useRef(null),R=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),M=o.useRef(null),B=o.useRef(!1),z=o.useCallback(e=>{C(t=>{var n;return(null==(n=t.find(t=>t.id===e.id))?void 0:n.delete)||gH.dismiss(e.id),t.filter(t=>{let{id:n}=t;return n!==e.id})})},[]);return o.useEffect(()=>gH.subscribe(e=>{e.dismiss?requestAnimationFrame(()=>{C(t=>t.map(t=>t.id===e.id?p(p({},t),{},{delete:!0}):t))}):setTimeout(()=>{dp.flushSync(()=>{C(t=>{const n=t.findIndex(t=>t.id===e.id);return-1!==n?[...t.slice(0,n),p(p({},t[n]),e),...t.slice(n+1)]:[e,...t]})})})}),[k]),o.useEffect(()=>{if("system"!==h)return void O(h);if("system"===h&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?O("dark"):O("light")),"undefined"===typeof window)return;const e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",e=>{let{matches:t}=e;O(t?"dark":"light")})}catch(t){e.addListener(e=>{let{matches:t}=e;try{O(t?"dark":"light")}catch(oL){console.error(oL)}})}},[h]),o.useEffect(()=>{k.length<=1&&N(!1)},[k]),o.useEffect(()=>{const e=e=>{var t;var n;i.every(t=>e[t]||e.code===t)&&(N(!0),null==(n=I.current)||n.focus());"Escape"!==e.code||document.activeElement!==I.current&&!(null==(t=I.current)?void 0:t.contains(document.activeElement))||N(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[i]),o.useEffect(()=>{if(I.current)return()=>{M.current&&(M.current.focus({preventScroll:!0}),M.current=null,B.current=!1)}},[I.current]),o.createElement("section",{ref:t,"aria-label":"".concat(b," ").concat(R),tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},A.map((t,n)=>{var r;const[i,h]=t.split("-");return D.length?o.createElement("ol",{key:t,dir:"auto"===w?DH():w,tabIndex:-1,ref:I,className:c,"data-sonner-toaster":!0,"data-sonner-theme":F,"data-y-position":i,"data-x-position":h,style:p(p({"--front-toast-height":"".concat((null==(r=E[0])?void 0:r.height)||0,"px"),"--width":"".concat(356,"px"),"--gap":"".concat(_,"px")},g),AH(u,d)),onBlur:e=>{B.current&&!e.currentTarget.contains(e.relatedTarget)&&(B.current=!1,M.current&&(M.current.focus({preventScroll:!0}),M.current=null))},onFocus:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||B.current||(B.current=!0,M.current=e.relatedTarget)},onMouseEnter:()=>N(!0),onMouseMove:()=>N(!0),onMouseLeave:()=>{P||N(!1)},onDragEnd:()=>N(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||T(!0)},onPointerUp:()=>T(!1)},D.filter(e=>!e.position&&0===n||e.position===t).map((n,r)=>{var i,c;return o.createElement(CH,{key:n.id,icons:x,index:r,toast:n,defaultRichColors:f,duration:null!=(i=null==y?void 0:y.duration)?i:m,className:null==y?void 0:y.className,descriptionClassName:null==y?void 0:y.descriptionClassName,invert:a,visibleToasts:v,closeButton:null!=(c=null==y?void 0:y.closeButton)?c:l,interacting:P,position:t,style:null==y?void 0:y.style,unstyled:null==y?void 0:y.unstyled,classNames:null==y?void 0:y.classNames,cancelButtonStyle:null==y?void 0:y.cancelButtonStyle,actionButtonStyle:null==y?void 0:y.actionButtonStyle,closeButtonAriaLabel:null==y?void 0:y.closeButtonAriaLabel,removeToast:z,toasts:D.filter(e=>e.position==n.position),heights:E.filter(e=>e.position==n.position),setHeights:j,expandByDefault:s,gap:_,expanded:S,swipeDirections:e.swipeDirections})})):null}))}),jH=e=>{let t=Object.assign({},(Mw(e),e));const{theme:n="system"}=(()=>{var e;return null!=(e=o.useContext(oH))?e:iH})();return(0,_h.jsx)(EH,p({theme:n,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}}},t))};function SH(e,t){return function(){return e.apply(t,arguments)}}const{toString:NH}=Object.prototype,{getPrototypeOf:PH}=Object,{iterator:TH,toStringTag:FH}=Symbol,OH=(IH=Object.create(null),e=>{const t=NH.call(e);return IH[t]||(IH[t]=t.slice(8,-1).toLowerCase())});var IH;const RH=e=>(e=e.toLowerCase(),t=>OH(t)===e),MH=e=>t=>typeof t===e,{isArray:BH}=Array,zH=MH("undefined");function LH(e){return null!==e&&!zH(e)&&null!==e.constructor&&!zH(e.constructor)&&qH(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const UH=RH("ArrayBuffer");const VH=MH("string"),qH=MH("function"),HH=MH("number"),WH=e=>null!==e&&"object"===typeof e,KH=e=>{if("object"!==OH(e))return!1;const t=PH(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(FH in e)&&!(TH in e)},YH=RH("Date"),GH=RH("File"),JH=RH("Blob"),$H=RH("FileList"),QH=RH("URLSearchParams"),[XH,ZH,eW,tW]=["ReadableStream","Request","Response","Headers"].map(RH);function nW(e,t){let n,a,{allOwnKeys:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),BH(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{if(LH(e))return;const a=r?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let i;for(n=0;n<o;n++)i=a[n],t.call(null,e[i],i,e)}}function aW(e,t){if(LH(e))return null;t=t.toLowerCase();const n=Object.keys(e);let a,r=n.length;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const rW="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:n.g,oW=e=>!zH(e)&&e!==rW;const iW=(sW="undefined"!==typeof Uint8Array&&PH(Uint8Array),e=>sW&&e instanceof sW);var sW;const lW=RH("HTMLFormElement"),cW=(e=>{let{hasOwnProperty:t}=e;return(e,n)=>t.call(e,n)})(Object.prototype),uW=RH("RegExp"),dW=(e,t)=>
vendor: 4,794 bytes, line 2
2{const n=Object.getOwnPropertyDescriptors(e),a={};nW(n,(n,r)=>{let o;!1!==(o=t(n,r,e))&&(a[r]=o||n)}),Object.defineProperties(e,a)};const hW=RH("AsyncFunction"),pW=((e,t)=>{return e?setImmediate:t?(n="axios@".concat(Math.random()),a=[],rW.addEventListener("message",e=>{let{source:t,data:r}=e;t===rW&&r===n&&a.length&&a.shift()()},!1),e=>{a.push(e),rW.postMessage(n,"*")}):e=>setTimeout(e);var n,a})("function"===typeof setImmediate,qH(rW.postMessage)),fW="undefined"!==typeof queueMicrotask?queueMicrotask.bind(rW):"undefined"!==typeof process&&process.nextTick||pW,mW={isArray:BH,isArrayBuffer:UH,isBuffer:LH,isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||qH(e.append)&&("formdata"===(t=OH(e))||"object"===t&&qH(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&UH(e.buffer),t},isString:VH,isNumber:HH,isBoolean:e=>!0===e||!1===e,isObject:WH,isPlainObject:KH,isEmptyObject:e=>{if(!WH(e)||LH(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(oL){return!1}},isReadableStream:XH,isRequest:ZH,isResponse:eW,isHeaders:tW,isUndefined:zH,isDate:YH,isFile:GH,isBlob:JH,isRegExp:uW,isFunction:qH,isStream:e=>WH(e)&&qH(e.pipe),isURLSearchParams:QH,isTypedArray:iW,isFileList:$H,forEach:nW,merge:function e(){const{caseless:t,skipUndefined:n}=oW(this)&&this||{},a={},r=(r,o)=>{const i=t&&aW(a,o)||o;KH(a[i])&&KH(r)?a[i]=e(a[i],r):KH(r)?a[i]=e({},r):BH(r)?a[i]=r.slice():n&&zH(r)||(a[i]=r)};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&nW(arguments[o],r);return a},extend:function(e,t,n){let{allOwnKeys:a}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return nW(t,(t,a)=>{n&&qH(t)?e[a]=SH(t,n):e[a]=t},{allOwnKeys:a}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,a)=>{let r,o,i;const s={};if(t=t||{},null==e)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)i=r[o],a&&!a(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&PH(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:OH,kindOfTest:RH,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const a=e.indexOf(t,n);return-1!==a&&a===n},toArray:e=>{if(!e)return null;if(BH(e))return e;let t=e.length;if(!HH(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[TH]).call(e);let a;for(;(a=n.next())&&!a.done;){const n=a.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const a=[];for(;null!==(n=e.exec(t));)a.push(n);return a},isHTMLForm:lW,hasOwnProperty:cW,hasOwnProp:cW,reduceDescriptors:dW,freezeMethods:e=>{dW(e,(t,n)=>{if(qH(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const a=e[n];qH(a)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},a=e=>{e.forEach(e=>{n[e]=!0})};return BH(e)?a(e):a(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:aW,global:rW,isContextDefined:oW,isSpecCompliantForm:function(e){return!!(e&&qH(e.append)&&"FormData"===e[FH]&&e[TH])},toJSONObject:e=>{const t=new Array(10),n=(e,a)=>{if(WH(e)){if(t.indexOf(e)>=0)return;if(LH(e))return e;if(!("toJSON"in e)){t[a]=e;const r=BH(e)?[]:{};return nW(e,(e,t)=>{const o=n(e,a+1);!zH(o)&&(r[t]=o)}),t[a]=void 0,r}}return e};return n(e,0)},isAsyncFn:hW,isThenable:e=>e&&(WH(e)||qH(e))&&qH(e.then)&&qH(e.catch),setImmediate:pW,asap:fW,isIterable:e=>null!=e&&qH(e[TH])};function gW(e,t,n,a,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),a&&(this.request=a),r&&(this.response=r,this.status=r.status?r.status:null)}mW.inherits(gW,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:mW.toJSONObject(this.config),code:this.code,status:this.status}}});const vW=gW.prototype,yW={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","E
2RR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{yW[e]={value:e}}),Object.defineProperties(gW,yW),Object.defineProperty(vW,"isAxiosError",{value:!0}),gW.from=(e,t,n,a,r,o)=>{const i=Object.create(vW);mW.toFlatObject(e,i,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const s=e&&e.message?e.message:"Error",l=null==t&&e?e.code:t;return gW.call(i,s,l,n,a,r),e&&null==i.cause&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",o&&Object.assign(i,o),i};const wW=gW;function _W(e){return mW.isPlainObject(e)||mW.isArray(e)}function xW(e){return mW.endsWith(e,"[]")?e.slice(0,-2):e}function bW(e,t,n){return e?e.concat(t).map(function(e,t){return e=xW(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const kW=mW.toFlatObject(mW,{},null,function(e){return/^is[A-Z]/.test(e)});const CW=function(e,t,n){if(!mW.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const a=(n=mW.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!mW.isUndefined(t[e])})).metaTokens,r=n.visitor||c,o=n.dots,i=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&mW.isSpecCompliantForm(t);if(!mW.isFunction(r))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(mW.isDate(e))return e.toISOString();if(mW.isBoolean(e))return e.toString();if(!s&&mW.isBlob(e))throw new wW("Blob is not supported. Use a Buffer instead.");return mW.isArrayBuffer(e)||mW.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,r){let s=e;if(e&&!r&&"object"===typeof e)if(mW.endsWith(n,"{}"))n=a?n:n.slice(0,-2),e=JSON.stringify(e);else if(mW.isArray(e)&&function(e){return mW.isArray(e)&&!e.some(_W)}(e)||(mW.isFileList(e)||mW.endsWith(n,"[]"))&&(s=mW.toArray(e)))return n=xW(n),s.forEach(function(e,a){!mW.isUndefined(e)&&null!==e&&t.append(!0===i?bW([n],a,o):null===i?n:n+"[]",l(e))}),!1;return!!_W(e)||(t.append(bW(r,n,o),l(e)),!1)}const u=[],d=Object.assign(kW,{defaultVisitor:c,convertValue:l,isVisitable:_W});if(!mW.isObject(e))throw new TypeError("data must be an object");return function e(n,a){if(!mW.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+a.join("."));u.push(n),mW.forEach(n,function(n,o){!0===(!(mW.isUndefined(n)||null===n)&&r.call(t,n,mW.isString(o)?o.trim():o,a,d))&&e(n,a?a.concat(o):[o])}),u.pop()}}(e),t};function DW(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function AW(e,t){this._pairs=[],e&&CW(e,this,t)}const EW=AW.prototype;EW.append=function(e,t){this._pairs.push([e,t])},EW.toString=function(e){const t=e?function(t){return e.call(this,t,DW)}:DW;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const jW=AW;function SW(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function NW(e,t,n){if(!t)return e;const a=n&&n.encode||SW;mW.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let o;if(o=r?r(t,n):mW.isURLSearchParams(t)?t.toString():new jW(t,n).toString(a),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const PW=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){mW.forEach(this.handlers,function(t){null!==t&&e(t)})}},TW={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},FW={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:jW,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},OW="undefined"!==typeof window&&"undefined"!==typeof document,IW="object"===typeof navigator&&navigator||void 0,RW=OW&&(!IW||["ReactNative","NativeScript","NS"].indexOf(IW.product)<0),MW="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,BW=OW&&window.location.href||"http://localhost",zW=p(p({},e),FW);const LW=function(e){function t(e,n,a,r){let o=e[r++];if("__proto__"===o)return!0;const i=Number.isFinite(+o),s=r>=e.length;if(o=!o&&mW.isArray(a)?a.length:o,s)return mW.hasOwnProp(a,o)?a[o]=[a[o],n]:a[o]=n,!i;a[o]&&mW.isObject(a[o])||(a[o]=[]);return t(e,n,a[o],r)&&mW.isArray(a[o])&&(a[o]=function(e){const t={},n=Object.keys(e);let a;const r=n.length;let o;for(a=0;a<r;a++)o=n[a],t[o]=e[o];return t}(a[o])),!i}
vendor: 5,547 bytes, line 2
2if(mW.isFormData(e)&&mW.isFunction(e.entries)){const n={};return mW.forEachEntry(e,(e,a)=>{t(function(e){return mW.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),a,n,0)}),n}return null};const UW={transitional:TW,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",a=n.indexOf("application/json")>-1,r=mW.isObject(e);r&&mW.isHTMLForm(e)&&(e=new FormData(e));if(mW.isFormData(e))return a?JSON.stringify(LW(e)):e;if(mW.isArrayBuffer(e)||mW.isBuffer(e)||mW.isStream(e)||mW.isFile(e)||mW.isBlob(e)||mW.isReadableStream(e))return e;if(mW.isArrayBufferView(e))return e.buffer;if(mW.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return CW(e,new zW.classes.URLSearchParams,p({visitor:function(e,t,n,a){return zW.isNode&&mW.isBuffer(e)?(this.append(t,e.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=mW.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return CW(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||a?(t.setContentType("application/json",!1),function(e,t,n){if(mW.isString(e))try{return(t||JSON.parse)(e),mW.trim(e)}catch(oL){if("SyntaxError"!==oL.name)throw oL}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||UW.transitional,n=t&&t.forcedJSONParsing,a="json"===this.responseType;if(mW.isResponse(e)||mW.isReadableStream(e))return e;if(e&&mW.isString(e)&&(n&&!this.responseType||a)){const n=!(t&&t.silentJSONParsing)&&a;try{return JSON.parse(e,this.parseReviver)}catch(oL){if(n){if("SyntaxError"===oL.name)throw wW.from(oL,wW.ERR_BAD_RESPONSE,this,null,this.response);throw oL}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:zW.classes.FormData,Blob:zW.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};mW.forEach(["delete","get","head","post","put","patch"],e=>{UW.headers[e]={}});const VW=UW,qW=mW.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),HW=Symbol("internals");function WW(e){return e&&String(e).trim().toLowerCase()}function KW(e){return!1===e||null==e?e:mW.isArray(e)?e.map(KW):String(e)}function YW(e,t,n,a,r){return mW.isFunction(a)?a.call(this,t,n):(r&&(t=n),mW.isString(t)?mW.isString(a)?-1!==t.indexOf(a):mW.isRegExp(a)?a.test(t):void 0:void 0)}class GW{constructor(e){e&&this.set(e)}set(e,t,n){const a=this;function r(e,t,n){const r=WW(t);if(!r)throw new Error("header name must be a non-empty string");const o=mW.findKey(a,r);(!o||void 0===a[o]||!0===n||void 0===n&&!1!==a[o])&&(a[o||t]=KW(e))}const o=(e,t)=>mW.forEach(e,(e,n)=>r(e,n,t));if(mW.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(mW.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,a,r;return e&&e.split("\n").forEach(function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),a=e.substring(r+1).trim(),!n||t[n]&&qW[n]||("set-cookie"===n?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)}),t})(e),t);else if(mW.isObject(e)&&mW.isIterable(e)){let n,a,r={};for(const t of e){if(!mW.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[a=t[0]]=(n=r[a])?mW.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}o(r,t)}else null!=e&&r(t,e,n);return this}get(e,t){if(e=WW(e)){const n=mW.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(e);)t[a[1]]=a[2];return t}(e);if(mW.isFunction(t))return t.call(this,e,n);if(mW.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=WW(e)){const n=mW.findKey(this,e);return!(!n||void 0===this[n]||t&&!YW(0,this[n],n,t))}return!1}delete(e,t){const n=this;let a=!1;function r(e){if(e=WW(e)){const r=mW.findKey(n,e);!r||t&&!YW(0,n[r],r,t)||(delete n[r],a=!0)}}return mW.isArray(e)?e.forEach(r):r(e),a}clear(e){const t=Object.keys(this);let n=t.length,a=!1;for(;n--;){const r=t[n];e&&!YW(0,this[r],r,e,!0)||(delete this[r],a=!0)}return a}normalize(e){const t=this,n={};return mW.forEach(this,(a,r)=>{const o=mW.findKey(n,r);if(o)return t[o]=KW(a),void delete t[r];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(r):String(r).trim();i!==r&&delete t[r],t[i]=KW(a),n[i]=!0}),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return mW.forEach(this,(n,a)=>{null!=n&&!1!==n&&(t[a]=e&&mW.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(e=>{let[t,n]=e;return t+": "+n}).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r<n;r++)a[r-1]=arguments[r];
2return a.forEach(e=>t.set(e)),t}static accessor(e){const t=(this[HW]=this[HW]={accessors:{}}).accessors,n=this.prototype;function a(e){const a=WW(e);t[a]||(!function(e,t){const n=mW.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+n,{value:function(e,n,r){return this[a].call(this,t,e,n,r)},configurable:!0})})}(n,e),t[a]=!0)}return mW.isArray(e)?e.forEach(a):a(e),this}}GW.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),mW.reduceDescriptors(GW.prototype,(e,t)=>{let{value:n}=e,a=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[a]=e}}}),mW.freezeMethods(GW);const JW=GW;function $W(e,t){const n=this||VW,a=t||n,r=JW.from(a.headers);let o=a.data;return mW.forEach(e,function(e){o=e.call(n,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function QW(e){return!(!e||!e.__CANCEL__)}function XW(e,t,n){wW.call(this,null==e?"canceled":e,wW.ERR_CANCELED,t,n),this.name="CanceledError"}mW.inherits(XW,wW,{__CANCEL__:!0});const ZW=XW;function eK(e,t,n){const a=n.config.validateStatus;n.status&&a&&!a(n.status)?t(new wW("Request failed with status code "+n.status,[wW.ERR_BAD_REQUEST,wW.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const tK=function(e,t){e=e||10;const n=new Array(e),a=new Array(e);let r,o=0,i=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=a[i];r||(r=l),n[o]=s,a[o]=l;let u=i,d=0;for(;u!==o;)d+=n[u++],u%=e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-r<t)return;const h=c&&l-c;return h?Math.round(1e3*d/h):void 0}};const nK=function(e,t){let n,a,r=0,o=1e3/t;const i=function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();r=o,n=null,a&&(clearTimeout(a),a=null),e(...t)};return[function(){const e=Date.now(),t=e-r;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];t>=o?i(l,e):(n=l,a||(a=setTimeout(()=>{a=null,i(n)},o-t)))},()=>n&&i(n)]},aK=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,a=0;const r=tK(50,250);return nK(n=>{const o=n.loaded,i=n.lengthComputable?n.total:void 0,s=o-a,l=r(s);a=o;e({loaded:o,total:i,progress:i?o/i:void 0,bytes:s,rate:l||void 0,estimated:l&&i&&o<=i?(i-o)/l:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},rK=(e,t)=>{const n=null!=e;return[a=>t[0]({lengthComputable:n,total:e,loaded:a}),t[1]]},oK=e=>function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return mW.asap(()=>e(...n))},iK=zW.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,zW.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(zW.origin),zW.navigator&&/(msie|trident)/i.test(zW.navigator.userAgent)):()=>!0,sK=zW.hasStandardBrowserEnv?{write(e,t,n,a,r,o,i){if("undefined"===typeof document)return;const s=["".concat(e,"=").concat(encodeURIComponent(t))];mW.isNumber(n)&&s.push("expires=".concat(new Date(n).toUTCString())),mW.isString(a)&&s.push("path=".concat(a)),mW.isString(r)&&s.push("domain=".concat(r)),!0===o&&s.push("secure"),mW.isString(i)&&s.push("SameSite=".concat(i)),document.cookie=s.join("; ")},read(e){if("undefined"===typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function lK(e,t,n){let a=!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(a||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const cK=e=>e instanceof JW?p({},e):e;function uK(e,t){t=t||{};const n={};function a(e,t,n,a){return mW.isPlainObject(e)&&mW.isPlainObject(t)?mW.merge.call({caseless:a},e,t):mW.isPlainObject(t)?mW.merge({},t):mW.isArray(t)?t.slice():t}function r(e,t,n,r){return mW.isUndefined(t)?mW.isUndefined(e)?void 0:a(void 0,e,0,r):a(e,t,0,r)}function o(e,t){if(!mW.isUndefined(t))return a(void 0,t)}function i(e,t){return mW.isUndefined(t)?mW.isUndefined(e)?void 0:a(void 0,e):a(void 0,t)}function s(n,r,o){return o in t?a(n,r):o in e?a(void 0,n):void 0}const l={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(e,t,n)=>r(cK(e),cK(t),0,!0)};return mW.forEach(Object.keys(p(p({},e),t)),function(a){const o=l[a]||r,i=o(e[a],t[a],a);mW.isUndefined(i)&&o!==s||(n[a]=i)}),n}const dK=e=>{const t=uK({},e);let{data:n,withXSRFToken:a,xsrfHeaderName:r,xsrfCookieName:o,headers:i,auth:s}=t;if(t.headers=i=JW.from(i),t.url=NW(lK(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),mW.isFormData(n))if(zW.hasStandardBrowserEnv||zW.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(mW.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];
2Object.entries(e).forEach(e=>{let[n,a]=e;t.includes(n.toLowerCase())&&i.set(n,a)})}if(zW.hasStandardBrowserEnv&&(a&&mW.isFunction(a)&&(a=a(t)),a||!1!==a&&iK(t.url))){const e=r&&o&&sK.read(o);e&&i.set(r,e)}return t},hK="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const a=dK(e);let r=a.data;const o=JW.from(a.headers).normalize();let i,s,l,c,u,{responseType:d,onUploadProgress:h,onDownloadProgress:p}=a;function f(){c&&c(),u&&u(),a.cancelToken&&a.cancelToken.unsubscribe(i),a.signal&&a.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function g(){if(!m)return;const a=JW.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());eK(function(e){t(e),f()},function(e){n(e),f()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:a,config:e,request:m}),m=null}m.open(a.method.toUpperCase(),a.url,!0),m.timeout=a.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new wW("Request aborted",wW.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const a=t&&t.message?t.message:"Network Error",r=new wW(a,wW.ERR_NETWORK,e,m);r.event=t||null,n(r),m=null},m.ontimeout=function(){let t=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const r=a.transitional||TW;a.timeoutErrorMessage&&(t=a.timeoutErrorMessage),n(new wW(t,r.clarifyTimeoutError?wW.ETIMEDOUT:wW.ECONNABORTED,e,m)),m=null},void 0===r&&o.setContentType(null),"setRequestHeader"in m&&mW.forEach(o.toJSON(),function(e,t){m.setRequestHeader(t,e)}),mW.isUndefined(a.withCredentials)||(m.withCredentials=!!a.withCredentials),d&&"json"!==d&&(m.responseType=a.responseType),p&&([l,u]=aK(p,!0),m.addEventListener("progress",l)),h&&m.upload&&([s,c]=aK(h),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(a.cancelToken||a.signal)&&(i=t=>{m&&(n(!t||t.type?new ZW(null,e,m):t),m.abort(),m=null)},a.cancelToken&&a.cancelToken.subscribe(i),a.signal&&(a.signal.aborted?i():a.signal.addEventListener("abort",i)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(a.url);v&&-1===zW.protocols.indexOf(v)?n(new wW("Unsupported protocol "+v+":",wW.ERR_BAD_REQUEST,e)):m.send(r||null)})},pK=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,a=new AbortController;const r=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;a.abort(t instanceof wW?t:new ZW(t instanceof Error?t.message:t))}};let o=t&&setTimeout(()=>{o=null,r(new wW("timeout ".concat(t," of ms exceeded"),wW.ETIMEDOUT))},t);const i=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>e.addEventListener("abort",r));const{signal:s}=a;return s.unsubscribe=()=>mW.asap(i),s}};function fK(e,t){this.v=e,this.k=t}function mK(e){return function(){return new gK(e.apply(this,arguments))}}function gK(e){var t,n;function a(t,n){try{var o=e[t](n),i=o.value,s=i instanceof fK;Promise.resolve(s?i.v:i).then(function(n){if(s){var l="return"===t?"return":"next";if(!i.k||n.done)return a(l,n);n=e[l](n).value}r(o.done?"return":"normal",n)},function(e){a("throw",e)})}catch(e){r("throw",e)}}function r(e,r){switch(e){case"return":t.resolve({value:r,done:!0});break;case"throw":t.reject(r);break;default:t.resolve({value:r,done:!1})}(t=t.next)?a(t.key,t.arg):n=null}this._invoke=function(e,r){return new Promise(function(o,i){var s={key:e,arg:r,resolve:o,reject:i,next:null};n?n=n.next=s:(t=n=s,a(e,r))})},"function"!=typeof e.return&&(this.return=void 0)}function vK(e){return new fK(e,0)}function yK(e){var t={},n=!1;function a(t,a){return n=!0,a=new Promise(function(n){n(e[t](a))}),{done:!1,value:new fK(a,1)}}return t["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return n?(n=!1,e):a("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(n)throw n=!1,e;return a("throw",e)}
2),"function"==typeof e.return&&(t.return=function(e){return n?(n=!1,e):a("return",e)}),t}function wK(e){var t,n,a,r=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,a=Symbol.iterator);r--;){if(n&&null!=(t=e[n]))return t.call(e);if(a&&null!=(t=e[a]))return new _K(t.call(e));n="@@asyncIterator",a="@@iterator"}throw new TypeError("Object is not async iterable")}function _K(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return _K=function(e){this.s=e,this.n=e.next},_K.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new _K(e)}gK.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},gK.prototype.next=function(e){return this._invoke("next",e)},gK.prototype.throw=function(e){return this._invoke("throw",e)},gK.prototype.return=function(e){return this._invoke("return",e)};const xK=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let a,r=0;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},bK=function(){var e=mK(function*(e,t){var n,a=!1,r=!1;try{for(var o,i=wK(kK(e));a=!(o=yield vK(i.next())).done;a=!1){const e=o.value;yield*yK(wK(xK(e,t)))}}catch(TAe){r=!0,n=TAe}finally{try{a&&null!=i.return&&(yield vK(i.return()))}finally{if(r)throw n}}});return function(t,n){return e.apply(this,arguments)}}(),kK=function(){var e=mK(function*(e){if(e[Symbol.asyncIterator])return void(yield*yK(wK(e)));const t=e.getReader();try{for(;;){const{done:e,value:n}=yield vK(t.read());if(e)break;yield n}}finally{yield vK(t.cancel())}});return function(t){return e.apply(this,arguments)}}(),CK=(e,t,n,a)=>{const r=bK(e,t);let o,i=0,s=e=>{o||(o=!0,a&&a(e))};return new ReadableStream({async pull(e){try{const{done:t,value:a}=await r.next();if(t)return s(),void e.close();let o=a.byteLength;if(n){let e=i+=o;n(e)}e.enqueue(new Uint8Array(a))}catch(TAe){throw s(TAe),TAe}},cancel:e=>(s(e),r.return())},{highWaterMark:2})},{isFunction:DK}=mW,AK=(e=>{let{Request:t,Response:n}=e;return{Request:t,Response:n}})(mW.global),{ReadableStream:EK,TextEncoder:jK}=mW.global,SK=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return!!e(...n)}catch(oL){return!1}},NK=e=>{e=mW.merge.call({skipUndefined:!0},AK,e);const{fetch:t,Request:n,Response:a}=e,r=t?DK(t):"function"===typeof fetch,o=DK(n),i=DK(a);if(!r)return!1;const s=r&&DK(EK),l=r&&("function"===typeof jK?(e=>t=>e.encode(t))(new jK):async e=>new Uint8Array(await new n(e).arrayBuffer())),c=o&&s&&SK(()=>{let e=!1;const t=new n(zW.origin,{body:new EK,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),u=i&&s&&SK(()=>mW.isReadableStream(new a("").body)),d={stream:u&&(e=>e.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let a=t&&t[e];if(a)return a.call(t);throw new wW("Response type '".concat(e,"' is not supported"),wW.ERR_NOT_SUPPORT,n)})});const h=async(e,t)=>{const a=mW.toFiniteNumber(e.getContentLength());return null==a?(async e=>{if(null==e)return 0;if(mW.isBlob(e))return e.size;if(mW.isSpecCompliantForm(e)){const t=new n(zW.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return mW.isArrayBufferView(e)||mW.isArrayBuffer(e)?e.byteLength:(mW.isURLSearchParams(e)&&(e+=""),mW.isString(e)?(await l(e)).byteLength:void 0)})(t):a};return async e=>{let{url:r,method:i,data:s,signal:l,cancelToken:f,timeout:m,onDownloadProgress:g,onUploadProgress:v,responseType:y,headers:w,withCredentials:_="same-origin",fetchOptions:x}=dK(e),b=t||fetch;y=y?(y+"").toLowerCase():"text";let k=pK([l,f&&f.toAbortSignal()],m),C=null;const D=k&&k.unsubscribe&&(()=>{k.unsubscribe()});let A;try{if(v&&c&&"get"!==i&&"head"!==i&&0!==(A=await h(w,s))){let e,t=new n(r,{method:"POST",body:s,duplex:"half"});if(mW.isFormData(s)&&(e=t.headers.get("content-type"))&&w.setContentType(e),t.body){const[e,n]=rK(A,aK(oK(v)));s=CK(t.body,65536,e,n)}}mW.isString(_)||(_=_?"include":"omit");const t=o&&"credentials"in n.prototype,l=p(p({},x),{},{signal:k,method:i.toUpperCase(),headers:w.normalize().toJSON(),body:s,duplex:"half",credentials:t?_:void 0});C=o&&new n(r,l);let f=await(o?b(C,x):b(r,l));const m=u&&("stream"===y||"response"===y);if(u&&(g||m&&D)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=f[t]});const t=mW.toFiniteNumber(f.headers.get("content-length")),[n,r]=g&&rK(t,aK(oK(g),!0))||[];f=new a(CK(f.body,65536,n,()=>{r&&r(),D&&D()}),e)}y=y||"text";let E=await d[mW.findKey(d,y)||"text"](f,e);return!m&&D&&D(),await new Promise((t,n)=>{eK(t,n,{data:E,headers:JW.from(f.headers),status:f.status,statusText:f.statusText,config:e,request:C})})}catch(TAe){if(D&&D(),TAe&&"TypeError"===TAe.name&&/Load failed|fetch/i.test(TAe.message))throw Object.assign(new wW("Network Error",wW.ERR_NETWORK,e,C),{cause:TAe.cause||TAe});throw wW.from(TAe,TAe&&TAe.code,e,C)}}},PK=new Map,TK=e=>{let t=e&&e.env||{};const{fetch:n,Request:a,Response:r}=t,o=[a,r,n];let i,s,l=o.length,c=PK;for(;l--;)i=o[l],s=c.get(i),void 0===s&&c.set(i,s=l?new Map:NK(t)),c=s;return s},FK=(TK(),{http:null,xhr:hK,fetch:{get:TK}});mW.forEach(FK,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(oL){}Object.defineProperty(e,"adapterName",{value:t})}});const OK=e=>"- ".concat(e),IK=e=>mW.isFunction(e)||null===e||!1===e;
vendor: 5,383 bytes, line 2
2const RK={getAdapter:function(e,t){e=mW.isArray(e)?e:[e];const{length:n}=e;let a,r;const o={};for(let i=0;i<n;i++){let n;if(a=e[i],r=a,!IK(a)&&(r=FK[(n=String(a)).toLowerCase()],void 0===r))throw new wW("Unknown adapter '".concat(n,"'"));if(r&&(mW.isFunction(r)||(r=r.get(t))))break;o[n||"#"+i]=r}if(!r){const e=Object.entries(o).map(e=>{let[t,n]=e;return"adapter ".concat(t," ")+(!1===n?"is not supported by the environment":"is not available in the build")});let t=n?e.length>1?"since :\n"+e.map(OK).join("\n"):" "+OK(e[0]):"as no adapter specified";throw new wW("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return r},adapters:FK};function MK(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ZW(null,e)}function BK(e){MK(e),e.headers=JW.from(e.headers),e.data=$W.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return RK.getAdapter(e.adapter||VW.adapter,e)(e).then(function(t){return MK(e),t.data=$W.call(e,e.transformResponse,t),t.headers=JW.from(t.headers),t},function(t){return QW(t)||(MK(e),t&&t.response&&(t.response.data=$W.call(e,e.transformResponse,t.response),t.response.headers=JW.from(t.response.headers))),Promise.reject(t)})}const zK="1.13.2",LK={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{LK[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const UK={};LK.transitional=function(e,t,n){function a(e,t){return"[Axios v"+zK+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,o)=>{if(!1===e)throw new wW(a(r," has been removed"+(t?" in "+t:"")),wW.ERR_DEPRECATED);return t&&!UK[r]&&(UK[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,o)}},LK.spelling=function(e){return(t,n)=>(console.warn("".concat(n," is likely a misspelling of ").concat(e)),!0)};const VK={assertOptions:function(e,t,n){if("object"!==typeof e)throw new wW("options must be an object",wW.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let r=a.length;for(;r-- >0;){const o=a[r],i=t[o];if(i){const t=e[o],n=void 0===t||i(t,o,e);if(!0!==n)throw new wW("option "+o+" must be "+n,wW.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new wW("Unknown option "+o,wW.ERR_BAD_OPTION)}},validators:LK},qK=VK.validators;class HK{constructor(e){this.defaults=e||{},this.interceptors={request:new PW,response:new PW}}async request(e,t){try{return await this._request(e,t)}catch(TAe){if(TAe instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{TAe.stack?n&&!String(TAe.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(TAe.stack+="\n"+n):TAe.stack=n}catch(oL){}}throw TAe}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=uK(this.defaults,t);const{transitional:n,paramsSerializer:a,headers:r}=t;void 0!==n&&VK.assertOptions(n,{silentJSONParsing:qK.transitional(qK.boolean),forcedJSONParsing:qK.transitional(qK.boolean),clarifyTimeoutError:qK.transitional(qK.boolean)},!1),null!=a&&(mW.isFunction(a)?t.paramsSerializer={serialize:a}:VK.assertOptions(a,{encode:qK.function,serialize:qK.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),VK.assertOptions(t,{baseUrl:qK.spelling("baseURL"),withXsrfToken:qK.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=r&&mW.merge(r.common,r[t.method]);r&&mW.forEach(["delete","get","head","post","put","patch","common"],e=>{delete r[e]}),t.headers=JW.concat(o,r);const i=[];let s=!0;this.interceptors.request.forEach(function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,i.unshift(e.fulfilled,e.rejected))});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let u,d=0;if(!s){const e=[BK.bind(this),void 0];for(e.unshift(...i),e.push(...l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=i.length;let h=t;for(;d<u;){const e=i[d++],t=i[d++];try{h=e(h)}catch(p){t.call(this,p);break}}try{c=BK.call(this,h)}catch(p){return Promise.reject(p)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return NW(lK((e=uK(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}mW.forEach(["delete","get","head","options"],function(e){HK.prototype[e]=function(t,n){return this.request(uK(n||{},{method:e,url:t,data:(n||{}).data}))}}),mW.forEach(["post","put","patch"],function(e){function t(t){return function(n,a,r){return this.request(uK(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:a}))}}HK.prototype[e]=t(),HK.prototype[e+"Form"]=t(!0)});const WK=HK;class KK{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const a=new Promise(e=>{n.subscribe(e),t=e}).then(e);return a.cancel=function(){n.unsubscribe(t)},a},e(function(e,a,r){n.reason||(n.reason=new ZW(e,a,r),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
2subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new KK(function(t){e=t});return{token:t,cancel:e}}}const YK=KK;const GK={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(GK).forEach(e=>{let[t,n]=e;GK[n]=t});const JK=GK;const $K=function e(t){const n=new WK(t),a=SH(WK.prototype.request,n);return mW.extend(a,WK.prototype,n,{allOwnKeys:!0}),mW.extend(a,n,null,{allOwnKeys:!0}),a.create=function(n){return e(uK(t,n))},a}(VW);$K.Axios=WK,$K.CanceledError=ZW,$K.CancelToken=YK,$K.isCancel=QW,$K.VERSION=zK,$K.toFormData=CW,$K.AxiosError=wW,$K.Cancel=$K.CanceledError,$K.all=function(e){return Promise.all(e)},$K.spread=function(e){return function(t){return e.apply(null,t)}},$K.isAxiosError=function(e){return mW.isObject(e)&&!0===e.isAxiosError},$K.mergeConfig=uK,$K.AxiosHeaders=JW,$K.formToJSON=e=>LW(mW.isHTMLForm(e)?new FormData(e):e),$K.getAdapter=RK.getAdapter,$K.HttpStatusCode=JK,$K.default=$K;const QK=$K,XK="".concat("https://view-draft-1.emergent.host","/api"),ZK=QK.create({baseURL:XK,withCredentials:!0});let eY=null;const tY=()=>{eY=null};ZK.interceptors.request.use(e=>(eY&&(e.headers.Authorization="Bearer ".concat(eY)),e),e=>Promise.reject(e)),ZK.interceptors.response.use(e=>e,e=>{var t;return 401===(null===(t=e.response)||void 0===t?void 0:t.status)&&console.debug("API request unauthorized"),Promise.reject(e)});const nY=ZK,aY=async()=>(await ZK.get("/dashboard")).data,rY=async()=>{var e;return(null===(e=(await ZK.get("/family-members")).data)||void 0===e?void 0:e.members)||[]},oY=async e=>(await ZK.post("/family-members",e)).data.member,iY=async()=>{var e;return(null===(e=(await ZK.get("/activities")).data)||void 0===e?void 0:e.activities)||[]},sY=async e=>(await ZK.post("/activities",e)).data.activity,lY=async function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(null===(e=(await ZK.get("/events",{params:t})).data)||void 0===e?void 0:e.events)||[]},cY=async e=>(await ZK.post("/events",e)).data.event,uY=async(e,t)=>(await ZK.put("/events/".concat(e,"/status"),{status:t})).data.event,dY=async e=>(await ZK.post("/summaries/daily",{date:e})).data,hY=async e=>(await ZK.post("/summaries/weekly",{date:e})).data,pY=async()=>(await ZK.get("/chat/suggestions")).data.suggestions,fY=(0,o.createContext)(null),mY=e=>{var t;let{children:n}=e;const a=sg(),r=(lg(),(0,o.useRef)(!1)),i=a?{id:a.id,email:a.primaryEmail,name:a.displayName||(null===(t=a.primaryEmail)||void 0===t?void 0:t.split("@")[0])||"User",stackUser:a}:null,s=void 0===a;(0,o.useEffect)(()=>{(async()=>
2{if(a)try{const t=await a.getAuthJson();null!==t&&void 0!==t&&t.accessToken&&(e=t.accessToken,eY=e,r.current=!0)}catch(t){console.error("Error getting auth token:",t),tY(),r.current=!1}else tY(),r.current=!1;var e})()},[a]);return(0,_h.jsx)(fY.Provider,{value:{user:i,loading:s,login:async(e,t)=>{window.location.href="/handler/sign-in"},register:async(e,t,n)=>{window.location.href="/handler/sign-up"},logout:async()=>{tY(),r.current=!1,a&&await a.signOut()},getAccessToken:async()=>{if(a){const e=await a.getAuthJson();return(null===e||void 0===e?void 0:e.accessToken)||null}return null},stackUser:a},children:n})},gY=()=>{const e=(0,o.useContext)(fY);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e},vY=new rg({projectId:"3a872e07-920f-4f9c-8671-e7fb80c5cf46",tokenStore:"cookie"}),yY=function(){return{nextPart:arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Map,validators:arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,classGroupId:arguments.length>2?arguments[2]:void 0}},wY="-",_Y=[],xY=e=>{const t=CY(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return kY(e);const n=e.split(wY),a=""===n[0]&&n.length>1?1:0;return bY(n,a,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=a[e],r=n[e];return t?r?((e,t)=>{const n=new Array(e.length+t.length);for(let a=0;a<e.length;a++)n[a]=e[a];for(let a=0;a<t.length;a++)n[e.length+a]=t[a];return n})(r,t):t:r||_Y}return n[e]||_Y}}},bY=(e,t,n)=>{if(0===e.length-t)return n.classGroupId;const a=e[t],r=n.nextPart.get(a);if(r){const n=bY(e,t+1,r);if(n)return n}const o=n.validators;if(null===o)return;const i=0===t?e.join(wY):e.slice(t).join(wY),s=o.length;for(let l=0;l<s;l++){const e=o[l];if(e.validator(i))return e.classGroupId}},kY=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),a=t.slice(0,n);return a?"arbitrary.."+a:void 0})(),CY=e=>{const{theme:t,classGroups:n}=e;return DY(n,t)},DY=(e,t)=>{const n=yY();for(const a in e){const r=e[a];AY(r,n,a,t)}return n},AY=(e,t,n,a)=>{const r=e.length;for(let o=0;o<r;o++){const r=e[o];EY(r,t,n,a)}},EY=(e,t,n,a)=>{"string"!==typeof e?"function"!==typeof e?NY(e,t,n,a):SY(e,t,n,a):jY(e,t,n)},jY=(e,t,n)=>{(""===e?t:PY(t,e)).classGroupId=n},SY=(e,t,n,a)=>{TY(e)?AY(e(a),t,n,a):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(n,e)))},NY=(e,t,n,a)=>{const r=Object.entries(e),o=r.length;for(let i=0;i<o;i++){const[e,o]=r[i];AY(o,PY(t,e),n,a)}},PY=(e,t)=>{let n=e;const a=t.split(wY),r=a.length;for(let o=0;o<r;o++){const e=a[o];let t=n.nextPart.get(e);t||(t=yY(),n.nextPart.set(e,t)),n=t}return n},TY=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,FY=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),a=Object.create(null);const r=(r,o)=>{n[r]=o,t++,t>e&&(t=0,a=n,n=Object.create(null))};return{get(e){let t=n[e];return void 0!==t?t:void 0!==(t=a[e])?(r(e,t),t):void 0},set(e,t){e in n?n[e]=t:r(e,t)}}},OY=[],IY=(e,t,n,a,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:a,isExternal:r}),RY=e=>{const{prefix:t,experimentalParseClassName:n}=e;let a=e=>{const t=[];let n,a=0,r=0,o=0;const i=e.length;for(let u=0;u<i;u++){const i=e[u];if(0===a&&0===r){if(":"===i){t.push(e.slice(o,u)),o=u+1;continue}if("/"===i){n=u;continue}}"["===i?a++:"]"===i?a--:"("===i?r++:")"===i&&r--}const s=0===t.length?e:e.slice(o);let l=s,c=!1;s.endsWith("!")?(l=s.slice(0,-1),c=!0):s.startsWith("!")&&(l=s.slice(1),c=!0);return IY(t,c,l,n&&n>o?n-o:void 0)};if(t){const e=t+":",n=a;a=t=>t.startsWith(e)?n(t.slice(e.length)):IY(OY,!1,t,void 0,!0)}if(n){const e=a;a=t=>n({className:t,parseClassName:e})}return a},MY=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{const n=[];let a=[];for(let r=0;r<e.length;r++){const o=e[r],i="["===o[0],s=t.has(o);i||s?(a.length>0&&(a.sort(),n.push(...a),a=[]),n.push(o)):a.push(o)}return a.length>0&&(a.sort(),n.push(...a)),n}},BY=/\s+/,zY=e=>{if("string"===typeof e)return e;let t,n="";for(let a=0;a<e.length;
vendor: 4,578 bytes, line 2
2a++)e[a]&&(t=zY(e[a]))&&(n&&(n+=" "),n+=t);return n},LY=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];let r,o,i,s;const l=e=>{const t=o(e);if(t)return t;const n=((e,t)=>{const{parseClassName:n,getClassGroupId:a,getConflictingClassGroupIds:r,sortModifiers:o}=t,i=[],s=e.trim().split(BY);let l="";for(let c=s.length-1;c>=0;c-=1){const e=s[c],{isExternal:t,modifiers:u,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:p}=n(e);if(t){l=e+(l.length>0?" "+l:l);continue}let f=!!p,m=a(f?h.substring(0,p):h);if(!m){if(!f){l=e+(l.length>0?" "+l:l);continue}if(m=a(h),!m){l=e+(l.length>0?" "+l:l);continue}f=!1}const g=0===u.length?"":1===u.length?u[0]:o(u).join(":"),v=d?g+"!":g,y=v+m;if(i.indexOf(y)>-1)continue;i.push(y);const w=r(m,f);for(let n=0;n<w.length;++n){const e=w[n];i.push(v+e)}l=e+(l.length>0?" "+l:l)}return l})(e,r);return i(e,n),n};return s=t=>{const a=n.reduce((e,t)=>t(e),e());return r=(e=>p({cache:FY(e.cacheSize),parseClassName:RY(e),sortModifiers:MY(e)},xY(e)))(a),o=r.cache.get,i=r.cache.set,s=l,l(t)},function(){return s(function(){let e,t,n=0,a="";for(;n<arguments.length;){var r;(e=(r=n++)<0||arguments.length<=r?void 0:arguments[r])&&(t=zY(e))&&(a&&(a+=" "),a+=t)}return a}(...arguments))}},UY=[],VY=e=>{const t=t=>t[e]||UY;return t.isThemeGetter=!0,t},qY=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,HY=/^\((?:(\w[\w-]*):)?(.+)\)$/i,WY=/^\d+\/\d+$/,KY=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,YY=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,GY=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,JY=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$Y=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,QY=e=>WY.test(e),XY=e=>!!e&&!Number.isNaN(Number(e)),ZY=e=>!!e&&Number.isInteger(Number(e)),eG=e=>e.endsWith("%")&&XY(e.slice(0,-1)),tG=e=>KY.test(e),nG=()=>!0,aG=e=>YY.test(e)&&!GY.test(e),rG=()=>!1,oG=e=>JY.test(e),iG=e=>$Y.test(e),sG=e=>!cG(e)&&!mG(e),lG=e=>bG(e,AG,rG),cG=e=>qY.test(e),uG=e=>bG(e,EG,aG),dG=e=>bG(e,jG,XY),hG=e=>bG(e,CG,rG),pG=e=>bG(e,DG,iG),fG=e=>bG(e,NG,oG),mG=e=>HY.test(e),gG=e=>kG(e,EG),vG=e=>kG(e,SG),yG=e=>kG(e,CG),wG=e=>kG(e,AG),_G=e=>kG(e,DG),xG=e=>kG(e,NG,!0),bG=(e,t,n)=>{const a=qY.exec(e);return!!a&&(a[1]?t(a[1]):n(a[2]))},kG=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const a=HY.exec(e);return!!a&&(a[1]?t(a[1]):n)},CG=e=>"position"===e||"percentage"===e,DG=e=>"image"===e||"url"===e,AG=e=>"length"===e||"size"===e||"bg-size"===e,EG=e=>"length"===e,jG=e=>"number"===e,SG=e=>"family-name"===e,NG=e=>"shadow"===e,PG=(Symbol.toStringTag,()=>{const e=VY("color"),t=VY("font"),n=VY("text"),a=VY("font-weight"),r=VY("tracking"),o=VY("leading"),i=VY("breakpoint"),s=VY("container"),l=VY("spacing"),c=VY("radius"),u=VY("shadow"),d=VY("inset-shadow"),h=VY("text-shadow"),p=VY("drop-shadow"),f=VY("blur"),m=VY("perspective"),g=VY("aspect"),v=VY("ease"),y=VY("animate"),w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",mG,cG],_=()=>[mG,cG,l],x=()=>[QY,"full","auto",..._()],b=()=>[ZY,"none","subgrid",mG,cG],k=()=>["auto",{span:["full",ZY,mG,cG]},ZY,mG,cG],C=()=>[ZY,"auto",mG,cG],D=()=>["auto","min","max","fr",mG,cG],A=()=>["auto",..._()],E=()=>[QY,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],j=()=>[e,mG,cG],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",yG,hG,{position:[mG,cG]}],N=()=>["auto","cover","contain",wG,lG,{size:[mG,cG]}],P=()=>[eG,gG,uG],T=()=>["","none","full",c,mG,cG],F=()=>["",XY,gG,uG],O=()=>[XY,eG,yG,hG],I=()=>["","none",f,mG,cG],R=()=>["none",XY,mG,cG],M=()=>["none",XY,mG,cG],B=()=>[XY,mG,cG],z=()=>[QY,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[tG],breakpoint:[tG],color:[nG],container:[tG],"drop-shadow":[tG],ease:["in","out","in-out"],font:[sG],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[tG],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[tG],shadow:[tG],spacing:["px",XY],text:[tG],"text-shadow":[tG],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",QY,cG,mG,g]}
vendor: 5,347 bytes, line 2
2],container:["container"],columns:[{columns:[XY,cG,mG,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:x()}],"inset-x":[{"inset-x":x()}],"inset-y":[{"inset-y":x()}],start:[{start:x()}],end:[{end:x()}],top:[{top:x()}],right:[{right:x()}],bottom:[{bottom:x()}],left:[{left:x()}],visibility:["visible","invisible","collapse"],z:[{z:[ZY,"auto",mG,cG]}],basis:[{basis:[QY,"full","auto",s,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[XY,QY,"auto","initial","none",cG]}],grow:[{grow:["",XY,mG,cG]}],shrink:[{shrink:["",XY,mG,cG]}],order:[{order:[ZY,"first","last","none",mG,cG]}],"grid-cols":[{"grid-cols":b()}],"col-start-end":[{col:k()}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":b()}],"row-start-end":[{row:k()}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:E()}],w:[{w:[s,"screen",...E()]}],"min-w":[{"min-w":[s,"screen","none",...E()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...E()]}],h:[{h:["screen","lh",...E()]}],"min-h":[{"min-h":["screen","lh","none",...E()]}],"max-h":[{"max-h":["screen","lh",...E()]}],"font-size":[{text:["base",n,gG,uG]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,mG,dG]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",eG,cG]}],"font-family":[{font:[vG,cG,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,mG,cG]}],"line-clamp":[{"line-clamp":[XY,"none",mG,dG]}],leading:[{leading:[o,..._()]}],"list-image":[{"list-image":["none",mG,cG]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",mG,cG]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","
2wavy"]}],"text-decoration-thickness":[{decoration:[XY,"from-font","auto",mG,uG]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[XY,"auto",mG,cG]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",mG,cG]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",mG,cG]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:S()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:N()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ZY,mG,cG],radial:["",mG,cG],conic:[ZY,mG,cG]},_G,pG]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:P()}],"gradient-via-pos":[{via:P()}],"gradient-to-pos":[{to:P()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:F()}],"border-w-x":[{"border-x":F()}],"border-w-y":[{"border-y":F()}],"border-w-s":[{"border-s":F()}],"border-w-e":[{"border-e":F()}],"border-w-t":[{"border-t":F()}],"border-w-r":[{"border-r":F()}],"border-w-b":[{"border-b":F()}],"border-w-l":[{"border-l":F()}],"divide-x":[{"divide-x":F()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":F()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[XY,mG,cG]}],"outline-w":[{outline:["",XY,gG,uG]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",u,xG,fG]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",d,xG,fG]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[XY,uG]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":F()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",h,xG,fG]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[XY,mG,cG]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[XY]}],"mask-image-linear-from-pos":[{"mask-linear-from":O()}],"mask-image-linear-to-pos":[{"mask-linear-to":O()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":O()}],"mask-image-t-to-pos":[{"mask-t-to":O()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":O()}],"mask-image-r-to-pos":[{"mask-r-to":O()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":O()}],"mask-image-b-to-pos":[{"mask-b-to":O()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":O()}],"mask-image-l-to-pos":[{"mask-l-to":O()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":O()}],"mask-image-x-to-pos":[{"mask-x-to":O()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":O()}],"mask-image-y-to-pos":[{"mask-y-to":O()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[mG,cG]}],"mask-image-radial-from-pos":[{"mask-radial-from":O()}],"mask-image-radial-to-pos":[{"mask-radial-to":O()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[XY]}],"mask-image-conic-from-pos":[{"mask-conic-from":O()}],"mask-image-conic-to-pos":[{"mask-conic-to":O()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:S()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:N()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",mG,cG]}],filter:[{filter:["","none",mG,cG]}],blur:[{blur:I()}],brightness:[{brightness:[XY,mG,cG]}],contrast:[{contrast:[XY,mG,cG]}],"drop-shadow":[{"drop-shadow":["","none",p,xG,fG]}
vendor: 7,698 bytes, line 2
2],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",XY,mG,cG]}],"hue-rotate":[{"hue-rotate":[XY,mG,cG]}],invert:[{invert:["",XY,mG,cG]}],saturate:[{saturate:[XY,mG,cG]}],sepia:[{sepia:["",XY,mG,cG]}],"backdrop-filter":[{"backdrop-filter":["","none",mG,cG]}],"backdrop-blur":[{"backdrop-blur":I()}],"backdrop-brightness":[{"backdrop-brightness":[XY,mG,cG]}],"backdrop-contrast":[{"backdrop-contrast":[XY,mG,cG]}],"backdrop-grayscale":[{"backdrop-grayscale":["",XY,mG,cG]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[XY,mG,cG]}],"backdrop-invert":[{"backdrop-invert":["",XY,mG,cG]}],"backdrop-opacity":[{"backdrop-opacity":[XY,mG,cG]}],"backdrop-saturate":[{"backdrop-saturate":[XY,mG,cG]}],"backdrop-sepia":[{"backdrop-sepia":["",XY,mG,cG]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",mG,cG]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[XY,"initial",mG,cG]}],ease:[{ease:["linear","initial",v,mG,cG]}],delay:[{delay:[XY,mG,cG]}],animate:[{animate:["none",y,mG,cG]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,mG,cG]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:R()}],"rotate-x":[{"rotate-x":R()}],"rotate-y":[{"rotate-y":R()}],"rotate-z":[{"rotate-z":R()}],scale:[{scale:M()}],"scale-x":[{"scale-x":M()}],"scale-y":[{"scale-y":M()}],"scale-z":[{"scale-z":M()}],"scale-3d":["scale-3d"],skew:[{skew:B()}],"skew-x":[{"skew-x":B()}],"skew-y":[{"skew-y":B()}],transform:[{transform:[mG,cG,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:z()}],"translate-x":[{"translate-x":z()}],"translate-y":[{"translate-y":z()}],"translate-z":[{"translate-z":z()}],"translate-none":["translate-none"],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",mG,cG]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",mG,cG]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[XY,gG,uG,dG]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),TG=LY(PG);function FG(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return TG(Dd(t))}const OG=["className","variant","size","asChild"],IG=Fh("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),RG=o.forwardRef((e,t)=>
2{let{className:n,variant:a,size:r,asChild:o=!1}=e,i=l(e,OG);const s=o?Fg:"button";return(0,_h.jsx)(s,p({className:FG(IG({variant:a,size:r,className:n})),ref:t},i))});RG.displayName="Button";const MG=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),BG=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},zG=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim()};var LG={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const UG=["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"],VG=(0,o.forwardRef)((e,t)=>{let{color:n="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:c,iconNode:u}=e,d=l(e,UG);return(0,o.createElement)("svg",p(p(p({ref:t},LG),{},{width:a,height:a,stroke:n,strokeWidth:i?24*Number(r)/Number(a):r,className:zG("lucide",s)},!c&&!(e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(d)&&{"aria-hidden":"true"}),d),[...u.map(e=>{let[t,n]=e;return(0,o.createElement)(t,n)}),...Array.isArray(c)?c:[c]])}),qG=["className"],HG=(e,t)=>{const n=(0,o.forwardRef)((n,a)=>{let{className:r}=n,i=l(n,qG);return(0,o.createElement)(VG,p({ref:a,iconNode:t,className:zG("lucide-".concat(MG(BG(e))),"lucide-".concat(e),r)},i))});return n.displayName=BG(e),n},WG=HG("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),KG=HG("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),YG=HG("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),GG=["className","inset","children"],JG=["className"],$G=["className","sideOffset"],QG=["className","inset"],XG=["className","children","checked"],ZG=["className","children"],eJ=["className","inset"],tJ=["className"],nJ=US,aJ=VS,rJ=o.forwardRef((e,t)=>{let{className:n,inset:a,children:r}=e,o=l(e,GG);return(0,_h.jsxs)(QS,p(p({ref:t,className:FG("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",a&&"pl-8",n)},o),{},{children:[r,(0,_h.jsx)(WG,{className:"ml-auto"})]}))});rJ.displayName=QS.displayName;o.forwardRef((e,t)=>{let{className:n}=e,a=l(e,JG);return(0,_h.jsx)(XS,p({ref:t,className:FG("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",n)},a))}).displayName=XS.displayName;const oJ=o.forwardRef((e,t)=>{let{className:n,sideOffset:a=4}=e,r=l(e,$G);return(0,_h.jsx)(qS,{children:(0,_h.jsx)(HS,p({ref:t,sideOffset:a,className:FG("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",n)},r))})});oJ.displayName=HS.displayName;const iJ=o.forwardRef((e,t)=>{let{className:n,inset:a}=e,r=l(e,QG);return(0,_h.jsx)(KS,p({ref:t,className:FG("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",a&&"pl-8",n)},r))});iJ.displayName=KS.displayName;o.forwardRef((e,t)=>
2{let{className:n,children:a,checked:r}=e,o=l(e,XG);return(0,_h.jsxs)(YS,p(p({ref:t,className:FG("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),checked:r},o),{},{children:[(0,_h.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,_h.jsx)(JS,{children:(0,_h.jsx)(KG,{className:"h-4 w-4"})})}),a]}))}).displayName=YS.displayName;o.forwardRef((e,t)=>{let{className:n,children:a}=e,r=l(e,ZG);return(0,_h.jsxs)(GS,p(p({ref:t,className:FG("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n)},r),{},{children:[(0,_h.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,_h.jsx)(JS,{children:(0,_h.jsx)(YG,{className:"h-2 w-2 fill-current"})})}),a]}))}).displayName=GS.displayName;o.forwardRef((e,t)=>{let{className:n,inset:a}=e,r=l(e,eJ);return(0,_h.jsx)(WS,p({ref:t,className:FG("px-2 py-1.5 text-sm font-semibold",a&&"pl-8",n)},r))}).displayName=WS.displayName;const sJ=o.forwardRef((e,t)=>{let{className:n}=e,a=l(e,tJ);return(0,_h.jsx)($S,p({ref:t,className:FG("-mx-1 my-1 h-px bg-muted",n)},a))});sJ.displayName=$S.displayName;const lJ=HG("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),cJ=["className"],uJ=["className","children"],dJ=["className"],hJ=["className"],pJ=["className"],fJ=["className"],mJ=fP,gJ=gP,vJ=o.forwardRef((e,t)=>{let{className:n}=e,a=l(e,cJ);return(0,_h.jsx)(vP,p({ref:t,className:FG("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n)},a))});vJ.displayName=vP.displayName;const yJ=o.forwardRef((e,t)=>{let{className:n,children:a}=e,r=l(e,uJ);return(0,_h.jsxs)(gJ,{children:[(0,_h.jsx)(vJ,{}),(0,_h.jsxs)(yP,p(p({ref:t,className:FG("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n)},r),{},{children:[a,(0,_h.jsxs)(xP,{className:"absolute right-4 top-4 roun
2ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,_h.jsx)(lJ,{className:"h-4 w-4"}),(0,_h.jsx)("span",{className:"sr-only",children:"Close"})]})]}))]})});yJ.displayName=yP.displayName;const wJ=e=>{let{className:t}=e,n=l(e,dJ);return(0,_h.jsx)("div",p({className:FG("flex flex-col space-y-1.5 text-center sm:text-left",t)},n))};wJ.displayName="DialogHeader";const _J=e=>{let{className:t}=e,n=l(e,hJ);return(0,_h.jsx)("div",p({className:FG("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t)},n))};_J.displayName="DialogFooter";const xJ=o.forwardRef((e,t)=>{let{className:n}=e,a=l(e,pJ);return(0,_h.jsx)(wP,p({ref:t,className:FG("text-lg font-semibold leading-none tracking-tight",n)},a))});xJ.displayName=wP.displayName;const bJ=o.forwardRef((e,t)=>{let{className:n}=e,a=l(e,fJ);return(0,_h.jsx)(_P,p({ref:t,className:FG("text-sm text-muted-foreground",n)},a))});bJ.displayName=_P.displayName;const kJ=["className","type"],CJ=o.forwardRef((e,t)=>{let{className:n,type:a}=e,r=l(e,kJ);return(0,_h.jsx)("input",p({type:a,className:FG("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n),ref:t},r))});CJ.displayName="Input";const DJ=["className"],AJ=Fh("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),EJ=o.forwardRef((e,t)=>{let{className:n}=e,a=l(e,DJ);return(0,_h.jsx)(Vg,p({ref:t,className:FG(AJ(),n)},a))});EJ.displayName=Vg.displayName;const jJ=HG("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),SJ=HG("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),NJ=["className","children"],PJ=["className"],TJ=["className"],FJ=["className","children","position"],OJ=["className"],IJ=["className","children"],RJ=["className"],MJ=fM,BJ=gM,zJ=o.forwardRef((e,t)=>{let{className:n,children:a}=e,r=l(e,NJ);return(0,_h.jsxs)(mM,p(p({ref:t,className:FG("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",n)},r),{},{children:[a,(0,_h.jsx)(vM,{asChild:!0,children:(0,_h.jsx)(jJ,{className:"h-4 w-4 opacity-50"})})]}))});zJ.displayName=mM.displayName;const LJ=o.forwardRef((e,t)=>{let{className:n}=e,a=l(e,PJ);return(0,_h.jsx)(AM,p(p({ref:t,className:FG("flex cursor-default items-center justify-center py-1",n)},a),{},{children:(0,_h.jsx)(SJ,{className:"h-4 w-4"})}))});LJ.displayName=AM.displayName;const UJ=o.forwardRef((e,t)=>{let{className:n}=e,a=l(e,TJ);return(0,_h.jsx)(EM,p(p({ref:t,className:FG("flex cursor-default items-center justify-center py-1",n)},a),{},{children:(0,_h.jsx)(jJ,{className:"h-4 w-4"})}))});UJ.displayName=EM.displayName;const VJ=o.forwardRef((e,t)=>{let{className:n,children:a,position:r="popper"}=e,o=l(e,FJ);return(0,_h.jsx)(yM,{children:(0,_h.jsxs)(wM,p(p({ref:t,className:FG("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]","popper"===r&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:r},o),{},{children:[(0,_h.jsx)(LJ,{}),(0,_h.jsx)(_M,{className:FG("p-1","popper"===r&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),(0,_h.jsx)(UJ,{})]}))})});VJ.displayName=wM.displayName;o.forwardRef((e,t)=>
2{let{className:n}=e,a=l(e,OJ);return(0,_h.jsx)(bM,p({ref:t,className:FG("px-2 py-1.5 text-sm font-semibold",n)},a))}).displayName=bM.displayName;const qJ=o.forwardRef((e,t)=>{let{className:n,children:a}=e,r=l(e,IJ);return(0,_h.jsxs)(kM,p(p({ref:t,className:FG("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n)},r),{},{children:[(0,_h.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,_h.jsx)(DM,{children:(0,_h.jsx)(KG,{className:"h-4 w-4"})})}),(0,_h.jsx)(CM,{children:a})]}))});qJ.displayName=kM.displayName;o.forwardRef((e,t)=>{let{className:n}=e,a=l(e,RJ);return(0,_h.jsx)(jM,p({ref:t,className:FG("-mx-1 my-1 h-px bg-muted",n)},a))}).displayName=jM.displayName;const HJ=["className","align","sideOffset"],WJ=CO,KJ=DO,YJ=o.forwardRef((e,t)=>{let{className:n,align:a="center",sideOffset:r=4}=e,o=l(e,HJ);return(0,_h.jsx)(AO,{children:(0,_h.jsx)(EO,p({ref:t,align:a,sideOffset:r,className:FG("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",n)},o))})});YJ.displayName=EO.displayName;const GJ=HG("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),JJ={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function $J(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const QJ={date:$J({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:$J({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:$J({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},XJ={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function ZJ(e){return(t,n)=>{let a;if("formatting"===(null!==n&&void 0!==n&&n.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,r=null!==n&&void 0!==n&&n.width?String(n.width):t;a=e.formattingValues[r]||e.formattingValues[t]}else{const t=e.defaultWidth,r=null!==n&&void 0!==n&&n.width?String(n.width):e.defaultWidth;a=e.values[r]||e.values[t]}return a[e.argumentCallback?e.argumentCallback(t):t]}}const e$={ordinalNumber:(e,t)=>{const n=Number(e),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:ZJ({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:ZJ({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:ZJ({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:ZJ({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
2ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:ZJ({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function t$(e){return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=n.width,r=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],o=t.match(r);if(!o)return null;const i=o[0],s=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,e=>e.test(i)):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(s,e=>e.test(i));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;return{value:c,rest:t.slice(i.length)}}}const n$={ordinalNumber:(a$={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.match(a$.matchPattern);if(!n)return null;const a=n[0],r=e.match(a$.parsePattern);if(!r)return null;let o=a$.valueCallback?a$.valueCallback(r[0]):r[0];return o=t.valueCallback?t.valueCallback(o):o,{value:o,rest:e.slice(a.length)}}),era:t$({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:t$({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:t$({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:t$({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:t$({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var a$;const r$={code:"en-US",formatDistance:(e,t,n)=>{let a;const r=JJ[e];return a="string"===typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a},formatLong:QJ,formatRelative:(e,t,n,a)=>XJ[e],localize:e$,match:n$,options:{weekStartsOn:0,firstWeekContainsDate:1}};let o$={};function i$(){return o$}Math.pow(10,8);const s$=6048e5,l$=6e4,c$=36e5,u$=Symbol.for("constructDateFrom");function d$(e,t){return"function"===typeof e?e(t):e&&"object"===typeof e&&u$ in e?e[u$](t):e instanceof Date?new e.constructor(t):new Date(t)}function h$(e,t){return d$(t||e,e)}function p$(e){const t=h$(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function f$(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];const r=d$.bind(null,e||n.find(e=>"object"===typeof e));return n.map(r)}function m$(e,t){const n=h$(e,null===t||void 0===t?void 0:t.in);return n.setHours(0,0,0,0),n}function g$(e,t,n){const[a,r]=f$(null===n||void 0===n?void 0:n.in,e,t),o=m$(a),i=m$(r),s=+o-p$(o),l=+i-p$(i);return Math.round((s-l)/864e5)}function v$(e,t){const n=h$(e,null===t||void 0===t?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function y$(e,t){const n=h$(e,null===t||void 0===t?void 0:t.in);return g$(n,v$(n))+1}function w$(e,t){var n,a,r,o,i,s;const l=i$(),c=null!==(n=null!==(a=null!==(r=null!==(o=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==o?o:null===t||void 0===t||null===(i=t.locale)||void 0===i||null===(i=i.options)||void 0===i?void 0:i.weekStartsOn)&&void 0!==r?r:l.weekStartsOn)&&void 0!==a?a:null===(s=l.locale)||void 0===s||null===(s=s.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==n?n:0,u=h$(e,null===t||void 0===t?void 0:t.in),d=u.getDay(),h=(d<c?7:0)+d-c;return u.setDate(u.getDate()-h),u.setHours(0,0,0,0),u}function _$(e,t){return w$(e,p(p({},t),{},{weekStartsOn:1}
vendor: 11,953 bytes, line 2
2))}function x$(e,t){const n=h$(e,null===t||void 0===t?void 0:t.in),a=n.getFullYear(),r=d$(n,0);r.setFullYear(a+1,0,4),r.setHours(0,0,0,0);const o=_$(r),i=d$(n,0);i.setFullYear(a,0,4),i.setHours(0,0,0,0);const s=_$(i);return n.getTime()>=o.getTime()?a+1:n.getTime()>=s.getTime()?a:a-1}function b$(e,t){const n=x$(e,t),a=d$((null===t||void 0===t?void 0:t.in)||e,0);return a.setFullYear(n,0,4),a.setHours(0,0,0,0),_$(a)}function k$(e,t){const n=h$(e,null===t||void 0===t?void 0:t.in),a=+_$(n)-+b$(n);return Math.round(a/s$)+1}function C$(e,t){var n,a,r,o,i,s;const l=h$(e,null===t||void 0===t?void 0:t.in),c=l.getFullYear(),u=i$(),d=null!==(n=null!==(a=null!==(r=null!==(o=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null===t||void 0===t||null===(i=t.locale)||void 0===i||null===(i=i.options)||void 0===i?void 0:i.firstWeekContainsDate)&&void 0!==r?r:u.firstWeekContainsDate)&&void 0!==a?a:null===(s=u.locale)||void 0===s||null===(s=s.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==n?n:1,h=d$((null===t||void 0===t?void 0:t.in)||e,0);h.setFullYear(c+1,0,d),h.setHours(0,0,0,0);const p=w$(h,t),f=d$((null===t||void 0===t?void 0:t.in)||e,0);f.setFullYear(c,0,d),f.setHours(0,0,0,0);const m=w$(f,t);return+l>=+p?c+1:+l>=+m?c:c-1}function D$(e,t){var n,a,r,o,i,s;const l=i$(),c=null!==(n=null!==(a=null!==(r=null!==(o=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null===t||void 0===t||null===(i=t.locale)||void 0===i||null===(i=i.options)||void 0===i?void 0:i.firstWeekContainsDate)&&void 0!==r?r:l.firstWeekContainsDate)&&void 0!==a?a:null===(s=l.locale)||void 0===s||null===(s=s.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==n?n:1,u=C$(e,t),d=d$((null===t||void 0===t?void 0:t.in)||e,0);d.setFullYear(u,0,c),d.setHours(0,0,0,0);return w$(d,t)}function A$(e,t){const n=h$(e,null===t||void 0===t?void 0:t.in),a=+w$(n,t)-+D$(n,t);return Math.round(a/s$)+1}function E$(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const j$={y(e,t){const n=e.getFullYear(),a=n>0?n:1-n;return E$("yy"===t?a%100:a,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):E$(n+1,2)},d:(e,t)=>E$(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>E$(e.getHours()%12||12,t.length),H:(e,t)=>E$(e.getHours(),t.length),m:(e,t)=>E$(e.getMinutes(),t.length),s:(e,t)=>E$(e.getSeconds(),t.length),S(e,t){const n=t.length,a=e.getMilliseconds();return E$(Math.trunc(a*Math.pow(10,n-3)),t.length)}},S$="midnight",N$="noon",P$="morning",T$="afternoon",F$="evening",O$="night",I$={G:function(e,t,n){const a=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});default:return n.era(a,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),a=t>0?t:1-t;return n.ordinalNumber(a,{unit:"year"})}return j$.y(e,t)},Y:function(e,t,n,a){const r=C$(e,a),o=r>0?r:1-r;if("YY"===t){return E$(o%100,2)}return"Yo"===t?n.ordinalNumber(o,{unit:"year"}):E$(o,t.length)},R:function(e,t){return E$(x$(e),t.length)},u:function(e,t){return E$(e.getFullYear(),t.length)},Q:function(e,t,n){const a=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return E$(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,n){const a=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return E$(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,n){const a=e.getMonth();switch(t){case"M":case"MM":return j$.M(e,t);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,n){const a=e.getMonth();switch(t){case"L":return String(a+1);case"LL":return E$(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,n,a){const r=A$(e,a);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):E$(r,t.length)},I:function(e,t,n){const a=k$(e);return"Io"===t?n.ordinalNumber(a,{unit:"week"}):E$(a,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):j$.d(e,t)},D:function(e,t,n){const a=y$(e);return"Do"===t?n.ordinalNumber(a,{unit:"dayOfYear"}):E$(a,t.length)},E:function(e,t,n){const a=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,n,a){const r=e.getDay(),o=(r-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return E$(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,a){const r=e.getDay(),o=(r-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return E$(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){const a=e.getDay(),r=0===a?7:a;switch(t){case"i":return String(r);case"ii":return E$(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,n){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,n){const a=e.getHours();let r;switch(r=12===a?N$:0===a?S$:a/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){const a=e.getHours();let r;switch(r=a>=17?F$:a>=12?T$:a>=4?P$:O$,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return j$.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):j$.H(e,t)},K:function(e,t,n){const a=e.getHours()%12;return"Ko"===t?n.ordinalNumber(a,{unit:"hour"}):E$(a,t.length)},k:function(e,t,n){let a=e.getHours();return 0===a&&(a=24),"ko"===t?n.ordinalNumber(a,{unit:"hour"}):E$(a,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):j$.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):j$.s(e,t)},S:function(e,t){return j$.S(e,t)},X:function(e,t,n){const a=e.getTimezoneOffset();if(0===a)return"Z";switch(t){case"X":return M$(a);case"XXXX":case"XX":return B$(a);default:return B$(a,":")}},x:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"x":return M$(a);case"xxxx":case"xx":return B$(a);default:return B$(a,":")}},O:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+R$(a,":");default:return"GMT"+B$(a,":")}},z:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+R$(a,":");default:return"GMT"+B$(a,":")}},t:function(e,t,n){return E$(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return E$(+e,t.length)}};function R$(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e>0?"-":"+",a=Math.abs(e),r=Math.trunc(a/60),o=a%60;return 0===o?n+String(r):n+String(r)+t+E$(o,2)}function M$(e,t){if(e%60===0){return(e>0?"-":"+")+E$(Math.abs(e)/60,2)}return B$(e,t)}function B$(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e>0?"-":"+",a=Math.abs(e);return n+E$(Math.trunc(a/60),2)+t+E$(a%60,2)}const z$=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},L$=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},U$={p:L$,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],a=n[1],r=n[2];if(!r)return z$(e,t);let o;switch(a){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",z$(a,t)).replace("{{time}}",L$(r,t))}},V$=/^D+$/,q$=/^Y+$/,H$=["D","DD","YY","YYYY"];function W$(e){return e instanceof Date||"object"===typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function K$(e){return!(!W$(e)&&"number"!==typeof e||isNaN(+h$(e)))}const Y$=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,G$=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,J$=/^'([^]*?)'?$/,$$=/''/g,Q$=/[a-zA-Z]/;function X$(e,t,n){var a,r,o,i,s,l,c,u,d,h,p,f,m,g;const v=i$(),y=null!==(a=null!==(r=null===n||void 0===n?void 0:n.locale)&&void 0!==r?r:v.locale)&&void 0!==a?a:r$,w=null!==(o=null!==(i=null!==(s=null!==(l=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null===n||void 0===n||null===(c=n.locale)||void 0===c||null===(c=c.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==s?s:v.firstWeekContainsDate)&&void 0!==i?i:null===(u=v.locale)||void 0===u||null===(u=u.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==o?o:1,_=null!==(d=null!==(h=null!==(p=null!==(f=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==f?f:null===n||void 0===n||null===(m=n.locale)||void 0===m||null===(m=m.options)||void 0===m?void 0:m.weekStartsOn)&&void 0!==p?p:v.weekStartsOn)&&void 0!==h?h:null===(g=v.locale)||void 0===g||null===(g=g.options)||void 0===g?void 0:g.weekStartsOn)&&void 0!==d?d:0,x=h$(e,null===n||void 0===n?void 0:n.in);if(!K$(x))throw new RangeError("Invalid time value");let b=t.match(G$).map(e=>{const t=e[0];if("p"===t||"P"===t){return(0,U$[t])(e,y.formatLong)}return e}).join("").match(Y$).map(e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:Z$(e)};if(I$[t])return{isToken:!0,value:e};
2if(t.match(Q$))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});y.localize.preprocessor&&(b=y.localize.preprocessor(x,b));const k={firstWeekContainsDate:w,weekStartsOn:_,locale:y};return b.map(a=>{if(!a.isToken)return a.value;const r=a.value;(null!==n&&void 0!==n&&n.useAdditionalWeekYearTokens||!function(e){return q$.test(e)}(r))&&(null!==n&&void 0!==n&&n.useAdditionalDayOfYearTokens||!function(e){return V$.test(e)}(r))||function(e,t,n){const a=function(e,t,n){const a="Y"===e[0]?"years":"days of the month";return"Use `".concat(e.toLowerCase(),"` instead of `").concat(e,"` (in `").concat(t,"`) for formatting ").concat(a," to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")}(e,t,n);if(console.warn(a),H$.includes(e))throw new RangeError(a)}(r,t,String(e));return(0,I$[r[0]])(x,r,y.localize,k)}).join("")}function Z$(e){const t=e.match(J$);return t?t[1].replace($$,"'"):e}function eQ(e,t){const n=h$(e,null===t||void 0===t?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function tQ(e,t){const n=h$(e,null===t||void 0===t?void 0:t.in),a=n.getMonth();return n.setFullYear(n.getFullYear(),a+1,0),n.setHours(23,59,59,999),n}function nQ(e,t,n){const[a,r]=f$(null===n||void 0===n?void 0:n.in,e,t);return a.getFullYear()===r.getFullYear()}function aQ(e,t){const n=h$(e,null===t||void 0===t?void 0:t.in),a=n.getFullYear(),r=n.getMonth(),o=d$(n,0);return o.setFullYear(a,r+1,0),o.setHours(0,0,0,0),o.getDate()}function rQ(e,t,n){const a=h$(e,null===n||void 0===n?void 0:n.in),r=a.getFullYear(),o=a.getDate(),i=d$((null===n||void 0===n?void 0:n.in)||e,0);i.setFullYear(r,t,15),i.setHours(0,0,0,0);const s=aQ(i);return a.setMonth(t,Math.min(o,s)),a}function oQ(e,t,n){const a=h$(e,null===n||void 0===n?void 0:n.in);return isNaN(+a)?d$((null===n||void 0===n?void 0:n.in)||e,NaN):(a.setFullYear(t),a)}function iQ(e,t,n){const[a,r]=f$(null===n||void 0===n?void 0:n.in,e,t);return 12*(a.getFullYear()-r.getFullYear())+(a.getMonth()-r.getMonth())}function sQ(e,t,n){const a=h$(e,null===n||void 0===n?void 0:n.in);if(isNaN(t))return d$((null===n||void 0===n?void 0:n.in)||e,NaN);if(!t)return a;const r=a.getDate(),o=d$((null===n||void 0===n?void 0:n.in)||e,a.getTime());o.setMonth(a.getMonth()+t+1,0);return r>=o.getDate()?o:(a.setFullYear(o.getFullYear(),o.getMonth(),r),a)}function lQ(e,t,n){const[a,r]=f$(null===n||void 0===n?void 0:n.in,e,t);return a.getFullYear()===r.getFullYear()&&a.getMonth()===r.getMonth()}function cQ(e,t){return+h$(e)<+h$(t)}function uQ(e,t,n){const a=h$(e,null===n||void 0===n?void 0:n.in);return isNaN(t)?d$((null===n||void 0===n?void 0:n.in)||e,NaN):t?(a.setDate(a.getDate()+t),a):a}function dQ(e,t,n){const[a,r]=f$(null===n||void 0===n?void 0:n.in,e,t);return+m$(a)===+m$(r)}function hQ(e,t){return+h$(e)>+h$(t)}function pQ(e,t,n){return uQ(e,-t,n)}function fQ(e,t,n){return uQ(e,7*t,n)}function mQ(e,t,n){return sQ(e,12*t,n)}function gQ(e,t){var n,a,r,o,i,s;const l=i$(),c=null!==(n=null!==(a=null!==(r=null!==(o=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==o?o:null===t||void 0===t||null===(i=t.locale)||void 0===i||null===(i=i.options)||void 0===i?void 0:i.weekStartsOn)&&void 0!==r?r:l.weekStartsOn)&&void 0!==a?a:null===(s=l.locale)||void 0===s||null===(s=s.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==n?n:0,u=h$(e,null===t||void 0===t?void 0:t.in),d=u.getDay(),h=6+(d<c?-7:0)-(d-c);return u.setDate(u.getDate()+h),u.setHours(23,59,59,999),u}function vQ(e,t){return gQ(e,p(p({},t),{},{weekStartsOn:1}))}function yQ(e,t){let n,a=null===t||void 0===t?void 0:t.in;return e.forEach(e=>{a||"object"!==typeof e||(a=d$.bind(null,e));const t=h$(e,a);(!n||n<t||isNaN(+t))&&(n=t)}),d$(a,n||NaN)}function wQ(e,t){let n,a=null===t||void 0===t?void 0:t.in;return e.forEach(e=>{a||"object"!==typeof e||(a=d$.bind(null,e));const t=h$(e,a);(!n||n>t||isNaN(+t))&&(n=t)}),d$(a,n||NaN)}function _Q(e){return Math.trunc(+h$(e)/1e3)}function xQ(e,t,n){const[a,r]=f$(null===n||void 0===n?void 0:n.in,e,t),o=w$(a,n),i=w$(r,n),s=+o-p$(o),l=+i-p$(i);return Math.round((s-l)/s$)}function bQ(e,t){const n=h$(e,null===t||void 0===t?void 0:t.in),a=n.getMonth();return n.setFullYear(n.getFullYear(),a+1,0),n.setHours(0,0,0,0),h$(n,null===t||void 0===t?void 0:t.in)}function kQ(e,t){const n=h$(e,null===t||void 0===t?void 0:t.in);return xQ(bQ(n,t),eQ(n,t),t)+1}var CQ=function(){return CQ=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},CQ.apply(this,arguments)};function DQ(e,t,n){if(n||2===arguments.length)for(var a,r=0,o=t.length;r<o;r++)!a&&r in t||(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function AQ(e){return"multiple"===e.mode}function EQ(e){return"range"===e.mode}function jQ(e){return"single"===e.mode}"function"===typeof SuppressedError&&SuppressedError;var SQ={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rd
2p-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};var NQ=Object.freeze({__proto__:null,formatCaption:function(e,t){return X$(e,"LLLL y",t)},formatDay:function(e,t){return X$(e,"d",t)},formatMonthCaption:function(e,t){return X$(e,"LLLL",t)},formatWeekNumber:function(e){return"".concat(e)},formatWeekdayName:function(e,t){return X$(e,"cccccc",t)},formatYearCaption:function(e,t){return X$(e,"yyyy",t)}}),PQ=Object.freeze({__proto__:null,labelDay:function(e,t,n){return X$(e,"do MMMM (EEEE)",n)},labelMonthDropdown:function(){return"Month: "},labelNext:function(){return"Go to next month"},labelPrevious:function(){return"Go to previous month"},labelWeekNumber:function(e){return"Week n. ".concat(e)},labelWeekday:function(e,t){return X$(e,"cccc",t)},labelYearDropdown:function(){return"Year: "}});function TQ(e){var t=e.fromYear,n=e.toYear,a=e.fromMonth,r=e.toMonth,o=e.fromDate,i=e.toDate;return a?o=eQ(a):t&&(o=new Date(t,0,1)),r?i=tQ(r):n&&(i=new Date(n,11,31)),{fromDate:o?m$(o):void 0,toDate:i?m$(i):void 0}}var FQ=(0,o.createContext)(void 0);function OQ(e){var t,n,a=e.initialProps,r=function(){var e=SQ,t=r$,n=new Date;return{captionLayout:"buttons",classNames:e,formatters:NQ,labels:PQ,locale:t,modifiersClassNames:{},modifiers:{},numberOfMonths:1,styles:{},today:n,mode:"default"}}(),o=TQ(a),i=o.fromDate,s=o.toDate,l=null!==(t=a.captionLayout)&&void 0!==t?t:r.captionLayout;"buttons"===l||i&&s||(l="buttons"),(jQ(a)||AQ(a)||EQ(a))&&(n=a.onSelect);var c=CQ(CQ(CQ({},r),a),{captionLayout:l,classNames:CQ(CQ({},r.classNames),a.classNames),components:CQ({},a.components),formatters:CQ(CQ({},r.formatters),a.formatters),fromDate:i,labels:CQ(CQ({},r.labels),a.labels),mode:a.mode||r.mode,modifiers:CQ(CQ({},r.modifiers),a.modifiers),modifiersClassNames:CQ(CQ({},r.modifiersClassNames),a.modifiersClassNames),onSelect:n,styles:CQ(CQ({},r.styles),a.styles),toDate:s});return(0,_h.jsx)(FQ.Provider,{value:c,children:e.children})}function IQ(){var e=(0,o.useContext)(FQ);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function RQ(e){var t=IQ(),n=t.locale,a=t.classNames,r=t.styles,o=t.formatters.formatCaption;return(0,_h.jsx)("div",{className:a.caption_label,style:r.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:o(e.displayMonth,{locale:n})})}function MQ(e){return(0,_h.jsx)("svg",CQ({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:(0,_h.jsx)("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function BQ(e){var t,n,a=e.onChange,r=e.value,o=e.children,i=e.caption,s=e.className,l=e.style,c=IQ(),u=null!==(n=null===(t=c.components)||void 0===t?void 0:t.IconDropdown)&&void 0!==n?n:MQ;return(0,_h.jsxs)("div",{className:s,style:l,children:[(0,_h.jsx)("span",{className:c.classNames.vhidden,children:e["aria-label"]}),(0,_h.jsx)("select",{name:e.name,"aria-label":e["aria-label"],className:c.classNames.dropdown,style:c.styles.dropdown,value:r,onChange:a,children:o}),(0,_h.jsxs)("div",{className:c.classNames.caption_label,style:c.styles.caption_label,"aria-hidden":"true",children:[i,(0,_h.jsx)(u,{className:c.classNames.dropdown_icon,style:c.styles.dropdown_icon})]})]})}function zQ(e){var t,n=IQ(),a=n.fromDate,r=n.toDate,o=n.styles,i=n.locale,s=n.formatters.formatMonthCaption,l=n.classNames,c=n.components,u=n.labels.labelMonthDropdown;if(!a)return(0,_h.jsx)(_h.Fragment,{});if(!r)return(0,_h.jsx)(_h.Fragment,{});var d=[];if(nQ(a,r))for(var h=eQ(a),p=a.getMonth();p<=r.getMonth();p++)d.push(rQ(h,p));else for(h=eQ(new Date),p=0;p<=11;p++)d.push(rQ(h,p));var f=null!==(t=null===c||void 0===c?void 0:c.Dropdown)&&void 0!==t?t:BQ;return(0,_h.jsx)(f,{name:"months","aria-label":u(),className:l.dropdown_month,style:o.dropdown_month,onChange:function(t){var n=Number(t.target.value),a=rQ(eQ(e.displayMonth),n);e.onChange(a)}
vendor: 2,577 bytes, line 2
2,value:e.displayMonth.getMonth(),caption:s(e.displayMonth,{locale:i}),children:d.map(function(e){return(0,_h.jsx)("option",{value:e.getMonth(),children:s(e,{locale:i})},e.getMonth())})})}function LQ(e){var t,n=e.displayMonth,a=IQ(),r=a.fromDate,o=a.toDate,i=a.locale,s=a.styles,l=a.classNames,c=a.components,u=a.formatters.formatYearCaption,d=a.labels.labelYearDropdown,h=[];if(!r)return(0,_h.jsx)(_h.Fragment,{});if(!o)return(0,_h.jsx)(_h.Fragment,{});for(var p=r.getFullYear(),f=o.getFullYear(),m=p;m<=f;m++)h.push(oQ(v$(new Date),m));var g=null!==(t=null===c||void 0===c?void 0:c.Dropdown)&&void 0!==t?t:BQ;return(0,_h.jsx)(g,{name:"years","aria-label":d(),className:l.dropdown_year,style:s.dropdown_year,onChange:function(t){var a=oQ(eQ(n),Number(t.target.value));e.onChange(a)},value:n.getFullYear(),caption:u(n,{locale:i}),children:h.map(function(e){return(0,_h.jsx)("option",{value:e.getFullYear(),children:u(e,{locale:i})},e.getFullYear())})})}function UQ(){var e=IQ(),t=function(e){var t=e.month,n=e.defaultMonth,a=e.today,r=t||n||a||new Date,o=e.toDate,i=e.fromDate,s=e.numberOfMonths,l=void 0===s?1:s;return o&&iQ(o,r)<0&&(r=sQ(o,-1*(l-1))),i&&iQ(r,i)<0&&(r=i),eQ(r)}(e),n=function(e,t){var n=(0,o.useState)(e),a=n[0];return[void 0===t?a:t,n[1]]}(t,e.month),a=n[0],r=n[1];return[a,function(t){var n;if(!e.disableNavigation){var a=eQ(t);r(a),null===(n=e.onMonthChange)||void 0===n||n.call(e,a)}}]}var VQ=(0,o.createContext)(void 0);function qQ(e){var t=IQ(),n=UQ(),a=n[0],r=n[1],o=function(e,t){for(var n=t.reverseMonths,a=t.numberOfMonths,r=eQ(e),o=iQ(eQ(sQ(r,a)),r),i=[],s=0;s<o;s++){var l=sQ(r,s);i.push(l)}return n&&(i=i.reverse()),i}(a,t),i=function(e,t){if(!t.disableNavigation){var n=t.toDate,a=t.pagedNavigation,r=t.numberOfMonths,o=void 0===r?1:r,i=a?o:1,s=eQ(e);if(!n)return sQ(s,i);if(!(iQ(n,e)<o))return sQ(s,i)}}(a,t),s=function(e,t){if(!t.disableNavigation){var n=t.fromDate,a=t.pagedNavigation,r=t.numberOfMonths,o=a?void 0===r?1:r:1,i=eQ(e);if(!n)return sQ(i,-o);if(!(iQ(i,n)<=0))return sQ(i,-o)}}(a,t),l=function(e){return o.some(function(t){return lQ(e,t)})},c={currentMonth:a,displayMonths:o,goToMonth:r,goToDate:function(e,n){l(e)||(n&&cQ(e,n)?r(sQ(e,1+-1*t.numberOfMonths)):r(e))},previousMonth:s,nextMonth:i,isDateDisplayed:l};return(0,_h.jsx)(VQ.Provider,{value:c,children:e.children})}function HQ(){var e=(0,o.useContext)(VQ);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function WQ(e){var t,n=IQ(),a=n.classNames,r=n.styles,o=n.components,i=HQ().goToMonth,s=function(t){i(sQ(t,e.displayIndex?-e.dis
2playIndex:0))},l=null!==(t=null===o||void 0===o?void 0:o.CaptionLabel)&&void 0!==t?t:RQ,c=(0,_h.jsx)(l,{id:e.id,displayMonth:e.displayMonth});return(0,_h.jsxs)("div",{className:a.caption_dropdowns,style:r.caption_dropdowns,children:[(0,_h.jsx)("div",{className:a.vhidden,children:c}),(0,_h.jsx)(zQ,{onChange:s,displayMonth:e.displayMonth}),(0,_h.jsx)(LQ,{onChange:s,displayMonth:e.displayMonth})]})}function KQ(e){return(0,_h.jsx)("svg",CQ({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:(0,_h.jsx)("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function YQ(e){return(0,_h.jsx)("svg",CQ({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:(0,_h.jsx)("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var GQ=(0,o.forwardRef)(function(e,t){var n=IQ(),a=n.classNames,r=n.styles,o=[a.button_reset,a.button];e.className&&o.push(e.className);var i=o.join(" "),s=CQ(CQ({},r.button_reset),r.button);return e.style&&Object.assign(s,e.style),(0,_h.jsx)("button",CQ({},e,{ref:t,type:"button",className:i,style:s}))});function JQ(e){var t,n,a=IQ(),r=a.dir,o=a.locale,i=a.classNames,s=a.styles,l=a.labels,c=l.labelPrevious,u=l.labelNext,d=a.components;if(!e.nextMonth&&!e.previousMonth)return(0,_h.jsx)(_h.Fragment,{});var h=c(e.previousMonth,{locale:o}),p=[i.nav_button,i.nav_button_previous].join(" "),f=u(e.nextMonth,{locale:o}),m=[i.nav_button,i.nav_button_next].join(" "),g=null!==(t=null===d||void 0===d?void 0:d.IconRight)&&void 0!==t?t:YQ,v=null!==(n=null===d||void 0===d?void 0:d.IconLeft)&&void 0!==n?n:KQ;return(0,_h.jsxs)("div",{className:i.nav,style:s.nav,children:[!e.hidePrevious&&(0,_h.jsx)(GQ,{name:"previous-month","aria-label":h,className:p,style:s.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:"rtl"===r?(0,_h.jsx)(g,{className:i.nav_icon,style:s.nav_icon}):(0,_h.jsx)(v,{className:i.nav_icon,style:s.nav_icon})}),!e.hideNext&&(0,_h.jsx)(GQ,{name:"next-month","aria-label":f,className:m,style:s.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:"rtl"===r?(0,_h.jsx)(v,{className:i.nav_icon,style:s.nav_icon}):(0,_h.jsx)(g,{className:i.nav_icon,style:s.nav_icon})})]})}function $Q(e){var t=IQ().numberOfMonths,n=HQ(),a=n.previousMonth,r=n.nextMonth,o=n.goToMonth,i=n.displayMonths,s=i.findIndex(function(t){return lQ(e.displayMonth,t)}),l=0===s,c=s===i.length-1,u=t>1&&(l||!c),d=t>1&&(c||!l);return(0,_h.jsx)(JQ,{displayMonth:e.displayMonth,hideNext:u,hidePrevious:d,nextMonth:r,previousMonth:a,onPreviousClick:function(){a&&o(a)},onNextClick:function(){r&&o(r)}})}function QQ(e){var t,n,a=IQ(),r=a.classNames,o=a.disableNavigation,i=a.styles,s=a.captionLayout,l=a.components,c=null!==(t=null===l||void 0===l?void 0:l.CaptionLabel)&&void 0!==t?t:RQ;return n=o?(0,_h.jsx)(c,{id:e.id,displayMonth:e.displayMonth}):"dropdown"===s?(0,_h.jsx)(WQ,{displayMonth:e.displayMonth,id:e.id}):"dropdown-buttons"===s?(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsx)(WQ,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),(0,_h.jsx)($Q,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsx)(c,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),(0,_h.jsx)($Q,{displayMonth:e.displayMonth,id:e.id})]}),(0,_h.jsx)("div",{className:r.caption,style:i.caption,children:n})}function XQ(e){var t=IQ(),n=t.footer,a=t.styles,r=t.classNames.tfoot;return n?(0,_h.jsx)("tfoot",{className:r,style:a.tfoot,children:(0,_h.jsx)("tr",{children:(0,_h.jsx)("td",{colSpan:8,children:n})})}):(0,_h.jsx)(_h.Fragment,{})}function ZQ(){var e=IQ(),t=e.classNames,n=e.styles,a=e.showWeekNumber,r=e.locale,o=e.weekStartsOn,i=e.ISOWeek,s=e.formatters.formatWeekdayName,l=e.labels.labelWeekday,c=function(e,t,n){for(var a=n?_$(new Date):w$(new Date,{locale:e,weekStartsOn:t}),r=[],o=0;o<7;o++){var i=uQ(a,o);
vendor: 11,013 bytes, line 2
2r.push(i)}return r}(r,o,i);return(0,_h.jsxs)("tr",{style:n.head_row,className:t.head_row,children:[a&&(0,_h.jsx)("td",{style:n.head_cell,className:t.head_cell}),c.map(function(e,a){return(0,_h.jsx)("th",{scope:"col",className:t.head_cell,style:n.head_cell,"aria-label":l(e,{locale:r}),children:s(e,{locale:r})},a)})]})}function eX(){var e,t=IQ(),n=t.classNames,a=t.styles,r=t.components,o=null!==(e=null===r||void 0===r?void 0:r.HeadRow)&&void 0!==e?e:ZQ;return(0,_h.jsx)("thead",{style:a.head,className:n.head,children:(0,_h.jsx)(o,{})})}function tX(e){var t=IQ(),n=t.locale,a=t.formatters.formatDay;return(0,_h.jsx)(_h.Fragment,{children:a(e.date,{locale:n})})}var nX=(0,o.createContext)(void 0);function aX(e){if(!AQ(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return(0,_h.jsx)(nX.Provider,{value:t,children:e.children})}return(0,_h.jsx)(rX,{initialProps:e.initialProps,children:e.children})}function rX(e){var t=e.initialProps,n=e.children,a=t.selected,r=t.min,o=t.max,i={disabled:[]};a&&i.disabled.push(function(e){var t=o&&a.length>o-1,n=a.some(function(t){return dQ(t,e)});return Boolean(t&&!n)});var s={selected:a,onDayClick:function(e,n,i){var s,l;if((null===(s=t.onDayClick)||void 0===s||s.call(t,e,n,i),!Boolean(n.selected&&r&&(null===a||void 0===a?void 0:a.length)===r))&&!Boolean(!n.selected&&o&&(null===a||void 0===a?void 0:a.length)===o)){var c=a?DQ([],a,!0):[];if(n.selected){var u=c.findIndex(function(t){return dQ(e,t)});c.splice(u,1)}else c.push(e);null===(l=t.onSelect)||void 0===l||l.call(t,c,e,n,i)}},modifiers:i};return(0,_h.jsx)(nX.Provider,{value:s,children:n})}function oX(){var e=(0,o.useContext)(nX);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}var iX,sX=(0,o.createContext)(void 0);function lX(e){if(!EQ(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return(0,_h.jsx)(sX.Provider,{value:t,children:e.children})}return(0,_h.jsx)(cX,{initialProps:e.initialProps,children:e.children})}function cX(e){var t=e.initialProps,n=e.children,a=t.selected,r=a||{},o=r.from,i=r.to,s=t.min,l=t.max,c={range_start:[],range_end:[],range_middle:[],disabled:[]};if(o?(c.range_start=[o],i?(c.range_end=[i],dQ(o,i)||(c.range_middle=[{after:o,before:i}])):c.range_end=[o]):i&&(c.range_start=[i],c.range_end=[i]),s&&(o&&!i&&c.disabled.push({after:pQ(o,s-1),before:uQ(o,s-1)}),o&&i&&c.disabled.push({after:o,before:uQ(o,s-1)}),!o&&i&&c.disabled.push({after:pQ(i,s-1),before:uQ(i,s-1)})),l){if(o&&!i&&(c.disabled.push({before:uQ(o,1-l)}),c.disabled.push({after:uQ(o,l-1)})),o&&i){var u=l-(g$(i,o)+1);c.disabled.push({before:pQ(o,u)}),c.disabled.push({after:uQ(i,u)})}!o&&i&&(c.disabled.push({before:uQ(i,1-l)}),c.disabled.push({after:uQ(i,l-1)}))}return(0,_h.jsx)(sX.Provider,{value:{selected:a,onDayClick:function(e,n,r){var o,i;null===(o=t.onDayClick)||void 0===o||o.call(t,e,n,r);var s=function(e,t){var n=t||{},a=n.from,r=n.to;if(a&&r){if(dQ(r,e)&&dQ(a,e))return;if(dQ(r,e))return{from:r,to:void 0};if(dQ(a,e))return;return hQ(a,e)?{from:e,to:r}:{from:a,to:e}}return r?hQ(e,r)?{from:r,to:e}:{from:e,to:r}:a?cQ(e,a)?{from:e,to:a}:{from:a,to:e}:{from:e,to:void 0}}(e,a);null===(i=t.onSelect)||void 0===i||i.call(t,s,e,n,r)},modifiers:c},children:n})}function uX(){var e=(0,o.useContext)(sX);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function dX(e){return Array.isArray(e)?DQ([],e,!0):void 0!==e?[e]:[]}!function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"}(iX||(iX={}));var hX=iX.Selected,pX=iX.Disabled,fX=iX.Hidden,mX=iX.Today,gX=iX.RangeEnd,vX=iX.RangeMiddle,yX=iX.RangeStart,wX=iX.Outside;var _X=(0,o.createContext)(void 0);function xX(e){var t=IQ(),n=function(e,t,n){var a,r=((a={})[hX]=dX(e.selected),a[pX]=dX(e.disabled),a[fX]=dX(e.hidden),a[mX]=[e.today],a[gX]=[],a[vX]=[],a[yX]=[],a[wX]=[],a);return e.fromDate&&r[pX].push({before:e.fromDate}),e.toDate&&r[pX].push({after:e.toDate}),AQ(e)?r[pX]=r[pX].concat(t.modifiers[pX]):EQ(e)&&(r[pX]=r[pX].concat(n.modifiers[pX]),r[yX]=n.modifiers[yX],r[vX]=n.modifiers[vX],r[gX]=n.modifiers[gX]),r}(t,oX(),uX()),a=function(e){var t={};return Object.entries(e).forEach(function(e){var n=e[0],a=e[1];t[n]=dX(a)}),t}(t.modifiers),r=CQ(CQ({},n),a);return(0,_h.jsx)(_X.Provider,{value:r,children:e.children})}function bX(){var e=(0,o.useContext)(_X);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function kX(e,t){return t.some(function(t){if("boolean"===typeof t)return t;if(function(e){return W$(e)}(t))return dQ(e,t);if(function(e){return Array.isArray(e)&&e.every(W$)}(t))return t.includes(e);if(function(e){return Boolean(e&&"object"===typeof e&&"from"in e)}(t))return function(e,t){var n,a=t.from,r=t.to;return a&&r?(g$(r,a)<0&&(a=(n=[r,a])[0],r=n[1]),g$(e,a)>=0&&g$(r,e)>=0):r?dQ(r,e):!!a&&dQ(a,e)}(e,t);if(function(e){return Boolean(e&&"object"===typeof e&&"dayOfWeek"in e)}(t))return t.dayOfWeek.includes(e.getDay());if(function(e){return Boolean(e&&"object"===typeof e&&"before"in e&&"after"in e)}(t)){var n=g$(t.before,e)>0,a=g$(t.after,e)<0;return hQ(t.before,t.after)?a&&n:n||a}return function(e){return Boolean(e&&"object"===typeof e&&"after"in e)}(t)?g$(e,t.after)>0:function(e){return Boolean(e&&"object"===typeof e&&"before"in e)}(t)?g$(t.before,e)>0:"function"===typeof t&&t(e)})}function CX(e,t,n){var a=Object.keys(t).reduce(function(n,a){var r=t[a];return kX(e,r)&&n.push(a),n},[]),r={};return a.forEach(function(e){return r[e]=!0}),n&&!lQ(e,n)&&(r.outside=!0),r}function DX(e,t){var n=t.moveBy,a=t.direction,r=t.context,o=t.modifiers,i=t.retry,s=void 0===i?{count:0,lastFocused:e}:i,l=r.weekStartsOn,c=r.fromDate,u=r.toDate,d=r.locale,h={day:uQ,week:fQ,month:sQ,year:mQ,startOfWeek:function(e){return r.ISOWeek?_$(e):w$(e,{locale:d,weekStartsOn:l})},endOfWeek:function(e){return r.ISOWeek?vQ(e):gQ(e,{locale:d,weekStartsOn:l})}},p=h[n](e,"after"===a?1:-1);"before"===a&&c?p=yQ([c,p]):"after"===a&&u&&(p=wQ([u,p]));var f=!0;if(o){var m=CX(p,o);f=!m.disabled&&!m.hidden}return f?p:s.count>365?s.lastFocused:DX(p,{moveBy:n,direction:a,context:r,modifiers:o,retry:CQ(CQ({},s),{count:s.count+1})})}var AX=(0,o.createContext)(void 0);function EX(e){var t=HQ(),n=bX(),a=(0,o.useState)(),r=a[0],i=a[1],s=(0,o.useState)(),l=s[0],c=s[1],u=function(e,t){for(var n,a,r=eQ(e[0]),o=tQ(e[e.length-1]),i=r;i<=o;){var s=CX(i,t);if(s.disabled||s.hidden)i=uQ(i,1);else{if(s.selected)return i;s.today&&!a&&(a=i),n||(n=i),i=uQ(i,1)}}return a||n}(t.displayMonths,n),d=(null!==r&&void 0!==r?r:l&&t.isDateDisplayed(l))?l:u,h=function(e){i(e)},p=IQ(),f=function(e,a){if(r){var o=DX(r,{moveBy:e,direction:a,context:p,modifiers:n});dQ(r,o)||(t.goToDate(o,r),h(o))}},m={focusedDay:r,focusTarget:d,blur:function(){c(r),i(void 0)},focus:h,focusDayAfter:function(){return f("day","after")},focusDayBefore:function(){return f("day","before")},focusWeekAfter:function(){return f("week","after")},focusWeekBefore:function(){return f("week","before")},focusMonthBefore:function(){return f("month","before")},focusMonthAfter:function(){return f("month","after")},focusYearBefore:function(){return f("year","before")},focusYearAfter:function(){return f("year","after")},focusStartOfWeek:function(){return f("startOfWeek","before")},focusEndOfWeek:function(){return f("endOfWeek","after")}};return(0,_h.jsx)(AX.Provider,{value:m,children:e.children})}function jX(){var e=(0,o.useContext)(AX);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}var SX=(0,o.createContext)(void 0);function NX(e){if(!jQ(e.initialProps)){var t={selected:void 0};return(0,_h.jsx)(SX.Provider,{value:t,children:e.children})}return(0,_h.jsx)(PX,{initialProps:e.initialProps,children:e.children})}function PX(e){var t=e.initialProps,n=e.children,a={selected:t.selected,onDayClick:function(e,n,a){var r,o,i;null===(r=t.onDayClick)||void 0===r||r.call(t,e,n,a),!n.selected||t.required?null===(i=t.onSelect)||void 0===i||i.call(t,e,e,n,a):null===(o=t.onSelect)||void 0===o||o.call(t,void 0,e,n,a)}};return(0,_h.jsx)(SX.Provider,{value:a,children:n})}function TX(){var e=(0,o.useContext)(SX);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function FX(e,t){var n=[e.classNames.day];return Object.keys(t).forEach(function(t){var a=e.modifiersClassNames[t];if(a)n.push(a);else if(function(e){return Object.values(iX).includes(e)}(t)){var r=e.classNames["day_".concat(t)];r&&n.push(r)}}),n}function OX(e,t,n){var a,r,i,s=IQ(),l=jX(),c=function(e,t){return CX(e,bX(),t)}(e,t),u=function(e,t){var n=IQ(),a=TX(),r=oX(),o=uX(),i=jX(),s=i.focusDayAfter,l=i.focusDayBefore,c=i.focusWeekAfter,u=i.focusWeekBefore,d=i.blur,h=i.focus,p=i.focusMonthBefore,f=i.focusMonthAfter,m=i.focusYearBefore,g=i.focusYearAfter,v=i.focusStartOfWeek,y=i.focusEndOfWeek,w={onClick:function(i){var s,l,c,u;jQ(n)?null===(s=a.onDayClick)||void 0===s||s.call(a,e,t,i):AQ(n)?null===(l=r.onDayClick)||void 0===l||l.call(r,e,t,i):EQ(n)?null===(c=o.onDayClick)||void 0===c||c.call(o,e,t,i):null===(u=n.onDayClick)||void 0===u||u.call(n,e,t,i)},onFocus:function(a){var r;h(e),null===(r=n.onDayFocus)||void 0===r||r.call(n,e,t,a)},onBlur:function(a){var r;d(),null===(r=n.onDayBlur)||void 0===r||r.call(n,e,t,a)},onKeyDown:function(a){var r;switch(a.key){case"ArrowLeft":a.preventDefault(),a.stopPropagation(),"rtl"===n.dir?s():l();break;case"ArrowRight":a.preventDefault(),a.stopPropagation(),"rtl"===n.dir?l():s();break;case"ArrowDown":a.preventDefault(),a.stopPropagation(),c();break;case"ArrowUp":a.preventDefault(),a.stopPropagation(),u();break;case"PageUp":a.preventDefault(),a.stopPropagation(),a.shiftKey?m():p();break;case"PageDown":a.preventDefault(),a.stopPropagation(),a.shiftKey?g():f();break;case"Home":a.preventDefault(),a.stopPropagation(),v();break;case"End":a.preventDefault(),a.stopPropagation(),y()}null===(r=n.onDayKeyDown)||void 0===r||r.call(n,e,t,a)},onKeyUp:function(a){var r;null===(r=n.onDayKeyUp)||void 0===r||r.call(n,e,t,a)},onMouseEnter:function(a){var r;null===(r=n.onDayMouseEnter)||void 0===r||r.call(n,e,t,a)},onMouseLeave:function(a){var r;null===(r=n.onDayMouseLeave)||void 0===r||r.call(n,e,t,a)},onPointerEnter:function(a){var r;null===(r=n.onDayPointerEnter)||void 0===r||r.call(n,e,t,a)},onPointerLeave:function(a){var r;null===(r=n.onDayPointerLeave)||void 0===r||r.call(n,e,t,a)},onTouchCancel:function(a){var r;null===(r=n.onDayTouchCancel)||void 0===r||r.call(n,e,t,a)},onTouchEnd:function(a){var r;null===(r=n.onDayTouchEnd)||void 0===r||r.call(n,e,t,a)},onTouchMove:function(a){var r;null===(r=n.onDayTouchMove)||void 0===r||r.call(n,e,t,a)},onTouchStart:function(a){var r;null===(r=n.onDayTouchStart)||void 0===r||r.call(n,e,t,a)}};return w}(e,c),d=function(){var e=IQ(),t=TX(),n=oX(),a=uX();return jQ(e)?t.selected:AQ(e)?n.selected:EQ(e)?a.selected:void 0}
2(),h=Boolean(s.onDayClick||"default"!==s.mode);(0,o.useEffect)(function(){var t;c.outside||l.focusedDay&&h&&dQ(l.focusedDay,e)&&(null===(t=n.current)||void 0===t||t.focus())},[l.focusedDay,e,n,h,c.outside]);var p=FX(s,c).join(" "),f=function(e,t){var n=CQ({},e.styles.day);return Object.keys(t).forEach(function(t){var a;n=CQ(CQ({},n),null===(a=e.modifiersStyles)||void 0===a?void 0:a[t])}),n}(s,c),m=Boolean(c.outside&&!s.showOutsideDays||c.hidden),g=null!==(i=null===(r=s.components)||void 0===r?void 0:r.DayContent)&&void 0!==i?i:tX,v={style:f,className:p,children:(0,_h.jsx)(g,{date:e,displayMonth:t,activeModifiers:c}),role:"gridcell"},y=l.focusTarget&&dQ(l.focusTarget,e)&&!c.outside,w=l.focusedDay&&dQ(l.focusedDay,e),_=CQ(CQ(CQ({},v),((a={disabled:c.disabled,role:"gridcell"})["aria-selected"]=c.selected,a.tabIndex=w||y?0:-1,a)),u);return{isButton:h,isHidden:m,activeModifiers:c,selectedDays:d,buttonProps:_,divProps:v}}function IX(e){var t=(0,o.useRef)(null),n=OX(e.date,e.displayMonth,t);return n.isHidden?(0,_h.jsx)("div",{role:"gridcell"}):n.isButton?(0,_h.jsx)(GQ,CQ({name:"day",ref:t},n.buttonProps)):(0,_h.jsx)("div",CQ({},n.divProps))}function RX(e){var t=e.number,n=e.dates,a=IQ(),r=a.onWeekNumberClick,o=a.styles,i=a.classNames,s=a.locale,l=a.labels.labelWeekNumber,c=(0,a.formatters.formatWeekNumber)(Number(t),{locale:s});if(!r)return(0,_h.jsx)("span",{className:i.weeknumber,style:o.weeknumber,children:c});var u=l(Number(t),{locale:s});return(0,_h.jsx)(GQ,{name:"week-number","aria-label":u,className:i.weeknumber,style:o.weeknumber,onClick:function(e){r(t,n,e)},children:c})}function MX(e){var t,n,a,r=IQ(),o=r.styles,i=r.classNames,s=r.showWeekNumber,l=r.components,c=null!==(t=null===l||void 0===l?void 0:l.Day)&&void 0!==t?t:IX,u=null!==(n=null===l||void 0===l?void 0:l.WeekNumber)&&void 0!==n?n:RX;return s&&(a=(0,_h.jsx)("td",{className:i.cell,style:o.cell,children:(0,_h.jsx)(u,{number:e.weekNumber,dates:e.dates})})),(0,_h.jsxs)("tr",{className:i.row,style:o.row,children:[a,e.dates.map(function(t){return(0,_h.jsx)("td",{className:i.cell,style:o.cell,role:"presentation",children:(0,_h.jsx)(c,{displayMonth:e.displayMonth,date:t})},_Q(t))})]})}function BX(e,t,n){for(var a=(null===n||void 0===n?void 0:n.ISOWeek)?vQ(t):gQ(t,n),r=(null===n||void 0===n?void 0:n.ISOWeek)?_$(e):w$(e,n),o=g$(a,r),i=[],s=0;s<=o;s++)i.push(uQ(r,s));var l=i.reduce(function(e,t){var a=(null===n||void 0===n?void 0:n.ISOWeek)?k$(t):A$(t,n),r=e.find(function(e){return e.weekNumber===a});return r?(r.dates.push(t),e):(e.push({weekNumber:a,dates:[t]}),e)},[]);return l}function zX(e){var t,n,a,r=IQ(),o=r.locale,i=r.classNames,s=r.styles,l=r.hideHead,c=r.fixedWeeks,u=r.components,d=r.weekStartsOn,h=r.firstWeekContainsDate,p=r.ISOWeek,f=function(e,t){var n=BX(eQ(e),tQ(e),t);if(null===t||void 0===t?void 0:t.useFixedWeeks){var a=kQ(e,t);if(a<6){var r=n[n.length-1],o=r.dates[r.dates.length-1],i=fQ(o,6-a),s=BX(fQ(o,1),i,t);n.push.apply(n,s)}}return n}(e.displayMonth,{useFixedWeeks:Boolean(c),ISOWeek:p,locale:o,weekStartsOn:d,firstWeekContainsDate:h}),m=null!==(t=null===u||void 0===u?void 0:u.Head)&&void 0!==t?t:eX,g=null!==(n=null===u||void 0===u?void 0:u.Row)&&void 0!==n?n:MX,v=null!==(a=null===u||void 0===u?void 0:u.Footer)&&void 0!==a?a:XQ;return(0,_h.jsxs)("table",{id:e.id,className:i.table,style:s.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!l&&(0,_h.jsx)(m,{}),(0,_h.jsx)("tbody",{className:i.tbody,style:s.tbody,children:f.map(function(t){return(0,_h.jsx)(g,{displayMonth:e.displayMonth,dates:t.dates,weekNumber:t.weekNumber},t.weekNumber)})}),(0,_h.jsx)(v,{displayMonth:e.displayMonth})]})}var LX="undefined"!==typeof window&&window.document&&window.document.createElement?o.useLayoutEffect:o.useEffect,UX=!1,VX=0;function qX(){return"react-day-picker-".concat(++VX)}function HX(e){var t,n,a=IQ(),r=a.dir,i=a.classNames,s=a.styles,l=a.components,c=HQ().displayMonths,u=function(e){var t,n=null!==e&&void 0!==e?e:UX?qX():null,a=(0,o.useState)(n),r=a[0],i=a[1];return LX(function(){null===r&&i(qX())},[]),(0,o.useEffect)(function(){!1===UX&&(UX=!0)},[]),null!==(t=null!==e&&void 0!==e?e:r)&&void 0!==t?t:void 0}(a.id?"".concat(a.id,"-").concat(e.displayIndex):void 0),d=a.id?"".concat(a.id,"-grid-").concat(e.displayIndex):void 0,h=[i.month],p=s.month,f=0===e.displayIndex,m=e.displayIndex===c.length-1,g=!f&&!m;"rtl"===r&&(m=(t=[f,m])[0],f=t[1]),f&&(h.push(i.caption_start),p=CQ(CQ({},p),s.caption_start)),m&&(h.push(i.caption_end),p=CQ(CQ({},p),s.caption_end)),g&&(h.push(i.caption_between),p=CQ(CQ({},p),s.caption_between));var v=null!==(n=null===l||void 0===l?void 0:l.Caption)&&void 0!==n?n:QQ;return(0,_h.jsxs)("div",{className:h.join(" "),style:p,children:[(0,_h.jsx)(v,{id:u,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),(0,_h.jsx)(zX,{id:d,"aria-labelledby":u,displayMonth:e.displayMonth})]},e.displayIndex)}function WX(e){var t=IQ(),n=t.classNames,a=t.styles;return(0,_h.jsx)("div",{className:n.months,style:a.months,children:e.children})}function KX(e){var t,n,a=e.initialProps,r=IQ(),i=jX(),s=HQ(),l=(0,o.useState)(!1),c=l[0],u=l[1];(0,o.useEffect)(function(){r.initialFocus&&i.focusTarget&&(c||(i.focus(i.focusTarget),u(!0)))},[r.initialFocus,c,i.focus,i.focusTarget,i]);var d=[r.classNames.root,r.className];r.numberOfMonths>1&&d.push(r.classNames.multiple_months),r.showWeekNumber&&d.push(r.classNames.with_weeknumber);var h=CQ(CQ({},r.styles.root),r.style),p=Object.keys(a).filter(function(e){return e.startsWith("data-")}).reduce(function(e,t){var n;return CQ(CQ({},e),((n={})[t]=a[t],n))},{}),f=null!==(n=null===(t=a.components)||void 0===t?void 0:t.Months)&&void 0!==n?n:WX;return(0,_h.jsx)("div",CQ({className:d.join(" "),style:h,dir:r.dir,id:r.id,nonce:a.nonce,title:a.title,lang:a.lang},p,{children:(0,_h.jsx)(f,{children:s.displayMonths.map(function(e,t){return(0,_h.jsx)(HX,{displayIndex:t,displayMonth:e},t)})})}))}function YX(e){var t=e.children,n=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}(e,["children"]);return(0,_h.jsx)(OQ,{initialProps:n,children:(0,_h.jsx)(qQ,{children:(0,_h.jsx)(NX,{initialProps:n,children:(0,_h.jsx)(aX,{initialProps:n,children:(0,_h.jsx)(lX,{initialProps:n,children:(0,_h.jsx)(xX,{children:(0,_h.jsx)(EX,{children:t})})})})})})})}function GX(e){return(0,_h.jsx)(YX,CQ({},e,{children:(0,_h.jsx)(KX,{initialProps:e})}))}const JX=["className","classNames","showOutsideDays"],$X=["className"],QX=["className"];function XX(e){let{className:t,classNames:n,showOutsideDays:a=!0}=e,r=l(e,JX);return(0,_h.jsx)(GX,p({showOutsideDays:a,className:FG("p-3",t),classNames:p({months:"flex flex-col sm:flex-row space-y-4 sm:sp
2ace-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:FG(IG({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:FG("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md","range"===r.mode?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:FG(IG({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible"},n),components:{IconLeft:e=>{let{className:t}=e,n=l(e,$X);return(0,_h.jsx)(GJ,p({className:FG("h-4 w-4",t)},n))},IconRight:e=>{let{className:t}=e,n=l(e,QX);return(0,_h.jsx)(WG,p({className:FG("h-4 w-4",t)},n))}}},r))}XX.displayName="Calendar";const ZX=HG("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]),eZ=HG("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]),tZ=HG("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]),nZ=HG("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),aZ=HG("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]),rZ=HG("settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),oZ=HG("log-out",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]),iZ=HG("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),sZ=HG("user-plus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]),lZ=HG("dumbbell",[["path",{d:"M17.596 12.768a2 2 0 1 0 2.829-2.829l-1.768-1.767a2 2 0 0 0 2.828-2.829l-2.828-2.828a2 2 0 0 0-2.829 2.828l-1.767-1.768a2 2 0 1 0-2.829 2.829z",key:"9m4mmf"}],["path",{d:"m2.5 21.5 1.4-1.4",key:"17g3f0"}],["path",{d:"m20.1 3.9 1.4-1.4",key:"1qn309"}],["path",{d:"M5.343 21.485a2 2 0 1 0 2.829-2.828l1.767 1.768a2 2 0 1 0 2.829-2.829l-6.364-6.364a2 2 0 1 0-2.829 2.829l1.768 1.767a2 2 0 0 0-2.828 2.829z",key:"1t2c92"}
2],["path",{d:"m9.6 14.4 4.8-4.8",key:"6umqxw"}]]),cZ=HG("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),uZ=[{path:"/dashboard",label:"Dashboard",icon:ZX},{path:"/family",label:"My Family",icon:eZ},{path:"/statistics",label:"Stats",icon:tZ},{path:"/smartdaddy",label:"SmartDaddy AI",icon:nZ}],dZ=[{value:"hsl(142, 71%, 45%)",name:"Green"},{value:"hsl(24, 95%, 53%)",name:"Orange"},{value:"hsl(199, 89%, 48%)",name:"Blue"},{value:"hsl(328, 85%, 60%)",name:"Pink"},{value:"hsl(271, 81%, 56%)",name:"Purple"},{value:"hsl(84, 81%, 44%)",name:"Lime"}],hZ=e=>{var t,n;let{children:a}=e;const{user:r,logout:i}=gY(),s=Ce(),l=Ee(),[c,u]=(0,o.useState)([]),[d,h]=(0,o.useState)(0),[f,m]=(0,o.useState)(!1),[g,v]=(0,o.useState)([]),[y,w]=(0,o.useState)([]),[_,x]=(0,o.useState)(0),b=["https://images.unsplash.com/photo-1622659097509-4d56de14539e?w=1920&q=80","https://images.unsplash.com/photo-1574744918163-6cef6f4a31b0?w=1920&q=80","https://images.unsplash.com/photo-1490326149782-dd42fa59bd9f?w=1920&q=80","https://images.unsplash.com/photo-1576610616656-d3aa5d1f4534?w=1920&q=80","https://images.unsplash.com/photo-1600077063877-22118d6290eb?w=1920&q=80"],[k,C]=(0,o.useState)(!1),[D,A]=(0,o.useState)(!1),[E,j]=(0,o.useState)(!1),[S,N]=(0,o.useState)({title:"",child_id:"",activity_id:"",date:new Date,start_time:"09:00",end_time:"10:00",location:""}),[P,T]=(0,o.useState)({name:"",color:dZ[0].value}),[F,O]=(0,o.useState)({name:"",color:dZ[0].value});(0,o.useEffect)(()=>{const e=setInterval(()=>{x(e=>(e+1)%b.length)},8e3);return()=>clearInterval(e)},[b.length]),(0,o.useEffect)(()=>{I(),R()},[]);const I=async()=>{try{const e=await(async()=>(await ZK.get("/notifications")).data.notifications)();u(e),h(e.filter(e=>!e.read).length)}catch(e){console.error("Failed to load notifications:",e)}},R=async()=>{try{const[e,t]=await Promise.all([rY(),iY()]);v(e),w(t)}catch(e){console.error("Failed to load form data:",e)}},M=async()=>{try{await(async()=>{await ZK.put("/notifications/read-all")})(),u(e=>e.map(e=>p(p({},e),{},{read:!0}))),h(0)}catch(e){console.error("Failed to mark all as read:",e)}},B=e=>{m(!1),"event"===e&&C(!0),"child"===e&&A(!0),"activity"===e&&j(!0)};return(0,_h.jsxs)("div",{className:"min-h-screen bg-background relative overflow-hidden flex flex-col",children:[(0,_h.jsxs)("div",{className:"fixed inset-0 z-0",children:[b.map((e,t)=>(0,_h.jsx)("div",{className:"absolute inset-0 transition-opacity duration-1000 ease-in-out",style:{opacity:_===t?1:0,backgroundImage:"url('".concat(e,"')"),backgroundSize:"cover",backgroundPosition:"center"}},t)),(0,_h.jsx)("div",{className:"absolute inset-0",style:{background:"linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.88) 50%, rgba(255,255,255,0.92) 100%)"}}),(0,_h.jsx)("div",{className:"absolute inset-0",style:{background:"linear-gradient(135deg, rgba(93,173,226,0.05) 0%, rgba(142,68,173,0.05) 100%)"}})]}),(0,_h.jsx)("header",{className:"hidden md:block sticky top-0 z-40 bg-white/70 backdrop-blur-xl border-b border-gray-100/50",children:(0,_h.jsx)("div",{className:"w-full px-4 md:px-8 lg:px-12 xl:px-16",children:(0,_h.jsxs)("div",{className:"flex h-16 items-center justify-between",children:[(0,_h.jsx)(Pt,{to:"/dashboard",className:"flex items-center gap-2 group",children:(0,_h.jsx)("img",{src:"https://customer-assets.emergentagent.com/job_kidplay-hub/artifacts/7zuwi818_jgzjhpdo_image.png",alt:"SmartDaddy AI",className:"h-8 w-auto object-contain transition-transform duration-300 group-hover:scale-105"})}),(0,_h.jsx)("nav",{className:"flex items-center gap-1 p-1.5 rounded-full",style:{background:"rgba(0,0,0,0.04)"},children:uZ.map(e=>{let{path:t,label:n,icon:a}=e;return(0,_h.jsx)(Pt,{to:t,className:"px-4 py-2 rounded-full text-sm font-medium transition-all duration-300 ".concat(s.pathname===t?"bg-white text-gray-900 shadow-sm":"text-gray-500 hover:text-gray-900"),children:n},t)})}),(0,_h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_h.jsxs)(nJ,{children:[(0,_h.jsx)(aJ,{asChild:!0,children:(0,_h.jsxs)(RG,{variant:"ghost",size:"icon",className:"relative rounded-full","data-testid":"header-bell-button",children:[(0,_h.jsx)(aZ,{className:"h-5 w-5"}),d>0&&(0,_h.jsx)("span",{className:"absolute -top-0.5 -right-0.5 h-5 min-w-5 flex items-center justify-center text-[10px] font-bold text-white bg-[hsl(var(--destructive))] rounded-full px-1",children:d})]})}),(0,_h.jsxs)(oJ,{align:"end",className:"w-80",children:[(0,_h.jsxs)("div",{className:"flex items-center justify-between px-3 py-2 border-b",children:[(0,_h.jsx)("span",{className:"font-semibold",children:"Notifications"}),d>0&&(0,_h.jsx)(RG,{variant:"ghost",size:"sm",onClick:M,className:"text-xs",children:"Mark all read"})]}),(0,_h.jsx)("div",{className:"max-h-80 overflow-y-auto",children:0===c.length?(0,_h.jsx)("div",{className:"p-6 text-center text-muted-foreground text-sm",children:"No notifications yet"}):c.slice(0,10).map(e=>(0,_h.jsxs)(iJ,{className:"flex flex-col items-start gap-1 p-3 cursor-pointer ".concat(e.read?"":"bg-[hsl(var(--primary)/0.05)]"),"data-testid":"notif-item",children:[(0,_h.jsx)("span",{className:"font-medium text-sm",children:e.title}),(0,_h.jsx)("span",{className:"text-xs text-muted-foreground",children:e.message})]},e.id))})]})]}),(0,_h.jsxs)(nJ,{children:[(0,_h.jsx)(aJ,{asChild:!0,children:(0,_h.jsx)(RG,{variant:"ghost",size:"icon",className:"rounded-full",children:(0,_h.jsx)("div",{className:"h-8 w-8 rounded-full bg-gradient-to-br from-[hsl(var(--primary))] to-[hsl(var(--secondary))] flex items-center justify-center text-white text-sm font-semibold",children:(null===r||void 0===r||null===(t=r.name)||void 0===t?void 0:t.charAt(0))||"U"})})}),(0,_h.jsxs)(oJ,{align:"end",children:[(0,_h.jsxs)("div",{className:"px-3 py-2",children:[(0,_h.jsx)("p",{className:"font-medium",children:null===r||void 0===r?void 0:r.name}),(0,_h.jsx)("p",{className:"text-sm text-muted-foreground",children:null===r||void 0===r?void 0:r.email})]}),(0,_h.jsx)(sJ,{}),(0,_h.jsxs)(iJ,{onClick:()=>l("/settings"),children:[(0,_h.jsx)(rZ,{className:"mr-2 h-4 w-4"}),"Account Settings"]}),(0,_h.jsxs)(iJ,{onClick:i,className:"text-destructive",children:[(0,_h.jsx)(oZ,{className:"mr-2 h-4 w-4"}),"Logout"]})]})]}),(0,_h.jsx)("span",{className:"px-2.5 py-1 bg-gradient-to-r from-purple-600 to-indigo-600 text-white text-[10px] font-bold rounded-full shadow-sm",children:"BETA"})]})]})})}),(0,_h.jsx)("header",{className:"md:hidden sticky top-0 z-40 bg-white/70 backdrop-blur-xl border-b border-gray-100/50",children:(0,_h.jsxs)("div",{className:"flex h-14 items-center justify-between px-4",children:[(0,_h.jsx)(Pt,{to:"/dashboard",className:"flex items-center gap-2",children:(0,_h.jsx)("img",{src:"https://customer-assets.emergentagent.com/job_kidplay-hub/artifacts/7zuwi818_jgzjhpdo_image.png",alt:"SmartDaddy AI",className:"h-7 w-auto object-contain"})}),(0,_h.jsxs)("div",{className:"flex items-center gap-1",children:[(0,_h.jsxs)(nJ,{children:[(0,_h.jsx)(aJ,{asChild:!0,children:(0,_h.jsxs)(RG,{variant:"ghost",size:"icon",className:"relative rounded-full h-9 w-9","data-testid":"header-bell-button",children:[(0,_h.jsx)(aZ,{className:"h-5 w-5"}),d>0&&(0,_h.jsx)("span",{className:"absolute -top-0.5 -right-0.5 h-4 min-w-4 flex items-center justify-center text-[9px] font-bold text-white bg-[hsl(var(--destructive))] rounded-full px-1",children:d})]})}),(0,_h.jsxs)(oJ,{align:"end",className:"w-72",children:[(0,_h.jsxs)("div",{className:"flex items-center justify-between px-3 py-2 border-b",children:[(0,_h.jsx)("span",{className:"font-semibold text-sm",children:"Notifications"}),d>0&&(0,_h.jsx)(RG,{variant:"ghost",size:"sm",onClick:M,className:"text-xs h-7",children:"Mark all read"})]}),(0,_h.jsx)("div",{className:"max-h-64 overflow-y-auto",children:0===c.length?(0,_h.jsx)("div",{className:"p-4 text-center text-muted-foreground text-sm",children:"No notifications"}):c.slice(0,5).map(e=>(0,_h.jsxs)(iJ,{className:"flex flex-col items-start gap-0.5 p-3 ".concat(e.read?"":"bg-[hsl(var(--primary)/0.05)]"),"data-testid":"notif-item",children:[(0,_h.jsx)("span",{className:"font-medium text-sm",children:e.title}),(0,_h.jsx)("span",{className:"text-xs text-muted-foreground",children:e.message})]},e.id))})]})]}),(0,_h.jsxs)(nJ,{children:[(0,_h.jsx)(aJ,{asChild:!0,children:(0,_h.jsx)(RG,{variant:"ghost",size:"icon",className:"rounded-full h-9 w-9",children:(0,_h.jsx)("div",{className:"h-7 w-7 rounded-full bg-gradient-to-br from-[hsl(var(--primary))] to-[hsl(var(--secondary))] flex items-center justify-center text-white text-xs font-semibold",children:(null===r||void 0===r||null===(n=r.name)||void 0===n?void 0:n.charAt(0))||"U"})})}),(0,_h.jsxs)(oJ,{align:"end",children:[(0,_h.jsxs)("div",{className:"px-3 py-2",children:[(0,_h.jsx)("p",{className:"font-medium text-sm",children:null===r||void 0===r?void 0:r.name}),(0,_h.jsx)("p",{className:"text-xs text-muted-foreground",children:null===r||void 0===r?void 0:r.email})]}),(0,_h.jsx)(sJ,{}),(0,_h.jsxs)(iJ,{onClick:()=>l("/settings"),className:"text-sm",children:[(0,_h.jsx)(rZ,{className:"mr-2 h-4 w-4"}),"Account Settings"]}),(0,_h.jsxs)(iJ,{onClick:i,className:"text-destructive text-sm",children:[(0,_h.jsx)(oZ,{className:"mr-2 h-4 w-4"}),"Logout"]})]})]}),(0,_h.jsx)("span",{className:"px-2 py-0.5 bg-gradient-to-r from-purple-600 to-indigo-600 text-white text-[9px] font-bold rounded-full",children:"BETA"})]})]})}),(0,_h.jsx)("main",{className:"relative z-10 w-full px-4 md:px-8 lg:px-12 xl:px-16 py-4 md:py-6 safe-bottom md:pb-6 flex-1",children:a}),(0,_h.jsx)("nav",{className:"bottom-nav md:hidden",children:(0,_h.jsx)("div",{className:"flex justify-around items-center py-1",children:uZ.map(e=>{let{path:t,label:n,icon:a}=e;return(0,_h.jsxs)(Pt,{to:t,className:"bottom-nav-item ".concat(s.pathname===t?"active":""),children:[(0,_h.jsx)("div",{className:"nav-icon",children:(0,_h.jsx)(a,{className:"h-5 w-5"})}),(0,_h.jsx)("span",{children:n})]},t)})})}),(0,_h.jsxs)("div",{className:"fab-container",children:[f&&(0,_h.jsxs)("div",{className:"fab-menu animate-fade-up",children:[(0,_h.jsxs)("button",{onClick:()=>B("event"),className:"fab-menu-item","data-testid":"fab-add-event",children:[(0,_h.jsx)(iZ,{className:"h-5 w-5 text-[hsl(var(--primary))]"}),"Add Event"]}),(0,_h.jsxs)("button",{onClick:()=>B("child"),className:"fab-menu-item","data-testid":"fab-add-child",children:[(0,_h.jsx)(sZ,{className:"h-5 w-5 text-[hsl(var(--secondary))]"}),"Add Child"]}),(0,_h.jsxs)("button",{onClick:()=>B("activity"),className:"fab-menu-item","data-testid":"fab-add-activity",children:[(0,_h.jsx)(lZ,{className:"h-5 w-5 text-[hsl(var(--sport-gymnastics))]"}),"Add Activity"]})]}),(0,_h.jsx)("button",{onClick:()=>m(!f),className:"fab-primary ".concat(f?"rotate-45":""," transition-transform"),"data-testid":"quick-add-event-fab",children:f?(0,_h.jsx)(lJ,{className:"h-6 w-6"}):(0,_h.jsx)(cZ,{className:"h-6 w-6"})})]}),(0,_h.jsx)(mJ,{open:k,onOpenChange:C,children:(0,_h.jsxs)(yJ,{className:"sm:max-w-md",children:[(0,_h.jsx)(wJ,{children:(0,_h.jsx)(xJ,{children:"Add Event"})}),(0,_h.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,_h.jsxs)("div",{className:"grid gap-2",children:[(0,_h.jsx)(EJ,{children:"Event Title *"}),(0,_h.jsx)(CJ,{placeholder:"e.g., Soccer Practice","data-testid":"event-title-input",value:S.title,onChange:e=>N(p(p({},S),{},{title:e.target.value}))})]}),(0,_h.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,_h.jsxs)("div",{className:"grid gap-2",children:[(0,_h.jsx)(EJ,{children:"Child"}),(0,_h.jsxs)(MJ,{value:S.child_id,onValueChange:e=>N(p(p({},S),{},{child_id:e})),children:[(0,_h.jsx)(zJ,{"data-testid":"event-child-select",children:(0,_h.jsx)(BJ,{placeholder:"Select"})}),(0,_h.jsx)(VJ,{children:g.map(e=>(0,_h.jsx)(qJ,{value:e.id,children:e.name},e.id))})]})]}),(0,_h.jsxs)("div",{className:"grid gap-2",children:[(0,_h.jsx)(EJ,{children:"Activity"}),(0,_h.jsxs)(MJ,{value:S.activity_id,onValueChange:e=>N(p(p({},S),{},{activity_id:e})),children:[(0,_h.jsx)(zJ,{"data-testid":"event-activity-select",children:(0,_h.jsx)(BJ,{placeholder:"Select"})}),(0,_h.jsx)(VJ,{children:y.map(e=>(0,_h.jsx)(qJ,{value:e.id,children:e.name},e.id))})]})]})]}),(0,_h.jsxs)("div",{className:"grid gap-2",children:[(0,_h.jsx)(EJ,{children:"Date"}),(0,_h.jsxs)(WJ,{children:[(0,_h.jsx)(KJ,{asChild:!0,children:(0,_h.jsxs)(RG,{variant:"outline",className:"justify-start","data-testid":"event-date-open",children:[(0,_h.jsx)(iZ,{className:"mr-2 h-4 w-4"}),X$(S.date,"PPP")]})}),(0,_h.jsx)(YJ,{className:"w-auto p-0",align:"start",children:(0,_h.jsx)(XX,{mode:"single",selected:S.date,onSelect:e=>e&&N(p(p({},S),{},{date:e}))})})]})]}),(0,_h.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,_h.jsxs)("div",{className:"grid gap-2",children:[(0,_h.jsx)(EJ,{children:"Start"}),(0,_h.jsx)(CJ,{type:"time",value:S.start_time,onChange:e=>N(p(p({},S),{},{start_time:e.target.value}))})]}),(0,_h.jsxs)("div",{className:"grid gap-2",children:[(0,_h.jsx)(EJ,{children:"End"}),(0,_h.jsx)(CJ,{type:"time",value:S.end_time,onChange:e=>N(p(p({},S),{},{end_time:e.target.value}))})]})]}),(0,_h.jsxs)("div",{className:"grid gap-2",children:[(0,_h.jsx)(EJ,{children:"Location"}),(0,_h.jsx)(CJ,{placeholder:"e.g., Riverside Park",value:S.location,onChange:e=>N(p(p({},S),{},{location:e.target.value}))})]})]}),(0,_h.jsxs)(_J,{children:[(0,_h.jsx)(RG,{variant:"outline",onClick:()=>C(!1),children:"Cancel"}),(0,_h.jsxs)(RG,{onClick:async()=>
2{if(S.title)try{await cY(p(p({},S),{},{date:X$(S.date,"yyyy-MM-dd"),source:"manual"})),wH.success("Event created!"),C(!1),N({title:"",child_id:"",activity_id:"",date:new Date,start_time:"09:00",end_time:"10:00",location:""}),I()}catch(e){wH.error("Failed to create event")}else wH.error("Please enter an event title")},"data-testid":"event-submit-button",children:[(0,_h.jsx)(KG,{className:"mr-2 h-4 w-4"})," Add Event"]})]})]})}),(0,_h.jsx)(mJ,{open:D,onOpenChange:A,children:(0,_h.jsxs)(yJ,{className:"sm:max-w-sm",children:[(0,_h.jsx)(wJ,{children:(0,_h.jsx)(xJ,{children:"Add Child"})}),(0,_h.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,_h.jsxs)("div",{className:"grid gap-2",children:[(0,_h.jsx)(EJ,{children:"Name *"}),(0,_h.jsx)(CJ,{placeholder:"Child's name","data-testid":"family-member-name-input",value:P.name,onChange:e=>T(p(p({},P),{},{name:e.target.value}))})]}),(0,_h.jsxs)("div",{className:"grid gap-2",children:[(0,_h.jsx)(EJ,{children:"Color"}),(0,_h.jsx)("div",{className:"flex flex-wrap gap-2",children:dZ.map(e=>(0,_h.jsx)("button",{type:"button",className:"h-8 w-8 rounded-full transition-transform hover:scale-110 ".concat(P.color===e.value?"ring-2 ring-offset-2 ring-[hsl(var(--ring))]":""),style:{backgroundColor:e.value},onClick:()=>T(p(p({},P),{},{color:e.value})),"data-testid":"child-color-swatch"},e.value))})]})]}),(0,_h.jsxs)(_J,{children:[(0,_h.jsx)(RG,{variant:"outline",onClick:()=>A(!1),children:"Cancel"}),(0,_h.jsxs)(RG,{onClick:async()=>{if(P.name)try{const e=await oY(P);v(t=>[...t,e]),wH.success("Child added!"),A(!1),T({name:"",color:dZ[0].value})}catch(e){wH.error("Failed to add child")}else wH.error("Please enter a name")},"data-testid":"save-family-member-button",children:[(0,_h.jsx)(KG,{className:"mr-2 h-4 w-4"})," Add Child"]})]})]})}),(0,_h.jsx)(mJ,{open:E,onOpenChange:j,children:(0,_h.jsxs)(yJ,{className:"sm:max-w-sm",children:[(0,_h.jsx)(wJ,{children:(0,_h.jsx)(xJ,{children:"Add Activity"})}),(0,_h.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,_h.jsxs)("div",{className:"grid gap-2",children:[(0,_h.jsx)(EJ,{children:"Activity Name *"}),(0,_h.jsx)(CJ,{placeholder:"e.g., Soccer, Dance, Swimming","data-testid":"activity-name-input",value:F.name,onChange:e=>O(p(p({},F),{},{name:e.target.value}))})]}),(0,_h.jsxs)("div",{className:"grid gap-2",children:[(0,_h.jsx)(EJ,{children:"Color"}),(0,_h.jsx)("div",{className:"flex flex-wrap gap-2",children:dZ.map(e=>(0,_h.jsx)("button",{type:"button",className:"h-8 w-8 rounded-full transition-transform hover:scale-110 ".concat(F.color===e.value?"ring-2 ring-offset-2 ring-[hsl(var(--ring))]":""),style:{backgroundColor:e.value},onClick:()=>O(p(p({},F),{},{color:e.value}))},e.value))})]})]}),(0,_h.jsxs)(_J,{children:[(0,_h.jsx)(RG,{variant:"outline",onClick:()=>j(!1),children:"Cancel"}),(0,_h.jsxs)(RG,{onClick:async()=>{if(F.name)try{const e=await sY(F);w(t=>[...t,e]),wH.success("Activity created!"),j(!1),O({name:"",color:dZ[0].value})}catch(e){wH.error("Failed to create activity")}else wH.error("Please enter an activity name")},"data-testid":"save-activity-button",children:[(0,_h.jsx)(KG,{className:"mr-2 h-4 w-4"})," Add Activity"]})]})]})}),(0,_h.jsx)("footer",{className:"hidden md:block relative z-10 border-t border-gray-100/50 bg-white/70 backdrop-blur-sm mt-auto",children:(0,_h.jsxs)("div",{className:"w-full px-4 md:px-8 lg:px-12 xl:px-16 py-4 flex flex-wrap justify-between items-center",children:[(0,_h.jsxs)("p",{className:"text-xs text-gray-400",children:["\xa9 ",(new Date).getFullYear()," SmartDaddy AI. All rights reserved. | An"," ",(0,_h.jsx)("a",{href:"https://offworldventures.org",target:"_blank",rel:"noopener noreferrer",className:"hover:text-gray-600",children:"OffWorld Ventures"})," ","company."]}),(0,_h.jsxs)("div",{className:"flex gap-6 text-xs text-gray-400",children:[(0,_h.jsx)(Pt,{to:"/privacy",className:"hover:text-gray-600 transition-colors",children:"Privacy Policy"}),(0,_h.jsx)(Pt,{to:"/terms",className:"hover:text-gray-600 transition-colors",children:"Terms of Use"}),(0,_h.jsx)(Pt,{to:"/contact",className:"hover:text-gray-600 transition-colors",children:"Contact Us"}),(0,_h.jsx)(Pt,{to:"/pricing",className:"hover:text-gray-600 transition-colors",children:"Pricing"})]})]})}),(0,_h.jsx)("footer",{className:"md:hidden relative z-10 border-t border-gray-100/50 bg-white/70 backdrop-blur-sm mb-16",children:(0,_h.jsxs)("div",{className:"px-4 py-3 text-center",children:[(0,_h.jsxs)("div",{className:"flex justify-center gap-4 text-xs text-gray-400 mb-2",children:[(0,_h.jsx)(Pt,{to:"/privacy",className:"hover:text-gray-600",children:"Privacy"}),(0,_h.jsx)(Pt,{to:"/terms",className:"hover:text-gray-600",children:"Terms"}),(0,_h.jsx)(Pt,{to:"/contact",className:"hover:text-gray-600",children:"Contact"}),(0,_h.jsx)(Pt,{to:"/pricing",className:"hover:text-gray-600",children:"Pricing"})]}),(0,_h.jsxs)("p",{className:"text-[10px] text-gray-400",children:["\xa9 ",(new Date).getFullYear()," SmartDaddy AI | An"," ",(0,_h.jsx)("a",{href:"https://offworldventures.org",target:"_blank",rel:"noopener noreferrer",className:"hover:text-gray-600",children:"OffWorld Ventures"})," ","company"]})]})})]})},pZ=HG("trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}
2],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]]),fZ=HG("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),mZ=["https://images.unsplash.com/photo-1622659099549-5eda1203b849?w=1920&q=80","https://images.unsplash.com/photo-1490326149782-dd42fa59bd9f?w=1920&q=80","https://images.unsplash.com/photo-1574744918163-6cef6f4a31b0?w=1920&q=80","https://images.unsplash.com/photo-1765939928892-954004cbeec5?w=1920&q=80"],gZ=()=>{const e=Ee(),{user:t}=gY(),[n,a]=(0,o.useState)(0),[r,i]=(0,o.useState)(!1);(0,o.useEffect)(()=>{t&&e("/dashboard",{replace:!0})},[t,e]),(0,o.useEffect)(()=>{const e=setInterval(()=>{i(!0),setTimeout(()=>{a(e=>(e+1)%mZ.length),i(!1)},500)},1e4);return()=>clearInterval(e)},[]);const s=[{icon:tZ,text:"Daily & weekly summaries",color:"text-emerald-400"},{icon:eZ,text:"Multi-kid chaos \u2192 organized!",color:"text-pink-400"},{icon:nZ,text:"Never miss a practice again",color:"text-yellow-400"},{icon:pZ,text:"Create cool stats for your kids",color:"text-amber-400"}];return(0,_h.jsxs)("div",{className:"h-screen relative overflow-hidden",children:[mZ.map((e,t)=>(0,_h.jsx)("div",{className:"absolute inset-0 bg-cover bg-center transition-opacity duration-1000 ".concat(t===n?"opacity-100":"opacity-0"),style:{backgroundImage:"url('".concat(e,"')")}},t)),(0,_h.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-blue-900/80 via-purple-900/70 to-indigo-900/80"}),(0,_h.jsxs)("div",{className:"relative z-10 h-full flex flex-col",children:[(0,_h.jsxs)("header",{className:"px-6 py-3 flex items-center justify-between shrink-0",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,_h.jsx)("img",{src:"https://customer-assets.emergentagent.com/job_kidplay-hub/artifacts/7zuwi818_jgzjhpdo_image.png",alt:"SmartDaddy",className:"h-8 md:h-10 w-auto"}),(0,_h.jsx)("span",{className:"px-2 py-0.5 bg-purple-600 text-white text-[10px] font-bold rounded-full",children:"BETA"})]}),(0,_h.jsx)("div",{className:"flex items-center gap-3",children:(0,_h.jsx)(RG,{variant:"ghost",onClick:()=>e("/handler/sign-in"),className:"text-white hover:bg-white/10",children:"Sign In"})})]}),(0,_h.jsx)("main",{className:"flex-1 flex items-center justify-center px-6 py-4",children:(0,_h.jsxs)("div",{className:"max-w-2xl text-center text-white",children:[(0,_h.jsxs)("h1",{className:"text-3xl md:text-4xl lg:text-5xl font-bold mb-3 leading-tight",children:["Are Your Kid's"," ",(0,_h.jsx)("span",{className:"text-yellow-400",children:"schedules"})," ","driving you"," ",(0,_h.jsx)("span",{className:"text-yellow-400",children:"crazy?"})]}),(0,_h.jsxs)("p",{className:"text-lg md:text-xl mb-6 text-white/90",children:["Level up your dad skills with scheduling \u2014"," ",(0,_h.jsx)("span",{className:"text-blue-400 font-semibold",children:"Powered by AI"})]}),(0,_h.jsxs)(RG,{onClick:()=>e("/handler/sign-up"),size:"lg",className:"h-12 px-8 text-base rounded-full bg-gradient-to-r from-purple-500 to-purple-700 hover:from-purple-600 hover:to-purple-800 shadow-2xl shadow-purple-900/50",children:["Get Started",(0,_h.jsx)(fZ,{className:"ml-2 h-5 w-5"})]}),(0,_h.jsx)("p",{className:"mt-2 text-sm text-white/60",children:"Free to use \u2022 No credit card required"}),(0,_h.jsx)("div",{className:"grid grid-cols-2 gap-3 mt-6 max-w-xl mx-auto",children:s.map((e,t)=>(0,_h.jsxs)("div",{className:"flex items-center gap-2 bg-white/10 backdrop-blur-sm rounded-lg p-3 text-left",children:[(0,_h.jsx)("div",{className:"p-1.5 rounded-md bg-white/20 ".concat(e.color),children:(0,_h.jsx)(e.icon,{className:"h-4 w-4"})}),(0,_h.jsx)("span",{className:"text-white/90 text-xs font-medium",children:e.text})]},t))}),(0,_h.jsxs)("div",{className:"mt-6 bg-white/10 backdrop-blur-sm rounded-lg p-4 max-w-md mx-auto",children:[(0,_h.jsx)("p",{className:"text-base italic text-white/90",children:'"Finally, an app that gets it." \ud83d\ude4c\ud83d\ude05'}),(0,_h.jsx)("p",{className:"text-xs text-white/60 mt-1",children:"\u2014 Exhausted dads everywhere"})]})]})}),(0,_h.jsx)("footer",{className:"px-6 py-3 text-center shrink-0",children:(0,_h.jsxs)("div",{className:"flex flex-wrap justify-center gap-x-6 gap-y-1 text-xs text-white/50",children:[(0,_h.jsxs)("span",{children:["\xa9 ",(new Date).getFullYear()," SmartDaddy AI"]}),(0,_h.jsx)(Pt,{to:"/privacy",className:"hover:text-white/80",children:"Privacy Policy"}),(0,_h.jsx)(Pt,{to:"/terms",className:"hover:text-white/80",children:"Terms of Use"}),(0,_h.jsx)(Pt,{to:"/contact",className:"hover:text-white/80",children:"Contact Us"}),(0,_h.jsx)(Pt,{to:"/pricing",className:"hover:text-white/80",children:"Pricing"})]})})]})]})},vZ=["className"];function yZ(e){let{className:t}=e,n=l(e,vZ);return(0,_h.jsx)("div",p({className:FG("animate-pulse rounded-md bg-primary/10",t)},n))}function wZ(e,t){var n;const a=()=>d$(null===t||void 0===t?void 0:t.in,NaN),r=null!==(n=null===t||void 0===t?void 0:t.additionalDigits)&&void 0!==n?n:2,o=function(e){const t={},n=e.split(_Z.dateTimeDelimiter);let a;if(n.length>2)return t;/:/.test(n[0])?a=n[0]:(t.date=n[0],a=n[1],_Z.timeZoneDelimiter.test(t.date)&&(t.date=e.split(_Z.timeZoneDelimiter)[0],a=e.substr(t.date.length,e.length)));if(a){const e=_Z.timezone.exec(a);e?(t.time=a.replace(e[1],""),t.timezone=e[1]):t.time=a}return t}(e);let i;if(o.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),a=e.match(n);if(!a)return{year:NaN,restDateString:""};const r=a[1]?parseInt(a[1]):null,o=a[2]?parseInt(a[2]):null;return{year:null===o?r:100*o,restDateString:e.slice((a[1]||a[2]).length)}}(o.date,r);i=function(e,t){if(null===t)return new Date(NaN);const n=e.match(xZ);if(!n)return new Date(NaN);const a=!!n[4],r=CZ(n[1]),o=CZ(n[2])-1,i=CZ(n[3]),s=CZ(n[4]),l=CZ(n[5])-1;if(a)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,l)?function(e,t,n){const a=new Date(0);a.setUTCFullYear(e,0,4);const r=a.getUTCDay()||7,o=7*(t-1)+n+1-r;
2return a.setUTCDate(a.getUTCDate()+o),a}(t,s,l):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(AZ[t]||(EZ(e)?29:28))}(t,o,i)&&function(e,t){return t>=1&&t<=(EZ(e)?366:365)}(t,r)?(e.setUTCFullYear(t,o,Math.max(r,i)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!i||isNaN(+i))return a();const s=+i;let l,c=0;if(o.time&&(c=function(e){const t=e.match(bZ);if(!t)return NaN;const n=DZ(t[1]),a=DZ(t[2]),r=DZ(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,a,r))return NaN;return n*c$+a*l$+1e3*r}(o.time),isNaN(c)))return a();if(!o.timezone){const e=new Date(s+c),n=h$(0,null===t||void 0===t?void 0:t.in);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}return l=function(e){if("Z"===e)return 0;const t=e.match(kZ);if(!t)return 0;const n="+"===t[1]?-1:1,a=parseInt(t[2]),r=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,r))return NaN;return n*(a*c$+r*l$)}(o.timezone),isNaN(l)?a():h$(s+c+l,null===t||void 0===t?void 0:t.in)}const _Z={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},xZ=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,bZ=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,kZ=/^([+-])(\d{2})(?::?(\d{2}))?$/;function CZ(e){return e?parseInt(e):1}function DZ(e){return e&&parseFloat(e.replace(",","."))||0}const AZ=[31,null,31,30,31,30,31,31,30,31,30,31];function EZ(e){return e%400===0||e%4===0&&e%100!==0}function jZ(e,t){var n;const{start:a,end:r}=function(e,t){const[n,a]=f$(e,t.start,t.end);return{start:n,end:a}}(null===t||void 0===t?void 0:t.in,e);let o=+a>+r;const i=o?+a:+r,s=o?r:a;s.setHours(0,0,0,0);let l=null!==(n=null===t||void 0===t?void 0:t.step)&&void 0!==n?n:1;if(!l)return[];l<0&&(l=-l,o=!o);const c=[];for(;+s<=i;)c.push(d$(a,s)),s.setDate(s.getDate()+l),s.setHours(0,0,0,0);return o?c.reverse():c}function SZ(e,t,n){return fQ(e,-t,n)}function NZ(e,t,n){return sQ(e,-t,n)}function PZ(e){return d$(e,Date.now())}function TZ(e,t){return dQ(d$((null===t||void 0===t?void 0:t.in)||e,e),PZ((null===t||void 0===t?void 0:t.in)||e))}const FZ=HG("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),OZ=HG("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),IZ=HG("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]),RZ=HG("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),MZ=HG("pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]),BZ=HG("calendar-days",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]),zZ=HG("calendar-check",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]]),LZ=HG("calendar-range",[["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M17 14h-6",key:"bkmgh3"}],["path",{d:"M13 18H7",key:"bb0bb7"}],["path",{d:"M7 14h.01",key:"1qa3f1"}],["path",{d:"M17 18h.01",key:"1bdyru"}]]),UZ=HG("sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]),VZ=HG("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),qZ=HG("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);function HZ(){}function WZ(){}const KZ=/^(?:[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u
20EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD40-\uDD59\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDD4A-\uDD65\uDD6F-\uDD85\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC7\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDB0-\uDDDB\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE4
20-\uDE7F\uDEA0-\uDEB8\uDEBB-\uDED3\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3\uDFF2-\uDFF6]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDDD0-\uDDED\uDDF0\uDEC0-\uDEDE\uDEE0-\uDEE2\uDEE4\uDEE5\uDEE7-\uDEED\uDEF0-\uDEF4\uDEFE\uDEFF\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79])(?:[\$0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u0870-\u0887\u0889-\u088F\u0897-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5C\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDC-\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1715\u171F-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B4C\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA827\uA82C\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFB
2D3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF65-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD40-\uDD59\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD27\uDD30-\uDD39\uDD40-\uDD65\uDD69-\uDD6D\uDD6F-\uDD85\uDE80-\uDEA9\uDEAB\uDEAC\uDEB0\uDEB1\uDEC2-\uDEC7\uDEFA-\uDF1C\uDF27\uDF30-\uDF50\uDF70-\uDF85\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC00-\uDC46\uDC66-\uDC75\uDC7F-\uDCBA\uDCC2\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD44-\uDD47\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDC9-\uDDCC\uDDCE-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E-\uDE41\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3B-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7-\uDFC0\uDFC2\uDFC5\uDFC7-\uDFCA\uDFCC-\uDFD3\uDFE1\uDFE2]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5E-\uDC61\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB8\uDEC0-\uDEC9\uDED0-\uDEE3\uDF00-\uDF1A\uDF1D-\uDF2B\uDF30-\uDF39\uDF40-\uDF46]|\uD806[\uDC00-\uDC3A\uDCA0-\uDCE9\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD35\uDD37\uDD38\uDD3B-\uDD43\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD7\uDDDA-\uDDE1\uDDE3\uDDE4\uDE00-\uDE3E\uDE47\uDE50-\uDE99\uDE9D\uDEB0-\uDEF8\uDF60-\uDF67\uDFC0-\uDFE0\uDFF0-\uDFF9]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD98\uDDA0-\uDDA9\uDDB0-\uDDDB\uDDE0-\uDDE9\uDEE0-\uDEF6\uDF00-\uDF10\uDF12-\uDF3A\uDF3E-\uDF42\uDF50-\uDF5A\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC40-\uDC55\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD39]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDD70-\uDD79\uDE40-\uDE7F\uDEA0-\uDEB8\uDEBB-\uDED3\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3\uDFE4\uDFF0-\uDFF6]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD833[\uDCF0-\uDCF9\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC30-\uDC6D\uDC8F\uDD00-\uDD2C\uDD30-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAE\uDEC0-\uDEF9]|\uD839[\uDCD0-\uDCF9\uDDD0-\uDDFA\uDEC0-\uDEDE\uDEE0-\uDEF5\uDEFE\uDEFF\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]|\uDB40[\uDD00-\uDDEF])*$/,YZ=/^(?:[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u
20EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD40-\uDD59\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDD4A-\uDD65\uDD6F-\uDD85\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC7\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDB0-\uDDDB\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE4
20-\uDE7F\uDEA0-\uDEB8\uDEBB-\uDED3\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3\uDFF2-\uDFF6]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDDD0-\uDDED\uDDF0\uDEC0-\uDEDE\uDEE0-\uDEE2\uDEE4\uDEE5\uDEE7-\uDEED\uDEF0-\uDEF4\uDEFE\uDEFF\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79])(?:[\$\x2D0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u0870-\u0887\u0889-\u088F\u0897-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5C\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDC-\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1715\u171F-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B4C\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA827\uA82C\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFB
2D3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF65-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD40-\uDD59\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD27\uDD30-\uDD39\uDD40-\uDD65\uDD69-\uDD6D\uDD6F-\uDD85\uDE80-\uDEA9\uDEAB\uDEAC\uDEB0\uDEB1\uDEC2-\uDEC7\uDEFA-\uDF1C\uDF27\uDF30-\uDF50\uDF70-\uDF85\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC00-\uDC46\uDC66-\uDC75\uDC7F-\uDCBA\uDCC2\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD44-\uDD47\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDC9-\uDDCC\uDDCE-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E-\uDE41\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3B-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7-\uDFC0\uDFC2\uDFC5\uDFC7-\uDFCA\uDFCC-\uDFD3\uDFE1\uDFE2]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5E-\uDC61\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB8\uDEC0-\uDEC9\uDED0-\uDEE3\uDF00-\uDF1A\uDF1D-\uDF2B\uDF30-\uDF39\uDF40-\uDF46]|\uD806[\uDC00-\uDC3A\uDCA0-\uDCE9\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD35\uDD37\uDD38\uDD3B-\uDD43\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD7\uDDDA-\uDDE1\uDDE3\uDDE4\uDE00-\uDE3E\uDE47\uDE50-\uDE99\uDE9D\uDEB0-\uDEF8\uDF60-\uDF67\uDFC0-\uDFE0\uDFF0-\uDFF9]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD98\uDDA0-\uDDA9\uDDB0-\uDDDB\uDDE0-\uDDE9\uDEE0-\uDEF6\uDF00-\uDF10\uDF12-\uDF3A\uDF3E-\uDF42\uDF50-\uDF5A\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC40-\uDC55\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD39]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDD70-\uDD79\uDE40-\uDE7F\uDEA0-\uDEB8\uDEBB-\uDED3\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3\uDFE4\uDFF0-\uDFF6]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD833[\uDCF0-\uDCF9\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC30-\uDC6D\uDC8F\uDD00-\uDD2C\uDD30-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAE\uDEC0-\uDEF9]|\uD839[\uDCD0-\uDCF9\uDDD0-\uDDFA\uDEC0-\uDEDE\uDEE0-\uDEF5\uDEFE\uDEFF\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]|\uDB40[\uDD00-\uDDEF])*$/,GZ={};function JZ(e,t){return((t||GZ).jsx?YZ:KZ).test(e)}const $Z=/[ \t\n\f\r]/g;function QZ(e){return""===e.replace($Z,"")}class XZ{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function ZZ(e,t){const n={},a={};for(const r of e)Object.assign(n,r.property),Object.assign(a,r.normal);return new XZ(n,a,t)}function e0(e){return e.toLowerCase()}XZ.prototype.normal={},XZ.prototype.property={},XZ.prototype.space=void 0;class t0{constructor(e,t){this.attribute=t,this.property=e}}t0.prototype.attribute="",t0.prototype.booleanish=!1,t0.prototype.boolean=!1,t0.prototype.commaOrSpaceSeparated=!1,t0.prototype.commaSeparated=!1,t0.prototype.defined=!1,t0.prototype.mustUseProperty=!1,t0.prototype.number=!1,t0.prototype.overloadedBoolean=!1,t0.prototype.property="",t0.prototype.spaceSeparated=!1,t0.prototype.space=void 0;let n0=0;const a0=u0(),r0=u0(),o0=u0(),i0=u0(),s0=u0(),l0=u0(),c0=u0();function u0(){return 2**++n0}const d0=Object.keys(t);class h0 extends t0{constructor(e,n,a,r){let o=-1;if(super(e,n),p0(this,"space",r),"number"===typeof a)for(;++o<d0.length;){const e=d0[o];p0(this,d0[o],(a&t[e])===t[e])}}}function p0(e,t,n){n&&(e[t]=n)}function f0(e){const t={},n={};for(const[a,r]of Object.entries(e.properties)){const o=new h0(a,e.transform(e.attributes||{},a),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(o.mustUseProperty=!0),t[a]=o,n[e0(a)]=a,n[e0(o.attribute)]=a}
vendor: 4,222 bytes, line 2
2return new XZ(t,n,e.space)}h0.prototype.defined=!0;const m0=f0({properties:{ariaActiveDescendant:null,ariaAtomic:r0,ariaAutoComplete:null,ariaBusy:r0,ariaChecked:r0,ariaColCount:i0,ariaColIndex:i0,ariaColSpan:i0,ariaControls:s0,ariaCurrent:null,ariaDescribedBy:s0,ariaDetails:null,ariaDisabled:r0,ariaDropEffect:s0,ariaErrorMessage:null,ariaExpanded:r0,ariaFlowTo:s0,ariaGrabbed:r0,ariaHasPopup:null,ariaHidden:r0,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s0,ariaLevel:i0,ariaLive:null,ariaModal:r0,ariaMultiLine:r0,ariaMultiSelectable:r0,ariaOrientation:null,ariaOwns:s0,ariaPlaceholder:null,ariaPosInSet:i0,ariaPressed:r0,ariaReadOnly:r0,ariaRelevant:null,ariaRequired:r0,ariaRoleDescription:s0,ariaRowCount:i0,ariaRowIndex:i0,ariaRowSpan:i0,ariaSelected:r0,ariaSetSize:i0,ariaSort:null,ariaValueMax:i0,ariaValueMin:i0,ariaValueNow:i0,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function g0(e,t){return t in e?e[t]:t}function v0(e,t){return g0(e,t.toLowerCase())}const y0=f0({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:l0,acceptCharset:s0,accessKey:s0,action:null,allow:null,allowFullScreen:a0,allowPaymentRequest:a0,allowUserMedia:a0,alt:null,as:null,async:a0,autoCapitalize:null,autoComplete:s0,autoFocus:a0,autoPlay:a0,blocking:s0,capture:null,charSet:null,checked:a0,cite:null,className:s0,cols:i0,colSpan:null,content:null,contentEditable:r0,controls:a0,controlsList:s0,coords:i0|l0,crossOrigin:null,data:null,dateTime:null,decoding:null,default:a0,defer:a0,dir:null,dirName:null,disabled:a0,download:o0,draggable:r0,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:a0,formTarget:null,headers:s0,height:i0,hidden:o0,high:i0,href:null,hrefLang:null,htmlFor:s0,httpEquiv:s0,id:null,imageSizes:null,imageSrcSet:null,inert:a0,inputMode:null,integrity:null,is:null,isMap:a0,itemId:null,itemProp:s0,itemRef:s0,itemScope:a0,itemType:s0,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:a0,low:i0,manifest:null,max:null,maxLength:i0,media:null,method:null,min:null,minLength:i0,multiple:a0,muted:a0,name:null,nonce:null,noModule:a0,noValidate:a0,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:a0,optimum:i0,pattern:null,ping:s0,placeholder:null,playsInline:a0,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:a0,referrerPolicy:null,rel:s0,required:a0,reversed:a0,rows:i0,rowSpan:i0,sandbox:s0,scope:null,scoped:a0,seamless:a0,selected:a0,shadowRootClonable:a0,shadowRootDelegatesFocus:a0,shadowRootMode:null,shape:null,size:i0,sizes:null,slot:null,span:i0,spellCheck:r0,src:null,
2srcDoc:null,srcLang:null,srcSet:null,start:i0,step:null,style:null,tabIndex:i0,target:null,title:null,translate:null,type:null,typeMustMatch:a0,useMap:null,value:r0,width:i0,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:s0,axis:null,background:null,bgColor:null,border:i0,borderColor:null,bottomMargin:i0,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:a0,declare:a0,event:null,face:null,frame:null,frameBorder:null,hSpace:i0,leftMargin:i0,link:null,longDesc:null,lowSrc:null,marginHeight:i0,marginWidth:i0,noResize:a0,noHref:a0,noShade:a0,noWrap:a0,object:null,profile:null,prompt:null,rev:null,rightMargin:i0,rules:null,scheme:null,scrolling:r0,standby:null,summary:null,text:null,topMargin:i0,valueType:null,version:null,vAlign:null,vLink:null,vSpace:i0,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:a0,disableRemotePlayback:a0,prefix:null,property:null,results:i0,security:null,unselectable:null},space:"html",transform:v0}),w0=f0({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
2-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:c0,accentHeight:i0,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:i0,amplitude:i0,arabicForm:null,ascent:i0,attributeName:null,attributeType:null,azimuth:i0,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:i0,by:null,calcMode:null,capHeight:i0,className:s0,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:i0,diffuseConstant:i0,direction:null,display:null,dur:null,divisor:i0,dominantBaseline:null,download:a0,dx:null,dy:null,edgeMode:null,editable:null,elevation:i0,enableBackground:null,end:null,event:null,exponent:i0,externalResourcesRequired:null,fill:null,fillOpacity:i0,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:l0,g2:l0,glyphName:l0,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:i0,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:i0,horizOriginX:i0,horizOriginY:i0,id:null,ideographic:i0,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:i0,k:i0,k1:i0,k2:i0,k3:i0,k4:i0,kernelMatrix:c0,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:i0,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:i0,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
2Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:i0,overlineThickness:i0,paintOrder:null,panose1:null,path:null,pathLength:i0,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:s0,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:i0,pointsAtY:i0,pointsAtZ:i0,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:c0,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:c0,rev:c0,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:c0,requiredFeatures:c0,requiredFonts:c0,requiredFormats:c0,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:i0,specularExponent:i0,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:i0,strikethroughThickness:i0,string:null,stroke:null,strokeDashArray:c0,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:i0,strokeOpacity:i0,strokeWidth:null,style:null,surfaceScale:i0,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:c0,tabIndex:i0,tableValues:null,target:null,targetX:i0,targetY:i0,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:c0,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:i0,underlineThickness:i0,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:i0,values:null,vAlphabetic:i0,vMathematical:i0,vectorEffect:null,vHanging:i0,vIdeographic:i0,version:null,vertAdvY:i0,vertOriginX:i0,vertOriginY:i0,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:i0,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:g0}),_0=f0({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),x0=f0({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:v0}),b0=f0({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),k0=ZZ([m0,y0,_0,x0,b0],"html"),C0=ZZ([m0,w0,_0,x0,b0],"svg"),D0=/[A-Z]/g,A0=/-[a-z]/g,E0=/^data[-\w.:]+$/i;function j0(e){return"-"+e.toLowerCase()}function S0(e){return e.charAt(1).toUpperCase()}const N0={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var P0=n(7294);const T0=O0("end"),F0=O0("start");function O0(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"===typeof n.line&&n.line>0&&"number"===typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"===typeof n.offset&&n.offset>-1?n.offset:void 0}}}function I0(e){return e&&"object"===typeof e?"position"in e||"type"in e?M0(e.position):"start"in e||"end"in e?M0(e):"line"in e||"column"in e?R0(e):"":""}function R0(e){return B0(e&&e.line)+":"+B0(e&&e.column)}function M0(e){return R0(e&&e.start)+"-"+R0(e&&e.end)}function B0(e){return e&&"number"===typeof e?e:1}class z0 extends Error{constructor(e,t,n){super(),"string"===typeof t&&(n=t,t=void 0);let a="",r={},o=!1;if(t&&(r="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:p({},t)),"string"===typeof e?a=e:!r.cause&&e&&(o=!0,a=e.message,r.cause=e),!r.ruleId&&!r.source&&"string"===typeof n){const e=n.indexOf(":");-1===e?r.ruleId=n:(r.source=n.slice(0,e),r.ruleId=n.slice(e+1))}if(!r.place&&r.ancestors&&r.ancestors){const e=r.ancestors[r.ancestors.length-1];e&&(r.place=e.position)}const i=r.place&&"start"in r.place?r.place.start:r.place;this.ancestors=r.ancestors||void 0,this.cause=r.cause||void 0,this.column=i?i.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=i?i.line:void 0,this.name=I0(r.place)||"1:1",this.place=r.place||void 0,this.reason=this.message,this.ruleId=r.ruleId||void 0,this.source=r.source||void 0,this.stack=o&&r.cause&&"string"===typeof r.cause.stack?r.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}z0.prototype.file="",z0.prototype.name="",z0.prototype.reason="",z0.prototype.message="",z0.prototype.stack="",z0.prototype.column=void 0,z0.prototype.line=void 0,z0.prototype.ancestors=void 0,z0.prototype.cause=void 0,z0.prototype.fatal=void 0,z0.prototype.place=void 0,z0.prototype.ruleId=void 0,z0.prototype.source=void 0;const L0={}.hasOwnProperty,U0=new Map,V0=/[A-Z]/g,q0=new Set(["table","tbody","thead","tfoot","tr"]),H0=new Set(["td","th"]),W0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function K0(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let a;if(t.development){if("function"!==typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=function(e,t){return n;function n(n,a,r,o){const i=Array.isArray(r.children),s=F0(n);return t(a,r,o,i,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!==typeof t.jsx)throw new TypeError("Expected `jsx` in production options");
vendor: 10,408 bytes, line 2
2if("function"!==typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");a=function(e,t,n){return a;function a(e,a,r,o){const i=Array.isArray(r.children)?n:t;return o?i(a,r,o):i(a,r)}}(0,t.jsx,t.jsxs)}const r={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?C0:k0,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},o=Y0(r,e,void 0);return o&&"string"!==typeof o?o:r.create(e,r.Fragment,{children:o||void 0},void 0)}function Y0(e,t,n){return"element"===t.type?function(e,t,n){const a=e.schema;let r=a;"svg"===t.tagName.toLowerCase()&&"html"===a.space&&(r=C0,e.schema=r);e.ancestors.push(t);const o=X0(e,t.tagName,!1),i=function(e,t){const n={};let a,r;for(r in t.properties)if("children"!==r&&L0.call(t.properties,r)){const o=Q0(e,r,t.properties[r]);if(o){const[r,i]=o;e.tableCellAlignToStyle&&"align"===r&&"string"===typeof i&&H0.has(t.tagName)?a=i:n[r]=i}}if(a){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=a}return n}(e,t);let s=$0(e,t);q0.has(t.tagName)&&(s=s.filter(function(e){return"string"!==typeof e||!("object"===typeof(t=e)?"text"===t.type&&QZ(t.value):QZ(t));var t}));return G0(e,i,o,t),J0(i,s),e.ancestors.pop(),e.schema=a,e.create(t,o,i,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Z0(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const a=e.schema;let r=a;"svg"===t.name&&"html"===a.space&&(r=C0,e.schema=r);e.ancestors.push(t);const o=null===t.name?e.Fragment:X0(e,t.name,!0),i=function(e,t){const n={};for(const a of t.attributes)if("mdxJsxExpressionAttribute"===a.type)if(a.data&&a.data.estree&&e.evaluater){const t=a.data.estree.body[0];HZ(t.type);const r=t.expression;HZ(r.type);const o=r.properties[0];HZ(o.type),Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Z0(e,t.position);else{const r=a.name;let o;if(a.value&&"object"===typeof a.value)if(a.value.data&&a.value.data.estree&&e.evaluater){const t=a.value.data.estree.body[0];HZ(t.type),o=e.evaluater.evaluateExpression(t.expression)}else Z0(e,t.position);else o=null===a.value||a.value;n[r]=o}return n}(e,t),s=$0(e,t);return G0(e,i,o,t),J0(i,s),e.ancestors.pop(),e.schema=a,e.create(t,o,i,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Z0(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const a={};return J0(a,$0(e,t)),e.create(t,e.Fragment,a,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function G0(e,t,n,a){"string"!==typeof n&&n!==e.Fragment&&e.passNode&&(t.node=a)}function J0(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function $0(e,t){const n=[];let a=-1;const r=e.passKeys?new Map:U0;for(;++a<t.children.length;){const o=t.children[a];let i;if(e.passKeys){const e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){const t=r.get(e)||0;i=e+"-"+t,r.set(e,t+1)}}const s=Y0(e,o,i);void 0!==s&&n.push(s)}return n}function Q0(e,t,n){const a=function(e,t){const n=e0(t);let a=t,r=t0;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&E0.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(A0,S0);a="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!A0.test(e)){let n=e.replace(D0,j0);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}r=h0}return new r(a,t)}(e.schema,t);if(!(null===n||void 0===n||"number"===typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=a.commaSeparated?function(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===a.property){let t="object"===typeof n?n:function(e,t){try{return P0(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const t=n,a=new z0("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=W0+"#cannot-parse-style-attribute",a}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)L0.call(e,n)&&(t[e1(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&a.space?N0[a.property]||a.property:a.attribute,n]}}function X0(e,t,n){let a;if(n)if(t.includes(".")){const e=t.split(".");let n,r=-1;for(;++r<e.length;){const t=JZ(e[r])?{type:"Identifier",name:e[r]}:{type:"Literal",value:e[r]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(r&&"Literal"===t.type),optional:!1}:t}a=n}else a=JZ(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else a={type:"Literal",value:t};if("Literal"===a.type){const t=a.value;return L0.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(a);Z0(e)}function Z0(e,t){const n=new z0("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=W0+"#cannot-handle-mdx-estrees-without-createevaluater",n}function e1(e){let t=e.replace(V0,t1);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function t1(e){return"-"+e.toLowerCase()}const n1={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},a1={};function r1(e,t,n){if(function(e){return Boolean(e&&"object"===typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return o1(e.children,t,n)}return Array.isArray(e)?o1(e,t,n):""}function o1(e,t,n){const a=[];let r=-1;for(;++r<e.length;)a[r]=r1(e[r],t,n);return a.join("")}function i1(e,t,n,a){const r=e.length;let o,i=0;if(t=t<0?-t>r?0:r+t:t>r?r:t,n=n>0?n:0,a.length<1e4)o=Array.from(a),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i<a.length;)o=a.slice(i,i+1e4),o.unshift(t,0),e.splice(...o),i+=1e4,t+=1e4}function s1(e,t){return e.length>0?(i1(e,e.length,0,t),e):t}class l1{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null===t||void 0===t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const a=t||0;this.setCursor(Math.trunc(e));const r=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return n&&c1(this.left,n),r.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),c1(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),c1(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);c1(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);c1(this.left,t.reverse())}}}function c1(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function u1(e){const t={};let n,a,r,o,i,s,l,c=-1;const u=new l1(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=n[1]._tokenizer.events,r=0,r<s.length&&"lineEndingBlank"===s[r][1].type&&(r+=2),r<s.length&&"content"===s[r][1].type))for(;++r<s.length&&"content"!==s[r][1].type;)"chunkText"===s[r][1].type&&(s[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,d1(u,c)),c=t[c],l=!0);else if(n[1]._container){for(r=c,a=void 0;r--;)if(o=u.get(r),"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type)"enter"===o[0]&&(a&&(u.get(a)[1].type="lineEndingBlank"),o[1].type="lineEnding",a=r);else if("linePrefix"!==o[1].type&&"listItemIndent"!==o[1].type)break;a&&(n[1].end=p({},u.get(a)[1].start),i=u.slice(a,c),i.unshift(n),u.splice(a,c-a+1,i))}}return i1(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function d1(e,t){const n=e.get(t)[1],a=e.get(t)[2];let r=t-1;const o=[];let i=n._tokenizer;i||(i=a.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));const s=i.events,l=[],c={};let u,d,h=-1,p=n,f=0,m=0;const g=[m];for(;p;){for(;e.get(++r)[1]!==p;);o.push(r),p._tokenizer||(u=a.sliceStream(p),p.next||u.push(null),d&&i.defineSkip(p.start),p._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(u),p._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++h<s.length;)"exit"===s[h][0]&&"enter"===s[h-1][0]&&s[h][1].type===s[h-1][1].type&&s[h][1].start.line!==s[h][1].end.line&&(m=h+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(i.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),h=g.length;h--;){const t=s.slice(g[h],g[h+1]),n=o.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),h=-1;++h<l.length;)c[f+l[h][0]]=f+l[h][1],f+=l[h][1]-l[h][0]-1;return c}const h1={}.hasOwnProperty;function p1(e,t){let n;for(n in t){const a=(h1.call(e,n)?e[n]:void 0)||(e[n]={}),r=t[n];let o;if(r)for(o in r){h1.call(a,o)||(a[o]=[]);
2const e=r[o];f1(a[o],Array.isArray(e)?e:e?[e]:[])}}}function f1(e,t){let n=-1;const a=[];for(;++n<t.length;)("after"===t[n].add?e:a).push(t[n]);i1(e,0,0,a)}const m1=E1(/[A-Za-z]/),g1=E1(/[\dA-Za-z]/),v1=E1(/[#-'*+\--9=?A-Z^-~]/);function y1(e){return null!==e&&(e<32||127===e)}const w1=E1(/\d/),_1=E1(/[\dA-Fa-f]/),x1=E1(/[!-/:-@[-`{-~]/);function b1(e){return null!==e&&e<-2}function k1(e){return null!==e&&(e<0||32===e)}function C1(e){return-2===e||-1===e||32===e}const D1=E1(/(?:[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDEAD\uDED0\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F])|(?:[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBD2\uFD40-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD803[\uDD8E\uDD8F\uDED1-\uDED8]|\uD805\uD
vendor: 8,044 bytes, line 2
2F3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA])/),A1=E1(/\s/);function E1(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function j1(e,t,n,a){const r=a?a-1:Number.POSITIVE_INFINITY;let o=0;return function(a){if(C1(a))return e.enter(n),i(a);return t(a)};function i(a){return C1(a)&&o++<r?(e.consume(a),i):(e.exit(n),t(a))}}const S1={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),j1(e,t,"linePrefix")},function(t){return e.enter("paragraph"),a(t)});let n;return t;function a(t){const a=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=a),n=a,r(t)}function r(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):b1(t)?(e.consume(t),e.exit("chunkText"),a):(e.consume(t),r)}}};const N1={tokenize:function(e){const t=this,n=[];let a,r,o,i=0;return s;function s(a){if(i<n.length){const r=n[i];return t.containerState=r[1],e.attempt(r[0].continuation,l,c)(a)}return c(a)}function l(e){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&w();const n=t.events.length;let r,o=n;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){r=t.events[o][1].end;break}y(i);let s=n;for(;s<t.events.length;)t.events[s][1].end=p({},r),s++;return i1(t.events,o+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(r){if(i===n.length){if(!a)return h(r);if(a.currentConstruct&&a.currentConstruct.concrete)return m(r);t.interrupt=Boolean(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(P1,u,d)(r)}function u(e){return a&&w(),y(i),h(e)}function d(e){return t.parser.lazy[t.now().line]=i!==n.length,o=t.now().offset,m(e)}function h(n){return t.containerState={},e.attempt(P1,f,m)(n)}function f(e){return i++,n.push([t.currentConstruct,t.containerState]),h(e)}function m(n){return null===n?(a&&w(),y(0),void e.consume(n)):(a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:r}),g(n))}function g(n){return null===n?(v(e.exit("chunkFlow"),!0),y(0),void e.consume(n)):b1(n)?(e.consume(n),v(e.exit("chunkFlow")),i=0,t.interrupt=void 0,s):(e.consume(n),g)}function v(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=r,r&&(r.next=e),r=e,a.defineSkip(e.start),a.write(s),t.parser.lazy[e.start.line]){let e=a.events.length;for(;e--;)if(a.events[e][1].start.offset<o&&(!a.events[e][1].end||a.events[e][1].end.offset>o))return;const n=t.events.length;let r,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(r){s=t.events[l][1].end;break}r=!0}for(y(i),e=n;e<t.events.length;)t.events[e][1].end=p({},s),e++;i1(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function y(a){let r=n.length;for(;r-- >a;){const a=n[r];t.containerState=a[1],a[0].exit.call(t,e)}n.length=a}function w(){a.write([null]),r=void 0,a=void 0,t.containerState._closeFlow=void 0}}},P1={tokenize:function(e,t,n){return j1(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const T1={partial:!0,tokenize:function(e,t,n){return function(t){return C1(t)?j1(e,a,"linePrefix")(t):a(t)};function a(e){return null===e||b1(e)?t(e):n(e)}}};const F1={resolve:function(e){return u1(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(t)};function a(t){return null===t?r(t):b1(t)?e.check(O1,o,r)(t):(e.consume(t),a)}function r(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}},O1={partial:!0,tokenize:function(e,t,n){const a=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),j1(e,r,"linePrefix")};function r(r){if(null===r||b1(r))return n(r);const o=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(r):e.interrupt(a.parser.constructs.flow,n,t)(r)}}};const I1={tokenize:function(e){const t=this,n=e.attempt(T1,function(a){if(null===a)return void e.consume(a);return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,a,j1(e,e.attempt(this.parser.constructs.flow,a,e.attempt(F1,a)),"linePrefix")));return n;function a(a){if(null!==a)return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(a)}}};const R1={resolveAll:L1()},M1=z1("string"),B1=z1("text");function z1(e){return{resolveAll:L1("text"===e?U1:void 0),tokenize:function(t){const n=this,a=this.parser.constructs[e],r=t.attempt(a,o,i);return o;function o(e){return l(e)?r(e):i(e)}function i(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),r(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=a[e];let r=-1;if(t)for(;++r<t.length;){const e=t[r];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function L1(e){return function(t,n){let a,r=-1;for(;++r<=t.length;)void 0===a?t[r]&&"data"===t[r][1].type&&(a=r,r++):t[r]&&"data"===t[r][1].type||(r!==a+2&&(t[a][1].end=t[r-1][1].end,t.splice(a+2,r-a-2),r=a+2),a=void 0);return e?e(t,n):t}}function U1(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const a=e[n-1][1],r=t.sliceStream(a);let o,i=r.length,s=-1,l=0;for(;i--;){const e=r[i];if("string"===typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)o=!0,l++;else if(-1!==e){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const r={type:n===e.length||o||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:a.start._bufferIndex+s,_index:a.start._index+i,line:a.end.line,column:a.end.column-l,offset:a.end.offset-l},end:p({},a.end)};a.end=p({},r.start),a.start.offset===a.end.offset?Object.assign(a,r):(e.splice(n,0,["enter",r,t],["exit",r,t]),n+=2)}n++}return e}const V1={name:"thematicBreak",tokenize:function(e,t,n){let a,r=0;return function(t){return e.enter("thematicBreak"),function(e){return a=e,o(e)}(t)};function o(o){return o===a?(e.enter("thematicBreakSequence"),i(o)):r>=3&&(null===o||b1(o))?(e.exit("thematicBreak"),t(o)):n(o)}function i(t){return t===a?(e.consume(t),r++,i):(e.exit("thematicBreakSequence"),C1(t)?j1(e,o,"whitespace")(t):o(t))}}};const q1={continuation:{tokenize:function(e,t,n){const a=this;return a.containerState._closeFlow=void 0,e.check(T1,r,o);function r(n){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,j1(e,t,"listItemIndent",a.containerState.size+1)(n)}function o(n){return a.containerState.furtherBlankLines||!C1(n)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine
vendor: 1,328 bytes, line 2
2=void 0,i(n)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(W1,t,i)(n))}function i(r){return a.containerState._closeFlow=!0,a.interrupt=void 0,j1(e,e.attempt(q1,t,n),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(r)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const a=this,r=a.events[a.events.length-1];let o=r&&"linePrefix"===r[1].type?r[2].sliceSerialize(r[1],!0).length:0,i=0;return function(t){const r=a.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===r?!a.containerState.marker||t===a.containerState.marker:w1(t)){if(a.containerState.type||(a.containerState.type=r,e.enter(r,{_container:!0})),"listUnordered"===r)return e.enter("listItemPrefix"),42===t||45===t?e.check(V1,n,l)(t):l(t);if(!a.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return w1(t)&&++i<10?(e.consume(t),s):(!a.interrupt||i<2)&&(a.containerState.marker?t===a.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||t,e.check(T1,a.interrupt?n:c,e.attempt(H1,d,u))}
vendor: 9,613 bytes, line 2
2function c(e){return a.containerState.initialBlankLine=!0,o++,d(e)}function u(t){return C1(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return a.containerState.size=o+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},H1={partial:!0,tokenize:function(e,t,n){const a=this;return j1(e,function(e){const r=a.events[a.events.length-1];return!C1(e)&&r&&"listItemPrefixWhitespace"===r[1].type?t(e):n(e)},"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},W1={partial:!0,tokenize:function(e,t,n){const a=this;return j1(e,function(e){const r=a.events[a.events.length-1];return r&&"listItemIndent"===r[1].type&&r[2].sliceSerialize(r[1],!0).length===a.containerState.size?t(e):n(e)},"listItemIndent",a.containerState.size+1)}};const K1={continuation:{tokenize:function(e,t,n){const a=this;return function(t){if(C1(t))return j1(e,r,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return r(t)};function r(a){return e.attempt(K1,t,n)(a)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const a=this;return function(t){if(62===t){const n=a.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),r}return n(t)};function r(n){return C1(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function Y1(e,t,n,a,r,o,i,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(a),e.enter(r),e.enter(o),e.consume(t),e.exit(o),d;if(null===t||32===t||41===t||y1(t))return n(t);return e.enter(a),e.enter(i),e.enter(s),e.enter("chunkString",{contentType:"string"}),f(t)};function d(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),e.exit(a),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(n))}function h(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||b1(t)?n(t):(e.consume(t),92===t?p:h)}function p(t){return 60===t||62===t||92===t?(e.consume(t),h):h(t)}function f(r){return u||null!==r&&41!==r&&!k1(r)?u<c&&40===r?(e.consume(r),u++,f):41===r?(e.consume(r),u--,f):null===r||32===r||40===r||y1(r)?n(r):(e.consume(r),92===r?m:f):(e.exit("chunkString"),e.exit(s),e.exit(i),e.exit(a),t(r))}function m(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function G1(e,t,n,a,r,o){const i=this;let s,l=0;return function(t){return e.enter(a),e.enter(r),e.consume(t),e.exit(r),e.enter(o),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in i.parser.constructs?n(d):93===d?(e.exit(o),e.enter(r),e.consume(d),e.exit(r),e.exit(a),t):b1(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||b1(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!C1(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function J1(e,t,n,a,r,o){let i;return function(t){if(34===t||39===t||40===t)return e.enter(a),e.enter(r),e.consume(t),e.exit(r),i=40===t?41:t,s;return n(t)};function s(n){return n===i?(e.enter(r),e.consume(n),e.exit(r),e.exit(a),t):(e.enter(o),l(n))}function l(t){return t===i?(e.exit(o),s(i)):null===t?n(t):b1(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),j1(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===i||null===t||b1(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===i||92===t?(e.consume(t),c):c(t)}}function $1(e,t){let n;return function a(r){if(b1(r))return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n=!0,a;if(C1(r))return j1(e,a,n?"linePrefix":"lineSuffix")(r);return t(r)}}function Q1(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const X1={name:"definition",tokenize:function(e,t,n){const a=this;let r;return function(t){return e.enter("definition"),function(t){return G1.call(a,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return r=Q1(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i):n(t)}function i(t){return k1(t)?$1(e,s)(t):s(t)}function s(t){return Y1(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(Z1,c,c)(t)}function c(t){return C1(t)?j1(e,u,"whitespace")(t):u(t)}function u(o){return null===o||b1(o)?(e.exit("definition"),a.parser.defined.push(r),t(o)):n(o)}}},Z1={partial:!0,tokenize:function(e,t,n){return function(t){return k1(t)?$1(e,a)(t):n(t)};function a(t){return J1(e,r,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function r(t){return C1(t)?j1(e,o,"whitespace")(t):o(t)}function o(e){return null===e||b1(e)?t(e):n(e)}}};const e2={name:"codeIndented",tokenize:function(e,t,n){const a=this;return function(t){return e.enter("codeIndented"),j1(e,r,"linePrefix",5)(t)};function r(e){const t=a.events[a.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?s(t):b1(t)?e.attempt(t2,o,s)(t):(e.enter("codeFlowValue"),i(t))}function i(t){return null===t||b1(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),i)}function s(n){return e.exit("codeIndented"),t(n)}}},t2={partial:!0,tokenize:function(e,t,n){const a=this;return r;function r(t){return a.parser.lazy[a.now().line]?n(t):b1(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r):j1(e,o,"linePrefix",5)(t)}function o(e){const o=a.events[a.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):b1(e)?r(e):n(e)}}};const n2={name:"headingAtx",resolve:function(e,t){let n,a,r=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);r-2>o&&"whitespace"===e[r][1].type&&(r-=2);"atxHeadingSequence"===e[r][1].type&&(o===r-1||r-4>o&&"whitespace"===e[r-2][1].type)&&(r-=o+1===r?2:4);r>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[r][1].end},a={type:"chunkText",start:e[o][1].start,end:e[r][1].end,contentType:"text"},i1(e,o,r-o+1,[["enter",n,t],["enter",a,t],["exit",a,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let a=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),r(t)}(t)};function r(t){return 35===t&&a++<6?(e.consume(t),r):null===t||k1(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),i(n)):null===n||b1(n)?(e.exit("atxHeading"),t(n)):C1(n)?j1(e,o,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function i(t){return 35===t?(e.consume(t),i):(e.exit("atxHeadingSequence"),o(t))}function s(t){return null===t||35===t||k1(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),s)}}};const a2={name:"setextUnderline",resolveTo:function(e,t){let n,a,r,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(a=o)}else"content"===e[o][1].type&&e.splice(o,1),r||"definition"!==e[o][1].type||(r=o);const i={type:"setextHeading",start:p({},e[n][1].start),end:p({},e[e.length-1][1].end)};e[a][1].type="setextHeadingText",r?(e.splice(a,0,["enter",i,t]),e.splice(r+1,0,["exit",e[n][1],t]),e[n][1].end=p({},e[r][1].end)):e[n][1]=i;return e.push(["exit",i,t]),e},tokenize:function(e,t,n){const a=this;let r;return function(t){let i,s=a.events.length;for(;s--;)if("lineEnding"!==a.events[s][1].type&&"linePrefix"!==a.events[s][1].type&&"content"!==a.events[s][1].type){i="paragraph"===a.events[s][1].type;break}if(!a.parser.lazy[a.now().line]&&(a.interrupt||i))return e.enter("setextHeadingLine"),r=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t);return n(t)};function o(t){return t===r?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),C1(t)?j1(e,i,"lineSuffix")(t):i(t))}function i(a){return null===a||b1(a)?(e.exit("setextHeadingLine"),t(a)):n(a)}}};const r2=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],o2=["pre","script","style","textarea"],i2={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const a=this;let r,o,i,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),o=!0,p):63===s?(e.consume(s),r=3,a.interrupt?t:O):m1(s)?(e.consume(s),i=String.fromCharCode(s),f):n(s)}function u(o){return 45===o?(e.consume(o),r=2,d):91===o?(e.consume(o),r=5,s=0,h):m1(o)?(e.consume(o),r=4,a.interrupt?t:O):n(o)}function d(r){return 45===r?(e.consume(r),a.interrupt?t:O):n(r)}function h(r){const o="CDATA[";
vendor: 4,148 bytes, line 2
2return r===o.charCodeAt(s++)?(e.consume(r),6===s?a.interrupt?t:A:h):n(r)}function p(t){return m1(t)?(e.consume(t),i=String.fromCharCode(t),f):n(t)}function f(s){if(null===s||47===s||62===s||k1(s)){const l=47===s,c=i.toLowerCase();return l||o||!o2.includes(c)?r2.includes(i.toLowerCase())?(r=6,l?(e.consume(s),m):a.interrupt?t(s):A(s)):(r=7,a.interrupt&&!a.parser.lazy[a.now().line]?n(s):o?g(s):v(s)):(r=1,a.interrupt?t(s):A(s))}return 45===s||g1(s)?(e.consume(s),i+=String.fromCharCode(s),f):n(s)}function m(r){return 62===r?(e.consume(r),a.interrupt?t:A):n(r)}function g(t){return C1(t)?(e.consume(t),g):C(t)}function v(t){return 47===t?(e.consume(t),C):58===t||95===t||m1(t)?(e.consume(t),y):C1(t)?(e.consume(t),v):C(t)}function y(t){return 45===t||46===t||58===t||95===t||g1(t)?(e.consume(t),y):w(t)}function w(t){return 61===t?(e.consume(t),_):C1(t)?(e.consume(t),w):v(t)}function _(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,x):C1(t)?(e.consume(t),_):b(t)}function x(t){return t===l?(e.consume(t),l=null,k):null===t||b1(t)?n(t):(e.consume(t),x)}function b(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||k1(t)?w(t):(e.consume(t),b)}function k(e){return 47===e||62===e||C1(e)?v(e):n(e)}function C(t){return 62===t?(e.consume(t),D):n(t)}function D(t){return null===t||b1(t)?A(t):C1(t)?(e.consume(t),D):n(t)}function A(t){return 45===t&&2===r?(e.consume(t),N):60===t&&1===r?(e.consume(t),P):62===t&&4===r?(e.consume(t),I):63===t&&3===r?(e.consume(t),O):93===t&&5===r?(e.consume(t),F):!b1(t)||6!==r&&7!==r?null===t||b1(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),A):(e.exit("htmlFlowData"),e.check(s2,R,E)(t))}function E(t){return e.check(l2,j,R)(t)}function j(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),S}function S(t){return null===t||b1(t)?E(t):(e.enter("htmlFlowData"),A(t))}function N(t){return 45===t?(e.consume(t),O):A(t)}function P(t){return 47===t?(e.consume(t),i="",T):A(t)}function T(t){if(62===t){const n=i.toLowerCase();return o2.includes(n)?(e.consume(t),I):A(t)}return m1(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),T):A(t)}function F(t){return 93===t?(e.consume(t),O):A(t)}function O(t){return 62===t?(e.consume(t),I):45===t&&2===r?(e.consume(t),O):A(t)}function I(t){return null===t||b1(t)?(e.exit("htmlFlowData"),R(t)):(e.consume(t),I)}function R(n){return e.exit("htmlFlow"),t(n)}}},s2={partial:!0,tokenize:function(e,t,n){return function(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(T1,t,n)}}},l2={partial:!0,tokenize:function(e,t,n){const a=this;return function(t){if(b1(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r;return n(t)};function r(e){return a.parser.lazy[a.now().line]?n(e):t(e)}}};const c2={partial:!0,tokenize:function(e,t,n){const a=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r};function r(e){return a.parser.lazy[a.now().line]?n(e):t(e)}}},u2={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const a=this,r={partial:!0,tokenize:function(e,t,n){let r=0;return i;function i(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),C1(t)?j1(e,c,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===o?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===o?(r++,e.consume(t),u):r>=s?(e.exit("codeFencedFenceSequence"),C1(t)?j1(e,d,"whitespace")(t):d(t)):n(t)}function d(a){return null===a||b1(a)?(e.exit("codeFencedFence"),t(a)):n(a)}}};let o,i=0,s=0;return function(t){return function(t){const n=a.events[a.events.length-1];return i=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===o?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),C1(t)?j1(e,c,"whitespace")(t):c(t))}function c(n){return null===n||b1(n)?(e.exit("codeFencedFence"),a.interrupt?t(n):e.check(c2,p,y)(n)):(e.enter("co
2deFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||b1(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):C1(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),j1(e,d,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),u)}function d(t){return null===t||b1(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(t))}function h(t){return null===t||b1(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===o?n(t):(e.consume(t),h)}function p(t){return e.attempt(r,y,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return i>0&&C1(t)?j1(e,g,"linePrefix",i+1)(t):g(t)}function g(t){return null===t||b1(t)?e.check(c2,p,y)(t):(e.enter("codeFlowValue"),v(t))}function v(t){return null===t||b1(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),v)}function y(n){return e.exit("codeFenced"),t(n)}}};const d2=document.createElement("i");function h2(e){const t="&"+e+";";d2.innerHTML=t;const n=d2.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}const p2={name:"characterReference",tokenize:function(e,t,n){const a=this;let r,o,i=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,o=g1,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,o=_1,c):(e.enter("characterReferenceValue"),r=7,o=w1,c(t))}function c(s){if(59===s&&i){const r=e.exit("characterReferenceValue");return o!==g1||h2(a.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return o(s)&&i++<r?(e.consume(s),c):n(s)}}};const f2={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),a};function a(a){return x1(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}};const m2={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),j1(e,t,"linePrefix")}}};function g2(e,t,n){const a=[];let r=-1;for(;++r<e.length;){const o=e[r].resolveAll;o&&!a.includes(o)&&(t=o(t,n),a.push(o))}return t}const v2={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const a=e[t][1];if(n.push(e[t]),"labelImage"===a.type||"labelLink"===a.type||"labelEnd"===a.type){const e="labelImage"===a.type?4:2;a.type="data",t+=e}}e.length!==n.length&&i1(e,0,e.length,n);return e},resolveTo:function(e,t){let n,a,r,o,i=e.length,s=0;for(;i--;)if(n=e[i][1],a){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[i][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(r){if("enter"===e[i][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(a=i,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(r=i);const l={type:"labelLink"===e[a][1].type?"link":"image",start:p({},e[a][1].start),end:p({},e[e.length-1][1].end)},c={type:"label",start:p({},e[a][1].start),end:p({},e[r][1].end)},u={type:"labelText",start:p({},e[a+s+2][1].end),end:p({},e[r-2][1].start)};return o=[["enter",l,t],["enter",c,t]],o=s1(o,e.slice(a+1,a+s+3)),o=s1(o,[["enter",u,t]]),o=s1(o,g2(t.parser.constructs.insideSpan.null,e.slice(a+s+4,r-3),t)),o=s1(o,[["exit",u,t],e[r-2],e[r-1],["exit",c,t]]),o=s1(o,e.slice(r+1)),o=s1(o,[["exit",l,t]]),i1(e,a,e.length,o),e},tokenize:function(e,t,n){const a=this;let r,o,i=a.events.length;for(;i--;)if(("labelImage"===a.events[i][1].type||"labelLink"===a.events[i][1].type)&&!a.events[i][1]._balanced){r=a.events[i][1];break}return function(t){if(!r)return n(t);if(r._inactive)return u(t);return o=a.parser.defined.includes(Q1(a.sliceSerialize({start:r.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s};function s(t){return 40===t?e.attempt(y2,c,o?c:u)(t):91===t?e.attempt(w2,c,o?l:u)(t):o?c(t):u(t)}function l(t){return e.attempt(_2,c,u)(t)}function c(e){return t(e)}function u(e){return r._balanced=!0,n(e)}}},y2={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),a};function a(t){return k1(t)?$1(e,r)(t):r(t)}function r(t){return 41===t?c(t):Y1(e,o,i,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return k1(t)?$1(e,s)(t):c(t)}function i(e){return n(e)}function s(t){return 34===t||39===t||40===t?J1(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return k1(t)?$1(e,c)(t):c(t)}function c(a){return 41===a?(e.enter("resourceMarker"),e.consume(a),e.exit("resourceMarker"),e.exit("resource"),t):n(a)}}},w2={tokenize:function(e,t,n){const a=this;return function(t){return G1.call(a,e,r,o,"reference","referenceMarker","referenceString")(t)};function r(e){return a.parser.defined.includes(Q1(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},_2={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),a};function a(a){return 93===a?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}};const x2={name:"labelStartImage",resolveAll:v2.resolveAll,tokenize:function(e,t,n){const a=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),r};function r(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in a.parser.constructs?n(e):t(e)}}};function b2(e){return null===e||k1(e)||A1(e)?1:D1(e)?2:void 0}const k2={name:"attention",resolveAll:function(e,t){let n,a,r,o,i,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[
vendor: 6,476 bytes, line 2
2n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d=p({},e[n][1].end),h=p({},e[u][1].start);C2(d,-s),C2(h,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:p({},e[n][1].end)},i={type:s>1?"strongSequence":"emphasisSequence",start:p({},e[u][1].start),end:h},r={type:s>1?"strongText":"emphasisText",start:p({},e[n][1].end),end:p({},e[u][1].start)},a={type:s>1?"strong":"emphasis",start:p({},o.start),end:p({},i.end)},e[n][1].end=p({},o.start),e[u][1].start=p({},i.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=s1(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=s1(l,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",r,t]]),l=s1(l,g2(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=s1(l,[["exit",r,t],["enter",i,t],["exit",i,t],["exit",a,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=s1(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,i1(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,a=this.previous,r=b2(a);let o;return function(t){return o=t,e.enter("attentionSequence"),i(t)};function i(s){if(s===o)return e.consume(s),i;const l=e.exit("attentionSequence"),c=b2(s),u=!c||2===c&&r||n.includes(s),d=!r||2===r&&c||n.includes(a);return l._open=Boolean(42===o?u:u&&(r||!d)),l._close=Boolean(42===o?d:d&&(c||!u)),t(s)}}};function C2(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const D2={name:"autolink",tokenize:function(e,t,n){let a=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),r};function r(t){return m1(t)?(e.consume(t),o):64===t?n(t):l(t)}function o(e){return 43===e||45===e||46===e||g1(e)?(a=1,i(e)):l(e)}function i(t){return 58===t?(e.consume(t),a=0,s):(43===t||45===t||46===t||g1(t))&&a++<32?(e.consume(t),i):(a=0,l(t))}function s(a){return 62===a?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(a),e.exit("autolinkMarker"),e.exit("autolink"),t):null===a||32===a||60===a||y1(a)?n(a):(e.consume(a),s)}function l(t){return 64===t?(e.consume(t),c):v1(t)?(e.consume(t),l):n(t)}function c(e){return g1(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),a=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||g1(t))&&a++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const A2={name:"htmlText",tokenize:function(e,t,n){const a=this;let r,o,i;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),_):63===t?(e.consume(t),y):m1(t)?(e.consume(t),k):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),o=0,p):m1(t)?(e.consume(t),v):n(t)}function c(t){return 45===t?(e.consume(t),h):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):b1(t)?(i=u,T(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),h):u(t)}function h(e){return 62===e?P(e):45===e?d(e):u(e)}function p(t){const a="CDATA[";return t===a.charCodeAt(o++)?(e.consume(t),6===o?f:p):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),m):b1(t)?(i=f,T(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),g):f(t)}function g(t){return 62===t?P(t):93===t?(e.consume(t),g):f(t)}function v(t){return null===t||62===t?P(t):b1(t)?(i=v,T(t)):(e.consume(t),v)}function y(t){return null===t?n(t):63===t?(e.consume(t),w):b1(t)?(i=y,T(t)):(e.consume(t),y)}function w(e){return 62===e?P(e):y(e)}function _(t){return m1(t)?(e.consume(t),x):n(t)}function x(t){return 45===t||g1(t)?(e.consume(t),x):b(t)}function b(t){return b1(t)?(i=b,T(t)):C1(t)?(e.consume(t),b):P(t)}function k(t){return 45===t||g1(t)?(e.consume(t),k):47===t||62===t||k1(t)?C(t):n(t)}function C(t){return 47===t?(e.consume(t),P):58===t||95===t||m1(t)?(e.consume(t),D):b1(t)?(i=C,T(t)):C1(t)?(e.consume(t),C):P(t)}function D(t){return 45===t||46===t||58===t||95===t||g1(t)?(e.consume(t),D):A(t)}function A(t){return 61===t?(e.consume(t),E):b1(t)?(i=A,T(t)):C1(t)?(e.consume(t),A):C(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,j):b1(t)?(i=E,T(t)):C1(t)?(e.consume(t),E):(e.consume(t),S)}function j(t){return t===r?(e.consume(t),r=void 0,N):null===t?n(t):b1(t)?(i=j,T(t)):(e.consume(t),j)}function S(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||k1(t)?C(t):(e.consume(t),S)}function N(e){return 47===e||62===e||k1(e)?C(e):n(e)}function P(a){return 62===a?(e.consume(a),e.exit("htmlTextData"),e.exit("htmlText"),t):n(a)}function T(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),F}function F(t){return C1(t)?j1(e,O,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):O(t)}function O(t){return e.enter("htmlTextData"),i(t)}}};const E2={name:"labelStartLink",resolveAll:v2.resolveAll,tokenize:function(e,t,n){const a=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),r};function r(e){return 94===e&&"_hiddenFootnoteSupport"in a.parser.constructs?n(e):t(e)}}};const j2={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),a};function a(a){return b1(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}};const S2={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,a=e.length-4,r=3;if(("lineEnding"===e[r][1].type||"space"===e[r][1].type)&&("lineEnding"===e[a][1].type||"space"===e[a][1].type))for(t=r;++t<a;)if("codeTextData"===e[t][1].type){e[r][1].type="codeTextPadding",e[a][1].type="codeTextPadding",r+=2,a-=2;break}t=r-1,a++;for(;++t<=a;)void 0===n?t!==a&&"lineEnding"!==e[t][1].type&&(n=t):t!==a&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),a-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let a,r,o=0;
vendor: 8,365 bytes, line 2
2return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),i(t)};function i(t){return 96===t?(e.consume(t),o++,i):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(r=e.enter("codeTextSequence"),a=0,c(t)):b1(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||b1(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),a++,c):a===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(r.type="codeTextData",l(n))}}};const N2={42:q1,43:q1,45:q1,48:q1,49:q1,50:q1,51:q1,52:q1,53:q1,54:q1,55:q1,56:q1,57:q1,62:K1},P2={91:X1},T2={[-2]:e2,[-1]:e2,32:e2},F2={35:n2,42:V1,45:[a2,V1],60:i2,61:a2,95:V1,96:u2,126:u2},O2={38:p2,92:f2},I2={[-5]:m2,[-4]:m2,[-3]:m2,33:x2,38:p2,42:k2,60:[D2,A2],91:E2,92:[j2,f2],93:v2,95:k2,96:S2},R2={null:[k2,R1]},M2={null:[42,95]},B2={null:[]};function z2(e,t,n){let a={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const r={},o=[];let i=[],s=[],l=!0;const c={attempt:y(function(e,t){w(e,t.from)}),check:y(v),consume:function(e){b1(e)?(a.line++,a.column=1,a.offset+=-3===e?2:1,_()):-1!==e&&(a.column++,a.offset++);a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===i[a._index].length&&(a._bufferIndex=-1,a._index++));u.previous=e,l=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=f(),u.events.push(["enter",n,u]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=f(),u.events.push(["exit",t,u]),t},interrupt:y(v,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){r[e.line]=e.column,_()},events:[],now:f,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const a=[];let r;for(;++n<e.length;){const o=e[n];let i;if("string"===typeof o)i=o;else switch(o){case-5:i="\r";break;case-4:i="\n";break;case-3:i="\r\n";break;case-2:i=t?" ":"\t";break;case-1:if(!t&&r)continue;i=" ";break;default:i=String.fromCharCode(o)}r=-2===o,a.push(i)}return a.join("")}(p(e),t)},sliceStream:p,write:function(e){if(i=s1(i,e),m(),null!==i[i.length-1])return[];return w(t,0),u.events=g2(o,u.events,u),u.events}};let d,h=t.tokenize.call(u,c);return t.resolveAll&&o.push(t),u;function p(e){return function(e,t){const n=t.start._index,a=t.start._bufferIndex,r=t.end._index,o=t.end._bufferIndex;let i;if(n===r)i=[e[n].slice(a,o)];else{if(i=e.slice(n,r),a>-1){const e=i[0];"string"===typeof e?i[0]=e.slice(a):i.shift()}o>0&&i.push(e[r].slice(0,o))}return i}(i,e)}function f(){const{_bufferIndex:e,_index:t,line:n,column:r,offset:o}=a;return{_bufferIndex:e,_index:t,line:n,column:r,offset:o}}function m(){let e;for(;a._index<i.length;){const t=i[a._index];if("string"===typeof t)for(e=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===e&&a._bufferIndex<t.length;)g(t.charCodeAt(a._bufferIndex));else g(t)}}function g(e){l=void 0,d=e,h=h(e)}function v(e,t){t.restore()}function y(e,t){return function(n,r,o){let i,d,h,p;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):function(e){return t;function t(t){const n=null!==t&&e[t],a=null!==t&&e.null;return m([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(a)?a:a?[a]:[]])(t)}}(n);function m(e){return i=e,d=0,0===e.length?o:g(e[d])}function g(e){return function(n){p=function(){const e=f(),t=u.previous,n=u.currentConstruct,r=u.events.length,o=Array.from(s);return{from:r,restore:i};function i(){a=e,u.previous=t,u.currentConstruct=n,u.events.length=r,s=o,_()}}(),h=e,e.partial||(u.currentConstruct=e);if(e.name&&u.parser.constructs.disable.null.includes(e.name))return y(n);return e.tokenize.call(t?Object.assign(Object.create(u),t):u,c,v,y)(n)}}function v(t){return l=!0,e(h,p),r}function y(e){return l=!0,p.restore(),++d<i.length?g(i[d]):o}}}function w(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&i1(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function _(){a.line in r&&a.column<2&&(a.column=r[a.line],a.offset+=r[a.line]-1)}}function L2(e){const t=function(e){const t={};let n=-1;for(;++n<e.length;)p1(t,e[n]);return t}([a,...(e||{}).extensions||[]]),n={constructs:t,content:r(S1),defined:[],document:r(N1),flow:r(I1),lazy:{},string:r(M1),text:r(B1)};return n;function r(e){return function(t){return z2(n,e,t)}}}const U2=/[\0\t\n\r]/g;function V2(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":String.fromCodePoint(n)}const q2=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function H2(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return V2(n.slice(t?2:1),t?16:10)}return h2(n)||e}const W2={}.hasOwnProperty;function K2(e,t,n){return"string"!==typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(te),autolinkProtocol:D,autolinkEmail:D,atxHeading:o(Q),blockQuote:o(K),characterEscape:D,characterReference:D,codeFenced:o(Y),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:o(Y,i),codeText:o(G,i),codeTextData:D,data:D,codeFlowValue:D,definition:o(J),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:o($),hardBreakEscape:o(X),hardBreakTrailing:o(X),htmlFlow:o(Z,i),htmlFlowData:D,htmlText:o(Z,i),htmlTextData:D,image:o(ee),label:i,link:o(te),listItem:o(ae),listItemValue:h,listOrdered:o(ne,d),listUnordered:o(ne),paragraph:o(re),reference:z,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:o(Q),strong:o(oe),thematicBreak:o(se)},exit:{atxHeading:l(),atxHeadingSequence:x,autolink:l(),autolinkEmail:W,autolinkProtocol:H,blockQuote:l(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:U,characterReferenceMarkerNumeric:U,characterReferenceValue:V,characterReference:q,codeFenced:l(g),codeFencedFence:m,codeFencedFenceInfo:p,codeFencedFenceMeta:f,codeFlowValue:A,codeIndented:l(v),codeText:l(P),codeTextData:A,data:A,definition:l(),definitionDestinationString:_,definitionLabelString:y,definitionTitleString:w,emphasis:l(),hardBreakEscape:l(j),hardBreakTrailing:l(j),htmlFlow:l(S),htmlFlowData:A,htmlText:l(N),htmlTextData:A,image:l(F),label:I,labelText:O,lineEnding:E,link:l(T),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:L,resourceDestinationString:R,resourceTitleString:M,resource:B,setextHeading:l(C),setextHeadingLineSequence:k,setextHeadingText:b,strong:l(),thematicBreak:l()}};G2(t,(e||{}).mdastExtensions||[]);const n={};return a;function a(e){let a={type:"root",children:[]};const o={stack:[a],tokenStack:[],config:t,enter:s,exit:c,buffer:i,resume:u,data:n},l=[];let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])l.push(d);else{d=r(e,l.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];W2.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},o),e[d][1])}if(o.tokenStack.length>0){const e=o.tokenStack[o.tokenStack.length-1];(e[1]||$2).call(o,void 0,e[0])}for(a.position={start:Y2(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Y2(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)a=t.transforms[d](a)||a;return a}function r(e,t,n){let a,r,o,i,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,i=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!a||i||l||o||(o=s),i=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:i=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(a){let i=s;for(r=void 0;i--;){const t=e[i];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;r&&(e[r][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",r=i}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}
vendor: 6,757 bytes, line 2
2o&&(!r||o<r)&&(a._spread=!0),a.end=Object.assign({},r?e[r][1].start:t[1].end),e.splice(r||s,0,["exit",a,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const r={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};a=r,e.splice(s,0,["enter",r,t[2]]),s++,n++,o=void 0,i=!0}}}return e[t][1]._spread=c,n}function o(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Y2(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),a=this.tokenStack.pop();if(!a)throw new Error("Cannot close `"+e.type+"` ("+I0({start:e.start,end:e.end})+"): it\u2019s not open");if(a[0].type!==e.type)if(t)t.call(this,e,a[0]);else{(a[1]||$2).call(this,e,a[0])}n.position.end=Y2(e.end)}function u(){return function(e,t){const n=t||a1;return r1(e,"boolean"!==typeof n.includeImageAlt||n.includeImageAlt,"boolean"!==typeof n.includeHtml||n.includeHtml)}(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function h(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function f(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function y(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Q1(this.sliceSerialize(e)).toLowerCase()}function w(){const e=this.resume();this.stack[this.stack.length-1].title=e}function _(){const e=this.resume();this.stack[this.stack.length-1].url=e}function x(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function k(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function C(){this.data.setextHeadingSlurpLineEnding=void 0}function D(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ie(),n.position={start:Y2(e.start),end:void 0},t.push(n)),this.stack.push(n)}function A(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Y2(e.end)}function E(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=Y2(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(D.call(this,e),A.call(this,e))}function j(){this.data.atHardBreak=!0}function S(){const e=this.resume();this.stack[this.stack.length-1].value=e}function N(){const e=this.resume();this.stack[this.stack.length-1].value=e}function P(){const e=this.resume();this.stack[this.stack.length-1].value=e}function T(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function F(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function O(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(q2,H2)}(t),n.identifier=Q1(t).toLowerCase()}function I(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function R(){const e=this.resume();this.stack[this.stack.length-1].url=e}function M(){const e=this.resume();this.stack[this.stack.length-1].title=e}function B(){this.data.inReference=void 0}function z(){this.data.referenceType="collapsed"}function L(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Q1(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function U(e){this.data.characterReferenceType=e.type}function V(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let a;if(n)a=V2(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{a=h2(t)}this.stack[this.stack.length-1].value+=a}function q(e){this.stack.pop().position.end=Y2(e.end)}function H(e){A.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function W(e){A.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function K(){return{type:"blockquote",children:[]}}function Y(){return{type:"code",lang:null,meta:null,value:""}}function G(){return{type:"inlineCode",value:""}}function J(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function $(){return{type:"emphasis",children:[]}}function Q(){return{type:"heading",depth:0,children:[]}}function X(){return{type:"break"}}function Z(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function ae(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function re(){return{type:"paragraph",children:[]}}function oe(){return{type:"strong",children:[]}}function ie(){return{type:"text",value:""}}function se(){return{type:"thematicBreak"}}}(n)(function(e){for(;!u1(e););return e}(L2(n).document().write(function(){let e,t=1,n="",a=!0;return function(r,o,i){const s=[];let l,c,u,d,h;for(r=n+("string"===typeof r?r.toString():new TextDecoder(o||void 0).decode(r)),u=0,n="",a&&(65279===r.charCodeAt(0)&&u++,a=void 0);u<r.length;){if(U2.lastIndex=u,l=U2.exec(r),d=l&&void 0!==l.index?l.index:r.length,h=r.charCodeAt(d),!l){n=r.slice(u);break}if(10===h&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(r.slice(u,d)),t+=d-u),h){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return i&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}
vendor: 3,476 bytes, line 2
2()(e,t,!0))))}function Y2(e){return{line:e.line,column:e.column,offset:e.offset}}function G2(e,t){let n=-1;for(;++n<t.length;){const a=t[n];Array.isArray(a)?G2(e,a):J2(e,a)}}function J2(e,t){let n;for(n in t)if(W2.call(t,n))switch(n){case"canContainEols":{const a=t[n];a&&e[n].push(...a);break}case"transforms":{const a=t[n];a&&e[n].push(...a);break}case"enter":case"exit":{const a=t[n];a&&Object.assign(e[n],a);break}}}function $2(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+I0({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+I0({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+I0({start:t.start,end:t.end})+") is still open")}function Q2(e){const t=this;t.parser=function(n){return K2(n,p(p(p({},t.data("settings")),e),{},{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}}const X2="object"===typeof self?self:globalThis,Z2=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),a=r=>{if(e.has(r))return e.get(r);const[o,i]=t[r];switch(o){case 0:case-1:return n(i,r);case 1:{const e=n([],r);for(const t of i)e.push(a(t));return e}case 2:{const e=n({},r);for(const[t,n]of i)e[a(t)]=a(n);return e}case 3:return n(new Date(i),r);case 4:{const{source:e,flags:t}=i;return n(new RegExp(e,t),r)}case 5:{const e=n(new Map,r);for(const[t,n]of i)e.set(a(t),a(n));return e}case 6:{const e=n(new Set,r);for(const t of i)e.add(a(t));return e}case 7:{const{name:e,message:t}=i;return n(new X2[e](t),r)}case 8:return n(BigInt(i),r);case"BigInt":return n(Object(BigInt(i)),r);case"ArrayBuffer":return n(new Uint8Array(i).buffer,i);case"DataView":{const{buffer:e}=new Uint8Array(i);return n(new DataView(e),i)}}return n(new X2[o](i),r)};return a})(new Map,e)(0),e5="",{toString:t5}={},{keys:n5}=Object,a5=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=t5.call(e).slice(8,-1);switch(n){case"Array":return[1,e5];case"Object":return[2,e5];case"Date":return[3,e5];case"RegExp":return[4,e5];case"Map":return[5,e5];case"Set":return[6,e5];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},r5=e=>{let[t,n]=e;return 0===t&&("function"===n||"symbol"===n)},o5=function(e){let{json:t,lossy:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=[];return((e,t,n,a)=>{const r=(e,t)=>{const r=a.push(e)-1;return n.set(t,r),r},o=a=>{if(n.has(a))return n.get(a);let[i,s]=a5(a);switch(i){case 0:{let t=a;switch(s){case"bigint":i=8,t=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return r([-1],a)}return r([i,t],a)}case 1:{if(s){let e=a;return"DataView"===s?e=new Uint8Array(a.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(a)),r([s,[...e]],a)}const e=[],t=r([i,e],a);for(const n of a)e.push(o(n));return t}case 2:{if(s)switch(s){case"BigInt":return r([s,a.toString()],a);case"Boolean":case"Number":case"String":return r([s,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());const n=[],l=r([i,n],a);for(const t of n5(a))!e&&r5(a5(a[t]))||n.push([o(t),o(a[t])]);return l}case 3:return r([i,a.toISOString()],a);case 4:{const{source:e,flags:t}=a;return r([i,{source:e,flags:t}],a)}case 5:{const t=[],n=r([i,t],a);for(const[r,i]of a)(e||!r5(a5(r))&&!r5(a5(i)))&&t.push([o(r),o(i)]);return n}case 6:{const t=[],n=r([i,t],a);for(const r of a)!e&&r5(a5(r))||t.push(o(r));return n}}const{message:l}=a;return r([i,{name:s,message:l}],a)};return o}
2)(!(t||n),!!t,new Map,a)(e),a},i5="function"===typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Z2(o5(e,t)):structuredClone(e):(e,t)=>Z2(o5(e,t));function s5(e){const t=[];let n=-1,a=0,r=0;for(;++n<e.length;){const o=e.charCodeAt(n);let i="";if(37===o&&g1(e.charCodeAt(n+1))&&g1(e.charCodeAt(n+2)))r=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(i=String.fromCharCode(o));else if(o>55295&&o<57344){const t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(i=String.fromCharCode(o,t),r=1):i="\ufffd"}else i=String.fromCharCode(o);i&&(t.push(e.slice(a,n),encodeURIComponent(i)),a=n+r+1,i=""),r&&(n+=r,r=0)}return t.join("")+e.slice(a)}function l5(e,t){const n=[{type:"text",value:"\u21a9"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function c5(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const u5=function(e){if(null===e||void 0===e)return h5;if("function"===typeof e)return d5(e);if("object"===typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=u5(e[n]);return d5(a);function a(){let e=-1;for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];for(;++e<t.length;)if(t[e].apply(this,a))return!0;return!1}}(e):function(e){const t=e;return d5(n);function n(n){const a=n;let r;for(r in e)if(a[r]!==t[r])return!1;return!0}}(e);if("string"===typeof e)return function(e){return d5(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function d5(e){return function(t,n,a){return Boolean(p5(t)&&e.call(this,t,"number"===typeof n?n:void 0,a||void 0))}}function h5(){return!0}function p5(e){return null!==e&&"object"===typeof e&&"type"in e}const f5=[],m5=!0,g5=!1;function v5(e,t,n,a){let r;"function"===typeof t&&"function"!==typeof n?(a=n,n=t):r=t;
vendor: 8,734 bytes, line 2
2const o=u5(r),i=a?-1:1;!function e(r,s,l){const c=r&&"object"===typeof r?r:{};if("string"===typeof c.type){const e="string"===typeof c.tagName?c.tagName:"string"===typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+r.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,h=f5;if((!t||o(r,s,l[l.length-1]||void 0))&&(h=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[m5,e];return null===e||void 0===e?f5:[e]}(n(r,l)),h[0]===g5))return h;if("children"in r&&r.children){const t=r;if(t.children&&"skip"!==h[0])for(u=(a?t.children.length:-1)+i,d=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===g5)return c;u="number"===typeof c[1]?c[1]:u+i}}return h}}(e,void 0,[])()}function y5(e,t,n,a){let r,o,i;"function"===typeof t&&"function"!==typeof n?(o=void 0,i=t,r=n):(o=t,i=n,r=a),v5(e,o,function(e,t){const n=t[t.length-1],a=n?n.children.indexOf(e):void 0;return i(e,a,n)},r)}function w5(e,t){const n=t.referenceType;let a="]";if("collapsed"===n?a+="[]":"full"===n&&(a+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+a}];const r=e.all(t),o=r[0];o&&"text"===o.type?o.value="["+o.value:r.unshift({type:"text",value:"["});const i=r[r.length-1];return i&&"text"===i.type?i.value+=a:r.push({type:"text",value:a}),r}function _5(e){const t=e.spread;return null===t||void 0===t?e.children.length>1:t}function x5(e){const t=String(e),n=/\r?\n|\r/g;let a=n.exec(t),r=0;const o=[];for(;a;)o.push(b5(t.slice(r,a.index),r>0,!0),a[0]),r=a.index+a[0].length,a=n.exec(t);return o.push(b5(t.slice(r),r>0,!1)),o.join("")}function b5(e,t,n){let a=0,r=e.length;if(t){let t=e.codePointAt(a);for(;9===t||32===t;)a++,t=e.codePointAt(a)}if(n){let t=e.codePointAt(r-1);for(;9===t||32===t;)r--,t=e.codePointAt(r-1)}return r>a?e.slice(a,r):""}const k5={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",a={},r=t.lang?t.lang.split(/\s+/):[];r.length>0&&(a.className=["language-"+r[0]]);let o={type:"element",tagName:"code",properties:a,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"===typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),r=s5(a.toLowerCase()),o=e.footnoteOrder.indexOf(a);let i,s=e.footnoteCounts.get(a);void 0===s?(s=0,e.footnoteOrder.push(a),i=e.footnoteOrder.length):i=o+1,s+=1,e.footnoteCounts.set(a,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+r,id:n+"fnref-"+r+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),a=e.definitionById.get(n);if(!a)return w5(e,t);const r={src:s5(a.url||""),alt:t.alt};null!==a.title&&void 0!==a.title&&(r.title=a.title);const o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:s5(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const a={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,a),e.applyData(t,a)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const a={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,a),e.applyData(t,a)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),a=e.definitionById.get(n);if(!a)return w5(e,t);const r={href:s5(a.url||"")};null!==a.title&&void 0!==a.title&&(r.title=a.title);const o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:s5(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const a={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},listItem:function(e,t,n){const a=e.all(t),r=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let a=-1;for(;!t&&++a<n.length;)t=_5(n[a])}return t}(n):_5(t),o={},i=[];if("boolean"===typeof t.checked){const e=a[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},a.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<a.length;){const e=a[s];(r||0!==s||"element"!==e.type||"p"!==e.tagName)&&i.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||r?i.push(e):i.push(...e.children)}const l=a[a.length-1];l&&(r||"element"!==l.type||"p"!==l.tagName)&&i.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:o,children:i};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},a=e.all(t);let r=-1;for("number"===typeof t.start&&1!==t.start&&(n.start=t.start);++r<a.length;){const e=a[r];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(a,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),a=n.shift(),r=[];if(a){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(t.children[0],n),r.push(n)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=F0(t.children[1]),i=T0(t.children[t.children.length-1]);o&&i&&(a.position={start:o,end:i}),r.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const a=n?n.children:void 0,r=0===(a?a.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,i=o?o.length:t.children.length;let s=-1;const l=[];for(;++s<i;){const n=t.children[s],a={},i=o?o[s]:void 0;i&&(a.align=i);let c={type:"element",tagName:r,properties:a,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:x5(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:C5,yaml:C5,definition:C5,footnoteDefinition:C5};function C5(){}const D5=["children"],A5={}.hasOwnProperty,E5={};function j5(e,t){e.position&&(t.position=function(e){const t=F0(e),n=T0(e);if(t&&n)return{start:t,end:n}}(e))}function S5(e,t){let n=t;if(e&&e.data){const t=e.data.hName,a=e.data.hChildren,r=e.data.hProperties;if("string"===typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&r&&Object.assign(n.properties,i5(r)),"children"in n&&n.children&&null!==a&&void 0!==a&&(n.children=a)}return n}function N5(e,t){const n=t.data||{}
vendor: 8,351 bytes, line 2
2,a=!("value"in t)||A5.call(n,"hProperties")||A5.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,a),e.applyData(t,a)}function P5(e,t){const n=[];let a=-1;for(t&&n.push({type:"text",value:"\n"});++a<e.length;)a&&n.push({type:"text",value:"\n"}),n.push(e[a]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function T5(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function F5(e,t){const n=function(e,t){const n=t||E5,a=new Map,r=new Map,o=new Map,i=p(p({},k5),n.handlers),s={all:function(e){const t=[];if("children"in e){const n=e.children;let a=-1;for(;++a<n.length;){const r=s.one(n[a],e);if(r){if(a&&"break"===n[a-1].type&&(Array.isArray(r)||"text"!==r.type||(r.value=T5(r.value)),!Array.isArray(r)&&"element"===r.type)){const e=r.children[0];e&&"text"===e.type&&(e.value=T5(e.value))}Array.isArray(r)?t.push(...r):t.push(r)}}}return t},applyData:S5,definitionById:a,footnoteById:r,footnoteCounts:o,footnoteOrder:[],handlers:i,one:function(e,t){const n=e.type,a=s.handlers[n];if(A5.call(s.handlers,n)&&a)return a(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){const{children:t}=e,n=l(e,D5),a=i5(n);return a.children=s.all(e),a}return i5(e)}return(s.options.unknownHandler||N5)(s,e,t)},options:n,patch:j5,wrap:P5};return y5(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?a:r,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),s}(e,t),a=n.one(e,void 0),r=function(e){const t="string"===typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||l5,a=e.options.footnoteBackLabel||c5,r=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",i=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const r=e.footnoteById.get(e.footnoteOrder[l]);if(!r)continue;const o=e.all(r),i=String(r.identifier).toUpperCase(),c=s5(i.toLowerCase());let u=0;const d=[],h=e.footnoteCounts.get(i);for(;void 0!==h&&++u<=h;){d.length>0&&d.push({type:"text",value:" "});let e="string"===typeof n?n:n(l,u);"string"===typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"===typeof a?a:a(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const p=o[o.length-1];if(p&&"element"===p.type&&"p"===p.tagName){const e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else o.push(...d);const f={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(o,!0)};e.patch(r,f),s.push(f)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:p(p({},i5(i)),{},{id:"footnote-label"}),children:[{type:"text",value:r}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),o=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return r&&o.children.push({type:"text",value:"\n"},r),o}function O5(e,t){return e&&"run"in e?async function(n,a){const r=F5(n,p({file:a},t));await e.run(r,a)}:function(n,a){return F5(n,p({file:a},e||t))}}function I5(e){if(e)throw e}var R5=n(3240);function M5(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function B5(){const e=[],t={run:function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];let r=-1;const o=n.pop();if("function"!==typeof o)throw new TypeError("Expected function as last argument, not "+o);!function t(a){const i=e[++r];let s=-1;if(a)o(a);else{for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];for(;++s<n.length;)null!==c[s]&&void 0!==c[s]||(c[s]=n[s]);n=c,i?function(e,t){let n;return r;function r(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];const l=e.length>r.length;let c;l&&r.push(o);try{c=e.apply(this,r)}catch(a){if(l&&n)throw a;return o(a)}l||(c&&c.then&&"function"===typeof c.then?c.then(i,o):c instanceof Error?o(c):i(c))}function o(e){if(!n){n=!0;for(var a=arguments.length,r=new Array(a>1?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];t(e,...r)}}function i(e){o(null,e)}}(i,t)(...c):o(null,...c)}}(null,...n)},use:function(n){if("function"!==typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const z5={basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');L5(e);let n,a=0,r=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){a=o+1;break}}else r<0&&(n=!0,r=o+1);return r<0?"":e.slice(a,r)}if(t===e)return"";let i=-1,s=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){a=o+1;break}}else i<0&&(n=!0,i=o+1),s>-1&&(e.codePointAt(o)===t.codePointAt(s--)?s<0&&(r=o):(s=-1,r=i));a===r?r=i:r<0&&(r=e.length);return e.slice(a,r)},dirname:function(e){if(L5(e),0===e.length)return".";let t,n=-1,a=e.length;for(;--a;)if(47===e.codePointAt(a)){if(t){n=a;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){L5(e);let t,n=e.length,a=-1,r=0,o=-1,i=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)a<0&&(t=!0,a=n+1),46===s?o<0?o=n:1!==i&&(i=1):o>-1&&(i=-1);else if(t){r=n+1;break}}if(o<0||a<0||0===i||1===i&&o===a-1&&o===r+1)return"";return e.slice(o,a)},join:function(){let e,t=-1;for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];for(;++t<a.length;)L5(a[t]),a[t]&&(e=void 0===e?a[t]:e+"/"+a[t]);return void 0===e?".":function(e){L5(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,a,r="",o=0,i=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(i===l-1||1===s);else if(i!==l-1&&2===s){if(r.length<2||2!==o||46!==r.codePointAt(r.length-1)||46!==r.codePointAt(r.length-2))if(r.length>2){if(a=r.lastIndexOf("/"),a!==r.length-1){a<0?(r="",o=0):(r=r.slice(0,a),o=r.length-1-r.lastIndexOf("/")),i=l,s=0;continue}}else if(r.length>0){r="",o=0,i=l,s=0;continue}t&&(r=r.length>0?r+"/..":"..",o=2)}else r.length>0?r+="/"+e.slice(i+1,l):r=e.slice(i+1,l),o=l-i-1;i=l,s=0}else 46===n&&s>-1?s++:s=-1}return r}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(e)},sep:"/"};function L5(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const U5={cwd:function(){return"/"}};function V5(e){return Boolean(null!==e&&"object"===typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function q5(e){if("string"===typeof e)e=new URL(e);else if(!V5(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const H5=["history","path","basename","stem","extname","dirname"];class W5{constructor(e){let t;t=e?V5(e)?{path:e}:"string"===typeof e||function(e){return Boolean(e&&"object"===typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":U5.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,a=-1;for(;++a<H5.length;){const e=H5[a];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)H5.includes(n)||(this[n]=t[n])}
vendor: 7,172 bytes, line 2
2get basename(){return"string"===typeof this.path?z5.basename(this.path):void 0}set basename(e){Y5(e,"basename"),K5(e,"basename"),this.path=z5.join(this.dirname||"",e)}get dirname(){return"string"===typeof this.path?z5.dirname(this.path):void 0}set dirname(e){G5(this.basename,"dirname"),this.path=z5.join(e||"",this.basename)}get extname(){return"string"===typeof this.path?z5.extname(this.path):void 0}set extname(e){if(K5(e,"extname"),G5(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=z5.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){V5(e)&&(e=q5(e)),Y5(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"===typeof this.path?z5.basename(this.path,this.extname):void 0}set stem(e){Y5(e,"stem"),K5(e,"stem"),this.path=z5.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const a=this.message(e,t,n);throw a.fatal=!0,a}info(e,t,n){const a=this.message(e,t,n);return a.fatal=void 0,a}message(e,t,n){const a=new z0(e,t,n);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(e){if(void 0===this.value)return"";if("string"===typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function K5(e,t){if(e&&e.includes(z5.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+z5.sep+"`")}function Y5(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function G5(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const J5=function(e){const t=this.constructor.prototype,n=t[e],a=function(){return n.apply(a,arguments)};return Object.setPrototypeOf(a,t),a},$5={}.hasOwnProperty;class Q5 extends J5{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=B5()}copy(){const e=new Q5;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(R5(!0,{},this.namespace)),e}data(e,t){return"string"===typeof e?2===arguments.length?(t4("data",this.frozen),this.namespace[e]=t,this):$5.call(this.namespace,e)&&this.namespace[e]||void 0:e?(t4("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const a=t.call(e,...n);"function"===typeof a&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=r4(e),n=this.parser||this.Parser;return Z5("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),Z5("process",this.parser||this.Parser),e4("process",this.compiler||this.Compiler),t?a(void 0,t):new Promise(a);function a(a,r){const o=r4(e),i=n.parse(o);function s(e,n){e||!n?r(e):a?a(n):t(void 0,n)}n.run(i,o,function(e,t,a){if(e||!t||!a)return s(e);const r=t,o=n.stringify(r,a);!function(e){return"string"===typeof e||function(e){return Boolean(e&&"object"===typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)}(o)?a.result=o:a.value=o,s(e,a)})}}processSync(e){let t,n=!1;return this.freeze(),Z5("processSync",this.parser||this.Parser),e4("processSync",this.compiler||this.Compiler),this.process(e,function(e,a){n=!0,I5(e),t=a}),a4("processSync","process",n),t}run(e,t,n){n4(e),this.freeze();const a=this.transformers;return n||"function"!==typeof t||(n=t,t=void 0),n?r(void 0,n):new Promise(r);function r(r,o){const i=r4(t);a.run(e,i,function(t,a,i){const s=a||e;t?o(t):r?r(s):n(void 0,s,i)})}}runSync(e,t){let n,a=!1;return this.run(e,t,function(e,t){I5(e),n=t,a=!0}),a4("runSync","run",a),n}stringify(e,t){this.freeze();const n=r4(t),a=this.compiler||this.Compiler;return e4("stringify",a),n4(e),a(e,n)}use(e){const t=this.attachers,n=this.namespace;if(t4("use",this.frozen),null===e||void 0===e);else if("function"===typeof e){for(var a=arguments.length,r=new Array(a>1?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];c(e,r)}else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?l(e):s(e)}return this;function i(e){if("function"===typeof e)c(e,[]);else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;c(t,n)}else s(e)}}function s(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(e.plugins),e.settings&&(n.settings=R5(!0,n.settings,e.settings))}function l(e){let t=-1;if(null===e||void 0===e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){i(e[t])}}}function c(e,n){let a=-1,r=-1;for(;++a<t.length;)if(t[a][0]===e){r=a;break}if(-1===r)t.push([e,...n]);else if(n.length>0){let[a,...o]=n;const i=t[r][1];M5(i)&&M5(a)&&(a=R5(!0,i,a)),t[r]=[e,a,...o]}}}}const X5=(new Q5).freeze();function Z5(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function e4(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function t4(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function n4(e){if(!M5(e)||"string"!==typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function a4(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function r4(e){return function(e){return Boolean(e&&"object"===typeof e&&"message"in e&&"messages"in e)}(e)?e:new W5(e)}const o4=[],i4={allowDangerousHtml:!0},s4=/^(https?|ircs?|mailto|xmpp)$/i,l4=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function c4(e){const t=u4(e),n=d4(e);
2return h4(t.runSync(t.parse(n),n),e)}function u4(e){const t=e.rehypePlugins||o4,n=e.remarkPlugins||o4,a=e.remarkRehypeOptions?p(p({},e.remarkRehypeOptions),i4):i4;return X5().use(Q2).use(n).use(O5,a).use(t)}function d4(e){const t=e.children||"",n=new W5;return"string"===typeof t&&(n.value=t),n}function h4(e,t){const n=t.allowedElements,a=t.allowElement,r=t.components,o=t.disallowedElements,i=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||p4;for(const c of l4)Object.hasOwn(t,c.from)&&WZ((c.from,c.to&&c.to,c.id));return y5(e,function(e,t,r){if("raw"===e.type&&r&&"number"===typeof t)return i?r.children.splice(t,1):r.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in n1)if(Object.hasOwn(n1,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],a=n1[t];(null===a||a.includes(e.tagName))&&(e.properties[t]=l(String(n||""),t,e))}}if("element"===e.type){let i=n?!n.includes(e.tagName):!!o&&o.includes(e.tagName);if(!i&&a&&"number"===typeof t&&(i=!a(e,t,r)),i&&r&&"number"===typeof t)return s&&e.children?r.children.splice(t,1,...e.children):r.children.splice(t,1),t}}),K0(e,{Fragment:_h.Fragment,components:r,ignoreInvalidStyle:!0,jsx:_h.jsx,jsxs:_h.jsxs,passKeys:!0,passNode:!0})}function p4(e){const t=e.indexOf(":"),n=e.indexOf("?"),a=e.indexOf("#"),r=e.indexOf("/");return-1===t||-1!==r&&t>r||-1!==n&&t>n||-1!==a&&t>a||s4.test(e.slice(0,t))?e:""}const f4=["node","children"],m4=["node","children"],g4=["node","children"],v4=["node","children"],y4=e=>{let{children:t,onClick:n,className:a=""}=e;return(0,_h.jsx)("div",{onClick:n,className:"relative ".concat(n?"cursor-pointer active:scale-[0.98]":""," transition-transform ").concat(a),style:{background:"rgba(255, 255, 255, 0.95)",backdropFilter:"blur(40px)",WebkitBackdropFilter:"blur(40px)",borderRadius:"16px",boxShadow:"0 2px 16px -4px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.03)"},children:t})},w4=e=>{let{icon:t,label:n,isActive:a,onClick:r}=e;return(0,_h.jsxs)("button",{onClick:r,className:"flex items-center gap-2 px-4 py-2.5 rounded-xl text-sm font-medium transition-all whitespace-nowrap ".concat(a?"bg-gray-900 text-white shadow-md":"bg-white text-gray-700 border border-gray-200 hover:border-gray-300"),children:[(0,_h.jsx)(t,{className:"h-4 w-4"}),n]})},_4=e=>{var t,n,a,r;let{event:i,open:s,onClose:l,onStatusUpdate:c,onEdit:u}=e;const[d,h]=(0,o.useState)(!1);if(!i)return null;const p=async e=>{h(!0);try{await c(i.id,e),wH.success("completed"===e?"Marked as complete!":"Marked as skipped"),l()}catch(t){wH.error("Failed to update status")}finally{h(!1)}},f=(null===(t=i.child)||void 0===t?void 0:t.color)||(null===(n=i.activity)||void 0===n?void 0:n.color)||"#5DADE2",m=wZ(i.date),g=(new Date,"completed"===i.status),v="skipped"===i.status;return(0,_h.jsx)(mJ,{open:s,onOpenChange:l,children:(0,_h.jsxs)(yJ,{className:"sm:max-w-lg mx-4 p-0 rounded-2xl overflow-hidden border-0 shadow-2xl [&>button]:hidden",children:[(0,_h.jsxs)("div",{className:"relative p-6 pb-8",style:{background:"linear-gradient(135deg, ".concat(f," 0%, ").concat(f,"dd 100%)")},children:[(0,_h.jsx)("button",{onClick:l,className:"absolute top-4 right-4 w-8 h-8 rounded-full bg-white/20 hover:bg-white/30 flex items-center justify-center transition-colors z-10",children:(0,_h.jsx)(lJ,{className:"h-4 w-4 text-white"})}),(0,_h.jsx)("div",{className:"w-14 h-14 rounded-2xl bg-white/20 backdrop-blur flex items-center justify-center mb-4",children:(0,_h.jsx)("span",{className:"text-2xl",children:(null===(a=i.activity)||void 0===a?void 0:a.icon)||"\ud83d\udcc5"})}),(0,_h.jsx)("h2",{className:"text-2xl font-bold text-white mb-1",children:i.title}),(0,_h.jsx)("p",{className:"text-white/80 text-sm font-medium",children:X$(m,"EEEE, MMMM d, yyyy")}),(g||v)&&(0,_h.jsxs)("div",{className:"absolute bottom-4 right-4 px-3 py-1.5 rounded-full flex items-center gap-1.5 text-xs font-semibold ".concat(g?"bg-green-500 text-white":"bg-orange-500 text-white"),children:[g?(0,_h.jsx)(FZ,{className:"h-3.5 w-3.5"}):(0,_h.jsx)(OZ,{className:"h-3.5 w-3.5"}),g?"Completed":"Skipped"]})]}),(0,_h.jsxs)("div",{className:"p-6 space-y-4 bg-white",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-4 p-4 bg-gradient-to-r from-gray-50 to-gray-100/50 rounded-xl",children:[(0,_h.jsx)("div",{className:"w-12 h-12 rounded-xl bg-white shadow-sm flex items-center justify-center",children:(0,_h.jsx)(IZ,{className:"h-6 w-6 text-violet-500"})}),(0,_h.jsxs)("div",{className:"flex-1",children:[(0,_h.jsxs)("p",{className:"text-lg font-semibold text-gray-900",children:[i.start_time," \u2013 ",i.end_time]}),(0,_h.jsx)("p",{className:"text-sm text-gray-500",children:"Duration"})]})]}),i.location&&(0,_h.jsxs)("div",{className:"flex items-center gap-4 p-4 bg-gradient-to-r from-gray-50 to-gray-100/50 rounded-xl",children:[(0,_h.jsx)("div",{className:"w-12 h-12 rounded-xl bg-white shadow-sm flex items-center justify-center",children:(0,_h.jsx)(RZ,{className:"h-6 w-6 text-rose-500"})}),(0,_h.jsxs)("div",{className:"flex-1",children:[(0,_h.jsx)("p",{className:"text-lg font-semibold text-gray-900",children:i.location}),(0,_h.jsx)("p",{className:"text-sm text-gray-500",children:"Location"})]})]}),i.child&&(0,_h.jsxs)("div",{className:"flex items-center gap-4 p-4 bg-gradient-to-r from-gray-50 to-gray-100/50 rounded-xl",children:[(0,_h.jsx)("div",{className:"w-12 h-12 rounded-xl flex items-center justify-center text-white font-bold text-lg shadow-sm",style:{backgroundColor:i.child.color},children:null===(r=i.child.name)||void 0===r?void 0:r.charAt(0)}),(0,_h.jsxs)("div",{className:"flex-1",children:[(0,_h.jsx)("p",{className:"text-lg font-semibold text-gray-900",children:i.child.name}),(0,_h.jsx)("p",{className:"text-sm text-gray-500",children:"Participant"})]})]}),i.notes&&(0,_h.jsxs)("div",{className:"p-4 bg-amber-50 border border-amber-100 rounded-xl",children:[(0,_h.jsx)("p",{className:"text-xs font-medium text-amber-600 uppercase tracking-wider mb-1",children:"Notes"}),(0,_h.jsx)("p",{className:"text-sm text-gray-700",children:i.notes})]})]}),(0,_h.jsxs)("div",{className:"p-4 bg-gray-50 border-t border-gray-100 space-y-3",children:[(!i.status||"pending"===i.status||"scheduled"===i.status)&&(0,_h.jsxs)("div",{className:"flex gap-3",children:[(0,_h.jsxs)(RG,{onClick:()=>p("completed"),disabled:d,className:"flex-1 h-12 rounded-xl bg-gradient-to-r from-green-500 to-emerald-600 hover:from-green-600 hover:to-emerald-700 text-white hover:text-white font-semibold shadow-lg shadow-green-500/25 transition-all",children:[(0,_h.jsx)(FZ,{className:"mr-2 h-5 w-5"}),"Mark Complete"]}),(0,_h.jsxs)(RG,{onClick:()=>p("skipped"),disabled:d,variant:"outline",className:"flex-1 h-12 rounded-xl border-2 border-orange-200 text-orange-600 hover:text-orange-700 hover:bg-orange-50 hover:border-orange-300 font-semibold transition-all",children:[(0,_h.jsx)(OZ,{className:"mr-2 h-5 w-5"}),"Skip"]}
2)]}),(0,_h.jsxs)("div",{className:"flex gap-3",children:[(0,_h.jsxs)(RG,{variant:"outline",onClick:()=>u(i),className:"flex-1 h-11 rounded-xl border-2 border-gray-200 text-gray-700 hover:text-gray-900 hover:border-gray-300 hover:bg-gray-100 font-medium transition-all",children:[(0,_h.jsx)(MZ,{className:"mr-2 h-4 w-4"}),"Edit Event"]}),(0,_h.jsx)(RG,{variant:"ghost",onClick:l,className:"h-11 px-6 rounded-xl text-gray-600 hover:text-gray-900 hover:bg-gray-100 font-medium transition-all",children:"Close"})]})]})]})})},x4=e=>{let{content:t}=e;return t?(0,_h.jsx)("div",{className:"space-y-2",children:(0,_h.jsx)(c4,{components:{p:e=>{var t,n;let{node:a,children:r}=e,o=l(e,f4);const i=String(r);if(i.includes("at a Glance")||i.includes("Week at a Glance"))return(0,_h.jsx)("h3",p(p({className:"text-xl font-bold text-gray-900 mb-1"},o),{},{children:r}));if(i.includes("events across")&&i.includes("day"))return(0,_h.jsx)("p",p(p({className:"text-base text-gray-500 mb-4 pb-3 border-b-2 border-violet-100"},o),{},{children:r}));if(/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun)\s+(\d{4}-\d{2}-\d{2}|\d{1,2}\/\d{1,2})/.test(i)){const e=i.split(/\s*[\xb7\u2022]\s*/),t=e[0],n=e.slice(1);return(0,_h.jsxs)("div",p(p({className:"mt-3 first:mt-0"},o),{},{children:[(0,_h.jsxs)("div",{className:"flex items-center mb-1.5",children:[(0,_h.jsx)("span",{className:"inline-block w-2.5 h-2.5 rounded-full bg-gradient-to-br from-violet-500 to-purple-600 mr-2.5"}),(0,_h.jsx)("span",{className:"font-semibold text-gray-900",children:t})]}),n.length>0&&(0,_h.jsx)("div",{className:"ml-5 pl-3 border-l-2 border-violet-100 space-y-0.5",children:n.map((e,t)=>(0,_h.jsx)("p",{className:"text-gray-600 text-sm leading-relaxed py-0.5",children:e},t))})]}))}const s=i.includes("[object Object]"),c=(null===a||void 0===a||null===(t=a.children)||void 0===t?void 0:t.map(e=>{var t,n;return e.value||(null===(t=e.children)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.value)||""}).join(""))||"";return i.includes("Heads Up")||i.includes("\ud83d\udca1")||c.includes("Heads Up")||s&&(null===a||void 0===a||null===(n=a.children)||void 0===n?void 0:n.some(e=>{var t,n,a,r;return"strong"===e.type&&(null===(t=e.children)||void 0===t||null===(n=t[0])||void 0===n||null===(a=n.value)||void 0===a||null===(r=a.includes)||void 0===r?void 0:r.call(a,"Heads Up"))}))?(0,_h.jsx)("div",p(p({className:"mt-5 pt-4 border-t-2 border-violet-200"},o),{},{children:(0,_h.jsxs)("div",{className:"flex items-start bg-amber-50/70 p-3 rounded-lg text-gray-700",children:[(0,_h.jsx)("span",{className:"mr-2 text-lg flex-shrink-0",children:"\ud83d\udca1"}),(0,_h.jsx)("div",{className:"font-semibold",children:r})]})})):i.includes("Note:")||i.includes("Tip:")?(0,_h.jsx)("div",p(p({className:"mt-4 pt-4 border-t-2 border-violet-100"},o),{},{children:(0,_h.jsx)("div",{className:"p-3 bg-gradient-to-r from-amber-50 to-orange-50 border-l-4 border-amber-400 rounded-r-lg",children:(0,_h.jsxs)("p",{className:"text-amber-800 text-sm font-medium flex items-start",children:[(0,_h.jsx)("span",{className:"mr-2 mt-0.5",children:"\ud83d\udca1"}),(0,_h.jsx)("span",{children:r})]})})})):(0,_h.jsx)("p",p(p({className:"text-gray-600 leading-relaxed my-1"},o),{},{children:r}))},strong:e=>{let{node:t,children:n}=e,a=l(e,m4);const r=String(n);return r.includes("Heads Up")||r.match(/^Heads\s*Up$/i)?(0,_h.jsx)("strong",p(p({className:"font-bold text-gray-900"},a),{},{children:n})):(0,_h.jsx)("strong",p(p({className:"font-semibold text-gray-900"},a),{},{children:n}))},ul:e=>{let{node:t,children:n}=e,a=l(e,g4);return(0,_h.jsx)("ul",p(p({className:"space-y-1 ml-5 pl-3 border-l-2 border-violet-100 my-2"},a),{},{children:n}))},li:e=>{let{node:t,children:n}=e,a=l(e,v4);return(0,_h.jsx)("li",p(p({className:"text-gray-600 text-sm py-0.5"},a),{},{children:n}))}},children:t})}):null},b4=e=>{let{events:t,date:n,onEventClick:a,allEvents:r,onNavigateToDate:i}=e;const s=[];for(let o=6;o<=22;o++)s.push(o);const l=(0,o.useMemo)(()=>{const e={};return t.forEach(t=>{if(t.start_time){const n=parseInt(t.start_time.split(":")[0],10);e[n]||(e[n]=[]),e[n].push(t)}}),e},[t]),c=(0,o.useMemo)(()=>
2{if(!r||0===r.length)return null;const e=X$(n,"yyyy-MM-dd"),t=r.filter(t=>t.date>e).sort((e,t)=>e.date.localeCompare(t.date));if(0===t.length)return null;const a=t[0].date,o=t.filter(e=>e.date===a),[i,s,l]=a.split("-").map(Number);return{date:new Date(i,s-1,l),dateStr:a,events:o,count:o.length}},[r,n]),u=e=>{const t=e>=12?"PM":"AM";return"".concat(e%12||12," ").concat(t)},d=t.length>0;return d?(0,_h.jsxs)("div",{className:"space-y-1",children:[(0,_h.jsxs)("div",{className:"flex items-center justify-between mb-4 pb-3 border-b border-gray-100",children:[(0,_h.jsxs)("div",{children:[(0,_h.jsx)("h3",{className:"font-bold text-gray-900",children:X$(n,"EEEE")}),(0,_h.jsx)("p",{className:"text-sm text-gray-500",children:X$(n,"MMMM d, yyyy")})]}),(0,_h.jsxs)("div",{className:"px-3 py-1 rounded-lg text-sm font-medium ".concat(d?"bg-blue-50 text-blue-700":"bg-gray-100 text-gray-500"),children:[t.length," event",1!==t.length?"s":""]})]}),(0,_h.jsx)("div",{className:"relative",children:s.map(e=>{const t=l[e]||[],n=t.length>0;return(0,_h.jsxs)("div",{className:"flex min-h-[48px]",children:[(0,_h.jsx)("div",{className:"w-16 flex-shrink-0 text-xs text-gray-400 pt-1 text-right pr-3",children:u(e)}),(0,_h.jsxs)("div",{className:"flex-1 relative border-l border-gray-200 pl-4",children:[(0,_h.jsx)("div",{className:"absolute -left-1 top-1.5 w-2 h-2 rounded-full ".concat(n?"bg-blue-500":"bg-gray-200")}),t.map((e,t)=>{var n,r;const o=(null===(n=e.child)||void 0===n?void 0:n.color)||(null===(r=e.activity)||void 0===r?void 0:r.color)||"#5DADE2";return(0,_h.jsxs)("div",{onClick:()=>a(e),className:"mb-2 p-3 rounded-xl bg-white border border-gray-100 shadow-sm cursor-pointer hover:shadow-md transition-shadow",style:{borderLeftWidth:"3px",borderLeftColor:o},children:[(0,_h.jsxs)("div",{className:"flex items-center justify-between",children:[(0,_h.jsx)("div",{className:"font-medium text-gray-900 text-sm",children:e.title}),"completed"===e.status&&(0,_h.jsx)(FZ,{className:"h-4 w-4 text-green-500"}),"skipped"===e.status&&(0,_h.jsx)(OZ,{className:"h-4 w-4 text-orange-500"})]}),(0,_h.jsxs)("div",{className:"flex items-center gap-3 mt-1 text-xs text-gray-500",children:[(0,_h.jsxs)("span",{className:"flex items-center gap-1",children:[(0,_h.jsx)(IZ,{className:"h-3 w-3"}),e.start_time,e.end_time?" - ".concat(e.end_time):""]}),e.location&&(0,_h.jsxs)("span",{className:"flex items-center gap-1",children:[(0,_h.jsx)(RZ,{className:"h-3 w-3"}),e.location]})]}),e.child&&(0,_h.jsxs)("div",{className:"mt-2 flex items-center gap-1.5",children:[(0,_h.jsx)("div",{className:"w-2 h-2 rounded-full",style:{backgroundColor:e.child.color}}),(0,_h.jsx)("span",{className:"text-xs text-gray-500",children:e.child.name})]})]},e.id||t)})]})]},e)})})]}):(0,_h.jsxs)("div",{className:"space-y-1",children:[(0,_h.jsxs)("div",{className:"flex items-center justify-between mb-4 pb-3 border-b border-gray-100",children:[(0,_h.jsxs)("div",{children:[(0,_h.jsx)("h3",{className:"font-bold text-gray-900",children:X$(n,"EEEE")}),(0,_h.jsx)("p",{className:"text-sm text-gray-500",children:X$(n,"MMMM d, yyyy")})]}),(0,_h.jsx)("div",{className:"px-3 py-1 rounded-lg text-sm font-medium bg-gray-100 text-gray-500",children:"0 events"})]}),(0,_h.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 px-4",children:[(0,_h.jsx)("div",{className:"w-20 h-20 rounded-2xl bg-gradient-to-br from-gray-100 to-gray-200 flex items-center justify-center mb-4",children:(0,_h.jsx)(BZ,{className:"h-10 w-10 text-gray-400"})}),(0,_h.jsx)("h3",{className:"text-xl font-bold text-gray-900 mb-2",children:"No Events Today"}),(0,_h.jsxs)("p",{className:"text-gray-500 text-center mb-6 max-w-xs",children:["Enjoy your free day! Nothing scheduled for ",X$(n,"EEEE, MMMM d"),"."]}),c&&(0,_h.jsxs)("div",{className:"w-full max-w-sm bg-gradient-to-br from-blue-50 to-indigo-50 rounded-2xl p-4 border border-blue-100",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,_h.jsx)("div",{className:"w-8 h-8 rounded-lg bg-blue-500 flex items-center justify-center",children:(0,_h.jsx)(WG,{className:"h-4 w-4 text-white"})}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("p",{className:"text-xs font-medium text-blue-600 uppercase tracking-wider",children:"Next Event"}),(0,_h.jsx)("p",{className:"font-semibold text-gray-900",children:X$(c.date,"EEEE, MMM d")})]})]}),(0,_h.jsxs)("div",{className:"space-y-2 mb-4",children:[c.events.slice(0,3).map((e,t)=>{var n,a;const r=(null===(n=e.child)||void 0===n?void 0:n.color)||(null===(a=e.activity)||void 0===a?void 0:a.color)||"#5DADE2";return(0,_h.jsxs)("div",{className:"flex items-center gap-2 bg-white/70 rounded-lg px-3 py-2",children:[(0,_h.jsx)("div",{className:"w-2 h-2 rounded-full flex-shrink-0",style:{backgroundColor:r}}),(0,_h.jsx)("span",{className:"text-sm text-gray-700 truncate flex-1",children:e.title}),(0,_h.jsx)("span",{className:"text-xs text-gray-500",children:e.start_time})]},e.id||t)}),c.count>3&&(0,_h.jsxs)("p",{className:"text-xs text-gray-500 text-center",children:["+",c.count-3," more event",c.count-3>1?"s":""]})]}),(0,_h.jsxs)(RG,{onClick:()=>i&&i(c.date),className:"w-full rounded-xl bg-gradient-to-r from-blue-500 to-indigo-500 hover:from-blue-600 hover:to-indigo-600 text-white shadow-md shadow-blue-500/20","data-testid":"jump-to-next-event-btn",children:[(0,_h.jsx)(zZ,{className:"mr-2 h-4 w-4"}),"Jump to ",X$(c.date,"MMM d")]})]}),!c&&(0,_h.jsx)("div",{className:"text-center",children:(0,_h.jsx)("p",{className:"text-sm text-gray-400",children:"No upcoming events scheduled"})})]})]})},k4=()=>{var e;const t=Ee(),[n,a]=(0,o.useState)(!0),[r,i]=(0,o.useState)(null),[s,l]=(0,o.useState)([]),[c,u]=(0,o.useState)(new Date),[d,h]=(0,o.useState)("today"),[p,f]=(0,o.useState)([]),[m,g]=(0,o.useState)(!1),[v,y]=(0,o.useState)(!1),[w,_]=(0,o.useState)(null),[x,b]=(0,o.useState)(null),[k,C]=(0,o.useState)(null),[D,A]=(0,o.useState)(!1);(0,o.useEffect)(()=>{j();const e=()=>{j(),E()};return window.addEventListener("focus",e),()=>window.removeEventListener("focus",e)},[]);const E=()=>{const e=localStorage.getItem("eventsLastModified");e&&e!==x&&(b(e),_(null))};(0,o.useEffect)(()=>{r&&!n&&S()},[d,p,x]);const j=async()=>{try{const[e,t]=await Promise.all([aY(),lY()]);i(e),l(t||[])}catch(e){wH.error("Failed to load dashboard")}finally{a(!1)}},S=async()=>{y(!0);try{let e;const t=X$(c,"yyyy-MM-dd");e="month"===d?await(async e=>(await ZK.post("/summaries/monthly",{date:e})).data)(t):"week"===d?await hY(t):await dY(t),_(e)}catch(e){wH.error("Failed to generate summary")}
2finally{y(!1)}},N=e=>{C(e),A(!0)},P=e=>{f(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},T=e=>{const[t,n,a]=e.split("-").map(Number);return new Date(t,n-1,a)},F=(0,o.useMemo)(()=>{let e=s;return p.length>0&&(e=e.filter(e=>p.includes(e.child_id))),e=e.filter(e=>{const t=T(e.date);if("today"===d)return dQ(t,c);if("week"===d){const e=w$(c),n=gQ(c);return t>=e&&t<=n}return"month"!==d||lQ(t,c)}),e.sort((e,t)=>{const n=e.date.localeCompare(t.date);return 0!==n?n:e.start_time&&t.start_time?e.start_time.localeCompare(t.start_time):0}),e},[s,p,d,c]),O=(0,o.useMemo)(()=>{const e={},t=p.length>0?s.filter(e=>p.includes(e.child_id)):s;return t.forEach(t=>{e[t.date]||(e[t.date]=[]),e[t.date].push(t)}),e},[s,p]),I=(0,o.useMemo)(()=>{if("week"===d)return jZ({start:w$(c),end:gQ(c)});{const e=eQ(c),t=tQ(c);return jZ({start:w$(e),end:gQ(t)})}},[c,d]);if(n)return(0,_h.jsxs)("div",{className:"space-y-4",children:[(0,_h.jsx)(yZ,{className:"h-12 rounded-xl"}),(0,_h.jsx)(yZ,{className:"h-20 rounded-2xl"}),(0,_h.jsx)(yZ,{className:"h-64 rounded-2xl"})]});const{family_members:R}=r||{},M=(null===R||void 0===R?void 0:R.filter(e=>p.includes(e.id)))||[];return(0,_h.jsxs)("div",{className:"min-h-screen pb-24 md:pb-8",children:[(0,_h.jsxs)("div",{className:"mb-4",children:[(0,_h.jsx)("h1",{className:"text-2xl font-bold text-gray-900",children:"Dashboard"}),(0,_h.jsx)("p",{className:"text-sm text-gray-500",children:X$(new Date,"EEEE, MMMM d, yyyy")})]}),(0,_h.jsxs)("div",{className:"mb-4 space-y-3",children:[(0,_h.jsxs)("div",{className:"flex gap-2 overflow-x-auto pb-1 -mx-4 px-4 md:mx-0 md:px-0",children:[(0,_h.jsx)(w4,{icon:zZ,label:"Today",isActive:"today"===d,onClick:()=>{h("today"),u(new Date)}}),(0,_h.jsx)(w4,{icon:LZ,label:"Week",isActive:"week"===d,onClick:()=>{h("week"),u(new Date)}}),(0,_h.jsx)(w4,{icon:iZ,label:"Month",isActive:"month"===d,onClick:()=>{h("month"),u(new Date)}}),(null===R||void 0===R?void 0:R.length)>0&&(0,_h.jsxs)(WJ,{open:m,onOpenChange:g,children:[(0,_h.jsx)(KJ,{asChild:!0,children:(0,_h.jsxs)("button",{className:"flex items-center gap-2 px-4 py-2.5 rounded-xl text-sm font-medium bg-white border border-gray-200 hover:border-gray-300 transition-all whitespace-nowrap",children:[p.length>0&&p.length<=2?(0,_h.jsx)("div",{className:"flex -space-x-1",children:M.slice(0,2).map(e=>(0,_h.jsx)("div",{className:"w-4 h-4 rounded-full border-2 border-white",style:{backgroundColor:e.color}},e.id))}):(0,_h.jsx)(eZ,{className:"h-4 w-4"}),(0,_h.jsx)("span",{children:(()=>{if(0===p.length)return"All Kids";if(1===p.length){var e;const t=null===r||void 0===r||null===(e=r.family_members)||void 0===e?void 0:e.find(e=>e.id===p[0]);return(null===t||void 0===t?void 0:t.name)||"1 Kid"}return"".concat(p.length," Kids")})()}),(0,_h.jsx)(jJ,{className:"h-3 w-3 text-gray-400"})]})}),(0,_h.jsx)(YJ,{className:"w-56 p-2",align:"start",children:(0,_h.jsxs)("div",{className:"space-y-1",children:[(0,_h.jsxs)("div",{className:"flex gap-2 pb-2 mb-2 border-b border-gray-100",children:[(0,_h.jsx)("button",{onClick:()=>{null!==r&&void 0!==r&&r.family_members&&f(r.family_members.map(e=>e.id))},className:"flex-1 text-xs text-blue-600 hover:text-blue-700 py-1",children:"Select All"}),(0,_h.jsx)("button",{onClick:()=>{f([])},className:"flex-1 text-xs text-gray-500 hover:text-gray-700 py-1",children:"Clear"})]}),R.map(e=>{var t;return(0,_h.jsxs)("button",{onClick:()=>P(e.id),className:"w-full flex items-center gap-3 px-2 py-2 rounded-lg hover:bg-gray-50 transition-colors",children:[(0,_h.jsx)("div",{className:"w-5 h-5 rounded flex items-center justify-center border-2 transition-colors ".concat(p.includes(e.id)?"border-blue-500 bg-blue-500":"border-gray-300"),children:p.includes(e.id)&&(0,_h.jsx)(KG,{className:"h-3 w-3 text-white"})}),(0,_h.jsx)("div",{className:"w-6 h-6 rounded-full flex items-center justify-center text-white text-xs font-bold",style:{backgroundColor:e.color},children:null===(t=e.name)||void 0===t?void 0:t.charAt(0)}),(0,_h.jsx)("span",{className:"text-sm text-gray-700",children:e.name})]},e.id)})]})})]})]}),p.length>0&&(0,_h.jsx)("div",{className:"flex gap-2 flex-wrap",children:M.map(e=>(0,_h.jsxs)("button",{onClick:()=>P(e.id),className:"flex items-center gap-1.5 px-2.5 py-1 rounded-lg text-xs font-medium text-white transition-all hover:opacity-80",style:{backgroundColor:e.color},children:[e.name,(0,_h.jsx)("span",{className:"ml-1 opacity-70",children:"\xd7"})]},e.id))})]}),(0,_h.jsxs)("div",{className:"space-y-6",children:[(0,_h.jsxs)(y4,{className:"p-4 md:p-6",children:[(0,_h.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,_h.jsx)("div",{className:"w-10 h-10 md:w-12 md:h-12 rounded-xl bg-gradient-to-br from-purple-500 to-pink-500 flex items-center justify-center",children:(0,_h.jsx)(UZ,{className:"h-5 w-5 md:h-6 md:w-6 text-white"})}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("span",{className:"font-semibold text-gray-900",children:(()=>{switch(d){case"today":return"Today's Summary";case"week":return"This Week";case"month":return"This Month";default:return"Summary"}})()}),p.length>0&&(0,_h.jsxs)("p",{className:"text-sm text-gray-500",children:["for ",1===p.length?null===(e=M[0])||void 0===e?void 0:e.name:"".concat(p.length," kids")]})]})]}),(0,_h.jsxs)(RG,{variant:"outline",size:"sm",onClick:S,disabled:v,className:"rounded-xl",children:[v?(0,_h.jsx)(VZ,{className:"h-4 w-4 animate-spin mr-2"}):(0,_h.jsx)(qZ,{className:"h-4 w-4 mr-2"}),w?"Refresh":"Generate"]})]}),(0,_h.jsx)("div",{className:"text-sm md:text-base leading-relaxed",children:w?(0,_h.jsx)(x4,{content:w.summary}):(0,_h.jsxs)("p",{className:"text-gray-400",children:['Click "Generate" for ',"today"===d?"today's":"week"===d?"this week's":"this month's"," AI summary"]})})]}),(0,_h.jsxs)(y4,{className:"p-4 md:p-6 overflow-hidden",children:[(0,_h.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_h.jsx)(RG,{variant:"ghost",size:"icon",onClick:()=>{u("today"===d?e=>pQ(e,1):"week"===d?e=>SZ(e,1):e=>NZ(e,1))},className:"h-8 w-8 rounded-xl",children:(0,_h.jsx)(GJ,{className:"h-4 w-4"})}),(0,_h.jsx)("h2",{className:"text-sm font-bold text-gray-900 min-w-[160px] text-center",children:(()=>
2{if("today"===d)return X$(c,"MMMM d, yyyy");if("week"===d){const e=w$(c),t=gQ(c);return"".concat(X$(e,"MMM d")," - ").concat(X$(t,"MMM d, yyyy"))}return X$(c,"MMMM yyyy")})()}),(0,_h.jsx)(RG,{variant:"ghost",size:"icon",onClick:()=>{u("today"===d?e=>uQ(e,1):"week"===d?e=>fQ(e,1):e=>sQ(e,1))},className:"h-8 w-8 rounded-xl",children:(0,_h.jsx)(WG,{className:"h-4 w-4"})})]}),!dQ(c,new Date)&&(0,_h.jsx)(RG,{variant:"outline",size:"sm",onClick:()=>{u(new Date)},className:"rounded-xl text-xs h-8",children:"Today"})]}),"today"===d?(0,_h.jsx)(b4,{events:F,date:c,onEventClick:N,allEvents:s,onNavigateToDate:e=>u(e)}):(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsxs)("div",{className:"space-y-1",children:[(0,_h.jsx)("div",{className:"grid grid-cols-7 gap-0.5",children:["S","M","T","W","T","F","S"].map((e,t)=>(0,_h.jsx)("div",{className:"text-center text-[10px] font-semibold text-gray-400 py-1",children:e},t))}),(0,_h.jsx)("div",{className:"grid grid-cols-7 gap-0.5",children:I.map(e=>{const t=X$(e,"yyyy-MM-dd"),n=O[t]||[],a="week"===d||lQ(e,c),r=TZ(e);return(0,_h.jsxs)("div",{onClick:()=>{1===n.length?N(n[0]):n.length>1&&(h("today"),u(e))},className:"min-h-[80px] p-1 rounded-lg transition-all cursor-pointer hover:bg-gray-50 border border-gray-100 ".concat(a?"bg-white":"opacity-30 bg-gray-50/50"," ").concat(r?"bg-blue-50 ring-2 ring-blue-300 border-blue-200":""),children:[(0,_h.jsx)("div",{className:"text-xs font-semibold mb-1 ".concat(r?"text-blue-600":"text-gray-700"),children:X$(e,"d")}),n.length>0&&(0,_h.jsxs)("div",{className:"space-y-0.5 overflow-hidden",children:[n.slice(0,3).map((e,t)=>{var n,a,r,o;const i=(null===(n=e.child)||void 0===n?void 0:n.color)||(null===(a=e.activity)||void 0===a?void 0:a.color)||"#5DADE2";return(0,_h.jsxs)("div",{className:"flex items-center gap-1 px-1 py-0.5 rounded text-[9px] truncate",style:{backgroundColor:"".concat(i,"20"),borderLeft:"2px solid ".concat(i)},title:"".concat(e.title," - ").concat(e.start_time),children:[(0,_h.jsx)("span",{className:"font-medium text-gray-700 truncate",children:null===(r=e.start_time)||void 0===r?void 0:r.slice(0,5)}),(0,_h.jsx)("span",{className:"text-gray-600 truncate flex-1",children:(null===(o=e.title)||void 0===o?void 0:o.length)>12?e.title.slice(0,12)+"...":e.title})]},t)}),n.length>3&&(0,_h.jsxs)("div",{className:"text-[9px] text-gray-400 text-center font-medium",children:["+",n.length-3," more"]})]})]},e.toISOString())})})]}),F.length>0&&(0,_h.jsxs)("div",{className:"mt-4 pt-4 border-t border-gray-100",children:[(0,_h.jsxs)("h3",{className:"font-semibold text-gray-900 text-sm mb-3",children:["week"===d?"This Week's Events":"This Month's Events",(0,_h.jsxs)("span",{className:"ml-2 text-gray-400 font-normal",children:["(",F.length,")"]})]}),(0,_h.jsxs)("div",{className:"space-y-2 max-h-[200px] overflow-y-auto",children:[F.slice(0,10).map(e=>{var t,n;const a=(null===(t=e.child)||void 0===t?void 0:t.color)||(null===(n=e.activity)||void 0===n?void 0:n.color)||"#5DADE2";return(0,_h.jsxs)("div",{onClick:()=>N(e),className:"flex items-center gap-3 p-2 bg-gray-50 rounded-lg cursor-pointer hover:bg-gray-100 transition-colors",children:[(0,_h.jsx)("div",{className:"w-1 h-8 rounded-full flex-shrink-0",style:{backgroundColor:a}}),(0,_h.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_h.jsx)("p",{className:"font-medium text-gray-900 text-xs truncate",children:e.title}),"completed"===e.status&&(0,_h.jsx)(FZ,{className:"h-3 w-3 text-green-500 flex-shrink-0"}),"skipped"===e.status&&(0,_h.jsx)(OZ,{className:"h-3 w-3 text-orange-500 flex-shrink-0"})]}),(0,_h.jsxs)("p",{className:"text-[10px] text-gray-500",children:[X$(T(e.date),"EEE, MMM d")," \u2022 ",e.start_time]})]})]},e.id)}),F.length>10&&(0,_h.jsxs)("p",{className:"text-xs text-center text-gray-400 pt-1",children:["+",F.length-10," more"]})]})]}),(null===R||void 0===R?void 0:R.length)>0&&(0,_h.jsx)("div",{className:"flex items-center gap-3 mt-3 pt-3 border-t border-gray-100 overflow-x-auto",children:R.map(e=>(0,_h.jsxs)("div",{className:"flex items-center gap-1.5 flex-shrink-0",children:[(0,_h.jsx)("div",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:e.color}}),(0,_h.jsx)("span",{className:"text-xs text-gray-500",children:e.name})]},e.id))})]})]})]}),!(null!==R&&void 0!==R&&R.length)&&!(null!==s&&void 0!==s&&s.length)&&(0,_h.jsxs)(y4,{className:"p-8 text-center mt-4",children:[(0,_h.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-2xl bg-gradient-to-br from-blue-100 to-purple-100 flex items-center justify-center",children:(0,_h.jsx)(BZ,{className:"h-8 w-8 text-blue-500"})}),(0,_h.jsx)("h3",{className:"text-lg font-bold text-gray-900 mb-2",children:"Welcome to Unified!"}),(0,_h.jsx)("p",{className:"text-sm text-gray-500 mb-5",children:"Start by adding your kids and their activities."}),(0,_h.jsxs)(RG,{onClick:()=>t("/family"),className:"rounded-xl w-full",style:{background:"linear-gradient(135deg, #5DADE2, #8E44AD)"},children:[(0,_h.jsx)(eZ,{className:"mr-2 h-4 w-4"}),"Set up My Family"]})]}),(0,_h.jsx)(_4,{event:k,open:D,onClose:()=>A(!1),onStatusUpdate:async(e,t)=>{const n=await uY(e,t);return l(t=>t.map(t=>
2t.id===e?n:t)),n},onEdit:e=>{A(!1),t("/family?tab=events&edit=".concat(e.id))}})]})},C4=["className"],D4=o.forwardRef((e,t)=>{let{className:n}=e,a=l(e,C4);return(0,_h.jsx)("textarea",p({className:FG("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n),ref:t},a))});D4.displayName="Textarea";const A4=["className"],E4=["className"],j4=["className"],S4=ff,N4=o.forwardRef((e,t)=>{let{className:n}=e,a=l(e,A4);return(0,_h.jsx)(mf,p({ref:t,className:FG("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",n)},a))});N4.displayName=mf.displayName;const P4=o.forwardRef((e,t)=>{let{className:n}=e,a=l(e,E4);return(0,_h.jsx)(gf,p({ref:t,className:FG("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",n)},a))});P4.displayName=gf.displayName;const T4=o.forwardRef((e,t)=>{let{className:n}=e,a=l(e,j4);return(0,_h.jsx)(vf,p({ref:t,className:FG("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",n)},a))});T4.displayName=vf.displayName;const F4=HG("navigation",[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]]),O4=HG("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]),I4=e=>{let{value:t="",onChange:n,onLocationSelect:a,placeholder:r="Search for an address...",homeAddress:i=null,eventStartTime:s=null,className:l="",showTravelTime:c=!0,disabled:u=!1}=e;const[d,h]=(0,o.useState)(t),[p,f]=(0,o.useState)([]),[m,g]=(0,o.useState)(!1),[v,y]=(0,o.useState)(!1),[w,_]=(0,o.useState)(null),[x,b]=(0,o.useState)(null),[k,C]=(0,o.useState)(!1),D=(0,o.useRef)(null),A=(0,o.useRef)(null),E=((e,t)=>{const[n,a]=(0,o.useState)(e);return(0,o.useEffect)(()=>{const n=setTimeout(()=>{a(e)},t);return()=>clearTimeout(n)},[e,t]),n})(d,300);(0,o.useEffect)(()=>{const e=e=>{D.current&&!D.current.contains(e.target)&&y(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,o.useEffect)(()=>{(async()=>{if(!E||E.length<3)f([]);else{g(!0);try{const e=await nY.get("/geocode/search",{params:{q:E}});f(e.data.results||[])}catch(e){console.error("Address search failed:",e),f([])}finally{g(!1)}}})()},[E]),(0,o.useEffect)(()=>{(async()=>{if(c&&null!==i&&void 0!==i&&i.lat&&null!==w&&void 0!==w&&w.lat){C(!0);try{const e=await nY.get("/geocode/travel-time",{params:{from_lat:i.lat,from_lon:i.lon,to_lat:w.lat,to_lon:w.lon,departure_time:s||null}});b(e.data)}catch(e){console.error("Travel time calculation failed:",e),b(null)}finally{C(!1)}}else b(null)})()},[w,i,s,c]);const j=e=>{if(!e)return"";return e.split(",").slice(0,3).join(",")};return(0,_h.jsxs)("div",{ref:D,className:"relative ".concat(l),children:[(0,_h.jsxs)("div",{className:"relative",children:[(0,_h.jsx)(RZ,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-400"}),(0,_h.jsx)(CJ,{ref:A,type:"text",value:d,onChange:e=>{const t=e.target.value;h(t),y(!0),_(null),b(null),null===n||void 0===n||n(t,null)},onFocus:()=>y(!0),placeholder:r,disabled:u,className:"h-11 rounded-xl pl-10 pr-10","data-testid":"address-search-input"}),d&&(0,_h.jsx)("button",{type:"button",onClick:()=>{var e;h(""),_(null),b(null),f([]),null===n||void 0===n||n("",null),null===(e=A.current)||void 0===e||e.focus()},className:"absolute right-3 top-1/2 -translate-y-1/2 p-1 rounded-full hover:bg-gray-100 transition-colors",children:(0,_h.jsx)(lJ,{className:"h-4 w-4 text-gray-400"})}),m&&(0,_h.jsx)(VZ,{className:"absolute right-10 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-400 animate-spin"})]}),v&&p.length>0&&(0,_h.jsx)("div",{className:"absolute z-50 mt-1 w-full bg-white rounded-xl shadow-lg border border-gray-200 max-h-60 overflow-y-auto",children:p.map((e,t)=>(0,_h.jsxs)("button",{type:"button",onClick:()=>(e=>
2{const t=e.display_name;h(t),_({lat:e.lat,lon:e.lon,display_name:t}),f([]),y(!1),null===n||void 0===n||n(t,{lat:e.lat,lon:e.lon}),null===a||void 0===a||a(e)})(e),className:"w-full flex items-start gap-3 px-4 py-3 hover:bg-gray-50 transition-colors text-left border-b border-gray-100 last:border-0","data-testid":"address-suggestion-".concat(t),children:[(0,_h.jsx)(RZ,{className:"h-4 w-4 text-blue-500 mt-0.5 flex-shrink-0"}),(0,_h.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,_h.jsx)("p",{className:"text-sm font-medium text-gray-900 truncate",children:j(e.display_name)}),(0,_h.jsx)("p",{className:"text-xs text-gray-500 truncate",children:e.display_name})]})]},t))}),w&&(0,_h.jsxs)("div",{className:"mt-2 p-3 bg-gradient-to-r from-blue-50 to-indigo-50 rounded-xl border border-blue-100",children:[(0,_h.jsxs)("div",{className:"flex items-center justify-between",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_h.jsx)("div",{className:"w-8 h-8 rounded-lg bg-blue-500 flex items-center justify-center",children:(0,_h.jsx)(RZ,{className:"h-4 w-4 text-white"})}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("p",{className:"text-sm font-medium text-gray-900 truncate max-w-[200px]",children:j(d)}),c&&(null===i||void 0===i?void 0:i.lat)&&(0,_h.jsx)("div",{className:"flex items-center gap-2 mt-0.5",children:k?(0,_h.jsxs)("span",{className:"flex items-center gap-1 text-xs text-gray-500",children:[(0,_h.jsx)(VZ,{className:"h-3 w-3 animate-spin"}),"Calculating..."]}):x?(0,_h.jsxs)("span",{className:"flex items-center gap-1 text-xs text-blue-600 font-medium",children:[(0,_h.jsx)(IZ,{className:"h-3 w-3"}),x.formatted," from home",x.is_rush_hour&&(0,_h.jsx)("span",{className:"text-orange-500",children:"(rush hour)"})]}):null})]})]}),(0,_h.jsxs)("button",{type:"button",onClick:()=>{if(!w)return;const{lat:e,lon:t}=w,n=encodeURIComponent(d);if(/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)){const a="https://www.google.com/maps/dir/?api=1&destination=".concat(e,",").concat(t,"&destination_place_id=").concat(n);window.open(a,"_blank")}else{const n="https://www.google.com/maps/search/?api=1&query=".concat(e,",").concat(t);window.open(n,"_blank")}},className:"flex items-center gap-1 px-3 py-1.5 text-xs font-medium text-blue-600 hover:text-blue-700 hover:bg-blue-100 rounded-lg transition-colors","data-testid":"open-in-maps-btn",children:[(0,_h.jsx)(F4,{className:"h-3 w-3"}),"Directions",(0,_h.jsx)(O4,{className:"h-3 w-3"})]})]}),c&&!(null!==i&&void 0!==i&&i.lat)&&(0,_h.jsxs)("div",{className:"mt-2 flex items-center gap-2 text-xs text-amber-600 bg-amber-50 px-2 py-1.5 rounded-lg",children:[(0,_h.jsx)(ZX,{className:"h-3 w-3"}),(0,_h.jsx)("span",{children:"Set your home address in Settings to see travel times"})]})]})]})},R4=(HG("circle-dot",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]),HG("target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]])),M4=(HG("waves",[["path",{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"knzxuh"}],["path",{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"2jd2cc"}],["path",{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"rd2r6e"}]]),HG("music-2",[["circle",{cx:"8",cy:"18",r:"4",key:"1fc0mg"}],["path",{d:"M12 18V2l7 4",key:"g04rme"}]]),HG("footprints",[["path",{d:"M4 16v-2.38C4 11.5 2.97 10.5 3 8c.03-2.72 1.49-6 4.5-6C9.37 2 10 3.8 10 5.5c0 3.11-2 5.66-2 8.68V16a2 2 0 1 1-4 0Z",key:"1dudjm"}],["path",{d:"M20 20v-2.38c0-2.12 1.03-3.12 1-5.62-.03-2.72-1.49-6-4.5-6C14.63 6 14 7.8 14 9.5c0 3.11 2 5.66 2 8.68V20a2 2 0 1 0 4 0Z",key:"l2t8xc"}],["path",{d:"M16 17h4",key:"1dejxt"}],["path",{d:"M4 13h4",key:"1bwh8b"}]]),HG("bike",[["circle",{cx:"18.5",cy:"17.5",r:"3.5",key:"15x4ox"}],["circle",{cx:"5.5",cy:"17.5",r:"3.5",key:"1noe27"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["path",{d:"M12 17.5V14l-3-3 4-3 2 3h2",key:"1npguv"}]]),HG("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]])),B4=HG("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}
2],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),z4=HG("upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]),L4=HG("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]),U4=HG("crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]),V4=HG("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),q4=HG("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]),H4=HG("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]),W4=HG("arrow-up-down",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]),K4=HG("list-todo",[["rect",{x:"3",y:"5",width:"6",height:"6",rx:"1",key:"1defrl"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]),Y4=HG("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]),G4=HG("cloud-download",[["path",{d:"M12 13v8l-4-4",key:"1f5nwf"}],["path",{d:"m12 21 4-4",key:"1lfcce"}],["path",{d:"M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284",key:"ui1hmy"}]]),J4=HG("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]),$4=HG("file-up",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"m15 15-3-3-3 3",key:"15xj92"}]]),Q4=e=>{let{children:t,className:n=""}=e;return(0,_h.jsx)("div",{className:"relative ".concat(n),style:{background:"rgba(255, 255, 255, 0.95)",backdropFilter:"blur(40px)",WebkitBackdropFilter:"blur(40px)",borderRadius:"16px",boxShadow:"0 2px 16px -4px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.03)"},children:t})},X4=[{value:"#10B981",name:"Emerald"},{value:"#22C55E",name:"Green"},{value:"#F97316",name:"Orange"},{value:"#3B82F6",name:"Blue"},{value:"#EC4899",name:"Pink"},{value:"#8B5CF6",name:"Purple"},{value:"#EF4444",name:"Red"},{value:"#F59E0B",name:"Amber"},{value:"#14B8A6",name:"Teal"},{value:"#6366F1",name:"Indigo"},{value:"#06B6D4",name:"Cyan"},{value:"#84CC16",name:"Lime"},{value:"#0EA5E9",name:"Sky"},{value:"#D946EF",name:"Fuchsia"},{value:"#78716C",name:"Stone"},{value:"#1E3A8A",name:"Navy"},{value:"#7C3AED",name:"Violet"},{value:"#DB2777",name:"Rose"}],Z4={"Ball Sports":[{name:"Soccer",icon:"\u26bd",color:"hsl(142, 71%, 45%)"},{name:"Basketball",icon:"\ud83c\udfc0",color:"hsl(24, 95%, 53%)"},{name:"Baseball",icon:"\u26be",color:"hsl(221, 83%, 53%)"},{name:"Softball",icon:"\ud83e\udd4e",color:"hsl(340, 82%, 52%)"},{name:"T-Ball",icon:"\u26be",color:"hsl(45, 93%, 47%)"},{name:"Football",icon:"\ud83c\udfc8",color:"hsl(25, 95%, 40%)"},{name:"Flag Football",icon:"\ud83c\udfc8",color:"hsl(340, 82%, 52%)"},{name:"Volleyball",icon:"\ud83c\udfd0",color:"hsl(271, 81%, 56%)"},{name:"Tennis",icon:"\ud83c\udfbe",color:"hsl(84, 81%, 44%)"},{name:"Golf",icon:"\u26f3",color:"hsl(142, 71%, 35%)"},{name:"Rugby",icon:"\ud83c\udfc9",color:"hsl(0, 84%, 45%)"},{name:"Lacrosse",icon:"\ud83e\udd4d",color:"hsl(199, 89%, 48%)"},{name:"Field Hockey",icon:"\ud83c\udfd1",color:"hsl(328, 85%, 60%)"},{name:"Ice Hockey",icon:"\ud83c\udfd2",color:"hsl(199, 89%, 38%)"},{name:"Cricket",icon:"\ud83c\udfcf",color:"hsl(45, 93%, 47%)"},{name:"Pickleball",icon:"\ud83c\udfd3",color:"hsl(174, 72%, 40%)"},{name:"Badminton",icon:"\ud83c\udff8",color:"hsl(271, 81%, 56%)"},{name:"Table Tennis",icon:"\ud83c\udfd3",color:"hsl(0, 84%, 60%)"},{name:"Handball",icon:"\ud83e\udd3e",color:"hsl(24, 95%, 53%)"}],"Water Sports":[{name:"Swimming",icon:"\ud83c\udfca",color:"hsl(199, 89%, 48%)"},{name:"Diving",icon:"\ud83e\udd3f",color:"hsl(199, 89%, 38%)"},{name:"Water Polo",icon:"\ud83e\udd3d",color:"hsl(199, 89%, 58%)"},{name:"Synchronized Swimming",icon:"\ud83c\udfca\u200d\u2640\ufe0f",color:"hsl(328, 85%, 60%)"},{name:"Surfing",icon:"\ud83c\udfc4",color:"hsl(174, 72%, 40%)"},{name:"Kayaking",icon:"\ud83d\udef6",color:"hsl(45, 93%, 47%)"},{name:"Rowing",icon:"\ud83d\udea3",color:"hsl(221, 83%, 53%)"},{name:"Sailing",icon:"\u26f5",color:"hsl(199, 89%, 48%)"}],"Combat & Martial Arts":[{name:"Karate",icon:"\ud83e\udd4b",color:"hsl(0, 84%, 45%)"},{name:"Taekwondo",icon:"\ud83e\udd4b",color:"hsl(221, 83%, 53%)"},{name:"Judo",icon:"\ud83e\udd4b",color:"hsl(45, 93%, 47%)"},{name:"Jiu-Jitsu",icon:"\ud83e\udd4b",color:"hsl(271, 81%, 56%)"},{name:"Wrestling",icon:"\ud83e\udd3c",color:"hsl(24, 95%, 53%)"},{name:"Boxing",icon:"\ud83e\udd4a",color:"hsl(0, 84%, 60%)"},{name:"Kickboxing",icon:"\ud83e\udd4a",color:"hsl(340, 82%, 52%)"},{name:"Fencing",icon:"\ud83e\udd3a",color:"hsl(0, 0%, 40%)"},{name:"Kung Fu",icon:"\ud83e\udd4b",color:"hsl(0, 84%, 35%)"}],"Gymnastics & Dance":[{name:"Gymnastics",icon:"\ud83e\udd38",color:"hsl(328, 85%, 60%)"},{name:"Dance",icon:"\ud83d\udc83",color:"hsl(340, 82%, 52%)"},{name:"Ballet",icon:"\ud83e\ude70",color:"hsl(328, 85%, 70%)"},{name:"Hip Hop Dance",icon:"\ud83d\udd7a",color:"hsl(271, 81%, 56%)"},{name:"Jazz Dance",icon:"\ud83d\udc83",color:"hsl(45, 93%, 47%)"},{name:"Tap Dance",icon:"\ud83d\udc60",color:"hsl(0, 0%, 30%)"},{name:"Cheerleading",icon:"\ud83d\udce3",color:"hsl(340, 82%, 52%)"},{name:"Acrobatics",icon:"\ud83e\udd38\u200d\u2640\ufe0f",color:"hsl(24, 95%, 53%)"},{name:"Rhythmic Gymnastics",icon:"\ud83c\udf80",color:"hsl(328, 85%, 60%)"},{name:"Trampoline",icon:"\ud83e\udd38",color:"hsl(142, 71%, 45%)"}],"Track & Field":[{name:"Track & Field",icon:"\ud83c\udfc3",color:"hsl(0, 84%, 60%)"},{name:"Running",icon:"\ud83c\udfc3",color:"hsl(24, 95%, 53%)"},{name:"Cross Country",icon:"\ud83c\udfc3\u200d\u2642\ufe0f",color:"hsl(142, 71%, 35%)"},{name:"Sprints",icon:"\ud83d\udca8",color:"hsl(0, 84%, 60%)"},{name:"Long Jump",icon:"\ud83e\udd98",color:"hsl(45, 93%, 47%)"},{name:"High Jump",icon:"\u2b06\ufe0f",color:"hsl(199, 89%, 48%)"},{name:"Shot Put",icon:"\ud83c\udfcb\ufe0f",color:"hsl(0, 0%, 40%)"},{name:"Javelin",icon:"\ud83c\udfaf",color:"hsl(142, 71%, 45%)"},{name:"Pole Vault",icon:"\ud83e\udd47",color:"hsl(45, 93%, 47%)"}],"Cycling & Wheeled Sports":[{name:"Cycling",icon:"\ud83d\udeb4",color:"hsl(142, 71%, 45%)"},{name:"BMX",icon:"\ud83d\udeb2",color:"hsl(24, 95%, 53%)"},{name:"Mountain Biking",icon:"\ud83d\udeb5",color:"hsl(25, 95%, 35%)"},{name:"Skateboarding",icon:"\ud83d\udef9",color:"hsl(0, 0%, 30%)"},{name:"Roller Skating",icon:"\ud83d\udefc",color:"hsl(328, 85%, 60%)"},{name:"Inline Skating",icon:"\ud83d\udefc",color:"hsl(199, 89%, 48%)"},{name:"Scootering",icon:"\ud83d\udef4",color:"hsl(84, 81%, 44%)"}],"Winter Sports":[{name:"Ice Skating",icon:"\u26f8\ufe0f",color:"hsl(199, 89%, 68%)"},{name:"Figure Skating",icon:"\u26f8\ufe0f",color:"hsl(328, 85%, 60%)"},{name:"Skiing",icon:"\u26f7\ufe0f",color:"hsl(199, 89%, 48%)"},{name:"Snowboarding",icon:"\ud83c\udfc2",color:"hsl(271, 81%, 56%)"},{name:"Sledding",icon:"\ud83d\udef7",color:"hsl(0, 84%, 45%)"},{name:"Curling",icon:"\ud83e\udd4c",color:"hsl(0, 0%, 40%)"}],"Racquet Sports":[{name:"Squash",icon:"\ud83c\udfbe",color:"hsl(221, 83%, 53%)"},{name:"Racquetball",icon:"\ud83c\udfbe",color:"hsl(199, 89%, 48%)"}],"Outdoor & Adventure":[{name:"Rock Climbing",icon:"\ud83e\uddd7",color:"hsl(25, 95%, 40%)"},{name:"Hiking",icon:"\ud83e\udd7e",color:"hsl(142, 71%, 35%)"},{name:"Archery",icon:"\ud83c\udff9",color:"hsl(142, 71%, 45%)"},{name:"Horseback Riding",icon:"\ud83c\udfc7",color:"hsl(25, 95%, 35%)"},{name:"Fishing",icon:"\ud83c\udfa3",color:"hsl(199, 89%, 48%)"},{name:"Camping",icon:"\ud83c\udfd5\ufe0f",color:"hsl(142, 71%, 35%)"}
2],"Mind Sports & Games":[{name:"Chess",icon:"\u265f\ufe0f",color:"hsl(0, 0%, 20%)"},{name:"Esports",icon:"\ud83c\udfae",color:"hsl(271, 81%, 56%)"}],"Other Activities":[{name:"Scouts",icon:"\ud83c\udfd5\ufe0f",color:"hsl(45, 93%, 35%)"},{name:"Music Lessons",icon:"\ud83c\udfb5",color:"hsl(271, 81%, 56%)"},{name:"Piano",icon:"\ud83c\udfb9",color:"hsl(0, 0%, 20%)"},{name:"Guitar",icon:"\ud83c\udfb8",color:"hsl(25, 95%, 40%)"},{name:"Violin",icon:"\ud83c\udfbb",color:"hsl(25, 95%, 35%)"},{name:"Drama/Theater",icon:"\ud83c\udfad",color:"hsl(340, 82%, 52%)"},{name:"Art Class",icon:"\ud83c\udfa8",color:"hsl(340, 82%, 52%)"},{name:"Coding/Robotics",icon:"\ud83e\udd16",color:"hsl(199, 89%, 48%)"},{name:"Debate",icon:"\ud83c\udfa4",color:"hsl(221, 83%, 53%)"},{name:"STEM Club",icon:"\ud83d\udd2c",color:"hsl(142, 71%, 45%)"},{name:"Book Club",icon:"\ud83d\udcda",color:"hsl(25, 95%, 40%)"},{name:"Tutoring",icon:"\ud83d\udcd6",color:"hsl(199, 89%, 48%)"},{name:"Yoga",icon:"\ud83e\uddd8",color:"hsl(174, 72%, 40%)"},{name:"Pilates",icon:"\ud83e\uddd8\u200d\u2640\ufe0f",color:"hsl(328, 85%, 60%)"}]},e3=Object.entries(Z4).flatMap(e=>{let[t,n]=e;return n.map(e=>p(p({},e),{},{category:t}))}),t3=[{id:"practice",name:"Practice",icon:"\ud83c\udfc3",color:"bg-blue-100 text-blue-700"},{id:"game",name:"Game",icon:"\ud83c\udfaf",color:"bg-green-100 text-green-700"},{id:"tournament",name:"Tournament",icon:"\ud83c\udfc6",color:"bg-yellow-100 text-yellow-700"},{id:"tryout",name:"Tryout",icon:"\ud83d\udccb",color:"bg-purple-100 text-purple-700"},{id:"scrimmage",name:"Scrimmage",icon:"\u2694\ufe0f",color:"bg-orange-100 text-orange-700"},{id:"camp",name:"Camp/Clinic",icon:"\ud83c\udfaa",color:"bg-pink-100 text-pink-700"},{id:"lesson",name:"Lesson",icon:"\ud83d\udcda",color:"bg-indigo-100 text-indigo-700"},{id:"recital",name:"Recital/Performance",icon:"\ud83c\udfad",color:"bg-rose-100 text-rose-700"},{id:"competition",name:"Competition",icon:"\ud83e\udd47",color:"bg-amber-100 text-amber-700"},{id:"meeting",name:"Meeting",icon:"\ud83d\udc65",color:"bg-gray-100 text-gray-700"}],n3=e=>{var t,n,a,r;let{members:i,setMembers:s,isPro:l=!1,events:c=[],activities:u=[]}=e;const[d,h]=(0,o.useState)(!1),[f,m]=(0,o.useState)(null),[g,v]=(0,o.useState)({name:"",birth_month:"",birth_year:"",color:X4[0].value,photo:null}),[y,w]=(0,o.useState)({open:!1,memberId:null,memberName:""}),[_,x]=(0,o.useState)(!1),[b,k]=(0,o.useState)(null),[C,D]=(0,o.useState)(!1),A=o.useRef(null),E=[{value:1,label:"January"},{value:2,label:"February"},{value:3,label:"March"},{value:4,label:"April"},{value:5,label:"May"},{value:6,label:"June"},{value:7,label:"July"},{value:8,label:"August"},{value:9,label:"September"},{value:10,label:"October"},{value:11,label:"November"},{value:12,label:"December"}],j=(new Date).getFullYear(),S=Array.from({length:25},(e,t)=>j-t),N=(e,t)=>{var n,a;return e||t?e&&t?"".concat((null===(a=E.find(t=>t.value===e))||void 0===a?void 0:a.label)||""," ").concat(t):t?t.toString():(null===(n=E.find(t=>t.value===e))||void 0===n?void 0:n.label)||"":null},P=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e?(m(e),v({name:e.name,birth_month:e.birth_month||"",birth_year:e.birth_year||"",color:e.color||X4[0].value,photo:e.photo||null}),k(e.photo||null),x(!X4.find(t=>t.value===e.color))):(m(null),v({name:"",birth_month:"",birth_year:"",color:X4[i.length%X4.length].value,photo:null}),k(null),x(!1)),h(!0)},T=async e=>{try{await(async e=>{await ZK.delete("/family-members/".concat(e))})(e),s(t=>t.filter(t=>t.id!==e)),wH.success("Removed"),w({open:!1,memberId:null,memberName:""})}catch(t){wH.error("Failed to remove")}};return(0,_h.jsxs)("div",{className:"space-y-4",children:[(0,_h.jsxs)("div",{className:"flex items-center justify-between",children:[(0,_h.jsxs)("p",{className:"text-sm text-gray-500",children:[i.length," family member",1!==i.length?"s":""]}),(0,_h.jsxs)(RG,{onClick:()=>P(),className:"rounded-xl h-10 text-sm","data-testid":"add-family-member-button",children:[(0,_h.jsx)(cZ,{className:"mr-1.5 h-4 w-4"})," Add Child"]})]}),0===i.length?(0,_h.jsxs)("div",{className:"text-center py-12",children:[(0,_h.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-2xl bg-gradient-to-br from-blue-100 to-purple-100 flex items-center justify-center",children:(0,_h.jsx)(eZ,{className:"h-8 w-8 text-blue-500"})}),(0,_h.jsx)("p",{className:"text-gray-600 font-medium mb-1",children:"No family members yet"}),(0,_h.jsx)("p",{className:"text-gray-400 text-sm mb-4",children:"Add your children to get started"}),(0,_h.jsxs)(RG,{onClick:()=>P(),variant:"outline",className:"rounded-xl",children:[(0,_h.jsx)(cZ,{className:"mr-2 h-4 w-4"})," Add Your First Child"]})]}):(0,_h.jsx)("div",{className:"space-y-3",children:i.map(e=>{var t;const n=(e=>{const t=c.filter(t=>t.child_id===e),n=[...new Set(t.map(e=>
2e.activity_id).filter(Boolean))],a=u.filter(e=>n.includes(e.id));return{eventCount:t.length,activities:a}})(e.id);return(0,_h.jsxs)(Q4,{className:"p-4",children:[(0,_h.jsxs)("div",{className:"flex items-start gap-4",children:[e.photo?(0,_h.jsx)("img",{src:e.photo,alt:e.name,className:"w-14 h-14 rounded-xl object-cover flex-shrink-0"}):(0,_h.jsx)("div",{className:"w-14 h-14 rounded-xl flex items-center justify-center text-white text-xl font-bold flex-shrink-0",style:{backgroundColor:e.color},children:null===(t=e.name)||void 0===t?void 0:t.charAt(0).toUpperCase()}),(0,_h.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_h.jsx)("div",{className:"font-semibold text-gray-900",children:e.name}),(0,_h.jsxs)("span",{className:"text-xs bg-gray-100 text-gray-600 px-2 py-0.5 rounded-full font-medium",children:[n.eventCount," event",1!==n.eventCount?"s":""]})]}),(e.birth_month||e.birth_year)&&(0,_h.jsxs)("div",{className:"text-sm text-gray-500 mt-0.5",children:["Born: ",N(e.birth_month,e.birth_year)]}),n.activities.length>0&&(0,_h.jsx)("div",{className:"flex flex-wrap gap-1.5 mt-2",children:n.activities.map(e=>(0,_h.jsxs)("span",{className:"inline-flex items-center gap-1 text-xs px-2 py-1 rounded-lg text-white font-medium",style:{backgroundColor:e.color||"#5DADE2"},children:[e.icon||"\ud83d\udcc5"," ",e.name]},e.id))}),0===n.activities.length&&(0,_h.jsx)("p",{className:"text-xs text-gray-400 mt-2 italic",children:"No activities assigned yet"})]}),(0,_h.jsxs)(nJ,{children:[(0,_h.jsx)(aJ,{asChild:!0,children:(0,_h.jsx)(RG,{variant:"ghost",size:"icon",className:"h-9 w-9 rounded-xl flex-shrink-0",children:(0,_h.jsx)(M4,{className:"h-4 w-4"})})}),(0,_h.jsxs)(oJ,{align:"end",children:[(0,_h.jsxs)(iJ,{onClick:()=>P(e),children:[(0,_h.jsx)(MZ,{className:"mr-2 h-4 w-4"})," Edit"]}),(0,_h.jsxs)(iJ,{onClick:()=>(e=>{w({open:!0,memberId:e.id,memberName:e.name})})(e),className:"text-destructive",children:[(0,_h.jsx)(B4,{className:"mr-2 h-4 w-4"})," Remove"]})]})]})]}),(0,_h.jsx)("div",{className:"h-1 rounded-full mt-3",style:{backgroundColor:e.color}})]},e.id)})}),(0,_h.jsx)(mJ,{open:d,onOpenChange:h,children:(0,_h.jsxs)(yJ,{className:"sm:max-w-lg mx-4 rounded-2xl max-h-[90vh] overflow-y-auto",children:[(0,_h.jsx)(wJ,{children:(0,_h.jsx)(xJ,{className:"text-lg",children:f?"Edit Child":"Add Child"})}),(0,_h.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,_h.jsx)("div",{className:"flex justify-center",children:(0,_h.jsxs)("div",{className:"relative",children:[b?(0,_h.jsxs)("div",{className:"relative",children:[(0,_h.jsx)("img",{src:b,alt:"Preview",className:"w-24 h-24 rounded-2xl object-cover border-4 border-white shadow-lg"}),(0,_h.jsx)("button",{onClick:()=>{k(null),v(e=>p(p({},e),{},{photo:null})),A.current&&(A.current.value="")},className:"absolute -top-2 -right-2 w-6 h-6 bg-red-500 text-white rounded-full flex items-center justify-center hover:bg-red-600",children:(0,_h.jsx)(lJ,{className:"h-4 w-4"})})]}):(0,_h.jsx)("div",{className:"w-24 h-24 rounded-2xl flex items-center justify-center text-white text-3xl font-bold border-4 border-white shadow-lg",style:{backgroundColor:g.color},children:(null===(t=g.name)||void 0===t||null===(n=t.charAt(0))||void 0===n?void 0:n.toUpperCase())||"?"}),l?(0,_h.jsx)("button",{onClick:()=>{var e;return null===(e=A.current)||void 0===e?void 0:e.click()},disabled:C,className:"absolute -bottom-2 -right-2 w-8 h-8 bg-purple-600 text-white rounded-full flex items-center justify-center hover:bg-purple-700 shadow-lg",children:C?(0,_h.jsx)(VZ,{className:"h-4 w-4 animate-spin"}):(0,_h.jsx)(z4,{className:"h-4 w-4"})}):(0,_h.jsx)("div",{className:"absolute -bottom-2 -right-2 w-8 h-8 bg-gray-400 text-white rounded-full flex items-center justify-center cursor-not-allowed",title:"Photo upload is a Pro feature",children:(0,_h.jsx)(L4,{className:"h-3.5 w-3.5"})}),(0,_h.jsx)("input",{ref:A,type:"file",accept:"image/*",onChange:async e=>{var t;const n=null===(t=e.target.files)||void 0===t?void 0:t[0];if(n)if(n.type.startsWith("image/"))if(n.size>10485760)wH.error("Image too large. Please select a smaller image.");else{D(!0);try{const e=await function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.8;return new Promise(r=>{const o=new FileReader;o.onload=e=>{const o=new Image;o.onload=()=>{const e=document.createElement("canvas");let{width:i,height:s}=o;i>s?i>t&&(s=s*t/i,i=t):s>n&&(i=i*n/s,s=n),e.width=i,e.height=s,e.getContext("2d").drawImage(o,0,0,i,s);const l=e.toDataURL("image/jpeg",a);r(l)},o.src=e.target.result},o.readAsDataURL(e)})}(n);k(e),v(t=>p(p({},t),{},{photo:e})),wH.success("Photo added!")}catch(a){wH.error("Failed to process image")}finally{D(!1)}}else wH.error("Please select an image file")},className:"hidden"})]})}),!l&&(0,_h.jsxs)("p",{className:"text-center text-xs text-gray-500",children:[(0,_h.jsx)(U4,{className:"inline h-3 w-3 text-yellow-500 mr-1"}),"Photo upload available for Pro users"]}),(0,_h.jsxs)("div",{className:"grid gap-2",children:[(0,_h.jsx)(EJ,{className:"text-sm font-medium",children:"Name"}),(0,_h.jsx)(CJ,{placeholder:"Child's name","data-testid":"family-member-name-input",value:g.name,onChange:e=>v(p(p({},g),{},{name:e.target.value})),className:"h-11 rounded-xl"})]}),(0,_h.jsxs)("div",{className:"grid gap-2",children:[(0,_h.jsx)(EJ,{className:"text-sm font-medium",children:"Birth Month & Year (optional)"}),(0,_h.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,_h.jsxs)(MJ,{value:(null===(a=g.birth_month)||void 0===a?void 0:a.toString())||"none",onValueChange:e=>v(p(p({},g),{},{birth_month:"none"===e?"":parseInt(e)})),children:[(0,_h.jsx)(zJ,{className:"h-11 rounded-xl",children:(0,_h.jsx)(BJ,{placeholder:"Month"})}),(0,_h.jsxs)(VJ,{children:[(0,_h.jsx)(qJ,{value:"none",children:"No month"}),E.map(e=>(0,_h.jsx)(qJ,{value:e.value.toString(),children:e.label},e.value))]})]}),(0,_h.jsxs)(MJ,{value:(null===(r=g.birth_year)||void 0===r?void 0:r.toString())||"none",onValueChange:e=>v(p(p({},g),{},{birth_year:"none"===e?"":parseInt(e)})),children:[(0,_h.jsx)(zJ,{className:"h-11 rounded-xl",children:(0,_h.jsx)(BJ,{placeholder:"Year"})}),(0,_h.jsxs)(VJ,{children:[(0,_h.jsx)(qJ,{value:"none",children:"No year"}),S.map(e=>(0,_h.jsx)(qJ,{value:e.toString(),children:e},e))]})]})]})]}),(0,_h.jsxs)("div",{className:"grid gap-2",children:[(0,_h.jsx)(EJ,{className:"text-sm font-medium",children:"Color"}),(0,_h.jsx)("div",{className:"grid grid-cols-6 gap-2",children:X4.map(e=>(0,_h.jsx)("button",{type:"button",className:"h-9 w-full rounded-lg transition-transform active:scale-95 flex items-center justify-center ".concat(g.color===e.value?"ring-2 ring-offset-2 ring-gray-400":""),style:{backgroundColor:e.value},onClick:()=>{v(p(p({},g),{},{color:e.value})),x(!1)},"data-testid":"child-color-swatch",children:g.color===e.value&&(0,_h.jsx)(KG,{className:"h-4 w-4 text-white"})},e.value))}),(0,_h.jsx)("div",{className:"mt-2",children:l?(0,_h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_h.jsxs)("button",{onClick:()=>x(!_),className:"flex-1 flex items-center justify-center gap-2 px-3 py-2 rounded-xl border-2 border-dashed transition-all ".concat(_?"border-purple-500 bg-purple-50":"border-gray-200 hover:border-gray-300"),children:[(0,_h.jsx)("div",{className:"w-5 h-5 rounded-full bg-gradient-to-r from-red-500 via-yellow-500 to-blue-500"}),(0,_h.jsx)("span",{className:"text-sm font-medium text-gray-700",children:"Custom Color"})]}),_&&(0,_h.jsx)("input",{type:"color",value:g.color,onChange:e=>v(p(p({},g),{},{color:e.target.value})),className:"w-12 h-10 rounded-lg cursor-pointer border-0"})]}):(0,_h.jsxs)("div",{className:"flex items-center justify-center gap-2 px-3 py-2 rounded-xl border-2 border-dashed border-gray-200 bg-gray-50 opacity-60",children:[(0,_h.jsx)(L4,{className:"h-4 w-4 text-gray-400"}),(0,_h.jsx)("span",{className:"text-sm text-gray-500",children:"Custom colors for Pro users"}),(0,_h.jsx)(U4,{className:"h-4 w-4 text-yellow-500"})]})})]})]}),(0,_h.jsxs)(_J,{className:"flex-col sm:flex-row gap-2",children:[(0,_h.jsx)(RG,{variant:"outline",onClick:()=>h(!1),className:"rounded-xl w-full sm:w-auto",children:"Cancel"}),(0,_h.jsxs)(RG,{onClick:async()=>
2{if(g.name.trim())try{const e=p({},g);if(f){const t=await(async(e,t)=>(await ZK.put("/family-members/".concat(e),t)).data.member)(f.id,e);s(e=>e.map(e=>e.id===f.id?t:e)),wH.success("Updated successfully")}else{const t=await oY(e);s(e=>[...e,t]),wH.success("Child added!")}h(!1)}catch(e){wH.error("Failed to save")}else wH.error("Please enter a name")},className:"rounded-xl w-full sm:w-auto","data-testid":"save-family-member-button",children:[(0,_h.jsx)(KG,{className:"mr-2 h-4 w-4"}),f?"Update":"Add"]})]})]})}),(0,_h.jsx)(mJ,{open:y.open,onOpenChange:e=>!e&&w({open:!1,memberId:null,memberName:""}),children:(0,_h.jsxs)(yJ,{className:"sm:max-w-md mx-4 rounded-2xl",children:[(0,_h.jsxs)(wJ,{children:[(0,_h.jsx)("div",{className:"flex justify-center mb-2",children:(0,_h.jsx)("div",{className:"w-14 h-14 rounded-2xl bg-gradient-to-br from-red-100 to-red-50 flex items-center justify-center",children:(0,_h.jsx)(B4,{className:"h-7 w-7 text-red-500"})})}),(0,_h.jsx)(xJ,{className:"text-lg text-center",children:"Remove Family Member"})]}),(0,_h.jsxs)("div",{className:"py-4 text-center",children:[(0,_h.jsxs)("p",{className:"text-gray-600 text-sm",children:["Are you sure you want to remove ",(0,_h.jsxs)("span",{className:"font-semibold text-gray-800",children:['"',y.memberName,'"']}),"?"]}),(0,_h.jsx)("p",{className:"text-gray-400 text-xs mt-2",children:"This will also remove all their events."})]}),(0,_h.jsxs)(_J,{className:"flex-col sm:flex-row gap-2",children:[(0,_h.jsx)(RG,{variant:"outline",onClick:()=>w({open:!1,memberId:null,memberName:""}),className:"rounded-xl w-full sm:w-auto",children:"Cancel"}),(0,_h.jsxs)(RG,{onClick:()=>T(y.memberId),className:"rounded-xl w-full sm:w-auto bg-red-500 hover:bg-red-600 text-white",children:[(0,_h.jsx)(B4,{className:"mr-2 h-4 w-4"})," Remove"]})]})]})})]})},a3=e=>{let{activities:t,setActivities:n,isPro:a=!1,events:r=[],familyMembers:i=[]}=e;const[s,l]=(0,o.useState)(!1),[c,u]=(0,o.useState)(null),[d,h]=(0,o.useState)({name:"",color:"hsl(142, 71%, 45%)",icon:"\u26bd"}),[f,m]=(0,o.useState)({open:!1,activityId:null,activityName:""}),[g,v]=(0,o.useState)(""),[y,w]=(0,o.useState)("all"),[_,x]=(0,o.useState)(!1),b=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["name"];if(!e.trim())return t;const a=e.toLowerCase();return t.filter(e=>n.some(t=>{var n;const r=(null===(n=e[t])||void 0===n?void 0:n.toLowerCase())||"";if(r.startsWith(a))return!0;if(r.includes(a))return!0;let o=0;for(const e of r)if(e===a[o]&&o++,o===a.length)return!0;return!1})).sort((e,t)=>{var n,r;const o=(null===(n=e.name)||void 0===n?void 0:n.toLowerCase())||"",i=(null===(r=t.name)||void 0===r?void 0:r.toLowerCase())||"",s=o.startsWith(a)?0:1,l=i.startsWith(a)?0:1;return s!==l?s-l:(o.includes(a)?0:1)-(i.includes(a)?0:1)})}(g,"all"===y?e3:e3.filter(e=>e.category===y),["name","category"]),k=["all",...Object.keys(Z4)],C=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;v(""),w("all"),x(!1),e?(u(e),h({name:e.name,color:e.color||"hsl(142, 71%, 45%)",icon:e.icon||"\u26bd"}),x(!0)):(u(null),h({name:"",color:"hsl(142, 71%, 45%)",icon:"\u26bd"})),l(!0)},D=async e=>{try{await(async e=>{await ZK.delete("/activities/".concat(e))})(e),n(t=>t.filter(t=>t.id!==e)),wH.success("Deleted"),m({open:!1,activityId:null,activityName:""})}catch(t){wH.error("Failed to delete")}};return(0,_h.jsxs)("div",{className:"space-y-4",children:[(0,_h.jsxs)("div",{className:"flex items-center justify-between",children:[(0,_h.jsxs)("p",{className:"text-sm text-gray-500",children:[t.length," activit",1!==t.length?"ies":"y"]}),(0,_h.jsxs)(RG,{onClick:()=>C(),className:"rounded-xl h-10 text-sm","data-testid":"add-activity-button",children:[(0,_h.jsx)(cZ,{className:"mr-1.5 h-4 w-4"})," Add Activity"]})]}),0===t.length?(0,_h.jsxs)("div",{className:"text-center py-12",children:[(0,_h.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-2xl bg-gradient-to-br from-green-100 to-teal-100 flex items-center justify-center",children:(0,_h.jsx)(lZ,{className:"h-8 w-8 text-green-500"})}),(0,_h.jsx)("p",{className:"text-gray-600 font-medium mb-1",children:"No activities yet"}),(0,_h.jsx)("p",{className:"text-gray-400 text-sm mb-4",children:"Add activities your kids participate in"}),(0,_h.jsxs)(RG,{onClick:()=>C(),variant:"outline",className:"rounded-xl",children:[(0,_h.jsx)(cZ,{className:"mr-2 h-4 w-4"})," Add First Activity"]})]}):(0,_h.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3",children:t.map(e=>{const t=(e=>{const t=r.filter(t=>t.activity_id===e),n=[...new Set(t.map(e=>
2e.child_id).filter(Boolean))],a=i.filter(e=>n.includes(e.id));return{eventCount:t.length,children:a}})(e.id);return(0,_h.jsx)(Q4,{className:"p-4 relative",children:(0,_h.jsxs)("div",{className:"flex items-start gap-3",children:[(0,_h.jsx)("div",{className:"w-12 h-12 rounded-xl flex items-center justify-center text-2xl flex-shrink-0",style:{backgroundColor:e.color},children:e.icon||"\u26bd"}),(0,_h.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_h.jsx)("div",{className:"font-semibold text-gray-900 text-sm truncate",children:e.name}),(0,_h.jsxs)("span",{className:"text-xs bg-gray-100 text-gray-600 px-2 py-0.5 rounded-full font-medium flex-shrink-0",children:[t.eventCount," event",1!==t.eventCount?"s":""]})]}),t.children.length>0?(0,_h.jsxs)("div",{className:"flex items-center gap-1.5 mt-2",children:[(0,_h.jsxs)("div",{className:"flex -space-x-2",children:[t.children.slice(0,4).map(e=>{var t;return(0,_h.jsx)("div",{className:"w-6 h-6 rounded-full border-2 border-white flex items-center justify-center text-white text-[10px] font-bold",style:{backgroundColor:e.color},title:e.name,children:null===(t=e.name)||void 0===t?void 0:t.charAt(0)},e.id)}),t.children.length>4&&(0,_h.jsxs)("div",{className:"w-6 h-6 rounded-full border-2 border-white bg-gray-300 flex items-center justify-center text-gray-600 text-[10px] font-bold",children:["+",t.children.length-4]})]}),(0,_h.jsx)("span",{className:"text-xs text-gray-500",children:t.children.map(e=>e.name).join(", ")})]}):(0,_h.jsx)("p",{className:"text-xs text-gray-400 mt-2 italic",children:"No kids assigned yet"})]}),(0,_h.jsxs)(nJ,{children:[(0,_h.jsx)(aJ,{asChild:!0,children:(0,_h.jsx)(RG,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl flex-shrink-0",children:(0,_h.jsx)(M4,{className:"h-4 w-4"})})}),(0,_h.jsxs)(oJ,{align:"end",children:[(0,_h.jsxs)(iJ,{onClick:()=>C(e),children:[(0,_h.jsx)(MZ,{className:"mr-2 h-4 w-4"})," Edit"]}),(0,_h.jsxs)(iJ,{onClick:()=>(e=>
2{m({open:!0,activityId:e.id,activityName:e.name})})(e),className:"text-destructive",children:[(0,_h.jsx)(B4,{className:"mr-2 h-4 w-4"})," Delete"]})]})]})]})},e.id)})}),(0,_h.jsx)(mJ,{open:s,onOpenChange:l,children:(0,_h.jsxs)(yJ,{className:"sm:max-w-2xl mx-4 rounded-2xl max-h-[90vh] overflow-hidden flex flex-col",children:[(0,_h.jsx)(wJ,{children:(0,_h.jsx)(xJ,{className:"text-lg",children:c?"Edit Activity":"Add Activity"})}),(0,_h.jsxs)("div",{className:"flex-1 overflow-y-auto py-4 space-y-4",children:[(0,_h.jsxs)("div",{className:"relative",children:[(0,_h.jsx)(V4,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-400"}),(0,_h.jsx)(CJ,{placeholder:"Search activities... (e.g., soccer, dance, swimming)",value:g,onChange:e=>v(e.target.value),className:"pl-10 h-11 rounded-xl"})]}),(0,_h.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,_h.jsxs)(WJ,{children:[(0,_h.jsx)(KJ,{asChild:!0,children:(0,_h.jsxs)(RG,{variant:"outline",className:"h-10 rounded-xl justify-between min-w-[200px]",children:[(0,_h.jsxs)("span",{className:"flex items-center gap-2",children:[(0,_h.jsx)(q4,{className:"h-4 w-4"}),"all"===y?"All Categories":y]}),(0,_h.jsx)(WG,{className:"h-4 w-4 rotate-90 opacity-50"})]})}),(0,_h.jsx)(YJ,{className:"w-56 p-2",align:"start",children:(0,_h.jsxs)("div",{className:"space-y-1 max-h-[300px] overflow-y-auto",children:[(0,_h.jsxs)("button",{onClick:()=>w("all"),className:"w-full flex items-center gap-2 px-3 py-2 rounded-lg text-sm font-medium transition-all text-left ".concat("all"===y?"bg-purple-100 text-purple-700":"hover:bg-gray-100 text-gray-700"),children:[(0,_h.jsx)("span",{className:"w-5 h-5 rounded flex items-center justify-center bg-gradient-to-br from-purple-500 to-pink-500 text-white text-xs",children:"\u2726"}),"All Categories","all"===y&&(0,_h.jsx)(KG,{className:"h-4 w-4 ml-auto"})]}),k.filter(e=>"all"!==e).map(e=>{var t;return(0,_h.jsxs)("button",{onClick:()=>w(e),className:"w-full flex items-center gap-2 px-3 py-2 rounded-lg text-sm font-medium transition-all text-left ".concat(y===e?"bg-purple-100 text-purple-700":"hover:bg-gray-100 text-gray-700"),children:[(0,_h.jsx)("span",{className:"w-5 h-5 rounded flex items-center justify-center bg-gray-100 text-xs",children:(null===(t=e3.find(t=>t.category===e))||void 0===t?void 0:t.icon)||"\ud83d\udcc2"}),e,y===e&&(0,_h.jsx)(KG,{className:"h-4 w-4 ml-auto"})]},e)})]})})]}),"all"!==y&&(0,_h.jsx)(RG,{variant:"ghost",size:"sm",onClick:()=>w("all"),className:"h-8 text-xs text-gray-500 hover:text-gray-700",children:"Clear"})]}),d.name&&(0,_h.jsxs)("div",{className:"p-4 bg-purple-50 rounded-xl flex items-center gap-3",children:[(0,_h.jsx)("div",{className:"w-12 h-12 rounded-xl flex items-center justify-center text-2xl",style:{backgroundColor:d.color},children:d.icon}),(0,_h.jsxs)("div",{className:"flex-1",children:[(0,_h.jsx)("p",{className:"font-semibold text-gray-900",children:d.name}),(0,_h.jsx)("p",{className:"text-sm text-gray-500",children:"Selected activity"})]}),(0,_h.jsx)(RG,{variant:"ghost",size:"sm",onClick:()=>h({name:"",color:"hsl(142, 71%, 45%)",icon:"\u26bd"}),children:(0,_h.jsx)(lJ,{className:"h-4 w-4"})})]}),(0,_h.jsx)("div",{className:"grid grid-cols-3 sm:grid-cols-4 md:grid-cols-5 gap-2 max-h-[300px] overflow-y-auto",children:b.slice(0,50).map((e,t)=>(0,_h.jsxs)("button",{onClick:()=>(e=>{h({name:e.name,color:e.color,icon:e.icon}),x(!1)})(e),className:"flex flex-col items-center gap-1.5 p-3 rounded-xl transition-all hover:bg-gray-50 ".concat(d.name===e.name?"ring-2 ring-purple-500 bg-purple-50":""),children:[(0,_h.jsx)("div",{className:"w-10 h-10 rounded-xl flex items-center justify-center text-xl",style:{backgroundColor:e.color},children:e.icon}),(0,_h.jsx)("span",{className:"text-[11px] text-gray-700 text-center leading-tight truncate w-full",children:e.name})]},"".concat(e.name,"-").concat(t)))}),(0,_h.jsxs)("div",{className:"border-t pt-4",children:[(0,_h.jsxs)("button",{onClick:()=>{a?x(!_):wH.error("Custom activities are available for Pro users only")},className:"w-full flex items-center justify-between p-3 rounded-xl border-2 border-dashed transition-all ".concat(a?"border-purple-300 hover:border-purple-500 hover:bg-purple-50":"border-gray-200 opacity-60"),children:[(0,_h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,_h.jsx)("div",{className:"w-10 h-10 rounded-xl bg-gray-100 flex items-center justify-center",children:(0,_h.jsx)(cZ,{className:"h-5 w-5 text-gray-500"})}),(0,_h.jsxs)("div",{className:"text-left",children:[(0,_h.jsx)("p",{className:"font-medium text-gray-900",children:"Custom Activity"}),(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"Create your own activity"})]})]}),!a&&(0,_h.jsxs)("span",{className:"flex items-center gap-1 px-2 py-1 bg-gradient-to-r from-purple-100 to-indigo-100 text-purple-700 rounded-full text-xs font-medium",children:[(0,_h.jsx)(U4,{className:"h-3 w-3"})," Pro"]})]}),_&&a&&(0,_h.jsxs)("div",{className:"mt-3 p-4 bg-gray-50 rounded-xl space-y-3",children:[(0,_h.jsx)(CJ,{placeholder:"Activity name",value:d.name,onChange:e=>h(p(p({},d),{},{name:e.target.value})),className:"h-10 rounded-xl"}),(0,_h.jsx)("div",{className:"max-h-48 overflow-y-auto rounded-xl border border-gray-200 p-3 bg-gray-50",children:(0,_h.jsxs)("div",{className:"space-y-3",children:[(0,_h.jsxs)("div",{children:[(0,_h.jsx)("p",{className:"text-[10px] font-semibold text-gray-500 uppercase tracking-wider mb-1.5",children:"Sports"}),(0,_h.jsx)("div",{className:"flex gap-1.5 flex-wrap",children:["\u26bd","\ud83c\udfc0","\ud83c\udfc8","\u26be","\ud83e\udd4e","\ud83c\udfbe","\ud83c\udfd0","\ud83c\udfc9","\ud83e\udd4f","\ud83c\udfb1","\ud83c\udfd3","\ud83c\udff8","\ud83c\udfd2","\ud83c\udfd1","\ud83e\udd4d","\ud83c\udfcf","\u26f3","\ud83e\udd4a","\ud83e\udd4b","\ud83e\udd3c"].map(e=>(0,_h.jsx)("button",{type:"button",onClick:()=>h(p(p({},d),{},{icon:e})),className:"w-8 h-8 rounded-lg text-lg flex items-center justify-center transition-all ".concat(d.icon===e?"bg-purple-100 ring-2 ring-purple-500 scale-110":"bg-white hover:bg-gray-100 hover:scale-105"),children:e},e))})]}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("p",{className:"text-[10px] font-semibold text-gray-500 uppercase tracking-wider mb-1.5",children:"Water & Winter"}),(0,_h.jsx)("div",{className:"flex gap-1.5 flex-wrap",children:["\ud83c\udfca","\ud83e\udd3d","\ud83d\udea3","\ud83c\udfc4","\ud83e\udd3f","\u26f7\ufe0f","\ud83c\udfc2","\u26f8\ufe0f","\ud83e\udd4c","\ud83d\udef7","\ud83d\udea4","\u26f5","\ud83d\udef6","\ud83c\udfbf"].map(e=>(0,_h.jsx)("button",{type:"button",onClick:()=>h(p(p({},d),{},{icon:e})),className:"w-8 h-8 rounded-lg text-lg flex items-center justify-center transition-all ".concat(d.icon===e?"bg-purple-100 ring-2 ring-purple-500 scale-110":"bg-white hover:bg-gray-100 hover:scale-105"),children:e},e))})]}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("p",{className:"text-[10px] font-semibold text-gray-500 uppercase tracking-wider mb-1.5",children:"Fitness & Running"}),(0,_h.jsx)("div",{className:"flex gap-1.5 flex-wrap",children:["\ud83c\udfc3","\ud83d\udeb4","\ud83e\uddd8","\ud83c\udfcb\ufe0f","\ud83e\udd38","\ud83d\udeb6","\ud83e\uddd7","\ud83e\udd3e","\ud83c\udfcc\ufe0f","\ud83e\udd3a","\ud83d\udef9","\ud83d\udefc","\ud83d\udef4","\ud83c\udfcd\ufe0f"].map(e=>(0,_h.jsx)("button",{type:"button",onClick:()=>h(p(p({},d),{},{icon:e})),className:"w-8 h-8 rounded-lg text-lg flex items-center justify-center transition-all ".concat(d.icon===e?"bg-purple-100 ring-2 ring-purple-500 scale-110":"bg-white hover:bg-gray-100 hover:scale-105"),children:e},e))})]}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("p",{className:"text-[10px] font-semibold text-gray-500 uppercase tracking-wider mb-1.5",children:"Arts & Music"}),(0,_h.jsx)("div",{className:"flex gap-1.5 flex-wrap",children:["\ud83c\udfb5","\ud83c\udfb6","\ud83c\udfb9","\ud83c\udfb8","\ud83c\udfba","\ud83c\udfb7","\ud83e\udd41","\ud83c\udfbb","\ud83e\ude97","\ud83c\udfa4","\ud83d\udc83","\ud83d\udd7a","\ud83e\ude70","\ud83c\udfad","\ud83c\udfa8","\ud83d\uddbc\ufe0f","\u270f\ufe0f","\ud83d\udd8c\ufe0f","\ud83d\udcf7","\ud83c\udfac","\ud83c\udfa5","\ud83c\udf9e\ufe0f"].map(e=>(0,_h.jsx)("button",{type:"button",onClick:()=>h(p(p({},d),{},{icon:e})),className:"w-8 h-8 rounded-lg text-lg flex items-center justify-center transition-all ".concat(d.icon===e?"bg-purple-100 ring-2 ring-purple-500 scale-110":"bg-white hover:bg-gray-100 hover:scale-105"),children:e},e))})]}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("p",{className:"text-[10px] font-semibold text-gray-500 uppercase tracking-wider mb-1.5",children:"Academic & Learning"}),(0,_h.jsx)("div",{className:"flex gap-1.5 flex-wrap",children:["\ud83d\udcda","\ud83d\udcd6","\u270d\ufe0f","\ud83d\udd2c","\ud83e\uddea","\ud83d\udd2d","\ud83e\uddee","\ud83d\udcbb","\ud83d\udda5\ufe0f","\ud83d\udcdd","\ud83c\udf93","\ud83d\udcd0","\ud83d\uddfa\ufe0f","\ud83c\udf0d","\ud83d\udcf0","\ud83d\udcd3","\ud83d\udde3\ufe0f","\ud83e\udde0","\ud83d\udca1","\ud83d\udcca"].map(e=>(0,_h.jsx)("button",{type:"button",onClick:()=>h(p(p({},d),{},{icon:e})),className:"w-8 h-8 rounded-lg text-lg flex items-center justify-center transition-all ".concat(d.icon===e?"bg-purple-100 ring-2 ring-purple-500 scale-110":"bg-white hover:bg-gray-100 hover:scale-105"),children:e},e))})]}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("p",{className:"text-[10px] font-semibold text-gray-500 uppercase tracking-wider mb-1.5",children:"Outdoor & Nature"}),(0,_h.jsx)("div",{className:"flex gap-1.5 flex-wrap",children:["\ud83c\udfd5\ufe0f","\ud83c\udfa3","\ud83c\udff9","\ud83d\udc0e","\ud83d\udc15","\ud83e\uddae","\ud83c\udf32","\ud83e\udd7e","\ud83e\udded","\ud83d\udd25","\u26fa","\ud83c\udf04","\ud83c\udfd4\ufe0f","\ud83c\udf0a","\ud83c\udf3f","\ud83e\udd8b"].map(e=>(0,_h.jsx)("button",{type:"button",onClick:()=>h(p(p({},d),{},{icon:e})),className:"w-8 h-8 rounded-lg text-lg flex items-center justify-center transition-all ".concat(d.icon===e?"bg-purple-100 ring-2 ring-purple-500 scale-110":"bg-white hover:bg-gray-100 hover:scale-105"),children:e},e))})]}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("p",{className:"text-[10px] font-semibold text-gray-500 uppercase tracking-wider mb-1.5",children:"Games & Recreation"}),(0,_h.jsx)("div",{className:"flex gap-1.5 flex-wrap",children:["\ud83c\udfae","\ud83c\udfb2","\ud83c\udccf","\u265f\ufe0f","\ud83e\udde9","\ud83c\udfaf","\ud83c\udfb3","\ud83c\udfb0","\ud83e\ude80","\ud83e\ude81","\ud83c\udfaa","\ud83c\udfa2","\ud83c\udfa1","\ud83c\udfa0","\ud83c\udff0","\ud83c\udf81"].map(e=>(0,_h.jsx)("button",{type:"button",onClick:()=>h(p(p({},d),{},{icon:e})),className:"w-8 h-8 rounded-lg text-lg flex items-center justify-center transition-all ".concat(d.icon===e?"bg-purple-100 ring-2 ring-purple-500 scale-110":"bg-white hover:bg-gray-100 hover:scale-105"),children:e},e))})]}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("p",{className:"text-[10px] font-semibold text-gray-500 uppercase tracking-wider mb-1.5",children:"Other"}),(0,_h.jsx)("div",{className:"flex gap-1.5 flex-wrap",children:["\ud83d\ude80","\u2708\ufe0f","\ud83d\ude97","\ud83e\uddf5","\ud83e\udea1","\ud83c\udfc6","\ud83e\udd47","\ud83e\udd48","\ud83e\udd49","\ud83c\udf96\ufe0f","\u2728","\u2b50","\ud83c\udf1f","\ud83d\udcaa","\u2764\ufe0f","\ud83d\ude4f"].map(e=>(0,_h.jsx)("button",{type:"button",onClick:()=>h(p(p({},d),{},{icon:e})),className:"w-8 h-8 rounded-lg text-lg flex items-center justify-center transition-all ".concat(d.icon===e?"bg-purple-100 ring-2 ring-purple-500 scale-110":"bg-white hover:bg-gray-100 hover:scale-105"),children:e},e))})]})]})})]})]})]}),(0,_h.jsxs)(_J,{className:"flex-col sm:flex-row gap-2 pt-4 border-t",children:[(0,_h.jsx)(RG,{variant:"outline",onClick:()=>l(!1),className:"rounded-xl w-full sm:w-auto",children:"Cancel"}),(0,_h.jsxs)(RG,{onClick:async()=>
2{if(d.name.trim())try{const e={name:d.name,color:d.color,icon:d.icon};if(c){const t=await(async(e,t)=>(await ZK.put("/activities/".concat(e),t)).data.activity)(c.id,e);n(e=>e.map(e=>e.id===c.id?t:e)),wH.success("Updated successfully")}else{const t=await sY(e);n(e=>[...e,t]),wH.success("Activity created!")}l(!1)}catch(e){wH.error("Failed to save")}else wH.error("Please enter an activity name")},disabled:!d.name.trim(),className:"rounded-xl w-full sm:w-auto","data-testid":"save-activity-button",children:[(0,_h.jsx)(KG,{className:"mr-2 h-4 w-4"}),c?"Update":"Add Activity"]})]})]})}),(0,_h.jsx)(mJ,{open:f.open,onOpenChange:e=>!e&&m({open:!1,activityId:null,activityName:""}),children:(0,_h.jsxs)(yJ,{className:"sm:max-w-md mx-4 rounded-2xl",children:[(0,_h.jsxs)(wJ,{children:[(0,_h.jsx)("div",{className:"flex justify-center mb-2",children:(0,_h.jsx)("div",{className:"w-14 h-14 rounded-2xl bg-gradient-to-br from-red-100 to-red-50 flex items-center justify-center",children:(0,_h.jsx)(B4,{className:"h-7 w-7 text-red-500"})})}),(0,_h.jsx)(xJ,{className:"text-lg text-center",children:"Delete Activity"})]}),(0,_h.jsxs)("div",{className:"py-4 text-center",children:[(0,_h.jsxs)("p",{className:"text-gray-600 text-sm",children:["Are you sure you want to delete ",(0,_h.jsxs)("span",{className:"font-semibold text-gray-800",children:['"',f.activityName,'"']}),"?"]}),(0,_h.jsx)("p",{className:"text-gray-400 text-xs mt-2",children:"This action cannot be undone."})]}),(0,_h.jsxs)(_J,{className:"flex-col sm:flex-row gap-2",children:[(0,_h.jsx)(RG,{variant:"outline",onClick:()=>m({open:!1,activityId:null,activityName:""}),className:"rounded-xl w-full sm:w-auto",children:"Cancel"}),(0,_h.jsxs)(RG,{onClick:()=>D(f.activityId),className:"rounded-xl w-full sm:w-auto bg-red-500 hover:bg-red-600 text-white",children:[(0,_h.jsx)(B4,{className:"mr-2 h-4 w-4"})," Delete Activity"]})]})]})})]})},r3=e=>{let{events:t,setEvents:n,familyMembers:a,activities:r,homeAddress:i}=e;const[s,l]=(0,o.useState)([]),[c,u]=(0,o.useState)([]),[d,h]=(0,o.useState)([]),[f,m]=(0,o.useState)([]),[g,v]=(0,o.useState)(""),[y,w]=(0,o.useState)({start:null,end:null}),[_,x]=(0,o.useState)("none"),[b,k]=(0,o.useState)("date-desc"),[C,D]=(0,o.useState)(!1),[A,E]=(0,o.useState)(null),[j,S]=(0,o.useState)(!1),[N,P]=(0,o.useState)({title:"",child_id:"",activity_id:"",event_type:"practice",date:new Date,start_time:"09:00",end_time:"10:00",location:"",location_lat:null,location_lon:null,notes:"",goals:"",assists:"",score_home:"",score_away:""}),[T,F]=(0,o.useState)({open:!1,eventId:null,eventTitle:""}),O=[{id:"scheduled",name:"Scheduled",icon:"\ud83d\udcc5",color:"bg-blue-100 text-blue-700"},{id:"pending",name:"Pending",icon:"\u23f3",color:"bg-yellow-100 text-yellow-700"},{id:"completed",name:"Completed",icon:"\u2705",color:"bg-green-100 text-green-700"},{id:"skipped",name:"Skipped",icon:"\u23ed\ufe0f",color:"bg-orange-100 text-orange-700"}],I=t.filter(e=>!(s.length>0&&!s.includes(e.child_id))&&(!(c.length>0&&!c.includes(e.activity_id))&&(!(d.length>0&&!d.includes(e.status||"scheduled"))&&(!(f.length>0&&!f.includes(e.event_type))&&(!(g&&!e.title.toLowerCase().includes(g.toLowerCase()))&&(!(y.start&&new Date(e.date)<y.start)&&!(y.end&&new Date(e.date)>y.end))))))),R=[...I].sort((e,t)=>{var n,a;switch(b){case"date-asc":return new Date(e.date)-new Date(t.date);case"date-desc":default:return new Date(t.date)-new Date(e.date);case"title":return e.title.localeCompare(t.title);case"activity":const o=(null===(n=r.find(t=>t.id===e.activity_id))||void 0===n?void 0:n.name)||"",i=(null===(a=r.find(e=>e.id===t.activity_id))||void 0===a?void 0:a.name)||"";return o.localeCompare(i)}}),M=t.filter(e=>"completed"===e.status).length,B=t.filter(e=>"skipped"===e.status).length,z=t.filter(e=>!e.status||"scheduled"===e.status||"pending"===e.status).length,L=s.length+c.length+d.length+f.length+(y.start?1:0)+(y.end?1:0),U=e=>{if(!e)return"";const[t,n]=e.split(":").map(Number);return"".concat(t%12||12,":").concat(n.toString().padStart(2,"0")," ").concat(t>=12?"PM":"AM")},V=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;var t,n,a,r;e?(E(e),P({title:e.title,child_id:e.child_id||"",activity_id:e.activity_id||"",event_type:e.event_type||"practice",date:new Date(e.date),start_time:e.start_time,end_time:e.end_time,location:e.location||"",location_lat:e.location_lat||null,location_lon:e.location_lon||null,
2notes:e.notes||"",goals:(null===(t=e.goals)||void 0===t?void 0:t.toString())||"",assists:(null===(n=e.assists)||void 0===n?void 0:n.toString())||"",score_home:(null===(a=e.score_home)||void 0===a?void 0:a.toString())||"",score_away:(null===(r=e.score_away)||void 0===r?void 0:r.toString())||""})):(E(null),P({title:"",child_id:"",activity_id:"",event_type:"practice",date:new Date,start_time:"09:00",end_time:"10:00",location:"",location_lat:null,location_lon:null,notes:"",goals:"",assists:"",score_home:"",score_away:""}));D(!0)},q=async e=>{try{await(async e=>{await ZK.delete("/events/".concat(e))})(e),n(t=>t.filter(t=>t.id!==e)),wH.success("Event deleted"),localStorage.setItem("eventsLastModified",Date.now().toString()),F({open:!1,eventId:null,eventTitle:""})}catch(t){wH.error("Failed to delete event")}},H=async(e,t)=>{try{await uY(e,t),n(n=>n.map(n=>n.id===e?p(p({},n),{},{status:t}):n)),wH.success("completed"===t?"Marked complete!":"skipped"===t?"Marked skipped":"Status reset")}catch(a){wH.error("Failed to update status")}},W=()=>{l([]),u([]),h([]),m([]),w({start:null,end:null}),v("")},K=(()=>{if("none"===_)return{"All Events":R};const e={};return R.forEach(t=>{let n;switch(_){case"date":n=X$(new Date(t.date),"EEEE, MMMM d, yyyy");break;case"child":const e=a.find(e=>e.id===t.child_id);n=(null===e||void 0===e?void 0:e.name)||"Unassigned";break;case"activity":const o=r.find(e=>e.id===t.activity_id);n=o?"".concat(o.icon||"\ud83d\udcc5"," ").concat(o.name):"No Activity";break;case"status":const i=O.find(e=>e.id===(t.status||"scheduled"));n="".concat((null===i||void 0===i?void 0:i.icon)||""," ").concat((null===i||void 0===i?void 0:i.name)||"Unknown");break;default:n="All Events"}e[n]||(e[n]=[]),e[n].push(t)}),e})();return(0,_h.jsxs)("div",{className:"space-y-4",children:[(0,_h.jsxs)("div",{className:"grid grid-cols-3 gap-3",children:[(0,_h.jsx)(Q4,{className:"p-3",children:(0,_h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_h.jsx)("div",{className:"w-8 h-8 rounded-lg bg-blue-100 flex items-center justify-center",children:(0,_h.jsx)(iZ,{className:"h-4 w-4 text-blue-600"})}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("p",{className:"text-lg font-bold text-gray-900",children:z}),(0,_h.jsx)("p",{className:"text-[10px] text-gray-500",children:"Scheduled"})]})]})}),(0,_h.jsx)(Q4,{className:"p-3",children:(0,_h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_h.jsx)("div",{className:"w-8 h-8 rounded-lg bg-green-100 flex items-center justify-center",children:(0,_h.jsx)(FZ,{className:"h-4 w-4 text-green-600"})}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("p",{className:"text-lg font-bold text-gray-900",children:M}),(0,_h.jsx)("p",{className:"text-[10px] text-gray-500",children:"Completed"})]})]})}),(0,_h.jsx)(Q4,{className:"p-3",children:(0,_h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_h.jsx)("div",{className:"w-8 h-8 rounded-lg bg-orange-100 flex items-center justify-center",children:(0,_h.jsx)(OZ,{className:"h-4 w-4 text-orange-600"})}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("p",{className:"text-lg font-bold text-gray-900",children:B}),(0,_h.jsx)("p",{className:"text-[10px] text-gray-500",children:"Skipped"})]})]})})]}),(0,_h.jsxs)("div",{className:"flex items-center justify-between",children:[(0,_h.jsxs)("p",{className:"text-sm text-gray-500",children:[I.length," of ",t.length," event",1!==t.length?"s":""]}),(0,_h.jsxs)(RG,{onClick:()=>V(),className:"rounded-xl h-10 text-sm","data-testid":"add-event-button",children:[(0,_h.jsx)(cZ,{className:"mr-1.5 h-4 w-4"})," Add Event"]})]}),(0,_h.jsxs)("div",{className:"space-y-3",children:[(0,_h.jsxs)("div",{className:"flex gap-2",children:[(0,_h.jsxs)("div",{className:"relative flex-1",children:[(0,_h.jsx)(V4,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-400"}),(0,_h.jsx)(CJ,{placeholder:"Search events...",className:"pl-10 h-11 rounded-xl bg-white",value:g,onChange:e=>v(e.target.value)})]}),(0,_h.jsxs)(RG,{variant:j?"default":"outline",onClick:()=>S(!j),className:"h-11 rounded-xl px-4",children:[(0,_h.jsx)(q4,{className:"h-4 w-4 mr-2"}),"Filters",L>0&&(0,_h.jsx)("span",{className:"ml-2 px-1.5 py-0.5 bg-white/20 rounded-full text-xs font-bold",children:L})]})]}),j&&(0,_h.jsxs)(Q4,{className:"p-4 space-y-4",children:[(0,_h.jsxs)("div",{className:"flex items-center justify-between",children:[(0,_h.jsxs)("h4",{className:"font-semibold text-gray-900 flex items-center gap-2",children:[(0,_h.jsx)(q4,{className:"h-4 w-4"})," Advanced Filters"]}),L>0&&(0,_h.jsx)(RG,{variant:"ghost",size:"sm",onClick:W,className:"text-xs h-7",children:"Clear All"})]}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("label",{className:"text-xs font-medium text-gray-600 mb-2 block",children:"Filter by Child"}),(0,_h.jsx)("div",{className:"flex flex-wrap gap-2",children:a.map(e=>(0,_h.jsxs)("button",{onClick:()=>{return t=e.id,void l(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t]);var t},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-medium transition-all ".concat(s.includes(e.id)?"bg-gray-900 text-white":"bg-gray-100 text-gray-700 hover:bg-gray-200"),children:[(0,_h.jsx)("div",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:e.color}}),e.name,s.includes(e.id)&&(0,_h.jsx)(lJ,{className:"h-3 w-3 ml-1"})]},e.id))})]}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("label",{className:"text-xs font-medium text-gray-600 mb-2 block",children:"Filter by Activity"}),(0,_h.jsx)("div",{className:"flex flex-wrap gap-2",children:r.map(e=>(0,_h.jsxs)("button",{onClick:()=>{return t=e.id,void u(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t]);var t},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-medium transition-all ".concat(c.includes(e.id)?"text-white":"bg-gray-100 text-gray-700 hover:bg-gray-200"),style:c.includes(e.id)?{backgroundColor:e.color||"#5DADE2"}:{},children:[e.icon," ",e.name,c.includes(e.id)&&(0,_h.jsx)(lJ,{className:"h-3 w-3 ml-1"})]},e.id))})]}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("label",{className:"text-xs font-medium text-gray-600 mb-2 block",children:"Filter by Status"}),(0,_h.jsx)("div",{className:"flex flex-wrap gap-2",children:O.map(e=>{const t=d.includes(e.id);return(0,_h.jsxs)("button",{onClick:()=>(e=>{h(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])})(e.id),className:"flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-medium transition-all ".concat(t?{scheduled:"bg-blue-600 text-white",pending:"bg-yellow-600 text-white",completed:"bg-green-600 text-white",ski
2pped:"bg-orange-600 text-white"}[e.id]:e.color),children:[e.icon," ",e.name,t&&(0,_h.jsx)(lJ,{className:"h-3 w-3 ml-1"})]},e.id)})})]}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("label",{className:"text-xs font-medium text-gray-600 mb-2 block",children:"Filter by Event Type"}),(0,_h.jsx)("div",{className:"flex flex-wrap gap-2",children:t3.map(e=>(0,_h.jsxs)("button",{onClick:()=>(e=>{m(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])})(e.id),className:"flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-medium transition-all ".concat(f.includes(e.id)?"bg-gray-900 text-white":e.color),children:[e.icon," ",e.name,f.includes(e.id)&&(0,_h.jsx)(lJ,{className:"h-3 w-3 ml-1"})]},e.id))})]}),(0,_h.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,_h.jsxs)("div",{children:[(0,_h.jsx)("label",{className:"text-xs font-medium text-gray-600 mb-2 block",children:"From Date"}),(0,_h.jsxs)(WJ,{children:[(0,_h.jsx)(KJ,{asChild:!0,children:(0,_h.jsxs)(RG,{variant:"outline",className:"w-full h-10 rounded-xl justify-start text-left font-normal",children:[(0,_h.jsx)(iZ,{className:"mr-2 h-4 w-4"}),y.start?X$(y.start,"MMM d, yyyy"):"Start date"]})}),(0,_h.jsx)(YJ,{className:"w-auto p-0",align:"start",children:(0,_h.jsx)(XX,{mode:"single",selected:y.start,onSelect:e=>w(t=>p(p({},t),{},{start:e}))})})]})]}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("label",{className:"text-xs font-medium text-gray-600 mb-2 block",children:"To Date"}),(0,_h.jsxs)(WJ,{children:[(0,_h.jsx)(KJ,{asChild:!0,children:(0,_h.jsxs)(RG,{variant:"outline",className:"w-full h-10 rounded-xl justify-start text-left font-normal",children:[(0,_h.jsx)(iZ,{className:"mr-2 h-4 w-4"}),y.end?X$(y.end,"MMM d, yyyy"):"End date"]})}),(0,_h.jsx)(YJ,{className:"w-auto p-0",align:"start",children:(0,_h.jsx)(XX,{mode:"single",selected:y.end,onSelect:e=>w(t=>p(p({},t),{},{end:e}))})})]})]})]})]}),(0,_h.jsxs)("div",{className:"flex gap-2 overflow-x-auto pb-1 -mx-4 px-4 md:mx-0 md:px-0",children:[(0,_h.jsxs)(MJ,{value:_,onValueChange:x,children:[(0,_h.jsxs)(zJ,{className:"w-auto min-w-[130px] h-10 rounded-xl bg-white text-sm",children:[(0,_h.jsx)(H4,{className:"h-4 w-4 mr-2"}),(0,_h.jsx)(BJ,{placeholder:"Group by"})]}),(0,_h.jsxs)(VJ,{children:[(0,_h.jsx)(qJ,{value:"none",children:"No Grouping"}),(0,_h.jsx)(qJ,{value:"date",children:"Group by Date"}),(0,_h.jsx)(qJ,{value:"child",children:"Group by Child"}),(0,_h.jsx)(qJ,{value:"activity",children:"Group by Activity"}),(0,_h.jsx)(qJ,{value:"status",children:"Group by Status"})]})]}),(0,_h.jsxs)(MJ,{value:b,onValueChange:k,children:[(0,_h.jsxs)(zJ,{className:"w-auto min-w-[140px] h-10 rounded-xl bg-white text-sm",children:[(0,_h.jsx)(W4,{className:"h-4 w-4 mr-2"}),(0,_h.jsx)(BJ,{placeholder:"Sort by"})]}),(0,_h.jsxs)(VJ,{children:[(0,_h.jsx)(qJ,{value:"date-desc",children:"Newest First"}),(0,_h.jsx)(qJ,{value:"date-asc",children:"Oldest First"}),(0,_h.jsx)(qJ,{value:"title",children:"By Title"}),(0,_h.jsx)(qJ,{value:"activity",children:"By Activity"})]})]})]})]}),0===I.length?(0,_h.jsxs)("div",{className:"text-center py-12",children:[(0,_h.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-2xl bg-gradient-to-br from-purple-100 to-pink-100 flex items-center justify-center",children:(0,_h.jsx)(K4,{className:"h-8 w-8 text-purple-500"})}),(0,_h.jsx)("p",{className:"text-gray-600 font-medium mb-1",children:0===t.length?"No events yet":"No matching events"}),(0,_h.jsx)("p",{className:"text-gray-400 text-sm mb-4",children:0===t.length?"Create events or import from your calendar":"Try adjusting your filters"}),L>0&&(0,_h.jsx)(RG,{onClick:W,variant:"outline",className:"rounded-xl mr-2",children:"Clear Filters"}),0===t.length&&(0,_h.jsxs)(RG,{onClick:()=>V(),variant:"outline",className:"rounded-xl",children:[(0,_h.jsx)(cZ,{className:"mr-2 h-4 w-4"})," Add Event"]})]}):(0,_h.jsx)("div",{className:"space-y-6",children:Object.entries(K).map(e=>{let[t,n]=e;return(0,_h.jsxs)("div",{children:["none"!==_&&(0,_h.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,_h.jsx)("h3",{className:"text-sm font-semibold text-gray-700",children:t}),(0,_h.jsx)("span",{className:"text-xs text-gray-400 bg-gray-100 px-2 py-0.5 rounded-full",children:n.length})]}),(0,_h.jsx)("div",{className:"space-y-3",children:n.map(e=>{const t=(e=>a.find(t=>
2t.id===e))(e.child_id),n=(e=>r.find(t=>t.id===e))(e.activity_id),o=(e=>t3.find(t=>t.id===e)||t3[0])(e.event_type),i=(null===t||void 0===t?void 0:t.color)||(null===n||void 0===n?void 0:n.color)||"#5DADE2",s=e.goals||e.assists||null!==e.score_home&&null!==e.score_away,l="completed"===e.status,c="skipped"===e.status;return(0,_h.jsx)(Q4,{className:"p-4 ".concat(l?"opacity-75":""," ").concat(c?"opacity-60":""),children:(0,_h.jsxs)("div",{className:"flex items-start gap-3",children:[(0,_h.jsx)("div",{className:"w-1 min-h-[50px] rounded-full flex-shrink-0 self-stretch",style:{backgroundColor:i}}),(0,_h.jsx)("div",{className:"flex-1 min-w-0",children:(0,_h.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,_h.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,_h.jsx)("h3",{className:"font-semibold text-gray-900 truncate ".concat(l?"line-through":""),children:e.title}),(0,_h.jsxs)("span",{className:"text-[10px] px-2 py-0.5 rounded-full ".concat(o.color),children:[o.icon," ",o.name]}),l&&(0,_h.jsx)("span",{className:"text-[10px] px-2 py-0.5 rounded-full bg-green-100 text-green-700 font-medium",children:"\u2705 Done"}),c&&(0,_h.jsx)("span",{className:"text-[10px] px-2 py-0.5 rounded-full bg-orange-100 text-orange-700 font-medium",children:"\u23ed\ufe0f Skipped"})]}),(0,_h.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 mt-1 text-xs text-gray-500",children:[(0,_h.jsx)("span",{children:X$(new Date(e.date),"MMM d, yyyy")}),(0,_h.jsxs)("span",{className:"flex items-center gap-1",children:[(0,_h.jsx)(IZ,{className:"h-3 w-3"}),U(e.start_time)]})]}),(0,_h.jsxs)("div",{className:"flex items-center gap-2 mt-2 flex-wrap",children:[t&&(0,_h.jsxs)("span",{className:"flex items-center gap-1.5 text-xs bg-gray-100 px-2 py-1 rounded-lg",children:[(0,_h.jsx)("div",{className:"h-2 w-2 rounded-full",style:{backgroundColor:t.color}}),t.name]}),n&&(0,_h.jsxs)("span",{className:"text-xs text-white px-2 py-1 rounded-lg",style:{backgroundColor:n.color},children:[n.icon||"\u26bd"," ",n.name]}),e.location&&(0,_h.jsxs)("button",{onClick:t=>{t.stopPropagation(),(e=>{if(!e.location)return;const{location_lat:t,location_lon:n,location:a}=e;if(/iPhone|iPad|iPod|Android/i.test(navigator.userAgent),t&&n){const e="https://www.google.com/maps/dir/?api=1&destination=".concat(t,",").concat(n);window.open(e,"_blank")}else{const e=encodeURIComponent(a),t="https://www.google.com/maps/search/?api=1&query=".concat(e);window.open(t,"_blank")}})(e)},className:"flex items-center gap-1 text-xs text-blue-600 hover:text-blue-700 px-2 py-1 rounded-lg bg-blue-50 hover:bg-blue-100 transition-colors","data-testid":"event-location-btn-".concat(e.id),children:[(0,_h.jsx)(RZ,{className:"h-3 w-3"}),(0,_h.jsx)("span",{className:"max-w-[150px] truncate",children:e.location.split(",")[0]}),(0,_h.jsx)(F4,{className:"h-3 w-3"})]})]}),s&&(0,_h.jsxs)("div",{className:"flex items-center gap-3 mt-2 pt-2 border-t border-gray-100",children:[null!==e.score_home&&null!==e.score_away&&(0,_h.jsxs)("span",{className:"text-xs font-semibold px-2 py-1 rounded-lg ".concat(e.score_home>e.score_away?"bg-green-100 text-green-700":e.score_home<e.score_away?"bg-red-100 text-red-700":"bg-gray-100 text-gray-700"),children:[e.score_home>e.score_away?"W":e.score_home<e.score_away?"L":"T"," ",e.score_home,"-",e.score_away]}),e.goals>0&&(0,_h.jsxs)("span",{className:"text-xs text-gray-600",children:["\u26bd ",e.goals," goals"]}),e.assists>0&&(0,_h.jsxs)("span",{className:"text-xs text-gray-600",children:["\ud83c\udfaf ",e.assists," assists"]})]})]}),(0,_h.jsxs)(nJ,{children:[(0,_h.jsx)(aJ,{asChild:!0,children:(0,_h.jsx)(RG,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl flex-shrink-0",children:(0,_h.jsx)(M4,{className:"h-4 w-4"})})}),(0,_h.jsxs)(oJ,{align:"end",className:"w-48",children:[!l&&!c&&(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsxs)(iJ,{onClick:()=>H(e.id,"completed"),children:[(0,_h.jsx)(FZ,{className:"mr-2 h-4 w-4 text-green-600"})," Mark Complete"]}),(0,_h.jsxs)(iJ,{onClick:()=>
2H(e.id,"skipped"),children:[(0,_h.jsx)(OZ,{className:"mr-2 h-4 w-4 text-orange-600"})," Mark Skipped"]}),(0,_h.jsx)(sJ,{})]}),(l||c)&&(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsxs)(iJ,{onClick:()=>H(e.id,"scheduled"),children:[(0,_h.jsx)(Y4,{className:"mr-2 h-4 w-4"})," Reset Status"]}),(0,_h.jsx)(sJ,{})]}),(0,_h.jsxs)(iJ,{onClick:()=>V(e),children:[(0,_h.jsx)(MZ,{className:"mr-2 h-4 w-4"})," Edit"]}),(0,_h.jsxs)(iJ,{onClick:()=>(e=>{F({open:!0,eventId:e.id,eventTitle:e.title})})(e),className:"text-destructive",children:[(0,_h.jsx)(B4,{className:"mr-2 h-4 w-4"})," Delete"]})]})]})]})})]})},e.id)})})]},t)})}),(0,_h.jsx)(mJ,{open:C,onOpenChange:D,children:(0,_h.jsxs)(yJ,{className:"sm:max-w-lg mx-4 rounded-2xl max-h-[90vh] overflow-y-auto",children:[(0,_h.jsx)(wJ,{children:(0,_h.jsx)(xJ,{className:"text-lg",children:A?"Edit Event":"Add Event"})}),(0,_h.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,_h.jsxs)("div",{className:"grid gap-2",children:[(0,_h.jsx)(EJ,{className:"text-sm font-medium",children:"Event Title"}),(0,_h.jsx)(CJ,{placeholder:"e.g., Soccer Practice","data-testid":"event-title-input",value:N.title,onChange:e=>P(p(p({},N),{},{title:e.target.value})),className:"h-11 rounded-xl"})]}),(0,_h.jsxs)("div",{className:"grid gap-2",children:[(0,_h.jsx)(EJ,{className:"text-sm font-medium",children:"Event Type"}),(0,_h.jsx)("div",{className:"grid grid-cols-3 sm:grid-cols-5 gap-2",children:t3.map(e=>(0,_h.jsxs)("button",{type:"button",onClick:()=>P(p(p({},N),{},{event_type:e.id})),className:"flex flex-col items-center gap-1 p-2 rounded-xl transition-all text-xs ".concat(N.event_type===e.id?"bg-purple-100 ring-2 ring-purple-500":"bg-gray-50 hover:bg-gray-100"),children:[(0,_h.jsx)("span",{className:"text-lg",children:e.icon}),(0,_h.jsx)("span",{className:"text-[10px] font-medium",children:e.name})]},e.id))})]}),(0,_h.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,_h.jsxs)("div",{className:"grid gap-2",children:[(0,_h.jsx)(EJ,{className:"text-sm font-medium",children:"Child"}),(0,_h.jsxs)(MJ,{value:N.child_id,onValueChange:e=>P(p(p({},N),{},{child_id:e})),children:[(0,_h.jsx)(zJ,{className:"h-11 rounded-xl",children:(0,_h.jsx)(BJ,{placeholder:"Select"})}),(0,_h.jsx)(VJ,{children:a.map(e=>(0,_h.jsx)(qJ,{value:e.id,children:e.name},e.id))})]})]}),(0,_h.jsxs)("div",{className:"grid gap-2",children:[(0,_h.jsx)(EJ,{className:"text-sm font-medium",children:"Activity"}),(0,_h.jsxs)(MJ,{value:N.activity_id,onValueChange:e=>P(p(p({},N),{},{activity_id:e})),children:[(0,_h.jsx)(zJ,{className:"h-11 rounded-xl",children:(0,_h.jsx)(BJ,{placeholder:"Select"})}),(0,_h.jsx)(VJ,{children:r.map(e=>(0,_h.jsx)(qJ,{value:e.id,children:e.name},e.id))})]})]})]}),(0,_h.jsxs)("div",{className:"grid gap-2",children:[(0,_h.jsx)(EJ,{className:"text-sm font-medium",children:"Date"}),(0,_h.jsxs)(WJ,{children:[(0,_h.jsx)(KJ,{asChild:!0,children:(0,_h.jsxs)(RG,{variant:"outline",className:"justify-start h-11 rounded-xl",children:[(0,_h.jsx)(iZ,{className:"mr-2 h-4 w-4"}),X$(N.date,"PPP")]})}),(0,_h.jsx)(YJ,{className:"w-auto p-0",align:"start",children:(0,_h.jsx)(XX,{mode:"single",selected:N.date,onSelect:e=>e&&P(p(p({},N),{},{date:e}))})})]})]}),(0,_h.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,_h.jsxs)("div",{className:"grid gap-2",children:[(0,_h.jsx)(EJ,{className:"text-sm font-medium",children:"Start Time"}),(0,_h.jsx)(CJ,{type:"time",value:N.start_time,onChange:e=>P(p(p({},N),{},{start_time:e.target.value})),className:"h-11 rounded-xl"})]}),(0,_h.jsxs)("div",{className:"grid gap-2",children:[(0,_h.jsx)(EJ,{className:"text-sm font-medium",children:"End Time"}),(0,_h.jsx)(CJ,{type:"time",value:N.end_time,onChange:e=>P(p(p({},N),{},{end_time:e.target.value})),className:"h-11 rounded-xl"})]})]}),(0,_h.jsxs)("div",{className:"grid gap-2",children:[(0,_h.jsx)(EJ,{className:"text-sm font-medium",children:"Location"}),(0,_h.jsx)(I4,{value:N.location,onChange:(e,t)=>
2P(p(p({},N),{},{location:e,location_lat:(null===t||void 0===t?void 0:t.lat)||null,location_lon:(null===t||void 0===t?void 0:t.lon)||null})),placeholder:"Search for event location...",homeAddress:i,eventStartTime:N.start_time,showTravelTime:!0})]}),(Y=N.event_type,["game","tournament","scrimmage","competition"].includes(Y)&&(0,_h.jsxs)("div",{className:"border-t pt-4 mt-2",children:[(0,_h.jsxs)(EJ,{className:"text-sm font-medium flex items-center gap-2 mb-3",children:[(0,_h.jsx)(pZ,{className:"h-4 w-4 text-yellow-500"}),"Game Stats (Optional)"]}),(0,_h.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,_h.jsxs)("div",{className:"grid gap-2",children:[(0,_h.jsx)(EJ,{className:"text-xs text-gray-500",children:"Goals/Points Scored"}),(0,_h.jsx)(CJ,{type:"number",min:"0",placeholder:"0",value:N.goals,onChange:e=>P(p(p({},N),{},{goals:e.target.value})),className:"h-10 rounded-xl"})]}),(0,_h.jsxs)("div",{className:"grid gap-2",children:[(0,_h.jsx)(EJ,{className:"text-xs text-gray-500",children:"Assists"}),(0,_h.jsx)(CJ,{type:"number",min:"0",placeholder:"0",value:N.assists,onChange:e=>P(p(p({},N),{},{assists:e.target.value})),className:"h-10 rounded-xl"})]})]}),(0,_h.jsxs)("div",{className:"grid grid-cols-2 gap-3 mt-3",children:[(0,_h.jsxs)("div",{className:"grid gap-2",children:[(0,_h.jsx)(EJ,{className:"text-xs text-gray-500",children:"Our Score (Home)"}),(0,_h.jsx)(CJ,{type:"number",min:"0",placeholder:"0",value:N.score_home,onChange:e=>P(p(p({},N),{},{score_home:e.target.value})),className:"h-10 rounded-xl"})]}),(0,_h.jsxs)("div",{className:"grid gap-2",children:[(0,_h.jsx)(EJ,{className:"text-xs text-gray-500",children:"Opponent Score (Away)"}),(0,_h.jsx)(CJ,{type:"number",min:"0",placeholder:"0",value:N.score_away,onChange:e=>P(p(p({},N),{},{score_away:e.target.value})),className:"h-10 rounded-xl"})]})]})]})),(0,_h.jsxs)("div",{className:"grid gap-2",children:[(0,_h.jsx)(EJ,{className:"text-sm font-medium",children:"Notes"}),(0,_h.jsx)(D4,{placeholder:"Additional notes...","data-testid":"event-notes-input",value:N.notes,onChange:e=>P(p(p({},N),{},{notes:e.target.value})),className:"rounded-xl min-h-[80px]"})]})]}),(0,_h.jsxs)(_J,{className:"flex-col sm:flex-row gap-2",children:[(0,_h.jsx)(RG,{variant:"outline",onClick:()=>D(!1),className:"rounded-xl w-full sm:w-auto",children:"Cancel"}),(0,_h.jsxs)(RG,{onClick:async()=>{if(N.title.trim())try{const e=p(p({},N),{},{date:X$(N.date,"yyyy-MM-dd"),source:"manual",goals:N.goals?parseInt(N.goals):null,assists:N.assists?parseInt(N.assists):null,score_home:N.score_home?parseInt(N.score_home):null,score_away:N.score_away?parseInt(N.score_away):null});if(A){const t=await(async(e,t)=>(await ZK.put("/events/".concat(e),t)).data.event)(A.id,e);n(e=>e.map(e=>e.id===A.id?t:e)),wH.success("Event updated")}else{const t=await cY(e);n(e=>[...e,t]),wH.success("Event created!")}localStorage.setItem("eventsLastModified",Date.now().toString()),D(!1)}catch(e){wH.error("Failed to save event")}else wH.error("Please enter an event title")},className:"rounded-xl w-full sm:w-auto","data-testid":"event-submit-button",children:[(0,_h.jsx)(KG,{className:"mr-2 h-4 w-4"}),A?"Update":"Create"]})]})]})}),(0,_h.jsx)(mJ,{open:T.open,onOpenChange:e=>!e&&F({open:!1,eventId:null,eventTitle:""}),children:(0,_h.jsxs)(yJ,{className:"sm:max-w-md mx-4 rounded-2xl",children:[(0,_h.jsxs)(wJ,{children:[(0,_h.jsx)("div",{className:"flex justify-center mb-2",children:(0,_h.jsx)("div",{className:"w-14 h-14 rounded-2xl bg-gradient-to-br from-red-100 to-red-50 flex items-center justify-center",children:(0,_h.jsx)(B4,{className:"h-7 w-7 text-red-500"})})}),(0,_h.jsx)(xJ,{className:"text-lg text-center",children:"Delete Event"})]}),(0,_h.jsxs)("div",{className:"py-4 text-center",children:[(0,_h.jsxs)("p",{className:"text-gray-600 text-sm",children:["Are you sure you want to delete ",(0,_h.jsxs)("span",{className:"font-semibold text-gray-800",children:['"',T.eventTitle,'"']}),"?"]}),(0,_h.jsx)("p",{className:"text-gray-400 text-xs mt-2",children:"This action cannot be undone."})]}),(0,_h.jsxs)(_J,{className:"flex-col sm:flex-row gap-2",children:[(0,_h.jsx)(RG,{variant:"outline",onClick:()=>F({open:!1,eventId:null,eventTitle:""}),className:"rounded-xl w-full sm:w-auto",children:"Cancel"}),(0,_h.jsxs)(RG,{onClick:()=>q(T.eventId),className:"rounded-xl w-full sm:w-auto bg-red-500 hover:bg-red-600 text-white",children:[(0,_h.jsx)(B4,{className:"mr-2 h-4 w-4"})," Delete Event"]})]})]})})]});var Y},o3=e=>{let{familyMembers:t,onImportComplete:n}=e;const a=(0,o.useRef)(null),[r,i]=(0,o.useState)([]),[s,l]=(0,o.useState)(""),[c,u]=(0,o.useState)(""),[d,h]=(0,o.useState)(""),[p,f]=(0,o.useState)(!1),[m,g]=(0,o.useState)(!1),[v,y]=(0,o.useState)({open:!1,sourceId:null,sourceName:""});(0,o.useEffect)(()=>{w()},[]);const w=async()=>{try{const e=await(async()=>(await ZK.get("/calendar-sources")).data.sources)();i(e)}catch(e){console.error("Failed to load calendar sources")}},_=async e=>{try{await(async e=>(await ZK.delete("/calendar-sources/".concat(e))).data)(e),wH.success("Removed"),w(),y({open:!1,sourceId:null,sourceName:""})}catch(t){wH.error("Failed to remove")}};return(0,_h.jsxs)("div",{className:"space-y-4",children:[(0,_h.jsxs)(Q4,{className:"p-4",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,_h.jsx)("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-blue-500 to-purple-600 flex items-center justify-center",children:(0,_h.jsx)(G4,{className:"h-5 w-5 text-white"})}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("h3",{className:"font-semibold text-gray-900 text-sm",children:"Connect by URL"}),(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"Google Calendar, Outlook, etc."})]})]}),(0,_h.jsxs)("div",{className:"space-y-3",children:[(0,_h.jsx)(CJ,{placeholder:"Calendar name",value:c,onChange:e=>u(e.target.value),className:"h-11 rounded-xl"}),(0,_h.jsx)(CJ,{placeholder:"https://calendar.google.com/...",value:s,onChange:e=>l(e.target.value),className:"h-11 rounded-xl"}),(0,_h.jsxs)(MJ,{value:d,onValueChange:h,children:[(0,_h.jsx)(zJ,{className:"h-11 rounded-xl",children:(0,_h.jsx)(BJ,{placeholder:"Assign to child (optional)"})}),(0,_h.jsxs)(VJ,{children:[(0,_h.jsx)(qJ,{value:"none",children:"No specific child"}),t.map(e=>(0,_h.jsx)(qJ,{value:e.id,children:e.name},e.id))]})]}),(0,_h.jsxs)(RG,{onClick:async()=>
2{if(s.trim())if(c.trim()){f(!0);try{await(async e=>(await ZK.post("/calendar-sources/subscribe",e)).data)({name:c,url:s,child_id:d||null}),wH.success("Calendar connected!"),l(""),u(""),h(""),w(),n()}catch(a){var e,t;wH.error((null===(e=a.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Failed to connect")}finally{f(!1)}}else wH.error("Please enter a name");else wH.error("Please enter a calendar URL")},disabled:p,className:"w-full rounded-xl h-11",children:[p?(0,_h.jsx)(VZ,{className:"h-4 w-4 animate-spin mr-2"}):(0,_h.jsx)(J4,{className:"h-4 w-4 mr-2"}),p?"Connecting...":"Connect Calendar"]})]})]}),(0,_h.jsxs)(Q4,{className:"p-4",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,_h.jsx)("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-orange-500 to-pink-600 flex items-center justify-center",children:(0,_h.jsx)($4,{className:"h-5 w-5 text-white"})}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("h3",{className:"font-semibold text-gray-900 text-sm",children:"Upload .ics File"}),(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"Import from exported file"})]})]}),(0,_h.jsx)("input",{ref:a,type:"file",accept:".ics",onChange:async e=>{const t=e.target.files[0];if(t&&t.name.toLowerCase().endsWith(".ics")){g(!0);try{await(async(e,t,n)=>{const a=new FormData;return a.append("file",e),t&&a.append("name",t),n&&a.append("child_id",n),(await ZK.post("/calendar-sources/upload",a,{headers:{"Content-Type":"multipart/form-data"}})).data})(t,t.name.replace(".ics",""),null),wH.success("Calendar imported!"),w(),n()}catch(r){wH.error("Failed to upload")}finally{g(!1),a.current&&(a.current.value="")}}else wH.error("Please select an .ics file")},className:"hidden"}),(0,_h.jsxs)(RG,{onClick:()=>{var e;return null===(e=a.current)||void 0===e?void 0:e.click()},disabled:m,variant:"outline",className:"w-full rounded-xl h-11 border-dashed border-2",children:[m?(0,_h.jsx)(VZ,{className:"h-4 w-4 animate-spin mr-2"}):(0,_h.jsx)(z4,{className:"h-4 w-4 mr-2"}),m?"Uploading...":"Choose File"]})]}),r.length>0&&(0,_h.jsxs)("div",{className:"space-y-3",children:[(0,_h.jsx)("h3",{className:"font-semibold text-sm text-gray-700",children:"Connected Calendars"}),r.map(e=>(0,_h.jsx)(Q4,{className:"p-4",children:(0,_h.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,_h.jsx)("div",{className:"w-9 h-9 rounded-xl flex items-center justify-center ".concat("success"===e.sync_status?"bg-green-100":"bg-red-100"),children:(0,_h.jsx)(iZ,{className:"h-4 w-4 ".concat("success"===e.sync_status?"text-green-600":"text-red-600")})}),(0,_h.jsxs)("div",{className:"min-w-0",children:[(0,_h.jsx)("p",{className:"font-medium text-gray-900 text-sm truncate",children:e.name}),(0,_h.jsxs)("p",{className:"text-xs text-gray-500",children:[e.event_count," events"]})]})]}),(0,_h.jsx)(RG,{variant:"ghost",size:"sm",onClick:()=>(e=>{y({open:!0,sourceId:e.id,sourceName:e.name})})(e),className:"rounded-xl text-red-500 h-8 w-8 p-0",children:(0,_h.jsx)(B4,{className:"h-4 w-4"})})]})},e.id))]}),(0,_h.jsx)(mJ,{open:v.open,onOpenChange:e=>!e&&y({open:!1,sourceId:null,sourceName:""}),children:(0,_h.jsxs)(yJ,{className:"sm:max-w-md mx-4 rounded-2xl",children:[(0,_h.jsxs)(wJ,{children:[(0,_h.jsx)("div",{className:"flex justify-center mb-2",children:(0,_h.jsx)("div",{className:"w-14 h-14 rounded-2xl bg-gradient-to-br from-red-100 to-red-50 flex items-center justify-center",children:(0,_h.jsx)(B4,{className:"h-7 w-7 text-red-500"})})}),(0,_h.jsx)(xJ,{className:"text-lg text-center",children:"Remove Calendar"})]}),(0,_h.jsxs)("div",{className:"py-4 text-center",children:[(0,_h.jsxs)("p",{className:"text-gray-600 text-sm",children:["Are you sure you want to remove ",(0,_h.jsxs)("span",{className:"font-semibold text-gray-800",children:['"',v.sourceName,'"']}),"?"]}),(0,_h.jsx)("p",{className:"text-gray-400 text-xs mt-2",children:"All imported events from this source will be deleted."})]}),(0,_h.jsxs)(_J,{className:"flex-col sm:flex-row gap-2",children:[(0,_h.jsx)(RG,{variant:"outline",onClick:()=>y({open:!1,sourceId:null,sourceName:""}),className:"rounded-xl w-full sm:w-auto",children:"Cancel"}),(0,_h.jsxs)(RG,{onClick:()=>_(v.sourceId),className:"rounded-xl w-full sm:w-auto bg-red-500 hover:bg-red-600 text-white",children:[(0,_h.jsx)(B4,{className:"mr-2 h-4 w-4"})," Remove Calendar"]})]})]})})]})},i3=()=>{const[e,t]=Rt(),[n,a]=(0,o.useState)(!0),[r,i]=(0,o.useState)([]),[s,l]=(0,o.useState)([]),[c,u]=(0,o.useState)([]),[d,h]=(0,o.useState)(null),[p,f]=(0,o.useState)(null),m=e.get("tab")||"family",[g,v]=(0,o.useState)(m),y="pro"===(null===d||void 0===d?void 0:d.account_type);(0,o.useEffect)(()=>{w()},[]);const w=async()=>{const[e,t,n,r,o]=await Promise.all([rY().catch(e=>(console.error("Failed to fetch family members:",e),[])),iY().catch(e=>(console.error("Failed to fetch activities:",e),[])),lY().catch(e=>(console.error("Failed to fetch events:",e),[])),nY.get("/account/status").then(e=>e.data).catch(()=>null),nY.get("/settings").then(e=>e.data.settings).catch(()=>null)]);i(e||[]),l(t||[]),u(n||[]),h(r),null!==o&&void 0!==o&&o.home_address&&f(o.home_address),a(!1)};return n?(0,_h.jsxs)("div",{className:"space-y-4",children:[(0,_h.jsx)(yZ,{className:"h-8 w-40"}),(0,_h.jsx)(yZ,{className:"h-12 w-full rounded-xl"}
2),(0,_h.jsx)(yZ,{className:"h-64 rounded-2xl"})]}):(0,_h.jsxs)("div",{className:"min-h-screen pb-24 md:pb-8",children:[(0,_h.jsxs)("div",{className:"mb-6",children:[(0,_h.jsx)("h1",{className:"text-2xl font-bold text-gray-900",children:"My Family"}),(0,_h.jsx)("p",{className:"text-sm text-gray-500",children:"Manage your family, activities & schedules"})]}),(0,_h.jsxs)(S4,{value:g,onValueChange:e=>{v(e),t({tab:e})},className:"w-full",children:[(0,_h.jsxs)(N4,{className:"w-full p-1 rounded-xl bg-gray-100 grid grid-cols-5 h-auto mb-6",children:[(0,_h.jsxs)(P4,{value:"family",className:"rounded-lg py-2.5 text-xs font-medium data-[state=active]:bg-white data-[state=active]:shadow-sm",children:[(0,_h.jsx)(eZ,{className:"h-4 w-4 mr-1.5"}),(0,_h.jsx)("span",{className:"hidden sm:inline",children:"Family"})]}),(0,_h.jsxs)(P4,{value:"activities",className:"rounded-lg py-2.5 text-xs font-medium data-[state=active]:bg-white data-[state=active]:shadow-sm",children:[(0,_h.jsx)(lZ,{className:"h-4 w-4 mr-1.5"}),(0,_h.jsx)("span",{className:"hidden sm:inline",children:"Activities"})]}),(0,_h.jsxs)(P4,{value:"events",className:"rounded-lg py-2.5 text-xs font-medium data-[state=active]:bg-white data-[state=active]:shadow-sm",children:[(0,_h.jsx)(iZ,{className:"h-4 w-4 mr-1.5"}),(0,_h.jsx)("span",{className:"hidden sm:inline",children:"Events"})]}),(0,_h.jsxs)(P4,{value:"import",className:"rounded-lg py-2.5 text-xs font-medium data-[state=active]:bg-white data-[state=active]:shadow-sm",children:[(0,_h.jsx)(z4,{className:"h-4 w-4 mr-1.5"}),(0,_h.jsx)("span",{className:"hidden sm:inline",children:"Import"})]})]}),(0,_h.jsx)(T4,{value:"family",className:"mt-0",children:(0,_h.jsx)(n3,{members:r,setMembers:i,isPro:y,events:c,activities:s})}),(0,_h.jsx)(T4,{value:"activities",className:"mt-0",children:(0,_h.jsx)(a3,{activities:s,setActivities:l,isPro:y,events:c,familyMembers:r})}),(0,_h.jsx)(T4,{value:"events",className:"mt-0",children:(0,_h.jsx)(r3,{events:c,setEvents:u,familyMembers:r,activities:s,homeAddress:p})}),(0,_h.jsx)(T4,{value:"import",className:"mt-0",children:(0,_h.jsx)(o3,{familyMembers:r,onImportComplete:w})})]})]})},s3=HG("message-circle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]),l3=HG("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),c3=HG("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]),u3=HG("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]),d3=e=>{let{children:t,className:n=""}=e;return(0,_h.jsx)("div",{className:"relative ".concat(n),style:{background:"rgba(255, 255, 255, 0.95)",backdropFilter:"blur(40px)",WebkitBackdropFilter:"blur(40px)",borderRadius:"16px",boxShadow:"0 2px 16px -4px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.03)"},children:t})},h3=e=>{let{message:t,isUser:n,timestamp:a}=e;return(0,_h.jsx)("div",{className:"flex ".concat(n?"justify-end":"justify-start"," mb-3"),children:(0,_h.jsxs)("div",{className:"max-w-[85%]",children:[(0,_h.jsx)("div",{className:"px-4 py-3 ".concat(n?"bg-gradient-to-r from-purple-600 to-pink-600 text-white rounded-2xl rounded-br-md":"bg-gray-100 text-gray-900 rounded-2xl rounded-bl-md"),children:(0,_h.jsx)("p",{className:"text-sm leading-relaxed whitespace-pre-wrap",children:t})}),a&&(0,_h.jsx)("p",{className:"text-[11px] text-gray-400 mt-1 ".concat(n?"text-right mr-2":"ml-2"),children:X$(new Date(a),"h:mm a")})]})})},p3=e=>{let{icon:t,label:n,onClick:a,active:r,gradient:o}=e;return(0,_h.jsxs)("button",{onClick:a,className:"flex items-center gap-2 px-4 py-2.5 rounded-xl text-sm font-medium transition-all whitespace-nowrap ".concat(r?"text-white shadow-lg":"bg-white text-gray-700 shadow-sm hover:shadow-md border border-gray-100"),style:r?{background:o||"linear-gradient(135deg, #8B5CF6, #EC4899)"}:{},children:[(0,_h.jsx)(t,{className:"h-4 w-4"}),n]})},f3=()=>{var e,t,n;Ee();const[a,r]=(0,o.useState)(!0),[i,s]=(0,o.useState)([]),[l,c]=(0,o.useState)("chat"),[u,d]=(0,o.useState)(null),[h,p]=(0,o.useState)(!0),[f,m]=(0,o.useState)([]),[g,v]=(0,o.useState)(""),[y,w]=(0,o.useState)(!1),[_,x]=(0,o.useState)([]),b=(0,o.useRef)(null),k=(0,o.useRef)(null),[C,D]=(0,o.useState)(new Date),[A,E]=(0,o.useState)(""),[j,S]=(0,o.useState)(null),[N,P]=(0,o.useState)(!1);(0,o.useEffect)(()=>{T()},[]),(0,o.useEffect)(()=>{var e;null===(e=b.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})},[f]);const T=async()=>{try{const e=await nY.get("/account/status");if(d(e.data),"pro"===e.data.account_type){const[e,t]=await Promise.all([rY(),pY()]);s(e),x(t),e.length>0&&E(e[0].id)}}catch(e){console.error("Failed to load data")}finally{p(!1),r(!1)}};if(!h&&"pro"!==(null===u||void 0===u?void 0:u.account_type))return(0,_h.jsx)("div",{className:"max-w-4xl mx-auto",children:(0,_h.jsxs)("div",{className:"text-center py-16",children:[(0,_h.jsx)("div",{className:"w-20 h-20 mx-auto rounded-full bg-gradient-to-br from-purple-100 to-indigo-100 flex items-center justify-center mb-6",children:(0,_h.jsx)(L4,{className:"h-10 w-10 text-purple-600"})}),(0,_h.jsx)("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Unlock SmartDaddy AI"}),(0,_h.jsx)("p",{className:"text-gray-600 max-w-md mx-auto mb-8",children:"Get your personal AI-powered fam
2ily assistant. Ask questions about schedules, get daily and weekly summaries, and let AI help you stay organized."}),(0,_h.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 max-w-2xl mx-auto mb-8",children:[(0,_h.jsxs)("div",{className:"p-4 bg-white rounded-xl shadow-sm border border-gray-100",children:[(0,_h.jsx)(s3,{className:"h-8 w-8 text-purple-500 mx-auto mb-2"}),(0,_h.jsx)("p",{className:"text-sm font-medium",children:"Ask Anything"}),(0,_h.jsx)("p",{className:"text-xs text-gray-500 mt-1",children:"Chat about your family's schedule"})]}),(0,_h.jsxs)("div",{className:"p-4 bg-white rounded-xl shadow-sm border border-gray-100",children:[(0,_h.jsx)(iZ,{className:"h-8 w-8 text-blue-500 mx-auto mb-2"}),(0,_h.jsx)("p",{className:"text-sm font-medium",children:"Daily Summaries"}),(0,_h.jsx)("p",{className:"text-xs text-gray-500 mt-1",children:"AI-generated daily overviews"})]}),(0,_h.jsxs)("div",{className:"p-4 bg-white rounded-xl shadow-sm border border-gray-100",children:[(0,_h.jsx)(eZ,{className:"h-8 w-8 text-green-500 mx-auto mb-2"}),(0,_h.jsx)("p",{className:"text-sm font-medium",children:"Per-Child Insights"}),(0,_h.jsx)("p",{className:"text-xs text-gray-500 mt-1",children:"Summaries for each kid"})]})]}),(0,_h.jsxs)("div",{className:"max-w-md mx-auto mb-8 p-4 bg-gray-50 rounded-2xl",children:[(0,_h.jsx)("div",{className:"flex justify-end mb-2",children:(0,_h.jsx)("div",{className:"px-4 py-2 bg-gradient-to-r from-purple-600 to-pink-600 text-white rounded-2xl rounded-br-md text-sm",children:"What's on the schedule for tomorrow?"})}),(0,_h.jsx)("div",{className:"flex justify-start",children:(0,_h.jsx)("div",{className:"px-4 py-2 bg-white text-gray-700 rounded-2xl rounded-bl-md text-sm shadow-sm",children:"Tomorrow is busy! Emma has soccer practice at 4pm and Jake has swim lessons at 5:30pm..."})})]}),(0,_h.jsxs)(RG,{disabled:!0,className:"rounded-full h-12 px-8 bg-gray-300 cursor-not-allowed opacity-60",children:[(0,_h.jsx)(U4,{className:"h-5 w-5 mr-2"}),"Pro \u2014 Coming Soon"]}),(0,_h.jsx)("p",{className:"text-sm text-gray-500 mt-4",children:"We're working on bringing you amazing AI features. Stay tuned!"})]})});const F=async e=>{const t=e||g.trim();if(!t||y)return;const n={id:Date.now(),text:t,isUser:!0,timestamp:(new Date).toISOString()};m(e=>[...e,n]),v(""),w(!0),c("chat");try{const e=await(async e=>(await ZK.post("/chat",{message:e})).data)(t),n={id:Date.now()+1,text:e.response,isUser:!1,timestamp:e.timestamp};m(e=>[...e,n])}catch(r){wH.error("Failed to get response"),m(e=>e.filter(e=>e.id!==n.id))}finally{var a;w(!1),null===(a=k.current)||void 0===a||a.focus()}},O=async e=>{c(e),P(!0),S(null);try{let t;"daily"===e?t=await dY(X$(C,"yyyy-MM-dd")):"weekly"===e?t=await hY(X$(C,"yyyy-MM-dd")):"child"===e&&A&&(t=await(async e=>(await ZK.post("/summaries/per-child",{child_id:e})).data)(A)),S(t),wH.success("Summary generated!")}catch(t){wH.error("Failed to generate summary")}finally{P(!1)}};return a?(0,_h.jsxs)("div",{className:"space-y-4",children:[(0,_h.jsx)(yZ,{className:"h-12 w-64"}),(0,_h.jsx)(yZ,{className:"h-[500px] rounded-2xl"})]}):(0,_h.jsxs)("div",{className:"min-h-screen pb-24 md:pb-8",children:[(0,_h.jsx)("div",{className:"mb-5",children:(0,_h.jsxs)("div",{className:"flex items-center gap-3 mb-1",children:[(0,_h.jsx)("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-purple-600 to-pink-600 flex items-center justify-center",children:(0,_h.jsx)(nZ,{className:"h-5 w-5 text-white"})}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("h1",{className:"text-2xl font-bold text-gray-900",children:"SmartDaddy"}),(0,_h.jsx)("p",{className:"text-sm text-gray-500",children:"AI-powered family assistant"})]})]})}),(0,_h.jsxs)("div",{className:"flex gap-2 overflow-x-auto pb-4 -mx-4 px-4 md:mx-0 md:px-0",children:[(0,_h.jsx)(p3,{icon:s3,label:"Ask AI",onClick:()=>{c("chat"),S(null)},active:"chat"===l}),(0,_h.jsx)(p3,{icon:iZ,label:"Daily Summary",onClick:()=>{c("daily"),S(null)},active:"daily"===l,gradient:"linear-gradient(135deg, #3B82F6, #8B5CF6)"}),(0,_h.jsx)(p3,{icon:iZ,label:"Weekly Summary",onClick:()=>{c("weekly"),S(null)},active:"weekly"===l,gradient:"linear-gradient(135deg, #10B981, #3B82F6)"}),i.length>0&&(0,_h.jsx)(p3,{icon:eZ,label:"Child Summary",onClick:()=>{c("child"),S(null)},active:"child"===l,gradient:"linear-gradient(135deg, #F59E0B, #EF4444)"})]}),(0,_h.jsxs)(d3,{className:"overflow-hidden",children:[("daily"===l||"weekly"===l||"child"===l)&&(0,_h.jsxs)("div",{className:"p-4",children:[(0,_h.jsxs)("div",{className:"flex items-center justify-between mb-4 flex-wrap gap-3",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,_h.jsx)("div",{className:"w-10 h-10 rounded-xl flex items-center justify-center text-white ".concat("daily"===l?"bg-gradient-to-br from-blue-500 to-purple-600":"weekly"===l?"bg-gradient-to-br from-green-500 to-blue-600":"bg-gradient-to-br from-orange-500 to-red-600"),children:"child"===l?(0,_h.jsx)(eZ,{className:"h-5 w-5"}):(0,_h.jsx)(iZ,{className:"h-5 w-5"})}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("h3",{className:"font-semibold text-gray-800",children:"daily"===l?"Daily Summary":"weekly"===l?"Weekly Overview":"Child Summary"}),(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"child"===l&&A?null===(e=i.find(e=>e.id===A))||void 0===e?void 0:e.name:X$(C,"daily"===l?"EEEE, MMMM d":"'Week of' MMM d, yyyy")})]})]}),(0,_h.jsxs)("div",{className:"flex items-center gap-2",children:["child"!==l&&(0,_h.jsxs)(WJ,{children:[(0,_h.jsx)(KJ,{asChild:!0,children:(0,_h.jsxs)(RG,{variant:"outline",size:"sm",className:"rounded-xl h-9",children:[(0,_h.jsx)(iZ,{className:"mr-1.5 h-3.5 w-3.5"}),"Change"]})}),(0,_h.jsx)(YJ,{className:"w-auto p-0",align:"end",children:(0,_h.jsx)(XX,{mode:"single",selected:C,onSelect:e=>e&&D(e)})})]}),"child"===l&&i.length>0&&(0,_h.jsxs)(WJ,{children:[(0,_h.jsx)(KJ,{asChild:!0,children:(0,_h.jsxs)(RG,{variant:"outline",size:"sm",className:"rounded-xl h-9",children:[(0,_h.jsx)(eZ,{className:"mr-1.5 h-3.5 w-3.5"}),(null===(t=i.find(e=>e.id===A))||void 0===t?void 0:t.name)||"Select",(0,_h.jsx)(jJ,{className:"ml-1 h-3 w-3"})]})}),(0,_h.jsx)(YJ,{className:"w-48 p-2",align:"end",children:i.map(e=>{var t;return(0,_h.jsxs)("button",{onClick:()=>E(e.id),className:"w-full flex items-center gap-2 px-3 py-2 rounded-lg text-sm transition-colors ".concat(A===e.id?"bg-gray-100":"hover:bg-gray-50"),children:[(0,_h.jsx)("div",{className:"w-6 h-6 rounded-full flex items-center justify-center text-white text-xs font-bold",style:{backgroundColor:e.color},children:null===(t=e.name)||void 0===t?void 0:t.charAt(0)}),e.name]},e.id)})})]}),(0,_h.jsxs)(RG,{size:"sm",className:"rounded-xl h-9 bg-gradient-to-r from-purple-600 to-pink-600 hover:from-purple-700 hover:to-pink-700",onClick:()=>O(l),disabled:N,children:[N?(0,_h.jsx)(VZ,{className:"h-4 w-4 animate-spin mr-2"}):j?(0,_h.jsx)(qZ,{className:"h-4 w-4 mr-2"}):(0,_h.jsx)(UZ,{className:"h-4 w-4 mr-2"}),j?"Refresh":"Generate"]})]})]}),N?(0,_h.jsxs)("div",{className:"space-y-3 py-8",children:[(0,_h.jsx)(yZ,{className:"h-4 w-full"}),(0,_h.jsx)(yZ,{className:"h-4 w-3/4"}),(0,_h.jsx)(yZ,{className:"h-4 w-1/2"})]}):j?(0,_h.jsxs)("div",{className:"space-y-4",children:[(0,_h.jsx)("div",{className:"text-sm leading-relaxed text-gray-700 whitespace-pre-wrap bg-gray-50 p-4 rounded-xl",children:j.summary}),(null===(n=j.events)||void 0===n?void 0:n.length)>0&&(0,_h.jsxs)("div",{className:"flex gap-3 flex-wrap",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 bg-blue-50 rounded-xl",children:[(0,_h.jsx)(iZ,{className:"h-4 w-4 text-blue-500"}),(0,_h.jsxs)("span",{className:"text-sm font-medium text-blue-700",children:[j.events.length," Events"]})]}),j.events.length>3&&(0,_h.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 bg-amber-50 rounded-xl",children:[(0,_h.jsx)(IZ,{className:"h-4 w-4 text-amber-500"}),(0,_h.jsx)("span",{className:"text-sm font-medium text-amber-700",children:"Busy Schedule"})]})]}),(0,_h.jsxs)("div",{className:"flex gap-2 pt-3 border-t border-gray-100",children:[(0,_h.jsxs)(RG,{variant:"outline",size:"sm",className:"rounded-xl flex-1 h-10",onClick:()=>{null!==j&&void 0!==j&&j.summary&&(navigator.clipboard.writeText(j.summary),wH.success("Copied to clipboard"))},children:[(0,_h.jsx)(l3,{className:"mr-2 h-4 w-4"})," Copy"]}),(0,_h.jsxs)(RG,{variant:"outline",size:"sm",className:"rounded-xl flex-1 h-10",onClick:()=>wH.info("Share feature coming soon!"),children:[(0,_h.jsx)(c3,{className:"mr-2 h-4 w-4"})," Share"]})]})]}):(0,_h.jsxs)("div",{className:"text-center py-12",children:[(0,_h.jsx)(UZ,{className:"h-12 w-12 mx-auto text-gray-200 mb-3"}),(0,_h.jsx)("p",{className:"text-gray-500 text-sm mb-1",children:"Ready to generate your summary"}),(0,_h.jsx)("p",{className:"text-gray-400 text-xs",children:'Click the "Generate" button above to get started'})]})]}),"chat"===l&&(0,_h.jsxs)("div",{className:"flex flex-col",style:{height:"500px"},children:[(0,_h.jsx)("div",{className:"flex-1 overflow-y-auto p-4",children:0===f.length?(0,_h.jsxs)("div",{className:"h-full flex flex-col items-center justify-center text-center px-4",children:[(0,_h.jsx)("div",{className:"w-16 h-16 rounded-2xl bg-gradient-to-br from-purple-100 to-pink-100 flex items-center justify-center mb-4",children:(0,_h.jsx)(s3,{className:"h-8 w-8 text-purple-600"})}),(0,_h.jsx)("h2",{className:"text-lg font-semibold text-gray-900 mb-2",children:"Hi, I'm SmartDaddy"}),(0,_h.jsx)("p",{className:"text-gray-500 text-sm mb-6 max-w-sm",children:"Ask me anything about your family's schedule, conflicts, or upcoming events."}),_.length>0&&(0,_h.jsxs)("div",{className:"space-y-2",children:[(0,_h.jsx)("p",{className:"text-xs text-gray-400",children:"Try asking:"}),(0,_h.jsx)("div",{className:"flex flex-wrap gap-2 justify-center",children:_.slice(0,4).map((e,t)=>(0,_h.jsx)("button",{onClick:()=>F(e),className:"px-4 py-2 bg-white border border-gray-200 rounded-xl text-sm text-gray-700 hover:bg-gray-50 hover:border-gray-300 transition-all",children:e},t))})]})]}):(0,_h.jsxs)(_h.Fragment,{children:[f.map(e=>(0,_h.jsx)(h3,{message:e.text,isUser:e.isUser,timestamp:e.timestamp},e.id)),y&&(0,_h.jsx)("div",{className:"flex justify-start mb-3",children:(0,_h.jsx)("div",{className:"bg-gray-100 px-4 py-3 rounded-2xl rounded-bl-md",children:(0,_h.jsxs)("div",{className:"flex gap-1",children:[(0,_h.jsx)("div",{className:"w-2 h-2 bg-gray-400 rounded-full animate-bounce",style:{animationDelay:"0ms"}}),(0,_h.jsx)("div",{className:"w-2 h-2 bg-gray-400 rounded-full animate-bounce",style:{animationDelay:"150ms"}}),(0,_h.jsx)("div",{className:"w-2 h-2 bg-gray-400 rounded-full animate-bounce",style:{animationDelay:"300ms"}})]})})}),(0,_h.jsx)("div",{ref:b})]})}),(0,_h.jsx)("div",{className:"p-3 border-t border-gray-100 bg-gray-50/50",children:(0,_h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_h.jsx)(CJ,{ref:k,value:g,onChange:e=>v(e.target.value),onKeyPress:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),F())},placeholder:"Ask SmartDaddy anything...",className:"flex-1 h-11 rounded-xl border-gray-200 bg-white focus:ring-purple-500/20 focus:border-purple-500",disabled:y}),(0,_h.jsx)(RG,{onClick:()=>F(),disabled:!g.trim()||y,size:"icon",className:"rounded-xl h-11 w-11 bg-gradient-to-r from-purple-600 to-pink-600 hover:from-purple-700 hover:to-pink-700 disabled:opacity-50",children:y?(0,_h.jsx)(VZ,{className:"h-4 w-4 animate-spin"}):(0,_h.jsx)(u3,{className:"h-4 w-4"})})]})})]})]}),(0,_h.jsx)(d3,{className:"mt-4 p-4 border border-dashed border-gray-200",children:(0,_h.jsxs)("div",{className:"flex items-start gap-3",children:[(0,_h.jsx)("div",{className:"h-8 w-8 rounded-xl bg-purple-50 flex items-center justify-center flex-shrink-0",children:(0,_h.jsx)(UZ,{className:"h-4 w-4 text-purple-500"})}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("h4",{className:"font-medium text-sm text-gray-900 mb-1",children:"SmartDaddy Tips"}),(0,_h.jsxs)("ul",{className:"text-xs text-gray-500 space-y-0.5",children:[(0,_h.jsx)("li",{children:'Ask "What\'s on today?" for quick schedule overview'}),(0,_h.jsx)("li",{children:"Generate daily/weekly summaries with one tap"}),(0,_h.jsx)("li",{children:"Ask about conflicts or busy periods"})]})]})]})})]})},m3=["className"],g3=o.forwardRef((e,t)=>
2{let{className:n}=e,a=l(e,m3);return(0,_h.jsx)(cz,p(p({className:FG("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",n)},a),{},{ref:t,children:(0,_h.jsx)(uz,{className:FG("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}))});g3.displayName=cz.displayName;const v3=HG("smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]),y3=HG("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]),w3=HG("message-square",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]),_3=HG("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]),x3=HG("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]),b3=HG("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),k3=HG("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),C3=HG("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),D3=e=>{let{className:t}=e;return(0,_h.jsx)("svg",{className:t,viewBox:"0 0 24 24",fill:"currentColor",children:(0,_h.jsx)("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})})},A3=e=>{let{className:t}=e;return(0,_h.jsxs)("svg",{className:t,viewBox:"0 0 24 24",children:[(0,_h.jsx)("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),(0,_h.jsx)("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),(0,_h.jsx)("path",{fill:"#FBBC05",d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),(0,_h.jsx)("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"})]})},E3=e=>{let{className:t}=e;return(0,_h.jsx)("svg",{className:t,viewBox:"0 0 24 24",fill:"currentColor",children:(0,_h.jsx)("path",{fill:"#0082FB",d:"M12 2.04c-5.5 0-10 4.49-10 10.02 0 5 3.66 9.15 8.44 9.9v-7H7.9v-2.9h2.54V9.85c0-2.52 1.49-3.92 3.78-3.92 1.09 0 2.24.2 2.24.2v2.47h-1.26c-1.24 0-1.63.78-1.63 1.57v1.88h2.78l-.45 2.9h-2.33v7a10 10 0 0 0 8.44-9.9c0-5.53-4.5-10.02-10-10.02z"})})},j3=e=>{let{children:t,className:n=""}=e;return(0,_h.jsx)("div",{className:"relative ".concat(n),style:{background:"rgba(255, 255, 255, 0.95)",backdropFilter:"blur(40px)",borderRadius:"20px",boxShadow:"0 2px 16px -4px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.03)"},children:t})},S3=e=>{let{icon:t,iconBg:n,label:a,description:r,children:o,comingSoon:i}=e;return(0,_h.jsxs)("div",{className:"flex items-center justify-between py-4 ".concat(i?"opacity-60":""),children:[(0,_h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,_h.jsx)("div",{className:"w-10 h-10 rounded-xl flex items-center justify-center ".concat(n||"bg-gray-100"),children:(0,_h.jsx)(t,{className:"h-5 w-5 text-white"})}),(0,_h.jsxs)("div",{children:[(0,_h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_h.jsx)("p",{className:"font-medium text-gray-800 text-sm",children:a}),i&&(0,_h.jsx)("span",{className:"text-[10px] px-2 py-0.5 bg-gray-100 text-gray-500 rounded-full font-medium",children:"Coming Soon"})]}),r&&(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:r})]})]}),(0,_h.jsx)("div",{children:o})]})},N3=e=>{let{icon:t,label:n,connected:a,comingSoon:r,onClick:o}=e;return(0,_h.jsxs)("button",{onClick:o,disabled:r,className:"w-full flex items-center justify-between p-4 rounded-xl border transition-all ".concat(r?"bg-gray-50 border-gray-100 cursor-not-allowed opacity-60":a?"bg-green-50 border-green-200":"bg-white border-gray-200 hover:border-gray-300 hover:shadow-sm"),children:[(0,_h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,_h.jsx)(t,{className:"h-6 w-6"}),(0,_h.jsx)("span",{className:"font-medium text-sm",children:n}),r&&(0,_h.jsx)("span",{className:"text-[10px] px-2 py-0.5 bg-gray-200 text-gray-500 rounded-full font-medium",children:"Coming Soon"})]}),a?(0,_h.jsxs)("span",{className:"text-xs text-green-600 font-medium flex items-center gap-1",children:[(0,_h.jsx)(KG,{className:"h-3 w-3"})," Connected"]}):r?null:(0,_h.jsx)(WG,{className:"h-4 w-4 text-gray-400"})]})},P3=()=>{var e,t,n,a,r,i,s,l,c,u,d,h,f,m,g,v,y;const{user:w}=gY(),[_]=(Ee(),Rt()),[x,b]=(0,o.useState)(null),[k,C]=(0,o.useState)(!0),[D,A]=(0,o.useState)(!1),[E,j]=(0,o.useState)("monthly"),[S,N]=(0,o.useState)(null),[P,T]=(0,o.useState)(""),[F,O]=(0,o.useState)(null),[I,R]=(0,o.useState)(!1),[M,B]=(0,o.useState)({inApp:!0,push:!1,email:!1,text:!1}),[z,L]=(0,o.useState)(!1),[U,V]=(0,o.useState)({currentPassword:"",newPassword:"",confirmPassword:""}),[q,H]=(0,o.useState)({current:!1,new:!1,confirm:!1}),[W,K]=(0,o.useState)(!1),[Y,G]=(0,o.useState)(!1),[J,$]=(0,o.useState)(!1),[Q,X]=(0,o.useState)(1),[Z,ee]=(0,o.useState)(""),[te,ne]=(0,o.useState)(!1),[ae,re]=(0,o.useState)(""),[oe,ie]=(0,o.useState)([]);(0,o.useEffect)(()=>{se(),le()},[]);const se=async()=>{try{const e=await nY.get("/account/status");b(e.data)}catch(e){console.error("Failed to load account status:",e)}finally{C(!1)}},le=async()=>{try{const e=(await nY.get("/settings")).data.settings;N(e),null!==e&&void 0!==e&&e.home_address&&(T(e.home_address.address||""),O({lat:e.home_address.lat,lon:e.home_address.lon}))}catch(e){console.error("Failed to load user settings:",e)}},ce=(e,t)=>{"email"!==e&&"text"!==e?(B(n=>p(p({},n),{},{[e]:t})),wH.success("".concat("inApp"===e?"In-app":"Push"," notifications ").concat(t?"enabled":"disabled"))):wH.info("This feature is coming soon!")};return(0,_h.jsxs)("div",{className:"min-h-screen pb-24 md:pb-8",children:[(0,_h.jsxs)("div",{className:"mb-6",children:[(0,_h.jsx)("h1",{className:"text-2xl font-bold text-gray-900",children:"Account Settings"}),(0,_h.jsx)("p",{className:"text-sm text-gray-500",children:"Manage your account preferences"})]}),(0,_h.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[(0,_h.jsxs)("div",{className:"space-y-4",children:[(0,_h.jsx)(j3,{className:"p-5",children:(0,_h.jsxs)("div",{className:"flex items-center gap-4 mb-4",children:[(0,_h.jsx)("div",{className:"w-14 h-14 roun
2ded-full bg-gradient-to-br from-purple-500 to-pink-500 flex items-center justify-center text-white text-xl font-bold",children:(null===w||void 0===w||null===(e=w.name)||void 0===e||null===(t=e.charAt(0))||void 0===t?void 0:t.toUpperCase())||"U"}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("h2",{className:"font-semibold text-gray-800",children:(null===w||void 0===w?void 0:w.name)||"User"}),(0,_h.jsx)("p",{className:"text-sm text-gray-500",children:(null===w||void 0===w?void 0:w.email)||"[email protected]"})]})]})}),(0,_h.jsxs)(j3,{className:"p-5",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,_h.jsx)("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-blue-500 to-cyan-500 flex items-center justify-center",children:(0,_h.jsx)(ZX,{className:"h-5 w-5 text-white"})}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("h3",{className:"font-semibold text-gray-800",children:"Home Base Address"}),(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"Used to calculate travel times to events"})]})]}),(0,_h.jsxs)("div",{className:"space-y-3",children:[(0,_h.jsx)(I4,{value:P,onChange:(e,t)=>
2{T(e),O(t)},placeholder:"Search for your home address...",showTravelTime:!1,className:"w-full"}),(null===F||void 0===F?void 0:F.lat)&&(0,_h.jsxs)("div",{className:"flex items-center gap-2 text-xs text-green-600 bg-green-50 px-3 py-2 rounded-lg",children:[(0,_h.jsx)(RZ,{className:"h-3 w-3"}),(0,_h.jsx)("span",{children:"Location verified \u2022 Travel times will be calculated for events"})]}),(0,_h.jsxs)(RG,{onClick:async()=>{if(P.trim()){R(!0);try{await nY.put("/settings",{home_address:{address:P,display_name:P,lat:(null===F||void 0===F?void 0:F.lat)||null,lon:(null===F||void 0===F?void 0:F.lon)||null}}),wH.success("Home address saved! Travel times will now be calculated."),le()}catch(e){wH.error("Failed to save home address")}finally{R(!1)}}else wH.error("Please enter your home address")},disabled:I||!P.trim(),className:"w-full h-11 rounded-xl bg-gradient-to-r from-blue-500 to-cyan-500","data-testid":"save-home-address-btn",children:[I?(0,_h.jsx)(VZ,{className:"h-4 w-4 animate-spin mr-2"}):(0,_h.jsx)(KG,{className:"h-4 w-4 mr-2"}),"Save Home Address"]})]})]}),(0,_h.jsxs)(j3,{className:"p-5",children:[(0,_h.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,_h.jsxs)("div",{children:[(0,_h.jsx)("h3",{className:"font-semibold text-gray-800 mb-1",children:"Subscription"}),(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"Manage your plan"})]}),"pro"===(null===x||void 0===x?void 0:x.account_type)&&(0,_h.jsxs)("span",{className:"inline-flex items-center gap-1 px-3 py-1 bg-gradient-to-r from-purple-100 to-indigo-100 text-purple-700 rounded-full text-sm font-medium",children:[(0,_h.jsx)(U4,{className:"h-4 w-4"})," Pro"]})]}),k?(0,_h.jsx)("div",{className:"flex items-center justify-center py-8",children:(0,_h.jsx)(VZ,{className:"h-6 w-6 animate-spin text-gray-400"})}):"pro"===(null===x||void 0===x?void 0:x.account_type)?(0,_h.jsxs)("div",{className:"space-y-4",children:[(0,_h.jsxs)("div",{className:"p-4 bg-gradient-to-r from-purple-50 to-indigo-50 rounded-xl border border-purple-100",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-3 mb-3",children:[(0,_h.jsx)("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-purple-500 to-indigo-600 flex items-center justify-center",children:(0,_h.jsx)(U4,{className:"h-5 w-5 text-white"})}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("p",{className:"font-semibold text-gray-900",children:"Pro Plan"}),(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"$9.99/month"})]})]}),(0,_h.jsxs)("div",{className:"space-y-2 text-sm text-gray-600",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_h.jsx)(KG,{className:"h-4 w-4 text-purple-600"}),(0,_h.jsx)("span",{children:"Unlimited kids, activities & events"})]}),(0,_h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_h.jsx)(KG,{className:"h-4 w-4 text-purple-600"}),(0,_h.jsx)("span",{children:"AI-powered summaries enabled"})]}),(0,_h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_h.jsx)(KG,{className:"h-4 w-4 text-purple-600"}),(0,_h.jsx)("span",{children:"SmartDaddy AI assistant access"})]})]})]}),(0,_h.jsx)(RG,{variant:"outline",className:"w-full rounded-xl h-11 text-gray-500",onClick:async()=>{try{await nY.post("/account/downgrade"),wH.success("Account downgraded to Free"),se()}catch(e){wH.error("Failed to downgrade account")}},children:"Downgrade to Free"})]}):(0,_h.jsxs)("div",{className:"space-y-4",children:[(0,_h.jsxs)("div",{className:"p-4 bg-gray-50 rounded-xl",children:[(0,_h.jsx)("p",{className:"text-sm font-medium text-gray-700 mb-3",children:"Current Usage"}),(0,_h.jsxs)("div",{className:"space-y-3",children:[(0,_h.jsxs)("div",{children:[(0,_h.jsxs)("div",{className:"flex items-center justify-between text-sm mb-1",children:[(0,_h.jsxs)("span",{className:"text-gray-600 flex items-center gap-2",children:[(0,_h.jsx)(eZ,{className:"h-4 w-4"})," Kids"]}),(0,_h.jsxs)("span",{className:null!==x&&void 0!==x&&null!==(n=x.at_limit)&&void 0!==n&&n.kids?"text-red-600 font-medium":"text-gray-900",children:[(null===x||void 0===x||null===(a=x.usage)||void 0===a?void 0:a.kids)||0," / ",null===x||void 0===x||null===(r=x.limits)||void 0===r?void 0:r.kids]})]}),(0,_h.jsx)("div",{className:"h-2 bg-gray-200 rounded-full overflow-hidden",children:(0,_h.jsx)("div",{className:"h-full rounded-full transition-all ".concat(null!==x&&void 0!==x&&null!==(i=x.at_limit)&&void 0!==i&&i.kids?"bg-red-500":"bg-blue-500"),style:{width:"".concat(Math.min(((null===x||void 0===x||null===(s=x.usage)||void 0===s?void 0:s.kids)||0)/2*100,100),"%")}})})]}),(0,_h.jsxs)("div",{children:[(0,_h.jsxs)("div",{className:"flex items-center justify-between text-sm mb-1",children:[(0,_h.jsxs)("span",{className:"text-gray-600 flex items-center gap-2",children:[(0,_h.jsx)(iZ,{className:"h-4 w-4"})," Activities"]}),(0,_h.jsxs)("span",{className:null!==x&&void 0!==x&&null!==(l=x.at_limit)&&void 0!==l&&l.activities?"text-red-600 font-medium":"text-gray-900",children:[(null===x||void 0===x||null===(c=x.usage)||void 0===c?void 0:c.activities)||0," / ",null===x||void 0===x||null===(u=x.limits)||void 0===u?void 0:u.activities]})]}),(0,_h.jsx)("div",{className:"h-2 bg-gray-200 rounded-full overflow-hidden",children:(0,_h.jsx)("div",{className:"h-full rounded-full transition-all ".concat(null!==x&&void 0!==x&&null!==(d=x.at_limit)&&void 0!==d&&d.activities?"bg-red-500":"bg-green-500"),style:{width:"".concat(Math.min(((null===x||void 0===x||null===(h=x.usage)||void 0===h?void 0:h.activities)||0)/2*100,100),"%")}})})]}),(0,_h.jsxs)("div",{children:[(0,_h.jsxs)("div",{className:"flex items-center justify-between text-sm mb-1",children:[(0,_h.jsxs)("span",{className:"text-gray-600 flex items-center gap-2",children:[(0,_h.jsx)(iZ,{className:"h-4 w-4"})," Events this week"]}),(0,_h.jsxs)("span",{className:null!==x&&void 0!==x&&null!==(f=x.at_limit)&&void 0!==f&&f.weekly_events?"text-red-600 font-medium":"text-gray-900",children:[(null===x||void 0===x||null===(m=x.usage)||void 0===m?void 0:m.weekly_events)||0," / ",null===x||void 0===x||null===(g=x.limits)||void 0===g?void 0:g.weekly_events]})]}),(0,_h.jsx)("div",{className:"h-2 bg-gray-200 rounded-full overflow-hidden",children:(0,_h.jsx)("div",{className:"h-full rounded-full transition-all ".concat(null!==x&&void 0!==x&&null!==(v=x.at_limit)&&void 0!==v&&v.weekly_events?"bg-red-500":"bg-orange-500"),style:{width:"".concat(Math.min(((null===x||void 0===x||null===(y=x.usage)||void 0===y?void 0:y.weekly_events)||0)/5*100,100),"%")}})})]})]})]}),(0,_h.jsx)("div",{className:"p-6 bg-gradient-to-br from-gray-50 to-slate-100 rounded-xl border border-gray-200",children:(0,_h.jsxs)("div",{className:"text-center",children:[(0,_h.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-2xl bg-gradient-to-br from-purple-500 to-indigo-600 flex items-center justify-center",children:(0,_h.jsx)(U4,{className:"h-8 w-8 text-white"})}),(0,_h.jsx)("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"Pro Plans Coming Soon"}),(0,_h.jsx)("p",{className:"text-sm text-gray-600 mb-4",children:"We're working on amazing Pro features including unlimited kids, AI-powered summaries, and more!"}),(0,_h.jsxs)("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-purple-100 text-purple-700 rounded-full text-sm font-medium",children:[(0,_h.jsx)(UZ,{className:"h-4 w-4"}),"Stay tuned for updates"]})]})})]})]}),(0,_h.jsxs)(j3,{className:"p-5",children:[(0,_h.jsx)("h3",{className:"font-semibold text-gray-800 mb
2-1",children:"Notifications"}),(0,_h.jsx)("p",{className:"text-xs text-gray-500 mb-4",children:"Choose how you want to be notified"}),(0,_h.jsxs)("div",{className:"divide-y divide-gray-100",children:[(0,_h.jsx)(S3,{icon:aZ,iconBg:"bg-gradient-to-br from-blue-500 to-cyan-500",label:"In-App Notifications",description:"Get notified within the app",children:(0,_h.jsx)(g3,{checked:M.inApp,onCheckedChange:e=>ce("inApp",e)})}),(0,_h.jsx)(S3,{icon:v3,iconBg:"bg-gradient-to-br from-purple-500 to-pink-500",label:"Push Notifications",description:"Receive push notifications",children:(0,_h.jsx)(g3,{checked:M.push,onCheckedChange:e=>ce("push",e)})}),(0,_h.jsx)(S3,{icon:y3,iconBg:"bg-gradient-to-br from-orange-500 to-red-500",label:"Email Notifications",description:"Get updates via email",comingSoon:!0,children:(0,_h.jsx)(g3,{checked:M.email,onCheckedChange:e=>ce("email",e),disabled:!0})}),(0,_h.jsx)(S3,{icon:w3,iconBg:"bg-gradient-to-br from-green-500 to-teal-500",label:"Text Notifications",description:"Receive SMS updates",comingSoon:!0,children:(0,_h.jsx)(g3,{checked:M.text,onCheckedChange:e=>ce("text",e),disabled:!0})})]})]})]}),(0,_h.jsxs)("div",{className:"space-y-4",children:[(0,_h.jsxs)(j3,{className:"p-5",children:[(0,_h.jsx)("h3",{className:"font-semibold text-gray-800 mb-1",children:"Security"}),(0,_h.jsx)("p",{className:"text-xs text-gray-500 mb-4",children:"Keep your account secure"}),(0,_h.jsxs)("div",{className:"divide-y divide-gray-100",children:[(0,_h.jsx)(S3,{icon:_3,iconBg:"bg-gradient-to-br from-amber-500 to-orange-500",label:"Change Password",description:"Update your password",children:(0,_h.jsx)(RG,{variant:"outline",size:"sm",className:"rounded-full h-9",onClick:()=>L(!0),children:"Change"})}),(0,_h.jsx)(S3,{icon:x3,iconBg:"bg-gradient-to-br from-emerald-500 to-green-600",label:"Two-Factor Authentication",description:J?"Enabled with Google Authenticator":"Add an extra layer of security",children:J?(0,_h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_h.jsxs)("span",{className:"text-xs text-green-600 font-medium flex items-center gap-1",children:[(0,_h.jsx)(KG,{className:"h-3 w-3"})," Enabled"]}),(0,_h.jsx)(RG,{variant:"outline",size:"sm",className:"rounded-full h-9 text-red-500 border-red-200 hover:bg-red-50",onClick:async()=>{$(!1),wH.success("Two-factor authentication disabled"),se()},children:"Disable"})]}):(0,_h.jsx)(RG,{variant:"outline",size:"sm",className:"rounded-full h-9",onClick:()=>G(!0),children:"Enable"})})]})]}),(0,_h.jsxs)(j3,{className:"p-5",children:[(0,_h.jsx)("h3",{className:"font-semibold text-gray-800 mb-1",children:"Connected Accounts"}),(0,_h.jsx)("p",{className:"text-xs text-gray-500 mb-4",children:"Link social accounts for easier sign-in"}),(0,_h.jsxs)("div",{className:"space-y-3",children:[(0,_h.jsx)(N3,{icon:D3,label:"Apple",comingSoon:!0}),(0,_h.jsx)(N3,{icon:A3,label:"Google",comingSoon:!0}),(0,_h.jsx)(N3,{icon:E3,label:"Meta",comingSoon:!0})]})]}),(0,_h.jsxs)(j3,{className:"p-5 border border-red-100",children:[(0,_h.jsx)("h3",{className:"font-semibold text-red-600 mb-1",children:"Danger Zone"}),(0,_h.jsx)("p",{className:"text-xs text-gray-500 mb-4",children:"Irreversible actions"}),(0,_h.jsx)(RG,{variant:"outline",className:"w-full rounded-xl h-11 text-red-500 border-red-200 hover:bg-red-50",onClick:()=>wH.info("Please contact support to delete your account"),children:"Delete Account"})]})]})]}),(0,_h.jsx)(mJ,{open:z,onOpenChange:L,children:(0,_h.jsxs)(yJ,{className:"sm:max-w-md mx-4 rounded-2xl",children:[(0,_h.jsxs)(wJ,{children:[(0,_h.jsxs)(xJ,{className:"flex items-center gap-2",children:[(0,_h.jsx)(_3,{className:"h-5 w-5"}),"Change Password"]}),(0,_h.jsx)(bJ,{children:"Enter your current password and choose a new one"})]}),(0,_h.jsxs)("div",{className:"space-y-4 py-4",children:[(0,_h.jsxs)("div",{className:"space-y-2",children:[(0,_h.jsx)(EJ,{children:"Current Password"}),(0,_h.jsxs)("div",{className:"relative",children:[(0,_h.jsx)(CJ,{type:q.current?"text":"password",placeholder:"Enter current password",value:U.currentPassword,onChange:e=>V(t=>p(p({},t),{},{currentPassword:e.target.value})),className:"h-12 rounded-xl pr-10"}),(0,_h.jsx)("button",{type:"button",onClick:()=>H(e=>p(p({},e),{},{current:!e.current})),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600",children:q.current?(0,_h.jsx)(b3,{className:"h-4 w-4"}):(0,_h.jsx)(k3,{className:"h-4 w-4"})})]})]}),(0,_h.jsxs)("div",{className:"space-y-2",children:[(0,_h.jsx)(EJ,{children:"New Password"}),(0,_h.jsxs)("div",{className:"relative",children:[(0,_h.jsx)(CJ,{type:q.new?"text":"password",placeholder:"Enter new password",value:U.newPassword,onChange:e=>V(t=>p(p({},t),{},{newPassword:e.target.value})),className:"h-12 rounded-xl pr-10"}),(0,_h.jsx)("button",{type:"button",onClick:()=>H(e=>p(p({},e),{},{new:!e.new})),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600",children:q.new?(0,_h.jsx)(b3,{className:"h-4 w-4"}):(0,_h.jsx)(k3,{className:"h-4 w-4"})})]})]}),(0,_h.jsxs)("div",{className:"space-y-2",children:[(0,_h.jsx)(EJ,{children:"Confirm New Password"}),(0,_h.jsxs)("div",{className:"relative",children:[(0,_h.jsx)(CJ,{type:q.confirm?"text":"password",placeholder:"Confirm new password",value:U.confirmPassword,onChange:e=>V(t=>p(p({},t),{},{confirmPassword:e.target.value})),className:"h-12 rounded-xl pr-10"}),(0,_h.jsx)("button",{type:"button",onClick:()=>H(e=>p(p({},e),{},{confirm:!e.confirm})),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600",children:q.confirm?(0,_h.jsx)(b3,{className:"h-4 w-4"}):(0,_h.jsx)(k3,{className:"h-4 w-4"})})]})]})]}),(0,_h.jsxs)(_J,{className:"flex-col sm:flex-row gap-2",children:[(0,_h.jsx)(RG,{variant:"outline",onClick:()=>L(!1),className:"rounded-full w-full sm:w-auto",children:"Cancel"}),(0,_h.jsxs)(RG,{onClick:async()=>
2{if(U.currentPassword&&U.newPassword&&U.confirmPassword)if(U.newPassword===U.confirmPassword)if(U.newPassword.length<8)wH.error("Password must be at least 8 characters");else{K(!0);try{await(async(e,t)=>(await ZK.post("/auth/change-password",{current_password:e,new_password:t})).data)(U.currentPassword,U.newPassword),wH.success("Password changed successfully!"),L(!1),V({currentPassword:"",newPassword:"",confirmPassword:""}),se()}catch(n){var e,t;const a=(null===(e=n.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Failed to change password";wH.error(a)}finally{K(!1)}}else wH.error("New passwords do not match");else wH.error("Please fill in all fields")},disabled:W,className:"rounded-full w-full sm:w-auto",children:[W?(0,_h.jsx)(VZ,{className:"h-4 w-4 animate-spin mr-2"}):(0,_h.jsx)(KG,{className:"h-4 w-4 mr-2"}),"Update Password"]})]})]})}),(0,_h.jsx)(mJ,{open:Y,onOpenChange:e=>{e||(X(1),ee("")),G(e)},children:(0,_h.jsxs)(yJ,{className:"sm:max-w-md mx-4 rounded-2xl",children:[(0,_h.jsxs)(wJ,{children:[(0,_h.jsxs)(xJ,{className:"flex items-center gap-2",children:[(0,_h.jsx)(x3,{className:"h-5 w-5 text-green-600"}),3===Q?"Save Backup Codes":"Set Up Two-Factor Authentication"]}),(0,_h.jsxs)(bJ,{children:[1===Q&&"Add an extra layer of security to your account",2===Q&&"Scan the QR code with Google Authenticator",3===Q&&"Save these codes in a safe place"]})]}),(0,_h.jsxs)("div",{className:"py-4",children:[1===Q&&(0,_h.jsxs)("div",{className:"text-center space-y-4",children:[(0,_h.jsx)("div",{className:"w-20 h-20 mx-auto rounded-2xl bg-gradient-to-br from-emerald-100 to-green-100 flex items-center justify-center",children:(0,_h.jsx)(x3,{className:"h-10 w-10 text-green-600"})}),(0,_h.jsx)("div",{children:(0,_h.jsx)("p",{className:"text-sm text-gray-600",children:"You'll need the Google Authenticator app on your phone to complete setup."})}),(0,_h.jsxs)("div",{className:"flex items-center gap-2 p-3 bg-amber-50 rounded-xl text-left",children:[(0,_h.jsx)(C3,{className:"h-5 w-5 text-amber-500 flex-shrink-0"}),(0,_h.jsx)("p",{className:"text-xs text-amber-700",children:"Make sure you have access to your authenticator app before proceeding."})]})]}),2===Q&&(0,_h.jsxs)("div",{className:"space-y-4",children:[(0,_h.jsxs)("div",{className:"bg-gray-100 p-6 rounded-xl text-center",children:[(0,_h.jsx)("div",{className:"w-40 h-40 mx-auto bg-white p-2 rounded-lg shadow-inner",children:(0,_h.jsx)("div",{className:"w-full h-full grid grid-cols-8 gap-0.5",children:[...Array(64)].map((e,t)=>(0,_h.jsx)("div",{className:"aspect-square ".concat(Math.random()>.5?"bg-gray-900":"bg-white")},t))})}),(0,_h.jsx)("p",{className:"text-xs text-gray-500 mt-3",children:"Scan with Google Authenticator"})]}),(0,_h.jsxs)("div",{className:"text-center",children:[(0,_h.jsx)("p",{className:"text-xs text-gray-500 mb-2",children:"Or enter this code manually:"}),(0,_h.jsx)("code",{className:"px-3 py-2 bg-gray-100 rounded-lg text-sm font-mono",children:ae})]}),(0,_h.jsxs)("div",{className:"space-y-2",children:[(0,_h.jsx)(EJ,{children:"Enter 6-digit code from app"}),(0,_h.jsx)(CJ,{type:"text",placeholder:"000000",maxLength:6,value:Z,onChange:e=>ee(e.target.value.replace(/\D/g,"")),className:"h-12 rounded-xl text-center text-xl tracking-widest font-mono"})]})]}),3===Q&&(0,_h.jsxs)("div",{className:"space-y-4",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-2 p-3 bg-amber-50 rounded-xl",children:[(0,_h.jsx)(C3,{className:"h-5 w-5 text-amber-500 flex-shrink-0"}),(0,_h.jsx)("p",{className:"text-xs text-amber-700",children:"Save these backup codes. You can use them to access your account if you lose your phone."})]}),(0,_h.jsx)("div",{className:"grid grid-cols-2 gap-2",children:oe.map((e,t)=>(0,_h.jsx)("div",{className:"px-3 py-2 bg-gray-100 rounded-lg text-center",children:(0,_h.jsx)("code",{className:"text-sm font-mono",children:e})},t))}),(0,_h.jsx)(RG,{variant:"outline",className:"w-full rounded-xl",onClick:()=>{navigator.clipboard.writeText(oe.join("\n")),wH.success("Backup codes copied!")},children:"Copy All Codes"})]})]}),(0,_h.jsxs)(_J,{className:"flex-col sm:flex-row gap-2",children:[(0,_h.jsx)(RG,{variant:"outline",onClick:()=>G(!1),className:"rounded-full w-full sm:w-auto",children:"Cancel"}),(0,_h.jsxs)(RG,{onClick:async()=>
2{if(1===Q){ne(!0);try{const e=await(async()=>(await ZK.post("/auth/2fa/setup")).data)();re(e.secret),X(2)}catch(r){var e,t;const n=(null===(e=r.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Failed to generate 2FA setup";wH.error(n)}finally{ne(!1)}}else if(2===Q){if(6!==Z.length)return void wH.error("Please enter a valid 6-digit code");ne(!0);try{const e=await(async e=>(await ZK.post("/auth/2fa/verify",{code:e})).data)(Z);ie(e.backup_codes),X(3)}catch(r){var n,a;const e=(null===(n=r.response)||void 0===n||null===(a=n.data)||void 0===a?void 0:a.detail)||"Invalid verification code";wH.error(e)}finally{ne(!1)}}else 3===Q&&($(!0),G(!1),X(1),ee(""),wH.success("Two-factor authentication enabled!"),se())},disabled:te||2===Q&&6!==Z.length,className:"rounded-full w-full sm:w-auto bg-gradient-to-r from-emerald-500 to-green-600",children:[te?(0,_h.jsx)(VZ,{className:"h-4 w-4 animate-spin mr-2"}):(0,_h.jsx)(KG,{className:"h-4 w-4 mr-2"}),1===Q?"Continue":2===Q?"Verify Code":"Done"]})]})]})})]})},T3=HG("chart-pie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]]),F3=HG("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]),O3=HG("medal",[["path",{d:"M7.21 15 2.66 7.14a2 2 0 0 1 .13-2.2L4.4 2.8A2 2 0 0 1 6 2h12a2 2 0 0 1 1.6.8l1.6 2.14a2 2 0 0 1 .14 2.2L16.79 15",key:"143lza"}],["path",{d:"M11 12 5.12 2.2",key:"qhuxz6"}],["path",{d:"m13 12 5.88-9.8",key:"hbye0f"}],["path",{d:"M8 7h8",key:"i86dvs"}],["circle",{cx:"12",cy:"17",r:"5",key:"qbz8iq"}],["path",{d:"M12 18v-2h-.5",key:"fawc4q"}]]),I3=[{id:"practice",name:"Practice",icon:"\ud83c\udfc3",color:"bg-blue-100 text-blue-700"},{id:"scrimmage",name:"Scrimmage",icon:"\u2694\ufe0f",color:"bg-slate-100 text-slate-700"},{id:"game",name:"Game",icon:"\ud83c\udfae",color:"bg-green-100 text-green-700"},{id:"tournament",name:"Tournament",icon:"\ud83c\udfc5",color:"bg-yellow-100 text-yellow-700"},{id:"playoff",name:"Playoff",icon:"\ud83d\udd25",color:"bg-orange-100 text-orange-700"},{id:"championship",name:"Championship",icon:"\ud83c\udfc6",color:"bg-purple-100 text-purple-700"},{id:"tryout",name:"Tryout",icon:"\ud83d\udccb",color:"bg-gray-100 text-gray-700"}],R3=e=>{let{selected:t,onClick:n,children:a,color:r=""}=e;return(0,_h.jsxs)("button",{onClick:n,className:"px-3 py-1.5 rounded-full text-sm font-medium transition-all flex items-center gap-1.5 ".concat(t?r||"bg-purple-100 text-purple-700 ring-2 ring-purple-500 ring-offset-1":"bg-gray-100 text-gray-600 hover:bg-gray-200"),children:[a,t&&(0,_h.jsx)(KG,{className:"h-3 w-3"})]})},M3=e=>{let{title:t,children:n}=e;return(0,_h.jsxs)("div",{className:"space-y-2",children:[(0,_h.jsx)("p",{className:"text-xs font-medium text-gray-500 uppercase tracking-wide",children:t}),(0,_h.jsx)("div",{className:"flex flex-wrap gap-2",children:n})]})},B3=e=>{let{icon:t,label:n,value:a,subValue:r,color:o="blue",large:i=!1}=e;return(0,_h.jsx)("div",{className:"bg-white rounded-2xl p-".concat(i?"6":"5"," shadow-sm border border-gray-100 ").concat(i?"col-span-2":""),children:(0,_h.jsxs)("div",{className:"flex items-start justify-between",children:[(0,_h.jsxs)("div",{children:[(0,_h.jsx)("p",{className:"text-sm text-gray-500 mb-1",children:n}),(0,_h.jsx)("p",{className:"".concat(i?"text-4xl":"text-2xl"," font-bold text-gray-900"),children:a}),r&&(0,_h.jsx)("p",{className:"text-sm text-gray-400 mt-1",children:r})]}),(0,_h.jsx)("div",{className:"w-12 h-12 rounded-xl bg-".concat(o,"-100 flex items-center justify-center"),children:(0,_h.jsx)(t,{className:"h-6 w-6 text-".concat(o,"-600")})})]})})},z3=e=>{var t;let{child:n,onClick:a}=e;n.wins+n.losses+n.ties>0&&Math.round(n.wins/(n.wins+n.losses+n.ties)*100);return(0,_h.jsxs)("div",{className:"bg-white rounded-2xl p-5 shadow-sm border border-gray-100 cursor-pointer hover:shadow-md transition-all hover:-translate-y-1",onClick:a,children:[(0,_h.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,_h.jsx)("div",{className:"w-12 h-12 rounded-full flex items-center justify-center text-white text-lg font-bold",style:{backgroundColor:n.color||"#3B82F6"},children:(null===(t=n.name)||void 0===t?void 0:t.charAt(0))||"?"}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("p",{className:"font-semibold text-gray-900",children:n.name}),(0,_h.jsxs)("p",{className:"text-sm text-gray-500",children:[n.total_events," events"]})]}),(0,_h.jsx)(WG,{className:"h-5 w-5 text-gray-400 ml-auto"})]}),(0,_h.jsxs)("div",{className:"grid grid-cols-3 gap-3 text-center",children:[(0,_h.jsxs)("div",{className:"p-2 bg-blue-50 rounded-lg",children:[(0,_h.jsxs)("p",{className:"text-lg font-bold text-blue-600",children:[Math.round(n.practice_minutes/60),"h"]}),(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"Practice"})]}),(0,_h.jsxs)("div",{className:"p-2 bg-green-50 rounded-lg",children:[(0,_h.jsxs)("p",{className:"text-lg font-bold text-green-600",children:[Math.round(n.game_minutes/60),"h"]}),(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"Games"})]}),(0,_h.jsxs)("div",{className:"p-2 bg-purple-50 rounded-lg",children:[(0,_h.jsx)("p",{className:"text-lg font-bold text-purple-600",children:n.goals}),(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"Goals"})]})]}),(n.wins>0||n.losses>0||n.ties>0)&&(0,_h.jsxs)("div",{className:"mt-4 pt-4 border-t border-gray-100",children:[(0,_h.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,_h.jsx)("span",{className:"text-gray-500",children:"Record"}),(0,_h.jsxs)("span",{className:"font-semibold",children:[(0,_h.jsxs)("span",{className:"text-green-600",children:[n.wins,"W"]})," - ",(0,_h.jsxs)("span",{className:"text-red-600",children:[n.losses,"L"]})," - ",(0,_h.jsxs)("span",{className:"text-gray-600",children:[n.ties,"T"]})]})]}),(0,_h.jsxs)("div",{className:"mt-2 h-2 bg-gray-100 rounded-full overflow-hidden flex",children:[n.wins>0&&(0,_h.jsx)("div",{className:"h-full bg-green-500",style:{width:"".concat(n.wins/(n.wins+n.losses+n.ties)*100,"%")}}),n.ties>0&&(0,_h.jsx)("div",{className:"h-full bg-gray-400",style:{width:"".concat(n.ties/(n.wins+n.losses+n.ties)*100,"%")}}),n.losses>0&&(0,_h.jsx)("div",{className:"h-full bg-red-500",style:{width:"".concat(n.losses/(n.wins+n.losses+n.ties)*100,"%")}})]})]})]})},L3=()=>{var e,t,n,a,r,i,s,l,c,u,d,h;const{user:p}=gY(),f=Ee(),[m,g]=(0,o.useState)(!0),[v,y]=(0,o.useState)(null),[w,_]=(0,o.useState)(""),[x,b]=(0,o.useState)(!1),[k,C]=(0,o.useState)(null),[D,A]=(0,o.useState)([]),[E,j]=(0,o.useState)([]),[S,N]=(0,o.useState)([]),[P,T]=(0,o.useState)(!1),[F,O]=(0,o.useState)({children:[],activities:[],event_types:[]}),[I,R]=(0,o.useState)("all"),[M,B]=(0,o.useState)(""),[z,L]=(0,o.useState)(""),[U,V]=(0,o.useState)(null),[q,H]=(0,o.useState)(!1),[W,K]=(0,o.useState)([]),[Y,G]=(0,o.useState)(!1),J=[{value:"all",label:"All Time"},{value:"7",label:"7 Days"},{value:"30",label:"30 Days"},{value:"60",label:"60 Days"},{value:"90",label:"90 Days"},{value:"180",label:"6 Months"},{value:"365",label:"1 Year"},{value:"custom",label:"Custom"}];(0,o.useEffect)(()=>{$()},[]),(0,o.useEffect)(()=>{"pro"===(null===k||void 0===k?void 0:k.account_type)&&(Q(),_(""))},[D,E,S,I,M,z]);const $=async()=>{try{const e=await nY.get("/account/status");if(C(e.data),"pro"===e.data.account_type){const e=await nY.get("/statistics/overview");y(e.data),e.data.filter_options&&O(e.data.filter_options)}}catch(t){var e;console.error("Failed to load statistics:",t),403!==(null===(e=t.response)||void 0===e?void 0:e.status)&&wH.error("Failed to load statistics")}finally{g(!1)}},Q=async()=>{try{const e=new URLSearchParams;D.length>
20&&e.append("child_ids",D.join(",")),E.length>0&&e.append("activity_ids",E.join(",")),S.length>0&&e.append("event_types",S.join(",")),"all"!==I&&"custom"!==I?e.append("days",I):"custom"===I&&(M&&e.append("start_date",M),z&&e.append("end_date",z));const t=await nY.get("/statistics/overview?".concat(e.toString()));y(t.data)}catch(e){console.error("Failed to load filtered statistics:",e)}},X=D.length>0||E.length>0||S.length>0||"all"!==I;if(!m&&"pro"!==(null===k||void 0===k?void 0:k.account_type))return(0,_h.jsxs)("div",{className:"w-full",children:[(0,_h.jsxs)("div",{className:"mb-8",children:[(0,_h.jsxs)("h1",{className:"text-2xl md:text-3xl font-bold text-gray-900 flex items-center gap-3",children:[(0,_h.jsx)(tZ,{className:"h-8 w-8 text-purple-600"}),"Statistics & Analytics"]}),(0,_h.jsx)("p",{className:"text-gray-500 mt-2",children:"Track your family's sports journey with detailed insights"})]}),(0,_h.jsxs)("div",{className:"bg-white rounded-2xl shadow-sm border border-gray-100 overflow-hidden",children:[(0,_h.jsxs)("div",{className:"bg-gradient-to-br from-purple-600 via-indigo-600 to-purple-700 p-8 md:p-12 text-white text-center",children:[(0,_h.jsx)("div",{className:"w-20 h-20 mx-auto rounded-2xl bg-white/20 backdrop-blur flex items-center justify-center mb-6",children:(0,_h.jsx)(L4,{className:"h-10 w-10 text-white"})}),(0,_h.jsx)("h2",{className:"text-2xl md:text-3xl font-bold mb-3",children:"Kid Stats & Analytics"}),(0,_h.jsx)("p",{className:"text-white/80 max-w-lg mx-auto text-lg",children:"Track practice vs game time, record scores and goals, see win/loss records, and get AI-powered insights about your kids' progress."})]}),(0,_h.jsxs)("div",{className:"p-6 md:p-8",children:[(0,_h.jsx)("h3",{className:"text-lg font-semibold text-gray-900 mb-6 text-center",children:"What's coming with Pro"}),(0,_h.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 mb-8",children:[(0,_h.jsxs)("div",{className:"flex items-start gap-4 p-4 bg-blue-50 rounded-xl",children:[(0,_h.jsx)("div",{className:"w-12 h-12 rounded-xl bg-blue-100 flex items-center justify-center flex-shrink-0",children:(0,_h.jsx)(IZ,{className:"h-6 w-6 text-blue-600"})}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("p",{className:"font-semibold text-gray-900",children:"Time Tracking"}),(0,_h.jsx)("p",{className:"text-sm text-gray-600",children:"Track practice and game hours per child and activity"})]})]}),(0,_h.jsxs)("div",{className:"flex items-start gap-4 p-4 bg-green-50 rounded-xl",children:[(0,_h.jsx)("div",{className:"w-12 h-12 rounded-xl bg-green-100 flex items-center justify-center flex-shrink-0",children:(0,_h.jsx)(R4,{className:"h-6 w-6 text-green-600"})}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("p",{className:"font-semibold text-gray-900",children:"Goals & Assists"}),(0,_h.jsx)("p",{className:"text-sm text-gray-600",children:"Record and track scoring stats for each game"})]})]}),(0,_h.jsxs)("div",{className:"flex items-start gap-4 p-4 bg-yellow-50 rounded-xl",children:[(0,_h.jsx)("div",{className:"w-12 h-12 rounded-xl bg-yellow-100 flex items-center justify-center flex-shrink-0",children:(0,_h.jsx)(pZ,{className:"h-6 w-6 text-yellow-600"})}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("p",{className:"font-semibold text-gray-900",children:"Win/Loss Record"}),(0,_h.jsx)("p",{className:"text-sm text-gray-600",children:"See team records and win percentages over time"})]})]}),(0,_h.jsxs)("div",{className:"flex items-start gap-4 p-4 bg-purple-50 rounded-xl",children:[(0,_h.jsx)("div",{className:"w-12 h-12 rounded-xl bg-purple-100 flex items-center justify-center flex-shrink-0",children:(0,_h.jsx)(nZ,{className:"h-6 w-6 text-purple-600"})}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("p",{className:"font-semibold text-gray-900",children:"AI Insights"}),(0,_h.jsx)("p",{className:"text-sm text-gray-600",children:"Get personalized summaries and progress reports"})]})]})]}),(0,_h.jsxs)("div",{className:"text-center",children:[(0,_h.jsxs)("div",{className:"inline-flex items-center gap-2 px-6 py-3 bg-purple-100 text-purple-700 rounded-full text-lg font-medium mb-4",children:[(0,_h.jsx)(U4,{className:"h-5 w-5"}),"Pro Features Coming Soon"]}),(0,_h.jsx)("p",{className:"text-sm text-gray-500",children:"We're working on bringing you these amazing features. Stay tuned!"})]})]})]})]});if(m)return(0,_h.jsx)("div",{className:"flex items-center justify-center py-20",children:(0,_h.jsx)(VZ,{className:"h-8 w-8 animate-spin text-purple-600"})});const Z=(null===v||void 0===v?void 0:v.overview)||{},ee=(null===v||void 0===v?void 0:v.by_child)||[],te=(null===v||void 0===v?void 0:v.by_activity)||[];return(0,_h.jsxs)("div",{className:"space-y-6",children:[(0,_h.jsxs)("div",{className:"flex items-center justify-between",children:[(0,_h.jsxs)("div",{children:[(0,_h.jsxs)("h1",{className:"text-2xl font-bold text-gray-900 flex items-center gap-2",children:[(0,_h.jsx)(tZ,{className:"h-7 w-7 text-purple-600"}),"Statistics & Analytics"]}),(0,_h.jsx)("p",{className:"text-gray-500 mt-1",children:"Track your family's sports journey"})]}),(0,_h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_h.jsxs)(RG,{variant:P?"default":"outline",size:"sm",onClick:()=>T(!P),className:"rounded-full ".concat(P?"bg-purple-600":""),children:[(0,_h.jsx)(q4,{className:"h-4 w-4 mr-1"}),"Filters",X&&(0,_h.jsx)("span",{className:"ml-1.5 w-5 h-5 bg-white text-purple-600 rounded-full text-xs flex items-center justify-center font-bold",children:D.length+E.length+S.length})]}),(0,_h.jsxs)("span",{className:"px-3 py-1 bg-gradient-to-r from-purple-100 to-indigo-100 text-purple-700 rounded-full text-sm font-medium flex items-center gap-1",children:[(0,_h.jsx)(U4,{className:"h-4 w-4"})," Pro"]})]})]}),P&&(0,_h.jsxs)("div",{className:"bg-white rounded-2xl p-5 shadow-sm border border-gray-100 space-y-4",children:[(0,_h.jsxs)("div",{className:"flex items-center justify-between",children:[(0,_h.jsxs)("h3",{className:"font-semibold text-gray-900 flex items-center gap-2",children:[(0,_h.jsx)(q4,{className:"h-4 w-4"}),"Filter Statistics"]}),X&&(0,_h.jsxs)(RG,{variant:"ghost",size:"sm",onClick:()=>{A([]),j([]),N([]),R("all"),B(""),L("")},className:"text-gray-500 hover:text-gray-700",children:[(0,_h.jsx)(lJ,{className:"h-4 w-4 mr-1"}),"Clear all"]})]}),(null===(e=F.children)||void 0===e?void 0:e.length)>0&&(0,_h.jsx)(M3,{title:"Kids",children:F.children.map(e=>(0,_h.jsxs)(R3,{selected:D.includes(e.id),onClick:()=>{return t=e.id,void A(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t]);var t},children:[(0,_h.jsx)("span",{className:"w-3 h-3 rounded-full",style:{backgroundColor:e.color||"#3B82F6"}}),e.name]},e.id))}),(null===(t=F.activities)||void 0===t?void 0:t.length)>0&&(0,_h.jsx)(M3,{title:"Activities",children:F.activities.map(e=>(0,_h.jsx)(R3,{selected:E.includes(e.id),onClick:()=>{return t=e.id,void j(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t]);var t},children:e.name},e.id))}),(0,_h.jsx)(M3,{title:"Event Types",children:I3.map(e=>(0,_h.jsxs)(R3,{selected:S.includes(e.id),onClick:()=>(e=>{N(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])})(e.id),color:S.includes(e.id)?e.color:"",children:[(0,_h.jsx)("span",{children:e.icon}),e.name]},e.id))}),(0,_h.jsxs)(M3,{title:"Date Range",children:[(0,_h.jsx)("div",{className:"flex flex-wrap gap-2",children:J.map(e=>(0,_h.jsx)(R3,{selected:I===e.value,onClick:()=>R(e.value),children:e.label},e.value))}),"custom"===I&&(0,_h.jsxs)("div",{className:"mt-3 flex flex-wrap gap-3 items-center",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_h.jsx)("label",{className:"text-sm text-gray-600",children:"From:"}),(0,_h.jsx)("input",{type:"date",value:M,onChange:e=>B(e.target.value),className:"px-3 py-1.5 rounded-lg border border-gray-200 text-sm focus:ring-2 focus:ring-purple-500 focus:border-transparent"})]}),(0,_h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_h.jsx)("label",{className:"text-sm text-gray-600",children:"To:"}),(0,_h.jsx)("input",{type:"date",value:z,onChange:e=>L(e.target.value),className:"px-3 py-1.5 rounded-lg border border-gray-200 text-sm focus:ring-2 focus:ring-purple-500 focus:border-transparent"})]})]})]}),X&&(0,_h.jsx)("div",{className:"pt-3 border-t border-gray-100",children:(0,_h.jsxs)("p",{className:"text-sm text-gray-500",children:["Showing stats for: "," ","all"!==I&&(0,_h.jsx)("span",{className:"font-medium text-purple-600",children:"custom"===I?"".concat(M||"Start"," - ").concat(z||"End"):null===(n=J.find(e=>e.value===I))||void 0===n?void 0:n.label}),D.length>0&&(0,_h.jsxs)("span",{className:"font-medium text-purple-600",children:["all"!==I?", ":"",D.length," kid",D.length>
21?"s":""]}),E.length>0&&(0,_h.jsxs)("span",{className:"font-medium text-purple-600",children:[D.length>0||"all"!==I?", ":"",E.length," activit",E.length>1?"ies":"y"]}),S.length>0&&(0,_h.jsxs)("span",{className:"font-medium text-purple-600",children:[D.length>0||E.length>0||"all"!==I?", ":"",S.length," event type",S.length>1?"s":""]})]})})]}),(0,_h.jsxs)("div",{className:"bg-gradient-to-r from-purple-500 to-indigo-600 rounded-2xl p-6 text-white",children:[(0,_h.jsxs)("div",{className:"flex items-start justify-between mb-4",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,_h.jsx)("div",{className:"w-12 h-12 rounded-xl bg-white/20 flex items-center justify-center",children:(0,_h.jsx)(nZ,{className:"h-6 w-6"})}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("h2",{className:"font-bold text-lg",children:"SmartDaddy AI Insights"}),(0,_h.jsx)("p",{className:"text-white/70 text-sm",children:"Your personalized sports summary"})]})]}),(0,_h.jsxs)(RG,{onClick:async()=>{b(!0);try{const e={};"all"!==I&&"custom"!==I?e.days=parseInt(I):"custom"===I&&(M&&(e.start_date=M),z&&(e.end_date=z));const t=await nY.post("/statistics/ai-summary",e);_(t.data.summary)}catch(e){wH.error("Failed to generate AI summary")}finally{b(!1)}},disabled:x,className:"bg-white/20 hover:bg-white/30 text-white rounded-full",children:[x?(0,_h.jsx)(VZ,{className:"h-4 w-4 animate-spin mr-2"}):(0,_h.jsx)(nZ,{className:"h-4 w-4 mr-2"}),w?"Refresh":"Generate"]})]}),w?(0,_h.jsx)("div",{className:"text-white/95 leading-relaxed prose prose-invert prose-sm max-w-none [&>p]:mb-2 [&>ul]:my-2 [&>ul]:ml-4 [&>ul>li]:mb-1 [&_strong]:text-white [&_strong]:font-bold",dangerouslySetInnerHTML:{__html:w.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\n\u2022/g,"<br/>\u2022").replace(/\n/g,"<br/>")}}):(0,_h.jsx)("p",{className:"text-white/60 italic text-sm",children:'Click "Generate" for a quick AI-powered snapshot of your family\'s sports stats!'})]}),(0,_h.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[(0,_h.jsx)(B3,{icon:iZ,label:"Total Events",value:Z.total_events||0,subValue:"".concat(Z.practice_events||0," practices, ").concat(Z.game_events||0," games"),color:"blue"}),(0,_h.jsx)(B3,{icon:IZ,label:"Total Time",value:"".concat(Z.total_hours||0,"h"),subValue:"".concat(Z.practice_hours||0,"h practice, ").concat(Z.game_hours||0,"h games"),color:"green"}),(0,_h.jsx)(B3,{icon:R4,label:"Goals Scored",value:Z.total_goals||0,subValue:"".concat(Z.total_assists||0," assists"),color:"orange"}),(0,_h.jsx)(B3,{icon:pZ,label:"Win Rate",value:((null===(a=Z.record)||void 0===a?void 0:a.wins)||0)+((null===(r=Z.record)||void 0===r?void 0:r.losses)||0)>0?"".concat(Math.round((null===(i=Z.record)||void 0===i?void 0:i.wins)/(((null===(s=Z.record)||void 0===s?void 0:s.wins)||0)+((null===(l=Z.record)||void 0===l?void 0:l.losses)||0))*100),"%"):"N/A",subValue:"".concat((null===(c=Z.record)||void 0===c?void 0:c.wins)||0,"W - ").concat((null===(u=Z.record)||void 0===u?void 0:u.losses)||0,"L - ").concat((null===(d=Z.record)||void 0===d?void 0:d.ties)||0,"T"),color:"purple"})]}),(Z.practice_hours>0||Z.game_hours>0)&&(0,_h.jsxs)("div",{className:"bg-white rounded-2xl p-6 shadow-sm border border-gray-100",children:[(0,_h.jsxs)("h3",{className:"font-semibold text-gray-900 mb-4 flex items-center gap-2",children:[(0,_h.jsx)(T3,{className:"h-5 w-5 text-purple-600"}),"Practice vs Game Time"]}),(0,_h.jsxs)("div",{className:"flex items-center gap-8",children:[(0,_h.jsxs)("div",{className:"relative w-32 h-32",children:[(0,_h.jsxs)("svg",{className:"w-full h-full transform -rotate-90",viewBox:"0 0 100 100",children:[(0,_h.jsx)("circle",{cx:"50",cy:"50",r:"40",fill:"none",stroke:"#E5E7EB",strokeWidth:"20"}),(0,_h.jsx)("circle",{cx:"50",cy:"50",r:"40",fill:"none",stroke:"#3B82F6",strokeWidth:"20",strokeDasharray:"".concat(Z.practice_hours/Z.total_hours*251.2," 251.2")}),(0,_h.jsx)("circle",{cx:"50",cy:"50",r:"40",fill:"none",stroke:"#10B981",strokeWidth:"20",strokeDasharray:"".concat(Z.game_hours/Z.total_hours*251.2," 251.2"),strokeDashoffset:"-".concat(Z.practice_hours/Z.total_hours*251.2)})]}),(0,_h.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,_h.jsxs)("span",{className:"text-xl font-bold text-gray-900",children:[Z.total_hours,"h"]})})]}),(0,_h.jsxs)("div",{className:"flex-1 space-y-3",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,_h.jsx)("div",{className:"w-4 h-4 rounded bg-blue-500"}),(0,_h.jsx)("span",{className:"text-gray-600",children:"Practice"}),(0,_h.jsxs)("span",{className:"ml-auto font-semibold",children:[Z.practice_hours,"h (",Math.round(Z.practice_hours/Z.total_hours*100),"%)"]})]}),(0,_h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,_h.jsx)("div",{className:"w-4 h-4 rounded bg-green-500"}),(0,_h.jsx)("span",{className:"text-gray-600",children:"Games & Tourn
2aments"}),(0,_h.jsxs)("span",{className:"ml-auto font-semibold",children:[Z.game_hours+(Z.tournament_hours||0),"h (",Math.round((Z.game_hours+(Z.tournament_hours||0))/Z.total_hours*100),"%)"]})]})]})]})]}),ee.length>0&&(0,_h.jsxs)("div",{children:[(0,_h.jsxs)("h3",{className:"font-semibold text-gray-900 mb-4 flex items-center gap-2",children:[(0,_h.jsx)(eZ,{className:"h-5 w-5 text-purple-600"}),"Stats by Child"]}),(0,_h.jsx)("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-4",children:ee.map((e,t)=>(0,_h.jsx)(z3,{child:e,onClick:()=>(async e=>{V(e),H(!0),G(!0);try{var t,n;const a=await nY.get("/events?child_id=".concat(e.id)),r=Array.isArray(a.data)?a.data:(null===(t=a.data)||void 0===t?void 0:t.events)||(null===(n=a.data)||void 0===n?void 0:n.items)||[];K(r)}catch(a){console.error("Failed to load child events:",a),K([])}finally{G(!1)}})(e)},t))})]}),te.length>0&&(0,_h.jsxs)("div",{className:"bg-white rounded-2xl p-6 shadow-sm border border-gray-100",children:[(0,_h.jsxs)("h3",{className:"font-semibold text-gray-900 mb-4 flex items-center gap-2",children:[(0,_h.jsx)(F3,{className:"h-5 w-5 text-purple-600"}),"Time by Activity"]}),(0,_h.jsx)("div",{className:"space-y-3",children:te.sort((e,t)=>t.total_minutes-e.total_minutes).map((e,t)=>(0,_h.jsxs)("div",{className:"flex items-center gap-4",children:[(0,_h.jsx)("span",{className:"w-32 text-sm text-gray-600 truncate",children:e.name}),(0,_h.jsx)("div",{className:"flex-1 h-4 bg-gray-100 rounded-full overflow-hidden",children:(0,_h.jsx)("div",{className:"h-full bg-gradient-to-r from-purple-500 to-indigo-500 rounded-full",style:{width:"".concat(Math.min(e.total_minutes/Math.max(...te.map(e=>e.total_minutes))*100,100),"%")}})}),(0,_h.jsxs)("span",{className:"w-16 text-right text-sm font-medium text-gray-900",children:[Math.round(e.total_minutes/60),"h"]})]},t))})]}),0===Z.total_events&&(0,_h.jsxs)("div",{className:"text-center py-12 bg-white rounded-2xl shadow-sm border border-gray-100",children:[(0,_h.jsx)(O3,{className:"h-16 w-16 text-gray-300 mx-auto mb-4"}),(0,_h.jsx)("h3",{className:"text-xl font-semibold text-gray-900 mb-2",children:"No Statistics Yet"}),(0,_h.jsx)("p",{className:"text-gray-500 mb-6",children:"Start adding events with scores and details to see your stats come to life!"}),(0,_h.jsx)(RG,{onClick:()=>f("/family"),className:"rounded-full",children:"Add Your First Event"})]}),(0,_h.jsx)(mJ,{open:q,onOpenChange:H,children:(0,_h.jsx)(yJ,{className:"sm:max-w-2xl mx-4 rounded-2xl max-h-[90vh] overflow-hidden flex flex-col",children:U&&(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsx)(wJ,{children:(0,_h.jsxs)("div",{className:"flex items-center gap-4",children:[(0,_h.jsx)("div",{className:"w-16 h-16 rounded-full flex items-center justify-center text-white text-2xl font-bold",style:{backgroundColor:U.color||"#3B82F6"},children:(null===(h=U.name)||void 0===h?void 0:h.charAt(0))||"?"}),(0,_h.jsxs)("div",{children:[(0,_h.jsxs)(xJ,{className:"text-xl",children:[U.name,"'s Stats"]}),(0,_h.jsxs)("p",{className:"text-sm text-gray-500",children:[U.total_events," total events"]})]})]})}),(0,_h.jsxs)("div",{className:"flex-1 overflow-y-auto py-4 space-y-4",children:[(0,_h.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:[(0,_h.jsxs)("div",{className:"p-4 bg-blue-50 rounded-xl text-center",children:[(0,_h.jsxs)("p",{className:"text-2xl font-bold text-blue-600",children:[Math.round(U.practice_minutes/60),"h"]}),(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"Practice Time"})]}),(0,_h.jsxs)("div",{className:"p-4 bg-green-50 rounded-xl text-center",children:[(0,_h.jsxs)("p",{className:"text-2xl font-bold text-green-600",children:[Math.round(U.game_minutes/60),"h"]}),(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"Game Time"})]}),(0,_h.jsxs)("div",{className:"p-4 bg-purple-50 rounded-xl text-center",children:[(0,_h.jsx)("p",{className:"text-2xl font-bold text-purple-600",children:U.goals||0}),(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"Goals/Points"})]}),(0,_h.jsxs)("div",{className:"p-4 bg-orange-50 rounded-xl text-center",children:[(0,_h.jsx)("p",{className:"text-2xl font-bold text-orange-600",children:U.assists||0}),(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"Assists"})]})]}),(U.wins>0||U.losses>0||U.ties>0)&&(0,_h.jsxs)("div",{className:"p-4 bg-gray-50 rounded-xl",children:[(0,_h.jsx)("h4",{className:"font-semibold text-gray-900 mb-3",children:"Win/Loss Record"}),(0,_h.jsxs)("div",{className:"flex items-center gap-4 mb-2",children:[(0,_h.jsxs)("span",{className:"px-3 py-1 bg-green-100 text-green-700 rounded-lg font-semibold",children:[U.wins," Wins"]}),(0,_h.jsxs)("span",{className:"px-3 py-1 bg-red-100 text-red-700 rounded-lg font-semibold",children:[U.losses," Losses"]}),(0,_h.jsxs)("span",{className:"px-3 py-1 bg-gray-100 text-gray-700 rounded-lg font-semibold",children:[U.ties," Ties"]})]}),(0,_h.jsxs)("div",{className:"h-3 bg-gray-200 rounded-full overflow-hidden flex",children:[U.wins>0&&(0,_h.jsx)("div",{className:"h-full bg-green-500",style:{width:"".concat(U.wins/(U.wins+U.losses+U.ties)*100,"%")}}),U.ties>0&&(0,_h.jsx)("div",{className:"h-full bg-gray-400",style:{width:"".concat(U.ties/(U.wins+U.losses+U.ties)*100,"%")}}),U.losses>0&&(0,_h.jsx)("div",{className:"h-full bg-red-500",style:{width:"".concat(U.losses/(U.wins+U.losses+U.ties)*100,"%")}})]}),(0,_h.jsxs)("p",{className:"text-center text-sm text-gray-500 mt-2",children:["Win Rate: ",Math.round(U.wins/(U.wins+U.losses+U.ties)*100),"%"]})]}),(0,_h.jsxs)("div",{children:[(0,_h.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,_h.jsx)("h4",{className:"font-semibold text-gray-900",children:"Recent Events"}),(0,_h.jsxs)(RG,{variant:"outline",size:"sm",className:"rounded-xl",onClick:()=>{H(!1),f("/family?tab=events")},children:[(0,_h.jsx)(MZ,{className:"h-4 w-4 mr-1"})," View All"]})]}),Y?(0,_h.jsx)("div",{className:"text-center py-8",children:(0,_h.jsx)(VZ,{className:"h-8 w-8 animate-spin mx-auto text-purple-600"})}):Array.isArray(W)&&0!==W.length?(0,_h.jsx)("div",{className:"space-y-2 max-h-[250px] overflow-y-auto",children:(Array.isArray(W)?W:[]).slice(0,10).map((e,t)=>{const n=I3.find(t=>
2t.id===e.event_type)||I3[0],a=null!==e.score_home&&null!==e.score_away;return(0,_h.jsxs)("div",{className:"flex items-center gap-3 p-3 bg-white rounded-lg border border-gray-100",children:[(0,_h.jsx)("div",{className:"w-10 h-10 rounded-lg bg-gray-100 flex items-center justify-center text-xl",children:n.icon}),(0,_h.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,_h.jsx)("p",{className:"font-medium text-gray-900 truncate",children:e.title}),(0,_h.jsxs)("p",{className:"text-xs text-gray-500",children:[e.date," \u2022 ",n.name]})]}),a&&(0,_h.jsxs)("span",{className:"text-xs font-semibold px-2 py-1 rounded-lg ".concat(e.score_home>e.score_away?"bg-green-100 text-green-700":e.score_home<e.score_away?"bg-red-100 text-red-700":"bg-gray-100 text-gray-700"),children:[e.score_home,"-",e.score_away]}),e.goals>0&&(0,_h.jsxs)("span",{className:"text-xs text-gray-500",children:["\u26bd",e.goals]})]},e.id||t)})}):(0,_h.jsx)("p",{className:"text-center text-gray-500 py-4",children:"No events recorded yet"})]})]}),(0,_h.jsxs)(_J,{children:[(0,_h.jsx)(RG,{variant:"outline",onClick:()=>H(!1),className:"rounded-xl",children:"Close"}),(0,_h.jsxs)(RG,{onClick:()=>{H(!1),f("/family?tab=events")},className:"rounded-xl",children:[(0,_h.jsx)(MZ,{className:"h-4 w-4 mr-2"})," Edit Events"]})]})]})})})]})},U3=[{path:"/pricing",label:"Pricing"},{path:"/contact",label:"Contact"},{path:"/terms",label:"Terms"},{path:"/privacy",label:"Privacy"}],V3=()=>{const{user:e}=gY(),t=Ee(),n=Ce();return(0,_h.jsx)("header",{className:"sticky top-0 z-40 bg-white/70 backdrop-blur-xl border-b border-gray-100/50",children:(0,_h.jsx)("div",{className:"mx-auto max-w-6xl px-4 md:px-6",children:(0,_h.jsxs)("div",{className:"flex h-16 items-center justify-between",children:[(0,_h.jsx)(Pt,{to:"/",className:"flex items-center gap-2 group",children:(0,_h.jsx)("img",{src:"https://customer-assets.emergentagent.com/job_kidplay-hub/artifacts/7zuwi818_jgzjhpdo_image.png",alt:"SmartDaddy AI",className:"h-8 w-auto object-contain transition-transform duration-300 group-hover:scale-105"})}),(0,_h.jsx)("nav",{className:"hidden md:flex items-center gap-1 p-1.5 rounded-full",style:{background:"rgba(0,0,0,0.04)"},children:U3.map(e=>{let{path:t,label:a}=e;return(0,_h.jsx)(Pt,{to:t,className:"px-4 py-2 rounded-full text-sm font-medium transition-all duration-300 ".concat(n.pathname===t?"bg-white text-gray-900 shadow-sm":"text-gray-500 hover:text-gray-900"),children:a},t)})}),(0,_h.jsx)("div",{className:"flex items-center gap-3",children:e?(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsx)(RG,{onClick:()=>t("/dashboard"),className:"rounded-full bg-gradient-to-r from-purple-600 to-indigo-600",children:"Go to Dashboard"}),(0,_h.jsx)("span",{className:"hidden md:inline-flex px-2.5 py-1 bg-gradient-to-r from-purple-600 to-indigo-600 text-white text-[10px] font-bold rounded-full shadow-sm",children:"BETA"})]}):(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsx)(Pt,{to:"/handler/sign-in",className:"text-sm font-medium text-gray-600 hover:text-gray-900",children:"Sign In"}),(0,_h.jsx)(RG,{onClick:()=>t("/handler/sign-up"),className:"rounded-full bg-gradient-to-r from-purple-600 to-indigo-600",children:"Get Started"}),(0,_h.jsx)("span",{className:"hidden md:inline-flex px-2.5 py-1 bg-gradient-to-r from-purple-600 to-indigo-600 text-white text-[10px] font-bold rounded-full shadow-sm",children:"BETA"})]})})]})})})},q3=()=>(0,_h.jsxs)("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 via-white to-purple-50 flex flex-col",children:[(0,_h.jsx)(V3,{}),(0,_h.jsx)("main",{className:"max-w-4xl mx-auto px-4 py-12 flex-1",children:(0,_h.jsxs)("div",{className:"bg-white rounded-2xl shadow-sm border border-gray-100 p-8 md:p-12",children:[(0,_h.jsx)("h1",{className:"text-3xl font-bold text-gray-900 mb-2",children:"Privacy Policy"}),(0,_h.jsx)("p",{className:"text-gray-500 mb-8",children:"Last updated: December 24, 2025"}),(0,_h.jsxs)("div",{className:"prose prose-gray max-w-none",children:[(0,_h.jsx)("h2",{className:"text-xl font-semibold text-gray-900 mt-8 mb-4",children:"1. Information We Collect"}),(0,_h.jsx)("p",{className:"text-gray-600 mb-4",children:"SmartDaddy AI collects information you provide directly to us, including:"}),(0,_h.jsxs)("ul",{className:"list-disc pl-6 text-gray-600 space-y-2 mb-6",children:[(0,_h.jsx)("li",{children:"Account information (name, email, password)"}),(0,_h.jsx)("li",{children:"Family member profiles (names, dates of birth)"}),(0,_h.jsx)("li",{children:"Activity and event information"}),(0,_h.jsx)("li",{children:"Calendar data from connected sources"})]}),(0,_h.jsx)("h2",{className:"text-xl font-semibold text-gray-900 mt-8 mb-4",children:"2. How We Use Your Information"}),(0,_h.jsx)("p",{className:"text-gray-600 mb-4",children:"We use the information we collect to:"}),(0,_h.jsxs)("ul",{className:"list-disc pl-6 text-gray-600 space-y-2 mb-6",children:[(0,_h.jsx)("li",{children:"Provide, maintain, and improve our services"}
vendor: 7,701 bytes, line 2
2),(0,_h.jsx)("li",{children:"Generate AI-powered summaries and insights"}),(0,_h.jsx)("li",{children:"Send notifications about your family's activities"}),(0,_h.jsx)("li",{children:"Respond to your comments and questions"})]}),(0,_h.jsx)("h2",{className:"text-xl font-semibold text-gray-900 mt-8 mb-4",children:"3. Data Security & Compliance"}),(0,_h.jsx)("p",{className:"text-gray-600 mb-4",children:"We take the security of your data extremely seriously. SmartDaddy AI implements industry-leading cybersecurity best practices:"}),(0,_h.jsxs)("ul",{className:"list-disc pl-6 text-gray-600 space-y-2 mb-4",children:[(0,_h.jsxs)("li",{children:[(0,_h.jsx)("strong",{children:"100% US-Based:"})," All data and information is stored and processed entirely within the United States."]}),(0,_h.jsxs)("li",{children:[(0,_h.jsx)("strong",{children:"NIST 800-53:"})," We follow the National Institute of Standards and Technology (NIST) Special Publication 800-53 security and privacy controls framework."]}),(0,_h.jsxs)("li",{children:[(0,_h.jsx)("strong",{children:"ISO 27001:"})," Our security practices align with ISO 27001 international standards for information security management systems (ISMS)."]}),(0,_h.jsx)("li",{children:"Your data is encrypted in transit (TLS 1.3) and at rest (AES-256)."}),(0,_h.jsx)("li",{children:"We never sell your personal information to third parties."})]}),(0,_h.jsx)("h2",{className:"text-xl font-semibold text-gray-900 mt-8 mb-4",children:"4. Payment Security"}),(0,_h.jsxs)("p",{className:"text-gray-600 mb-4",children:["All payments are processed securely through ",(0,_h.jsx)("strong",{children:"Stripe"}),", a PCI-DSS Level 1 certified payment processor\u2014the highest level of certification in the payment industry."]}),(0,_h.jsxs)("ul",{className:"list-disc pl-6 text-gray-600 space-y-2 mb-6",children:[(0,_h.jsxs)("li",{children:[(0,_h.jsx)("strong",{children:"PCI-DSS Compliant:"})," All payment processing meets Payment Card Industry Data Security Standard (PCI-DSS) requirements."]}),(0,_h.jsxs)("li",{children:[(0,_h.jsx)("strong",{children:"Zero Payment Data Storage:"})," SmartDaddy AI never stores, processes, or has access to your credit card numbers, CVV codes, or other sensitive payment information."]}),(0,_h.jsx)("li",{children:"Payment information is transmitted directly to Stripe's secure servers and never touches our systems."})]}),(0,_h.jsx)("h2",{className:"text-xl font-semibold text-gray-900 mt-8 mb-4",children:"5. Data Retention"}),(0,_h.jsx)("p",{className:"text-gray-600 mb-6",children:"We retain your information for as long as your account is active or as needed to provide you services. You can request deletion of your data at any time by contacting us."}),(0,_h.jsx)("h2",{className:"text-xl font-semibold text-gray-900 mt-8 mb-4",children:"6. Children's Privacy"}),(0,_h.jsx)("p",{className:"text-gray-600 mb-6",children:"SmartDaddy AI is designed to help parents manage their children's activities. We do not knowingly collect personal information directly from children under 13. Parents maintain full control over their children's information."}),(0,_h.jsx)("h2",{className:"text-xl font-semibold text-gray-900 mt-8 mb-4",children:"7. Contact Us"}),(0,_h.jsxs)("p",{className:"text-gray-600 mb-4",children:["If you have questions about this Privacy Policy, please"," ",(0,_h.jsx)(Pt,{to:"/contact",className:"text-blue-500 hover:underline",children:"contact us"}),"."]})]})]})}),(0,_h.jsx)("footer",{className:"border-t border-gray-100 py-8",children:(0,_h.jsxs)("div",{className:"max-w-6xl mx-auto px-4 flex flex-wrap justify-between items-center",children:[(0,_h.jsxs)("p",{className:"text-xs text-gray-400",children:["\xa9 2025 SmartDaddy AI. All rights reserved. | An"," ",(0,_h.jsx)("a",{href:"https://offworldventures.org",target:"_blank",rel:"noopener noreferrer",className:"hover:text-gray-600",children:"OffWorld Ventures"})," ","company."]}),(0,_h.jsxs)("div",{className:"flex gap-6 text-xs text-gray-400",children:[(0,_h.jsx)(Pt,{to:"/privacy",className:"hover:text-gray-600 font-medium text-gray-600",children:"Privacy Policy"}),(0,_h.jsx)(Pt,{to:"/terms",className:"hover:text-gray-600",children:"Terms of Use"}),(0,_h.jsx)(Pt,{to:"/contact",className:"hover:text-gray-600",children:"Contact Us"}),(0,_h.jsx)(Pt,{to:"/pricing",className:"hover:text-gray-600",children:"Pricing"})]})]})})]}),H3=()=>(0,_h.jsxs)("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 via-white to-purple-50 flex flex-col",children:[(0,_h.jsx)(V3,{}),(0,_h.jsx)("main",{className:"max-w-4xl mx-auto px-4 py-12 flex-1",children:(0,_h.jsxs)("div",{className:"bg-white rounded-2xl shadow-sm border border-gray-100 p-8 md:p-12",children:[(0,_h.jsx)("h1",{className:"text-3xl font-bold text-gray-900 mb-2",children:"Terms of Use"}),(0,_h.jsx)("p",{className:"text-gray-500 mb-8",children:"Last updated: December 24, 2025"}),(0,_h.jsxs)("div",{className:"prose prose-gray max-w-none",children:[(0,_h.jsx)("h2",{className:"text-xl font-semibold text-gray-900 mt-8 mb-4",children:"1. Acceptance of Terms"}),(0,_h.jsx)("p",{className:"text-gray-600 mb-6",children:"By accessing or using SmartDaddy AI, you agree to be bound by these Terms of Use. If you do not agree to these terms, please do not use our service."}),(0,_h.jsx)("h2",{className:"text-xl font-semibold text-gray-900 mt-8 mb-4",children:"2. Description of Service"}),(0,_h.jsx)("p",{className:"text-gray-600 mb-6",children:"SmartDaddy AI is a family activity management platform that helps parents organize and track their children's sports, activities, and events. Our AI-powered features provide summaries and insights to simplify family scheduling."}),(0,_h.jsx)("h2",{className:"text-xl font-semibold text-gray-900 mt-8 mb-4",children:"3. User Accounts"}),(0,_h.jsx)("p",{className:"text-gray-600 mb-4",children:"To use SmartDaddy AI, you must:"}),(0,_h.jsxs)("ul",{className:"list-disc pl-6 text-gray-600 space-y-2 mb-6",children:[(0,_h.jsx)("li",{children:"Be at least 18 years old or have parental consent"}),(0,_h.jsx)("li",{children:"Provide accurate and complete registration information"}),(0,_h.jsx)("li",{children:"Maintain the security of your account credentials"}),(0,_h.jsx)("li",{children:"Notify us immediately of any unauthorized access"})]}),(0,_h.jsx)("h2",{className:"text-xl font-semibold text-gray-900 mt-8 mb-4",children:"4. Acceptable Use"}),(0,_h.jsx)("p",{className:"text-gray-600 mb-4",children:"You agree not to:"}),(0,_h.jsxs)("ul",{className:"list-disc pl-6 text-gray-600 space-y-2 mb-6",children:[(0,_h.jsx)("li",{children:"Use the service for any unlawful purpose"}),(0,_h.jsx)("li",{children:"Share your account with others"}),(0,_h.jsx)("li",{children:"Attempt to gain unauthorized access to our systems"}),(0,_h.jsx)("li",{children:"Upload malicious content or interfere with the service"})]}),(0,_h.jsx)("h2",{className:"text-xl font-semibold text-gray-900 mt-8 mb-4",children:"5. Intellectual Property"}),(0,_h.jsx)("p",{className:"text-gray-600 mb-6",children:"SmartDaddy AI and its original content, features, and functionality are owned by SmartDaddy AI and are protected by international copyright, trademark, and other intellectual property laws."}),(0,_h.jsx)("h2",{className:"text-xl font-semibold text-gray-900 mt-8 mb-4",children:"6. Limitation of Liability"}),(0,_h.jsx)("p",{className:"text-gray-600 mb-6",children:'SmartDaddy AI shall not be liable for any indirect, incidental, special, consequential, or punitive damages resulting from your use of the service. We provide the service "as is" without warranties of any kind.'}),(0,_h.jsx)("h2",{className:"text-xl font-semibold text-gray-900 mt-8 mb-4",children:"7. 
2Changes to Terms"}),(0,_h.jsx)("p",{className:"text-gray-600 mb-6",children:"We reserve the right to modify these terms at any time. We will notify users of significant changes via email or through the service. Continued use after changes constitutes acceptance of the new terms."}),(0,_h.jsx)("h2",{className:"text-xl font-semibold text-gray-900 mt-8 mb-4",children:"8. Contact"}),(0,_h.jsxs)("p",{className:"text-gray-600",children:["For questions about these Terms,"," ",(0,_h.jsx)(Pt,{to:"/contact",className:"text-blue-500 hover:underline",children:"contact us"}),"."]})]})]})}),(0,_h.jsx)("footer",{className:"border-t border-gray-100 py-6",children:(0,_h.jsxs)("div",{className:"max-w-6xl mx-auto px-4 flex flex-wrap justify-between items-center",children:[(0,_h.jsxs)("p",{className:"text-xs text-gray-400",children:["\xa9 2025 SmartDaddy AI. All rights reserved. | An"," ",(0,_h.jsx)("a",{href:"https://offworldventures.org",target:"_blank",rel:"noopener noreferrer",className:"hover:text-gray-600",children:"OffWorld Ventures"})," ","company."]}),(0,_h.jsxs)("div",{className:"flex gap-6 text-xs text-gray-400",children:[(0,_h.jsx)(Pt,{to:"/privacy",className:"hover:text-gray-600",children:"Privacy Policy"}),(0,_h.jsx)(Pt,{to:"/terms",className:"hover:text-gray-600 font-medium text-gray-600",children:"Terms of Use"}),(0,_h.jsx)(Pt,{to:"/contact",className:"hover:text-gray-600",children:"Contact Us"}),(0,_h.jsx)(Pt,{to:"/pricing",className:"hover:text-gray-600",children:"Pricing"})]})]})})]}),W3=()=>{const[e,t]=(0,o.useState)({name:"",email:"",subject:"",message:""}),[n,a]=(0,o.useState)(!1);return(0,_h.jsxs)("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 via-white to-purple-50 flex flex-col",children:[(0,_h.jsx)(V3,{}),(0,_h.jsx)("main",{className:"max-w-xl mx-auto px-4 py-12 flex-1",children:(0,_h.jsxs)("div",{className:"bg-white rounded-2xl shadow-sm border border-gray-100 p-8",children:[(0,_h.jsx)("h1",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Get in Touch"}),(0,_h.jsx)("p",{className:"text-gray-500 mb-6",children:"We'd love to hear from you. Send us a message!"}),(0,_h.jsxs)("form",{onSubmit:async n=>{n.preventDefault(),e.name&&e.email&&e.message?(a(!0),await new Promise(e=>setTimeout(e,1500)),wH.success("Message sent! We'll get back to you soon."),t({name:"",email:"",subject:"",message:""}),a(!1)):wH.error("Please fill in all required fields")},className:"space-y-4",children:[(0,_h.jsxs)("div",{className:"space-y-2",children:[(0,_h.jsx)(EJ,{htmlFor:"name",children:"Name *"}),(0,_h.jsx)(CJ,{id:"name",placeholder:"Your name",value:e.name,onChange:n=>t(p(p({},e),{},{name:n.target.value})),className:"rounded-xl"})]}),(0,_h.jsxs)("div",{className:"space-y-2",children:[(0,_h.jsx)(EJ,{htmlFor:"email",children:"Email *"}),(0,_h.jsx)(CJ,{id:"email",type:"email",placeholder:"[email protected]",value:e.email,onChange:n=>t(p(p({},e),{},{email:n.target.value})),className:"rounded-xl"})]}),(0,_h.jsxs)("div",{className:"space-y-2",children:[(0,_h.jsx)(EJ,{htmlFor:"subject",children:"Subject"}),(0,_h.jsx)(CJ,{id:"subject",placeholder:"How can we help?",value:e.subject,onChange:n=>t(p(p({},e),{},{subject:n.target.value})),className:"rounded-xl"})]}),(0,_h.jsxs)("div",{className:"space-y-2",children:[(0,_h.jsx)(EJ,{htmlFor:"message",children:"Message *"}),(0,_h.jsx)(D4,{id:"message",placeholder:"Tell us more...",rows:5,value:e.message,onChange:n=>t(p(p({},e),{},{message:n.target.value})),className:"rounded-xl resize-none"})]}),(0,_h.jsx)(RG,{type:"submit",disabled:n,className:"w-full rounded-xl h-12",style:{background:"linear-gradient(135deg, #5DADE2 0%, #8E44AD 100%)"},children:n?(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsx)(VZ,{className:"mr-2 h-4 w-4 animate-spin"})," Sending..."]}):(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsx)(u3,{className:"mr-2 h-4 w-4"})," Send Message"]})})]})]})}),(0,_h.jsx)("footer",{className:"border-t border-gray-100 py-8 mt-8",children:(0,_h.jsxs)("div",{className:"max-w-6xl mx-auto px-4 flex flex-wrap justify-between items-center",children:[(0,_h.jsxs)("p",{className:"text-xs text-gray-400",children:["\xa9 2025 SmartDaddy AI. All rights reserved. | An"," ",(0,_h.jsx)("a",{href:"https://offworldventures.org",target:"_blank",rel:"noopener noreferrer",className:"hover:text-gray-600",children:"OffWorld Ventures"})," ","company."]}),(0,_h.jsxs)("div",{className:"flex gap-6 text-xs text-gray-400",children:[(0,_h.jsx)(Pt,{to:"/privacy",className:"hover:text-gray-600",children:"Privacy Policy"}),(0,_h.jsx)(Pt,{to:"/terms",className:"hover:text-gray-600",children:"Terms of Use"}),(0,_h.jsx)(Pt,{to:"/contact",className:"hover:text-gray-600 font-medium text-gray-600",children:"Contact Us"}),(0,_h.jsx)(Pt,{to:"/pricing",className:"hover:text-gray-600",children:"Pricing"})]})]})})]})},K3=HG("rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3
2kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]),Y3=HG("brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]),G3=()=>{const{user:e}=gY();return(0,_h.jsxs)("div",{className:"min-h-screen bg-gradient-to-b from-gray-50 to-white flex flex-col",children:[(0,_h.jsx)(V3,{}),(0,_h.jsxs)("div",{className:"flex-1",children:[(0,_h.jsxs)("div",{className:"text-center py-16 px-4",children:[(0,_h.jsxs)("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-purple-100 text-purple-700 rounded-full text-sm font-medium mb-6",children:[(0,_h.jsx)(K3,{className:"h-4 w-4"}),"Coming Soon"]}),(0,_h.jsx)("h1",{className:"text-4xl md:text-5xl font-bold text-gray-900 mb-4",children:"Pro Plans Coming Soon"}),(0,_h.jsx)("p",{className:"text-xl text-gray-600 max-w-2xl mx-auto mb-8",children:"We're working hard to bring you amazing Pro features. For now, enjoy our free tier with all the essentials!"})]}),(0,_h.jsx)("div",{className:"max-w-4xl mx-auto px-4 pb-12",children:(0,_h.jsxs)("div",{className:"grid md:grid-cols-2 gap-8",children:[(0,_h.jsxs)("div",{className:"relative rounded-3xl p-8 border-2 border-green-500",style:{background:"rgba(255, 255, 255, 0.95)",backdropFilter:"blur(40px)",boxShadow:"0 4px 24px -4px rgba(0,0,0,0.1)"},children:[(0,_h.jsx)("div",{className:"absolute -top-3 left-6",children:(0,_h.jsx)("span",{className:"px-3 py-1 bg-green-500 text-white text-xs font-bold rounded-full",children:"AVAILABLE NOW"})}),(0,_h.jsxs)("div",{className:"mb-6",children:[(0,_h.jsx)("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Free"}),(0,_h.jsx)("p",{className:"text-gray-500",children:"Everything you need to get started"})]}),(0,_h.jsxs)("div",{className:"mb-6",children:[(0,_h.jsx)("span",{className:"text-5xl font-bold text-gray-900",children:"$0"}),(0,_h.jsx)("span",{className:"text-gray-500",children:"/month"})]}),(0,_h.jsx)(Pt,{to:e?"/dashboard":"/auth",children:(0,_h.jsx)(RG,{className:"w-full rounded-full h-12 text-base mb-8 bg-green-600 hover:bg-green-700",children:e?"Go to Dashboard":"Get Started Free"})}),(0,_h.jsxs)("div",{className:"space-y-4",children:[(0,_h.jsx)("p",{className:"text-sm font-semibold text-gray-700 uppercase tracking-wide",children:"Includes:"}),(0,_h.jsxs)("div",{className:"space-y-3",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,_h.jsx)("div",{className:"w-6 h-6 rounded-full bg-green-100 flex items-center justify-center",children:(0,_h.jsx)(KG,{className:"h-4 w-4 text-green-600"})}),(0,_h.jsxs)("span",{className:"text-gray-700",children:["Up to ",(0,_h.jsx)("strong",{children:"2 kids"})]})]}),(0,_h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,_h.jsx)("div",{className:"w-6 h-6 rounded-full bg-green-100 flex items-center justify-center",children:(0,_h.jsx)(KG,{className:"h-4 w-4 text-green-600"})}),(0,_h.jsxs)("span",{className:"text-gray-700",children:["Up to ",(0,_h.jsx)("strong",{children:"2 activities"})," per kid"]})]}),(0,_h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,_h.jsx)("div",{className:"w-6 h-6 rounded-full bg-green-100 flex items-center justify-center",children:(0,_h.jsx)(KG,{className:"h-4 w-4 text-green-600"})}),(0,_h.jsxs)("span",{className:"text-gray-700",children:["Up to ",(0,_h.jsx)("strong",{children:"5 events"})," per week"]})]}),(0,_h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,_h.jsx)("div",{className:"w-6 h-6 rounded-full bg-green-100 flex items-center justify-center",children:(0,_h.jsx)(KG,{className:"h-4 w-4 text-green-600"})}),(0,_h.jsx)("span",{className:"text-gray-700",children:"Basic statistics"})]}),(0,_h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,_h.jsx)("div",{className:"w-6 h-6 rounded-full bg-green-100 flex items-center justify-center",children:(0,_h.jsx)(KG,{className:"h-4 w-4 text-green-600"})}),(0,_h.jsx)("span",{className:"text-gray-700",children:"Family calendar"})]})]})]})]}),(0,_h.jsxs)("div",{className:"relative rounded-3xl p-8 border-2 border-dashed border-purple-300 bg-gradient-to-br from-purple-50 to-indigo-50",children:[(0,_h.jsx)("div",{className:"absolute -top-3 left-6",children:(0,_h.jsx)("span",{className:"px-3 py-1 bg-purple-600 text-white text-xs font-bold rounded-full",children:"COMING SOON"})}),(0,_h.jsxs)("div",{className:"mb-6",children:[(0,_h.jsxs)("h3",{className:"text-2xl font-bold text-gray-900 mb-2 flex items-center gap-2",children:[(0,_h.jsx)(U4,{className:"h-6 w-6 text-purple-600"}),"Pro"]}),(0,_h.jsx)("p",{className:"text-gray-500",children:"For families who want more"})]}),(0,_h.jsx)("div",{className:"mb-6",children:(0,_h.jsx)("span",{className:"text-3xl font-bold text-gray-400",children:"Pricing TBD"})}),(0,_h.jsxs)(RG,{disabled:!0,className:"w-full rounded-full h-12 text-base mb-8 bg-gray-300 cursor-not-allowed",children:[(0,_h.jsx)(aZ,{className:"h-4 w-4 mr-2"}),"Notify Me When Available"]}),(0,_h.jsxs)("div",{className:"space-y-4",children:[(0,_h.jsx)("p",{className:"text-sm font-semibold text-purple-700 uppercase tracking-wide",children:"Will Include:"}),(0,_h.jsxs)("div",{className:"space-y-3 opacity-75",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,_h.jsx)("div",{className:"w-6 h-6 rounded-full bg-purple-100 flex items-center justify-center",children:(0,_h.jsx)(eZ,{className:"h-4 w-4 text-purple-600"})}),(0,_h.jsxs)("span",{className:"text-gray-700",children:[(0,_h.jsx)("strong",{children:"Unlimited"})," kids"]})]}),(0,_h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,_h.jsx)("div",{className:"w-6 h-6 rounded-full bg-purple-100 flex items-center justify-center",children:(0,_h.jsx)(iZ,{className:"h-4 w-4 text-purple-600"})}),(0,_h.jsxs)("span",{className:"text-gray-700",children:[(0,_h.jsx)("strong",{children:"Unlimited"})," activities & events"]})]}),(0,_h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,_h.jsx)("div",{className:"w-6 h-6 rounded-full bg-purple-100 flex items-center justify-center",children:(0,_h.jsx)(Y3,{className:"h-4 w-4 text-purple-600"})}),(0,_h.jsx)("span",{className:"text-gray-700",children:"AI-powered summaries"})]}),(0,_h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,_h.jsx)("div",{className:"w-6 h-6 rounded-full bg-purple-100 flex items-center justify-center",children:(0,_h.jsx)(UZ,{className:"h-4 w-4 text-purple-600"})}),(0,_h.jsx)("span",{className:"text-gray-700",children:"SmartDaddy AI assistant"})]}),(0,_h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,_h.jsx)("div",{className:"w-6 h-6 rounded-full bg-purple-100 flex items-center justify-center",children:(0,_h.jsx)(tZ,{className:"h-4 w-4 text-purple-600"})}),(0,_h.jsx)("span",{className:"text-gray-700",children:"Advanced statistics"})]}),(0,_h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,_h.jsx)("div",{className:"w-6 h-6 rounded-full bg-purple-100 flex items-center justify-center",children:(0,_h.jsx)(IZ,{className:"h-4 w-4 text-purple-600"})}),(0,_h.jsx)("span",{className:"text-gray-700",children:"Priority support"})]})]})]})]})]})}),(0,_h.jsxs)("div",{className:"max-w-3xl mx-auto px-4 py-12 border-t border-gray-200",children:[(0,_h.jsx)("h2",{className:"text-2xl font-bold text-center text-gray-900 mb-8",children:"Frequently Asked Questions"}),(0,_h.jsxs)("div",{className:"space-y-6",children:[(0,_h.jsxs)("div",{className:"bg-white rounded-xl p-6 shadow-sm",children:[(0,_h.jsx)("h3",{className:"font-semibold text-gray-900 mb-2",children:"When will Pro plans be available?"}),(0,_h.jsx)("p",{className:"text-gray-600",children:"We're working hard on Pro features and will announce availability soon. Sign up for free to be the first to know!"})]}),(0,_h.jsxs)("div",{className:"bg-white rounded-xl p-6 shadow-sm",children:[(0,_h.jsx)("h3",{className:"font-semibold text-gray-900 mb-2",children:"What can I do with the free plan?"}),(0,_h.jsx)("p",{className:"text-gray-600",children:"The free plan lets you manage up to 2 kids with 2 activities each and 5 events per week. It's perfect for most families getting started!"})]}),(0,_h.jsxs)("div",{className:"bg-white rounded-xl p-6 shadow-sm",children:[(0,_h.jsx)("h3",{className:"font-semibold text-gray-900 mb-2",children:"Will my data be safe?"}),(0,_h.jsx)("p",{className:"text-gray-600",children:"Absolutely! Your family's data is encrypted and securely stored. We take privacy seriously."})]})]})]})]}),(0,_h.jsx)("footer",{className:"border-t border-gray-200 py-8 px-4",children:(0,_h.jsx)("div",{className:"max-w-6xl mx-auto text-center text-gray-500 text-sm",children:(0,_h.jsx)("p",{children:"\xa9 2026 SmartDaddy AI. All rights reserved."})})})]})},J3=["className"],$3=o.forwardRef((e,t)=>
2{let{className:n}=e,a=l(e,J3);return(0,_h.jsx)(aT,p(p({ref:t,className:FG("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",n)},a),{},{children:(0,_h.jsx)(oT,{className:FG("flex items-center justify-center text-current"),children:(0,_h.jsx)(KG,{className:"h-4 w-4"})})}))});$3.displayName=aT.displayName;const Q3=HG("ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]),X3=HG("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),Z3=HG("infinity",[["path",{d:"M6 16c5 0 7-8 12-8a4 4 0 0 1 0 8c-5 0-7-8-12-8a4 4 0 1 0 0 8",key:"18ogeb"}]]),e6=HG("triangle-alert",[["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-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),t6=HG("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),n6=HG("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]),a6=HG("user-check",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]),r6=HG("dollar-sign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]),o6=HG("credit-card",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]),i6=HG("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]),s6=HG("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]),l6=HG("trending-up",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]),c6=HG("piggy-bank",[["path",{d:"M11 17h3v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3a3.16 3.16 0 0 0 2-2h1a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-1a5 5 0 0 0-2-4V3a4 4 0 0 0-3.2 1.6l-.3.4H11a6 6 0 0 0-6 6v1a5 5 0 0 0 2 4v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1z",key:"1piglc"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M2 8v1a2 2 0 0 0 2 2h1",key:"1env43"}]]),u6=HG("user-minus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]),d6=HG("chart-line",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]);var h6=n(7820),p6=n.n(h6),f6=n(7770),m6=n.n(f6);function g6(e){var t=10**(arguments.length>1&&void 0!==arguments[1]?arguments[1]:4),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function v6(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return e.reduce((e,t,a)=>{var r=n[a-1];return"string"===typeof r?e+r+t:void 0!==r?e+g6(r)+t:e+t},"")}var y6=e=>0===e?0:e>0?1:-1,w6=e=>"number"==typeof e&&e!=+e,_6=e=>"string"===typeof e&&e.indexOf("%")===e.length-1,x6=e=>("number"===typeof e||e instanceof Number)&&!w6(e),b6=e=>x6(e)||"string"===typeof e,k6=0,C6=e=>{var t=++k6;return"".concat(e||"").concat(t)},D6=function(e,t){var n,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!x6(e)&&"string"!==typeof e)return a;
2if(_6(e)){if(null==t)return a;var o=e.indexOf("%");n=t*parseFloat(e.slice(0,o))/100}else n=+e;return w6(n)&&(n=a),r&&null!=t&&n>t&&(n=t),n},A6=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},a=0;a<t;a++){if(n[String(e[a])])return!0;n[String(e[a])]=!0}return!1};function E6(e,t,n){return x6(e)&&x6(t)?g6(e+n*(t-e)):t}function j6(e,t,n){if(e&&e.length)return e.find(e=>e&&("function"===typeof t?t(e):m6()(e,t))===n)}var S6=e=>null===e||"undefined"===typeof e,N6=e=>S6(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function P6(e){return null!=e}function T6(){}var F6=function(e,t){for(var n=arguments.length,a=new Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];if("undefined"!==typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(t.replace(/%s/g,()=>a[o++]))}},O6=(e,t,n)=>{var{width:a="100%",height:r="100%",aspect:o,maxHeight:i}=n,s=_6(a)?e:Number(a),l=_6(r)?t:Number(r);return o&&o>0&&(s?l=s/o:l&&(s=l*o),i&&null!=l&&l>i&&(l=i)),{calculatedWidth:s,calculatedHeight:l}},I6={width:0,height:0,overflow:"visible"},R6={width:0,overflowX:"visible"},M6={height:0,overflowY:"visible"},B6={},z6=e=>{var{width:t,height:n}=e,a=_6(t),r=_6(n);return a&&r?I6:a?R6:r?M6:B6};function L6(e){return Number.isFinite(e)}function U6(e){return"number"===typeof e&&e>0&&Number.isFinite(e)}function V6(){return V6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},V6.apply(null,arguments)}function q6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function H6(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q6(Object(n),!0).forEach(function(t){W6(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q6(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function W6(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var K6=(0,o.createContext)({width:-1,height:-1});function Y6(e){var{children:t,width:n,height:a}=e,r=(0,o.useMemo)(()=>({width:n,height:a}),[n,a]);return function(e){return U6(e.width)&&U6(e.height)}(r)?o.createElement(K6.Provider,{value:r},t):null}var G6=()=>(0,o.useContext)(K6),J6=(0,o.forwardRef)((e,t)=>{var{aspect:n,initialDimension:a={width:-1,height:-1},width:r,height:i,minWidth:s=0,minHeight:l,maxHeight:c,children:u,debounce:d=0,id:h,className:p,onResize:f,style:m={}}=e,g=(0,o.useRef)(null),v=(0,o.useRef)();v.current=f,(0,o.useImperativeHandle)(t,()=>g.current);var[y,w]=(0,o.useState)({containerWidth:a.width,containerHeight:a.height}),_=(0,o.useCallback)((e,t)=>{w(n=>{var a=Math.round(e),r=Math.round(t);return n.containerWidth===a&&n.containerHeight===r?n:{containerWidth:a,containerHeight:r}})},[]);(0,o.useEffect)(()=>{if(null==g.current||"undefined"===typeof ResizeObserver)return T6;var e=e=>{var t,{width:n,height:a}=e[0].contentRect;_(n,a),null===(t=v.current)||void 0===t||t.call(v,n,a)};d>0&&(e=p6()(e,d,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),{width:n,height:a}=g.current.getBoundingClientRect();return _(n,a),t.observe(g.current),()=>{t.disconnect()}},[_,d]);var{containerWidth:x,containerHeight:b}=y;F6(!n||n>0,"The aspect(%s) must be greater than zero.",n);var{calculatedWidth:k,calculatedHeight:C}=O6(x,b,{width:r,height:i,aspect:n,maxHeight:c});return F6(null!=k&&k>0||null!=C&&C>0,"The width(%s) and height(%s) of chart should be greater than 0,\n       please check the style of container, or the props width(%s) and height(%s),\n       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n       height and width.",k,C,r,i,s,l,n),o.createElement("div",{id:h?"".concat(h):void 0,className:Dd("recharts-responsive-container",p),style:H6(H6({},m),{},{width:r,height:i,minWidth:s,minHeight:l,maxHeight:c}),ref:g},o.createElement("div",{style:z6({width:r,height:i})},o.createElement(Y6,{width:k,height:C},u)))}),$6=(0,o.forwardRef)((e,t)=>{var n=G6();if(U6(n.width)&&U6(n.height))return e.children;var{width:a,height:r}=function(e){var{width:t,height:n,aspect:a}=e,r=t,o=n;return void 0===r&&void 0===o?(r="100%",o="100%"):void 0===r?r=a&&a>0?void 0:"100%":void 0===o&&(o=a&&a>0?void 0:"100%"),{width:r,height:o}}({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:i,calculatedHeight:s}=O6(void 0,void 0,{width:a,height:r,aspect:e.aspect,maxHeight:e.maxHeight});
vendor: 4,236 bytes, line 2
2return x6(i)&&x6(s)?o.createElement(Y6,{width:i,height:s},e.children):o.createElement(J6,V6({},e,{width:a,height:r,ref:t}))}),Q6=Symbol.for("immer-nothing"),X6=Symbol.for("immer-draftable"),Z6=Symbol.for("immer-state");function e8(e){throw new Error("[Immer] minified error nr: ".concat(e,". Full error at: https://bit.ly/3cXEKWf"))}var t8=Object,n8=t8.getPrototypeOf,a8="constructor",r8="prototype",o8="configurable",i8="enumerable",s8="writable",l8="value",c8=e=>!!e&&!!e[Z6];function u8(e){var t;return!!e&&(p8(e)||w8(e)||!!e[X6]||!(null===(t=e[a8])||void 0===t||!t[X6])||_8(e)||x8(e))}var d8=t8[r8][a8].toString(),h8=new WeakMap;function p8(e){if(!e||!b8(e))return!1;const t=n8(e);if(null===t||t===t8[r8])return!0;const n=t8.hasOwnProperty.call(t,a8)&&t[a8];if(n===Object)return!0;if(!k8(n))return!1;let a=h8.get(n);return void 0===a&&(a=Function.toString.call(n),h8.set(n,a)),a===d8}function f8(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(0===m8(e)){(n?Reflect.ownKeys(e):t8.keys(e)).forEach(n=>{t(n,e[n],e)})}else e.forEach((n,a)=>t(a,n,e))}function m8(e){const t=e[Z6];return t?t.type_:w8(e)?1:_8(e)?2:x8(e)?3:0}var g8=function(e,t){return 2===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:m8(e))?e.has(t):t8[r8].hasOwnProperty.call(e,t)},v8=function(e,t){return 2===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:m8(e))?e.get(t):e[t]},y8=function(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:m8(e);2===a?e.set(t,n):3===a?e.add(n):e[t]=n};var w8=Array.isArray,_8=e=>e instanceof Map,x8=e=>e instanceof Set,b8=e=>"object"===typeof e,k8=e=>"function"===typeof e,C8=e=>"boolean"===typeof e;var D8=e=>e.copy_||e.base_,A8=e=>e.modified_?e.copy_:e.base_;function E8(e,t){if(_8(e))return new Map(e);if(x8(e))return new Set(e);if(w8(e))return Array[r8].slice.call(e);const n=p8(e);if(!0===t||"class_only"===t&&!n){const t=t8.getOwnPropertyDescriptors(e);delete t[Z6];let n=Reflect.ownKeys(t);for(let a=0;a<n.length;a++){const r=n[a],o=t[r];!1===o[s8]&&(o[s8]=!0,o[o8]=!0),(o.get||o.set)&&(t[r]={[o8]:!0,[s8]:!0,[i8]:o[i8],[l8]:e[r]})}return t8.create(n8(e),t)}{const t=n8(e);if(null!==t&&n)return p({},e);const a=t8.create(t);return t8.assign(a,e)}}function j8(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return N8(e)||c8(e)||!u8(e)||(m8(e)>1&&t8.defineProperties(e,{set:S8,add:S8,clear:S8,delete:S8}),t8.freeze(e),t&&f8(e,(e,t)=>{j8(t,!0)},!1)),e}var S8={[l8]:function(){e8(2)}};function N8(e){return null===e||!b8(e)||t8.isFrozen(e)}var P8="MapSet",T8="Patches",F8="ArrayMethods",O8={};function I8(e){const t=O8[e];return t||e8(0),t}var R8,M8=e=>!!O8[e];var B8=()=>R8;function z8(e,t){t&&(e.patchPlugin_=I8(T8),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function L8(e){U8(e),e.drafts_.forEach(q8),e.drafts_=null}function U8(e){e===R8&&(R8=e.parent_)}var V8=e=>R8={drafts_:[],parent_:R8,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:M8(P8)?I8(P8):void 0,arrayMethodsPlugin_:M8(F8)?I8(F8):void 0};function q8(e){const t=e[Z6];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function H8(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(void 0!==e&&e!==n){n[Z6].modified_&&(L8(t),e8(4)),u8(e)&&(e=W8(t,e));const{patchPlugin_:a}=t;a&&a.generateReplacementPatches_(n[Z6].base_,e,t)}else e=W8(t,n);return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&j8(t,n)}(t,e,!0),L8(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Q6?e:void 0}function W8(e,t){if(N8(t))return t;const n=t[Z6];if(!n){return Q8(t,e.handledSet_,e)}if(!Y8(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:t}=n;if(t)for(;t.length>0;){t.pop()(e)}$8(n,e)}return n.copy_}function K8(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Y8=(e,t)=>e.scope_===t,G8=[];function J8(e,t,n,a){var r;const o=D8(e),i=e.type_;if(void 0!==a){if(v8(o,a,i)===t)return void y8(o,a,n,i)}if(!e.draftLocations_){const t=e.draftLocations_=new Map;f8(o,(e,n)=>{if(c8(n)){const a=t.get(n)||[];a.push(e),t.set(n,a)}})}const s=null!==(r=e.draftLocations_.get(t))&&void 0!==r?r:G8;
2for(const l of s)y8(o,l,n,i)}function $8(e,t){var n,a;if(e.modified_&&!e.finalized_&&(3===e.type_||1===e.type_&&e.allIndicesReassigned_||(null!==(n=null===(a=e.assigned_)||void 0===a?void 0:a.size)&&void 0!==n?n:0)>0)){const{patchPlugin_:n}=t;if(n){const a=n.getPath(e);a&&n.generatePatches_(e,a,t)}K8(e)}}function Q8(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||c8(e)||t.has(e)||!u8(e)||N8(e)||(t.add(e),f8(e,(a,r)=>{if(c8(r)){const t=r[Z6];if(Y8(t,n)){const n=A8(t);y8(e,a,n,e.type_),K8(t)}}else u8(r)&&Q8(r,t,n)})),e}var X8={get(e,t){if(t===Z6)return e;let n=e.scope_.arrayMethodsPlugin_;const a=1===e.type_&&"string"===typeof t;if(a&&null!==n&&void 0!==n&&n.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const r=D8(e);if(!g8(r,t,e.type_))return function(e,t,n){var a;const r=t9(t,n);return r?l8 in r?r[l8]:null===(a=r.get)||void 0===a?void 0:a.call(e.draft_):void 0}(e,r,t);const o=r[t];if(e.finalized_||!u8(o))return o;if(a&&e.operationMethod&&null!==n&&void 0!==n&&n.isMutatingArrayMethod(e.operationMethod)&&function(e){const t=+e;return Number.isInteger(t)&&String(t)===e}(t))return o;if(o===e9(e.base_,t)){a9(e);const n=1===e.type_?+t:t,a=r9(e.scope_,o,e,n);return e.copy_[n]=a}return o},has:(e,t)=>t in D8(e),ownKeys:e=>Reflect.ownKeys(D8(e)),set(e,t,n){const a=t9(D8(e),t);if(null!==a&&void 0!==a&&a.set)return a.set.call(e.draft_,n),!0;if(!e.modified_){const a=e9(D8(e),t),r=null===a||void 0===a?void 0:a[Z6];if(r&&r.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}(n,a)&&(void 0!==n||g8(e.base_,t,e.type_)))return!0;a9(e),n9(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),function(e,t,n){const{scope_:a}=e;if(c8(n)){const r=n[Z6];Y8(r,a)&&r.callbacks_.push(function(){a9(e);const a=A8(r);J8(e,n,a,t)})}else u8(n)&&e.callbacks_.push(function(){const r=D8(e);var o;v8(r,t,e.type_)===n&&a.drafts_.length>1&&!0===(null!==(o=e.assigned_.get(t))&&void 0!==o&&o)&&e.copy_&&Q8(v8(e.copy_,t,e.type_),a.handledSet_,a)})}(e,t,n)),!0},deleteProperty:(e,t)=>(a9(e),void 0!==e9(e.base_,t)||t in e.base_?(e.assigned_.set(t,!1),n9(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=D8(e),a=Reflect.getOwnPropertyDescriptor(n,t);return a?{[s8]:!0,[o8]:1!==e.type_||"length"!==t,[i8]:a[i8],[l8]:n[t]}:a},defineProperty(){e8(11)},getPrototypeOf:e=>n8(e.base_),setPrototypeOf(){e8(12)}},Z8={};function e9(e,t){const n=e[Z6];return(n?D8(n):e)[t]}function t9(e,t){if(!(t in e))return;let n=n8(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=n8(n)}}function n9(e){e.modified_||(e.modified_=!0,e.parent_&&n9(e.parent_))}function a9(e){e.copy_||(e.assigned_=new Map,e.copy_=E8(e.base_,e.scope_.immer_.useStrictShallowCopy_))}f8(X8,(e,t)=>{Z8[e]=function(){const e=arguments;return e[0]=e[0][0],t.apply(this,e)}}),Z8.deleteProperty=function(e,t){return Z8.set.call(this,e,t,void 0)},Z8.set=function(e,t,n){return X8.set.call(this,e[0],t,n,e[0])};function r9(e,t,n,a){var r,o;const[i,s]=_8(t)?I8(P8).proxyMap_(t,n):x8(t)?I8(P8).proxySet_(t,n):function(e,t){const n=w8(e),a={type_:n?1:0,scope_:t?t.scope_:B8(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let r=a,o=X8;n&&(r=[a],o=Z8);const{revoke:i,proxy:s}=Proxy.revocable(r,o);return a.draft_=s,a.revoke_=i,[s,a]}(t,n);return(null!==(r=null===n||void 0===n?void 0:n.scope_)&&void 0!==r?r:B8()).drafts_.push(i),s.callbacks_=null!==(o=null===n||void 0===n?void 0:n.callbacks_)&&void 0!==o?o:[],s.key_=a,n&&void 0!==a?function(e,t,n){e.callbacks_.push(function(a){var r,o;const i=t;if(!i||!Y8(i,a))return;null===(r=a.mapSetPlugin_)||void 0===r||r.fixSetContents(i);const s=A8(i);J8(e,null!==(o=i.draft_)&&void 0!==o?o:i,s,n),$8(i,a)})}(n,s,a):s.callbacks_.push(function(e){var t;null===(t=e.mapSetPlugin_)||void 0===t||t.fixSetContents(s);const{patchPlugin_:n}=e;s.modified_&&n&&n.generatePatches_(s,[],e)}),i}function o9(e){return c8(e)||e8(10),i9(e)}function i9(e){if(!u8(e)||N8(e))return e;const t=e[Z6];let n,a=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=E8(e,t.scope_.immer_.useStrictShallowCopy_),a=t.scope_.immer_.shouldUseStrictIteration()}else n=E8(e,!0);return f8(n,(e,t)=>{y8(n,e,i9(t))},a),t&&(t.finalized_=!1),n}var s9=new class{constructor(e){var t=this;this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(k8(e)&&!k8(t)){const n=t;t=e;const a=this;return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n;for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return a.produce(e,e=>t.call(this,e,...o))}}let a;if(k8(t)||e8(6),void 0===n||k8(n)||e8(7),u8(e)){const r=V8(this),o=r9(r,e,void 0);let i=!0;try{a=t(o),i=!1}finally{i?L8(r):U8(r)}return z8(r,n),H8(a,r)}if(!e||!b8(e)){if(a=t(e),void 0===a&&(a=e),a===Q6&&(a=void 0),this.autoFreeze_&&j8(a,!0),n){const t=[],r=[];I8(T8).generateReplacementPatches_(e,a,{patches_:t,inversePatches_:r}),n(t,r)}return a}e8(1)},this.produceWithPatches=(e,n)=>{if(k8(e))return function(n){for(var a=arguments.length,r=new Array(a>1?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];return t.produceWithPatches(n,t=>e(t,...r))};let a,r;const o=this.produce(e,n,(e,t)=>{a=e,r=t});return[o,a,r]},C8(null===e||void 0===e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),C8(null===e||void 0===e?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),C8(null===e||void 0===e?void 0:e.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){u8(e)||e8(8),c8(e)&&(e=o9(e));const t=V8(this),n=r9(t,e,void 0);return n[Z6].isManual_=!0,U8(t),n}finishDraft(e,t){const n=e&&e[Z6];n&&n.isManual_||e8(9);const{scope_:a}=n;return z8(a,t),H8(void 0,a)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const a=t[n];if(0===a.path.length&&"replace"===a.op){e=a.value;break}}n>
2-1&&(t=t.slice(n+1));const a=I8(T8).applyPatches_;return c8(e)?a(e,t):this.produce(e,e=>a(e,t))}},l9=s9.produce;function c9(e){return"Minified Redux error #".concat(e,"; visit https://redux.js.org/Errors?code=").concat(e," for the full message or use the non-minified dev environment for full errors. ")}var u9=(()=>"function"===typeof Symbol&&Symbol.observable||"@@observable")(),d9=()=>Math.random().toString(36).substring(7).split("").join("."),h9={INIT:"@@redux/INIT".concat(d9()),REPLACE:"@@redux/REPLACE".concat(d9()),PROBE_UNKNOWN_ACTION:()=>"@@redux/PROBE_UNKNOWN_ACTION".concat(d9())};function p9(e){if("object"!==typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function f9(e,t,n){if("function"!==typeof e)throw new Error(c9(2));if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(c9(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(c9(1));return n(f9)(e,t)}let a=e,r=t,o=new Map,i=o,s=0,l=!1;function c(){i===o&&(i=new Map,o.forEach((e,t)=>{i.set(t,e)}))}function u(){if(l)throw new Error(c9(3));return r}function d(e){if("function"!==typeof e)throw new Error(c9(4));if(l)throw new Error(c9(5));let t=!0;c();const n=s++;return i.set(n,e),function(){if(t){if(l)throw new Error(c9(6));t=!1,c(),i.delete(n),o=null}}}function h(e){if(!p9(e))throw new Error(c9(7));if("undefined"===typeof e.type)throw new Error(c9(8));if("string"!==typeof e.type)throw new Error(c9(17));if(l)throw new Error(c9(9));try{l=!0,r=a(r,e)}finally{l=!1}return(o=i).forEach(e=>{e()}),e}h({type:h9.INIT});return{dispatch:h,subscribe:d,getState:u,replaceReducer:function(e){if("function"!==typeof e)throw new Error(c9(10));a=e,h({type:h9.REPLACE})},[u9]:function(){const e=d;return{subscribe(t){if("object"!==typeof t||null===t)throw new Error(c9(11));function n(){const e=t;e.next&&e.next(u())}n();return{unsubscribe:e(n)}},[u9](){return this}}}}}function m9(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const a=t[o];0,"function"===typeof e[a]&&(n[a]=e[a])}const a=Object.keys(n);let r;try{!function(e){Object.keys(e).forEach(t=>{const n=e[t];if("undefined"===typeof n(void 0,{type:h9.INIT}))throw new Error(c9(12));if("undefined"===typeof n(void 0,{type:h9.PROBE_UNKNOWN_ACTION()}))throw new Error(c9(13))})}(n)}catch(oL){r=oL}return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(r)throw r;let o=!1;const i={};for(let r=0;r<a.length;r++){const s=a[r],l=n[s],c=e[s],u=l(c,t);if("undefined"===typeof u){t&&t.type;throw new Error(c9(14))}i[s]=u,o=o||u!==c}return o=o||a.length!==Object.keys(e).length,o?i:e}}function g9(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?e=>e:1===t.length?t[0]:t.reduce((e,t)=>function(){return e(t(...arguments))})}function v9(e){return p9(e)&&"type"in e&&"string"===typeof e.type}function y9(e){return t=>{let{dispatch:n,getState:a}=t;return t=>r=>"function"===typeof r?r(n,a,e):t(r)}}var w9=y9(),_9=y9;const x9=["reducerPath"];var b9="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===typeof arguments[0]?g9:g9.apply(null,arguments)};"undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function k9(e,t){function n(){if(t){let n=t(...arguments);if(!n)throw new Error(v7(0));return p(p({type:e,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.error})}return{type:e,payload:arguments.length<=0?void 0:arguments[0]}}return n.toString=()=>"".concat(e),n.type=e,n.match=t=>v9(t)&&t.type===e,n}var C9=class e extends Array{constructor(){super(...arguments),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return super.concat.apply(this,t)}prepend(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];
2return 1===n.length&&Array.isArray(n[0])?new e(...n[0].concat(this)):new e(...n.concat(this))}};function D9(e){return u8(e)?l9(e,()=>{}):e}function A9(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var E9="RTK_autoBatch",j9=()=>e=>({payload:e,meta:{[E9]:!0}}),S9=e=>t=>{setTimeout(t,e)},N9=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"raf"};return t=>function(){const n=t(...arguments);let a=!0,r=!1,o=!1;const i=new Set,s="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:S9(10):"callback"===e.type?e.queueNotification:S9(e.timeout),l=()=>{o=!1,r&&(r=!1,i.forEach(e=>e()))};return Object.assign({},n,{subscribe(e){const t=n.subscribe(()=>a&&e());return i.add(e),()=>{t(),i.delete(e)}},dispatch(e){try{var t;return a=!(null!==e&&void 0!==e&&null!==(t=e.meta)&&void 0!==t&&t[E9]),r=!a,r&&(o||(o=!0,s(l))),n.dispatch(e)}finally{a=!0}}})}};function P9(e){const t=function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:a=!0,actionCreatorCheck:r=!0}=null!==e&&void 0!==e?e:{};let o=new C9;return t&&(function(e){return"boolean"===typeof e}(t)?o.push(w9):o.push(_9(t.extraArgument))),o},{reducer:n,middleware:a,devTools:r=!0,duplicateMiddlewareCheck:o=!0,preloadedState:i,enhancers:s}=e||{};let l,c;if("function"===typeof n)l=n;else{if(!p9(n))throw new Error(v7(1));l=m9(n)}c="function"===typeof a?a(t):t();let u=g9;r&&(u=b9(p({trace:!1},"object"===typeof r&&r)));const d=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>(n,a)=>{const r=e(n,a);let o=()=>{throw new Error(c9(15))};const i={getState:r.getState,dispatch:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return o(e,...n)}},s=t.map(e=>e(i));return o=g9(...s)(r.dispatch),p(p({},r),{},{dispatch:o})}}(...c),h=(e=>function(t){const{autoBatch:n=!0}=null!==t&&void 0!==t?t:{};let a=new C9(e);return n&&a.push(N9("object"===typeof n?n:void 0)),a})(d);return f9(l,i,u(..."function"===typeof s?s(h):h()))}function T9(e){const t={},n=[];let a;const r={addCase(e,n){const a="string"===typeof e?e:e.type;if(!a)throw new Error(v7(28));if(a in t)throw new Error(v7(29));return t[a]=n,r},addAsyncThunk:(e,a)=>(a.pending&&(t[e.pending.type]=a.pending),a.rejected&&(t[e.rejected.type]=a.rejected),a.fulfilled&&(t[e.fulfilled.type]=a.fulfilled),a.settled&&n.push({matcher:e.settled,reducer:a.settled}),r),addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),r),addDefaultCase:e=>(a=e,r)};return e(r),[t,n,a]}var F9=function(){let e="",t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;for(;t--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e};var O9=Symbol.for("rtk-slice-createasyncthunk");function I9(e,t){return"".concat(e,"/").concat(t)}function R9(){var e;let{creators:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=null===t||void 0===t||null===(e=t.asyncThunk)||void 0===e?void 0:e[O9];return function(e){const{name:t,reducerPath:a=t}=e;if(!t)throw new Error(v7(11));const r=("function"===typeof e.reducers?e.reducers(function(){function e(e,t){return p({_reducerDefinitionType:"asyncThunk",payloadCreator:e},t)}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name](){return e(...arguments)}}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},o=Object.keys(r),i={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const n="string"===typeof e?e:e.type;if(!n)throw new Error(v7(12));if(n in i.sliceCaseReducersByType)throw new Error(v7(13));return i.sliceCaseReducersByType[n]=t,s},addMatcher:(e,t)=>(i.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(i.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(i.sliceCaseReducersByName[e]=t,s)};function c(){const[t={},n=[],a]="function"===typeof e.extraReducers?T9(e.extraReducers):[e.extraReducers],r=p(p({},t),i.sliceCaseReducersByType);return function(e,t){let n,[a,r,o]=T9(t);if(function(e){return"function"===typeof e}(e))n=()=>D9(e());else{const t=D9(e);n=()=>t}function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n(),t=arguments.length>1?arguments[1]:void 0,i=[a[t.type],...r.filter(e=>{let{matcher:n}=e;return n(t)}).map(e=>{let{reducer:t}=e;return t})];return 0===i.filter(e=>!!e).length&&(i=[o]),i.reduce((e,n)=>{if(n){if(c8(e)){const a=n(e,t);return void 0===a?e:a}if(u8(e))return l9(e,e=>n(e,t));{const a=n(e,t);if(void 0===a){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return a}}return e},e)}return i.getInitialState=n,i}(e.initialState,e=>{for(let t in r)e.addCase(t,r[t]);for(let t of i.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);a&&e.addDefaultCase(a)})}
2o.forEach(a=>{const o=r[a],i={reducerName:a,type:I9(t,a),createNotation:"function"===typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(o)?function(e,t,n){let a,r,{type:o,reducerName:i,createNotation:s}=e;if("reducer"in t){if(s&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(t))throw new Error(v7(17));a=t.reducer,r=t.prepare}else a=t;n.addCase(o,a).exposeCaseReducer(i,a).exposeAction(i,r?k9(o,r):k9(o))}(i,o,s):function(e,t,n,a){let{type:r,reducerName:o}=e;if(!a)throw new Error(v7(18));const{payloadCreator:i,fulfilled:s,pending:l,rejected:c,settled:u,options:d}=t,h=a(r,i,d);n.exposeAction(o,h),s&&n.addCase(h.fulfilled,s);l&&n.addCase(h.pending,l);c&&n.addCase(h.rejected,c);u&&n.addMatcher(h.settled,u);n.exposeCaseReducer(o,{fulfilled:s||z9,pending:l||z9,rejected:c||z9,settled:u||z9})}(i,o,s,n)});const u=e=>e,d=new Map,h=new WeakMap;let f;function m(e,t){return f||(f=c()),f(e,t)}function g(){return f||(f=c()),f.getInitialState()}function v(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function a(e){let r=e[t];return"undefined"===typeof r&&n&&(r=A9(h,a,g)),r}function r(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;const a=A9(d,n,()=>new WeakMap);return A9(a,t,()=>{const a={};for(const[o,i]of Object.entries(null!==(r=e.selectors)&&void 0!==r?r:{})){var r;a[o]=M9(i,t,()=>A9(h,t,g),n)}return a})}return{reducerPath:t,getSelectors:r,get selectors(){return r(a)},selectSlice:a}}const y=p(p({name:t,reducer:m,actions:i.actionCreators,caseReducers:i.sliceCaseReducersByName,getInitialState:g},v(a)),{},{injectInto(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reducerPath:n}=t,r=l(t,x9);const o=null!==n&&void 0!==n?n:a;return e.inject({reducerPath:o,reducer:m},r),p(p({},y),v(o,!0))}});return y}}function M9(e,t,n,a){function r(r){let o=t(r);"undefined"===typeof o&&a&&(o=n());for(var i=arguments.length,s=new Array(i>1?i-1:0),l=1;l<i;l++)s[l-1]=arguments[l];return e(o,...s)}return r.unwrapped=e,r}var B9=R9();function z9(){}var L9="listener",U9="completed",V9="cancelled",q9="task-".concat(V9),H9="task-".concat(U9),W9="".concat(L9,"-").concat(V9),K9="".concat(L9,"-").concat(U9),Y9=class{constructor(e){d(this,"name","TaskAbortError"),d(this,"message",void 0),this.code=e,this.message="".concat("task"," ").concat(V9," (reason: ").concat(e,")")}},G9=(e,t)=>
2{if("function"!==typeof e)throw new TypeError(v7(32))},J9=()=>{},$9=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J9;return e.catch(t),e},Q9=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),X9=e=>{if(e.aborted)throw new Y9(e.reason)};function Z9(e,t){let n=J9;return new Promise((a,r)=>{const o=()=>r(new Y9(e.reason));e.aborted?o():(n=Q9(e,o),t.finally(()=>n()).then(a,r))}).finally(()=>{n=J9})}var e7=e=>t=>$9(Z9(e,t).then(t=>(X9(e),t))),t7=e=>{const t=e7(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:n7}=Object,a7={},r7="listenerMiddleware",o7=(e,t)=>(n,a)=>{G9(n);const r=new AbortController;var o;o=r,Q9(e,()=>o.abort(e.reason));const i=(async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof Y9?"cancelled":"rejected",error:n}}finally{null===t||void 0===t||t()}})(async()=>{X9(e),X9(r.signal);const t=await n({pause:e7(r.signal),delay:t7(r.signal),signal:r.signal});return X9(r.signal),t},()=>r.abort(H9));return null!==a&&void 0!==a&&a.autoJoin&&t.push(i.catch(J9)),{result:e7(e)(i),cancel(){r.abort(q9)}}},i7=(e,t)=>(n,a)=>$9((async(n,a)=>{X9(t);let r=()=>{};const o=[new Promise((t,a)=>{let o=e({predicate:n,effect:(e,n)=>{n.unsubscribe(),t([e,n.getState(),n.getOriginalState()])}});r=()=>{o(),a()}})];null!=a&&o.push(new Promise(e=>setTimeout(e,a,null)));try{const e=await Z9(t,Promise.race(o));return X9(t),e}finally{r()}})(n,a)),s7=e=>{let{type:t,actionCreator:n,matcher:a,predicate:r,effect:o}=e;if(t)r=k9(t).match;else if(n)t=n.type,r=n.match;else if(a)r=a;else if(!r)throw new Error(v7(21));return G9(o),{predicate:r,type:t,effect:o}},l7=n7(e=>{const{type:t,predicate:n,effect:a}=s7(e);return{id:F9(),effect:a,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(v7(22))}}},{withTypes:()=>l7}),c7=(e,t)=>{const{type:n,effect:a,predicate:r}=s7(t);return Array.from(e.values()).find(e=>("string"===typeof n?e.type===n:e.predicate===r)&&e.effect===a)},u7=e=>{e.pending.forEach(e=>{e.abort(W9)})},d7=(e,t,n)=>{try{e(t,n)}catch(a){setTimeout(()=>{throw a},0)}},h7=n7(k9("".concat(r7,"/add")),{withTypes:()=>h7}),p7=k9("".concat(r7,"/removeAll")),f7=n7(k9("".concat(r7,"/remove")),{withTypes:()=>f7}),m7=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.error("".concat(r7,"/error"),...t)},g7=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=new Map,n=new Map,{extra:a,onError:r=m7}=e;G9(r);const o=e=>{var n;return(e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),null!==t&&void 0!==t&&t.cancelActive&&u7(e)}))(null!==(n=c7(t,e))&&void 0!==n?n:l7(e))};n7(o,{withTypes:()=>o});const i=e=>{const n=c7(t,e);return n&&(n.unsubscribe(),e.cancelActive&&u7(n)),!!n};n7(i,{withTypes:()=>i});const s=async(e,i,s,l)=>{const c=new AbortController,u=i7(o,c.signal),d=[];try{e.pending.add(c),(e=>{var t;const a=null!==(t=n.get(e))&&void 0!==t?t:0;n.set(e,a+1)})(e),await Promise.resolve(e.effect(i,n7({},s,{getOriginalState:l,condition:(e,t)=>u(e,t).then(Boolean),take:u,delay:t7(c.signal),pause:e7(c.signal),extra:a,signal:c.signal,fork:o7(c.signal,d),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,n)=>{e!==c&&(e.abort(W9),n.delete(e))})},cancel:()=>{c.abort(W9),e.pending.delete(c)},throwIfCancelled:()=>{X9(c.signal)}})))}catch(h){h instanceof Y9||d7(r,h,{raisedBy:"effect"})}finally{await Promise.all(d),c.abort(K9),(e=>{var t;const a=null!==(t=n.get(e))&&void 0!==t?t:1;1===a?n.delete(e):n.set(e,a-1)})(e),e.pending.delete(c)}},l=((e,t)=>()=>{for(const e of t.keys())u7(e);e.clear()})(t,n);return{middleware:e=>n=>a=>{if(!v9(a))return n(a);if(h7.match(a))return o(a.payload);if(p7.match(a))return void l();if(f7.match(a))return i(a.payload);let c=e.getState();const u=()=>{if(c===a7)throw new Error(v7(23));return c};let d;try{if(d=n(a),t.size>0){const n=e.getState(),o=Array.from(t.values());for(const t of o){let o=!1;try{o=t.predicate(a,n,c)}catch(h){o=!1,d7(r,h,{raisedBy:"predicate"})}o&&s(t,a,e,u)}}}finally{c=a7}return d},startListening:o,stopListening:i,clearListeners:l}};Symbol.for("rtk-state-proxy-original");function v7(e){return"Minified Redux Toolkit error #".concat(e,"; visit https://redux-toolkit.js.org/Errors?code=").concat(e," for the full message or use the non-minified dev environment for full errors. ")}function y7(e,t){if(t){var n=Number.parseInt(t,10);if(!w6(n))return null===e||void 0===e?void 0:e[n]}}
2var w7=B9({name:"options",initialState:{chartName:"",tooltipPayloadSearcher:void 0,eventEmitter:void 0,defaultTooltipEventType:"axis"},reducers:{createEventEmitter:e=>{null==e.eventEmitter&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),_7=w7.reducer,{createEventEmitter:x7}=w7.actions;n(7237);function b7(e){e()}var k7={notify(){},get:()=>[]};function C7(e,t){let n,a=k7,r=0,o=!1;function i(){c.onStateChange&&c.onStateChange()}function s(){r++,n||(n=t?t.addNestedSub(i):e.subscribe(i),a=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){b7(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let a=!0;const r=t={callback:n,next:null,prev:t};return r.prev?r.prev.next=r:e=r,function(){a&&null!==e&&(a=!1,r.next?r.next.prev=r.prev:t=r.prev,r.prev?r.prev.next=r.next:e=r.next)}}}}())}function l(){r--,n&&0===r&&(n(),n=void 0,a.clear(),a=k7)}const c={addNestedSub:function(e){s();const t=a.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){a.notify()},handleChangeWrapper:i,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,s())},tryUnsubscribe:function(){o&&(o=!1,l())},getListeners:()=>a};return c}var D7=(()=>!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement))(),A7=(()=>"undefined"!==typeof navigator&&"ReactNative"===navigator.product)(),E7=(()=>D7||A7?o.useLayoutEffect:o.useEffect)();function j7(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function S7(e,t){if(j7(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;const n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!j7(e[n[r]],t[n[r]]))return!1;return!0}Object.defineProperty,Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype;var N7=Symbol.for("react-redux-context"),P7="undefined"!==typeof globalThis?globalThis:{};function T7(){var e;if(!o.createContext)return{};const t=null!==(e=P7[N7])&&void 0!==e?e:P7[N7]=new Map;let n=t.get(o.createContext);return n||(n=o.createContext(null),t.set(o.createContext,n)),n}var F7=T7();var O7=function(e){const{children:t,context:n,serverState:a,store:r}=e,i=o.useMemo(()=>{const e=C7(r);return{store:r,subscription:e,getServerState:a?()=>a:void 0}},[r,a]),s=o.useMemo(()=>r.getState(),[r]);E7(()=>{const{subscription:e}=i;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==r.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[i,s]);const l=n||F7;return o.createElement(l.Provider,{value:i},t)};var I7=Symbol.for("immer-nothing"),R7=Symbol.for("immer-draftable"),M7=Symbol.for("immer-state");function B7(e){throw new Error("[Immer] minified error nr: ".concat(e,". Full error at: https://bit.ly/3cXEKWf"))}var z7=Object.getPrototypeOf;function L7(e){return!!e&&!!e[M7]}function U7(e){var t;return!!e&&(H7(e)||Array.isArray(e)||!!e[R7]||!(null===(t=e.constructor)||void 0===t||!t[R7])||J7(e)||$7(e))}var V7=Object.prototype.constructor.toString(),q7=new WeakMap;function H7(e){if(!e||"object"!==typeof e)return!1;const t=Object.getPrototypeOf(e);if(null===t||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if("function"!==typeof n)return!1;let a=q7.get(n);return void 0===a&&(a=Function.toString.call(n),q7.set(n,a)),a===V7}function W7(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(0===K7(e)){(n?Reflect.ownKeys(e):Object.keys(e)).forEach(n=>{t(n,e[n],e)})}else e.forEach((n,a)=>t(a,n,e))}function K7(e){const t=e[M7];return t?t.type_:Array.isArray(e)?1:J7(e)?2:$7(e)?3:0}function Y7(e,t){return 2===K7(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function G7(e,t,n){const a=K7(e);2===a?e.set(t,n):3===a?e.add(n):e[t]=n}function J7(e){return e instanceof Map}function $7(e){return e instanceof Set}function Q7(e){return e.copy_||e.base_}function X7(e,t){if(J7(e))return new Map(e);if($7(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=H7(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[M7];let n=Reflect.ownKeys(t);for(let a=0;a<n.length;a++){const r=n[a],o=t[r];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[r]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[r]})}return Object.create(z7(e),t)}{const t=z7(e);if(null!==t&&n)return p({},e);const a=Object.create(t);return Object.assign(a,e)}}function Z7(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return tee(e)||L7(e)||!U7(e)||(K7(e)>
21&&Object.defineProperties(e,{set:eee,add:eee,clear:eee,delete:eee}),Object.freeze(e),t&&Object.values(e).forEach(e=>Z7(e,!0))),e}var eee={value:function(){B7(2)}};function tee(e){return null===e||"object"!==typeof e||Object.isFrozen(e)}var nee,aee={};function ree(e){const t=aee[e];return t||B7(0),t}function oee(){return nee}function iee(e,t){t&&(ree("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function see(e){lee(e),e.drafts_.forEach(uee),e.drafts_=null}function lee(e){e===nee&&(nee=e.parent_)}function cee(e){return nee={drafts_:[],parent_:nee,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function uee(e){const t=e[M7];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function dee(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[M7].modified_&&(see(t),B7(4)),U7(e)&&(e=hee(t,e),t.parent_||fee(t,e)),t.patches_&&ree("Patches").generateReplacementPatches_(n[M7].base_,e,t.patches_,t.inversePatches_)):e=hee(t,n,[]),see(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==I7?e:void 0}function hee(e,t,n){if(tee(t))return t;const a=e.immer_.shouldUseStrictIteration(),r=t[M7];if(!r)return W7(t,(a,o)=>pee(e,r,t,a,o,n),a),t;if(r.scope_!==e)return t;if(!r.modified_)return fee(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,i=!1;3===r.type_&&(o=new Set(t),t.clear(),i=!0),W7(o,(a,o)=>pee(e,r,t,a,o,n,i),a),fee(e,t,!1),n&&e.patches_&&ree("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function pee(e,t,n,a,r,o,i){if(null==r)return;if("object"!==typeof r&&!i)return;const s=tee(r);if(!s||i){if(L7(r)){const i=hee(e,r,o&&t&&3!==t.type_&&!Y7(t.assigned_,a)?o.concat(a):void 0);if(G7(n,a,i),!L7(i))return;e.canAutoFreeze_=!1}else i&&n.add(r);if(U7(r)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;if(t&&t.base_&&t.base_[a]===r&&s)return;hee(e,r),t&&t.scope_.parent_||"symbol"===typeof a||!(J7(n)?n.has(a):Object.prototype.propertyIsEnumerable.call(n,a))||fee(e,r)}}}function fee(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Z7(t,n)}var mee={get(e,t){if(t===M7)return e;const n=Q7(e);if(!Y7(n,t))return function(e,t,n){var a;const r=yee(t,n);return r?"value"in r?r.value:null===(a=r.get)||void 0===a?void 0:a.call(e.draft_):void 0}(e,n,t);const a=n[t];return e.finalized_||!U7(a)?a:a===vee(e.base_,t)?(_ee(e),e.copy_[t]=xee(a,e)):a},has:(e,t)=>t in Q7(e),ownKeys:e=>Reflect.ownKeys(Q7(e)),set(e,t,n){const a=yee(Q7(e),t);if(null!==a&&void 0!==a&&a.set)return a.set.call(e.draft_,n),!0;if(!e.modified_){const a=vee(Q7(e),t),r=null===a||void 0===a?void 0:a[M7];if(r&&r.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}(n,a)&&(void 0!==n||Y7(e.base_,t)))return!0;_ee(e),wee(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==vee(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,_ee(e),wee(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=Q7(e),a=Reflect.getOwnPropertyDescriptor(n,t);return a?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:a.enumerable,value:n[t]}:a},defineProperty(){B7(11)},getPrototypeOf:e=>z7(e.base_),setPrototypeOf(){B7(12)}},gee={};function vee(e,t){const n=e[M7];return(n?Q7(n):e)[t]}function yee(e,t){if(!(t in e))return;let n=z7(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=z7(n)}}function wee(e){e.modified_||(e.modified_=!0,e.parent_&&wee(e.parent_))}function _ee(e){e.copy_||(e.copy_=X7(e.base_,e.scope_.immer_.useStrictShallowCopy_))}W7(mee,(e,t)=>{gee[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),gee.deleteProperty=function(e,t){return gee.set.call(this,e,t,void 0)},gee.set=function(e,t,n){return mee.set.call(this,e[0],t,n,e[0])};function xee(e,t){const n=J7(e)?ree("MapSet").proxyMap_(e,t):$7(e)?ree("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),a={type_:n?1:0,scope_:t?t.scope_:oee(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let r=a,o=mee;n&&(r=[a],o=gee);const{revoke:i,proxy:s}=Proxy.revocable(r,o);return a.draft_=s,a.revoke_=i,s}(e,t);return(t?t.scope_:oee()).drafts_.push(n),n}function bee(e){if(!U7(e)||tee(e))return e;const t=e[M7];let n,a=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=X7(e,t.scope_.immer_.useStrictShallowCopy_),a=t.scope_.immer_.shouldUseStrictIteration()}else n=X7(e,!0);return W7(n,(e,t)=>{G7(n,e,bee(t))},a),t&&(t.finalized_=!1),n}var kee=new class{constructor(e){var t=this;this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(e,t,n)=>{if("function"===typeof e&&"function"!==typeof t){const n=t;t=e;const a=this;return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n;for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return a.produce(e,e=>t.call(this,e,...o))}}let a;if("function"!==typeof t&&B7(6),void 0!==n&&"function"!==typeof n&&B7(7),U7(e)){const r=cee(this),o=xee(e,void 0);let i=!0;try{a=t(o),i=!1}finally{i?see(r):lee(r)}return iee(r,n),dee(a,r)}if(!e||"object"!==typeof e){if(a=t(e),void 0===a&&(a=e),a===I7&&(a=void 0),this.autoFreeze_&&Z7(a,!0),n){const t=[],r=[];ree("Patches").generateReplacementPatches_(e,a,t,r),n(t,r)}return a}B7(1)},this.produceWithPatches=(e,n)=>{if("function"===typeof e)return function(n){for(var a=arguments.length,r=new Array(a>1?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];return t.produceWithPatches(n,t=>e(t,...r))};let a,r;const o=this.produce(e,n,(e,t)=>{a=e,r=t});return[o,a,r]},"boolean"===typeof(null===e||void 0===e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),"boolean"===typeof(null===e||void 0===e?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),"boolean"===typeof(null===e||void 0===e?void 0:e.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){U7(e)||B7(8),L7(e)&&(e=function(e){L7(e)||B7(10);return bee(e)}(e));const t=cee(this),n=xee(e,void 0);return n[M7].isManual_=!0,lee(t),n}finishDraft(e,t){const n=e&&e[M7];n&&n.isManual_||B7(9);const{scope_:a}=n;return iee(a,t),dee(void 0,a)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const a=t[n];if(0===a.path.length&&"replace"===a.op){e=a.value;break}}n>
vendor: 4,139 bytes, line 2
2-1&&(t=t.slice(n+1));const a=ree("Patches").applyPatches_;return L7(e)?a(e,t):this.produce(e,e=>a(e,t))}};kee.produce;var Cee={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},Dee=B9({name:"tooltip",initialState:{itemInteraction:{click:Cee,hover:Cee},axisInteraction:{click:Cee,hover:Cee},keyboardInteraction:Cee,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:j9()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:n,next:a}=t.payload,r=o9(e).tooltipItemPayloads.indexOf(n);r>-1&&(e.tooltipItemPayloads[r]=a)},prepare:j9()},removeTooltipEntrySettings:{reducer(e,t){var n=o9(e).tooltipItemPayloads.indexOf(t.payload);n>-1&&e.tooltipItemPayloads.splice(n,1)},prepare:j9()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:Aee,replaceTooltipEntrySettings:Eee,removeTooltipEntrySettings:jee,setTooltipSettingsState:See,setActiveMouseOverItemIndex:Nee,mouseLeaveItem:Pee,mouseLeaveChart:Tee,setActiveClickItemIndex:Fee,setMouseOverAxisIndex:Oee,setMouseClickAxisIndex:Iee,setSyncInteraction:Ree,setKeyboardInteraction:Mee}=Dee.actions,Bee=Dee.reducer,zee=B9({name:"chartData",initialState:{chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},reducers:{setChartData(e,t){if(e.chartData=t.payload,null==t.payload)return e.dataStartIndex=0,void(e.dataEndIndex=0);t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:n,endIndex:a}=t.payload;null!=n&&(e.dataStartIndex=n),null!=a&&(e.dataEndIndex=a)}}}),{setChartData:Lee,setDataStartEndIndexes:Uee,setComputedData:Vee}=zee.actions,qee=zee.reducer,Hee=B9({name:"chartLayout",initialState:{layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var n,a,r,o;e.margin.top=null!==(n=t.payload.top)&&void 0!==n?n:0,e.margin.right=null!==(a=t.payload.right)&&void 0!==a?a:0,e.margin.bottom=null!==(r=t.payload.bottom)&&void 0!==r?r:0,e.margin.left
2=null!==(o=t.payload.left)&&void 0!==o?o:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:Wee,setLayout:Kee,setChartSize:Yee,setScale:Gee}=Hee.actions,Jee=Hee.reducer;function $ee(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"expected a function, instead received ".concat(typeof e);if("function"!==typeof e)throw new TypeError(t)}var Qee=e=>Array.isArray(e)?e:[e];function Xee(e){const t=Array.isArray(e[0])?e[0]:e;return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"expected all items to be functions, instead received the following types: ";if(!e.every(e=>"function"===typeof e)){const n=e.map(e=>"function"===typeof e?"function ".concat(e.name||"unnamed","()"):typeof e).join(", ");throw new TypeError("".concat(t,"[").concat(n,"]"))}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}Symbol(),Object.getPrototypeOf({});var Zee="undefined"!==typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function ete(){return{s:0,v:void 0,o:null,p:null}}function tte(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:a}=t;let r,o=0;function i(){let t=n;const{length:i}=arguments;for(let e=0,n=i;e<n;e++){const n=arguments[e];if("function"===typeof n||"object"===typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const a=e.get(n);void 0===a?(t=ete(),e.set(n,t)):t=a}else{let e=t.p;null===e&&(t.p=e=new Map);const a=e.get(n);void 0===a?(t=ete(),e.set(n,t)):t=a}}const s=t;let l;if(1===t.s)l=t.v;else if(l=e.apply(null,arguments),o++,a){var c,u,d;const e=null!==(c=null===(u=r)||void 0===u||null===(d=u.deref)||void 0===d?void 0:d.call(u))&&void 0!==c?c:r;null!=e&&a(e,l)&&(l=e,0!==o&&o--);r="object"===typeof l&&null!==l||"function"===typeof l?new Zee(l):l}return s.s=1,s.v=l,l}return i.clearCache=()=>{n={s:0,v:void 0,o:null,p:null},i.resetResultsCount()},i.resultsCount=()=>o,i.resetResultsCount=()=>{o=0},i}function nte(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];const r="function"===typeof e?{memoize:e,memoizeOptions:n}:e,o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let a,o=0,i=0,s={},l=t.pop();"object"===typeof l&&(s=l,l=t.pop()),$ee(l,"createSelector expects an output function after the inputs, but received: [".concat(typeof l,"]"));const c=p(p({},r),s),{memoize:u,memoizeOptions:d=[],argsMemoize:h=tte,argsMemoizeOptions:f=[],devModeChecks:m={}}=c,g=Qee(d),v=Qee(f),y=Xee(t),w=u(function(){return o++,l.apply(null,arguments)},...g);const _=h(function(){i++;const e=function(e,t){const n=[],{length:a}=e;for(let r=0;r<a;r++)n.push(e[r].apply(null,t));return n}(y,arguments);return a=w.apply(null,e),a},...v);return Object.assign(_,{resultFunc:l,memoizedResultFunc:w,dependencies:y,dependencyRecomputations:()=>i,resetDependencyRecomputations:()=>{i=0},lastResult:()=>a,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:u,argsMemoize:h})};return Object.assign(o,{withTypes:()=>o}),o}var ate=nte(tte),rte=Object.assign(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ate;!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"expected an object, instead received ".concat(typeof e);if("object"!==typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ".concat(typeof e));const n=Object.keys(e),a=t(n.map(t=>e[t]),function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.reduce((e,t,a)=>(e[n[a]]=t,e),{})});return a},{withTypes:()=>rte}),ote=n(8443),ite=(0,o.createContext)(null),ste=e=>e,lte=()=>{var e=(0,o.useContext)(ite);return e?e.store.dispatch:ste},cte=()=>{},ute=()=>cte,dte=(e,t)=>
2e===t;function hte(e){var t=(0,o.useContext)(ite);return(0,ote.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:ute,t?t.store.getState:cte,t?t.store.getState:cte,t?e:cte,dte)}var pte=n(3821),fte=n.n(pte),mte=e=>e.legend.settings,gte=ate([e=>e.legend.payload,mte],(e,t)=>{var{itemSorter:n}=t,a=e.flat(1);return n?fte()(a,n):a});function vte(e,t){if((r=e.length)>1)for(var n,a,r,o=1,i=e[t[0]],s=i.length;o<r;++o)for(a=i,i=e[t[o]],n=0;n<s;++n)i[n][1]+=i[n][0]=isNaN(a[n][1])?a[n][0]:a[n][1]}Array.prototype.slice;function yte(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function wte(e){return function(){return e}}function _te(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function xte(e,t){return e[t]}function bte(e){const t=[];return t.key=e,t}function kte(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function Cte(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Dte(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cte(Object(n),!0).forEach(function(t){Ate(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cte(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ate(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ete(e,t,n){return S6(e)||S6(t)?n:b6(t)?m6()(e,t,n):"function"===typeof t?t(e):n}var jte=(e,t)=>"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t,Ste=(e,t,n,a)=>{if(a)return e.map(e=>e.coordinate);var r,o,i=e.map(e=>(e.coordinate===t&&(r=!0),e.coordinate===n&&(o=!0),e.coordinate));return r||i.push(t),o||i.push(n),i},Nte=(e,t,n)=>{if(!e)return null;var{duplicateDomain:a,type:r,range:o,scale:i,realScaleType:s,isCategorical:l,categoricalDomain:c,tickCount:u,ticks:d,niceTicks:h,axisType:p}=e;if(!i)return null;var f="scaleBand"===s&&i.bandwidth?i.bandwidth()/2:2,m=(t||n)&&"category"===r&&i.bandwidth?i.bandwidth()/f:0;if(m="angleAxis"===p&&o&&o.length>=2?2*y6(o[0]-o[1])*m:m,t&&(d||h)){var g=(d||h||[]).map((e,t)=>{var n=a?a.indexOf(e):e;return{coordinate:i(n)+m,value:e,offset:m,index:t}});return g.filter(e=>!w6(e.coordinate))}return l&&c?c.map((e,t)=>({coordinate:i(e)+m,value:e,index:t,offset:m})):i.ticks&&!n&&null!=u?i.ticks(u).map((e,t)=>({coordinate:i(e)+m,value:e,offset:m,index:t})):i.domain().map((e,t)=>({coordinate:i(e)+m,value:a?a[e]:e,index:t,offset:m}))},Pte=1e-4,Tte={sign:e=>{var t,n=e.length;if(!(n<=0)){var a=null===(t=e[0])||void 0===t?void 0:t.length;if(!(null==a||a<=0))for(var r=0;r<a;++r)for(var o=0,i=0,s=0;s<n;++s){var l=e[s],c=null===l||void 0===l?void 0:l[r];if(null!=c){var u=c[1],d=c[0],h=w6(u)?d:u;h>=0?(c[0]=o,c[1]=o+h,o=u):(c[0]=i,c[1]=i+h,i=u)}}}},expand:function(e,t){if((a=e.length)>0){for(var n,a,r,o=0,i=e[0].length;o<i;++o){for(r=n=0;n<a;++n)r+=e[n][o][1]||0;if(r)for(n=0;n<a;++n)e[n][o][1]/=r}vte(e,t)}},none:vte,silhouette:function(e,t){if((n=e.length)>0){for(var n,a=0,r=e[t[0]],o=r.length;a<o;++a){for(var i=0,s=0;i<n;++i)s+=e[i][a][1]||0;r[a][1]+=r[a][0]=-s/2}vte(e,t)}},wiggle:function(e,t){if((r=e.length)>0&&(a=(n=e[t[0]]).length)>0){for(var n,a,r,o=0,i=1;i<a;++i){for(var s=0,l=0,c=0;s<r;++s){for(var u=e[t[s]],d=u[i][1]||0,h=(d-(u[i-1][1]||0))/2,p=0;p<s;++p){var f=e[t[p]];h+=(f[i][1]||0)-(f[i-1][1]||0)}l+=d,c+=h*d}n[i-1][1]+=n[i-1][0]=o,l&&(o-=c/l)}n[i-1][1]+=n[i-1][0]=o,vte(e,t)}},positive:e=>{var t,n=e.length;if(!(n<=0)){var a=null===(t=e[0])||void 0===t?void 0:t.length;if(!(null==a||a<=0))for(var r=0;r<a;++r)for(var o=0,i=0;i<n;++i){var s=e[i],l=null===s||void 0===s?void 0:s[r];if(null!=l){var c=w6(l[1])?l[0]:l[1];c>=0?(l[0]=o,l[1]=o+c,o=l[1]):(l[0]=0,l[1]=0)}}}}}
2,Fte=(e,t,n)=>{var a,r=null!==(a=Tte[n])&&void 0!==a?a:vte,o=function(){var e=wte([]),t=_te,n=vte,a=xte;function r(r){var o,i,s=Array.from(e.apply(this,arguments),bte),l=s.length,c=-1;for(const e of r)for(o=0,++c;o<l;++o)(s[o][c]=[0,+a(e,s[o].key,c,r)]).data=e;for(o=0,i=yte(t(s));o<l;++o)s[i[o]].index=o;return n(s,i),s}return r.keys=function(t){return arguments.length?(e="function"===typeof t?t:wte(Array.from(t)),r):e},r.value=function(e){return arguments.length?(a="function"===typeof e?e:wte(+e),r):a},r.order=function(e){return arguments.length?(t=null==e?_te:"function"===typeof e?e:wte(Array.from(e)),r):t},r.offset=function(e){return arguments.length?(n=null==e?vte:e,r):n},r}().keys(t).value((e,t)=>Number(Ete(e,t,0))).order(_te).offset(r),i=o(e);return i.forEach((n,a)=>{n.forEach((n,r)=>{var o=Ete(e[r],t[a],0);Array.isArray(o)&&2===o.length&&x6(o[0])&&x6(o[1])&&(n[0]=o[0],n[1]=o[1])})}),i};function Ote(e){return null==e?void 0:String(e)}function Ite(e){var{axis:t,ticks:n,bandSize:a,entry:r,index:o,dataKey:i}=e;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!S6(r[t.dataKey])){var s=j6(n,"value",r[t.dataKey]);if(s)return s.coordinate+a/2}return n[o]?n[o].coordinate+a/2:null}var l=Ete(r,S6(i)?t.dataKey:i);return S6(l)?null:t.scale(l)}var Rte=e=>{var{axis:t,ticks:n,offset:a,bandSize:r,entry:o,index:i}=e;if("category"===t.type)return n[i]?n[i].coordinate+a:null;var s=Ete(o,t.dataKey,t.scale.domain()[i]);return S6(s)?null:t.scale(s)-r/2+a},Mte=(e,t,n)=>{var a;if(null!=e)return a=Object.keys(e).reduce((a,r)=>{var o=e[r];if(!o)return a;var{stackedData:i}=o,s=i.reduce((e,a)=>{var r=(e=>{var t=e.flat(2).filter(x6);return[Math.min(...t),Math.max(...t)]})(kte(a,t,n));return L6(r[0])&&L6(r[1])?[Math.min(e[0],r[0]),Math.max(e[1],r[1])]:e},[1/0,-1/0]);return[Math.min(s[0],a[0]),Math.max(s[1],a[1])]},[1/0,-1/0]),[a[0]===1/0?0:a[0],a[1]===-1/0?0:a[1]]},Bte=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,zte=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Lte=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var a=e.scale.bandwidth();if(!n||a>0)return a}if(e&&t&&t.length>=2){for(var r=fte()(t,e=>e.coordinate),o=1/0,i=1,s=r.length;i<s;i++){var l=r[i],c=r[i-1];o=Math.min(((null===l||void 0===l?void 0:l.coordinate)||0)-((null===c||void 0===c?void 0:c.coordinate)||0),o)}return o===1/0?0:o}return n?void 0:0};function Ute(e){var{tooltipEntrySettings:t,dataKey:n,payload:a,value:r,name:o}=e;return Dte(Dte({},t),{},{dataKey:n,payload:a,value:r,name:o})}function Vte(e,t){return e?String(e):"string"===typeof t?t:void 0}var qte=e=>e.layout.width,Hte=e=>e.layout.height,Wte=e=>e.layout.scale,Kte=e=>e.layout.margin,Yte=ate(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Gte=ate(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),Jte="data-recharts-item-index",$te="data-recharts-item-id";function Qte(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Xte(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qte(Object(n),!0).forEach(function(t){Zte(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qte(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zte(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ene=ate([qte,Hte,Kte,e=>e.brush.height,function(e){return Gte(e).reduce((e,t)=>"left"!==t.orientation||t.mirror||t.hide?e:e+("number"===typeof t.width?t.width:60),0)},function(e){return Gte(e).reduce((e,t)=>"right"!==t.orientation||t.mirror||t.hide?e:e+("number"===typeof t.width?t.width:60),0)},function(e){return Yte(e).reduce((e,t)=>
vendor: 10,829 bytes, line 2
2"top"!==t.orientation||t.mirror||t.hide?e:e+t.height,0)},function(e){return Yte(e).reduce((e,t)=>"bottom"!==t.orientation||t.mirror||t.hide?e:e+t.height,0)},mte,e=>e.legend.size],(e,t,n,a,r,o,i,s,l,c)=>{var u={left:(n.left||0)+r,right:(n.right||0)+o},d=Xte(Xte({},{top:(n.top||0)+i,bottom:(n.bottom||0)+s}),u),h=d.bottom;d.bottom+=a,d=((e,t,n)=>{if(t&&n){var{width:a,height:r}=n,{align:o,verticalAlign:i,layout:s}=t;if(("vertical"===s||"horizontal"===s&&"middle"===i)&&"center"!==o&&x6(e[o]))return Dte(Dte({},e),{},{[o]:e[o]+(a||0)});if(("horizontal"===s||"vertical"===s&&"center"===o)&&"middle"!==i&&x6(e[i]))return Dte(Dte({},e),{},{[i]:e[i]+(r||0)})}return e})(d,l,c);var p=e-d.left-d.right,f=t-d.top-d.bottom;return Xte(Xte({brushBottom:h},d),{},{width:Math.max(p,0),height:Math.max(f,0)})}),tne=ate(ene,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),nne=ate(qte,Hte,(e,t)=>({x:0,y:0,width:e,height:t})),ane=(0,o.createContext)(null),rne=()=>null!=(0,o.useContext)(ane),one=e=>e.brush,ine=ate([one,ene,Kte],(e,t,n)=>({height:e.height,x:x6(e.x)?e.x:t.left,y:x6(e.y)?e.y:t.top+t.height+t.brushBottom-((null===n||void 0===n?void 0:n.bottom)||0),width:x6(e.width)?e.width:t.width}));function sne(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var lne=()=>{var e,t=rne(),n=hte(tne),a=hte(ine),r=null===(e=hte(one))||void 0===e?void 0:e.padding;return t&&a&&r?{width:a.width-r.left-r.right,height:a.height-r.top-r.bottom,x:r.left,y:r.top}:n},cne={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},une=()=>{var e;return null!==(e=hte(ene))&&void 0!==e?e:cne},dne=()=>hte(qte),hne=()=>hte(Hte),pne=e=>e.layout.layoutType,fne=()=>hte(pne),mne=e=>{var t=lte(),n=rne(),{width:a,height:r}=e,i=G6(),s=a,l=r;return i&&(s=i.width>0?i.width:a,l=i.height>0?i.height:r),(0,o.useEffect)(()=>{!n&&U6(s)&&U6(l)&&t(Yee({width:s,height:l}))},[t,n,s,l]),null},gne=n(9859),vne=n.n(gne);function yne(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function wne(e,t){switch(arguments.length){case 0:break;case 1:"function"===typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"===typeof t?this.interpolator(t):this.range(t)}return this}class _ne extends Map{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Cne;if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[n,a]of e)this.set(n,a)}get(e){return super.get(xne(this,e))}has(e){return super.has(xne(this,e))}set(e,t){return super.set(bne(this,e),t)}delete(e){return super.delete(kne(this,e))}}Set;function xne(e,t){let{_intern:n,_key:a}=e;const r=a(t);return n.has(r)?n.get(r):t}function bne(e,t){let{_intern:n,_key:a}=e;const r=a(t);return n.has(r)?n.get(r):(n.set(r,t),t)}function kne(e,t){let{_intern:n,_key:a}=e;const r=a(t);return n.has(r)&&(t=n.get(r),n.delete(r)),t}function Cne(e){return null!==e&&"object"===typeof e?e.valueOf():e}const Dne=Symbol("implicit");function Ane(){var e=new _ne,t=[],n=[],a=Dne;function r(r){let o=e.get(r);if(void 0===o){if(a!==Dne)return a;e.set(r,o=t.push(r)-1)}return n[o%n.length]}return r.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new _ne;for(const a of n)e.has(a)||e.set(a,t.push(a)-1);return r},r.range=function(e){return arguments.length?(n=Array.from(e),r):n.slice()},r.unknown=function(e){return arguments.length?(a=e,r):a},r.copy=function(){return Ane(t,n).unknown(a)},yne.apply(r,arguments),r}function Ene(){var e,t,n=Ane().unknown(void 0),a=n.domain,r=n.range,o=0,i=1,s=!1,l=0,c=0,u=.5;function d(){var n=a().length,d=i<o,h=d?i:o,p=d?o:i;e=(p-h)/Math.max(1,n-l+2*c),s&&(e=Math.floor(e)),h+=(p-h-e*(n-l))*u,t=e*(1-l),s&&(h=Math.round(h),t=Math.round(t));var f=function(e,t,n){e=+e,t=+t,n=(r=arguments.length)<2?(t=e,e=0,1):r<3?1:+n;for(var a=-1,r=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(r);++a<r;)o[a]=e+a*n;return o}(n).map(function(t){return h+e*t});return r(d?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(a(e),d()):a()},n.range=function(e){return arguments.length?([o,i]=e,o=+o,i=+i,d()):[o,i]},n.rangeRound=function(e){return[o,i]=e,o=+o,i=+i,s=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,d()):s},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),d()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),d()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,d()):c},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},n.copy=function(){return Ene(a(),[o,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},yne.apply(d(),arguments)}function jne(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return jne(t())},e}function Sne(){return jne(Ene.apply(null,arguments).paddingInner(1))}const Nne=Math.sqrt(50),Pne=Math.sqrt(10),Tne=Math.sqrt(2);function Fne(e,t,n){const a=(t-e)/Math.max(0,n),r=Math.floor(Math.log10(a)),o=a/Math.pow(10,r),i=o>=Nne?10:o>=Pne?5:o>=Tne?2:1;let s,l,c;return r<0?(c=Math.pow(10,-r)/i,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,r)*i,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?Fne(e,t,2*n):[s,l,c]}function One(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const a=t<e,[r,o,i]=a?Fne(t,e,n):Fne(e,t,n);if(!(o>=r))return[];const s=o-r+1,l=new Array(s);if(a)if(i<0)for(let c=0;c<s;++c)l[c]=(o-c)/-i;else for(let c=0;c<s;++c)l[c]=(o-c)*i;else if(i<0)for(let c=0;c<s;++c)l[c]=(r+c)/-i;else for(let c=0;c<s;++c)l[c]=(r+c)*i;return l}function Ine(e,t,n){return Fne(e=+e,t=+t,n=+n)[2]}function Rne(e,t,n){n=+n;const a=(t=+t)<(e=+e),r=a?Ine(t,e,n):Ine(e,t,n);return(a?-1:1)*(r<0?1/-r:r)}function Mne(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Bne(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function zne(e){let t,n,a;function r(e,a){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(r<o){if(0!==t(a,a))return o;do{const t=r+o>>>1;n(e[t],a)<0?r=t+1:o=t}while(r<o)}return r}return 2!==e.length?(t=Mne,n=(t,n)=>Mne(e(t),n),a=(t,n)=>e(t)-n):(t=e===Mne||e===Bne?e:Lne,n=e,a=e),{left:r,center:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const o=r(e,t,n,(arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length)-1);return o>n&&a(e[o-1],t)>-a(e[o],t)?o-1:o},right:function(e,a){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(r<o){if(0!==t(a,a))return o;do{const t=r+o>>>1;n(e[t],a)<=0?r=t+1:o=t}while(r<o)}return r}}}function Lne(){return 0}function Une(e){return null===e?NaN:+e}const Vne=zne(Mne),qne=Vne.right,Hne=(Vne.left,zne(Une).center,qne);function Wne(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Kne(e,t){var n=Object.create(e.prototype);for(var a in t)n[a]=t[a];return n}function Yne(){}var Gne=.7,Jne=1/Gne,$ne="\\s*([+-]?\\d+)\\s*",Qne="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Xne="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Zne=/^#([0-9a-f]{3,8})$/,eae=new RegExp("^rgb\\(".concat($ne,",").concat($ne,",").concat($ne,"\\)$")),tae=new RegExp("^rgb\\(".concat(Xne,",").concat(Xne,",").concat(Xne,"\\)$")),nae=new RegExp("^rgba\\(".concat($ne,",").concat($ne,",").concat($ne,",").concat(Qne,"\\)$")),aae=new RegExp("^rgba\\(".concat(Xne,",").concat(Xne,",").concat(Xne,",").concat(Qne,"\\)$")),rae=new RegExp("^hsl\\(".concat(Qne,",").concat(Xne,",").concat(Xne,"\\)$")),oae=new RegExp("^hsla\\(".concat(Qne,",").concat(Xne,",").concat(Xne,",").concat(Qne,"\\)$")),iae={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};function sae(){return this.rgb().formatHex()}function lae(){return this.rgb().formatRgb()}function cae(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Zne.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?uae(t):3===n?
vendor: 4,517 bytes, line 2
2new pae(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?dae(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?dae(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=eae.exec(e))?new pae(t[1],t[2],t[3],1):(t=tae.exec(e))?new pae(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=nae.exec(e))?dae(t[1],t[2],t[3],t[4]):(t=aae.exec(e))?dae(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=rae.exec(e))?wae(t[1],t[2]/100,t[3]/100,1):(t=oae.exec(e))?wae(t[1],t[2]/100,t[3]/100,t[4]):iae.hasOwnProperty(e)?uae(iae[e]):"transparent"===e?new pae(NaN,NaN,NaN,0):null}function uae(e){return new pae(e>>16&255,e>>8&255,255&e,1)}function dae(e,t,n,a){return a<=0&&(e=t=n=NaN),new pae(e,t,n,a)}function hae(e,t,n,a){return 1===arguments.length?function(e){return e instanceof Yne||(e=cae(e)),e?new pae((e=e.rgb()).r,e.g,e.b,e.opacity):new pae}(e):new pae(e,t,n,null==a?1:a)}function pae(e,t,n,a){this.r=+e,this.g=+t,this.b=+n,this.opacity=+a}function fae(){return"#".concat(yae(this.r)).concat(yae(this.g)).concat(yae(this.b))}function mae(){const e=gae(this.opacity);return"".concat(1===e?"rgb(":"rgba(").concat(vae(this.r),", ").concat(vae(this.g),", ").concat(vae(this.b)).concat(1===e?")":", ".concat(e,")"))}function gae(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function vae(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function yae(e){return((e=vae(e))<16?"0":"")+e.toString(16)}function wae(e,t,n,a){return a<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new xae(e,t,n,a)}function _ae(e){if(e instanceof xae)return new xae(e.h,e.s,e.l,e.opacity);if(e instanceof Yne||(e=cae(e)),!e)return new xae;if(e instanceof xae)return e;var t=(e=e.rgb()).r/255,n=e.g/255,a=e.b/255,r=Math.min(t,n,a),o=Math.max(t,n,a),i=NaN,s=o-r,l=(o+r)/2;return s?(i=t===o?(n-a)/s+6*(n<a):n===o?(a-t)/s+2:(t-n)/s+4,s/=l<.5?o+r:2-o-r,i*=60):s=l>0&&l<1?0:i,new xae(i,s,l,e.opacity)}function xae(e,t,n,a){this.h=+e,this.s=+t,this.l=+n,this.opacity=+a}function bae(e){return(e=(e||0)%360)<0?e+360:e}function kae(e){return Math.max(0,Math.min(1,e||0))}function Cae(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function Dae(e,t,n,a,r){var o=e*e,i=o*e;return((1-3*e+3*o-i)*t+(4-6*o+3*i)*n+(1+3*e+3*o-3*i)*a+i*r)/6}Wne(Yne,cae,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:sae,formatHex:sae,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return _ae(this).formatHsl()},formatRgb:lae,toString:lae}),Wne(pae,hae,Kne(Yne,{brighter(e){return e=null==e?Jne:Math.pow(Jne,e),new pae(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Gne:Math.pow(Gne,e),new pae(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new pae(vae(this.r),vae(this.g),vae(this.b),gae(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:fae,formatHex:fae,formatHex8:function(){return"#".concat(yae(this.r)).concat(yae(this.g)).concat(yae(this.b)).concat(yae(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:mae,toString:mae})),Wne(xae,function(e,t,n,a){return 1===arguments.length?_ae(e):new xae(e,t,n,null==a?1:a)},Kne(Yne,{brighter(e){return e=null==e?Jne:Math.pow(Jne,e),new xae(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Gne:Math.pow(Gne,e),new xae(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,a=n+(n<.5?n:1-n)*t,r=2*n-a;return new pae(Cae(e>=240?e-240:e+120,r,a),Cae(e,r,a),Cae(e<120?e+240:e-120,r,a),this.opacity)},clamp(){return new xae(bae(this.h),kae(this.s),kae(this.l),gae(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 e=gae(this.opacity);return"".concat(1===e?"hsl(":"hsla(").concat(bae(this.h),", ").concat(100*kae(this.s),"%, ").concat(100*kae(this.l),"%").concat(1===e?")":", ".concat(e,")"))}}));const Aae=e=>()=>e;function Eae(e,t){return function(n){return e+n*t}}function jae(e){return 1===(e=+e)?Sae:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(a){return Math.pow(e+a*t,n)}}(t,n,e):Aae(isNaN(t)?n:t)}}function Sae(e,t){var n=t-e;return n?Eae(e,n):Aae(isNaN(e)?t:e)}const Nae=function e(t){var n=jae(t);function a(e,t){var a=n((e=hae(e)).r,(t=hae(t)).r),r=n(e.g,t.g),o=n(e.b,t.b),i=Sae(e.opacity,t.opacity);
vendor: 5,349 bytes, line 2
2return function(t){return e.r=a(t),e.g=r(t),e.b=o(t),e.opacity=i(t),e+""}}return a.gamma=e,a}(1);function Pae(e){return function(t){var n,a,r=t.length,o=new Array(r),i=new Array(r),s=new Array(r);for(n=0;n<r;++n)a=hae(t[n]),o[n]=a.r||0,i[n]=a.g||0,s[n]=a.b||0;return o=e(o),i=e(i),s=e(s),a.opacity=1,function(e){return a.r=o(e),a.g=i(e),a.b=s(e),a+""}}}Pae(function(e){var t=e.length-1;return function(n){var a=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),r=e[a],o=e[a+1],i=a>0?e[a-1]:2*r-o,s=a<t-1?e[a+2]:2*o-r;return Dae((n-a/t)*t,i,r,o,s)}}),Pae(function(e){var t=e.length;return function(n){var a=Math.floor(((n%=1)<0?++n:n)*t),r=e[(a+t-1)%t],o=e[a%t],i=e[(a+1)%t],s=e[(a+2)%t];return Dae((n-a/t)*t,r,o,i,s)}});function Tae(e,t){var n,a=t?t.length:0,r=e?Math.min(a,e.length):0,o=new Array(r),i=new Array(a);for(n=0;n<r;++n)o[n]=Lae(e[n],t[n]);for(;n<a;++n)i[n]=t[n];return function(e){for(n=0;n<r;++n)i[n]=o[n](e);return i}}function Fae(e,t){var n=new Date;return e=+e,t=+t,function(a){return n.setTime(e*(1-a)+t*a),n}}function Oae(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Iae(e,t){var n,a={},r={};for(n in null!==e&&"object"===typeof e||(e={}),null!==t&&"object"===typeof t||(t={}),t)n in e?a[n]=Lae(e[n],t[n]):r[n]=t[n];return function(e){for(n in a)r[n]=a[n](e);return r}}var Rae=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Mae=new RegExp(Rae.source,"g");function Bae(e,t){var n,a,r,o=Rae.lastIndex=Mae.lastIndex=0,i=-1,s=[],l=[];for(e+="",t+="";(n=Rae.exec(e))&&(a=Mae.exec(t));)(r=a.index)>o&&(r=t.slice(o,r),s[i]?s[i]+=r:s[++i]=r),(n=n[0])===(a=a[0])?s[i]?s[i]+=a:s[++i]=a:(s[++i]=null,l.push({i:i,x:Oae(n,a)})),o=Mae.lastIndex;return o<t.length&&(r=t.slice(o),s[i]?s[i]+=r:s[++i]=r),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,a=0;a<t;++a)s[(n=l[a]).i]=n.x(e);return s.join("")})}function zae(e,t){t||(t=[]);var n,a=e?Math.min(t.length,e.length):0,r=t.slice();return function(o){for(n=0;n<a;++n)r[n]=e[n]*(1-o)+t[n]*o;return r}}function Lae(e,t){var n,a=typeof t;return null==t||"boolean"===a?Aae(t):("number"===a?Oae:"string"===a?(n=cae(t))?(t=n,Nae):Bae:t instanceof cae?Nae:t instanceof Date?Fae:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?zae:Array.isArray(t)?Tae:"function"!==typeof t.valueOf&&"function"!==typeof t.toString||isNaN(t)?Iae:Oae)(e,t)}function Uae(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Vae(e){return+e}var qae=[0,1];function Hae(e){return e}function Wae(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function Kae(e,t,n){var a=e[0],r=e[1],o=t[0],i=t[1];return r<a?(a=Wae(r,a),o=n(i,o)):(a=Wae(a,r),o=n(o,i)),function(e){return o(a(e))}}function Yae(e,t,n){var a=Math.min(e.length,t.length)-1,r=new Array(a),o=new Array(a),i=-1;for(e[a]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++i<a;)r[i]=Wae(e[i],e[i+1]),o[i]=n(t[i],t[i+1]);return function(t){var n=Hne(e,t,1,a)-1;return o[n](r[n](t))}}function Gae(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Jae(){var e,t,n,a,r,o,i=qae,s=qae,l=Lae,c=Hae;function u(){var e=Math.min(i.length,s.length);return c!==Hae&&(c=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(i[0],i[e-1])),a=e>2?Yae:Kae,r=o=null,d}function d(t){return null==t||isNaN(t=+t)?n:(r||(r=a(i.map(e),s,l)))(e(c(t)))}return d.invert=function(n){return c(t((o||(o=a(s,i.map(e),Oae)))(n)))},d.domain=function(e){return arguments.length?(i=Array.from(e,Vae),u()):i.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),u()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=Uae,u()},d.clamp=function(e){return arguments.length?(c=!!e||Hae,u()):c!==Hae},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,a){return e=n,t=a,u()}}function $ae(){return Jae()(Hae,Hae)}var Qae,Xae=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Zae(e){if(!(t=Xae.exec(e)))throw new Error("invalid format: "+e);var t;return new ere({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]})}function ere(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function tre(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,a=e.slice(0,n);return[a.length>1?a[0]+a.slice(2):a,+e.slice(n+1)]}function nre(e){return(e=tre(Math.abs(e)))?e[1]:NaN}function are(e,t){var n=tre(e,t);if(!n)return e+"";var a=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+a:a.length>r+1?a.slice(0,r+1)+"."+a.slice(r+1):a+new Array(r-a.length+2).join("0")}Zae.prototype=ere.prototype,ere.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?""
vendor: 2,082 bytes, line 2
2:Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const rre={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>are(100*e,t),r:are,s:function(e,t){var n=tre(e,t);if(!n)return e+"";var a=n[0],r=n[1],o=r-(Qae=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,i=a.length;return o===i?a:o>i?a+new Array(o-i+1).join("0"):o>0?a.slice(0,o)+"."+a.slice(o):"0."+new Array(1-o).join("0")+tre(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function ore(e){return e}var ire,sre,lre,cre=Array.prototype.map,ure=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function dre(e){var t,n,a=void 0===e.grouping||void 0===e.thousands?ore:(t=cre.call(e.grouping,Number),n=e.thousands+"",function(e,a){for(var r=e.length,o=[],i=0,s=t[0],l=0;r>0&&s>0&&(l+s+1>a&&(s=Math.max(1,a-l)),o.push(e.substring(r-=s,r+s)),!((l+=s+1)>a));)s=t[i=(i+1)%t.length];return o.reverse().join(n)}),r=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",i=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?ore:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(cre.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"\u2212":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=Zae(e)).fill,n=e.align,d=e.sign,h=e.symbol,p=e.zero,f=e.width,m=e.comma,g=e.precision,v=e.trim,y=e.type;"n"===y?(m=!0,y="g"):rre[y]||(void 0===g&&(g=12),v=!0,y="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var w="$"===h?r:"#"===h&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",_="$"===h?o:/[%p]/.test(y)?l:"",x=rre[y],b=/[defgprs%]/.test(y);function k(e){var r,o,l,h=w,k=_;if("c"===y)k=x(e)+k,e="";else{var C=(e=+e)<0||1/e<0;
vendor: 4,428 bytes, line 2
2if(e=isNaN(e)?u:x(Math.abs(e),g),v&&(e=function(e){e:for(var t,n=e.length,a=1,r=-1;a<n;++a)switch(e[a]){case".":r=t=a;break;case"0":0===r&&(r=a),t=a;break;default:if(!+e[a])break e;r>0&&(r=0)}return r>0?e.slice(0,r)+e.slice(t+1):e}(e)),C&&0===+e&&"+"!==d&&(C=!1),h=(C?"("===d?d:c:"-"===d||"("===d?"":d)+h,k=("s"===y?ure[8+Qae/3]:"")+k+(C&&"("===d?")":""),b)for(r=-1,o=e.length;++r<o;)if(48>(l=e.charCodeAt(r))||l>57){k=(46===l?i+e.slice(r+1):e.slice(r))+k,e=e.slice(0,r);break}}m&&!p&&(e=a(e,1/0));var D=h.length+e.length+k.length,A=D<f?new Array(f-D+1).join(t):"";switch(m&&p&&(e=a(A+e,A.length?f-k.length:1/0),A=""),n){case"<":e=h+e+k+A;break;case"=":e=h+A+e+k;break;case"^":e=A.slice(0,D=A.length>>1)+h+e+k+A.slice(D);break;default:e=A+h+e+k}return s(e)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),k.toString=function(){return e+""},k}return{format:d,formatPrefix:function(e,t){var n=d(((e=Zae(e)).type="f",e)),a=3*Math.max(-8,Math.min(8,Math.floor(nre(t)/3))),r=Math.pow(10,-a),o=ure[8+a/3];return function(e){return n(r*e)+o}}}}function hre(e,t,n,a){var r,o=Rne(e,t,n);switch((a=Zae(null==a?",f":a)).type){case"s":var i=Math.max(Math.abs(e),Math.abs(t));return null!=a.precision||isNaN(r=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(nre(t)/3)))-nre(Math.abs(e)))}(o,i))||(a.precision=r),lre(a,i);case"":case"e":case"g":case"p":case"r":null!=a.precision||isNaN(r=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,nre(t)-nre(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(a.precision=r-("e"===a.type));break;case"f":case"%":null!=a.precision||isNaN(r=function(e){return Math.max(0,-nre(Math.abs(e)))}(o))||(a.precision=r-2*("%"===a.type))}return sre(a)}function pre(e){var t=e.domain;return e.ticks=function(e){var n=t();return One(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var a=t();return hre(a[0],a[a.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var a,r,o=t(),i=0,s=o.length-1,l=o[i],c=o[s],u=10;for(c<l&&(r=l,l=c,c=r,r=i,i=s,s=r);u-- >0;){if((r=Ine(l,c,n))===a)return o[i]=l,o[s]=c,t(o);if(r>0)l=Math.floor(l/r)*r,c=Math.ceil(c/r)*r;else{if(!(r<0))break;l=Math.ceil(l*r)/r,c=Math.floor(c*r)/r}a=r}return e},e}function fre(){var e=$ae();return e.copy=function(){return Gae(e,fre())},yne.apply(e,arguments),pre(e)}function mre(e){var t;function n(e){return null==e||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,Vae),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return mre(e).unknown(t)},e=arguments.length?Array.from(e,Vae):[0,1],pre(n)}function gre(e,t){var n,a=0,r=(e=e.slice()).length-1,o=e[a],i=e[r];return i<o&&(n=a,a=r,r=n,n=o,o=i,i=n),e[a]=t.floor(o),e[r]=t.ceil(i),e}function vre(e){return Math.log(e)}function yre(e){return Math.exp(e)}function wre(e){return-Math.log(-e)}function _re(e){return-Math.exp(-e)}function xre(e){return isFinite(e)?+("1e"+e):e<0?0:e}function bre(e){return(t,n)=>-e(-t,n)}function kre(e){const t=e(vre,yre),n=t.domain;let a,r,o=10;function i(){return a=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(o),r=function(e){return 10===e?xre:e===Math.E?Math.exp:t=>Math.pow(e,t)}(o),n()[0]<0?(a=bre(a),r=bre(r),e(wre,_re)):e(vre,yre),t}return t.base=function(e){return arguments.length?(o=+e,i()):o},t.domain=function(e){return arguments.length?(n(e),i()):n()},t.ticks=e=>{const t=n();let i=t[0],s=t[t.length-1];const l=s<i;l&&([i,s]=[s,i]);let c,u,d=a(i),h=a(s);const p=null==e?10:+e;let f=[];if(!(o%1)&&h-d<p){if(d=Math.floor(d),h=Math.ceil(h),i>0){for(;d<=h;++d)for(c=1;c<o;++c)if(u=d<0?c/r(-d):c*r(d),!(u<i)){if(u>s)break;f.push(u)}}else for(;d<=h;++d)for(c=o-1;c>=1;--c)if(u=d>0?c/r(-d):c*r(d),!(u<i)){if(u>s)break;f.push(u)}2*f.length<p&&(f=One(i,s,p))}else f=One(d,h,Math.min(h-d,p)).map(r);return l?f.reverse():f},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===o?"s":","),"function"!==typeof n&&(o%1||null!=(n=Zae(n)).precision||(n.trim=!0),n=sre(n)),e===1/0)return n;const i=Math.max(1,o*e/t.ticks().length);return e=>{let t=e/r(Math.round(a(e)));return t*o<o-.5&&(t*=o),t<=i?n(e):""}},t.nice=()=>n(gre(n(),{floor:e=>r(Math.floor(a(e))),ceil:e=>r(Math.ceil(a(e)))})),t}function Cre(){const e=kre(Jae()).domain([1,10]);return e.copy=()=>Gae(e,Cre()).base(e.base()),yne.apply(e,arguments),e}
vendor: 15,818 bytes, line 2
2function Dre(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Are(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Ere(e){var t=1,n=e(Dre(t),Are(t));return n.constant=function(n){return arguments.length?e(Dre(t=+n),Are(t)):t},pre(n)}function jre(){var e=Ere(Jae());return e.copy=function(){return Gae(e,jre()).constant(e.constant())},yne.apply(e,arguments)}function Sre(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Nre(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Pre(e){return e<0?-e*e:e*e}function Tre(e){var t=e(Hae,Hae),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(Hae,Hae):.5===n?e(Nre,Pre):e(Sre(n),Sre(1/n)):n},pre(t)}function Fre(){var e=Tre(Jae());return e.copy=function(){return Gae(e,Fre()).exponent(e.exponent())},yne.apply(e,arguments),e}function Ore(){return Fre.apply(null,arguments).exponent(.5)}function Ire(e){return Math.sign(e)*e*e}function Rre(){var e,t=$ae(),n=[0,1],a=!1;function r(n){var r=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(t(n));return isNaN(r)?e:a?Math.round(r):r}return r.invert=function(e){return t.invert(Ire(e))},r.domain=function(e){return arguments.length?(t.domain(e),r):t.domain()},r.range=function(e){return arguments.length?(t.range((n=Array.from(e,Vae)).map(Ire)),r):n.slice()},r.rangeRound=function(e){return r.range(e).round(!0)},r.round=function(e){return arguments.length?(a=!!e,r):a},r.clamp=function(e){return arguments.length?(t.clamp(e),r):t.clamp()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return Rre(t.domain(),n).round(a).clamp(t.clamp()).unknown(e)},yne.apply(r,arguments),pre(r)}function Mre(e,t){let n;if(void 0===t)for(const a of e)null!=a&&(n<a||void 0===n&&a>=a)&&(n=a);else{let a=-1;for(let r of e)null!=(r=t(r,++a,e))&&(n<r||void 0===n&&r>=r)&&(n=r)}return n}function Bre(e,t){let n;if(void 0===t)for(const a of e)null!=a&&(n>a||void 0===n&&a>=a)&&(n=a);else{let a=-1;for(let r of e)null!=(r=t(r,++a,e))&&(n>r||void 0===n&&r>=r)&&(n=r)}return n}function zre(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mne;if(e===Mne)return Lre;if("function"!==typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const a=e(t,n);return a||0===a?a:(0===e(n,n))-(0===e(t,t))}}function Lre(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}function Ure(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,r=arguments.length>4?arguments[4]:void 0;if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),a=Math.floor(Math.min(e.length-1,a)),!(n<=t&&t<=a))return e;for(r=void 0===r?Lre:zre(r);a>n;){if(a-n>600){const o=a-n+1,i=t-n+1,s=Math.log(o),l=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*l*(o-l)/o)*(i-o/2<0?-1:1);Ure(e,t,Math.max(n,Math.floor(t-i*l/o+c)),Math.min(a,Math.floor(t+(o-i)*l/o+c)),r)}const o=e[t];let i=n,s=a;for(Vre(e,n,t),r(e[a],o)>0&&Vre(e,n,a);i<s;){for(Vre(e,i,s),++i,--s;r(e[i],o)<0;)++i;for(;r(e[s],o)>0;)--s}0===r(e[n],o)?Vre(e,n,s):(++s,Vre(e,s,a)),s<=t&&(n=s+1),t<=s&&(a=s-1)}return e}function Vre(e,t,n){const a=e[t];e[t]=e[n],e[n]=a}function qre(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let n of e)null!=n&&(n=+n)>=n&&(yield n);else{let n=-1;for(let a of e)null!=(a=t(a,++n,e))&&(a=+a)>=a&&(yield a)}}(e,n)),(a=e.length)&&!isNaN(t=+t)){if(t<=0||a<2)return Bre(e);if(t>=1)return Mre(e);var a,r=(a-1)*t,o=Math.floor(r),i=Mre(Ure(e,o).subarray(0,o+1));return i+(Bre(e.subarray(o+1))-i)*(r-o)}}function Hre(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Une;if((a=e.length)&&!isNaN(t=+t)){if(t<=0||a<2)return+n(e[0],0,e);if(t>=1)return+n(e[a-1],a-1,e);var a,r=(a-1)*t,o=Math.floor(r),i=+n(e[o],o,e);return i+(+n(e[o+1],o+1,e)-i)*(r-o)}}function Wre(){var e,t=[],n=[],a=[];function r(){var e=0,r=Math.max(1,n.length);for(a=new Array(r-1);++e<r;)a[e-1]=Hre(t,e/r);return o}function o(t){return null==t||isNaN(t=+t)?e:n[Hne(a,t)]}return o.invertExtent=function(e){var r=n.indexOf(e);return r<0?[NaN,NaN]:[r>0?a[r-1]:t[0],r<a.length?a[r]:t[t.length-1]]},o.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(Mne),r()},o.range=function(e){return arguments.length?(n=Array.from(e),r()):n.slice()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.quantiles=function(){return a.slice()},o.copy=function(){return Wre().domain(t).range(n).unknown(e)},yne.apply(o,arguments)}function Kre(){var e,t=0,n=1,a=1,r=[.5],o=[0,1];function i(t){return null!=t&&t<=t?o[Hne(r,t,0,a)]:e}function s(){var e=-1;for(r=new Array(a);++e<a;)r[e]=((e+1)*n-(e-a)*t)/(a+1);return i}return i.domain=function(e){return arguments.length?([t,n]=e,t=+t,n=+n,s()):[t,n]},i.range=function(e){return arguments.length?(a=(o=Array.from(e)).length-1,s()):o.slice()},i.invertExtent=function(e){var i=o.indexOf(e);return i<0?[NaN,NaN]:i<1?[t,r[0]]:i>=a?[r[a-1],n]:[r[i-1],r[i]]},i.unknown=function(t){return arguments.length?(e=t,i):i},i.thresholds=function(){return r.slice()},i.copy=function(){return Kre().domain([t,n]).range(o).unknown(e)},yne.apply(pre(i),arguments)}function Yre(){var e,t=[.5],n=[0,1],a=1;function r(r){return null!=r&&r<=r?n[Hne(t,r,0,a)]:e}return r.domain=function(e){return arguments.length?(t=Array.from(e),a=Math.min(t.length,n.length-1),r):t.slice()},r.range=function(e){return arguments.length?(n=Array.from(e),a=Math.min(t.length,n.length-1),r):n.slice()},r.invertExtent=function(e){var a=n.indexOf(e);return[t[a-1],t[a]]},r.unknown=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return Yre().domain(t).range(n).unknown(e)},yne.apply(r,arguments)}!function(e){ire=dre(e),sre=ire.format,lre=ire.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});const Gre=1e3,Jre=6e4,$re=36e5,Qre=864e5,Xre=6048e5,Zre=2592e6,eoe=31536e6,toe=new Date,noe=new Date;function aoe(e,t,n,a){function r(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return r.floor=t=>(e(t=new Date(+t)),t),r.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),r.round=e=>{const t=r(e),n=r.ceil(e);return e-t<n-e?t:n},r.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),r.range=(n,a,o)=>{const i=[];if(n=r.ceil(n),o=null==o?1:Math.floor(o),!(n<a)||!(o>0))return i;let s;do{i.push(s=new Date(+n)),t(n,o),e(n)}while(s<n&&n<a);return i},r.filter=n=>aoe(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,a)=>{if(e>=e)if(a<0)for(;++a<=0;)for(;t(e,-1),!n(e););else for(;--a>=0;)for(;t(e,1),!n(e););}),n&&(r.count=(t,a)=>(toe.setTime(+t),noe.setTime(+a),e(toe),e(noe),Math.floor(n(toe,noe))),r.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?r.filter(a?t=>a(t)%e===0:t=>r.count(0,t)%e===0):r:null)),r}const roe=aoe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);roe.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?aoe(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):roe:null);roe.range;const ooe=aoe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Gre)},(e,t)=>(t-e)/Gre,e=>e.getUTCSeconds()),ioe=(ooe.range,aoe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Gre)},(e,t)=>{e.setTime(+e+t*Jre)},(e,t)=>(t-e)/Jre,e=>e.getMinutes())),soe=(ioe.range,aoe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Jre)},(e,t)=>(t-e)/Jre,e=>e.getUTCMinutes())),loe=(soe.range,aoe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Gre-e.getMinutes()*Jre)},(e,t)=>{e.setTime(+e+t*$re)},(e,t)=>(t-e)/$re,e=>e.getHours())),coe=(loe.range,aoe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*$re)},(e,t)=>(t-e)/$re,e=>e.getUTCHours())),uoe=(coe.range,aoe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Jre)/Qre,e=>e.getDate()-1)),doe=(uoe.range,aoe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Qre,e=>e.getUTCDate()-1)),hoe=(doe.range,aoe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Qre,e=>Math.floor(e/Qre)));hoe.range;function poe(e){return aoe(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Jre)/Xre)}const foe=poe(0),moe=poe(1),goe=poe(2),voe=poe(3),yoe=poe(4),woe=poe(5),_oe=poe(6);foe.range,moe.range,goe.range,voe.range,yoe.range,woe.range,_oe.range;function xoe(e){return aoe(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/Xre)}const boe=xoe(0),koe=xoe(1),Coe=xoe(2),Doe=xoe(3),Aoe=xoe(4),Eoe=xoe(5),joe=xoe(6),Soe=(boe.range,koe.range,Coe.range,Doe.range,Aoe.range,Eoe.range,joe.range,aoe(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear()),e=>e.getMonth())),Noe=(Soe.range,aoe(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear()),e=>e.getUTCMonth())),Poe=(Noe.range,aoe(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear()));Poe.every=e=>isFinite(e=Math.floor(e))&&e>0?aoe(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}):null;Poe.range;const Toe=aoe(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Toe.every=e=>isFinite(e=Math.floor(e))&&e>0?aoe(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null;Toe.range;function Foe(e,t,n,a,r,o){const i=[[ooe,1,Gre],[ooe,5,5e3],[ooe,15,15e3],[ooe,30,3e4],[o,1,Jre],[o,5,3e5],[o,15,9e5],[o,30,18e5],[r,1,$re],[r,3,108e5],[r,6,216e5],[r,12,432e5],[a,1,Qre],[a,2,1728e5],[n,1,Xre],[t,1,Zre],[t,3,7776e6],[e,1,eoe]];function s(t,n,a){const r=Math.abs(n-t)/a,o=zne(e=>{let[,,t]=e;return t}).right(i,r);if(o===i.length)return e.every(Rne(t/eoe,n/eoe,a));if(0===o)return roe.every(Math.max(Rne(t,n,a),1));const[s,l]=i[r/i[o-1][2]<i[o][2]/r?o-1:o];return s.every(l)}return[function(e,t,n){const a=t<e;a&&([e,t]=[t,e]);const r=n&&"function"===typeof n.range?n:s(e,t,n),o=r?r.range(e,+t+1):[];return a?o.reverse():o},s]}const[Ooe,Ioe]=Foe(Toe,Noe,boe,hoe,coe,soe),[Roe,Moe]=Foe(Poe,Soe,foe,uoe,loe,ioe);function Boe(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function zoe(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Loe(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var Uoe,Voe,qoe,Hoe={"-":"",_:" ",0:"0"},Woe=/^\s*\d+/,Koe=/^%/,Yoe=/[\\^$*+?|[\]().{}]/g;function Goe(e,t,n){var a=e<0?"-":"",r=(a?-e:e)+"",o=r.length;return a+(o<n?new Array(n-o+1).join(t)+r:r)}function Joe(e){return e.replace(Yoe,"\\$&")}function $oe(e){return new RegExp("^(?:"+e.map(Joe).join("|")+")","i")}function Qoe(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function Xoe(e,t,n){var a=Woe.exec(t.slice(n,n+1));return a?(e.w=+a[0],n+a[0].length):-1}function Zoe(e,t,n){var a=Woe.exec(t.slice(n,n+1));return a?(e.u=+a[0],n+a[0].length):-1}function eie(e,t,n){var a=Woe.exec(t.slice(n,n+2));return a?(e.U=+a[0],n+a[0].length):-1}function tie(e,t,n){var a=Woe.exec(t.slice(n,n+2));return a?(e.V=+a[0],n+a[0].length):-1}function nie(e,t,n){var a=Woe.exec(t.slice(n,n+2));return a?(e.W=+a[0],n+a[0].length):-1}function aie(e,t,n){var a=Woe.exec(t.slice(n,n+4));return a?(e.y=+a[0],n+a[0].length):-1}function rie(e,t,n){var a=Woe.exec(t.slice(n,n+2));return a?(e.y=+a[0]+(+a[0]>68?1900:2e3),n+a[0].length):-1}function oie(e,t,n){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return a?(e.Z=a[1]?0:-(a[2]+(a[3]||"00")),n+a[0].length):-1}function iie(e,t,n){var a=Woe.exec(t.slice(n,n+1));return a?(e.q=3*a[0]-3,n+a[0].length):-1}function sie(e,t,n){var a=Woe.exec(t.slice(n,n+2));return a?(e.m=a[0]-1,n+a[0].length):-1}function lie(e,t,n){var a=Woe.exec(t.slice(n,n+2));return a?(e.d=+a[0],n+a[0].length):-1}function cie(e,t,n){var a=Woe.exec(t.slice(n,n+3));return a?(e.m=0,e.d=+a[0],n+a[0].length):-1}function uie(e,t,n){var a=Woe.exec(t.slice(n,n+2));return a?(e.H=+a[0],n+a[0].length):-1}function die(e,t,n){var a=Woe.exec(t.slice(n,n+2));return a?(e.M=+a[0],n+a[0].length):-1}function hie(e,t,n){var a=Woe.exec(t.slice(n,n+2));return a?(e.S=+a[0],n+a[0].length):-1}function pie(e,t,n){var a=Woe.exec(t.slice(n,n+3));return a?(e.L=+a[0],n+a[0].length):-1}function fie(e,t,n){var a=Woe.exec(t.slice(n,n+6));return a?(e.L=Math.floor(a[0]/1e3),n+a[0].length):-1}function mie(e,t,n){var a=Koe.exec(t.slice(n,n+1));return a?n+a[0].length:-1}function gie(e,t,n){var a=Woe.exec(t.slice(n));return a?(e.Q=+a[0],n+a[0].length):-1}function vie(e,t,n){var a=Woe.exec(t.slice(n));return a?(e.s=+a[0],n+a[0].length):-1}function yie(e,t){return Goe(e.getDate(),t,2)}function wie(e,t){return Goe(e.getHours(),t,2)}function _ie(e,t){return Goe(e.getHours()%12||12,t,2)}function xie(e,t){return Goe(1+uoe.count(Poe(e),e),t,3)}function bie(e,t){return Goe(e.getMilliseconds(),t,3)}function kie(e,t){return bie(e,t)+"000"}function Cie(e,t){return Goe(e.getMonth()+1,t,2)}function Die(e,t){return Goe(e.getMinutes(),t,2)}function Aie(e,t){return Goe(e.getSeconds(),t,2)}function Eie(e){var t=e.getDay();return 0===t?7:t}function jie(e,t){return Goe(foe.count(Poe(e)-1,e),t,2)}function Sie(e){var t=e.getDay();return t>=4||0===t?yoe(e):yoe.ceil(e)}function Nie(e,t){return e=Sie(e),Goe(yoe.count(Poe(e),e)+(4===Poe(e).getDay()),t,2)}function Pie(e){return e.getDay()}function Tie(e,t){return Goe(moe.count(Poe(e)-1,e),t,2)}function Fie(e,t){return Goe(e.getFullYear()%100,t,2)}function Oie(e,t){return Goe((e=Sie(e)).getFullYear()%100,t,2)}function Iie(e,t){return Goe(e.getFullYear()%1e4,t,4)}function Rie(e,t){var n=e.getDay();return Goe((e=n>=4||0===n?yoe(e):yoe.ceil(e)).getFullYear()%1e4,t,4)}function Mie(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Goe(t/60|0,"0",2)+Goe(t%60,"0",2)}function Bie(e,t){return Goe(e.getUTCDate(),t,2)}function zie(e,t){return Goe(e.getUTCHours(),t,2)}function Lie(e,t){return Goe(e.getUTCHours()%12||12,t,2)}function Uie(e,t){return Goe(1+doe.count(Toe(e),e),t,3)}function Vie(e,t){return Goe(e.getUTCMilliseconds(),t,3)}function qie(e,t){return Vie(e,t)+"000"}function Hie(e,t){return Goe(e.getUTCMonth()+1,t,2)}function Wie(e,t){return Goe(e.getUTCMinutes(),t,2)}function Kie(e,t){return Goe(e.getUTCSeconds(),t,2)}function Yie(e){var t=e.getUTCDay();return 0===t?7:t}function Gie(e,t){return Goe(boe.count(Toe(e)-1,e),t,2)}function Jie(e){var t=e.getUTCDay();return t>=4||0===t?Aoe(e):Aoe.ceil(e)}function $ie(e,t){return e=Jie(e),Goe(Aoe.count(Toe(e),e)+(4===Toe(e).getUTCDay()),t,2)}function Qie(e){return e.getUTCDay()}function Xie(e,t){return Goe(koe.count(Toe(e)-1,e),t,2)}function Zie(e,t){return Goe(e.getUTCFullYear()%100,t,2)}function ese(e,t){return Goe((e=Jie(e)).getUTCFullYear()%100,t,2)}function tse(e,t){return Goe(e.getUTCFullYear()%1e4,t,4)}function nse(e,t){var n=e.getUTCDay();return Goe((e=n>=4||0===n?Aoe(e):Aoe.ceil(e)).getUTCFullYear()%1e4,t,4)}function ase(){return"+0000"}function rse(){return"%"}function ose(e){return+e}function ise(e){return Math.floor(+e/1e3)}function sse(e){return new Date(e)}function lse(e){return e instanceof Date?+e:+new Date(+e)}function cse(e,t,n,a,r,o,i,s,l,c){var u=$ae(),d=u.invert,h=u.domain,p=c(".%L"),f=c(":%S"),m=c("%I:%M"),g=c("%I %p"),v=c("%a %d"),y=c("%b %
2d"),w=c("%B"),_=c("%Y");function x(e){return(l(e)<e?p:s(e)<e?f:i(e)<e?m:o(e)<e?g:a(e)<e?r(e)<e?v:y:n(e)<e?w:_)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?h(Array.from(e,lse)):h().map(sse)},u.ticks=function(t){var n=h();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?x:c(t)},u.nice=function(e){var n=h();return e&&"function"===typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?h(gre(n,e)):u},u.copy=function(){return Gae(u,cse(e,t,n,a,r,o,i,s,l,c))},u}function use(){return yne.apply(cse(Roe,Moe,Poe,Soe,foe,uoe,loe,ioe,ooe,Voe).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function dse(){return yne.apply(cse(Ooe,Ioe,Toe,Noe,boe,doe,coe,soe,ooe,qoe).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function hse(){var e,t,n,a,r,o=0,i=1,s=Hae,l=!1;function c(t){return null==t||isNaN(t=+t)?r:s(0===n?.5:(t=(a(t)-e)*n,l?Math.max(0,Math.min(1,t)):t))}function u(e){return function(t){var n,a;return arguments.length?([n,a]=t,s=e(n,a),c):[s(0),s(1)]}}return c.domain=function(r){return arguments.length?([o,i]=r,e=a(o=+o),t=a(i=+i),n=e===t?0:1/(t-e),c):[o,i]},c.clamp=function(e){return arguments.length?(l=!!e,c):l},c.interpolator=function(e){return arguments.length?(s=e,c):s},c.range=u(Lae),c.rangeRound=u(Uae),c.unknown=function(e){return arguments.length?(r=e,c):r},function(r){return a=r,e=r(o),t=r(i),n=e===t?0:1/(t-e),c}}function pse(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function fse(){var e=pre(hse()(Hae));return e.copy=function(){return pse(e,fse())},wne.apply(e,arguments)}function mse(){var e=kre(hse()).domain([1,10]);return e.copy=function(){return pse(e,mse()).base(e.base())},wne.apply(e,arguments)}function gse(){var e=Ere(hse());return e.copy=function(){return pse(e,gse()).constant(e.constant())},wne.apply(e,arguments)}function vse(){var e=Tre(hse());return e.copy=function(){return pse(e,vse()).exponent(e.exponent())},wne.apply(e,arguments)}function yse(){return vse.apply(null,arguments).exponent(.5)}function wse(){var e=[],t=Hae;
vendor: 4,011 bytes, line 2
2function n(n){if(null!=n&&!isNaN(n=+n))return t((Hne(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(Mne),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map((n,a)=>t(a/(e.length-1)))},n.quantiles=function(t){return Array.from({length:t+1},(n,a)=>qre(e,a/t))},n.copy=function(){return wse(t).domain(e)},wne.apply(n,arguments)}function _se(){var e,t,n,a,r,o,i,s=0,l=.5,c=1,u=1,d=Hae,h=!1;function p(e){return isNaN(e=+e)?i:(e=.5+((e=+o(e))-t)*(u*e<u*t?a:r),d(h?Math.max(0,Math.min(1,e)):e))}function f(e){return function(t){var n,a,r;return arguments.length?([n,a,r]=t,d=function(e,t){void 0===t&&(t=e,e=Lae);for(var n=0,a=t.length-1,r=t[0],o=new Array(a<0?0:a);n<a;)o[n]=e(r,r=t[++n]);return function(e){var t=Math.max(0,Math.min(a-1,Math.floor(e*=a)));return o[t](e-t)}}(e,[n,a,r]),p):[d(0),d(.5),d(1)]}}return p.domain=function(i){return arguments.length?([s,l,c]=i,e=o(s=+s),t=o(l=+l),n=o(c=+c),a=e===t?0:.5/(t-e),r=t===n?0:.5/(n-t),u=t<e?-1:1,p):[s,l,c]},p.clamp=function(e){return arguments.length?(h=!!e,p):h},p.interpolator=function(e){return arguments.length?(d=e,p):d},p.range=f(Lae),p.rangeRound=f(Uae),p.unknown=function(e){return arguments.length?(i=e,p):i},function(i){return o=i,e=i(s),t=i(l),n=i(c),a=e===t?0:.5/(t-e),r=t===n?0:.5/(n-t),u=t<e?-1:1,p}}function xse(){var e=pre(_se()(Hae));return e.copy=function(){return pse(e,xse())},wne.apply(e,arguments)}function bse(){var e=kre(_se()).domain([.1,1,10]);return e.copy=function(){return pse(e,bse()).base(e.base())},wne.apply(e,arguments)}function kse(){var e=Ere(_se());return e.copy=function(){return pse(e,kse()).constant(e.constant())},wne.apply(e,arguments)}function Cse(){var e=Tre(_se());return e.copy=function(){return pse(e,Cse()).exponent(e.exponent())},wne.apply(e,arguments)}function Dse(){return Cse.apply(null,arguments).exponent(.5)}!function(e){Uoe=function(e){var t=e.dateTime,n=e.date,a=e.time,r=e.periods,o=e.days,i=e.shortDays,s=e.months,l=e.shortMonths,c=$oe(r),u=Qoe(r),d=$oe(o),h=Qoe(o),p=$oe(i),f=Qoe(i),m=$oe(s),g=Qoe(s),v=$oe(l),y=Qoe(l),w={a:function(e){return i[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:yie,e:yie,f:kie,g:Oie,G:Rie,H:wie,I:_ie,j:xie,L:bie,m:Cie,M:Die,p:function(e){return r[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:ose,s:ise,S:Aie,u:Eie,U:jie,V:Nie,w:Pie,W:Tie,x:null,X:null,y:Fie,Y:Iie,Z:Mie,"%":rse},_={a:function(e){return i[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:Bie,e:Bie,f:qie,g:ese,G:nse,H:zie,I:Lie,j:Uie,L:Vie,m:Hie,M:Wie,p:function(e){return r[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:ose,s:ise,S:Kie,u:Yie,U:Gie,V:$ie,w:Qie,W:Xie,x:null,X:null,y:Zie,Y:tse,Z:ase,"%":rse},x={a:function(e,t,n){var a=p.exec(t.slice(n));return a?(e.w=f.get(a[0].toLowerCase()),n+a[0].length):-1},A:function(e,t,n){var a=d.exec(t.slice(n));return a?(e.w=h.get(a[0].toLowerCase()),n+a[0].length):-1},b:function(e,t,n){var a=v.exec(t.slice(n));return a?(e.m=y.get(a[0].toLowerCase()),n+a[0].length):-1},B:function(e,t,n){var a=m.exec(t.slice(n));return a?(e.m=g.get(a[0].toLowerCase()),n+a[0].length):-1},c:function(e,n,a){return C(e,t,n,a)},d:lie,e:lie,f:fie,g:rie,G:aie,H:uie,I:uie,j:cie,L:pie,m:sie,M:die,p:function(e,t,n){var a=c.exec(t.slice(n));return a?(e.p=u.get(a[0].toLowerCase()),n+a[0].length):-1},q:iie,Q:gie,s:vie,S:hie,u:Zoe,U:eie,V:tie,w:Xoe,W:nie,x:function(e,t,a){return C(e,n,t,a)},X:function(e,t,n){return C(e,a,t,n)},y:rie,Y:aie,Z:oie,"%":mie};function b(e,t){return function(n){var a,r,o,i=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(i.push(e.slice(l,s)),null!=(r=Hoe[a=e.charAt(++s)])?a=e.charAt(++s):r="e"===a?" ":"0",(o=t[a])&&
2(a=o(n,r)),i.push(a),l=s+1);return i.push(e.slice(l,s)),i.join("")}}function k(e,t){return function(n){var a,r,o=Loe(1900,void 0,1);if(C(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=(a=zoe(Loe(o.y,0,1))).getUTCDay(),a=r>4||0===r?koe.ceil(a):koe(a),a=doe.offset(a,7*(o.V-1)),o.y=a.getUTCFullYear(),o.m=a.getUTCMonth(),o.d=a.getUTCDate()+(o.w+6)%7):(r=(a=Boe(Loe(o.y,0,1))).getDay(),a=r>4||0===r?moe.ceil(a):moe(a),a=uoe.offset(a,7*(o.V-1)),o.y=a.getFullYear(),o.m=a.getMonth(),o.d=a.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),r="Z"in o?zoe(Loe(o.y,0,1)).getUTCDay():Boe(Loe(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(r+5)%7:o.w+7*o.U-(r+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,zoe(o)):Boe(o)}}function C(e,t,n,a){for(var r,o,i=0,s=t.length,l=n.length;i<s;){if(a>=l)return-1;if(37===(r=t.charCodeAt(i++))){if(r=t.charAt(i++),!(o=x[r in Hoe?t.charAt(i++):r])||(a=o(e,n,a))<0)return-1}else if(r!=n.charCodeAt(a++))return-1}return a}return w.x=b(n,w),w.X=b(a,w),w.c=b(t,w),_.x=b(n,_),_.X=b(a,_),_.c=b(t,_),{format:function(e){var t=b(e+="",w);return t.toString=function(){return e},t},parse:function(e){var t=k(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=b(e+="",_);return t.toString=function(){return e},t},utcParse:function(e){var t=k(e+="",!0);return t.toString=function(){return e},t}}}(e),Voe=Uoe.format,Uoe.parse,qoe=Uoe.utcFormat,Uoe.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Ase=e=>e.chartData,Ese=ate([Ase],e=>{var t=null!=e.chartData?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),jse=(e,t,n,a)=>a?Ese(e):Ase(e),Sse=(e,t,n)=>n?Ese(e):Ase(e);function Nse(e){if(Array.isArray(e)&&2===e.length){var[t,n]=e;if(L6(t)&&L6(n))return!0}return!1}function Pse(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function Tse(e,t){if(t&&"function"!==typeof e&&Array.isArray(e)&&2===e.length){var n,a,[r,o]=e;if(L6(r))n=r;else if("function"===typeof r)return;if(L6(o))a=o;else if("function"===typeof o)return;var i=[n,a];if(Nse(i))return i}}var Fse,Ose=n(8210),Ise=n.n(Ose),Rse=e=>e,Mse={"@@functional/placeholder":!0},Bse=e=>e===Mse,zse=e=>function t(){return 0===arguments.length||1===arguments.length&&Bse(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},Lse=(e,t)=>1===e?t:zse(function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];var o=a.filter(e=>e!==Mse).length;return o>=e?t(...a):Lse(e-o,zse(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=a.map(e=>Bse(e)?n.shift():e);return t(...o,...n)}))}),Use=(e,t)=>{for(var n=[],a=e;a<t;++a)n[a-e]=a;return n},Vse=Lse((Fse=(e,t)=>Array.isArray(t)?t.map(e):Object.keys(t).map(e=>t[e]).map(e)).length,Fse);function qse(e){return 0===e?1:Math.floor(new(Ise())(e).abs().log(10).toNumber())+1}function Hse(e,t,n){for(var a=new(Ise())(e),r=0,o=[];a.lt(t)&&r<1e5;)o.push(a.toNumber()),a=a.add(n),r++;return o}var Wse=e=>{var[t,n]=e,[a,r]=[t,n];return t>n&&([a,r]=[n,t]),[a,r]},Kse=(e,t,n)=>{if(e.lte(0))return new(Ise())(0);var a=qse(e.toNumber()),r=new(Ise())(10).pow(a),o=e.div(r),i=1!==a?.05:.1,s=new(Ise())(Math.ceil(o.div(i).toNumber())).add(n).mul(i).mul(r);return t?new(Ise())(s.toNumber()):new(Ise())(Math.ceil(s.toNumber()))},Yse=(e,t,n)=>{var a=new(Ise())(1),r=new(Ise())(e);if(!r.isint()&&n){var o=Math.abs(e);o<1?(a=new(Ise())(10).pow(qse(e)-1),r=new(Ise())(Math.floor(r.div(a).toNumber())).mul(a)):o>1&&(r=new(Ise())(Math.floor(e)))}else 0===e?r=new(Ise())(Math.floor((t-1)/2)):n||(r=new(Ise())(Math.floor(e)));var i=Math.floor((t-1)/2),s=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return Rse;var a=t.reverse(),r=a[0],o=a.slice(1);return function(){return o.reduce((e,t)=>
2t(e),r(...arguments))}}(Vse(e=>r.add(new(Ise())(e-i).mul(a)).toNumber()),Use);return s(0,t)},Gse=function(e,t,n,a){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new(Ise())(0),tickMin:new(Ise())(0),tickMax:new(Ise())(0)};var o,i=Kse(new(Ise())(t).sub(e).div(n-1),a,r);o=e<=0&&t>=0?new(Ise())(0):(o=new(Ise())(e).add(t).div(2)).sub(new(Ise())(o).mod(i));var s=Math.ceil(o.sub(e).div(i).toNumber()),l=Math.ceil(new(Ise())(t).sub(o).div(i).toNumber()),c=s+l+1;return c>n?Gse(e,t,n,a,r+1):(c<n&&(l=t>0?l+(n-c):l,s=t>0?s:s+(n-c)),{step:i,tickMin:o.sub(new(Ise())(s).mul(i)),tickMax:o.add(new(Ise())(l).mul(i))})},Jse=e=>e.rootProps.maxBarSize,$se=e=>e.rootProps.barCategoryGap,Qse=e=>e.rootProps.stackOffset,Xse=e=>e.rootProps.reverseStackOrder,Zse=e=>e.options.chartName,ele=e=>e.rootProps.syncId,tle=e=>e.rootProps.syncMethod,nle=e=>e.options.eventEmitter;function ale(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function rle(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ale(Object(n),!0).forEach(function(t){ole(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ale(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ole(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ile=Math.PI/180,sle=e=>180*e/Math.PI,lle=(e,t,n,a)=>({x:e+Math.cos(-ile*a)*n,y:t+Math.sin(-ile*a)*n}),cle=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0,width:0,height:0,brushBottom:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},ule=(e,t)=>{var{x:n,y:a}=e,{cx:r,cy:o}=t,i=((e,t)=>{var{x:n,y:a}=e,{x:r,y:o}=t;return Math.sqrt((n-r)**2+(a-o)**2)})({x:n,y:a},{x:r,y:o});if(i<=0)return{radius:i,angle:0};var s=(n-r)/i,l=Math.acos(s);return a>o&&(l=2*Math.PI-l),{radius:i,angle:sle(l),angleInRadian:l}},dle=(e,t)=>{var{startAngle:n,endAngle:a}=t,r=Math.floor(n/360),o=Math.floor(a/360);return e+360*Math.min(r,o)},hle=(e,t)=>{var{chartX:n,chartY:a}=e,{radius:r,angle:o}=ule({x:n,y:a},t),{innerRadius:i,outerRadius:s}=t;if(r<i||r>s)return null;if(0===r)return null;var l,{startAngle:c,endAngle:u}=(e=>{var{startAngle:t,endAngle:n}=e,a=Math.floor(t/360),r=Math.floor(n/360),o=Math.min(a,r);return{startAngle:t-360*o,endAngle:n-360*o}})(t),d=o;if(c<=u){for(;d>u;)d-=360;for(;d<c;)d+=360;l=d>=c&&d<=u}else{for(;d>c;)d-=360;for(;d<u;)d+=360;l=d>=u&&d<=c}return l?rle(rle({},t),{},{radius:r,angle:dle(d,t)}):null},ple={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},fle=!0,mle=0,gle=!1,vle="auto",yle=!0,wle="category",_le=(ple.axis,!1),xle=!0,ble=0,kle="auto",Cle=!0,Dle=5,Ale="number",Ele=(ple.axis,(e,t)=>{if(e&&t)return null!==e&&void 0!==e&&e.reversed?[t[1],t[0]]:t}),jle={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:mle,includeHidden:!1,name:void 0,reversed:gle,scale:vle,tick:yle,tickCount:void 0,ticks:void 0,type:wle,unit:void 0},Sle={allowDataOverflow:_le,allowDecimals:!1,allowDuplicatedCategory:xle,dataKey:void 0,domain:void 0,id:ble,includeHidden:!1,name:void 0,reversed:!1,scale:kle,tick:Cle,tickCount:Dle,ticks:void 0,type:Ale,unit:void 0},Nle={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:fle,dataKey:void 0,domain:void 0,id:mle,includeHidden:!1,name:void 0,reversed:!1,scale:vle,tick:yle,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},Ple={allowDataOverflow:_le,allowDecimals:!1,allowDuplicatedCategory:xle,dataKey:void 0,domain:void 0,id:ble,includeHidden:!1,name:void 0,reversed:!1,scale:kle,tick:Cle,tickCount:Dle,ticks:void 0,type:"category",unit:void 0},Tle=(e,t)=>
2null!=e.polarAxis.angleAxis[t]?e.polarAxis.angleAxis[t]:"radial"===e.layout.layoutType?Nle:jle,Fle=(e,t)=>null!=e.polarAxis.radiusAxis[t]?e.polarAxis.radiusAxis[t]:"radial"===e.layout.layoutType?Ple:Sle,Ole=e=>e.polarOptions,Ile=ate([qte,Hte,ene],cle),Rle=ate([Ole,Ile],(e,t)=>{if(null!=e)return D6(e.innerRadius,t,0)}),Mle=ate([Ole,Ile],(e,t)=>{if(null!=e)return D6(e.outerRadius,t,.8*t)}),Ble=ate([Ole],e=>{if(null==e)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]}),zle=(ate([Tle,Ble],Ele),ate([Ile,Rle,Mle],(e,t,n)=>{if(null!=e&&null!=t&&null!=n)return[t,n]})),Lle=(ate([Fle,zle],Ele),ate([pne,Ole,Rle,Mle,qte,Hte],(e,t,n,a,r,o)=>{if(("centric"===e||"radial"===e)&&null!=t&&null!=n&&null!=a){var{cx:i,cy:s,startAngle:l,endAngle:c}=t;return{cx:D6(i,r,r/2),cy:D6(s,o,o/2),innerRadius:n,outerRadius:a,startAngle:l,endAngle:c,clockWise:!1}}})),Ule=(e,t)=>t,Vle=(e,t,n)=>n;function qle(e){return null===e||void 0===e?void 0:e.id}function Hle(e,t,n){var{chartData:a=[]}=t,{allowDuplicatedCategory:r,dataKey:o}=n,i=new Map;return e.forEach(e=>{var t,n=null!==(t=e.data)&&void 0!==t?t:a;if(null!=n&&0!==n.length){var s=qle(e);n.forEach((t,n)=>{var a,l=null==o||r?n:String(Ete(t,o,null)),c=Ete(t,e.dataKey,0);a=i.has(l)?i.get(l):{},Object.assign(a,{[s]:c}),i.set(l,a)})}}),Array.from(i.values())}function Wle(e){return"stackId"in e&&null!=e.stackId&&null!=e.dataKey}var Kle=(e,t)=>e===t||null!=e&&null!=t&&(e[0]===t[0]&&e[1]===t[1]);function Yle(e,t){return!(!Array.isArray(e)||!Array.isArray(t)||0!==e.length||0!==t.length)||e===t}var Gle=e=>{var t=pne(e);return"horizontal"===t?"xAxis":"vertical"===t?"yAxis":"centric"===t?"angleAxis":"radiusAxis"},Jle=e=>e.tooltip.settings.axisId;function $le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Qle(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$le(Object(n),!0).forEach(function(t){Xle(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$le(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xle(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zle=[0,"auto"],ece={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},tce=(e,t)=>e.cartesianAxis.xAxis[t],nce=(e,t)=>{var n=tce(e,t);return null==n?ece:n},ace={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:Zle,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:60},rce=(e,t)=>e.cartesianAxis.yAxis[t],oce=(e,t)=>{var n=rce(e,t);return null==n?ace:n},ice={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},sce=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return null==n?ice:n},lce=(e,t,n)=>{switch(t){case"xAxis":return nce(e,n);case"yAxis":return oce(e,n);case"zAxis":return sce(e,n);case"angleAxis":return Tle(e,n);case"radiusAxis":return Fle(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},cce=(e,t,n)=>{switch(t){case"xAxis":return nce(e,n);case"yAxis":return oce(e,n);case"angleAxis":return Tle(e,n);case"radiusAxis":return Fle(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},uce=e=>e.graphicalItems.cartesianItems.some(e=>"bar"===e.type)||e.graphicalItems.polarItems.some(e=>"radialBar"===e.type);function dce(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var hce=e=>e.graphicalItems.cartesianItems,pce=ate([Ule,Vle],dce),fce=(e,t,n)=>e.filter(n).filter(e=>!0===(null===t||void 0===t?void 0:t.includeHidden)||!e.hide),mce=ate([hce,lce,pce],fce,{memoizeOptions:{resultEqualityCheck:Yle}}),gce=ate([mce],e=>e.filter(e=>"area"===e.type||"bar"===e.type).filter(Wle)),vce=e=>e.filter(e=>!("stackId"in e)||void 0===e.stackId),yce=ate([mce],vce),wce=e=>e.map(e=>
2e.data).filter(Boolean).flat(1),_ce=ate([mce],wce,{memoizeOptions:{resultEqualityCheck:Yle}}),xce=(e,t)=>{var{chartData:n=[],dataStartIndex:a,dataEndIndex:r}=t;return e.length>0?e:n.slice(a,r+1)},bce=ate([_ce,jse],xce),kce=(e,t,n)=>null!=(null===t||void 0===t?void 0:t.dataKey)?e.map(e=>({value:Ete(e,t.dataKey)})):n.length>0?n.map(e=>e.dataKey).flatMap(t=>e.map(e=>({value:Ete(e,t)}))):e.map(e=>({value:e})),Cce=ate([bce,lce,mce],kce);function Dce(e,t){switch(e){case"xAxis":return"x"===t.direction;case"yAxis":return"y"===t.direction;default:return!1}}function Ace(e){if(b6(e)||e instanceof Date){var t=Number(e);if(L6(t))return t}}function Ece(e){if(Array.isArray(e)){var t=[Ace(e[0]),Ace(e[1])];return Nse(t)?t:void 0}var n=Ace(e);if(null!=n)return[n,n]}function jce(e){return e.map(Ace).filter(P6)}var Sce=e=>{var t=Gle(e),n=Jle(e);return cce(e,t,n)},Nce=ate([Sce],e=>null===e||void 0===e?void 0:e.dataKey),Pce=ate([gce,jse,Sce],Hle),Tce=(e,t,n,a)=>{var r=t.reduce((e,t)=>{if(null==t.stackId)return e;var n=e[t.stackId];return null==n&&(n=[]),n.push(t),e[t.stackId]=n,e},{});return Object.fromEntries(Object.entries(r).map(t=>{var[r,o]=t,i=a?[...o].reverse():o,s=i.map(qle);return[r,{stackedData:Fte(e,s,n),graphicalItems:i}]}))},Fce=ate([Pce,gce,Qse,Xse],Tce),Oce=(e,t,n,a)=>{var{dataStartIndex:r,dataEndIndex:o}=t;if(null==a&&"zAxis"!==n){var i=Mte(e,r,o);if(null==i||0!==i[0]||0!==i[1])return i}},Ice=ate([lce],e=>e.allowDataOverflow),Rce=e=>{var t;if(null==e||!("domain"in e))return Zle;if(null!=e.domain)return e.domain;if("ticks"in e&&null!=e.ticks){if("number"===e.type){var n=jce(e.ticks);return[Math.min(...n),Math.max(...n)]}if("category"===e.type)return e.ticks.map(String)}return null!==(t=null===e||void 0===e?void 0:e.domain)&&void 0!==t?t:Zle},Mce=ate([lce],Rce),Bce=ate([Mce,Ice],Tse),zce=ate([Fce,Ase,Ule,Bce],Oce,{memoizeOptions:{resultEqualityCheck:Kle}}),Lce=e=>e.errorBars,Uce=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=t.filter(Boolean);if(0!==a.length){var r=a.flat();return[Math.min(...r),Math.max(...r)]}},Vce=(e,t,n,a,r)=>{var o,i;if(n.length>0&&e.forEach(e=>{n.forEach(n=>{var s,l,c=null===(s=a[n.id])||void 0===s?void 0:s.filter(e=>Dce(r,e)),u=Ete(e,null!==(l=t.dataKey)&&void 0!==l?l:n.dataKey),d=function(e,t,n){return!n||"number"!==typeof t||w6(t)?[]:n.length?jce(n.flatMap(n=>{var a,r,o=Ete(e,n.dataKey);if(Array.isArray(o)?[a,r]=o:a=r=o,L6(a)&&L6(r))return[t-a,t+r]})):[]}(e,u,c);if(d.length>=2){var h=Math.min(...d),p=Math.max(...d);(null==o||h<o)&&(o=h),(null==i||p>i)&&(i=p)}var f=Ece(u);null!=f&&(o=null==o?f[0]:Math.min(o,f[0]),i=null==i?f[1]:Math.max(i,f[1]))})}),null!=(null===t||void 0===t?void 0:t.dataKey)&&e.forEach(e=>{var n=Ece(Ete(e,t.dataKey));null!=n&&(o=null==o?n[0]:Math.min(o,n[0]),i=null==i?n[1]:Math.max(i,n[1]))}),L6(o)&&L6(i))return[o,i]},qce=ate([bce,lce,yce,Lce,Ule],Vce,{memoizeOptions:{resultEqualityCheck:Kle}});function Hce(e){var{value:t}=e;if(b6(t)||t instanceof Date)return t}var Wce=e=>e.referenceElements.dots,Kce=(e,t,n)=>e.filter(e=>"extendDomain"===e.ifOverflow).filter(e=>"xAxis"===t?e.xAxisId===n:e.yAxisId===n),Yce=ate([Wce,Ule,Vle],Kce),Gce=e=>e.referenceElements.areas,Jce=ate([Gce,Ule,Vle],Kce),$ce=e=>e.referenceElements.lines,Qce=ate([$ce,Ule,Vle],Kce),Xce=(e,t)=>{if(null!=e){var n=jce(e.map(e=>"xAxis"===t?e.x:e.y));if(0!==n.length)return[Math.min(...n),Math.max(...n)]}},Zce=ate(Yce,Ule,Xce),eue=(e,t)=>{if(null!=e){var n=jce(e.flatMap(e=>["xAxis"===t?e.x1:e.y1,"xAxis"===t?e.x2:e.y2]));if(0!==n.length)return[Math.min(...n),Math.max(...n)]}},tue=ate([Jce,Ule],eue);var nue=(e,t)=>{if(null!=e){var n=e.flatMap(e=>"xAxis"===t?function(e){var t;if(null!=e.x)return jce([e.x]);var n=null===(t=e.segment)||void 0===t?void 0:t.map(e=>e.x);return null==n||0===n.length?[]:jce(n)}(e):function(e){var t;if(null!=e.y)return jce([e.y]);var n=null===(t=e.segment)||void 0===t?void 0:t.map(e=>e.y);return null==n||0===n.length?[]:jce(n)}(e));if(0!==n.length)return[Math.min(...n),Math.max(...n)]}},aue=ate([Qce,Ule],nue),rue=ate(Zce,aue,tue,(e,t,n)=>Uce(e,n,t)),oue=(e,t,n,a,r,o,i,s)=>null!=n?n:function(e,t,n){if(n||null!=t){if("function"===typeof e&&null!=t)try{var a=e(t,n);if(Nse(a))return Pse(a,t,n)}catch(p){}if(Array.isArray(e)&&2===e.length){var r,o,[i,s]=e;if("auto"===i)null!=t&&(r=Math.min(...t));else if(x6(i))r=i;else if("function"===typeof i)try{null!=t&&(r=i(null===t||void 0===t?void 0:t[0]))}catch(f){}else if("string"===typeof i&&Bte.test(i)){var l=Bte.exec(i);if(null==l||null==l[1]||null==t)r=void 0;else{var c=+l[1];r=t[0]-c}}else r=null===t||void 0===t?void 0:t[0];if("auto"===s)null!=t&&(o=Math.max(...t));else if(x6(s))o=s;else if("function"===typeof s)try{null!=t&&(o=s(null===t||void 0===t?void 0:t[1]))}catch(m){}else if("string"===typeof s&&zte.test(s)){var u=zte.exec(s);if(null==u||null==u[1]||null==t)o=void 0;else{var d=+u[1];o=t[1]+d}}else o=null===t||void 0===t?void 0:t[1];var h=[r,o];if(Nse(h))return null==t?h:Pse(h,t,n)}}}(t,"vertical"===i&&"xAxis"===s||"horizontal"===i&&"yAxis"===s?Uce(a,o,r):Uce(o,r),e.allowDataOverflow),iue=ate([lce,Mce,Bce,zce,qce,rue,pne,Ule],oue,{memoizeOptions:{resultEqualityCheck:Kle}}),sue=[0,1],lue=(e,t,n,a,r,o,i)=>{if(null!=e&&null!=n&&0!==n.length||void 0!==i){var s,{dataKey:l,type:c}=e,u=jte(t,o);return u&&null==l?vne()(0,null!==(s=null===n||void 0===n?void 0:n.length)&&void 0!==s?s:0):"category"===c?((e,t,n
2)=>{var a=e.map(Hce).filter(e=>null!=e);return n&&(null==t.dataKey||t.allowDuplicatedCategory&&A6(a))?vne()(0,e.length):t.allowDuplicatedCategory?a:Array.from(new Set(a))})(a,e,u):"expand"===r?sue:i}},cue=ate([lce,pne,bce,Cce,Qse,Ule,iue],lue),uue=(e,t,n,a,o)=>{if(null!=e){var{scale:i,type:s}=e;if("auto"===i)return"radial"===t&&"radiusAxis"===o?"band":"radial"===t&&"angleAxis"===o?"linear":"category"===s&&a&&(a.indexOf("LineChart")>=0||a.indexOf("AreaChart")>=0||a.indexOf("ComposedChart")>=0&&!n)?"point":"category"===s?"band":"linear";if("string"===typeof i){var l="scale".concat(N6(i));return l in r?l:"point"}}},due=ate([lce,pne,uce,Zse,Ule],uue);function hue(e,t,n,a){if(null!=n&&null!=a){if("function"===typeof e.scale)return e.scale.copy().domain(n).range(a);var o=function(e){if(null!=e){if(e in r)return r[e]();var t="scale".concat(N6(e));return t in r?r[t]():void 0}}(t);if(null!=o){var i=o.domain(n).range(a);return(e=>{var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,a=e.range(),r=Math.min(a[0],a[1])-Pte,o=Math.max(a[0],a[1])+Pte,i=e(t[0]),s=e(t[n-1]);(i<r||i>o||s<r||s>o)&&e.domain([t[0],t[n-1]])}})(i),i}}}
2var pue=(e,t,n)=>{var a=Rce(t);if("auto"===n||"linear"===n)return null!=t&&t.tickCount&&Array.isArray(a)&&("auto"===a[0]||"auto"===a[1])&&Nse(e)?function(e){var[t,n]=e,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=Math.max(a,2),[i,s]=Wse([t,n]);if(i===-1/0||s===1/0){var l=s===1/0?[i,...Use(0,a-1).map(()=>1/0)]:[...Use(0,a-1).map(()=>-1/0),s];return t>n?l.reverse():l}if(i===s)return Yse(i,a,r);var{step:c,tickMin:u,tickMax:d}=Gse(i,s,o,r,0),h=Hse(u,d.add(new(Ise())(.1).mul(c)),c);return t>n?h.reverse():h}(e,t.tickCount,t.allowDecimals):null!=t&&t.tickCount&&"number"===t.type&&Nse(e)?function(e,t){var[n,a]=e,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],[o,i]=Wse([n,a]);if(o===-1/0||i===1/0)return[n,a];if(o===i)return[o];var s=Math.max(t,2),l=Kse(new(Ise())(i).sub(o).div(s-1),r,0),c=[...Hse(new(Ise())(o),new(Ise())(i),l),i];return!1===r&&(c=c.map(e=>Math.round(e))),n>a?c.reverse():c}(e,t.tickCount,t.allowDecimals):void 0},fue=ate([cue,cce,due],pue),mue=(e,t,n,a)=>{if("angleAxis"!==a&&"number"===(null===e||void 0===e?void 0:e.type)&&Nse(t)&&Array.isArray(n)&&n.length>0){var r=t[0],o=n[0],i=t[1],s=n[n.length-1];return[Math.min(r,o),Math.max(i,s)]}return t},gue=ate([lce,cue,fue,Ule],mue),vue=ate(Cce,lce,(e,t)=>{if(t&&"number"===t.type){var n=1/0,a=Array.from(jce(e.map(e=>e.value))).sort((e,t)=>e-t),r=a[0],o=a[a.length-1];if(null==r||null==o)return 1/0;var i=o-r;if(0===i)return 1/0;for(var s=0;s<a.length-1;s++){var l=a[s],c=a[s+1];if(null!=l&&null!=c){var u=c-l;n=Math.min(n,u)}}return n/i}}),yue=ate(vue,pne,$se,ene,(e,t,n,a,r)=>r,(e,t,n,a,r)=>{if(!L6(e))return 0;var o="vertical"===t?a.height:a.width;if("gap"===r)return e*o/2;if("no-gap"===r){var i=D6(n,e*o),s=e*o/2;return s-i-(s-i)/o*i}return 0}),wue=ate(nce,(e,t,n)=>{var a=nce(e,t);return null==a||"string"!==typeof a.padding?0:yue(e,"xAxis",t,n,a.padding)},(e,t)=>{var n,a;if(null==e)return{left:0,right:0};var{padding:r}=e;return"string"===typeof r?{left:t,right:t}:{left:(null!==(n=r.left)&&void 0!==n?n:0)+t,right:(null!==(a=r.right)&&void 0!==a?a:0)+t}}),_ue=ate(oce,(e,t,n)=>{var a=oce(e,t);return null==a||"string"!==typeof a.padding?0:yue(e,"yAxis",t,n,a.padding)},(e,t)=>{var n,a;if(null==e)return{top:0,bottom:0};var{padding:r}=e;return"string"===typeof r?{top:t,bottom:t}:{top:(null!==(n=r.top)&&void 0!==n?n:0)+t,bottom:(null!==(a=r.bottom)&&void 0!==a?a:0)+t}}),xue=ate([ene,wue,ine,one,(e,t,n)=>n],(e,t,n,a,r)=>{var{padding:o}=a;return r?[o.left,n.width-o.right]:[e.left+t.left,e.left+e.width-t.right]}),bue=ate([ene,pne,_ue,ine,one,(e,t,n)=>n],(e,t,n,a,r,o)=>{var{padding:i}=r;return o?[a.height-i.bottom,i.top]:"horizontal"===t?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),kue=(e,t,n,a)=>{var r;switch(t){case"xAxis":return xue(e,n,a);case"yAxis":return bue(e,n,a);case"zAxis":return null===(r=sce(e,n))||void 0===r?void 0:r.range;case"angleAxis":return Ble(e);case"radiusAxis":return zle(e,n);default:return}},Cue=ate([lce,kue],Ele),Due=ate([lce,due,gue,Cue],hue);ate([mce,Lce,Ule],(e,t,n)=>e.flatMap(e=>t[e.id]).filter(Boolean).filter(e=>Dce(n,e)));function Aue(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var Eue=(e,t)=>t,jue=(e,t,n)=>n,Sue=ate(Yte,Eue,jue,(e,t,n)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===n).sort(Aue)),Nue=ate(Gte,Eue,jue,(e,t,n)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===n).sort(Aue)),Pue=(e,t)=>({width:e.width,height:t.height}),Tue=ate(ene,nce,Pue),Fue=ate(Hte,ene,Sue,Eue,jue,(e,t,n,a,r)=>{var o,i={};return n.forEach(n=>{var s=Pue(t,n);null==o&&(o=((e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}})(t,a,e));var l="top"===a&&!r||"bottom"===a&&r;i[n.id]=o-Number(l)*s.height,o+=(l?-1:1)*s.height}),i}),Oue=ate(qte,ene,Nue,Eue,jue,(e,t,n,a,r)=>{var o,i={};return n.forEach(n=>{var s=((e,t)=>({width:"number"===typeof t.width?t.width:60,height:e.height}))(t,n);null==o&&(o=((e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}})(t,a,e));var l="left"===a&&!r||"right"===a&&r;i[n.id]=o-Number(l)*s.width,o+=(l?-1:1)*s.width}),i}),Iue=ate([ene,nce,(e,t)=>{var n=nce(e,t);if(null!=n)return Fue(e,n.orientation,n.mirror)},(e,t)=>t],(e,t,n,a)=>
2{if(null!=t){var r=null===n||void 0===n?void 0:n[a];return null==r?{x:e.left,y:0}:{x:e.left,y:r}}}),Rue=ate([ene,oce,(e,t)=>{var n=oce(e,t);if(null!=n)return Oue(e,n.orientation,n.mirror)},(e,t)=>t],(e,t,n,a)=>{if(null!=t){var r=null===n||void 0===n?void 0:n[a];return null==r?{x:0,y:e.top}:{x:r,y:e.top}}}),Mue=ate(ene,oce,(e,t)=>({width:"number"===typeof t.width?t.width:60,height:e.height})),Bue=(e,t,n)=>{switch(t){case"xAxis":return Tue(e,n).width;case"yAxis":return Mue(e,n).height;default:return}},zue=(e,t,n,a)=>{if(null!=n){var{allowDuplicatedCategory:r,type:o,dataKey:i}=n,s=jte(e,a),l=t.map(e=>e.value);return i&&s&&"category"===o&&r&&A6(l)?l:void 0}},Lue=ate([pne,Cce,lce,Ule],zue),Uue=(e,t,n,a)=>{if(null!=n&&null!=n.dataKey){var{type:r,scale:o}=n;return!jte(e,a)||"number"!==r&&"auto"===o?void 0:t.map(e=>e.value)}},Vue=ate([pne,Cce,cce,Ule],Uue),que=ate([pne,(e,t,n)=>{switch(t){case"xAxis":return nce(e,n);case"yAxis":return oce(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},due,Due,Lue,Vue,kue,fue,Ule],(e,t,n,a,r,o,i,s,l)=>{if(null!=t){var c=jte(e,l);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:l,categoricalDomain:o,duplicateDomain:r,isCategorical:c,niceTicks:s,range:i,realScaleType:n,scale:a}}}),Hue=ate([pne,cce,due,Due,fue,kue,Lue,Vue,Ule],(e,t,n,a,r,o,i,s,l)=>{if(null!=t&&null!=a){var c=jte(e,l),{type:u,ticks:d,tickCount:h}=t,p="scaleBand"===n&&"function"===typeof a.bandwidth?a.bandwidth()/2:2,f="category"===u&&a.bandwidth?a.bandwidth()/p:0;f="angleAxis"===l&&null!=o&&o.length>=2?2*y6(o[0]-o[1])*f:f;var m=d||r;if(m){var g=m.map((e,t)=>{var n=i?i.indexOf(e):e;return{index:t,coordinate:a(n)+f,value:e,offset:f}});return g.filter(e=>L6(e.coordinate))}return c&&s?s.map((e,t)=>({coordinate:a(e)+f,value:e,index:t,offset:f})).filter(e=>L6(e.coordinate)):a.ticks?a.ticks(h).map(e=>({coordinate:a(e)+f,value:e,offset:f})):a.domain().map((e,t)=>({coordinate:a(e)+f,value:i?i[e]:e,index:t,offset:f}))}}),Wue=ate([pne,cce,Due,kue,Lue,Vue,Ule],(e,t,n,a,r,o,i)=>{if(null!=t&&null!=n&&null!=a&&a[0]!==a[1]){var s=jte(e,i),{tickCount:l}=t,c=0;return c="angleAxis"===i&&(null===a||void 0===a?void 0:a.length)>=2?2*y6(a[0]-a[1])*c:c,s&&o?o.map((e,t)=>({coordinate:n(e)+c,value:e,index:t,offset:c})):n.ticks?n.ticks(l).map(e=>({coordinate:n(e)+c,value:e,offset:c})):n.domain().map((e,t)=>({coordinate:n(e)+c,value:r?r[e]:e,index:t,offset:c}))}}),Kue=ate(lce,Due,(e,t)=>{if(null!=e&&null!=t)return Qle(Qle({},e),{},{scale:t})}),Yue=ate([lce,due,cue,Cue],hue),Gue=(ate((e,t,n)=>sce(e,n),Yue,(e,t)=>{if(null!=e&&null!=t)return Qle(Qle({},e),{},{scale:t})}),ate([pne,Yte,Gte],(e,t,n)=>{switch(e){case"horizontal":return t.some(e=>e.reversed)?"right-to-left":"left-to-right";case"vertical":return n.some(e=>e.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}})),Jue=e=>e.options.defaultTooltipEventType,$ue=e=>e.options.validateTooltipEventTypes;function Que(e,t,n){if(null==e)return t;var a=e?"axis":"item";return null==n?t:n.includes(a)?a:t}function Xue(e,t){return Que(t,Jue(e),$ue(e))}var Zue=(e,t)=>{var n,a=Number(t);if(!w6(a)&&null!=t)return a>=0?null===e||void 0===e||null===(n=e[a])||void 0===n?void 0:n.value:void 0};function ede(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function tde(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ede(Object(n),!0).forEach(function(t){nde(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ede(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nde(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ade=(e,t,n,a)=>
vendor: 9,033 bytes, line 2
2{if(null==t)return Cee;var r=function(e,t,n){return"axis"===t?"click"===n?e.axisInteraction.click:e.axisInteraction.hover:"click"===n?e.itemInteraction.click:e.itemInteraction.hover}(e,t,n);if(null==r)return Cee;if(r.active)return r;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&null!=e.syncInteraction.index)return e.syncInteraction;var o=!0===e.settings.active;if(null!=r.index){if(o)return tde(tde({},r),{},{active:!0})}else if(null!=a)return{active:!0,coordinate:void 0,dataKey:void 0,index:a,graphicalItemId:void 0};return tde(tde({},Cee),{},{coordinate:r.coordinate})};function rde(e,t){var n=function(e){if("number"===typeof e)return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var n=Number(e);return Number.isFinite(n)?n:void 0}(e),a=t[0],r=t[1];if(void 0===n)return!1;var o=Math.min(a,r),i=Math.max(a,r);return n>=o&&n<=i}var ode=(e,t,n,a)=>{var r=null===e||void 0===e?void 0:e.index;if(null==r)return null;var o=Number(r);if(!L6(o))return r;var i=1/0;t.length>0&&(i=t.length-1);var s=Math.max(0,Math.min(o,i)),l=t[s];return null==l||function(e,t,n){if(null==n||null==t)return!0;var a=Ete(e,t);return null==a||!Nse(n)||rde(a,n)}(l,n,a)?String(s):null},ide=(e,t,n,a,r,o,i,s)=>{if(null!=o&&null!=s){var l=i[0],c=null==l?void 0:s(l.positions,o);if(null!=c)return c;var u=null===r||void 0===r?void 0:r[Number(o)];if(u)return"horizontal"===n?{x:u.coordinate,y:(a.top+t)/2}:{x:(a.left+e)/2,y:u.coordinate}}},sde=(e,t,n,a)=>{if("axis"===t)return e.tooltipItemPayloads;if(0===e.tooltipItemPayloads.length)return[];var r;if(null==(r="hover"===n?e.itemInteraction.hover.graphicalItemId:e.itemInteraction.click.graphicalItemId)&&null!=a){var o=e.tooltipItemPayloads[0];return null!=o?[o]:[]}return e.tooltipItemPayloads.filter(e=>{var t;return(null===(t=e.settings)||void 0===t?void 0:t.graphicalItemId)===r})},lde=e=>e.options.tooltipPayloadSearcher,cde=e=>e.tooltip;function ude(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function dde(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ude(Object(n),!0).forEach(function(t){hde(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ude(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hde(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pde=(e,t,n,a,r,o,i)=>{if(null!=t&&null!=o){var{chartData:s,computedData:l,dataStartIndex:c,dataEndIndex:u}=n;return e.reduce((e,n)=>{var d,h,p,{dataDefinedOnItem:f,settings:m}=n,g=function(e,t){return null!=e?e:t}(f,s),v=Array.isArray(g)?kte(g,c,u):g,y=null!==(d=null===m||void 0===m?void 0:m.dataKey)&&void 0!==d?d:a,w=null===m||void 0===m?void 0:m.nameKey;(h=a&&Array.isArray(v)&&!Array.isArray(v[0])&&"axis"===i?j6(v,a,r):o(v,t,l,w),Array.isArray(h))?h.forEach(t=>{var n=dde(dde({},m),{},{name:t.name,unit:t.unit,color:void 0,fill:void 0});e.push(Ute({tooltipEntrySettings:n,dataKey:t.dataKey,payload:t.payload,value:Ete(t.payload,t.dataKey),name:t.name}))}):e.push(Ute({tooltipEntrySettings:m,dataKey:y,payload:h,value:Ete(h,y),name:null!==(p=Ete(h,w))&&void 0!==p?p:null===m||void 0===m?void 0:m.name}));return e},[])}},fde=ate([Sce,pne,uce,Zse,Gle],uue),mde=ate([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),gde=ate([Gle,Jle],dce),vde=ate([mde,Sce,gde],fce,{memoizeOptions:{resultEqualityCheck:Yle}}),yde=ate([vde],e=>e.filter(Wle)),wde=ate([vde],wce,{memoizeOptions:{resultEqualityCheck:Yle}}),_de=ate([wde,Ase],xce),xde=ate([yde,Ase,Sce],Hle),bde=ate([_de,Sce,vde],kce),kde=ate([Sce],Rce),Cde=ate([Sce],e=>e.allowDataOverflow),Dde=ate([kde,Cde],Tse),Ade=ate([vde],e=>e.filter(Wle)),Ede=ate([xde,Ade,Qse,Xse],Tce),jde=ate([Ede,Ase,Gle,Dde],Oce),Sde=ate([vde],vce),Nde=ate([_de,Sce,Sde,Lce,Gle],Vce,{memoizeOptions:{resultEqualityCheck:Kle}}),Pde=ate([Wce,Gle,Jle],Kce),Tde=ate([Pde,Gle],Xce),Fde=ate([Gce,Gle,Jle],Kce),Ode=ate([Fde,Gle],eue),Ide=ate([$ce,Gle,Jle],Kce),Rde=ate([Ide,Gle],nue),Mde=ate([Tde,Rde,Ode],Uce),Bde=ate([Sce,kde,Dde,jde,Nde,Mde,pne,Gle],oue),zde=ate([Sce,pne,_de,bde,Qse,Gle,Bde],lue),Lde=ate([zde,Sce,fde],pue),Ude=ate([Sce,zde,Lde,Gle],mue),Vde=e=>{var t=Gle(e),n=Jle(e);return kue(e,t,n,!1)},qde=ate([Sce,Vde],Ele),Hde=ate([Sce,fde,Ude,qde],hue),Wde=ate([pne,bde,Sce,Gle],zue),Kde=ate([pne,bde,Sce,Gle],Uue),Yde=ate([pne,Sce,fde,Hde,Vde,Wde,Kde,Gle],(e,t,n,a,r,o,i,s)=>{if(t){var{type:l}=t,c=jte(e,s);if(a){var u="scaleBand"===n&&a.bandwidth?a.bandwidth()/2:2,d="category"===l&&a.bandwidth?a.bandwidth()/u:0;return d="angleAxis"===s&&null!=r&&(null===r||void 0===r?void 0:r.length)>=2?2*y6(r[0]-r[1])*d:d,c&&i?i.map((e,t)=>({coordinate:a(e)+d,value:e,index:t,offset:d})):a.domain().map((e,t)=>({coordinate:a(e)+d,value:o?o[e]:e,index:t,offset:d}))}}}),Gde=ate([Jue,$ue,e=>e.tooltip.settings],(e,t,n)=>Que(n.shared,e,t)),Jde=e=>e.tooltip.settings.trigger,$de=e=>e.tooltip.settings.defaultIndex,Qde=ate([cde,Gde,Jde,$de],ade),Xde=ate([Qde,_de,Nce,zde],ode),Zde=ate([Yde,Xde],Zue),ehe=ate([Qde],e=>{if(e)return e.dataKey}),the=ate([Qde],e=>{if(e)return e.graphicalItemId}),nhe=ate([cde,Gde,Jde,$de],sde),ahe=ate([qte,Hte,pne,ene,Yde,$de,nhe,lde],ide),rhe=ate([Qde,ahe],(e,t)=>null!==e&&void 0!==e&&e.coordinate?e.coordinate:t),ohe=ate([Qde],e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.active)&&void 0!==t&&t}),ihe=ate([nhe,Xde,Ase,Nce,Zde,lde,Gde],pde),she=ate([ihe],e=>{if(null!=e){var t=e.map(e=>e.payload).filter(e=>null!=e);return Array.from(new Set(t))}});function lhe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function che(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lhe(Object(n),!0).forEach(function(t){uhe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lhe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function uhe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dhe=(e,t,n,a,r)=>{var o,i=null!==(o=null===t||void 0===t?void 0:t.length)&&void 0!==o?o:0;if(i<=1||null==e)return 0;if("angleAxis"===a&&null!=r&&Math.abs(Math.abs(r[1]-r[0])-360)<=1e-6)for(var s=0;s<i;s++){var l,c,u,d,h,p=s>0?null===(l=n[s-1])||void 0===l?void 0:l.coordinate:null===(c=n[i-1])||void 0===c?void 0:c.coordinate,f=null===(u=n[s])||void 0===u?void 0:u.coordinate,m=s>=i-1?null===(d=n[0])||void 0===d?void 0:d.coordinate:null===(h=n[s+1])||void 0===h?void 0:h.coordinate,g=void 0;if(null!=p&&null!=f&&null!=m)if(y6(f-p)!==y6(m-f)){var v=[];if(y6(m-f)===y6(r[1]-r[0])){g=m;var y=f+r[1]-r[0];v[0]=Math.min(y,(y+p)/2),v[1]=Math.max(y,(y+p)/2)}else{g=p;var w=m+r[1]-r[0];v[0]=Math.min(f,(w+f)/2),v[1]=Math.max(f,(w+f)/2)}var _,x=[Math.min(f,(g+f)/2),Math.max(f,(g+f)/2)];if(e>x[0]&&e<=x[1]||e>=v[0]&&e<=v[1])return null===(_=n[s])||void 0===_?void 0:_.index}else{var b,k=Math.min(p,m),C=Math.max(p,m);if(e>(k+f)/2&&e<=(C+f)/2)return null===(b=n[s])||void 0===b?void 0:b.index}}else if(t)for(var D=0;D<i;D++){var A=t[D];if(null!=A){var E=t[D+1],j=t[D-1];if(0===D&&null!=E&&e<=(A.coordinate+E.coordinate)/2)return A.index;if(D===i-1&&null!=j&&e>(A.coordinate+j.coordinate)/2)return A.index;if(D>0&&D<i-1&&null!=j&&null!=E&&e>(A.coordinate+j.coordinate)/2&&e<=(A.coordinate+E.coordinate)/2)return A.index}}return-1},hhe=()=>hte(Zse),phe=(e,t)=>t,fhe=(e,t,n)=>n,mhe=(e,t,n,a)=>a,ghe=ate(Yde,e=>fte()(e,e=>e.coordinate)),vhe=ate([cde,phe,fhe,mhe],ade),yhe=ate([vhe,_de,Nce,zde],ode),whe=ate([cde,phe,fhe,mhe],sde),_he=ate([qte,Hte,pne,ene,Yde,mhe,whe,lde],ide),xhe=ate([vhe,_he],(e,t)=>{var n;return null!==(n=e.coordinate)&&void 0!==n?n:t}),bhe=ate([Yde,yhe],Zue),khe=ate([whe,yhe,Ase,Nce,bhe,lde,phe],pde),Che=ate([vhe,yhe],(e,t)=>({isActive:e.active&&null!=t,activeIndex:t})),Dhe=(e,t,n,a,r,o,i)=>{if(e&&a&&r&&o&&n){var s=hle(e,n);if(s){var l=((e,t)=>
2"centric"===t?e.angle:e.radius)(s,t),c=dhe(l,i,o,a,r),u=((e,t,n,a)=>{var r=t.find(e=>e&&e.index===n);if(r){if("centric"===e){var o=r.coordinate,{radius:i}=a;return che(che(che({},a),lle(a.cx,a.cy,i,o)),{},{angle:o,radius:i})}var s=r.coordinate,{angle:l}=a;return che(che(che({},a),lle(a.cx,a.cy,s,l)),{},{angle:l,radius:s})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}})(t,o,c,s);return{activeIndex:String(c),activeCoordinate:u}}}},Ahe=ate([(e,t)=>t,pne,Lle,Gle,qde,Yde,ghe,ene],(e,t,n,a,r,o,i,s)=>{if(e&&t&&a&&r&&o)return"horizontal"===t||"vertical"===t?((e,t,n,a,r,o,i)=>{if(e&&n&&a&&r&&function(e,t){var{chartX:n,chartY:a}=e;return n>=t.left&&n<=t.left+t.width&&a>=t.top&&a<=t.top+t.height}(e,i)){var s=((e,t)=>"horizontal"===t?e.chartX:"vertical"===t?e.chartY:void 0)(e,t),l=dhe(s,o,r,n,a),c=((e,t,n,a)=>{var r=t.find(e=>e&&e.index===n);if(r){if("horizontal"===e)return{x:r.coordinate,y:a.chartY};if("vertical"===e)return{x:a.chartX,y:r.coordinate}}return{x:0,y:0}})(t,r,l,e);return{activeIndex:String(l),activeCoordinate:c}}})(e,t,a,r,o,i,s):Dhe(e,t,n,a,r,o,i)}),Ehe=e=>{var t=e.currentTarget.getBoundingClientRect(),n=t.width/e.currentTarget.offsetWidth,a=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/n),chartY:Math.round((e.clientY-t.top)/a)}},jhe=k9("mouseClick"),She=g7();She.startListening({actionCreator:jhe,effect:(e,t)=>{var n=e.payload,a=Ahe(t.getState(),Ehe(n));null!=(null===a||void 0===a?void 0:a.activeIndex)&&t.dispatch(Iee({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}});var Nhe=k9("mouseMove"),Phe=g7(),The=null;function Fhe(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":"children"===e&&"object"===typeof t&&null!==t?"<<CHILDREN>>":t}function Ohe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Ihe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ohe(Object(n),!0).forEach(function(t){Rhe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ohe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Rhe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Phe.startListening({actionCreator:Nhe,effect:(e,t)=>{var n=e.payload;null!==The&&cancelAnimationFrame(The);var a=Ehe(n);The=requestAnimationFrame(()=>{var e=t.getState();if("axis"===Xue(e,e.tooltip.settings.shared)){var n=Ahe(e,a);null!=(null===n||void 0===n?void 0:n.activeIndex)?t.dispatch(Oee({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate})):t.dispatch(Tee())}The=null})}});var Mhe=B9({name:"cartesianAxis",initialState:{xAxis:{},yAxis:{},zAxis:{}},reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:j9()},replaceXAxis:{reducer(e,t){var{prev:n,next:a}=t.payload;void 0!==e.xAxis[n.id]&&(n.id!==a.id&&delete e.xAxis[n.id],e.xAxis[a.id]=a)},prepare:j9()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:j9()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:j9()},replaceYAxis:{reducer(e,t){var{prev:n,next:a}=t.payload;void 0!==e.yAxis[n.id]&&(n.id!==a.id&&delete e.yAxis[n.id],e.yAxis[a.id]=a)},prepare:j9()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:j9()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:j9()},replaceZAxis:{reducer(e,t){var{prev:n,next:a}=t.payload;void 0!==e.zAxis[n.id]&&(n.id!==a.id&&delete e.zAxis[n.id],e.zAxis[a.id]=a)},prepare:j9()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:j9()},updateYAxisWidth(e,t){var{id:n,width:a}=t.payload,r=e.yAxis[n];
2if(r){var o=r.widthHistory||[];if(3===o.length&&o[0]===o[2]&&a===o[1]&&a!==r.width&&Math.abs(a-o[0])<=1)return;var i=[...o,a].slice(-3);e.yAxis[n]=Ihe(Ihe({},e.yAxis[n]),{},{width:a,widthHistory:i})}}}}),{addXAxis:Bhe,replaceXAxis:zhe,removeXAxis:Lhe,addYAxis:Uhe,replaceYAxis:Vhe,removeYAxis:qhe,addZAxis:Hhe,replaceZAxis:Whe,removeZAxis:Khe,updateYAxisWidth:Yhe}=Mhe.actions,Ghe=Mhe.reducer,Jhe=B9({name:"graphicalItems",initialState:{cartesianItems:[],polarItems:[]},reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:j9()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:n,next:a}=t.payload,r=o9(e).cartesianItems.indexOf(n);r>-1&&(e.cartesianItems[r]=a)},prepare:j9()},removeCartesianGraphicalItem:{reducer(e,t){var n=o9(e).cartesianItems.indexOf(t.payload);n>-1&&e.cartesianItems.splice(n,1)},prepare:j9()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:j9()},removePolarGraphicalItem:{reducer(e,t){var n=o9(e).polarItems.indexOf(t.payload);n>-1&&e.polarItems.splice(n,1)},prepare:j9()}}}),{addCartesianGraphicalItem:$he,replaceCartesianGraphicalItem:Qhe,removeCartesianGraphicalItem:Xhe,addPolarGraphicalItem:Zhe,removePolarGraphicalItem:epe}=Jhe.actions,tpe=Jhe.reducer,npe=B9({name:"referenceElements",initialState:{dots:[],areas:[],lines:[]},reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=o9(e).dots.findIndex(e=>e===t.payload);-1!==n&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=o9(e).areas.findIndex(e=>e===t.payload);-1!==n&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var n=o9(e).lines.findIndex(e=>e===t.payload);-1!==n&&e.lines.splice(n,1)}}}),{addDot:ape,removeDot:rpe,addArea:ope,removeArea:ipe,addLine:spe,removeLine:lpe}=npe.actions,cpe=npe.reducer,upe={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},dpe=B9({name:"brush",initialState:upe,reducers:{setBrushSettings:(e,t)=>null==t.payload?upe:t.payload}}),{setBrushSettings:hpe}=dpe.actions,ppe=dpe.reducer,fpe=B9({name:"legend",initialState:{settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:j9()},replaceLegendPayload:{reducer(e,t){var{prev:n,next:a}=t.payload,r=o9(e).payload.indexOf(n);r>-1&&(e.payload[r]=a)},prepare:j9()},removeLegendPayload:{reducer(e,t){var n=o9(e).payload.indexOf(t.payload);n>-1&&e.payload.splice(n,1)},prepare:j9()}}}),{setLegendSize:mpe,setLegendSettings:gpe,addLegendPayload:vpe,replaceLegendPayload:ype,removeLegendPayload:wpe}=fpe.actions,_pe=fpe.reducer,xpe={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},bpe=B9({name:"rootProps",initialState:xpe,reducers:{updateOptions:(e,t)=>{var n;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=null!==(n=t.payload.barGap)&&void 0!==n?n:xpe.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),kpe=bpe.reducer,{updateOptions:Cpe}=bpe.actions,Dpe=B9({name:"polarAxis",initialState:{radiusAxis:{},angleAxis:{}},reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:Ape,removeRadiusAxis:Epe,addAngleAxis:jpe,removeAngleAxis:Spe}=Dpe.actions,Npe=Dpe.reducer,Ppe=B9({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:Tpe}
2=Ppe.actions,Fpe=Ppe.reducer,Ope=k9("keyDown"),Ipe=k9("focus"),Rpe=g7();Rpe.startListening({actionCreator:Ope,effect:(e,t)=>{var n=t.getState();if(!1!==n.rootProps.accessibilityLayer){var{keyboardInteraction:a}=n.tooltip,r=e.payload;if("ArrowRight"===r||"ArrowLeft"===r||"Enter"===r){var o=ode(a,_de(n),Nce(n),zde(n)),i=null==o?-1:Number(o);if(Number.isFinite(i)&&!(i<0)){var s=Yde(n);if("Enter"!==r){var l=i+("ArrowRight"===r?1:-1)*("left-to-right"===Gue(n)?1:-1);if(!(null==s||l>=s.length||l<0)){var c=_he(n,"axis","hover",String(l));t.dispatch(Mee({active:!0,activeIndex:l.toString(),activeCoordinate:c}))}}else{var u=_he(n,"axis","hover",String(a.index));t.dispatch(Mee({active:!a.active,activeIndex:a.index,activeCoordinate:u}))}}}}}}),Rpe.startListening({actionCreator:Ipe,effect:(e,t)=>{var n=t.getState();if(!1!==n.rootProps.accessibilityLayer){var{keyboardInteraction:a}=n.tooltip;if(!a.active&&null==a.index){var r=_he(n,"axis","hover",String("0"));t.dispatch(Mee({active:!0,activeIndex:"0",activeCoordinate:r}))}}}});var Mpe=k9("externalEvent"),Bpe=g7(),zpe=new Map;Bpe.startListening({actionCreator:Mpe,effect:(e,t)=>{var{handler:n,reactEvent:a}=e.payload;if(null!=n){a.persist();var r=a.type,o=zpe.get(r);void 0!==o&&cancelAnimationFrame(o);var i=requestAnimationFrame(()=>{try{var e=t.getState(),o={activeCoordinate:rhe(e),activeDataKey:ehe(e),activeIndex:Xde(e),activeLabel:Zde(e),activeTooltipIndex:Xde(e),isTooltipActive:ohe(e)};n(o,a)}finally{zpe.delete(r)}});zpe.set(r,i)}}});var Lpe=ate([cde],e=>e.tooltipItemPayloads),Upe=ate([Lpe,lde,(e,t)=>t,(e,t,n)=>n],(e,t,n,a)=>{var r=e.find(e=>e.settings.graphicalItemId===a);if(null!=r){var{positions:o}=r;if(null!=o)return t(o,n)}}),Vpe=k9("touchMove"),qpe=g7();qpe.startListening({actionCreator:Vpe,effect:(e,t)=>{var n=e.payload;if(null!=n.touches&&0!==n.touches.length){var a=t.getState(),r=Xue(a,a.tooltip.settings.shared);if("axis"===r){var o=n.touches[0];if(null==o)return;var i=Ahe(a,Ehe({clientX:o.clientX,clientY:o.clientY,currentTarget:n.currentTarget}));null!=(null===i||void 0===i?void 0:i.activeIndex)&&t.dispatch(Oee({activeIndex:i.activeIndex,activeDataKey:void 0,activeCoordinate:i.activeCoordinate}))}else if("item"===r){var s,l=n.touches[0];if(null==document.elementFromPoint||null==l)return;var c=document.elementFromPoint(l.clientX,l.clientY);if(!c||!c.getAttribute)return;var u=c.getAttribute(Jte),d=null!==(s=c.getAttribute($te))&&void 0!==s?s:void 0,h=vde(a).find(e=>e.id===d);if(null==u||null==h||null==d)return;var{dataKey:p}=h,f=Upe(a,u,d);t.dispatch(Nee({activeDataKey:p,activeIndex:u,activeCoordinate:f,activeGraphicalItemId:d}))}}}});var Hpe=B9({name:"errorBars",initialState:{},reducers:{addErrorBar:(e,t)=>{var{itemId:n,errorBar:a}=t.payload;e[n]||(e[n]=[]),e[n].push(a)},replaceErrorBar:(e,t)=>{var{itemId:n,prev:a,next:r}=t.payload;e[n]&&(e[n]=e[n].map(e=>e.dataKey===a.dataKey&&e.direction===a.direction?r:e))},removeErrorBar:(e,t)=>{var{itemId:n,errorBar:a}=t.payload;e[n]&&(e[n]=e[n].filter(e=>e.dataKey!==a.dataKey||e.direction!==a.direction))}}}),{addErrorBar:Wpe,replaceErrorBar:Kpe,removeErrorBar:Ype}=Hpe.actions,Gpe=Hpe.reducer,Jpe=!0,$pe=!("undefined"!==typeof window&&window.document&&Boolean(window.document.createElement)&&window.setTimeout);function Qpe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Xpe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qpe(Object(n),!0).forEach(function(t){Zpe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qpe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zpe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var efe={zIndexMap:Object.values(ple).reduce((e,t)=>
2Xpe(Xpe({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),{})},tfe=new Set(Object.values(ple));var nfe=B9({name:"zIndex",initialState:efe,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]?e.zIndexMap[n].consumers+=1:e.zIndexMap[n]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:j9()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(e.zIndexMap[n].consumers-=1,e.zIndexMap[n].consumers<=0&&!function(e){return tfe.has(e)}(n)&&delete e.zIndexMap[n])},prepare:j9()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n,element:a,isPanorama:r}=t.payload;e.zIndexMap[n]?r?e.zIndexMap[n].panoramaElement=a:e.zIndexMap[n].element=a:e.zIndexMap[n]={consumers:0,element:r?void 0:a,panoramaElement:r?a:void 0}},prepare:j9()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(t.payload.isPanorama?e.zIndexMap[n].panoramaElement=void 0:e.zIndexMap[n].element=void 0)},prepare:j9()}}}),{registerZIndexPortal:afe,unregisterZIndexPortal:rfe,registerZIndexPortalElement:ofe,unregisterZIndexPortalElement:ife}=nfe.actions,sfe=m9({brush:ppe,cartesianAxis:Ghe,chartData:qee,errorBars:Gpe,graphicalItems:tpe,layout:Jee,legend:_pe,options:_7,polarAxis:Npe,polarOptions:Fpe,referenceElements:cpe,rootProps:kpe,tooltip:Bee,zIndex:nfe.reducer});function lfe(e){var{preloadedState:t,children:n,reduxStoreName:a}=e,r=rne(),i=(0,o.useRef)(null);if(r)return n;null==i.current&&(i.current=function(e){return P9({reducer:sfe,preloadedState:e,middleware:e=>e({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes("es6")}).concat([She.middleware,Phe.middleware,Rpe.middleware,Bpe.middleware,qpe.middleware]),enhancers:e=>{var t=e;return"function"===typeof e&&(t=e()),t.concat(N9({type:"raf"}))},devTools:Jpe&&{serialize:{replacer:Fhe},name:"recharts-".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Chart")}})}(t,a));var s=ite;return o.createElement(O7,{context:s,store:i.current},n)}var cfe=e=>{var{chartData:t}=e,n=lte(),a=rne();return(0,o.useEffect)(()=>a?()=>{}:(n(Lee(t)),()=>{n(Lee(void 0))}),[t,n,a]),null},ufe=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius"]);function dfe(e,t){return null==e&&null==t||("number"===typeof e&&"number"===typeof t?e===t||e!==e&&t!==t:e===t)}function hfe(e,t){var n=new Set([...Object.keys(e),...Object.keys(t)]);for(var a of n)if(ufe.has(a)){if(null==e[a]&&null==t[a])continue;if(!S7(e[a],t[a]))return!1}else if(!dfe(e[a],t[a]))return!1;return!0}function pfe(e){var{layout:t,margin:n}=e,a=lte(),r=rne();return(0,o.useEffect)(()=>{r||(a(Kee(t)),a(Wee(n)))},[a,r,t,n]),null}var ffe=(0,o.memo)(pfe,hfe);function mfe(e){var t=lte();return(0,o.useEffect)(()=>{t(Cpe(e))},[t,e]),null}function gfe(e){var t=lte();return(0,o.useEffect)(()=>{t(Tpe(e))},[t,e]),null}var vfe=()=>{var e;return null===(e=hte(e=>e.rootProps.accessibilityLayer))||void 0===e||e},yfe=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdate
2Capture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function wfe(e){return"string"===typeof e&&yfe.includes(e)}var _fe=new Set(["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"]);function xfe(e){return"string"===typeof e&&_fe.has(e)}function bfe(e){return"string"===typeof e&&e.startsWith("data-")}function kfe(e){if("object"!==typeof e||null===e)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(xfe(n)||bfe(n))&&(t[n]=e[n]);return t}function Cfe(e){return null==e?null:(0,o.isValidElement)(e)&&"object"===typeof e.props&&null!==e.props?kfe(e.props):"object"!==typeof e||Array.isArray(e)?null:kfe(e)}function Dfe(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(xfe(n)||bfe(n)||wfe(n))&&(t[n]=e[n]);return t}var Afe=["children","width","height","viewBox","className","style","title","desc"];function Efe(){return Efe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Efe.apply(null,arguments)}var jfe=(0,o.forwardRef)((e,t)=>{var{children:n,width:a,height:r,viewBox:i,className:s,style:l,title:c,desc:u}=e,d=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,Afe),h=i||{width:a,height:r,x:0,y:0},p=Dd("recharts-surface",s);return o.createElement("svg",Efe({},Dfe(d),{className:p,width:a,height:r,style:l,viewBox:"".concat(h.x," ").concat(h.y," ").concat(h.width," ").concat(h.height),ref:t}),o.createElement("title",null,c),o.createElement("desc",null,u),n)}),Sfe=ate(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,n)=>n,(e,t,n)=>{if(null!=t){var a=e[t];if(null!=a)return n?a.panoramaElement:a.element}}),Nfe=ate(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(e=>parseInt(e,10)).concat(Object.values(ple));return Array.from(new Set(t)).sort((e,t)=>
2e-t)},{memoizeOptions:{resultEqualityCheck:function(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return!1}}});function Pfe(e){var{zIndex:t,isPanorama:n}=e,a=(0,o.useRef)(null),r=lte();return(0,o.useLayoutEffect)(()=>(a.current&&r(ofe({zIndex:t,element:a.current,isPanorama:n})),()=>{r(ife({zIndex:t,isPanorama:n}))}),[r,t,n]),o.createElement("g",{tabIndex:-1,ref:a})}function Tfe(e){var{children:t,isPanorama:n}=e,a=hte(Nfe);if(!a||0===a.length)return t;var r=a.filter(e=>e<0),i=a.filter(e=>e>0);return o.createElement(o.Fragment,null,r.map(e=>o.createElement(Pfe,{key:e,zIndex:e,isPanorama:n})),t,i.map(e=>o.createElement(Pfe,{key:e,zIndex:e,isPanorama:n})))}var Ffe=["children"];function Ofe(){return Ofe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Ofe.apply(null,arguments)}var Ife={width:"100%",height:"100%",display:"block"},Rfe=(0,o.forwardRef)((e,t)=>{var n=dne(),a=hne(),r=vfe();if(!U6(n)||!U6(a))return null;var i,s,{children:l,otherAttributes:c,title:u,desc:d}=e;return null!=c&&(i="number"===typeof c.tabIndex?c.tabIndex:r?0:void 0,s="string"===typeof c.role?c.role:r?"application":void 0),o.createElement(jfe,Ofe({},c,{title:u,desc:d,role:s,tabIndex:i,width:n,height:a,style:Ife,ref:t}),l)}),Mfe=e=>{var{children:t}=e,n=hte(ine);if(!n)return null;var{width:a,height:r,y:i,x:s}=n;return o.createElement(jfe,{width:a,height:r,x:s,y:i},t)},Bfe=(0,o.forwardRef)((e,t)=>{var{children:n}=e,a=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,Ffe);return rne()?o.createElement(Mfe,null,o.createElement(Tfe,{isPanorama:!0},n)):o.createElement(Rfe,Ofe({ref:t},a),o.createElement(Tfe,{isPanorama:!1},n))});var zfe=new(n(7283)),Lfe="recharts.syncEvent.tooltip",Ufe="recharts.syncEvent.brush";function Vfe(e){return e.tooltip.syncInteraction}var qfe=["x","y"];function Hfe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Wfe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hfe(Object(n),!0).forEach(function(t){Kfe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hfe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Kfe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yfe(){var e=hte(ele),t=hte(nle),n=lte(),a=hte(tle),r=hte(Yde),i=fne(),s=lne(),l=hte(e=>e.rootProps.className);(0,o.useEffect)(()=>{if(null==e)return T6;var o=(o,l,c)=>{var u;if(t!==c&&e===o)if("index"!==a){if(null!=r){var d;if("function"===typeof a){var h={activeTooltipIndex:null==l.payload.index?void 0:Number(l.payload.index),isTooltipActive:l.payload.active,activeIndex:null==l.payload.index?void 0:Number(l.payload.index),activeLabel:l.payload.label,activeDataKey:l.payload.dataKey,activeCoordinate:l.payload.coordinate},p=a(r,h);d=r[p]}else"value"===a&&(d=r.find(e=>String(e.value)===l.payload.label));var{coordinate:f}=l.payload;if(null!=d&&!1!==l.payload.active&&null!=f&&null!=s){var{x:m,y:g}=f,v=Math.min(m,s.x+s.width),y=Math.min(g,s.y+s.height),w={x:"horizontal"===i?d.coordinate:v,y:"horizontal"===i?y:d.coordinate},_=Ree({active:l.payload.active,coordinate:w,dataKey:l.payload.dataKey,index:String(d.index),label:l.payload.label,sourceViewBox:l.payload.sourceViewBox,graphicalItemId:l.payload.graphicalItemId});n(_)}else n(Ree({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}))}}else if(s&&null!==l&&void 0!==l&&null!==(u=l.payload)&&void 0!==u&&u.coordinate&&l.payload.sourceViewBox){var x=l.payload.coordinate,{x:b,y:k}=x,C=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(x,qfe),{x:D,y:A,width:E,height:j}=l.payload.sourceViewBox,S=Wfe(Wfe({},C),{},{x:s.x+(E?(b-D)/E:0)*s.width,y:s.y+(j?(k-A)/j:0)*s.height});n(Wfe(Wfe({},l),{},{payload:Wfe(Wfe({},l.payload),{},{coordinate:S})}))}else n(l)};return zfe.on(Lfe,o),()=>{zfe.off(Lfe,o)}},[l,n,t,e,a,r,i,s])}function Gfe(){var e=lte();(0,o.useEffect)(()=>{e(x7())},[e]),Yfe(),function(){var e=hte(ele),t=hte(nle),n=lte();(0,o.useEffect)(()=>
2{if(null==e)return T6;var a=(a,r,o)=>{t!==o&&e===a&&n(Uee(r))};return zfe.on(Ufe,a),()=>{zfe.off(Ufe,a)}},[n,t,e])}()}function Jfe(e,t,n,a,r,i){var s=hte(n=>((e,t,n)=>{if(null!=t){var a=cde(e);return"axis"===t?"hover"===n?a.axisInteraction.hover.dataKey:a.axisInteraction.click.dataKey:"hover"===n?a.itemInteraction.hover.dataKey:a.itemInteraction.click.dataKey}})(n,e,t)),l=hte(nle),c=hte(ele),u=hte(tle),d=hte(Vfe),h=null===d||void 0===d?void 0:d.active,p=lne();(0,o.useEffect)(()=>{if(!h&&null!=c&&null!=l){var e=Ree({active:i,coordinate:n,dataKey:s,index:r,label:"number"===typeof a?String(a):a,sourceViewBox:p,graphicalItemId:void 0});zfe.emit(Lfe,c,e,l)}},[h,n,s,r,a,l,c,u,i,p])}var $fe=(0,o.createContext)(null),Qfe=(0,o.createContext)(null);function Xfe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Zfe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xfe(Object(n),!0).forEach(function(t){eme(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xfe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eme(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tme(){return tme=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},tme.apply(null,arguments)}var nme=()=>(Gfe(),null);function ame(e){if("number"===typeof e)return e;if("string"===typeof e){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var rme=(0,o.forwardRef)((e,t)=>{var n,a,r=(0,o.useRef)(null),[i,s]=(0,o.useState)({containerWidth:ame(null===(n=e.style)||void 0===n?void 0:n.width),containerHeight:ame(null===(a=e.style)||void 0===a?void 0:a.height)}),l=(0,o.useCallback)((e,t)=>{s(n=>{var a=Math.round(e),r=Math.round(t);return n.containerWidth===a&&n.containerHeight===r?n:{containerWidth:a,containerHeight:r}})},[]),c=(0,o.useCallback)(e=>{if("function"===typeof t&&t(e),null!=e&&"undefined"!==typeof ResizeObserver){var{width:n,height:a}=e.getBoundingClientRect();l(n,a);var o=new ResizeObserver(e=>{var{width:t,height:n}=e[0].contentRect;l(t,n)});o.observe(e),r.current=o}},[t,l]);return(0,o.useEffect)(()=>()=>{var e=r.current;null!=e&&e.disconnect()},[l]),o.createElement(o.Fragment,null,o.createElement(mne,{width:i.containerWidth,height:i.containerHeight}),o.createElement("div",tme({ref:c},e)))}),ome=(0,o.forwardRef)((e,t)=>{var{width:n,height:a}=e,[r,i]=(0,o.useState)({containerWidth:ame(n),containerHeight:ame(a)}),s=(0,o.useCallback)((e,t)=>{i(n=>{var a=Math.round(e),r=Math.round(t);return n.containerWidth===a&&n.containerHeight===r?n:{containerWidth:a,containerHeight:r}})},[]),l=(0,o.useCallback)(e=>{if("function"===typeof t&&t(e),null!=e){var{width:n,height:a}=e.getBoundingClientRect();s(n,a)}},[t,s]);return o.createElement(o.Fragment,null,o.createElement(mne,{width:r.containerWidth,height:r.containerHeight}),o.createElement("div",tme({ref:l},e)))}),ime=(0,o.forwardRef)((e,t)=>{var{width:n,height:a}=e;return o.createElement(o.Fragment,null,o.createElement(mne,{width:n,height:a}),o.createElement("div",tme({ref:t},e)))}),sme=(0,o.forwardRef)((e,t)=>{var{width:n,height:a}=e;return _6(n)||_6(a)?o.createElement(ome,tme({},e,{ref:t})):o.createElement(ime,tme({},e,{ref:t}))});var lme=(0,o.forwardRef)((e,t)=>{var{children:n,className:a,height:r,onClick:i,onContextMenu:s,onDoubleClick:l,onMouseDown:c,onMouseEnter:u,onMouseLeave:d,onMouseMove:h,onMouseUp:p,onTouchEnd:f,onTouchMove:m,onTouchStart:g,style:v,width:y,responsive:w,dispatchTouchEvents:_=!0}=e,x=(0,o.useRef)(null),b=lte(),[k,C]=(0,o.useState)(null),[D,A]=(0,o.useState)(null),E=function(){var e=lte(),[t,n]=(0,o.useState)(null),a=hte(Wte);return(0,o.useEffect)(()=>
2{if(null!=t){var n=t.getBoundingClientRect().width/t.offsetWidth;L6(n)&&n!==a&&e(Gee(n))}},[t,e,a]),n}(),j=G6(),S=(null===j||void 0===j?void 0:j.width)>0?j.width:y,N=(null===j||void 0===j?void 0:j.height)>0?j.height:r,P=(0,o.useCallback)(e=>{E(e),"function"===typeof t&&t(e),C(e),A(e),null!=e&&(x.current=e)},[E,t,C,A]),T=(0,o.useCallback)(e=>{b(jhe(e)),b(Mpe({handler:i,reactEvent:e}))},[b,i]),F=(0,o.useCallback)(e=>{b(Nhe(e)),b(Mpe({handler:u,reactEvent:e}))},[b,u]),O=(0,o.useCallback)(e=>{b(Tee()),b(Mpe({handler:d,reactEvent:e}))},[b,d]),I=(0,o.useCallback)(e=>{b(Nhe(e)),b(Mpe({handler:h,reactEvent:e}))},[b,h]),R=(0,o.useCallback)(()=>{b(Ipe())},[b]),M=(0,o.useCallback)(e=>{b(Ope(e.key))},[b]),B=(0,o.useCallback)(e=>{b(Mpe({handler:s,reactEvent:e}))},[b,s]),z=(0,o.useCallback)(e=>{b(Mpe({handler:l,reactEvent:e}))},[b,l]),L=(0,o.useCallback)(e=>{b(Mpe({handler:c,reactEvent:e}))},[b,c]),U=(0,o.useCallback)(e=>{b(Mpe({handler:p,reactEvent:e}))},[b,p]),V=(0,o.useCallback)(e=>{b(Mpe({handler:g,reactEvent:e}))},[b,g]),q=(0,o.useCallback)(e=>{_&&b(Vpe(e)),b(Mpe({handler:m,reactEvent:e}))},[b,_,m]),H=(0,o.useCallback)(e=>{b(Mpe({handler:f,reactEvent:e}))},[b,f]),W=function(e){return!0===e?rme:sme}(w);return o.createElement($fe.Provider,{value:k},o.createElement(Qfe.Provider,{value:D},o.createElement(W,{width:null!==S&&void 0!==S?S:null===v||void 0===v?void 0:v.width,height:null!==N&&void 0!==N?N:null===v||void 0===v?void 0:v.height,className:Dd("recharts-wrapper",a),style:Zfe({position:"relative",cursor:"default",width:S,height:N},v),onClick:T,onContextMenu:B,onDoubleClick:z,onFocus:R,onKeyDown:M,onMouseDown:L,onMouseEnter:F,onMouseLeave:O,onMouseMove:I,onMouseUp:U,onTouchEnd:H,onTouchMove:q,onTouchStart:V,ref:P},o.createElement(nme,null),n)))}),cme=ate([ene],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),ume=ate([cme,qte,Hte],(e,t,n)=>{if(e&&null!=t&&null!=n)return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}}),dme=()=>hte(ume),hme=(0,o.createContext)(void 0),pme=e=>{var{children:t}=e,[n]=(0,o.useState)("".concat(C6("recharts"),"-clip")),a=dme();if(null==a)return null;var{x:r,y:i,width:s,height:l}=a;return o.createElement(hme.Provider,{value:n},o.createElement("defs",null,o.createElement("clipPath",{id:n},o.createElement("rect",{x:r,y:i,height:l,width:s}))),t)},fme=["width","height","responsive","children","className","style","compact","title","desc"];var mme=(0,o.forwardRef)((e,t)=>{var{width:n,height:a,responsive:r,children:i,className:s,style:l,compact:c,title:u,desc:d}=e,h=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,fme),p=kfe(h);return c?o.createElement(o.Fragment,null,o.createElement(mne,{width:n,height:a}),o.createElement(Bfe,{otherAttributes:p,title:u,desc:d},i)):o.createElement(lme,{className:s,style:l,width:n,height:a,responsive:null!==r&&void 0!==r&&r,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},o.createElement(Bfe,{otherAttributes:p,title:u,desc:d,ref:t},o.createElement(pme,null,i)))});function gme(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function vme(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yme(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
vendor: 16,587 bytes, line 2
2t%2?gme(Object(n),!0).forEach(function(t){vme(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gme(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e),a=t;return Object.keys(t).reduce((e,t)=>(void 0===e[t]&&void 0!==a[t]&&(e[t]=a[t]),e),n)}var wme=["layout"];function _me(){return _me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},_me.apply(null,arguments)}var xme={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index",layout:"radial",responsive:!1,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},bme=(0,o.forwardRef)(function(e,t){var n,a=yme(e.categoricalChartProps,xme),{layout:r}=a,i=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(a,wme),{chartName:s,defaultTooltipEventType:l,validateTooltipEventTypes:c,tooltipPayloadSearcher:u}=e,d={chartName:s,defaultTooltipEventType:l,validateTooltipEventTypes:c,tooltipPayloadSearcher:u,eventEmitter:void 0};return o.createElement(lfe,{preloadedState:{options:d},reduxStoreName:null!==(n=a.id)&&void 0!==n?n:s},o.createElement(cfe,{chartData:a.data}),o.createElement(ffe,{layout:r,margin:a.margin}),o.createElement(mfe,{baseValue:void 0,accessibilityLayer:a.accessibilityLayer,barCategoryGap:a.barCategoryGap,maxBarSize:a.maxBarSize,stackOffset:a.stackOffset,barGap:a.barGap,barSize:a.barSize,syncId:a.syncId,syncMethod:a.syncMethod,className:a.className,reverseStackOrder:a.reverseStackOrder}),o.createElement(gfe,{cx:a.cx,cy:a.cy,startAngle:a.startAngle,endAngle:a.endAngle,innerRadius:a.innerRadius,outerRadius:a.outerRadius}),o.createElement(mme,_me({},i,{ref:t})))});function kme(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Cme(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kme(Object(n),!0).forEach(function(t){Dme(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kme(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Dme(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ame=["item"],Eme=Cme(Cme({},xme),{},{layout:"centric",startAngle:0,endAngle:360}),jme=(0,o.forwardRef)((e,t)=>{var n=yme(e,Eme);return o.createElement(bme,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:Ame,tooltipPayloadSearcher:y7,categoricalChartProps:n,ref:t})}),Sme=e=>e.graphicalItems.polarItems,Nme=ate([Ule,Vle],dce),Pme=ate([Sme,lce,Nme],fce),Tme=ate([Pme],wce),Fme=ate([Tme,Ese],xce),Ome=ate([Fme,lce,Pme],kce),Ime=(ate([Fme,lce,Pme],(e,t,n)=>n.length>0?e.flatMap(e=>n.flatMap(n=>{var a;return{value:Ete(e,null!==(a=t.dataKey)&&void 0!==a?a:n.dataKey),errorDomain:[]}})).filter(Boolean):null!=(null===t||void 0===t?void 0:t.dataKey)?e.map(e=>({value:Ete(e,t.dataKey),errorDomain:[]})):e.map(e=>({value:e,errorDomain:[]}))),()=>{}),Rme=ate([Fme,lce,Pme,Lce,Ule],Vce),Mme=ate([lce,Mce,Bce,Ime,Rme,Ime,pne,Ule],oue),Bme=ate([lce,pne,Fme,Ome,Qse,Ule,Mme],lue),zme=ate([Bme,lce,due],pue);ate([lce,Bme,zme,Ule],mue);function Lme(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Ume(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lme(Object(n),!0).forEach(function(t){Vme(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lme(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vme(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qme=ate([Sme,(e,t)=>t],(e,t)=>e.filter(e=>"pie"===e.type).find(e=>e.id===t)),Hme=[],Wme=(e,t,n)=>0===(null===n||void 0===n?void 0:n.length)?Hme:n,Kme=ate([Ese,qme,Wme],(e,t,n)=>{var a,{chartData:r}=e;if(null!=t&&((a=null!=(null===t||void 0===t?void 0:t.data)&&t.data.length>0?t.data:r)&&a.length||null==n||(a=n.map(e=>Ume(Ume({},t.presentationProps),e.props))),null!=a))return a}),Yme=ate([Kme,qme,Wme],(e,t,n)=>{if(null!=e&&null!=t)return e.map((e,a)=>{var r,o,i=Ete(e,t.nameKey,t.name);return o=null!==n&&void 0!==n&&null!==(r=n[a])&&void 0!==r&&null!==(r=r.props)&&void 0!==r&&r.fill?n[a].props.fill:"object"===typeof e&&null!=e&&"fill"in e?e.fill:t.fill,{value:Vte(i,t.dataKey),color:o,payload:e,type:t.legendType}})}),Gme=ate([Kme,qme,Wme,ene],(e,t,n,a)=>{if(null!=t&&null!=e)return function(e){var t,n,a,{pieSettings:r,displayedData:o,cells:i,offset:s}=e,{cornerRadius:l,startAngle:c,endAngle:u,dataKey:d,nameKey:h,tooltipType:p}=r,f=Math.abs(r.minAngle),m=rxe(c,u),g=Math.abs(m),v=o.length<=1?0:null!==(t=r.paddingAngle)&&void 0!==t?t:0,y=o.filter(e=>0!==Ete(e,d,0)).length,w=g-y*f-(g>=360?y:y-1)*v,_=o.reduce((e,t)=>{var n=Ete(t,d,0);return e+(x6(n)?n:0)},0);_>0&&(n=o.map((e,t)=>{var n,o=Ete(e,d,0),u=Ete(e,h,t),g=axe(r,s,e),y=(x6(o)?o:0)/_,x=$_e($_e({},e),i&&i[t]&&i[t].props),b=(n=t?a.endAngle+y6(m)*v*(0!==o?1:0):c)+y6(m)*((0!==o?f:0)+y*w),k=(n+b)/2,C=(g.innerRadius+g.outerRadius)/2,D=[{name:u,value:o,payload:x,dataKey:d,type:p,graphicalItemId:r.id}],A=lle(g.cx,g.cy,C,k);return a=$_e($_e($_e($_e({},r.presentationProps),{},{percent:y,cornerRadius:"string"===typeof l?parseFloat(l):l,name:u,tooltipPayload:D,midAngle:k,middleRadius:C,tooltipPosition:A},x),g),{},{value:o,dataKey:d,startAngle:n,endAngle:b,payload:x,paddingAngle:y6(m)*v})}));return n}({offset:a,pieSettings:t,displayedData:e,cells:n})}),Jme=["children","className"];function $me(){return $me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},$me.apply(null,arguments)}var Qme,Xme,Zme,ege,tge,nge,age,rge,oge,ige,sge,lge,cge,uge,dge=o.forwardRef((e,t)=>{var{children:n,className:a}=e,r=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,Jme),i=Dd("recharts-layer",a);return o.createElement("g",$me({className:i},Dfe(r),{ref:t}),n)});function hge(){}function pge(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function fge(e){this._context=e}function mge(e){this._context=e}function gge(e){this._context=e}fge.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:pge(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:pge(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},mge.prototype={areaStart:hge,areaEnd:hge,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:pge(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},gge.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,a=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,a):this._context.moveTo(n,a);break;case 3:this._point=4;default:pge(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class vge{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function yge(e){this._context=e}function wge(e){this._context=e}function _ge(e){return new wge(e)}function xge(e){return e<0?-1:1}function bge(e,t,n){var a=e._x1-e._x0,r=t-e._x1,o=(e._y1-e._y0)/(a||r<0&&-0),i=(n-e._y1)/(r||a<0&&-0),s=(o*r+i*a)/(a+r);return(xge(o)+xge(i))*Math.min(Math.abs(o),Math.abs(i),.5*Math.abs(s))||0}function kge(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Cge(e,t,n){var a=e._x0,r=e._y0,o=e._x1,i=e._y1,s=(o-a)/3;e._context.bezierCurveTo(a+s,r+s*t,o-s,i-s*n,o,i)}function Dge(e){this._context=e}function Age(e){this._context=new Ege(e)}function Ege(e){this._context=e}function jge(e){this._context=e}function Sge(e){var t,n,a=e.length-1,r=new Array(a),o=new Array(a),i=new Array(a);for(r[0]=0,o[0]=2,i[0]=e[0]+2*e[1],t=1;t<a-1;++t)r[t]=1,o[t]=4,i[t]=4*e[t]+2*e[t+1];for(r[a-1]=2,o[a-1]=7,i[a-1]=8*e[a-1]+e[a],t=1;t<a;++t)n=r[t]/o[t-1],o[t]-=n,i[t]-=n*i[t-1];for(r[a-1]=i[a-1]/o[a-1],t=a-2;t>=0;--t)r[t]=(i[t]-r[t+1])/o[t];for(o[a-1]=(e[a]+r[a-1])/2,t=0;t<a-1;++t)o[t]=2*e[t+1]-r[t+1];return[r,o]}function Nge(e,t){this._context=e,this._t=t}yge.prototype={areaStart:hge,areaEnd:hge,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},wge.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},Dge.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:Cge(this,this._t0,kge(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Cge(this,kge(this,n=bge(this,e,t)),n);break;default:Cge(this,this._t0,n=bge(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(Age.prototype=Object.create(Dge.prototype)).point=function(e,t){Dge.prototype.point.call(this,t,e)},Ege.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,a,r,o){this._context.bezierCurveTo(t,e,a,n,o,r)}},jge.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var a=Sge(e),r=Sge(t),o=0,i=1;i<n;++o,++i)this._context.bezierCurveTo(a[0][o],r[0][o],a[1][o],r[1][o],e[i],t[i]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},Nge.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};const Pge=Math.PI,Tge=2*Pge,Fge=1e-6,Oge=Tge-Fge;function Ige(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class Rge{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?Ige:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error("invalid digits: ".concat(e));if(t>15)return Ige;const n=10**t;return function(e){this._+=e[0];for(let t=1,a=e.length;t<a;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append(Qme||(Qme=Ht(["M",",",""])),this._x0=this._x1=+e,this._y0=this._y1=+t)}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append(Xme||(Xme=Ht(["Z"]))))}lineTo(e,t){this._append(Zme||(Zme=Ht(["L",",",""])),this._x1=+e,this._y1=+t)}quadraticCurveTo(e,t,n,a){this._append(ege||(ege=Ht(["Q",",",",",",",""])),+e,+t,this._x1=+n,this._y1=+a)}bezierCurveTo(e,t,n,a,r,o){this._append(tge||(tge=Ht(["C",",",",",",",",",",",""])),+e,+t,+n,+a,this._x1=+r,this._y1=+o)}arcTo(e,t,n,a,r){if(e=+e,t=+t,n=+n,a=+a,(r=+r)<0)throw new Error("negative radius: ".concat(r));let o=this._x1,i=this._y1,s=n-e,l=a-t,c=o-e,u=i-t,d=c*c+u*u;if(null===this._x1)this._append(nge||(nge=Ht(["M",",",""])),this._x1=e,this._y1=t);else if(d>Fge)if(Math.abs(u*s-l*c)>Fge&&r){let h=n-o,p=a-i,f=s*s+l*l,m=h*h+p*p,g=Math.sqrt(f),v=Math.sqrt(d),y=r*Math.tan((Pge-Math.acos((f+d-m)/(2*g*v)))/2),w=y/v,_=y/g;Math.abs(w-1)>
2Fge&&this._append(rge||(rge=Ht(["L",",",""])),e+w*c,t+w*u),this._append(oge||(oge=Ht(["A",",",",0,0,",",",",",""])),r,r,+(u*h>c*p),this._x1=e+_*s,this._y1=t+_*l)}else this._append(age||(age=Ht(["L",",",""])),this._x1=e,this._y1=t);else;}arc(e,t,n,a,r,o){if(e=+e,t=+t,o=!!o,(n=+n)<0)throw new Error("negative radius: ".concat(n));let i=n*Math.cos(a),s=n*Math.sin(a),l=e+i,c=t+s,u=1^o,d=o?a-r:r-a;null===this._x1?this._append(ige||(ige=Ht(["M",",",""])),l,c):(Math.abs(this._x1-l)>Fge||Math.abs(this._y1-c)>Fge)&&this._append(sge||(sge=Ht(["L",",",""])),l,c),n&&(d<0&&(d=d%Tge+Tge),d>Oge?this._append(lge||(lge=Ht(["A",",",",0,1,",",",",","A",",",",0,1,",",",",",""])),n,n,u,e-i,t-s,n,n,u,this._x1=l,this._y1=c):d>Fge&&this._append(cge||(cge=Ht(["A",",",",0,",",",",",",",""])),n,n,+(d>=Pge),u,this._x1=e+n*Math.cos(r),this._y1=t+n*Math.sin(r)))}rect(e,t,n,a){this._append(uge||(uge=Ht(["M",",","h","v","h","Z"])),this._x0=this._x1=+e,this._y0=this._y1=+t,n=+n,+a,-n)}toString(){return this._}}function Mge(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError("invalid digits: ".concat(n));t=e}return e},()=>new Rge(t)}function Bge(e){return e[0]}function zge(e){return e[1]}function Lge(e,t){var n=wte(!0),a=null,r=_ge,o=null,i=Mge(s);function s(s){var l,c,u,d=(s=yte(s)).length,h=!1;for(null==a&&(o=r(u=i())),l=0;l<=d;++l)!(l<d&&n(c=s[l],l,s))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+e(c,l,s),+t(c,l,s));if(u)return o=null,u+""||null}return e="function"===typeof e?e:void 0===e?Bge:wte(e),t="function"===typeof t?t:void 0===t?zge:wte(t),s.x=function(t){return arguments.length?(e="function"===typeof t?t:wte(+t),s):e},s.y=function(e){return arguments.length?(t="function"===typeof e?e:wte(+e),s):t},s.defined=function(e){return arguments.length?(n="function"===typeof e?e:wte(!!e),s):n},s.curve=function(e){return arguments.length?(r=e,null!=a&&(o=r(a)),s):r},s.context=function(e){return arguments.length?(null==e?a=o=null:o=r(a=e),s):a},s}function Uge(e,t,n){var a=null,r=wte(!0),o=null,i=_ge,s=null,l=Mge(c);function c(c){var u,d,h,p,f,m=(c=yte(c)).length,g=!1,v=new Array(m),y=new Array(m);for(null==o&&(s=i(f=l())),u=0;u<=m;++u){if(!(u<m&&r(p=c[u],u,c))===g)if(g=!g)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),h=u-1;h>=d;--h)s.point(v[h],y[h]);s.lineEnd(),s.areaEnd()}g&&(v[u]=+e(p,u,c),y[u]=+t(p,u,c),s.point(a?+a(p,u,c):v[u],n?+n(p,u,c):y[u]))}if(f)return s=null,f+""||null}function u(){return Lge().defined(r).curve(i).context(o)}return e="function"===typeof e?e:void 0===e?Bge:wte(+e),t="function"===typeof t?t:wte(void 0===t?0:+t),n="function"===typeof n?n:void 0===n?zge:wte(+n),c.x=function(t){return arguments.length?(e="function"===typeof t?t:wte(+t),a=null,c):e},c.x0=function(t){return arguments.length?(e="function"===typeof t?t:wte(+t),c):e},c.x1=function(e){return arguments.length?(a=null==e?null:"function"===typeof e?e:wte(+e),c):a},c.y=function(e){return arguments.length?(t="function"===typeof e?e:wte(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"===typeof e?e:wte(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"===typeof e?e:wte(+e),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(a).y(t)},c.defined=function(e){return arguments.length?(r="function"===typeof e?e:wte(!!e),c):r},c.curve=function(e){return arguments.length?(i=e,null!=o&&(s=i(o)),c):i},c.context=function(e){return arguments.length?(null==e?o=s=null:s=i(o=e),c):o},c}var Vge=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,qge=(e,t)=>{if(!e||"function"===typeof e||"boolean"===typeof e)return null;var n=e;if((0,o.isValidElement)(e)&&(n=e.props),"object"!==typeof n&&"function"!==typeof n)return null;var a={};return Object.keys(n).forEach(e=>{wfe(e)&&(a[e]=t||(t=>n[e](n,t)))}),a},Hge=(e,t,n)=>{if(null===e||"object"!==typeof e&&"function"!==typeof e)return null;var a=null;return Object.keys(e).forEach(r=>{var o=e[r];wfe(r)&&"function"===typeof o&&(a||(a={}),a[r]=((e,t,n)=>a=>(e(t,n,a),null))(o,t,n))}),a};function Wge(){return Wge=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Wge.apply(null,arguments)}function Kge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Yge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?Kge(Object(n),!0).forEach(function(t){Gge(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kge(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gge(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jge={curveBasisClosed:function(e){return new mge(e)},curveBasisOpen:function(e){return new gge(e)},curveBasis:function(e){return new fge(e)},curveBumpX:function(e){return new vge(e,!0)},curveBumpY:function(e){return new vge(e,!1)},curveLinearClosed:function(e){return new yge(e)},curveLinear:_ge,curveMonotoneX:function(e){return new Dge(e)},curveMonotoneY:function(e){return new Age(e)},curveNatural:function(e){return new jge(e)},curveStep:function(e){return new Nge(e,.5)},curveStepAfter:function(e){return new Nge(e,1)},curveStepBefore:function(e){return new Nge(e,0)}},$ge=e=>L6(e.x)&&L6(e.y),Qge=e=>null!=e.base&&$ge(e.base)&&$ge(e),Xge=e=>e.x,Zge=e=>e.y,eve=e=>{var{type:t="linear",points:n=[],baseLine:a,layout:r,connectNulls:o=!1}=e,i=((e,t)=>{if("function"===typeof e)return e;var n="curve".concat(N6(e));return"curveMonotone"!==n&&"curveBump"!==n||!t?Jge[n]||_ge:Jge["".concat(n).concat("vertical"===t?"Y":"X")]})(t,r),s=o?n.filter($ge):n;if(Array.isArray(a)){var l=n.map((e,t)=>Yge(Yge({},e),{},{base:a[t]}));return("vertical"===r?Uge().y(Zge).x1(Xge).x0(e=>e.base.x):Uge().x(Xge).y1(Zge).y0(e=>e.base.y)).defined(Qge).curve(i)(o?l.filter(Qge):l)}return("vertical"===r&&x6(a)?Uge().y(Zge).x1(Xge).x0(a):x6(a)?Uge().x(Xge).y1(Zge).y0(a):Lge().x(Xge).y(Zge)).defined($ge).curve(i)(s)},tve=e=>{var{className:t,points:n,path:a,pathRef:r}=e,i=fne();if((!n||!n.length)&&!a)return null;var s={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||i,connectNulls:e.connectNulls},l=n&&n.length?eve(s):a;return o.createElement("path",Wge({},kfe(e),qge(e),{className:Dd("recharts-curve",t),d:null===l?void 0:l,ref:r}))};function nve(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ave(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function rve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ave(Object(n),!0).forEach(function(t){ove(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ave(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ove(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ive=rve({},{cacheSize:2e3,enableCache:!0}),sve=new class{constructor(e){nve(this,"cache",new Map),this.maxSize=e}get(e){var t=this.cache.get(e);return void 0!==t&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;null!=n&&this.cache.delete(n)}this.cache.set(e,t)}clear(){this.cache.clear()}size(){return this.cache.size}}(ive.cacheSize),lve={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},cve="recharts_measurement_span";var uve=(e,t)=>
vendor: 4,739 bytes, line 2
2{try{var n=document.getElementById(cve);n||((n=document.createElement("span")).setAttribute("id",cve),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),Object.assign(n.style,lve,t),n.textContent="".concat(e);var a=n.getBoundingClientRect();return{width:a.width,height:a.height}}catch(r){return{width:0,height:0}}},dve=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e||null===e||$pe)return{width:0,height:0};if(!ive.enableCache)return uve(e,t);var n=function(e,t){var n=t.fontSize||"",a=t.fontFamily||"",r=t.fontWeight||"",o=t.fontStyle||"",i=t.letterSpacing||"",s=t.textTransform||"";return"".concat(e,"|").concat(n,"|").concat(a,"|").concat(r,"|").concat(o,"|").concat(i,"|").concat(s)}(e,t),a=sve.get(n);if(a)return a;var r=uve(e,t);return sve.set(n,r),r};var hve=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,pve=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,fve=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,mve=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,gve={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},vve=["cm","mm","pt","pc","in","Q","px"];var yve="NaN";class wve{static parse(e){var t,[,n,a]=null!==(t=mve.exec(e))&&void 0!==t?t:[];return null==n?wve.NaN:new wve(parseFloat(n),null!==a&&void 0!==a?a:"")}constructor(e,t){this.num=e,this.unit=t,this.num=e,this.unit=t,w6(e)&&(this.unit=""),""===t||fve.test(t)||(this.num=NaN,this.unit=""),function(e){return vve.includes(e)}(t)&&(this.num=function(e,t){return e*gve[t]}(e,t),this.unit="px")}add(e){return this.unit!==e.unit?new wve(NaN,""):new wve(this.num+e.num,this.unit)}subtract(e){return this.unit!==e.unit?new wve(NaN,""):new wve(this.num-e.num,this.unit)}multiply(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new wve(NaN,""):new wve(this.num*e.num,this.unit||e.unit)}divide(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new wve(NaN,""):new wve(this.num/e.num,this.unit||e.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return w6(this.num)}}function _ve(e){if(null==e||e.includes(yve))return yve;for(var t=e;t.includes("*")||t.includes("/");){var n,[,a,r,o]=null!==(n=hve.exec(t))&&void 0!==n?n:[],i=wve.parse(null!==a&&void 0!==a?a:""),s=wve.parse(null!==o&&void 0!==o?o:""),l="*"===r?i.multiply(s):i.divide(s);if(l.isNaN())return yve;t=t.replace(hve,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,u,d,h]=null!==(c=pve.exec(t))&&void 0!==c?c:[],p=wve.parse(null!==u&&void 0!==u?u:""),f=wve.parse(null!==h&&void 0!==h?h:""),m="+"===d?p.add(f):p.subtract(f);if(m.isNaN())return yve;t=t.replace(pve,m.toString())}return t}!function(e,t,n){(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(wve,"NaN",new wve(NaN,""));var xve=/\(([^()]*)\)/;function bve(e){var t=e.replace(/\s+/g,"");return t=function(e){for(var t,n=e;null!=(t=xve.exec(n));){var[,a]=t;n=n.replace(xve,_ve(a))}return n}(t),t=_ve(t)}function kve(e){var t=function(e){try{return bve(e)}catch(t){return yve}}(e.slice(5,-1));return t===yve?"":t}var Cve=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],Dve=["dx","dy","angle","className","breakAll"];function Ave(){return Ave=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Ave.apply(null,arguments)}function Eve(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var jve=/[ \f\n\r\t\v\u2028\u2029]+/,Sve=e=>{var{children:t,breakAll:n,style:a}=e;try{var r=[];return S6(t)||(r=n?t.toString().split(""):t.toString().split(jve)),{wordsWithComputedWidth:r.map(e=>({word:e,width:dve(e,a).width})),spaceWidth:n?0:dve("\xa0",a).width}}catch(o){return null}};function Nve(e){return"start"===e||"middle"===e||"end"===e||"inherit"===e}var Pve=(e,t,n,a)=>e.reduce((e,r)=>{var{word:o,width:i}=r,s=e[e.length-1];if(s&&null!=i&&(null==t||a||s.width+i+n<Number(t)))s.words.push(o),s.width+=i+n;else{var l={words:[o],width:i};e.push(l)}return e},[]),Tve=e=>e.reduce((e,t)=>
2e.width>t.width?e:t),Fve=(e,t,n,a,r,o,i,s)=>{var l=e.slice(0,t),c=Sve({breakAll:n,style:a,children:l+"\u2026"});if(!c)return[!1,[]];var u=Pve(c.wordsWithComputedWidth,o,i,s);return[u.length>r||Tve(u).width>Number(o),u]},Ove=e=>[{words:S6(e)?[]:e.toString().split(jve),width:void 0}],Ive=e=>{var{width:t,scaleToFit:n,children:a,style:r,breakAll:o,maxLines:i}=e;if((t||n)&&!$pe){var s=Sve({breakAll:o,children:a,style:r});if(!s)return Ove(a);var{wordsWithComputedWidth:l,spaceWidth:c}=s;return((e,t,n,a,r)=>{var{maxLines:o,children:i,style:s,breakAll:l}=e,c=x6(o),u=String(i),d=Pve(t,a,n,r);if(!c||r)return d;if(!(d.length>o||Tve(d).width>Number(a)))return d;for(var h,p=0,f=u.length-1,m=0;p<=f&&m<=u.length-1;){var g=Math.floor((p+f)/2),v=g-1,[y,w]=Fve(u,v,l,s,o,a,n,r),[_]=Fve(u,g,l,s,o,a,n,r);if(y||_||(p=g+1),y&&_&&(f=g-1),!y&&_){h=w;break}m++}return h||d})({breakAll:o,children:a,maxLines:i,style:r},l,c,t,Boolean(n))}return Ove(a)},Rve="#808080",Mve={angle:0,breakAll:!1,capHeight:"0.71em",fill:Rve,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},Bve=(0,o.forwardRef)((e,t)=>{var n=yme(e,Mve),{x:a,y:r,lineHeight:i,capHeight:s,fill:l,scaleToFit:c,textAnchor:u,verticalAnchor:d}=n,h=Eve(n,Cve),p=(0,o.useMemo)(()=>Ive({breakAll:h.breakAll,children:h.children,maxLines:h.maxLines,scaleToFit:c,style:h.style,width:h.width}),[h.breakAll,h.children,h.maxLines,c,h.style,h.width]),{dx:f,dy:m,angle:g,className:v,breakAll:y}=h,w=Eve(h,Dve);if(!b6(a)||!b6(r)||0===p.length)return null;var _,x=Number(a)+(x6(f)?f:0),b=Number(r)+(x6(m)?m:0);if(!L6(x)||!L6(b))return null;switch(d){case"start":_=kve("calc(".concat(s,")"));break;case"middle":_=kve("calc(".concat((p.length-1)/2," * -").concat(i," + (").concat(s," / 2))"));break;default:_=kve("calc(".concat(p.length-1," * -").concat(i,")"))}var k=[];if(c){var C=p[0].width,{width:D}=h;k.push("scale(".concat(x6(D)&&x6(C)?D/C:1,")"))}return g&&k.push("rotate(".concat(g,", ").concat(x,", ").concat(b,")")),k.length&&(w.transform=k.join(" ")),o.createElement("text",Ave({},Dfe(w),{ref:t,x:x,y:b,className:Dd("recharts-text",v),textAnchor:u,fill:l.includes("url")?Rve:l}),p.map((e,t)=>{var n=e.words.join(y?"":" ");return o.createElement("tspan",{x:x,dy:0===t?_:i,key:"".concat(n,"-").concat(t)},n)}))});Bve.displayName="Text";var zve=e=>null;zve.displayName="Cell";var Lve=n(2086),Uve=e=>"string"===typeof e?e:e?e.displayName||e.name||"Component":"",Vve=null,qve=null,Hve=e=>{if(e===Vve&&Array.isArray(qve))return qve;var t=[];return o.Children.forEach(e,e=>{S6(e)||((0,Lve.isFragment)(e)?t=t.concat(Hve(e.props.children)):t.push(e))}),qve=t,Vve=e,t};function Wve(e,t){var n=[],a=[];return a=Array.isArray(t)?t.map(e=>Uve(e)):[Uve(t)],Hve(e).forEach(e=>{var t=m6()(e,"type.displayName")||m6()(e,"type.name");t&&-1!==a.indexOf(t)&&n.push(e)}),n}var Kve=e=>!e||"object"!==typeof e||!("clipDot"in e)||Boolean(e.clipDot),Yve=n(9397),Gve=n.n(Yve);function Jve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function $ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jve(Object(n),!0).forEach(function(t){Qve(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jve(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qve(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xve=(e,t,n)=>e.map(e=>{return"".concat((a=e,a.replace(/([A-Z])/g,e=>"-".concat(e.toLowerCase())))," ").concat(t,"ms ").concat(n);var a}).join(","),Zve=(e,t)=>
2Object.keys(t).reduce((n,a)=>$ve($ve({},n),{},{[a]:e(a,t[a])}),{});function eye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function tye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eye(Object(n),!0).forEach(function(t){nye(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eye(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nye(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var aye=(e,t,n)=>e+(t-e)*n,rye=e=>{var{from:t,to:n}=e;return t!==n},oye=(e,t,n)=>{var a=Zve((t,n)=>{if(rye(n)){var[a,r]=e(n.from,n.to,n.velocity);return tye(tye({},n),{},{from:a,velocity:r})}return n},t);return n<1?Zve((e,t)=>rye(t)&&null!=a[e]?tye(tye({},t),{},{velocity:aye(t.velocity,a[e].velocity,n),from:aye(t.from,a[e].from,n)}):t,t):oye(e,a,n-1)};function iye(e,t,n,a,r,o){var i,s=a.reduce((n,a)=>tye(tye({},n),{},{[a]:{from:e[a],velocity:0,to:t[a]}}),{}),l=null,c=a=>{i||(i=a);var u=(a-i)/n.dt;s=oye(n,s,u),r(tye(tye(tye({},e),t),Zve((e,t)=>t.from,s))),i=a,Object.values(s).filter(rye).length&&(l=o.setTimeout(c))};return()=>(l=o.setTimeout(c),()=>{var e;null===(e=l)||void 0===e||e()})}const sye=(e,t,n,a,r,o)=>{var i,s,l=(i=e,s=t,[Object.keys(i),Object.keys(s)].reduce((e,t)=>e.filter(e=>t.includes(e))));return null==n?()=>(r(tye(tye({},e),t)),()=>{}):!0===n.isStepper?iye(e,t,n,l,r,o):function(e,t,n,a,r,o,i){var s,l=null,c=r.reduce((n,a)=>{var r=e[a],o=t[a];return null==r||null==o?n:tye(tye({},n),{},{[a]:[r,o]})},{}),u=r=>{s||(s=r);var d=(r-s)/a,h=Zve((e,t)=>aye(...t,n(d)),c);if(o(tye(tye(tye({},e),t),h)),d<1)l=i.setTimeout(u);else{var p=Zve((e,t)=>aye(...t,n(1)),c);o(tye(tye(tye({},e),t),p))}};return()=>(l=i.setTimeout(u),()=>{var e;null===(e=l)||void 0===e||e()})}(e,t,n,a,l,r,o)};var lye=1e-4,cye=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],uye=(e,t)=>e.map((e,n)=>e*t**n).reduce((e,t)=>e+t),dye=(e,t)=>n=>{var a=cye(e,t);return uye(a,n)},hye=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length)switch(t[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:var a=(e=>{var t,n=e.split("(");if(2!==n.length||"cubic-bezier"!==n[0])return null;var a=null===(t=n[1])||void 0===t||null===(t=t.split(")")[0])||void 0===t?void 0:t.split(",");if(null==a||4!==a.length)return null;var r=a.map(e=>parseFloat(e));return[r[0],r[1],r[2],r[3]]})(t[0]);if(a)return a}return 4===t.length?t:[0,0,1,1]},pye=(e,t,n,a)=>{var r,o,i=dye(e,n),s=dye(t,a),l=(r=e,o=n,e=>{var t=[...cye(r,o).map((e,t)=>e*t).slice(1),0];return uye(t,e)}),c=e=>e>1?1:e<0?0:e,u=e=>{for(var t=e>1?1:e,n=t,a=0;a<8;++a){var r=i(n)-t,o=l(n);if(Math.abs(r-t)<lye||o<lye)return s(n);n=c(n-r/o)}return s(n)};return u.isStepper=!1,u},fye=function(){return pye(...hye(...arguments))},mye=e=>{if("string"===typeof e)switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return fye(e);case"spring":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{stiff:t=100,damping:n=8,dt:a=17}=e,r=(e,r,o)=>{var i=o+(-(e-r)*t-o*n)*a/1e3,s=o*a/1e3+e;return Math.abs(s-r)<lye&&Math.abs(i)<lye?[r,0]:[s,i]};return r.isStepper=!0,r.dt=a,r}();default:if("cubic-bezier"===e.split("(")[0])return fye(e)}return"function"===typeof e?e:null};class gye{setTimeout(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=performance.now(),a=null,r=o=>{o-n>=t?e(o):"function"===typeof requestAnimationFrame&&(a=requestAnimationFrame(r))};return a=requestAnimationFrame(r),()=>{null!=a&&cancelAnimationFrame(a)}}}function vye(){return function(e){var t=()=>null,n=!1,a=null,r=o=>
2{if(!n){if(Array.isArray(o)){if(!o.length)return;var i=o,[s,...l]=i;return"number"===typeof s?void(a=e.setTimeout(r.bind(null,l),s)):(r(s),void(a=e.setTimeout(r.bind(null,l))))}"string"===typeof o&&t(o),"object"===typeof o&&t(o),"function"===typeof o&&o()}};return{stop:()=>{n=!0},start:e=>{n=!1,a&&(a(),a=null),r(e)},subscribe:e=>(t=e,()=>{t=()=>null}),getTimeoutController:()=>e}}(new gye)}var yye=(0,o.createContext)(vye);var wye={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},_ye={t:0},xye={t:1};function bye(e){var t=yme(e,wye),{isActive:n,canBegin:a,duration:r,easing:i,begin:s,onAnimationEnd:l,onAnimationStart:c,children:u}=t,d="auto"===n?!$pe:n,h=function(e,t){var n=(0,o.useContext)(yye);return(0,o.useMemo)(()=>null!==t&&void 0!==t?t:n(e),[e,t,n])}(t.animationId,t.animationManager),[p,f]=(0,o.useState)(d?_ye:xye),m=(0,o.useRef)(null);return(0,o.useEffect)(()=>{d||f(xye)},[d]),(0,o.useEffect)(()=>{if(!d||!a)return T6;var e=sye(_ye,xye,mye(i),r,f,h.getTimeoutController());return h.start([c,s,()=>{m.current=e()},r,l]),()=>{h.stop(),m.current&&m.current(),l()}},[d,a,r,i,s,c,l,h]),u(p.t)}function kye(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"animation-",n=(0,o.useRef)(C6(t)),a=(0,o.useRef)(e);return a.current!==e&&(n.current=C6(t),a.current=e),n.current}var Cye,Dye,Aye,Eye,jye,Sye,Nye,Pye,Tye,Fye,Oye=["radius"],Iye=["radius"];function Rye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Mye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rye(Object(n),!0).forEach(function(t){Bye(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rye(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bye(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zye(){return zye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},zye.apply(null,arguments)}function Lye(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Uye(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Vye,qye,Hye,Wye,Kye,Yye=(e,t,n,a,r)=>{var o,i=g6(n),s=g6(a),l=Math.min(Math.abs(i)/2,Math.abs(s)/2),c=s>=0?1:-1,u=i>=0?1:-1,d=s>=0&&i>=0||s<0&&i<0?1:0;if(l>0&&r instanceof Array){for(var h=[0,0,0,0],p=0;p<4;p++)h[p]=r[p]>l?l:r[p];o=v6(Cye||(Cye=Uye(["M",",",""])),e,t+c*h[0]),h[0]>0&&(o+=v6(Dye||(Dye=Uye(["A ",",",",0,0,",",",",",""])),h[0],h[0],d,e+u*h[0],t)),o+=v6(Aye||(Aye=Uye(["L ",",",""])),e+n-u*h[1],t),h[1]>0&&(o+=v6(Eye||(Eye=Uye(["A ",",",",0,0,",",\n        ",",",""])),h[1],h[1],d,e+n,t+c*h[1])),o+=v6(jye||(jye=Uye(["L ",",",""])),e+n,t+a-c*h[2]),h[2]>0&&(o+=v6(Sye||(Sye=Uye(["A ",",",",0,0,",",\n        ",",",""])),h[2],h[2],d,e+n-u*h[2],t+a)),o+=v6(Nye||(Nye=Uye(["L ",",",""])),e+u*h[3],t+a),h[3]>0&&(o+=v6(Pye||(Pye=Uye(["A ",",",",0,0,",",\n        ",",",""])),h[3],h[3],d,e,t+a-c*h[3])),o+="Z"}else if(l>0&&r===+r&&r>0){var f=Math.min(l,r);o=v6(Tye||(Tye=Uye(["M ",",","\n            A ",",",",0,0,",",",",","\n            L ",",","\n            A ",",",",0,0,",",",",","\n            L ",",","\n            A ",",",",0,0,",",",",","\n            L ",",","\n            A ",",",",0,0,",",",","," Z"])),e,t+c*f,f,f,d,e+u*f,t,e+n-u*f,t,f,f,d,e+n,t+c*f,e+n,t+a-c*f,f,f,d,e+n-u*f,t+a,e+u*f,t+a,f,f,d,e,t+a-c*f)}else o=v6(Fye||(Fye=Uye(["M ",","," h "," v "," h "," Z"])),e,t,n,a,-n);return o},Gye={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Jye=e=>{var t=yme(e,Gye),n=(0,o.useRef)(null),[a,r]=(0,o.useState)(-1);(0,o.useEffect)(()=>
vendor: 9,688 bytes, line 2
2{if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&r(e)}catch(t){}},[]);var{x:i,y:s,width:l,height:c,radius:u,className:d}=t,{animationEasing:h,animationDuration:p,animationBegin:f,isAnimationActive:m,isUpdateAnimationActive:g}=t,v=(0,o.useRef)(l),y=(0,o.useRef)(c),w=(0,o.useRef)(i),_=(0,o.useRef)(s),x=kye((0,o.useMemo)(()=>({x:i,y:s,width:l,height:c,radius:u}),[i,s,l,c,u]),"rectangle-");if(i!==+i||s!==+s||l!==+l||c!==+c||0===l||0===c)return null;var b=Dd("recharts-rectangle",d);if(!g){var k=Dfe(t),{radius:C}=k,D=Lye(k,Oye);return o.createElement("path",zye({},D,{x:g6(i),y:g6(s),width:g6(l),height:g6(c),radius:"number"===typeof u?u:void 0,className:b,d:Yye(i,s,l,c,u)}))}var A=v.current,E=y.current,j=w.current,S=_.current,N="0px ".concat(-1===a?1:a,"px"),P="".concat(a,"px 0px"),T=Xve(["strokeDasharray"],p,"string"===typeof h?h:Gye.animationEasing);return o.createElement(bye,{animationId:x,key:x,canBegin:a>0,duration:p,easing:h,isActive:g,begin:f},e=>{var a,r=E6(A,l,e),d=E6(E,c,e),h=E6(j,i,e),p=E6(S,s,e);n.current&&(v.current=r,y.current=d,w.current=h,_.current=p),a=m?e>0?{transition:T,strokeDasharray:P}:{strokeDasharray:N}:{strokeDasharray:P};var f=Dfe(t),{radius:g}=f,x=Lye(f,Iye);return o.createElement("path",zye({},x,{radius:"number"===typeof u?u:void 0,className:b,d:Yye(h,p,r,d,u),ref:n,style:Mye(Mye({},a),t.style)}))})};function $ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Qye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$ye(Object(n),!0).forEach(function(t){Xye(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$ye(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xye(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zye(){return Zye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Zye.apply(null,arguments)}function ewe(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var twe,nwe,awe,rwe,owe,iwe,swe,lwe=(e,t,n,a,r)=>{var o,i=n-a;return o=v6(Vye||(Vye=ewe(["M ",",",""])),e,t),o+=v6(qye||(qye=ewe(["L ",",",""])),e+n,t),o+=v6(Hye||(Hye=ewe(["L ",",",""])),e+n-i/2,t+r),o+=v6(Wye||(Wye=ewe(["L ",",",""])),e+n-i/2-a,t+r),o+=v6(Kye||(Kye=ewe(["L ",","," Z"])),e,t)},cwe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},uwe=e=>{var t=yme(e,cwe),{x:n,y:a,upperWidth:r,lowerWidth:i,height:s,className:l}=t,{animationEasing:c,animationDuration:u,animationBegin:d,isUpdateAnimationActive:h}=t,p=(0,o.useRef)(null),[f,m]=(0,o.useState)(-1),g=(0,o.useRef)(r),v=(0,o.useRef)(i),y=(0,o.useRef)(s),w=(0,o.useRef)(n),_=(0,o.useRef)(a),x=kye(e,"trapezoid-");if((0,o.useEffect)(()=>{if(p.current&&p.current.getTotalLength)try{var e=p.current.getTotalLength();e&&m(e)}catch(t){}},[]),n!==+n||a!==+a||r!==+r||i!==+i||s!==+s||0===r&&0===i||0===s)return null;var b=Dd("recharts-trapezoid",l);if(!h)return o.createElement("g",null,o.createElement("path",Zye({},Dfe(t),{className:b,d:lwe(n,a,r,i,s)})));var k=g.current,C=v.current,D=y.current,A=w.current,E=_.current,j="0px ".concat(-1===f?1:f,"px"),S="".concat(f,"px 0px"),N=Xve(["strokeDasharray"],u,c);return o.createElement(bye,{animationId:x,key:x,canBegin:f>0,duration:u,easing:c,isActive:h,begin:d},e=>{var l=E6(k,r,e),c=E6(C,i,e),u=E6(D,s,e),d=E6(A,n,e),h=E6(E,a,e);p.current&&(g.current=l,v.current=c,y.current=u,w.current=d,_.current=h);var f=e>0?{transition:N,strokeDasharray:S}:{strokeDasharray:j};return o.createElement("path",Zye({},Dfe(t),{className:b,d:lwe(d,h,l,c,u),ref:p,style:Qye(Qye({},f),t.style)}))})};function dwe(){return dwe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},dwe.apply(null,arguments)}function hwe(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var pwe=e=>{var{cx:t,cy:n,radius:a,angle:r,sign:o,isExternal:i,cornerRadius:s,cornerIsExternal:l}=e,c=s*(i?1:-1)+a,u=Math.asin(s/c)/ile,d=l?r:r+o*u,h=l?r-o*u:r;return{center:lle(t,n,c,d),circleTangency:lle(t,n,a,d),lineTangency:lle(t,n,c*Math.cos(u*ile),h),theta:u}},fwe=e=>{var{cx:t,cy:n,innerRadius:a,outerRadius:r,startAngle:o,endAngle:i}=e,s=((e,t)=>y6(t-e)*Math.min(Math.abs(t-e),359.999))(o,i),l=o+s,c=lle(t,n,r,o),u=lle(t,n,r,l),d=v6(twe||(twe=hwe(["M ",",","\n    A ",",",",0,\n    ",",",",\n    ",",","\n  "])),c.x,c.y,r,r,+(Math.abs(s)>180),+(o>l),u.x,u.y);if(a>0){var h=lle(t,n,a,o),p=lle(t,n,a,l);d+=v6(nwe||(nwe=hwe(["L ",",","\n            A ",",",",0,\n            ",",",",\n            ",","," Z"])),p.x,p.y,a,a,+(Math.abs(s)>180),+(o<=l),h.x,h.y)}else d+=v6(awe||(awe=hwe(["L ",","," Z"])),t,n);return d},mwe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},gwe=e=>{var t=yme(e,mwe),{cx:n,cy:a,innerRadius:r,outerRadius:i,cornerRadius:s,forceCornerRadius:l,cornerIsExternal:c,startAngle:u,endAngle:d,className:h}=t;if(i<r||u===d)return null;var p,f=Dd("recharts-sector",h),m=i-r,g=D6(s,m,0,!0);return p=g>0&&Math.abs(u-d)<360?(e=>{var{cx:t,cy:n,innerRadius:a,outerRadius:r,cornerRadius:o,forceCornerRadius:i,cornerIsExternal:s,startAngle:l,endAngle:c}=e,u=y6(c-l),{circleTangency:d,lineTangency:h,theta:p}=pwe({cx:t,cy:n,radius:r,angle:l,sign:u,cornerRadius:o,cornerIsExternal:s}),{circleTangency:f,lineTangency:m,theta:g}=pwe({cx:t,cy:n,radius:r,angle:c,sign:-u,cornerRadius:o,cornerIsExternal:s}),v=s?Math.abs(l-c):Math.abs(l-c)-p-g;if(v<0)return i?v6(rwe||(rwe=hwe(["M ",",","\n        a",",",",0,0,1,",",0\n        a",",",",0,0,1,",",0\n      "])),h.x,h.y,o,o,2*o,o,o,2*-o):fwe({cx:t,cy:n,innerRadius:a,outerRadius:r,startAngle:l,endAngle:c});var y=v6(owe||(owe=hwe(["M ",",","\n    A",",",",0,0,",",",",","\n    A",",",",0,",",",",",",","\n    A",",",",0,0,",",",",","\n  "])),h.x,h.y,o,o,+(u<0),d.x,d.y,r,r,+(v>180),+(u<0),f.x,f.y,o,o,+(u<0),m.x,m.y);if(a>0){var{circleTangency:w,lineTangency:_,theta:x}=pwe({cx:t,cy:n,radius:a,angle:l,sign:u,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),{circleTangency:b,lineTangency:k,theta:C}=pwe({cx:t,cy:n,radius:a,angle:c,sign:-u,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),D=s?Math.abs(l-c):Math.abs(l-c)-x-C;if(D<0&&0===o)return"".concat(y,"L").concat(t,",").concat(n,"Z");y+=v6(iwe||(iwe=hwe(["L",",","\n      A",",",",0,0,",",",",","\n      A",",",",0,",",",",",",","\n      A",",",",0,0,",",",",","Z"])),k.x,k.y,o,o,+(u<0),b.x,b.y,a,a,+(D>180),+(u>0),w.x,w.y,o,o,+(u<0),_.x,_.y)}else y+=v6(swe||(swe=hwe(["L",",","Z"])),t,n);return y})({cx:n,cy:a,innerRadius:r,outerRadius:i,cornerRadius:Math.min(g,m/2),forceCornerRadius:l,cornerIsExternal:c,startAngle:u,endAngle:d}):fwe({cx:n,cy:a,innerRadius:r,outerRadius:i,startAngle:u,endAngle:d}),o.createElement("path",dwe({},Dfe(t),{className:f,d:p}))};Math.abs,Math.atan2;const vwe=Math.cos,ywe=(Math.max,Math.min,Math.sin),wwe=Math.sqrt,_we=Math.PI,xwe=2*_we;const bwe={draw(e,t){const n=wwe(t/_we);e.moveTo(n,0),e.arc(0,0,n,0,xwe)}},kwe={draw(e,t){const n=wwe(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},Cwe=wwe(1/3),Dwe=2*Cwe,Awe={draw(e,t){const n=wwe(t/Dwe),a=n*Cwe;e.moveTo(0,-n),e.lineTo(a,0),e.lineTo(0,n),e.lineTo(-a,0),e.closePath()}},Ewe={draw(e,t){const n=wwe(t),a=-n/2;e.rect(a,a,n,n)}},jwe=ywe(_we/10)/ywe(7*_we/10),Swe=ywe(xwe/10)*jwe,Nwe=-vwe(xwe/10)*jwe,Pwe={draw(e,t){const n=wwe(.8908130915292852*t),a=Swe*n,r=Nwe*n;e.moveTo(0,-n),e.lineTo(a,r);for(let o=1;o<5;++o){const t=xwe*o/5,i=vwe(t),s=ywe(t);e.lineTo(s*n,-i*n),e.lineTo(i*a-s*r,s*a+i*r)}e.closePath()}},Twe=wwe(3),Fwe={draw(e,t){const n=-wwe(t/(3*Twe));e.moveTo(0,2*n),e.lineTo(-Twe*n,-n),e.lineTo(Twe*n,-n),e.closePath()}},Owe=-.5,Iwe=wwe(3)/2,Rwe=1/wwe(12),Mwe=3*(Rwe/2+1),Bwe={draw(e,t){const n=wwe(t/Mwe),a=n/2,r=n*Rwe,o=a,i=n*Rwe+n,s=-o,l=i;e.moveTo(a,r),e.lineTo(o,i),e.lineTo(s,l),e.lineTo(Owe*a-Iwe*r,Iwe*a+Owe*r),e.lineTo(Owe*o-Iwe*i,Iwe*o+Owe*i),e.lineTo(Owe*s-Iwe*l,Iwe*s+Owe*l),e.lineTo(Owe*a+Iwe*r,Owe*r-Iwe*a),e.lineTo(Owe*o+Iwe*i,Owe*i-Iwe*o),e.lineTo(Owe*s+Iwe*l,Owe*l-Iwe*s),e.closePath()}};wwe(3),wwe(3);var zwe=["type","size","sizeType"];function Lwe(){return Lwe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Lwe.apply(null,arguments)}function Uwe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Vwe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?Uwe(Object(n),!0).forEach(function(t){qwe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uwe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qwe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hwe={symbolCircle:bwe,symbolCross:kwe,symbolDiamond:Awe,symbolSquare:Ewe,symbolStar:Pwe,symbolTriangle:Fwe,symbolWye:Bwe},Wwe=Math.PI/180,Kwe=e=>{var{type:t="circle",size:n=64,sizeType:a="area"}=e,r=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,zwe),i=Vwe(Vwe({},r),{},{type:t,size:n,sizeType:a}),s="circle";"string"===typeof t&&(s=t);var{className:l,cx:c,cy:u}=i,d=Dfe(i);return x6(c)&&x6(u)&&x6(n)?o.createElement("path",Lwe({}
2,d,{className:Dd("recharts-symbols",l),transform:"translate(".concat(c,", ").concat(u,")"),d:(()=>{var e=(e=>{var t="symbol".concat(N6(e));return Hwe[t]||bwe})(s),t=function(e,t){let n=null,a=Mge(r);function r(){let r;if(n||(n=r=a()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return e="function"===typeof e?e:wte(e||bwe),t="function"===typeof t?t:wte(void 0===t?64:+t),r.type=function(t){return arguments.length?(e="function"===typeof t?t:wte(t),r):e},r.size=function(e){return arguments.length?(t="function"===typeof e?e:wte(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r}().type(e).size(((e,t,n)=>{if("area"===t)return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var a=18*Wwe;return 1.25*e*e*(Math.tan(a)-Math.tan(2*a)*Math.tan(a)**2);case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}})(n,a,s)),r=t();if(null!==r)return r})()})):null};Kwe.registerSymbol=(e,t)=>{Hwe["symbol".concat(N6(e))]=t};var Ywe=["option","shapeType","activeClassName"];function Gwe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Jwe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gwe(Object(n),!0).forEach(function(t){$we(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gwe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $we(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qwe(e){var{shapeType:t,elementProps:n}=e;switch(t){case"rectangle":return o.createElement(Jye,n);case"trapezoid":return o.createElement(uwe,n);case"sector":return o.createElement(gwe,n);case"symbols":if(function(e){return"symbols"===e}(t))return o.createElement(Kwe,n);break;case"curve":return o.createElement(tve,n);default:return null}}function Xwe(e){var t,{option:n,shapeType:a,activeClassName:r="recharts-active-shape"}=e,i=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,Ywe);if((0,o.isValidElement)(n))t=(0,o.cloneElement)(n,Jwe(Jwe({},i),function(e){return(0,o.isValidElement)(e)?e.props:e}(n)));else if("function"===typeof n)t=n(i,i.index);else if(Gve()(n)&&"boolean"!==typeof n){var s=function(e,t){return Jwe(Jwe({},t),e)}(n,i);t=o.createElement(Qwe,{shapeType:a,elementProps:s})}else{var l=i;t=o.createElement(Qwe,{shapeType:a,elementProps:l})}return i.isActive?o.createElement(dge,{className:r},t):t}var Zwe,e_e=(e,t,n)=>{var a=lte();return(r,o)=>i=>{null===e||void 0===e||e(r,o,i),a(Nee({activeIndex:String(o),activeDataKey:t,activeCoordinate:r.tooltipPosition,activeGraphicalItemId:n}))}},t_e=e=>{var t=lte();return(n,a)=>r=>{null===e||void 0===e||e(n,a,r),t(Pee())}},n_e=(e,t,n)=>{var a=lte();return(r,o)=>i=>{null===e||void 0===e||e(r,o,i),a(Fee({activeIndex:String(o),activeDataKey:t,activeCoordinate:r.tooltipPosition,activeGraphicalItemId:n}))}};function a_e(e){var{tooltipEntrySettings:t}=e,n=lte(),a=rne(),r=(0,o.useRef)(null);return(0,o.useLayoutEffect)(()=>{a||(null===r.current?n(Aee(t)):r.current!==t&&n(Eee({prev:r.current,next:t})),r.current=t)},[t,n,a]),(0,o.useLayoutEffect)(()=>()=>{r.current&&(n(jee(r.current)),r.current=null)},[n]),null}function r_e(e){var{legendPayload:t}
2=e,n=lte(),a=rne(),r=(0,o.useRef)(null);return(0,o.useLayoutEffect)(()=>{a||(null===r.current?n(vpe(t)):r.current!==t&&n(ype({prev:r.current,next:t})),r.current=t)},[n,a,t]),(0,o.useLayoutEffect)(()=>()=>{r.current&&(n(wpe(r.current)),r.current=null)},[n]),null}function o_e(e){var{legendPayload:t}=e,n=lte(),a=hte(pne),r=(0,o.useRef)(null);return(0,o.useLayoutEffect)(()=>{"centric"!==a&&"radial"!==a||(null===r.current?n(vpe(t)):r.current!==t&&n(ype({prev:r.current,next:t})),r.current=t)},[n,a,t]),(0,o.useLayoutEffect)(()=>()=>{r.current&&(n(wpe(r.current)),r.current=null)},[n]),null}var i_e=null!==(Zwe=i["useId".toString()])&&void 0!==Zwe?Zwe:()=>{var[e]=o.useState(()=>C6("uid-"));return e};var s_e=(0,o.createContext)(void 0),l_e=e=>{var{id:t,type:n,children:a}=e,r=function(e,t){var n=i_e();return t||(e?"".concat(e,"-").concat(n):n)}("recharts-".concat(n),t);return o.createElement(s_e.Provider,{value:r},a(r))};var c_e=e=>{var t=lte(),n=(0,o.useRef)(null);return(0,o.useLayoutEffect)(()=>{null===n.current?t($he(e)):n.current!==e&&t(Qhe({prev:n.current,next:e})),n.current=e},[t,e]),(0,o.useLayoutEffect)(()=>()=>{n.current&&(t(Xhe(n.current)),n.current=null)},[t]),null},u_e=(0,o.memo)(c_e);function d_e(e){var t=lte();return(0,o.useLayoutEffect)(()=>(t(Zhe(e)),()=>{t(epe(e))}),[t,e]),null}var h_e=n(356),p_e=n.n(h_e);function f_e(e){var{zIndex:t,children:n}=e,a=void 0!==fne()&&void 0!==t&&0!==t,r=rne(),i=lte();(0,o.useLayoutEffect)(()=>a?(i(afe({zIndex:t})),()=>{i(rfe({zIndex:t}))}):T6,[i,t,a]);var s=hte(e=>Sfe(e,t,r));return a?s?(0,dp.createPortal)(n,s):null:n}var m_e=["labelRef"],g_e=["content"];function v_e(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function y_e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function w_e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y_e(Object(n),!0).forEach(function(t){__e(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y_e(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function __e(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x_e(){return x_e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},x_e.apply(null,arguments)}var b_e=(0,o.createContext)(null),k_e=e=>{var{x:t,y:n,upperWidth:a,lowerWidth:r,width:i,height:s,children:l}=e,c=(0,o.useMemo)(()=>({x:t,y:n,upperWidth:a,lowerWidth:r,width:i,height:s}),[t,n,a,r,i,s]);return o.createElement(b_e.Provider,{value:c},l)},C_e=()=>{var e=(0,o.useContext)(b_e),t=lne();return e||sne(t)},D_e=(0,o.createContext)(null),A_e=()=>{var e=(0,o.useContext)(D_e),t=hte(Lle);return e||t},E_e=e=>null!=e&&"function"===typeof e,j_e=(e,t,n,a,r)=>{var i,s,{offset:l,className:c}=e,{cx:u,cy:d,innerRadius:h,outerRadius:p,startAngle:f,endAngle:m,clockWise:g}=r,v=(h+p)/2,y=((e,t)=>y6(t-e)*Math.min(Math.abs(t-e),360))(f,m),w=y>=0?1:-1;switch(t){case"insideStart":i=f+w*l,s=g;break;case"insideEnd":i=m-w*l,s=!g;break;case"end":i=m+w*l,s=g;break;default:throw new Error("Unsupported position ".concat(t))}s=y<=0?s:!s;var _=lle(u,d,v,i),x=lle(u,d,v,i+359*(s?1:-1)),b="M".concat(_.x,",").concat(_.y,"\n    A").concat(v,",").concat(v,",0,1,").concat(s?0:1,",\n    ").concat(x.x,",").concat(x.y),k=S6(e.id)?C6("recharts-radial-line-"):e.id;return o.createElement("text",x_e({},a,{dominantBaseline:"central",className:Dd("recharts-radial-bar-label",c)}),o.createElement("defs",null,o.createElement("path",{id:k,d:b})),o.createElement("textPath",{xlinkHref:"#".concat(k)},n))},S_e=e=>"cx"in e&&x6(e.cx),N_e={angle:0,offset:5,zIndex:ple.label,position:"middle",textBreakAll:!1};function P_e(e){var t,n,a,r=yme(e,N_e),{viewBox:i,position:s,value:l,children:c,content:u,className:d="",textBreakAll:h,labelRef:p}
2=r,f=A_e(),m=C_e();if(!(t=null==i?"center"===s?m:null!==f&&void 0!==f?f:m:S_e(i)?i:sne(i))||S6(l)&&S6(c)&&!(0,o.isValidElement)(u)&&"function"!==typeof u)return null;var g=w_e(w_e({},r),{},{viewBox:t});if((0,o.isValidElement)(u)){var{labelRef:v}=g,y=v_e(g,m_e);return(0,o.cloneElement)(u,y)}if("function"===typeof u){var{content:w}=g,_=v_e(g,g_e);if(n=(0,o.createElement)(u,_),(0,o.isValidElement)(n))return n}else n=(e=>{var{value:t,formatter:n}=e,a=S6(e.children)?t:e.children;return"function"===typeof n?n(a):a})(r);var x=Dfe(r);if(S_e(t)){if("insideStart"===s||"insideEnd"===s||"end"===s)return j_e(r,s,n,x,t);a=((e,t,n)=>{var{cx:a,cy:r,innerRadius:o,outerRadius:i,startAngle:s,endAngle:l}=e,c=(s+l)/2;if("outside"===n){var{x:u,y:d}=lle(a,r,i+t,c);return{x:u,y:d,textAnchor:u>=a?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:a,y:r,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:a,y:r,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:a,y:r,textAnchor:"middle",verticalAnchor:"end"};var h=(o+i)/2,{x:p,y:f}=lle(a,r,h,c);return{x:p,y:f,textAnchor:"middle",verticalAnchor:"middle"}})(t,r.offset,r.position)}else a=((e,t)=>{var n,{parentViewBox:a,offset:r,position:o}=e;null==a||S_e(a)||(n=a);var{x:i,y:s,upperWidth:l,lowerWidth:c,height:u}=t,d=i,h=i+(l-c)/2,p=(d+h)/2,f=(l+c)/2,m=d+l/2,g=u>=0?1:-1,v=g*r,y=g>0?"end":"start",w=g>0?"start":"end",_=l>=0?1:-1,x=_*r,b=_>0?"end":"start",k=_>0?"start":"end";if("top"===o)return w_e(w_e({},{x:d+l/2,y:s-v,textAnchor:"middle",verticalAnchor:y}),n?{height:Math.max(s-n.y,0),width:l}:{});if("bottom"===o)return w_e(w_e({},{x:h+c/2,y:s+u+v,textAnchor:"middle",verticalAnchor:w}),n?{height:Math.max(n.y+n.height-(s+u),0),width:c}:{});if("left"===o){var C={x:p-x,y:s+u/2,textAnchor:b,verticalAnchor:"middle"};return w_e(w_e({},C),n?{width:Math.max(C.x-n.x,0),height:u}:{})}if("right"===o){var D={x:p+f+x,y:s+u/2,textAnchor:k,verticalAnchor:"middle"};return w_e(w_e({},D),n?{width:Math.max(n.x+n.width-D.x,0),height:u}:{})}var A=n?{width:f,height:u}:{};return"insideLeft"===o?w_e({x:p+x,y:s+u/2,textAnchor:k,verticalAnchor:"middle"},A):"insideRight"===o?w_e({x:p+f-x,y:s+u/2,textAnchor:b,verticalAnchor:"middle"},A):"insideTop"===o?w_e({x:d+l/2,y:s+v,textAnchor:"middle",verticalAnchor:w},A):"insideBottom"===o?w_e({x:h+c/2,y:s+u-v,textAnchor:"middle",verticalAnchor:y},A):"insideTopLeft"===o?w_e({x:d+x,y:s+v,textAnchor:k,verticalAnchor:w},A):"insideTopRight"===o?w_e({x:d+l-x,y:s+v,textAnchor:b,verticalAnchor:w},A):"insideBottomLeft"===o?w_e({x:h+x,y:s+u-v,textAnchor:k,verticalAnchor:y},A):"insideBottomRight"===o?w_e({x:h+c-x,y:s+u-v,textAnchor:b,verticalAnchor:y},A):o&&"object"===typeof o&&(x6(o.x)||_6(o.x))&&(x6(o.y)||_6(o.y))?w_e({x:i+D6(o.x,f),y:s+D6(o.y,u),textAnchor:"end",verticalAnchor:"end"},A):w_e({x:m,y:s+u/2,textAnchor:"middle",verticalAnchor:"middle"},A)})(r,t);return o.createElement(f_e,{zIndex:r.zIndex},o.createElement(Bve,x_e({ref:p,className:Dd("recharts-label",d)},x,a,{textAnchor:Nve(x.textAnchor)?x.textAnchor:a.textAnchor,breakAll:h}),n))}P_e.displayName="Label";var T_e=(e,t,n)=>{if(!e)return null;var a={viewBox:t,labelRef:n};return!0===e?o.createElement(P_e,x_e({key:"label-implicit"},a)):b6(e)?o.createElement(P_e,x_e({key:"label-implicit",value:e},a)):(0,o.isValidElement)(e)?e.type===P_e?(0,o.cloneElement)(e,w_e({key:"label-implicit"},a)):o.createElement(P_e,x_e({key:"label-implicit",content:e},a)):E_e(e)?o.createElement(P_e,x_e({key:"label-implicit",content:e},a)):e&&"object"===typeof e?o.createElement(P_e,x_e({},e,{key:"label-implicit"},a)):null};function F_e(e){var{label:t,labelRef:n}=e,a=C_e();return T_e(t,a,n)||null}var O_e=["valueAccessor"],I_e=["dataKey","clockWise","id","textBreakAll","zIndex"];function R_e(){return R_e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},R_e.apply(null,arguments)}function M_e(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var B_e=e=>Array.isArray(e.value)?p_e()(e.value):e.value,z_e=(0,o.createContext)(void 0),L_e=z_e.Provider,U_e=(0,o.createContext)(void 0),V_e=U_e.Provider;function q_e(e){var{valueAccessor:t=B_e}=e,n=M_e(e,O_e),{dataKey:a,clockWise:r,id:i,textBreakAll:s,zIndex:l}=n,c=M_e(n,I_e),u=(0,o.useContext)(z_e),d=(0,o.useContext)(U_e),h=u||d;return h&&h.length?o.createElement(f_e,{zIndex:null!==l&&void 0!==l?l:ple.label},o.createElement(dge,{className:"recharts-label-list"},h.map((e,r)=>{var l,u=S6(a)?t(e,r):Ete(e&&e.payload,a),d=S6(i)?{}:{id:"".concat(i,"-").concat(r)};return o.createElement(P_e,R_e({key:"label-".concat(r)},Dfe(e),c,d,{fill:null!==(l=n.fill)&&void 0!==l?l:e.fill,parentViewBox:e.parentViewBox,value:u,textBreakAll:s,viewBox:e.viewBox,index:r,zIndex:0}))}))):null}function H_e(e){var{label:t}=e;return t?!0===t?o.createElement(q_e,{key:"labelList-implicit"}):o.isValidElement(t)||E_e(t)?o.createElement(q_e,{key:"labelList-implicit",content:t}):"object"===typeof t?o.createElement(q_e,R_e({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}q_e.displayName="LabelList";var W_e=["key"],K_e=["onMouseEnter","onClick","onMouseLeave"],Y_e=["id"],G_e=["id"];function J_e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function $_e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?J_e(Object(n),!0).forEach(function(t){Q_e(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J_e(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Q_e(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X_e(){return X_e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},X_e.apply(null,arguments)}function Z_e(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function exe(e){var t=(0,o.useMemo)(()=>Wve(e.children,zve),[e.children]),n=hte(n=>Yme(n,e.id,t));return null==n?null:o.createElement(o_e,{legendPayload:n})}var txe=o.memo(e=>{var{dataKey:t,nameKey:n,sectors:a,stroke:r,strokeWidth:i,fill:s,name:l,hide:c,tooltipType:u,id:d}=e,h={dataDefinedOnItem:a.map(e=>e.tooltipPayload),positions:a.map(e=>e.tooltipPosition),settings:{stroke:r,strokeWidth:i,fill:s,dataKey:t,nameKey:n,name:Vte(l,t),hide:c,type:u,color:s,unit:"",graphicalItemId:d}};return o.createElement(a_e,{tooltipEntrySettings:h})}),nxe=(e,t)=>e>t?"start":e<t?"end":"middle",axe=(e,t,n)=>{var{top:a,left:r,width:o,height:i}=t,s=cle(o,i),l=r+D6(e.cx,o,o/2),c=a+D6(e.cy,i,i/2),u=D6(e.innerRadius,s,0),d=((e,t,n)=>D6("function"===typeof t?t(e):t,n,.8*n))(n,e.outerRadius,s);return{cx:l,cy:c,innerRadius:u,outerRadius:d,maxRadius:e.maxRadius||Math.sqrt(o*o+i*i)/2}},rxe=(e,t)=>y6(t-e)*Math.min(Math.abs(t-e),360);function oxe(e){var{sectors:t,props:n,showLabels:a}=e,{label:r,labelLine:i,dataKey:s}=n;if(!a||!r||!t)return null;var l=kfe(n),c=Cfe(r),u=Cfe(i),d="object"===typeof r&&"offsetRadius"in r&&"number"===typeof r.offsetRadius&&r.offsetRadius||20,h=t.map((e,t)=>{var n=(e.startAngle+e.endAngle)/2,a=lle(e.cx,e.cy,e.outerRadius+d,n),h=$_e($_e($_e($_e({},l),e),{},{stroke:"none"},c),{},{index:t,textAnchor:nxe(a.x,e.cx)},a),p=$_e($_e($_e($_e({},l),e),{},{fill:"none",stroke:e.fill},u),{},{index:t,points:[lle(e.cx,e.cy,e.outerRadius,n),a],key:"line"});return o.createElement(f_e,{zIndex:ple.label,key:"label-".concat(e.startAngle,"-").concat(e.endAngle,"-").concat(e.midAngle,"-").concat(t)},o.createElement(dge,null,i&&((e,t)=>{if(o.isValidElement(e))return o.cloneElement(e,t);if("function"===typeof e)return e(t);var n=Dd("recharts-pie-label-line","boolean"!==typeof e?e.className:""),{key:a}=t,r=Z_e(t,W_e);return o.createElement(tve,X_e({},r,{type:"linear",className:n}))})(i,p),((e,t,n)=>{if(o.isValidElement(e))return o.cloneElement(e,t);var a=n;if("function"===typeof e&&(a=e(t),o.isValidElement(a)))return a;var r=Dd("recharts-pie-label-text",function(e){return e&&"object"===typeof e&&"className"in e&&"string"===typeof e.className?e.className:""}(e));return o.createElement(Bve,X_e({},t,{alignmentBaseline:"middle",className:r}),a)})(r,h,Ete(e,s))))});return o.createElement(dge,{className:"recharts-pie-labels"},h)}function ixe(e){var{sectors:t,props:n,showLabels:a}=e,{label:r}=n;return"object"===typeof r&&null!=r&&"position"in r?o.createElement(H_e,{label:r}):o.createElement(oxe,{sectors:t,props:n,showLabels:a})}function sxe(e){var{sectors:t,activeShape:n,inactiveShape:a,allOtherPieProps:r,shape:i,id:s}=e,l=hte(Xde),c=hte(ehe),u=hte(the),{onMouseEnter:d,onClick:h,onMouseLeave:p}=r,f=Z_e(r,K_e),m=e_e(d,r.dataKey,s),g=t_e(p),v=n_e(h,r.dataKey,s);return null==t||0===t.length?null:o.createElement(o.Fragment,null,t.map((e,d)=>{if(0===(null===e||void 0===e?void 0:e.startAngle)&&0===(null===e||void 0===e?void 0:e.endAngle)&&1!==t.length)return null;var h=null==u||u===s,p=String(d)===l&&(null==c||r.dataKey===c)&&h,y=n&&p?n:l?a:null,w=$_e($_e({},e),{},{stroke:e.stroke,tabIndex:-1,[Jte]:d,[$te]:s});return o.createElement(dge,X_e({key:"sector-".concat(null===e||void 0===e?void 0:e.startAngle,"-").concat(null===e||void 0===e?void 0:e.endAngle,"-").concat(e.midAngle,"-").concat(d),tabIndex:-1,
2className:"recharts-pie-sector"},Hge(f,e,d),{onMouseEnter:m(e,d),onMouseLeave:g(e,d),onClick:v(e,d)}),o.createElement(Xwe,X_e({option:null!==i&&void 0!==i?i:y,index:d,shapeType:"sector",isActive:p},w)))}))}function lxe(e){var{showLabels:t,sectors:n,children:a}=e,r=(0,o.useMemo)(()=>t&&n?n.map(e=>({value:e.value,payload:e.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:e.cx,cy:e.cy,innerRadius:e.innerRadius,outerRadius:e.outerRadius,startAngle:e.startAngle,endAngle:e.endAngle,clockWise:!1},fill:e.fill})):[],[n,t]);return o.createElement(V_e,{value:t?r:void 0},a)}function cxe(e){var{props:t,previousSectorsRef:n,id:a}=e,{sectors:r,isAnimationActive:i,animationBegin:s,animationDuration:l,animationEasing:c,activeShape:u,inactiveShape:d,onAnimationStart:h,onAnimationEnd:p}=t,f=kye(t,"recharts-pie-"),m=n.current,[g,v]=(0,o.useState)(!1),y=(0,o.useCallback)(()=>{"function"===typeof p&&p(),v(!1)},[p]),w=(0,o.useCallback)(()=>{"function"===typeof h&&h(),v(!0)},[h]);return o.createElement(lxe,{showLabels:!g,sectors:r},o.createElement(bye,{animationId:f,begin:s,duration:l,isActive:i,easing:c,onAnimationStart:w,onAnimationEnd:y,key:f},e=>{var i=[],s=r&&r[0],l=null===s||void 0===s?void 0:s.startAngle;return null===r||void 0===r||r.forEach((t,n)=>{var a=m&&m[n],r=n>0?m6()(t,"paddingAngle",0):0;if(a){var o=E6(a.endAngle-a.startAngle,t.endAngle-t.startAngle,e),s=$_e($_e({},t),{},{startAngle:l+r,endAngle:l+o+r});i.push(s),l=s.endAngle}else{var{endAngle:c,startAngle:u}=t,d=E6(0,c-u,e),h=$_e($_e({},t),{},{startAngle:l+r,endAngle:l+d+r});i.push(h),l=h.endAngle}}),n.current=i,o.createElement(dge,null,o.createElement(sxe,{sectors:i,activeShape:u,inactiveShape:d,allOtherPieProps:t,shape:t.shape,id:a}))}),o.createElement(ixe,{showLabels:!g,sectors:r,props:t}),t.children)}var uxe={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:"auto",label:!1,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff",zIndex:ple.area};function dxe(e){var{id:t}=e,n=Z_e(e,Y_e),{hide:a,className:r,rootTabIndex:i}=e,s=(0,o.useMemo)(()=>Wve(e.children,zve),[e.children]),l=hte(e=>
2Gme(e,t,s)),c=(0,o.useRef)(null),u=Dd("recharts-pie",r);return a||null==l?(c.current=null,o.createElement(dge,{tabIndex:i,className:u})):o.createElement(f_e,{zIndex:e.zIndex},o.createElement(txe,{dataKey:e.dataKey,nameKey:e.nameKey,sectors:l,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:t}),o.createElement(dge,{tabIndex:i,className:u},o.createElement(cxe,{props:$_e($_e({},n),{},{sectors:l}),previousSectorsRef:c,id:t})))}function hxe(e){var t=yme(e,uxe),{id:n}=t,a=Z_e(t,G_e),r=kfe(a);return o.createElement(l_e,{id:n,type:"pie"},e=>o.createElement(o.Fragment,null,o.createElement(d_e,{type:"pie",id:e,data:a.data,dataKey:a.dataKey,hide:a.hide,angleAxisId:0,radiusAxisId:0,name:a.name,nameKey:a.nameKey,tooltipType:a.tooltipType,legendType:a.legendType,fill:a.fill,cx:a.cx,cy:a.cy,startAngle:a.startAngle,endAngle:a.endAngle,paddingAngle:a.paddingAngle,minAngle:a.minAngle,innerRadius:a.innerRadius,outerRadius:a.outerRadius,cornerRadius:a.cornerRadius,presentationProps:r,maxRadius:t.maxRadius}),o.createElement(exe,X_e({},a,{id:e})),o.createElement(dxe,X_e({},a,{id:e}))))}function pxe(){return pxe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},pxe.apply(null,arguments)}function fxe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function mxe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fxe(Object(n),!0).forEach(function(t){gxe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fxe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gxe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vxe(e){return Array.isArray(e)&&b6(e[0])&&b6(e[1])?e.join(" ~ "):e}hxe.displayName="Pie";var yxe=e=>{var{separator:t=" : ",contentStyle:n={},itemStyle:a={},labelStyle:r={},payload:i,formatter:s,itemSorter:l,wrapperClassName:c,labelClassName:u,label:d,labelFormatter:h,accessibilityLayer:p=!1}=e,f=mxe({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},n),m=mxe({margin:0},r),g=!S6(d),v=g?d:"",y=Dd("recharts-default-tooltip",c),w=Dd("recharts-tooltip-label",u);g&&h&&void 0!==i&&null!==i&&(v=h(d,i));var _=p?{role:"status","aria-live":"assertive"}:{};return o.createElement("div",pxe({className:y,style:f},_),o.createElement("p",{className:w,style:m},o.isValidElement(v)?v:"".concat(v)),(()=>{if(i&&i.length){var e=(l?fte()(i,l):i).map((e,n)=>{if("none"===e.type)return null;var r=e.formatter||s||vxe,{value:l,name:c}=e,u=l,d=c;if(r){var h=r(l,c,e,n,i);if(Array.isArray(h))[u,d]=h;else{if(null==h)return null;u=h}}var p=mxe({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},a);return o.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(n),style:p},b6(d)?o.createElement("span",{className:"recharts-tooltip-item-name"},d):null,b6(d)?o.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,o.createElement("span",{className:"recharts-tooltip-item-value"},u),o.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))});return o.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null})())},wxe="recharts-tooltip-wrapper",_xe={visibility:"hidden"};function xxe(e){var{coordinate:t,translateX:n,translateY:a}=e;return Dd(wxe,{["".concat(wxe,"-right")]:x6(n)&&t&&x6(t.x)&&n>=t.x,["".concat(wxe,"-left")]:x6(n)&&t&&x6(t.x)&&n<t.x,["".concat(wxe,"-bottom")]:x6(a)&&t&&x6(t.y)&&a>=t.y,["".concat(wxe,"-top")]:x6(a)&&t&&x6(t.y)&&a<t.y})}function bxe(e){var{allowEscapeViewBox:t,coordinate:n,key:a,offsetTopLeft:r,position:o,reverseDirection:i,tooltipDimension:s,viewBox:l,viewBoxDimension:c}=e;if(o&&x6(o[a]))return o[a];var u=n[a]-s-(r>0?r:0),d=n[a]+r;if(t[a])return i[a]?u:d;var h=l[a];return null==h?0:i[a]?u<h?Math.max(d,h):Math.max(u,h):null==c?0:d+s>h+c?Math.max(u,h):Math.max(d,h)}function kxe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Cxe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?kxe(Object(n),!0).forEach(function(t){Dxe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kxe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Dxe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Axe extends o.PureComponent{constructor(){super(...arguments),Dxe(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Dxe(this,"handleKeyDown",e=>{var t,n,a,r;"Escape"===e.key&&this.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(t=null===(n=this.props.coordinate)||void 0===n?void 0:n.x)&&void 0!==t?t:0,y:null!==(a=null===(r=this.props.coordinate)||void 0===r?void 0:r.y)&&void 0!==a?a:0}})})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var e,t;this.state.dismissed&&((null===(e=this.props.coordinate)||void 0===e?void 0:e.x)===this.state.dismissedAtCoordinate.x&&(null===(t=this.props.coordinate)||void 0===t?void 0:t.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}render(){var{active:e,allowEscapeViewBox:t,animationDuration:n,animationEasing:a,children:r,coordinate:i,hasPayload:s,isAnimationActive:l,offset:c,position:u,reverseDirection:d,useTranslate3d:h,viewBox:p,wrapperStyle:f,lastBoundingBox:m,innerRef:g,hasPortalFromProps:v}=this.props,{cssClasses:y,cssProperties:w}=function(e){var t,n,a,{allowEscapeViewBox:r,coordinate:o,offsetTopLeft:i,position:s,reverseDirection:l,tooltipBox:c,useTranslate3d:u,viewBox:d}=e;return t=c.height>0&&c.width>0&&o?function(e){var{translateX:t,translateY:n,useTranslate3d:a}=e;return{transform:a?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}({translateX:n=bxe({allowEscapeViewBox:r,coordinate:o,key:"x",offsetTopLeft:i,position:s,reverseDirection:l,tooltipDimension:c.width,viewBox:d,viewBoxDimension:d.width}),translateY:a=bxe({allowEscapeViewBox:r,coordinate:o,key:"y",offsetTopLeft:i,position:s,reverseDirection:l,tooltipDimension:c.height,viewBox:d,viewBoxDimension:d.height}),useTranslate3d:u}):_xe,{cssProperties:t,cssClasses:xxe({translateX:n,translateY:a,coordinate:o})}}({allowEscapeViewBox:t,coordinate:i,offsetTopLeft:c,position:u,reverseDirection:d,tooltipBox:{height:m.height,width:m.width},useTranslate3d:h,viewBox:p}),_=v?{}:Cxe(Cxe({transition:l&&e?"transform ".concat(n,"ms ").concat(a):void 0},w),{},{pointerEvents:"none",visibility:!this.state.dismissed&&e&&s?"visible":"hidden",position:"absolute",top:0,left:0}),x=Cxe(Cxe({},_),{},{visibility:!this.state.dismissed&&e&&s?"visible":"hidden"},f);return o.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:y,style:x,ref:g},r)}}var Exe=n(4332),jxe=n.n(Exe);function Sxe(e,t,n){return!0===t?jxe()(e,n):"function"===typeof t?jxe()(e,t):e}function Nxe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,n]=(0,o.useState)({height:0,left:0,top:0,width:0}),a=(0,o.useCallback)(e=>{if(null!=e){var a=e.getBoundingClientRect(),r={height:a.height,left:a.left,top:a.top,width:a.width};(Math.abs(r.height-t.height)>1||Math.abs(r.left-t.left)>1||Math.abs(r.top-t.top)>1||Math.abs(r.width-t.width)>1)&&n({height:r.height,left:r.left,top:r.top,width:r.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,a]}var Pxe=["x","y","top","left","width","height","className"];function Txe(){return Txe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Txe.apply(null,arguments)}function Fxe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Oxe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ixe=(e,t,n,a,r,o)=>"M".concat(e,",").concat(r,"v").concat(a,"M").concat(o,",").concat(t,"h").concat(n),Rxe=e=>{var{x:t=0,y:n=0,top:a=0,left:r=0,width:i=0,height:s=0,className:l}=e,c=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,Pxe),u=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
vendor: 4,653 bytes, line 2
2t%2?Fxe(Object(n),!0).forEach(function(t){Oxe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fxe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({x:t,y:n,top:a,left:r,width:i,height:s},c);return x6(t)&&x6(n)&&x6(i)&&x6(s)&&x6(a)&&x6(r)?o.createElement("path",Txe({},Dfe(u),{className:Dd("recharts-cross",l),d:Ixe(t,n,i,s,a,r)})):null};function Mxe(e){var{cx:t,cy:n,radius:a,startAngle:r,endAngle:o}=e;return{points:[lle(t,n,a,r),lle(t,n,a,o)],cx:t,cy:n,radius:a,startAngle:r,endAngle:o}}function Bxe(e,t,n){if("horizontal"===e)return[{x:t.x,y:n.top},{x:t.x,y:n.top+n.height}];if("vertical"===e)return[{x:n.left,y:t.y},{x:n.left+n.width,y:t.y}];if(Vge(t)){if("centric"===e){var{cx:a,cy:r,innerRadius:o,outerRadius:i,angle:s}=t,l=lle(a,r,o,s),c=lle(a,r,i,s);return[{x:l.x,y:l.y},{x:c.x,y:c.y}]}return Mxe(t)}}function zxe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Lxe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zxe(Object(n),!0).forEach(function(t){Uxe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zxe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Uxe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vxe=()=>{var e=hte(Sce),t=hte(Yde),n=hte(Hde);return Lte(e&&n?Lxe(Lxe({},e),{},{scale:n}):void 0,t)};function qxe(){return qxe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},qxe.apply(null,arguments)}function Hxe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Wxe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hxe(Object(n),!0).forEach(function(t){Kxe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hxe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Kxe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yxe(e){var{cursor:t,cursorComp:n,cursorProps:a}=e;return(0,o.isValidElement)(t)?(0,o.cloneElement)(t,a):(0,o.createElement)(n,a)}function Gxe(e){var t,n,a,r,{coordinate:i,payload:s,index:l,offset:c,tooltipAxisBandSize:u,layout:d,cursor:h,tooltipEventType:p,chartName:f}=e,m=i,g=s,v=l;if(!h||!m||"ScatterChart"!==f&&"axis"!==p)return null;if("ScatterChart"===f)n=m,a=Rxe,r=ple.cursorLine;else if("BarChart"===f)n=function(e,t,n,a){var r=a/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?t.x-r:n.left+.5,y:"horizontal"===e?n.top+.5:t.y-r,width:"horizontal"===e?a:n.width-1,height:"horizontal"===e?n.height-1:a}}(d,m,c,u),a=Jye,r=ple.cursorRectangle;else if("radial"===d&&Vge(m)){var{cx:y,cy:w,radius:_,startAngle:x,endAngle:b}=Mxe(m);n={cx:y,cy:w,startAngle:x,endAngle:b,innerRadius:_,outerRadius:_},a=gwe,r=ple.cursorLine}else n={points:Bxe(d,m,c)},a=tve,r=ple.cursorLine;var k="object"===typeof h&&"className"in h?h.className:void 0,C=Wxe(Wxe(Wxe(Wxe({stroke:"#ccc",pointerEvents:"none"},c),n),Cfe(h)),{},{payload:g,payloadIndex:v,className:Dd("recharts-tooltip-cursor",k)});return o.createElement(f_e,{zIndex:null!==(t=e.zIndex)&&void 0!==t?t:r},o.createElement(Yxe,{cursor:h,cursorComp:a,cursorProps:C}))}function Jxe(e){var t=Vxe(),n=une(),a=fne(),r=hhe();return null==t||null==n||null==a||null==r?null:o.createElement(Gxe,qxe({}
2,e,{offset:n,layout:a,tooltipAxisBandSize:t,chartName:r}))}function $xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Qxe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$xe(Object(n),!0).forEach(function(t){Xxe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$xe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xxe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zxe(e){return e.dataKey}var ebe=[],tbe={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function nbe(e){var t,n,a=yme(e,tbe),{active:r,allowEscapeViewBox:i,animationDuration:s,animationEasing:l,content:c,filterNull:u,isAnimationActive:d,offset:h,payloadUniqBy:p,position:f,reverseDirection:m,useTranslate3d:g,wrapperStyle:v,cursor:y,shared:w,trigger:_,defaultIndex:x,portal:b,axisId:k}=a,C=lte(),D="number"===typeof x?String(x):x;(0,o.useEffect)(()=>{C(See({shared:w,trigger:_,axisId:k,active:r,defaultIndex:D}))},[C,w,_,k,r,D]);var A=lne(),E=vfe(),j=function(e){return hte(t=>Xue(t,e))}(w),{activeIndex:S,isActive:N}=null!==(t=hte(e=>Che(e,j,_,D)))&&void 0!==t?t:{},P=hte(e=>khe(e,j,_,D)),T=hte(e=>bhe(e,j,_,D)),F=hte(e=>xhe(e,j,_,D)),O=P,I=(0,o.useContext)($fe),R=null!==(n=null!==r&&void 0!==r?r:N)&&void 0!==n&&n,[M,B]=Nxe([O,R]),z="axis"===j?T:void 0;Jfe(j,_,F,z,S,R);var L=null!==b&&void 0!==b?b:I;if(null==L||null==A||null==j)return null;var U=null!==O&&void 0!==O?O:ebe;R||(U=ebe),u&&U.length&&(U=Sxe(U.filter(e=>null!=e.value&&(!0!==e.hide||a.includeHidden)),p,Zxe));var V=U.length>0,q=o.createElement(Axe,{allowEscapeViewBox:i,animationDuration:s,animationEasing:l,isAnimationActive:d,active:R,coordinate:F,hasPayload:V,offset:h,position:f,reverseDirection:m,useTranslate3d:g,viewBox:A,wrapperStyle:v,lastBoundingBox:M,innerRef:B,hasPortalFromProps:Boolean(b)},function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):"function"===typeof e?o.createElement(e,t):o.createElement(yxe,t)}(c,Qxe(Qxe({},a),{},{payload:U,label:z,active:R,activeIndex:S,coordinate:F,accessibilityLayer:E})));return o.createElement(o.Fragment,null,(0,dp.createPortal)(q,L),R&&o.createElement(Jxe,{cursor:y,tooltipEventType:j,coordinate:F,payload:U,index:S}))}function abe(){return abe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},abe.apply(null,arguments)}function rbe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function obe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ibe=32,sbe={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle"};function lbe(e){var t,{data:n,iconType:a,inactiveColor:r}=e,i=16,s=ibe/6,l=ibe/3,c=n.inactive?r:n.color,u=null!==a&&void 0!==a?a:n.type;if("none"===u)return null;if("plainline"===u)return o.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:null===(t=n.payload)||void 0===t?void 0:t.strokeDasharray,x1:0,y1:i,x2:ibe,y2:i,className:"recharts-legend-icon"});if("line"===u)return o.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(i,"h").concat(l,"\n            A").concat(s,",").concat(s,",0,1,1,").concat(2*l,",").concat(i,"\n            H").concat(ibe,"M").concat(2*l,",").concat(i,"\n            A").concat(s,",").concat(s,",0,1,1,").concat(l,",").concat(i),className:"recharts-legend-icon"});if("rect"===u)return o.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(4,"h").concat(ibe,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(o.isValidElement(n.legendIcon)){var d=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?rbe(Object(n),!0).forEach(function(t){obe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rbe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},n);return delete d.legendIcon,o.cloneElement(n.legendIcon,d)}return o.createElement(Kwe,{fill:c,cx:i,cy:i,size:ibe,sizeType:"diameter",type:u})}function cbe(e){var{payload:t,iconSize:n,layout:a,formatter:r,inactiveColor:i,iconType:s}=e,l={x:0,y:0,width:ibe,height:ibe},c={display:"horizontal"===a?"inline-block":"block",marginRight:10},u={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((t,a)=>{var d=t.formatter||r,h=Dd({"recharts-legend-item":!0,["legend-item-".concat(a)]:!0,inactive:t.inactive});if("none"===t.type)return null;var p=t.inactive?i:t.color,f=d?d(t.value,t,a):t.value;return o.createElement("li",abe({className:h,style:c,key:"legend-item-".concat(a)},Hge(e,t,a)),o.createElement(jfe,{width:n,height:n,viewBox:l,style:u,"aria-label":"".concat(f," legend icon")},o.createElement(lbe,{data:t,iconType:s,inactiveColor:i})),o.createElement("span",{className:"recharts-legend-item-text",style:{color:p}},f))})}var ube=e=>{var t=yme(e,sbe),{payload:n,layout:a,align:r}=t;if(!n||!n.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===a?r:"left"};return o.createElement("ul",{className:"recharts-default-legend",style:i},o.createElement(cbe,abe({},t,{payload:n})))};var dbe=["contextPayload"];function hbe(){return hbe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},hbe.apply(null,arguments)}function pbe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function fbe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pbe(Object(n),!0).forEach(function(t){mbe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pbe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mbe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gbe(e){return e.value}function vbe(e){var{contextPayload:t}=e,n=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,dbe),a=Sxe(t,e.payloadUniqBy,gbe),r=fbe(fbe({},n),{},{payload:a});return o.isValidElement(e.content)?o.cloneElement(e.content,r):"function"===typeof e.content?o.createElement(e.content,r):o.createElement(ube,r)}function ybe(e){var t=lte();return(0,o.useEffect)(()=>{t(gpe(e))},[t,e]),null}function wbe(e){var t=lte();return(0,o.useEffect)(()=>(t(mpe(e)),()=>{t(mpe({width:0,height:0}))}),[t,e]),null}var _be={align:"center",iconSize:14,itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"};function xbe(e){var t=yme(e,_be),n=hte(gte),a=(0,o.useContext)(Qfe),r=hte(e=>e.layout.margin),{width:i,height:s,wrapperStyle:l,portal:c}=t,[u,d]=Nxe([n]),h=dne(),p=hne();if(null==h||null==p)return null;var f=h-((null===r||void 0===r?void 0:r.left)||0)-((null===r||void 0===r?void 0:r.right)||0),m=function(e,t,n,a){return"vertical"===e&&x6(t)?{height:t}:"horizontal"===e?{width:n||a}:null}(t.layout,s,i,f),g=c?l:fbe(fbe({position:"absolute",width:(null===m||void 0===m?void 0:m.width)||i||"auto",height:(null===m||void 0===m?void 0:m.height)||s||"auto"},function(e,t,n,a,r,o){var i,s,{layout:l,align:c,verticalAlign:u}=t;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(i="center"===c&&"vertical"===l?{left:((a||0)-o.width)/2}:"right"===c?{right:n&&n.right||0}:{left:n&&n.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(s="middle"===u?{top:((r||0)-o.height)/2}:"bottom"===u?{bottom:n&&n.bottom||0}:{top:n&&n.top||0}),fbe(fbe({},i),s)}(l,t,r,h,p,u)),l),v=null!==c&&void 0!==c?c:a;if(null==v||null==n)return null;var y=o.createElement("div",{className:"recharts-legend-wrapper",style:g,ref:d},o.createElement(ybe,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!c&&o.createElement(wbe,{width:u.width,height:u.height}),o.createElement(vbe,hbe({}
2,t,m,{margin:r,chartWidth:h,chartHeight:p,contextPayload:n})));return(0,dp.createPortal)(y,v)}function bbe(){return bbe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},bbe.apply(null,arguments)}xbe.displayName="Legend";var kbe={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:{top:5,right:5,bottom:5,left:5},responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},Cbe=(0,o.forwardRef)(function(e,t){var n,a=yme(e.categoricalChartProps,kbe),{chartName:r,defaultTooltipEventType:i,validateTooltipEventTypes:s,tooltipPayloadSearcher:l,categoricalChartProps:c}=e,u={chartName:r,defaultTooltipEventType:i,validateTooltipEventTypes:s,tooltipPayloadSearcher:l,eventEmitter:void 0};return o.createElement(lfe,{preloadedState:{options:u},reduxStoreName:null!==(n=c.id)&&void 0!==n?n:r},o.createElement(cfe,{chartData:c.data}),o.createElement(ffe,{layout:a.layout,margin:a.margin}),o.createElement(mfe,{baseValue:a.baseValue,accessibilityLayer:a.accessibilityLayer,barCategoryGap:a.barCategoryGap,maxBarSize:a.maxBarSize,stackOffset:a.stackOffset,barGap:a.barGap,barSize:a.barSize,syncId:a.syncId,syncMethod:a.syncMethod,className:a.className,reverseStackOrder:a.reverseStackOrder}),o.createElement(mme,bbe({},a,{ref:t})))}),Dbe=["axis"],Abe=(0,o.forwardRef)((e,t)=>o.createElement(Cbe,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Dbe,tooltipPayloadSearcher:y7,categoricalChartProps:e,ref:t}));function Ebe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function jbe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ebe(Object(n),!0).forEach(function(t){Sbe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ebe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sbe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nbe=e=>{var{x1:t,y1:n,x2:a,y2:r}=e;return((e,t)=>{var{x:n,y:a}=e,{x:r,y:o}=t;return{x:Math.min(n,r),y:Math.min(a,o),width:Math.abs(r-n),height:Math.abs(o-a)}})({x:t,y:n},{x:a,y:r})};
2class Pbe{static create(e){return new Pbe(e)}constructor(e){this.scale=e}get domain(){return this.scale.domain}get range(){return this.scale.range}get rangeMin(){return this.range()[0]}get rangeMax(){return this.range()[1]}get bandwidth(){return this.scale.bandwidth}apply(e){var{bandAware:t,position:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0!==e){if(n)switch(n){case"start":default:return this.scale(e);case"middle":var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a;case"end":var r=this.bandwidth?this.bandwidth():0;return this.scale(e)+r}if(t){var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o}return this.scale(e)}}isInRange(e){var t=this.range(),n=t[0],a=t[t.length-1];return n<=a?e>=n&&e<=a:e>=a&&e<=n}}Sbe(Pbe,"EPS",1e-4);function Tbe(e,t){if(t<1)return[];if(1===t)return e;for(var n=[],a=0;a<e.length;a+=t){var r=e[a];void 0!==r&&n.push(r)}return n}function Fbe(e,t,n){return function(e){var{width:t,height:n}=e,a=function(e){return(e%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),r=a*Math.PI/180,o=Math.atan(n/t),i=r>o&&r<Math.PI-o?n/Math.sin(r):t/Math.cos(r);return Math.abs(i)}({width:e.width+t.width,height:e.height+t.height},n)}function Obe(e,t,n,a,r){if(e*t<e*a||e*t>e*r)return!1;var o=n();return e*(t-e*o/2-a)>=0&&e*(t+e*o/2-r)<=0}function Ibe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Rbe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ibe(Object(n),!0).forEach(function(t){Mbe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ibe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Mbe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bbe(e,t,n){var a,{tick:r,ticks:o,viewBox:i,minTickGap:s,orientation:l,interval:c,tickFormatter:u,unit:d,angle:h}=e;if(!o||!o.length||!r)return[];if(x6(c)||$pe)return null!==(a=function(e,t){return Tbe(e,t+1)}(o,x6(c)?c:0))&&void 0!==a?a:[];var p=[],f="top"===l||"bottom"===l?"width":"height",m=d&&"width"===f?dve(d,{fontSize:t,letterSpacing:n}):{width:0,height:0},g=(e,a)=>{var r="function"===typeof u?u(e.value,a):e.value;return"width"===f?Fbe(dve(r,{fontSize:t,letterSpacing:n}),m,h):dve(r,{fontSize:t,letterSpacing:n})[f]},v=o.length>=2?y6(o[1].coordinate-o[0].coordinate):1,y=function(e,t,n){var a="width"===n,{x:r,y:o,width:i,height:s}=e;return 1===t?{start:a?r:o,end:a?r+i:o+s}:{start:a?r+i:o+s,end:a?r:o}}(i,v,f);return"equidistantPreserveStart"===c?function(e,t,n,a,r){for(var o,i=(a||[]).slice(),{start:s,end:l}=t,c=0,u=1,d=s,h=function(){var t=null===a||void 0===a?void 0:a[c];if(void 0===t)return{v:Tbe(a,u)};var o,i=c,h=()=>(void 0===o&&(o=n(t,i)),o),p=t.coordinate,f=0===c||Obe(e,p,h,d,l);f||(c=0,d=s,u+=1),f&&(d=p+e*(h()/2+r),c+=u)};u<=i.length;)if(o=h())return o.v;return[]}(v,y,g,o,s):"equidistantPreserveEnd"===c?function(e,t,n,a,r){var o=(a||[]).slice().length;if(0===o)return[];for(var{start:i,end:s}=t,l=1;l<=o;l++){for(var c=(o-1)%l,u=i,d=!0,h=function(){var t,o=a[p],i=p,l=()=>(void 0===t&&(t=n(o,i)),t),h=o.coordinate,f=p===c||Obe(e,h,l,u,s);if(!f)return d=!1,1;f&&(u=h+e*(l()/2+r))},p=c;p<o&&!h();p+=l);if(d){for(var f=[],m=c;m<o;m+=l)f.push(a[m]);return f}}return[]}(v,y,g,o,s):(p="preserveStart"===c||"preserveStartEnd"===c?function(e,t,n,a,r,o){var i=(a||[]).slice(),s=i.length,{start:l,end:c}=t;if(o){var u=a[s-1],d=n(u,s-1),h=e*(u.coordinate+e*d/2-c);i[s-1]=u=Rbe(Rbe({},u),{},{tickCoord:h>
vendor: 4,674 bytes, line 2
20?u.coordinate-h*e:u.coordinate}),null!=u.tickCoord&&Obe(e,u.tickCoord,()=>d,l,c)&&(c=u.tickCoord-e*(d/2+r),i[s-1]=Rbe(Rbe({},u),{},{isShow:!0}))}for(var p=o?s-1:s,f=function(t){var a,o=i[t],s=()=>(void 0===a&&(a=n(o,t)),a);if(0===t){var u=e*(o.coordinate-e*s()/2-l);i[t]=o=Rbe(Rbe({},o),{},{tickCoord:u<0?o.coordinate-u*e:o.coordinate})}else i[t]=o=Rbe(Rbe({},o),{},{tickCoord:o.coordinate});null!=o.tickCoord&&Obe(e,o.tickCoord,s,l,c)&&(l=o.tickCoord+e*(s()/2+r),i[t]=Rbe(Rbe({},o),{},{isShow:!0}))},m=0;m<p;m++)f(m);return i}(v,y,g,o,s,"preserveStartEnd"===c):function(e,t,n,a,r){for(var o=(a||[]).slice(),i=o.length,{start:s}=t,{end:l}=t,c=function(t){var a,c=o[t],u=()=>(void 0===a&&(a=n(c,t)),a);if(t===i-1){var d=e*(c.coordinate+e*u()/2-l);o[t]=c=Rbe(Rbe({},c),{},{tickCoord:d>0?c.coordinate-d*e:c.coordinate})}else o[t]=c=Rbe(Rbe({},c),{},{tickCoord:c.coordinate});null!=c.tickCoord&&Obe(e,c.tickCoord,u,s,l)&&(l=c.tickCoord-e*(u()/2+r),o[t]=Rbe(Rbe({},c),{},{isShow:!0}))},u=i-1;u>=0;u--)c(u);return o}(v,y,g,o,s),p.filter(e=>e.isShow))}var zbe=["axisLine","width","height","className","hide","ticks","axisType"];function Lbe(){return Lbe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Lbe.apply(null,arguments)}function Ube(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Vbe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ube(Object(n),!0).forEach(function(t){qbe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ube(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qbe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hbe={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd",zIndex:ple.axis};function Wbe(e){var{x:t,y:n,width:a,height:r,orientation:i,mirror:s,axisLine:l,otherSvgProps:c}=e;if(!l)return null;var u=Vbe(Vbe(Vbe({},c),kfe(l)),{},{fill:"none"});if("top"===i||"bottom"===i){var d=+("top"===i&&!s||"bottom"===i&&s);u=Vbe(Vbe({},u),{},{x1:t,y1:n+d*r,x2:t+a,y2:n+d*r})}else{var h=+("left"===i&&!s||"right"===i&&s);u=Vbe(Vbe({},u),{},{x1:t+h*a,y1:n,x2:t+h*a,y2:n+r})}return o.createElement("line",Lbe({},u,{className:Dd("recharts-cartesian-axis-line",m6()(l,"className"))}))}function Kbe(e){var t,{option:n,tickProps:a,value:r}=e,i=Dd(a.className,"recharts-cartesian-axis-tick-value");if(o.isValidElement(n))t=o.cloneElement(n,Vbe(Vbe({},a),{},{className:i}));else if("function"===typeof n)t=n(Vbe(Vbe({},a),{},{className:i}));else{var s="recharts-cartesian-axis-tick-value";"boolean"!==typeof n&&(s=Dd(s,null===n||void 0===n?void 0:n.className)),t=o.createElement(Bve,Lbe({},a,{className:s}),r)}return t}var Ybe=(0,o.forwardRef)((e,t)=>{var{ticks:n=[],tick:a,tickLine:r,stroke:i,tickFormatter:s,unit:l,padding:c,tickTextProps:u,orientation:d,mirror:h,x:p,y:f,width:m,height:g,tickSize:v,tickMargin:y,fontSize:w,letterSpacing:_,getTicksConfig:x,events:b,axisType:k}=e,C=Bbe(Vbe(Vbe({},x),{},{ticks:n}),w,_),D=function(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}(d,h),A=function(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}(d,h),E=kfe(x),j=Cfe(a),S={};"object"===typeof r&&(S=r);var N=Vbe(Vbe({},E),{},{fill:"none"},S),P=C.map(e=>Vbe({entry:e},function(e,t,n,a,r,o,i,s,l){var c,u,d,h,p,f,m=s?-1:1,g=e.tickSize||i,v=x6(e.tickCoord)?e.tickCoord:e.coordinate;switch(o){case"top":c=u=e.coordinate,f=(d=(h=n+ +!s*r)-m*g)-m*l,p=v;break;case"left":d=h=e.coordinate,p=(c=(u=t+ +!s*a)-m*g)-m*l,f=v;break;case"right":d=h=e.coordinate,p=(c=(u=t+ +s*a)+m*g)+m*l,f=v;break;default:c=u=e.coordinate,f=(d=(h=n+ +s*r)+m*g)+m*l,p=v}return{line:{x1:c,y1:d,x2:u,y2:h},tick:{x:p,y:f}}}(e,p,f,m,g,d,v,h,y))),T=P.map(e=>{var{entry:t,line:n}
2=e;return o.createElement(dge,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},r&&o.createElement("line",Lbe({},N,n,{className:Dd("recharts-cartesian-axis-tick-line",m6()(r,"className"))})))}),F=P.map((e,t)=>{var{entry:n,tick:r}=e,d=Vbe(Vbe(Vbe(Vbe({textAnchor:D,verticalAnchor:A},E),{},{stroke:"none",fill:i},j),r),{},{index:t,payload:n,visibleTicksCount:C.length,tickFormatter:s,padding:c},u);return o.createElement(dge,Lbe({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(n.value,"-").concat(n.coordinate,"-").concat(n.tickCoord)},Hge(b,n,t)),a&&o.createElement(Kbe,{option:a,tickProps:d,value:"".concat("function"===typeof s?s(n.value,t):n.value).concat(l||"")}))});return o.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(k,"-ticks")},F.length>0&&o.createElement(f_e,{zIndex:ple.label},o.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(k,"-tick-labels"),ref:t},F)),T.length>0&&o.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(k,"-tick-lines")},T))}),Gbe=(0,o.forwardRef)((e,t)=>{var{axisLine:n,width:a,height:r,className:i,hide:s,ticks:l,axisType:c}=e,u=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,zbe),[d,h]=(0,o.useState)(""),[p,f]=(0,o.useState)(""),m=(0,o.useRef)(null);(0,o.useImperativeHandle)(t,()=>({getCalculatedWidth:()=>{var t;return(e=>{var{ticks:t,label:n,labelGapWithTick:a=5,tickSize:r=0,tickMargin:o=0}=e,i=0;if(t){Array.from(t).forEach(e=>{if(e){var t=e.getBoundingClientRect();t.width>i&&(i=t.width)}});var s=n?n.getBoundingClientRect().width:0,l=i+(r+o)+s+(n?a:0);return Math.round(l)}return 0})({ticks:m.current,label:null===(t=e.labelRef)||void 0===t?void 0:t.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var g=(0,o.useCallback)(e=>{if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value");m.current=t;var n=t[0];if(n){var a=window.getComputedStyle(n),r=a.fontSize,o=a.letterSpacing;r===d&&o===p||(h(r),f(o))}}},[d,p]);return s||null!=a&&a<=0||null!=r&&r<=0?null:o.createElement(f_e,{zIndex:e.zIndex},o.createElement(dge,{className:Dd("recharts-cartesian-axis",i)},o.createElement(Wbe,{x:e.x,y:e.y,width:a,height:r,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:kfe(e)}),o.createElement(Ybe,{ref:g,axisType:c,events:u,fontSize:d,getTicksConfig:e,height:e.height,letterSpacing:p,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:l,unit:e.unit,width:e.width,x:e.x,y:e.y}),o.createElement(k_e,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},o.createElement(F_e,{label:e.label,labelRef:e.labelRef}),e.children)))}),Jbe=o.forwardRef((e,t)=>{var n=yme(e,Hbe);return o.createElement(Gbe,Lbe({},n,{ref:t}))});Jbe.displayName="CartesianAxis";var $be=["x1","y1","x2","y2","key"],Qbe=["offset"],Xbe=["xAxisId","yAxisId"],Zbe=["xAxisId","yAxisId"];function eke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function tke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eke(Object(n),!0).forEach(function(t){nke(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eke(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nke(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ake(){return ake=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},ake.apply(null,arguments)}function rke(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var oke=e=>{var{fill:t}=e;if(!t||"none"===t)return null;var{fillOpacity:n,x:a,y:r,width:i,height:s,ry:l}=e;return o.createElement("rect",{x:a,y:r,ry:l,width:i,height:s,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function ike(e){var t,{option:n,lineItemProps:a}=e;if(o.isValidElement(n))t=o.cloneElement(n,a);else if("function"===typeof n)t=n(a);else{var r,{x1:i,y1:s,x2:l,y2:c,key:u}=a,d=null!==(r=kfe(rke(a,$be)))&&void 0!==r?r:{},{offset:h}=d,p=rke(d,Qbe);t=o.createElement("line",ake({},p,{x1:i,y1:s,x2:l,y2:c,fill:"none",key:u}))}return t}function ske(e){var{x:t,width:n,horizontal:a=!0,horizontalPoints:r}=e;if(!a||!r||!r.length)return null;var{xAxisId:i,yAxisId:s}=e,l=rke(e,Xbe),c=r.map((e,r)=>{var i=tke(tke({},l),{},{x1:t,y1:e,x2:t+n,y2:e,key:"line-".concat(r),index:r});return o.createElement(ike,{key:"line-".concat(r),option:a,lineItemProps:i})});return o.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}function lke(e){var{y:t,height:n,vertical:a=!0,verticalPoints:r}=e;if(!a||!r||!r.length)return null;var{xAxisId:i,yAxisId:s}=e,l=rke(e,Zbe),c=r.map((e,r)=>{var i=tke(tke({},l),{},{x1:e,y1:t,x2:e,y2:t+n,key:"line-".concat(r),index:r});return o.createElement(ike,{option:a,lineItemProps:i,key:"line-".concat(r)})});return o.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}function cke(e){var{horizontalFill:t,fillOpacity:n,x:a,y:r,width:i,height:s,horizontalPoints:l,horizontal:c=!0}=e;if(!c||!t||!t.length||null==l)return null;var u=l.map(e=>Math.round(e+r-r)).sort((e,t)=>
2e-t);r!==u[0]&&u.unshift(0);var d=u.map((e,l)=>{var c=!u[l+1]?r+s-e:u[l+1]-e;if(c<=0)return null;var d=l%t.length;return o.createElement("rect",{key:"react-".concat(l),y:e,x:a,height:c,width:i,stroke:"none",fill:t[d],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return o.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function uke(e){var{vertical:t=!0,verticalFill:n,fillOpacity:a,x:r,y:i,width:s,height:l,verticalPoints:c}=e;if(!t||!n||!n.length)return null;var u=c.map(e=>Math.round(e+r-r)).sort((e,t)=>e-t);r!==u[0]&&u.unshift(0);var d=u.map((e,t)=>{var c=!u[t+1]?r+s-e:u[t+1]-e;if(c<=0)return null;var d=t%n.length;return o.createElement("rect",{key:"react-".concat(t),x:e,y:i,width:c,height:l,stroke:"none",fill:n[d],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return o.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var dke=(e,t)=>{var{xAxis:n,width:a,height:r,offset:o}=e;return Ste(Bbe(tke(tke(tke({},Hbe),n),{},{ticks:Nte(n,!0),viewBox:{x:0,y:0,width:a,height:r}})),o.left,o.left+o.width,t)},hke=(e,t)=>{var{yAxis:n,width:a,height:r,offset:o}=e;return Ste(Bbe(tke(tke(tke({},Hbe),n),{},{ticks:Nte(n,!0),viewBox:{x:0,y:0,width:a,height:r}})),o.top,o.top+o.height,t)},pke={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:ple.grid};function fke(e){var t=dne(),n=hne(),a=une(),r=tke(tke({},yme(e,pke)),{},{x:x6(e.x)?e.x:a.left,y:x6(e.y)?e.y:a.top,width:x6(e.width)?e.width:a.width,height:x6(e.height)?e.height:a.height}),{xAxisId:i,yAxisId:s,x:l,y:c,width:u,height:d,syncWithTicks:h,horizontalValues:p,verticalValues:f}=r,m=rne(),g=hte(e=>que(e,"xAxis",i,m)),v=hte(e=>que(e,"yAxis",s,m));if(!U6(u)||!U6(d)||!x6(l)||!x6(c))return null;var y=r.verticalCoordinatesGenerator||dke,w=r.horizontalCoordinatesGenerator||hke,{horizontalPoints:_,verticalPoints:x}=r;if((!_||!_.length)&&"function"===typeof w){var b=p&&p.length,k=w({yAxis:v?tke(tke({},v),{},{ticks:b?p:v.ticks}):void 0,width:null!==t&&void 0!==t?t:u,height:null!==n&&void 0!==n?n:d,offset:a},!!b||h);F6(Array.isArray(k),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof k,"]")),Array.isArray(k)&&(_=k)}if((!x||!x.length)&&"function"===typeof y){var C=f&&f.length,D=y({xAxis:g?tke(tke({},g),{},{ticks:C?f:g.ticks}):void 0,width:null!==t&&void 0!==t?t:u,height:null!==n&&void 0!==n?n:d,offset:a},!!C||h);F6(Array.isArray(D),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof D,"]")),Array.isArray(D)&&(x=D)}return o.createElement(f_e,{zIndex:r.zIndex},o.createElement("g",{className:"recharts-cartesian-grid"},o.createElement(oke,{fill:r.fill,fillOpacity:r.fillOpacity,x:r.x,y:r.y,width:r.width,height:r.height,ry:r.ry}),o.createElement(cke,ake({},r,{horizontalPoints:_})),o.createElement(uke,ake({},r,{verticalPoints:x})),o.createElement(ske,ake({},r,{offset:a,horizontalPoints:_,xAxis:g,yAxis:v})),o.createElement(lke,ake({},r,{offset:a,verticalPoints:x,xAxis:g,yAxis:v}))))}fke.displayName="CartesianGrid";var mke=["domain","range"],gke=["domain","range"];function vke(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yke(e,t){return e===t||!(!Array.isArray(e)||2!==e.length||!Array.isArray(t)||2!==t.length)&&(e[0]===t[0]&&e[1]===t[1])}function wke(e,t){if(e===t)return!0;var{domain:n,range:a}=e,r=vke(e,mke),{domain:o,range:i}=t,s=vke(t,gke);return!!yke(n,o)&&(!!yke(a,i)&&hfe(r,s))}var _ke=["dangerouslySetInnerHTML","ticks","scale"],xke=["id","scale"];function bke(){return bke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},bke.apply(null,arguments)}function kke(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Cke(e){var t=lte(),n=(0,o.useRef)(null);return(0,o.useLayoutEffect)(()=>{null===n.current?t(Bhe(e)):n.current!==e&&t(zhe({prev:n.current,next:e})),n.current=e},[e,t]),(0,o.useLayoutEffect)(()=>()=>{n.current&&(t(Lhe(n.current)),n.current=null)},[t]),null}var Dke=e=>{var{xAxisId:t,className:n}=e,a=hte(nne),r=rne(),i="xAxis",s=hte(e=>Hue(e,i,t,r)),l=hte(e=>Tue(e,t)),c=hte(e=>Iue(e,t)),u=hte(e=>tce(e,t));if(null==l||null==c||null==u)return null;var{dangerouslySetInnerHTML:d,ticks:h,scale:p}=e,f=kke(e,_ke),{id:m,scale:g}=u,v=kke(u,xke);return o.createElement(Jbe,bke({},f,v,{x:c.x,y:c.y,width:l.width,height:l.height,className:Dd("recharts-".concat(i," ").concat(i),n),viewBox:a,ticks:s,axisType:i}))},Ake={allowDataOverflow:ece.allowDataOverflow,allowDecimals:ece.allowDecimals,allowDuplicatedCategory:ece.allowDuplicatedCategory,angle:ece.angle,axisLine
vendor: 4,219 bytes, line 2
2:Hbe.axisLine,height:ece.height,hide:!1,includeHidden:ece.includeHidden,interval:ece.interval,minTickGap:ece.minTickGap,mirror:ece.mirror,orientation:ece.orientation,padding:ece.padding,reversed:ece.reversed,scale:ece.scale,tick:ece.tick,tickCount:ece.tickCount,tickLine:Hbe.tickLine,tickSize:Hbe.tickSize,type:ece.type,xAxisId:0},Eke=e=>{var t=yme(e,Ake);return o.createElement(o.Fragment,null,o.createElement(Cke,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit}),o.createElement(Dke,t))},jke=o.memo(Eke,wke);jke.displayName="XAxis";var Ske=["dangerouslySetInnerHTML","ticks","scale"],Nke=["id","scale"];function Pke(){return Pke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Pke.apply(null,arguments)}function Tke(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Fke(e){var t=lte(),n=(0,o.useRef)(null);return(0,o.useLayoutEffect)(()=>{null===n.current?t(Uhe(e)):n.current!==e&&t(Vhe({prev:n.current,next:e})),n.current=e},[e,t]),(0,o.useLayoutEffect)(()=>()=>{n.current&&(t(qhe(n.current)),n.current=null)},[t]),null}var Oke=e=>{var{yAxisId:t,className:n,width:a,label:r}=e,i=(0,o.useRef)(null),s=(0,o.useRef)(null),l=hte(nne),c=rne(),u=lte(),d="yAxis",h=hte(e=>Mue(e,t)),p=hte(e=>Rue(e,t)),f=hte(e=>Hue(e,d,t,c)),m=hte(e=>rce(e,t));if((0,o.useLayoutEffect)(()=>{if("auto"===a&&h&&!E_e(r)&&!(0,o.isValidElement)(r)&&null!=m){var e=i.current;if(e){var n=e.getCalculatedWidth();Math.round(h.width)!==Math.round(n)&&u(Yhe({id:t,width:n}))}}},[f,h,u,r,t,a,m]),null==h||null==p||null==m)return null;var{dangerouslySetInnerHTML:g,ticks:v,scale:y}=e,w=Tke(e,Ske),{id:_,scale:x}=m,b=Tke(m,Nke);return o.createElement(Jbe,Pke({},w,b,{ref:i,labelRef:s,x:p.x,y:p.y,tickTextProps:"auto"===a?{width:void 0}:{width:a},width:h.width,height:h.height,className:Dd("recharts-".concat(d," ").concat(d),n),viewBox:l,ticks:f,axisType:d}))},Ike={allowDataOverflow:ace.allowDataOverflow,allowDecimals:ace.allowDecimals,allowDuplicatedCategory:ace.allowDuplicatedCategory,angle:ace.angle,axisLine:Hbe.axisLine,hide:!1,includeHidden:ace.includeHidden,interval:ace.interval,minTickGap:ace.minTickGap,mirror:ace.mirror,orientation:ace.orientation,padding:ace.padding,reversed:ace.reversed,scale:ace.scale,tick:ace.tick,tickCount:ace.tickCount,tickLine:Hbe.tickLine,tickSize:Hbe.tickSize,type:ace.type,width:ace.width,yAxisId:0},Rke=e=>{var t=yme(e,Ike);return o.createElement(o.Fragment,null,o.createElement(Fke,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter}),o.createElement(Oke,t))},Mke=o.memo(Rke,wke);function Bke(){return Bke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Bke.apply(null,arguments)}Mke.displayName="YAxis";var zke=e=>{var{cx:t,cy:n,r:a,className:r}=e,i=Dd("recharts-dot",r);return x6(t)&&x6(n)&&x6(a)?o.createElement("circle",Bke({},kfe(e),qge(e),{className:i,cx:t,cy:n,r:a}
2)):null},Lke=["points"];function Uke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Vke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uke(Object(n),!0).forEach(function(t){qke(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uke(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qke(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hke(){return Hke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Hke.apply(null,arguments)}function Wke(e){var{option:t,dotProps:n,className:a}=e;if((0,o.isValidElement)(t))return(0,o.cloneElement)(t,n);if("function"===typeof t)return t(n);var r=Dd(a,"boolean"!==typeof t?t.className:""),i=null!==n&&void 0!==n?n:{},{points:s}=i,l=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(i,Lke);return o.createElement(zke,Hke({},l,{className:r}))}function Kke(e){var{points:t,dot:n,className:a,dotClassName:r,dataKey:i,baseProps:s,needClip:l,clipPathId:c,zIndex:u=ple.scatter}=e;if(!function(e,t){return null!=e&&(!!t||1===e.length)}(t,n))return null;var d,h=Kve(n),p=null==(d=n)?null:(0,o.isValidElement)(d)?Dfe(d.props):"object"!==typeof d||Array.isArray(d)?null:Dfe(d),f=t.map((e,a)=>{var l,c,u=Vke(Vke(Vke({r:3},s),p),{},{index:a,cx:null!==(l=e.x)&&void 0!==l?l:void 0,cy:null!==(c=e.y)&&void 0!==c?c:void 0,dataKey:i,value:e.value,payload:e.payload,points:t});return o.createElement(Wke,{key:"dot-".concat(a),option:n,dotProps:u,className:r})}),m={};return l&&null!=c&&(m.clipPath="url(#clipPath-".concat(h?"":"dots-").concat(c,")")),o.createElement(f_e,{zIndex:u},o.createElement(dge,Hke({className:a},m),f))}function Yke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Gke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yke(Object(n),!0).forEach(function(t){Jke(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yke(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jke(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $ke=e=>{var{point:t,childIndex:n,mainColor:a,activeDot:r,dataKey:i,clipPath:s}=e;if(!1===r||null==t.x||null==t.y)return null;var l,c=Gke(Gke(Gke({},{index:n,dataKey:i,cx:t.x,cy:t.y,r:4,fill:null!==a&&void 0!==a?a:"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value}),Cfe(r)),qge(r));return l=(0,o.isValidElement)(r)?(0,o.cloneElement)(r,c):"function"===typeof r?r(c):o.createElement(zke,c),o.createElement(dge,{className:"recharts-active-dot",clipPath:s},l)};function Qke(e){var{points:t,mainColor:n,activeDot:a,itemDataKey:r,clipPath:i,zIndex:s=ple.activeDot}=e,l=hte(Xde),c=hte(she);if(null==t||null==c)return null;var u=t.find(e=>c.includes(e.payload));return S6(u)?null:o.createElement(f_e,{zIndex:s},o.createElement($ke,{point:u,childIndex:Number(l),mainColor:n,dataKey:r,activeDot:a,clipPath:i}))}var Xke=["children"];var Zke={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},eCe=(0,o.createContext)(Zke);function tCe(e){var{children:t}=e,n=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,Xke);return o.createElement(eCe.Provider,{value:n},t)}function nCe(e,t){var n,a,r=hte(t=>nce(t,e)),o=hte(e=>oce(e,t)),i=null!==(n=null===r||void 0===r?void 0:r.allowDataOverflow)&&void 0!==n?n:ece.allowDataOverflow,s=null!==(a=null===o||void 0===o?void 0:o.allowDataOverflow)&&void 0!==a?a:ace.allowDataOverflow;return{needClip:i||s,needClipX:i,needClipY:s}}function aCe(e){var{xAxisId:t,yAxisId:n,clipPathId:a}=e,r=dme(),{needClipX:i,needClipY:s,needClip:l}=nCe(t,n);if(!l||!r)return null;var{x:c,y:u,width:d,height:h}=r;return o.createElement("clipPath",{id:"clipPath-".concat(a)},o.createElement("rect",{x:i?c:c-d/2,y:s?u:u-h/2,width:i?d:2*d,height:s?h:2*h}))}var rCe=(e,t,n,a)=>Kue(e,"xAxis",t,a),oCe=(e,t,n,a)=>Wue(e,"xAxis",t,a),iCe=(e,t,n,a)=>Kue(e,"yAxis",n,a),sCe=(e,t,n,a)=>Wue(e,"yAxis",n,a),lCe=ate([pne,rCe,iCe,oCe,sCe],(e,t,n,a,r)=>jte(e,"xAxis")?Lte(t,a,!1):Lte(n,r,!1));function cCe(e){return"line"===e.type}var uCe=ate([hce,(e,t,n,a,r)=>r],(e,t)=>e.filter(cCe).find(e=>e.id===t)),dCe=ate([pne,rCe,iCe,oCe,sCe,uCe,lCe,jse],(e,t,n,a,r,o,i,s)=>{var{chartData:l,dataStartIndex:c,dataEndIndex:u}=s;if(null!=o&&null!=t&&null!=n&&null!=a&&null!=r&&0!==a.length&&0!==r.length&&null!=i&&("horizontal"===e||"vertical"===e)){var d,{dataKey:h,data:p}=o;if(null!=(d=null!=p&&p.length>0?p:null===l||void 0===l?void 0:l.slice(c,u+1)))return function(e){var{layout:t,xAxis:n,yAxis:a,xAxisTicks:r,yAxisTicks:o,dataKey:i,bandSize:s,displayedData:l}=e;return l.map((e,l)=>{var c=Ete(e,i);if("horizontal"===t)return{x:Ite({axis:n,ticks:r,bandSize:s,entry:e,index:l}),y:S6(c)?null:a.scale(c),value:c,payload:e};var u=S6(c)?null:n.scale(c),d=Ite({axis:a,ticks:o,bandSize:s,entry:e,index:l});return null==u||null==d?null:{x:u,y:d,value:c,payload:e}}
2).filter(Boolean)}({layout:e,xAxis:t,yAxis:n,xAxisTicks:a,yAxisTicks:r,dataKey:h,bandSize:i,displayedData:d})}});function hCe(e){var t=Cfe(e);if(null!=t){var{r:n,strokeWidth:a}=t,r=Number(n),o=Number(a);return(Number.isNaN(r)||r<0)&&(r=3),(Number.isNaN(o)||o<0)&&(o=2),{r:r,strokeWidth:o}}return{r:3,strokeWidth:2}}var pCe=["id"],fCe=["type","layout","connectNulls","needClip","shape"],mCe=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function gCe(){return gCe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},gCe.apply(null,arguments)}function vCe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function yCe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vCe(Object(n),!0).forEach(function(t){wCe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vCe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wCe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _Ce(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var xCe=e=>{var{dataKey:t,name:n,stroke:a,legendType:r,hide:o}=e;return[{inactive:o,dataKey:t,type:r,color:a,value:Vte(n,t),payload:e}]},bCe=o.memo(e=>{var{dataKey:t,data:n,stroke:a,strokeWidth:r,fill:i,name:s,hide:l,unit:c,tooltipType:u,id:d}=e,h={dataDefinedOnItem:n,positions:void 0,settings:{stroke:a,strokeWidth:r,fill:i,dataKey:t,nameKey:void 0,name:Vte(s,t),hide:l,type:u,color:a,unit:c,graphicalItemId:d}};return o.createElement(a_e,{tooltipEntrySettings:h})}),kCe=(e,t)=>"".concat(t,"px ").concat(e-t,"px");function CCe(e,t){for(var n=e.length%2!==0?[...e,0]:e,a=[],r=0;r<t;++r)a=[...a,...n];return a}function DCe(e){var{clipPathId:t,points:n,props:a}=e,{dot:r,dataKey:i,needClip:s}=a,{id:l}=a,c=kfe(_Ce(a,pCe));return o.createElement(Kke,{points:n,dot:r,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:i,baseProps:c,needClip:s,clipPathId:t})}function ACe(e){var{showLabels:t,children:n,points:a}=e,r=(0,o.useMemo)(()=>null===a||void 0===a?void 0:a.map(e=>{var t,n,a={x:null!==(t=e.x)&&void 0!==t?t:0,y:null!==(n=e.y)&&void 0!==n?n:0,width:0,lowerWidth:0,upperWidth:0,height:0};return yCe(yCe({},a),{},{value:e.value,payload:e.payload,viewBox:a,parentViewBox:void 0,fill:void 0})}),[a]);return o.createElement(L_e,{value:t?r:void 0},n)}function ECe(e){var{clipPathId:t,pathRef:n,points:a,strokeDasharray:r,props:i}=e,{type:s,layout:l,connectNulls:c,needClip:u,shape:d}=i,h=yCe(yCe({},Dfe(_Ce(i,fCe))),{},{fill:"none",className:"recharts-line-curve",clipPath:u?"url(#clipPath-".concat(t,")"):void 0,points:a,type:s,layout:l,connectNulls:c,strokeDasharray:null!==r&&void 0!==r?r:i.strokeDasharray});return o.createElement(o.Fragment,null,(null===a||void 0===a?void 0:a.length)>1&&o.createElement(Xwe,gCe({shapeType:"curve",option:d},h,{pathRef:n})),o.createElement(DCe,{points:a,clipPathId:t,props:i}))}function jCe(e){var{clipPathId:t,props:n,pathRef:a,previousPointsRef:r,longestAnimatedLengthRef:i}=e,{points:s,strokeDasharray:l,isAnimationActive:c,animationBegin:u,animationDuration:d,animationEasing:h,animateNewValues:p,width:f,height:m,onAnimationEnd:g,onAnimationStart:v}=n,y=r.current,w=kye(s,"recharts-line-"),_=(0,o.useRef)(w),[x,b]=(0,o.useState)(!1),k=!x,C=(0,o.useCallback)(()=>{"function"===typeof g&&g(),b(!1)},[g]),D=(0,o.useCallback)(()=>{"function"===typeof v&&v(),b(!0)},[v]),A=function(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(t){return 0}}(a.current),E=(0,o.useRef)(0);_.current!==w&&(E.current=i.current,_.current=w);var j=E.current;return o.createElement(ACe,{points:s,showLabels:k},n.children,o.createElement(bye,{animationId:w,begin:u,duration:d,isActive:c,easing:h,onAnimationEnd:C,onAnimationStart:D,key:w},e=>{var u,d=E6(j,A+j,e),h=Math.min(d,A);if(c)if(l){var g="".concat(l).split(/[,\s]+/gim).map(e=>parseFloat(e));u=((e,t,n)=>{var a=n.reduce((e,t)=>
2e+t);if(!a)return kCe(t,e);for(var r=Math.floor(e/a),o=e%a,i=t-e,s=[],l=0,c=0;l<n.length;c+=n[l],++l)if(c+n[l]>o){s=[...n.slice(0,l),o-c];break}var u=s.length%2===0?[0,i]:[i];return[...CCe(n,r),...s,...u].map(e=>"".concat(e,"px")).join(", ")})(h,A,g)}else u=kCe(A,h);else u=null==l?void 0:String(l);if(e>0&&A>0&&(r.current=s,i.current=Math.max(i.current,h)),y){var v=y.length/s.length,w=1===e?s:s.map((t,n)=>{var a=Math.floor(n*v);if(y[a]){var r=y[a];return yCe(yCe({},t),{},{x:E6(r.x,t.x,e),y:E6(r.y,t.y,e)})}return yCe(yCe({},t),{},p?{x:E6(2*f,t.x,e),y:E6(m/2,t.y,e)}:{x:t.x,y:t.y})});return r.current=w,o.createElement(ECe,{props:n,points:w,clipPathId:t,pathRef:a,strokeDasharray:u})}return o.createElement(ECe,{props:n,points:s,clipPathId:t,pathRef:a,strokeDasharray:u})}),o.createElement(H_e,{label:n.label}))}function SCe(e){var{clipPathId:t,props:n}=e,a=(0,o.useRef)(null),r=(0,o.useRef)(0),i=(0,o.useRef)(null);return o.createElement(jCe,{props:n,clipPathId:t,previousPointsRef:a,longestAnimatedLengthRef:r,pathRef:i})}var NCe=(e,t)=>{var n,a;return{x:null!==(n=e.x)&&void 0!==n?n:void 0,y:null!==(a=e.y)&&void 0!==a?a:void 0,value:e.value,errorVal:Ete(e.payload,t)}};class PCe extends o.Component{render(){var{hide:e,dot:t,points:n,className:a,xAxisId:r,yAxisId:i,top:s,left:l,width:c,height:u,id:d,needClip:h,zIndex:p}=this.props;if(e)return null;var f=Dd("recharts-line",a),m=d,{r:g,strokeWidth:v}=hCe(t),y=Kve(t),w=2*g+v,_=h?"url(#clipPath-".concat(y?"":"dots-").concat(m,")"):void 0;return o.createElement(f_e,{zIndex:p},o.createElement(dge,{className:f},h&&o.createElement("defs",null,o.createElement(aCe,{clipPathId:m,xAxisId:r,yAxisId:i}),!y&&o.createElement("clipPath",{id:"clipPath-dots-".concat(m)}
2,o.createElement("rect",{x:l-w/2,y:s-w/2,width:c+w,height:u+w}))),o.createElement(tCe,{xAxisId:r,yAxisId:i,data:n,dataPointFormatter:NCe,errorBarOffset:0},o.createElement(SCe,{props:this.props,clipPathId:m}))),o.createElement(Qke,{activeDot:this.props.activeDot,points:n,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:_}))}}var TCe={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:"auto",label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:ple.line,type:"linear"};function FCe(e){var t=yme(e,TCe),{activeDot:n,animateNewValues:a,animationBegin:r,animationDuration:i,animationEasing:s,connectNulls:l,dot:c,hide:u,isAnimationActive:d,label:h,legendType:p,xAxisId:f,yAxisId:m,id:g}=t,v=_Ce(t,mCe),{needClip:y}=nCe(f,m),w=dme(),_=fne(),x=rne(),b=hte(e=>dCe(e,f,m,x,g));if("horizontal"!==_&&"vertical"!==_||null==b||null==w)return null;var{height:k,width:C,x:D,y:A}=w;return o.createElement(PCe,gCe({},v,{id:g,connectNulls:l,dot:c,activeDot:n,animateNewValues:a,animationBegin:r,animationDuration:i,animationEasing:s,isAnimationActive:d,hide:u,label:h,legendType:p,xAxisId:f,yAxisId:m,points:b,layout:_,height:k,width:C,left:D,top:A,needClip:y}))}function OCe(e){var t=yme(e,TCe),n=rne();return o.createElement(l_e,{id:t.id,type:"line"},e=>o.createElement(o.Fragment,null,o.createElement(r_e,{legendPayload:xCe(t)}),o.createElement(bCe,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),o.createElement(u_e,{type:"line",id:e,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:n}),o.createElement(FCe,gCe({},t,{id:e}))))}var ICe=o.memo(OCe,hfe);ICe.displayName="Line";var RCe=["axis"],MCe=(0,o.forwardRef)((e,t)=>o.createElement(Cbe,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:RCe,tooltipPayloadSearcher:y7,categoricalChartProps:e,ref:t}));function BCe(e,t){var n,a;return null!==(n=null===(a=e.graphicalItems.cartesianItems.find(e=>e.id===t))||void 0===a?void 0:a.xAxisId)&&void 0!==n?n:0}function zCe(e,t){var n,a;return null!==(n=null===(a=e.graphicalItems.cartesianItems.find(e=>e.id===t))||void 0===a?void 0:a.yAxisId)&&void 0!==n?n:0}var LCe=(e,t,n)=>Kue(e,"xAxis",BCe(e,t),n),UCe=(e,t,n)=>Wue(e,"xAxis",BCe(e,t),n),VCe=(e,t,n)=>Kue(e,"yAxis",zCe(e,t),n),qCe=(e,t,n)=>Wue(e,"yAxis",zCe(e,t),n),HCe=ate([pne,LCe,VCe,UCe,qCe],(e,t,n,a,r)=>jte(e,"xAxis")?Lte(t,a,!1):Lte(n,r,!1)),WCe=ate([hce,(e,t)=>t],(e,t)=>e.filter(e=>"area"===e.type).find(e=>e.id===t)),KCe=e=>{var t=pne(e);return jte(t,"xAxis")?"yAxis":"xAxis"},YCe=ate([WCe,(e,t,n)=>Fce(e,KCe(e),((e,t)=>"yAxis"===KCe(e)?zCe(e,t):BCe(e,t))(e,t),n)],(e,t)=>{var n;if(null!=e&&null!=t){var{stackId:a}=e,r=qle(e);if(null!=a&&null!=r){var o=null===(n=t[a])||void 0===n?void 0:n.stackedData,i=null===o||void 0===o?void 0:o.find(e=>e.key===r);if(null!=i)return i.map(e=>[e[0],e[1]])}}}),GCe=ate([pne,LCe,VCe,UCe,qCe,YCe,Sse,HCe,WCe,e=>e.rootProps.baseValue],(e,t,n,a,r,o,i,s,l,c)=>{var{chartData:u,dataStartIndex:d,dataEndIndex:h}=i;if(null!=l&&("horizontal"===e||"vertical"===e)&&null!=t&&null!=n&&null!=a&&null!=r&&0!==a.length&&0!==r.length&&null!=s){var p,{data:f}=l;if(null!=(p=f&&f.length>0?f:null===u||void 0===u?void 0:u.slice(d,h+1)))return function(e){var t,{areaSettings:{connectNulls:n,baseValue:a,dataKey:r},stackedData:o,layout:i,chartBaseValue:s,xAxis:l,yAxis:c,displayedData:u,dataStartIndex:d,xAxisTicks:h,yAxisTicks:p,bandSize:f}=e,m=o&&o.length,g=gDe(i,s,a,l,c),v="horizontal"===i,y=!1,w=u.map((e,t)=>{var a,i,s;if(m)s=o[d+t];else{var u=Ete(e,r);Array.isArray(u)?(s=u,y=!0):s=[g,u]}var w=null!==(a=null===(i=s)||void 0===i?void 0:i[1])&&void 0!==a?a:null,_=null==w||m&&!n&&null==Ete(e,r);return v?{x:Ite({axis:l,ticks:h,bandSize:f,entry:e,index:t}),y:_?null:c.scale(w),value:s,payload:e}:{x:_?null:l.scale(w),y:Ite({axis:c,ticks:p,bandSize:f,entry:e,index:t}),value:s,payload:e}});t=m||y?w.map(e=>{var t=Array.isArray(e.value)?e.value[0]:null;return v?{x:e.x,y:null!=t&&null!=e.y?c.scale(t):null,payload:e.payload}:{x:null!=t?l.scale(t):null,y:e.y,payload:e.payload}}):v?c.scale(g):l.scale(g);return{points:w,baseLine:t,isRange:y}}({layout:e,xAxis:t,yAxis:n,xAxisTicks:a,yAxisTicks:r,dataStartIndex:d,areaSettings:l,stackedData:o,displayedData:p,chartBaseValue:c,bandSize:s})}}),JCe=["id"],$Ce=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function QCe(){return QCe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},QCe.apply(null,arguments)}function XCe(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ZCe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function eDe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?ZCe(Object(n),!0).forEach(function(t){tDe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZCe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tDe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nDe(e,t){return e&&"none"!==e?e:t}var aDe=e=>{var{dataKey:t,name:n,stroke:a,fill:r,legendType:o,hide:i}=e;return[{inactive:i,dataKey:t,type:o,color:nDe(a,r),value:Vte(n,t),payload:e}]},rDe=o.memo(e=>{var{dataKey:t,data:n,stroke:a,strokeWidth:r,fill:i,name:s,hide:l,unit:c,tooltipType:u,id:d}=e,h={dataDefinedOnItem:n,positions:void 0,settings:{stroke:a,strokeWidth:r,fill:i,dataKey:t,nameKey:void 0,name:Vte(s,t),hide:l,type:u,color:nDe(a,i),unit:c,graphicalItemId:d}};return o.createElement(a_e,{tooltipEntrySettings:h})});function oDe(e){var{clipPathId:t,points:n,props:a}=e,{needClip:r,dot:i,dataKey:s}=a,l=kfe(a);return o.createElement(Kke,{points:n,dot:i,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:s,baseProps:l,needClip:r,clipPathId:t})}function iDe(e){var{showLabels:t,children:n,points:a}=e,r=a.map(e=>{var t,n,a={x:null!==(t=e.x)&&void 0!==t?t:0,y:null!==(n=e.y)&&void 0!==n?n:0,width:0,lowerWidth:0,upperWidth:0,height:0};return eDe(eDe({},a),{},{value:e.value,payload:e.payload,parentViewBox:void 0,viewBox:a,fill:void 0})});return o.createElement(L_e,{value:t?r:void 0},n)}function sDe(e){var{points:t,baseLine:n,needClip:a,clipPathId:r,props:i}=e,{layout:s,type:l,stroke:c,connectNulls:u,isRange:d}=i,{id:h}=i,p=XCe(i,JCe),f=kfe(p),m=Dfe(p);return o.createElement(o.Fragment,null,(null===t||void 0===t?void 0:t.length)>1&&o.createElement(dge,{clipPath:a?"url(#clipPath-".concat(r,")"):void 0},o.createElement(tve,QCe({},m,{id:h,points:t,connectNulls:u,type:l,baseLine:n,layout:s,stroke:"none",className:"recharts-area-area"})),"none"!==c&&o.createElement(tve,QCe({},f,{className:"recharts-area-curve",layout:s,type:l,connectNulls:u,fill:"none",points:t})),"none"!==c&&d&&o.createElement(tve,QCe({},f,{className:"recharts-area-curve",layout:s,type:l,connectNulls:u,fill:"none",points:n}))),o.createElement(oDe,{points:t,props:p,clipPathId:r}))}function lDe(e){var t,n,{alpha:a,baseLine:r,points:i,strokeWidth:s}=e,l=null===(t=i[0])||void 0===t?void 0:t.y,c=null===(n=i[i.length-1])||void 0===n?void 0:n.y;if(!L6(l)||!L6(c))return null;var u=a*Math.abs(l-c),d=Math.max(...i.map(e=>e.x||0));return x6(r)?d=Math.max(r,d):r&&Array.isArray(r)&&r.length&&(d=Math.max(...r.map(e=>e.x||0),d)),x6(d)?o.createElement("rect",{x:0,y:l<c?l:l-u,width:d+(s?parseInt("".concat(s),10):1),height:Math.floor(u)}):null}function cDe(e){var t,n,{alpha:a,baseLine:r,points:i,strokeWidth:s}=e,l=null===(t=i[0])||void 0===t?void 0:t.x,c=null===(n=i[i.length-1])||void 0===n?void 0:n.x;if(!L6(l)||!L6(c))return null;var u=a*Math.abs(l-c),d=Math.max(...i.map(e=>e.y||0));return x6(r)?d=Math.max(r,d):r&&Array.isArray(r)&&r.length&&(d=Math.max(...r.map(e=>e.y||0),d)),x6(d)?o.createElement("rect",{x:l<c?l:l-u,y:0,width:u,height:Math.floor(d+(s?parseInt("".concat(s),10):1))}):null}function uDe(e){var{alpha:t,layout:n,points:a,baseLine:r,strokeWidth:i}=e;return"vertical"===n?o.createElement(lDe,{alpha:t,points:a,baseLine:r,strokeWidth:i}):o.createElement(cDe,{alpha:t,points:a,baseLine:r,strokeWidth:i})}function dDe(e){var{needClip:t,clipPathId:n,props:a,previousPointsRef:r,previousBaselineRef:i}=e,{points:s,baseLine:l,isAnimationActive:c,animationBegin:u,animationDuration:d,animationEasing:h,onAnimationStart:p,onAnimationEnd:f}=a,m=kye((0,o.useMemo)(()=>({points:s,baseLine:l}),[s,l]),"recharts-area-"),g=(()=>{var e=fne();if("horizontal"===e||"vertical"===e)return e})(),[v,y]=(0,o.useState)(!1),w=!v,_=(0,o.useCallback)(()=>{"function"===typeof f&&f(),y(!1)},[f]),x=(0,o.useCallback)(()=>{"function"===typeof p&&p(),y(!0)},[p]);if(null==g)return null;var b=r.current,k=i.current;return o.createElement(iDe,{showLabels:w,points:s},a.children,o.createElement(bye,{animationId:m,begin:u,duration:d,isActive:c,easing:h,onAnimationEnd:_,onAnimationStart:x,key:m},e=>{if(b){var u,d=b.length/s.length,h=1===e?s:s.map((t,n)=>{var a=Math.floor(n*d);if(b[a]){var r=b[a];return eDe(eDe({},t),{},{x:E6(r.x,t.x,e),y:E6(r.y,t.y,e)})}return t});return u=x6(l)?E6(k,l,e):S6(l)||w6(l)?E6(k,0,e):l.map((t,n)=>{var a=Math.floor(n*d);if(Array.isArray(k)&&k[a]){var r=k[a];return eDe(eDe({},t),{},{x:E6(r.x,t.x,e),y:E6(r.y,t.y,e)})}return t}),e>0&&(r.current=h,i.current=u),o.createElement(sDe,{points:h,baseLine:u,needClip:t,clipPathId:n,props:a})}return e>0&&(r.current=s,i.current=l),o.createElement(dge,null,c&&o.createElement("defs",null,o.createElement("clipPath",{id:"animationClipPath-".concat(n)},o.createElement(uDe,{alpha:e,points:s,baseLine:l,layout:g,strokeWidth:a.strokeWidth}))),o.createElement(dge,{clipPath:"url(#animationClipPath-".concat(n,")")},o.createElement(sDe,{points:s,baseLine:l,needClip:t,clipPathId:n,props:a})))}),o.createElement(H_e,{label:a.label}))}function hDe(e){var{needClip:t,clipPathId:n,props:a}=e,r=(0,o.useRef)(null),i=(0,o.useRef)();return o.createElement(dDe,{needClip:t,clipPathId:n,props:a,previousPointsRef:r,previousBaselineRef:i})}class pDe extends o.PureComponent{render(){var{hide:e,dot:t,points:n,className:a,top:r,left:i,needClip:s,xAxisId:l,yAxisId:c,width:u,height:d,id:h,baseLine:p,zIndex:f}=this.props;if(e)return null;var m=Dd("recharts-area",a),g=h,{r:v,strokeWidth:y}=hCe(t),w=Kve(t),_=2*v+y,x=s?"url(#clipPath-".concat(w?"":"dots-").concat(g,")"):void 0;return o.createElement(f_e,{zIndex:f},o.createElement(dge,{className:m},s&&o.createElement("defs",null,o.createElement(aCe,{clipPathId:g,xAxisId:l,yAxisId:c}),!w&&o.createElement("clipPath",{id:"clipPath-dots-".concat(g)}
2,o.createElement("rect",{x:i-_/2,y:r-_/2,width:u+_,height:d+_}))),o.createElement(hDe,{needClip:s,clipPathId:g,props:this.props})),o.createElement(Qke,{points:n,mainColor:nDe(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:x}),this.props.isRange&&Array.isArray(p)&&o.createElement(Qke,{points:p,mainColor:nDe(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:x}))}}var fDe={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!1,fill:"#3182bd",fillOpacity:.6,hide:!1,isAnimationActive:"auto",legendType:"line",stroke:"#3182bd",strokeWidth:1,type:"linear",label:!1,xAxisId:0,yAxisId:0,zIndex:ple.area};function mDe(e){var t,n=yme(e,fDe),{activeDot:a,animationBegin:r,animationDuration:i,animationEasing:s,connectNulls:l,dot:c,fill:u,fillOpacity:d,hide:h,isAnimationActive:p,legendType:f,stroke:m,xAxisId:g,yAxisId:v}=n,y=XCe(n,$Ce),w=fne(),_=hhe(),{needClip:x}=nCe(g,v),b=rne(),{points:k,isRange:C,baseLine:D}=null!==(t=hte(t=>GCe(t,e.id,b)))&&void 0!==t?t:{},A=dme();if("horizontal"!==w&&"vertical"!==w||null==A)return null;if("AreaChart"!==_&&"ComposedChart"!==_)return null;var{height:E,width:j,x:S,y:N}=A;return k&&k.length?o.createElement(pDe,QCe({},y,{activeDot:a,animationBegin:r,animationDuration:i,animationEasing:s,baseLine:D,connectNulls:l,dot:c,fill:u,fillOpacity:d,height:E,hide:h,layout:w,isAnimationActive:"auto"===p?!$pe:p,isRange:C,legendType:f,needClip:x,points:k,stroke:m,width:j,left:S,top:N,xAxisId:g,yAxisId:v})):null}var gDe=(e,t,n,a,r)=>{var o=null!==n&&void 0!==n?n:t;if(x6(o))return o;var i="horizontal"===e?r:a,s=i.scale.domain();if("number"===i.type){var l=Math.max(s[0],s[1]),c=Math.min(s[0],s[1]);return"dataMin"===o?c:"dataMax"===o||l<0?l:Math.max(Math.min(s[0],s[1]),0)}return"dataMin"===o?s[0]:"dataMax"===o?s[1]:s[0]};function vDe(e){var t=yme(e,fDe),n=rne();return o.createElement(l_e,{id:t.id,type:"area"},e=>o.createElement(o.Fragment,null,o.createElement(r_e,{legendPayload:aDe(t)}),o.createElement(rDe,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),o.createElement(u_e,{type:"area",id:e,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:Ote(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:n,connectNulls:t.connectNulls}),o.createElement(mDe,QCe({},t,{id:e}))))}var yDe=o.memo(vDe,hfe);yDe.displayName="Area";var wDe=["axis","item"],_De=(0,o.forwardRef)((e,t)=>o.createElement(Cbe,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:wDe,tooltipPayloadSearcher:y7,categoricalChartProps:e,ref:t}));function xDe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function bDe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xDe(Object(n),!0).forEach(function(t){kDe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xDe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kDe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CDe(){return CDe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},CDe.apply(null,arguments)}var DDe=(e,t,n,a,r,o)=>{var{x:i,y:s,segment:l,ifOverflow:c}=o,u=b6(i);return b6(s)?((e,t,n,a,r,o)=>{var{x:i,width:s}=o,l=r.y.apply(e,{position:n});if(w6(l))return null;if("discard"===t&&!r.y.isInRange(l))return null;var c=[{x:i+s,y:l},{x:i,y:l}];return"left"===a?c.reverse():c})(s,c,n,r,e,t):u?((e,t,n,a,r,o)=>{var{y:i,height:s}=o,l=r.x.apply(e,{position:n});if(w6(l))return null;if("discard"===t&&!r.x.isInRange(l))return null;var c=[{x:l,y:i+s},{x:l,y:i}];return"top"===a?c.reverse():c})(i,c,n,a,e,t):null!=l&&2===l.length?((e,t,n,a)=>{var r=e.map(e=>a.apply(e,{position:n}));return"discard"===t&&r.some(e=>!a.isInRange(e))?null:r})(l,c,n,e):null};function ADe(e){var t=lte();return(0,o.useEffect)(()=>(t(spe(e)),()=>{t(lpe(e))})),null}function EDe(e){var{xAxisId:t,yAxisId:n,shape:a,className:r,ifOverflow:i}=e,s=rne(),l=(0,o.useContext)(hme),c=hte(e=>nce(e,t)),u=hte(e=>oce(e,n)),d=hte(e=>
2Due(e,"xAxis",t,s)),h=hte(e=>Due(e,"yAxis",n,s)),p=lne();if(!l||!p||null==c||null==u||null==d||null==h)return null;var f=(e=>{var t=Object.keys(e).reduce((t,n)=>jbe(jbe({},t),{},{[n]:Pbe.create(e[n])}),{});return jbe(jbe({},t),{},{apply(e){var{bandAware:n,position:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.fromEntries(Object.entries(e).map(e=>{var[r,o]=e;return[r,t[r].apply(o,{bandAware:n,position:a})]}))},isInRange:e=>Object.keys(e).every(n=>t[n].isInRange(e[n]))})})({x:d,y:h}),m=DDe(f,p,e.position,c.orientation,u.orientation,e);if(!m)return null;var[{x:g,y:v},{x:y,y:w}]=m,_=bDe(bDe({clipPath:"hidden"===i?"url(#".concat(l,")"):void 0},Dfe(e)),{},{x1:g,y1:v,x2:y,y2:w}),x=Nbe({x1:g,y1:v,x2:y,y2:w});return o.createElement(f_e,{zIndex:e.zIndex},o.createElement(dge,{className:Dd("recharts-reference-line",r)},((e,t)=>{var n;if(o.isValidElement(e))n=o.cloneElement(e,t);else if("function"===typeof e)n=e(t);else{if(!L6(t.x1)||!L6(t.y1)||!L6(t.x2)||!L6(t.y2))return null;n=o.createElement("line",CDe({},t,{className:"recharts-reference-line-line"}))}return n})(a,_),o.createElement(k_e,CDe({},x,{lowerWidth:x.width,upperWidth:x.width}),o.createElement(F_e,{label:e.label}),e.children)))}var jDe={ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle",zIndex:ple.line};function SDe(e){var t=yme(e,jDe);return o.createElement(o.Fragment,null,o.createElement(ADe,{yAxisId:t.yAxisId,xAxisId:t.xAxisId,ifOverflow:t.ifOverflow,x:t.x,y:t.y,segment:t.segment}),o.createElement(EDe,t))}SDe.displayName="ReferenceLine";var NDe="Invariant failed";function PDe(){return PDe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},PDe.apply(null,arguments)}function TDe(e){return o.createElement(Xwe,PDe({shapeType:"rectangle",activeClassName:"recharts-active-bar"},e))}var FDe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(n,a)=>{if(x6(e))return e;var r=x6(n)||S6(n);return r?e(n,a):(r||function(e){if(!e)throw new Error(NDe)}(!1,"minPointSize callback function received a value with type of ".concat(typeof n,". Currently only numbers or null/undefined are supported.")),t)}},ODe=(e,t,n)=>{var a=null!==n&&void 0!==n?n:e;if(!S6(a))return D6(a,t,0)};function IDe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function RDe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IDe(Object(n),!0).forEach(function(t){MDe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IDe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function MDe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var BDe=ate([hce,(e,t)=>t],(e,t)=>e.filter(e=>"bar"===e.type).find(e=>e.id===t)),zDe=ate([BDe],e=>null===e||void 0===e?void 0:e.maxBarSize),LDe=ate([pne,hce,BCe,zCe,(e,t,n)=>n],(e,t,n,a,r)=>t.filter(t=>"horizontal"===e?t.xAxisId===n:t.yAxisId===a).filter(e=>e.isPanorama===r).filter(e=>!1===e.hide).filter(e=>"bar"===e.type)),UDe=ate([LDe,e=>e.rootProps.barSize,(e,t)=>{var n=pne(e),a=BCe(e,t),r=zCe(e,t);if(null!=a&&null!=r)return"horizontal"===n?Bue(e,"xAxis",a):Bue(e,"yAxis",r)}],(e,t,n)=>{var a=e.filter(Wle),r=e.filter(e=>null==e.stackId),o=a.reduce((e,t)=>(e[t.stackId]||(e[t.stackId]=[]),e[t.stackId].push(t),e),{}),i=Object.entries(o).map(e=>{var[a,r]=e,o=r.map(e=>e.dataKey);return{stackId:a,dataKeys:o,barSize:ODe(t,n,r[0].barSize)}}),s=r.map(e=>({stackId:void 0,dataKeys:[e.dataKey].filter(e=>null!=e),barSize:ODe(t,n,e.barSize)}));return[...i,...s]}),VDe=(e,t,n)=>{var a,r,o=pne(e),i=BCe(e,t),s=zCe(e,t);if(null!=i&&null!=s)return"horizontal"===o?(a=Kue(e,"xAxis",i,n),r=Wue(e,"xAxis",i,n)):(a=Kue(e,"yAxis",s,n),r=Wue(e,"yAxis",s,n)),Lte(a,r)},qDe=ate([UDe,Jse,e=>e.rootProps.barGap,$se,(e,t,n)=>{var a,r,o=BDe(e,t);if(null!=o){var i=BCe(e,t),s=zCe(e,t);if(null!=i&&null!=s){var l,c,u=pne(e),d=Jse(e),{maxBarSize:h}=o,p=S6(h)?d:h;return"horizontal"===u?(l=Kue(e,"xAxis",i,n),c=Wue(e,"xAxis",i,n)):(l=Kue
2(e,"yAxis",s,n),c=Wue(e,"yAxis",s,n)),null!==(a=null!==(r=Lte(l,c,!0))&&void 0!==r?r:p)&&void 0!==a?a:0}}},VDe,zDe],(e,t,n,a,r,o,i)=>{var s=S6(i)?t:i,l=function(e,t,n,a,r){var o=a.length;if(!(o<1)){var i,s=D6(e,n,0,!0),l=[];if(L6(a[0].barSize)){var c=!1,u=n/o,d=a.reduce((e,t)=>e+(t.barSize||0),0);(d+=(o-1)*s)>=n&&(d-=(o-1)*s,s=0),d>=n&&u>0&&(c=!0,d=o*(u*=.9));var h={offset:((n-d)/2|0)-s,size:0};i=a.reduce((e,t)=>{var n,a=[...e,{stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:h.offset+h.size+s,size:c?u:null!==(n=t.barSize)&&void 0!==n?n:0}}];return h=a[a.length-1].position,a},l)}else{var p=D6(t,n,0,!0);n-2*p-(o-1)*s<=0&&(s=0);var f=(n-2*p-(o-1)*s)/o;f>1&&(f>>=0);var m=L6(r)?Math.min(f,r):f;i=a.reduce((e,t,n)=>[...e,{stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:p+(f+s)*n+(f-m)/2,size:m}}],l)}return i}}(n,a,r!==o?r:o,e,s);return r!==o&&null!=l&&(l=l.map(e=>RDe(RDe({},e),{},{position:RDe(RDe({},e.position),{},{offset:e.position.offset-r/2})}))),l}),HDe=ate([qDe,BDe],(e,t)=>{if(null!=e&&null!=t){var n=e.find(e=>e.stackId===t.stackId&&null!=t.dataKey&&e.dataKeys.includes(t.dataKey));if(null!=n)return n.position}}),WDe=ate([(e,t,n)=>{var a=pne(e),r=BCe(e,t),o=zCe(e,t);if(null!=r&&null!=o)return"horizontal"===a?Fce(e,"yAxis",o,n):Fce(e,"xAxis",r,n)},BDe],(e,t)=>{var n=qle(t);if(e&&null!=n&&null!=t){var{stackId:a}=t;if(null!=a){var r=e[a];if(r){var{stackedData:o}=r;if(o)return o.find(e=>e.key===n)}}}}),KDe=ate([ene,nne,(e,t,n)=>{var a=BCe(e,t);if(null!=a)return Kue(e,"xAxis",a,n)},(e,t,n)=>{var a=zCe(e,t);if(null!=a)return Kue(e,"yAxis",a,n)},(e,t,n)=>{var a=BCe(e,t);if(null!=a)return Wue(e,"xAxis",a,n)},(e,t,n)=>{var a=zCe(e,t);if(null!=a)return Wue(e,"yAxis",a,n)},HDe,pne,Sse,VDe,WDe,BDe,(e,t,n,a)=>a],(e,t,n,a,r,o,i,s,l,c,u,d,h)=>{var{chartData:p,dataStartIndex:f,dataEndIndex:m}=l;if(null!=d&&null!=i&&null!=t&&("horizontal"===s||"vertical"===s)&&null!=n&&null!=a&&null!=r&&null!=o&&null!=c){var g,{data:v}=d;if(null!=(g=null!=v&&v.length>0?v:null===p||void 0===p?void 0:p.slice(f,m+1)))return function(e){var{layout:t,barSettings:{dataKey:n,minPointSize:a},pos:r,bandSize:o,xAxis:i,yAxis:s,xAxisTicks:l,yAxisTicks:c,stackedData:u,displayedData:d,offset:h,cells:p,parentViewBox:f,dataStartIndex:m}=e,g="horizontal"===t?s:i,v=u?g.scale.domain():null,y=(e=>{var{numericAxis:t}=e,n=t.scale.domain();if("number"===t.type){var a=Math.min(n[0],n[1]),r=Math.max(n[0],n[1]);return a<=0&&r>=0?0:r<0?r:a}return n[0]})({numericAxis:g}),w=g.scale(y);return d.map((e,d)=>{var g,_,x,b,k,C;if(u){var D=u[d+m];if(null==D)return null;g=((e,t)=>{if(!t||2!==t.length||!x6(t[0])||!x6(t[1]))return e;var n=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]),r=[e[0],e[1]];return(!x6(e[0])||e[0]<n)&&(r[0]=n),(!x6(e[1])||e[1]>a)&&(r[1]=a),r[0]>a&&(r[0]=a),r[1]<n&&(r[1]=n),r})(D,v)}else g=Ete(e,n),Array.isArray(g)||(g=[y,g]);var A=FDe(a,gAe)(g[1],d);if("horizontal"===t){var E,[j,S]=[s.scale(g[0]),s.scale(g[1])];_=Rte({axis:i,ticks:l,bandSize:o,offset:r.offset,entry:e,index:d}),x=null!==(E=null!==S&&void 0!==S?S:j)&&void 0!==E?E:void 0,b=r.size;var N=j-S;if(k=w6(N)?0:N,C={x:_,y:h.top,width:b,height:h.height},Math.abs(A)>0&&Math.abs(k)<Math.abs(A)){var P=y6(k||A)*(Math.abs(A)-Math.abs(k));x-=P,k+=P}}else{var[T,F]=[i.scale(g[0]),i.scale(g[1])];if(_=T,x=Rte({axis:s,ticks:c,bandSize:o,offset:r.offset,entry:e,index:d}),b=F-T,k=r.size,C={x:h.left,y:x,width:h.width,height:k},Math.abs(A)>0&&Math.abs(b)<Math.abs(A))b+=y6(b||A)*(Math.abs(A)-Math.abs(b))}return null==_||null==x||null==b||null==k?null:rAe(rAe({},e),{},{stackedBarStart:w,x:_,y:x,width:b,height:k,value:u?g:g[1],payload:e,background:C,tooltipPosition:{x:_+b/2,y:x+k/2},parentViewBox:f},p&&p[d]&&p[d].props)}).filter(Boolean)}({layout:s,barSettings:d,pos:i,parentViewBox:t,bandSize:c,xAxis:n,yAxis:a,xAxisTicks:r,yAxisTicks:o,stackedData:u,displayedData:g,offset:e,cells:h,dataStartIndex:f})}});var YDe=["index"];function GDe(){return GDe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},GDe.apply(null,arguments)}var JDe=(0,o.createContext)(void 0),$De=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),QDe=e=>{var{index:t}=e,n=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,YDe),a=(e=>{var t=(0,o.useContext)(JDe);if(null!=t){var{stackId:n}=t;
2return"url(#".concat($De(n,e),")")}})(t);return o.createElement(dge,GDe({className:"recharts-bar-stack-layer",clipPath:a},n))},XDe=["onMouseEnter","onMouseLeave","onClick"],ZDe=["value","background","tooltipPosition"],eAe=["id"],tAe=["onMouseEnter","onClick","onMouseLeave"];function nAe(){return nAe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},nAe.apply(null,arguments)}function aAe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function rAe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aAe(Object(n),!0).forEach(function(t){oAe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aAe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oAe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iAe(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var sAe=e=>{var{dataKey:t,name:n,fill:a,legendType:r,hide:o}=e;return[{inactive:o,dataKey:t,type:r,color:a,value:Vte(n,t),payload:e}]},lAe=o.memo(e=>{var{dataKey:t,stroke:n,strokeWidth:a,fill:r,name:i,hide:s,unit:l,tooltipType:c,id:u}=e,d={dataDefinedOnItem:void 0,positions:void 0,settings:{stroke:n,strokeWidth:a,fill:r,dataKey:t,nameKey:void 0,name:Vte(i,t),hide:s,type:c,color:r,unit:l,graphicalItemId:u}};return o.createElement(a_e,{tooltipEntrySettings:d})});function cAe(e){var t=hte(Xde),{data:n,dataKey:a,background:r,allOtherBarProps:i}=e,{onMouseEnter:s,onMouseLeave:l,onClick:c}=i,u=iAe(i,XDe),d=e_e(s,a,i.id),h=t_e(l),p=n_e(c,a,i.id);if(!r||null==n)return null;var f,m,g=Cfe(r);return o.createElement(f_e,{zIndex:(f=r,m=ple.barBackground,f&&"object"===typeof f&&"zIndex"in f&&"number"===typeof f.zIndex&&L6(f.zIndex)?f.zIndex:m)},n.map((e,n)=>{var{value:i,background:s,tooltipPosition:l}=e,c=iAe(e,ZDe);if(!s)return null;var f=d(e,n),m=h(e,n),v=p(e,n),y=rAe(rAe(rAe(rAe(rAe({option:r,isActive:String(n)===t},c),{},{fill:"#eee"},s),g),Hge(u,e,n)),{},{onMouseEnter:f,onMouseLeave:m,onClick:v,dataKey:a,index:n,className:"recharts-bar-background-rectangle"});return o.createElement(TDe,nAe({key:"background-bar-".concat(n)},y))}))}function uAe(e){var{showLabels:t,children:n,rects:a}=e,r=null===a||void 0===a?void 0:a.map(e=>{var t={x:e.x,y:e.y,width:e.width,lowerWidth:e.width,upperWidth:e.width,height:e.height};return rAe(rAe({},t),{},{value:e.value,payload:e.payload,parentViewBox:e.parentViewBox,viewBox:t,fill:e.fill})});return o.createElement(L_e,{value:t?r:void 0},n)}function dAe(e){var{shape:t,activeBar:n,baseProps:a,entry:r,index:i,dataKey:s}=e,l=hte(Xde),c=hte(ehe),u=n&&String(i)===l&&(null==c||s===c),d=u?n:t;return u?o.createElement(f_e,{zIndex:ple.activeBar},o.createElement(TDe,nAe({},a,{name:String(a.name)},r,{isActive:u,option:d,index:i,dataKey:s}))):o.createElement(TDe,nAe({},a,{name:String(a.name)},r,{isActive:u,option:d,index:i,dataKey:s}))}function hAe(e){var{shape:t,baseProps:n,entry:a,index:r,dataKey:i}=e;return o.createElement(TDe,nAe({},n,{name:String(n.name)},a,{isActive:!1,option:t,index:r,dataKey:i}))}function pAe(e){var t,{data:n,props:a}=e,r=null!==(t=kfe(a))&&void 0!==t?t:{},{id:i}=r,s=iAe(r,eAe),{shape:l,dataKey:c,activeBar:u}=a,{onMouseEnter:d,onClick:h,onMouseLeave:p}=a,f=iAe(a,tAe),m=e_e(d,c,i),g=t_e(p),v=n_e(h,c,i);return n?o.createElement(o.Fragment,null,n.map((e,t)=>o.createElement(QDe,nAe({index:t,key:"rectangle-".concat(null===e||void 0===e?void 0:e.x,"-").concat(null===e||void 0===e?void 0:e.y,"-").concat(null===e||void 0===e?void 0:e.value,"-").concat(t),className:"recharts-bar-rectangle"},Hge(f,e,t),{onMouseEnter:m(e,t),onMouseLeave:g(e,t),onClick:v(e,t)}),u?o.createElement(dAe,{shape:l,activeBar:u,baseProps:s,entry:e,index:t,dataKey:c}):o.createElement(hAe,{shape:l,baseProps:s,entry:e,index:t,dataKey:c})))):null}function fAe(e){var{props:t,previousRectanglesRef:n}=e,{data:a,layout:r,isAnimationActive:i,animationBegin:s,animationDuration:l,animationEasing:c,onAnimationEnd:u,onAnimationStart:d}=t,h=n.current,p=kye(t,"recharts-bar-"),[f,m]=(0,o.useState)(!1),g=!f,v=(0,o.useCallback)(()=>{"function"===typeof u&&u(),m(!1)},[u]),y=(0,o.useCallback)(()=>{"function"===typeof d&&d(),m(!0)},[d]);return o.createElement(uAe,{showLabels:g,rects:a},o.createElement(bye,{animationId:p,begin:s,duration:l,isActive:i,easing:c,onAnimationEnd:v,onAnimationStart:y,key:p},e=>{var i=1===e?a:null===a||void 0===a?void 0:a.map((t,n)=>{var a=h&&h[n];if(a)return rAe(rAe({},t),{},{x:E6(a.x,t.x,e),y:E6(a.y,t.y,e),width:E6(a.width,t.width,e),height:E6(a.height,t.height,e)});if("horizontal"===r){var o=E6(0,t.height,e),i=E6(t.stackedBarStart,t.y,e);return rAe(rAe({},t),{},{y:i,height:o})}var s=E6(0,t.width,e),l=E6(t.stackedBarStart,t.x,e);return rAe(rAe({},t),{},{width:s,x:l})});return e>0&&(n.current=null!==i&&void 0!==i?i:null),null==i?null:o.createElement(dge,null,o.createElement(pAe,{props:t,data:i}))}),o.createElement(H_e,{label:t.label}),t.children)}function mAe(e){var t=(0,o.useRef)(null);return o.createElement(fAe,{previousRectanglesRef:t,props:e})}var gAe=0,vAe=(e,t)=>
2{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:Ete(e,t)}};class yAe extends o.PureComponent{render(){var{hide:e,data:t,dataKey:n,className:a,xAxisId:r,yAxisId:i,needClip:s,background:l,id:c}=this.props;if(e||null==t)return null;var u=Dd("recharts-bar",a),d=c;return o.createElement(dge,{className:u,id:c},s&&o.createElement("defs",null,o.createElement(aCe,{clipPathId:d,xAxisId:r,yAxisId:i})),o.createElement(dge,{className:"recharts-bar-rectangles",clipPath:s?"url(#clipPath-".concat(d,")"):void 0},o.createElement(cAe,{data:t,dataKey:n,background:l,allOtherBarProps:this.props}),o.createElement(mAe,this.props)))}}var wAe={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:gAe,xAxisId:0,yAxisId:0,zIndex:ple.bar};function _Ae(e){var t,{xAxisId:n,yAxisId:a,hide:r,legendType:i,minPointSize:s,activeBar:l,animationBegin:c,animationDuration:u,animationEasing:d,isAnimationActive:h}=e,{needClip:p}=nCe(n,a),f=fne(),m=rne(),g=Wve(e.children,zve),v=hte(t=>KDe(t,e.id,m,g));if("vertical"!==f&&"horizontal"!==f)return null;var y=null===v||void 0===v?void 0:v[0];return t=null==y||null==y.height||null==y.width?0:"vertical"===f?y.height/2:y.width/2,o.createElement(tCe,{xAxisId:n,yAxisId:a,data:v,dataPointFormatter:vAe,errorBarOffset:t},o.createElement(yAe,nAe({},e,{layout:f,needClip:p,data:v,xAxisId:n,yAxisId:a,hide:r,legendType:i,minPointSize:s,activeBar:l,animationBegin:c,animationDuration:u,animationEasing:d,isAnimationActive:h})))}function xAe(e){var t=yme(e,wAe),n=(e=>{var t=(0,o.useContext)(JDe);return null!=t?t.stackId:null!=e?Ote(e):void 0})(t.stackId),a=rne();return o.createElement(l_e,{id:t.id,type:"bar"},e=>o.createElement(o.Fragment,null,o.createElement(r_e,{legendPayload:sAe(t)}),o.createElement(lAe,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),o.createElement(u_e,{type:"bar",id:e,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:n,hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:a}),o.createElement(f_e,{zIndex:t.zIndex},o.createElement(_Ae,nAe({},t,{id:e})))))}var bAe=o.memo(xAe,hfe);bAe.displayName="Bar";const kAe=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=sessionStorage.getItem("adminSessionToken");return nY.get(e,p(p({},t),{},{headers:p(p({},t.headers),{},{"X-Admin-Token":n})}))},CAe=async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=sessionStorage.getItem("adminSessionToken");return nY.post(e,t,p(p({},n),{},{headers:p(p({},n.headers),{},{"X-Admin-Token":a})}))},DAe=()=>{var e,t,n,a,r,i,s,l,c;Ee();const[u,d]=(0,o.useState)(!1),[h,f]=(0,o.useState)("password"),[m,g]=(0,o.useState)(""),[v,y]=(0,o.useState)(!1),[w,_]=(0,o.useState)(""),[x,b]=(0,o.useState)(""),[k,C]=(0,o.useState)(!1),[D,A]=(0,o.useState)(0),[E,j]=(0,o.useState)(!1),[S,N]=(0,o.useState)(0),[P,T]=(0,o.useState)(1),[F,O]=(0,o.useState)(""),[I,R]=(0,o.useState)(!1),[M,B]=(0,o.useState)(!1),[z,L]=(0,o.useState)(""),[U,V]=(0,o.useState)(""),[q,H]=(0,o.useState)(!1),[W,K]=(0,o.useState)([]),[Y,G]=(0,o.useState)(!1),[J,$]=(0,o.useState)(""),[Q,X]=(0,o.useState)("created_at"),[Z,ee]=(0,o.useState)("desc"),[te,ne]=(0,o.useState)({total:0,free:0,pro_total:0,pro_monthly:0,pro_annual:0,pro_lifetime:0,pro_legacy:0,churned_users:0,churn_rate:0,total_revenue:0,mrr:0,arr:0,user_distribution:[]}),[ae,re]=(0,o.useState)([]),[oe,ie]=(0,o.useState)(365),[se,le]=(0,o.useState)([]),[ce,ue]=(0,o.useState)([]),[de,he]=(0,o.useState)("month"),[pe,fe]=(0,o.useState)(!1),[me,ge]=(0,o.useState)(!1),[ve,ye]=(0,o.useState)(""),[we,_e]=(0,o.useState)(""),[xe,be]=(0,o.useState)(!1),[ke,Ce]=(0,o.useState)(""),[De,Ae]=(0,o.useState)(null),[je,Se]=(0,o.useState)(!1),[Ne,Pe]=(0,o.useState)(!1),[Te,Fe]=(0,o.useState)(!1),[Oe,Ie]=(0,o.useState)(null),[Re,Me]=(0,o.useState)(""),[Be,ze]=(0,o.useState)(!1),[Le,Ue]=(0,o.useState)(!1),[Ve,qe]=(0,o.useState)(null),[He,We]=(0,o.useState)(""),[Ke,Ye]=(0,o.useState)(!1),[Ge,Je]=(0,o.useState)(!1),[$e,Qe]=(0,o.useState)(null),[Xe,Ze]=(0,o.useState)({subscription_type:"monthly",reason:"",price:9.99,notes:""}),[et,tt]=(0,o.useState)(1),[nt]=(0,o.useState)(10),[at,rt]=(0,o.useState)({accountTypes:[],subscriptionTypes:[],statuses:[]}),[ot,it]=(0,o.useState)(!1),[st,lt]=(0,o.useState)("none");(0,o.useEffect)(()=>{let e;return E&&S>0&&(e=setInterval(()=>{N(e=>e<=1?(j(!1),A(0),0):e-1)},1e3)),()=>clearInterval(e)},[E,S]),(0,o.useEffect)(()=>{(async()=>{const e=sessionStorage.getItem("adminAuth");try{const e=await nY.get("/admin/mfa/status");H(e.data.enabled)}catch(oL){console.error("Failed to check MFA status:",oL)}
2if("authenticated"===e){d(!0),f("authenticated"),ht(),pt();const e=parseInt(localStorage.getItem("adminLoginCount")||"0",10),t=await nY.get("/admin/mfa/status").catch(()=>({data:{enabled:!1}}));e>0&&!t.data.enabled&&B(!0)}})()},[]);const ct=async e=>{if(e.preventDefault(),E)wH.error("Account locked. Try again in ".concat(S," seconds."));else{C(!0);try{const e=await nY.post("/admin/auth/password",{password:m});if(e.data.session_token){sessionStorage.setItem("adminSessionToken",e.data.session_token);(await nY.get("/admin/mfa/status")).data.enabled?(f("mfa"),wH.success("Password verified. Enter your authenticator code.")):(await nY.post("/admin/auth/mfa",{session_token:e.data.session_token,code:""}),dt())}}catch(t){const e=D+1;A(e),e>=3?(j(!0),N(30),wH.error("Too many failed attempts. Locked for 30 seconds.")):wH.error("Invalid password. ".concat(3-e," attempts remaining."))}C(!1)}},ut=async e=>{e.preventDefault(),C(!0);try{const e=sessionStorage.getItem("adminSessionToken");(await nY.post("/admin/auth/mfa",{session_token:e,code:w})).data.success?dt():wH.error("Invalid MFA code. Please try again.")}catch(e){wH.error("Invalid MFA code. Please try again.")}C(!1)},dt=async()=>{d(!0),f("authenticated"),sessionStorage.setItem("adminAuth","authenticated");const e=parseInt(localStorage.getItem("adminLoginCount")||"0",10);
2localStorage.setItem("adminLoginCount",String(e+1)),wH.success("Welcome to Admin Panel"),ht(),pt();try{const t=await nY.get("/admin/mfa/status");e>0&&!t.data.enabled&&setTimeout(()=>B(!0),1e3)}catch(oL){console.error("Failed to check MFA status:",oL)}},ht=async()=>{G(!0);try{const e=await kAe("/admin/users");K(e.data.users||[])}catch(t){var e;401===(null===(e=t.response)||void 0===e?void 0:e.status)?(sessionStorage.removeItem("adminAuth"),sessionStorage.removeItem("adminSessionToken"),d(!1),f("password"),wH.error("Session expired. Please login again.")):wH.error("Failed to load users")}finally{G(!1)}},pt=async()=>{try{const[e,t]=await Promise.all([kAe("/admin/stats"),kAe("/admin/mrr-history")]);ne(e.data),re(t.data.mrr_history||[])}catch(e){console.error("Failed to load stats:",e)}};(0,o.useEffect)(()=>{u&&async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oe;fe(!0);try{const[t,n]=await Promise.all([kAe("/admin/user-growth?days=".concat(e)),kAe("/admin/churn-data?days=".concat(e))]);le(t.data.growth_data||[]),ue(n.data.churn_data||[]),he(t.data.granularity||"month")}catch(t){console.error("Failed to load chart data:",t)}finally{fe(!1)}}(oe)},[oe,u]);
2const ft=async e=>{Se(!0),Pe(!0);try{const t=await kAe("/admin/user/".concat(e));Ae(t.data.user)}catch(t){wH.error("Failed to load user details"),Pe(!1)}finally{Se(!1)}},mt=e=>{Qe(e),Ze({subscription_type:"monthly",reason:"",price:9.99,notes:""}),Je(!0)},gt=e=>{Q===e?ee("asc"===Z?"desc":"asc"):(X(e),ee("desc")),tt(1)},vt=(e,t)=>{rt(n=>{const a=n[e],r=a.includes(t)?a.filter(e=>e!==t):[...a,t];return p(p({},n),{},{[e]:r})}),tt(1)},yt=at.accountTypes.length+at.subscriptionTypes.length+at.statuses.length,wt=e=>e.banned?"banned":e.churned_at?"churned":"active",_t=(0,o.useMemo)(()=>W.filter(e=>{var t,n;const a=!J||(null===(t=e.name)||void 0===t?void 0:t.toLowerCase().includes(J.toLowerCase()))||(null===(n=e.email)||void 0===n?void 0:n.toLowerCase().includes(J.toLowerCase())),r=0===at.accountTypes.length||at.accountTypes.includes(e.account_type),o=e.subscription_type||("free"===e.account_type?"free":"legacy"),i=0===at.subscriptionTypes.length||at.subscriptionTypes.includes(o),s=wt(e),l=0===at.statuses.length||at.statuses.includes(s);return a&&r&&i&&l}).sort((e,t)=>{let n=e[Q]||"",a=t[Q]||"";return["created_at","last_login","upgraded_at","churned_at","total_revenue"].includes(Q)&&(n="total_revenue"===Q?n||0:new Date(n||0).getTime(),a="total_revenue"===Q?a||0:new Date(a||0).getTime()),"asc"===Z?n>a?1:-1:n<a?1:-1}),[W,J,at,Q,Z]),xt=(0,o.useMemo)(()=>{if("none"===st)return null;const e={};return _t.forEach(t=>{let n;"account_type"===st?n="pro"===t.account_type?"Pro":"Free":"subscription_type"===st?n="free"===t.account_type?"Free":t.subscription_type?t.subscription_type.charAt(0).toUpperCase()+t.subscription_type.slice(1):"Legacy":"status"===st&&(n=wt(t).charAt(0).toUpperCase()+wt(t).slice(1)),e[n]||(e[n]=[]),e[n].push(t)}),e},[_t,st]),bt=Math.ceil(_t.length/nt),kt=(0,o.useMemo)(()=>{const e=(et-1)*nt;return _t.slice(e,e+nt)},[_t,et,nt]),Ct=e=>e?new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}):"-",Dt=e=>e?new Date(e).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit"}):"-",At=e=>{if(e.banned)return(0,_h.jsxs)("span",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full text-xs font-medium bg-red-100 text-red-700",children:[(0,_h.jsx)(Q3,{className:"h-3 w-3"})," Banned"]});if("pro"!==e.account_type)return(0,_h.jsxs)("span",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full text-xs font-medium bg-gray-100 text-gray-700",children:[(0,_h.jsx)(X3,{className:"h-3 w-3"})," Free"]});switch(e.subscription_type||"legacy"){case"lifetime":return(0,_h.jsxs)("span",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full text-xs font-medium bg-gradient-to-r from-amber-100 to-orange-100 text-amber-700 border border-amber-200",children:[(0,_h.jsx)(Z3,{className:"h-3 w-3"})," Lifetime"]});case"annual":return(0,_h.jsxs)("span",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full text-xs font-medium bg-indigo-100 text-indigo-700",children:[(0,_h.jsx)(U4,{className:"h-3 w-3"})," Annual"]});case"monthly":return(0,_h.jsxs)("span",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full text-xs font-medium bg-purple-100 text-purple-700",children:[(0,_h.jsx)(U4,{className:"h-3 w-3"})," Monthly"]});default:return(0,_h.jsxs)("span",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full text-xs font-medium bg-purple-100 text-purple-700",children:[(0,_h.jsx)(U4,{className:"h-3 w-3"})," Pro"]})}},Et=e=>{let{field:t}=e;return Q!==t?null:"asc"===Z?(0,_h.jsx)(SJ,{className:"h-4 w-4"}):(0,_h.jsx)(jJ,{className:"h-4 w-4"})};return"password"===h?(0,_h.jsx)("div",{className:"min-h-screen bg-gradient-to-b from-gray-900 to-gray-800 flex items-center justify-center p-4",children:(0,_h.jsxs)("div",{className:"w-full max-w-md rounded-3xl p-8 bg-white/95 backdrop-blur-xl shadow-2xl",children:[(0,_h.jsxs)("div",{className:"text-center mb-8",children:[(0,_h.jsx)("div",{className:"w-16 h-16 mx-auto rounded-2xl bg-gradient-to-br from-gray-700 to-gray-900 flex items-center justify-center mb-4",children:(0,_h.jsx)(x3,{className:"h-8 w-8 text-white"})}),(0,_h.jsx)("h1",{className:"text-2xl font-bold text-gray-900",children:"Admin Access"}),(0,_h.jsx)("p",{className:"text-gray-500 text-sm mt-1",children:"Enter admin credentials to continue"})]}),E&&(0,_h.jsxs)("div",{className:"mb-6 p-4 bg-red-50 border border-red-200 rounded-xl flex items-center gap-3",children:[(0,_h.jsx)(e6,{className:"h-5 w-5 text-red-500"}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("p",{className:"text-sm font-medium text-red-800",children:"Account Locked"}),(0,_h.jsxs)("p",{className:"text-xs text-red-600",children:["Try again in ",S," seconds"]})]})]}),(0,_h.jsxs)("form",{onSubmit:ct,className:"space-y-4",children:[(0,_h.jsxs)("div",{className:"space-y-2",children:[(0,_h.jsx)(EJ,{children:"Admin Password"}),(0,_h.jsxs)("div",{className:"relative",children:[(0,_h.jsx)(CJ,{type:v?"text":"password",placeholder:"Enter admin password",value:m,onChange:e=>g(e.target.value),disabled:E,className:"h-12 rounded-xl pr-10"}),(0,_h.jsx)("button",{type:"button",onClick:()=>y(!v),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600",children:v?(0,_h.jsx)(b3,{className:"h-4 w-4"}):(0,_h.jsx)(k3,{className:"h-4 w-4"})})]})]}),(0,_h.jsxs)(RG,{type:"submit",className:"w-full h-12 rounded-full bg-gray-900 hover:bg-gray-800",disabled:k||E||!m,children:[k?(0,_h.jsx)(VZ,{className:"h-4 w-4 animate-spin mr-2"}):(0,_h.jsx)(L4,{className:"h-4 w-4 mr-2"}),k?"Verifying...":"Continue"]})]}),(0,_h.jsx)("div",{className:"mt-6 text-center",children:(0,_h.jsx)(Pt,{to:"/",className:"text-sm text-gray-500 hover:text-gray-700",children:"\u2190 Back to Home"})})]})}):"mfa"===h?(0,_h.jsx)("div",{className:"min-h-screen bg-gradient-to-b from-gray-900 to-gray-800 flex items-center justify-center p-4",children:(0,_h.jsxs)("div",{className:"w-full max-w-md rounded-3xl p-8 bg-white/95 backdrop-blur-xl shadow-2xl",children:[(0,_h.jsxs)("div",{className:"text-center mb-8",children:[(0,_h.jsx)("div",{className:"w-16 h-16 mx-auto rounded-2xl bg-gradient-to-br from-gray-700 to-gray-900 flex items-center justify-center mb-4",children:(0,_h.jsx)(x3,{className:"h-8 w-8 text-white"})}),(0,_h.jsx)("h1",{className:"text-2xl font-bold text-gray-900",children:"Two-Factor Authentication"}),(0,_h.jsx)("p",{className:"text-gray-500 text-sm mt-1",children:"Enter the 6-digit code from your authenticator app"})]}),(0,_h.jsxs)("form",{onSubmit:ut,className:"space-y-4",children:[(0,_h.jsxs)("div",{className:"space-y-2",children:[(0,_h.jsx)(EJ,{children:"MFA Code"}),(0,_h.jsx)(CJ,{type:"text",placeholder:"000000",maxLength:6,value:w,onChange:e=>
2_(e.target.value.replace(/\D/g,"")),className:"h-14 rounded-xl text-center text-2xl tracking-widest font-mono"})]}),(0,_h.jsxs)(RG,{type:"submit",className:"w-full h-12 rounded-full bg-gray-900 hover:bg-gray-800",disabled:k||6!==w.length,children:[k?(0,_h.jsx)(VZ,{className:"h-4 w-4 animate-spin mr-2"}):(0,_h.jsx)(t6,{className:"h-4 w-4 mr-2"}),k?"Verifying...":"Verify & Login"]})]}),(0,_h.jsx)("div",{className:"mt-6 text-center",children:(0,_h.jsx)("button",{onClick:()=>f("password"),className:"text-sm text-gray-500 hover:text-gray-700",children:"\u2190 Back to Password"})})]})}):(0,_h.jsxs)("div",{className:"min-h-screen bg-gray-50",children:[(0,_h.jsx)(mJ,{open:M,onOpenChange:e=>{e||(T(1),O("")),B(e)},children:(0,_h.jsxs)(yJ,{className:"sm:max-w-md",children:[(0,_h.jsxs)(wJ,{children:[(0,_h.jsxs)(xJ,{className:"flex items-center gap-2",children:[(0,_h.jsx)(n6,{className:"h-5 w-5 text-gray-600"})," Set Up Two-Factor Authentication"]}),(0,_h.jsx)(bJ,{children:"Secure your admin account with MFA"})]}),1===P&&(0,_h.jsxs)("div",{className:"space-y-4 py-4",children:[(0,_h.jsx)("div",{className:"p-4 bg-amber-50 border border-amber-200 rounded-xl",children:(0,_h.jsxs)("div",{className:"flex items-start gap-3",children:[(0,_h.jsx)(x3,{className:"h-5 w-5 text-amber-600 mt-0.5"}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("p",{className:"text-sm font-medium text-amber-800",children:"Recommended Security Step"}),(0,_h.jsx)("p",{className:"text-xs text-amber-700 mt-1",children:"Enable two-factor authentication to add an extra layer of security."})]})]})}),(0,_h.jsxs)("div",{className:"text-sm text-gray-600 space-y-2",children:[(0,_h.jsx)("p",{children:"You'll need an authenticator app like:"}),(0,_h.jsxs)("ul",{className:"list-disc list-inside space-y-1 ml-2 text-gray-500",children:[(0,_h.jsx)("li",{children:"Google Authenticator"}),(0,_h.jsx)("li",{children:"Authy"}),(0,_h.jsx)("li",{children:"Microsoft Authenticator"}),(0,_h.jsx)("li",{children:"1Password"})]})]}),(0,_h.jsxs)(_J,{className:"flex gap-2 sm:gap-2",children:[(0,_h.jsx)(RG,{variant:"outline",onClick:()=>{B(!1),T(1),wH.info("MFA setup skipped. You can enable it later from settings.")},children:"Skip for Now"}),(0,_h.jsxs)(RG,{onClick:async()=>{C(!0);try{const e=await nY.post("/admin/mfa/setup");L(e.data.qr_code),V(e.data.secret),T(2)}catch(oL){wH.error("Failed to generate MFA secret")}C(!1)},disabled:k,className:"bg-gray-900 hover:bg-gray-800",children:[k?(0,_h.jsx)(VZ,{className:"h-4 w-4 animate-spin mr-2"}):(0,_h.jsx)(v3,{className:"h-4 w-4 mr-2"}),"Set Up MFA"]})]})]}),2===P&&(0,_h.jsxs)("div",{className:"space-y-4 py-4",children:[(0,_h.jsxs)("div",{className:"text-center",children:[(0,_h.jsx)("p",{className:"text-sm text-gray-600 mb-3",children:"Scan this QR code with your authenticator app:"}),z?(0,_h.jsx)("img",{src:z,alt:"MFA QR Code",className:"w-48 h-48 mx-auto rounded-xl border border-gray-200"}):(0,_h.jsx)("div",{className:"w-48 h-48 mx-auto bg-gray-100 rounded-xl flex items-center justify-center",children:(0,_h.jsx)(VZ,{className:"h-8 w-8 animate-spin text-gray-400"})}),(0,_h.jsx)("p",{className:"text-xs text-gray-500 mt-3 mb-2",children:"Or enter this secret manually:"}),(0,_h.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,_h.jsx)("code",{className:"bg-gray-100 px-3 py-2 rounded-lg font-mono text-xs break-all max-w-[200px]",children:U}),(0,_h.jsx)(RG,{variant:"ghost",size:"sm",onClick:()=>{navigator.clipboard.writeText(U),R(!0),setTimeout(()=>R(!1),2e3)},children:I?(0,_h.jsx)(KG,{className:"h-4 w-4 text-green-600"}):(0,_h.jsx)(l3,{className:"h-4 w-4"})})]})]}),(0,_h.jsxs)("div",{className:"space-y-2",children:[(0,_h.jsx)(EJ,{children:"Enter the 6-digit code from your app"}),(0,_h.jsx)(CJ,{type:"text",placeholder:"000000",maxLength:6,value:F,onChange:e=>O(e.target.value.replace(/\D/g,"")),className:"h-12 text-center text-xl tracking-widest font-mono"})]}),(0,_h.jsxs)(_J,{className:"flex flex-col gap-2",children:[(0,_h.jsxs)(RG,{onClick:async()=>{if(6===F.length){C(!0);try{(await nY.post("/admin/mfa/verify",null,{params:{code:F,secret:U}})).data.valid?(await nY.post("/admin/mfa/save",null,{params:{secret:U}}),H(!0),B(!1),T(1),O(""),wH.success("MFA has been set up successfully! You will need to enter a code on next login.")):wH.error("Invalid code. Please check your authenticator app and try again.")}catch(oL){wH.error("Failed to verify MFA code")}C(!1)}else wH.error("Please enter a valid 6-digit code")},disabled:6!==F.length||k,className:"w-full bg-gray-900 hover:bg-gray-800",children:[k?(0,_h.jsx)(VZ,{className:"h-4 w-4 animate-spin mr-2"}):(0,_h.jsx)(KG,{className:"h-4 w-4 mr-2"}),"Verify & Enable MFA"]}),(0,_h.jsx)(RG,{variant:"ghost",onClick:()=>{T(1),O("")},className:"w-full",children:"Back"})]})]})]})}),(0,_h.jsx)(mJ,{open:Te,onOpenChange:Fe,children:(0,_h.jsxs)(yJ,{className:"sm:max-w-md",children:[(0,_h.jsxs)(wJ,{children:[(0,_h.jsxs)(xJ,{className:"flex items-center gap-2 text-red-600",children:[(0,_h.jsx)(Q3,{className:"h-5 w-5"})," Ban User"]}
2),(0,_h.jsx)(bJ,{children:"This will prevent the user from logging in."})]}),(0,_h.jsxs)("div",{className:"space-y-4 py-4",children:[(0,_h.jsxs)("div",{className:"space-y-2",children:[(0,_h.jsxs)(EJ,{children:["Reason for Banning ",(0,_h.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,_h.jsx)(D4,{placeholder:"Enter reason for ban (required)...",value:Re,onChange:e=>Me(e.target.value),className:"min-h-[80px]"}),(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"This reason will be logged for auditing purposes."})]}),(0,_h.jsxs)(_J,{className:"flex gap-2",children:[(0,_h.jsx)(RG,{variant:"outline",onClick:()=>Fe(!1),children:"Cancel"}),(0,_h.jsxs)(RG,{onClick:async()=>{if(Oe){ze(!0);try{await CAe("/admin/user/".concat(Oe,"/ban"),{reason:Re}),wH.success("User has been banned"),Fe(!1),Ie(null),Me(""),ht()}catch(e){wH.error("Failed to ban user")}finally{ze(!1)}}},disabled:Be||!Re.trim(),className:"bg-red-600 hover:bg-red-700",children:[Be?(0,_h.jsx)(VZ,{className:"h-4 w-4 animate-spin mr-2"}):(0,_h.jsx)(Q3,{className:"h-4 w-4 mr-2"}),"Ban User"]})]})]})]})}),(0,_h.jsx)(mJ,{open:Le,onOpenChange:Ue,children:(0,_h.jsxs)(yJ,{className:"sm:max-w-md",children:[(0,_h.jsxs)(wJ,{children:[(0,_h.jsxs)(xJ,{className:"flex items-center gap-2 text-blue-600",children:[(0,_h.jsx)(a6,{className:"h-5 w-5"})," Unban User"]}),(0,_h.jsx)(bJ,{children:"This will allow the user to log in again."})]}),(0,_h.jsxs)("div",{className:"space-y-4 py-4",children:[(0,_h.jsxs)("div",{className:"space-y-2",children:[(0,_h.jsxs)(EJ,{children:["Reason for Unbanning ",(0,_h.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,_h.jsx)(D4,{placeholder:"Enter reason for unban (required)...",value:He,onChange:e=>We(e.target.value),className:"min-h-[80px]"}),(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"This reason will be logged for auditing purposes."})]}),(0,_h.jsxs)(_J,{className:"flex gap-2",children:[(0,_h.jsx)(RG,{variant:"outline",onClick:()=>Ue(!1),children:"Cancel"}),(0,_h.jsxs)(RG,{onClick:async()=>{if(Ve&&He.trim()){Ye(!0);try{await CAe("/admin/user/".concat(Ve,"/unban"),{reason:He}),wH.success("User has been unbanned"),Ue(!1),qe(null),We(""),ht(),(null===De||void 0===De?void 0:De.id)===Ve&&ft(Ve)}catch(e){wH.error("Failed to unban user")}finally{Ye(!1)}}else wH.error("Please provide a reason for unbanning")},disabled:Ke||!He.trim(),className:"bg-blue-600 hover:bg-blue-700",children:[Ke?(0,_h.jsx)(VZ,{className:"h-4 w-4 animate-spin mr-2"}):(0,_h.jsx)(a6,{className:"h-4 w-4 mr-2"}),"Unban User"]})]})]})]})}),(0,_h.jsx)(mJ,{open:Ge,onOpenChange:Je,children:(0,_h.jsxs)(yJ,{className:"sm:max-w-md",children:[(0,_h.jsxs)(wJ,{children:[(0,_h.jsxs)(xJ,{className:"flex items-center gap-2 text-purple-600",children:[(0,_h.jsx)(U4,{className:"h-5 w-5"})," Admin Upgrade"]}),(0,_h.jsx)(bJ,{children:"Upgrade this user's subscription with a reason code."})]}),(0,_h.jsxs)("div",{className:"space-y-4 py-4",children:[(0,_h.jsxs)("div",{className:"space-y-2",children:[(0,_h.jsx)(EJ,{children:"Subscription Type"}),(0,_h.jsxs)(MJ,{value:Xe.subscription_type,onValueChange:e=>{const t={monthly:9.99,annual:99,lifetime:267};Ze(n=>p(p({},n),{},{subscription_type:e,price:t[e]}))},children:[(0,_h.jsx)(zJ,{className:"rounded-xl",children:(0,_h.jsx)(BJ,{})}),(0,_h.jsxs)(VJ,{children:[(0,_h.jsx)(qJ,{value:"monthly",children:"Monthly Pro ($9.99/mo)"}),(0,_h.jsx)(qJ,{value:"annual",children:"Annual Pro ($99/yr)"}),(0,_h.jsx)(qJ,{value:"lifetime",children:"Lifetime Pro ($267)"})]})]})]}),(0,_h.jsxs)("div",{className:"space-y-2",children:[(0,_h.jsxs)(EJ,{children:["Price (USD) ",(0,_h.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,_h.jsxs)("div",{className:"relative",children:[(0,_h.jsx)(r6,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-400"}),(0,_h.jsx)(CJ,{type:"number",step:"0.01",min:"0",placeholder:"0.00",value:Xe.price,onChange:e=>Ze(t=>p(p({},t),{},{price:e.target.value})),className:"pl-9 rounded-xl"})]}),(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"This amount will be recorded in financials. Set to 0 for free upgrades."})]}),(0,_h.jsxs)("div",{className:"space-y-2",children:[(0,_h.jsxs)(EJ,{children:["Reason for Upgrade ",(0,_h.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,_h.jsxs)(MJ,{value:Xe.reason||"",onValueChange:e=>Ze(t=>p(p({},t),{},{reason:e,notes:"other"!==e?"":t.notes})),children:[(0,_h.jsx)(zJ,{className:"rounded-xl",children:(0,_h.jsx)(BJ,{placeholder:"Select a reason code..."})}),(0,_h.jsxs)(VJ,{children:[(0,_h.jsx)(qJ,{value:"customer_service",children:"Customer Service Gesture"}),(0,_h.jsx)(qJ,{value:"promotional",children:"Promotional Offer"}),(0,_h.jsx)(qJ,{value:"beta_tester",children:"Beta Tester Reward"}),(0,_h.jsx)(qJ,{value:"referral_bonus",children:"Referral Bonus"}),(0,_h.jsx)(qJ,{value:"bug_compensation",children:"Bug Compensation"}),(0,_h.jsx)(qJ,{value:"vip_partner",children:"VIP/Partner Account"}),(0,_h.jsx)(qJ,{value:"manual_payment",children:"Manual Payment Processed"}),(0,_h.jsx)(qJ,{value:"plan_change",children:"Plan Change/Adjustment"}),(0,_h.jsx)(qJ,{value:"other",children:"Other (see notes)"})]})]}),(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"This will be logged in the user's activity history."})]}),"other"===Xe.reason&&(0,_h.jsxs)("div",{className:"space-y-2",children:[(0,_h.jsxs)(EJ,{children:["Notes ",(0,_h.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,_h.jsx)(D4,{placeholder:"Enter detailed notes for this upgrade (required)...",value:Xe.notes,onChange:e=>Ze(t=>p(p({},t),{},{notes:e.target.value})),className:"min-h-[80px]"}),(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"Please provide details about why this upgrade is being performed."})]}),(0,_h.jsxs)(_J,{className:"flex gap-2 pt-2",children:[(0,_h.jsx)(RG,{variant:"outline",onClick:()=>Je(!1),children:"Cancel"}),(0,_h.jsxs)(RG,{onClick:async()=>
2{if($e)if(Xe.reason.trim())if("other"!==Xe.reason||Xe.notes.trim())if(Xe.price<0)wH.error("Price cannot be negative");else{C(!0);try{const e="other"===Xe.reason?"other: ".concat(Xe.notes):Xe.reason;await CAe("/admin/user/".concat($e,"/upgrade"),{subscription_type:Xe.subscription_type,reason:e,price:parseFloat(Xe.price)}),wH.success("User upgraded to ".concat(Xe.subscription_type," Pro")),Je(!1),Qe(null),Ze({subscription_type:"monthly",reason:"",price:9.99,notes:""}),ht(),pt(),(null===De||void 0===De?void 0:De.id)===$e&&ft($e)}catch(e){wH.error("Failed to upgrade user")}finally{C(!1)}}else wH.error('Please provide notes when selecting "Other" as the reason');else wH.error("Please provide a reason for the upgrade")},disabled:k||!Xe.reason.trim()||"other"===Xe.reason&&!Xe.notes.trim(),className:"bg-purple-600 hover:bg-purple-700",children:[k?(0,_h.jsx)(VZ,{className:"h-4 w-4 animate-spin mr-2"}):(0,_h.jsx)(U4,{className:"h-4 w-4 mr-2"}),"Upgrade User"]})]})]})]})}),(0,_h.jsx)(mJ,{open:Ne,onOpenChange:Pe,children:(0,_h.jsxs)(yJ,{className:"sm:max-w-2xl max-h-[90vh] overflow-y-auto",children:[(0,_h.jsx)(wJ,{children:(0,_h.jsxs)(xJ,{className:"flex items-center gap-2",children:[(0,_h.jsx)(X3,{className:"h-5 w-5"})," User Details"]})}),je?(0,_h.jsx)("div",{className:"py-12 text-center",children:(0,_h.jsx)(VZ,{className:"h-8 w-8 animate-spin mx-auto text-gray-400"})}):De?(0,_h.jsxs)("div",{className:"space-y-6",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-4 p-4 bg-gray-50 rounded-xl",children:[(0,_h.jsx)("div",{className:"w-14 h-14 rounded-full bg-gradient-to-br from-purple-500 to-pink-500 flex items-center justify-center text-white text-xl font-semibold",children:(null===(e=De.name)||void 0===e||null===(t=e.charAt(0))||void 0===t?void 0:t.toUpperCase())||"U"}),(0,_h.jsxs)("div",{className:"flex-1",children:[(0,_h.jsx)("h3",{className:"font-semibold text-gray-900",children:De.name||"Unknown"}),(0,_h.jsx)("p",{className:"text-sm text-gray-500",children:De.email}),(0,_h.jsx)("div",{className:"flex items-center gap-2 mt-1",children:At(De)})]}),(0,_h.jsxs)("div",{className:"text-right",children:[(0,_h.jsxs)("p",{className:"text-2xl font-bold text-green-600",children:["$",(null===(n=De.total_revenue)||void 0===n?void 0:n.toFixed(2))||"0.00"]}),(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"Total Revenue"})]})]}),(0,_h.jsxs)("div",{className:"flex items-center gap-3 p-4 bg-gray-50 rounded-xl border border-gray-200",children:[(0,_h.jsx)("span",{className:"text-sm font-medium text-gray-700",children:"Actions:"}),(0,_h.jsxs)("div",{className:"flex items-center gap-2 flex-1",children:[De.banned?(0,_h.jsxs)(RG,{size:"sm",variant:"outline",onClick:()=>{return e=De.id,qe(e),We(""),void Ue(!0);var e},className:"h-8 text-xs",children:[(0,_h.jsx)(a6,{className:"h-3 w-3 mr-1"})," Unban User"]}):(0,_h.jsxs)(RG,{size:"sm",variant:"outline",onClick:()=>{Ie(De.id),Fe(!0)},className:"h-8 text-xs text-red-600 hover:text-red-700 hover:bg-red-50",children:[(0,_h.jsx)(Q3,{className:"h-3 w-3 mr-1"})," Ban User"]}),"pro"!==De.account_type&&!De.banned&&(0,_h.jsxs)(RG,{size:"sm",onClick:()=>mt(De.id),className:"h-8 text-xs bg-purple-600 hover:bg-purple-700 text-white",children:[(0,_h.jsx)(U4,{className:"h-3 w-3 mr-1"})," Upgrade to Pro"]}),"pro"===De.account_type&&!De.banned&&(0,_h.jsxs)(RG,{size:"sm",onClick:()=>mt(De.id),className:"h-8 text-xs bg-amber-600 hover:bg-amber-700 text-white",children:[(0,_h.jsx)(U4,{className:"h-3 w-3 mr-1"})," Change Plan"]})]})]}),(0,_h.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[(0,_h.jsxs)("div",{className:"p-3 bg-gray-50 rounded-lg",children:[(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"Joined"}),(0,_h.jsx)("p",{className:"font-medium text-gray-900",children:Ct(De.created_at)})]}),(0,_h.jsxs)("div",{className:"p-3 bg-gray-50 rounded-lg",children:[(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"Last Login"}),(0,_h.jsx)("p",{className:"font-medium text-gray-900",children:Ct(De.last_login)})]}),(0,_h.jsxs)("div",{className:"p-3 bg-gray-50 rounded-lg",children:[(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"Upgraded"}),(0,_h.jsx)("p",{className:"font-medium text-gray-900",children:Ct(De.upgraded_at)})]}),(0,_h.jsxs)("div",{className:"p-3 bg-gray-50 rounded-lg",children:[(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"Cancelled"}),(0,_h.jsx)("p",{className:"font-medium text-gray-900",children:Ct(De.churned_at)})]})]}),(0,_h.jsxs)("div",{className:"grid grid-cols-3 gap-4",children:[(0,_h.jsxs)("div",{className:"p-4 bg-blue-50 rounded-xl text-center",children:[(0,_h.jsx)(eZ,{className:"h-6 w-6 mx-auto text-blue-600 mb-1"}),(0,_h.jsx)("p",{className:"text-2xl font-bold text-gray-900",children:De.kids_count||0}),(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"Kids"})]}),(0,_h.jsxs)("div",{className:"p-4 bg-purple-50 rounded-xl text-center",children:[(0,_h.jsx)(F3,{className:"h-6 w-6 mx-auto text-purple-600 mb-1"}),(0,_h.jsx)("p",{className:"text-2xl font-bold text-gray-900",children:De.activities_count||0}),(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"Activities"})]}),(0,_h.jsxs)("div",{className:"p-4 bg-green-50 rounded-xl text-center",children:[(0,_h.jsx)(iZ,{className:"h-6 w-6 mx-auto text-green-600 mb-1"}),(0,_h.jsx)("p",{className:"text-2xl font-bold text-gray-900",children:De.events_count||0}),(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"Events"})]})]}),(null===(a=De.payments)||void 0===a?void 0:a.length)>0&&(0,_h.jsxs)("div",{children:[(0,_h.jsxs)("h4",{className:"font-semibold text-gray-900 mb-2 flex items-center gap-2",children:[(0,_h.jsx)(o6,{className:"h-4 w-4"})," Payments"]}),(0,_h.jsx)("div",{className:"space-y-2",children:De.payments.map((e,t)=>{var n;return(0,_h.jsxs)("div",{className:"flex items-center justify-between p-3 bg-gray-50 rounded-lg",children:[(0,_h.jsxs)("div",{children:[(0,_h.jsxs)("p",{className:"font-medium text-gray-900",children:["$",null===(n=e.amount)||void 0===n?void 0:n.toFixed(2)]}),(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:e.subscription_type})]}),(0,_h.jsx)("p",{className:"text-sm text-gray-500",children:Dt(e.created_at)})]},t)})})]}),(null===(r=De.ip_history)||void 0===r?void 0:r.length)>0&&(0,_h.jsxs)("div",{children:[(0,_h.jsxs)("h4",{className:"font-semibold text-gray-900 mb-2 flex items-center gap-2",children:[(0,_h.jsx)(i6,{className:"h-4 w-4"})," Login IPs"]}),(0,_h.jsx)("div",{className:"space-y-2 max-h-40 overflow-y-auto",children:De.ip_history.map((e,t)=>(0,_h.jsxs)("div",{className:"flex items-center justify-between p-3 bg-gray-50 rounded-lg",children:[(0,_h.jsxs)("div",{children:[(0,_h.jsx)("p",{className:"font-mono text-sm text-gray-900",children:e.ip_address}),(0,_h.jsx)("p",{className:"text-xs text-gray-500 truncate max-w-[300px]",children:e.user_agent})]}),(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:Dt(e.last_used)})]},t))})]}),(null===(i=De.activity_logs)||void 0===i?void 0:i.length)>0&&(0,_h.jsxs)("div",{children:[(0,_h.jsxs)("h4",{className:"font-semibold text-gray-900 mb-2 flex items-center gap-2",children:[(0,_h.jsx)(s6,{className:"h-4 w-4"}
2)," Activity Log"]}),(0,_h.jsx)("div",{className:"space-y-2 max-h-40 overflow-y-auto",children:De.activity_logs.map((e,t)=>{var n,a,r,o;return(0,_h.jsxs)("div",{className:"flex items-center justify-between p-3 bg-gray-50 rounded-lg",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-2 flex-1",children:["login"===e.action&&(0,_h.jsx)(t6,{className:"h-4 w-4 text-green-500"}),"banned"===e.action&&(0,_h.jsx)(Q3,{className:"h-4 w-4 text-red-500"}),"unbanned"===e.action&&(0,_h.jsx)(a6,{className:"h-4 w-4 text-blue-500"}),"admin_upgraded"===e.action&&(0,_h.jsx)(U4,{className:"h-4 w-4 text-purple-500"}),"upgraded"===e.action&&(0,_h.jsx)(U4,{className:"h-4 w-4 text-green-500"}),(0,_h.jsx)("span",{className:"text-sm text-gray-900 capitalize",children:e.action.replace("_"," ")}),(null===(n=e.details)||void 0===n?void 0:n.reason)&&(0,_h.jsxs)("span",{className:"text-xs text-gray-500 ml-1",children:["- ",e.details.reason]}),(null===(a=e.details)||void 0===a?void 0:a.subscription_type)&&(0,_h.jsx)("span",{className:"text-xs bg-purple-100 text-purple-700 px-1.5 py-0.5 rounded ml-1",children:e.details.subscription_type}),void 0!==(null===(r=e.details)||void 0===r?void 0:r.price)&&(null===(o=e.details)||void 0===o?void 0:o.price)>0&&(0,_h.jsxs)("span",{className:"text-xs bg-green-100 text-green-700 px-1.5 py-0.5 rounded ml-1",children:["$",e.details.price]})]}),(0,_h.jsx)("p",{className:"text-xs text-gray-500 whitespace-nowrap ml-2",children:Dt(e.created_at)})]},t)})})]})]}):null]})}),(0,_h.jsx)("header",{className:"bg-white border-b border-gray-200 sticky top-0 z-40",children:(0,_h.jsxs)("div",{className:"max-w-7xl mx-auto px-4 py-3 flex items-center justify-between",children:[(0,_h.jsx)(Pt,{to:"/dashboard",className:"flex items-center gap-2 group",children:(0,_h.jsx)("img",{src:"https://customer-assets.emergentagent.com/job_kidplay-hub/artifacts/7zuwi818_jgzjhpdo_image.png",alt:"SmartDaddy AI",className:"h-8 w-auto object-contain transition-transform duration-300 group-hover:scale-105"})}),(0,_h.jsxs)("div",{className:"flex items-center gap-4",children:[q?(0,_h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_h.jsxs)("span",{className:"flex items-center gap-1.5 text-xs text-green-600 bg-green-50 px-2 py-1 rounded-full",children:[(0,_h.jsx)(x3,{className:"h-3 w-3"})," MFA Enabled"]}),(0,_h.jsx)(RG,{variant:"ghost",size:"sm",onClick:async()=>{try{await nY.post("/admin/mfa/disable"),H(!1),wH.success("MFA has been disabled")}catch(oL){wH.error("Failed to disable MFA")}},className:"text-gray-500 hover:text-red-600 text-xs",children:"Disable"})]}):(0,_h.jsxs)(RG,{variant:"ghost",size:"sm",onClick:()=>B(!0),className:"text-gray-500 hover:text-gray-700",children:[(0,_h.jsx)(n6,{className:"h-4 w-4 mr-2"}),"Enable MFA"]}),(0,_h.jsx)(Pt,{to:"/dashboard",className:"text-sm text-gray-500 hover:text-gray-700",children:"Go to App"}),(0,_h.jsxs)(RG,{variant:"outline",size:"sm",onClick:()=>{sessionStorage.removeItem("adminAuth"),d(!1),f("password"),g(""),_(""),K([]),wH.success("Logged out of admin panel")},className:"rounded-full",children:[(0,_h.jsx)(oZ,{className:"h-4 w-4 mr-2"}),"Logout"]})]})]})}),(0,_h.jsxs)("main",{className:"max-w-7xl mx-auto px-4 py-8",children:[(0,_h.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4 mb-6",children:[(0,_h.jsx)("div",{className:"bg-white rounded-2xl p-4 shadow-sm border border-gray-100",children:(0,_h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,_h.jsx)("div",{className:"w-10 h-10 rounded-xl bg-blue-100 flex items-center justify-center",children:(0,_h.jsx)(eZ,{className:"h-5 w-5 text-blue-600"})}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("p",{className:"text-xl font-bold text-gray-900",children:te.total}),(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"Total Users"})]})]})}),(0,_h.jsx)("div",{className:"bg-white rounded-2xl p-4 shadow-sm border border-gray-100",children:(0,_h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,_h.jsx)("div",{className:"w-10 h-10 rounded-xl bg-gray-100 flex items-center justify-center",children:(0,_h.jsx)(X3,{className:"h-5 w-5 text-gray-600"})}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("p",{className:"text-xl font-bold text-gray-900",children:te.free}),(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"Free"})]})]})}),(0,_h.jsx)("div",{className:"bg-white rounded-2xl p-4 shadow-sm border border-gray-100",children:(0,_h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,_h.jsx)("div",{className:"w-10 h-10 rounded-xl bg-purple-100 flex items-center justify-center",children:(0,_h.jsx)(U4,{className:"h-5 w-5 text-purple-600"})}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("p",{className:"text-xl font-bold text-gray-900",children:te.pro_monthly||0}),(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"Monthly"})]})]})}),(0,_h.jsx)("div",{className:"bg-white rounded-2xl p-4 shadow-sm border border-gray-100",children:(0,_h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,_h.jsx)("div",{className:"w-10 h-10 rounded-xl bg-indigo-100 flex items-center justify-center",children:(0,_h.jsx)(iZ,{className:"h-5 w-5 text-indigo-600"})}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("p",{className:"text-xl font-bold text-gray-900",children:te.pro_annual||0}),(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"Annual"})]})]})}),(0,_h.jsx)("div",{className:"bg-white rounded-2xl p-4 shadow-sm border border-gray-100",children:(0,_h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,_h.jsx)("div",{className:"w-10 h-10 rounded-xl bg-amber-100 flex items-center justify-center",children:(0,_h.jsx)(Z3,{className:"h-5 w-5 text-amber-600"})}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("p",{className:"text-xl font-bold text-gray-900",children:te.pro_lifetime||0}),(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"Lifetime"})]})]})}),(0,_h.jsx)("div",{className:"bg-white rounded-2xl p-4 shadow-sm border border-gray-100",children:(0,_h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,_h.jsx)("div",{className:"w-10 h-10 rounded-xl bg-green-100 flex items-center justify-center",children:(0,_h.jsx)(nZ,{className:"h-5 w-5 text-green-600"})}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("p",{className:"text-xl font-bold text-gray-900",children:te.pro_total||0}),(0,_h.jsx)("p",{className:"text-xs text-gray-500",children:"Total Pro"})]})]})})]}),(0,_h.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-8",children:[(0,_h.jsxs)("div",{className:"bg-white rounded-2xl p-5 shadow-sm border border-gray-200",children:[(0,_h.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,_h.jsx)("div",{className:"w-10 h-10 rounded-xl bg-green-100 flex items-center justify-center",children:(0,_h.jsx)(r6,{className:"h-5 w-5 text-green-600"})}),(0,_h.jsx)("span",{className:"text-xs text-gray-400 font-medium uppercase",children:"Total Revenue"})]}),(0,_h.jsxs)("p",{className:"text-3xl font-bold text-gray-900",children:["$",(null===(s=te.total_revenue)||void 0===s?void 0:s.toLocaleStr
2ing())||"0"]}),(0,_h.jsx)("p",{className:"text-xs text-gray-500 mt-1",children:"All time"})]}),(0,_h.jsxs)("div",{className:"bg-white rounded-2xl p-5 shadow-sm border border-gray-200",children:[(0,_h.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,_h.jsx)("div",{className:"w-10 h-10 rounded-xl bg-blue-100 flex items-center justify-center",children:(0,_h.jsx)(l6,{className:"h-5 w-5 text-blue-600"})}),(0,_h.jsx)("span",{className:"text-xs text-gray-400 font-medium uppercase",children:"MRR"})]}),(0,_h.jsxs)("p",{className:"text-3xl font-bold text-gray-900",children:["$",(null===(l=te.mrr)||void 0===l?void 0:l.toLocaleString())||"0"]}),(0,_h.jsx)("p",{className:"text-xs text-gray-500 mt-1",children:"Monthly Recurring"})]}),(0,_h.jsxs)("div",{className:"bg-white rounded-2xl p-5 shadow-sm border border-gray-200",children:[(0,_h.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,_h.jsx)("div",{className:"w-10 h-10 rounded-xl bg-purple-100 flex items-center justify-center",children:(0,_h.jsx)(c6,{className:"h-5 w-5 text-purple-600"})}),(0,_h.jsx)("span",{className:"text-xs text-gray-400 font-medium uppercase",children:"ARR"})]}),(0,_h.jsxs)("p",{className:"text-3xl font-bold text-gray-900",children:["$",(null===(c=te.arr)||void 0===c?void 0:c.toLocaleString())||"0"]}),(0,_h.jsx)("p",{className:"text-xs text-gray-500 mt-1",children:"Annual Recurring"})]}),(0,_h.jsxs)("div",{className:"bg-white rounded-2xl p-5 shadow-sm border border-gray-200",children:[(0,_h.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,_h.jsx)("div",{className:"w-10 h-10 rounded-xl bg-red-100 flex items-center justify-center",children:(0,_h.jsx)(u6,{className:"h-5 w-5 text-red-600"})}),(0,_h.jsx)("span",{className:"text-xs text-gray-400 font-medium uppercase",children:"Churn"})]}),(0,_h.jsxs)("p",{className:"text-3xl font-bold text-gray-900",children:[te.churn_rate||0,"%"]}),(0,_h.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[te.churned_users||0," users cancelled"]})]})]}),(0,_h.jsxs)("div",{className:"space-y-6 mb-8",children:[(0,_h.jsx)("div",{className:"bg-white rounded-2xl p-4 shadow-sm border border-gray-200",children:(0,_h.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_h.jsx)(BZ,{className:"h-5 w-5 text-gray-500"}),(0,_h.jsx)("span",{className:"text-sm font-medium text-gray-700",children:"Date Range:"})]}),(0,_h.jsxs)("div",{className:"flex flex-wrap gap-2",children:[[{value:7,label:"7 Days"},{value:30,label:"30 Days"},{value:60,label:"60 Days"},{value:90,label:"90 Days"},{value:180,label:"180 Days"},{value:365,label:"1 Year"}].map(e=>(0,_h.jsx)("button",{onClick:()=>{ie(e.value),be(!1),Ce("")},className:"px-3 py-1.5 text-sm rounded-lg border transition-all ".concat(oe!==e.value||xe?"bg-white border-gray-200 text-gray-600 hover:bg-gray-50":"bg-purple-600 border-purple-600 text-white"),children:e.label},e.value)),(0,_h.jsxs)(WJ,{open:me,onOpenChange:ge,children:[(0,_h.jsx)(KJ,{asChild:!0,children:(0,_h.jsxs)("button",{className:"px-3 py-1.5 text-sm rounded-lg border transition-all flex items-center gap-1.5 ".concat(xe?"bg-purple-600 border-purple-600 text-white":"bg-white border-gray-200 text-gray-600 hover:bg-gray-50"),children:[(0,_h.jsx)(iZ,{className:"h-3.5 w-3.5"}),xe&&ke?ke:"Custom"]})}),(0,_h.jsx)(YJ,{className:"w-80 p-4",align:"start",children:(0,_h.jsxs)("div",{className:"space-y-4",children:[(0,_h.jsx)("h4",{className:"font-semibold text-sm",children:"Custom Date Range"}),(0,_h.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,_h.jsxs)("div",{className:"space-y-1.5",children:[(0,_h.jsx)(EJ,{className:"text-xs text-gray-500",children:"Start Date"}),(0,_h.jsx)(CJ,{type:"date",value:ve,onChange:e=>ye(e.target.value),max:we||(new Date).toISOString().split("T")[0],className:"h-9"})]}),(0,_h.jsxs)("div",{className:"space-y-1.5",children:[(0,_h.jsx)(EJ,{className:"text-xs text-gray-500",children:"End Date"}),(0,_h.jsx)(CJ,{type:"date",value:we,onChange:e=>_e(e.target.value),min:ve,max:(new Date).toISOString().split("T")[0],className:"h-9"})]})]}),(0,_h.jsxs)("div",{className:"flex gap-2 pt-2",children:[(0,_h.jsx)(RG,{variant:"outline",size:"sm",className:"flex-1",onClick:()=>{ge(!1),ye(""),_e("")},children:"Cancel"}),(0,_h.jsx)(RG,{size:"sm",className:"flex-1 bg-purple-600 hover:bg-purple-700",disabled:!ve||!we,onClick:()=>
2{if(ve&&we){const e=new Date(ve),t=new Date(we),n=Math.ceil((t-e)/864e5)+1;if(n<1)return void wH.error("End date must be after start date");if(n>730)return void wH.error("Date range cannot exceed 2 years");ie(n),be(!0);const a=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric"});Ce("".concat(a(ve)," - ").concat(a(we))),ge(!1),wH.success("Showing data for ".concat(n," days"))}},children:"Apply"})]}),(0,_h.jsx)("p",{className:"text-xs text-gray-400 text-center",children:"Max range: 2 years"})]})})]})]}),(0,_h.jsxs)("div",{className:"flex items-center gap-2 ml-auto",children:[(0,_h.jsxs)("span",{className:"text-xs text-gray-400",children:["Showing by ","day"===de?"day":"week"===de?"week":"month"]}),pe&&(0,_h.jsx)(VZ,{className:"h-4 w-4 animate-spin text-purple-500"})]})]})}),(0,_h.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[(0,_h.jsxs)("div",{className:"bg-white rounded-2xl p-6 shadow-sm border border-gray-200",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,_h.jsx)(T3,{className:"h-5 w-5 text-gray-600"}),(0,_h.jsx)("h3",{className:"font-semibold text-gray-900",children:"User Distribution"})]}),te.user_distribution&&te.user_distribution.length>0?(0,_h.jsx)("div",{className:"h-64",children:(0,_h.jsx)($6,{width:"100%",height:"100%",children:(0,_h.jsxs)(jme,{children:[(0,_h.jsx)(hxe,{data:te.user_distribution,cx:"50%",cy:"50%",innerRadius:60,outerRadius:90,paddingAngle:2,dataKey:"value",label:e=>{let{name:t,percent:n}=e;return"".concat(t," ").concat((100*n).toFixed(0),"%")},labelLine:!1,children:te.user_distribution.map((e,t)=>(0,_h.jsx)(zve,{fill:e.color},"cell-".concat(t)))}),(0,_h.jsx)(nbe,{formatter:(e,t)=>["".concat(e," users"),t],contentStyle:{backgroundColor:"white",border:"1px solid #e5e7eb",borderRadius:"12px",boxShadow:"0 4px 6px -1px rgba(0,0,0,0.1)"}}),(0,_h.jsx)(xbe,{verticalAlign:"bottom",height:36,formatter:(e,t)=>(0,_h.jsx)("span",{className:"text-sm text-gray-700",children:e})})]})})}):(0,_h.jsx)("div",{className:"h-64 flex items-center justify-center text-gray-400",children:(0,_h.jsx)("p",{className:"text-sm",children:"No user data available"})})]}),(0,_h.jsxs)("div",{className:"bg-white rounded-2xl p-6 shadow-sm border border-gray-200",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,_h.jsx)(l6,{className:"h-5 w-5 text-gray-600"}),(0,_h.jsx)("h3",{className:"font-semibold text-gray-900",children:"User Growth"})]}),se&&se.length>0?(0,_h.jsx)("div",{className:"h-64",children:(0,_h.jsx)($6,{width:"100%",height:"100%",children:(0,_h.jsxs)(Abe,{data:se,margin:{top:10,right:10,left:0,bottom:0},children:[(0,_h.jsx)(fke,{strokeDasharray:"3 3",stroke:"#f0f0f0"}),(0,_h.jsx)(jke,{dataKey:"label",tick:{fontSize:10,fill:"#6b7280"},tickLine:!1,axisLine:{stroke:"#e5e7eb"},interval:"day"===de?0:"preserveStartEnd",angle:"day"===de?-45:0,textAnchor:"day"===de?"end":"middle",height:"day"===de?60:30}),(0,_h.jsx)(Mke,{tick:{fontSize:11,fill:"#6b7280"},tickLine:!1,axisLine:{stroke:"#e5e7eb"}}),(0,_h.jsx)(nbe,{contentStyle:{backgroundColor:"white",border:"1px solid #e5e7eb",borderRadius:"12px",boxShadow:"0 4px 6px -1px rgba(0,0,0,0.1)"},labelStyle:{fontWeight:600,color:"#374151"}}),(0,_h.jsx)(ICe,{type:"monotone",dataKey:"free",stroke:"#9CA3AF",strokeWidth:2,name:"Free",dot:!1}),(0,_h.jsx)(ICe,{type:"monotone",dataKey:"pro_monthly",stroke:"#8B5CF6",strokeWidth:2,name:"Pro Monthly",dot:!1}),(0,_h.jsx)(ICe,{type:"monotone",dataKey:"pro_annual",stroke:"#F59E0B",strokeWidth:2,name:"Pro Annual",dot:!1}),(0,_h.jsx)(ICe,{type:"monotone",dataKey:"pro_lifetime",stroke:"#10B981",strokeWidth:2,name:"Pro Lifetime",dot:!1})]})})}):(0,_h.jsx)("div",{className:"h-64 flex items-center justify-center text-gray-400",children:pe?(0,_h.jsx)(VZ,{className:"h-6 w-6 animate-spin"}):(0,_h.jsx)("p",{className:"text-sm",children:"No growth data available"})}),(0,_h.jsxs)("div",{className:"flex items-center justify-center gap-4 mt-2 flex-wrap",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,_h.jsx)("div",{className:"w-3 h-3 rounded-full bg-gray-400"}),(0,_h.jsx)("span",{className:"text-xs text-gray-500",children:"Free"})]}),(0,_h.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,_h.jsx)("div",{className:"w-3 h-3 rounded-full bg-purple-500"}),(0,_h.jsx)("span",{className:"text-xs text-gray-500",children:"Pro Monthly"})]}),(0,_h.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,_h.jsx)("div",{className:"w-3 h-3 rounded-full bg-amber-500"}),(0,_h.jsx)("span",{className:"text-xs text-gray-500",children:"Pro Annual"})]}),(0,_h.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,_h.jsx)("div",{className:"w-3 h-3 rounded-full bg-green-500"}),(0,_h.jsx)("span",{className:"text-xs text-gray-500",children:"Pro Lifetime"})]})]})]})]}),(0,_h.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[(0,_h.jsxs)("div",{className:"bg-white rounded-2xl p-6 shadow-sm border border-gray-200",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,_h.jsx)(d6,{className:"h-5 w-5 text-gray-600"}),(0,_h.jsx)("h3",{className:"font-semibold text-gray-900",children:"MRR Trend (Last 12 Months)"})]}),ae&&ae.length>0?(0,_h.jsx)("div",{className:"h-64",children:(0,_h.jsx)($6,{width:"100%",height:"100%",children:(0,_h.jsxs)(MCe,{data:ae,margin:{top:10,right:10,left:0,bottom:0},children:[(0,_h.jsx)("defs",{children:(0,_h.jsxs)("linearGradient",{id:"mrrGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,_h.jsx)("stop",{offset:"5%",
2stopColor:"#8B5CF6",stopOpacity:.3}),(0,_h.jsx)("stop",{offset:"95%",stopColor:"#8B5CF6",stopOpacity:0})]})}),(0,_h.jsx)(fke,{strokeDasharray:"3 3",stroke:"#f0f0f0"}),(0,_h.jsx)(jke,{dataKey:"label",tick:{fontSize:11,fill:"#6b7280"},tickLine:!1,axisLine:{stroke:"#e5e7eb"}}),(0,_h.jsx)(Mke,{tick:{fontSize:11,fill:"#6b7280"},tickLine:!1,axisLine:{stroke:"#e5e7eb"},tickFormatter:e=>"$".concat(e)}),(0,_h.jsx)(nbe,{formatter:(e,t)=>"mrr"===t?["$".concat(e.toFixed(2)),"MRR"]:"revenue"===t?["$".concat(e.toFixed(2)),"Revenue"]:[e,t],contentStyle:{backgroundColor:"white",border:"1px solid #e5e7eb",borderRadius:"12px",boxShadow:"0 4px 6px -1px rgba(0,0,0,0.1)"},labelStyle:{fontWeight:600,color:"#374151"}}),(0,_h.jsx)(yDe,{type:"monotone",dataKey:"mrr",stroke:"#8B5CF6",strokeWidth:2,fill:"url(#mrrGradient)"}),(0,_h.jsx)(ICe,{type:"monotone",dataKey:"revenue",stroke:"#10B981",strokeWidth:2,dot:{fill:"#10B981",strokeWidth:0,r:3},activeDot:{r:5}})]})})}):(0,_h.jsx)("div",{className:"h-64 flex items-center justify-center text-gray-400",children:(0,_h.jsx)("p",{className:"text-sm",children:"No MRR history available"})}),(0,_h.jsxs)("div",{className:"flex items-center justify-center gap-6 mt-2",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_h.jsx)("div",{className:"w-3 h-3 rounded-full bg-purple-500"}),(0,_h.jsx)("span",{className:"text-xs text-gray-500",children:"MRR"})]}),(0,_h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_h.jsx)("div",{className:"w-3 h-3 rounded-full bg-green-500"}),(0,_h.jsx)("span",{className:"text-xs text-gray-500",children:"Monthly Revenue"})]})]})]}),(0,_h.jsxs)("div",{className:"bg-white rounded-2xl p-6 shadow-sm border border-gray-200",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,_h.jsx)(u6,{className:"h-5 w-5 text-gray-600"}),(0,_h.jsx)("h3",{className:"font-semibold text-gray-900",children:"Churn & Growth"})]}),ce&&ce.length>0?(0,_h.jsx)("div",{className:"h-64",children:(0,_h.jsx)($6,{width:"100%",height:"100%",children:(0,_h.jsxs)(_De,{data:ce,margin:{top:10,right:10,left:0,bottom:0},children:[(0,_h.jsx)(fke,{strokeDasharray:"3 3",stroke:"#f0f0f0"}),(0,_h.jsx)(jke,{dataKey:"label",tick:{fontSize:10,fill:"#6b7280"},tickLine:!1,axisLine:{stroke:"#e5e7eb"},interval:"day"===de?0:"preserveStartEnd",angle:"day"===de?-45:0,textAnchor:"day"===de?"end":"middle",height:"day"===de?60:30}),(0,_h.jsx)(Mke,{tick:{fontSize:11,fill:"#6b7280"},tickLine:!1,axisLine:{stroke:"#e5e7eb"}}),(0,_h.jsx)(nbe,{contentStyle:{backgroundColor:"white",border:"1px solid #e5e7eb",borderRadius:"12px",boxShadow:"0 4px 6px -1px rgba(0,0,0,0.1)"},labelStyle:{fontWeight:600,color:"#374151"}}),(0,_h.jsx)(SDe,{y:0,stroke:"#e5e7eb"}),(0,_h.jsx)(bAe,{dataKey:"new_users",fill:"#10B981",name:"New Users",radius:[4,4,0,0]}),(0,_h.jsx)(bAe,{dataKey:"churned",fill:"#EF4444",name:"Churned",radius:[4,4,0,0]})]})})}):(0,_h.jsx)("div",{className:"h-64 flex items-center justify-center text-gray-400",children:pe?(0,_h.jsx)(VZ,{className:"h-6 w-6 animate-spin"}):(0,_h.jsx)("p",{className:"text-sm",children:"No churn data available"})}),(0,_h.jsxs)("div",{className:"flex items-center justify-center gap-6 mt-2",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_h.jsx)("div",{className:"w-3 h-3 rounded-full bg-green-500"}),(0,_h.jsx)("span",{className:"text-xs text-gray-500",children:"New Users"})]}),(0,_h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_h.jsx)("div",{className:"w-3 h-3 rounded-full bg-red-500"}),(0,_h.jsx)("span",{className:"text-xs text-gray-500",children:"Churned"})]})]})]})]})]}),(0,_h.jsxs)("div",{className:"bg-white rounded-2xl shadow-sm border border-gray-100 overflow-hidden",children:[(0,_h.jsxs)("div",{className:"p-6 border-b border-gray-100",children:[(0,_h.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-4",children:[(0,_h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,_h.jsx)("h2",{className:"text-lg font-semibold text-gray-900",children:"All Users"}),(0,_h.jsxs)("span",{className:"text-sm text-gray-500",children:["(",_t.length," total)"]})]}),(0,_h.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[(0,_h.jsxs)(RG,{variant:"outline",size:"sm",onClick:()=>{ht(),pt()},children:[(0,_h.jsx)(qZ,{className:"h-4 w-4 mr-2"}),"Refresh"]}),(0,_h.jsxs)(WJ,{open:ot,onOpenChange:it,children:[(0,_h.jsx)(KJ,{asChild:!0,children:(0,_h.jsxs)(RG,{variant:"outline",size:"sm",className:"h-10",children:[(0,_h.jsx)(q4,{className:"h-4 w-4 mr-2"}),"Filters",yt>0&&(0,_h.jsx)("span",{className:"ml-2 bg-purple-600 text-white text-xs px-1.5 py-0.5 rounded-full",children:yt})]})}),(0,_h.jsx)(YJ,{className:"w-80 p-4",align:"end",children:(0,_h.jsxs)("div",{className:"space-y-4",children:[(0,_h.jsxs)("div",{className:"flex items-center justify-between",children:[(0,_h.jsx)("h4",{className:"font-semibold text-sm",children:"Filters"}),yt>0&&(0,_h.jsx)(RG,{variant:"ghost",size:"sm",onClick:()=>{rt({accountTypes:[],subscriptionTypes:[],statuses:[]}),tt(1)},className:"h-7 text-xs text-gray-500",children:"Clear all"})]}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)(EJ,{className:"text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Account Type"}),(0,_h.jsx)("div",{className:"flex flex-wrap gap-2 mt-2",children:["free","pro"].map(e=>(0,_h.jsx)("button",{onClick:()=>vt("accountTypes",e),className:"px-3 py-1.5 text-xs rounded-full border transition-colors ".concat(at.accountTypes.includes(e)?"bg-purple-100 border-purple-300 text-purple-700":"bg-gray-50 border-gray-200 text-gray-600 hover:bg-gray-100"),children:"free"===e?"Free":"Pro"},e))})]}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)(EJ,{className:"text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Subscription"}),(0,_h.jsx)("div",{className:"flex flex-wrap gap-2 mt-2",children:["free","monthly","annual","lifetime","legacy"].map(e=>(0,_h.jsx)("button",{onClick:()=>vt("subscriptionTypes",e),className:"px-3 py-1.5 text-xs rounded-full border transition-colors ".concat(at.subscriptionTypes.includes(e)?"bg-purple-100 border-purple-300 text-purple-700":"bg-gray-50 border-gray-200 text-gray-600 hover:bg-gray-100"),children:e.charAt(0).toUpperCase()+e.slice(1)},e))})]}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)(EJ,{className:"text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Status"}),(0,_h.jsx)("div",{className:"flex flex-wrap gap-2 mt-2",children:["active","banned","churned"].map(e=>(0,_h.jsx)("button",{onClick:()=>vt("statuses",e),className:"px-3 py-1.5 text-xs rounded-full border transition-colors ".concat(at.statuses.includes(e)?"banned"===e?"bg-red-100 border-red-300 text-red-700":"churned"===e?"bg-orange-100 border-orange-300 text-orange-700":"bg-green-100 border-green-300 text-green-700":"bg-gray-50 border-gray-200 text-gray-600 hover:bg-gray-100"),children:e.charAt(0).toUpperCase()+e.slice(1)},e))})]})]})})]}),(0,_h.jsxs)(MJ,{value:st,onValueChange:lt,children:[(0,_h.jsxs)(zJ,{className:"w-40 h-10",children:[(0,_h.jsx)(H4,{className:"h-4 w-4 mr-2 text-gray-400"}),(0,_h.jsx)(BJ,{placeholder:"Group by..."})]}),(0,_h.jsxs)(VJ,{children:[(0,_h.jsx)(qJ,{value:"none",children:"No grouping"}),(0,_h.jsx)(qJ,{value:"account_type",children:"Account Type"}),(0,_h.jsx)(qJ,{value:"subscription_type",children:"Subscription"}),(0,_h.jsx)(qJ,{value:"status",children:"Status"})]})]}),(0,_h.jsxs)("div",{className:"relative",children:[(0,_h.jsx)(V4,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-400"}),(0,_h.jsx)(CJ,{placeholder:"Search users...",value:J,onChange:e=>{$(e.target.value),tt(1)},className:"pl-10 h-10 rounded-full w-64"})]})]})]}),yt>0&&(0,_h.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mt-4 pt-4 border-t border-gray-100",children:[(0,_h.jsx)("span",{className:"text-xs text-gray-500 mr-1",children:"Active filters:"}),at.accountTypes.map(e=>(0,_h.jsxs)("span",{className:"inline-flex items-center gap-1 px-2 py-1 text-xs bg-purple-100 text-purple-700 rounded-full",children:[e.charAt(0).toUpperCase()+e.slice(1),(0,_h.jsx)(lJ,{className:"h-3 w-3 cursor-pointer hover:text-purple-900",onClick:()=>vt("accountTypes",e)})]},e)),at.subscriptionTypes.map(e=>(0,_h.jsxs)("span",{className:"inline-flex items-center gap-1 px-2 py-1 text-xs bg-blue-100 text-blue-700 rounded-full",children:[e.charAt(0).toUpperCase()+e.slice(1),(0,_h.jsx)(lJ,{className:"h-3 w-3 cursor-pointer hover:text-blue-900",onClick:()=>vt("subscriptionTypes",e)})]},e)),at.statuses.map(e=>(0,_h.jsxs)("span",{className:"inline-flex items-center gap-1 px-2 py-1 text-xs rounded-full ".concat("banned"===e?"bg-red-100 text-red-700":"churned"===e?"bg-orange-100 text-orange-700":"bg-green-100 text-green-700"),children:[e.charAt(0).toUpperCase()+e.slice(1),(0,_h.jsx)(lJ,{className:"h-3 w-3 cursor-pointer",onClick:()=>vt("statuses",e)})]},e))]})]}),Y?(0,_h.jsxs)("div",{className:"p-12 text-center",children:[(0,_h.jsx)(VZ,{className:"h-8 w-8 animate-spin mx-auto text-gray-400"}),(0,_h.jsx)("p",{className:"text-sm text-gray-500 mt-2",children:"Loading users..."})]}):"none"!==st&&xt?(0,_h.jsx)("div",{className:"divide-y divide-gray-100",children:Object.entries(xt).map(e=>{let[t,n]=e;return(0,_h.jsxs)("div",{className:"border-b border-gray-100 last:border-b-0",children:[(0,_h.jsxs)("div",{className:"px-6 py-3 bg-gray-50 flex items-center gap-2",children:[(0,_h.jsx)(H4,{className:"h-4 w-4 text-gray-400"}),(0,_h.jsx)("span",{className:"font-semibold text-gray-700",children:t}),(0,_h.jsxs)("span",{className:"text-sm text-gray-500",children:["(",n.length,")"]})]}),(0,_h.jsxs)("div",{className:"overflow-x-auto",children:[(0,_h.jsx)("table",{className:"w-full",children:(0,_h.jsx)("tbody",{className:"divide-y divide-gray-100",children:n.slice(0,10).map(e=>{var t,n,a;return(0,_h.jsxs)("tr",{className:"hover:bg-gray-50 cursor-pointer",onClick:()=>ft(e.id),children:[(0,_h.jsx)("td",{className:"px-6 py-4 w-1/4",children:(0,_h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,_h.jsx)("div",{className:"w-10 h-10 rounded-full bg-gradient-to-br from-purple-500 to-pink-500 flex items-center justify-center text-white font-semibold",children:(null===(t=e.name)||void 0===t||null===(n=t.charAt(0))||void 0===n?void 0:n.toUpperCase())||"U"}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("p",{className:"font-medium text-gray-900",children:e.name||"Unknown"}),(0,_h.jsx)("p",{className:"text-sm text-gray-500",children:e.email})]})]})}),(0,_h.jsx)("td",{className:"px-6 py-4",children:At(e)}),(0,_h.jsx)("td",{className:"px-6 py-4",children:e.total_revenue>0?(0,_h.jsxs)("span",{className:"inline-flex items-center gap-1 text-green-600 font-semibold",children:[(0,_h.jsx)(r6,{className:"h-3 w-3"}),null===(a=e.total_revenue)||void 0===a?void 0:a.toFixed(2)]}):(0,_h.jsx)("span",{className:"text-gray-400",children:"$0.00"})}),(0,_h.jsx)("td",{className:"px-6 py-4 text-sm text-gray-500",children:Ct(e.created_at)}),(0,_h.jsx)("td",{className:"px-6 py-4",children:(0,_h.jsxs)(RG,{size:"sm",variant:"outline",onClick:t=>{t.stopPropagation(),ft(e.id)},className:"h-8 text-xs",children:[(0,_h.jsx)(k3,{className:"h-3 w-3 mr-1"})," View"]})})]},e.id)})})}),n.length>10&&(0,_h.jsxs)("div",{className:"px-6 py-2 text-center text-sm text-gray-500 bg-gray-50",children:["+",n.length-10," more users. Use filters to narrow down."]})]})]},t)})}):(0,_h.jsxs)(_h.Fragment,{children:[(0,_h.jsxs)("div",{className:"overflow-x-auto",children:[(0,_h.jsxs)("table",{className:"w-full",children:[(0,_h.jsx)("thead",{className:"bg-gray-50",children:(0,_h.jsxs)("tr",{children:[(0,_h.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider cursor-pointer hover:bg-gray-100",onClick:()=>gt("name"),children:(0,_h.jsxs)("div",{className:"flex items-center gap-1",children:["User ",(0,_h.jsx)(Et,{field:"name"})]})}),(0,_h.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider cursor-pointer hover:bg-gray-100",onClick:()=>gt("subscription_type"),children:(0,_h.jsxs)("div",{className:"flex items-center gap-1",children:["Subscription ",(0,_h.jsx)(Et,{field:"subscription_type"})]})}),(0,_h.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider cursor-pointer hover:bg-gray-100",onClick:()=>gt("total_revenue"),children:(0,_h.jsxs)("div",{className:"flex items-center gap-1",children:["Revenue ",(0,_h.jsx)(Et,{field:"total_revenue"})]})}),(0,_h.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider cursor-pointer hover:bg-gray-100",onClick:()=>gt("upgraded_at"),children:(0,_h.jsxs)("div",{className:"flex items-center gap-1",children:["Upgraded ",(0,_h.jsx)(Et,{field:"upgraded_at"})]})}),(0,_h.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider cursor-pointer hover:bg-gray-100",onClick:()=>
2gt("churned_at"),children:(0,_h.jsxs)("div",{className:"flex items-center gap-1",children:["Cancelled ",(0,_h.jsx)(Et,{field:"churned_at"})]})}),(0,_h.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider cursor-pointer hover:bg-gray-100",onClick:()=>gt("created_at"),children:(0,_h.jsxs)("div",{className:"flex items-center gap-1",children:["Joined ",(0,_h.jsx)(Et,{field:"created_at"})]})}),(0,_h.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Actions"})]})}),(0,_h.jsx)("tbody",{className:"divide-y divide-gray-100",children:kt.map(e=>{var t,n,a;return(0,_h.jsxs)("tr",{className:"hover:bg-gray-50 cursor-pointer",onClick:()=>ft(e.id),children:[(0,_h.jsx)("td",{className:"px-6 py-4",children:(0,_h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,_h.jsx)("div",{className:"w-10 h-10 rounded-full bg-gradient-to-br from-purple-500 to-pink-500 flex items-center justify-center text-white font-semibold",children:(null===(t=e.name)||void 0===t||null===(n=t.charAt(0))||void 0===n?void 0:n.toUpperCase())||"U"}),(0,_h.jsxs)("div",{children:[(0,_h.jsx)("p",{className:"font-medium text-gray-900",children:e.name||"Unknown"}),(0,_h.jsx)("p",{className:"text-sm text-gray-500",children:e.email})]})]})}),(0,_h.jsx)("td",{className:"px-6 py-4",children:At(e)}),(0,_h.jsx)("td",{className:"px-6 py-4",children:e.total_revenue>0?(0,_h.jsxs)("span",{className:"inline-flex items-center gap-1 text-green-600 font-semibold",children:[(0,_h.jsx)(r6,{className:"h-3 w-3"}),null===(a=e.total_revenue)||void 0===a?void 0:a.toFixed(2)]}):(0,_h.jsx)("span",{className:"text-gray-400",children:"$0.00"})}),(0,_h.jsx)("td",{className:"px-6 py-4 text-sm text-gray-500",children:"pro"===e.account_type?Ct(e.upgraded_at):"-"}),(0,_h.jsx)("td",{className:"px-6 py-4 text-sm",children:e.churned_at?(0,_h.jsx)("span",{className:"text-red-600",children:Ct(e.churned_at)}):(0,_h.jsx)("span",{className:"text-gray-400",children:"-"})}),(0,_h.jsx)("td",{className:"px-6 py-4 text-sm text-gray-500",children:Ct(e.created_at)}),(0,_h.jsx)("td",{className:"px-6 py-4",children:(0,_h.jsxs)(RG,{size:"sm",variant:"outline",onClick:t=>{t.stopPropagation(),ft(e.id)},className:"h-8 text-xs",children:[(0,_h.jsx)(k3,{className:"h-3 w-3 mr-1"})," View User"]})})]},e.id)})})]}),0===kt.length&&(0,_h.jsxs)("div",{className:"p-12 text-center",children:[(0,_h.jsx)(eZ,{className:"h-12 w-12 mx-auto text-gray-300"}),(0,_h.jsx)("p",{className:"text-sm text-gray-500 mt-2",children:"No users found"})]})]}),bt>1&&(0,_h.jsxs)("div",{className:"px-6 py-4 border-t border-gray-100 flex items-center justify-between",children:[(0,_h.jsxs)("div",{className:"text-sm text-gray-500",children:["Showing ",(et-1)*nt+1," to ",Math.min(et*nt,_t.length)," of ",_t.length," users"]}),(0,_h.jsxs)("div",{className:"flex items-center gap-1",children:[(0,_h.jsxs)(RG,{variant:"outline",size:"sm",onClick:()=>tt(1),disabled:1===et,className:"h-8 w-8 p-0",children:[(0,_h.jsx)(GJ,{className:"h-4 w-4"}),(0,_h.jsx)(GJ,{className:"h-4 w-4 -ml-2"})]}),(0,_h.jsx)(RG,{variant:"outline",size:"sm",onClick:()=>tt(e=>Math.max(1,e-1)),disabled:1===et,className:"h-8 w-8 p-0",children:(0,_h.jsx)(GJ,{className:"h-4 w-4"})}),(()=>{const e=[];let t=Math.max(1,et-Math.floor(2.5)),n=Math.min(bt,t+5-1);n-t+1<5&&(t=Math.max(1,n-5+1));for(let a=t;a<=n;a++)e.push(a);return e})().map(e=>(0,_h.jsx)(RG,{variant:et===e?"default":"outline",size:"sm",onClick:()=>tt(e),className:"h-8 w-8 p-0 ".concat(et===e?"bg-purple-600 hover:bg-purple-700":""),children:e},e)),(0,_h.jsx)(RG,{variant:"outline",size:"sm",onClick:()=>tt(e=>Math.min(bt,e+1)),disabled:et===bt,className:"h-8 w-8 p-0",children:(0,_h.jsx)(WG,{className:"h-4 w-4"})}),(0,_h.jsxs)(RG,{variant:"outline",size:"sm",onClick:()=>tt(bt),disabled:et===bt,className:"h-8 w-8 p-0",children:[(0,_h.jsx)(WG,{className:"h-4 w-4"}),(0,_h.jsx)(WG,{className:"h-4 w-4 -ml-2"})]})]})]})]})]})]})]})},AAe=()=>{const{pathname:e}=Ce();return(0,o.useEffect)(()=>{window.scrollTo(0,0)},[e]),null},EAe=()=>(0,_h.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-background",children:(0,_h.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary"})}),jAe=e=>{let{children:t}=e;const{user:n,loading:a}=gY();return a?(0,_h.jsx)(EAe,{}):n?t:(0,_h.jsx)(Ke,{to:"/handler/sign-in",replace:!0})};function SAe(){const e=Ce();return(0,_h.jsx)(Wq,{app:vY,location:e.pathname,fullPage:!0})}function NAe(){return(0,_h.jsxs)(Je,{children:[(0,_h.jsx)(Ye,{path:"/handler/*",element:(0,_h.jsx)(SAe,{})}),(0,_h.jsx)(Ye,{path:"/",element:(0,_h.jsx)(gZ,{})}),(0,_h.jsx)(Ye,{path:"/auth",element:(0,_h.jsx)(gZ,{})}),(0,_h.jsx)(Ye,{path:"/dashboard",element:(0,_h.jsx)(jAe,{children:(0,_h.jsx)(hZ,{children:(0,_h.jsx)(k4,{})})})}),(0,_h.jsx)(Ye,{path:"/family",element:(0,_h.jsx)(jAe,{children:(0,_h.jsx)(hZ,{children:(0,_h.jsx)(i3,{})})})}),(0,_h.jsx)(Ye,{path:"/smartdaddy",element:(0,_h.jsx)(jAe,{children:(0,_h.jsx)(hZ,{children:(0,_h.jsx)(f3,{})})})}),(0,_h.jsx)(Ye,{path:"/settings",element:(0,_h.jsx)(jAe,{children:(0,_h.jsx)(hZ,{children:(0,_h.jsx)(P3,{})})})}),(0,_h.jsx)(Ye,{path:"/statistics",element:(0,_h.jsx)(jAe,{children:(0,_h.jsx)(hZ,{children:(0,_h.jsx)(L3,{})})})}),(0,_h.jsx)(Ye,{path:"/activities",element:(0,_h.jsx)(Ke,{to:"/family?tab=activities",replace:!0})}),(0,_h.jsx)(Ye,{path:"/events",element:(0,_h.jsx)(Ke,{to:"/family?tab=events",replace:!0})}),(0,_h.jsx)(Ye,{path:"/import",element:(0,_h.jsx)(Ke,{to:"/family?tab=import",replace:!0})}),(0,_h.jsx)(Ye,{path:"/summaries",element:(0,_h.jsx)(Ke,{to:"/smartdaddy",replace:!0})}),(0,_h.jsx)(Ye,{path:"/assistant",element:(0,_h.jsx)(Ke,{to:"/smartdaddy",replace:!0})}),(0,_h.jsx)(Ye,{path:"/privacy",element:(0,_h.jsx)(q3,{})}),(0,_h.jsx)(Ye,{path:"/terms",element:(0,_h.jsx)(H3,{})}),(0,_h.jsx)(Ye,{path:"/contact",element:(0,_h.jsx)(W3,{})}),(0,_h.jsx)(Ye,{path:"/pricing",element:(0,_h.jsx)(G3,{})}),(0,_h.jsx)(Ye,{path:"/admin",element:(0,_h.jsx)(jAe,{children:(0,_h.jsx)(DAe,{})})})]})}const PAe=function(){return(0,_h.jsx)(o.Suspense,{fallback:(0,_h.jsx)(EAe,{}),children:(0,_h.jsx)(St,{children:(0,_h.jsx)(Jq,{app:vY,children:(0,_h.jsx)(aH,{children:(0,_h.jsxs)(mY,{children:[(0,_h.jsx)(AAe,{}),(0,_h.jsx)(NAe,{}),(0,_h.jsx)(jH,{position:"top-right",richColors:!0,closeButton:!0})]})})})})})};s.createRoot(document.getElementById("root")).render((0,_h.jsx)(o.StrictMode,{children:(0,_h.jsx)(PAe,{})}))})()})();
3//# sourceMappingURL=main.8b6e43e8.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.