@ukpc-lib/react 0.16.3-dev.24 → 0.16.3-dev.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/FavoriteMenu/index.d.ts +4 -0
- package/dist/components/GlobalMenu/index.d.ts +5 -0
- package/dist/components/MenuTabs/index.d.ts +10 -0
- package/dist/components/Notification/Tabs/index.d.ts +1 -0
- package/dist/components/Topbar/icons/HamburgerIcon.d.ts +4 -0
- package/dist/components/Topbar/icons/SearchIcon.d.ts +7 -0
- package/dist/components/index.cjs +30 -18
- package/dist/components/index.js +2625 -2391
- package/dist/components/main.d.ts +1 -1
- package/dist/index.esm2017-3VZh0ET7.cjs +1078 -0
- package/dist/{index.esm2017-Caitdg72.js → index.esm2017-D50Frkuu.js} +13033 -12661
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +2 -2
- package/package.json +1 -1
- package/web-components-bundle/access-denied/index.js +2 -2
- package/web-components-bundle/base-breadcrumbs/index.js +1 -1
- package/web-components-bundle/favorite-menu/index.js +2 -2
- package/web-components-bundle/global-menu/index.js +4 -3
- package/web-components-bundle/global-topbar/index.js +2 -2
- package/web-components-bundle/has-permission/index.js +1 -1
- package/web-components-bundle/{index-Csm4KbjM.js → index-BoTC78z5.js} +24887 -24281
- package/web-components-bundle/{index-Dkof1OzO.js → index-pbpRN1TP.js} +5 -5
- package/dist/index.esm2017-Dd_pRw5E.cjs +0 -1078
|
@@ -0,0 +1,1078 @@
|
|
|
1
|
+
var EA=Object.defineProperty;var kA=(t,e,n)=>e in t?EA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var gh=(t,e,n)=>(kA(t,typeof e!="symbol"?e+"":e,n),n);var H7=require("./index.css");const de=require("react/jsx-runtime");require("@r2wc/react-to-web-component");const z=require("react"),_d=require("react-query"),DA=require("axios"),Pd=require("react-router-dom"),aa=require("@mui/material"),Lm=require("moment"),zv=require("react-dom");function _A(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}function PA(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const kn=_A(z);function Qo(t){"@babel/helpers - typeof";return Qo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qo(t)}function ns(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function OA(t,e){if(Qo(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Qo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function oT(t){var e=OA(t,"string");return Qo(e)=="symbol"?e:e+""}function m0(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,oT(r.key),r)}}function rs(t,e,n){return e&&m0(t.prototype,e),n&&m0(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Sl(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Qh(t,e){return Qh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Qh(t,e)}function Pp(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Qh(t,e)}function Yd(t,e){if(e&&(Qo(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sl(t)}function Ha(t){return Ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ha(t)}function Ua(t,e,n){return(e=oT(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sT(t){if(Array.isArray(t))return t}function RA(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function v0(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function aT(t,e){if(t){if(typeof t=="string")return v0(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v0(t,e):void 0}}function lT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IA(t){return sT(t)||RA(t)||aT(t)||lT()}function y0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function b0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?y0(Object(n),!0).forEach(function(r){Ua(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var AA={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,n){console&&console[e]&&console[e].apply(console,n)}},MA=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ns(this,t),this.init(e,n)}return rs(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||AA,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,i,o){return o&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(i).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new t(this.logger,b0(b0({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new t(this.logger,n)}}]),t}(),Na=new MA,vu=function(){function t(){ns(this,t),this.observers={}}return rs(t,[{key:"on",value:function(n,r){var i=this;return n.split(" ").forEach(function(o){i.observers[o]=i.observers[o]||[],i.observers[o].push(r)}),this}},{key:"off",value:function(n,r){if(this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(i){return i!==r})}}},{key:"emit",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(this.observers[n]){var a=[].concat(this.observers[n]);a.forEach(function(f){f.apply(void 0,i)})}if(this.observers["*"]){var c=[].concat(this.observers["*"]);c.forEach(function(f){f.apply(f,[n].concat(i))})}}}]),t}();function ed(){var t,e,n=new Promise(function(r,i){t=r,e=i});return n.resolve=t,n.reject=e,n}function w0(t){return t==null?"":""+t}function LA(t,e,n){t.forEach(function(r){e[r]&&(n[r]=e[r])})}function Yv(t,e,n){function r(c){return c&&c.indexOf("###")>-1?c.replace(/###/g,"."):c}function i(){return!t||typeof t=="string"}for(var o=typeof e!="string"?[].concat(e):e.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!t[a]&&n&&(t[a]=new n),Object.prototype.hasOwnProperty.call(t,a)?t=t[a]:t={}}return i()?{}:{obj:t,k:r(o.shift())}}function x0(t,e,n){var r=Yv(t,e,Object),i=r.obj,o=r.k;i[o]=n}function FA(t,e,n,r){var i=Yv(t,e,Object),o=i.obj,a=i.k;o[a]=o[a]||[],o[a].push(n)}function ep(t,e){var n=Yv(t,e),r=n.obj,i=n.k;if(r)return r[i]}function NA(t,e,n){var r=ep(t,n);return r!==void 0?r:ep(e,n)}function uT(t,e,n){for(var r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?typeof t[r]=="string"||t[r]instanceof String||typeof e[r]=="string"||e[r]instanceof String?n&&(t[r]=e[r]):uT(t[r],e[r],n):t[r]=e[r]);return t}function lf(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var jA={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function BA(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return jA[e]}):t}var Op=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,$A=[" ",",","?","!",";"];function VA(t,e,n){e=e||"",n=n||"";var r=$A.filter(function(c){return e.indexOf(c)<0&&n.indexOf(c)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(c){return c==="?"?"\\?":c}).join("|"),")")),o=!i.test(t);if(!o){var a=t.indexOf(n);a>0&&!i.test(t.substring(0,a))&&(o=!0)}return o}function tp(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var r=e.split(n),i=t,o=0;o<r.length;++o){if(!i||typeof i[r[o]]=="string"&&o+1<r.length)return;if(i[r[o]]===void 0){for(var a=2,c=r.slice(o,o+a).join(n),f=i[c];f===void 0&&r.length>o+a;)a++,c=r.slice(o,o+a).join(n),f=i[c];if(f===void 0)return;if(f===null)return null;if(e.endsWith(c)){if(typeof f=="string")return f;if(c&&typeof f[c]=="string")return f[c]}var p=r.slice(o+a).join(n);return p?tp(f,p,n):void 0}i=i[r[o]]}return i}}function S0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function mh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?S0(Object(n),!0).forEach(function(r){Ua(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):S0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function HA(t){var e=UA();return function(){var r=Ha(t),i;if(e){var o=Ha(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Yd(this,i)}}function UA(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var WA=function(t){Pp(n,t);var e=HA(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return ns(this,n),i=e.call(this),Op&&vu.call(Sl(i)),i.data=r||{},i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return rs(n,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,a){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},f=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,p=c.ignoreJSONStructure!==void 0?c.ignoreJSONStructure:this.options.ignoreJSONStructure,y=[i,o];a&&typeof a!="string"&&(y=y.concat(a)),a&&typeof a=="string"&&(y=y.concat(f?a.split(f):a)),i.indexOf(".")>-1&&(y=i.split("."));var m=ep(this.data,y);return m||!p||typeof a!="string"?m:tp(this.data&&this.data[i]&&this.data[i][o],a,f)}},{key:"addResource",value:function(i,o,a,c){var f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},p=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator,y=[i,o];a&&(y=y.concat(p?a.split(p):a)),i.indexOf(".")>-1&&(y=i.split("."),c=o,o=y[1]),this.addNamespaces(o),x0(this.data,y,c),f.silent||this.emit("added",i,o,a,c)}},{key:"addResources",value:function(i,o,a){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var f in a)(typeof a[f]=="string"||Object.prototype.toString.apply(a[f])==="[object Array]")&&this.addResource(i,o,f,a[f],{silent:!0});c.silent||this.emit("added",i,o,a)}},{key:"addResourceBundle",value:function(i,o,a,c,f){var p=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},y=[i,o];i.indexOf(".")>-1&&(y=i.split("."),c=a,a=o,o=y[1]),this.addNamespaces(o);var m=ep(this.data,y)||{};c?uT(m,a,f):m=mh(mh({},m),a),x0(this.data,y,m),p.silent||this.emit("added",i,o,a)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?mh(mh({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),a=o&&Object.keys(o)||[];return!!a.find(function(c){return o[c]&&Object.keys(o[c]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(vu),cT={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,n,r,i,o){var a=this;return e.forEach(function(c){a.processors[c]&&(n=a.processors[c].process(n,r,i,o))}),n}};function T0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Fi(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?T0(Object(n),!0).forEach(function(r){Ua(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):T0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function zA(t){var e=YA();return function(){var r=Ha(t),i;if(e){var o=Ha(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Yd(this,i)}}function YA(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var C0={},E0=function(t){Pp(n,t);var e=zA(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ns(this,n),i=e.call(this),Op&&vu.call(Sl(i)),LA(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,Sl(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=Na.create("translator"),i}return rs(n,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var a=this.resolve(i,o);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(i,o){var a=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var c=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,f=o.ns||this.options.defaultNS||[],p=a&&i.indexOf(a)>-1,y=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!VA(i,a,c);if(p&&!y){var m=i.match(this.interpolator.nestingRegexp);if(m&&m.length>0)return{key:i,namespaces:f};var T=i.split(a);(a!==c||a===c&&this.options.ns.indexOf(T[0])>-1)&&(f=T.shift()),i=T.join(c)}return typeof f=="string"&&(f=[f]),{key:i,namespaces:f}}},{key:"translate",value:function(i,o,a){var c=this;if(Qo(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),Qo(o)==="object"&&(o=Fi({},o)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var f=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,p=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,y=this.extractFromKey(i[i.length-1],o),m=y.key,T=y.namespaces,E=T[T.length-1],I=o.lng||this.language,A=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(I&&I.toLowerCase()==="cimode"){if(A){var F=o.nsSeparator||this.options.nsSeparator;return f?{res:"".concat(E).concat(F).concat(m),usedKey:m,exactUsedKey:m,usedLng:I,usedNS:E}:"".concat(E).concat(F).concat(m)}return f?{res:m,usedKey:m,exactUsedKey:m,usedLng:I,usedNS:E}:m}var R=this.resolve(i,o),U=R&&R.res,H=R&&R.usedKey||m,ne=R&&R.exactUsedKey||m,Z=Object.prototype.toString.apply(U),ce=["[object Number]","[object Function]","[object RegExp]"],S=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,re=!this.i18nFormat||this.i18nFormat.handleAsObject,ie=typeof U!="string"&&typeof U!="boolean"&&typeof U!="number";if(re&&U&&ie&&ce.indexOf(Z)<0&&!(typeof S=="string"&&Z==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var Pe=this.options.returnedObjectHandler?this.options.returnedObjectHandler(H,U,Fi(Fi({},o),{},{ns:T})):"key '".concat(m," (").concat(this.language,")' returned an object instead of string.");return f?(R.res=Pe,R):Pe}if(p){var Ke=Z==="[object Array]",$e=Ke?[]:{},tt=Ke?ne:H;for(var nt in U)if(Object.prototype.hasOwnProperty.call(U,nt)){var ge="".concat(tt).concat(p).concat(nt);$e[nt]=this.translate(ge,Fi(Fi({},o),{joinArrays:!1,ns:T})),$e[nt]===ge&&($e[nt]=U[nt])}U=$e}}else if(re&&typeof S=="string"&&Z==="[object Array]")U=U.join(S),U&&(U=this.extendTranslation(U,i,o,a));else{var _e=!1,Re=!1,Ae=o.count!==void 0&&typeof o.count!="string",et=n.hasDefaultValue(o),ye=Ae?this.pluralResolver.getSuffix(I,o.count,o):"",ue=o["defaultValue".concat(ye)]||o.defaultValue;!this.isValidLookup(U)&&et&&(_e=!0,U=ue),this.isValidLookup(U)||(Re=!0,U=m);var De=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,je=De&&Re?void 0:U,Ie=et&&ue!==U&&this.options.updateMissing;if(Re||_e||Ie){if(this.logger.log(Ie?"updateKey":"missingKey",I,E,m,Ie?ue:U),p){var Be=this.resolve(m,Fi(Fi({},o),{},{keySeparator:!1}));Be&&Be.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var Ue=[],it=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&it&&it[0])for(var rt=0;rt<it.length;rt++)Ue.push(it[rt]);else this.options.saveMissingTo==="all"?Ue=this.languageUtils.toResolveHierarchy(o.lng||this.language):Ue.push(o.lng||this.language);var st=function(ft,Xe,It){var Mt=et&&It!==U?It:je;c.options.missingKeyHandler?c.options.missingKeyHandler(ft,E,Xe,Mt,Ie,o):c.backendConnector&&c.backendConnector.saveMissing&&c.backendConnector.saveMissing(ft,E,Xe,Mt,Ie,o),c.emit("missingKey",ft,E,Xe,U)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Ae?Ue.forEach(function(Qe){c.pluralResolver.getSuffixes(Qe,o).forEach(function(ft){st([Qe],m+ft,o["defaultValue".concat(ft)]||ue)})}):st(Ue,m,ue))}U=this.extendTranslation(U,i,o,R,a),Re&&U===m&&this.options.appendNamespaceToMissingKey&&(U="".concat(E,":").concat(m)),(Re||_e)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?U=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(E,":").concat(m):m,_e?U:void 0):U=this.options.parseMissingKeyHandler(U))}return f?(R.res=U,R):U}},{key:"extendTranslation",value:function(i,o,a,c,f){var p=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,Fi(Fi({},this.options.interpolation.defaultVariables),a),c.usedLng,c.usedNS,c.usedKey,{resolved:c});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init(Fi(Fi({},a),{interpolation:Fi(Fi({},this.options.interpolation),a.interpolation)}));var y=typeof i=="string"&&(a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),m;if(y){var T=i.match(this.interpolator.nestingRegexp);m=T&&T.length}var E=a.replace&&typeof a.replace!="string"?a.replace:a;if(this.options.interpolation.defaultVariables&&(E=Fi(Fi({},this.options.interpolation.defaultVariables),E)),i=this.interpolator.interpolate(i,E,a.lng||this.language,a),y){var I=i.match(this.interpolator.nestingRegexp),A=I&&I.length;m<A&&(a.nest=!1)}!a.lng&&this.options.compatibilityAPI!=="v1"&&c&&c.res&&(a.lng=c.usedLng),a.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var U=arguments.length,H=new Array(U),ne=0;ne<U;ne++)H[ne]=arguments[ne];return f&&f[0]===H[0]&&!a.context?(p.logger.warn("It seems you are nesting recursively key: ".concat(H[0]," in key: ").concat(o[0])),null):p.translate.apply(p,H.concat([o]))},a)),a.interpolation&&this.interpolator.reset()}var F=a.postProcess||this.options.postProcess,R=typeof F=="string"?[F]:F;return i!=null&&R&&R.length&&a.applyPostProcessor!==!1&&(i=cT.handle(R,i,o,this.options&&this.options.postProcessPassResolved?Fi({i18nResolved:c},a):a,this)),i}},{key:"resolve",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c,f,p,y,m;return typeof i=="string"&&(i=[i]),i.forEach(function(T){if(!o.isValidLookup(c)){var E=o.extractFromKey(T,a),I=E.key;f=I;var A=E.namespaces;o.options.fallbackNS&&(A=A.concat(o.options.fallbackNS));var F=a.count!==void 0&&typeof a.count!="string",R=F&&!a.ordinal&&a.count===0&&o.pluralResolver.shouldUseIntlApi(),U=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",H=a.lngs?a.lngs:o.languageUtils.toResolveHierarchy(a.lng||o.language,a.fallbackLng);A.forEach(function(ne){o.isValidLookup(c)||(m=ne,!C0["".concat(H[0],"-").concat(ne)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(m)&&(C0["".concat(H[0],"-").concat(ne)]=!0,o.logger.warn('key "'.concat(f,'" for languages "').concat(H.join(", "),`" won't get resolved as namespace "`).concat(m,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),H.forEach(function(Z){if(!o.isValidLookup(c)){y=Z;var ce=[I];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(ce,I,Z,ne,a);else{var S;F&&(S=o.pluralResolver.getSuffix(Z,a.count,a));var re="".concat(o.options.pluralSeparator,"zero");if(F&&(ce.push(I+S),R&&ce.push(I+re)),U){var ie="".concat(I).concat(o.options.contextSeparator).concat(a.context);ce.push(ie),F&&(ce.push(ie+S),R&&ce.push(ie+re))}}for(var Pe;Pe=ce.pop();)o.isValidLookup(c)||(p=Pe,c=o.getResource(Z,ne,Pe,a))}}))})}}),{res:c,usedKey:f,exactUsedKey:p,usedLng:y,usedNS:m}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,a){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,a,c):this.resourceStore.getResource(i,o,a,c)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a)&&o===a.substring(0,o.length)&&i[a]!==void 0)return!0;return!1}}]),n}(vu);function Pg(t){return t.charAt(0).toUpperCase()+t.slice(1)}var k0=function(){function t(e){ns(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Na.create("languageUtils")}return rs(t,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],i=n.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=Pg(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=Pg(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=Pg(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var i;return n.forEach(function(o){if(!i){var a=r.formatLanguageCode(o);(!r.options.supportedLngs||r.isSupportedCode(a))&&(i=a)}}),!i&&this.options.supportedLngs&&n.forEach(function(o){if(!i){var a=r.getLanguagePartFromCode(o);if(r.isSupportedCode(a))return i=a;i=r.options.supportedLngs.find(function(c){if(c===a)return c;if(!(c.indexOf("-")<0&&a.indexOf("-")<0)&&c.indexOf(a)===0)return c})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var i=n[r];return i||(i=n[this.getScriptPartFromCode(r)]),i||(i=n[this.formatLanguageCode(r)]),i||(i=n[this.getLanguagePartFromCode(r)]),i||(i=n.default),i||[]}},{key:"toResolveHierarchy",value:function(n,r){var i=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],n),a=[],c=function(p){p&&(i.isSupportedCode(p)?a.push(p):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(p)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&c(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&c(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&c(this.getLanguagePartFromCode(n))):typeof n=="string"&&c(this.formatLanguageCode(n)),o.forEach(function(f){a.indexOf(f)<0&&c(i.formatLanguageCode(f))}),a}}]),t}(),GA=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],qA={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}},XA=["v1","v2","v3"],D0={zero:0,one:1,two:2,few:3,many:4,other:5};function KA(){var t={};return GA.forEach(function(e){e.lngs.forEach(function(n){t[n]={numbers:e.nr,plurals:qA[e.fc]}})}),t}var ZA=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ns(this,t),this.languageUtils=e,this.options=n,this.logger=Na.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=KA()}return rs(t,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,r);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,i).map(function(o){return"".concat(r).concat(o)})}},{key:"getSuffixes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(a,c){return D0[a]-D0[c]}).map(function(a){return"".concat(r.options.prepend).concat(a)}):o.numbers.map(function(a){return r.getSuffix(n,a,i)}):[]}},{key:"getSuffix",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(r)):this.getSuffixRetroCompatible(o,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var i=this,o=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),a=n.numbers[o];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var c=function(){return i.options.prepend&&a.toString()?i.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):c():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?c():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!XA.includes(this.options.compatibilityJSON)}}]),t}();function _0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function oa(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?_0(Object(n),!0).forEach(function(r){Ua(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function P0(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=NA(t,e,n);return!o&&i&&typeof n=="string"&&(o=tp(t,n,r),o===void 0&&(o=tp(e,n,r))),o}var JA=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ns(this,t),this.logger=Na.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(n){return n},this.init(e)}return rs(t,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:BA,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?lf(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?lf(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?lf(r.nestingPrefix):r.nestingPrefixEscaped||lf("$t("),this.nestingSuffix=r.nestingSuffix?lf(r.nestingSuffix):r.nestingSuffixEscaped||lf(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(n,r,i,o){var a=this,c,f,p,y=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function m(F){return F.replace(/\$/g,"$$$$")}var T=function(R){if(R.indexOf(a.formatSeparator)<0){var U=P0(r,y,R,a.options.keySeparator,a.options.ignoreJSONStructure);return a.alwaysFormat?a.format(U,void 0,i,oa(oa(oa({},o),r),{},{interpolationkey:R})):U}var H=R.split(a.formatSeparator),ne=H.shift().trim(),Z=H.join(a.formatSeparator).trim();return a.format(P0(r,y,ne,a.options.keySeparator,a.options.ignoreJSONStructure),Z,i,oa(oa(oa({},o),r),{},{interpolationkey:ne}))};this.resetRegExp();var E=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,I=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,A=[{regex:this.regexpUnescape,safeValue:function(R){return m(R)}},{regex:this.regexp,safeValue:function(R){return a.escapeValue?m(a.escape(R)):m(R)}}];return A.forEach(function(F){for(p=0;c=F.regex.exec(n);){var R=c[1].trim();if(f=T(R),f===void 0)if(typeof E=="function"){var U=E(n,c,o);f=typeof U=="string"?U:""}else if(o&&Object.prototype.hasOwnProperty.call(o,R))f="";else if(I){f=c[0];continue}else a.logger.warn("missed to pass in variable ".concat(R," for interpolating ").concat(n)),f="";else typeof f!="string"&&!a.useRawValueToEscape&&(f=w0(f));var H=F.safeValue(f);if(n=n.replace(c[0],H),I?(F.regex.lastIndex+=f.length,F.regex.lastIndex-=c[0].length):F.regex.lastIndex=0,p++,p>=a.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,c,f;function p(E,I){var A=this.nestingOptionsSeparator;if(E.indexOf(A)<0)return E;var F=E.split(new RegExp("".concat(A,"[ ]*{"))),R="{".concat(F[1]);E=F[0],R=this.interpolate(R,f);var U=R.match(/'/g),H=R.match(/"/g);(U&&U.length%2===0&&!H||H.length%2!==0)&&(R=R.replace(/'/g,'"'));try{f=JSON.parse(R),I&&(f=oa(oa({},I),f))}catch(ne){return this.logger.warn("failed parsing options string in nesting for key ".concat(E),ne),"".concat(E).concat(A).concat(R)}return delete f.defaultValue,E}for(;a=this.nestingRegexp.exec(n);){var y=[];f=oa({},o),f=f.replace&&typeof f.replace!="string"?f.replace:f,f.applyPostProcessor=!1,delete f.defaultValue;var m=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var T=a[1].split(this.formatSeparator).map(function(E){return E.trim()});a[1]=T.shift(),y=T,m=!0}if(c=r(p.call(this,a[1].trim(),f),f),c&&a[0]===n&&typeof c!="string")return c;typeof c!="string"&&(c=w0(c)),c||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(n)),c=""),m&&(c=y.reduce(function(E,I){return i.format(E,I,o.lng,oa(oa({},o),{},{interpolationkey:a[1].trim()}))},c.trim())),n=n.replace(a[0],c),this.regexp.lastIndex=0}return n}}]),t}();function O0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function vl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?O0(Object(n),!0).forEach(function(r){Ua(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):O0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function QA(t){var e=t.toLowerCase().trim(),n={};if(t.indexOf("(")>-1){var r=t.split("(");e=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);if(e==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(e==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var o=i.split(";");o.forEach(function(a){if(a){var c=a.split(":"),f=IA(c),p=f[0],y=f.slice(1),m=y.join(":").trim().replace(/^'+|'+$/g,"");n[p.trim()]||(n[p.trim()]=m),m==="false"&&(n[p.trim()]=!1),m==="true"&&(n[p.trim()]=!0),isNaN(m)||(n[p.trim()]=parseInt(m,10))}})}}return{formatName:e,formatOptions:n}}function uf(t){var e={};return function(r,i,o){var a=i+JSON.stringify(o),c=e[a];return c||(c=t(i,o),e[a]=c),c(r)}}var eM=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ns(this,t),this.logger=Na.create("formatter"),this.options=e,this.formats={number:uf(function(n,r){var i=new Intl.NumberFormat(n,vl({},r));return function(o){return i.format(o)}}),currency:uf(function(n,r){var i=new Intl.NumberFormat(n,vl(vl({},r),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:uf(function(n,r){var i=new Intl.DateTimeFormat(n,vl({},r));return function(o){return i.format(o)}}),relativetime:uf(function(n,r){var i=new Intl.RelativeTimeFormat(n,vl({},r));return function(o){return i.format(o,r.range||"day")}}),list:uf(function(n,r){var i=new Intl.ListFormat(n,vl({},r));return function(o){return i.format(o)}})},this.init(e)}return rs(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=r.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=uf(r)}},{key:"format",value:function(n,r,i){var o=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},c=r.split(this.formatSeparator),f=c.reduce(function(p,y){var m=QA(y),T=m.formatName,E=m.formatOptions;if(o.formats[T]){var I=p;try{var A=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},F=A.locale||A.lng||a.locale||a.lng||i;I=o.formats[T](p,F,vl(vl(vl({},E),a),A))}catch(R){o.logger.warn(R)}return I}else o.logger.warn("there was no format function for ".concat(T));return p},n);return f}}]),t}();function R0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function I0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?R0(Object(n),!0).forEach(function(r){Ua(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):R0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function tM(t){var e=nM();return function(){var r=Ha(t),i;if(e){var o=Ha(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Yd(this,i)}}function nM(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rM(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}var iM=function(t){Pp(n,t);var e=tM(n);function n(r,i,o){var a,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return ns(this,n),a=e.call(this),Op&&vu.call(Sl(a)),a.backend=r,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=c,a.logger=Na.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=c.maxParallelReads||10,a.readingCalls=0,a.maxRetries=c.maxRetries>=0?c.maxRetries:5,a.retryTimeout=c.retryTimeout>=1?c.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,c.backend,c),a}return rs(n,[{key:"queueLoad",value:function(i,o,a,c){var f=this,p={},y={},m={},T={};return i.forEach(function(E){var I=!0;o.forEach(function(A){var F="".concat(E,"|").concat(A);!a.reload&&f.store.hasResourceBundle(E,A)?f.state[F]=2:f.state[F]<0||(f.state[F]===1?y[F]===void 0&&(y[F]=!0):(f.state[F]=1,I=!1,y[F]===void 0&&(y[F]=!0),p[F]===void 0&&(p[F]=!0),T[A]===void 0&&(T[A]=!0)))}),I||(m[E]=!0)}),(Object.keys(p).length||Object.keys(y).length)&&this.queue.push({pending:y,pendingCount:Object.keys(y).length,loaded:{},errors:[],callback:c}),{toLoad:Object.keys(p),pending:Object.keys(y),toLoadLanguages:Object.keys(m),toLoadNamespaces:Object.keys(T)}}},{key:"loaded",value:function(i,o,a){var c=i.split("|"),f=c[0],p=c[1];o&&this.emit("failedLoading",f,p,o),a&&this.store.addResourceBundle(f,p,a),this.state[i]=o?-1:2;var y={};this.queue.forEach(function(m){FA(m.loaded,[f],p),rM(m,i),o&&m.errors.push(o),m.pendingCount===0&&!m.done&&(Object.keys(m.loaded).forEach(function(T){y[T]||(y[T]={});var E=m.loaded[T];E.length&&E.forEach(function(I){y[T][I]===void 0&&(y[T][I]=!0)})}),m.done=!0,m.errors.length?m.callback(m.errors):m.callback())}),this.emit("loaded",y),this.queue=this.queue.filter(function(m){return!m.done})}},{key:"read",value:function(i,o,a){var c=this,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,y=arguments.length>5?arguments[5]:void 0;if(!i.length)return y(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:a,tried:f,wait:p,callback:y});return}this.readingCalls++;var m=function(A,F){if(c.readingCalls--,c.waitingReads.length>0){var R=c.waitingReads.shift();c.read(R.lng,R.ns,R.fcName,R.tried,R.wait,R.callback)}if(A&&F&&f<c.maxRetries){setTimeout(function(){c.read.call(c,i,o,a,f+1,p*2,y)},p);return}y(A,F)},T=this.backend[a].bind(this.backend);if(T.length===2){try{var E=T(i,o);E&&typeof E.then=="function"?E.then(function(I){return m(null,I)}).catch(m):m(null,E)}catch(I){m(I)}return}return T(i,o,m)}},{key:"prepareLoading",value:function(i,o){var a=this,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),f&&f();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var p=this.queueLoad(i,o,c,f);if(!p.toLoad.length)return p.pending.length||f(),null;p.toLoad.forEach(function(y){a.loadOne(y)})}},{key:"load",value:function(i,o,a){this.prepareLoading(i,o,{},a)}},{key:"reload",value:function(i,o,a){this.prepareLoading(i,o,{reload:!0},a)}},{key:"loadOne",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",c=i.split("|"),f=c[0],p=c[1];this.read(f,p,"read",void 0,void 0,function(y,m){y&&o.logger.warn("".concat(a,"loading namespace ").concat(p," for language ").concat(f," failed"),y),!y&&m&&o.logger.log("".concat(a,"loaded namespace ").concat(p," for language ").concat(f),m),o.loaded(i,y,m)})}},{key:"saveMissing",value:function(i,o,a,c,f){var p=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},y=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend&&this.backend.create){var m=I0(I0({},p),{},{isUpdate:f}),T=this.backend.create.bind(this.backend);if(T.length<6)try{var E;T.length===5?E=T(i,o,a,c,m):E=T(i,o,a,c),E&&typeof E.then=="function"?E.then(function(I){return y(null,I)}).catch(y):y(null,E)}catch(I){y(I)}else T(i,o,a,c,y,m)}!i||!i[0]||this.store.addResource(i[0],o,a,c)}}}]),n}(vu);function A0(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var n={};if(Qo(e[1])==="object"&&(n=e[1]),typeof e[1]=="string"&&(n.defaultValue=e[1]),typeof e[2]=="string"&&(n.tDescription=e[2]),Qo(e[2])==="object"||Qo(e[3])==="object"){var r=e[3]||e[2];Object.keys(r).forEach(function(i){n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:function(e,n,r,i){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function M0(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function L0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ma(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?L0(Object(n),!0).forEach(function(r){Ua(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):L0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function oM(t){var e=sM();return function(){var r=Ha(t),i;if(e){var o=Ha(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Yd(this,i)}}function sM(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vh(){}function aM(t){var e=Object.getOwnPropertyNames(Object.getPrototypeOf(t));e.forEach(function(n){typeof t[n]=="function"&&(t[n]=t[n].bind(t))})}var np=function(t){Pp(n,t);var e=oM(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(ns(this,n),r=e.call(this),Op&&vu.call(Sl(r)),r.options=M0(i),r.services={},r.logger=Na,r.modules={external:[]},aM(Sl(r)),o&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,o),Yd(r,Sl(r));setTimeout(function(){r.init(i,o)},0)}return r}return rs(n,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(a=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var c=A0();this.options=Ma(Ma(Ma({},c),this.options),M0(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Ma(Ma({},c.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function f(R){return R?typeof R=="function"?new R:R:null}if(!this.options.isClone){this.modules.logger?Na.init(f(this.modules.logger),this.options):Na.init(null,this.options);var p;this.modules.formatter?p=this.modules.formatter:typeof Intl<"u"&&(p=eM);var y=new k0(this.options);this.store=new WA(this.options.resources,this.options);var m=this.services;m.logger=Na,m.resourceStore=this.store,m.languageUtils=y,m.pluralResolver=new ZA(y,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),p&&(!this.options.interpolation.format||this.options.interpolation.format===c.interpolation.format)&&(m.formatter=f(p),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new JA(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new iM(f(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(R){for(var U=arguments.length,H=new Array(U>1?U-1:0),ne=1;ne<U;ne++)H[ne-1]=arguments[ne];i.emit.apply(i,[R].concat(H))}),this.modules.languageDetector&&(m.languageDetector=f(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=f(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new E0(this.services,this.options),this.translator.on("*",function(R){for(var U=arguments.length,H=new Array(U>1?U-1:0),ne=1;ne<U;ne++)H[ne-1]=arguments[ne];i.emit.apply(i,[R].concat(H))}),this.modules.external.forEach(function(R){R.init&&R.init(i)})}if(this.format=this.options.interpolation.format,a||(a=vh),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var T=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);T.length>0&&T[0]!=="dev"&&(this.options.lng=T[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var E=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];E.forEach(function(R){i[R]=function(){var U;return(U=i.store)[R].apply(U,arguments)}});var I=["addResource","addResources","addResourceBundle","removeResourceBundle"];I.forEach(function(R){i[R]=function(){var U;return(U=i.store)[R].apply(U,arguments),i}});var A=ed(),F=function(){var U=function(ne,Z){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),A.resolve(Z),a(ne,Z)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return U(null,i.t.bind(i));i.changeLanguage(i.options.lng,U)};return this.options.resources||!this.options.initImmediate?F():setTimeout(F,0),A}},{key:"loadResources",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vh,c=a,f=typeof i=="string"?i:this.language;if(typeof i=="function"&&(c=i),!this.options.resources||this.options.partialBundledLanguages){if(f&&f.toLowerCase()==="cimode")return c();var p=[],y=function(E){if(E){var I=o.services.languageUtils.toResolveHierarchy(E);I.forEach(function(A){p.indexOf(A)<0&&p.push(A)})}};if(f)y(f);else{var m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.forEach(function(T){return y(T)})}this.options.preload&&this.options.preload.forEach(function(T){return y(T)}),this.services.backendConnector.load(p,this.options.ns,function(T){!T&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),c(T)})}else c(null)}},{key:"reloadResources",value:function(i,o,a){var c=ed();return i||(i=this.languages),o||(o=this.options.ns),a||(a=vh),this.services.backendConnector.reload(i,o,function(f){c.resolve(),a(f)}),c}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&cT.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o<this.languages.length;o++){var a=this.languages[o];if(!(["cimode","dev"].indexOf(a)>-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}},{key:"changeLanguage",value:function(i,o){var a=this;this.isLanguageChangingTo=i;var c=ed();this.emit("languageChanging",i);var f=function(T){a.language=T,a.languages=a.services.languageUtils.toResolveHierarchy(T),a.resolvedLanguage=void 0,a.setResolvedLanguage(T)},p=function(T,E){E?(f(E),a.translator.changeLanguage(E),a.isLanguageChangingTo=void 0,a.emit("languageChanged",E),a.logger.log("languageChanged",E)):a.isLanguageChangingTo=void 0,c.resolve(function(){return a.t.apply(a,arguments)}),o&&o(T,function(){return a.t.apply(a,arguments)})},y=function(T){!i&&!T&&a.services.languageDetector&&(T=[]);var E=typeof T=="string"?T:a.services.languageUtils.getBestMatchFromCodes(T);E&&(a.language||f(E),a.translator.language||a.translator.changeLanguage(E),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage&&a.services.languageDetector.cacheUserLanguage(E)),a.loadResources(E,function(I){p(I,E)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?y(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(y):this.services.languageDetector.detect(y):y(i),c}},{key:"getFixedT",value:function(i,o,a){var c=this,f=function p(y,m){var T;if(Qo(m)!=="object"){for(var E=arguments.length,I=new Array(E>2?E-2:0),A=2;A<E;A++)I[A-2]=arguments[A];T=c.options.overloadTranslationOptionHandler([y,m].concat(I))}else T=Ma({},m);T.lng=T.lng||p.lng,T.lngs=T.lngs||p.lngs,T.ns=T.ns||p.ns,T.keyPrefix=T.keyPrefix||a||p.keyPrefix;var F=c.options.keySeparator||".",R;return T.keyPrefix&&Array.isArray(y)?R=y.map(function(U){return"".concat(T.keyPrefix).concat(F).concat(U)}):R=T.keyPrefix?"".concat(T.keyPrefix).concat(F).concat(y):y,c.t(R,T)};return typeof i=="string"?f.lng=i:f.lngs=i,f.ns=o,f.keyPrefix=a,f}},{key:"t",value:function(){var i;return this.translator&&(i=this.translator).translate.apply(i,arguments)}},{key:"exists",value:function(){var i;return this.translator&&(i=this.translator).exists.apply(i,arguments)}},{key:"setDefaultNamespace",value:function(i){this.options.defaultNS=i}},{key:"hasLoadedNamespace",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var c=a.lng||this.resolvedLanguage||this.languages[0],f=this.options?this.options.fallbackLng:!1,p=this.languages[this.languages.length-1];if(c.toLowerCase()==="cimode")return!0;var y=function(E,I){var A=o.services.backendConnector.state["".concat(E,"|").concat(I)];return A===-1||A===2};if(a.precheck){var m=a.precheck(this,y);if(m!==void 0)return m}return!!(this.hasResourceBundle(c,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||y(c,i)&&(!f||y(p,i)))}},{key:"loadNamespaces",value:function(i,o){var a=this,c=ed();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(f){a.options.ns.indexOf(f)<0&&a.options.ns.push(f)}),this.loadResources(function(f){c.resolve(),o&&o(f)}),c):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var a=ed();typeof i=="string"&&(i=[i]);var c=this.options.preload||[],f=i.filter(function(p){return c.indexOf(p)<0});return f.length?(this.options.preload=c.concat(f),this.loadResources(function(p){a.resolve(),o&&o(p)}),a):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services&&this.services.languageUtils||new k0(A0());return o.indexOf(a.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vh,c=Ma(Ma(Ma({},this.options),o),{isClone:!0}),f=new n(c);(o.debug!==void 0||o.prefix!==void 0)&&(f.logger=f.logger.clone(o));var p=["store","services","language"];return p.forEach(function(y){f[y]=i[y]}),f.services=Ma({},this.services),f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f.translator=new E0(f.services,f.options),f.translator.on("*",function(y){for(var m=arguments.length,T=new Array(m>1?m-1:0),E=1;E<m;E++)T[E-1]=arguments[E];f.emit.apply(f,[y].concat(T))}),f.init(c,a),f.translator.options=f.options,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(vu);Ua(np,"createInstance",function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new np(t,e)});var _r=np.createInstance();_r.createInstance=np.createInstance;_r.createInstance;_r.dir;_r.init;_r.loadResources;_r.reloadResources;_r.use;_r.changeLanguage;_r.getFixedT;var fT=_r.t;_r.exists;_r.setDefaultNamespace;_r.hasLoadedNamespace;_r.loadNamespaces;_r.loadLanguages;const dT={TOKEN_MALFORMED:"token_malformed",TOKEN_EXPIRED:"token_expired"},hT=t=>{window.location.href=`${t}/authentication/login`},pT=t=>{window.location.href=`${t}/authentication/logout`},As=DA.create({withCredentials:!0});let Og=!1,Fm=[];const F0=t=>{Fm.forEach(e=>{t?e.reject(t):e.resolve()}),Fm=[]};function lM(t){try{const e=t==null?void 0:t.url,n=(t==null?void 0:t.baseURL)||window.location.origin,i=new URL(e,n).pathname.split("/").filter(Boolean);return i.length<=3?`/${i.join("/")}`||"/":`/${i[0]}/.../${i[i.length-1]}`}catch{return(t==null?void 0:t.url)||""}}function uM(t,e){var a,c,f,p,y,m,T,E;const n=(a=t.response)==null?void 0:a.status,r=(c=e==null?void 0:e.method)==null?void 0:c.toUpperCase(),i=lM(e),o=((p=(f=t.response)==null?void 0:f.data)==null?void 0:p.errorMessage)||((m=(y=t.response)==null?void 0:y.data)==null?void 0:m.message)||((E=(T=t.response)==null?void 0:T.data)==null?void 0:E.title)||t.message||"Unexpected error";if(typeof n=="number"&&n>=500){const I=[n?`HTTP ${n}`:null,r,i].filter(Boolean);return`${I.join(" ")}${I.length?" - ":""}${o}`}return`${o}`}function gT(t,e){var o,a,c,f,p,y,m,T,E;const n=t.config,r=((a=(o=t.response)==null?void 0:o.data)==null?void 0:a.errorMessage)||((f=(c=t.response)==null?void 0:c.data)==null?void 0:f.message),i=r===dT.TOKEN_EXPIRED;if(((p=t.response)==null?void 0:p.status)===401&&i&&!n._retry)return Og?new Promise((I,A)=>{Fm.push({resolve:I,reject:A})}).then(()=>As(n)).catch(I=>Promise.reject(I)):(n._retry=!0,Og=!0,As.post("/authentication/api/v1/auth/refresh-token",void 0,{baseURL:window.env.AUTHEN_DOMAIN}).then(()=>(F0(null),As(n))).catch(I=>(F0(I),Promise.reject(I))).finally(()=>{Og=!1}));if(((y=t.response)==null?void 0:y.status)===401&&!i){if(window.self!==window.top&&window.top){console.log("401 - IFRAME");const I=`${window.env.AUTHEN_DOMAIN||window.top.origin}/authentication/login`;window.top.location.href=I;return}return hT(window.env.AUTHEN_DOMAIN)}if(((m=t.response)==null?void 0:m.status)===403||(t==null?void 0:t.httpStatus)===403)(T=e==null?void 0:e.handle403)==null||T.call(e,t);else{const I=uM(t,n);!(e!=null&&e.disabledPushNotify)&&Gd(fT(`${I}`)),(E=e==null?void 0:e.handleOtherError)==null||E.call(e,t)}return r&&t.response&&t.response.data&&(t.response.data.message=r),Promise.reject(t)}const cM=As.interceptors.response.use(t=>t,async t=>gT(t)),fM=t=>{const e=_d.useQueryClient(),n=z.useMemo(()=>t.axiosInstance||As,[t.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(t.baseUrl).origin;const r=_d.useQuery({queryKey:["user"],refetchOnWindowFocus:!1,retry:!1,queryFn:()=>n.get(t.baseUrl+"/user-management/api/v1/users/my-account").then(i=>(window.user=i.data,i.data))});return z.useEffect(()=>{window.onpageshow=function(i){i.persisted&&e.invalidateQueries(["user"])}},[e]),r},mT=t=>{const e=_d.useQueryClient(),n=z.useMemo(()=>t.axiosInstance||As,[t.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(t.baseUrl).origin;const r=_d.useQuery({queryKey:["user-permissions"],refetchOnWindowFocus:!1,retry:!1,queryFn:()=>n.get(t.baseUrl+"/user-management/api/v1/users/my-account/permissions").then(i=>i.data)});return z.useEffect(()=>{window.onpageshow=function(i){i.persisted&&e.invalidateQueries(["user-permissions"])}},[e]),r},Gv=z.createContext({}),dM=t=>{const{children:e,baseUrl:n,axiosInstance:r}=t,i=new URL(n).origin,o=fM({axiosInstance:r,baseUrl:n}),a=mT({axiosInstance:r,baseUrl:n});function c(){window.location.href=`${i}/authentication/login`}function f(){window.location.href=`${i}/authentication/logout`}return o!=null&&o.isFetching?de.jsx(aa.Grid,{container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:"100vh"},children:de.jsx(aa.CircularProgress,{})}):de.jsx(Gv.Provider,{value:{user:o==null?void 0:o.data,login:c,logout:f,isFetching:o.isFetching,permissions:a==null?void 0:a.data},children:e})},vT=()=>z.useContext(Gv);function hM(t,e,n){return n.some(r=>{const i=t[r];return String(i).toLowerCase().includes(e.toLowerCase())})}function pM(t){var e,n;(n=(e=window.top)==null?void 0:e.HostBridge)==null||n.openBackdrop(t)}var yT=[],gM=yT.forEach,mM=yT.slice;function vM(t){return gM.call(mM.call(arguments,1),function(e){if(e)for(var n in e)t[n]===void 0&&(t[n]=e[n])}),t}var N0=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,yM=function(e,n,r){var i=r||{};i.path=i.path||"/";var o=encodeURIComponent(n),a="".concat(e,"=").concat(o);if(i.maxAge>0){var c=i.maxAge-0;if(Number.isNaN(c))throw new Error("maxAge should be a Number");a+="; Max-Age=".concat(Math.floor(c))}if(i.domain){if(!N0.test(i.domain))throw new TypeError("option domain is invalid");a+="; Domain=".concat(i.domain)}if(i.path){if(!N0.test(i.path))throw new TypeError("option path is invalid");a+="; Path=".concat(i.path)}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(a+="; HttpOnly"),i.secure&&(a+="; Secure"),i.sameSite){var f=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(f){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return a},j0={create:function(e,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+r*60*1e3)),i&&(o.domain=i),document.cookie=yM(e,encodeURIComponent(n),o)},read:function(e){for(var n="".concat(e,"="),r=document.cookie.split(";"),i=0;i<r.length;i++){for(var o=r[i];o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(n)===0)return o.substring(n.length,o.length)}return null},remove:function(e){this.create(e,"",-1)}},bM={name:"cookie",lookup:function(e){var n;if(e.lookupCookie&&typeof document<"u"){var r=j0.read(e.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(e,n){n.lookupCookie&&typeof document<"u"&&j0.create(n.lookupCookie,e,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},wM={name:"querystring",lookup:function(e){var n;if(typeof window<"u"){var r=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=r.substring(1),o=i.split("&"),a=0;a<o.length;a++){var c=o[a].indexOf("=");if(c>0){var f=o[a].substring(0,c);f===e.lookupQuerystring&&(n=o[a].substring(c+1))}}}return n}},td=null,B0=function(){if(td!==null)return td;try{td=window!=="undefined"&&window.localStorage!==null;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{td=!1}return td},xM={name:"localStorage",lookup:function(e){var n;if(e.lookupLocalStorage&&B0()){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(e,n){n.lookupLocalStorage&&B0()&&window.localStorage.setItem(n.lookupLocalStorage,e)}},nd=null,$0=function(){if(nd!==null)return nd;try{nd=window!=="undefined"&&window.sessionStorage!==null;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{nd=!1}return nd},SM={name:"sessionStorage",lookup:function(e){var n;if(e.lookupSessionStorage&&$0()){var r=window.sessionStorage.getItem(e.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(e,n){n.lookupSessionStorage&&$0()&&window.sessionStorage.setItem(n.lookupSessionStorage,e)}},TM={name:"navigator",lookup:function(e){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r<navigator.languages.length;r++)n.push(navigator.languages[r]);navigator.userLanguage&&n.push(navigator.userLanguage),navigator.language&&n.push(navigator.language)}return n.length>0?n:void 0}},CM={name:"htmlTag",lookup:function(e){var n,r=e.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},EM={name:"path",lookup:function(e){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof e.lookupFromPathIndex=="number"){if(typeof r[e.lookupFromPathIndex]!="string")return;n=r[e.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},kM={name:"subdomain",lookup:function(e){var n=typeof e.lookupFromSubdomainIndex=="number"?e.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}},bT=!1;try{document.cookie,bT=!0}catch{}var wT=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];bT||wT.splice(1,1);function DM(){return{order:wT,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}}var xT=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ns(this,t),this.type="languageDetector",this.detectors={},this.init(e,n)}return rs(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n||{languageUtils:{}},this.options=vM(r,this.options||{},DM()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(o){return o.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(bM),this.addDetector(wM),this.addDetector(xM),this.addDetector(SM),this.addDetector(TM),this.addDetector(CM),this.addDetector(EM),this.addDetector(kM)}},{key:"addDetector",value:function(n){return this.detectors[n.name]=n,this}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var i=[];return n.forEach(function(o){if(r.detectors[o]){var a=r.detectors[o].lookup(r.options);a&&typeof a=="string"&&(a=[a]),a&&(i=i.concat(a))}}),i=i.map(function(o){return r.options.convertDetectedLanguage(o)}),this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var i=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(o){i.detectors[o]&&i.detectors[o].cacheUserLanguage(n,i.options)}))}}])}();xT.type="languageDetector";function qv(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.includes(r))continue;n[r]=t[r]}return n}const _M=Object.freeze(Object.defineProperty({__proto__:null,default:qv},Symbol.toStringTag,{value:"Module"}));var Di=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Eu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function PM(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}function OM(){if(console&&console.warn){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];typeof n[0]=="string"&&(n[0]="react-i18next:: ".concat(n[0])),(t=console).warn.apply(t,n)}}var V0={};function Nm(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];typeof e[0]=="string"&&V0[e[0]]||(typeof e[0]=="string"&&(V0[e[0]]=new Date),OM.apply(void 0,e))}var ST=function(e,n){return function(){if(e.isInitialized)n();else{var r=function i(){setTimeout(function(){e.off("initialized",i)},0),n()};e.on("initialized",r)}}};function H0(t,e,n){t.loadNamespaces(e,ST(t,n))}function U0(t,e,n,r){typeof n=="string"&&(n=[n]),n.forEach(function(i){t.options.ns.indexOf(i)<0&&t.options.ns.push(i)}),t.loadLanguages(e,ST(t,r))}function RM(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=e.languages[0],i=e.options?e.options.fallbackLng:!1,o=e.languages[e.languages.length-1];if(r.toLowerCase()==="cimode")return!0;var a=function(f,p){var y=e.services.backendConnector.state["".concat(f,"|").concat(p)];return y===-1||y===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!a(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(r,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||a(r,t)&&(!i||a(o,t)))}function IM(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e.languages||!e.languages.length)return Nm("i18n.languages were undefined or empty",e.languages),!0;var r=e.options.ignoreJSONStructure!==void 0;return r?e.hasLoadedNamespace(t,{lng:n.lng,precheck:function(o,a){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!a(o.isLanguageChangingTo,t))return!1}}):RM(t,e,n)}var AM=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,MM={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},LM=function(e){return MM[e]},FM=function(e){return e.replace(AM,LM)};function W0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function z0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?W0(Object(n),!0).forEach(function(r){Ua(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):W0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var jm={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:FM};function NM(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};jm=z0(z0({},jm),t)}function jM(){return jm}var TT;function BM(t){TT=t}function $M(){return TT}var VM={type:"3rdParty",init:function(e){NM(e.options.react),BM(e)}},CT=z.createContext(),HM=function(){function t(){ns(this,t),this.usedNamespaces={}}return rs(t,[{key:"addUsedNamespaces",value:function(n){var r=this;n.forEach(function(i){r.usedNamespaces[i]||(r.usedNamespaces[i]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),t}();function UM(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,a,c=[],f=!0,p=!1;try{if(o=(n=n.call(t)).next,e!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);f=!0);}catch(y){p=!0,i=y}finally{try{if(!f&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(p)throw i}}return c}}function WM(t,e){return sT(t)||UM(t,e)||aT(t,e)||lT()}function Y0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Rg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Y0(Object(n),!0).forEach(function(r){Ua(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Y0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var zM=function(e,n){var r=z.useRef();return z.useEffect(function(){r.current=e},[e,n]),r.current};function ET(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.i18n,r=z.useContext(CT)||{},i=r.i18n,o=r.defaultNS,a=n||i||$M();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new HM),!a){Nm("You will need to pass in an i18next instance by using initReactI18next");var c=function(ie,Pe){return typeof Pe=="string"?Pe:Pe&&Qo(Pe)==="object"&&typeof Pe.defaultValue=="string"?Pe.defaultValue:Array.isArray(ie)?ie[ie.length-1]:ie},f=[c,{},!1];return f.t=c,f.i18n={},f.ready=!1,f}a.options.react&&a.options.react.wait!==void 0&&Nm("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var p=Rg(Rg(Rg({},jM()),a.options.react),e),y=p.useSuspense,m=p.keyPrefix,T=t||o||a.options&&a.options.defaultNS;T=typeof T=="string"?[T]:T||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(T);var E=(a.isInitialized||a.initializedStoreOnce)&&T.every(function(re){return IM(re,a,p)});function I(){return a.getFixedT(e.lng||null,p.nsMode==="fallback"?T:T[0],m)}var A=z.useState(I),F=WM(A,2),R=F[0],U=F[1],H=T.join();e.lng&&(H="".concat(e.lng).concat(H));var ne=zM(H),Z=z.useRef(!0);z.useEffect(function(){var re=p.bindI18n,ie=p.bindI18nStore;Z.current=!0,!E&&!y&&(e.lng?U0(a,e.lng,T,function(){Z.current&&U(I)}):H0(a,T,function(){Z.current&&U(I)})),E&&ne&&ne!==H&&Z.current&&U(I);function Pe(){Z.current&&U(I)}return re&&a&&a.on(re,Pe),ie&&a&&a.store.on(ie,Pe),function(){Z.current=!1,re&&a&&re.split(" ").forEach(function(Ke){return a.off(Ke,Pe)}),ie&&a&&ie.split(" ").forEach(function(Ke){return a.store.off(Ke,Pe)})}},[a,H]);var ce=z.useRef(!0);z.useEffect(function(){Z.current&&!ce.current&&U(I),ce.current=!1},[a,m]);var S=[R,a,E];if(S.t=R,S.i18n=a,S.ready=E,E||!E&&!y)return S;throw new Promise(function(re){e.lng?U0(a,e.lng,T,function(){return re()}):H0(a,T,function(){return re()})})}function YM(t){var e=t.i18n,n=t.defaultNS,r=t.children,i=z.useMemo(function(){return{i18n:e,defaultNS:n}},[e,n]);return z.createElement(CT.Provider,{value:i},r)}var kT=[],GM=kT.forEach,qM=kT.slice;function XM(t){return GM.call(qM.call(arguments,1),function(e){if(e)for(var n in e)t[n]===void 0&&(t[n]=e[n])}),t}function KM(t){return t?typeof t=="function"?new t:t:null}function ZM(){return{handleEmptyResourcesAsFailed:!0,cacheHitMode:"none"}}function G0(t,e,n,r){var i=t.read.bind(t);if(i.length===2){try{var o=i(e,n);o&&typeof o.then=="function"?o.then(function(a){return r(null,a)}).catch(r):r(null,o)}catch(a){r(a)}return}i(e,n,r)}var DT=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ns(this,t),this.backends=[],this.type="backend",this.allOptions=r,this.init(e,n)}return rs(t,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=XM(i,this.options||{},ZM()),this.allOptions=o,this.options.backends&&this.options.backends.forEach(function(a,c){r.backends[c]=r.backends[c]||KM(a),r.backends[c].init(n,r.options.backendOptions&&r.options.backendOptions[c]||{},o)}),this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"read",value:function(n,r,i){var o=this,a=this.backends.length,c=function p(y){if(y>=a)return i(new Error("non of the backend loaded data",!0));var m=y===a-1,T=o.options.handleEmptyResourcesAsFailed&&!m?0:-1,E=o.backends[y];E.read?G0(E,n,r,function(I,A,F){if(!I&&A&&Object.keys(A).length>T){if(i(null,A,y),f(y-1,A),E.save&&o.options.cacheHitMode&&["refresh","refreshAndUpdateStore"].indexOf(o.options.cacheHitMode)>-1){if(F&&o.options.refreshExpirationTime&&F+o.options.refreshExpirationTime>Date.now())return;var R=o.backends[y+1];R&&R.read&&G0(R,n,r,function(U,H){U||H&&(Object.keys(H).length<=T||(f(y,H),o.options.cacheHitMode==="refreshAndUpdateStore"&&o.services&&o.services.resourceStore&&o.services.resourceStore.addResourceBundle(n,r,H)))})}}else p(y+1)}):p(y+1)},f=function p(y,m){if(!(y<0)){var T=o.backends[y];T.save&&T.save(n,r,m),p(y-1,m)}};c(0)}},{key:"create",value:function(n,r,i,o){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.backends.forEach(function(f){if(f.create){var p=f.create.bind(f);if(p.length<6){try{var y;p.length===5?y=p(n,r,i,o,c):y=p(n,r,i,o),y&&typeof y.then=="function"?y.then(function(m){return a(null,m)}).catch(a):a(null,y)}catch(m){a(m)}return}p(n,r,i,o,a,c)}})}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,a=r.logger,c=i.language;if(!(c&&c.toLowerCase()==="cimode")){var f=[],p=function(m){var T=o.toResolveHierarchy(m);T.forEach(function(E){f.indexOf(E)<0&&f.push(E)})};p(c),this.allOptions.preload&&this.allOptions.preload.forEach(function(y){return p(y)}),f.forEach(function(y){n.allOptions.ns.forEach(function(m){i.read(y,m,"read",null,null,function(T,E){T&&a.warn("loading namespace ".concat(m," for language ").concat(y," failed"),T),!T&&E&&a.log("loaded namespace ".concat(m," for language ").concat(y),E),i.loaded("".concat(y,"|").concat(m),T,E)})})})}}}]),t}();DT.type="backend";function Bm(t){"@babel/helpers - typeof";return Bm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bm(t)}function _T(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Bm(XMLHttpRequest))==="object"}function JM(t){return!!t&&typeof t.then=="function"}function QM(t){return JM(t)?t:Promise.resolve(t)}function eL(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var $m={exports:{}},yh={exports:{}},q0;function tL(){return q0||(q0=1,function(t,e){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Di<"u"&&Di,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(a){var c=typeof o<"u"&&o||typeof self<"u"&&self||typeof c<"u"&&c,f={searchParams:"URLSearchParams"in c,iterable:"Symbol"in c&&"iterator"in Symbol,blob:"FileReader"in c&&"Blob"in c&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in c,arrayBuffer:"ArrayBuffer"in c};function p(ge){return ge&&DataView.prototype.isPrototypeOf(ge)}if(f.arrayBuffer)var y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],m=ArrayBuffer.isView||function(ge){return ge&&y.indexOf(Object.prototype.toString.call(ge))>-1};function T(ge){if(typeof ge!="string"&&(ge=String(ge)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(ge)||ge==="")throw new TypeError('Invalid character in header field name: "'+ge+'"');return ge.toLowerCase()}function E(ge){return typeof ge!="string"&&(ge=String(ge)),ge}function I(ge){var _e={next:function(){var Re=ge.shift();return{done:Re===void 0,value:Re}}};return f.iterable&&(_e[Symbol.iterator]=function(){return _e}),_e}function A(ge){this.map={},ge instanceof A?ge.forEach(function(_e,Re){this.append(Re,_e)},this):Array.isArray(ge)?ge.forEach(function(_e){this.append(_e[0],_e[1])},this):ge&&Object.getOwnPropertyNames(ge).forEach(function(_e){this.append(_e,ge[_e])},this)}A.prototype.append=function(ge,_e){ge=T(ge),_e=E(_e);var Re=this.map[ge];this.map[ge]=Re?Re+", "+_e:_e},A.prototype.delete=function(ge){delete this.map[T(ge)]},A.prototype.get=function(ge){return ge=T(ge),this.has(ge)?this.map[ge]:null},A.prototype.has=function(ge){return this.map.hasOwnProperty(T(ge))},A.prototype.set=function(ge,_e){this.map[T(ge)]=E(_e)},A.prototype.forEach=function(ge,_e){for(var Re in this.map)this.map.hasOwnProperty(Re)&&ge.call(_e,this.map[Re],Re,this)},A.prototype.keys=function(){var ge=[];return this.forEach(function(_e,Re){ge.push(Re)}),I(ge)},A.prototype.values=function(){var ge=[];return this.forEach(function(_e){ge.push(_e)}),I(ge)},A.prototype.entries=function(){var ge=[];return this.forEach(function(_e,Re){ge.push([Re,_e])}),I(ge)},f.iterable&&(A.prototype[Symbol.iterator]=A.prototype.entries);function F(ge){if(ge.bodyUsed)return Promise.reject(new TypeError("Already read"));ge.bodyUsed=!0}function R(ge){return new Promise(function(_e,Re){ge.onload=function(){_e(ge.result)},ge.onerror=function(){Re(ge.error)}})}function U(ge){var _e=new FileReader,Re=R(_e);return _e.readAsArrayBuffer(ge),Re}function H(ge){var _e=new FileReader,Re=R(_e);return _e.readAsText(ge),Re}function ne(ge){for(var _e=new Uint8Array(ge),Re=new Array(_e.length),Ae=0;Ae<_e.length;Ae++)Re[Ae]=String.fromCharCode(_e[Ae]);return Re.join("")}function Z(ge){if(ge.slice)return ge.slice(0);var _e=new Uint8Array(ge.byteLength);return _e.set(new Uint8Array(ge)),_e.buffer}function ce(){return this.bodyUsed=!1,this._initBody=function(ge){this.bodyUsed=this.bodyUsed,this._bodyInit=ge,ge?typeof ge=="string"?this._bodyText=ge:f.blob&&Blob.prototype.isPrototypeOf(ge)?this._bodyBlob=ge:f.formData&&FormData.prototype.isPrototypeOf(ge)?this._bodyFormData=ge:f.searchParams&&URLSearchParams.prototype.isPrototypeOf(ge)?this._bodyText=ge.toString():f.arrayBuffer&&f.blob&&p(ge)?(this._bodyArrayBuffer=Z(ge.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):f.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(ge)||m(ge))?this._bodyArrayBuffer=Z(ge):this._bodyText=ge=Object.prototype.toString.call(ge):this._bodyText="",this.headers.get("content-type")||(typeof ge=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):f.searchParams&&URLSearchParams.prototype.isPrototypeOf(ge)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},f.blob&&(this.blob=function(){var ge=F(this);if(ge)return ge;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var ge=F(this);return ge||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(U)}),this.text=function(){var ge=F(this);if(ge)return ge;if(this._bodyBlob)return H(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(ne(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},f.formData&&(this.formData=function(){return this.text().then(Pe)}),this.json=function(){return this.text().then(JSON.parse)},this}var S=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function re(ge){var _e=ge.toUpperCase();return S.indexOf(_e)>-1?_e:ge}function ie(ge,_e){if(!(this instanceof ie))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');_e=_e||{};var Re=_e.body;if(ge instanceof ie){if(ge.bodyUsed)throw new TypeError("Already read");this.url=ge.url,this.credentials=ge.credentials,_e.headers||(this.headers=new A(ge.headers)),this.method=ge.method,this.mode=ge.mode,this.signal=ge.signal,!Re&&ge._bodyInit!=null&&(Re=ge._bodyInit,ge.bodyUsed=!0)}else this.url=String(ge);if(this.credentials=_e.credentials||this.credentials||"same-origin",(_e.headers||!this.headers)&&(this.headers=new A(_e.headers)),this.method=re(_e.method||this.method||"GET"),this.mode=_e.mode||this.mode||null,this.signal=_e.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Re)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(Re),(this.method==="GET"||this.method==="HEAD")&&(_e.cache==="no-store"||_e.cache==="no-cache")){var Ae=/([?&])_=[^&]*/;if(Ae.test(this.url))this.url=this.url.replace(Ae,"$1_="+new Date().getTime());else{var et=/\?/;this.url+=(et.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}ie.prototype.clone=function(){return new ie(this,{body:this._bodyInit})};function Pe(ge){var _e=new FormData;return ge.trim().split("&").forEach(function(Re){if(Re){var Ae=Re.split("="),et=Ae.shift().replace(/\+/g," "),ye=Ae.join("=").replace(/\+/g," ");_e.append(decodeURIComponent(et),decodeURIComponent(ye))}}),_e}function Ke(ge){var _e=new A,Re=ge.replace(/\r?\n[\t ]+/g," ");return Re.split("\r").map(function(Ae){return Ae.indexOf(`
|
|
3
|
+
`)===0?Ae.substr(1,Ae.length):Ae}).forEach(function(Ae){var et=Ae.split(":"),ye=et.shift().trim();if(ye){var ue=et.join(":").trim();_e.append(ye,ue)}}),_e}ce.call(ie.prototype);function $e(ge,_e){if(!(this instanceof $e))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');_e||(_e={}),this.type="default",this.status=_e.status===void 0?200:_e.status,this.ok=this.status>=200&&this.status<300,this.statusText=_e.statusText===void 0?"":""+_e.statusText,this.headers=new A(_e.headers),this.url=_e.url||"",this._initBody(ge)}ce.call($e.prototype),$e.prototype.clone=function(){return new $e(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new A(this.headers),url:this.url})},$e.error=function(){var ge=new $e(null,{status:0,statusText:""});return ge.type="error",ge};var tt=[301,302,303,307,308];$e.redirect=function(ge,_e){if(tt.indexOf(_e)===-1)throw new RangeError("Invalid status code");return new $e(null,{status:_e,headers:{location:ge}})},a.DOMException=c.DOMException;try{new a.DOMException}catch{a.DOMException=function(_e,Re){this.message=_e,this.name=Re;var Ae=Error(_e);this.stack=Ae.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function nt(ge,_e){return new Promise(function(Re,Ae){var et=new ie(ge,_e);if(et.signal&&et.signal.aborted)return Ae(new a.DOMException("Aborted","AbortError"));var ye=new XMLHttpRequest;function ue(){ye.abort()}ye.onload=function(){var je={status:ye.status,statusText:ye.statusText,headers:Ke(ye.getAllResponseHeaders()||"")};je.url="responseURL"in ye?ye.responseURL:je.headers.get("X-Request-URL");var Ie="response"in ye?ye.response:ye.responseText;setTimeout(function(){Re(new $e(Ie,je))},0)},ye.onerror=function(){setTimeout(function(){Ae(new TypeError("Network request failed"))},0)},ye.ontimeout=function(){setTimeout(function(){Ae(new TypeError("Network request failed"))},0)},ye.onabort=function(){setTimeout(function(){Ae(new a.DOMException("Aborted","AbortError"))},0)};function De(je){try{return je===""&&c.location.href?c.location.href:je}catch{return je}}ye.open(et.method,De(et.url),!0),et.credentials==="include"?ye.withCredentials=!0:et.credentials==="omit"&&(ye.withCredentials=!1),"responseType"in ye&&(f.blob?ye.responseType="blob":f.arrayBuffer&&et.headers.get("Content-Type")&&et.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(ye.responseType="arraybuffer")),_e&&typeof _e.headers=="object"&&!(_e.headers instanceof A)?Object.getOwnPropertyNames(_e.headers).forEach(function(je){ye.setRequestHeader(je,E(_e.headers[je]))}):et.headers.forEach(function(je,Ie){ye.setRequestHeader(Ie,je)}),et.signal&&(et.signal.addEventListener("abort",ue),ye.onreadystatechange=function(){ye.readyState===4&&et.signal.removeEventListener("abort",ue)}),ye.send(typeof et._bodyInit>"u"?null:et._bodyInit)})}return nt.polyfill=!0,c.fetch||(c.fetch=nt,c.Headers=A,c.Request=ie,c.Response=$e),a.Headers=A,a.Request=ie,a.Response=$e,a.fetch=nt,a})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;e=i.fetch,e.default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e}(yh,yh.exports)),yh.exports}(function(t,e){var n;if(typeof fetch=="function"&&(typeof Di<"u"&&Di.fetch?n=Di.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof eL<"u"&&typeof window>"u"){var r=n||tL();r.default&&(r=r.default),e.default=r,t.exports=e.default}})($m,$m.exports);var PT=$m.exports;const OT=Eu(PT),X0=PA({__proto__:null,default:OT},[PT]);function K0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Z0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?K0(Object(n),!0).forEach(function(r){nL(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):K0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function nL(t,e,n){return(e=rL(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rL(t){var e=iL(t,"string");return Ec(e)=="symbol"?e:e+""}function iL(t,e){if(Ec(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ec(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ec(t){"@babel/helpers - typeof";return Ec=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ec(t)}var Tl;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Tl=global.fetch:typeof window<"u"&&window.fetch?Tl=window.fetch:Tl=fetch);var Od;_T()&&(typeof global<"u"&&global.XMLHttpRequest?Od=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Od=window.XMLHttpRequest));var rp;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?rp=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(rp=window.ActiveXObject));!Tl&&X0&&!Od&&!rp&&(Tl=OT||X0);typeof Tl!="function"&&(Tl=void 0);var Vm=function(e,n){if(n&&Ec(n)==="object"){var r="";for(var i in n)r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]);if(!r)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+r.slice(1)}return e},J0=function(e,n,r,i){var o=function(f){if(!f.ok)return r(f.statusText||"Error",{status:f.status});f.text().then(function(p){r(null,{status:f.status,data:p})}).catch(r)};if(i){var a=i(e,n);if(a instanceof Promise){a.then(o).catch(r);return}}typeof fetch=="function"?fetch(e,n).then(o).catch(r):Tl(e,n).then(o).catch(r)},Q0=!1,oL=function(e,n,r,i){e.queryStringParams&&(n=Vm(n,e.queryStringParams));var o=Z0({},typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(o["Content-Type"]="application/json");var a=typeof e.requestOptions=="function"?e.requestOptions(r):e.requestOptions,c=Z0({method:r?"POST":"GET",body:r?e.stringify(r):void 0,headers:o},Q0?{}:a),f=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{J0(n,c,i,f)}catch(p){if(!a||Object.keys(a).length===0||!p.message||p.message.indexOf("not implemented")<0)return i(p);try{Object.keys(a).forEach(function(y){delete c[y]}),J0(n,c,i,f),Q0=!0}catch(y){i(y)}}},sL=function(e,n,r,i){r&&Ec(r)==="object"&&(r=Vm("",r).slice(1)),e.queryStringParams&&(n=Vm(n,e.queryStringParams));try{var o;Od?o=new Od:o=new rp("MSXML2.XMLHTTP.3.0"),o.open(r?"POST":"GET",n,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!e.withCredentials,r&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var a=e.customHeaders;if(a=typeof a=="function"?a():a,a)for(var c in a)o.setRequestHeader(c,a[c]);o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(r)}catch(f){console&&console.log(f)}},aL=function(e,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},Tl&&n.indexOf("file:")!==0)return oL(e,n,r,i);if(_T()||typeof ActiveXObject=="function")return sL(e,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function kf(t){"@babel/helpers - typeof";return kf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kf(t)}function ew(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ig(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ew(Object(n),!0).forEach(function(r){RT(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ew(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function lL(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function uL(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,IT(r.key),r)}}function cL(t,e,n){return e&&uL(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function RT(t,e,n){return(e=IT(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function IT(t){var e=fL(t,"string");return kf(e)=="symbol"?e:e+""}function fL(t,e){if(kf(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(kf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var dL=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,i){return RT({},r,i||"")},parseLoadPayload:function(n,r){},request:aL,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},AT=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};lL(this,t),this.services=e,this.options=n,this.allOptions=r,this.type="backend",this.init(e,n,r)}return cL(t,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=Ig(Ig(Ig({},dL()),this.options||{}),i),this.allOptions=o,this.services&&this.options.reloadInterval){var a=setInterval(function(){return r.reload()},this.options.reloadInterval);kf(a)==="object"&&typeof a.unref=="function"&&a.unref()}}},{key:"readMulti",value:function(n,r,i){this._readAny(n,n,r,r,i)}},{key:"read",value:function(n,r,i){this._readAny([n],n,[r],r,i)}},{key:"_readAny",value:function(n,r,i,o,a){var c=this,f=this.options.loadPath;typeof this.options.loadPath=="function"&&(f=this.options.loadPath(n,i)),f=QM(f),f.then(function(p){if(!p)return a(null,{});var y=c.services.interpolator.interpolate(p,{lng:n.join("+"),ns:i.join("+")});c.loadUrl(y,a,r,o)})}},{key:"loadUrl",value:function(n,r,i,o){var a=this,c=typeof i=="string"?[i]:i,f=typeof o=="string"?[o]:o,p=this.options.parseLoadPayload(c,f);this.options.request(this.options,n,p,function(y,m){if(m&&(m.status>=500&&m.status<600||!m.status))return r("failed loading "+n+"; status code: "+m.status,!0);if(m&&m.status>=400&&m.status<500)return r("failed loading "+n+"; status code: "+m.status,!1);if(!m&&y&&y.message){var T=y.message.toLowerCase(),E=["failed","fetch","network","load"].find(function(F){return T.indexOf(F)>-1});if(E)return r("failed loading "+n+": "+y.message,!0)}if(y)return r(y,!1);var I,A;try{typeof m.data=="string"?I=a.options.parse(m.data,i,o):I=m.data}catch{A="failed parsing "+n+" to json"}if(A)return r(A,!1);r(null,I)})}},{key:"create",value:function(n,r,i,o,a){var c=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var f=this.options.parsePayload(r,i,o),p=0,y=[],m=[];n.forEach(function(T){var E=c.options.addPath;typeof c.options.addPath=="function"&&(E=c.options.addPath(T,r));var I=c.services.interpolator.interpolate(E,{lng:T,ns:r});c.options.request(c.options,I,f,function(A,F){p+=1,y.push(A),m.push(F),p===n.length&&typeof a=="function"&&a(y,m)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,a=r.logger,c=i.language;if(!(c&&c.toLowerCase()==="cimode")){var f=[],p=function(m){var T=o.toResolveHierarchy(m);T.forEach(function(E){f.indexOf(E)<0&&f.push(E)})};p(c),this.allOptions.preload&&this.allOptions.preload.forEach(function(y){return p(y)}),f.forEach(function(y){n.allOptions.ns.forEach(function(m){i.read(y,m,"read",null,null,function(T,E){T&&a.warn("loading namespace ".concat(m," for language ").concat(y," failed"),T),!T&&E&&a.log("loaded namespace ".concat(m," for language ").concat(y),E),i.loaded("".concat(y,"|").concat(m),T,E)})})})}}}])}();AT.type="backend";var Rd=(t=>(t.en="en",t.de="de",t))(Rd||{});class hL{constructor(e,n={}){gh(this,"type","backend");gh(this,"services");gh(this,"options");this.init(e,n)}init(e,n){this.services=e,this.options=n}read(e,n,r){var o,a,c;let i=(c=(a=(o=window==null?void 0:window.parent)==null?void 0:o.translations)==null?void 0:a[e])==null?void 0:c[n];i?(console.log("🚀 ~ ParentCacheBackend ~ read ~ resources:",i),r(null,i)):(r(new Error("No local or parent translation found"),null),console.log("🚀 ~ ParentCacheBackend ~ read ~ Error:"))}}_r.use(xT).use(DT).use(VM).init({initImmediate:!0,supportedLngs:["en","de"],fallbackLng:"en",nonExplicitSupportedLngs:!0,load:"languageOnly",ns:["translation"],fallbackNS:"translation",partialBundledLanguages:!0,resources:{},interpolation:{escapeValue:!1},detection:{order:["querystring","localStorage","navigator"],caches:["localStorage"],convertDetectedLanguage:t=>t==null?void 0:t.split("-")[0]},backend:{backends:[hL,AT],backendOptions:[{},{loadPath:t=>{var i,o,a;const n=(Array.isArray(t)?t[0]:t||"en").split("-")[0];return`${((i=window==null?void 0:window.env)==null?void 0:i.TRANSLATION_URL)??((o=window==null?void 0:window.env)==null?void 0:o.VITE_BASE_URL)??((a=window==null?void 0:window.env)==null?void 0:a.REACT_APP_BASE_URL)??`${location.protocol}//${location.host}`}/translations/${n}`},request:async(t,e,n,r)=>{try{console.log("🚀 ~ LoadTranslation URL:",e);const i=await fetch(e,{method:"GET"}),o=await i.json(),a=e.match(/\/translations\/([^/?]+)/),c=a?a[1]:"en";console.log("🚀 ~ LoadTranslation URL Data:",o),window.translations=window.translations||{},window.translations[c]={translation:o},console.log("🚀 ~ LoadTranslation URL window:",window.translations),r(null,{status:i.status,data:o})}catch(i){r(i,{status:500,data:{}})}}}]}});function pL(){const[t,e]=z.useState();return z.useEffect(()=>{const n=localStorage.getItem("language");e(n||Rd.en)},[]),{language:t,setLanguage:e}}const MT=z.createContext({}),LT=()=>z.useContext(MT),gL=_r,Dr=fT,mL=()=>ET(),vL=({children:t})=>{const e=pL();return z.useEffect(()=>{_r.on("backendConnectorReady",()=>{console.log("🔍 Backend connector ready")}),_r.on("loaded",(n,r)=>{console.log(`📥 Translation loaded: ${n}/${r}`);const i=`i18next_res_${n}`,o=localStorage.getItem(i);console.log(o?"💾 Loaded from cache":"🌐 Loaded from API")})},[]),de.jsx(MT.Provider,{value:e,children:de.jsx(YM,{i18n:_r,children:t})})},mr={primary:"#93D500",primary100:"#F0F6E1",primary200:"#E5F5ED",primary300:"#93D500",primary400:"#009D4F",primary500:"#2E7D32",secondary:"#CC0066",secondaryDark:"#AE1857",textPrimary:"#292929",white:"#FFFFFF",grey100:"#FAFAFA",grey200:"#EEEEEE",grey300:"#DDDDDD",grey400:"#C5C5C5",grey500:"#BFBFBF",grey600:"#85858A",success:"#009D4F",successLight:"#E5F5ED",warning:"#FFB600",warningLight:"#FFF8E5",danger:"#E01B00",dangerLight:"#FCE8E5",dangerDark:"#BE1700",linkPrimary:"#007BFF",linkLight:"#007BFF10",headerBgColor:"#292929",headerTextColor:"#FFF",buttonText:"#292929",buttonHover:"#2E7D32"};var FT={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},tw=z.createContext&&z.createContext(FT),yL=["attr","size","title"];function bL(t,e){if(t==null)return{};var n=wL(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function wL(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function ip(){return ip=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ip.apply(this,arguments)}function nw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function op(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?nw(Object(n),!0).forEach(function(r){xL(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nw(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function xL(t,e,n){return e=SL(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function SL(t){var e=TL(t,"string");return typeof e=="symbol"?e:e+""}function TL(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function NT(t){return t&&t.map((e,n)=>z.createElement(e.tag,op({key:n},e.attr),NT(e.child)))}function Rp(t){return e=>z.createElement(CL,ip({attr:op({},t.attr)},e),NT(t.child))}function CL(t){var e=n=>{var{attr:r,size:i,title:o}=t,a=bL(t,yL),c=i||n.size||"1em",f;return n.className&&(f=n.className),t.className&&(f=(f?f+" ":"")+t.className),z.createElement("svg",ip({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:f,style:op(op({color:t.color||n.color},n.style),t.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),o&&z.createElement("title",null,o),t.children)};return tw!==void 0?z.createElement(tw.Consumer,null,n=>e(n)):e(FT)}function EL(t){return Rp({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M689 165.1L308.2 493.5c-10.9 9.4-10.9 27.5 0 37L689 858.9c14.2 12.2 35 1.2 35-18.5V183.6c0-19.7-20.8-30.7-35-18.5z"},child:[]}]})(t)}function kL(t){return Rp({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"},child:[]}]})(t)}const jT={allVariants:{lineHeight:"inherit"},fontFamily:"'SpecialAmpersand', 'TT Firs Neue Trl'",button:{textTransform:"none",fontSize:"0.875rem",fontWeight:400,boxShadow:"none"},body1:{fontSize:"0.875rem",fontWeight:400},body2:{fontSize:"0.75rem"},h6:{fontSize:"0.875rem",fontWeight:500},h5:{fontSize:"1rem",fontWeight:500},h4:{fontSize:"1.25rem",fontWeight:500},h3:{fontSize:"1.5rem",fontWeight:500},h2:{fontSize:"2rem",fontWeight:500},h1:{fontSize:"2.5rem",fontWeight:500},subtitle1:{fontSize:"0.75rem"},subtitle2:{fontSize:"0.625rem"}};function Ag(t){return t+" !important"}const BT=t=>{const e={...t.colors};return aa.createTheme({palette:{primary:{main:e.primary300,contrastText:e.textPrimary},secondary:{main:e.secondary,contrastText:e.textPrimary},warning:{main:e.warning,contrastText:e.textPrimary},error:{main:e.danger,contrastText:e.textPrimary}},typography:jT,components:{MuiIconButton:{styleOverrides:{root:{},sizeSmall:{}}},MuiButton:{styleOverrides:{root:{boxShadow:"none !important",padding:"8px 32px",borderWidth:1,borderRadius:3,fontWeight:400}},variants:[{props:{variant:"primary"},style:{backgroundColor:e.primary300,color:e.buttonText,"&:hover":{backgroundColor:e.buttonHover||e.primary300},"&.Mui-disabled":{backgroundColor:e.grey200}}},{props:{variant:"contained",color:"error"},style:{color:e.white}},{props:{variant:"confirm"},style:{backgroundColor:e.danger,color:e.white,"&:hover":{backgroundColor:e.dangerDark},"&.Mui-disabled":{backgroundColor:e.grey200}}},{props:{variant:"cancel"},style:{backgroundColor:e.grey300,color:e.textPrimary,"&:hover":{backgroundColor:e.grey400}}},{props:{variant:"outlinedPrimary"},style:{color:e.primary500,border:"1px solid",borderColor:e.primary500,"&:hover":{backgroundColor:"inherit"}}},{props:{variant:"outLinedDanger"},style:{color:e.danger,border:"1px solid",borderColor:e.danger,"&:hover":{backgroundColor:"inherit"}}},{props:{size:"small"},style:{fontSize:"12px",lineHeight:"normal",borderRadius:"3px",padding:"4px 16px"}}]},MuiAppBar:{styleOverrides:{root:{backgroundColor:e.appBarBgColor,color:e.appBarColor}}},MuiSelect:{defaultProps:{MenuProps:{PaperProps:{sx:{boxShadow:"none",border:1,borderStyle:"solid",borderColor:e.grey300,mt:"5px"}},MenuListProps:{sx:{padding:"5px","& .MuiMenuItem-root":{fontWeight:400,minHeight:0,borderRadius:"5px","&:hover":{backgroundColor:e.grey100},"&.Mui-selected":{backgroundColor:e.primary200}}}}}},styleOverrides:{select:{padding:"9.94px 5px 9.94px 15px"}}},MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Ag(e.primary200),"&:hover":{backgroundColor:Ag(e.primary200)}}}}},MuiPaginationItem:{defaultProps:{components:{previous:EL,next:kL}},styleOverrides:{root:{"& svg":{width:"10px"},border:"none",fontSize:"14px",lineHeight:"1.5rem",borderRadius:"7px","&.Mui-selected":{backgroundColor:Ag(e.primary300+"1a")},"&.MuiPaginationItem-previousNext":{backgroundColor:e.grey200}}}},MuiChip:{styleOverrides:{root:{borderRadius:"5px",fontSize:"14px","& .MuiChip-label":{lineHeight:"normal"}},avatar:{width:"10px"},colorSuccess:{color:e.success,backgroundColor:e.successLight},colorWarning:{color:e.warning,backgroundColor:e.warningLight},colorError:{color:e.danger,backgroundColor:e.dangerLight},colorSecondary:{color:e.linkPrimary,backgroundColor:e.linkLight}}},MuiTab:{styleOverrides:{root:{flexDirection:"row",alignContent:"center",gap:"8px",textTransform:"capitalize",fontSize:"14px",borderRadius:0,marginRight:0,height:"48px",minWidth:"100px",padding:"12px 16px",fontWeight:"500","& svg":{mb:"0 !important"},minHeight:"auto","& .chart-icon":{fill:e.grey600},"& .detail-icon":{stroke:e.grey600},color:e.grey400,"&.Mui-selected":{color:e.primary400}}}},MuiTabs:{styleOverrides:{indicator:{backgroundColor:e.primary400}}},MuiDrawer:{defaultProps:{},styleOverrides:{root:{"&.MuiDrawer-paper":{overflowY:"unset"},"& .MuiDrawer-paper":{zIndex:9},"&.MuiPaper-root":{border:"none",background:e.grey100,pt:12,zIndex:9}}}},MuiTextField:{defaultProps:{InputProps:{sx:{"& .Mui-disabled":{background:e.grey200}}},InputLabelProps:{shrink:!0}},styleOverrides:{root:{backgroundColor:e.white,"& .MuiOutlinedInput-input":{padding:"0px 16px 0px 12px",fontWeight:400,height:40,fontSize:"14px",border:1,borderRadius:4,"&::placeholder":{color:e.grey600}},"& .MuiFormLabel-asterisk":{color:e.danger}}}},MuiFormGroup:{styleOverrides:{root:{}}},MuiFormHelperText:{defaultProps:{sx:{fontSize:12}},styleOverrides:{}},MuiAutocomplete:{defaultProps:{sx:{"& .MuiPaper-root":{padding:"5px"}}},styleOverrides:{root:{"& .MuiSvgIcon-root":{width:"20px",height:"20px"},"& .MuiAutocomplete-tag":{margin:0},"& .MuiButtonBase-root":{marginRight:"2px !important",height:"max-content",padding:"2px"},"& .MuiOutlinedInput-root":{padding:"7.45px 55px 7.45px 10px !important"},"& svg":{},"& #checkboxes-tags-demo":{padding:"6px 4px"},"& .MuiAutocomplete-endAdornment":{top:"calc(50% - 12px)"}}}},MuiTableHead:{styleOverrides:{root:{"& th":{fontSize:"14px",padding:"8px 16px"}}}},MuiTableBody:{styleOverrides:{root:{"& th,td":{fontSize:"14px",padding:"8px 16px",height:"45px"},"& .MuiTableCell-root":{borderBottom:`1px solid ${e.grey300}`}}}},MuiRadio:{defaultProps:{sx:{"&.MuiButtonBase-root":{padding:"5px"}}},styleOverrides:{root:{"& .MuiSvgIcon-root":{fontSize:16},color:e.grey600,"&.Mui-checked":{color:e.success},"&.Mui-disabled":{color:e.grey600}}}},MuiTooltip:{defaultProps:{placement:"top"},styleOverrides:{tooltip:{fontSize:"10px",backgroundColor:e.grey600,color:e.white,"& .MuiTooltip-arrow":{color:e.grey600}}}}}})};function rw(t,e){const n={...t};return e==null||e.forEach(r=>{r.children&&r.children.forEach(({key:i,color:o})=>{n[i]=o.trim()||mr[i]})}),n}function $T(t){if(!t)return;let e=document.querySelector("link[rel*='icon']");e||(e=document.createElement("link"),e.rel="icon",document.head.appendChild(e)),e.href=t}function DL(t){var c,f,p;const{data:e,isFetching:n}=_d.useQuery(["customTheme"],()=>t!=null&&t.url?fetch(t.url).then(y=>y.json()).then(y=>(["image","favicon","icon"].forEach(m=>{var T;(T=y==null?void 0:y.theme)!=null&&T[m]&&(y.theme[m]+=`?v=${Date.now()}`)}),y)):void 0,{enabled:!!(t!=null&&t.url)&&(t==null?void 0:t.enabled),refetchOnWindowFocus:!1,cacheTime:0,onSuccess(y){var T,E;$T((T=y==null?void 0:y.theme)==null?void 0:T.favicon);const m=rw(mr,(E=y==null?void 0:y.theme)==null?void 0:E.keyColor);Object.keys(m).forEach(I=>{document.documentElement.style.setProperty(`--${I}`,m[I])}),document.documentElement.style.setProperty("font-family",jT.fontFamily)}}),r=rw(mr,(c=e==null?void 0:e.theme)==null?void 0:c.keyColor),i=BT({colors:r}),o=(f=e==null?void 0:e.theme)==null?void 0:f.image,a=(p=e==null?void 0:e.theme)==null?void 0:p.icon;return{colors:r,theme:i,logo:o,icon:a,isFetching:n,themeDto:e==null?void 0:e.theme}}const VT=z.createContext({}),_L=()=>z.useContext(VT),PL=t=>{var o;const{children:e,brandTheme:n}=t,r=DL(n),i=((o=t.customTheme)==null?void 0:o.call(t,r.colors))||r.theme;return de.jsx(VT.Provider,{value:r,children:de.jsx(aa.ThemeProvider,{theme:i,children:e})})},OL=".modal-overlay{z-index:1300;position:fixed;top:0;right:0;bottom:0;left:0;background:#00000041;--tw-backdrop-blur: blur(4px);justify-content:center;align-items:center;-webkit-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);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)}.modal-title{font-size:1.25rem;line-height:1.75rem;color:#e01b00;font-weight:500}.modal-footer{display:flex;justify-content:space-between;width:80%}.modal-container{background:#fff;-webkit-backdrop-filter:blur(4.5px);backdrop-filter:blur(4.5px);display:flex;padding:32px 24px 40px;flex-direction:column;align-items:center;gap:24px;align-self:stretch;width:500px;height:204px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:.5rem}.modal-button{border-radius:3px;border:1px solid #ddd;background:#ddd;padding:8px 32px;font-size:14px;transition:background-color .25s cubic-bezier(.4,0,.2,1) 0ms,box-shadow .25s cubic-bezier(.4,0,.2,1) 0ms,border-color .25s cubic-bezier(.4,0,.2,1) 0ms,color .25s cubic-bezier(.4,0,.2,1) 0ms}.cancel-btn:hover{background:#c5c5c5}.confirm-btn{background:#e01b00!important}.confirm-btn:hover{background:#be1700!important}.text-white{color:#fff}.text-sm{font-size:.875rem;line-height:1.25rem}";function HT({isOpen:t,onClose:e,onConfirm:n}){if(!t)return null;function r(i){var o;((o=i.target)==null?void 0:o.id)==="modal-wrapper"&&e()}return de.jsxs(de.Fragment,{children:[de.jsx("style",{type:"text/css",children:OL}),de.jsx("div",{onClick:r,className:"modal-overlay",id:"modal-wrapper",children:de.jsxs("div",{className:"modal-container",children:[de.jsx("h3",{className:"modal-title",children:Dr("components.logoutPage.title",{defaultValue:"Log out"})}),de.jsxs("p",{className:"text-sm",children:[" ",Dr("components.logoutPage.confirmLogOut",{defaultValue:"Are you sure you want to log out?"})]}),de.jsxs("div",{className:"modal-footer",children:[de.jsx("button",{className:"modal-button cancel-btn",onClick:e,children:Dr("commonElement.button.cancel",{defaultValue:"Cancel"})}),de.jsx("button",{onClick:n,className:"text-white confirm-btn modal-button",children:Dr("commonElement.button.confirm",{defaultValue:"Comfirm"})})]})]})})]})}const RL=z.memo(({notification:t,notiPath:e,markAllAsReadState:n,brandColors:r,onMark:i,showDetail:o,onToggleDetail:a})=>{var R,U;const[c,f]=z.useState({id:t.id,isRead:t.isRead}),p=c.isRead===!1?"unread":"read",y={borderColor:c.isRead?"#c5c5c5":(r==null?void 0:r.primary500)||mr.primary500,backgroundColor:c.isRead?"#c5c5c5":(r==null?void 0:r.primary500)||mr.primary500},m=()=>{const H=!t.isRead;i&&i(t.id,H,e)};z.useEffect(()=>{f(n?H=>({...H,isRead:!0}):{id:t.id,isRead:t.isRead})},[n,t.id,t.isRead]);const T=()=>{typeof a=="function"&&a()},E=H=>{const ne=Lm(),Z=Lm(H),ce=ne.diff(Z,"days"),S=ne.diff(Z,"minutes"),re=ne.diff(Z,"months"),ie=ne.diff(Z,"years");if(console.log("diffInMonths",re),S<1)return"Just now";if(ce===0){if(S<=60)return`${S} minute${S>1?"s":""} ago`;const Pe=Math.floor(S/60);return console.log("diffIhours",Pe),`${Pe} hour${Pe>1?"s":""} ago`}if(ce===1)return"Yesterday";if(ce>=2&&ce<7)return`${ce} days ago`;if(ce<30){const Pe=Math.floor(ce/7);return`${Pe} week${Pe>1?"s":""} ago`}return re===0||re===1?"1 month ago":re<12?`${re} months ago`:ie===0||ie===1?"1 year ago":"Over 1 year ago"},I=t!=null&&t.data?(R=t==null?void 0:t.data)==null?void 0:R.length:0,A=t!=null&&t.contextUrl?"a":"p",F=(H,ne)=>{var Z,ce;if((H==null?void 0:H.actionKey)!=null){if((Z=H==null?void 0:H.data)!=null&&Z.brandName)return Dr(`notificationAdmin.notify.actionKey.${H==null?void 0:H.actionKey}`,{defaultValue:`${H==null?void 0:H.message}`,brandName:H.data.brandName});switch(H==null?void 0:H.notificationType){case"deleteMultiple":return H!=null&&H.data&&((ce=H==null?void 0:H.data)==null?void 0:ce.length)>1?Dr(`notificationAdmin.notify.actionKey.${H==null?void 0:H.actionKey}_multiple`,{defaultValue:`${H==null?void 0:H.actionKey}`,count:ne}):Dr(`notificationAdmin.notify.actionKey.${H==null?void 0:H.actionKey}_single`,{defaultValue:`${H==null?void 0:H.actionKey}`});default:return Dr(`notificationAdmin.notify.actionKey.${H==null?void 0:H.actionKey}`,{defaultValue:`${H==null?void 0:H.message}`})}}return H.message};return de.jsx(de.Fragment,{children:de.jsxs("div",{className:"notitification-item__container",children:[de.jsx("div",{className:"notification-item__image-container",children:de.jsx("img",{src:!t.actorAvatarUrl||t.actorName==="System"?"https://ukpcsaprod.blob.core.windows.net/account/logo.png":t.actorAvatarUrl,onError:({currentTarget:H})=>{console.log("img on error",H),H.onerror=null,H.src="https://ukpcsaprod.blob.core.windows.net/account/logo.png"},alt:t.actorName})}),de.jsxs("div",{style:{width:"calc(100% - 56px)"},children:[de.jsxs("div",{className:"notification-item__content-wrapper",children:[de.jsxs("div",{className:"notification-item__content",children:[de.jsx("p",{className:"notification-item__user-name",children:t.actorName}),de.jsxs(A,{href:t.contextUrl,style:{cursor:t!=null&&t.contextUrl?"pointer":"unset",textDecoration:"none",color:"inherit"},children:[F(t,I),de.jsx("span",{style:{color:t.contextUrl?"#007BFF":"#292929"},children:` ${t!=null&&t.context?t.context:""}`})]}),(t==null?void 0:t.notificationType)==="deleteMultiple"&&de.jsxs("button",{style:{color:mr.primary400,textDecoration:"underline"},onClick:T,children:[o?`${Dr("notificationAdmin.notify.hideText",{defaultValue:"Hide"})} `:`${Dr("notificationAdmin.notify.showText",{defaultValue:"Show"})} `,Dr("notificationAdmin.notify.detailText",{defaultValue:"details"})]})]}),de.jsx("div",{className:"notification-item__time",children:de.jsx("p",{children:E(t.createdAt)})}),de.jsx("button",{className:`${p} notification-item__read-at`,"aria-label":"Mark as read",style:y,onClick:m})]}),o&&de.jsx("div",{style:{background:"#fff",width:"100%",padding:"8px",fontSize:"12px",marginTop:"8px"},children:de.jsx("ul",{children:(U=t==null?void 0:t.data)==null?void 0:U.map((H,ne)=>de.jsxs("li",{style:{display:"flex",alignItems:"center",marginBottom:"4px"},children:[de.jsx("span",{style:{backgroundColor:mr.primary400},className:"list-dot"}),de.jsx("span",{style:{width:"calc(100% - 12px)"},children:H.name})]},ne))})})]})]})})}),UT=z.createContext({}),IL=({children:t})=>{const[e,n]=z.useState(!1),[r,i]=z.useState({all:{total:0},unread:{total:0}}),o=()=>{n(!e)},a=()=>{n(!1)};return de.jsx(UT.Provider,{value:{isOpen:e,toggleOpen:o,setShowModalFalse:a,notidata:r,setNotiData:i},children:t})};function iw(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function AL(t){var e=t.lastRenderedStartIndex,n=t.lastRenderedStopIndex,r=t.startIndex,i=t.stopIndex;return!(r>n||i<e)}function ML(t){for(var e=t.isItemLoaded,n=t.itemCount,r=t.minimumBatchSize,i=t.startIndex,o=t.stopIndex,a=[],c=null,f=null,p=i;p<=o;p++){var y=e(p);y?f!==null&&(a.push(c,f),c=f=null):(f=p,c===null&&(c=p))}if(f!==null){for(var m=Math.min(Math.max(f,c+r-1),n-1),T=f+1;T<=m&&!e(T);T++)f=T;a.push(c,f)}if(a.length)for(;a[1]-a[0]+1<r&&a[0]>0;){var E=a[0]-1;if(!e(E))a[0]=E;else break}return a}var LL=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},FL=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),NL=function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},ow=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t},jL=function(t){NL(e,t);function e(){var n,r,i,o;LL(this,e);for(var a=arguments.length,c=Array(a),f=0;f<a;f++)c[f]=arguments[f];return o=(r=(i=ow(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(c))),i),i._lastRenderedStartIndex=-1,i._lastRenderedStopIndex=-1,i._memoizedUnloadedRanges=[],i._onItemsRendered=function(p){var y=p.visibleStartIndex,m=p.visibleStopIndex;process.env.NODE_ENV!=="production"&&((!iw(y)||!iw(m))&&console.warn("Invalid onItemsRendered signature; please refer to InfiniteLoader documentation."),typeof i.props.loadMoreRows=="function"&&console.warn('InfiniteLoader "loadMoreRows" prop has been renamed to "loadMoreItems".')),i._lastRenderedStartIndex=y,i._lastRenderedStopIndex=m,i._ensureRowsLoaded(y,m)},i._setRef=function(p){i._listRef=p},r),ow(i,o)}return FL(e,[{key:"resetloadMoreItemsCache",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],r&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){process.env.NODE_ENV!=="production"&&this._listRef==null&&console.warn("Invalid list ref; please refer to InfiniteLoader documentation.")}},{key:"render",value:function(){var r=this.props.children;return r({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(r,i){var o=this.props,a=o.isItemLoaded,c=o.itemCount,f=o.minimumBatchSize,p=f===void 0?10:f,y=o.threshold,m=y===void 0?15:y,T=ML({isItemLoaded:a,itemCount:c,minimumBatchSize:p,startIndex:Math.max(0,r-m),stopIndex:Math.min(c-1,i+m)});(this._memoizedUnloadedRanges.length!==T.length||this._memoizedUnloadedRanges.some(function(E,I){return T[I]!==E}))&&(this._memoizedUnloadedRanges=T,this._loadUnloadedRanges(T))}},{key:"_loadUnloadedRanges",value:function(r){for(var i=this,o=this.props.loadMoreItems||this.props.loadMoreRows,a=function(p){var y=r[p],m=r[p+1],T=o(y,m);T!=null&&T.then(function(){if(AL({lastRenderedStartIndex:i._lastRenderedStartIndex,lastRenderedStopIndex:i._lastRenderedStopIndex,startIndex:y,stopIndex:m})){if(i._listRef==null)return;typeof i._listRef.resetAfterIndex=="function"?i._listRef.resetAfterIndex(y,!0):(typeof i._listRef._getItemStyleCache=="function"&&i._listRef._getItemStyleCache(-1),i._listRef.forceUpdate())}})},c=0;c<r.length;c+=2)a(c)}}]),e}(z.PureComponent);function Df(){return Df=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Df.apply(null,arguments)}const BL=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Df}},Symbol.toStringTag,{value:"Module"}));function WT(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Qh(t,e)}const $L="*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}";function Ip({children:t,styles:e=[],...n}){return de.jsxs("div",{...n,children:[[$L,...e].map((r,i)=>de.jsx("style",{type:"text/css",children:r},i)),t]})}function zT(t){return de.jsxs("svg",{width:"34",height:"25",viewBox:"0 0 34 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[de.jsxs("g",{"clip-path":"url(#clip0_16865_28134)",children:[de.jsx("rect",{y:"0.5",width:"34",height:"24",rx:"3",fill:"#1A47B8"}),de.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.61691 0.5H0V4.5L30.3635 24.5L34 24.5V20.5L3.61691 0.5Z",fill:"white"}),de.jsx("path",{d:"M1.20635 0.5L34 22.1567V24.5H32.8219L0 2.82089V0.5H1.20635Z",fill:"#F93939"}),de.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M30.7619 0.5H34V4.5C34 4.5 12.9683 17.8249 3.2381 24.5H0V20.5L30.7619 0.5Z",fill:"white"}),de.jsx("path",{d:"M34 0.5H32.9019L0 22.1753V24.5H1.20635L34 2.83842V0.5Z",fill:"#F93939"}),de.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.3648 0.5H21.6635V7.90291H34V17.0922H21.6635V24.5H12.3648V17.0922H0V7.90291H12.3648V0.5Z",fill:"white"}),de.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.3158 0.5H19.6842V9.73077H34V15.2692H19.6842V24.5H14.3158V15.2692H0V9.73077H14.3158V0.5Z",fill:"#F93939"})]}),de.jsx("defs",{children:de.jsx("clipPath",{id:"clip0_16865_28134",children:de.jsx("rect",{y:"0.5",width:"34",height:"24",rx:"3",fill:"white"})})})]})}function YT({childrenClass:t,action:e,childrenOpenClass:n}){const r=document.querySelector("#topbar-wrapper"),i=r==null?void 0:r.shadowRoot,o=i==null?void 0:i.querySelector(`.${t}`),a=i==null?void 0:i.querySelector(`.${n}`),c=i==null?void 0:i.querySelector("nav"),f=p=>{c==null||c.addEventListener("click",function(y){if(n&&a&&a.contains(y.target)){if(o&&!o.contains(y.target))return}else o&&!o.contains(y.target)&&e()}),r&&!r.contains(p.target)&&e()};document.addEventListener("click",f,!0)}function GT(t){return de.jsxs("svg",{width:"34",height:"24",viewBox:"0 0 34 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[de.jsxs("g",{"clip-path":"url(#clip0_16886_62505)",children:[de.jsx("rect",{width:"34",height:"24",rx:"3",fill:"#F93939"}),de.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 16H34V24H0V16Z",fill:"#FFDA2C"}),de.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 0H34V8H0V0Z",fill:"#151515"})]}),de.jsx("defs",{children:de.jsx("clipPath",{id:"clip0_16886_62505",children:de.jsx("rect",{width:"34",height:"24",rx:"3",fill:"white"})})})]})}const Xv=".languageDropdown{height:100%;padding:0 8px;display:flex;flex-direction:row;gap:8px;border-radius:3px;align-items:center;justify-content:center;height:41px;background-color:#ffffff1a;cursor:pointer;transition:background-color .2s ease-in-out}.languageDropdown:hover{background-color:#fff3}";function VL(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Kv=VL,HL=typeof Di=="object"&&Di&&Di.Object===Object&&Di,UL=HL,WL=UL,zL=typeof self=="object"&&self&&self.Object===Object&&self,YL=WL||zL||Function("return this")(),qT=YL,GL=qT,qL=function(){return GL.Date.now()},XL=qL,KL=/\s/;function ZL(t){for(var e=t.length;e--&&KL.test(t.charAt(e)););return e}var JL=ZL,QL=JL,e2=/^\s+/;function t2(t){return t&&t.slice(0,QL(t)+1).replace(e2,"")}var n2=t2,r2=qT,i2=r2.Symbol,XT=i2,sw=XT,KT=Object.prototype,o2=KT.hasOwnProperty,s2=KT.toString,rd=sw?sw.toStringTag:void 0;function a2(t){var e=o2.call(t,rd),n=t[rd];try{t[rd]=void 0;var r=!0}catch{}var i=s2.call(t);return r&&(e?t[rd]=n:delete t[rd]),i}var l2=a2,u2=Object.prototype,c2=u2.toString;function f2(t){return c2.call(t)}var d2=f2,aw=XT,h2=l2,p2=d2,g2="[object Null]",m2="[object Undefined]",lw=aw?aw.toStringTag:void 0;function v2(t){return t==null?t===void 0?m2:g2:lw&&lw in Object(t)?h2(t):p2(t)}var y2=v2;function b2(t){return t!=null&&typeof t=="object"}var w2=b2,x2=y2,S2=w2,T2="[object Symbol]";function C2(t){return typeof t=="symbol"||S2(t)&&x2(t)==T2}var E2=C2,k2=n2,uw=Kv,D2=E2,cw=NaN,_2=/^[-+]0x[0-9a-f]+$/i,P2=/^0b[01]+$/i,O2=/^0o[0-7]+$/i,R2=parseInt;function I2(t){if(typeof t=="number")return t;if(D2(t))return cw;if(uw(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=uw(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=k2(t);var n=P2.test(t);return n||O2.test(t)?R2(t.slice(2),n?2:8):_2.test(t)?cw:+t}var A2=I2,M2=Kv,Mg=XL,fw=A2,L2="Expected a function",F2=Math.max,N2=Math.min;function j2(t,e,n){var r,i,o,a,c,f,p=0,y=!1,m=!1,T=!0;if(typeof t!="function")throw new TypeError(L2);e=fw(e)||0,M2(n)&&(y=!!n.leading,m="maxWait"in n,o=m?F2(fw(n.maxWait)||0,e):o,T="trailing"in n?!!n.trailing:T);function E(ce){var S=r,re=i;return r=i=void 0,p=ce,a=t.apply(re,S),a}function I(ce){return p=ce,c=setTimeout(R,e),y?E(ce):a}function A(ce){var S=ce-f,re=ce-p,ie=e-S;return m?N2(ie,o-re):ie}function F(ce){var S=ce-f,re=ce-p;return f===void 0||S>=e||S<0||m&&re>=o}function R(){var ce=Mg();if(F(ce))return U(ce);c=setTimeout(R,A(ce))}function U(ce){return c=void 0,T&&r?E(ce):(r=i=void 0,a)}function H(){c!==void 0&&clearTimeout(c),p=0,r=f=i=c=void 0}function ne(){return c===void 0?a:U(Mg())}function Z(){var ce=Mg(),S=F(ce);if(r=arguments,i=this,f=ce,S){if(c===void 0)return I(f);if(m)return clearTimeout(c),c=setTimeout(R,e),E(f)}return c===void 0&&(c=setTimeout(R,e)),a}return Z.cancel=H,Z.flush=ne,Z}var ZT=j2;const Lg=Eu(ZT);var B2=ZT,$2=Kv,V2="Expected a function";function H2(t,e,n){var r=!0,i=!0;if(typeof t!="function")throw new TypeError(V2);return $2(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),B2(t,e,{leading:r,maxWait:e,trailing:i})}var U2=H2;const W2=Eu(U2);var pf=function(){return pf=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},pf.apply(this,arguments)};function JT(t){return!t||!t.ownerDocument||!t.ownerDocument.defaultView?window:t.ownerDocument.defaultView}function QT(t){return!t||!t.ownerDocument?document:t.ownerDocument}var eC=function(t){var e={},n=Array.prototype.reduce.call(t,function(r,i){var o=i.name.match(/data-simplebar-(.+)/);if(o){var a=o[1].replace(/\W+(.)/g,function(c,f){return f.toUpperCase()});switch(i.value){case"true":r[a]=!0;break;case"false":r[a]=!1;break;case void 0:r[a]=!0;break;default:r[a]=i.value}}return r},e);return n};function tC(t,e){var n;t&&(n=t.classList).add.apply(n,e.split(" "))}function nC(t,e){t&&e.split(" ").forEach(function(n){t.classList.remove(n)})}function rC(t){return".".concat(t.split(" ").join("."))}var Zv=!!(typeof window<"u"&&window.document&&window.document.createElement),z2=Object.freeze({__proto__:null,addClasses:tC,canUseDOM:Zv,classNamesToQuery:rC,getElementDocument:QT,getElementWindow:JT,getOptions:eC,removeClasses:nC}),df=null,dw=null;Zv&&window.addEventListener("resize",function(){dw!==window.devicePixelRatio&&(dw=window.devicePixelRatio,df=null)});function hw(){if(df===null){if(typeof document>"u")return df=0,df;var t=document.body,e=document.createElement("div");e.classList.add("simplebar-hide-scrollbar"),t.appendChild(e);var n=e.getBoundingClientRect().right;t.removeChild(e),df=n}return df}var iu=JT,Fg=QT,Y2=eC,ou=tC,su=nC,Oo=rC,id=function(){function t(e,n){n===void 0&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=iu(r.el);r.scrollXTicking||(i.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(i.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,ou(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){su(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(ou(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){su(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(i){r.mouseX=i.clientX,r.mouseY=i.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var o,a;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(o=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(a=r.isWithinBounds(r.axis.y.track.rect)),(o||a)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(o&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(i,"x"):r.onTrackClick(i,"x")),a&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(i,"y"):r.onTrackClick(i,"y"))))}},this.drag=function(i){var o,a,c,f,p,y,m,T,E,I,A;if(!(!r.draggedAxis||!r.contentWrapperEl)){var F,R=r.axis[r.draggedAxis].track,U=(a=(o=R.rect)===null||o===void 0?void 0:o[r.axis[r.draggedAxis].sizeAttr])!==null&&a!==void 0?a:0,H=r.axis[r.draggedAxis].scrollbar,ne=(f=(c=r.contentWrapperEl)===null||c===void 0?void 0:c[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&f!==void 0?f:0,Z=parseInt((y=(p=r.elStyles)===null||p===void 0?void 0:p[r.axis[r.draggedAxis].sizeAttr])!==null&&y!==void 0?y:"0px",10);i.preventDefault(),i.stopPropagation(),r.draggedAxis==="y"?F=i.pageY:F=i.pageX;var ce=F-((T=(m=R.rect)===null||m===void 0?void 0:m[r.axis[r.draggedAxis].offsetAttr])!==null&&T!==void 0?T:0)-r.axis[r.draggedAxis].dragOffset;ce=r.draggedAxis==="x"&&r.isRtl?((I=(E=R.rect)===null||E===void 0?void 0:E[r.axis[r.draggedAxis].sizeAttr])!==null&&I!==void 0?I:0)-H.size-ce:ce;var S=ce/(U-H.size),re=S*(ne-Z);r.draggedAxis==="x"&&r.isRtl&&(re=!((A=t.getRtlHelpers())===null||A===void 0)&&A.isScrollingToNegative?-re:re),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=re}},this.onEndDrag=function(i){r.isDragging=!1;var o=Fg(r.el),a=iu(r.el);i.preventDefault(),i.stopPropagation(),su(r.el,r.classNames.dragging),r.onStopScrolling(),o.removeEventListener("mousemove",r.drag,!0),o.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=a.setTimeout(function(){o.removeEventListener("click",r.preventClick,!0),o.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=e,this.options=pf(pf({},t.defaultOptions),n),this.classNames=pf(pf({},t.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=W2(this._onMouseMove,64),this.onWindowResize=Lg(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Lg(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Lg(this._onMouseEntered,this.stopScrollDelay),this.init()}return t.getRtlHelpers=function(){if(t.rtlHelpers)return t.rtlHelpers;var e=document.createElement("div");e.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=e.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var i=t.getOffset(n),o=t.getOffset(r);n.scrollLeft=-999;var a=t.getOffset(r);return document.body.removeChild(n),t.rtlHelpers={isScrollOriginAtZero:i.left!==o.left,isScrollingToNegative:o.left!==a.left},t.rtlHelpers},t.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:hw()}catch{return hw()}},t.getOffset=function(e){var n=e.getBoundingClientRect(),r=Fg(e),i=iu(e);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},t.prototype.init=function(){Zv&&(this.initDOM(),this.rtlHelpers=t.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},t.prototype.initDOM=function(){var e,n;this.wrapperEl=this.el.querySelector(Oo(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Oo(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Oo(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Oo(this.classNames.offset)),this.maskEl=this.el.querySelector(Oo(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Oo(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Oo(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Oo(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Oo(this.classNames.track)).concat(Oo(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Oo(this.classNames.track)).concat(Oo(this.classNames.vertical))),this.axis.x.scrollbar.el=((e=this.axis.x.track.el)===null||e===void 0?void 0:e.querySelector(Oo(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(Oo(this.classNames.scrollbar)))||null,this.options.autoHide||(ou(this.axis.x.scrollbar.el,this.classNames.visible),ou(this.axis.y.scrollbar.el,this.classNames.visible))},t.prototype.initListeners=function(){var e=this,n,r=iu(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,o=r.ResizeObserver||ResizeObserver;this.resizeObserver=new o(function(){i&&r.requestAnimationFrame(function(){e.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new r.MutationObserver(function(){r.requestAnimationFrame(function(){e.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},t.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var e=iu(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,o=this.contentWrapperEl.offsetWidth,a=this.elStyles.overflowX,c=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var f=this.contentEl.scrollHeight,p=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||p,"px"):"auto",this.placeholderEl.style.height="".concat(f,"px");var y=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&p>n,this.axis.y.isOverflowing=f>y,this.axis.x.isOverflowing=a==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=c==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var m=this.axis.x.isOverflowing?this.scrollbarWidth:0,T=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&p>o-T,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&f>y-m,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},t.prototype.getScrollbarSize=function(e){var n,r;if(e===void 0&&(e="y"),!this.axis[e].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[e].scrollSizeAttr],o=(r=(n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])!==null&&r!==void 0?r:0,a=o/i,c;return c=Math.max(~~(a*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(c=Math.min(c,this.options.scrollbarMaxSize)),c},t.prototype.positionScrollbar=function(e){var n,r,i;e===void 0&&(e="y");var o=this.axis[e].scrollbar;if(!(!this.axis[e].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var a=this.contentWrapperEl[this.axis[e].scrollSizeAttr],c=((n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])||0,f=parseInt(this.elStyles[this.axis[e].sizeAttr],10),p=this.contentWrapperEl[this.axis[e].scrollOffsetAttr];p=e==="x"&&this.isRtl&&(!((r=t.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-p:p,e==="x"&&this.isRtl&&(p=!((i=t.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?p:-p);var y=p/(a-f),m=~~((c-o.size)*y);m=e==="x"&&this.isRtl?-m+(c-o.size):m,o.el.style.transform=e==="x"?"translate3d(".concat(m,"px, 0, 0)"):"translate3d(0, ".concat(m,"px, 0)")}},t.prototype.toggleTrackVisibility=function(e){e===void 0&&(e="y");var n=this.axis[e].track.el,r=this.axis[e].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[e].isOverflowing||this.axis[e].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(e))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(e))),this.axis[e].isOverflowing?r.style.display="block":r.style.display="none")},t.prototype.showScrollbar=function(e){e===void 0&&(e="y"),this.axis[e].isOverflowing&&!this.axis[e].scrollbar.isVisible&&(ou(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!0)},t.prototype.hideScrollbar=function(e){e===void 0&&(e="y"),!this.isDragging&&this.axis[e].isOverflowing&&this.axis[e].scrollbar.isVisible&&(su(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!1)},t.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},t.prototype.onMouseMoveForAxis=function(e){e===void 0&&(e="y");var n=this.axis[e];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(e),ou(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?ou(n.scrollbar.el,this.classNames.hover):su(n.scrollbar.el,this.classNames.hover)):(su(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},t.prototype.onMouseLeaveForAxis=function(e){e===void 0&&(e="y"),su(this.axis[e].track.el,this.classNames.hover),su(this.axis[e].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)},t.prototype.onDragStart=function(e,n){var r;n===void 0&&(n="y"),this.isDragging=!0;var i=Fg(this.el),o=iu(this.el),a=this.axis[n].scrollbar,c=n==="y"?e.pageY:e.pageX;this.axis[n].dragOffset=c-(((r=a.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,ou(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.prototype.onTrackClick=function(e,n){var r=this,i,o,a,c;n===void 0&&(n="y");var f=this.axis[n];if(!(!this.options.clickOnTrack||!f.scrollbar.el||!this.contentWrapperEl)){e.preventDefault();var p=iu(this.el);this.axis[n].scrollbar.rect=f.scrollbar.el.getBoundingClientRect();var y=this.axis[n].scrollbar,m=(o=(i=y.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&o!==void 0?o:0,T=parseInt((c=(a=this.elStyles)===null||a===void 0?void 0:a[this.axis[n].sizeAttr])!==null&&c!==void 0?c:"0px",10),E=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],I=n==="y"?this.mouseY-m:this.mouseX-m,A=I<0?-1:1,F=A===-1?E-T:E+T,R=40,U=function(){r.contentWrapperEl&&(A===-1?E>F&&(E-=R,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=E,p.requestAnimationFrame(U)):E<F&&(E+=R,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=E,p.requestAnimationFrame(U)))};U()}},t.prototype.getContentElement=function(){return this.contentEl},t.prototype.getScrollElement=function(){return this.contentWrapperEl},t.prototype.removeListeners=function(){var e=iu(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},t.prototype.unMount=function(){this.removeListeners()},t.prototype.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},t.prototype.findChild=function(e,n){var r=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,function(i){return r.call(i,n)})[0]},t.rtlHelpers=null,t.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},t.getOptions=Y2,t.helpers=z2,t}(),Zo=function(){return Zo=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Zo.apply(this,arguments)};function G2(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}var sp=kn.forwardRef(function(t,e){var n=t.children,r=t.scrollableNodeProps,i=r===void 0?{}:r,o=G2(t,["children","scrollableNodeProps"]),a=kn.useRef(),c=kn.useRef(),f=kn.useRef(),p={},y={};Object.keys(o).forEach(function(E){Object.prototype.hasOwnProperty.call(id.defaultOptions,E)?p[E]=o[E]:y[E]=o[E]});var m=Zo(Zo({},id.defaultOptions.classNames),p.classNames),T=Zo(Zo({},i),{className:"".concat(m.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:p.tabIndex||id.defaultOptions.tabIndex,role:"region","aria-label":p.ariaLabel||id.defaultOptions.ariaLabel});return kn.useEffect(function(){var E;return c.current=T.ref?T.ref.current:c.current,a.current&&(E=new id(a.current,Zo(Zo(Zo({},p),c.current&&{scrollableNode:c.current}),f.current&&{contentNode:f.current})),typeof e=="function"?e(E):e&&(e.current=E)),function(){E==null||E.unMount(),E=null,typeof e=="function"&&e(null)}},[]),kn.createElement("div",Zo({"data-simplebar":"init",ref:a},y),kn.createElement("div",{className:m.wrapper},kn.createElement("div",{className:m.heightAutoObserverWrapperEl},kn.createElement("div",{className:m.heightAutoObserverEl})),kn.createElement("div",{className:m.mask},kn.createElement("div",{className:m.offset},typeof n=="function"?n({scrollableNodeRef:c,scrollableNodeProps:Zo(Zo({},T),{ref:c}),contentNodeRef:f,contentNodeProps:{className:m.contentEl,ref:f}}):kn.createElement("div",Zo({},T),kn.createElement("div",{className:m.contentEl},n)))),kn.createElement("div",{className:m.placeholder})),kn.createElement("div",{className:"".concat(m.track," simplebar-horizontal")},kn.createElement("div",{className:m.scrollbar})),kn.createElement("div",{className:"".concat(m.track," simplebar-vertical")},kn.createElement("div",{className:m.scrollbar})))});sp.displayName="SimpleBar";const iC='[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}';function oC(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=oC(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function wl(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=oC(t))&&(r&&(r+=" "),r+=e);return r}const Id=t=>typeof t=="number"&&!isNaN(t),xc=t=>typeof t=="string",Jo=t=>typeof t=="function",$h=t=>xc(t)||Jo(t)?t:null,Hm=t=>z.isValidElement(t)||xc(t)||Jo(t)||Id(t);function q2(t,e,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=t;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(e,n)})})}function Ap(t){let{enter:e,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=t;return function(a){let{children:c,position:f,preventExitTransition:p,done:y,nodeRef:m,isIn:T,playToast:E}=a;const I=r?`${e}--${f}`:e,A=r?`${n}--${f}`:n,F=z.useRef(0);return z.useLayoutEffect(()=>{const R=m.current,U=I.split(" "),H=ne=>{ne.target===m.current&&(E(),R.removeEventListener("animationend",H),R.removeEventListener("animationcancel",H),F.current===0&&ne.type!=="animationcancel"&&R.classList.remove(...U))};R.classList.add(...U),R.addEventListener("animationend",H),R.addEventListener("animationcancel",H)},[]),z.useEffect(()=>{const R=m.current,U=()=>{R.removeEventListener("animationend",U),i?q2(R,y,o):y()};T||(p?U():(F.current=1,R.className+=` ${A}`,R.addEventListener("animationend",U)))},[T]),z.createElement(z.Fragment,null,c)}}function pw(t,e){return t!=null?{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:e}:{}}const so=new Map;let Ad=[];const Um=new Set,X2=t=>Um.forEach(e=>e(t)),sC=()=>so.size>0;function aC(t,e){var n;if(e)return!((n=so.get(e))==null||!n.isToastActive(t));let r=!1;return so.forEach(i=>{i.isToastActive(t)&&(r=!0)}),r}function lC(t,e){Hm(t)&&(sC()||Ad.push({content:t,options:e}),so.forEach(n=>{n.buildToast(t,e)}))}function gw(t,e){so.forEach(n=>{e!=null&&e!=null&&e.containerId?(e==null?void 0:e.containerId)===n.id&&n.toggle(t,e==null?void 0:e.id):n.toggle(t,e==null?void 0:e.id)})}function K2(t){const{subscribe:e,getSnapshot:n,setProps:r}=z.useRef(function(o){const a=o.containerId||1;return{subscribe(c){const f=function(y,m,T){let E=1,I=0,A=[],F=[],R=[],U=m;const H=new Map,ne=new Set,Z=()=>{R=Array.from(H.values()),ne.forEach(re=>re())},ce=re=>{F=re==null?[]:F.filter(ie=>ie!==re),Z()},S=re=>{const{toastId:ie,onOpen:Pe,updateId:Ke,children:$e}=re.props,tt=Ke==null;re.staleId&&H.delete(re.staleId),H.set(ie,re),F=[...F,re.props.toastId].filter(nt=>nt!==re.staleId),Z(),T(pw(re,tt?"added":"updated")),tt&&Jo(Pe)&&Pe(z.isValidElement($e)&&$e.props)};return{id:y,props:U,observe:re=>(ne.add(re),()=>ne.delete(re)),toggle:(re,ie)=>{H.forEach(Pe=>{ie!=null&&ie!==Pe.props.toastId||Jo(Pe.toggle)&&Pe.toggle(re)})},removeToast:ce,toasts:H,clearQueue:()=>{I-=A.length,A=[]},buildToast:(re,ie)=>{if((De=>{let{containerId:je,toastId:Ie,updateId:Be}=De;const Ue=je?je!==y:y!==1,it=H.has(Ie)&&Be==null;return Ue||it})(ie))return;const{toastId:Pe,updateId:Ke,data:$e,staleId:tt,delay:nt}=ie,ge=()=>{ce(Pe)},_e=Ke==null;_e&&I++;const Re={...U,style:U.toastStyle,key:E++,...Object.fromEntries(Object.entries(ie).filter(De=>{let[je,Ie]=De;return Ie!=null})),toastId:Pe,updateId:Ke,data:$e,closeToast:ge,isIn:!1,className:$h(ie.className||U.toastClassName),bodyClassName:$h(ie.bodyClassName||U.bodyClassName),progressClassName:$h(ie.progressClassName||U.progressClassName),autoClose:!ie.isLoading&&(Ae=ie.autoClose,et=U.autoClose,Ae===!1||Id(Ae)&&Ae>0?Ae:et),deleteToast(){const De=H.get(Pe),{onClose:je,children:Ie}=De.props;Jo(je)&&je(z.isValidElement(Ie)&&Ie.props),T(pw(De,"removed")),H.delete(Pe),I--,I<0&&(I=0),A.length>0?S(A.shift()):Z()}};var Ae,et;Re.closeButton=U.closeButton,ie.closeButton===!1||Hm(ie.closeButton)?Re.closeButton=ie.closeButton:ie.closeButton===!0&&(Re.closeButton=!Hm(U.closeButton)||U.closeButton);let ye=re;z.isValidElement(re)&&!xc(re.type)?ye=z.cloneElement(re,{closeToast:ge,toastProps:Re,data:$e}):Jo(re)&&(ye=re({closeToast:ge,toastProps:Re,data:$e}));const ue={content:ye,props:Re,staleId:tt};U.limit&&U.limit>0&&I>U.limit&&_e?A.push(ue):Id(nt)?setTimeout(()=>{S(ue)},nt):S(ue)},setProps(re){U=re},setToggle:(re,ie)=>{H.get(re).toggle=ie},isToastActive:re=>F.some(ie=>ie===re),getSnapshot:()=>R}}(a,o,X2);so.set(a,f);const p=f.observe(c);return Ad.forEach(y=>lC(y.content,y.options)),Ad=[],()=>{p(),so.delete(a)}},setProps(c){var f;(f=so.get(a))==null||f.setProps(c)},getSnapshot(){var c;return(c=so.get(a))==null?void 0:c.getSnapshot()}}}(t)).current;r(t);const i=z.useSyncExternalStore(e,n,n);return{getToastToRender:function(o){if(!i)return[];const a=new Map;return t.newestOnTop&&i.reverse(),i.forEach(c=>{const{position:f}=c.props;a.has(f)||a.set(f,[]),a.get(f).push(c)}),Array.from(a,c=>o(c[0],c[1]))},isToastActive:aC,count:i==null?void 0:i.length}}function Z2(t){const[e,n]=z.useState(!1),[r,i]=z.useState(!1),o=z.useRef(null),a=z.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:c,pauseOnHover:f,closeToast:p,onClick:y,closeOnClick:m}=t;var T,E;function I(){n(!0)}function A(){n(!1)}function F(H){const ne=o.current;a.canDrag&&ne&&(a.didMove=!0,e&&A(),a.delta=t.draggableDirection==="x"?H.clientX-a.start:H.clientY-a.start,a.start!==H.clientX&&(a.canCloseOnClick=!1),ne.style.transform=`translate3d(${t.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,ne.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function R(){document.removeEventListener("pointermove",F),document.removeEventListener("pointerup",R);const H=o.current;if(a.canDrag&&a.didMove&&H){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return i(!0),t.closeToast(),void t.collapseAll();H.style.transition="transform 0.2s, opacity 0.2s",H.style.removeProperty("transform"),H.style.removeProperty("opacity")}}(E=so.get((T={id:t.toastId,containerId:t.containerId,fn:n}).containerId||1))==null||E.setToggle(T.id,T.fn),z.useEffect(()=>{if(t.pauseOnFocusLoss)return document.hasFocus()||A(),window.addEventListener("focus",I),window.addEventListener("blur",A),()=>{window.removeEventListener("focus",I),window.removeEventListener("blur",A)}},[t.pauseOnFocusLoss]);const U={onPointerDown:function(H){if(t.draggable===!0||t.draggable===H.pointerType){a.didMove=!1,document.addEventListener("pointermove",F),document.addEventListener("pointerup",R);const ne=o.current;a.canCloseOnClick=!0,a.canDrag=!0,ne.style.transition="none",t.draggableDirection==="x"?(a.start=H.clientX,a.removalDistance=ne.offsetWidth*(t.draggablePercent/100)):(a.start=H.clientY,a.removalDistance=ne.offsetHeight*(t.draggablePercent===80?1.5*t.draggablePercent:t.draggablePercent)/100)}},onPointerUp:function(H){const{top:ne,bottom:Z,left:ce,right:S}=o.current.getBoundingClientRect();H.nativeEvent.type!=="touchend"&&t.pauseOnHover&&H.clientX>=ce&&H.clientX<=S&&H.clientY>=ne&&H.clientY<=Z?A():I()}};return c&&f&&(U.onMouseEnter=A,t.stacked||(U.onMouseLeave=I)),m&&(U.onClick=H=>{y&&y(H),a.canCloseOnClick&&p()}),{playToast:I,pauseToast:A,isRunning:e,preventExitTransition:r,toastRef:o,eventHandlers:U}}function J2(t){let{delay:e,isRunning:n,closeToast:r,type:i="default",hide:o,className:a,style:c,controlledProgress:f,progress:p,rtl:y,isIn:m,theme:T}=t;const E=o||f&&p===0,I={...c,animationDuration:`${e}ms`,animationPlayState:n?"running":"paused"};f&&(I.transform=`scaleX(${p})`);const A=wl("Toastify__progress-bar",f?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${T}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":y}),F=Jo(a)?a({rtl:y,type:i,defaultClassName:A}):wl(A,a),R={[f&&p>=1?"onTransitionEnd":"onAnimationEnd"]:f&&p<1?null:()=>{m&&r()}};return z.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":E},z.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${T} Toastify__progress-bar--${i}`}),z.createElement("div",{role:"progressbar","aria-hidden":E?"true":"false","aria-label":"notification timer",className:F,style:I,...R}))}let Q2=1;const uC=()=>""+Q2++;function eF(t){return t&&(xc(t.toastId)||Id(t.toastId))?t.toastId:uC()}function md(t,e){return lC(t,e),e.toastId}function ap(t,e){return{...e,type:e&&e.type||t,toastId:eF(e)}}function bh(t){return(e,n)=>md(e,ap(t,n))}function xn(t,e){return md(t,ap("default",e))}xn.loading=(t,e)=>md(t,ap("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),xn.promise=function(t,e,n){let r,{pending:i,error:o,success:a}=e;i&&(r=xc(i)?xn.loading(i,n):xn.loading(i.render,{...n,...i}));const c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},f=(y,m,T)=>{if(m==null)return void xn.dismiss(r);const E={type:y,...c,...n,data:T},I=xc(m)?{render:m}:m;return r?xn.update(r,{...E,...I}):xn(I.render,{...E,...I}),T},p=Jo(t)?t():t;return p.then(y=>f("success",a,y)).catch(y=>f("error",o,y)),p},xn.success=bh("success"),xn.info=bh("info"),xn.error=bh("error"),xn.warning=bh("warning"),xn.warn=xn.warning,xn.dark=(t,e)=>md(t,ap("default",{theme:"dark",...e})),xn.dismiss=function(t){(function(e){var n;if(sC()){if(e==null||xc(n=e)||Id(n))so.forEach(r=>{r.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){const r=so.get(e.containerId);r?r.removeToast(e.id):so.forEach(i=>{i.removeToast(e.id)})}}else Ad=Ad.filter(r=>e!=null&&r.options.toastId!==e)})(t)},xn.clearWaitingQueue=function(t){t===void 0&&(t={}),so.forEach(e=>{!e.props.limit||t.containerId&&e.id!==t.containerId||e.clearQueue()})},xn.isActive=aC,xn.update=function(t,e){e===void 0&&(e={});const n=((r,i)=>{var o;let{containerId:a}=i;return(o=so.get(a||1))==null?void 0:o.toasts.get(r)})(t,e);if(n){const{props:r,content:i}=n,o={delay:100,...r,...e,toastId:e.toastId||t,updateId:uC()};o.toastId!==t&&(o.staleId=t);const a=o.render||i;delete o.render,md(a,o)}},xn.done=t=>{xn.update(t,{progress:1})},xn.onChange=function(t){return Um.add(t),()=>{Um.delete(t)}},xn.play=t=>gw(!0,t),xn.pause=t=>gw(!1,t);const tF=typeof window<"u"?z.useLayoutEffect:z.useEffect,wh=t=>{let{theme:e,type:n,isLoading:r,...i}=t;return z.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},Ng={info:function(t){return z.createElement(wh,{...t},z.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(t){return z.createElement(wh,{...t},z.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(t){return z.createElement(wh,{...t},z.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(t){return z.createElement(wh,{...t},z.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return z.createElement("div",{className:"Toastify__spinner"})}},nF=t=>{const{isRunning:e,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=Z2(t),{closeButton:a,children:c,autoClose:f,onClick:p,type:y,hideProgressBar:m,closeToast:T,transition:E,position:I,className:A,style:F,bodyClassName:R,bodyStyle:U,progressClassName:H,progressStyle:ne,updateId:Z,role:ce,progress:S,rtl:re,toastId:ie,deleteToast:Pe,isIn:Ke,isLoading:$e,closeOnClick:tt,theme:nt}=t,ge=wl("Toastify__toast",`Toastify__toast-theme--${nt}`,`Toastify__toast--${y}`,{"Toastify__toast--rtl":re},{"Toastify__toast--close-on-click":tt}),_e=Jo(A)?A({rtl:re,position:I,type:y,defaultClassName:ge}):wl(ge,A),Re=function(ue){let{theme:De,type:je,isLoading:Ie,icon:Be}=ue,Ue=null;const it={theme:De,type:je};return Be===!1||(Jo(Be)?Ue=Be({...it,isLoading:Ie}):z.isValidElement(Be)?Ue=z.cloneElement(Be,it):Ie?Ue=Ng.spinner():(rt=>rt in Ng)(je)&&(Ue=Ng[je](it))),Ue}(t),Ae=!!S||!f,et={closeToast:T,type:y,theme:nt};let ye=null;return a===!1||(ye=Jo(a)?a(et):z.isValidElement(a)?z.cloneElement(a,et):function(ue){let{closeToast:De,theme:je,ariaLabel:Ie="close"}=ue;return z.createElement("button",{className:`Toastify__close-button Toastify__close-button--${je}`,type:"button",onClick:Be=>{Be.stopPropagation(),De(Be)},"aria-label":Ie},z.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},z.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(et)),z.createElement(E,{isIn:Ke,done:Pe,position:I,preventExitTransition:n,nodeRef:r,playToast:o},z.createElement("div",{id:ie,onClick:p,"data-in":Ke,className:_e,...i,style:F,ref:r},z.createElement("div",{...Ke&&{role:ce},className:Jo(R)?R({type:y}):wl("Toastify__toast-body",R),style:U},Re!=null&&z.createElement("div",{className:wl("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!$e})},Re),z.createElement("div",null,c)),ye,z.createElement(J2,{...Z&&!Ae?{key:`pb-${Z}`}:{},rtl:re,theme:nt,delay:f,isRunning:e,isIn:Ke,closeToast:T,hide:m,type:y,style:ne,className:H,controlledProgress:Ae,progress:S||0})))},Mp=function(t,e){return e===void 0&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},rF=Ap(Mp("bounce",!0));Ap(Mp("slide",!0));Ap(Mp("zoom"));Ap(Mp("flip"));const iF={position:"top-right",transition:rF,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function oF(t){let e={...iF,...t};const n=t.stacked,[r,i]=z.useState(!0),o=z.useRef(null),{getToastToRender:a,isToastActive:c,count:f}=K2(e),{className:p,style:y,rtl:m,containerId:T}=e;function E(A){const F=wl("Toastify__toast-container",`Toastify__toast-container--${A}`,{"Toastify__toast-container--rtl":m});return Jo(p)?p({position:A,rtl:m,defaultClassName:F}):wl(F,$h(p))}function I(){n&&(i(!0),xn.play())}return tF(()=>{if(n){var A;const F=o.current.querySelectorAll('[data-in="true"]'),R=12,U=(A=e.position)==null?void 0:A.includes("top");let H=0,ne=0;Array.from(F).reverse().forEach((Z,ce)=>{const S=Z;S.classList.add("Toastify__toast--stacked"),ce>0&&(S.dataset.collapsed=`${r}`),S.dataset.pos||(S.dataset.pos=U?"top":"bot");const re=H*(r?.2:1)+(r?0:R*ce);S.style.setProperty("--y",`${U?re:-1*re}px`),S.style.setProperty("--g",`${R}`),S.style.setProperty("--s",""+(1-(r?ne:0))),H+=S.offsetHeight,ne+=.025})}},[r,f,n]),z.createElement("div",{ref:o,className:"Toastify",id:T,onMouseEnter:()=>{n&&(i(!1),xn.pause())},onMouseLeave:I},a((A,F)=>{const R=F.length?{...y}:{...y,pointerEvents:"none"};return z.createElement("div",{className:E(A),style:R,key:`container-${A}`},F.map(U=>{let{content:H,props:ne}=U;return z.createElement(nF,{...ne,stacked:n,collapseAll:I,isIn:c(ne.toastId,ne.containerId),style:ne.style,key:`toast-${ne.key}`},H)}))}))}function sF(){return de.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[de.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 1C16.5222 1 21 5.47676 21 11C21 16.5222 16.5222 21 11 21C5.47676 21 1 16.5222 1 11C1 5.47676 5.47676 1 11 1Z",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),de.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),de.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function aF(){return de.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[de.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#009D4F"}),de.jsx("path",{d:"M7.25244 12L10.4174 15.165L16.7474 8.83496",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function lF(){return de.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[de.jsx("path",{d:"M12 7.73684V13.4211M12 21C7.69215 21 5.53823 21 4.29308 20.0953C3.20701 19.3063 2.50676 18.0934 2.36643 16.7583C2.20555 15.2276 3.28252 13.3623 5.43644 9.63158C7.59036 5.90088 8.66732 4.03553 10.0734 3.40952C11.2998 2.86349 12.7002 2.86349 13.9266 3.40952C15.3327 4.03553 16.4096 5.90088 18.5636 9.63158C20.7175 13.3623 21.7944 15.2276 21.6336 16.7583C21.4932 18.0934 20.793 19.3063 19.7069 20.0953C18.4618 21 16.3078 21 12 21Z",stroke:"#FFB600","stroke-width":"1.5","stroke-linecap":"round"}),de.jsx("path",{d:"M12.9473 16.263C12.9473 16.7863 12.5232 17.2104 12 17.2104C11.4768 17.2104 11.0526 16.7863 11.0526 16.263C11.0526 15.7398 11.4768 15.3157 12 15.3157C12.5232 15.3157 12.9473 15.7398 12.9473 16.263Z",fill:"#FFB600"})]})}const Jv={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},uF=({closeToast:t})=>de.jsx("i",{className:"material-icons",onClick:t,style:{cursor:"pointer"},children:de.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:de.jsx("path",{d:"M7.05086 6.13616C6.66033 5.74563 6.02717 5.74563 5.63664 6.13616C5.24612 6.52668 5.24612 7.15984 5.63664 7.55037L10.5864 12.5001L5.63664 17.4499C5.24612 17.8404 5.24612 18.4736 5.63664 18.8641C6.02717 19.2546 6.66033 19.2546 7.05086 18.8641L12.0006 13.9143L16.9504 18.8641C17.3409 19.2546 17.974 19.2546 18.3646 18.8641C18.7551 18.4736 18.7551 17.8404 18.3646 17.4499L13.4148 12.5001L18.3646 7.55037C18.7551 7.15984 18.7551 6.52668 18.3646 6.13616C17.974 5.74563 17.3409 5.74563 16.9504 6.13616L12.0006 11.0859L7.05086 6.13616Z",fill:"#85858A"})})}),Qv=(t,e)=>{xn.success(t,{icon:de.jsx(aF,{}),bodyStyle:{},style:{...Jv,background:mr.successLight,borderColor:mr.success,color:mr.success},...e})},Gd=(t,e)=>{xn.error(t,{icon:de.jsx(sF,{}),style:{...Jv,background:mr.dangerLight,borderColor:mr.danger,color:mr.danger},...e})},cF=(t,e)=>{xn.error(t,{icon:de.jsx(lF,{}),style:{...Jv,background:mr.warningLight,borderColor:mr.warning,color:mr.warning},...e})},fF=t=>{xn(t,{closeButton:uF,toastId:"notify",position:"top-right",hideProgressBar:!0,containerId:"toastifyNotification",style:{padding:"12px 24px 12px 0",paddingLeft:"16px",fontFamily:"inherit",width:"610px",minHeight:"72px",color:mr.textPrimary}})};function cC(t){let e=null;return()=>(e==null&&(e=t()),e)}function dF(t,e){return t.filter(n=>n!==e)}function hF(t,e){const n=new Set,r=o=>n.add(o);t.forEach(r),e.forEach(r);const i=[];return n.forEach(o=>i.push(o)),i}class pF{enter(e){const n=this.entered.length,r=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(e));return this.entered=hF(this.entered.filter(r),[e]),n===0&&this.entered.length>0}leave(e){const n=this.entered.length;return this.entered=dF(this.entered.filter(this.isNodeInDocument),e),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class gF{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const i=this.config.exposeProperties[r];i!=null&&(n[r]={value:i(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,n){return n===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const fC="__NATIVE_FILE__",dC="__NATIVE_URL__",hC="__NATIVE_TEXT__",pC="__NATIVE_HTML__",mw=Object.freeze(Object.defineProperty({__proto__:null,FILE:fC,HTML:pC,TEXT:hC,URL:dC},Symbol.toStringTag,{value:"Module"}));function jg(t,e,n){const r=e.reduce((i,o)=>i||t.getData(o),"");return r??n}const Wm={[fC]:{exposeProperties:{files:t=>Array.prototype.slice.call(t.files),items:t=>t.items,dataTransfer:t=>t},matchesTypes:["Files"]},[pC]:{exposeProperties:{html:(t,e)=>jg(t,e,""),dataTransfer:t=>t},matchesTypes:["Html","text/html"]},[dC]:{exposeProperties:{urls:(t,e)=>jg(t,e,"").split(`
|
|
4
|
+
`),dataTransfer:t=>t},matchesTypes:["Url","text/uri-list"]},[hC]:{exposeProperties:{text:(t,e)=>jg(t,e,""),dataTransfer:t=>t},matchesTypes:["Text","text/plain"]}};function mF(t,e){const n=Wm[t];if(!n)throw new Error(`native type ${t} has no configuration`);const r=new gF(n);return r.loadDataTransfer(e),r}function Bg(t){if(!t)return null;const e=Array.prototype.slice.call(t.types||[]);return Object.keys(Wm).filter(n=>{const r=Wm[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(i=>e.indexOf(i)>-1):!1})[0]||null}const vF=cC(()=>/firefox/i.test(navigator.userAgent)),gC=cC(()=>!!window.safari);class vw{interpolate(e){const{xs:n,ys:r,c1s:i,c2s:o,c3s:a}=this;let c=n.length-1;if(e===n[c])return r[c];let f=0,p=a.length-1,y;for(;f<=p;){y=Math.floor(.5*(f+p));const E=n[y];if(E<e)f=y+1;else if(E>e)p=y-1;else return r[y]}c=Math.max(0,p);const m=e-n[c],T=m*m;return r[c]+i[c]*m+o[c]*T+a[c]*m*T}constructor(e,n){const{length:r}=e,i=[];for(let E=0;E<r;E++)i.push(E);i.sort((E,I)=>e[E]<e[I]?-1:1);const o=[],a=[];let c,f;for(let E=0;E<r-1;E++)c=e[E+1]-e[E],f=n[E+1]-n[E],o.push(c),a.push(f/c);const p=[a[0]];for(let E=0;E<o.length-1;E++){const I=a[E],A=a[E+1];if(I*A<=0)p.push(0);else{c=o[E];const F=o[E+1],R=c+F;p.push(3*R/((R+F)/I+(R+c)/A))}}p.push(a[a.length-1]);const y=[],m=[];let T;for(let E=0;E<p.length-1;E++){T=a[E];const I=p[E],A=1/o[E],F=I+p[E+1]-T-T;y.push((T-I-F)*A),m.push(F*A*A)}this.xs=e,this.ys=n,this.c1s=p,this.c2s=y,this.c3s=m}}const yF=1;function mC(t){const e=t.nodeType===yF?t:t.parentElement;if(!e)return null;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function xh(t){return{x:t.clientX,y:t.clientY}}function bF(t){var e;return t.nodeName==="IMG"&&(vF()||!(!((e=document.documentElement)===null||e===void 0)&&e.contains(t)))}function wF(t,e,n,r){let i=t?e.width:n,o=t?e.height:r;return gC()&&t&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function xF(t,e,n,r,i){const o=bF(e),c=mC(o?t:e),f={x:n.x-c.x,y:n.y-c.y},{offsetWidth:p,offsetHeight:y}=t,{anchorX:m,anchorY:T}=r,{dragPreviewWidth:E,dragPreviewHeight:I}=wF(o,e,p,y),A=()=>{let ce=new vw([0,.5,1],[f.y,f.y/y*I,f.y+I-y]).interpolate(T);return gC()&&o&&(ce+=(window.devicePixelRatio-1)*I),ce},F=()=>new vw([0,.5,1],[f.x,f.x/p*E,f.x+E-p]).interpolate(m),{offsetX:R,offsetY:U}=i,H=R===0||R,ne=U===0||U;return{x:H?R:F(),y:ne?U:A()}}let SF=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var e;return!((e=this.globalContext)===null||e===void 0)&&e.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return((e=this.optionsArgs)===null||e===void 0?void 0:e.rootElement)||this.window}constructor(e,n){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=n}};function TF(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yw(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){TF(t,i,n[i])})}return t}class CF{profile(){var e,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((e=this.dragStartSourceIds)===null||e===void 0?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(e!==void 0){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;if(e!==void 0&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,n,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,n),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,n,r){this.sourceNodes.set(e,n),this.sourceNodeOptions.set(e,r);const i=a=>this.handleDragStart(a,e),o=a=>this.handleSelectStart(a);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",i),n.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),n.removeEventListener("dragstart",i),n.removeEventListener("selectstart",o),n.setAttribute("draggable","false")}}connectDropTarget(e,n){const r=a=>this.handleDragEnter(a,e),i=a=>this.handleDragOver(a,e),o=a=>this.handleDrop(a,e);return n.addEventListener("dragenter",r),n.addEventListener("dragover",i),n.addEventListener("drop",o),()=>{n.removeEventListener("dragenter",r),n.removeEventListener("dragover",i),n.removeEventListener("drop",o)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(e);return yw({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(e);return yw({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(mw).some(n=>mw[n]===e)}beginDragNativeItem(e,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=mF(e,n),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)===null||e===void 0||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,n){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(e,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(e,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(e,n){this.dropTargetIds.unshift(n)}constructor(e,n,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&mC(o)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=i=>!!(i&&this.document&&this.document.body&&this.document.body.contains(i)),this.endDragIfSourceWasRemovedFromDOM=()=>{const i=this.currentDragSourceNode;i==null||this.isNodeInDocument(i)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=i=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(i||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=i=>{if(i.defaultPrevented)return;const{dragStartSourceIds:o}=this;this.dragStartSourceIds=null;const a=xh(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:a});const{dataTransfer:c}=i,f=Bg(c);if(this.monitor.isDragging()){if(c&&typeof c.setDragImage=="function"){const y=this.monitor.getSourceId(),m=this.sourceNodes.get(y),T=this.sourcePreviewNodes.get(y)||m;if(T){const{anchorX:E,anchorY:I,offsetX:A,offsetY:F}=this.getCurrentSourcePreviewNodeOptions(),H=xF(m,T,a,{anchorX:E,anchorY:I},{offsetX:A,offsetY:F});c.setDragImage(T,H.x,H.y)}}try{c==null||c.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(i.target);const{captureDraggingState:p}=this.getCurrentSourcePreviewNodeOptions();p?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(f)this.beginDragNativeItem(f);else{if(c&&!c.types&&(i.target&&!i.target.hasAttribute||!i.target.hasAttribute("draggable")))return;i.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=i=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}if(!this.enterLeaveCounter.enter(i.target)||this.monitor.isDragging())return;const{dataTransfer:c}=i,f=Bg(c);f&&this.beginDragNativeItem(f,c)},this.handleTopDragEnter=i=>{const{dragEnterTargetIds:o}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=i.altKey,o.length>0&&this.actions.hover(o,{clientOffset:xh(i)}),o.some(c=>this.monitor.canDropOnTarget(c))&&(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=i=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}},this.handleTopDragOver=i=>{const{dragOverTargetIds:o}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none");return}this.altKeyPressed=i.altKey,this.lastClientOffset=xh(i),this.scheduleHover(o),(o||[]).some(c=>this.monitor.canDropOnTarget(c))?(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?i.preventDefault():(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=i=>{this.isDraggingNativeItem()&&i.preventDefault(),this.enterLeaveCounter.leave(i.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=i=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var o;i.preventDefault(),(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}else Bg(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:o}=this;this.dropTargetIds=[],this.actions.hover(o,{clientOffset:xh(i)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=i=>{const o=i.target;typeof o.dragDrop=="function"&&(o.tagName==="INPUT"||o.tagName==="SELECT"||o.tagName==="TEXTAREA"||o.isContentEditable||(i.preventDefault(),o.dragDrop()))},this.options=new SF(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new pF(this.isNodeInDocument)}}let Sh;function EF(){return Sh||(Sh=new Image,Sh.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),Sh}const lp=function(e,n,r){return new CF(e,n,r)};var Sc=[],kF=function(){return Sc.some(function(t){return t.activeTargets.length>0})},DF=function(){return Sc.some(function(t){return t.skippedTargets.length>0})},bw="ResizeObserver loop completed with undelivered notifications.",_F=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:bw}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=bw),window.dispatchEvent(t)},Md;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Md||(Md={}));var Tc=function(t){return Object.freeze(t)},PF=function(){function t(e,n){this.inlineSize=e,this.blockSize=n,Tc(this)}return t}(),vC=function(){function t(e,n,r,i){return this.x=e,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Tc(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,r=e.y,i=e.top,o=e.right,a=e.bottom,c=e.left,f=e.width,p=e.height;return{x:n,y:r,top:i,right:o,bottom:a,left:c,width:f,height:p}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),ey=function(t){return t instanceof SVGElement&&"getBBox"in t},yC=function(t){if(ey(t)){var e=t.getBBox(),n=e.width,r=e.height;return!n&&!r}var i=t,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||t.getClientRects().length)},ww=function(t){var e;if(t instanceof Element)return!0;var n=(e=t==null?void 0:t.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},OF=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},vd=typeof window<"u"?window:{},Th=new WeakMap,xw=/auto|scroll/,RF=/^tb|vertical/,IF=/msie|trident/i.test(vd.navigator&&vd.navigator.userAgent),La=function(t){return parseFloat(t||"0")},Ef=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new PF((n?e:t)||0,(n?t:e)||0)},Sw=Tc({devicePixelContentBoxSize:Ef(),borderBoxSize:Ef(),contentBoxSize:Ef(),contentRect:new vC(0,0,0,0)}),bC=function(t,e){if(e===void 0&&(e=!1),Th.has(t)&&!e)return Th.get(t);if(yC(t))return Th.set(t,Sw),Sw;var n=getComputedStyle(t),r=ey(t)&&t.ownerSVGElement&&t.getBBox(),i=!IF&&n.boxSizing==="border-box",o=RF.test(n.writingMode||""),a=!r&&xw.test(n.overflowY||""),c=!r&&xw.test(n.overflowX||""),f=r?0:La(n.paddingTop),p=r?0:La(n.paddingRight),y=r?0:La(n.paddingBottom),m=r?0:La(n.paddingLeft),T=r?0:La(n.borderTopWidth),E=r?0:La(n.borderRightWidth),I=r?0:La(n.borderBottomWidth),A=r?0:La(n.borderLeftWidth),F=m+p,R=f+y,U=A+E,H=T+I,ne=c?t.offsetHeight-H-t.clientHeight:0,Z=a?t.offsetWidth-U-t.clientWidth:0,ce=i?F+U:0,S=i?R+H:0,re=r?r.width:La(n.width)-ce-Z,ie=r?r.height:La(n.height)-S-ne,Pe=re+F+Z+U,Ke=ie+R+ne+H,$e=Tc({devicePixelContentBoxSize:Ef(Math.round(re*devicePixelRatio),Math.round(ie*devicePixelRatio),o),borderBoxSize:Ef(Pe,Ke,o),contentBoxSize:Ef(re,ie,o),contentRect:new vC(m,f,re,ie)});return Th.set(t,$e),$e},wC=function(t,e,n){var r=bC(t,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(e){case Md.DEVICE_PIXEL_CONTENT_BOX:return a;case Md.BORDER_BOX:return i;default:return o}},AF=function(){function t(e){var n=bC(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=Tc([n.borderBoxSize]),this.contentBoxSize=Tc([n.contentBoxSize]),this.devicePixelContentBoxSize=Tc([n.devicePixelContentBoxSize])}return t}(),xC=function(t){if(yC(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},MF=function(){var t=1/0,e=[];Sc.forEach(function(a){if(a.activeTargets.length!==0){var c=[];a.activeTargets.forEach(function(p){var y=new AF(p.target),m=xC(p.target);c.push(y),p.lastReportedSize=wC(p.target,p.observedBox),m<t&&(t=m)}),e.push(function(){a.callback.call(a.observer,c,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=e;n<r.length;n++){var i=r[n];i()}return t},Tw=function(t){Sc.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(xC(i.target)>t?n.activeTargets.push(i):n.skippedTargets.push(i))})})},LF=function(){var t=0;for(Tw(t);kF();)t=MF(),Tw(t);return DF()&&_F(),t>0},$g,SC=[],FF=function(){return SC.splice(0).forEach(function(t){return t()})},NF=function(t){if(!$g){var e=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return FF()}).observe(n,r),$g=function(){n.textContent="".concat(e?e--:e++)}}SC.push(t),$g()},jF=function(t){NF(function(){requestAnimationFrame(t)})},Vh=0,BF=function(){return!!Vh},$F=250,VF={attributes:!0,characterData:!0,childList:!0,subtree:!0},Cw=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ew=function(t){return t===void 0&&(t=0),Date.now()+t},Vg=!1,HF=function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=$F),!Vg){Vg=!0;var r=Ew(e);jF(function(){var i=!1;try{i=LF()}finally{if(Vg=!1,e=r-Ew(),!BF())return;i?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,VF)};document.body?n():vd.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Cw.forEach(function(n){return vd.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Cw.forEach(function(n){return vd.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t}(),zm=new HF,kw=function(t){!Vh&&t>0&&zm.start(),Vh+=t,!Vh&&zm.stop()},UF=function(t){return!ey(t)&&!OF(t)&&getComputedStyle(t).display==="inline"},WF=function(){function t(e,n){this.target=e,this.observedBox=n||Md.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=wC(this.target,this.observedBox,!0);return UF(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),zF=function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t}(),Ch=new WeakMap,Dw=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},Eh=function(){function t(){}return t.connect=function(e,n){var r=new zF(e,n);Ch.set(e,r)},t.observe=function(e,n,r){var i=Ch.get(e),o=i.observationTargets.length===0;Dw(i.observationTargets,n)<0&&(o&&Sc.push(i),i.observationTargets.push(new WF(n,r&&r.box)),kw(1),zm.schedule())},t.unobserve=function(e,n){var r=Ch.get(e),i=Dw(r.observationTargets,n),o=r.observationTargets.length===1;i>=0&&(o&&Sc.splice(Sc.indexOf(r),1),r.observationTargets.splice(i,1),kw(-1))},t.disconnect=function(e){var n=this,r=Ch.get(e);r.observationTargets.slice().forEach(function(i){return n.unobserve(e,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},t}(),YF=function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Eh.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ww(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Eh.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ww(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Eh.unobserve(this,e)},t.prototype.disconnect=function(){Eh.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();const TC=z.createContext({});function GF(t){const e=z.useRef(null);return e.current===null&&(e.current=t()),e.current}const ty=z.createContext(null),CC=z.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function qF(t=!0){const e=z.useContext(ty);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,o=z.useId();z.useEffect(()=>{t&&i(o)},[t]);const a=z.useCallback(()=>t&&r&&r(o),[o,r,t]);return!n&&r?[!1,a]:[!0]}const ny=typeof window<"u",XF=ny?z.useLayoutEffect:z.useEffect,Ro=t=>t;let Lf=Ro,yu=Ro;process.env.NODE_ENV!=="production"&&(Lf=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},yu=(t,e)=>{if(!t)throw new Error(e)});function ry(t){let e;return()=>(e===void 0&&(e=t()),e)}const _f=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},ja=t=>t*1e3,Cl=t=>t/1e3,KF={useManualTiming:!1};function ZF(t){let e=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(p){o.has(p)&&(f.schedule(p),t()),p(a)}const f={schedule:(p,y=!1,m=!1)=>{const E=m&&r?e:n;return y&&o.add(p),E.has(p)||E.add(p),p},cancel:p=>{n.delete(p),o.delete(p)},process:p=>{if(a=p,r){i=!0;return}r=!0,[e,n]=[n,e],e.forEach(c),e.clear(),r=!1,i&&(i=!1,f.process(p))}};return f}const kh=["read","resolveKeyframes","update","preRender","render","postRender"],JF=40;function EC(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=kh.reduce((R,U)=>(R[U]=ZF(o),R),{}),{read:c,resolveKeyframes:f,update:p,preRender:y,render:m,postRender:T}=a,E=()=>{const R=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(R-i.timestamp,JF),1),i.timestamp=R,i.isProcessing=!0,c.process(i),f.process(i),p.process(i),y.process(i),m.process(i),T.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(E))},I=()=>{n=!0,r=!0,i.isProcessing||t(E)};return{schedule:kh.reduce((R,U)=>{const H=a[U];return R[U]=(ne,Z=!1,ce=!1)=>(n||I(),H.schedule(ne,Z,ce)),R},{}),cancel:R=>{for(let U=0;U<kh.length;U++)a[kh[U]].cancel(R)},state:i,steps:a}}const{schedule:Fn,cancel:bu,state:ki,steps:Hg}=EC(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ro,!0),kC=z.createContext({strict:!1}),_w={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Pf={};for(const t in _w)Pf[t]={isEnabled:e=>_w[t].some(n=>!!e[n])};function QF(t){for(const e in t)Pf[e]={...Pf[e],...t[e]}}const eN=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function up(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||eN.has(t)}let DC=t=>!up(t);function tN(t){t&&(DC=e=>e.startsWith("on")?!up(e):t(e))}try{tN(require("@emotion/is-prop-valid").default)}catch{}function nN(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(DC(i)||n===!0&&up(i)||!e&&!up(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}const Pw=new Set;function Lp(t,e,n){t||Pw.has(e)||(console.warn(e),Pw.add(e))}function rN(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Lp(!1,"motion() is deprecated. Use motion.create() instead."),t(...r));return new Proxy(n,{get:(r,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}const Fp=z.createContext({});function Ld(t){return typeof t=="string"||Array.isArray(t)}function Np(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const iy=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],oy=["initial",...iy];function jp(t){return Np(t.animate)||oy.some(e=>Ld(t[e]))}function _C(t){return!!(jp(t)||t.variants)}function iN(t,e){if(jp(t)){const{initial:n,animate:r}=t;return{initial:n===!1||Ld(n)?n:void 0,animate:Ld(r)?r:void 0}}return t.inherit!==!1?e:{}}function oN(t){const{initial:e,animate:n}=iN(t,z.useContext(Fp));return z.useMemo(()=>({initial:e,animate:n}),[Ow(e),Ow(n)])}function Ow(t){return Array.isArray(t)?t.join(" "):t}const sN=Symbol.for("motionComponentSymbol");function gf(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function aN(t,e,n){return z.useCallback(r=>{r&&t.onMount&&t.onMount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):gf(n)&&(n.current=r))},[e])}const sy=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),lN="framerAppearId",PC="data-"+sy(lN),{schedule:ay}=EC(queueMicrotask,!1),OC=z.createContext({});function uN(t,e,n,r,i){var o,a;const{visualElement:c}=z.useContext(Fp),f=z.useContext(kC),p=z.useContext(ty),y=z.useContext(CC).reducedMotion,m=z.useRef(null);r=r||f.renderer,!m.current&&r&&(m.current=r(t,{visualState:e,parent:c,props:n,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:y}));const T=m.current,E=z.useContext(OC);T&&!T.projection&&i&&(T.type==="html"||T.type==="svg")&&cN(m.current,n,i,E);const I=z.useRef(!1);z.useInsertionEffect(()=>{T&&I.current&&T.update(n,p)});const A=n[PC],F=z.useRef(!!A&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,A))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,A)));return XF(()=>{T&&(I.current=!0,window.MotionIsMounted=!0,T.updateFeatures(),ay.render(T.render),F.current&&T.animationState&&T.animationState.animateChanges())}),z.useEffect(()=>{T&&(!F.current&&T.animationState&&T.animationState.animateChanges(),F.current&&(queueMicrotask(()=>{var R;(R=window.MotionHandoffMarkAsComplete)===null||R===void 0||R.call(window,A)}),F.current=!1))}),T}function cN(t,e,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:c,layoutScroll:f,layoutRoot:p}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:RC(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&gf(c),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:f,layoutRoot:p})}function RC(t){if(t)return t.options.allowProjection!==!1?t.projection:RC(t.parent)}function fN({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){var o,a;t&&QF(t);function c(p,y){let m;const T={...z.useContext(CC),...p,layoutId:dN(p)},{isStatic:E}=T,I=oN(p),A=r(p,E);if(!E&&ny){hN(T,t);const F=pN(T);m=F.MeasureLayout,I.visualElement=uN(i,A,T,e,F.ProjectionNode)}return de.jsxs(Fp.Provider,{value:I,children:[m&&I.visualElement?de.jsx(m,{visualElement:I.visualElement,...T}):null,n(i,p,aN(A,I.visualElement,y),A,E,I.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const f=z.forwardRef(c);return f[sN]=i,f}function dN({layoutId:t}){const e=z.useContext(TC).id;return e&&t!==void 0?e+"-"+t:t}function hN(t,e){const n=z.useContext(kC).strict;if(process.env.NODE_ENV!=="production"&&e&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?Lf(!1,r):yu(!1,r)}}function pN(t){const{drag:e,layout:n}=Pf;if(!e&&!n)return{};const r={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const gN=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ly(t){return typeof t!="string"||t.includes("-")?!1:!!(gN.indexOf(t)>-1||/[A-Z]/u.test(t))}function Rw(t){const e=[{},{}];return t==null||t.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function uy(t,e,n,r){if(typeof e=="function"){const[i,o]=Rw(r);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=Rw(r);e=e(n!==void 0?n:t.custom,i,o)}return e}const Ym=t=>Array.isArray(t),mN=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),vN=t=>Ym(t)?t[t.length-1]||0:t,Bi=t=>!!(t&&t.getVelocity);function Hh(t){const e=Bi(t)?t.get():t;return mN(e)?e.toValue():e}function yN({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},r,i,o){const a={latestValues:bN(r,i,o,t),renderState:e()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const IC=t=>(e,n)=>{const r=z.useContext(Fp),i=z.useContext(ty),o=()=>yN(t,e,r,i);return n?o():GF(o)};function bN(t,e,n,r){const i={},o=r(t,{});for(const T in o)i[T]=Hh(o[T]);let{initial:a,animate:c}=t;const f=jp(t),p=_C(t);e&&p&&!f&&t.inherit!==!1&&(a===void 0&&(a=e.initial),c===void 0&&(c=e.animate));let y=n?n.initial===!1:!1;y=y||a===!1;const m=y?c:a;if(m&&typeof m!="boolean"&&!Np(m)){const T=Array.isArray(m)?m:[m];for(let E=0;E<T.length;E++){const I=uy(t,T[E]);if(I){const{transitionEnd:A,transition:F,...R}=I;for(const U in R){let H=R[U];if(Array.isArray(H)){const ne=y?H.length-1:0;H=H[ne]}H!==null&&(i[U]=H)}for(const U in A)i[U]=A[U]}}}return i}const Ff=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Rc=new Set(Ff),AC=t=>e=>typeof e=="string"&&e.startsWith(t),MC=AC("--"),wN=AC("var(--"),cy=t=>wN(t)?xN.test(t.split("/*")[0].trim()):!1,xN=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,LC=(t,e)=>e&&typeof t=="number"?e.transform(t):t,_l=(t,e,n)=>n>e?e:n<t?t:n,Nf={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Fd={...Nf,transform:t=>_l(0,1,t)},Dh={...Nf,default:1},qd=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),au=qd("deg"),Ba=qd("%"),Pt=qd("px"),SN=qd("vh"),TN=qd("vw"),Iw={...Ba,parse:t=>Ba.parse(t)/100,transform:t=>Ba.transform(t*100)},CN={borderWidth:Pt,borderTopWidth:Pt,borderRightWidth:Pt,borderBottomWidth:Pt,borderLeftWidth:Pt,borderRadius:Pt,radius:Pt,borderTopLeftRadius:Pt,borderTopRightRadius:Pt,borderBottomRightRadius:Pt,borderBottomLeftRadius:Pt,width:Pt,maxWidth:Pt,height:Pt,maxHeight:Pt,top:Pt,right:Pt,bottom:Pt,left:Pt,padding:Pt,paddingTop:Pt,paddingRight:Pt,paddingBottom:Pt,paddingLeft:Pt,margin:Pt,marginTop:Pt,marginRight:Pt,marginBottom:Pt,marginLeft:Pt,backgroundPositionX:Pt,backgroundPositionY:Pt},EN={rotate:au,rotateX:au,rotateY:au,rotateZ:au,scale:Dh,scaleX:Dh,scaleY:Dh,scaleZ:Dh,skew:au,skewX:au,skewY:au,distance:Pt,translateX:Pt,translateY:Pt,translateZ:Pt,x:Pt,y:Pt,z:Pt,perspective:Pt,transformPerspective:Pt,opacity:Fd,originX:Iw,originY:Iw,originZ:Pt},Aw={...Nf,transform:Math.round},fy={...CN,...EN,zIndex:Aw,size:Pt,fillOpacity:Fd,strokeOpacity:Fd,numOctaves:Aw},kN={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},DN=Ff.length;function _N(t,e,n){let r="",i=!0;for(let o=0;o<DN;o++){const a=Ff[o],c=t[a];if(c===void 0)continue;let f=!0;if(typeof c=="number"?f=c===(a.startsWith("scale")?1:0):f=parseFloat(c)===0,!f||n){const p=LC(c,fy[a]);if(!f){i=!1;const y=kN[a]||a;r+=`${y}(${p}) `}n&&(e[a]=p)}}return r=r.trim(),n?r=n(e,i?"":r):i&&(r="none"),r}function dy(t,e,n){const{style:r,vars:i,transformOrigin:o}=t;let a=!1,c=!1;for(const f in e){const p=e[f];if(Rc.has(f)){a=!0;continue}else if(MC(f)){i[f]=p;continue}else{const y=LC(p,fy[f]);f.startsWith("origin")?(c=!0,o[f]=y):r[f]=y}}if(e.transform||(a||n?r.transform=_N(e,t.transform,n):r.transform&&(r.transform="none")),c){const{originX:f="50%",originY:p="50%",originZ:y=0}=o;r.transformOrigin=`${f} ${p} ${y}`}}const PN={offset:"stroke-dashoffset",array:"stroke-dasharray"},ON={offset:"strokeDashoffset",array:"strokeDasharray"};function RN(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?PN:ON;t[o.offset]=Pt.transform(-r);const a=Pt.transform(e),c=Pt.transform(n);t[o.array]=`${a} ${c}`}function Mw(t,e,n){return typeof t=="string"?t:Pt.transform(e+n*t)}function IN(t,e,n){const r=Mw(e,t.x,t.width),i=Mw(n,t.y,t.height);return`${r} ${i}`}function hy(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:f=0,...p},y,m){if(dy(t,p,m),y){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:T,style:E,dimensions:I}=t;T.transform&&(I&&(E.transform=T.transform),delete T.transform),I&&(i!==void 0||o!==void 0||E.transform)&&(E.transformOrigin=IN(I,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(T.x=e),n!==void 0&&(T.y=n),r!==void 0&&(T.scale=r),a!==void 0&&RN(T,a,c,f,!1)}const py=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),FC=()=>({...py(),attrs:{}}),gy=t=>typeof t=="string"&&t.toLowerCase()==="svg";function NC(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}const jC=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function BC(t,e,n,r){NC(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(jC.has(i)?i:sy(i),e.attrs[i])}const cp={};function AN(t){Object.assign(cp,t)}function $C(t,{layout:e,layoutId:n}){return Rc.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!cp[t]||t==="opacity")}function my(t,e,n){var r;const{style:i}=t,o={};for(const a in i)(Bi(i[a])||e.style&&Bi(e.style[a])||$C(a,t)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function VC(t,e,n){const r=my(t,e,n);for(const i in t)if(Bi(t[i])||Bi(e[i])){const o=Ff.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=t[i]}return r}function MN(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}const Lw=["x","y","width","height","cx","cy","r"],LN={useVisualState:IC({scrapeMotionValuesFromProps:VC,createRenderState:FC,onUpdate:({props:t,prevProps:e,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!t.drag;if(!o){for(const c in i)if(Rc.has(c)){o=!0;break}}if(!o)return;let a=!e;if(e)for(let c=0;c<Lw.length;c++){const f=Lw[c];t[f]!==e[f]&&(a=!0)}a&&Fn.read(()=>{MN(n,r),Fn.render(()=>{hy(r,i,gy(n.tagName),t.transformTemplate),BC(n,r)})})}})},FN={useVisualState:IC({scrapeMotionValuesFromProps:my,createRenderState:py})};function HC(t,e,n){for(const r in e)!Bi(e[r])&&!$C(r,n)&&(t[r]=e[r])}function NN({transformTemplate:t},e){return z.useMemo(()=>{const n=py();return dy(n,e,t),Object.assign({},n.vars,n.style)},[e])}function jN(t,e){const n=t.style||{},r={};return HC(r,n,t),Object.assign(r,NN(t,e)),r}function BN(t,e){const n={},r=jN(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}function $N(t,e,n,r){const i=z.useMemo(()=>{const o=FC();return hy(o,e,gy(r),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};HC(o,t.style,t),i.style={...o,...i.style}}return i}function VN(t=!1){return(n,r,i,{latestValues:o},a)=>{const f=(ly(n)?$N:BN)(r,o,a,n),p=nN(r,typeof n=="string",t),y=n!==z.Fragment?{...p,...f,ref:i}:{},{children:m}=r,T=z.useMemo(()=>Bi(m)?m.get():m,[m]);return z.createElement(n,{...y,children:T})}}function HN(t,e){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...ly(r)?LN:FN,preloadedFeatures:t,useRender:VN(i),createVisualElement:e,Component:r};return fN(a)}}function UC(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Bp(t,e,n){const r=t.getProps();return uy(r,e,n!==void 0?n:r.custom,t)}const UN=ry(()=>window.ScrollTimeline!==void 0);class WN{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=n}attachTimeline(e,n){const r=this.animations.map(i=>{if(UN()&&i.attachTimeline)return i.attachTimeline(e);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class zN extends WN{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function vy(t,e){return t?t[e]||t.default||t:void 0}const Gm=2e4;function WC(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<Gm;)e+=n,r=t.next(e);return e>=Gm?1/0:e}function yy(t){return typeof t=="function"}function Fw(t,e){t.timeline=e,t.onfinish=null}const by=t=>Array.isArray(t)&&typeof t[0]=="number",YN={linearEasing:void 0};function GN(t,e){const n=ry(t);return()=>{var r;return(r=YN[e])!==null&&r!==void 0?r:n()}}const fp=GN(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),zC=(t,e,n=10)=>{let r="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)r+=t(_f(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function YC(t){return!!(typeof t=="function"&&fp()||!t||typeof t=="string"&&(t in qm||fp())||by(t)||Array.isArray(t)&&t.every(YC))}const cd=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,qm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cd([0,.65,.55,1]),circOut:cd([.55,0,1,.45]),backIn:cd([.31,.01,.66,-.59]),backOut:cd([.33,1.53,.69,.99])};function GC(t,e){if(t)return typeof t=="function"&&fp()?zC(t,e):by(t)?cd(t):Array.isArray(t)?t.map(n=>GC(n,e)||qm.easeOut):qm[t]}const sa={x:!1,y:!1};function qC(){return sa.x||sa.y}function qN(t,e,n){var r;if(t instanceof Element)return[t];if(typeof t=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t)}function XC(t,e){const n=qN(t),r=new AbortController,i={passive:!0,...e,signal:r.signal};return[n,i,()=>r.abort()]}function Nw(t){return e=>{e.pointerType==="touch"||qC()||t(e)}}function XN(t,e,n={}){const[r,i,o]=XC(t,n),a=Nw(c=>{const{target:f}=c,p=e(c);if(typeof p!="function"||!f)return;const y=Nw(m=>{p(m),f.removeEventListener("pointerleave",y)});f.addEventListener("pointerleave",y,i)});return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}const KC=(t,e)=>e?t===e?!0:KC(t,e.parentElement):!1,wy=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,KN=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ZN(t){return KN.has(t.tagName)||t.tabIndex!==-1}const fd=new WeakSet;function jw(t){return e=>{e.key==="Enter"&&t(e)}}function Ug(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const JN=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=jw(()=>{if(fd.has(n))return;Ug(n,"down");const i=jw(()=>{Ug(n,"up")}),o=()=>Ug(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",r,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),e)};function Bw(t){return wy(t)&&!qC()}function QN(t,e,n={}){const[r,i,o]=XC(t,n),a=c=>{const f=c.currentTarget;if(!Bw(c)||fd.has(f))return;fd.add(f);const p=e(c),y=(E,I)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",T),!(!Bw(E)||!fd.has(f))&&(fd.delete(f),typeof p=="function"&&p(E,{success:I}))},m=E=>{y(E,n.useGlobalTarget||KC(f,E.target))},T=E=>{y(E,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",T,i)};return r.forEach(c=>{!ZN(c)&&c.getAttribute("tabindex")===null&&(c.tabIndex=0),(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),c.addEventListener("focus",p=>JN(p,i),i)}),o}function ej(t){return t==="x"||t==="y"?sa[t]?null:(sa[t]=!0,()=>{sa[t]=!1}):sa.x||sa.y?null:(sa.x=sa.y=!0,()=>{sa.x=sa.y=!1})}const ZC=new Set(["width","height","top","left","right","bottom",...Ff]);let Uh;function tj(){Uh=void 0}const $a={now:()=>(Uh===void 0&&$a.set(ki.isProcessing||KF.useManualTiming?ki.timestamp:performance.now()),Uh),set:t=>{Uh=t,queueMicrotask(tj)}};function xy(t,e){t.indexOf(e)===-1&&t.push(e)}function Sy(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}let Ty=class{constructor(){this.subscriptions=[]}add(e){return xy(this.subscriptions,e),()=>Sy(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function JC(t,e){return e?t*(1e3/e):0}const $w=30,nj=t=>!isNaN(parseFloat(t));let rj=class{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=$a.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=$a.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=nj(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&Lp(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Ty);const r=this.events[e].add(n);return e==="change"?()=>{r(),Fn.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=$a.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>$w)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,$w);return JC(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Nd(t,e){return new rj(t,e)}function ij(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Nd(n))}function oj(t,e){const n=Bp(t,e);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=vN(o[a]);ij(t,a,c)}}function sj(t){return!!(Bi(t)&&t.add)}function Xm(t,e){const n=t.getValue("willChange");if(sj(n))return n.add(e)}function QC(t){return t.props[PC]}const eE=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,aj=1e-7,lj=12;function uj(t,e,n,r,i){let o,a,c=0;do a=e+(n-e)/2,o=eE(a,r,i)-t,o>0?n=a:e=a;while(Math.abs(o)>aj&&++c<lj);return a}function Xd(t,e,n,r){if(t===e&&n===r)return Ro;const i=o=>uj(o,0,1,t,n);return o=>o===0||o===1?o:eE(i(o),e,r)}const tE=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,nE=t=>e=>1-t(1-e),rE=Xd(.33,1.53,.69,.99),Cy=nE(rE),iE=tE(Cy),oE=t=>(t*=2)<1?.5*Cy(t):.5*(2-Math.pow(2,-10*(t-1))),Ey=t=>1-Math.sin(Math.acos(t)),sE=nE(Ey),aE=tE(Ey),lE=t=>/^0[^.\s]+$/u.test(t);function cj(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||lE(t):!0}const yd=t=>Math.round(t*1e5)/1e5,ky=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function fj(t){return t==null}const dj=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Dy=(t,e)=>n=>!!(typeof n=="string"&&dj.test(n)&&n.startsWith(t)||e&&!fj(n)&&Object.prototype.hasOwnProperty.call(n,e)),uE=(t,e,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(ky);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},hj=t=>_l(0,255,t),Wg={...Nf,transform:t=>Math.round(hj(t))},yc={test:Dy("rgb","red"),parse:uE("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+Wg.transform(t)+", "+Wg.transform(e)+", "+Wg.transform(n)+", "+yd(Fd.transform(r))+")"};function pj(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Km={test:Dy("#"),parse:pj,transform:yc.transform},mf={test:Dy("hsl","hue"),parse:uE("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Ba.transform(yd(e))+", "+Ba.transform(yd(n))+", "+yd(Fd.transform(r))+")"},ji={test:t=>yc.test(t)||Km.test(t)||mf.test(t),parse:t=>yc.test(t)?yc.parse(t):mf.test(t)?mf.parse(t):Km.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?yc.transform(t):mf.transform(t)},gj=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function mj(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(ky))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(gj))===null||n===void 0?void 0:n.length)||0)>0}const cE="number",fE="color",vj="var",yj="var(",Vw="${}",bj=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function jd(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=e.replace(bj,f=>(ji.test(f)?(r.color.push(o),i.push(fE),n.push(ji.parse(f))):f.startsWith(yj)?(r.var.push(o),i.push(vj),n.push(f)):(r.number.push(o),i.push(cE),n.push(parseFloat(f))),++o,Vw)).split(Vw);return{values:n,split:c,indexes:r,types:i}}function dE(t){return jd(t).values}function hE(t){const{split:e,types:n}=jd(t),r=e.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=e[a],i[a]!==void 0){const c=n[a];c===cE?o+=yd(i[a]):c===fE?o+=ji.transform(i[a]):o+=i[a]}return o}}const wj=t=>typeof t=="number"?0:t;function xj(t){const e=dE(t);return hE(t)(e.map(wj))}const wu={test:mj,parse:dE,createTransformer:hE,getAnimatableNone:xj},Sj=new Set(["brightness","contrast","saturate","opacity"]);function Tj(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(ky)||[];if(!r)return t;const i=n.replace(r,"");let o=Sj.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const Cj=/\b([a-z-]*)\(.*?\)/gu,Zm={...wu,getAnimatableNone:t=>{const e=t.match(Cj);return e?e.map(Tj).join(" "):t}},Ej={...fy,color:ji,backgroundColor:ji,outlineColor:ji,fill:ji,stroke:ji,borderColor:ji,borderTopColor:ji,borderRightColor:ji,borderBottomColor:ji,borderLeftColor:ji,filter:Zm,WebkitFilter:Zm},_y=t=>Ej[t];function pE(t,e){let n=_y(t);return n!==Zm&&(n=wu),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const kj=new Set(["auto","none","0"]);function Dj(t,e,n){let r=0,i;for(;r<t.length&&!i;){const o=t[r];typeof o=="string"&&!kj.has(o)&&jd(o).values.length&&(i=t[r]),r++}if(i&&n)for(const o of e)t[o]=pE(n,i)}const Hw=t=>t===Nf||t===Pt,Uw=(t,e)=>parseFloat(t.split(", ")[e]),Ww=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Uw(i[1],e);{const o=r.match(/^matrix\((.+)\)$/u);return o?Uw(o[1],t):0}},_j=new Set(["x","y","z"]),Pj=Ff.filter(t=>!_j.has(t));function Oj(t){const e=[];return Pj.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const Of={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Ww(4,13),y:Ww(5,14)};Of.translateX=Of.x;Of.translateY=Of.y;const Cc=new Set;let Jm=!1,Qm=!1;function gE(){if(Qm){const t=Array.from(Cc).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const i=Oj(r);i.length&&(n.set(r,i),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(a)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Qm=!1,Jm=!1,Cc.forEach(t=>t.complete()),Cc.clear()}function mE(){Cc.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Qm=!0)})}function Rj(){mE(),gE()}class Py{constructor(e,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Cc.add(this),Jm||(Jm=!0,Fn.read(mE),Fn.resolveKeyframes(gE))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:i}=this;for(let o=0;o<e.length;o++)if(e[o]===null)if(o===0){const a=i==null?void 0:i.get(),c=e[e.length-1];if(a!==void 0)e[0]=a;else if(r&&n){const f=r.readValue(n,c);f!=null&&(e[0]=f)}e[0]===void 0&&(e[0]=c),i&&a===void 0&&i.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Cc.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Cc.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const vE=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Ij=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Aj(t){const e=Ij.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n??r}`,i]}const Mj=4;function yE(t,e,n=1){yu(n<=Mj,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,i]=Aj(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const a=o.trim();return vE(a)?parseFloat(a):a}return cy(i)?yE(i,e,n+1):i}const bE=t=>e=>e.test(t),Lj={test:t=>t==="auto",parse:t=>t},wE=[Nf,Pt,Ba,au,TN,SN,Lj],zw=t=>wE.find(bE(t));class xE extends Py{constructor(e,n,r,i,o){super(e,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<e.length;f++){let p=e[f];if(typeof p=="string"&&(p=p.trim(),cy(p))){const y=yE(p,n.current);y!==void 0&&(e[f]=y),f===e.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!ZC.has(r)||e.length!==2)return;const[i,o]=e,a=zw(i),c=zw(o);if(a!==c)if(Hw(a)&&Hw(c))for(let f=0;f<e.length;f++){const p=e[f];typeof p=="string"&&(e[f]=parseFloat(p))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let i=0;i<e.length;i++)cj(e[i])&&r.push(i);r.length&&Dj(e,r,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:r}=this;if(!e||!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Of[r](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(r,i).jump(i,!1)}measureEndState(){var e;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,c=i[a];i[a]=Of[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([f,p])=>{n.getValue(f).set(p)}),this.resolveNoneKeyframes()}}const Yw=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(wu.test(t)||t==="0")&&!t.startsWith("url("));function Fj(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function Nj(t,e,n,r){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],a=Yw(i,e),c=Yw(o,e);return Lf(a===c,`You are trying to animate ${e} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:Fj(t)||(n==="spring"||yy(n))&&r}const jj=t=>t!==null;function $p(t,{repeat:e,repeatType:n="loop"},r){const i=t.filter(jj),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const Bj=40;class SE{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=$a.now(),this.options={autoplay:e,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Bj?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Rj(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=$a.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:f,isGenerator:p}=this.options;if(!p&&!Nj(e,r,i,o))if(a)this.options.duration=0;else{f&&f($p(e,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const y=this.initPlayback(e,n);y!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...y},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const Kn=(t,e,n)=>t+(e-t)*n;function zg(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function $j({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,o=0,a=0;if(!e)i=o=a=n;else{const c=n<.5?n*(1+e):n+e-n*e,f=2*n-c;i=zg(f,c,t+1/3),o=zg(f,c,t),a=zg(f,c,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function dp(t,e){return n=>n>0?e:t}const Yg=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},Vj=[Km,yc,mf],Hj=t=>Vj.find(e=>e.test(t));function Gw(t){const e=Hj(t);if(Lf(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===mf&&(n=$j(n)),n}const qw=(t,e)=>{const n=Gw(t),r=Gw(e);if(!n||!r)return dp(t,e);const i={...n};return o=>(i.red=Yg(n.red,r.red,o),i.green=Yg(n.green,r.green,o),i.blue=Yg(n.blue,r.blue,o),i.alpha=Kn(n.alpha,r.alpha,o),yc.transform(i))},Uj=(t,e)=>n=>e(t(n)),Kd=(...t)=>t.reduce(Uj),ev=new Set(["none","hidden"]);function Wj(t,e){return ev.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function zj(t,e){return n=>Kn(t,e,n)}function Oy(t){return typeof t=="number"?zj:typeof t=="string"?cy(t)?dp:ji.test(t)?qw:qj:Array.isArray(t)?TE:typeof t=="object"?ji.test(t)?qw:Yj:dp}function TE(t,e){const n=[...t],r=n.length,i=t.map((o,a)=>Oy(o)(o,e[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function Yj(t,e){const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=Oy(t[i])(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function Gj(t,e){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const a=e.types[o],c=t.indexes[a][i[a]],f=(n=t.values[c])!==null&&n!==void 0?n:0;r[o]=f,i[a]++}return r}const qj=(t,e)=>{const n=wu.createTransformer(e),r=jd(t),i=jd(e);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?ev.has(t)&&!i.values.length||ev.has(e)&&!r.values.length?Wj(t,e):Kd(TE(Gj(r,i),i.values),n):(Lf(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),dp(t,e))};function CE(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?Kn(t,e,n):Oy(t)(t,e)}const Xj=5;function EE(t,e,n){const r=Math.max(e-Xj,0);return JC(n-t(r),e-r)}const Xn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Xw=.001;function Kj({duration:t=Xn.duration,bounce:e=Xn.bounce,velocity:n=Xn.velocity,mass:r=Xn.mass}){let i,o;Lf(t<=ja(Xn.maxDuration),"Spring duration must be 10 seconds or less");let a=1-e;a=_l(Xn.minDamping,Xn.maxDamping,a),t=_l(Xn.minDuration,Xn.maxDuration,Cl(t)),a<1?(i=p=>{const y=p*a,m=y*t,T=y-n,E=tv(p,a),I=Math.exp(-m);return Xw-T/E*I},o=p=>{const m=p*a*t,T=m*n+n,E=Math.pow(a,2)*Math.pow(p,2)*t,I=Math.exp(-m),A=tv(Math.pow(p,2),a);return(-i(p)+Xw>0?-1:1)*((T-E)*I)/A}):(i=p=>{const y=Math.exp(-p*t),m=(p-n)*t+1;return-.001+y*m},o=p=>{const y=Math.exp(-p*t),m=(n-p)*(t*t);return y*m});const c=5/t,f=Jj(i,o,c);if(t=ja(t),isNaN(f))return{stiffness:Xn.stiffness,damping:Xn.damping,duration:t};{const p=Math.pow(f,2)*r;return{stiffness:p,damping:a*2*Math.sqrt(r*p),duration:t}}}const Zj=12;function Jj(t,e,n){let r=n;for(let i=1;i<Zj;i++)r=r-t(r)/e(r);return r}function tv(t,e){return t*Math.sqrt(1-e*e)}const Qj=["duration","bounce"],eB=["stiffness","damping","mass"];function Kw(t,e){return e.some(n=>t[n]!==void 0)}function tB(t){let e={velocity:Xn.velocity,stiffness:Xn.stiffness,damping:Xn.damping,mass:Xn.mass,isResolvedFromDuration:!1,...t};if(!Kw(t,eB)&&Kw(t,Qj))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*_l(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:Xn.mass,stiffness:i,damping:o}}else{const n=Kj(t);e={...e,...n,mass:Xn.mass},e.isResolvedFromDuration=!0}return e}function kE(t=Xn.visualDuration,e=Xn.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:f,damping:p,mass:y,duration:m,velocity:T,isResolvedFromDuration:E}=tB({...n,velocity:-Cl(n.velocity||0)}),I=T||0,A=p/(2*Math.sqrt(f*y)),F=a-o,R=Cl(Math.sqrt(f/y)),U=Math.abs(F)<5;r||(r=U?Xn.restSpeed.granular:Xn.restSpeed.default),i||(i=U?Xn.restDelta.granular:Xn.restDelta.default);let H;if(A<1){const Z=tv(R,A);H=ce=>{const S=Math.exp(-A*R*ce);return a-S*((I+A*R*F)/Z*Math.sin(Z*ce)+F*Math.cos(Z*ce))}}else if(A===1)H=Z=>a-Math.exp(-R*Z)*(F+(I+R*F)*Z);else{const Z=R*Math.sqrt(A*A-1);H=ce=>{const S=Math.exp(-A*R*ce),re=Math.min(Z*ce,300);return a-S*((I+A*R*F)*Math.sinh(re)+Z*F*Math.cosh(re))/Z}}const ne={calculatedDuration:E&&m||null,next:Z=>{const ce=H(Z);if(E)c.done=Z>=m;else{let S=0;A<1&&(S=Z===0?ja(I):EE(H,Z,ce));const re=Math.abs(S)<=r,ie=Math.abs(a-ce)<=i;c.done=re&&ie}return c.value=c.done?a:ce,c},toString:()=>{const Z=Math.min(WC(ne),Gm),ce=zC(S=>ne.next(Z*S).value,Z,30);return Z+"ms "+ce}};return ne}function Zw({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:f,restDelta:p=.5,restSpeed:y}){const m=t[0],T={done:!1,value:m},E=re=>c!==void 0&&re<c||f!==void 0&&re>f,I=re=>c===void 0?f:f===void 0||Math.abs(c-re)<Math.abs(f-re)?c:f;let A=n*e;const F=m+A,R=a===void 0?F:a(F);R!==F&&(A=R-m);const U=re=>-A*Math.exp(-re/r),H=re=>R+U(re),ne=re=>{const ie=U(re),Pe=H(re);T.done=Math.abs(ie)<=p,T.value=T.done?R:Pe};let Z,ce;const S=re=>{E(T.value)&&(Z=re,ce=kE({keyframes:[T.value,I(T.value)],velocity:EE(H,re,T.value),damping:i,stiffness:o,restDelta:p,restSpeed:y}))};return S(0),{calculatedDuration:null,next:re=>{let ie=!1;return!ce&&Z===void 0&&(ie=!0,ne(re),S(re)),Z!==void 0&&re>=Z?ce.next(re-Z):(!ie&&ne(re),T)}}}const nB=Xd(.42,0,1,1),rB=Xd(0,0,.58,1),DE=Xd(.42,0,.58,1),iB=t=>Array.isArray(t)&&typeof t[0]!="number",Jw={linear:Ro,easeIn:nB,easeInOut:DE,easeOut:rB,circIn:Ey,circInOut:aE,circOut:sE,backIn:Cy,backInOut:iE,backOut:rE,anticipate:oE},Qw=t=>{if(by(t)){yu(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,i]=t;return Xd(e,n,r,i)}else if(typeof t=="string")return yu(Jw[t]!==void 0,`Invalid easing type '${t}'`),Jw[t];return t};function oB(t,e,n){const r=[],i=n||CE,o=t.length-1;for(let a=0;a<o;a++){let c=i(t[a],t[a+1]);if(e){const f=Array.isArray(e)?e[a]||Ro:e;c=Kd(f,c)}r.push(c)}return r}function sB(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(yu(o===e.length,"Both input and output ranges must be the same length"),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const a=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const c=oB(e,r,i),f=c.length,p=y=>{if(a&&y<t[0])return e[0];let m=0;if(f>1)for(;m<t.length-2&&!(y<t[m+1]);m++);const T=_f(t[m],t[m+1],y);return c[m](T)};return n?y=>p(_l(t[0],t[o-1],y)):p}function aB(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=_f(0,e,r);t.push(Kn(n,1,i))}}function lB(t){const e=[0];return aB(e,t.length-1),e}function uB(t,e){return t.map(n=>n*e)}function cB(t,e){return t.map(()=>e||DE).splice(0,t.length-1)}function hp({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=iB(r)?r.map(Qw):Qw(r),o={done:!1,value:e[0]},a=uB(n&&n.length===e.length?n:lB(e),t),c=sB(a,e,{ease:Array.isArray(i)?i:cB(e,i)});return{calculatedDuration:t,next:f=>(o.value=c(f),o.done=f>=t,o)}}const fB=t=>{const e=({timestamp:n})=>t(n);return{start:()=>Fn.update(e,!0),stop:()=>bu(e),now:()=>ki.isProcessing?ki.timestamp:$a.now()}},dB={decay:Zw,inertia:Zw,tween:hp,keyframes:hp,spring:kE},hB=t=>t/100;class Ry extends SE{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:f}=this.options;f&&f()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||Py,c=(f,p)=>this.onKeyframesResolved(f,p);this.resolver=new a(o,c,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,c=yy(n)?n:dB[n]||hp;let f,p;c!==hp&&typeof e[0]!="number"&&(process.env.NODE_ENV!=="production"&&yu(e.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),f=Kd(hB,CE(e[0],e[1])),e=[0,100]);const y=c({...this.options,keyframes:e});o==="mirror"&&(p=c({...this.options,keyframes:[...e].reverse(),velocity:-a})),y.calculatedDuration===null&&(y.calculatedDuration=WC(y));const{calculatedDuration:m}=y,T=m+i,E=T*(r+1)-i;return{generator:y,mirroredGenerator:p,mapPercentToKeyframes:f,calculatedDuration:m,resolvedDuration:T,totalDuration:E}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:r}=this;if(!r){const{keyframes:re}=this.options;return{done:!0,value:re[re.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:f,calculatedDuration:p,totalDuration:y,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:T,repeat:E,repeatType:I,repeatDelay:A,onUpdate:F}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-y/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const R=this.currentTime-T*(this.speed>=0?1:-1),U=this.speed>=0?R<0:R>y;this.currentTime=Math.max(R,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=y);let H=this.currentTime,ne=o;if(E){const re=Math.min(this.currentTime,y)/m;let ie=Math.floor(re),Pe=re%1;!Pe&&re>=1&&(Pe=1),Pe===1&&ie--,ie=Math.min(ie,E+1),!!(ie%2)&&(I==="reverse"?(Pe=1-Pe,A&&(Pe-=A/m)):I==="mirror"&&(ne=a)),H=_l(0,1,Pe)*m}const Z=U?{done:!1,value:f[0]}:ne.next(H);c&&(Z.value=c(Z.value));let{done:ce}=Z;!U&&p!==null&&(ce=this.speed>=0?this.currentTime>=y:this.currentTime<=0);const S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&ce);return S&&i!==void 0&&(Z.value=$p(f,this.options,i)),F&&F(Z.value),S&&this.finish(),Z}get duration(){const{resolved:e}=this;return e?Cl(e.calculatedDuration):0}get time(){return Cl(this.currentTime)}set time(e){e=ja(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Cl(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=fB,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const pB=new Set(["opacity","clipPath","filter","transform"]);function gB(t,e,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:f}={}){const p={[e]:n};f&&(p.offset=f);const y=GC(c,i);return Array.isArray(y)&&(p.easing=y),t.animate(p,{delay:r,duration:i,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const mB=ry(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),pp=10,vB=2e4;function yB(t){return yy(t.type)||t.type==="spring"||!YC(t.ease)}function bB(t,e){const n=new Ry({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:t[0]};const i=[];let o=0;for(;!r.done&&o<vB;)r=n.sample(o),i.push(r.value),o+=pp;return{times:void 0,keyframes:i,duration:o-pp,ease:"linear"}}const _E={anticipate:oE,backInOut:iE,circInOut:aE};function wB(t){return t in _E}class ex extends SE{constructor(e){super(e);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new xE(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:c,name:f,startTime:p}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&fp()&&wB(o)&&(o=_E[o]),yB(this.options)){const{onComplete:m,onUpdate:T,motionValue:E,element:I,...A}=this.options,F=bB(e,A);e=F.keyframes,e.length===1&&(e[1]=e[0]),r=F.duration,i=F.times,o=F.ease,a="keyframes"}const y=gB(c.owner.current,f,e,{...this.options,duration:r,times:i,ease:o});return y.startTime=p??this.calcStartTime(),this.pendingTimeline?(Fw(y,this.pendingTimeline),this.pendingTimeline=void 0):y.onfinish=()=>{const{onComplete:m}=this.options;c.set($p(e,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:y,duration:r,times:i,type:a,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return Cl(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return Cl(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=ja(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return Ro;const{animation:r}=n;Fw(r,e)}return Ro}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:c}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:p,onUpdate:y,onComplete:m,element:T,...E}=this.options,I=new Ry({...E,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),A=ja(this.time);p.setWithVelocity(I.sample(A-pp).value,I.sample(A).value,pp)}const{onStop:f}=this.options;f&&f(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:c}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:p}=n.owner.getProps();return mB()&&r&&pB.has(r)&&!f&&!p&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}}const xB={type:"spring",stiffness:500,damping:25,restSpeed:10},SB=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),TB={type:"keyframes",duration:.8},CB={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},EB=(t,{keyframes:e})=>e.length>2?TB:Rc.has(t)?t.startsWith("scale")?SB(e[1]):xB:CB;function kB({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:f,elapsed:p,...y}){return!!Object.keys(y).length}const Iy=(t,e,n,r={},i,o)=>a=>{const c=vy(r,t)||{},f=c.delay||r.delay||0;let{elapsed:p=0}=r;p=p-ja(f);let y={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...c,delay:-p,onUpdate:T=>{e.set(T),c.onUpdate&&c.onUpdate(T)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:t,motionValue:e,element:o?void 0:i};kB(c)||(y={...y,...EB(t,y)}),y.duration&&(y.duration=ja(y.duration)),y.repeatDelay&&(y.repeatDelay=ja(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let m=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(y.duration=0,y.delay===0&&(m=!0)),m&&!o&&e.get()!==void 0){const T=$p(y.keyframes,c);if(T!==void 0)return Fn.update(()=>{y.onUpdate(T),y.onComplete()}),new zN([])}return!o&&ex.supports(y)?new ex(y):new Ry(y)};function DB({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function PE(t,e,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=t.getDefaultTransition(),transitionEnd:c,...f}=e;r&&(a=r);const p=[],y=i&&t.animationState&&t.animationState.getState()[i];for(const m in f){const T=t.getValue(m,(o=t.latestValues[m])!==null&&o!==void 0?o:null),E=f[m];if(E===void 0||y&&DB(y,m))continue;const I={delay:n,...vy(a||{},m)};let A=!1;if(window.MotionHandoffAnimation){const R=QC(t);if(R){const U=window.MotionHandoffAnimation(R,m,Fn);U!==null&&(I.startTime=U,A=!0)}}Xm(t,m),T.start(Iy(m,T,E,t.shouldReduceMotion&&ZC.has(m)?{type:!1}:I,t,A));const F=T.animation;F&&p.push(F)}return c&&Promise.all(p).then(()=>{Fn.update(()=>{c&&oj(t,c)})}),p}function nv(t,e,n={}){var r;const i=Bp(t,e,n.type==="exit"?(r=t.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(PE(t,i,n)):()=>Promise.resolve(),c=t.variantChildren&&t.variantChildren.size?(p=0)=>{const{delayChildren:y=0,staggerChildren:m,staggerDirection:T}=o;return _B(t,e,y+p,m,T,n)}:()=>Promise.resolve(),{when:f}=o;if(f){const[p,y]=f==="beforeChildren"?[a,c]:[c,a];return p().then(()=>y())}else return Promise.all([a(),c(n.delay)])}function _B(t,e,n=0,r=0,i=1,o){const a=[],c=(t.variantChildren.size-1)*r,f=i===1?(p=0)=>p*r:(p=0)=>c-p*r;return Array.from(t.variantChildren).sort(PB).forEach((p,y)=>{p.notify("AnimationStart",e),a.push(nv(p,e,{...o,delay:n+f(y)}).then(()=>p.notify("AnimationComplete",e)))}),Promise.all(a)}function PB(t,e){return t.sortNodePosition(e)}function OB(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(o=>nv(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=nv(t,e,n);else{const i=typeof e=="function"?Bp(t,e,n.custom):e;r=Promise.all(PE(t,i,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}const RB=oy.length;function OE(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?OE(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<RB;n++){const r=oy[n],i=t.props[r];(Ld(i)||i===!1)&&(e[r]=i)}return e}const IB=[...iy].reverse(),AB=iy.length;function MB(t){return e=>Promise.all(e.map(({animation:n,options:r})=>OB(t,n,r)))}function LB(t){let e=MB(t),n=tx(),r=!0;const i=f=>(p,y)=>{var m;const T=Bp(t,y,f==="exit"?(m=t.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(T){const{transition:E,transitionEnd:I,...A}=T;p={...p,...A,...I}}return p};function o(f){e=f(t)}function a(f){const{props:p}=t,y=OE(t.parent)||{},m=[],T=new Set;let E={},I=1/0;for(let F=0;F<AB;F++){const R=IB[F],U=n[R],H=p[R]!==void 0?p[R]:y[R],ne=Ld(H),Z=R===f?U.isActive:null;Z===!1&&(I=F);let ce=H===y[R]&&H!==p[R]&≠if(ce&&r&&t.manuallyAnimateOnMount&&(ce=!1),U.protectedKeys={...E},!U.isActive&&Z===null||!H&&!U.prevProp||Np(H)||typeof H=="boolean")continue;const S=FB(U.prevProp,H);let re=S||R===f&&U.isActive&&!ce&&ne||F>I&&ne,ie=!1;const Pe=Array.isArray(H)?H:[H];let Ke=Pe.reduce(i(R),{});Z===!1&&(Ke={});const{prevResolvedValues:$e={}}=U,tt={...$e,...Ke},nt=Re=>{re=!0,T.has(Re)&&(ie=!0,T.delete(Re)),U.needsAnimating[Re]=!0;const Ae=t.getValue(Re);Ae&&(Ae.liveStyle=!1)};for(const Re in tt){const Ae=Ke[Re],et=$e[Re];if(E.hasOwnProperty(Re))continue;let ye=!1;Ym(Ae)&&Ym(et)?ye=!UC(Ae,et):ye=Ae!==et,ye?Ae!=null?nt(Re):T.add(Re):Ae!==void 0&&T.has(Re)?nt(Re):U.protectedKeys[Re]=!0}U.prevProp=H,U.prevResolvedValues=Ke,U.isActive&&(E={...E,...Ke}),r&&t.blockInitialAnimation&&(re=!1),re&&(!(ce&&S)||ie)&&m.push(...Pe.map(Re=>({animation:Re,options:{type:R}})))}if(T.size){const F={};T.forEach(R=>{const U=t.getBaseTarget(R),H=t.getValue(R);H&&(H.liveStyle=!0),F[R]=U??null}),m.push({animation:F})}let A=!!m.length;return r&&(p.initial===!1||p.initial===p.animate)&&!t.manuallyAnimateOnMount&&(A=!1),r=!1,A?e(m):Promise.resolve()}function c(f,p){var y;if(n[f].isActive===p)return Promise.resolve();(y=t.variantChildren)===null||y===void 0||y.forEach(T=>{var E;return(E=T.animationState)===null||E===void 0?void 0:E.setActive(f,p)}),n[f].isActive=p;const m=a(f);for(const T in n)n[T].protectedKeys={};return m}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=tx(),r=!0}}}function FB(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!UC(e,t):!1}function ac(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function tx(){return{animate:ac(!0),whileInView:ac(),whileHover:ac(),whileTap:ac(),whileDrag:ac(),whileFocus:ac(),exit:ac()}}let ku=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},NB=class extends ku{constructor(e){super(e),e.animationState||(e.animationState=LB(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Np(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}},jB=0,BB=class extends ku{constructor(){super(...arguments),this.id=jB++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}};const $B={animation:{Feature:NB},exit:{Feature:BB}};function Bd(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function Zd(t){return{point:{x:t.pageX,y:t.pageY}}}const VB=t=>e=>wy(e)&&t(e,Zd(e));function bd(t,e,n,r){return Bd(t,e,VB(n),r)}const nx=(t,e)=>Math.abs(t-e);function HB(t,e){const n=nx(t.x,e.x),r=nx(t.y,e.y);return Math.sqrt(n**2+r**2)}let RE=class{constructor(e,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=qg(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,E=HB(m.offset,{x:0,y:0})>=3;if(!T&&!E)return;const{point:I}=m,{timestamp:A}=ki;this.history.push({...I,timestamp:A});const{onStart:F,onMove:R}=this.handlers;T||(F&&F(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,m)},this.handlePointerMove=(m,T)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=Gg(T,this.transformPagePoint),Fn.update(this.updatePoint,!0)},this.handlePointerUp=(m,T)=>{this.end();const{onEnd:E,onSessionEnd:I,resumeAnimation:A}=this.handlers;if(this.dragSnapToOrigin&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const F=qg(m.type==="pointercancel"?this.lastMoveEventInfo:Gg(T,this.transformPagePoint),this.history);this.startEvent&&E&&E(m,F),I&&I(m,F)},!wy(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Zd(e),c=Gg(a,this.transformPagePoint),{point:f}=c,{timestamp:p}=ki;this.history=[{...f,timestamp:p}];const{onSessionStart:y}=n;y&&y(e,qg(c,this.history)),this.removeListeners=Kd(bd(this.contextWindow,"pointermove",this.handlePointerMove),bd(this.contextWindow,"pointerup",this.handlePointerUp),bd(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),bu(this.updatePoint)}};function Gg(t,e){return e?{point:e(t.point)}:t}function rx(t,e){return{x:t.x-e.x,y:t.y-e.y}}function qg({point:t},e){return{point:t,delta:rx(t,IE(e)),offset:rx(t,UB(e)),velocity:WB(e,.1)}}function UB(t){return t[0]}function IE(t){return t[t.length-1]}function WB(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=IE(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>ja(e)));)n--;if(!r)return{x:0,y:0};const o=Cl(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const AE=1e-4,zB=1-AE,YB=1+AE,ME=.01,GB=0-ME,qB=0+ME;function es(t){return t.max-t.min}function XB(t,e,n){return Math.abs(t-e)<=n}function ix(t,e,n,r=.5){t.origin=r,t.originPoint=Kn(e.min,e.max,t.origin),t.scale=es(n)/es(e),t.translate=Kn(n.min,n.max,t.origin)-t.originPoint,(t.scale>=zB&&t.scale<=YB||isNaN(t.scale))&&(t.scale=1),(t.translate>=GB&&t.translate<=qB||isNaN(t.translate))&&(t.translate=0)}function wd(t,e,n,r){ix(t.x,e.x,n.x,r?r.originX:void 0),ix(t.y,e.y,n.y,r?r.originY:void 0)}function ox(t,e,n){t.min=n.min+e.min,t.max=t.min+es(e)}function KB(t,e,n){ox(t.x,e.x,n.x),ox(t.y,e.y,n.y)}function sx(t,e,n){t.min=e.min-n.min,t.max=t.min+es(e)}function xd(t,e,n){sx(t.x,e.x,n.x),sx(t.y,e.y,n.y)}function ZB(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?Kn(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?Kn(n,t,r.max):Math.min(t,n)),t}function ax(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function JB(t,{top:e,left:n,bottom:r,right:i}){return{x:ax(t.x,n,i),y:ax(t.y,e,r)}}function lx(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function QB(t,e){return{x:lx(t.x,e.x),y:lx(t.y,e.y)}}function e$(t,e){let n=.5;const r=es(t),i=es(e);return i>r?n=_f(e.min,e.max-r,t.min):r>i&&(n=_f(t.min,t.max-i,e.min)),_l(0,1,n)}function t$(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const rv=.35;function n$(t=rv){return t===!1?t=0:t===!0&&(t=rv),{x:ux(t,"left","right"),y:ux(t,"top","bottom")}}function ux(t,e,n){return{min:cx(t,e),max:cx(t,n)}}function cx(t,e){return typeof t=="number"?t:t[e]||0}const fx=()=>({translate:0,scale:1,origin:0,originPoint:0}),vf=()=>({x:fx(),y:fx()}),dx=()=>({min:0,max:0}),gr=()=>({x:dx(),y:dx()});function _s(t){return[t("x"),t("y")]}function LE({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function r$({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function i$(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Xg(t){return t===void 0||t===1}function iv({scale:t,scaleX:e,scaleY:n}){return!Xg(t)||!Xg(e)||!Xg(n)}function fc(t){return iv(t)||FE(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function FE(t){return hx(t.x)||hx(t.y)}function hx(t){return t&&t!=="0%"}function gp(t,e,n){const r=t-n,i=e*r;return n+i}function px(t,e,n,r,i){return i!==void 0&&(t=gp(t,i,r)),gp(t,n,r)+e}function ov(t,e=0,n=1,r,i){t.min=px(t.min,e,n,r,i),t.max=px(t.max,e,n,r,i)}function NE(t,{x:e,y:n}){ov(t.x,e.translate,e.scale,e.originPoint),ov(t.y,n.translate,n.scale,n.originPoint)}const gx=.999999999999,mx=1.0000000000001;function o$(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const{visualElement:f}=o.options;f&&f.props.style&&f.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&bf(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,NE(t,a)),r&&fc(o.latestValues)&&bf(t,o.latestValues))}e.x<mx&&e.x>gx&&(e.x=1),e.y<mx&&e.y>gx&&(e.y=1)}function yf(t,e){t.min=t.min+e,t.max=t.max+e}function vx(t,e,n,r,i=.5){const o=Kn(t.min,t.max,i);ov(t,e,n,o,r)}function bf(t,e){vx(t.x,e.x,e.scaleX,e.scale,e.originX),vx(t.y,e.y,e.scaleY,e.scale,e.originY)}function jE(t,e){return LE(i$(t.getBoundingClientRect(),e))}function s$(t,e,n){const r=jE(t,n),{scroll:i}=e;return i&&(yf(r.x,i.offset.x),yf(r.y,i.offset.y)),r}const BE=({current:t})=>t?t.ownerDocument.defaultView:null,a$=new WeakMap;let l$=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=gr(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=y=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Zd(y).point)},o=(y,m)=>{const{drag:T,dragPropagation:E,onDragStart:I}=this.getProps();if(T&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ej(T),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),_s(F=>{let R=this.getAxisMotionValue(F).get()||0;if(Ba.test(R)){const{projection:U}=this.visualElement;if(U&&U.layout){const H=U.layout.layoutBox[F];H&&(R=es(H)*(parseFloat(R)/100))}}this.originPoint[F]=R}),I&&Fn.postRender(()=>I(y,m)),Xm(this.visualElement,"transform");const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},a=(y,m)=>{const{dragPropagation:T,dragDirectionLock:E,onDirectionLock:I,onDrag:A}=this.getProps();if(!T&&!this.openDragLock)return;const{offset:F}=m;if(E&&this.currentDirection===null){this.currentDirection=u$(F),this.currentDirection!==null&&I&&I(this.currentDirection);return}this.updateAxis("x",m.point,F),this.updateAxis("y",m.point,F),this.visualElement.render(),A&&A(y,m)},c=(y,m)=>this.stop(y,m),f=()=>_s(y=>{var m;return this.getAnimationState(y)==="paused"&&((m=this.getAxisMotionValue(y).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new RE(e,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:BE(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Fn.postRender(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!_h(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=ZB(a,this.constraints[e],this.elastic[e])),o.set(a)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&gf(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=JB(i.layoutBox,n):this.constraints=!1,this.elastic=n$(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&_s(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=t$(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!gf(e))return!1;const r=e.current;yu(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=s$(r,i.root,this.visualElement.getTransformPagePoint());let a=QB(i.layout.layoutBox,o);if(n){const c=n(r$(a));this.hasMutatedConstraints=!!c,c&&(a=LE(c))}return a}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},p=_s(y=>{if(!_h(y,n,this.currentDirection))return;let m=f&&f[y]||{};a&&(m={min:0,max:0});const T=i?200:1e6,E=i?40:1e7,I={type:"inertia",velocity:r?e[y]:0,bounceStiffness:T,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(y,I)});return Promise.all(p).then(c)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return Xm(this.visualElement,e),r.start(Iy(e,r,0,n,this.visualElement,!1))}stopAnimation(){_s(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){_s(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){_s(n=>{const{drag:r}=this.getProps();if(!_h(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(e[n]-Kn(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!gf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};_s(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const f=c.get();i[a]=e$({min:f,max:f},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),_s(a=>{if(!_h(a,e,null))return;const c=this.getAxisMotionValue(a),{min:f,max:p}=this.constraints[a];c.set(Kn(f,p,i[a]))})}addListeners(){if(!this.visualElement.current)return;a$.set(this.visualElement,this);const e=this.visualElement.current,n=bd(e,"pointerdown",f=>{const{drag:p,dragListener:y=!0}=this.getProps();p&&y&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();gf(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Fn.read(r);const a=Bd(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p})=>{this.isDragging&&p&&(_s(y=>{const m=this.getAxisMotionValue(y);m&&(this.originPoint[y]+=f[y].translate,m.set(m.get()+f[y].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=rv,dragMomentum:c=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}};function _h(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function u$(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}let c$=class extends ku{constructor(e){super(e),this.removeGroupControls=Ro,this.removeListeners=Ro,this.controls=new l$(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ro}unmount(){this.removeGroupControls(),this.removeListeners()}};const yx=t=>(e,n)=>{t&&Fn.postRender(()=>t(e,n))};let f$=class extends ku{constructor(){super(...arguments),this.removePointerDownListener=Ro}onPointerDown(e){this.session=new RE(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:BE(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:yx(e),onStart:yx(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Fn.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=bd(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};const Wh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function bx(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const od={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Pt.test(t))t=parseFloat(t);else return t;const n=bx(t,e.target.x),r=bx(t,e.target.y);return`${n}% ${r}%`}},d$={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=wu.parse(t);if(i.length>5)return r;const o=wu.createTransformer(t),a=typeof i[0]!="number"?1:0,c=n.x.scale*e.x,f=n.y.scale*e.y;i[0+a]/=c,i[1+a]/=f;const p=Kn(c,f,.5);return typeof i[2+a]=="number"&&(i[2+a]/=p),typeof i[3+a]=="number"&&(i[3+a]/=p),o(i)}};let h$=class extends z.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=e;AN(p$),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Wh.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||e.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?a.promote():a.relegate()||Fn.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),ay.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}};function $E(t){const[e,n]=qF(),r=z.useContext(TC);return de.jsx(h$,{...t,layoutGroup:r,switchLayoutGroup:z.useContext(OC),isPresent:e,safeToRemove:n})}const p$={borderRadius:{...od,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:od,borderTopRightRadius:od,borderBottomLeftRadius:od,borderBottomRightRadius:od,boxShadow:d$};function g$(t,e,n){const r=Bi(t)?t:Nd(t);return r.start(Iy("",r,e,n)),r.animation}function m$(t){return t instanceof SVGElement&&t.tagName!=="svg"}const v$=(t,e)=>t.depth-e.depth;let y$=class{constructor(){this.children=[],this.isDirty=!1}add(e){xy(this.children,e),this.isDirty=!0}remove(e){Sy(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(v$),this.isDirty=!1,this.children.forEach(e)}};function b$(t,e){const n=$a.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&(bu(r),t(o-e))};return Fn.read(r,!0),()=>bu(r)}const VE=["TopLeft","TopRight","BottomLeft","BottomRight"],w$=VE.length,wx=t=>typeof t=="string"?parseFloat(t):t,xx=t=>typeof t=="number"||Pt.test(t);function x$(t,e,n,r,i,o){i?(t.opacity=Kn(0,n.opacity!==void 0?n.opacity:1,S$(r)),t.opacityExit=Kn(e.opacity!==void 0?e.opacity:1,0,T$(r))):o&&(t.opacity=Kn(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<w$;a++){const c=`border${VE[a]}Radius`;let f=Sx(e,c),p=Sx(n,c);if(f===void 0&&p===void 0)continue;f||(f=0),p||(p=0),f===0||p===0||xx(f)===xx(p)?(t[c]=Math.max(Kn(wx(f),wx(p),r),0),(Ba.test(p)||Ba.test(f))&&(t[c]+="%")):t[c]=p}(e.rotate||n.rotate)&&(t.rotate=Kn(e.rotate||0,n.rotate||0,r))}function Sx(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const S$=HE(0,.5,sE),T$=HE(.5,.95,Ro);function HE(t,e,n){return r=>r<t?0:r>e?1:n(_f(t,e,r))}function Tx(t,e){t.min=e.min,t.max=e.max}function Cs(t,e){Tx(t.x,e.x),Tx(t.y,e.y)}function Cx(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Ex(t,e,n,r,i){return t-=e,t=gp(t,1/n,r),i!==void 0&&(t=gp(t,1/i,r)),t}function C$(t,e=0,n=1,r=.5,i,o=t,a=t){if(Ba.test(e)&&(e=parseFloat(e),e=Kn(a.min,a.max,e/100)-a.min),typeof e!="number")return;let c=Kn(o.min,o.max,r);t===o&&(c-=e),t.min=Ex(t.min,e,n,c,i),t.max=Ex(t.max,e,n,c,i)}function kx(t,e,[n,r,i],o,a){C$(t,e[n],e[r],e[i],e.scale,o,a)}const E$=["x","scaleX","originX"],k$=["y","scaleY","originY"];function Dx(t,e,n,r){kx(t.x,e,E$,n?n.x:void 0,r?r.x:void 0),kx(t.y,e,k$,n?n.y:void 0,r?r.y:void 0)}function _x(t){return t.translate===0&&t.scale===1}function UE(t){return _x(t.x)&&_x(t.y)}function Px(t,e){return t.min===e.min&&t.max===e.max}function D$(t,e){return Px(t.x,e.x)&&Px(t.y,e.y)}function Ox(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function WE(t,e){return Ox(t.x,e.x)&&Ox(t.y,e.y)}function Rx(t){return es(t.x)/es(t.y)}function Ix(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}let _$=class{constructor(){this.members=[]}add(e){xy(this.members,e),e.scheduleRender()}remove(e){if(Sy(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function P$(t,e,n){let r="";const i=t.x.translate/e.x,o=t.y.translate/e.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:p,rotate:y,rotateX:m,rotateY:T,skewX:E,skewY:I}=n;p&&(r=`perspective(${p}px) ${r}`),y&&(r+=`rotate(${y}deg) `),m&&(r+=`rotateX(${m}deg) `),T&&(r+=`rotateY(${T}deg) `),E&&(r+=`skewX(${E}deg) `),I&&(r+=`skewY(${I}deg) `)}const c=t.x.scale*e.x,f=t.y.scale*e.y;return(c!==1||f!==1)&&(r+=`scale(${c}, ${f})`),r||"none"}const dc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},dd=typeof window<"u"&&window.MotionDebug!==void 0,Kg=["","X","Y","Z"],O$={visibility:"hidden"},Ax=1e3;let R$=0;function Zg(t,e,n,r){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),r&&(r[t]=0))}function zE(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=QC(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",Fn,!(i||o))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&zE(r)}function YE({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=e==null?void 0:e()){this.id=R$++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,dd&&(dc.totalNodes=dc.resolvedTargetDeltas=dc.recalculatedProjection=0),this.nodes.forEach(M$),this.nodes.forEach(B$),this.nodes.forEach($$),this.nodes.forEach(L$),dd&&window.MotionDebug.record(dc)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new y$)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Ty),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const f=this.eventHandlers.get(a);f&&f.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=m$(a),this.instance=a;const{layoutId:f,layout:p,visualElement:y}=this.options;if(y&&!y.current&&y.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(p||f)&&(this.isLayoutDirty=!0),t){let m;const T=()=>this.root.updateBlockedByResize=!1;t(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=b$(T,250),Wh.hasAnimatedSinceResize&&(Wh.hasAnimatedSinceResize=!1,this.nodes.forEach(Lx))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&y&&(f||p)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:T,hasRelativeTargetChanged:E,layout:I})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const A=this.options.transition||y.getDefaultTransition()||z$,{onLayoutAnimationStart:F,onLayoutAnimationComplete:R}=y.getProps(),U=!this.targetLayout||!WE(this.targetLayout,I)||E,H=!T&&E;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||H||T&&(U||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,H);const ne={...vy(A,"layout"),onPlay:F,onComplete:R};(y.shouldReduceMotion||this.options.layoutRoot)&&(ne.delay=0,ne.type=!1),this.startAnimation(ne)}else T||Lx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=I})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,bu(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(V$),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&zE(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const m=this.path[y];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:f}=this.options;if(c===void 0&&!f)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Mx);return}this.isUpdating||this.nodes.forEach(N$),this.isUpdating=!1,this.nodes.forEach(j$),this.nodes.forEach(I$),this.nodes.forEach(A$),this.clearAllSnapshots();const c=$a.now();ki.delta=_l(0,1e3/60,c-ki.timestamp),ki.timestamp=c,ki.isProcessing=!0,Hg.update.process(ki),Hg.preRender.process(ki),Hg.render.process(ki),ki.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ay.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(F$),this.sharedNodes.forEach(H$)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Fn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Fn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=gr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const f=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!UE(this.projectionDelta),f=this.getTransformTemplate(),p=f?f(this.latestValues,""):void 0,y=p!==this.prevTransformTemplateValue;a&&(c||fc(this.latestValues)||y)&&(i(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let f=this.removeElementScroll(c);return a&&(f=this.removeTransform(f)),Y$(f),{animationId:this.root.animationId,measuredBox:c,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return gr();const f=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(G$))){const{scroll:y}=this.root;y&&(yf(f.x,y.offset.x),yf(f.y,y.offset.y))}return f}removeElementScroll(a){var c;const f=gr();if(Cs(f,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return f;for(let p=0;p<this.path.length;p++){const y=this.path[p],{scroll:m,options:T}=y;y!==this.root&&m&&T.layoutScroll&&(m.wasRoot&&Cs(f,a),yf(f.x,m.offset.x),yf(f.y,m.offset.y))}return f}applyTransform(a,c=!1){const f=gr();Cs(f,a);for(let p=0;p<this.path.length;p++){const y=this.path[p];!c&&y.options.layoutScroll&&y.scroll&&y!==y.root&&bf(f,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),fc(y.latestValues)&&bf(f,y.latestValues)}return fc(this.latestValues)&&bf(f,this.latestValues),f}removeTransform(a){const c=gr();Cs(c,a);for(let f=0;f<this.path.length;f++){const p=this.path[f];if(!p.instance||!fc(p.latestValues))continue;iv(p.latestValues)&&p.updateSnapshot();const y=gr(),m=p.measurePageBox();Cs(y,m),Dx(c,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,y)}return fc(this.latestValues)&&Dx(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ki.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==f;if(!(a||p&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:T}=this.options;if(!(!this.layout||!(m||T))){if(this.resolvedRelativeTargetAt=ki.timestamp,!this.targetDelta&&!this.relativeTarget){const E=this.getClosestProjectingParent();E&&E.layout&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gr(),this.relativeTargetOrigin=gr(),xd(this.relativeTargetOrigin,this.layout.layoutBox,E.layout.layoutBox),Cs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=gr(),this.targetWithTransforms=gr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),KB(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Cs(this.target,this.layout.layoutBox),NE(this.target,this.targetDelta)):Cs(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const E=this.getClosestProjectingParent();E&&!!E.resumingFrom==!!this.resumingFrom&&!E.options.layoutScroll&&E.target&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gr(),this.relativeTargetOrigin=gr(),xd(this.relativeTargetOrigin,this.target,E.target),Cs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}dd&&dc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||iv(this.parent.latestValues)||FE(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),f=!!this.resumingFrom||this!==c;let p=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(p=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===ki.timestamp&&(p=!1),p)return;const{layout:y,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(y||m))return;Cs(this.layoutCorrected,this.layout.layoutBox);const T=this.treeScale.x,E=this.treeScale.y;o$(this.layoutCorrected,this.treeScale,this.path,f),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=gr());const{target:I}=c;if(!I){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Cx(this.prevProjectionDelta.x,this.projectionDelta.x),Cx(this.prevProjectionDelta.y,this.projectionDelta.y)),wd(this.projectionDelta,this.layoutCorrected,I,this.latestValues),(this.treeScale.x!==T||this.treeScale.y!==E||!Ix(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ix(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",I)),dd&&dc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=vf(),this.projectionDelta=vf(),this.projectionDeltaWithTransform=vf()}setAnimationOrigin(a,c=!1){const f=this.snapshot,p=f?f.latestValues:{},y={...this.latestValues},m=vf();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const T=gr(),E=f?f.source:void 0,I=this.layout?this.layout.source:void 0,A=E!==I,F=this.getStack(),R=!F||F.members.length<=1,U=!!(A&&!R&&this.options.crossfade===!0&&!this.path.some(W$));this.animationProgress=0;let H;this.mixTargetDelta=ne=>{const Z=ne/1e3;Fx(m.x,a.x,Z),Fx(m.y,a.y,Z),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(xd(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),U$(this.relativeTarget,this.relativeTargetOrigin,T,Z),H&&D$(this.relativeTarget,H)&&(this.isProjectionDirty=!1),H||(H=gr()),Cs(H,this.relativeTarget)),A&&(this.animationValues=y,x$(y,p,this.latestValues,Z,U,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Z},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(bu(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Fn.update(()=>{Wh.hasAnimatedSinceResize=!0,this.currentAnimation=g$(0,Ax,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ax),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:f,layout:p,latestValues:y}=a;if(!(!c||!f||!p)){if(this!==a&&this.layout&&p&&GE(this.options.animationType,this.layout.layoutBox,p.layoutBox)){f=this.target||gr();const m=es(this.layout.layoutBox.x);f.x.min=a.target.x.min,f.x.max=f.x.min+m;const T=es(this.layout.layoutBox.y);f.y.min=a.target.y.min,f.y.max=f.y.min+T}Cs(c,f),bf(c,y),wd(this.projectionDeltaWithTransform,this.layoutCorrected,c,y)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new _$),this.sharedNodes.get(a).add(c);const p=c.options.initialPromotionConfig;c.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:f}={}){const p=this.getStack();p&&p.promote(this,f),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:f}=a;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(c=!0),!c)return;const p={};f.z&&Zg("z",a,p,this.animationValues);for(let y=0;y<Kg.length;y++)Zg(`rotate${Kg[y]}`,a,p,this.animationValues),Zg(`skew${Kg[y]}`,a,p,this.animationValues);a.render();for(const y in p)a.setStaticValue(y,p[y]),this.animationValues&&(this.animationValues[y]=p[y]);a.scheduleRender()}getProjectionStyles(a){var c,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return O$;const p={visibility:""},y=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=Hh(a==null?void 0:a.pointerEvents)||"",p.transform=y?y(this.latestValues,""):"none",p;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const A={};return this.options.layoutId&&(A.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,A.pointerEvents=Hh(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!fc(this.latestValues)&&(A.transform=y?y({},""):"none",this.hasProjected=!1),A}const T=m.animationValues||m.latestValues;this.applyTransformsToTarget(),p.transform=P$(this.projectionDeltaWithTransform,this.treeScale,T),y&&(p.transform=y(T,p.transform));const{x:E,y:I}=this.projectionDelta;p.transformOrigin=`${E.origin*100}% ${I.origin*100}% 0`,m.animationValues?p.opacity=m===this?(f=(c=T.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:T.opacityExit:p.opacity=m===this?T.opacity!==void 0?T.opacity:"":T.opacityExit!==void 0?T.opacityExit:0;for(const A in cp){if(T[A]===void 0)continue;const{correct:F,applyTo:R}=cp[A],U=p.transform==="none"?T[A]:F(T[A],m);if(R){const H=R.length;for(let ne=0;ne<H;ne++)p[R[ne]]=U}else p[A]=U}return this.options.layoutId&&(p.pointerEvents=m===this?Hh(a==null?void 0:a.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(Mx),this.root.sharedNodes.clear()}}}function I$(t){t.updateLayout()}function A$(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:o}=t.options,a=n.source!==t.layout.source;o==="size"?_s(m=>{const T=a?n.measuredBox[m]:n.layoutBox[m],E=es(T);T.min=r[m].min,T.max=T.min+E}):GE(o,n.layoutBox,r)&&_s(m=>{const T=a?n.measuredBox[m]:n.layoutBox[m],E=es(r[m]);T.max=T.min+E,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[m].max=t.relativeTarget[m].min+E)});const c=vf();wd(c,r,n.layoutBox);const f=vf();a?wd(f,t.applyTransform(i,!0),n.measuredBox):wd(f,r,n.layoutBox);const p=!UE(c);let y=!1;if(!t.resumeFrom){const m=t.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:T,layout:E}=m;if(T&&E){const I=gr();xd(I,n.layoutBox,T.layoutBox);const A=gr();xd(A,r,E.layoutBox),WE(I,A)||(y=!0),m.options.layoutRoot&&(t.relativeTarget=A,t.relativeTargetOrigin=I,t.relativeParent=m)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:f,layoutDelta:c,hasLayoutChanged:p,hasRelativeTargetChanged:y})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function M$(t){dd&&dc.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function L$(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function F$(t){t.clearSnapshot()}function Mx(t){t.clearMeasurements()}function N$(t){t.isLayoutDirty=!1}function j$(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Lx(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function B$(t){t.resolveTargetDelta()}function $$(t){t.calcProjection()}function V$(t){t.resetSkewAndRotation()}function H$(t){t.removeLeadSnapshot()}function Fx(t,e,n){t.translate=Kn(e.translate,0,n),t.scale=Kn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Nx(t,e,n,r){t.min=Kn(e.min,n.min,r),t.max=Kn(e.max,n.max,r)}function U$(t,e,n,r){Nx(t.x,e.x,n.x,r),Nx(t.y,e.y,n.y,r)}function W$(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const z$={duration:.45,ease:[.4,0,.1,1]},jx=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Bx=jx("applewebkit/")&&!jx("chrome/")?Math.round:Ro;function $x(t){t.min=Bx(t.min),t.max=Bx(t.max)}function Y$(t){$x(t.x),$x(t.y)}function GE(t,e,n){return t==="position"||t==="preserve-aspect"&&!XB(Rx(e),Rx(n),.2)}function G$(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const q$=YE({attachResizeListener:(t,e)=>Bd(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Jg={current:void 0},qE=YE({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Jg.current){const t=new q$({});t.mount(window),t.setOptions({layoutScroll:!0}),Jg.current=t}return Jg.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),X$={pan:{Feature:f$},drag:{Feature:c$,ProjectionNode:qE,MeasureLayout:$E}};function Vx(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Fn.postRender(()=>o(e,Zd(e)))}let K$=class extends ku{mount(){const{current:e}=this.node;e&&(this.unmount=XN(e,n=>(Vx(this.node,n,"Start"),r=>Vx(this.node,r,"End"))))}unmount(){}},Z$=class extends ku{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Kd(Bd(this.node.current,"focus",()=>this.onFocus()),Bd(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function Hx(t,e,n){const{props:r}=t;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Fn.postRender(()=>o(e,Zd(e)))}let J$=class extends ku{mount(){const{current:e}=this.node;e&&(this.unmount=QN(e,n=>(Hx(this.node,n,"Start"),(r,{success:i})=>Hx(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const sv=new WeakMap,Qg=new WeakMap,Q$=t=>{const e=sv.get(t.target);e&&e(t)},e3=t=>{t.forEach(Q$)};function t3({root:t,...e}){const n=t||document;Qg.has(n)||Qg.set(n,{});const r=Qg.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(e3,{root:t,...e})),r[i]}function n3(t,e,n){const r=t3(e);return sv.set(t,n),r.observe(t),()=>{sv.delete(t),r.unobserve(t)}}const r3={some:0,all:1};let i3=class extends ku{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=e,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:r3[i]},c=f=>{const{isIntersecting:p}=f;if(this.isInView===p||(this.isInView=p,o&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:y,onViewportLeave:m}=this.node.getProps(),T=p?y:m;T&&T(f)};return n3(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(o3(e,n))&&this.startObserver()}unmount(){}};function o3({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const s3={inView:{Feature:i3},tap:{Feature:J$},focus:{Feature:Z$},hover:{Feature:K$}},a3={layout:{ProjectionNode:qE,MeasureLayout:$E}},av={current:null},XE={current:!1};function l3(){if(XE.current=!0,!!ny)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>av.current=t.matches;t.addListener(e),e()}else av.current=!1}const u3=[...wE,ji,wu],c3=t=>u3.find(bE(t)),Ux=new WeakMap;function f3(t,e,n){for(const r in e){const i=e[r],o=n[r];if(Bi(i))t.addValue(r,i),process.env.NODE_ENV==="development"&&Lp(i.version==="11.18.2",`Attempting to mix Motion versions ${i.version} with 11.18.2 may not work as expected.`);else if(Bi(o))t.addValue(r,Nd(i,{owner:t}));else if(o!==i)if(t.hasValue(r)){const a=t.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=t.getStaticValue(r);t.addValue(r,Nd(a!==void 0?a:i,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const Wx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let d3=class{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Py,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const E=$a.now();this.renderScheduledAt<E&&(this.renderScheduledAt=E,Fn.render(this.render,!1,!0))};const{latestValues:f,renderState:p,onUpdate:y}=a;this.onUpdate=y,this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=p,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=jp(n),this.isVariantNode=_C(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:m,...T}=this.scrapeMotionValuesFromProps(n,{},this);for(const E in T){const I=T[E];f[E]!==void 0&&Bi(I)&&I.set(f[E],!1)}}mount(e){this.current=e,Ux.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),XE.current||l3(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:av.current,process.env.NODE_ENV!=="production"&&Lp(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ux.delete(this.current),this.projection&&this.projection.unmount(),bu(this.notifyUpdate),bu(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=Rc.has(e),i=n.on("change",c=>{this.latestValues[e]=c,this.props.onUpdate&&Fn.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Pf){const n=Pf[e];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):gr()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Wx.length;r++){const i=Wx[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=e[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=f3(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const r=this.values.get(e);n!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=Nd(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){var r;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(r=this.getBaseTargetFromProps(this.props,e))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(vE(i)||lE(i))?i=parseFloat(i):!c3(i)&&wu.test(n)&&(i=pE(e,n)),this.setBaseTarget(e,Bi(i)?i.get():i)),Bi(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=uy(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[e])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!Bi(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Ty),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}},KE=class extends d3{constructor(){super(...arguments),this.KeyframeResolver=xE}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Bi(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function h3(t){return window.getComputedStyle(t)}let p3=class extends KE{constructor(){super(...arguments),this.type="html",this.renderInstance=NC}readValueFromInstance(e,n){if(Rc.has(n)){const r=_y(n);return r&&r.default||0}else{const r=h3(e),i=(MC(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return jE(e,n)}build(e,n,r){dy(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return my(e,n,r)}},g3=class extends KE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=gr}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Rc.has(n)){const r=_y(n);return r&&r.default||0}return n=jC.has(n)?n:sy(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return VC(e,n,r)}build(e,n,r){hy(e,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,n,r,i){BC(e,n,r,i)}mount(e){this.isSVGTag=gy(e.tagName),super.mount(e)}};const m3=(t,e)=>ly(t)?new g3(e):new p3(e,{allowProjection:t!==z.Fragment}),v3=HN({...$B,...s3,...X$,...a3},m3),y3=rN(v3);function lv(t,e,n){var r,i,o,a,c;e==null&&(e=100);function f(){var y=Date.now()-a;y<e&&y>=0?r=setTimeout(f,e-y):(r=null,n||(c=t.apply(o,i),o=i=null))}var p=function(){o=this,i=arguments,a=Date.now();var y=n&&!r;return r||(r=setTimeout(f,e)),y&&(c=t.apply(o,i),o=i=null),c};return p.clear=function(){r&&(clearTimeout(r),r=null)},p.flush=function(){r&&(c=t.apply(o,i),o=i=null,clearTimeout(r),r=null)},p}lv.debounce=lv;var b3=lv;const zx=Eu(b3);function w3(t){let{debounce:e,scroll:n,polyfill:r,offsetSize:i}=t===void 0?{debounce:0,scroll:!1,offsetSize:!1}:t;const o=r||(typeof window>"u"?class{}:window.ResizeObserver);if(!o)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[a,c]=z.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),f=z.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:a}),p=e?typeof e=="number"?e:e.scroll:null,y=e?typeof e=="number"?e:e.resize:null,m=z.useRef(!1);z.useEffect(()=>(m.current=!0,()=>void(m.current=!1)));const[T,E,I]=z.useMemo(()=>{const U=()=>{if(!f.current.element)return;const{left:H,top:ne,width:Z,height:ce,bottom:S,right:re,x:ie,y:Pe}=f.current.element.getBoundingClientRect(),Ke={left:H,top:ne,width:Z,height:ce,bottom:S,right:re,x:ie,y:Pe};f.current.element instanceof HTMLElement&&i&&(Ke.height=f.current.element.offsetHeight,Ke.width=f.current.element.offsetWidth),Object.freeze(Ke),m.current&&!C3(f.current.lastBounds,Ke)&&c(f.current.lastBounds=Ke)};return[U,y?zx(U,y):U,p?zx(U,p):U]},[c,i,p,y]);function A(){f.current.scrollContainers&&(f.current.scrollContainers.forEach(U=>U.removeEventListener("scroll",I,!0)),f.current.scrollContainers=null),f.current.resizeObserver&&(f.current.resizeObserver.disconnect(),f.current.resizeObserver=null)}function F(){f.current.element&&(f.current.resizeObserver=new o(I),f.current.resizeObserver.observe(f.current.element),n&&f.current.scrollContainers&&f.current.scrollContainers.forEach(U=>U.addEventListener("scroll",I,{capture:!0,passive:!0})))}const R=U=>{!U||U===f.current.element||(A(),f.current.element=U,f.current.scrollContainers=ZE(U),F())};return S3(I,!!n),x3(E),z.useEffect(()=>{A(),F()},[n,I,E]),z.useEffect(()=>A,[]),[R,a,T]}function x3(t){z.useEffect(()=>{const e=t;return window.addEventListener("resize",e),()=>void window.removeEventListener("resize",e)},[t])}function S3(t,e){z.useEffect(()=>{if(e){const n=t;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[t,e])}function ZE(t){const e=[];if(!t||t===document.body)return e;const{overflow:n,overflowX:r,overflowY:i}=window.getComputedStyle(t);return[n,r,i].some(o=>o==="auto"||o==="scroll")&&e.push(t),[...e,...ZE(t.parentElement)]}const T3=["x","y","top","bottom","left","right","width","height"],C3=(t,e)=>T3.every(n=>t[n]===e[n]),JE=z.createContext({dragDropManager:void 0});function Es(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Yx=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Gx=function(){return Math.random().toString(36).substring(7).split("").join(".")},qx={INIT:"@@redux/INIT"+Gx(),REPLACE:"@@redux/REPLACE"+Gx()};function E3(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function k3(t){if(t===void 0)return"undefined";if(t===null)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(P3(t))return"date";if(_3(t))return"error";var n=D3(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function D3(t){return typeof t.constructor=="function"?t.constructor.name:null}function _3(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function P3(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function cf(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=k3(t)),e}function QE(t,e,n){var r;if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Es(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Es(1):"Expected the enhancer to be a function. Instead, received: '"+cf(n)+"'");return n(QE)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Es(2):"Expected the root reducer to be a function. Instead, received: '"+cf(t)+"'");var i=t,o=e,a=[],c=a,f=!1;function p(){c===a&&(c=a.slice())}function y(){if(f)throw new Error(process.env.NODE_ENV==="production"?Es(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function m(A){if(typeof A!="function")throw new Error(process.env.NODE_ENV==="production"?Es(4):"Expected the listener to be a function. Instead, received: '"+cf(A)+"'");if(f)throw new Error(process.env.NODE_ENV==="production"?Es(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var F=!0;return p(),c.push(A),function(){if(F){if(f)throw new Error(process.env.NODE_ENV==="production"?Es(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");F=!1,p();var U=c.indexOf(A);c.splice(U,1),a=null}}}function T(A){if(!E3(A))throw new Error(process.env.NODE_ENV==="production"?Es(7):"Actions must be plain objects. Instead, the actual type was: '"+cf(A)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof A.type>"u")throw new Error(process.env.NODE_ENV==="production"?Es(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(f)throw new Error(process.env.NODE_ENV==="production"?Es(9):"Reducers may not dispatch actions.");try{f=!0,o=i(o,A)}finally{f=!1}for(var F=a=c,R=0;R<F.length;R++){var U=F[R];U()}return A}function E(A){if(typeof A!="function")throw new Error(process.env.NODE_ENV==="production"?Es(10):"Expected the nextReducer to be a function. Instead, received: '"+cf(A));i=A,T({type:qx.REPLACE})}function I(){var A,F=m;return A={subscribe:function(U){if(typeof U!="object"||U===null)throw new Error(process.env.NODE_ENV==="production"?Es(11):"Expected the observer to be an object. Instead, received: '"+cf(U)+"'");function H(){U.next&&U.next(y())}H();var ne=F(H);return{unsubscribe:ne}}},A[Yx]=function(){return this},A}return T({type:qx.INIT}),r={dispatch:T,subscribe:m,getState:y,replaceReducer:E},r[Yx]=I,r}function Ut(t,e,...n){if(O3()&&e===void 0)throw new Error("invariant requires an error message argument");if(!t){let r;if(e===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let i=0;r=new Error(e.replace(/%s/g,function(){return n[i++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function O3(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function R3(t,e,n){return e.split(".").reduce((r,i)=>r&&r[i]?r[i]:n||null,t)}function I3(t,e){return t.filter(n=>n!==e)}function ek(t){return typeof t=="object"}function A3(t,e){const n=new Map,r=o=>{n.set(o,n.has(o)?n.get(o)+1:1)};t.forEach(r),e.forEach(r);const i=[];return n.forEach((o,a)=>{o===1&&i.push(a)}),i}function M3(t,e){return t.filter(n=>e.indexOf(n)>-1)}const Ay="dnd-core/INIT_COORDS",Vp="dnd-core/BEGIN_DRAG",My="dnd-core/PUBLISH_DRAG_SOURCE",Hp="dnd-core/HOVER",Up="dnd-core/DROP",Wp="dnd-core/END_DRAG";function Xx(t,e){return{type:Ay,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const L3={type:Ay,payload:{clientOffset:null,sourceClientOffset:null}};function F3(t){return function(n=[],r={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=r,c=t.getMonitor(),f=t.getRegistry();t.dispatch(Xx(o)),N3(n,c,f);const p=$3(n,c);if(p==null){t.dispatch(L3);return}let y=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");j3(a),y=a(p)}t.dispatch(Xx(o,y));const T=f.getSource(p).beginDrag(c,p);if(T==null)return;B3(T),f.pinSource(p);const E=f.getSourceType(p);return{type:Vp,payload:{itemType:E,item:T,sourceId:p,clientOffset:o||null,sourceClientOffset:y||null,isSourcePublic:!!i}}}}function N3(t,e,n){Ut(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(r){Ut(n.getSource(r),"Expected sourceIds to be registered.")})}function j3(t){Ut(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function B3(t){Ut(ek(t),"Item must be an object.")}function $3(t,e){let n=null;for(let r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}function V3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function H3(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){V3(t,i,n[i])})}return t}function U3(t){return function(n={}){const r=t.getMonitor(),i=t.getRegistry();W3(r),G3(r).forEach((a,c)=>{const f=z3(a,c,i,r),p={type:Up,payload:{dropResult:H3({},n,f)}};t.dispatch(p)})}}function W3(t){Ut(t.isDragging(),"Cannot call drop while not dragging."),Ut(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function z3(t,e,n,r){const i=n.getTarget(t);let o=i?i.drop(r,t):void 0;return Y3(o),typeof o>"u"&&(o=e===0?{}:r.getDropResult()),o}function Y3(t){Ut(typeof t>"u"||ek(t),"Drop result must either be an object or undefined.")}function G3(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function q3(t){return function(){const n=t.getMonitor(),r=t.getRegistry();X3(n);const i=n.getSourceId();return i!=null&&(r.getSource(i,!0).endDrag(n,i),r.unpinSource()),{type:Wp}}}function X3(t){Ut(t.isDragging(),"Cannot call endDrag while not dragging.")}function uv(t,e){return e===null?t===null:Array.isArray(t)?t.some(n=>n===e):t===e}function K3(t){return function(n,{clientOffset:r}={}){Z3(n);const i=n.slice(0),o=t.getMonitor(),a=t.getRegistry(),c=o.getItemType();return Q3(i,a,c),J3(i,o,a),eV(i,o,a),{type:Hp,payload:{targetIds:i,clientOffset:r||null}}}}function Z3(t){Ut(Array.isArray(t),"Expected targetIds to be an array.")}function J3(t,e,n){Ut(e.isDragging(),"Cannot call hover while not dragging."),Ut(!e.didDrop(),"Cannot call hover after drop.");for(let r=0;r<t.length;r++){const i=t[r];Ut(t.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");const o=n.getTarget(i);Ut(o,"Expected targetIds to be registered.")}}function Q3(t,e,n){for(let r=t.length-1;r>=0;r--){const i=t[r],o=e.getTargetType(i);uv(o,n)||t.splice(r,1)}}function eV(t,e,n){t.forEach(function(r){n.getTarget(r).hover(e,r)})}function tV(t){return function(){if(t.getMonitor().isDragging())return{type:My}}}function nV(t){return{beginDrag:F3(t),publishDragSource:tV(t),hover:K3(t),drop:U3(t),endDrag:q3(t)}}class rV{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:n}=this.store;function r(o){return(...a)=>{const c=o.apply(e,a);typeof c<"u"&&n(c)}}const i=nV(this);return Object.keys(i).reduce((o,a)=>{const c=i[a];return o[a]=r(c),o},{})}dispatch(e){this.store.dispatch(e)}constructor(e,n){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=n,e.subscribe(this.handleRefCountChange)}}function iV(t,e){return{x:t.x+e.x,y:t.y+e.y}}function tk(t,e){return{x:t.x-e.x,y:t.y-e.y}}function oV(t){const{clientOffset:e,initialClientOffset:n,initialSourceClientOffset:r}=t;return!e||!n||!r?null:tk(iV(e,r),n)}function sV(t){const{clientOffset:e,initialClientOffset:n}=t;return!e||!n?null:tk(e,n)}const Sd=[],Ly=[];Sd.__IS_NONE__=!0;Ly.__IS_ALL__=!0;function aV(t,e){return t===Sd?!1:t===Ly||typeof e>"u"?!0:M3(e,t).length>0}class lV{subscribeToStateChange(e,n={}){const{handlerIds:r}=n;Ut(typeof e=="function","listener must be a function."),Ut(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const a=this.store.getState(),c=a.stateId;try{c===i||c===i+1&&!aV(a.dirtyHandlerIds,r)||e()}finally{i=c}};return this.store.subscribe(o)}subscribeToOffsetChange(e){Ut(typeof e=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const i=this.store.getState().dragOffset;i!==n&&(n=i,e())};return this.store.subscribe(r)}canDragSource(e){if(!e)return!1;const n=this.registry.getSource(e);return Ut(n,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:n.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const n=this.registry.getTarget(e);if(Ut(n,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(e),i=this.getItemType();return uv(r,i)&&n.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const n=this.registry.getSource(e,!0);if(Ut(n,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(e),i=this.getItemType();return r!==i?!1:n.isDragging(this,e)}isOverTarget(e,n={shallow:!1}){if(!e)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const i=this.registry.getTargetType(e),o=this.getItemType();if(o&&!uv(i,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const c=a.indexOf(e);return r?c===a.length-1:c>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return oV(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return sV(this.store.getState().dragOffset)}constructor(e,n){this.store=e,this.registry=n}}const Kx=typeof global<"u"?global:self,nk=Kx.MutationObserver||Kx.WebKitMutationObserver;function rk(t){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),t()}}}function uV(t){let e=1;const n=new nk(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const cV=typeof nk=="function"?uV:rk;class fV{enqueueTask(e){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const n=this.index;if(this.index++,e[n].call(),this.index>this.capacity){for(let r=0,i=e.length-this.index;r<i;r++)e[r]=e[r+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=cV(this.flush),this.requestErrorThrow=rk(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class dV{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,n){this.onError=e,this.release=n,this.task=null}}class hV{create(e){const n=this.freeTasks,r=n.length?n.pop():new dV(this.onError,i=>n[n.length]=i);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const ik=new fV,pV=new hV(ik.registerPendingError);function gV(t){ik.enqueueTask(pV.create(t))}const Fy="dnd-core/ADD_SOURCE",Ny="dnd-core/ADD_TARGET",jy="dnd-core/REMOVE_SOURCE",zp="dnd-core/REMOVE_TARGET";function mV(t){return{type:Fy,payload:{sourceId:t}}}function vV(t){return{type:Ny,payload:{targetId:t}}}function yV(t){return{type:jy,payload:{sourceId:t}}}function bV(t){return{type:zp,payload:{targetId:t}}}function wV(t){Ut(typeof t.canDrag=="function","Expected canDrag to be a function."),Ut(typeof t.beginDrag=="function","Expected beginDrag to be a function."),Ut(typeof t.endDrag=="function","Expected endDrag to be a function.")}function xV(t){Ut(typeof t.canDrop=="function","Expected canDrop to be a function."),Ut(typeof t.hover=="function","Expected hover to be a function."),Ut(typeof t.drop=="function","Expected beginDrag to be a function.")}function cv(t,e){if(e&&Array.isArray(t)){t.forEach(n=>cv(n,!1));return}Ut(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var Os;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(Os||(Os={}));let SV=0;function TV(){return SV++}function CV(t){const e=TV().toString();switch(t){case Os.SOURCE:return`S${e}`;case Os.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function Zx(t){switch(t[0]){case"S":return Os.SOURCE;case"T":return Os.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function Jx(t,e){const n=t.entries();let r=!1;do{const{done:i,value:[,o]}=n.next();if(o===e)return!0;r=!!i}while(!r);return!1}class EV{addSource(e,n){cv(e),wV(n);const r=this.addHandler(Os.SOURCE,e,n);return this.store.dispatch(mV(r)),r}addTarget(e,n){cv(e,!0),xV(n);const r=this.addHandler(Os.TARGET,e,n);return this.store.dispatch(vV(r)),r}containsHandler(e){return Jx(this.dragSources,e)||Jx(this.dropTargets,e)}getSource(e,n=!1){return Ut(this.isSourceId(e),"Expected a valid source ID."),n&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return Ut(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return Ut(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return Ut(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return Zx(e)===Os.SOURCE}isTargetId(e){return Zx(e)===Os.TARGET}removeSource(e){Ut(this.getSource(e),"Expected an existing source."),this.store.dispatch(yV(e)),gV(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){Ut(this.getTarget(e),"Expected an existing target."),this.store.dispatch(bV(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const n=this.getSource(e);Ut(n,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=n}unpinSource(){Ut(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,n,r){const i=CV(e);return this.types.set(i,n),e===Os.SOURCE?this.dragSources.set(i,r):e===Os.TARGET&&this.dropTargets.set(i,r),i}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const kV=(t,e)=>t===e;function DV(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function _V(t,e,n=kV){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(!n(t[r],e[r]))return!1;return!0}function PV(t=Sd,e){switch(e.type){case Hp:break;case Fy:case Ny:case zp:case jy:return Sd;case Vp:case My:case Wp:case Up:default:return Ly}const{targetIds:n=[],prevTargetIds:r=[]}=e.payload,i=A3(n,r);if(!(i.length>0||!_V(n,r)))return Sd;const a=r[r.length-1],c=n[n.length-1];return a!==c&&(a&&i.push(a),c&&i.push(c)),i}function OV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function RV(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){OV(t,i,n[i])})}return t}const Qx={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function IV(t=Qx,e){const{payload:n}=e;switch(e.type){case Ay:case Vp:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Hp:return DV(t.clientOffset,n.clientOffset)?t:RV({},t,{clientOffset:n.clientOffset});case Wp:case Up:return Qx;default:return t}}function AV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ff(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){AV(t,i,n[i])})}return t}const MV={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function LV(t=MV,e){const{payload:n}=e;switch(e.type){case Vp:return ff({},t,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case My:return ff({},t,{isSourcePublic:!0});case Hp:return ff({},t,{targetIds:n.targetIds});case zp:return t.targetIds.indexOf(n.targetId)===-1?t:ff({},t,{targetIds:I3(t.targetIds,n.targetId)});case Up:return ff({},t,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Wp:return ff({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function FV(t=0,e){switch(e.type){case Fy:case Ny:return t+1;case jy:case zp:return t-1;default:return t}}function NV(t=0){return t+1}function jV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function BV(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){jV(t,i,n[i])})}return t}function $V(t={},e){return{dirtyHandlerIds:PV(t.dirtyHandlerIds,{type:e.type,payload:BV({},e.payload,{prevTargetIds:R3(t,"dragOperation.targetIds",[])})}),dragOffset:IV(t.dragOffset,e),refCount:FV(t.refCount,e),dragOperation:LV(t.dragOperation,e),stateId:NV(t.stateId)}}function VV(t,e=void 0,n={},r=!1){const i=HV(r),o=new lV(i,new EV(i)),a=new rV(i,o),c=t(a,e,n);return a.receiveBackend(c),a}function HV(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return QE($V,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}function UV(t,e){if(t==null)return{};var n=WV(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function WV(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}let eS=0;const zh=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var fv=z.memo(function(e){var{children:n}=e,r=UV(e,["children"]);const[i,o]=zV(r);return z.useEffect(()=>{if(o){const a=ok();return++eS,()=>{--eS===0&&(a[zh]=null)}}},[]),de.jsx(JE.Provider,{value:i,children:n})});function zV(t){if("manager"in t)return[{dragDropManager:t.manager},!1];const e=YV(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}function YV(t,e=ok(),n,r){const i=e;return i[zh]||(i[zh]={dragDropManager:VV(t,e,n,r)}),i[zh]}function ok(){return typeof global<"u"?global:window}var GV=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!t(e[i],n[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){var a=o[i];if(!t(e[a],n[a]))return!1}return!0}return e!==e&&n!==n};const qV=Eu(GV),kc=typeof window<"u"?z.useLayoutEffect:z.useEffect;function sk(t,e,n){const[r,i]=z.useState(()=>e(t)),o=z.useCallback(()=>{const a=e(t);qV(r,a)||(i(a),n&&n())},[r,t,n]);return kc(o),[r,o]}function XV(t,e,n){const[r,i]=sk(t,e,n);return kc(function(){const a=t.getHandlerId();if(a!=null)return t.subscribeToStateChange(i,{handlerIds:[a]})},[t,i]),r}function ak(t,e,n){return XV(e,t||(()=>({})),()=>n.reconnect())}function lk(t,e){const n=[...e||[]];return e==null&&typeof t!="function"&&n.push(t),z.useMemo(()=>typeof t=="function"?t():t,n)}function KV(t){return z.useMemo(()=>t.hooks.dragSource(),[t])}function ZV(t){return z.useMemo(()=>t.hooks.dragPreview(),[t])}let em=!1,tm=!1;class JV{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){Ut(!em,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return em=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{em=!1}}isDragging(){if(!this.sourceId)return!1;Ut(!tm,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return tm=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{tm=!1}}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,n){return this.internalMonitor.isOverTarget(e,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let nm=!1;class QV{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}canDrop(){if(!this.targetId)return!1;Ut(!nm,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return nm=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{nm=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function eH(t,e,n){const r=n.getRegistry(),i=r.addTarget(t,e);return[i,()=>r.removeTarget(i)]}function tH(t,e,n){const r=n.getRegistry(),i=r.addSource(t,e);return[i,()=>r.removeSource(i)]}function dv(t,e,n,r){let i;if(i!==void 0)return!!i;if(t===e)return!0;if(typeof t!="object"||!t||typeof e!="object"||!e)return!1;const o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;const c=Object.prototype.hasOwnProperty.bind(e);for(let f=0;f<o.length;f++){const p=o[f];if(!c(p))return!1;const y=t[p],m=e[p];if(i=void 0,i===!1||i===void 0&&y!==m)return!1}return!0}function hv(t){return t!==null&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function nH(t){if(typeof t.type=="string")return;const e=t.type.displayName||t.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${e} into a <div>, or turn it into a drag source or a drop target itself.`)}function rH(t){return(e=null,n=null)=>{if(!z.isValidElement(e)){const o=e;return t(o,n),o}const r=e;return nH(r),iH(r,n?o=>t(o,n):t)}}function uk(t){const e={};return Object.keys(t).forEach(n=>{const r=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{const i=rH(r);e[n]=()=>i}}),e}function tS(t,e){typeof t=="function"?t(e):t.current=e}function iH(t,e){const n=t.ref;return Ut(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?z.cloneElement(t,{ref:r=>{tS(n,r),tS(e,r)}}):z.cloneElement(t,{ref:e})}class oH{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?e?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),n):(this.lastConnectedDragSource=e,n):n}reconnectDragPreview(e=!1){const n=this.dragPreview,r=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!dv(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!dv(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=uk({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,hv(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,hv(n)?this.dragPreviewRef=n:this.dragPreviewNode=n,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class sH{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!dv(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=uk({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,hv(n)?this.dropTargetRef=n:this.dropTargetNode=n,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function Rl(){const{dragDropManager:t}=z.useContext(JE);return Ut(t!=null,"Expected drag drop context"),t}function aH(t,e){const n=Rl(),r=z.useMemo(()=>new oH(n.getBackend()),[n]);return kc(()=>(r.dragSourceOptions=t||null,r.reconnect(),()=>r.disconnectDragSource()),[r,t]),kc(()=>(r.dragPreviewOptions=e||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,e]),r}function lH(){const t=Rl();return z.useMemo(()=>new JV(t),[t])}class uH{beginDrag(){const e=this.spec,n=this.monitor;let r=null;return typeof e.item=="object"?r=e.item:typeof e.item=="function"?r=e.item(n):r={},r??null}canDrag(){const e=this.spec,n=this.monitor;return typeof e.canDrag=="boolean"?e.canDrag:typeof e.canDrag=="function"?e.canDrag(n):!0}isDragging(e,n){const r=this.spec,i=this.monitor,{isDragging:o}=r;return o?o(i):n===e.getSourceId()}endDrag(){const e=this.spec,n=this.monitor,r=this.connector,{end:i}=e;i&&i(n.getItem(),n),r.reconnect()}constructor(e,n,r){this.spec=e,this.monitor=n,this.connector=r}}function cH(t,e,n){const r=z.useMemo(()=>new uH(t,e,n),[e,n]);return z.useEffect(()=>{r.spec=t},[t]),r}function fH(t){return z.useMemo(()=>{const e=t.type;return Ut(e!=null,"spec.type must be defined"),e},[t])}function dH(t,e,n){const r=Rl(),i=cH(t,e,n),o=fH(t);kc(function(){if(o!=null){const[c,f]=tH(o,i,r);return e.receiveHandlerId(c),n.receiveHandlerId(c),f}},[r,e,n,i,o])}function ck(t,e){const n=lk(t,e);Ut(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=lH(),i=aH(n.options,n.previewOptions);return dH(n,r,i),[ak(n.collect,r,i),KV(i),ZV(i)]}function hH(t){const n=Rl().getMonitor(),[r,i]=sk(n,t);return z.useEffect(()=>n.subscribeToOffsetChange(i)),z.useEffect(()=>n.subscribeToStateChange(i)),r}function pH(t){return z.useMemo(()=>t.hooks.dropTarget(),[t])}function gH(t){const e=Rl(),n=z.useMemo(()=>new sH(e.getBackend()),[e]);return kc(()=>(n.dropTargetOptions=t||null,n.reconnect(),()=>n.disconnectDropTarget()),[t]),n}function mH(){const t=Rl();return z.useMemo(()=>new QV(t),[t])}function vH(t){const{accept:e}=t;return z.useMemo(()=>(Ut(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}class yH{canDrop(){const e=this.spec,n=this.monitor;return e.canDrop?e.canDrop(n.getItem(),n):!0}hover(){const e=this.spec,n=this.monitor;e.hover&&e.hover(n.getItem(),n)}drop(){const e=this.spec,n=this.monitor;if(e.drop)return e.drop(n.getItem(),n)}constructor(e,n){this.spec=e,this.monitor=n}}function bH(t,e){const n=z.useMemo(()=>new yH(t,e),[e]);return z.useEffect(()=>{n.spec=t},[t]),n}function wH(t,e,n){const r=Rl(),i=bH(t,e),o=vH(t);kc(function(){const[c,f]=eH(o,i,r);return e.receiveHandlerId(c),n.receiveHandlerId(c),f},[r,e,i,n,o.map(a=>a.toString()).join("|")])}function mp(t,e){const n=lk(t,e),r=mH(),i=gH(n.options);return wH(n,r,i),[ak(n.collect,r,i),pH(i)]}var fk=t=>{throw TypeError(t)},dk=(t,e,n)=>e.has(t)||fk("Cannot "+n),Nt=(t,e,n)=>(dk(t,e,"read from private field"),n?n.call(t):e.get(t)),Ds=(t,e,n)=>e.has(t)?fk("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),hc=(t,e,n,r)=>(dk(t,e,"write to private field"),e.set(t,n),n),lu,xH=class{constructor(){Ds(this,lu),this.register=t=>{Nt(this,lu).push(t)},this.unregister=t=>{for(;Nt(this,lu).indexOf(t)!==-1;)Nt(this,lu).splice(Nt(this,lu).indexOf(t),1)},this.backendChanged=t=>{for(let e of Nt(this,lu))e.backendChanged(t)},hc(this,lu,[])}};lu=new WeakMap;var Xo,hd,Ko,yl,pc,pv,gv,mv,Yh,Gh,pd,hk=class qh{constructor(e,n,r){if(Ds(this,Xo),Ds(this,hd),Ds(this,Ko),Ds(this,yl),Ds(this,pc),Ds(this,pv,(i,o,a)=>{if(!a.backend)throw new Error(`You must specify a 'backend' property in your Backend entry: ${JSON.stringify(a)}`);let c=a.backend(i,o,a.options),f=a.id,p=!a.id&&c&&c.constructor;if(p&&(f=c.constructor.name),!f)throw new Error(`You must specify an 'id' property in your Backend entry: ${JSON.stringify(a)}
|
|
5
|
+
see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`);if(p&&console.warn(`Deprecation notice: You are using a pipeline which doesn't include backends' 'id'.
|
|
6
|
+
This might be unsupported in the future, please specify 'id' explicitely for every backend.`),Nt(this,Ko)[f])throw new Error(`You must specify a unique 'id' property in your Backend entry:
|
|
7
|
+
${JSON.stringify(a)} (conflicts with: ${JSON.stringify(Nt(this,Ko)[f])})`);return{id:f,instance:c,preview:a.preview??!1,transition:a.transition,skipDispatchOnTransition:a.skipDispatchOnTransition??!1}}),this.setup=()=>{if(!(typeof window>"u")){if(qh.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");qh.isSetUp=!0,Nt(this,gv).call(this,window),Nt(this,Ko)[Nt(this,Xo)].instance.setup()}},this.teardown=()=>{typeof window>"u"||(qh.isSetUp=!1,Nt(this,mv).call(this,window),Nt(this,Ko)[Nt(this,Xo)].instance.teardown())},this.connectDragSource=(i,o,a)=>Nt(this,pd).call(this,"connectDragSource",i,o,a),this.connectDragPreview=(i,o,a)=>Nt(this,pd).call(this,"connectDragPreview",i,o,a),this.connectDropTarget=(i,o,a)=>Nt(this,pd).call(this,"connectDropTarget",i,o,a),this.profile=()=>Nt(this,Ko)[Nt(this,Xo)].instance.profile(),this.previewEnabled=()=>Nt(this,Ko)[Nt(this,Xo)].preview,this.previewsList=()=>Nt(this,hd),this.backendsList=()=>Nt(this,yl),Ds(this,gv,i=>{for(let o of Nt(this,yl))o.transition&&i.addEventListener(o.transition.event,Nt(this,Yh))}),Ds(this,mv,i=>{for(let o of Nt(this,yl))o.transition&&i.removeEventListener(o.transition.event,Nt(this,Yh))}),Ds(this,Yh,i=>{var a;let o=Nt(this,Xo);if(Nt(this,yl).some(c=>c.id!==Nt(this,Xo)&&c.transition&&c.transition.check(i)?(hc(this,Xo,c.id),!0):!1),Nt(this,Xo)!==o){Nt(this,Ko)[o].instance.teardown();for(let[y,m]of Object.entries(Nt(this,pc)))m.unsubscribe(),m.unsubscribe=Nt(this,Gh).call(this,m.func,...m.args);Nt(this,hd).backendChanged(this);let c=Nt(this,Ko)[Nt(this,Xo)];if(c.instance.setup(),c.skipDispatchOnTransition)return;let f=i.constructor,p=new f(i.type,i);(a=i.target)==null||a.dispatchEvent(p)}}),Ds(this,Gh,(i,o,a,c)=>Nt(this,Ko)[Nt(this,Xo)].instance[i](o,a,c)),Ds(this,pd,(i,o,a,c)=>{let f=`${i}_${o}`,p=Nt(this,Gh).call(this,i,o,a,c);return Nt(this,pc)[f]={func:i,args:[o,a,c],unsubscribe:p},()=>{Nt(this,pc)[f].unsubscribe(),delete Nt(this,pc)[f]}}),!r||!r.backends||r.backends.length<1)throw new Error(`You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error)
|
|
8
|
+
see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx`);hc(this,hd,new xH),hc(this,Ko,{}),hc(this,yl,[]);for(let i of r.backends){let o=Nt(this,pv).call(this,e,n,i);Nt(this,Ko)[o.id]=o,Nt(this,yl).push(o)}hc(this,Xo,Nt(this,yl)[0].id),hc(this,pc,{})}};Xo=new WeakMap,hd=new WeakMap,Ko=new WeakMap,yl=new WeakMap,pc=new WeakMap,pv=new WeakMap,gv=new WeakMap,mv=new WeakMap,Yh=new WeakMap,Gh=new WeakMap,pd=new WeakMap,hk.isSetUp=!1;var SH=hk,pk=(t,e,n)=>new SH(t,e,n),gk=(t,e)=>({event:t,check:e}),TH=gk("touchstart",t=>{let e=t;return e.touches!==null&&e.touches!==void 0}),CH=gk("pointerdown",t=>t.pointerType==="mouse"),du;(function(t){t.mouse="mouse",t.touch="touch",t.keyboard="keyboard"})(du||(du={}));class EH{get delay(){var e;return(e=this.args.delay)!==null&&e!==void 0?e:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var e;return(e=this.args.ignoreContextMenu)!==null&&e!==void 0?e:!1}get enableHoverOutsideTarget(){var e;return(e=this.args.enableHoverOutsideTarget)!==null&&e!==void 0?e:!1}get enableKeyboardEvents(){var e;return(e=this.args.enableKeyboardEvents)!==null&&e!==void 0?e:!1}get enableMouseEvents(){var e;return(e=this.args.enableMouseEvents)!==null&&e!==void 0?e:!1}get enableTouchEvents(){var e;return(e=this.args.enableTouchEvents)!==null&&e!==void 0?e:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var e,n,r,i;return(i=(r=(e=this.args)===null||e===void 0?void 0:e.delayTouchStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&i!==void 0?i:0}get delayMouseStart(){var e,n,r,i;return(i=(r=(e=this.args)===null||e===void 0?void 0:e.delayMouseStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&i!==void 0?i:0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<"u")return window}get document(){var e;if(!((e=this.context)===null||e===void 0)&&e.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var e;return((e=this.args)===null||e===void 0?void 0:e.rootElement)||this.document}constructor(e,n){this.args=e,this.context=n}}function kH(t,e,n,r){return Math.sqrt(Math.pow(Math.abs(n-t),2)+Math.pow(Math.abs(r-e),2))}function DH(t,e,n,r,i){if(!i)return!1;const o=Math.atan2(r-e,n-t)*180/Math.PI+180;for(let a=0;a<i.length;++a){const c=i[a];if(c&&(c.start==null||o>=c.start)&&(c.end==null||o<=c.end))return!0}return!1}const _H={Left:1},PH={Left:0};function rm(t){return t.button===void 0||t.button===PH.Left}function OH(t){return t.buttons===void 0||(t.buttons&_H.Left)===0}function mk(t){return!!t.targetTouches}const RH=1;function IH(t){const e=t.nodeType===RH?t:t.parentElement;if(!e)return;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function AH(t,e){if(t.targetTouches.length===1)return vp(t.targetTouches[0]);if(e&&t.touches.length===1&&t.touches[0].target===e.target)return vp(t.touches[0])}function vp(t,e){return mk(t)?AH(t,e):{x:t.clientX,y:t.clientY}}const nS=(()=>{let t=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return t=!0,!0}}))}catch{}return t})(),sd={[du.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[du.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[du.keyboard]:{keydown:"keydown"}};class Td{profile(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((e=this.dragOverTargetIds)===null||e===void 0?void 0:e.length)||0}}get document(){return this.options.document}setup(){const e=this.options.rootElement;e&&(Ut(!Td.isSetUp,"Cannot have two Touch backends at the same time."),Td.isSetUp=!0,this.addEventListener(e,"start",this.getTopMoveStartHandler()),this.addEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(e,"move",this.handleTopMove),this.addEventListener(e,"move",this.handleTopMoveCapture,!0),this.addEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(e,"keydown",this.handleCancelOnEscape,!0))}teardown(){const e=this.options.rootElement;e&&(Td.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(e,"start",this.handleTopMoveStart),this.removeEventListener(e,"move",this.handleTopMoveCapture,!0),this.removeEventListener(e,"move",this.handleTopMove),this.removeEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(e,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(e,n,r,i=!1){const o=nS?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(a){const c=sd[a][n];c&&e.addEventListener(c,r,o)})}removeEventListener(e,n,r,i=!1){const o=nS?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(a){const c=sd[a][n];c&&e.removeEventListener(c,r,o)})}connectDragSource(e,n){const r=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,n),this.addEventListener(n,"start",r),()=>{this.sourceNodes.delete(e),this.removeEventListener(n,"start",r)}}connectDragPreview(e,n,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,n),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDropTarget(e,n){const r=this.options.rootElement;if(!this.document||!r)return()=>{};const i=o=>{if(!this.document||!r||!this.monitor.isDragging())return;let a;switch(o.type){case sd.mouse.move:a={x:o.clientX,y:o.clientY};break;case sd.touch.move:var c,f;a={x:((c=o.touches[0])===null||c===void 0?void 0:c.clientX)||0,y:((f=o.touches[0])===null||f===void 0?void 0:f.clientY)||0};break}const p=a!=null?this.document.elementFromPoint(a.x,a.y):void 0,y=p&&n.contains(p);if(p===n||y)return this.handleMove(o,e)};return this.addEventListener(this.document.body,"move",i),this.targetNodes.set(e,n),()=>{this.document&&(this.targetNodes.delete(e),this.removeEventListener(this.document.body,"move",i))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(e){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{e&&!e.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!e||!e.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(e,n,r){this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&IH(o)},this.handleTopMoveStartCapture=i=>{rm(i)&&(this.moveStartSourceIds=[])},this.handleMoveStart=i=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(i)},this.handleTopMoveStart=i=>{if(!rm(i))return;const o=vp(i);o&&(mk(i)&&(this.lastTargetTouchFallback=i.targetTouches[0]),this._mouseClientOffset=o),this.waitingForDelay=!1},this.handleTopMoveStartDelay=i=>{if(!rm(i))return;const o=i.type===sd.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,i),o),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(i,o)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(o)},this.handleTopMove=i=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:o,dragOverTargetIds:a}=this,c=this.options.enableHoverOutsideTarget,f=vp(i,this.lastTargetTouchFallback);if(!f)return;if(this._isScrolling||!this.monitor.isDragging()&&DH(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,f.x,f.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&o&&kH(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,f.x,f.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(o,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const p=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(p),this.actions.publishDragSource(),i.cancelable&&i.preventDefault();const y=(a||[]).map(I=>this.targetNodes.get(I)).filter(I=>!!I),m=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(f.x,f.y,y):this.document.elementsFromPoint(f.x,f.y),T=[];for(const I in m){if(!m.hasOwnProperty(I))continue;let A=m[I];for(A!=null&&T.push(A);A;)A=A.parentElement,A&&T.indexOf(A)===-1&&T.push(A)}const E=T.filter(I=>y.indexOf(I)>-1).map(I=>this._getDropTargetId(I)).filter(I=>!!I).filter((I,A,F)=>F.indexOf(I)===A);if(c)for(const I in this.targetNodes){const A=this.targetNodes.get(I);if(p&&A&&A.contains(p)&&E.indexOf(I)===-1){E.unshift(I);break}}E.reverse(),this.actions.hover(E,{clientOffset:f})},this._getDropTargetId=i=>{const o=this.targetNodes.keys();let a=o.next();for(;a.done===!1;){const c=a.value;if(i===this.targetNodes.get(c))return c;a=o.next()}},this.handleTopMoveEndCapture=i=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!OH(i)){if(!this.monitor.isDragging()||this.monitor.didDrop()){this.moveStartSourceIds=void 0;return}i.cancelable&&i.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()}},this.handleCancelOnEscape=i=>{i.key==="Escape"&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new EH(r,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(du.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(du.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(du.keyboard)}}const MH=function(e,n={},r={}){return new Td(e,n,r)};var Ms=function(){return Ms=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ms.apply(this,arguments)};function oo(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}function LH(t){var e=t.isVisible,n=t.ease,r=n===void 0?"easeIn":n,i=t.duration,o=t.variants,a=o===void 0?{open:{opacity:1,height:"auto"},close:{opacity:0,height:0}}:o,c=t.children,f=w3({polyfill:YF}),p=f[0],y=f[1].height,m=z.useState(e),T=m[0],E=m[1],I=z.useState(e),A=I[0],F=I[1],R=z.useState(!1),U=R[0],H=R[1],ne=function(){H(!1),e||E(!1)};z.useEffect(function(){H(!0),e?E(!0):F(!1)},[e]);var Z=y===0;return z.useEffect(function(){T&&F(!0)},[Z]),z.createElement(y3.div,{style:U?{overflow:"hidden"}:void 0,onAnimationComplete:ne,initial:A?"open":"close",animate:A?"open":"close",inherit:!1,variants:a,transition:{ease:r,duration:FH(y,i)}},z.createElement("div",{ref:p},T&&c))}function FH(t,e){if(e)return e;if(!t)return 0;var n=t/36;return Math.round((4+10*Math.pow(n,.25)+n/5)*10)/1500}var vk=z.createContext({}),NH={isLock:!1},jH=function(t){var e=z.useState(NH.isLock),n=e[0],r=e[1];return z.createElement(vk.Provider,{value:{isLock:n,lock:function(){return r(!0)},unlock:function(){return r(!1)}}},t.children)},Jd=z.createContext({}),Ph={dropTargetId:void 0,index:void 0},BH=function(t){var e=z.useState(Ph.dropTargetId),n=e[0],r=e[1],i=z.useState(Ph.index),o=i[0],a=i[1],c=function(p,y){r(p),a(y)},f=function(){r(Ph.dropTargetId),a(Ph.index)};return z.createElement(Jd.Provider,{value:{dropTargetId:n,index:o,showPlaceholder:c,hidePlaceholder:f}},t.children)},$H=function(t,e){return t.text>e.text?1:t.text<e.text?-1:0},ad=function(t,e){return t.find(function(n){return n.id===e})},yk=function(t,e,n){if(n===0)return!1;var r=t.find(function(i){return i.id===n});return r===void 0?!1:r.parent===e?!0:yk(t,e,r.parent)},By=function(t){return typeof t=="object"&&t!==null&&"id"in t&&"parent"in t&&"text"in t},xu=function(t,e,n){var r=n.tree,i=n.rootId,o=n.canDrop;if(t===null){if(e===i)return!0;var a=r.find(function(y){return y.id===e});return!!(a&&a.droppable)}else{var c=By(t)?t.id:null;if(o){var f=o(c,e);if(f!==void 0)return f}if(c===e)return!1;var p=r.find(function(m){return m.id===c}),a=r.find(function(m){return m.id===e});return p===void 0||c===null?e===i||!!(a!=null&&a.droppable):a===void 0?p.parent!==0:p.parent===e||!a.droppable?!1:!yk(r,c,e)}},VH=function(t,e,n){return t.map(function(r){return r.id===e?Ms(Ms({},r),{parent:n}):r})},bk=function(t,e,n){if(n===0)return 0;var r=t.filter(function(i){return i.parent===e});return r[n]?t.findIndex(function(i){return i.id===r[n].id}):t.findIndex(function(i){return i.id===r[n-1].id})+1},HH=function(t,e){return t.findIndex(function(n){return n.id===e})},wk=function(t,e,n,r){var i=HH(t,e),o=bk(t,n,r);return o=o>i?o-1:o,[i,o]},UH=function(t,e,n){var r=e<0?t.length+e:e;if(r>=0&&r<t.length){var i=n<0?t.length+n:n,o=t.splice(e,1)[0];t.splice(i,0,o)}},WH=function(t,e,n,r){var i=wk(t,e,n,r),o=i[0],a=i[1],c=oo([],t,!0);return UH(c,o,a),c.map(function(f){return f.id===e?Ms(Ms({},f),{parent:n}):f})},zH=function(t,e){var n=t.getBoundingClientRect(),r=n.top+n.height/2;return e>r?"down":"up"},vv=function(t,e){var n="",r=0;return t.forEach(function(i,o){var a,c=zH(i,((a=e.getClientOffset())===null||a===void 0?void 0:a.y)||0);n===""?n=c:n!==c&&(n=c,r=o),o===t.length-1&&c==="down"&&(r=o+1)}),r},rS=function(t,e,n){var r=e.closest('[role="list"]'),i=r==null?void 0:r.querySelectorAll(':scope > [role="listitem"]');return i?vv(i,n):null},YH=function(t,e,n){var r=t.getBoundingClientRect(),i=n.dropTargetOffset,o=r.top+i,a=r.bottom-i;return e>a?"lower":e<o?"upper":"middle"},yv=function(t,e,n,r){var i;if(!e)return null;if(t===null){var o=e.querySelectorAll(':scope > [role="listitem"]');return{id:r.rootId,index:vv(o,n)}}var a=n.getItem(),c=e.querySelector('[role="list"]'),f=YH(e,((i=n.getClientOffset())===null||i===void 0?void 0:i.y)||0,r);if(c){if(f==="upper")if(xu(a,t.parent,r)){var p=rS(t,e,n);return p===null?null:{id:t.parent,index:p}}else return{id:t.id,index:0};var o=c.querySelectorAll(':scope > [role="listitem"]');return{id:t.id,index:vv(o,n)}}else{if(f==="middle")return{id:t.id,index:0};if(xu(a,t.parent,r)){var p=rS(t,e,n);return p===null?null:{id:t.parent,index:p}}return null}},xk=function(t){return t===void 0&&(t={}),{backends:[{id:"html5",backend:lp,options:t.html5,transition:CH},{id:"touch",backend:MH,options:t.touch||{enableMouseEvents:!0},preview:!0,transition:TH}]}},Xh=function(t,e){return t.some(function(n){return n.parent===e})},Sk=z.createContext({}),GH=function(t){var e=eU(t.tree,t.initialOpen),n=e[0],r=e[1],i=r.handleToggle,o=r.handleCloseAll,a=r.handleOpenAll,c=r.handleOpen,f=r.handleClose;z.useImperativeHandle(t.treeRef,function(){return{open:function(E){return c(E,t.onChangeOpen)},close:function(E){return f(E,t.onChangeOpen)},openAll:function(){return a(t.onChangeOpen)},closeAll:function(){return o(t.onChangeOpen)}}});var p=Rl().getMonitor(),y=t.canDrop,m=t.canDrag,T=Ms(Ms({extraAcceptTypes:[],listComponent:"ul",listItemComponent:"li",placeholderComponent:"li",sort:!0,insertDroppableFirst:!0,enableAnimateExpand:!1,dropTargetOffset:0,initialOpen:!1},t),{openIds:n,onDrop:function(E,I,A){if(E){var F={dragSourceId:E.id,dropTargetId:I,dragSource:E,dropTarget:ad(t.tree,I),monitor:p},R=t.tree;if(ad(R,E.id)||(R=oo(oo([],R,!0),[E],!1)),t.sort===!1){var U=wk(R,E.id,I,A),H=U[1];F.destinationIndex=H,F.relativeIndex=A,t.onDrop(WH(R,E.id,I,A),F);return}t.onDrop(VH(R,E.id,I),F)}else{var F={dropTargetId:I,dropTarget:ad(t.tree,I),monitor:p};t.sort===!1&&(F.destinationIndex=bk(t.tree,I,A),F.relativeIndex=A),t.onDrop(t.tree,F)}},canDrop:y?function(E,I){return y(t.tree,{dragSourceId:E??void 0,dropTargetId:I,dragSource:p.getItem(),dropTarget:ad(t.tree,I),monitor:p})}:void 0,canDrag:m?function(E){return m(ad(t.tree,E))}:void 0,onToggle:function(E){return i(E,t.onChangeOpen)}});return z.createElement(Sk.Provider,{value:T},t.children)},qH=function(t){return z.createElement(GH,Ms({},t),z.createElement(jH,null,z.createElement(BH,null,t.children)))},XH=function(t){var e=z.useContext(vk);z.useEffect(function(){if(t.current){var n=t.current,r=function(y){var m=y.target;(m instanceof HTMLInputElement||m instanceof HTMLTextAreaElement)&&e.lock()},i=function(y){var m=y.target;(m instanceof HTMLInputElement||m instanceof HTMLTextAreaElement)&&e.unlock()},o=function(y){return r(y)},a=function(y){return i(y)},c=function(y){return r(y)},f=function(y){return i(y)},p=new MutationObserver(function(){document.activeElement===document.body&&e.unlock()});return p.observe(n,{subtree:!0,childList:!0}),n.addEventListener("mouseover",o),n.addEventListener("mouseout",a),n.addEventListener("focusin",c),n.addEventListener("focusout",f),function(){p.disconnect(),n.removeEventListener("mouseover",o),n.removeEventListener("mouseout",a),n.removeEventListener("focusin",c),n.removeEventListener("focusout",f)}}},[t,e]),z.useEffect(function(){var n;(n=t.current)===null||n===void 0||n.setAttribute("draggable",e.isLock?"false":"true")},[t,e.isLock])},Yp={TREE_ITEM:Symbol()},Tk=null,Ck=function(t){var e=t.target;if(e instanceof HTMLElement){var n=e.closest('[role="listitem"]');t.currentTarget===n&&(Tk=n)}},iS=function(t){return Ck(t)},oS=function(t){return Ck(t)},KH=function(t,e){var n=Du();z.useEffect(function(){var c=e.current;return c==null||c.addEventListener("dragstart",iS),c==null||c.addEventListener("touchstart",oS,{passive:!0}),function(){c==null||c.removeEventListener("dragstart",iS),c==null||c.removeEventListener("touchstart",oS)}},[e]);var r=ck({type:Yp.TREE_ITEM,item:function(c){var f=Ms({ref:e},t);return n.onDragStart&&n.onDragStart(f,c),f},end:function(c,f){var p=c;n.onDragEnd&&n.onDragEnd(p,f)},canDrag:function(){var c=n.canDrag;return Tk!==e.current?!1:c?c(t.id):!0},collect:function(c){return{isDragging:c.isDragging()}}}),i=r[0].isDragging,o=r[1],a=r[2];return[i,o,a]},ZH=function(t,e,n){var r=z.useRef(0),i=z.useRef(0),o=function(){r.current+=1,r.current===1&&!e&&(i.current=window.setTimeout(function(){return n(t)},500))},a=function(){r.current-=1,r.current===0&&window.clearTimeout(i.current)},c=function(){i.current>0&&window.clearTimeout(i.current),r.current=0,i.current=0};return{onDragEnter:o,onDragLeave:a,onDrop:c}},JH=function(t){var e=Du(),n=z.useContext(Jd),r=mp({accept:oo([Yp.TREE_ITEM],e.extraAcceptTypes,!0),drop:function(f,p){var y=e.rootId,m=e.onDrop,T=n.dropTargetId,E=n.index;p.isOver({shallow:!0})&&T!==void 0&&E!==void 0&&m(By(f)?f:null,y,E),n.hidePlaceholder()},canDrop:function(f,p){var y=e.rootId;return p.isOver({shallow:!0})?f===void 0?!1:xu(f,y,e):!1},hover:function(f,p){if(p.isOver({shallow:!0})){var y=e.rootId,m=n.dropTargetId,T=n.index,E=n.showPlaceholder,I=n.hidePlaceholder,A=yv(null,t.current,p,e);if(A===null||!xu(f,y,e)){I();return}(A.id!==m||A.index!==T)&&E(A.id,A.index)}},collect:function(f){var p=f.getItem();return{isOver:f.isOver({shallow:!0})&&f.canDrop(),dragSource:p}}}),i=r[0],o=i.isOver,a=i.dragSource,c=r[1];return[o,a,c]},QH=function(t,e){var n=Du(),r=z.useContext(Jd),i=mp({accept:oo([Yp.TREE_ITEM],n.extraAcceptTypes,!0),drop:function(p,y){var m=r.dropTargetId,T=r.index;y.isOver({shallow:!0})&&m!==void 0&&T!==void 0&&n.onDrop(By(p)?p:null,m,T),r.hidePlaceholder()},canDrop:function(p,y){if(y.isOver({shallow:!0})){var m=yv(t,e.current,y,n);return m===null?!1:xu(p,m.id,n)}return!1},hover:function(p,y){if(y.isOver({shallow:!0})){var m=r.dropTargetId,T=r.index,E=r.showPlaceholder,I=r.hidePlaceholder,A=yv(t,e.current,y,n);if(A===null||!xu(p,A.id,n)){I();return}(A.id!==m||A.index!==T)&&E(A.id,A.index)}},collect:function(p){var y=p.getItem();return{isOver:p.isOver({shallow:!0})&&p.canDrop(),dragSource:y}}}),o=i[0],a=o.isOver,c=o.dragSource,f=i[1];return[a,c,f]},eU=function(t,e){var n=z.useMemo(function(){return e===!0?t.filter(function(m){return Xh(t,m.id)}).map(function(m){return m.id}):Array.isArray(e)?e:[]},[e]),r=z.useState(n),i=r[0],o=r[1];z.useEffect(function(){return o(n)},[n]);var a=function(m,T){var E=i.includes(m)?i.filter(function(I){return I!==m}):oo(oo([],i,!0),[m],!1);o(E),T&&T(E)},c=function(m){o([]),m&&m([])},f=function(m){var T=t.filter(function(E){return Xh(t,E.id)}).map(function(E){return E.id});o(T),m&&m(T)},p=function(m,T){var E=[];if(Array.isArray(m)){var I=t.filter(function(A){return m.includes(A.id)&&Xh(t,A.id)});E=oo(oo([],i,!0),I.map(function(A){return A.id}),!0).filter(function(A,F,R){return R.indexOf(A)===F})}else E=i.includes(m)?i:oo(oo([],i,!0),[m],!1);o(E),T&&T(E)},y=function(m,T){var E=i.filter(function(I){return Array.isArray(m)?!m.includes(I):I!==m});o(E),T&&T(E)};return[i,{handleToggle:a,handleCloseAll:c,handleOpenAll:f,handleOpen:p,handleClose:y}]},tU=function(){return hH(function(t){var e=t.getItemType();return{item:t.getItem(),clientOffset:t.getClientOffset(),isDragging:t.isDragging()&&e===Yp.TREE_ITEM}})},Du=function(){var t=z.useContext(Sk);if(!t)throw new Error("useTreeContext must be used under TreeProvider");return t},nU=function(t,e){var n=Du(),r=n.rootId,i=n.rootProps,o=n.classes,a=(o==null?void 0:o.container)||"";return e&&(o!=null&&o.dropTarget)&&(a="".concat(a," ").concat(o.dropTarget)),t===r&&(o!=null&&o.root)&&(a="".concat(a," ").concat(o.root)),t===r&&(i!=null&&i.className)&&(a="".concat(a," ").concat(i.className)),a=a.trim(),a},rU=function(t,e,n){e.current?n(e):n(t),z.useEffect(function(){e.current?n(e):n(t)},[e.current])},iU=function(t){var e=Du(),n=z.useContext(Jd),r=z.useRef(null),i=z.useRef(null),o=e.tree.find(function(re){return re.id===t.id}),a=e.openIds,c=e.classes,f=e.enableAnimateExpand,p=a.includes(t.id),y=KH(o,r),m=y[0],T=y[1],E=y[2],I=QH(o,r),A=I[0],F=I[1],R=I[2];rU(r,i,T),xu(F,t.id,e)&&R(r),z.useEffect(function(){e.dragPreviewRender?E(EF(),{captureDraggingState:!0}):i.current&&E(r)},[E,e.dragPreviewRender]),XH(r);var U=function(){return e.onToggle(o.id)},H=e.listItemComponent,ne=e.canDrag?e.canDrag(t.id):!0,Z=n.dropTargetId===t.id,ce={depth:t.depth,isOpen:p,isDragging:m,isDropTarget:Z,draggable:ne,hasChild:Xh(e.tree,t.id),containerRef:r,handleRef:i,onToggle:U},S="";return c!=null&&c.listItem&&(S=typeof c.listItem=="string"?c.listItem:c.listItem(o,ce)),A&&(c!=null&&c.dropTarget)&&(S="".concat(S," ").concat(c.dropTarget)),m&&(c!=null&&c.draggingSource)&&(S="".concat(S," ").concat(c.draggingSource)),z.createElement(H,{ref:r,className:S,role:"listitem"},e.render(o,ce),f&&ce.hasChild&&z.createElement(LH,{isVisible:p},z.createElement(bv,{parentId:t.id,depth:t.depth+1})),!f&&ce.hasChild&&p&&z.createElement(bv,{parentId:t.id,depth:t.depth+1}))},sS=function(t){var e=Du(),n=e.placeholderRender,r=e.placeholderComponent,i=e.classes,o=z.useContext(Jd),a=Rl(),c=a.getMonitor(),f=c.getItem();if(!n||!f)return null;var p=t.dropTargetId===o.dropTargetId&&(t.index===o.index||t.index===void 0&&t.listCount===o.index),y=c.getTargetIds();return!p||!y.length?null:z.createElement(r,{className:(i==null?void 0:i.placeholder)||""},n(f,{depth:t.depth}))},bv=function(t){var e=Du(),n=z.useRef(null),r=e.tree.filter(function(A){return A.parent===t.parentId}),i=r,o=typeof e.sort=="function"?e.sort:$H;if(e.insertDroppableFirst){var a=r.filter(function(A){return A.droppable}),c=r.filter(function(A){return!A.droppable});e.sort===!1?i=oo(oo([],a,!0),c,!0):(a=a.sort(o),c=c.sort(o),i=oo(oo([],a,!0),c,!0))}else e.sort!==!1&&(i=r.sort(o));var f=JH(n),p=f[0],y=f[1],m=f[2];t.parentId===e.rootId&&xu(y,e.rootId,e)&&m(n);var T=nU(t.parentId,p),E=e.rootProps||{},I=e.listComponent;return z.createElement(I,Ms({ref:n,role:"list"},E,{className:T}),i.map(function(A,F){return z.createElement(z.Fragment,{key:A.id},z.createElement(sS,{depth:t.depth,listCount:i.length,dropTargetId:t.parentId,index:F}),z.createElement(iU,{id:A.id,depth:t.depth}))}),z.createElement(sS,{depth:t.depth,listCount:i.length,dropTargetId:t.parentId}))},oU={height:"100%",left:0,pointerEvents:"none",position:"fixed",top:0,width:"100%",zIndex:100},sU=function(t){var e=t.clientOffset;if(!e)return{};var n=e.x,r=e.y,i="translate(".concat(n,"px, ").concat(r,"px)");return{pointerEvents:"none",transform:i}},aU=function(){var t=Du(),e=tU(),n=e.isDragging,r=e.clientOffset;return!n||!r?null:z.createElement("div",{style:oU},z.createElement("div",{style:sU(e)},t.dragPreviewRender&&t.dragPreviewRender(e)))};function lU(t,e){return z.createElement(qH,Ms({},t,{treeRef:e}),t.dragPreviewRender&&z.createElement(aU,null),z.createElement(bv,{parentId:t.rootId,depth:0}))}var Ek=z.forwardRef(lU);const kk=z.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Gp=z.createContext({}),$y=z.createContext(null),qp=typeof document<"u",uU=qp?z.useLayoutEffect:z.useEffect,Dk=z.createContext({strict:!1}),Vy=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),cU="framerAppearId",_k="data-"+Vy(cU);function fU(t,e,n,r){const{visualElement:i}=z.useContext(Gp),o=z.useContext(Dk),a=z.useContext($y),c=z.useContext(kk).reducedMotion,f=z.useRef();r=r||o.renderer,!f.current&&r&&(f.current=r(t,{visualState:e,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const p=f.current;z.useInsertionEffect(()=>{p&&p.update(n,a)});const y=z.useRef(!!(n[_k]&&!window.HandoffComplete));return uU(()=>{p&&(p.render(),y.current&&p.animationState&&p.animationState.animateChanges())}),z.useEffect(()=>{p&&(p.updateFeatures(),!y.current&&p.animationState&&p.animationState.animateChanges(),y.current&&(y.current=!1,window.HandoffComplete=!0))}),p}function wf(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function dU(t,e,n){return z.useCallback(r=>{r&&t.mount&&t.mount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):wf(n)&&(n.current=r))},[e])}function $d(t){return typeof t=="string"||Array.isArray(t)}function Xp(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Hy=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Uy=["initial",...Hy];function Kp(t){return Xp(t.animate)||Uy.some(e=>$d(t[e]))}function Pk(t){return!!(Kp(t)||t.variants)}function hU(t,e){if(Kp(t)){const{initial:n,animate:r}=t;return{initial:n===!1||$d(n)?n:void 0,animate:$d(r)?r:void 0}}return t.inherit!==!1?e:{}}function pU(t){const{initial:e,animate:n}=hU(t,z.useContext(Gp));return z.useMemo(()=>({initial:e,animate:n}),[aS(e),aS(n)])}function aS(t){return Array.isArray(t)?t.join(" "):t}const lS={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Vd={};for(const t in lS)Vd[t]={isEnabled:e=>lS[t].some(n=>!!e[n])};function gU(t){for(const e in t)Vd[e]={...Vd[e],...t[e]}}const Ok=z.createContext({}),Rk=z.createContext({}),mU=Symbol.for("motionComponentSymbol");function vU({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){t&&gU(t);function o(c,f){let p;const y={...z.useContext(kk),...c,layoutId:yU(c)},{isStatic:m}=y,T=pU(c),E=r(c,m);if(!m&&qp){T.visualElement=fU(i,E,y,e);const I=z.useContext(Rk),A=z.useContext(Dk).strict;T.visualElement&&(p=T.visualElement.loadFeatures(y,A,t,I))}return kn.createElement(Gp.Provider,{value:T},p&&T.visualElement?kn.createElement(p,{visualElement:T.visualElement,...y}):null,n(i,c,dU(E,T.visualElement,f),E,m,T.visualElement))}const a=z.forwardRef(o);return a[mU]=i,a}function yU({layoutId:t}){const e=z.useContext(Ok).id;return e&&t!==void 0?e+"-"+t:t}function bU(t){function e(r,i={}){return vU(t(r,i))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(r,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}const wU=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Wy(t){return typeof t!="string"||t.includes("-")?!1:!!(wU.indexOf(t)>-1||/[A-Z]/.test(t))}const yp={};function xU(t){Object.assign(yp,t)}const Qd=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ic=new Set(Qd);function Ik(t,{layout:e,layoutId:n}){return Ic.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!yp[t]||t==="opacity")}const Io=t=>!!(t&&t.getVelocity),SU={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},TU=Qd.length;function CU(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,i){let o="";for(let a=0;a<TU;a++){const c=Qd[a];if(t[c]!==void 0){const f=SU[c]||c;o+=`${f}(${t[c]}) `}}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(t,r?"":o):n&&r&&(o="none"),o}const Ak=t=>e=>typeof e=="string"&&e.startsWith(t),Mk=Ak("--"),wv=Ak("var(--"),EU=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,kU=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Su=(t,e,n)=>Math.min(Math.max(n,t),e),Ac={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Cd={...Ac,transform:t=>Su(0,1,t)},Oh={...Ac,default:1},Ed=t=>Math.round(t*1e5)/1e5,Zp=/(-)?([\d]*\.?[\d])+/g,Lk=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,DU=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function eh(t){return typeof t=="string"}const th=t=>({test:e=>eh(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),uu=th("deg"),Va=th("%"),Rt=th("px"),_U=th("vh"),PU=th("vw"),uS={...Va,parse:t=>Va.parse(t)/100,transform:t=>Va.transform(t*100)},cS={...Ac,transform:Math.round},Fk={borderWidth:Rt,borderTopWidth:Rt,borderRightWidth:Rt,borderBottomWidth:Rt,borderLeftWidth:Rt,borderRadius:Rt,radius:Rt,borderTopLeftRadius:Rt,borderTopRightRadius:Rt,borderBottomRightRadius:Rt,borderBottomLeftRadius:Rt,width:Rt,maxWidth:Rt,height:Rt,maxHeight:Rt,size:Rt,top:Rt,right:Rt,bottom:Rt,left:Rt,padding:Rt,paddingTop:Rt,paddingRight:Rt,paddingBottom:Rt,paddingLeft:Rt,margin:Rt,marginTop:Rt,marginRight:Rt,marginBottom:Rt,marginLeft:Rt,rotate:uu,rotateX:uu,rotateY:uu,rotateZ:uu,scale:Oh,scaleX:Oh,scaleY:Oh,scaleZ:Oh,skew:uu,skewX:uu,skewY:uu,distance:Rt,translateX:Rt,translateY:Rt,translateZ:Rt,x:Rt,y:Rt,z:Rt,perspective:Rt,transformPerspective:Rt,opacity:Cd,originX:uS,originY:uS,originZ:Rt,zIndex:cS,fillOpacity:Cd,strokeOpacity:Cd,numOctaves:cS};function zy(t,e,n,r){const{style:i,vars:o,transform:a,transformOrigin:c}=t;let f=!1,p=!1,y=!0;for(const m in e){const T=e[m];if(Mk(m)){o[m]=T;continue}const E=Fk[m],I=kU(T,E);if(Ic.has(m)){if(f=!0,a[m]=I,!y)continue;T!==(E.default||0)&&(y=!1)}else m.startsWith("origin")?(p=!0,c[m]=I):i[m]=I}if(e.transform||(f||r?i.transform=CU(t.transform,n,y,r):i.transform&&(i.transform="none")),p){const{originX:m="50%",originY:T="50%",originZ:E=0}=c;i.transformOrigin=`${m} ${T} ${E}`}}const Yy=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Nk(t,e,n){for(const r in e)!Io(e[r])&&!Ik(r,n)&&(t[r]=e[r])}function OU({transformTemplate:t},e,n){return z.useMemo(()=>{const r=Yy();return zy(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)},[e])}function RU(t,e,n){const r=t.style||{},i={};return Nk(i,r,t),Object.assign(i,OU(t,e,n)),t.transformValues?t.transformValues(i):i}function IU(t,e,n){const r={},i=RU(t,e,n);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r}const AU=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function bp(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||AU.has(t)}let jk=t=>!bp(t);function MU(t){t&&(jk=e=>e.startsWith("on")?!bp(e):t(e))}try{MU(require("@emotion/is-prop-valid").default)}catch{}function LU(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(jk(i)||n===!0&&bp(i)||!e&&!bp(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}function fS(t,e,n){return typeof t=="string"?t:Rt.transform(e+n*t)}function FU(t,e,n){const r=fS(e,t.x,t.width),i=fS(n,t.y,t.height);return`${r} ${i}`}const NU={offset:"stroke-dashoffset",array:"stroke-dasharray"},jU={offset:"strokeDashoffset",array:"strokeDasharray"};function BU(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?NU:jU;t[o.offset]=Rt.transform(-r);const a=Rt.transform(e),c=Rt.transform(n);t[o.array]=`${a} ${c}`}function Gy(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:f=0,...p},y,m,T){if(zy(t,p,y,T),m){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:E,style:I,dimensions:A}=t;E.transform&&(A&&(I.transform=E.transform),delete E.transform),A&&(i!==void 0||o!==void 0||I.transform)&&(I.transformOrigin=FU(A,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(E.x=e),n!==void 0&&(E.y=n),r!==void 0&&(E.scale=r),a!==void 0&&BU(E,a,c,f,!1)}const Bk=()=>({...Yy(),attrs:{}}),qy=t=>typeof t=="string"&&t.toLowerCase()==="svg";function $U(t,e,n,r){const i=z.useMemo(()=>{const o=Bk();return Gy(o,e,{enableHardwareAcceleration:!1},qy(r),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Nk(o,t.style,t),i.style={...o,...i.style}}return i}function VU(t=!1){return(n,r,i,{latestValues:o},a)=>{const f=(Wy(n)?$U:IU)(r,o,a,n),y={...LU(r,typeof n=="string",t),...f,ref:i},{children:m}=r,T=z.useMemo(()=>Io(m)?m.get():m,[m]);return z.createElement(n,{...y,children:T})}}function $k(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}const Vk=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Hk(t,e,n,r){$k(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(Vk.has(i)?i:Vy(i),e.attrs[i])}function Xy(t,e){const{style:n}=t,r={};for(const i in n)(Io(n[i])||e.style&&Io(e.style[i])||Ik(i,t))&&(r[i]=n[i]);return r}function Uk(t,e){const n=Xy(t,e);for(const r in t)if(Io(t[r])||Io(e[r])){const i=Qd.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=t[r]}return n}function Ky(t,e,n,r={},i={}){return typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,i)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,i)),e}function HU(t){const e=z.useRef(null);return e.current===null&&(e.current=t()),e.current}const wp=t=>Array.isArray(t),UU=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),WU=t=>wp(t)?t[t.length-1]||0:t;function Kh(t){const e=Io(t)?t.get():t;return UU(e)?e.toValue():e}function zU({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,i,o){const a={latestValues:YU(r,i,o,t),renderState:e()};return n&&(a.mount=c=>n(r,c,a)),a}const Wk=t=>(e,n)=>{const r=z.useContext(Gp),i=z.useContext($y),o=()=>zU(t,e,r,i);return n?o():HU(o)};function YU(t,e,n,r){const i={},o=r(t,{});for(const T in o)i[T]=Kh(o[T]);let{initial:a,animate:c}=t;const f=Kp(t),p=Pk(t);e&&p&&!f&&t.inherit!==!1&&(a===void 0&&(a=e.initial),c===void 0&&(c=e.animate));let y=n?n.initial===!1:!1;y=y||a===!1;const m=y?c:a;return m&&typeof m!="boolean"&&!Xp(m)&&(Array.isArray(m)?m:[m]).forEach(E=>{const I=Ky(t,E);if(!I)return;const{transitionEnd:A,transition:F,...R}=I;for(const U in R){let H=R[U];if(Array.isArray(H)){const ne=y?H.length-1:0;H=H[ne]}H!==null&&(i[U]=H)}for(const U in A)i[U]=A[U]}),i}const sr=t=>t;class dS{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const n=this.order.indexOf(e);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function GU(t){let e=new dS,n=new dS,r=0,i=!1,o=!1;const a=new WeakSet,c={schedule:(f,p=!1,y=!1)=>{const m=y&&i,T=m?e:n;return p&&a.add(f),T.add(f)&&m&&i&&(r=e.order.length),f},cancel:f=>{n.remove(f),a.delete(f)},process:f=>{if(i){o=!0;return}if(i=!0,[e,n]=[n,e],n.clear(),r=e.order.length,r)for(let p=0;p<r;p++){const y=e.order[p];y(f),a.has(y)&&(c.schedule(y),t())}i=!1,o&&(o=!1,c.process(f))}};return c}const Rh=["prepare","read","update","preRender","render","postRender"],qU=40;function XU(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Rh.reduce((m,T)=>(m[T]=GU(()=>n=!0),m),{}),a=m=>o[m].process(i),c=()=>{const m=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(m-i.timestamp,qU),1),i.timestamp=m,i.isProcessing=!0,Rh.forEach(a),i.isProcessing=!1,n&&e&&(r=!1,t(c))},f=()=>{n=!0,r=!0,i.isProcessing||t(c)};return{schedule:Rh.reduce((m,T)=>{const E=o[T];return m[T]=(I,A=!1,F=!1)=>(n||f(),E.schedule(I,A,F)),m},{}),cancel:m=>Rh.forEach(T=>o[T].cancel(m)),state:i,steps:o}}const{schedule:Ln,cancel:Pl,state:Ni,steps:im}=XU(typeof requestAnimationFrame<"u"?requestAnimationFrame:sr,!0),KU={useVisualState:Wk({scrapeMotionValuesFromProps:Uk,createRenderState:Bk,onMount:(t,e,{renderState:n,latestValues:r})=>{Ln.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Ln.render(()=>{Gy(n,r,{enableHardwareAcceleration:!1},qy(e.tagName),t.transformTemplate),Hk(e,n)})}})},ZU={useVisualState:Wk({scrapeMotionValuesFromProps:Xy,createRenderState:Yy})};function JU(t,{forwardMotionProps:e=!1},n,r){return{...Wy(t)?KU:ZU,preloadedFeatures:n,useRender:VU(e),createVisualElement:r,Component:t}}function xl(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const zk=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Jp(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const QU=t=>e=>zk(e)&&t(e,Jp(e));function El(t,e,n,r){return xl(t,e,QU(n),r)}const eW=(t,e)=>n=>e(t(n)),hu=(...t)=>t.reduce(eW);function Yk(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const hS=Yk("dragHorizontal"),pS=Yk("dragVertical");function Gk(t){let e=!1;if(t==="y")e=pS();else if(t==="x")e=hS();else{const n=hS(),r=pS();n&&r?e=()=>{n(),r()}:(n&&n(),r&&r())}return e}function qk(){const t=Gk(!0);return t?(t(),!1):!0}class _u{constructor(e){this.isMounted=!1,this.node=e}update(){}}function gS(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End"),i=(o,a)=>{if(o.pointerType==="touch"||qk())return;const c=t.getProps();t.animationState&&c.whileHover&&t.animationState.setActive("whileHover",e),c[r]&&Ln.update(()=>c[r](o,a))};return El(t.current,n,i,{passive:!t.getProps()[r]})}class tW extends _u{mount(){this.unmount=hu(gS(this.node,!0),gS(this.node,!1))}unmount(){}}class nW extends _u{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=hu(xl(this.node.current,"focus",()=>this.onFocus()),xl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Xk=(t,e)=>e?t===e?!0:Xk(t,e.parentElement):!1;function om(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Jp(n))}class rW extends _u{constructor(){super(...arguments),this.removeStartListeners=sr,this.removeEndListeners=sr,this.removeAccessibleListeners=sr,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=El(window,"pointerup",(c,f)=>{if(!this.checkPressEnd())return;const{onTap:p,onTapCancel:y,globalTapTarget:m}=this.node.getProps();Ln.update(()=>{!m&&!Xk(this.node.current,c.target)?y&&y(c,f):p&&p(c,f)})},{passive:!(r.onTap||r.onPointerUp)}),a=El(window,"pointercancel",(c,f)=>this.cancelPress(c,f),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=hu(o,a),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=o=>{if(o.key!=="Enter"||this.isPressing)return;const a=c=>{c.key!=="Enter"||!this.checkPressEnd()||om("up",(f,p)=>{const{onTap:y}=this.node.getProps();y&&Ln.update(()=>y(f,p))})};this.removeEndListeners(),this.removeEndListeners=xl(this.node.current,"keyup",a),om("down",(c,f)=>{this.startPress(c,f)})},n=xl(this.node.current,"keydown",e),r=()=>{this.isPressing&&om("cancel",(o,a)=>this.cancelPress(o,a))},i=xl(this.node.current,"blur",r);this.removeAccessibleListeners=hu(n,i)}}startPress(e,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Ln.update(()=>r(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!qk()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Ln.update(()=>r(e,n))}mount(){const e=this.node.getProps(),n=El(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=xl(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=hu(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const xv=new WeakMap,sm=new WeakMap,iW=t=>{const e=xv.get(t.target);e&&e(t)},oW=t=>{t.forEach(iW)};function sW({root:t,...e}){const n=t||document;sm.has(n)||sm.set(n,{});const r=sm.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(oW,{root:t,...e})),r[i]}function aW(t,e,n){const r=sW(e);return xv.set(t,n),r.observe(t),()=>{xv.delete(t),r.unobserve(t)}}const lW={some:0,all:1};class uW extends _u{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=e,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:lW[i]},c=f=>{const{isIntersecting:p}=f;if(this.isInView===p||(this.isInView=p,o&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:y,onViewportLeave:m}=this.node.getProps(),T=p?y:m;T&&T(f)};return aW(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(cW(e,n))&&this.startObserver()}unmount(){}}function cW({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const fW={inView:{Feature:uW},tap:{Feature:rW},focus:{Feature:nW},hover:{Feature:tW}};function Kk(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function dW(t){const e={};return t.values.forEach((n,r)=>e[r]=n.get()),e}function hW(t){const e={};return t.values.forEach((n,r)=>e[r]=n.getVelocity()),e}function Qp(t,e,n){const r=t.getProps();return Ky(r,e,n!==void 0?n:r.custom,dW(t),hW(t))}let nh=sr,la=sr;process.env.NODE_ENV!=="production"&&(nh=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},la=(t,e)=>{if(!t)throw new Error(e)});const pu=t=>t*1e3,kl=t=>t/1e3,pW={current:!1},Zk=t=>Array.isArray(t)&&typeof t[0]=="number";function Jk(t){return!!(!t||typeof t=="string"&&Qk[t]||Zk(t)||Array.isArray(t)&&t.every(Jk))}const gd=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,Qk={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:gd([0,.65,.55,1]),circOut:gd([.55,0,1,.45]),backIn:gd([.31,.01,.66,-.59]),backOut:gd([.33,1.53,.69,.99])};function eD(t){if(t)return Zk(t)?gd(t):Array.isArray(t)?t.map(eD):Qk[t]}function gW(t,e,n,{delay:r=0,duration:i,repeat:o=0,repeatType:a="loop",ease:c,times:f}={}){const p={[e]:n};f&&(p.offset=f);const y=eD(c);return Array.isArray(y)&&(p.easing=y),t.animate(p,{delay:r,duration:i,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}function mW(t,{repeat:e,repeatType:n="loop"}){const r=e&&n!=="loop"&&e%2===1?0:t.length-1;return t[r]}const tD=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,vW=1e-7,yW=12;function bW(t,e,n,r,i){let o,a,c=0;do a=e+(n-e)/2,o=tD(a,r,i)-t,o>0?n=a:e=a;while(Math.abs(o)>vW&&++c<yW);return a}function rh(t,e,n,r){if(t===e&&n===r)return sr;const i=o=>bW(o,0,1,t,n);return o=>o===0||o===1?o:tD(i(o),e,r)}const wW=rh(.42,0,1,1),xW=rh(0,0,.58,1),nD=rh(.42,0,.58,1),SW=t=>Array.isArray(t)&&typeof t[0]!="number",rD=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,iD=t=>e=>1-t(1-e),Zy=t=>1-Math.sin(Math.acos(t)),oD=iD(Zy),TW=rD(Zy),sD=rh(.33,1.53,.69,.99),Jy=iD(sD),CW=rD(Jy),EW=t=>(t*=2)<1?.5*Jy(t):.5*(2-Math.pow(2,-10*(t-1))),mS={linear:sr,easeIn:wW,easeInOut:nD,easeOut:xW,circIn:Zy,circInOut:TW,circOut:oD,backIn:Jy,backInOut:CW,backOut:sD,anticipate:EW},vS=t=>{if(Array.isArray(t)){la(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,i]=t;return rh(e,n,r,i)}else if(typeof t=="string")return la(mS[t]!==void 0,`Invalid easing type '${t}'`),mS[t];return t},Qy=(t,e)=>n=>!!(eh(n)&&DU.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),aD=(t,e,n)=>r=>{if(!eh(r))return r;const[i,o,a,c]=r.match(Zp);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},kW=t=>Su(0,255,t),am={...Ac,transform:t=>Math.round(kW(t))},bc={test:Qy("rgb","red"),parse:aD("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+am.transform(t)+", "+am.transform(e)+", "+am.transform(n)+", "+Ed(Cd.transform(r))+")"};function DW(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Sv={test:Qy("#"),parse:DW,transform:bc.transform},xf={test:Qy("hsl","hue"),parse:aD("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Va.transform(Ed(e))+", "+Va.transform(Ed(n))+", "+Ed(Cd.transform(r))+")"},io={test:t=>bc.test(t)||Sv.test(t)||xf.test(t),parse:t=>bc.test(t)?bc.parse(t):xf.test(t)?xf.parse(t):Sv.parse(t),transform:t=>eh(t)?t:t.hasOwnProperty("red")?bc.transform(t):xf.transform(t)},Zn=(t,e,n)=>-n*t+n*e+t;function lm(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function _W({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,o=0,a=0;if(!e)i=o=a=n;else{const c=n<.5?n*(1+e):n+e-n*e,f=2*n-c;i=lm(f,c,t+1/3),o=lm(f,c,t),a=lm(f,c,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}const um=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},PW=[Sv,bc,xf],OW=t=>PW.find(e=>e.test(t));function yS(t){const e=OW(t);la(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let n=e.parse(t);return e===xf&&(n=_W(n)),n}const lD=(t,e)=>{const n=yS(t),r=yS(e),i={...n};return o=>(i.red=um(n.red,r.red,o),i.green=um(n.green,r.green,o),i.blue=um(n.blue,r.blue,o),i.alpha=Zn(n.alpha,r.alpha,o),bc.transform(i))};function RW(t){var e,n;return isNaN(t)&&eh(t)&&(((e=t.match(Zp))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Lk))===null||n===void 0?void 0:n.length)||0)>0}const uD={regex:EU,countKey:"Vars",token:"${v}",parse:sr},cD={regex:Lk,countKey:"Colors",token:"${c}",parse:io.parse},fD={regex:Zp,countKey:"Numbers",token:"${n}",parse:Ac.parse};function cm(t,{regex:e,countKey:n,token:r,parse:i}){const o=t.tokenised.match(e);o&&(t["num"+n]=o.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...o.map(i)))}function xp(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&cm(n,uD),cm(n,cD),cm(n,fD),n}function dD(t){return xp(t).values}function hD(t){const{values:e,numColors:n,numVars:r,tokenised:i}=xp(t),o=e.length;return a=>{let c=i;for(let f=0;f<o;f++)f<r?c=c.replace(uD.token,a[f]):f<r+n?c=c.replace(cD.token,io.transform(a[f])):c=c.replace(fD.token,Ed(a[f]));return c}}const IW=t=>typeof t=="number"?0:t;function AW(t){const e=dD(t);return hD(t)(e.map(IW))}const Tu={test:RW,parse:dD,createTransformer:hD,getAnimatableNone:AW},pD=(t,e)=>n=>`${n>0?e:t}`;function gD(t,e){return typeof t=="number"?n=>Zn(t,e,n):io.test(t)?lD(t,e):t.startsWith("var(")?pD(t,e):vD(t,e)}const mD=(t,e)=>{const n=[...t],r=n.length,i=t.map((o,a)=>gD(o,e[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}},MW=(t,e)=>{const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=gD(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},vD=(t,e)=>{const n=Tu.createTransformer(e),r=xp(t),i=xp(e);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?hu(mD(r.values,i.values),n):(nh(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),pD(t,e))},Hd=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},bS=(t,e)=>n=>Zn(t,e,n);function LW(t){return typeof t=="number"?bS:typeof t=="string"?io.test(t)?lD:vD:Array.isArray(t)?mD:typeof t=="object"?MW:bS}function FW(t,e,n){const r=[],i=n||LW(t[0]),o=t.length-1;for(let a=0;a<o;a++){let c=i(t[a],t[a+1]);if(e){const f=Array.isArray(e)?e[a]||sr:e;c=hu(f,c)}r.push(c)}return r}function yD(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(la(o===e.length,"Both input and output ranges must be the same length"),o===1)return()=>e[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=FW(e,r,i),c=a.length,f=p=>{let y=0;if(c>1)for(;y<t.length-2&&!(p<t[y+1]);y++);const m=Hd(t[y],t[y+1],p);return a[y](m)};return n?p=>f(Su(t[0],t[o-1],p)):f}function NW(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=Hd(0,e,r);t.push(Zn(n,1,i))}}function jW(t){const e=[0];return NW(e,t.length-1),e}function BW(t,e){return t.map(n=>n*e)}function $W(t,e){return t.map(()=>e||nD).splice(0,t.length-1)}function Sp({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=SW(r)?r.map(vS):vS(r),o={done:!1,value:e[0]},a=BW(n&&n.length===e.length?n:jW(e),t),c=yD(a,e,{ease:Array.isArray(i)?i:$W(e,i)});return{calculatedDuration:t,next:f=>(o.value=c(f),o.done=f>=t,o)}}function bD(t,e){return e?t*(1e3/e):0}const VW=5;function wD(t,e,n){const r=Math.max(e-VW,0);return bD(n-t(r),e-r)}const wS=.001,HW=.01,xS=10,UW=.05,WW=1;function zW({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,o;nh(t<=pu(xS),"Spring duration must be 10 seconds or less");let a=1-e;a=Su(UW,WW,a),t=Su(HW,xS,kl(t)),a<1?(i=p=>{const y=p*a,m=y*t,T=y-n,E=Tv(p,a),I=Math.exp(-m);return wS-T/E*I},o=p=>{const m=p*a*t,T=m*n+n,E=Math.pow(a,2)*Math.pow(p,2)*t,I=Math.exp(-m),A=Tv(Math.pow(p,2),a);return(-i(p)+wS>0?-1:1)*((T-E)*I)/A}):(i=p=>{const y=Math.exp(-p*t),m=(p-n)*t+1;return-.001+y*m},o=p=>{const y=Math.exp(-p*t),m=(n-p)*(t*t);return y*m});const c=5/t,f=GW(i,o,c);if(t=pu(t),isNaN(f))return{stiffness:100,damping:10,duration:t};{const p=Math.pow(f,2)*r;return{stiffness:p,damping:a*2*Math.sqrt(r*p),duration:t}}}const YW=12;function GW(t,e,n){let r=n;for(let i=1;i<YW;i++)r=r-t(r)/e(r);return r}function Tv(t,e){return t*Math.sqrt(1-e*e)}const qW=["duration","bounce"],XW=["stiffness","damping","mass"];function SS(t,e){return e.some(n=>t[n]!==void 0)}function KW(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!SS(t,XW)&&SS(t,qW)){const n=zW(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function xD({keyframes:t,restDelta:e,restSpeed:n,...r}){const i=t[0],o=t[t.length-1],a={done:!1,value:i},{stiffness:c,damping:f,mass:p,duration:y,velocity:m,isResolvedFromDuration:T}=KW({...r,velocity:-kl(r.velocity||0)}),E=m||0,I=f/(2*Math.sqrt(c*p)),A=o-i,F=kl(Math.sqrt(c/p)),R=Math.abs(A)<5;n||(n=R?.01:2),e||(e=R?.005:.5);let U;if(I<1){const H=Tv(F,I);U=ne=>{const Z=Math.exp(-I*F*ne);return o-Z*((E+I*F*A)/H*Math.sin(H*ne)+A*Math.cos(H*ne))}}else if(I===1)U=H=>o-Math.exp(-F*H)*(A+(E+F*A)*H);else{const H=F*Math.sqrt(I*I-1);U=ne=>{const Z=Math.exp(-I*F*ne),ce=Math.min(H*ne,300);return o-Z*((E+I*F*A)*Math.sinh(ce)+H*A*Math.cosh(ce))/H}}return{calculatedDuration:T&&y||null,next:H=>{const ne=U(H);if(T)a.done=H>=y;else{let Z=E;H!==0&&(I<1?Z=wD(U,H,ne):Z=0);const ce=Math.abs(Z)<=n,S=Math.abs(o-ne)<=e;a.done=ce&&S}return a.value=a.done?o:ne,a}}}function TS({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:f,restDelta:p=.5,restSpeed:y}){const m=t[0],T={done:!1,value:m},E=re=>c!==void 0&&re<c||f!==void 0&&re>f,I=re=>c===void 0?f:f===void 0||Math.abs(c-re)<Math.abs(f-re)?c:f;let A=n*e;const F=m+A,R=a===void 0?F:a(F);R!==F&&(A=R-m);const U=re=>-A*Math.exp(-re/r),H=re=>R+U(re),ne=re=>{const ie=U(re),Pe=H(re);T.done=Math.abs(ie)<=p,T.value=T.done?R:Pe};let Z,ce;const S=re=>{E(T.value)&&(Z=re,ce=xD({keyframes:[T.value,I(T.value)],velocity:wD(H,re,T.value),damping:i,stiffness:o,restDelta:p,restSpeed:y}))};return S(0),{calculatedDuration:null,next:re=>{let ie=!1;return!ce&&Z===void 0&&(ie=!0,ne(re),S(re)),Z!==void 0&&re>Z?ce.next(re-Z):(!ie&&ne(re),T)}}}const ZW=t=>{const e=({timestamp:n})=>t(n);return{start:()=>Ln.update(e,!0),stop:()=>Pl(e),now:()=>Ni.isProcessing?Ni.timestamp:performance.now()}},CS=2e4;function ES(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<CS;)e+=n,r=t.next(e);return e>=CS?1/0:e}const JW={decay:TS,inertia:TS,tween:Sp,keyframes:Sp,spring:xD};function Tp({autoplay:t=!0,delay:e=0,driver:n=ZW,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:c="loop",onPlay:f,onStop:p,onComplete:y,onUpdate:m,...T}){let E=1,I=!1,A,F;const R=()=>{F=new Promise(ue=>{A=ue})};R();let U;const H=JW[i]||Sp;let ne;H!==Sp&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&la(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),ne=yD([0,100],r,{clamp:!1}),r=[0,100]);const Z=H({...T,keyframes:r});let ce;c==="mirror"&&(ce=H({...T,keyframes:[...r].reverse(),velocity:-(T.velocity||0)}));let S="idle",re=null,ie=null,Pe=null;Z.calculatedDuration===null&&o&&(Z.calculatedDuration=ES(Z));const{calculatedDuration:Ke}=Z;let $e=1/0,tt=1/0;Ke!==null&&($e=Ke+a,tt=$e*(o+1)-a);let nt=0;const ge=ue=>{if(ie===null)return;E>0&&(ie=Math.min(ie,ue)),E<0&&(ie=Math.min(ue-tt/E,ie)),re!==null?nt=re:nt=Math.round(ue-ie)*E;const De=nt-e*(E>=0?1:-1),je=E>=0?De<0:De>tt;nt=Math.max(De,0),S==="finished"&&re===null&&(nt=tt);let Ie=nt,Be=Z;if(o){const st=Math.min(nt,tt)/$e;let Qe=Math.floor(st),ft=st%1;!ft&&st>=1&&(ft=1),ft===1&&Qe--,Qe=Math.min(Qe,o+1),!!(Qe%2)&&(c==="reverse"?(ft=1-ft,a&&(ft-=a/$e)):c==="mirror"&&(Be=ce)),Ie=Su(0,1,ft)*$e}const Ue=je?{done:!1,value:r[0]}:Be.next(Ie);ne&&(Ue.value=ne(Ue.value));let{done:it}=Ue;!je&&Ke!==null&&(it=E>=0?nt>=tt:nt<=0);const rt=re===null&&(S==="finished"||S==="running"&&it);return m&&m(Ue.value),rt&&Ae(),Ue},_e=()=>{U&&U.stop(),U=void 0},Re=()=>{S="idle",_e(),A(),R(),ie=Pe=null},Ae=()=>{S="finished",y&&y(),_e(),A()},et=()=>{if(I)return;U||(U=n(ge));const ue=U.now();f&&f(),re!==null?ie=ue-re:(!ie||S==="finished")&&(ie=ue),S==="finished"&&R(),Pe=ie,re=null,S="running",U.start()};t&&et();const ye={then(ue,De){return F.then(ue,De)},get time(){return kl(nt)},set time(ue){ue=pu(ue),nt=ue,re!==null||!U||E===0?re=ue:ie=U.now()-ue/E},get duration(){const ue=Z.calculatedDuration===null?ES(Z):Z.calculatedDuration;return kl(ue)},get speed(){return E},set speed(ue){ue===E||!U||(E=ue,ye.time=kl(nt))},get state(){return S},play:et,pause:()=>{S="paused",re=nt},stop:()=>{I=!0,S!=="idle"&&(S="idle",p&&p(),Re())},cancel:()=>{Pe!==null&&ge(Pe),Re()},complete:()=>{S="finished"},sample:ue=>(ie=0,ge(ue))};return ye}function QW(t){let e;return()=>(e===void 0&&(e=t()),e)}const e5=QW(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),t5=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Ih=10,n5=2e4,r5=(t,e)=>e.type==="spring"||t==="backgroundColor"||!Jk(e.ease);function i5(t,e,{onUpdate:n,onComplete:r,...i}){if(!(e5()&&t5.has(e)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let a=!1,c,f,p=!1;const y=()=>{f=new Promise(H=>{c=H})};y();let{keyframes:m,duration:T=300,ease:E,times:I}=i;if(r5(e,i)){const H=Tp({...i,repeat:0,delay:0});let ne={done:!1,value:m[0]};const Z=[];let ce=0;for(;!ne.done&&ce<n5;)ne=H.sample(ce),Z.push(ne.value),ce+=Ih;I=void 0,m=Z,T=ce-Ih,E="linear"}const A=gW(t.owner.current,e,m,{...i,duration:T,ease:E,times:I}),F=()=>{p=!1,A.cancel()},R=()=>{p=!0,Ln.update(F),c(),y()};return A.onfinish=()=>{p||(t.set(mW(m,i)),r&&r(),R())},{then(H,ne){return f.then(H,ne)},attachTimeline(H){return A.timeline=H,A.onfinish=null,sr},get time(){return kl(A.currentTime||0)},set time(H){A.currentTime=pu(H)},get speed(){return A.playbackRate},set speed(H){A.playbackRate=H},get duration(){return kl(T)},play:()=>{a||(A.play(),Pl(F))},pause:()=>A.pause(),stop:()=>{if(a=!0,A.playState==="idle")return;const{currentTime:H}=A;if(H){const ne=Tp({...i,autoplay:!1});t.setWithVelocity(ne.sample(H-Ih).value,ne.sample(H).value,Ih)}R()},complete:()=>{p||A.finish()},cancel:R}}function o5({keyframes:t,delay:e,onUpdate:n,onComplete:r}){const i=()=>(n&&n(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:sr,pause:sr,stop:sr,then:o=>(o(),Promise.resolve()),cancel:sr,complete:sr});return e?Tp({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}const s5={type:"spring",stiffness:500,damping:25,restSpeed:10},a5=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),l5={type:"keyframes",duration:.8},u5={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},c5=(t,{keyframes:e})=>e.length>2?l5:Ic.has(t)?t.startsWith("scale")?a5(e[1]):s5:u5,Cv=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Tu.test(e)||e==="0")&&!e.startsWith("url(")),f5=new Set(["brightness","contrast","saturate","opacity"]);function d5(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(Zp)||[];if(!r)return t;const i=n.replace(r,"");let o=f5.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const h5=/([a-z-]*)\(.*?\)/g,Ev={...Tu,getAnimatableNone:t=>{const e=t.match(h5);return e?e.map(d5).join(" "):t}},p5={...Fk,color:io,backgroundColor:io,outlineColor:io,fill:io,stroke:io,borderColor:io,borderTopColor:io,borderRightColor:io,borderBottomColor:io,borderLeftColor:io,filter:Ev,WebkitFilter:Ev},eb=t=>p5[t];function SD(t,e){let n=eb(t);return n!==Ev&&(n=Tu),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const TD=t=>/^0[^.\s]+$/.test(t);function g5(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||TD(t)}function m5(t,e,n,r){const i=Cv(e,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const a=r.from!==void 0?r.from:t.get();let c;const f=[];for(let p=0;p<o.length;p++)o[p]===null&&(o[p]=p===0?a:o[p-1]),g5(o[p])&&f.push(p),typeof o[p]=="string"&&o[p]!=="none"&&o[p]!=="0"&&(c=o[p]);if(i&&f.length&&c)for(let p=0;p<f.length;p++){const y=f[p];o[y]=SD(e,c)}return o}function v5({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:f,elapsed:p,...y}){return!!Object.keys(y).length}function tb(t,e){return t[e]||t.default||t}const y5={skipAnimations:!1},nb=(t,e,n,r={})=>i=>{const o=tb(r,t)||{},a=o.delay||r.delay||0;let{elapsed:c=0}=r;c=c-pu(a);const f=m5(e,t,n,o),p=f[0],y=f[f.length-1],m=Cv(t,p),T=Cv(t,y);nh(m===T,`You are trying to animate ${t} from "${p}" to "${y}". ${p} is not an animatable value - to enable this animation set ${p} to a value animatable to ${y} via the \`style\` property.`);let E={keyframes:f,velocity:e.getVelocity(),ease:"easeOut",...o,delay:-c,onUpdate:I=>{e.set(I),o.onUpdate&&o.onUpdate(I)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(v5(o)||(E={...E,...c5(t,E)}),E.duration&&(E.duration=pu(E.duration)),E.repeatDelay&&(E.repeatDelay=pu(E.repeatDelay)),!m||!T||pW.current||o.type===!1||y5.skipAnimations)return o5(E);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const I=i5(e,t,E);if(I)return I}return Tp(E)};function Cp(t){return!!(Io(t)&&t.add)}const CD=t=>/^\-?\d*\.?\d+$/.test(t);function rb(t,e){t.indexOf(e)===-1&&t.push(e)}function ib(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class ob{constructor(){this.subscriptions=[]}add(e){return rb(this.subscriptions,e),()=>ib(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const kS=new Set;function sb(t,e,n){t||kS.has(e)||(console.warn(e),kS.add(e))}const b5=t=>!isNaN(parseFloat(t));class w5{constructor(e,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:a}=Ni;this.lastUpdated!==a&&(this.timeDelta=o,this.lastUpdated=a,Ln.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Ln.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=b5(this.current),this.owner=n.owner}onChange(e){return process.env.NODE_ENV!=="production"&&sb(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new ob);const r=this.events[e].add(n);return e==="change"?()=>{r(),Ln.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=e,this.timeDelta=r}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?bD(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Rf(t,e){return new w5(t,e)}const ED=t=>e=>e.test(t),x5={test:t=>t==="auto",parse:t=>t},kD=[Ac,Rt,Va,uu,PU,_U,x5],ld=t=>kD.find(ED(t)),S5=[...kD,io,Tu],T5=t=>S5.find(ED(t));function C5(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Rf(n))}function E5(t,e){const n=Qp(t,e);let{transitionEnd:r={},transition:i={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const a in o){const c=WU(o[a]);C5(t,a,c)}}function k5(t,e,n){var r,i;const o=Object.keys(e).filter(c=>!t.hasValue(c)),a=o.length;if(a)for(let c=0;c<a;c++){const f=o[c],p=e[f];let y=null;Array.isArray(p)&&(y=p[0]),y===null&&(y=(i=(r=n[f])!==null&&r!==void 0?r:t.readValue(f))!==null&&i!==void 0?i:e[f]),y!=null&&(typeof y=="string"&&(CD(y)||TD(y))?y=parseFloat(y):!T5(y)&&Tu.test(p)&&(y=SD(f,p)),t.addValue(f,Rf(y,{owner:t})),n[f]===void 0&&(n[f]=y),y!==null&&t.setBaseTarget(f,y))}}function D5(t,e){return e?(e[t]||e.default||e).from:void 0}function _5(t,e,n){const r={};for(const i in t){const o=D5(i,e);if(o!==void 0)r[i]=o;else{const a=n.getValue(i);a&&(r[i]=a.get())}}return r}function P5({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function O5(t,e){const n=t.get();if(Array.isArray(e)){for(let r=0;r<e.length;r++)if(e[r]!==n)return!0}else return n!==e}function DD(t,e,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:a,...c}=t.makeTargetAnimatable(e);const f=t.getValue("willChange");r&&(o=r);const p=[],y=i&&t.animationState&&t.animationState.getState()[i];for(const m in c){const T=t.getValue(m),E=c[m];if(!T||E===void 0||y&&P5(y,m))continue;const I={delay:n,elapsed:0,...tb(o||{},m)};if(window.HandoffAppearAnimations){const R=t.getProps()[_k];if(R){const U=window.HandoffAppearAnimations(R,m,T,Ln);U!==null&&(I.elapsed=U,I.isHandoff=!0)}}let A=!I.isHandoff&&!O5(T,E);if(I.type==="spring"&&(T.getVelocity()||I.velocity)&&(A=!1),T.animation&&(A=!1),A)continue;T.start(nb(m,T,E,t.shouldReduceMotion&&Ic.has(m)?{type:!1}:I));const F=T.animation;Cp(f)&&(f.add(m),F.then(()=>f.remove(m))),p.push(F)}return a&&Promise.all(p).then(()=>{a&&E5(t,a)}),p}function kv(t,e,n={}){const r=Qp(t,e,n.custom);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(DD(t,r,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(f=0)=>{const{delayChildren:p=0,staggerChildren:y,staggerDirection:m}=i;return R5(t,e,p+f,y,m,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[f,p]=c==="beforeChildren"?[o,a]:[a,o];return f().then(()=>p())}else return Promise.all([o(),a(n.delay)])}function R5(t,e,n=0,r=0,i=1,o){const a=[],c=(t.variantChildren.size-1)*r,f=i===1?(p=0)=>p*r:(p=0)=>c-p*r;return Array.from(t.variantChildren).sort(I5).forEach((p,y)=>{p.notify("AnimationStart",e),a.push(kv(p,e,{...o,delay:n+f(y)}).then(()=>p.notify("AnimationComplete",e)))}),Promise.all(a)}function I5(t,e){return t.sortNodePosition(e)}function A5(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(o=>kv(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=kv(t,e,n);else{const i=typeof e=="function"?Qp(t,e,n.custom):e;r=Promise.all(DD(t,i,n))}return r.then(()=>t.notify("AnimationComplete",e))}const M5=[...Hy].reverse(),L5=Hy.length;function F5(t){return e=>Promise.all(e.map(({animation:n,options:r})=>A5(t,n,r)))}function N5(t){let e=F5(t);const n=B5();let r=!0;const i=(f,p)=>{const y=Qp(t,p);if(y){const{transition:m,transitionEnd:T,...E}=y;f={...f,...E,...T}}return f};function o(f){e=f(t)}function a(f,p){const y=t.getProps(),m=t.getVariantContext(!0)||{},T=[],E=new Set;let I={},A=1/0;for(let R=0;R<L5;R++){const U=M5[R],H=n[U],ne=y[U]!==void 0?y[U]:m[U],Z=$d(ne),ce=U===p?H.isActive:null;ce===!1&&(A=R);let S=ne===m[U]&&ne!==y[U]&&Z;if(S&&r&&t.manuallyAnimateOnMount&&(S=!1),H.protectedKeys={...I},!H.isActive&&ce===null||!ne&&!H.prevProp||Xp(ne)||typeof ne=="boolean")continue;let ie=j5(H.prevProp,ne)||U===p&&H.isActive&&!S&&Z||R>A&&Z,Pe=!1;const Ke=Array.isArray(ne)?ne:[ne];let $e=Ke.reduce(i,{});ce===!1&&($e={});const{prevResolvedValues:tt={}}=H,nt={...tt,...$e},ge=_e=>{ie=!0,E.has(_e)&&(Pe=!0,E.delete(_e)),H.needsAnimating[_e]=!0};for(const _e in nt){const Re=$e[_e],Ae=tt[_e];if(I.hasOwnProperty(_e))continue;let et=!1;wp(Re)&&wp(Ae)?et=!Kk(Re,Ae):et=Re!==Ae,et?Re!==void 0?ge(_e):E.add(_e):Re!==void 0&&E.has(_e)?ge(_e):H.protectedKeys[_e]=!0}H.prevProp=ne,H.prevResolvedValues=$e,H.isActive&&(I={...I,...$e}),r&&t.blockInitialAnimation&&(ie=!1),ie&&(!S||Pe)&&T.push(...Ke.map(_e=>({animation:_e,options:{type:U,...f}})))}if(E.size){const R={};E.forEach(U=>{const H=t.getBaseTarget(U);H!==void 0&&(R[U]=H)}),T.push({animation:R})}let F=!!T.length;return r&&(y.initial===!1||y.initial===y.animate)&&!t.manuallyAnimateOnMount&&(F=!1),r=!1,F?e(T):Promise.resolve()}function c(f,p,y){var m;if(n[f].isActive===p)return Promise.resolve();(m=t.variantChildren)===null||m===void 0||m.forEach(E=>{var I;return(I=E.animationState)===null||I===void 0?void 0:I.setActive(f,p)}),n[f].isActive=p;const T=a(y,f);for(const E in n)n[E].protectedKeys={};return T}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n}}function j5(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Kk(e,t):!1}function lc(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function B5(){return{animate:lc(!0),whileInView:lc(),whileHover:lc(),whileTap:lc(),whileDrag:lc(),whileFocus:lc(),exit:lc()}}class $5 extends _u{constructor(e){super(e),e.animationState||(e.animationState=N5(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Xp(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let V5=0;class H5 extends _u{constructor(){super(...arguments),this.id=V5++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const o=this.node.animationState.setActive("exit",!e,{custom:r??this.node.getProps().custom});n&&!e&&o.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const U5={animation:{Feature:$5},exit:{Feature:H5}},DS=(t,e)=>Math.abs(t-e);function W5(t,e){const n=DS(t.x,e.x),r=DS(t.y,e.y);return Math.sqrt(n**2+r**2)}class _D{constructor(e,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=dm(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,E=W5(m.offset,{x:0,y:0})>=3;if(!T&&!E)return;const{point:I}=m,{timestamp:A}=Ni;this.history.push({...I,timestamp:A});const{onStart:F,onMove:R}=this.handlers;T||(F&&F(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,m)},this.handlePointerMove=(m,T)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=fm(T,this.transformPagePoint),Ln.update(this.updatePoint,!0)},this.handlePointerUp=(m,T)=>{this.end();const{onEnd:E,onSessionEnd:I,resumeAnimation:A}=this.handlers;if(this.dragSnapToOrigin&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const F=dm(m.type==="pointercancel"?this.lastMoveEventInfo:fm(T,this.transformPagePoint),this.history);this.startEvent&&E&&E(m,F),I&&I(m,F)},!zk(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Jp(e),c=fm(a,this.transformPagePoint),{point:f}=c,{timestamp:p}=Ni;this.history=[{...f,timestamp:p}];const{onSessionStart:y}=n;y&&y(e,dm(c,this.history)),this.removeListeners=hu(El(this.contextWindow,"pointermove",this.handlePointerMove),El(this.contextWindow,"pointerup",this.handlePointerUp),El(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Pl(this.updatePoint)}}function fm(t,e){return e?{point:e(t.point)}:t}function _S(t,e){return{x:t.x-e.x,y:t.y-e.y}}function dm({point:t},e){return{point:t,delta:_S(t,PD(e)),offset:_S(t,z5(e)),velocity:Y5(e,.1)}}function z5(t){return t[0]}function PD(t){return t[t.length-1]}function Y5(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=PD(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>pu(e)));)n--;if(!r)return{x:0,y:0};const o=kl(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function ts(t){return t.max-t.min}function Dv(t,e=0,n=.01){return Math.abs(t-e)<=n}function PS(t,e,n,r=.5){t.origin=r,t.originPoint=Zn(e.min,e.max,t.origin),t.scale=ts(n)/ts(e),(Dv(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Zn(n.min,n.max,t.origin)-t.originPoint,(Dv(t.translate)||isNaN(t.translate))&&(t.translate=0)}function kd(t,e,n,r){PS(t.x,e.x,n.x,r?r.originX:void 0),PS(t.y,e.y,n.y,r?r.originY:void 0)}function OS(t,e,n){t.min=n.min+e.min,t.max=t.min+ts(e)}function G5(t,e,n){OS(t.x,e.x,n.x),OS(t.y,e.y,n.y)}function RS(t,e,n){t.min=e.min-n.min,t.max=t.min+ts(e)}function Dd(t,e,n){RS(t.x,e.x,n.x),RS(t.y,e.y,n.y)}function q5(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?Zn(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?Zn(n,t,r.max):Math.min(t,n)),t}function IS(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function X5(t,{top:e,left:n,bottom:r,right:i}){return{x:IS(t.x,n,i),y:IS(t.y,e,r)}}function AS(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function K5(t,e){return{x:AS(t.x,e.x),y:AS(t.y,e.y)}}function Z5(t,e){let n=.5;const r=ts(t),i=ts(e);return i>r?n=Hd(e.min,e.max-r,t.min):r>i&&(n=Hd(t.min,t.max-i,e.min)),Su(0,1,n)}function J5(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const _v=.35;function Q5(t=_v){return t===!1?t=0:t===!0&&(t=_v),{x:MS(t,"left","right"),y:MS(t,"top","bottom")}}function MS(t,e,n){return{min:LS(t,e),max:LS(t,n)}}function LS(t,e){return typeof t=="number"?t:t[e]||0}const FS=()=>({translate:0,scale:1,origin:0,originPoint:0}),Sf=()=>({x:FS(),y:FS()}),NS=()=>({min:0,max:0}),kr=()=>({x:NS(),y:NS()});function Ps(t){return[t("x"),t("y")]}function OD({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function ez({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function tz(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function hm(t){return t===void 0||t===1}function Pv({scale:t,scaleX:e,scaleY:n}){return!hm(t)||!hm(e)||!hm(n)}function gc(t){return Pv(t)||RD(t)||t.z||t.rotate||t.rotateX||t.rotateY}function RD(t){return jS(t.x)||jS(t.y)}function jS(t){return t&&t!=="0%"}function Ep(t,e,n){const r=t-n,i=e*r;return n+i}function BS(t,e,n,r,i){return i!==void 0&&(t=Ep(t,i,r)),Ep(t,n,r)+e}function Ov(t,e=0,n=1,r,i){t.min=BS(t.min,e,n,r,i),t.max=BS(t.max,e,n,r,i)}function ID(t,{x:e,y:n}){Ov(t.x,e.translate,e.scale,e.originPoint),Ov(t.y,n.translate,n.scale,n.originPoint)}function nz(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const f=o.instance;f&&f.style&&f.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Tf(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,ID(t,a)),r&&gc(o.latestValues)&&Tf(t,o.latestValues))}e.x=$S(e.x),e.y=$S(e.y)}function $S(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function cu(t,e){t.min=t.min+e,t.max=t.max+e}function VS(t,e,[n,r,i]){const o=e[i]!==void 0?e[i]:.5,a=Zn(t.min,t.max,o);Ov(t,e[n],e[r],a,e.scale)}const rz=["x","scaleX","originX"],iz=["y","scaleY","originY"];function Tf(t,e){VS(t.x,e,rz),VS(t.y,e,iz)}function AD(t,e){return OD(tz(t.getBoundingClientRect(),e))}function oz(t,e,n){const r=AD(t,n),{scroll:i}=e;return i&&(cu(r.x,i.offset.x),cu(r.y,i.offset.y)),r}const MD=({current:t})=>t?t.ownerDocument.defaultView:null,sz=new WeakMap;class az{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=kr(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=y=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Jp(y,"page").point)},o=(y,m)=>{const{drag:T,dragPropagation:E,onDragStart:I}=this.getProps();if(T&&!E&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Gk(T),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ps(F=>{let R=this.getAxisMotionValue(F).get()||0;if(Va.test(R)){const{projection:U}=this.visualElement;if(U&&U.layout){const H=U.layout.layoutBox[F];H&&(R=ts(H)*(parseFloat(R)/100))}}this.originPoint[F]=R}),I&&Ln.update(()=>I(y,m),!1,!0);const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},a=(y,m)=>{const{dragPropagation:T,dragDirectionLock:E,onDirectionLock:I,onDrag:A}=this.getProps();if(!T&&!this.openGlobalLock)return;const{offset:F}=m;if(E&&this.currentDirection===null){this.currentDirection=lz(F),this.currentDirection!==null&&I&&I(this.currentDirection);return}this.updateAxis("x",m.point,F),this.updateAxis("y",m.point,F),this.visualElement.render(),A&&A(y,m)},c=(y,m)=>this.stop(y,m),f=()=>Ps(y=>{var m;return this.getAnimationState(y)==="paused"&&((m=this.getAxisMotionValue(y).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new _D(e,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:MD(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Ln.update(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!Ah(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=q5(a,this.constraints[e],this.elastic[e])),o.set(a)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&wf(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=X5(i.layoutBox,n):this.constraints=!1,this.elastic=Q5(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ps(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=J5(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!wf(e))return!1;const r=e.current;la(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=oz(r,i.root,this.visualElement.getTransformPagePoint());let a=K5(i.layout.layoutBox,o);if(n){const c=n(ez(a));this.hasMutatedConstraints=!!c,c&&(a=OD(c))}return a}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},p=Ps(y=>{if(!Ah(y,n,this.currentDirection))return;let m=f&&f[y]||{};a&&(m={min:0,max:0});const T=i?200:1e6,E=i?40:1e7,I={type:"inertia",velocity:r?e[y]:0,bounceStiffness:T,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(y,I)});return Promise.all(p).then(c)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return r.start(nb(e,r,0,n))}stopAnimation(){Ps(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Ps(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n="_drag"+e.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Ps(n=>{const{drag:r}=this.getProps();if(!Ah(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(e[n]-Zn(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!wf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ps(a=>{const c=this.getAxisMotionValue(a);if(c){const f=c.get();i[a]=Z5({min:f,max:f},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ps(a=>{if(!Ah(a,e,null))return;const c=this.getAxisMotionValue(a),{min:f,max:p}=this.constraints[a];c.set(Zn(f,p,i[a]))})}addListeners(){if(!this.visualElement.current)return;sz.set(this.visualElement,this);const e=this.visualElement.current,n=El(e,"pointerdown",f=>{const{drag:p,dragListener:y=!0}=this.getProps();p&&y&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();wf(f)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const a=xl(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p})=>{this.isDragging&&p&&(Ps(y=>{const m=this.getAxisMotionValue(y);m&&(this.originPoint[y]+=f[y].translate,m.set(m.get()+f[y].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=_v,dragMomentum:c=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}}function Ah(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function lz(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class uz extends _u{constructor(e){super(e),this.removeGroupControls=sr,this.removeListeners=sr,this.controls=new az(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||sr}unmount(){this.removeGroupControls(),this.removeListeners()}}const HS=t=>(e,n)=>{t&&Ln.update(()=>t(e,n))};class cz extends _u{constructor(){super(...arguments),this.removePointerDownListener=sr}onPointerDown(e){this.session=new _D(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:MD(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:HS(e),onStart:HS(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Ln.update(()=>i(o,a))}}}mount(){this.removePointerDownListener=El(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function fz(){const t=z.useContext($y);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:r}=t,i=z.useId();return z.useEffect(()=>r(i),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}const Zh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function US(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ud={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Rt.test(t))t=parseFloat(t);else return t;const n=US(t,e.target.x),r=US(t,e.target.y);return`${n}% ${r}%`}},dz={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=Tu.parse(t);if(i.length>5)return r;const o=Tu.createTransformer(t),a=typeof i[0]!="number"?1:0,c=n.x.scale*e.x,f=n.y.scale*e.y;i[0+a]/=c,i[1+a]/=f;const p=Zn(c,f,.5);return typeof i[2+a]=="number"&&(i[2+a]/=p),typeof i[3+a]=="number"&&(i[3+a]/=p),o(i)}};class hz extends z.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=e;xU(pz),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Zh.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||e.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?a.promote():a.relegate()||Ln.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function LD(t){const[e,n]=fz(),r=z.useContext(Ok);return z.createElement(hz,{...t,layoutGroup:r,switchLayoutGroup:z.useContext(Rk),isPresent:e,safeToRemove:n})}const pz={borderRadius:{...ud,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ud,borderTopRightRadius:ud,borderBottomLeftRadius:ud,borderBottomRightRadius:ud,boxShadow:dz},FD=["TopLeft","TopRight","BottomLeft","BottomRight"],gz=FD.length,WS=t=>typeof t=="string"?parseFloat(t):t,zS=t=>typeof t=="number"||Rt.test(t);function mz(t,e,n,r,i,o){i?(t.opacity=Zn(0,n.opacity!==void 0?n.opacity:1,vz(r)),t.opacityExit=Zn(e.opacity!==void 0?e.opacity:1,0,yz(r))):o&&(t.opacity=Zn(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<gz;a++){const c=`border${FD[a]}Radius`;let f=YS(e,c),p=YS(n,c);if(f===void 0&&p===void 0)continue;f||(f=0),p||(p=0),f===0||p===0||zS(f)===zS(p)?(t[c]=Math.max(Zn(WS(f),WS(p),r),0),(Va.test(p)||Va.test(f))&&(t[c]+="%")):t[c]=p}(e.rotate||n.rotate)&&(t.rotate=Zn(e.rotate||0,n.rotate||0,r))}function YS(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const vz=ND(0,.5,oD),yz=ND(.5,.95,sr);function ND(t,e,n){return r=>r<t?0:r>e?1:n(Hd(t,e,r))}function GS(t,e){t.min=e.min,t.max=e.max}function ks(t,e){GS(t.x,e.x),GS(t.y,e.y)}function qS(t,e,n,r,i){return t-=e,t=Ep(t,1/n,r),i!==void 0&&(t=Ep(t,1/i,r)),t}function bz(t,e=0,n=1,r=.5,i,o=t,a=t){if(Va.test(e)&&(e=parseFloat(e),e=Zn(a.min,a.max,e/100)-a.min),typeof e!="number")return;let c=Zn(o.min,o.max,r);t===o&&(c-=e),t.min=qS(t.min,e,n,c,i),t.max=qS(t.max,e,n,c,i)}function XS(t,e,[n,r,i],o,a){bz(t,e[n],e[r],e[i],e.scale,o,a)}const wz=["x","scaleX","originX"],xz=["y","scaleY","originY"];function KS(t,e,n,r){XS(t.x,e,wz,n?n.x:void 0,r?r.x:void 0),XS(t.y,e,xz,n?n.y:void 0,r?r.y:void 0)}function ZS(t){return t.translate===0&&t.scale===1}function jD(t){return ZS(t.x)&&ZS(t.y)}function Sz(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function BD(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function JS(t){return ts(t.x)/ts(t.y)}class Tz{constructor(){this.members=[]}add(e){rb(this.members,e),e.scheduleRender()}remove(e){if(ib(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function QS(t,e,n){let r="";const i=t.x.translate/e.x,o=t.y.translate/e.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:f,rotateX:p,rotateY:y}=n;f&&(r+=`rotate(${f}deg) `),p&&(r+=`rotateX(${p}deg) `),y&&(r+=`rotateY(${y}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const Cz=(t,e)=>t.depth-e.depth;class Ez{constructor(){this.children=[],this.isDirty=!1}add(e){rb(this.children,e),this.isDirty=!0}remove(e){ib(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Cz),this.isDirty=!1,this.children.forEach(e)}}function kz(t,e){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&(Pl(r),t(o-e))};return Ln.read(r,!0),()=>Pl(r)}function Dz(t){window.MotionDebug&&window.MotionDebug.record(t)}function _z(t){return t instanceof SVGElement&&t.tagName!=="svg"}function Pz(t,e,n){const r=Io(t)?t:Rf(t);return r.start(nb("",r,e,n)),r.animation}const e1=["","X","Y","Z"],Oz={visibility:"hidden"},t1=1e3;let Rz=0;const mc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function $D({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=e==null?void 0:e()){this.id=Rz++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,mc.totalNodes=mc.resolvedTargetDeltas=mc.recalculatedProjection=0,this.nodes.forEach(Mz),this.nodes.forEach(Bz),this.nodes.forEach($z),this.nodes.forEach(Lz),Dz(mc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ez)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new ob),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const f=this.eventHandlers.get(a);f&&f.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=_z(a),this.instance=a;const{layoutId:f,layout:p,visualElement:y}=this.options;if(y&&!y.current&&y.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(p||f)&&(this.isLayoutDirty=!0),t){let m;const T=()=>this.root.updateBlockedByResize=!1;t(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=kz(T,250),Zh.hasAnimatedSinceResize&&(Zh.hasAnimatedSinceResize=!1,this.nodes.forEach(r1))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&y&&(f||p)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:T,hasRelativeTargetChanged:E,layout:I})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const A=this.options.transition||y.getDefaultTransition()||zz,{onLayoutAnimationStart:F,onLayoutAnimationComplete:R}=y.getProps(),U=!this.targetLayout||!BD(this.targetLayout,I)||E,H=!T&&E;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||H||T&&(U||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,H);const ne={...tb(A,"layout"),onPlay:F,onComplete:R};(y.shouldReduceMotion||this.options.layoutRoot)&&(ne.delay=0,ne.type=!1),this.startAnimation(ne)}else T||r1(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=I})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Pl(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Vz),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const m=this.path[y];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:f}=this.options;if(c===void 0&&!f)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(n1);return}this.isUpdating||this.nodes.forEach(Nz),this.isUpdating=!1,this.nodes.forEach(jz),this.nodes.forEach(Iz),this.nodes.forEach(Az),this.clearAllSnapshots();const c=performance.now();Ni.delta=Su(0,1e3/60,c-Ni.timestamp),Ni.timestamp=c,Ni.isProcessing=!0,im.update.process(Ni),im.preRender.process(Ni),im.render.process(Ni),Ni.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Fz),this.sharedNodes.forEach(Hz)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ln.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ln.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=kr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform,c=this.projectionDelta&&!jD(this.projectionDelta),f=this.getTransformTemplate(),p=f?f(this.latestValues,""):void 0,y=p!==this.prevTransformTemplateValue;a&&(c||gc(this.latestValues)||y)&&(i(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let f=this.removeElementScroll(c);return a&&(f=this.removeTransform(f)),Yz(f),{animationId:this.root.animationId,measuredBox:c,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return kr();const c=a.measureViewportBox(),{scroll:f}=this.root;return f&&(cu(c.x,f.offset.x),cu(c.y,f.offset.y)),c}removeElementScroll(a){const c=kr();ks(c,a);for(let f=0;f<this.path.length;f++){const p=this.path[f],{scroll:y,options:m}=p;if(p!==this.root&&y&&m.layoutScroll){if(y.isRoot){ks(c,a);const{scroll:T}=this.root;T&&(cu(c.x,-T.offset.x),cu(c.y,-T.offset.y))}cu(c.x,y.offset.x),cu(c.y,y.offset.y)}}return c}applyTransform(a,c=!1){const f=kr();ks(f,a);for(let p=0;p<this.path.length;p++){const y=this.path[p];!c&&y.options.layoutScroll&&y.scroll&&y!==y.root&&Tf(f,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),gc(y.latestValues)&&Tf(f,y.latestValues)}return gc(this.latestValues)&&Tf(f,this.latestValues),f}removeTransform(a){const c=kr();ks(c,a);for(let f=0;f<this.path.length;f++){const p=this.path[f];if(!p.instance||!gc(p.latestValues))continue;Pv(p.latestValues)&&p.updateSnapshot();const y=kr(),m=p.measurePageBox();ks(y,m),KS(c,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,y)}return gc(this.latestValues)&&KS(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ni.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==f;if(!(a||p&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:m,layoutId:T}=this.options;if(!(!this.layout||!(m||T))){if(this.resolvedRelativeTargetAt=Ni.timestamp,!this.targetDelta&&!this.relativeTarget){const E=this.getClosestProjectingParent();E&&E.layout&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=kr(),this.relativeTargetOrigin=kr(),Dd(this.relativeTargetOrigin,this.layout.layoutBox,E.layout.layoutBox),ks(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=kr(),this.targetWithTransforms=kr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),G5(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ks(this.target,this.layout.layoutBox),ID(this.target,this.targetDelta)):ks(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const E=this.getClosestProjectingParent();E&&!!E.resumingFrom==!!this.resumingFrom&&!E.options.layoutScroll&&E.target&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=kr(),this.relativeTargetOrigin=kr(),Dd(this.relativeTargetOrigin,this.target,E.target),ks(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}mc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Pv(this.parent.latestValues)||RD(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),f=!!this.resumingFrom||this!==c;let p=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(p=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===Ni.timestamp&&(p=!1),p)return;const{layout:y,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(y||m))return;ks(this.layoutCorrected,this.layout.layoutBox);const T=this.treeScale.x,E=this.treeScale.y;nz(this.layoutCorrected,this.treeScale,this.path,f),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox);const{target:I}=c;if(!I){this.projectionTransform&&(this.projectionDelta=Sf(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Sf(),this.projectionDeltaWithTransform=Sf());const A=this.projectionTransform;kd(this.projectionDelta,this.layoutCorrected,I,this.latestValues),this.projectionTransform=QS(this.projectionDelta,this.treeScale),(this.projectionTransform!==A||this.treeScale.x!==T||this.treeScale.y!==E)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",I)),mc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,c=!1){const f=this.snapshot,p=f?f.latestValues:{},y={...this.latestValues},m=Sf();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const T=kr(),E=f?f.source:void 0,I=this.layout?this.layout.source:void 0,A=E!==I,F=this.getStack(),R=!F||F.members.length<=1,U=!!(A&&!R&&this.options.crossfade===!0&&!this.path.some(Wz));this.animationProgress=0;let H;this.mixTargetDelta=ne=>{const Z=ne/1e3;i1(m.x,a.x,Z),i1(m.y,a.y,Z),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Dd(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Uz(this.relativeTarget,this.relativeTargetOrigin,T,Z),H&&Sz(this.relativeTarget,H)&&(this.isProjectionDirty=!1),H||(H=kr()),ks(H,this.relativeTarget)),A&&(this.animationValues=y,mz(y,p,this.latestValues,Z,U,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Z},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Pl(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ln.update(()=>{Zh.hasAnimatedSinceResize=!0,this.currentAnimation=Pz(0,t1,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(t1),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:f,layout:p,latestValues:y}=a;if(!(!c||!f||!p)){if(this!==a&&this.layout&&p&&VD(this.options.animationType,this.layout.layoutBox,p.layoutBox)){f=this.target||kr();const m=ts(this.layout.layoutBox.x);f.x.min=a.target.x.min,f.x.max=f.x.min+m;const T=ts(this.layout.layoutBox.y);f.y.min=a.target.y.min,f.y.max=f.y.min+T}ks(c,f),Tf(c,y),kd(this.projectionDeltaWithTransform,this.layoutCorrected,c,y)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new Tz),this.sharedNodes.get(a).add(c);const p=c.options.initialPromotionConfig;c.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:f}={}){const p=this.getStack();p&&p.promote(this,f),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:f}=a;if((f.rotate||f.rotateX||f.rotateY||f.rotateZ)&&(c=!0),!c)return;const p={};for(let y=0;y<e1.length;y++){const m="rotate"+e1[y];f[m]&&(p[m]=f[m],a.setStaticValue(m,0))}a.render();for(const y in p)a.setStaticValue(y,p[y]);a.scheduleRender()}getProjectionStyles(a){var c,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Oz;const p={visibility:""},y=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=Kh(a==null?void 0:a.pointerEvents)||"",p.transform=y?y(this.latestValues,""):"none",p;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const A={};return this.options.layoutId&&(A.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,A.pointerEvents=Kh(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!gc(this.latestValues)&&(A.transform=y?y({},""):"none",this.hasProjected=!1),A}const T=m.animationValues||m.latestValues;this.applyTransformsToTarget(),p.transform=QS(this.projectionDeltaWithTransform,this.treeScale,T),y&&(p.transform=y(T,p.transform));const{x:E,y:I}=this.projectionDelta;p.transformOrigin=`${E.origin*100}% ${I.origin*100}% 0`,m.animationValues?p.opacity=m===this?(f=(c=T.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:T.opacityExit:p.opacity=m===this?T.opacity!==void 0?T.opacity:"":T.opacityExit!==void 0?T.opacityExit:0;for(const A in yp){if(T[A]===void 0)continue;const{correct:F,applyTo:R}=yp[A],U=p.transform==="none"?T[A]:F(T[A],m);if(R){const H=R.length;for(let ne=0;ne<H;ne++)p[R[ne]]=U}else p[A]=U}return this.options.layoutId&&(p.pointerEvents=m===this?Kh(a==null?void 0:a.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(n1),this.root.sharedNodes.clear()}}}function Iz(t){t.updateLayout()}function Az(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:o}=t.options,a=n.source!==t.layout.source;o==="size"?Ps(m=>{const T=a?n.measuredBox[m]:n.layoutBox[m],E=ts(T);T.min=r[m].min,T.max=T.min+E}):VD(o,n.layoutBox,r)&&Ps(m=>{const T=a?n.measuredBox[m]:n.layoutBox[m],E=ts(r[m]);T.max=T.min+E,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[m].max=t.relativeTarget[m].min+E)});const c=Sf();kd(c,r,n.layoutBox);const f=Sf();a?kd(f,t.applyTransform(i,!0),n.measuredBox):kd(f,r,n.layoutBox);const p=!jD(c);let y=!1;if(!t.resumeFrom){const m=t.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:T,layout:E}=m;if(T&&E){const I=kr();Dd(I,n.layoutBox,T.layoutBox);const A=kr();Dd(A,r,E.layoutBox),BD(I,A)||(y=!0),m.options.layoutRoot&&(t.relativeTarget=A,t.relativeTargetOrigin=I,t.relativeParent=m)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:f,layoutDelta:c,hasLayoutChanged:p,hasRelativeTargetChanged:y})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function Mz(t){mc.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Lz(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Fz(t){t.clearSnapshot()}function n1(t){t.clearMeasurements()}function Nz(t){t.isLayoutDirty=!1}function jz(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function r1(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Bz(t){t.resolveTargetDelta()}function $z(t){t.calcProjection()}function Vz(t){t.resetRotation()}function Hz(t){t.removeLeadSnapshot()}function i1(t,e,n){t.translate=Zn(e.translate,0,n),t.scale=Zn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function o1(t,e,n,r){t.min=Zn(e.min,n.min,r),t.max=Zn(e.max,n.max,r)}function Uz(t,e,n,r){o1(t.x,e.x,n.x,r),o1(t.y,e.y,n.y,r)}function Wz(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const zz={duration:.45,ease:[.4,0,.1,1]},s1=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),a1=s1("applewebkit/")&&!s1("chrome/")?Math.round:sr;function l1(t){t.min=a1(t.min),t.max=a1(t.max)}function Yz(t){l1(t.x),l1(t.y)}function VD(t,e,n){return t==="position"||t==="preserve-aspect"&&!Dv(JS(e),JS(n),.2)}const Gz=$D({attachResizeListener:(t,e)=>xl(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),pm={current:void 0},HD=$D({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!pm.current){const t=new Gz({});t.mount(window),t.setOptions({layoutScroll:!0}),pm.current=t}return pm.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),qz={pan:{Feature:cz},drag:{Feature:uz,ProjectionNode:HD,MeasureLayout:LD}},Xz=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Kz(t){const e=Xz.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}const Zz=4;function Rv(t,e,n=1){la(n<=Zz,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,i]=Kz(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const a=o.trim();return CD(a)?parseFloat(a):a}else return wv(i)?Rv(i,e,n+1):i}function Jz(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(i=>{const o=i.get();if(!wv(o))return;const a=Rv(o,r);a&&i.set(a)});for(const i in e){const o=e[i];if(!wv(o))continue;const a=Rv(o,r);a&&(e[i]=a,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:e,transitionEnd:n}}const Qz=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),UD=t=>Qz.has(t),e4=t=>Object.keys(t).some(UD),Mh=t=>t===Ac||t===Rt,u1=(t,e)=>parseFloat(t.split(", ")[e]),c1=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return u1(i[1],e);{const o=r.match(/^matrix\((.+)\)$/);return o?u1(o[1],t):0}},t4=new Set(["x","y","z"]),n4=Qd.filter(t=>!t4.has(t));function r4(t){const e=[];return n4.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}const If={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:c1(4,13),y:c1(5,14)};If.translateX=If.x;If.translateY=If.y;const i4=(t,e,n)=>{const r=e.measureViewportBox(),i=e.current,o=getComputedStyle(i),{display:a}=o,c={};a==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(p=>{c[p]=If[p](r,o)}),e.render();const f=e.measureViewportBox();return n.forEach(p=>{const y=e.getValue(p);y&&y.jump(c[p]),t[p]=If[p](f,o)}),t},o4=(t,e,n={},r={})=>{e={...e},r={...r};const i=Object.keys(e).filter(UD);let o=[],a=!1;const c=[];if(i.forEach(f=>{const p=t.getValue(f);if(!t.hasValue(f))return;let y=n[f],m=ld(y);const T=e[f];let E;if(wp(T)){const I=T.length,A=T[0]===null?1:0;y=T[A],m=ld(y);for(let F=A;F<I&&T[F]!==null;F++)E?la(ld(T[F])===E,"All keyframes must be of the same type"):(E=ld(T[F]),la(E===m||Mh(m)&&Mh(E),"Keyframes must be of the same dimension as the current value"))}else E=ld(T);if(m!==E)if(Mh(m)&&Mh(E)){const I=p.get();typeof I=="string"&&p.set(parseFloat(I)),typeof T=="string"?e[f]=parseFloat(T):Array.isArray(T)&&E===Rt&&(e[f]=T.map(parseFloat))}else m!=null&&m.transform&&(E!=null&&E.transform)&&(y===0||T===0)?y===0?p.set(E.transform(y)):e[f]=m.transform(T):(a||(o=r4(t),a=!0),c.push(f),r[f]=r[f]!==void 0?r[f]:e[f],p.jump(T))}),c.length){const f=c.indexOf("height")>=0?window.pageYOffset:null,p=i4(e,t,c);return o.length&&o.forEach(([y,m])=>{t.getValue(y).set(m)}),t.render(),qp&&f!==null&&window.scrollTo({top:f}),{target:p,transitionEnd:r}}else return{target:e,transitionEnd:r}};function s4(t,e,n,r){return e4(e)?o4(t,e,n,r):{target:e,transitionEnd:r}}const a4=(t,e,n,r)=>{const i=Jz(t,e,r);return e=i.target,r=i.transitionEnd,s4(t,e,n,r)},Iv={current:null},WD={current:!1};function l4(){if(WD.current=!0,!!qp)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Iv.current=t.matches;t.addListener(e),e()}else Iv.current=!1}function u4(t,e,n){const{willChange:r}=e;for(const i in e){const o=e[i],a=n[i];if(Io(o))t.addValue(i,o),Cp(r)&&r.add(i),process.env.NODE_ENV==="development"&&sb(o.version==="10.18.0",`Attempting to mix Framer Motion versions ${o.version} with 10.18.0 may not work as expected.`);else if(Io(a))t.addValue(i,Rf(o,{owner:t})),Cp(r)&&r.remove(i);else if(a!==o)if(t.hasValue(i)){const c=t.getValue(i);!c.hasAnimated&&c.set(o)}else{const c=t.getStaticValue(i);t.addValue(i,Rf(c!==void 0?c:o,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const f1=new WeakMap,zD=Object.keys(Vd),c4=zD.length,d1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],f4=Uy.length;class d4{constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Ln.render(this.render,!1,!0);const{latestValues:c,renderState:f}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=f,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.isControllingVariants=Kp(n),this.isVariantNode=Pk(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:p,...y}=this.scrapeMotionValuesFromProps(n,{});for(const m in y){const T=y[m];c[m]!==void 0&&Io(T)&&(T.set(c[m],!1),Cp(p)&&p.add(m))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,f1.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),WD.current||l4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Iv.current,process.env.NODE_ENV!=="production"&&sb(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){f1.delete(this.current),this.projection&&this.projection.unmount(),Pl(this.notifyUpdate),Pl(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,n){const r=Ic.has(e),i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&Ln.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),o()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},r,i,o){let a,c;if(process.env.NODE_ENV!=="production"&&i&&r){const f="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?nh(!1,f):la(!1,f)}for(let f=0;f<c4;f++){const p=zD[f],{isEnabled:y,Feature:m,ProjectionNode:T,MeasureLayout:E}=Vd[p];T&&(a=T),y(n)&&(!this.features[p]&&m&&(this.features[p]=new m(this)),E&&(c=E))}if((this.type==="html"||this.type==="svg")&&!this.projection&&a){this.projection=new a(this.latestValues,this.parent&&this.parent.projection);const{layoutId:f,layout:p,drag:y,dragConstraints:m,layoutScroll:T,layoutRoot:E}=n;this.projection.setOptions({layoutId:f,layout:p,alwaysMeasureLayout:!!y||m&&wf(m),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof p=="string"?p:"both",initialPromotionConfig:o,layoutScroll:T,layoutRoot:E})}return c}updateFeatures(){for(const e in this.features){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):kr()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}makeTargetAnimatable(e,n=!0){return this.makeTargetAnimatableFromInstance(e,this.props,n)}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<d1.length;r++){const i=d1[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=e["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=u4(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<f4;r++){const i=Uy[r],o=this.props[i];($d(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){n!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,n)),this.values.set(e,n),this.latestValues[e]=n.get()}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=Rf(n,{owner:this}),this.addValue(e,r)),r}readValue(e){var n;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=Ky(this.props,r))===null||n===void 0?void 0:n[e]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!Io(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new ob),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class YD extends d4{sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:n,...r},{transformValues:i},o){let a=_5(r,e||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),a&&(a=i(a))),o){k5(this,r,a);const c=a4(this,r,a,n);n=c.transitionEnd,r=c.target}return{transition:e,transitionEnd:n,...r}}}function h4(t){return window.getComputedStyle(t)}class p4 extends YD{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,n){if(Ic.has(n)){const r=eb(n);return r&&r.default||0}else{const r=h4(e),i=(Mk(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return AD(e,n)}build(e,n,r,i){zy(e,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(e,n){return Xy(e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Io(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,r,i){$k(e,n,r,i)}}class g4 extends YD{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Ic.has(n)){const r=eb(n);return r&&r.default||0}return n=Vk.has(n)?n:Vy(n),e.getAttribute(n)}measureInstanceViewportBox(){return kr()}scrapeMotionValuesFromProps(e,n){return Uk(e,n)}build(e,n,r,i){Gy(e,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,r,i){Hk(e,n,r,i)}mount(e){this.isSVGTag=qy(e.tagName),super.mount(e)}}const m4=(t,e)=>Wy(t)?new g4(e,{enableHardwareAcceleration:!1}):new p4(e,{enableHardwareAcceleration:!0}),v4={layout:{ProjectionNode:HD,MeasureLayout:LD}},y4={...U5,...fW,...qz,...v4},GD=bU((t,e)=>JU(t,e,y4,m4));function qD(t){return Rp({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M463 192H315.9L271.2 58.6C269 52.1 262.9 48 256 48s-13 4.1-15.2 10.6L196.1 192H48c-8.8 0-16 7.2-16 16 0 .9.1 1.9.3 2.7.2 3.5 1.8 7.4 6.7 11.3l120.9 85.2-46.4 134.9c-2.3 6.5 0 13.8 5.5 18 2.9 2.1 5.6 3.9 9 3.9 3.3 0 7.2-1.7 10-3.6l118-84.1 118 84.1c2.8 2 6.7 3.6 10 3.6 3.4 0 6.1-1.7 8.9-3.9 5.6-4.2 7.8-11.4 5.5-18L352 307.2l119.9-86 2.9-2.5c2.6-2.8 5.2-6.6 5.2-10.7 0-8.8-8.2-16-17-16zm-127.2 92.5c-10 7.2-14.2 20.2-10.2 31.8l30.1 87.7c1.3 3.7-2.9 6.8-6.1 4.6l-77.4-55.2c-4.9-3.5-10.6-5.2-16.3-5.2-5.7 0-11.4 1.7-16.2 5.2l-77.4 55.1c-3.2 2.3-7.4-.9-6.1-4.6l30.1-87.7c4-11.8-.2-24.8-10.3-32l-81-57.1c-3.2-2.2-1.6-7.3 2.3-7.3H196c12 0 22.7-7.7 26.5-19.1l29.6-88.2c1.2-3.6 6.4-3.6 7.6 0l29.6 88.2c3.8 11.4 14.5 19.1 26.5 19.1h97.3c3.9 0 5.5 5 2.3 7.2l-79.6 57.5z"},child:[]}]})(t)}function XD(t){return Rp({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 372.686L380.83 448l-33.021-142.066L458 210.409l-145.267-12.475L256 64l-56.743 133.934L54 210.409l110.192 95.525L131.161 448z"},child:[]}]})(t)}function ab(t,e){return e?t:void 0}function b4(t){return de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...t,children:de.jsx("path",{fill:"currenColor",d:"M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"})})}function w4(t){const{renderChildren:e,parentRef:n,onlyChild:r}=t,[i,o]=z.useState({top:0,left:0}),a=z.useRef(null),[c,f]=z.useState("auto");return z.useLayoutEffect(()=>{if(n.current&&a.current){const p=n.current.getBoundingClientRect(),y=a.current.getBoundingClientRect();let m=p.top;const T=p.left+p.width,E=y.height+(window.innerHeight-p.top)>window.innerHeight;E&&(console.log("overtop"),f(window.innerHeight-p.top-50)),p.top+y.height>window.innerHeight&&!E&&(m=p.top-y.height+p.height),o({top:m,left:T})}},[n,a]),r?e({maxHeight:c}):zv.createPortal(de.jsx("div",{ref:a,style:{position:"fixed",top:i.top,left:i.left,zIndex:1200},onDragStart:p=>{console.log("onDragStart Dropdown",p.target)},children:e({maxHeight:c})}),n.current)}function gm(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}/*!
|
|
9
|
+
* content-type
|
|
10
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
11
|
+
* MIT Licensed
|
|
12
|
+
*/var h1=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,x4=/\\([\u000b\u0020-\u00ff])/g,S4=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,T4=C4;function C4(t){if(!t)throw new TypeError("argument string is required");var e=typeof t=="object"?E4(t):t;if(typeof e!="string")throw new TypeError("argument string is required to be a string");var n=e.indexOf(";"),r=n!==-1?e.slice(0,n).trim():e.trim();if(!S4.test(r))throw new TypeError("invalid media type");var i=new k4(r.toLowerCase());if(n!==-1){var o,a,c;for(h1.lastIndex=n;a=h1.exec(e);){if(a.index!==n)throw new TypeError("invalid parameter format");n+=a[0].length,o=a[1].toLowerCase(),c=a[2],c.charCodeAt(0)===34&&(c=c.slice(1,-1),c.indexOf("\\")!==-1&&(c=c.replace(x4,"$1"))),i.parameters[o]=c}if(n!==e.length)throw new TypeError("invalid parameter format")}return i}function E4(t){var e;if(typeof t.getHeader=="function"?e=t.getHeader("content-type"):typeof t.headers=="object"&&(e=t.headers&&t.headers["content-type"]),typeof e!="string")throw new TypeError("content-type header is missing from object");return e}function k4(t){this.parameters=Object.create(null),this.type=t}var hf=new Map,KD=function(e){return e.cloneNode(!0)},p1=function(){return window.location.protocol==="file:"},ZD=function(e,n,r){var i=new XMLHttpRequest;i.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&i.readyState===2){var o=i.getResponseHeader("Content-Type");if(!o)throw new Error("Content type not found");var a=T4(o).type;if(!(a==="image/svg+xml"||a==="text/plain"))throw new Error("Invalid content type: ".concat(a))}if(i.readyState===4){if(i.status===404||i.responseXML===null)throw new Error(p1()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+e);if(i.status===200||p1()&&i.status===0)r(null,i);else throw new Error("There was a problem injecting the SVG: "+i.status+" "+i.statusText)}}catch(c){if(i.abort(),c instanceof Error)r(c,i);else throw c}},i.open("GET",e),i.withCredentials=n,i.overrideMimeType&&i.overrideMimeType("text/xml"),i.send()},fu={},g1=function(e,n){fu[e]=fu[e]||[],fu[e].push(n)},D4=function(e){for(var n=function(a,c){setTimeout(function(){if(Array.isArray(fu[e])){var f=hf.get(e),p=fu[e][a];f instanceof SVGSVGElement&&p(null,KD(f)),f instanceof Error&&p(f),a===fu[e].length-1&&delete fu[e]}},0)},r=0,i=fu[e].length;r<i;r++)n(r)},_4=function(e,n,r){if(hf.has(e)){var i=hf.get(e);if(i===void 0){g1(e,r);return}if(i instanceof SVGSVGElement){r(null,KD(i));return}}hf.set(e,void 0),g1(e,r),ZD(e,n,function(o,a){var c;o?hf.set(e,o):((c=a.responseXML)===null||c===void 0?void 0:c.documentElement)instanceof SVGSVGElement&&hf.set(e,a.responseXML.documentElement),D4(e)})},P4=function(e,n,r){ZD(e,n,function(i,o){var a;i?r(i):((a=o.responseXML)===null||a===void 0?void 0:a.documentElement)instanceof SVGSVGElement&&r(null,o.responseXML.documentElement)})},O4=0,R4=function(){return++O4},Fa=[],m1={},I4="http://www.w3.org/2000/svg",mm="http://www.w3.org/1999/xlink",v1=function(e,n,r,i,o,a,c){var f=e.getAttribute("data-src")||e.getAttribute("src");if(!f){c(new Error("Invalid data-src or src attribute"));return}if(Fa.indexOf(e)!==-1){Fa.splice(Fa.indexOf(e),1),e=null;return}Fa.push(e),e.setAttribute("src","");var p=i?_4:P4;p(f,o,function(y,m){if(!m){Fa.splice(Fa.indexOf(e),1),e=null,c(y);return}var T=e.getAttribute("id");T&&m.setAttribute("id",T);var E=e.getAttribute("title");E&&m.setAttribute("title",E);var I=e.getAttribute("width");I&&m.setAttribute("width",I);var A=e.getAttribute("height");A&&m.setAttribute("height",A);var F=Array.from(new Set(gm(gm(gm([],(m.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();m.setAttribute("class",F);var R=e.getAttribute("style");R&&m.setAttribute("style",R),m.setAttribute("data-src",f);var U=[].filter.call(e.attributes,function(Ae){return/^data-\w[\w-]*$/.test(Ae.name)});if(Array.prototype.forEach.call(U,function(Ae){Ae.name&&Ae.value&&m.setAttribute(Ae.name,Ae.value)}),r){var H={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]},ne,Z,ce,S,re;Object.keys(H).forEach(function(Ae){ne=Ae,ce=H[Ae],Z=m.querySelectorAll(ne+"[id]");for(var et=function(je,Ie){S=Z[je].id,re=S+"-"+R4();var Be;Array.prototype.forEach.call(ce,function(It){Be=m.querySelectorAll("["+It+'*="'+S+'"]');for(var Mt=0,Vn=Be.length;Mt<Vn;Mt++){var vr=Be[Mt].getAttribute(It);vr&&!vr.match(new RegExp('url\\("?#'+S+'"?\\)'))||Be[Mt].setAttribute(It,"url(#"+re+")")}});for(var Ue=m.querySelectorAll("[*|href]"),it=[],rt=0,st=Ue.length;rt<st;rt++){var Qe=Ue[rt].getAttributeNS(mm,"href");Qe&&Qe.toString()==="#"+Z[je].id&&it.push(Ue[rt])}for(var ft=0,Xe=it.length;ft<Xe;ft++)it[ft].setAttributeNS(mm,"href","#"+re);Z[je].id=re},ye=0,ue=Z.length;ye<ue;ye++)et(ye)})}m.removeAttribute("xmlns:a");for(var ie=m.querySelectorAll("script"),Pe=[],Ke,$e,tt=0,nt=ie.length;tt<nt;tt++)$e=ie[tt].getAttribute("type"),(!$e||$e==="application/ecmascript"||$e==="application/javascript"||$e==="text/javascript")&&(Ke=ie[tt].innerText||ie[tt].textContent,Ke&&Pe.push(Ke),m.removeChild(ie[tt]));if(Pe.length>0&&(n==="always"||n==="once"&&!m1[f])){for(var ge=0,_e=Pe.length;ge<_e;ge++)new Function(Pe[ge])(window);m1[f]=!0}var Re=m.querySelectorAll("style");if(Array.prototype.forEach.call(Re,function(Ae){Ae.textContent+=""}),m.setAttribute("xmlns",I4),m.setAttribute("xmlns:xlink",mm),a(m),!e.parentNode){Fa.splice(Fa.indexOf(e),1),e=null,c(new Error("Parent node is null"));return}e.parentNode.replaceChild(m,e),Fa.splice(Fa.indexOf(e),1),e=null,c(null,m)})},A4=function(e,n){var r=n===void 0?{}:n,i=r.afterAll,o=i===void 0?function(){}:i,a=r.afterEach,c=a===void 0?function(){}:a,f=r.beforeEach,p=f===void 0?function(){}:f,y=r.cacheRequests,m=y===void 0?!0:y,T=r.evalScripts,E=T===void 0?"never":T,I=r.httpRequestWithCredentials,A=I===void 0?!1:I,F=r.renumerateIRIElements,R=F===void 0?!0:F;if(e&&"length"in e)for(var U=0,H=0,ne=e.length;H<ne;H++)v1(e[H],E,R,m,A,p,function(Z,ce){c(Z,ce),e&&"length"in e&&e.length===++U&&o(U)});else e?v1(e,E,R,m,A,p,function(Z,ce){c(Z,ce),o(1),e=null}):o(0)},Av={exports:{}},Lh={exports:{}},mn={};/** @license React v16.13.1
|
|
13
|
+
* react-is.production.min.js
|
|
14
|
+
*
|
|
15
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
16
|
+
*
|
|
17
|
+
* This source code is licensed under the MIT license found in the
|
|
18
|
+
* LICENSE file in the root directory of this source tree.
|
|
19
|
+
*/var y1;function M4(){if(y1)return mn;y1=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,f=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,y=t?Symbol.for("react.forward_ref"):60112,m=t?Symbol.for("react.suspense"):60113,T=t?Symbol.for("react.suspense_list"):60120,E=t?Symbol.for("react.memo"):60115,I=t?Symbol.for("react.lazy"):60116,A=t?Symbol.for("react.block"):60121,F=t?Symbol.for("react.fundamental"):60117,R=t?Symbol.for("react.responder"):60118,U=t?Symbol.for("react.scope"):60119;function H(Z){if(typeof Z=="object"&&Z!==null){var ce=Z.$$typeof;switch(ce){case e:switch(Z=Z.type,Z){case f:case p:case r:case o:case i:case m:return Z;default:switch(Z=Z&&Z.$$typeof,Z){case c:case y:case I:case E:case a:return Z;default:return ce}}case n:return ce}}}function ne(Z){return H(Z)===p}return mn.AsyncMode=f,mn.ConcurrentMode=p,mn.ContextConsumer=c,mn.ContextProvider=a,mn.Element=e,mn.ForwardRef=y,mn.Fragment=r,mn.Lazy=I,mn.Memo=E,mn.Portal=n,mn.Profiler=o,mn.StrictMode=i,mn.Suspense=m,mn.isAsyncMode=function(Z){return ne(Z)||H(Z)===f},mn.isConcurrentMode=ne,mn.isContextConsumer=function(Z){return H(Z)===c},mn.isContextProvider=function(Z){return H(Z)===a},mn.isElement=function(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===e},mn.isForwardRef=function(Z){return H(Z)===y},mn.isFragment=function(Z){return H(Z)===r},mn.isLazy=function(Z){return H(Z)===I},mn.isMemo=function(Z){return H(Z)===E},mn.isPortal=function(Z){return H(Z)===n},mn.isProfiler=function(Z){return H(Z)===o},mn.isStrictMode=function(Z){return H(Z)===i},mn.isSuspense=function(Z){return H(Z)===m},mn.isValidElementType=function(Z){return typeof Z=="string"||typeof Z=="function"||Z===r||Z===p||Z===o||Z===i||Z===m||Z===T||typeof Z=="object"&&Z!==null&&(Z.$$typeof===I||Z.$$typeof===E||Z.$$typeof===a||Z.$$typeof===c||Z.$$typeof===y||Z.$$typeof===F||Z.$$typeof===R||Z.$$typeof===U||Z.$$typeof===A)},mn.typeOf=H,mn}var vn={};/** @license React v16.13.1
|
|
20
|
+
* react-is.development.js
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/var b1;function L4(){return b1||(b1=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,f=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,y=t?Symbol.for("react.forward_ref"):60112,m=t?Symbol.for("react.suspense"):60113,T=t?Symbol.for("react.suspense_list"):60120,E=t?Symbol.for("react.memo"):60115,I=t?Symbol.for("react.lazy"):60116,A=t?Symbol.for("react.block"):60121,F=t?Symbol.for("react.fundamental"):60117,R=t?Symbol.for("react.responder"):60118,U=t?Symbol.for("react.scope"):60119;function H(Xe){return typeof Xe=="string"||typeof Xe=="function"||Xe===r||Xe===p||Xe===o||Xe===i||Xe===m||Xe===T||typeof Xe=="object"&&Xe!==null&&(Xe.$$typeof===I||Xe.$$typeof===E||Xe.$$typeof===a||Xe.$$typeof===c||Xe.$$typeof===y||Xe.$$typeof===F||Xe.$$typeof===R||Xe.$$typeof===U||Xe.$$typeof===A)}function ne(Xe){if(typeof Xe=="object"&&Xe!==null){var It=Xe.$$typeof;switch(It){case e:var Mt=Xe.type;switch(Mt){case f:case p:case r:case o:case i:case m:return Mt;default:var Vn=Mt&&Mt.$$typeof;switch(Vn){case c:case y:case I:case E:case a:return Vn;default:return It}}case n:return It}}}var Z=f,ce=p,S=c,re=a,ie=e,Pe=y,Ke=r,$e=I,tt=E,nt=n,ge=o,_e=i,Re=m,Ae=!1;function et(Xe){return Ae||(Ae=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),ye(Xe)||ne(Xe)===f}function ye(Xe){return ne(Xe)===p}function ue(Xe){return ne(Xe)===c}function De(Xe){return ne(Xe)===a}function je(Xe){return typeof Xe=="object"&&Xe!==null&&Xe.$$typeof===e}function Ie(Xe){return ne(Xe)===y}function Be(Xe){return ne(Xe)===r}function Ue(Xe){return ne(Xe)===I}function it(Xe){return ne(Xe)===E}function rt(Xe){return ne(Xe)===n}function st(Xe){return ne(Xe)===o}function Qe(Xe){return ne(Xe)===i}function ft(Xe){return ne(Xe)===m}vn.AsyncMode=Z,vn.ConcurrentMode=ce,vn.ContextConsumer=S,vn.ContextProvider=re,vn.Element=ie,vn.ForwardRef=Pe,vn.Fragment=Ke,vn.Lazy=$e,vn.Memo=tt,vn.Portal=nt,vn.Profiler=ge,vn.StrictMode=_e,vn.Suspense=Re,vn.isAsyncMode=et,vn.isConcurrentMode=ye,vn.isContextConsumer=ue,vn.isContextProvider=De,vn.isElement=je,vn.isForwardRef=Ie,vn.isFragment=Be,vn.isLazy=Ue,vn.isMemo=it,vn.isPortal=rt,vn.isProfiler=st,vn.isStrictMode=Qe,vn.isSuspense=ft,vn.isValidElementType=H,vn.typeOf=ne}()),vn}var w1;function JD(){return w1||(w1=1,process.env.NODE_ENV==="production"?Lh.exports=M4():Lh.exports=L4()),Lh.exports}/*
|
|
27
|
+
object-assign
|
|
28
|
+
(c) Sindre Sorhus
|
|
29
|
+
@license MIT
|
|
30
|
+
*/var vm,x1;function F4(){if(x1)return vm;x1=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var f=Object.getOwnPropertyNames(a).map(function(y){return a[y]});if(f.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(y){p[y]=y}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return vm=i()?Object.assign:function(o,a){for(var c,f=r(o),p,y=1;y<arguments.length;y++){c=Object(arguments[y]);for(var m in c)e.call(c,m)&&(f[m]=c[m]);if(t){p=t(c);for(var T=0;T<p.length;T++)n.call(c,p[T])&&(f[p[T]]=c[p[T]])}}return f},vm}var ym,S1;function lb(){if(S1)return ym;S1=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ym=t,ym}var bm,T1;function QD(){return T1||(T1=1,bm=Function.call.bind(Object.prototype.hasOwnProperty)),bm}var wm,C1;function N4(){if(C1)return wm;C1=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=lb(),n={},r=QD();t=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,c,f,p){if(process.env.NODE_ENV!=="production"){for(var y in o)if(r(o,y)){var m;try{if(typeof o[y]!="function"){var T=Error((f||"React class")+": "+c+" type `"+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}m=o[y](a,y,f,c,null,e)}catch(I){m=I}if(m&&!(m instanceof Error)&&t((f||"React class")+": type specification of "+c+" `"+y+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in n)){n[m.message]=!0;var E=p?p():"";t("Failed "+c+" type: "+m.message+(E??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},wm=i,wm}var xm,E1;function j4(){if(E1)return xm;E1=1;var t=JD(),e=F4(),n=lb(),r=QD(),i=N4(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(c){var f="Warning: "+c;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function a(){return null}return xm=function(c,f){var p=typeof Symbol=="function"&&Symbol.iterator,y="@@iterator";function m(ye){var ue=ye&&(p&&ye[p]||ye[y]);if(typeof ue=="function")return ue}var T="<<anonymous>>",E={array:R("array"),bigint:R("bigint"),bool:R("boolean"),func:R("function"),number:R("number"),object:R("object"),string:R("string"),symbol:R("symbol"),any:U(),arrayOf:H,element:ne(),elementType:Z(),instanceOf:ce,node:Pe(),objectOf:re,oneOf:S,oneOfType:ie,shape:$e,exact:tt};function I(ye,ue){return ye===ue?ye!==0||1/ye===1/ue:ye!==ye&&ue!==ue}function A(ye,ue){this.message=ye,this.data=ue&&typeof ue=="object"?ue:{},this.stack=""}A.prototype=Error.prototype;function F(ye){if(process.env.NODE_ENV!=="production")var ue={},De=0;function je(Be,Ue,it,rt,st,Qe,ft){if(rt=rt||T,Qe=Qe||it,ft!==n){if(f){var Xe=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 Xe.name="Invariant Violation",Xe}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var It=rt+":"+it;!ue[It]&&De<3&&(o("You are manually calling a React.PropTypes validation function for the `"+Qe+"` prop on `"+rt+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),ue[It]=!0,De++)}}return Ue[it]==null?Be?Ue[it]===null?new A("The "+st+" `"+Qe+"` is marked as required "+("in `"+rt+"`, but its value is `null`.")):new A("The "+st+" `"+Qe+"` is marked as required in "+("`"+rt+"`, but its value is `undefined`.")):null:ye(Ue,it,rt,st,Qe)}var Ie=je.bind(null,!1);return Ie.isRequired=je.bind(null,!0),Ie}function R(ye){function ue(De,je,Ie,Be,Ue,it){var rt=De[je],st=_e(rt);if(st!==ye){var Qe=Re(rt);return new A("Invalid "+Be+" `"+Ue+"` of type "+("`"+Qe+"` supplied to `"+Ie+"`, expected ")+("`"+ye+"`."),{expectedType:ye})}return null}return F(ue)}function U(){return F(a)}function H(ye){function ue(De,je,Ie,Be,Ue){if(typeof ye!="function")return new A("Property `"+Ue+"` of component `"+Ie+"` has invalid PropType notation inside arrayOf.");var it=De[je];if(!Array.isArray(it)){var rt=_e(it);return new A("Invalid "+Be+" `"+Ue+"` of type "+("`"+rt+"` supplied to `"+Ie+"`, expected an array."))}for(var st=0;st<it.length;st++){var Qe=ye(it,st,Ie,Be,Ue+"["+st+"]",n);if(Qe instanceof Error)return Qe}return null}return F(ue)}function ne(){function ye(ue,De,je,Ie,Be){var Ue=ue[De];if(!c(Ue)){var it=_e(Ue);return new A("Invalid "+Ie+" `"+Be+"` of type "+("`"+it+"` supplied to `"+je+"`, expected a single ReactElement."))}return null}return F(ye)}function Z(){function ye(ue,De,je,Ie,Be){var Ue=ue[De];if(!t.isValidElementType(Ue)){var it=_e(Ue);return new A("Invalid "+Ie+" `"+Be+"` of type "+("`"+it+"` supplied to `"+je+"`, expected a single ReactElement type."))}return null}return F(ye)}function ce(ye){function ue(De,je,Ie,Be,Ue){if(!(De[je]instanceof ye)){var it=ye.name||T,rt=et(De[je]);return new A("Invalid "+Be+" `"+Ue+"` of type "+("`"+rt+"` supplied to `"+Ie+"`, expected ")+("instance of `"+it+"`."))}return null}return F(ue)}function S(ye){if(!Array.isArray(ye))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function ue(De,je,Ie,Be,Ue){for(var it=De[je],rt=0;rt<ye.length;rt++)if(I(it,ye[rt]))return null;var st=JSON.stringify(ye,function(ft,Xe){var It=Re(Xe);return It==="symbol"?String(Xe):Xe});return new A("Invalid "+Be+" `"+Ue+"` of value `"+String(it)+"` "+("supplied to `"+Ie+"`, expected one of "+st+"."))}return F(ue)}function re(ye){function ue(De,je,Ie,Be,Ue){if(typeof ye!="function")return new A("Property `"+Ue+"` of component `"+Ie+"` has invalid PropType notation inside objectOf.");var it=De[je],rt=_e(it);if(rt!=="object")return new A("Invalid "+Be+" `"+Ue+"` of type "+("`"+rt+"` supplied to `"+Ie+"`, expected an object."));for(var st in it)if(r(it,st)){var Qe=ye(it,st,Ie,Be,Ue+"."+st,n);if(Qe instanceof Error)return Qe}return null}return F(ue)}function ie(ye){if(!Array.isArray(ye))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var ue=0;ue<ye.length;ue++){var De=ye[ue];if(typeof De!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ae(De)+" at index "+ue+"."),a}function je(Ie,Be,Ue,it,rt){for(var st=[],Qe=0;Qe<ye.length;Qe++){var ft=ye[Qe],Xe=ft(Ie,Be,Ue,it,rt,n);if(Xe==null)return null;Xe.data&&r(Xe.data,"expectedType")&&st.push(Xe.data.expectedType)}var It=st.length>0?", expected one of type ["+st.join(", ")+"]":"";return new A("Invalid "+it+" `"+rt+"` supplied to "+("`"+Ue+"`"+It+"."))}return F(je)}function Pe(){function ye(ue,De,je,Ie,Be){return nt(ue[De])?null:new A("Invalid "+Ie+" `"+Be+"` supplied to "+("`"+je+"`, expected a ReactNode."))}return F(ye)}function Ke(ye,ue,De,je,Ie){return new A((ye||"React class")+": "+ue+" type `"+De+"."+je+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Ie+"`.")}function $e(ye){function ue(De,je,Ie,Be,Ue){var it=De[je],rt=_e(it);if(rt!=="object")return new A("Invalid "+Be+" `"+Ue+"` of type `"+rt+"` "+("supplied to `"+Ie+"`, expected `object`."));for(var st in ye){var Qe=ye[st];if(typeof Qe!="function")return Ke(Ie,Be,Ue,st,Re(Qe));var ft=Qe(it,st,Ie,Be,Ue+"."+st,n);if(ft)return ft}return null}return F(ue)}function tt(ye){function ue(De,je,Ie,Be,Ue){var it=De[je],rt=_e(it);if(rt!=="object")return new A("Invalid "+Be+" `"+Ue+"` of type `"+rt+"` "+("supplied to `"+Ie+"`, expected `object`."));var st=e({},De[je],ye);for(var Qe in st){var ft=ye[Qe];if(r(ye,Qe)&&typeof ft!="function")return Ke(Ie,Be,Ue,Qe,Re(ft));if(!ft)return new A("Invalid "+Be+" `"+Ue+"` key `"+Qe+"` supplied to `"+Ie+"`.\nBad object: "+JSON.stringify(De[je],null," ")+`
|
|
31
|
+
Valid keys: `+JSON.stringify(Object.keys(ye),null," "));var Xe=ft(it,Qe,Ie,Be,Ue+"."+Qe,n);if(Xe)return Xe}return null}return F(ue)}function nt(ye){switch(typeof ye){case"number":case"string":case"undefined":return!0;case"boolean":return!ye;case"object":if(Array.isArray(ye))return ye.every(nt);if(ye===null||c(ye))return!0;var ue=m(ye);if(ue){var De=ue.call(ye),je;if(ue!==ye.entries){for(;!(je=De.next()).done;)if(!nt(je.value))return!1}else for(;!(je=De.next()).done;){var Ie=je.value;if(Ie&&!nt(Ie[1]))return!1}}else return!1;return!0;default:return!1}}function ge(ye,ue){return ye==="symbol"?!0:ue?ue["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ue instanceof Symbol:!1}function _e(ye){var ue=typeof ye;return Array.isArray(ye)?"array":ye instanceof RegExp?"object":ge(ue,ye)?"symbol":ue}function Re(ye){if(typeof ye>"u"||ye===null)return""+ye;var ue=_e(ye);if(ue==="object"){if(ye instanceof Date)return"date";if(ye instanceof RegExp)return"regexp"}return ue}function Ae(ye){var ue=Re(ye);switch(ue){case"array":case"object":return"an "+ue;case"boolean":case"date":case"regexp":return"a "+ue;default:return ue}}function et(ye){return!ye.constructor||!ye.constructor.name?T:ye.constructor.name}return E.checkPropTypes=i,E.resetWarningCache=i.resetWarningCache,E.PropTypes=E,E},xm}var Sm,k1;function B4(){if(k1)return Sm;k1=1;var t=lb();function e(){}function n(){}return n.resetWarningCache=e,Sm=function(){function r(a,c,f,p,y,m){if(m!==t){var T=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 T.name="Invariant Violation",T}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return o.PropTypes=o,o},Sm}if(process.env.NODE_ENV!=="production"){var $4=JD(),V4=!0;Av.exports=j4()($4.isElement,V4)}else Av.exports=B4()();var Er=Av.exports;const Rs=Eu(Er);var H4=function(e){var n=(e==null?void 0:e.ownerDocument)||document;return n.defaultView||window},U4=function(e,n){for(var r in e)if(!(r in n))return!0;for(var i in n)if(e[i]!==n[i])return!0;return!1},W4=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Fh="http://www.w3.org/2000/svg",D1="http://www.w3.org/1999/xlink",eg=function(t){function e(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o))||this,r.initialState={hasError:!1,isLoading:!0},r.state=r.initialState,r._isMounted=!1,r.reactWrapper=void 0,r.nonReactWrapper=void 0,r.refCallback=function(c){r.reactWrapper=c},r}WT(e,t);var n=e.prototype;return n.renderSVG=function(){var i=this;if(this.reactWrapper instanceof H4(this.reactWrapper).Node){var o=this.props,a=o.desc,c=o.evalScripts,f=o.httpRequestWithCredentials,p=o.renumerateIRIElements,y=o.src,m=o.title,T=o.useRequestCache,E=this.props.onError,I=this.props.beforeInjection,A=this.props.afterInjection,F=this.props.wrapper,R,U;F==="svg"?(R=document.createElementNS(Fh,F),R.setAttribute("xmlns",Fh),R.setAttribute("xmlns:xlink",D1),U=document.createElementNS(Fh,F)):(R=document.createElement(F),U=document.createElement(F)),R.appendChild(U),U.dataset.src=y,this.nonReactWrapper=this.reactWrapper.appendChild(R);var H=function(S){if(i.removeSVG(),!i._isMounted){E(S);return}i.setState(function(){return{hasError:!0,isLoading:!1}},function(){E(S)})},ne=function(S,re){if(S){H(S);return}i._isMounted&&i.setState(function(){return{isLoading:!1}},function(){try{A(re)}catch(ie){H(ie)}})},Z=function(S){if(S.setAttribute("role","img"),a){var re=S.querySelector(":scope > desc");re&&S.removeChild(re);var ie=document.createElement("desc");ie.innerHTML=a,S.prepend(ie)}if(m){var Pe=S.querySelector(":scope > title");Pe&&S.removeChild(Pe);var Ke=document.createElement("title");Ke.innerHTML=m,S.prepend(Ke)}try{I(S)}catch($e){H($e)}};A4(U,{afterEach:ne,beforeEach:Z,cacheRequests:T,evalScripts:c,httpRequestWithCredentials:f,renumerateIRIElements:p})}},n.removeSVG=function(){var i;(i=this.nonReactWrapper)!=null&&i.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(i){var o=this;U4(Df({},i),this.props)&&this.setState(function(){return o.initialState},function(){o.removeSVG(),o.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var i=this.props;i.afterInjection,i.beforeInjection,i.desc,i.evalScripts;var o=i.fallback;i.httpRequestWithCredentials;var a=i.loading;i.renumerateIRIElements,i.src,i.title,i.useRequestCache;var c=i.wrapper,f=qv(i,W4),p=c;return kn.createElement(p,Df({},f,{ref:this.refCallback},c==="svg"?{xmlns:Fh,xmlnsXlink:D1}:{}),this.state.isLoading&&a&&kn.createElement(a,null),this.state.hasError&&o&&kn.createElement(o,null))},e}(kn.Component);eg.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};eg.propTypes={afterInjection:Er.func,beforeInjection:Er.func,desc:Er.string,evalScripts:Er.oneOf(["always","once","never"]),fallback:Er.oneOfType([Er.func,Er.object,Er.string]),httpRequestWithCredentials:Er.bool,loading:Er.oneOfType([Er.func,Er.object,Er.string]),onError:Er.func,renumerateIRIElements:Er.bool,src:Er.string.isRequired,title:Er.string,useRequestCache:Er.bool,wrapper:Er.oneOf(["div","span","svg"])};const Af=new Map;Af.set("text",t=>{var e,n;return de.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(n=(e=t==null?void 0:t.name)==null?void 0:e.trim().at(0))==null?void 0:n.toUpperCase()})});Af.set("svgHtml",t=>{function e(n){function r(o){const c=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return c?(c.querySelectorAll("path").forEach(p=>{p.hasAttribute("fill")&&p.setAttribute("fill","currentColor"),p.hasAttribute("stroke")&&p.setAttribute("stroke","currentColor")}),c.outerHTML):""}const i=r(n.svgString);return de.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return de.jsx(e,{svgString:t.icon})});Af.set("svgHttp",t=>de.jsx(eg,{src:t.icon,beforeInjection:e=>{e.setAttribute("style","margin: 0 auto;"),e.querySelectorAll("path").forEach(r=>{r.hasAttribute("fill")&&r.setAttribute("fill","currentColor"),r.hasAttribute("stroke")&&r.setAttribute("stroke","currentColor")})}}));Af.set("img",t=>de.jsx("img",{src:t.icon||"/",alt:t.name,style:{height:24,maxHeight:24,maxWidth:24}}));function z4(t){return t.icon=(t.icon||"").trim(),t.icon?t.icon.startsWith("<svg")?"svgHtml":t.icon.endsWith(".svg")?"svgHttp":"img":"text"}function e_({item:t}){return(Af.get(z4(t))||Af.get("text"))(t)}function Y4(t){return de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...t,children:de.jsx("path",{fill:"currenColor",d:"M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"})})}function G4(t){const{renderChildren:e,parentRef:n,onlyChild:r,dropdownLevel:i}=t,[o,a]=z.useState({top:0,left:0}),c=z.useRef(null),[f,p]=z.useState("auto");return z.useLayoutEffect(()=>{if(n.current&&c.current){const y=n.current.getBoundingClientRect(),m=c.current.getBoundingClientRect();let T,E;if(i===1)T=y.bottom,E=y.left,m.height+T>window.innerHeight?(p(window.innerHeight-T-50),T=y.bottom-m.height):T=y.bottom;else if(i>1){T=y.top,E=y.left+y.width;const I=m.height+(window.innerHeight-y.top)>window.innerHeight;I&&(console.log("DropDown-fav overtop"),p(window.innerHeight-y.top-50)),y.top+m.height>window.innerHeight&&!I&&(T=y.top-m.height+y.height)}a({top:T-64,left:E})}},[n,c,i]),r?e({maxHeight:f}):zv.createPortal(de.jsx("div",{ref:c,style:{position:"fixed",top:o.top,left:`calc(${o.left}px - var(--global-menu-width))`,zIndex:1200},children:e({maxHeight:f})}),n.current)}const Mf=new Map;Mf.set("text",t=>{var e,n;return de.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(n=(e=t==null?void 0:t.name)==null?void 0:e.trim().at(0))==null?void 0:n.toUpperCase()})});Mf.set("svgHtml",t=>{function e(n){function r(o){const c=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return c?(c.querySelectorAll("path").forEach(p=>{p.hasAttribute("fill")&&p.setAttribute("fill","currentColor"),p.hasAttribute("stroke")&&p.setAttribute("stroke","currentColor")}),c.outerHTML):""}const i=r(n.svgString);return de.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return de.jsx(e,{svgString:t.icon})});Mf.set("svgHttp",t=>de.jsx(eg,{src:t.icon,beforeInjection:e=>{e.setAttribute("style","margin: 0 auto;"),e.querySelectorAll("path").forEach(r=>{r.hasAttribute("fill")&&r.setAttribute("fill","currentColor"),r.hasAttribute("stroke")&&r.setAttribute("stroke","currentColor")})}}));Mf.set("img",t=>de.jsx("img",{src:t.icon||"/",alt:t.name,style:{height:24,maxHeight:24,maxWidth:24}}));function q4(t){return t.icon=(t.icon||"").trim(),t.icon?t.icon.startsWith("<svg")?"svgHtml":t.icon.endsWith(".svg")?"svgHttp":"img":"text"}function X4({item:t}){return(Mf.get(q4(t))||Mf.get("text"))(t)}function t_({...t}){var ge,_e,Re;const e=t.item,n=t.level||0,r=!!((ge=t.item.children)!=null&&ge.length),i=`level-${n}`,o=(Ae,et=i)=>`${Ae} ${et} `,[a,c]=z.useState(!1),[f,p]=z.useState(e.isFavorite||!1),[y,m]=z.useState(window.innerWidth<768),[T,E]=z.useState(!1);z.useEffect(()=>{const Ae=()=>{m(window.innerWidth<768)};return window.addEventListener("resize",Ae),()=>window.removeEventListener("resize",Ae)},[]);const I=z.useRef(),A=z.useRef();A!=null&&A.current&&((_e=A==null?void 0:A.current)==null?void 0:_e.scrollWidth)>((Re=A==null?void 0:A.current)==null?void 0:Re.clientWidth);const F=window.location.origin,R=e.path&&e.path.includes("http")?new URL(e.path):{origin:"",pathname:""},U=window.location.pathname.split("/")[1],H=R.pathname.split("/")[1],ne=t.ssr||!F.includes("local")&&F!==R.origin||H!==U,Z=r||n===0?"div":t.item.redirectUrl?Pd.Link:ne?"a":Pd.Link,ce=e.redirectUrl||(e.path&&e.path.includes("http")?new URL(e.path).pathname:e.path)||"#",S=n+1,re=r&&a&&n>0,ie=()=>{t.isDrop||c(!0)},Pe=()=>{c(!1)},Ke="/global-menu-config/api/v1/menu-items/user/set-favorite",$e=Ae=>{Ae.stopPropagation()},tt=F!==R.origin||t.item.redirectUrl?"_blank":"_self",nt=Object.entries(t.brandColors||{}).reduce((Ae,[et,ye])=>(ye&&(Ae[`--${et}`]=ye),Ae),{});return de.jsxs("div",{ref:I,className:o("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s",...nt},onMouseOver:ie,onMouseOut:Pe,onDragStart:Ae=>{n>1&&Ae.preventDefault(),c(!1)},onDragEnd:()=>{console.log("drag end 1223"),c(!1)},children:[de.jsxs(Z,{target:tt,to:ce,draggable:"true",className:o("menu-item__link"),style:{width:"100%",transition:"all 0.3s"},onClick:Ae=>{var et,ye;if(!(Z==="a"&&tt==="_blank")){if(r&&y){E(!T),Ae.preventDefault();return}!r&&e.path&&((et=t.onClickItem)==null||et.call(t,e),$e(Ae)),ce!=="#"&&((ye=t.onClick)==null||ye.call(t,e),$e(Ae))}},onDragStart:Ae=>{console.log("onDragStart component",Ae.target)},onDragEnd:()=>{console.log("onDragEnd menu item"),c(!1)},children:[de.jsx(K4,{cls:o,item:e}),de.jsx("span",{className:o("menu-item__label"),ref:A,children:e.name}),de.jsx(Z4,{menuLevel:n,hasChildren:r,isHovered:a,isFavorite:f,onClick:Ae=>{const et={menuConfigId:e.id,isFavorite:Ae},ye=t.baseUrl+Ke;As.post(ye,et).then(ue=>{var De;p(Ae),Qv(Dr("components.menu.pushSuccess.menuSuccess",{defaultValue:"Set favorite menu item successful"})),(De=t.onSetFavoriteSuccess)==null||De.call(t,t.item.id,Ae)}).catch(ue=>{var De,je;console.log(" MenuItem.tsx ~ error:",ue),Gd(((je=(De=ue.response)==null?void 0:De.data)==null?void 0:je.errorMessage)||ue.message||Dr("components.menu.pushError.menuError",{defaultValue:"Have error when set favorite menu item"}))})}}),r&&de.jsx("div",{className:o("menu-item__icon-arrow__wrapper"),children:de.jsx(Y4,{className:o("menu-item__icon-arrow__icon")})})]}),re&&de.jsx(G4,{parentRef:I,onlyChild:S<2,dropdownLevel:n,renderChildren:({maxHeight:Ae})=>{var et;return de.jsx(GD.div,{className:o("menu-item__dropdown dropdown-favorite ? 'menu-item__dropdown--open' : 'menu-item__dropdown--close'}",`level-${S}`),style:ab({maxHeight:Ae,overflowY:"auto",paddingRight:3},Ae!=="auto"&&!!S),children:(et=e.children)==null?void 0:et.map(ye=>z.createElement(t_,{...t,key:ye.id,item:ye,level:S,onClickItem:t.onClickItem}))})}})]})}function K4({item:t,cls:e}){return de.jsx("div",{className:e("menu-item__icon"),children:de.jsx(X4,{item:t})})}function Z4(t){const[e,n]=z.useState(window.innerWidth<768);z.useEffect(()=>{const o=()=>{n(window.innerWidth<768)};return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[]);const r={marginRight:t.hasChildren?10:0,fontSize:22,fill:mr.warning,minWidth:16},i=e||t.isHovered;if(t.menuLevel!==0)return de.jsxs(de.Fragment,{children:[i&&!t.isFavorite&&de.jsx(aa.Tooltip,{title:"Add to favorites",children:de.jsx(qD,{style:r,onClick:o=>{var a;o.preventDefault(),o.stopPropagation(),(a=t.onClick)==null||a.call(t,!0)}})}),t.isFavorite&&de.jsx(aa.Tooltip,{title:"Remove from favorites",children:de.jsx(XD,{style:r,onClick:o=>{var a;o.preventDefault(),o.stopPropagation(),(a=t.onClick)==null||a.call(t,!1)}})})]})}const J4='.flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{transition:all .3s;padding:0 4px}.favorite-menu{display:flex;height:56px;border-right:1px solid #ddd;background-color:#fafafa;transition:height .3s cubic-bezier(.4,0,.2,1),background .2s,border .2s;width:100%}.favorite-menu.favorite-menu--empty{height:0!important;overflow:hidden;border-right:none;background:transparent}.scrollbar-hidden::-webkit-scrollbar{width:2px;background:transparent}.favorite-menu__wrap-btn-logout,.favorite-menu__btn-logout{margin:40px 0}.favorite-menu__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.favorite-menu__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px;justify-content:center;width:100%}.favorite-menu__toggle-btn{margin-top:-6px;color:#85858a}.favorite-menu__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;background-color:initial}.favorite-menu__logout-btn:hover{background-color:#919eab14}.favorite-menu__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;position:relative;width:100%}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9,.menu-item__link.active.level-10{background-color:inherit;color:inherit}.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-10:hover{background-color:#919eab14}.menu-item__link.menu-item__link.level-0{padding:0;background-color:#919eab14;transition:all .15s}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center}.menu-item__icon.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929;opacity:1}.menu-item__label.level-1{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.level-0,.menu-item__label.level-1{font-size:.875rem;transition-delay:.15s}.menu-item__label.level-0{margin-left:8px}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.open{transform:rotate(0)!important}.menu-item__dropdown{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:210px;max-width:210px;padding:4px;z-index:1200}.menu-item__dropdown.dropdown-favorite{width:auto;min-width:180px;max-width:350px}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown .menu-item__link{height:40px}.menu-item__dropdown .menu-item__link.level-1{height:48px}.menu-item__dropdown.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.favorite-menu__menu .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.treeFavorited{display:flex;align-items:center;margin:0 -5px}.treeFavorited li{margin:0 5px}.item.hover-on:before{content:"";position:absolute;top:0;left:0;height:100%;width:2px;background-color:var(--primary300)}.simplebar-placeholder{width:auto!important}@media (min-width: 768px){.menu-item__label.level-0,.menu-item__link{color:#85858a}.menu-item__icon-arrow__wrapper.level-0{display:none}}@media (max-width: 768px){.menu-item__label.active{color:inherit}.menu-item__label.level-0{margin-left:8px;font-weight:500;font-size:.951rem}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center;color:#85858a}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%;color:#292929!important}.menu-item__link.expanded.level-0{padding:.5rem 10px}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-0,.menu-item__link.active.level-1,.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9{background-color:inherit;color:inherit}.menu-item__link.active.level-1:hover,.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-0:hover{background-color:#919eab14}.menu-item__link.level-0{transition:padding .2s}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.expanded{right:4px}.menu-item__icon-arrow__icon{transition:transform .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown.expanded.menu-item__dropdown--close{margin-top:0;transition:margin-top .3s}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown.expanded{overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}}';var uc={};/**
|
|
32
|
+
* @license React
|
|
33
|
+
* react-dom-server-legacy.browser.production.min.js
|
|
34
|
+
*
|
|
35
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
36
|
+
*
|
|
37
|
+
* This source code is licensed under the MIT license found in the
|
|
38
|
+
* LICENSE file in the root directory of this source tree.
|
|
39
|
+
*/var _1;function Q4(){if(_1)return uc;_1=1;var t=z;function e(k){for(var N="https://reactjs.org/docs/error-decoder.html?invariant="+k,q=1;q<arguments.length;q++)N+="&args[]="+encodeURIComponent(arguments[q]);return"Minified React error #"+k+"; visit "+N+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=Object.prototype.hasOwnProperty,r=/^[: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][: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]*$/,i={},o={};function a(k){return n.call(o,k)?!0:n.call(i,k)?!1:r.test(k)?o[k]=!0:(i[k]=!0,!1)}function c(k,N,q,ee,Ee,ve,Me){this.acceptsBooleans=N===2||N===3||N===4,this.attributeName=ee,this.attributeNamespace=Ee,this.mustUseProperty=q,this.propertyName=k,this.type=N,this.sanitizeURL=ve,this.removeEmptyString=Me}var f={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(k){f[k]=new c(k,0,!1,k,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(k){var N=k[0];f[N]=new c(N,1,!1,k[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(k){f[k]=new c(k,2,!1,k.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(k){f[k]=new c(k,2,!1,k,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(k){f[k]=new c(k,3,!1,k.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(k){f[k]=new c(k,3,!0,k,null,!1,!1)}),["capture","download"].forEach(function(k){f[k]=new c(k,4,!1,k,null,!1,!1)}),["cols","rows","size","span"].forEach(function(k){f[k]=new c(k,6,!1,k,null,!1,!1)}),["rowSpan","start"].forEach(function(k){f[k]=new c(k,5,!1,k.toLowerCase(),null,!1,!1)});var p=/[\-:]([a-z])/g;function y(k){return k[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(k){var N=k.replace(p,y);f[N]=new c(N,1,!1,k,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(k){var N=k.replace(p,y);f[N]=new c(N,1,!1,k,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(k){var N=k.replace(p,y);f[N]=new c(N,1,!1,k,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(k){f[k]=new c(k,1,!1,k.toLowerCase(),null,!1,!1)}),f.xlinkHref=new c("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(k){f[k]=new c(k,1,!1,k.toLowerCase(),null,!0,!0)});var m={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},T=["Webkit","ms","Moz","O"];Object.keys(m).forEach(function(k){T.forEach(function(N){N=N+k.charAt(0).toUpperCase()+k.substring(1),m[N]=m[k]})});var E=/["'&<>]/;function I(k){if(typeof k=="boolean"||typeof k=="number")return""+k;k=""+k;var N=E.exec(k);if(N){var q="",ee,Ee=0;for(ee=N.index;ee<k.length;ee++){switch(k.charCodeAt(ee)){case 34:N=""";break;case 38:N="&";break;case 39:N="'";break;case 60:N="<";break;case 62:N=">";break;default:continue}Ee!==ee&&(q+=k.substring(Ee,ee)),Ee=ee+1,q+=N}k=Ee!==ee?q+k.substring(Ee,ee):q}return k}var A=/([A-Z])/g,F=/^ms-/,R=Array.isArray;function U(k,N){return{insertionMode:k,selectedValue:N}}function H(k,N,q){switch(N){case"select":return U(1,q.value!=null?q.value:q.defaultValue);case"svg":return U(2,null);case"math":return U(3,null);case"foreignObject":return U(1,null);case"table":return U(4,null);case"thead":case"tbody":case"tfoot":return U(5,null);case"colgroup":return U(7,null);case"tr":return U(6,null)}return 4<=k.insertionMode||k.insertionMode===0?U(1,null):k}var ne=new Map;function Z(k,N,q){if(typeof q!="object")throw Error(e(62));N=!0;for(var ee in q)if(n.call(q,ee)){var Ee=q[ee];if(Ee!=null&&typeof Ee!="boolean"&&Ee!==""){if(ee.indexOf("--")===0){var ve=I(ee);Ee=I((""+Ee).trim())}else{ve=ee;var Me=ne.get(ve);Me!==void 0||(Me=I(ve.replace(A,"-$1").toLowerCase().replace(F,"-ms-")),ne.set(ve,Me)),ve=Me,Ee=typeof Ee=="number"?Ee===0||n.call(m,ee)?""+Ee:Ee+"px":I((""+Ee).trim())}N?(N=!1,k.push(' style="',ve,":",Ee)):k.push(";",ve,":",Ee)}}N||k.push('"')}function ce(k,N,q,ee){switch(q){case"style":Z(k,N,ee);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<q.length)||q[0]!=="o"&&q[0]!=="O"||q[1]!=="n"&&q[1]!=="N"){if(N=f.hasOwnProperty(q)?f[q]:null,N!==null){switch(typeof ee){case"function":case"symbol":return;case"boolean":if(!N.acceptsBooleans)return}switch(q=N.attributeName,N.type){case 3:ee&&k.push(" ",q,'=""');break;case 4:ee===!0?k.push(" ",q,'=""'):ee!==!1&&k.push(" ",q,'="',I(ee),'"');break;case 5:isNaN(ee)||k.push(" ",q,'="',I(ee),'"');break;case 6:!isNaN(ee)&&1<=ee&&k.push(" ",q,'="',I(ee),'"');break;default:N.sanitizeURL&&(ee=""+ee),k.push(" ",q,'="',I(ee),'"')}}else if(a(q)){switch(typeof ee){case"function":case"symbol":return;case"boolean":if(N=q.toLowerCase().slice(0,5),N!=="data-"&&N!=="aria-")return}k.push(" ",q,'="',I(ee),'"')}}}function S(k,N,q){if(N!=null){if(q!=null)throw Error(e(60));if(typeof N!="object"||!("__html"in N))throw Error(e(61));N=N.__html,N!=null&&k.push(""+N)}}function re(k){var N="";return t.Children.forEach(k,function(q){q!=null&&(N+=q)}),N}function ie(k,N,q,ee){k.push($e(q));var Ee=q=null,ve;for(ve in N)if(n.call(N,ve)){var Me=N[ve];if(Me!=null)switch(ve){case"children":q=Me;break;case"dangerouslySetInnerHTML":Ee=Me;break;default:ce(k,ee,ve,Me)}}return k.push(">"),S(k,Ee,q),typeof q=="string"?(k.push(I(q)),null):q}var Pe=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Ke=new Map;function $e(k){var N=Ke.get(k);if(N===void 0){if(!Pe.test(k))throw Error(e(65,k));N="<"+k,Ke.set(k,N)}return N}function tt(k,N,q,ee,Ee){switch(N){case"select":k.push($e("select"));var ve=null,Me=null;for(pt in q)if(n.call(q,pt)){var Ze=q[pt];if(Ze!=null)switch(pt){case"children":ve=Ze;break;case"dangerouslySetInnerHTML":Me=Ze;break;case"defaultValue":case"value":break;default:ce(k,ee,pt,Ze)}}return k.push(">"),S(k,Me,ve),ve;case"option":Me=Ee.selectedValue,k.push($e("option"));var mt=Ze=null,vt=null,pt=null;for(ve in q)if(n.call(q,ve)){var Ft=q[ve];if(Ft!=null)switch(ve){case"children":Ze=Ft;break;case"selected":vt=Ft;break;case"dangerouslySetInnerHTML":pt=Ft;break;case"value":mt=Ft;default:ce(k,ee,ve,Ft)}}if(Me!=null)if(q=mt!==null?""+mt:re(Ze),R(Me)){for(ee=0;ee<Me.length;ee++)if(""+Me[ee]===q){k.push(' selected=""');break}}else""+Me===q&&k.push(' selected=""');else vt&&k.push(' selected=""');return k.push(">"),S(k,pt,Ze),Ze;case"textarea":k.push($e("textarea")),pt=Me=ve=null;for(Ze in q)if(n.call(q,Ze)&&(mt=q[Ze],mt!=null))switch(Ze){case"children":pt=mt;break;case"value":ve=mt;break;case"defaultValue":Me=mt;break;case"dangerouslySetInnerHTML":throw Error(e(91));default:ce(k,ee,Ze,mt)}if(ve===null&&Me!==null&&(ve=Me),k.push(">"),pt!=null){if(ve!=null)throw Error(e(92));if(R(pt)&&1<pt.length)throw Error(e(93));ve=""+pt}return typeof ve=="string"&&ve[0]===`
|
|
40
|
+
`&&k.push(`
|
|
41
|
+
`),ve!==null&&k.push(I(""+ve)),null;case"input":k.push($e("input")),mt=pt=Ze=ve=null;for(Me in q)if(n.call(q,Me)&&(vt=q[Me],vt!=null))switch(Me){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,"input"));case"defaultChecked":mt=vt;break;case"defaultValue":Ze=vt;break;case"checked":pt=vt;break;case"value":ve=vt;break;default:ce(k,ee,Me,vt)}return pt!==null?ce(k,ee,"checked",pt):mt!==null&&ce(k,ee,"checked",mt),ve!==null?ce(k,ee,"value",ve):Ze!==null&&ce(k,ee,"value",Ze),k.push("/>"),null;case"menuitem":k.push($e("menuitem"));for(var Bn in q)if(n.call(q,Bn)&&(ve=q[Bn],ve!=null))switch(Bn){case"children":case"dangerouslySetInnerHTML":throw Error(e(400));default:ce(k,ee,Bn,ve)}return k.push(">"),null;case"title":k.push($e("title")),ve=null;for(Ft in q)if(n.call(q,Ft)&&(Me=q[Ft],Me!=null))switch(Ft){case"children":ve=Me;break;case"dangerouslySetInnerHTML":throw Error(e(434));default:ce(k,ee,Ft,Me)}return k.push(">"),ve;case"listing":case"pre":k.push($e(N)),Me=ve=null;for(mt in q)if(n.call(q,mt)&&(Ze=q[mt],Ze!=null))switch(mt){case"children":ve=Ze;break;case"dangerouslySetInnerHTML":Me=Ze;break;default:ce(k,ee,mt,Ze)}if(k.push(">"),Me!=null){if(ve!=null)throw Error(e(60));if(typeof Me!="object"||!("__html"in Me))throw Error(e(61));q=Me.__html,q!=null&&(typeof q=="string"&&0<q.length&&q[0]===`
|
|
42
|
+
`?k.push(`
|
|
43
|
+
`,q):k.push(""+q))}return typeof ve=="string"&&ve[0]===`
|
|
44
|
+
`&&k.push(`
|
|
45
|
+
`),ve;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":k.push($e(N));for(var zn in q)if(n.call(q,zn)&&(ve=q[zn],ve!=null))switch(zn){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,N));default:ce(k,ee,zn,ve)}return k.push("/>"),null;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 ie(k,q,N,ee);case"html":return Ee.insertionMode===0&&k.push("<!DOCTYPE html>"),ie(k,q,N,ee);default:if(N.indexOf("-")===-1&&typeof q.is!="string")return ie(k,q,N,ee);k.push($e(N)),Me=ve=null;for(vt in q)if(n.call(q,vt)&&(Ze=q[vt],Ze!=null))switch(vt){case"children":ve=Ze;break;case"dangerouslySetInnerHTML":Me=Ze;break;case"style":Z(k,ee,Ze);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:a(vt)&&typeof Ze!="function"&&typeof Ze!="symbol"&&k.push(" ",vt,'="',I(Ze),'"')}return k.push(">"),S(k,Me,ve),ve}}function nt(k,N,q){if(k.push('<!--$?--><template id="'),q===null)throw Error(e(395));return k.push(q),k.push('"></template>')}function ge(k,N,q,ee){switch(q.insertionMode){case 0:case 1:return k.push('<div hidden id="'),k.push(N.segmentPrefix),N=ee.toString(16),k.push(N),k.push('">');case 2:return k.push('<svg aria-hidden="true" style="display:none" id="'),k.push(N.segmentPrefix),N=ee.toString(16),k.push(N),k.push('">');case 3:return k.push('<math aria-hidden="true" style="display:none" id="'),k.push(N.segmentPrefix),N=ee.toString(16),k.push(N),k.push('">');case 4:return k.push('<table hidden id="'),k.push(N.segmentPrefix),N=ee.toString(16),k.push(N),k.push('">');case 5:return k.push('<table hidden><tbody id="'),k.push(N.segmentPrefix),N=ee.toString(16),k.push(N),k.push('">');case 6:return k.push('<table hidden><tr id="'),k.push(N.segmentPrefix),N=ee.toString(16),k.push(N),k.push('">');case 7:return k.push('<table hidden><colgroup id="'),k.push(N.segmentPrefix),N=ee.toString(16),k.push(N),k.push('">');default:throw Error(e(397))}}function _e(k,N){switch(N.insertionMode){case 0:case 1:return k.push("</div>");case 2:return k.push("</svg>");case 3:return k.push("</math>");case 4:return k.push("</table>");case 5:return k.push("</tbody></table>");case 6:return k.push("</tr></table>");case 7:return k.push("</colgroup></table>");default:throw Error(e(397))}}var Re=/[<\u2028\u2029]/g;function Ae(k){return JSON.stringify(k).replace(Re,function(N){switch(N){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function et(k,N){return N=N===void 0?"":N,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:N+"P:",segmentPrefix:N+"S:",boundaryPrefix:N+"B:",idPrefix:N,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:k}}function ye(k,N,q,ee){return q.generateStaticMarkup?(k.push(I(N)),!1):(N===""?k=ee:(ee&&k.push("<!-- -->"),k.push(I(N)),k=!0),k)}var ue=Object.assign,De=Symbol.for("react.element"),je=Symbol.for("react.portal"),Ie=Symbol.for("react.fragment"),Be=Symbol.for("react.strict_mode"),Ue=Symbol.for("react.profiler"),it=Symbol.for("react.provider"),rt=Symbol.for("react.context"),st=Symbol.for("react.forward_ref"),Qe=Symbol.for("react.suspense"),ft=Symbol.for("react.suspense_list"),Xe=Symbol.for("react.memo"),It=Symbol.for("react.lazy"),Mt=Symbol.for("react.scope"),Vn=Symbol.for("react.debug_trace_mode"),vr=Symbol.for("react.legacy_hidden"),Hn=Symbol.for("react.default_value"),Sn=Symbol.iterator;function Vi(k){if(k==null)return null;if(typeof k=="function")return k.displayName||k.name||null;if(typeof k=="string")return k;switch(k){case Ie:return"Fragment";case je:return"Portal";case Ue:return"Profiler";case Be:return"StrictMode";case Qe:return"Suspense";case ft:return"SuspenseList"}if(typeof k=="object")switch(k.$$typeof){case rt:return(k.displayName||"Context")+".Consumer";case it:return(k._context.displayName||"Context")+".Provider";case st:var N=k.render;return k=k.displayName,k||(k=N.displayName||N.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case Xe:return N=k.displayName||null,N!==null?N:Vi(k.type)||"Memo";case It:N=k._payload,k=k._init;try{return Vi(k(N))}catch{}}return null}var Pr={};function Jn(k,N){if(k=k.contextTypes,!k)return Pr;var q={},ee;for(ee in k)q[ee]=N[ee];return q}var sn=null;function fn(k,N){if(k!==N){k.context._currentValue2=k.parentValue,k=k.parent;var q=N.parent;if(k===null){if(q!==null)throw Error(e(401))}else{if(q===null)throw Error(e(401));fn(k,q)}N.context._currentValue2=N.value}}function dn(k){k.context._currentValue2=k.parentValue,k=k.parent,k!==null&&dn(k)}function ht(k){var N=k.parent;N!==null&&ht(N),k.context._currentValue2=k.value}function Dn(k,N){if(k.context._currentValue2=k.parentValue,k=k.parent,k===null)throw Error(e(402));k.depth===N.depth?fn(k,N):Dn(k,N)}function ai(k,N){var q=N.parent;if(q===null)throw Error(e(402));k.depth===q.depth?fn(k,q):ai(k,q),N.context._currentValue2=N.value}function on(k){var N=sn;N!==k&&(N===null?ht(k):k===null?dn(N):N.depth===k.depth?fn(N,k):N.depth>k.depth?Dn(N,k):ai(N,k),sn=k)}var Hi={isMounted:function(){return!1},enqueueSetState:function(k,N){k=k._reactInternals,k.queue!==null&&k.queue.push(N)},enqueueReplaceState:function(k,N){k=k._reactInternals,k.replace=!0,k.queue=[N]},enqueueForceUpdate:function(){}};function Ui(k,N,q,ee){var Ee=k.state!==void 0?k.state:null;k.updater=Hi,k.props=q,k.state=Ee;var ve={queue:[],replace:!1};k._reactInternals=ve;var Me=N.contextType;if(k.context=typeof Me=="object"&&Me!==null?Me._currentValue2:ee,Me=N.getDerivedStateFromProps,typeof Me=="function"&&(Me=Me(q,Ee),Ee=Me==null?Ee:ue({},Ee,Me),k.state=Ee),typeof N.getDerivedStateFromProps!="function"&&typeof k.getSnapshotBeforeUpdate!="function"&&(typeof k.UNSAFE_componentWillMount=="function"||typeof k.componentWillMount=="function"))if(N=k.state,typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount(),N!==k.state&&Hi.enqueueReplaceState(k,k.state,null),ve.queue!==null&&0<ve.queue.length)if(N=ve.queue,Me=ve.replace,ve.queue=null,ve.replace=!1,Me&&N.length===1)k.state=N[0];else{for(ve=Me?N[0]:k.state,Ee=!0,Me=Me?1:0;Me<N.length;Me++){var Ze=N[Me];Ze=typeof Ze=="function"?Ze.call(k,ve,q,ee):Ze,Ze!=null&&(Ee?(Ee=!1,ve=ue({},ve,Ze)):ue(ve,Ze))}k.state=ve}else ve.queue=null}var Wi={id:1,overflow:""};function Or(k,N,q){var ee=k.id;k=k.overflow;var Ee=32-Nn(ee)-1;ee&=~(1<<Ee),q+=1;var ve=32-Nn(N)+Ee;if(30<ve){var Me=Ee-Ee%5;return ve=(ee&(1<<Me)-1).toString(32),ee>>=Me,Ee-=Me,{id:1<<32-Nn(N)+Ee|q<<Ee|ee,overflow:ve+k}}return{id:1<<ve|q<<Ee|ee,overflow:k}}var Nn=Math.clz32?Math.clz32:qr,Rr=Math.log,yr=Math.LN2;function qr(k){return k>>>=0,k===0?32:31-(Rr(k)/yr|0)|0}function Xr(k,N){return k===N&&(k!==0||1/k===1/N)||k!==k&&N!==N}var Ao=typeof Object.is=="function"?Object.is:Xr,Un=null,Kr=null,Qn=null,Wt=null,li=!1,zi=!1,_n=0,hn=null,ui=0;function ci(){if(Un===null)throw Error(e(321));return Un}function Tn(){if(0<ui)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function ao(){return Wt===null?Qn===null?(li=!1,Qn=Wt=Tn()):(li=!0,Wt=Qn):Wt.next===null?(li=!1,Wt=Wt.next=Tn()):(li=!0,Wt=Wt.next),Wt}function br(){Kr=Un=null,zi=!1,Qn=null,ui=0,Wt=hn=null}function fi(k,N){return typeof N=="function"?N(k):N}function an(k,N,q){if(Un=ci(),Wt=ao(),li){var ee=Wt.queue;if(N=ee.dispatch,hn!==null&&(q=hn.get(ee),q!==void 0)){hn.delete(ee),ee=Wt.memoizedState;do ee=k(ee,q.action),q=q.next;while(q!==null);return Wt.memoizedState=ee,[ee,N]}return[Wt.memoizedState,N]}return k=k===fi?typeof N=="function"?N():N:q!==void 0?q(N):N,Wt.memoizedState=k,k=Wt.queue={last:null,dispatch:null},k=k.dispatch=Ls.bind(null,Un,k),[Wt.memoizedState,k]}function _i(k,N){if(Un=ci(),Wt=ao(),N=N===void 0?null:N,Wt!==null){var q=Wt.memoizedState;if(q!==null&&N!==null){var ee=q[1];e:if(ee===null)ee=!1;else{for(var Ee=0;Ee<ee.length&&Ee<N.length;Ee++)if(!Ao(N[Ee],ee[Ee])){ee=!1;break e}ee=!0}if(ee)return q[0]}}return k=k(),Wt.memoizedState=[k,N],k}function Ls(k,N,q){if(25<=ui)throw Error(e(301));if(k===Un)if(zi=!0,k={action:q,next:null},hn===null&&(hn=new Map),q=hn.get(N),q===void 0)hn.set(N,k);else{for(N=q;N.next!==null;)N=N.next;N.next=k}}function Fs(){throw Error(e(394))}function Zr(){}var lo={readContext:function(k){return k._currentValue2},useContext:function(k){return ci(),k._currentValue2},useMemo:_i,useReducer:an,useRef:function(k){Un=ci(),Wt=ao();var N=Wt.memoizedState;return N===null?(k={current:k},Wt.memoizedState=k):N},useState:function(k){return an(fi,k)},useInsertionEffect:Zr,useLayoutEffect:function(){},useCallback:function(k,N){return _i(function(){return k},N)},useImperativeHandle:Zr,useEffect:Zr,useDebugValue:Zr,useDeferredValue:function(k){return ci(),k},useTransition:function(){return ci(),[!1,Fs]},useId:function(){var k=Kr.treeContext,N=k.overflow;k=k.id,k=(k&~(1<<32-Nn(k)-1)).toString(32)+N;var q=uo;if(q===null)throw Error(e(404));return N=_n++,k=":"+q.idPrefix+"R"+k,0<N&&(k+="H"+N.toString(32)),k+":"},useMutableSource:function(k,N){return ci(),N(k._source)},useSyncExternalStore:function(k,N,q){if(q===void 0)throw Error(e(407));return q()}},uo=null,Pi=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function er(k){return console.error(k),null}function Ir(){}function Ar(k,N,q,ee,Ee,ve,Me,Ze,mt){var vt=[],pt=new Set;return N={destination:null,responseState:N,progressiveChunkSize:ee===void 0?12800:ee,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:pt,pingedTasks:vt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Ee===void 0?er:Ee,onAllReady:Ir,onShellReady:Me===void 0?Ir:Me,onShellError:Ir,onFatalError:Ir},q=Jr(N,0,null,q,!1,!1),q.parentFlushed=!0,k=di(N,k,null,q,pt,Pr,null,Wi),vt.push(k),N}function di(k,N,q,ee,Ee,ve,Me,Ze){k.allPendingTasks++,q===null?k.pendingRootTasks++:q.pendingTasks++;var mt={node:N,ping:function(){var vt=k.pingedTasks;vt.push(mt),vt.length===1&&Wn(k)},blockedBoundary:q,blockedSegment:ee,abortSet:Ee,legacyContext:ve,context:Me,treeContext:Ze};return Ee.add(mt),mt}function Jr(k,N,q,ee,Ee,ve){return{status:0,id:-1,index:N,parentFlushed:!1,chunks:[],children:[],formatContext:ee,boundary:q,lastPushedText:Ee,textEmbedded:ve}}function wr(k,N){if(k=k.onError(N),k!=null&&typeof k!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof k+'" instead');return k}function Mr(k,N){var q=k.onShellError;q(N),q=k.onFatalError,q(N),k.destination!==null?(k.status=2,k.destination.destroy(N)):(k.status=1,k.fatalError=N)}function tr(k,N,q,ee,Ee){for(Un={},Kr=N,_n=0,k=q(ee,Ee);zi;)zi=!1,_n=0,ui+=1,Wt=null,k=q(ee,Ee);return br(),k}function Yi(k,N,q,ee){var Ee=q.render(),ve=ee.childContextTypes;if(ve!=null){var Me=N.legacyContext;if(typeof q.getChildContext!="function")ee=Me;else{q=q.getChildContext();for(var Ze in q)if(!(Ze in ve))throw Error(e(108,Vi(ee)||"Unknown",Ze));ee=ue({},Me,q)}N.legacyContext=ee,yn(k,N,Ee),N.legacyContext=Me}else yn(k,N,Ee)}function Oi(k,N){if(k&&k.defaultProps){N=ue({},N),k=k.defaultProps;for(var q in k)N[q]===void 0&&(N[q]=k[q]);return N}return N}function ar(k,N,q,ee,Ee){if(typeof q=="function")if(q.prototype&&q.prototype.isReactComponent){Ee=Jn(q,N.legacyContext);var ve=q.contextType;ve=new q(ee,typeof ve=="object"&&ve!==null?ve._currentValue2:Ee),Ui(ve,q,ee,Ee),Yi(k,N,ve,q)}else{ve=Jn(q,N.legacyContext),Ee=tr(k,N,q,ee,ve);var Me=_n!==0;if(typeof Ee=="object"&&Ee!==null&&typeof Ee.render=="function"&&Ee.$$typeof===void 0)Ui(Ee,q,ee,ve),Yi(k,N,Ee,q);else if(Me){ee=N.treeContext,N.treeContext=Or(ee,1,0);try{yn(k,N,Ee)}finally{N.treeContext=ee}}else yn(k,N,Ee)}else if(typeof q=="string"){switch(Ee=N.blockedSegment,ve=tt(Ee.chunks,q,ee,k.responseState,Ee.formatContext),Ee.lastPushedText=!1,Me=Ee.formatContext,Ee.formatContext=H(Me,q,ee),Fr(k,N,ve),Ee.formatContext=Me,q){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:Ee.chunks.push("</",q,">")}Ee.lastPushedText=!1}else{switch(q){case vr:case Vn:case Be:case Ue:case Ie:yn(k,N,ee.children);return;case ft:yn(k,N,ee.children);return;case Mt:throw Error(e(343));case Qe:e:{q=N.blockedBoundary,Ee=N.blockedSegment,ve=ee.fallback,ee=ee.children,Me=new Set;var Ze={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Me,errorDigest:null},mt=Jr(k,Ee.chunks.length,Ze,Ee.formatContext,!1,!1);Ee.children.push(mt),Ee.lastPushedText=!1;var vt=Jr(k,0,null,Ee.formatContext,!1,!1);vt.parentFlushed=!0,N.blockedBoundary=Ze,N.blockedSegment=vt;try{if(Fr(k,N,ee),k.responseState.generateStaticMarkup||vt.lastPushedText&&vt.textEmbedded&&vt.chunks.push("<!-- -->"),vt.status=1,xr(Ze,vt),Ze.pendingTasks===0)break e}catch(pt){vt.status=4,Ze.forceClientRender=!0,Ze.errorDigest=wr(k,pt)}finally{N.blockedBoundary=q,N.blockedSegment=Ee}N=di(k,ve,q,mt,Me,N.legacyContext,N.context,N.treeContext),k.pingedTasks.push(N)}return}if(typeof q=="object"&&q!==null)switch(q.$$typeof){case st:if(ee=tr(k,N,q.render,ee,Ee),_n!==0){q=N.treeContext,N.treeContext=Or(q,1,0);try{yn(k,N,ee)}finally{N.treeContext=q}}else yn(k,N,ee);return;case Xe:q=q.type,ee=Oi(q,ee),ar(k,N,q,ee,Ee);return;case it:if(Ee=ee.children,q=q._context,ee=ee.value,ve=q._currentValue2,q._currentValue2=ee,Me=sn,sn=ee={parent:Me,depth:Me===null?0:Me.depth+1,context:q,parentValue:ve,value:ee},N.context=ee,yn(k,N,Ee),k=sn,k===null)throw Error(e(403));ee=k.parentValue,k.context._currentValue2=ee===Hn?k.context._defaultValue:ee,k=sn=k.parent,N.context=k;return;case rt:ee=ee.children,ee=ee(q._currentValue2),yn(k,N,ee);return;case It:Ee=q._init,q=Ee(q._payload),ee=Oi(q,ee),ar(k,N,q,ee,void 0);return}throw Error(e(130,q==null?q:typeof q,""))}}function yn(k,N,q){if(N.node=q,typeof q=="object"&&q!==null){switch(q.$$typeof){case De:ar(k,N,q.type,q.props,q.ref);return;case je:throw Error(e(257));case It:var ee=q._init;q=ee(q._payload),yn(k,N,q);return}if(R(q)){Lr(k,N,q);return}if(q===null||typeof q!="object"?ee=null:(ee=Sn&&q[Sn]||q["@@iterator"],ee=typeof ee=="function"?ee:null),ee&&(ee=ee.call(q))){if(q=ee.next(),!q.done){var Ee=[];do Ee.push(q.value),q=ee.next();while(!q.done);Lr(k,N,Ee)}return}throw k=Object.prototype.toString.call(q),Error(e(31,k==="[object Object]"?"object with keys {"+Object.keys(q).join(", ")+"}":k))}typeof q=="string"?(ee=N.blockedSegment,ee.lastPushedText=ye(N.blockedSegment.chunks,q,k.responseState,ee.lastPushedText)):typeof q=="number"&&(ee=N.blockedSegment,ee.lastPushedText=ye(N.blockedSegment.chunks,""+q,k.responseState,ee.lastPushedText))}function Lr(k,N,q){for(var ee=q.length,Ee=0;Ee<ee;Ee++){var ve=N.treeContext;N.treeContext=Or(ve,ee,Ee);try{Fr(k,N,q[Ee])}finally{N.treeContext=ve}}}function Fr(k,N,q){var ee=N.blockedSegment.formatContext,Ee=N.legacyContext,ve=N.context;try{return yn(k,N,q)}catch(mt){if(br(),typeof mt=="object"&&mt!==null&&typeof mt.then=="function"){q=mt;var Me=N.blockedSegment,Ze=Jr(k,Me.chunks.length,null,Me.formatContext,Me.lastPushedText,!0);Me.children.push(Ze),Me.lastPushedText=!1,k=di(k,N.node,N.blockedBoundary,Ze,N.abortSet,N.legacyContext,N.context,N.treeContext).ping,q.then(k,k),N.blockedSegment.formatContext=ee,N.legacyContext=Ee,N.context=ve,on(ve)}else throw N.blockedSegment.formatContext=ee,N.legacyContext=Ee,N.context=ve,on(ve),mt}}function hi(k){var N=k.blockedBoundary;k=k.blockedSegment,k.status=3,Qr(this,N,k)}function pi(k,N,q){var ee=k.blockedBoundary;k.blockedSegment.status=3,ee===null?(N.allPendingTasks--,N.status!==2&&(N.status=2,N.destination!==null&&N.destination.push(null))):(ee.pendingTasks--,ee.forceClientRender||(ee.forceClientRender=!0,k=q===void 0?Error(e(432)):q,ee.errorDigest=N.onError(k),ee.parentFlushed&&N.clientRenderedBoundaries.push(ee)),ee.fallbackAbortableTasks.forEach(function(Ee){return pi(Ee,N,q)}),ee.fallbackAbortableTasks.clear(),N.allPendingTasks--,N.allPendingTasks===0&&(ee=N.onAllReady,ee()))}function xr(k,N){if(N.chunks.length===0&&N.children.length===1&&N.children[0].boundary===null){var q=N.children[0];q.id=N.id,q.parentFlushed=!0,q.status===1&&xr(k,q)}else k.completedSegments.push(N)}function Qr(k,N,q){if(N===null){if(q.parentFlushed){if(k.completedRootSegment!==null)throw Error(e(389));k.completedRootSegment=q}k.pendingRootTasks--,k.pendingRootTasks===0&&(k.onShellError=Ir,N=k.onShellReady,N())}else N.pendingTasks--,N.forceClientRender||(N.pendingTasks===0?(q.parentFlushed&&q.status===1&&xr(N,q),N.parentFlushed&&k.completedBoundaries.push(N),N.fallbackAbortableTasks.forEach(hi,k),N.fallbackAbortableTasks.clear()):q.parentFlushed&&q.status===1&&(xr(N,q),N.completedSegments.length===1&&N.parentFlushed&&k.partialBoundaries.push(N)));k.allPendingTasks--,k.allPendingTasks===0&&(k=k.onAllReady,k())}function Wn(k){if(k.status!==2){var N=sn,q=Pi.current;Pi.current=lo;var ee=uo;uo=k.responseState;try{var Ee=k.pingedTasks,ve;for(ve=0;ve<Ee.length;ve++){var Me=Ee[ve],Ze=k,mt=Me.blockedSegment;if(mt.status===0){on(Me.context);try{yn(Ze,Me,Me.node),Ze.responseState.generateStaticMarkup||mt.lastPushedText&&mt.textEmbedded&&mt.chunks.push("<!-- -->"),Me.abortSet.delete(Me),mt.status=1,Qr(Ze,Me.blockedBoundary,mt)}catch(En){if(br(),typeof En=="object"&&En!==null&&typeof En.then=="function"){var vt=Me.ping;En.then(vt,vt)}else{Me.abortSet.delete(Me),mt.status=4;var pt=Me.blockedBoundary,Ft=En,Bn=wr(Ze,Ft);if(pt===null?Mr(Ze,Ft):(pt.pendingTasks--,pt.forceClientRender||(pt.forceClientRender=!0,pt.errorDigest=Bn,pt.parentFlushed&&Ze.clientRenderedBoundaries.push(pt))),Ze.allPendingTasks--,Ze.allPendingTasks===0){var zn=Ze.onAllReady;zn()}}}finally{}}}Ee.splice(0,ve),k.destination!==null&&Cn(k,k.destination)}catch(En){wr(k,En),Mr(k,En)}finally{uo=ee,Pi.current=q,q===lo&&on(N)}}}function gi(k,N,q){switch(q.parentFlushed=!0,q.status){case 0:var ee=q.id=k.nextSegmentId++;return q.lastPushedText=!1,q.textEmbedded=!1,k=k.responseState,N.push('<template id="'),N.push(k.placeholderPrefix),k=ee.toString(16),N.push(k),N.push('"></template>');case 1:q.status=2;var Ee=!0;ee=q.chunks;var ve=0;q=q.children;for(var Me=0;Me<q.length;Me++){for(Ee=q[Me];ve<Ee.index;ve++)N.push(ee[ve]);Ee=mi(k,N,Ee)}for(;ve<ee.length-1;ve++)N.push(ee[ve]);return ve<ee.length&&(Ee=N.push(ee[ve])),Ee;default:throw Error(e(390))}}function mi(k,N,q){var ee=q.boundary;if(ee===null)return gi(k,N,q);if(ee.parentFlushed=!0,ee.forceClientRender)return k.responseState.generateStaticMarkup||(ee=ee.errorDigest,N.push("<!--$!-->"),N.push("<template"),ee&&(N.push(' data-dgst="'),ee=I(ee),N.push(ee),N.push('"')),N.push("></template>")),gi(k,N,q),k=k.responseState.generateStaticMarkup?!0:N.push("<!--/$-->"),k;if(0<ee.pendingTasks){ee.rootSegmentID=k.nextSegmentId++,0<ee.completedSegments.length&&k.partialBoundaries.push(ee);var Ee=k.responseState,ve=Ee.nextSuspenseID++;return Ee=Ee.boundaryPrefix+ve.toString(16),ee=ee.id=Ee,nt(N,k.responseState,ee),gi(k,N,q),N.push("<!--/$-->")}if(ee.byteSize>k.progressiveChunkSize)return ee.rootSegmentID=k.nextSegmentId++,k.completedBoundaries.push(ee),nt(N,k.responseState,ee.id),gi(k,N,q),N.push("<!--/$-->");if(k.responseState.generateStaticMarkup||N.push("<!--$-->"),q=ee.completedSegments,q.length!==1)throw Error(e(391));return mi(k,N,q[0]),k=k.responseState.generateStaticMarkup?!0:N.push("<!--/$-->"),k}function Ri(k,N,q){return ge(N,k.responseState,q.formatContext,q.id),mi(k,N,q),_e(N,q.formatContext)}function nn(k,N,q){for(var ee=q.completedSegments,Ee=0;Ee<ee.length;Ee++)jn(k,N,q,ee[Ee]);if(ee.length=0,k=k.responseState,ee=q.id,q=q.rootSegmentID,N.push(k.startInlineScript),k.sentCompleteBoundaryFunction?N.push('$RC("'):(k.sentCompleteBoundaryFunction=!0,N.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),ee===null)throw Error(e(395));return q=q.toString(16),N.push(ee),N.push('","'),N.push(k.segmentPrefix),N.push(q),N.push('")<\/script>')}function jn(k,N,q,ee){if(ee.status===2)return!0;var Ee=ee.id;if(Ee===-1){if((ee.id=q.rootSegmentID)===-1)throw Error(e(392));return Ri(k,N,ee)}return Ri(k,N,ee),k=k.responseState,N.push(k.startInlineScript),k.sentCompleteSegmentFunction?N.push('$RS("'):(k.sentCompleteSegmentFunction=!0,N.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),N.push(k.segmentPrefix),Ee=Ee.toString(16),N.push(Ee),N.push('","'),N.push(k.placeholderPrefix),N.push(Ee),N.push('")<\/script>')}function Cn(k,N){try{var q=k.completedRootSegment;if(q!==null&&k.pendingRootTasks===0){mi(k,N,q),k.completedRootSegment=null;var ee=k.responseState.bootstrapChunks;for(q=0;q<ee.length-1;q++)N.push(ee[q]);q<ee.length&&N.push(ee[q])}var Ee=k.clientRenderedBoundaries,ve;for(ve=0;ve<Ee.length;ve++){var Me=Ee[ve];ee=N;var Ze=k.responseState,mt=Me.id,vt=Me.errorDigest,pt=Me.errorMessage,Ft=Me.errorComponentStack;if(ee.push(Ze.startInlineScript),Ze.sentClientRenderFunction?ee.push('$RX("'):(Ze.sentClientRenderFunction=!0,ee.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),mt===null)throw Error(e(395));if(ee.push(mt),ee.push('"'),vt||pt||Ft){ee.push(",");var Bn=Ae(vt||"");ee.push(Bn)}if(pt||Ft){ee.push(",");var zn=Ae(pt||"");ee.push(zn)}if(Ft){ee.push(",");var En=Ae(Ft);ee.push(En)}if(!ee.push(")<\/script>")){k.destination=null,ve++,Ee.splice(0,ve);return}}Ee.splice(0,ve);var ei=k.completedBoundaries;for(ve=0;ve<ei.length;ve++)if(!nn(k,N,ei[ve])){k.destination=null,ve++,ei.splice(0,ve);return}ei.splice(0,ve);var lr=k.partialBoundaries;for(ve=0;ve<lr.length;ve++){var Gi=lr[ve];e:{Ee=k,Me=N;var vi=Gi.completedSegments;for(Ze=0;Ze<vi.length;Ze++)if(!jn(Ee,Me,Gi,vi[Ze])){Ze++,vi.splice(0,Ze);var qi=!1;break e}vi.splice(0,Ze),qi=!0}if(!qi){k.destination=null,ve++,lr.splice(0,ve);return}}lr.splice(0,ve);var Nr=k.completedBoundaries;for(ve=0;ve<Nr.length;ve++)if(!nn(k,N,Nr[ve])){k.destination=null,ve++,Nr.splice(0,ve);return}Nr.splice(0,ve)}finally{k.allPendingTasks===0&&k.pingedTasks.length===0&&k.clientRenderedBoundaries.length===0&&k.completedBoundaries.length===0&&N.push(null)}}function co(k,N){try{var q=k.abortableTasks;q.forEach(function(ee){return pi(ee,k,N)}),q.clear(),k.destination!==null&&Cn(k,k.destination)}catch(ee){wr(k,ee),Mr(k,ee)}}function Pn(){}function On(k,N,q,ee){var Ee=!1,ve=null,Me="",Ze={push:function(vt){return vt!==null&&(Me+=vt),!0},destroy:function(vt){Ee=!0,ve=vt}},mt=!1;if(k=Ar(k,et(q,N?N.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,Pn,void 0,function(){mt=!0}),Wn(k),co(k,ee),k.status===1)k.status=2,Ze.destroy(k.fatalError);else if(k.status!==2&&k.destination===null){k.destination=Ze;try{Cn(k,Ze)}catch(vt){wr(k,vt),Mr(k,vt)}}if(Ee)throw ve;if(!mt)throw Error(e(426));return Me}return uc.renderToNodeStream=function(){throw Error(e(207))},uc.renderToStaticMarkup=function(k,N){return On(k,N,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},uc.renderToStaticNodeStream=function(){throw Error(e(208))},uc.renderToString=function(k,N){return On(k,N,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},uc.version="18.3.1",uc}var Nh={};/**
|
|
46
|
+
* @license React
|
|
47
|
+
* react-dom-server.browser.production.min.js
|
|
48
|
+
*
|
|
49
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
50
|
+
*
|
|
51
|
+
* This source code is licensed under the MIT license found in the
|
|
52
|
+
* LICENSE file in the root directory of this source tree.
|
|
53
|
+
*/var P1;function e6(){if(P1)return Nh;P1=1;var t=z;function e(D){for(var M="https://reactjs.org/docs/error-decoder.html?invariant="+D,W=1;W<arguments.length;W++)M+="&args[]="+encodeURIComponent(arguments[W]);return"Minified React error #"+D+"; visit "+M+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=null,r=0;function i(D,M){if(M.length!==0)if(512<M.length)0<r&&(D.enqueue(new Uint8Array(n.buffer,0,r)),n=new Uint8Array(512),r=0),D.enqueue(M);else{var W=n.length-r;W<M.length&&(W===0?D.enqueue(n):(n.set(M.subarray(0,W),r),D.enqueue(n),M=M.subarray(W)),n=new Uint8Array(512),r=0),n.set(M,r),r+=M.length}}function o(D,M){return i(D,M),!0}function a(D){n&&0<r&&(D.enqueue(new Uint8Array(n.buffer,0,r)),n=null,r=0)}var c=new TextEncoder;function f(D){return c.encode(D)}function p(D){return c.encode(D)}function y(D,M){typeof D.error=="function"?D.error(M):D.close()}var m=Object.prototype.hasOwnProperty,T=/^[: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][: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]*$/,E={},I={};function A(D){return m.call(I,D)?!0:m.call(E,D)?!1:T.test(D)?I[D]=!0:(E[D]=!0,!1)}function F(D,M,W,Q,we,xe,Ne){this.acceptsBooleans=M===2||M===3||M===4,this.attributeName=Q,this.attributeNamespace=we,this.mustUseProperty=W,this.propertyName=D,this.type=M,this.sanitizeURL=xe,this.removeEmptyString=Ne}var R={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(D){R[D]=new F(D,0,!1,D,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(D){var M=D[0];R[M]=new F(M,1,!1,D[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(D){R[D]=new F(D,2,!1,D.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(D){R[D]=new F(D,2,!1,D,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(D){R[D]=new F(D,3,!1,D.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(D){R[D]=new F(D,3,!0,D,null,!1,!1)}),["capture","download"].forEach(function(D){R[D]=new F(D,4,!1,D,null,!1,!1)}),["cols","rows","size","span"].forEach(function(D){R[D]=new F(D,6,!1,D,null,!1,!1)}),["rowSpan","start"].forEach(function(D){R[D]=new F(D,5,!1,D.toLowerCase(),null,!1,!1)});var U=/[\-:]([a-z])/g;function H(D){return D[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(D){var M=D.replace(U,H);R[M]=new F(M,1,!1,D,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(D){var M=D.replace(U,H);R[M]=new F(M,1,!1,D,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(D){var M=D.replace(U,H);R[M]=new F(M,1,!1,D,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(D){R[D]=new F(D,1,!1,D.toLowerCase(),null,!1,!1)}),R.xlinkHref=new F("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(D){R[D]=new F(D,1,!1,D.toLowerCase(),null,!0,!0)});var ne={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Z=["Webkit","ms","Moz","O"];Object.keys(ne).forEach(function(D){Z.forEach(function(M){M=M+D.charAt(0).toUpperCase()+D.substring(1),ne[M]=ne[D]})});var ce=/["'&<>]/;function S(D){if(typeof D=="boolean"||typeof D=="number")return""+D;D=""+D;var M=ce.exec(D);if(M){var W="",Q,we=0;for(Q=M.index;Q<D.length;Q++){switch(D.charCodeAt(Q)){case 34:M=""";break;case 38:M="&";break;case 39:M="'";break;case 60:M="<";break;case 62:M=">";break;default:continue}we!==Q&&(W+=D.substring(we,Q)),we=Q+1,W+=M}D=we!==Q?W+D.substring(we,Q):W}return D}var re=/([A-Z])/g,ie=/^ms-/,Pe=Array.isArray,Ke=p("<script>"),$e=p("<\/script>"),tt=p('<script src="'),nt=p('<script type="module" src="'),ge=p('" async=""><\/script>'),_e=/(<\/|<)(s)(cript)/gi;function Re(D,M,W,Q){return""+M+(W==="s"?"\\u0073":"\\u0053")+Q}function Ae(D,M,W,Q,we){D=D===void 0?"":D,M=M===void 0?Ke:p('<script nonce="'+S(M)+'">');var xe=[];if(W!==void 0&&xe.push(M,f((""+W).replace(_e,Re)),$e),Q!==void 0)for(W=0;W<Q.length;W++)xe.push(tt,f(S(Q[W])),ge);if(we!==void 0)for(Q=0;Q<we.length;Q++)xe.push(nt,f(S(we[Q])),ge);return{bootstrapChunks:xe,startInlineScript:M,placeholderPrefix:p(D+"P:"),segmentPrefix:p(D+"S:"),boundaryPrefix:D+"B:",idPrefix:D,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function et(D,M){return{insertionMode:D,selectedValue:M}}function ye(D){return et(D==="http://www.w3.org/2000/svg"?2:D==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function ue(D,M,W){switch(M){case"select":return et(1,W.value!=null?W.value:W.defaultValue);case"svg":return et(2,null);case"math":return et(3,null);case"foreignObject":return et(1,null);case"table":return et(4,null);case"thead":case"tbody":case"tfoot":return et(5,null);case"colgroup":return et(7,null);case"tr":return et(6,null)}return 4<=D.insertionMode||D.insertionMode===0?et(1,null):D}var De=p("<!-- -->");function je(D,M,W,Q){return M===""?Q:(Q&&D.push(De),D.push(f(S(M))),!0)}var Ie=new Map,Be=p(' style="'),Ue=p(":"),it=p(";");function rt(D,M,W){if(typeof W!="object")throw Error(e(62));M=!0;for(var Q in W)if(m.call(W,Q)){var we=W[Q];if(we!=null&&typeof we!="boolean"&&we!==""){if(Q.indexOf("--")===0){var xe=f(S(Q));we=f(S((""+we).trim()))}else{xe=Q;var Ne=Ie.get(xe);Ne!==void 0||(Ne=p(S(xe.replace(re,"-$1").toLowerCase().replace(ie,"-ms-"))),Ie.set(xe,Ne)),xe=Ne,we=typeof we=="number"?we===0||m.call(ne,Q)?f(""+we):f(we+"px"):f(S((""+we).trim()))}M?(M=!1,D.push(Be,xe,Ue,we)):D.push(it,xe,Ue,we)}}M||D.push(ft)}var st=p(" "),Qe=p('="'),ft=p('"'),Xe=p('=""');function It(D,M,W,Q){switch(W){case"style":rt(D,M,Q);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<W.length)||W[0]!=="o"&&W[0]!=="O"||W[1]!=="n"&&W[1]!=="N"){if(M=R.hasOwnProperty(W)?R[W]:null,M!==null){switch(typeof Q){case"function":case"symbol":return;case"boolean":if(!M.acceptsBooleans)return}switch(W=f(M.attributeName),M.type){case 3:Q&&D.push(st,W,Xe);break;case 4:Q===!0?D.push(st,W,Xe):Q!==!1&&D.push(st,W,Qe,f(S(Q)),ft);break;case 5:isNaN(Q)||D.push(st,W,Qe,f(S(Q)),ft);break;case 6:!isNaN(Q)&&1<=Q&&D.push(st,W,Qe,f(S(Q)),ft);break;default:M.sanitizeURL&&(Q=""+Q),D.push(st,W,Qe,f(S(Q)),ft)}}else if(A(W)){switch(typeof Q){case"function":case"symbol":return;case"boolean":if(M=W.toLowerCase().slice(0,5),M!=="data-"&&M!=="aria-")return}D.push(st,f(W),Qe,f(S(Q)),ft)}}}var Mt=p(">"),Vn=p("/>");function vr(D,M,W){if(M!=null){if(W!=null)throw Error(e(60));if(typeof M!="object"||!("__html"in M))throw Error(e(61));M=M.__html,M!=null&&D.push(f(""+M))}}function Hn(D){var M="";return t.Children.forEach(D,function(W){W!=null&&(M+=W)}),M}var Sn=p(' selected=""');function Vi(D,M,W,Q){D.push(fn(W));var we=W=null,xe;for(xe in M)if(m.call(M,xe)){var Ne=M[xe];if(Ne!=null)switch(xe){case"children":W=Ne;break;case"dangerouslySetInnerHTML":we=Ne;break;default:It(D,Q,xe,Ne)}}return D.push(Mt),vr(D,we,W),typeof W=="string"?(D.push(f(S(W))),null):W}var Pr=p(`
|
|
54
|
+
`),Jn=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,sn=new Map;function fn(D){var M=sn.get(D);if(M===void 0){if(!Jn.test(D))throw Error(e(65,D));M=p("<"+D),sn.set(D,M)}return M}var dn=p("<!DOCTYPE html>");function ht(D,M,W,Q,we){switch(M){case"select":D.push(fn("select"));var xe=null,Ne=null;for(St in W)if(m.call(W,St)){var Ge=W[St];if(Ge!=null)switch(St){case"children":xe=Ge;break;case"dangerouslySetInnerHTML":Ne=Ge;break;case"defaultValue":case"value":break;default:It(D,Q,St,Ge)}}return D.push(Mt),vr(D,Ne,xe),xe;case"option":Ne=we.selectedValue,D.push(fn("option"));var gt=Ge=null,Ot=null,St=null;for(xe in W)if(m.call(W,xe)){var yt=W[xe];if(yt!=null)switch(xe){case"children":Ge=yt;break;case"selected":Ot=yt;break;case"dangerouslySetInnerHTML":St=yt;break;case"value":gt=yt;default:It(D,Q,xe,yt)}}if(Ne!=null)if(W=gt!==null?""+gt:Hn(Ge),Pe(Ne)){for(Q=0;Q<Ne.length;Q++)if(""+Ne[Q]===W){D.push(Sn);break}}else""+Ne===W&&D.push(Sn);else Ot&&D.push(Sn);return D.push(Mt),vr(D,St,Ge),Ge;case"textarea":D.push(fn("textarea")),St=Ne=xe=null;for(Ge in W)if(m.call(W,Ge)&&(gt=W[Ge],gt!=null))switch(Ge){case"children":St=gt;break;case"value":xe=gt;break;case"defaultValue":Ne=gt;break;case"dangerouslySetInnerHTML":throw Error(e(91));default:It(D,Q,Ge,gt)}if(xe===null&&Ne!==null&&(xe=Ne),D.push(Mt),St!=null){if(xe!=null)throw Error(e(92));if(Pe(St)&&1<St.length)throw Error(e(93));xe=""+St}return typeof xe=="string"&&xe[0]===`
|
|
55
|
+
`&&D.push(Pr),xe!==null&&D.push(f(S(""+xe))),null;case"input":D.push(fn("input")),gt=St=Ge=xe=null;for(Ne in W)if(m.call(W,Ne)&&(Ot=W[Ne],Ot!=null))switch(Ne){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,"input"));case"defaultChecked":gt=Ot;break;case"defaultValue":Ge=Ot;break;case"checked":St=Ot;break;case"value":xe=Ot;break;default:It(D,Q,Ne,Ot)}return St!==null?It(D,Q,"checked",St):gt!==null&&It(D,Q,"checked",gt),xe!==null?It(D,Q,"value",xe):Ge!==null&&It(D,Q,"value",Ge),D.push(Vn),null;case"menuitem":D.push(fn("menuitem"));for(var In in W)if(m.call(W,In)&&(xe=W[In],xe!=null))switch(In){case"children":case"dangerouslySetInnerHTML":throw Error(e(400));default:It(D,Q,In,xe)}return D.push(Mt),null;case"title":D.push(fn("title")),xe=null;for(yt in W)if(m.call(W,yt)&&(Ne=W[yt],Ne!=null))switch(yt){case"children":xe=Ne;break;case"dangerouslySetInnerHTML":throw Error(e(434));default:It(D,Q,yt,Ne)}return D.push(Mt),xe;case"listing":case"pre":D.push(fn(M)),Ne=xe=null;for(gt in W)if(m.call(W,gt)&&(Ge=W[gt],Ge!=null))switch(gt){case"children":xe=Ge;break;case"dangerouslySetInnerHTML":Ne=Ge;break;default:It(D,Q,gt,Ge)}if(D.push(Mt),Ne!=null){if(xe!=null)throw Error(e(60));if(typeof Ne!="object"||!("__html"in Ne))throw Error(e(61));W=Ne.__html,W!=null&&(typeof W=="string"&&0<W.length&&W[0]===`
|
|
56
|
+
`?D.push(Pr,f(W)):D.push(f(""+W)))}return typeof xe=="string"&&xe[0]===`
|
|
57
|
+
`&&D.push(Pr),xe;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":D.push(fn(M));for(var bn in W)if(m.call(W,bn)&&(xe=W[bn],xe!=null))switch(bn){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,M));default:It(D,Q,bn,xe)}return D.push(Vn),null;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 Vi(D,W,M,Q);case"html":return we.insertionMode===0&&D.push(dn),Vi(D,W,M,Q);default:if(M.indexOf("-")===-1&&typeof W.is!="string")return Vi(D,W,M,Q);D.push(fn(M)),Ne=xe=null;for(Ot in W)if(m.call(W,Ot)&&(Ge=W[Ot],Ge!=null))switch(Ot){case"children":xe=Ge;break;case"dangerouslySetInnerHTML":Ne=Ge;break;case"style":rt(D,Q,Ge);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:A(Ot)&&typeof Ge!="function"&&typeof Ge!="symbol"&&D.push(st,f(Ot),Qe,f(S(Ge)),ft)}return D.push(Mt),vr(D,Ne,xe),xe}}var Dn=p("</"),ai=p(">"),on=p('<template id="'),Hi=p('"></template>'),Ui=p("<!--$-->"),Wi=p('<!--$?--><template id="'),Or=p('"></template>'),Nn=p("<!--$!-->"),Rr=p("<!--/$-->"),yr=p("<template"),qr=p('"'),Xr=p(' data-dgst="');p(' data-msg="'),p(' data-stck="');var Ao=p("></template>");function Un(D,M,W){if(i(D,Wi),W===null)throw Error(e(395));return i(D,W),o(D,Or)}var Kr=p('<div hidden id="'),Qn=p('">'),Wt=p("</div>"),li=p('<svg aria-hidden="true" style="display:none" id="'),zi=p('">'),_n=p("</svg>"),hn=p('<math aria-hidden="true" style="display:none" id="'),ui=p('">'),ci=p("</math>"),Tn=p('<table hidden id="'),ao=p('">'),br=p("</table>"),fi=p('<table hidden><tbody id="'),an=p('">'),_i=p("</tbody></table>"),Ls=p('<table hidden><tr id="'),Fs=p('">'),Zr=p("</tr></table>"),lo=p('<table hidden><colgroup id="'),uo=p('">'),Pi=p("</colgroup></table>");function er(D,M,W,Q){switch(W.insertionMode){case 0:case 1:return i(D,Kr),i(D,M.segmentPrefix),i(D,f(Q.toString(16))),o(D,Qn);case 2:return i(D,li),i(D,M.segmentPrefix),i(D,f(Q.toString(16))),o(D,zi);case 3:return i(D,hn),i(D,M.segmentPrefix),i(D,f(Q.toString(16))),o(D,ui);case 4:return i(D,Tn),i(D,M.segmentPrefix),i(D,f(Q.toString(16))),o(D,ao);case 5:return i(D,fi),i(D,M.segmentPrefix),i(D,f(Q.toString(16))),o(D,an);case 6:return i(D,Ls),i(D,M.segmentPrefix),i(D,f(Q.toString(16))),o(D,Fs);case 7:return i(D,lo),i(D,M.segmentPrefix),i(D,f(Q.toString(16))),o(D,uo);default:throw Error(e(397))}}function Ir(D,M){switch(M.insertionMode){case 0:case 1:return o(D,Wt);case 2:return o(D,_n);case 3:return o(D,ci);case 4:return o(D,br);case 5:return o(D,_i);case 6:return o(D,Zr);case 7:return o(D,Pi);default:throw Error(e(397))}}var Ar=p('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),di=p('$RS("'),Jr=p('","'),wr=p('")<\/script>'),Mr=p('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),tr=p('$RC("'),Yi=p('","'),Oi=p('")<\/script>'),ar=p('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),yn=p('$RX("'),Lr=p('"'),Fr=p(")<\/script>"),hi=p(","),pi=/[<\u2028\u2029]/g;function xr(D){return JSON.stringify(D).replace(pi,function(M){switch(M){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var Qr=Object.assign,Wn=Symbol.for("react.element"),gi=Symbol.for("react.portal"),mi=Symbol.for("react.fragment"),Ri=Symbol.for("react.strict_mode"),nn=Symbol.for("react.profiler"),jn=Symbol.for("react.provider"),Cn=Symbol.for("react.context"),co=Symbol.for("react.forward_ref"),Pn=Symbol.for("react.suspense"),On=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),q=Symbol.for("react.scope"),ee=Symbol.for("react.debug_trace_mode"),Ee=Symbol.for("react.legacy_hidden"),ve=Symbol.for("react.default_value"),Me=Symbol.iterator;function Ze(D){if(D==null)return null;if(typeof D=="function")return D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case mi:return"Fragment";case gi:return"Portal";case nn:return"Profiler";case Ri:return"StrictMode";case Pn:return"Suspense";case On:return"SuspenseList"}if(typeof D=="object")switch(D.$$typeof){case Cn:return(D.displayName||"Context")+".Consumer";case jn:return(D._context.displayName||"Context")+".Provider";case co:var M=D.render;return D=D.displayName,D||(D=M.displayName||M.name||"",D=D!==""?"ForwardRef("+D+")":"ForwardRef"),D;case k:return M=D.displayName||null,M!==null?M:Ze(D.type)||"Memo";case N:M=D._payload,D=D._init;try{return Ze(D(M))}catch{}}return null}var mt={};function vt(D,M){if(D=D.contextTypes,!D)return mt;var W={},Q;for(Q in D)W[Q]=M[Q];return W}var pt=null;function Ft(D,M){if(D!==M){D.context._currentValue=D.parentValue,D=D.parent;var W=M.parent;if(D===null){if(W!==null)throw Error(e(401))}else{if(W===null)throw Error(e(401));Ft(D,W)}M.context._currentValue=M.value}}function Bn(D){D.context._currentValue=D.parentValue,D=D.parent,D!==null&&Bn(D)}function zn(D){var M=D.parent;M!==null&&zn(M),D.context._currentValue=D.value}function En(D,M){if(D.context._currentValue=D.parentValue,D=D.parent,D===null)throw Error(e(402));D.depth===M.depth?Ft(D,M):En(D,M)}function ei(D,M){var W=M.parent;if(W===null)throw Error(e(402));D.depth===W.depth?Ft(D,W):ei(D,W),M.context._currentValue=M.value}function lr(D){var M=pt;M!==D&&(M===null?zn(D):D===null?Bn(M):M.depth===D.depth?Ft(M,D):M.depth>D.depth?En(M,D):ei(M,D),pt=D)}var Gi={isMounted:function(){return!1},enqueueSetState:function(D,M){D=D._reactInternals,D.queue!==null&&D.queue.push(M)},enqueueReplaceState:function(D,M){D=D._reactInternals,D.replace=!0,D.queue=[M]},enqueueForceUpdate:function(){}};function vi(D,M,W,Q){var we=D.state!==void 0?D.state:null;D.updater=Gi,D.props=W,D.state=we;var xe={queue:[],replace:!1};D._reactInternals=xe;var Ne=M.contextType;if(D.context=typeof Ne=="object"&&Ne!==null?Ne._currentValue:Q,Ne=M.getDerivedStateFromProps,typeof Ne=="function"&&(Ne=Ne(W,we),we=Ne==null?we:Qr({},we,Ne),D.state=we),typeof M.getDerivedStateFromProps!="function"&&typeof D.getSnapshotBeforeUpdate!="function"&&(typeof D.UNSAFE_componentWillMount=="function"||typeof D.componentWillMount=="function"))if(M=D.state,typeof D.componentWillMount=="function"&&D.componentWillMount(),typeof D.UNSAFE_componentWillMount=="function"&&D.UNSAFE_componentWillMount(),M!==D.state&&Gi.enqueueReplaceState(D,D.state,null),xe.queue!==null&&0<xe.queue.length)if(M=xe.queue,Ne=xe.replace,xe.queue=null,xe.replace=!1,Ne&&M.length===1)D.state=M[0];else{for(xe=Ne?M[0]:D.state,we=!0,Ne=Ne?1:0;Ne<M.length;Ne++){var Ge=M[Ne];Ge=typeof Ge=="function"?Ge.call(D,xe,W,Q):Ge,Ge!=null&&(we?(we=!1,xe=Qr({},xe,Ge)):Qr(xe,Ge))}D.state=xe}else xe.queue=null}var qi={id:1,overflow:""};function Nr(D,M,W){var Q=D.id;D=D.overflow;var we=32-Xi(Q)-1;Q&=~(1<<we),W+=1;var xe=32-Xi(M)+we;if(30<xe){var Ne=we-we%5;return xe=(Q&(1<<Ne)-1).toString(32),Q>>=Ne,we-=Ne,{id:1<<32-Xi(M)+we|W<<we|Q,overflow:xe+D}}return{id:1<<xe|W<<we|Q,overflow:D}}var Xi=Math.clz32?Math.clz32:is,Wa=Math.log,Ns=Math.LN2;function is(D){return D>>>=0,D===0?32:31-(Wa(D)/Ns|0)|0}function Sr(D,M){return D===M&&(D!==0||1/D===1/M)||D!==D&&M!==M}var za=typeof Object.is=="function"?Object.is:Sr,yi=null,js=null,os=null,rn=null,Gt=!1,Kt=!1,Ii=0,ti=null,Mo=0;function bi(){if(yi===null)throw Error(e(321));return yi}function ur(){if(0<Mo)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function Bs(){return rn===null?os===null?(Gt=!1,os=rn=ur()):(Gt=!0,rn=os):rn.next===null?(Gt=!1,rn=rn.next=ur()):(Gt=!0,rn=rn.next),rn}function fo(){js=yi=null,Kt=!1,os=null,Mo=0,rn=ti=null}function ua(D,M){return typeof M=="function"?M(D):M}function ln(D,M,W){if(yi=bi(),rn=Bs(),Gt){var Q=rn.queue;if(M=Q.dispatch,ti!==null&&(W=ti.get(Q),W!==void 0)){ti.delete(Q),Q=rn.memoizedState;do Q=D(Q,W.action),W=W.next;while(W!==null);return rn.memoizedState=Q,[Q,M]}return[rn.memoizedState,M]}return D=D===ua?typeof M=="function"?M():M:W!==void 0?W(M):M,rn.memoizedState=D,D=rn.queue={last:null,dispatch:null},D=D.dispatch=wi.bind(null,yi,D),[rn.memoizedState,D]}function Lo(D,M){if(yi=bi(),rn=Bs(),M=M===void 0?null:M,rn!==null){var W=rn.memoizedState;if(W!==null&&M!==null){var Q=W[1];e:if(Q===null)Q=!1;else{for(var we=0;we<Q.length&&we<M.length;we++)if(!za(M[we],Q[we])){Q=!1;break e}Q=!0}if(Q)return W[0]}}return D=D(),rn.memoizedState=[D,M],D}function wi(D,M,W){if(25<=Mo)throw Error(e(301));if(D===yi)if(Kt=!0,D={action:W,next:null},ti===null&&(ti=new Map),W=ti.get(M),W===void 0)ti.set(M,D);else{for(M=W;M.next!==null;)M=M.next;M.next=D}}function ca(){throw Error(e(394))}function ho(){}var cr={readContext:function(D){return D._currentValue},useContext:function(D){return bi(),D._currentValue},useMemo:Lo,useReducer:ln,useRef:function(D){yi=bi(),rn=Bs();var M=rn.memoizedState;return M===null?(D={current:D},rn.memoizedState=D):M},useState:function(D){return ln(ua,D)},useInsertionEffect:ho,useLayoutEffect:function(){},useCallback:function(D,M){return Lo(function(){return D},M)},useImperativeHandle:ho,useEffect:ho,useDebugValue:ho,useDeferredValue:function(D){return bi(),D},useTransition:function(){return bi(),[!1,ca]},useId:function(){var D=js.treeContext,M=D.overflow;D=D.id,D=(D&~(1<<32-Xi(D)-1)).toString(32)+M;var W=h;if(W===null)throw Error(e(404));return M=Ii++,D=":"+W.idPrefix+"R"+D,0<M&&(D+="H"+M.toString(32)),D+":"},useMutableSource:function(D,M){return bi(),M(D._source)},useSyncExternalStore:function(D,M,W){if(W===void 0)throw Error(e(407));return W()}},h=null,b=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function C(D){return console.error(D),null}function _(){}function L(D,M,W,Q,we,xe,Ne,Ge,gt){var Ot=[],St=new Set;return M={destination:null,responseState:M,progressiveChunkSize:Q===void 0?12800:Q,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:St,pingedTasks:Ot,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:we===void 0?C:we,onAllReady:xe===void 0?_:xe,onShellReady:Ne===void 0?_:Ne,onShellError:Ge===void 0?_:Ge,onFatalError:gt===void 0?_:gt},W=V(M,0,null,W,!1,!1),W.parentFlushed=!0,D=j(M,D,null,W,St,mt,null,qi),Ot.push(D),M}function j(D,M,W,Q,we,xe,Ne,Ge){D.allPendingTasks++,W===null?D.pendingRootTasks++:W.pendingTasks++;var gt={node:M,ping:function(){var Ot=D.pingedTasks;Ot.push(gt),Ot.length===1&&Br(D)},blockedBoundary:W,blockedSegment:Q,abortSet:we,legacyContext:xe,context:Ne,treeContext:Ge};return we.add(gt),gt}function V(D,M,W,Q,we,xe){return{status:0,id:-1,index:M,parentFlushed:!1,chunks:[],children:[],formatContext:Q,boundary:W,lastPushedText:we,textEmbedded:xe}}function ae(D,M){if(D=D.onError(M),D!=null&&typeof D!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof D+'" instead');return D}function te(D,M){var W=D.onShellError;W(M),W=D.onFatalError,W(M),D.destination!==null?(D.status=2,y(D.destination,M)):(D.status=1,D.fatalError=M)}function me(D,M,W,Q,we){for(yi={},js=M,Ii=0,D=W(Q,we);Kt;)Kt=!1,Ii=0,Mo+=1,rn=null,D=W(Q,we);return fo(),D}function Oe(D,M,W,Q){var we=W.render(),xe=Q.childContextTypes;if(xe!=null){var Ne=M.legacyContext;if(typeof W.getChildContext!="function")Q=Ne;else{W=W.getChildContext();for(var Ge in W)if(!(Ge in xe))throw Error(e(108,Ze(Q)||"Unknown",Ge));Q=Qr({},Ne,W)}M.legacyContext=Q,We(D,M,we),M.legacyContext=Ne}else We(D,M,we)}function Le(D,M){if(D&&D.defaultProps){M=Qr({},M),D=D.defaultProps;for(var W in D)M[W]===void 0&&(M[W]=D[W]);return M}return M}function Te(D,M,W,Q,we){if(typeof W=="function")if(W.prototype&&W.prototype.isReactComponent){we=vt(W,M.legacyContext);var xe=W.contextType;xe=new W(Q,typeof xe=="object"&&xe!==null?xe._currentValue:we),vi(xe,W,Q,we),Oe(D,M,xe,W)}else{xe=vt(W,M.legacyContext),we=me(D,M,W,Q,xe);var Ne=Ii!==0;if(typeof we=="object"&&we!==null&&typeof we.render=="function"&&we.$$typeof===void 0)vi(we,W,Q,xe),Oe(D,M,we,W);else if(Ne){Q=M.treeContext,M.treeContext=Nr(Q,1,0);try{We(D,M,we)}finally{M.treeContext=Q}}else We(D,M,we)}else if(typeof W=="string"){switch(we=M.blockedSegment,xe=ht(we.chunks,W,Q,D.responseState,we.formatContext),we.lastPushedText=!1,Ne=we.formatContext,we.formatContext=ue(Ne,W,Q),Tt(D,M,xe),we.formatContext=Ne,W){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:we.chunks.push(Dn,f(W),ai)}we.lastPushedText=!1}else{switch(W){case Ee:case ee:case Ri:case nn:case mi:We(D,M,Q.children);return;case On:We(D,M,Q.children);return;case q:throw Error(e(343));case Pn:e:{W=M.blockedBoundary,we=M.blockedSegment,xe=Q.fallback,Q=Q.children,Ne=new Set;var Ge={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Ne,errorDigest:null},gt=V(D,we.chunks.length,Ge,we.formatContext,!1,!1);we.children.push(gt),we.lastPushedText=!1;var Ot=V(D,0,null,we.formatContext,!1,!1);Ot.parentFlushed=!0,M.blockedBoundary=Ge,M.blockedSegment=Ot;try{if(Tt(D,M,Q),Ot.lastPushedText&&Ot.textEmbedded&&Ot.chunks.push(De),Ot.status=1,un(Ge,Ot),Ge.pendingTasks===0)break e}catch(St){Ot.status=4,Ge.forceClientRender=!0,Ge.errorDigest=ae(D,St)}finally{M.blockedBoundary=W,M.blockedSegment=we}M=j(D,xe,W,gt,Ne,M.legacyContext,M.context,M.treeContext),D.pingedTasks.push(M)}return}if(typeof W=="object"&&W!==null)switch(W.$$typeof){case co:if(Q=me(D,M,W.render,Q,we),Ii!==0){W=M.treeContext,M.treeContext=Nr(W,1,0);try{We(D,M,Q)}finally{M.treeContext=W}}else We(D,M,Q);return;case k:W=W.type,Q=Le(W,Q),Te(D,M,W,Q,we);return;case jn:if(we=Q.children,W=W._context,Q=Q.value,xe=W._currentValue,W._currentValue=Q,Ne=pt,pt=Q={parent:Ne,depth:Ne===null?0:Ne.depth+1,context:W,parentValue:xe,value:Q},M.context=Q,We(D,M,we),D=pt,D===null)throw Error(e(403));Q=D.parentValue,D.context._currentValue=Q===ve?D.context._defaultValue:Q,D=pt=D.parent,M.context=D;return;case Cn:Q=Q.children,Q=Q(W._currentValue),We(D,M,Q);return;case N:we=W._init,W=we(W._payload),Q=Le(W,Q),Te(D,M,W,Q,void 0);return}throw Error(e(130,W==null?W:typeof W,""))}}function We(D,M,W){if(M.node=W,typeof W=="object"&&W!==null){switch(W.$$typeof){case Wn:Te(D,M,W.type,W.props,W.ref);return;case gi:throw Error(e(257));case N:var Q=W._init;W=Q(W._payload),We(D,M,W);return}if(Pe(W)){lt(D,M,W);return}if(W===null||typeof W!="object"?Q=null:(Q=Me&&W[Me]||W["@@iterator"],Q=typeof Q=="function"?Q:null),Q&&(Q=Q.call(W))){if(W=Q.next(),!W.done){var we=[];do we.push(W.value),W=Q.next();while(!W.done);lt(D,M,we)}return}throw D=Object.prototype.toString.call(W),Error(e(31,D==="[object Object]"?"object with keys {"+Object.keys(W).join(", ")+"}":D))}typeof W=="string"?(Q=M.blockedSegment,Q.lastPushedText=je(M.blockedSegment.chunks,W,D.responseState,Q.lastPushedText)):typeof W=="number"&&(Q=M.blockedSegment,Q.lastPushedText=je(M.blockedSegment.chunks,""+W,D.responseState,Q.lastPushedText))}function lt(D,M,W){for(var Q=W.length,we=0;we<Q;we++){var xe=M.treeContext;M.treeContext=Nr(xe,Q,we);try{Tt(D,M,W[we])}finally{M.treeContext=xe}}}function Tt(D,M,W){var Q=M.blockedSegment.formatContext,we=M.legacyContext,xe=M.context;try{return We(D,M,W)}catch(gt){if(fo(),typeof gt=="object"&>!==null&&typeof gt.then=="function"){W=gt;var Ne=M.blockedSegment,Ge=V(D,Ne.chunks.length,null,Ne.formatContext,Ne.lastPushedText,!0);Ne.children.push(Ge),Ne.lastPushedText=!1,D=j(D,M.node,M.blockedBoundary,Ge,M.abortSet,M.legacyContext,M.context,M.treeContext).ping,W.then(D,D),M.blockedSegment.formatContext=Q,M.legacyContext=we,M.context=xe,lr(xe)}else throw M.blockedSegment.formatContext=Q,M.legacyContext=we,M.context=xe,lr(xe),gt}}function Et(D){var M=D.blockedBoundary;D=D.blockedSegment,D.status=3,jr(this,M,D)}function Rn(D,M,W){var Q=D.blockedBoundary;D.blockedSegment.status=3,Q===null?(M.allPendingTasks--,M.status!==2&&(M.status=2,M.destination!==null&&M.destination.close())):(Q.pendingTasks--,Q.forceClientRender||(Q.forceClientRender=!0,D=W===void 0?Error(e(432)):W,Q.errorDigest=M.onError(D),Q.parentFlushed&&M.clientRenderedBoundaries.push(Q)),Q.fallbackAbortableTasks.forEach(function(we){return Rn(we,M,W)}),Q.fallbackAbortableTasks.clear(),M.allPendingTasks--,M.allPendingTasks===0&&(Q=M.onAllReady,Q()))}function un(D,M){if(M.chunks.length===0&&M.children.length===1&&M.children[0].boundary===null){var W=M.children[0];W.id=M.id,W.parentFlushed=!0,W.status===1&&un(D,W)}else D.completedSegments.push(M)}function jr(D,M,W){if(M===null){if(W.parentFlushed){if(D.completedRootSegment!==null)throw Error(e(389));D.completedRootSegment=W}D.pendingRootTasks--,D.pendingRootTasks===0&&(D.onShellError=_,M=D.onShellReady,M())}else M.pendingTasks--,M.forceClientRender||(M.pendingTasks===0?(W.parentFlushed&&W.status===1&&un(M,W),M.parentFlushed&&D.completedBoundaries.push(M),M.fallbackAbortableTasks.forEach(Et,D),M.fallbackAbortableTasks.clear()):W.parentFlushed&&W.status===1&&(un(M,W),M.completedSegments.length===1&&M.parentFlushed&&D.partialBoundaries.push(M)));D.allPendingTasks--,D.allPendingTasks===0&&(D=D.onAllReady,D())}function Br(D){if(D.status!==2){var M=pt,W=b.current;b.current=cr;var Q=h;h=D.responseState;try{var we=D.pingedTasks,xe;for(xe=0;xe<we.length;xe++){var Ne=we[xe],Ge=D,gt=Ne.blockedSegment;if(gt.status===0){lr(Ne.context);try{We(Ge,Ne,Ne.node),gt.lastPushedText&>.textEmbedded&>.chunks.push(De),Ne.abortSet.delete(Ne),gt.status=1,jr(Ge,Ne.blockedBoundary,gt)}catch($n){if(fo(),typeof $n=="object"&&$n!==null&&typeof $n.then=="function"){var Ot=Ne.ping;$n.then(Ot,Ot)}else{Ne.abortSet.delete(Ne),gt.status=4;var St=Ne.blockedBoundary,yt=$n,In=ae(Ge,yt);if(St===null?te(Ge,yt):(St.pendingTasks--,St.forceClientRender||(St.forceClientRender=!0,St.errorDigest=In,St.parentFlushed&&Ge.clientRenderedBoundaries.push(St))),Ge.allPendingTasks--,Ge.allPendingTasks===0){var bn=Ge.onAllReady;bn()}}}finally{}}}we.splice(0,xe),D.destination!==null&&go(D,D.destination)}catch($n){ae(D,$n),te(D,$n)}finally{h=Q,b.current=W,W===cr&&lr(M)}}}function Lt(D,M,W){switch(W.parentFlushed=!0,W.status){case 0:var Q=W.id=D.nextSegmentId++;return W.lastPushedText=!1,W.textEmbedded=!1,D=D.responseState,i(M,on),i(M,D.placeholderPrefix),D=f(Q.toString(16)),i(M,D),o(M,Hi);case 1:W.status=2;var we=!0;Q=W.chunks;var xe=0;W=W.children;for(var Ne=0;Ne<W.length;Ne++){for(we=W[Ne];xe<we.index;xe++)i(M,Q[xe]);we=$r(D,M,we)}for(;xe<Q.length-1;xe++)i(M,Q[xe]);return xe<Q.length&&(we=o(M,Q[xe])),we;default:throw Error(e(390))}}function $r(D,M,W){var Q=W.boundary;if(Q===null)return Lt(D,M,W);if(Q.parentFlushed=!0,Q.forceClientRender)Q=Q.errorDigest,o(M,Nn),i(M,yr),Q&&(i(M,Xr),i(M,f(S(Q))),i(M,qr)),o(M,Ao),Lt(D,M,W);else if(0<Q.pendingTasks){Q.rootSegmentID=D.nextSegmentId++,0<Q.completedSegments.length&&D.partialBoundaries.push(Q);var we=D.responseState,xe=we.nextSuspenseID++;we=p(we.boundaryPrefix+xe.toString(16)),Q=Q.id=we,Un(M,D.responseState,Q),Lt(D,M,W)}else if(Q.byteSize>D.progressiveChunkSize)Q.rootSegmentID=D.nextSegmentId++,D.completedBoundaries.push(Q),Un(M,D.responseState,Q.id),Lt(D,M,W);else{if(o(M,Ui),W=Q.completedSegments,W.length!==1)throw Error(e(391));$r(D,M,W[0])}return o(M,Rr)}function jt(D,M,W){return er(M,D.responseState,W.formatContext,W.id),$r(D,M,W),Ir(M,W.formatContext)}function Qt(D,M,W){for(var Q=W.completedSegments,we=0;we<Q.length;we++)po(D,M,W,Q[we]);if(Q.length=0,D=D.responseState,Q=W.id,W=W.rootSegmentID,i(M,D.startInlineScript),D.sentCompleteBoundaryFunction?i(M,tr):(D.sentCompleteBoundaryFunction=!0,i(M,Mr)),Q===null)throw Error(e(395));return W=f(W.toString(16)),i(M,Q),i(M,Yi),i(M,D.segmentPrefix),i(M,W),o(M,Oi)}function po(D,M,W,Q){if(Q.status===2)return!0;var we=Q.id;if(we===-1){if((Q.id=W.rootSegmentID)===-1)throw Error(e(392));return jt(D,M,Q)}return jt(D,M,Q),D=D.responseState,i(M,D.startInlineScript),D.sentCompleteSegmentFunction?i(M,di):(D.sentCompleteSegmentFunction=!0,i(M,Ar)),i(M,D.segmentPrefix),we=f(we.toString(16)),i(M,we),i(M,Jr),i(M,D.placeholderPrefix),i(M,we),o(M,wr)}function go(D,M){n=new Uint8Array(512),r=0;try{var W=D.completedRootSegment;if(W!==null&&D.pendingRootTasks===0){$r(D,M,W),D.completedRootSegment=null;var Q=D.responseState.bootstrapChunks;for(W=0;W<Q.length-1;W++)i(M,Q[W]);W<Q.length&&o(M,Q[W])}var we=D.clientRenderedBoundaries,xe;for(xe=0;xe<we.length;xe++){var Ne=we[xe];Q=M;var Ge=D.responseState,gt=Ne.id,Ot=Ne.errorDigest,St=Ne.errorMessage,yt=Ne.errorComponentStack;if(i(Q,Ge.startInlineScript),Ge.sentClientRenderFunction?i(Q,yn):(Ge.sentClientRenderFunction=!0,i(Q,ar)),gt===null)throw Error(e(395));i(Q,gt),i(Q,Lr),(Ot||St||yt)&&(i(Q,hi),i(Q,f(xr(Ot||"")))),(St||yt)&&(i(Q,hi),i(Q,f(xr(St||"")))),yt&&(i(Q,hi),i(Q,f(xr(yt)))),o(Q,Fr)}we.splice(0,xe);var In=D.completedBoundaries;for(xe=0;xe<In.length;xe++)Qt(D,M,In[xe]);In.splice(0,xe),a(M),n=new Uint8Array(512),r=0;var bn=D.partialBoundaries;for(xe=0;xe<bn.length;xe++){var $n=bn[xe];e:{we=D,Ne=M;var ss=$n.completedSegments;for(Ge=0;Ge<ss.length;Ge++)if(!po(we,Ne,$n,ss[Ge])){Ge++,ss.splice(0,Ge);var fa=!1;break e}ss.splice(0,Ge),fa=!0}if(!fa){D.destination=null,xe++,bn.splice(0,xe);return}}bn.splice(0,xe);var mo=D.completedBoundaries;for(xe=0;xe<mo.length;xe++)Qt(D,M,mo[xe]);mo.splice(0,xe)}finally{a(M),D.allPendingTasks===0&&D.pingedTasks.length===0&&D.clientRenderedBoundaries.length===0&&D.completedBoundaries.length===0&&M.close()}}function Tr(D,M){try{var W=D.abortableTasks;W.forEach(function(Q){return Rn(Q,D,M)}),W.clear(),D.destination!==null&&go(D,D.destination)}catch(Q){ae(D,Q),te(D,Q)}}return Nh.renderToReadableStream=function(D,M){return new Promise(function(W,Q){var we,xe,Ne=new Promise(function(St,yt){xe=St,we=yt}),Ge=L(D,Ae(M?M.identifierPrefix:void 0,M?M.nonce:void 0,M?M.bootstrapScriptContent:void 0,M?M.bootstrapScripts:void 0,M?M.bootstrapModules:void 0),ye(M?M.namespaceURI:void 0),M?M.progressiveChunkSize:void 0,M?M.onError:void 0,xe,function(){var St=new ReadableStream({type:"bytes",pull:function(yt){if(Ge.status===1)Ge.status=2,y(yt,Ge.fatalError);else if(Ge.status!==2&&Ge.destination===null){Ge.destination=yt;try{go(Ge,yt)}catch(In){ae(Ge,In),te(Ge,In)}}},cancel:function(){Tr(Ge)}},{highWaterMark:0});St.allReady=Ne,W(St)},function(St){Ne.catch(function(){}),Q(St)},we);if(M&&M.signal){var gt=M.signal,Ot=function(){Tr(Ge,gt.reason),gt.removeEventListener("abort",Ot)};gt.addEventListener("abort",Ot)}Br(Ge)})},Nh.version="18.3.1",Nh}var cc={};/**
|
|
58
|
+
* @license React
|
|
59
|
+
* react-dom-server-legacy.browser.development.js
|
|
60
|
+
*
|
|
61
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the MIT license found in the
|
|
64
|
+
* LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/var O1;function t6(){return O1||(O1=1,process.env.NODE_ENV!=="production"&&function(){var t=z,e="18.3.1",n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(l){{for(var d=arguments.length,g=new Array(d>1?d-1:0),x=1;x<d;x++)g[x-1]=arguments[x];o("warn",l,g)}}function i(l){{for(var d=arguments.length,g=new Array(d>1?d-1:0),x=1;x<d;x++)g[x-1]=arguments[x];o("error",l,g)}}function o(l,d,g){{var x=n.ReactDebugCurrentFrame,O=x.getStackAddendum();O!==""&&(d+="%s",g=g.concat([O]));var B=g.map(function(G){return String(G)});B.unshift("Warning: "+d),Function.prototype.apply.call(console[l],console,B)}}function a(l){l()}function c(l){}function f(l,d){p(l,d)}function p(l,d){return l.push(d)}function y(l){}function m(l){l.push(null)}function T(l){return l}function E(l){return l}function I(l,d){l.destroy(d)}function A(l){{var d=typeof Symbol=="function"&&Symbol.toStringTag,g=d&&l[Symbol.toStringTag]||l.constructor.name||"Object";return g}}function F(l){try{return R(l),!1}catch{return!0}}function R(l){return""+l}function U(l,d){if(F(l))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",d,A(l)),R(l)}function H(l,d){if(F(l))return i("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",d,A(l)),R(l)}function ne(l){if(F(l))return i("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",A(l)),R(l)}var Z=Object.prototype.hasOwnProperty,ce=0,S=1,re=2,ie=3,Pe=4,Ke=5,$e=6,tt=":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",nt=tt+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ge=new RegExp("^["+tt+"]["+nt+"]*$"),_e={},Re={};function Ae(l){return Z.call(Re,l)?!0:Z.call(_e,l)?!1:ge.test(l)?(Re[l]=!0,!0):(_e[l]=!0,i("Invalid attribute name: `%s`",l),!1)}function et(l,d,g,x){if(g!==null&&g.type===ce)return!1;switch(typeof d){case"function":case"symbol":return!0;case"boolean":{if(g!==null)return!g.acceptsBooleans;var O=l.toLowerCase().slice(0,5);return O!=="data-"&&O!=="aria-"}default:return!1}}function ye(l){return De.hasOwnProperty(l)?De[l]:null}function ue(l,d,g,x,O,B,G){this.acceptsBooleans=d===re||d===ie||d===Pe,this.attributeName=x,this.attributeNamespace=O,this.mustUseProperty=g,this.propertyName=l,this.type=d,this.sanitizeURL=B,this.removeEmptyString=G}var De={},je=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];je.forEach(function(l){De[l]=new ue(l,ce,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var d=l[0],g=l[1];De[d]=new ue(d,S,!1,g,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){De[l]=new ue(l,re,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){De[l]=new ue(l,re,!1,l,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(l){De[l]=new ue(l,ie,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){De[l]=new ue(l,ie,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){De[l]=new ue(l,Pe,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){De[l]=new ue(l,$e,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){De[l]=new ue(l,Ke,!1,l.toLowerCase(),null,!1,!1)});var Ie=/[\-\:]([a-z])/g,Be=function(l){return l[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(l){var d=l.replace(Ie,Be);De[d]=new ue(d,S,!1,l,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(l){var d=l.replace(Ie,Be);De[d]=new ue(d,S,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var d=l.replace(Ie,Be);De[d]=new ue(d,S,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){De[l]=new ue(l,S,!1,l.toLowerCase(),null,!1,!1)});var Ue="xlinkHref";De[Ue]=new ue("xlinkHref",S,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){De[l]=new ue(l,S,!1,l.toLowerCase(),null,!0,!0)});var it={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function rt(l,d){return l+d.charAt(0).toUpperCase()+d.substring(1)}var st=["Webkit","ms","Moz","O"];Object.keys(it).forEach(function(l){st.forEach(function(d){it[rt(d,l)]=it[l]})});var Qe={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function ft(l,d){Qe[d.type]||d.onChange||d.onInput||d.readOnly||d.disabled||d.value==null||i("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),d.onChange||d.readOnly||d.disabled||d.checked==null||i("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Xe(l,d){if(l.indexOf("-")===-1)return typeof d.is=="string";switch(l){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 It={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Mt={},Vn=new RegExp("^(aria)-["+nt+"]*$"),vr=new RegExp("^(aria)[A-Z]["+nt+"]*$");function Hn(l,d){{if(Z.call(Mt,d)&&Mt[d])return!0;if(vr.test(d)){var g="aria-"+d.slice(4).toLowerCase(),x=It.hasOwnProperty(g)?g:null;if(x==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",d),Mt[d]=!0,!0;if(d!==x)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",d,x),Mt[d]=!0,!0}if(Vn.test(d)){var O=d.toLowerCase(),B=It.hasOwnProperty(O)?O:null;if(B==null)return Mt[d]=!0,!1;if(d!==B)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",d,B),Mt[d]=!0,!0}}return!0}function Sn(l,d){{var g=[];for(var x in d){var O=Hn(l,x);O||g.push(x)}var B=g.map(function(G){return"`"+G+"`"}).join(", ");g.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",B,l):g.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",B,l)}}function Vi(l,d){Xe(l,d)||Sn(l,d)}var Pr=!1;function Jn(l,d){{if(l!=="input"&&l!=="textarea"&&l!=="select")return;d!=null&&d.value===null&&!Pr&&(Pr=!0,l==="select"&&d.multiple?i("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",l):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",l))}}var sn={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},fn=function(){};{var dn={},ht=/^on./,Dn=/^on[^A-Z]/,ai=new RegExp("^(aria)-["+nt+"]*$"),on=new RegExp("^(aria)[A-Z]["+nt+"]*$");fn=function(l,d,g,x){if(Z.call(dn,d)&&dn[d])return!0;var O=d.toLowerCase();if(O==="onfocusin"||O==="onfocusout")return i("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),dn[d]=!0,!0;if(x!=null){var B=x.registrationNameDependencies,G=x.possibleRegistrationNames;if(B.hasOwnProperty(d))return!0;var oe=G.hasOwnProperty(O)?G[O]:null;if(oe!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",d,oe),dn[d]=!0,!0;if(ht.test(d))return i("Unknown event handler property `%s`. It will be ignored.",d),dn[d]=!0,!0}else if(ht.test(d))return Dn.test(d)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",d),dn[d]=!0,!0;if(ai.test(d)||on.test(d))return!0;if(O==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),dn[d]=!0,!0;if(O==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),dn[d]=!0,!0;if(O==="is"&&g!==null&&g!==void 0&&typeof g!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof g),dn[d]=!0,!0;if(typeof g=="number"&&isNaN(g))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",d),dn[d]=!0,!0;var Se=ye(d),He=Se!==null&&Se.type===ce;if(sn.hasOwnProperty(O)){var qe=sn[O];if(qe!==d)return i("Invalid DOM property `%s`. Did you mean `%s`?",d,qe),dn[d]=!0,!0}else if(!He&&d!==O)return i("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",d,O),dn[d]=!0,!0;return typeof g=="boolean"&&et(d,g,Se)?(g?i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',g,d,d,g,d):i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',g,d,d,g,d,d,d),dn[d]=!0,!0):He?!0:et(d,g,Se)?(dn[d]=!0,!1):((g==="false"||g==="true")&&Se!==null&&Se.type===ie&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",g,d,g==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',d,g),dn[d]=!0),!0)}}var Hi=function(l,d,g){{var x=[];for(var O in d){var B=fn(l,O,d[O],g);B||x.push(O)}var G=x.map(function(oe){return"`"+oe+"`"}).join(", ");x.length===1?i("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",G,l):x.length>1&&i("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",G,l)}};function Ui(l,d,g){Xe(l,d)||Hi(l,d,g)}var Wi=function(){};{var Or=/^(?:webkit|moz|o)[A-Z]/,Nn=/^-ms-/,Rr=/-(.)/g,yr=/;\s*$/,qr={},Xr={},Ao=!1,Un=!1,Kr=function(l){return l.replace(Rr,function(d,g){return g.toUpperCase()})},Qn=function(l){qr.hasOwnProperty(l)&&qr[l]||(qr[l]=!0,i("Unsupported style property %s. Did you mean %s?",l,Kr(l.replace(Nn,"ms-"))))},Wt=function(l){qr.hasOwnProperty(l)&&qr[l]||(qr[l]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",l,l.charAt(0).toUpperCase()+l.slice(1)))},li=function(l,d){Xr.hasOwnProperty(d)&&Xr[d]||(Xr[d]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,l,d.replace(yr,"")))},zi=function(l,d){Ao||(Ao=!0,i("`NaN` is an invalid value for the `%s` css style property.",l))},_n=function(l,d){Un||(Un=!0,i("`Infinity` is an invalid value for the `%s` css style property.",l))};Wi=function(l,d){l.indexOf("-")>-1?Qn(l):Or.test(l)?Wt(l):yr.test(d)&&li(l,d),typeof d=="number"&&(isNaN(d)?zi(l,d):isFinite(d)||_n(l,d))}}var hn=Wi,ui=/["'&<>]/;function ci(l){ne(l);var d=""+l,g=ui.exec(d);if(!g)return d;var x,O="",B,G=0;for(B=g.index;B<d.length;B++){switch(d.charCodeAt(B)){case 34:x=""";break;case 38:x="&";break;case 39:x="'";break;case 60:x="<";break;case 62:x=">";break;default:continue}G!==B&&(O+=d.substring(G,B)),G=B+1,O+=x}return G!==B?O+d.substring(G,B):O}function Tn(l){return typeof l=="boolean"||typeof l=="number"?""+l:ci(l)}var ao=/([A-Z])/g,br=/^ms-/;function fi(l){return l.replace(ao,"-$1").toLowerCase().replace(br,"-ms-")}var an=/^[\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,_i=!1;function Ls(l){!_i&&an.test(l)&&(_i=!0,i("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(l)))}var Fs=Array.isArray;function Zr(l){return Fs(l)}var lo="<script>";function uo(l,d,g,x,O){var B=l===void 0?"":l,G=lo,oe=[];return{bootstrapChunks:oe,startInlineScript:G,placeholderPrefix:B+"P:",segmentPrefix:B+"S:",boundaryPrefix:B+"B:",idPrefix:B,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Pi=0,er=1,Ir=2,Ar=3,di=4,Jr=5,wr=6,Mr=7;function tr(l,d){return{insertionMode:l,selectedValue:d}}function Yi(l,d,g){switch(d){case"select":return tr(er,g.value!=null?g.value:g.defaultValue);case"svg":return tr(Ir,null);case"math":return tr(Ar,null);case"foreignObject":return tr(er,null);case"table":return tr(di,null);case"thead":case"tbody":case"tfoot":return tr(Jr,null);case"colgroup":return tr(Mr,null);case"tr":return tr(wr,null)}return l.insertionMode>=di||l.insertionMode===Pi?tr(er,null):l}var Oi=null;function ar(l){var d=l.nextSuspenseID++;return l.boundaryPrefix+d.toString(16)}function yn(l,d,g){var x=l.idPrefix,O=":"+x+"R"+d;return g>0&&(O+="H"+g.toString(32)),O+":"}function Lr(l){return Tn(l)}var Fr="<!-- -->";function hi(l,d,g,x){return d===""?x:(x&&l.push(Fr),l.push(Lr(d)),!0)}function pi(l,d,g,x){g&&x&&l.push(Fr)}var xr=new Map;function Qr(l){var d=xr.get(l);if(d!==void 0)return d;var g=Tn(fi(l));return xr.set(l,g),g}var Wn=' style="',gi=":",mi=";";function Ri(l,d,g){if(typeof g!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var x=!0;for(var O in g)if(Z.call(g,O)){var B=g[O];if(!(B==null||typeof B=="boolean"||B==="")){var G=void 0,oe=void 0,Se=O.indexOf("--")===0;Se?(G=Tn(O),H(B,O),oe=Tn((""+B).trim())):(hn(O,B),G=Qr(O),typeof B=="number"?B!==0&&!Z.call(it,O)?oe=B+"px":oe=""+B:(H(B,O),oe=Tn((""+B).trim()))),x?(x=!1,l.push(Wn,G,gi,oe)):l.push(mi,G,gi,oe)}}x||l.push(Cn)}var nn=" ",jn='="',Cn='"',co='=""';function Pn(l,d,g,x){switch(g){case"style":{Ri(l,d,x);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(g.length>2&&(g[0]==="o"||g[0]==="O")&&(g[1]==="n"||g[1]==="N"))){var O=ye(g);if(O!==null){switch(typeof x){case"function":case"symbol":return;case"boolean":if(!O.acceptsBooleans)return}var B=O.attributeName,G=B;switch(O.type){case ie:x&&l.push(nn,G,co);return;case Pe:x===!0?l.push(nn,G,co):x===!1||l.push(nn,G,jn,Tn(x),Cn);return;case Ke:isNaN(x)||l.push(nn,G,jn,Tn(x),Cn);break;case $e:!isNaN(x)&&x>=1&&l.push(nn,G,jn,Tn(x),Cn);break;default:O.sanitizeURL&&(U(x,B),x=""+x,Ls(x)),l.push(nn,G,jn,Tn(x),Cn)}}else if(Ae(g)){switch(typeof x){case"function":case"symbol":return;case"boolean":{var oe=g.toLowerCase().slice(0,5);if(oe!=="data-"&&oe!=="aria-")return}}l.push(nn,g,jn,Tn(x),Cn)}}}var On=">",k="/>";function N(l,d,g){if(d!=null){if(g!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof d!="object"||!("__html"in d))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var x=d.__html;x!=null&&(ne(x),l.push(""+x))}}var q=!1,ee=!1,Ee=!1,ve=!1,Me=!1,Ze=!1,mt=!1;function vt(l,d){{var g=l[d];if(g!=null){var x=Zr(g);l.multiple&&!x?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",d):!l.multiple&&x&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",d)}}}function pt(l,d,g){ft("select",d),vt(d,"value"),vt(d,"defaultValue"),d.value!==void 0&&d.defaultValue!==void 0&&!Ee&&(i("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Ee=!0),l.push(Sr("select"));var x=null,O=null;for(var B in d)if(Z.call(d,B)){var G=d[B];if(G==null)continue;switch(B){case"children":x=G;break;case"dangerouslySetInnerHTML":O=G;break;case"defaultValue":case"value":break;default:Pn(l,g,B,G);break}}return l.push(On),N(l,O,x),x}function Ft(l){var d="";return t.Children.forEach(l,function(g){g!=null&&(d+=g,!Me&&typeof g!="string"&&typeof g!="number"&&(Me=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),d}var Bn=' selected=""';function zn(l,d,g,x){var O=x.selectedValue;l.push(Sr("option"));var B=null,G=null,oe=null,Se=null;for(var He in d)if(Z.call(d,He)){var qe=d[He];if(qe==null)continue;switch(He){case"children":B=qe;break;case"selected":oe=qe,mt||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),mt=!0);break;case"dangerouslySetInnerHTML":Se=qe;break;case"value":G=qe;default:Pn(l,g,He,qe);break}}if(O!=null){var ot;if(G!==null?(U(G,"value"),ot=""+G):(Se!==null&&(Ze||(Ze=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),ot=Ft(B)),Zr(O))for(var xt=0;xt<O.length;xt++){U(O[xt],"value");var en=""+O[xt];if(en===ot){l.push(Bn);break}}else U(O,"select.value"),""+O===ot&&l.push(Bn)}else oe&&l.push(Bn);return l.push(On),N(l,Se,B),B}function En(l,d,g){ft("input",d),d.checked!==void 0&&d.defaultChecked!==void 0&&!ee&&(i("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",d.type),ee=!0),d.value!==void 0&&d.defaultValue!==void 0&&!q&&(i("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",d.type),q=!0),l.push(Sr("input"));var x=null,O=null,B=null,G=null;for(var oe in d)if(Z.call(d,oe)){var Se=d[oe];if(Se==null)continue;switch(oe){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":G=Se;break;case"defaultValue":O=Se;break;case"checked":B=Se;break;case"value":x=Se;break;default:Pn(l,g,oe,Se);break}}return B!==null?Pn(l,g,"checked",B):G!==null&&Pn(l,g,"checked",G),x!==null?Pn(l,g,"value",x):O!==null&&Pn(l,g,"value",O),l.push(k),null}function ei(l,d,g){ft("textarea",d),d.value!==void 0&&d.defaultValue!==void 0&&!ve&&(i("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),ve=!0),l.push(Sr("textarea"));var x=null,O=null,B=null;for(var G in d)if(Z.call(d,G)){var oe=d[G];if(oe==null)continue;switch(G){case"children":B=oe;break;case"value":x=oe;break;case"defaultValue":O=oe;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:Pn(l,g,G,oe);break}}if(x===null&&O!==null&&(x=O),l.push(On),B!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),x!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Zr(B)){if(B.length>1)throw new Error("<textarea> can only have at most one child.");ne(B[0]),x=""+B[0]}ne(B),x=""+B}return typeof x=="string"&&x[0]===`
|
|
66
|
+
`&&l.push(Xi),x!==null&&(U(x,"value"),l.push(Lr(""+x))),null}function lr(l,d,g,x){l.push(Sr(g));for(var O in d)if(Z.call(d,O)){var B=d[O];if(B==null)continue;switch(O){case"children":case"dangerouslySetInnerHTML":throw new Error(g+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Pn(l,x,O,B);break}}return l.push(k),null}function Gi(l,d,g){l.push(Sr("menuitem"));for(var x in d)if(Z.call(d,x)){var O=d[x];if(O==null)continue;switch(x){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:Pn(l,g,x,O);break}}return l.push(On),null}function vi(l,d,g){l.push(Sr("title"));var x=null;for(var O in d)if(Z.call(d,O)){var B=d[O];if(B==null)continue;switch(O){case"children":x=B;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:Pn(l,g,O,B);break}}l.push(On);{var G=Array.isArray(x)&&x.length<2?x[0]||null:x;Array.isArray(x)&&x.length>1?i("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):G!=null&&G.$$typeof!=null?i("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):G!=null&&typeof G!="string"&&typeof G!="number"&&i("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return x}function qi(l,d,g,x){l.push(Sr(g));var O=null,B=null;for(var G in d)if(Z.call(d,G)){var oe=d[G];if(oe==null)continue;switch(G){case"children":O=oe;break;case"dangerouslySetInnerHTML":B=oe;break;default:Pn(l,x,G,oe);break}}return l.push(On),N(l,B,O),typeof O=="string"?(l.push(Lr(O)),null):O}function Nr(l,d,g,x){l.push(Sr(g));var O=null,B=null;for(var G in d)if(Z.call(d,G)){var oe=d[G];if(oe==null)continue;switch(G){case"children":O=oe;break;case"dangerouslySetInnerHTML":B=oe;break;case"style":Ri(l,x,oe);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Ae(G)&&typeof oe!="function"&&typeof oe!="symbol"&&l.push(nn,G,jn,Tn(oe),Cn);break}}return l.push(On),N(l,B,O),O}var Xi=`
|
|
67
|
+
`;function Wa(l,d,g,x){l.push(Sr(g));var O=null,B=null;for(var G in d)if(Z.call(d,G)){var oe=d[G];if(oe==null)continue;switch(G){case"children":O=oe;break;case"dangerouslySetInnerHTML":B=oe;break;default:Pn(l,x,G,oe);break}}if(l.push(On),B!=null){if(O!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof B!="object"||!("__html"in B))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var Se=B.__html;Se!=null&&(typeof Se=="string"&&Se.length>0&&Se[0]===`
|
|
68
|
+
`?l.push(Xi,Se):(ne(Se),l.push(""+Se)))}return typeof O=="string"&&O[0]===`
|
|
69
|
+
`&&l.push(Xi),O}var Ns=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,is=new Map;function Sr(l){var d=is.get(l);if(d===void 0){if(!Ns.test(l))throw new Error("Invalid tag: "+l);d="<"+l,is.set(l,d)}return d}var za="<!DOCTYPE html>";function yi(l,d,g,x,O){switch(Vi(d,g),Jn(d,g),Ui(d,g,null),!g.suppressContentEditableWarning&&g.contentEditable&&g.children!=null&&i("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),O.insertionMode!==Ir&&O.insertionMode!==Ar&&d.indexOf("-")===-1&&typeof g.is!="string"&&d.toLowerCase()!==d&&i("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",d),d){case"select":return pt(l,g,x);case"option":return zn(l,g,x,O);case"textarea":return ei(l,g,x);case"input":return En(l,g,x);case"menuitem":return Gi(l,g,x);case"title":return vi(l,g,x);case"listing":case"pre":return Wa(l,g,d,x);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return lr(l,g,d,x);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 qi(l,g,d,x);case"html":return O.insertionMode===Pi&&l.push(za),qi(l,g,d,x);default:return d.indexOf("-")===-1&&typeof g.is!="string"?qi(l,g,d,x):Nr(l,g,d,x)}}var js="</",os=">";function rn(l,d,g){switch(d){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:l.push(js,d,os)}}function Gt(l,d){for(var g=d.bootstrapChunks,x=0;x<g.length-1;x++)f(l,g[x]);return x<g.length?p(l,g[x]):!0}var Kt='<template id="',Ii='"></template>';function ti(l,d,g){f(l,Kt),f(l,d.placeholderPrefix);var x=g.toString(16);return f(l,x),p(l,Ii)}var Mo="<!--$-->",bi='<!--$?--><template id="',ur='"></template>',Bs="<!--$!-->",fo="<!--/$-->",ua="<template",ln='"',Lo=' data-dgst="',wi=' data-msg="',ca=' data-stck="',ho="></template>";function cr(l,d){return p(l,Mo)}function h(l,d,g){if(f(l,bi),g===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return f(l,g),p(l,ur)}function b(l,d,g,x,O){var B;return B=p(l,Bs),f(l,ua),g&&(f(l,Lo),f(l,Tn(g)),f(l,ln)),x&&(f(l,wi),f(l,Tn(x)),f(l,ln)),O&&(f(l,ca),f(l,Tn(O)),f(l,ln)),B=p(l,ho),B}function C(l,d){return p(l,fo)}function _(l,d){return p(l,fo)}function L(l,d){return p(l,fo)}var j='<div hidden id="',V='">',ae="</div>",te='<svg aria-hidden="true" style="display:none" id="',me='">',Oe="</svg>",Le='<math aria-hidden="true" style="display:none" id="',Te='">',We="</math>",lt='<table hidden id="',Tt='">',Et="</table>",Rn='<table hidden><tbody id="',un='">',jr="</tbody></table>",Br='<table hidden><tr id="',Lt='">',$r="</tr></table>",jt='<table hidden><colgroup id="',Qt='">',po="</colgroup></table>";function go(l,d,g,x){switch(g.insertionMode){case Pi:case er:return f(l,j),f(l,d.segmentPrefix),f(l,x.toString(16)),p(l,V);case Ir:return f(l,te),f(l,d.segmentPrefix),f(l,x.toString(16)),p(l,me);case Ar:return f(l,Le),f(l,d.segmentPrefix),f(l,x.toString(16)),p(l,Te);case di:return f(l,lt),f(l,d.segmentPrefix),f(l,x.toString(16)),p(l,Tt);case Jr:return f(l,Rn),f(l,d.segmentPrefix),f(l,x.toString(16)),p(l,un);case wr:return f(l,Br),f(l,d.segmentPrefix),f(l,x.toString(16)),p(l,Lt);case Mr:return f(l,jt),f(l,d.segmentPrefix),f(l,x.toString(16)),p(l,Qt);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Tr(l,d){switch(d.insertionMode){case Pi:case er:return p(l,ae);case Ir:return p(l,Oe);case Ar:return p(l,We);case di:return p(l,Et);case Jr:return p(l,jr);case wr:return p(l,$r);case Mr:return p(l,po);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var D="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",M='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',W='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',Q=D+';$RS("',we='$RS("',xe='","',Ne='")<\/script>';function Ge(l,d,g){f(l,d.startInlineScript),d.sentCompleteSegmentFunction?f(l,we):(d.sentCompleteSegmentFunction=!0,f(l,Q)),f(l,d.segmentPrefix);var x=g.toString(16);return f(l,x),f(l,xe),f(l,d.placeholderPrefix),f(l,x),p(l,Ne)}var gt=M+';$RC("',Ot='$RC("',St='","',yt='")<\/script>';function In(l,d,g,x){if(f(l,d.startInlineScript),d.sentCompleteBoundaryFunction?f(l,Ot):(d.sentCompleteBoundaryFunction=!0,f(l,gt)),g===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var O=x.toString(16);return f(l,g),f(l,St),f(l,d.segmentPrefix),f(l,O),p(l,yt)}var bn=W+';$RX("',$n='$RX("',ss='"',fa=")<\/script>",mo=",";function ni(l,d,g,x,O,B){if(f(l,d.startInlineScript),d.sentClientRenderFunction?f(l,$n):(d.sentClientRenderFunction=!0,f(l,bn)),g===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return f(l,g),f(l,ss),(x||O||B)&&(f(l,mo),f(l,Ai(x||""))),(O||B)&&(f(l,mo),f(l,Ai(O||""))),B&&(f(l,mo),f(l,Ai(B))),p(l,fa)}var Ya=/[<\u2028\u2029]/g;function Ai(l){var d=JSON.stringify(l);return d.replace(Ya,function(g){switch(g){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function da(l,d){var g=uo(d);return{bootstrapChunks:g.bootstrapChunks,startInlineScript:g.startInlineScript,placeholderPrefix:g.placeholderPrefix,segmentPrefix:g.segmentPrefix,boundaryPrefix:g.boundaryPrefix,idPrefix:g.idPrefix,nextSuspenseID:g.nextSuspenseID,sentCompleteSegmentFunction:g.sentCompleteSegmentFunction,sentCompleteBoundaryFunction:g.sentCompleteBoundaryFunction,sentClientRenderFunction:g.sentClientRenderFunction,generateStaticMarkup:l}}function as(){return{insertionMode:er,selectedValue:null}}function ri(l,d,g,x){return g.generateStaticMarkup?(l.push(Tn(d)),!1):hi(l,d,g,x)}function vo(l,d,g,x){if(!d.generateStaticMarkup)return pi(l,d,g,x)}function Ga(l,d){return d.generateStaticMarkup?!0:cr(l)}function Pu(l,d,g,x,O){return d.generateStaticMarkup?!0:b(l,d,g,x,O)}function ha(l,d){return d.generateStaticMarkup?!0:C(l)}function yo(l,d){return d.generateStaticMarkup?!0:L(l)}var cn=Object.assign,Il=Symbol.for("react.element"),pa=Symbol.for("react.portal"),$s=Symbol.for("react.fragment"),J=Symbol.for("react.strict_mode"),he=Symbol.for("react.profiler"),Ce=Symbol.for("react.provider"),ke=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),fe=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),Fe=Symbol.for("react.memo"),Ve=Symbol.for("react.lazy"),ut=Symbol.for("react.scope"),dt=Symbol.for("react.debug_trace_mode"),at=Symbol.for("react.legacy_hidden"),At=Symbol.for("react.default_value"),wt=Symbol.iterator,Vt="@@iterator";function Yn(l){if(l===null||typeof l!="object")return null;var d=wt&&l[wt]||l[Vt];return typeof d=="function"?d:null}function nr(l,d,g){var x=l.displayName;if(x)return x;var O=d.displayName||d.name||"";return O!==""?g+"("+O+")":g}function An(l){return l.displayName||"Context"}function zt(l){if(l==null)return null;if(typeof l.tag=="number"&&i("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case $s:return"Fragment";case pa:return"Portal";case he:return"Profiler";case J:return"StrictMode";case fe:return"Suspense";case le:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case ke:var d=l;return An(d)+".Consumer";case Ce:var g=l;return An(g._context)+".Provider";case K:return nr(l,l.render,"ForwardRef");case Fe:var x=l.displayName||null;return x!==null?x:zt(l.type)||"Memo";case Ve:{var O=l,B=O._payload,G=O._init;try{return zt(G(B))}catch{return null}}}return null}var Vr=0,kt,Ou,pn,Fo,Ru,Iu,Au;function ga(){}ga.__reactDisabledLog=!0;function No(){{if(Vr===0){kt=console.log,Ou=console.info,pn=console.warn,Fo=console.error,Ru=console.group,Iu=console.groupCollapsed,Au=console.groupEnd;var l={configurable:!0,enumerable:!0,value:ga,writable:!0};Object.defineProperties(console,{info:l,log:l,warn:l,error:l,group:l,groupCollapsed:l,groupEnd:l})}Vr++}}function qa(){{if(Vr--,Vr===0){var l={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:cn({},l,{value:kt}),info:cn({},l,{value:Ou}),warn:cn({},l,{value:pn}),error:cn({},l,{value:Fo}),group:cn({},l,{value:Ru}),groupCollapsed:cn({},l,{value:Iu}),groupEnd:cn({},l,{value:Au})})}Vr<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Xa=n.ReactCurrentDispatcher,Vs;function ma(l,d,g){{if(Vs===void 0)try{throw Error()}catch(O){var x=O.stack.trim().match(/\n( *(at )?)/);Vs=x&&x[1]||""}return`
|
|
70
|
+
`+Vs+l}}var Al=!1,jo;{var Ml=typeof WeakMap=="function"?WeakMap:Map;jo=new Ml}function Ki(l,d){if(!l||Al)return"";{var g=jo.get(l);if(g!==void 0)return g}var x;Al=!0;var O=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var B;B=Xa.current,Xa.current=null,No();try{if(d){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(ir){x=ir}Reflect.construct(l,[],G)}else{try{G.call()}catch(ir){x=ir}l.call(G.prototype)}}else{try{throw Error()}catch(ir){x=ir}l()}}catch(ir){if(ir&&x&&typeof ir.stack=="string"){for(var oe=ir.stack.split(`
|
|
71
|
+
`),Se=x.stack.split(`
|
|
72
|
+
`),He=oe.length-1,qe=Se.length-1;He>=1&&qe>=0&&oe[He]!==Se[qe];)qe--;for(;He>=1&&qe>=0;He--,qe--)if(oe[He]!==Se[qe]){if(He!==1||qe!==1)do if(He--,qe--,qe<0||oe[He]!==Se[qe]){var ot=`
|
|
73
|
+
`+oe[He].replace(" at new "," at ");return l.displayName&&ot.includes("<anonymous>")&&(ot=ot.replace("<anonymous>",l.displayName)),typeof l=="function"&&jo.set(l,ot),ot}while(He>=1&&qe>=0);break}}}finally{Al=!1,Xa.current=B,qa(),Error.prepareStackTrace=O}var xt=l?l.displayName||l.name:"",en=xt?ma(xt):"";return typeof l=="function"&&jo.set(l,en),en}function Bo(l,d,g){return Ki(l,!0)}function ls(l,d,g){return Ki(l,!1)}function Bf(l){var d=l.prototype;return!!(d&&d.isReactComponent)}function Ka(l,d,g){if(l==null)return"";if(typeof l=="function")return Ki(l,Bf(l));if(typeof l=="string")return ma(l);switch(l){case fe:return ma("Suspense");case le:return ma("SuspenseList")}if(typeof l=="object")switch(l.$$typeof){case K:return ls(l.render);case Fe:return Ka(l.type,d,g);case Ve:{var x=l,O=x._payload,B=x._init;try{return Ka(B(O),d,g)}catch{}}}return""}var Mc={},va=n.ReactDebugCurrentFrame;function Hs(l){if(l){var d=l._owner,g=Ka(l.type,l._source,d?d.type:null);va.setExtraStackFrame(g)}else va.setExtraStackFrame(null)}function ya(l,d,g,x,O){{var B=Function.call.bind(Z);for(var G in l)if(B(l,G)){var oe=void 0;try{if(typeof l[G]!="function"){var Se=Error((x||"React class")+": "+g+" type `"+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[G]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Se.name="Invariant Violation",Se}oe=l[G](d,G,x,g,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(He){oe=He}oe&&!(oe instanceof Error)&&(Hs(O),i("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",x||"React class",g,G,typeof oe),Hs(null)),oe instanceof Error&&!(oe.message in Mc)&&(Mc[oe.message]=!0,Hs(O),i("Failed %s type: %s",g,oe.message),Hs(null))}}}var Ll;Ll={};var ba={};Object.freeze(ba);function Za(l,d){{var g=l.contextTypes;if(!g)return ba;var x={};for(var O in g)x[O]=d[O];{var B=zt(l)||"Unknown";ya(g,x,"context",B)}return x}}function Lc(l,d,g,x){{if(typeof l.getChildContext!="function"){{var O=zt(d)||"Unknown";Ll[O]||(Ll[O]=!0,i("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",O,O))}return g}var B=l.getChildContext();for(var G in B)if(!(G in x))throw new Error((zt(d)||"Unknown")+'.getChildContext(): key "'+G+'" is not defined in childContextTypes.');{var oe=zt(d)||"Unknown";ya(x,B,"child context",oe)}return cn({},g,B)}}var wn;wn={};var Gn=null,us=null;function Mu(l){l.context._currentValue2=l.parentValue}function cs(l){l.context._currentValue2=l.value}function Fl(l,d){if(l!==d){Mu(l);var g=l.parent,x=d.parent;if(g===null){if(x!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(x===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");Fl(g,x)}cs(d)}}function bo(l){Mu(l);var d=l.parent;d!==null&&bo(d)}function fs(l){var d=l.parent;d!==null&&fs(d),cs(l)}function wa(l,d){Mu(l);var g=l.parent;if(g===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");g.depth===d.depth?Fl(g,d):wa(g,d)}function wo(l,d){var g=d.parent;if(g===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");l.depth===g.depth?Fl(l,g):wo(l,g),cs(d)}function $o(l){var d=us,g=l;d!==g&&(d===null?fs(g):g===null?bo(d):d.depth===g.depth?Fl(d,g):d.depth>g.depth?wa(d,g):wo(d,g),us=g)}function xa(l,d){var g;g=l._currentValue2,l._currentValue2=d,l._currentRenderer2!==void 0&&l._currentRenderer2!==null&&l._currentRenderer2!==wn&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),l._currentRenderer2=wn;var x=us,O={parent:x,depth:x===null?0:x.depth+1,context:l,parentValue:g,value:d};return us=O,O}function Ja(l){var d=us;if(d===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");d.context!==l&&i("The parent context is not the expected context. This is probably a bug in React.");{var g=d.parentValue;g===At?d.context._currentValue2=d.context._defaultValue:d.context._currentValue2=g,l._currentRenderer2!==void 0&&l._currentRenderer2!==null&&l._currentRenderer2!==wn&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),l._currentRenderer2=wn}return us=d.parent}function Us(){return us}function ds(l){var d=l._currentValue2;return d}function Lu(l){return l._reactInternals}function $f(l,d){l._reactInternals=d}var Fc={},Sa={},hs,Ws,Qa,Y,Vo,Ho,Cr,$t,Nl;{hs=new Set,Ws=new Set,Qa=new Set,Cr=new Set,Y=new Set,$t=new Set,Nl=new Set;var el=new Set;Ho=function(l,d){if(!(l===null||typeof l=="function")){var g=d+"_"+l;el.has(g)||(el.add(g),i("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",d,l))}},Vo=function(l,d){if(d===void 0){var g=zt(l)||"Component";Y.has(g)||(Y.add(g),i("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",g))}}}function jl(l,d){{var g=l.constructor,x=g&&zt(g)||"ReactClass",O=x+"."+d;if(Fc[O])return;i(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
74
|
+
|
|
75
|
+
Please check the code for the %s component.`,d,d,x),Fc[O]=!0}}var xo={isMounted:function(l){return!1},enqueueSetState:function(l,d,g){var x=Lu(l);x.queue===null?jl(l,"setState"):(x.queue.push(d),g!=null&&Ho(g,"setState"))},enqueueReplaceState:function(l,d,g){var x=Lu(l);x.replace=!0,x.queue=[d],g!=null&&Ho(g,"setState")},enqueueForceUpdate:function(l,d){var g=Lu(l);g.queue===null?jl(l,"forceUpdate"):d!=null&&Ho(d,"setState")}};function Fu(l,d,g,x,O){var B=g(O,x);Vo(d,B);var G=B==null?x:cn({},x,B);return G}function Nc(l,d,g){var x=ba,O=l.contextType;if("contextType"in l){var B=O===null||O!==void 0&&O.$$typeof===ke&&O._context===void 0;if(!B&&!Nl.has(l)){Nl.add(l);var G="";O===void 0?G=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof O!="object"?G=" However, it is set to a "+typeof O+".":O.$$typeof===Ce?G=" Did you accidentally pass the Context.Provider instead?":O._context!==void 0?G=" Did you accidentally pass the Context.Consumer instead?":G=" However, it is set to an object with keys {"+Object.keys(O).join(", ")+"}.",i("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",zt(l)||"Component",G)}}typeof O=="object"&&O!==null?x=ds(O):x=g;var oe=new l(d,x);{if(typeof l.getDerivedStateFromProps=="function"&&(oe.state===null||oe.state===void 0)){var Se=zt(l)||"Component";hs.has(Se)||(hs.add(Se),i("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",Se,oe.state===null?"null":"undefined",Se))}if(typeof l.getDerivedStateFromProps=="function"||typeof oe.getSnapshotBeforeUpdate=="function"){var He=null,qe=null,ot=null;if(typeof oe.componentWillMount=="function"&&oe.componentWillMount.__suppressDeprecationWarning!==!0?He="componentWillMount":typeof oe.UNSAFE_componentWillMount=="function"&&(He="UNSAFE_componentWillMount"),typeof oe.componentWillReceiveProps=="function"&&oe.componentWillReceiveProps.__suppressDeprecationWarning!==!0?qe="componentWillReceiveProps":typeof oe.UNSAFE_componentWillReceiveProps=="function"&&(qe="UNSAFE_componentWillReceiveProps"),typeof oe.componentWillUpdate=="function"&&oe.componentWillUpdate.__suppressDeprecationWarning!==!0?ot="componentWillUpdate":typeof oe.UNSAFE_componentWillUpdate=="function"&&(ot="UNSAFE_componentWillUpdate"),He!==null||qe!==null||ot!==null){var xt=zt(l)||"Component",en=typeof l.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Qa.has(xt)||(Qa.add(xt),i(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
76
|
+
|
|
77
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
78
|
+
|
|
79
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
80
|
+
https://reactjs.org/link/unsafe-component-lifecycles`,xt,en,He!==null?`
|
|
81
|
+
`+He:"",qe!==null?`
|
|
82
|
+
`+qe:"",ot!==null?`
|
|
83
|
+
`+ot:""))}}}return oe}function jc(l,d,g){{var x=zt(d)||"Component",O=l.render;O||(d.prototype&&typeof d.prototype.render=="function"?i("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",x):i("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",x)),l.getInitialState&&!l.getInitialState.isReactClassApproved&&!l.state&&i("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",x),l.getDefaultProps&&!l.getDefaultProps.isReactClassApproved&&i("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",x),l.propTypes&&i("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",x),l.contextType&&i("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",x),l.contextTypes&&i("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",x),d.contextType&&d.contextTypes&&!$t.has(d)&&($t.add(d),i("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",x)),typeof l.componentShouldUpdate=="function"&&i("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",x),d.prototype&&d.prototype.isPureReactComponent&&typeof l.shouldComponentUpdate<"u"&&i("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",zt(d)||"A pure component"),typeof l.componentDidUnmount=="function"&&i("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",x),typeof l.componentDidReceiveProps=="function"&&i("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",x),typeof l.componentWillRecieveProps=="function"&&i("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",x),typeof l.UNSAFE_componentWillRecieveProps=="function"&&i("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",x);var B=l.props!==g;l.props!==void 0&&B&&i("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",x,x),l.defaultProps&&i("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",x,x),typeof l.getSnapshotBeforeUpdate=="function"&&typeof l.componentDidUpdate!="function"&&!Ws.has(d)&&(Ws.add(d),i("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",zt(d))),typeof l.getDerivedStateFromProps=="function"&&i("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",x),typeof l.getDerivedStateFromError=="function"&&i("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",x),typeof d.getSnapshotBeforeUpdate=="function"&&i("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",x);var G=l.state;G&&(typeof G!="object"||Zr(G))&&i("%s.state: must be set to an object or null",x),typeof l.getChildContext=="function"&&typeof d.childContextTypes!="object"&&i("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",x)}}function Bc(l,d){var g=d.state;if(typeof d.componentWillMount=="function"){if(d.componentWillMount.__suppressDeprecationWarning!==!0){var x=zt(l)||"Unknown";Sa[x]||(r(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
84
|
+
|
|
85
|
+
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
86
|
+
|
|
87
|
+
Please update the following components: %s`,x),Sa[x]=!0)}d.componentWillMount()}typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),g!==d.state&&(i("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",zt(l)||"Component"),xo.enqueueReplaceState(d,d.state,null))}function Vf(l,d,g,x){if(l.queue!==null&&l.queue.length>0){var O=l.queue,B=l.replace;if(l.queue=null,l.replace=!1,B&&O.length===1)d.state=O[0];else{for(var G=B?O[0]:d.state,oe=!0,Se=B?1:0;Se<O.length;Se++){var He=O[Se],qe=typeof He=="function"?He.call(d,G,g,x):He;qe!=null&&(oe?(oe=!1,G=cn({},G,qe)):cn(G,qe))}d.state=G}}else l.queue=null}function So(l,d,g,x){jc(l,d,g);var O=l.state!==void 0?l.state:null;l.updater=xo,l.props=g,l.state=O;var B={queue:[],replace:!1};$f(l,B);var G=d.contextType;if(typeof G=="object"&&G!==null?l.context=ds(G):l.context=x,l.state===g){var oe=zt(d)||"Component";Cr.has(oe)||(Cr.add(oe),i("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",oe))}var Se=d.getDerivedStateFromProps;typeof Se=="function"&&(l.state=Fu(l,d,Se,O,g)),typeof d.getDerivedStateFromProps!="function"&&typeof l.getSnapshotBeforeUpdate!="function"&&(typeof l.UNSAFE_componentWillMount=="function"||typeof l.componentWillMount=="function")&&(Bc(d,l),Vf(B,l,g,x))}var Hf={id:1,overflow:""};function Uf(l){var d=l.overflow,g=l.id,x=g&~Wf(g);return x.toString(32)+d}function Nu(l,d,g){var x=l.id,O=l.overflow,B=tl(x)-1,G=x&~(1<<B),oe=g+1,Se=tl(d)+B;if(Se>30){var He=B-B%5,qe=(1<<He)-1,ot=(G&qe).toString(32),xt=G>>He,en=B-He,ir=tl(d)+en,ko=oe<<en,xs=ko|xt,to=ot+O;return{id:1<<ir|xs,overflow:to}}else{var Ia=oe<<B,rf=Ia|G,na=O;return{id:1<<Se|rf,overflow:na}}}function tl(l){return 32-Uo(l)}function Wf(l){return 1<<tl(l)-1}var Uo=Math.clz32?Math.clz32:zf,ju=Math.log,Bl=Math.LN2;function zf(l){var d=l>>>0;return d===0?32:31-(ju(d)/Bl|0)|0}function Yf(l,d){return l===d&&(l!==0||1/l===1/d)||l!==l&&d!==d}var Gf=typeof Object.is=="function"?Object.is:Yf,Hr=null,Bu=null,$l=null,qt=null,xi=!1,Ta=!1,zs=0,Zt=null,ps=0,nl=25,ii=!1,Si;function To(){if(Hr===null)throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
88
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
89
|
+
2. You might be breaking the Rules of Hooks
|
|
90
|
+
3. You might have more than one copy of React in the same app
|
|
91
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return ii&&i("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"),Hr}function $u(l,d){if(d===null)return i("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Si),!1;l.length!==d.length&&i(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
92
|
+
|
|
93
|
+
Previous: %s
|
|
94
|
+
Incoming: %s`,Si,"["+l.join(", ")+"]","["+d.join(", ")+"]");for(var g=0;g<d.length&&g<l.length;g++)if(!Gf(l[g],d[g]))return!1;return!0}function Ur(){if(ps>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function Zi(){return qt===null?$l===null?(xi=!1,$l=qt=Ur()):(xi=!0,qt=$l):qt.next===null?(xi=!1,qt=qt.next=Ur()):(xi=!0,qt=qt.next),qt}function Ys(l,d){Hr=d,Bu=l,ii=!1,zs=0}function $c(l,d,g,x){for(;Ta;)Ta=!1,zs=0,ps+=1,qt=null,g=l(d,x);return Ti(),g}function Vu(){var l=zs!==0;return l}function Ti(){ii=!1,Hr=null,Bu=null,Ta=!1,$l=null,ps=0,Zt=null,qt=null}function Hu(l){return ii&&i("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),ds(l)}function Gs(l){return Si="useContext",To(),ds(l)}function Wr(l,d){return typeof d=="function"?d(l):d}function Uu(l){return Si="useState",Wu(Wr,l)}function Wu(l,d,g){if(l!==Wr&&(Si="useReducer"),Hr=To(),qt=Zi(),xi){var x=qt.queue,O=x.dispatch;if(Zt!==null){var B=Zt.get(x);if(B!==void 0){Zt.delete(x);var G=qt.memoizedState,oe=B;do{var Se=oe.action;ii=!0,G=l(G,Se),ii=!1,oe=oe.next}while(oe!==null);return qt.memoizedState=G,[G,O]}}return[qt.memoizedState,O]}else{ii=!0;var He;l===Wr?He=typeof d=="function"?d():d:He=g!==void 0?g(d):d,ii=!1,qt.memoizedState=He;var qe=qt.queue={last:null,dispatch:null},ot=qe.dispatch=Yu.bind(null,Hr,qe);return[qt.memoizedState,ot]}}function zu(l,d){Hr=To(),qt=Zi();var g=d===void 0?null:d;if(qt!==null){var x=qt.memoizedState;if(x!==null&&g!==null){var O=x[1];if($u(g,O))return x[0]}}ii=!0;var B=l();return ii=!1,qt.memoizedState=[B,g],B}function qs(l){Hr=To(),qt=Zi();var d=qt.memoizedState;if(d===null){var g={current:l};return Object.seal(g),qt.memoizedState=g,g}else return d}function gs(l,d){Si="useLayoutEffect",i("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function Yu(l,d,g){if(ps>=nl)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(l===Hr){Ta=!0;var x={action:g,next:null};Zt===null&&(Zt=new Map);var O=Zt.get(d);if(O===void 0)Zt.set(d,x);else{for(var B=O;B.next!==null;)B=B.next;B.next=x}}}function Vc(l,d){return zu(function(){return l},d)}function Vl(l,d,g){return To(),d(l._source)}function qf(l,d,g){if(g===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return g()}function Hc(l){return To(),l}function fr(){throw new Error("startTransition cannot be called during server rendering.")}function Gu(){return To(),[!1,fr]}function Uc(){var l=Bu,d=Uf(l.treeContext),g=Ca;if(g===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var x=zs++;return yn(g,d,x)}function Ci(){}var Hl={readContext:Hu,useContext:Gs,useMemo:zu,useReducer:Wu,useRef:qs,useState:Uu,useInsertionEffect:Ci,useLayoutEffect:gs,useCallback:Vc,useImperativeHandle:Ci,useEffect:Ci,useDebugValue:Ci,useDeferredValue:Hc,useTransition:Gu,useId:Uc,useMutableSource:Vl,useSyncExternalStore:qf},Ca=null;function ms(l){Ca=l}function rl(l){try{var d="",g=l;do{switch(g.tag){case 0:d+=ma(g.type,null,null);break;case 1:d+=ls(g.type,null,null);break;case 2:d+=Bo(g.type,null,null);break}g=g.parent}while(g);return d}catch(x){return`
|
|
95
|
+
Error generating stack: `+x.message+`
|
|
96
|
+
`+x.stack}}var rr=n.ReactCurrentDispatcher,Xs=n.ReactDebugCurrentFrame,Ul=0,Ea=1,Wl=2,ka=3,zl=4,Co=0,Yl=1,Ks=2,Wc=12800;function il(l){return console.error(l),null}function Da(){}function _a(l,d,g,x,O,B,G,oe,Se){var He=[],qe=new Set,ot={destination:null,responseState:d,progressiveChunkSize:x===void 0?Wc:x,status:Co,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:qe,pingedTasks:He,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:O===void 0?il:O,onAllReady:Da,onShellReady:G===void 0?Da:G,onShellError:Da,onFatalError:Da},xt=Gl(ot,0,null,g,!1,!1);xt.parentFlushed=!0;var en=Zs(ot,l,null,xt,qe,ba,Gn,Hf);return He.push(en),ot}function qu(l,d){var g=l.pingedTasks;g.push(d),g.length===1&&a(function(){return tu(l)})}function zc(l,d){return{id:Oi,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:d,errorDigest:null}}function Zs(l,d,g,x,O,B,G,oe){l.allPendingTasks++,g===null?l.pendingRootTasks++:g.pendingTasks++;var Se={node:d,ping:function(){return qu(l,Se)},blockedBoundary:g,blockedSegment:x,abortSet:O,legacyContext:B,context:G,treeContext:oe};return Se.componentStack=null,O.add(Se),Se}function Gl(l,d,g,x,O,B){return{status:Ul,id:-1,index:d,parentFlushed:!1,chunks:[],children:[],formatContext:x,boundary:g,lastPushedText:O,textEmbedded:B}}var Wo=null;function ql(){return Wo===null||Wo.componentStack===null?"":rl(Wo.componentStack)}function zo(l,d){l.componentStack={tag:0,parent:l.componentStack,type:d}}function ol(l,d){l.componentStack={tag:1,parent:l.componentStack,type:d}}function Ji(l,d){l.componentStack={tag:2,parent:l.componentStack,type:d}}function Qi(l){l.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):l.componentStack=l.componentStack.parent}var Eo=null;function sl(l,d){{var g;typeof d=="string"?g=d:d&&typeof d.message=="string"?g=d.message:g=String(d);var x=Eo||ql();Eo=null,l.errorMessage=g,l.errorComponentStack=x}}function vs(l,d){var g=l.onError(d);if(g!=null&&typeof g!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof g+'" instead');return g}function eo(l,d){var g=l.onShellError;g(d);var x=l.onFatalError;x(d),l.destination!==null?(l.status=Ks,I(l.destination,d)):(l.status=Yl,l.fatalError=d)}function Pa(l,d,g){zo(d,"Suspense");var x=d.blockedBoundary,O=d.blockedSegment,B=g.fallback,G=g.children,oe=new Set,Se=zc(l,oe),He=O.chunks.length,qe=Gl(l,He,Se,O.formatContext,!1,!1);O.children.push(qe),O.lastPushedText=!1;var ot=Gl(l,0,null,O.formatContext,!1,!1);ot.parentFlushed=!0,d.blockedBoundary=Se,d.blockedSegment=ot;try{if(dr(l,d,G),vo(ot.chunks,l.responseState,ot.lastPushedText,ot.textEmbedded),ot.status=Ea,Ei(Se,ot),Se.pendingTasks===0){Qi(d);return}}catch(en){ot.status=zl,Se.forceClientRender=!0,Se.errorDigest=vs(l,en),sl(Se,en)}finally{d.blockedBoundary=x,d.blockedSegment=O}var xt=Zs(l,B,x,qe,oe,d.legacyContext,d.context,d.treeContext);xt.componentStack=d.componentStack,l.pingedTasks.push(xt),Qi(d)}function Xl(l,d,g,x){zo(d,g);var O=d.blockedSegment,B=yi(O.chunks,g,x,l.responseState,O.formatContext);O.lastPushedText=!1;var G=O.formatContext;O.formatContext=Yi(G,g,x),dr(l,d,B),O.formatContext=G,rn(O.chunks,g),O.lastPushedText=!1,Qi(d)}function al(l){return l.prototype&&l.prototype.isReactComponent}function Oa(l,d,g,x,O){var B={};Ys(d,B);var G=g(x,O);return $c(g,x,G,O)}function Yc(l,d,g,x,O){var B=g.render();g.props!==O&&(Bt||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",zt(x)||"a component"),Bt=!0);{var G=x.childContextTypes;if(G!=null){var oe=d.legacyContext,Se=Lc(g,x,oe,G);d.legacyContext=Se,Yr(l,d,B),d.legacyContext=oe;return}}Yr(l,d,B)}function Xu(l,d,g,x){Ji(d,g);var O=Za(g,d.legacyContext),B=Nc(g,x,O);So(B,g,x,O),Yc(l,d,B,g,x),Qi(d)}var Ku={},Js={},Zu={},Kl={},Bt=!1,ll={},Ju=!1,Qs=!1,Zl=!1;function Gc(l,d,g,x){var O;if(O=Za(g,d.legacyContext),ol(d,g),g.prototype&&typeof g.prototype.render=="function"){var B=zt(g)||"Unknown";Ku[B]||(i("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",B,B),Ku[B]=!0)}var G=Oa(l,d,g,x,O),oe=Vu();if(typeof G=="object"&&G!==null&&typeof G.render=="function"&&G.$$typeof===void 0){var Se=zt(g)||"Unknown";Js[Se]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",Se,Se,Se),Js[Se]=!0)}if(typeof G=="object"&&G!==null&&typeof G.render=="function"&&G.$$typeof===void 0){{var He=zt(g)||"Unknown";Js[He]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",He,He,He),Js[He]=!0)}So(G,g,x,O),Yc(l,d,G,g,x)}else if(qc(g),oe){var qe=d.treeContext,ot=1,xt=0;d.treeContext=Nu(qe,ot,xt);try{Yr(l,d,G)}finally{d.treeContext=qe}}else Yr(l,d,G);Qi(d)}function qc(l){{if(l&&l.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",l.displayName||l.name||"Component"),l.defaultProps!==void 0){var d=zt(l)||"Unknown";ll[d]||(i("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",d),ll[d]=!0)}if(typeof l.getDerivedStateFromProps=="function"){var g=zt(l)||"Unknown";Kl[g]||(i("%s: Function components do not support getDerivedStateFromProps.",g),Kl[g]=!0)}if(typeof l.contextType=="object"&&l.contextType!==null){var x=zt(l)||"Unknown";Zu[x]||(i("%s: Function components do not support contextType.",x),Zu[x]=!0)}}}function oi(l,d){if(l&&l.defaultProps){var g=cn({},d),x=l.defaultProps;for(var O in x)g[O]===void 0&&(g[O]=x[O]);return g}return d}function Xc(l,d,g,x,O){ol(d,g.render);var B=Oa(l,d,g.render,x,O),G=Vu();if(G){var oe=d.treeContext,Se=1,He=0;d.treeContext=Nu(oe,Se,He);try{Yr(l,d,B)}finally{d.treeContext=oe}}else Yr(l,d,B);Qi(d)}function Jl(l,d,g,x,O){var B=g.type,G=oi(B,x);zr(l,d,B,G,O)}function Qu(l,d,g,x){g._context===void 0?g!==g.Consumer&&(Zl||(Zl=!0,i("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):g=g._context;var O=x.children;typeof O!="function"&&i("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var B=ds(g),G=O(B);Yr(l,d,G)}function ec(l,d,g,x){var O=g._context,B=x.value,G=x.children,oe;oe=d.context,d.context=xa(O,B),Yr(l,d,G),d.context=Ja(O),oe!==d.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Kc(l,d,g,x,O){zo(d,"Lazy");var B=g._payload,G=g._init,oe=G(B),Se=oi(oe,x);zr(l,d,oe,Se,O),Qi(d)}function zr(l,d,g,x,O){if(typeof g=="function")if(al(g)){Xu(l,d,g,x);return}else{Gc(l,d,g,x);return}if(typeof g=="string"){Xl(l,d,g,x);return}switch(g){case at:case dt:case J:case he:case $s:{Yr(l,d,x.children);return}case le:{zo(d,"SuspenseList"),Yr(l,d,x.children),Qi(d);return}case ut:throw new Error("ReactDOMServer does not yet support scope components.");case fe:{Pa(l,d,x);return}}if(typeof g=="object"&&g!==null)switch(g.$$typeof){case K:{Xc(l,d,g,x,O);return}case Fe:{Jl(l,d,g,x,O);return}case Ce:{ec(l,d,g,x);return}case ke:{Qu(l,d,g,x);return}case Ve:{Kc(l,d,g,x);return}}var B="";throw(g===void 0||typeof g=="object"&&g!==null&&Object.keys(g).length===0)&&(B+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(g==null?g:typeof g)+"."+B))}function ys(l,d){typeof Symbol=="function"&&l[Symbol.toStringTag]==="Generator"&&(Ju||i("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),Ju=!0),l.entries===d&&(Qs||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Qs=!0)}function Yr(l,d,g){try{return Zc(l,d,g)}catch(x){throw typeof x=="object"&&x!==null&&typeof x.then=="function"||(Eo=Eo!==null?Eo:ql()),x}}function Zc(l,d,g){if(d.node=g,typeof g=="object"&&g!==null){switch(g.$$typeof){case Il:{var x=g,O=x.type,B=x.props,G=x.ref;zr(l,d,O,B,G);return}case pa:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case Ve:{var oe=g,Se=oe._payload,He=oe._init,qe;try{qe=He(Se)}catch(Ia){throw typeof Ia=="object"&&Ia!==null&&typeof Ia.then=="function"&&zo(d,"Lazy"),Ia}Yr(l,d,qe);return}}if(Zr(g)){ea(l,d,g);return}var ot=Yn(g);if(ot){ys(g,ot);var xt=ot.call(g);if(xt){var en=xt.next();if(!en.done){var ir=[];do ir.push(en.value),en=xt.next();while(!en.done);ea(l,d,ir);return}return}}var ko=Object.prototype.toString.call(g);throw new Error("Objects are not valid as a React child (found: "+(ko==="[object Object]"?"object with keys {"+Object.keys(g).join(", ")+"}":ko)+"). If you meant to render a collection of children, use an array instead.")}if(typeof g=="string"){var xs=d.blockedSegment;xs.lastPushedText=ri(d.blockedSegment.chunks,g,l.responseState,xs.lastPushedText);return}if(typeof g=="number"){var to=d.blockedSegment;to.lastPushedText=ri(d.blockedSegment.chunks,""+g,l.responseState,to.lastPushedText);return}typeof g=="function"&&i("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function ea(l,d,g){for(var x=g.length,O=0;O<x;O++){var B=d.treeContext;d.treeContext=Nu(B,x,O);try{dr(l,d,g[O])}finally{d.treeContext=B}}}function Jc(l,d,g){var x=d.blockedSegment,O=x.chunks.length,B=Gl(l,O,null,x.formatContext,x.lastPushedText,!0);x.children.push(B),x.lastPushedText=!1;var G=Zs(l,d.node,d.blockedBoundary,B,d.abortSet,d.legacyContext,d.context,d.treeContext);d.componentStack!==null&&(G.componentStack=d.componentStack.parent);var oe=G.ping;g.then(oe,oe)}function dr(l,d,g){var x=d.blockedSegment.formatContext,O=d.legacyContext,B=d.context,G=null;G=d.componentStack;try{return Yr(l,d,g)}catch(oe){if(Ti(),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"){Jc(l,d,oe),d.blockedSegment.formatContext=x,d.legacyContext=O,d.context=B,$o(B),d.componentStack=G;return}else throw d.blockedSegment.formatContext=x,d.legacyContext=O,d.context=B,$o(B),d.componentStack=G,oe}}function Qc(l,d,g,x){var O=vs(l,x);if(d===null?eo(l,x):(d.pendingTasks--,d.forceClientRender||(d.forceClientRender=!0,d.errorDigest=O,sl(d,x),d.parentFlushed&&l.clientRenderedBoundaries.push(d))),l.allPendingTasks--,l.allPendingTasks===0){var B=l.onAllReady;B()}}function Ql(l){var d=this,g=l.blockedBoundary,x=l.blockedSegment;x.status=ka,ef(d,g,x)}function eu(l,d,g){var x=l.blockedBoundary,O=l.blockedSegment;if(O.status=ka,x===null)d.allPendingTasks--,d.status!==Ks&&(d.status=Ks,d.destination!==null&&m(d.destination));else{if(x.pendingTasks--,!x.forceClientRender){x.forceClientRender=!0;var B=g===void 0?new Error("The render was aborted by the server without a reason."):g;x.errorDigest=d.onError(B);{var G="The server did not finish this Suspense boundary: ";B&&typeof B.message=="string"?B=G+B.message:B=G+String(B);var oe=Wo;Wo=l;try{sl(x,B)}finally{Wo=oe}}x.parentFlushed&&d.clientRenderedBoundaries.push(x)}if(x.fallbackAbortableTasks.forEach(function(He){return eu(He,d,g)}),x.fallbackAbortableTasks.clear(),d.allPendingTasks--,d.allPendingTasks===0){var Se=d.onAllReady;Se()}}}function Ei(l,d){if(d.chunks.length===0&&d.children.length===1&&d.children[0].boundary===null){var g=d.children[0];g.id=d.id,g.parentFlushed=!0,g.status===Ea&&Ei(l,g)}else{var x=l.completedSegments;x.push(d)}}function ef(l,d,g){if(d===null){if(g.parentFlushed){if(l.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");l.completedRootSegment=g}if(l.pendingRootTasks--,l.pendingRootTasks===0){l.onShellError=Da;var x=l.onShellReady;x()}}else if(d.pendingTasks--,!d.forceClientRender){if(d.pendingTasks===0)g.parentFlushed&&g.status===Ea&&Ei(d,g),d.parentFlushed&&l.completedBoundaries.push(d),d.fallbackAbortableTasks.forEach(Ql,l),d.fallbackAbortableTasks.clear();else if(g.parentFlushed&&g.status===Ea){Ei(d,g);var O=d.completedSegments;O.length===1&&d.parentFlushed&&l.partialBoundaries.push(d)}}if(l.allPendingTasks--,l.allPendingTasks===0){var B=l.onAllReady;B()}}function bs(l,d){var g=d.blockedSegment;if(g.status===Ul){$o(d.context);var x=null;x=Wo,Wo=d;try{Yr(l,d,d.node),vo(g.chunks,l.responseState,g.lastPushedText,g.textEmbedded),d.abortSet.delete(d),g.status=Ea,ef(l,d.blockedBoundary,g)}catch(B){if(Ti(),typeof B=="object"&&B!==null&&typeof B.then=="function"){var O=d.ping;B.then(O,O)}else d.abortSet.delete(d),g.status=zl,Qc(l,d.blockedBoundary,g,B)}finally{Wo=x}}}function tu(l){if(l.status!==Ks){var d=Us(),g=rr.current;rr.current=Hl;var x;x=Xs.getCurrentStack,Xs.getCurrentStack=ql;var O=Ca;ms(l.responseState);try{var B=l.pingedTasks,G;for(G=0;G<B.length;G++){var oe=B[G];bs(l,oe)}B.splice(0,G),l.destination!==null&&nu(l,l.destination)}catch(Se){vs(l,Se),eo(l,Se)}finally{ms(O),rr.current=g,Xs.getCurrentStack=x,g===Hl&&$o(d)}}}function ws(l,d,g){switch(g.parentFlushed=!0,g.status){case Ul:{var x=g.id=l.nextSegmentId++;return g.lastPushedText=!1,g.textEmbedded=!1,ti(d,l.responseState,x)}case Ea:{g.status=Wl;for(var O=!0,B=g.chunks,G=0,oe=g.children,Se=0;Se<oe.length;Se++){for(var He=oe[Se];G<He.index;G++)f(d,B[G]);O=ta(l,d,He)}for(;G<B.length-1;G++)f(d,B[G]);return G<B.length&&(O=p(d,B[G])),O}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function ta(l,d,g){var x=g.boundary;if(x===null)return ws(l,d,g);if(x.parentFlushed=!0,x.forceClientRender)return Pu(d,l.responseState,x.errorDigest,x.errorMessage,x.errorComponentStack),ws(l,d,g),yo(d,l.responseState);if(x.pendingTasks>0){x.rootSegmentID=l.nextSegmentId++,x.completedSegments.length>0&&l.partialBoundaries.push(x);var O=x.id=ar(l.responseState);return h(d,l.responseState,O),ws(l,d,g),_(d,l.responseState)}else{if(x.byteSize>l.progressiveChunkSize)return x.rootSegmentID=l.nextSegmentId++,l.completedBoundaries.push(x),h(d,l.responseState,x.id),ws(l,d,g),_(d,l.responseState);Ga(d,l.responseState);var B=x.completedSegments;if(B.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var G=B[0];return ta(l,d,G),ha(d,l.responseState)}}function Xf(l,d,g){return ni(d,l.responseState,g.id,g.errorDigest,g.errorMessage,g.errorComponentStack)}function tc(l,d,g){return go(d,l.responseState,g.formatContext,g.id),ta(l,d,g),Tr(d,g.formatContext)}function ul(l,d,g){for(var x=g.completedSegments,O=0;O<x.length;O++){var B=x[O];nc(l,d,g,B)}return x.length=0,In(d,l.responseState,g.id,g.rootSegmentID)}function cl(l,d,g){for(var x=g.completedSegments,O=0;O<x.length;O++){var B=x[O];if(!nc(l,d,g,B))return O++,x.splice(0,O),!1}return x.splice(0,O),!0}function nc(l,d,g,x){if(x.status===Wl)return!0;var O=x.id;if(O===-1){var B=x.id=g.rootSegmentID;if(B===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return tc(l,d,x)}else return tc(l,d,x),Ge(d,l.responseState,O)}function nu(l,d){try{var g=l.completedRootSegment;g!==null&&l.pendingRootTasks===0&&(ta(l,d,g),l.completedRootSegment=null,Gt(d,l.responseState));var x=l.clientRenderedBoundaries,O;for(O=0;O<x.length;O++){var B=x[O];if(!Xf(l,d,B)){l.destination=null,O++,x.splice(0,O);return}}x.splice(0,O);var G=l.completedBoundaries;for(O=0;O<G.length;O++){var oe=G[O];if(!ul(l,d,oe)){l.destination=null,O++,G.splice(0,O);return}}G.splice(0,O);var Se=l.partialBoundaries;for(O=0;O<Se.length;O++){var He=Se[O];if(!cl(l,d,He)){l.destination=null,O++,Se.splice(0,O);return}}Se.splice(0,O);var qe=l.completedBoundaries;for(O=0;O<qe.length;O++){var ot=qe[O];if(!ul(l,d,ot)){l.destination=null,O++,qe.splice(0,O);return}}qe.splice(0,O)}finally{l.allPendingTasks===0&&l.pingedTasks.length===0&&l.clientRenderedBoundaries.length===0&&l.completedBoundaries.length===0&&(l.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),m(d))}}function rc(l){a(function(){return tu(l)})}function tf(l,d){if(l.status===Yl){l.status=Ks,I(d,l.fatalError);return}if(l.status!==Ks&&l.destination===null){l.destination=d;try{nu(l,d)}catch(g){vs(l,g),eo(l,g)}}}function Gr(l,d){try{var g=l.abortableTasks;g.forEach(function(x){return eu(x,l,d)}),g.clear(),l.destination!==null&&nu(l,l.destination)}catch(x){vs(l,x),eo(l,x)}}function Mi(){}function nf(l,d,g,x){var O=!1,B=null,G="",oe={push:function(ot){return ot!==null&&(G+=ot),!0},destroy:function(ot){O=!0,B=ot}},Se=!1;function He(){Se=!0}var qe=_a(l,da(g,d?d.identifierPrefix:void 0),as(),1/0,Mi,void 0,He);if(rc(qe),Gr(qe,x),tf(qe,oe),O)throw B;if(!Se)throw new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");return G}function Kf(l,d){return nf(l,d,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function fl(l,d){return nf(l,d,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function Ra(){throw new Error("ReactDOMServer.renderToNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToString() instead.")}function v(){throw new Error("ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToStaticMarkup() instead.")}cc.renderToNodeStream=Ra,cc.renderToStaticMarkup=fl,cc.renderToStaticNodeStream=v,cc.renderToString=Kf,cc.version=e}()),cc}var jh={};/**
|
|
97
|
+
* @license React
|
|
98
|
+
* react-dom-server.browser.development.js
|
|
99
|
+
*
|
|
100
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
101
|
+
*
|
|
102
|
+
* This source code is licensed under the MIT license found in the
|
|
103
|
+
* LICENSE file in the root directory of this source tree.
|
|
104
|
+
*/var R1;function n6(){return R1||(R1=1,process.env.NODE_ENV!=="production"&&function(){var t=z,e="18.3.1",n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(v){{for(var l=arguments.length,d=new Array(l>1?l-1:0),g=1;g<l;g++)d[g-1]=arguments[g];o("warn",v,d)}}function i(v){{for(var l=arguments.length,d=new Array(l>1?l-1:0),g=1;g<l;g++)d[g-1]=arguments[g];o("error",v,d)}}function o(v,l,d){{var g=n.ReactDebugCurrentFrame,x=g.getStackAddendum();x!==""&&(l+="%s",d=d.concat([x]));var O=d.map(function(B){return String(B)});O.unshift("Warning: "+l),Function.prototype.apply.call(console[v],console,O)}}function a(v){v()}var c=512,f=null,p=0;function y(v){f=new Uint8Array(c),p=0}function m(v,l){if(l.length!==0){if(l.length>c){p>0&&(v.enqueue(new Uint8Array(f.buffer,0,p)),f=new Uint8Array(c),p=0),v.enqueue(l);return}var d=l,g=f.length-p;g<d.length&&(g===0?v.enqueue(f):(f.set(d.subarray(0,g),p),v.enqueue(f),d=d.subarray(g)),f=new Uint8Array(c),p=0),f.set(d,p),p+=d.length}}function T(v,l){return m(v,l),!0}function E(v){f&&p>0&&(v.enqueue(new Uint8Array(f.buffer,0,p)),f=null,p=0)}function I(v){v.close()}var A=new TextEncoder;function F(v){return A.encode(v)}function R(v){return A.encode(v)}function U(v,l){typeof v.error=="function"?v.error(l):v.close()}function H(v){{var l=typeof Symbol=="function"&&Symbol.toStringTag,d=l&&v[Symbol.toStringTag]||v.constructor.name||"Object";return d}}function ne(v){try{return Z(v),!1}catch{return!0}}function Z(v){return""+v}function ce(v,l){if(ne(v))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",l,H(v)),Z(v)}function S(v,l){if(ne(v))return i("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",l,H(v)),Z(v)}function re(v){if(ne(v))return i("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",H(v)),Z(v)}var ie=Object.prototype.hasOwnProperty,Pe=0,Ke=1,$e=2,tt=3,nt=4,ge=5,_e=6,Re=":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",Ae=Re+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",et=new RegExp("^["+Re+"]["+Ae+"]*$"),ye={},ue={};function De(v){return ie.call(ue,v)?!0:ie.call(ye,v)?!1:et.test(v)?(ue[v]=!0,!0):(ye[v]=!0,i("Invalid attribute name: `%s`",v),!1)}function je(v,l,d,g){if(d!==null&&d.type===Pe)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":{if(d!==null)return!d.acceptsBooleans;var x=v.toLowerCase().slice(0,5);return x!=="data-"&&x!=="aria-"}default:return!1}}function Ie(v){return Ue.hasOwnProperty(v)?Ue[v]:null}function Be(v,l,d,g,x,O,B){this.acceptsBooleans=l===$e||l===tt||l===nt,this.attributeName=g,this.attributeNamespace=x,this.mustUseProperty=d,this.propertyName=v,this.type=l,this.sanitizeURL=O,this.removeEmptyString=B}var Ue={},it=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];it.forEach(function(v){Ue[v]=new Be(v,Pe,!1,v,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(v){var l=v[0],d=v[1];Ue[l]=new Be(l,Ke,!1,d,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(v){Ue[v]=new Be(v,$e,!1,v.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(v){Ue[v]=new Be(v,$e,!1,v,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(v){Ue[v]=new Be(v,tt,!1,v.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(v){Ue[v]=new Be(v,tt,!0,v,null,!1,!1)}),["capture","download"].forEach(function(v){Ue[v]=new Be(v,nt,!1,v,null,!1,!1)}),["cols","rows","size","span"].forEach(function(v){Ue[v]=new Be(v,_e,!1,v,null,!1,!1)}),["rowSpan","start"].forEach(function(v){Ue[v]=new Be(v,ge,!1,v.toLowerCase(),null,!1,!1)});var rt=/[\-\:]([a-z])/g,st=function(v){return v[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(v){var l=v.replace(rt,st);Ue[l]=new Be(l,Ke,!1,v,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(v){var l=v.replace(rt,st);Ue[l]=new Be(l,Ke,!1,v,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(v){var l=v.replace(rt,st);Ue[l]=new Be(l,Ke,!1,v,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(v){Ue[v]=new Be(v,Ke,!1,v.toLowerCase(),null,!1,!1)});var Qe="xlinkHref";Ue[Qe]=new Be("xlinkHref",Ke,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(v){Ue[v]=new Be(v,Ke,!1,v.toLowerCase(),null,!0,!0)});var ft={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function Xe(v,l){return v+l.charAt(0).toUpperCase()+l.substring(1)}var It=["Webkit","ms","Moz","O"];Object.keys(ft).forEach(function(v){It.forEach(function(l){ft[Xe(l,v)]=ft[v]})});var Mt={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Vn(v,l){Mt[l.type]||l.onChange||l.onInput||l.readOnly||l.disabled||l.value==null||i("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),l.onChange||l.readOnly||l.disabled||l.checked==null||i("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function vr(v,l){if(v.indexOf("-")===-1)return typeof l.is=="string";switch(v){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 Hn={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Sn={},Vi=new RegExp("^(aria)-["+Ae+"]*$"),Pr=new RegExp("^(aria)[A-Z]["+Ae+"]*$");function Jn(v,l){{if(ie.call(Sn,l)&&Sn[l])return!0;if(Pr.test(l)){var d="aria-"+l.slice(4).toLowerCase(),g=Hn.hasOwnProperty(d)?d:null;if(g==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",l),Sn[l]=!0,!0;if(l!==g)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",l,g),Sn[l]=!0,!0}if(Vi.test(l)){var x=l.toLowerCase(),O=Hn.hasOwnProperty(x)?x:null;if(O==null)return Sn[l]=!0,!1;if(l!==O)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",l,O),Sn[l]=!0,!0}}return!0}function sn(v,l){{var d=[];for(var g in l){var x=Jn(v,g);x||d.push(g)}var O=d.map(function(B){return"`"+B+"`"}).join(", ");d.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",O,v):d.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",O,v)}}function fn(v,l){vr(v,l)||sn(v,l)}var dn=!1;function ht(v,l){{if(v!=="input"&&v!=="textarea"&&v!=="select")return;l!=null&&l.value===null&&!dn&&(dn=!0,v==="select"&&l.multiple?i("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",v):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",v))}}var Dn={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},ai=function(){};{var on={},Hi=/^on./,Ui=/^on[^A-Z]/,Wi=new RegExp("^(aria)-["+Ae+"]*$"),Or=new RegExp("^(aria)[A-Z]["+Ae+"]*$");ai=function(v,l,d,g){if(ie.call(on,l)&&on[l])return!0;var x=l.toLowerCase();if(x==="onfocusin"||x==="onfocusout")return i("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),on[l]=!0,!0;if(g!=null){var O=g.registrationNameDependencies,B=g.possibleRegistrationNames;if(O.hasOwnProperty(l))return!0;var G=B.hasOwnProperty(x)?B[x]:null;if(G!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",l,G),on[l]=!0,!0;if(Hi.test(l))return i("Unknown event handler property `%s`. It will be ignored.",l),on[l]=!0,!0}else if(Hi.test(l))return Ui.test(l)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",l),on[l]=!0,!0;if(Wi.test(l)||Or.test(l))return!0;if(x==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),on[l]=!0,!0;if(x==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),on[l]=!0,!0;if(x==="is"&&d!==null&&d!==void 0&&typeof d!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof d),on[l]=!0,!0;if(typeof d=="number"&&isNaN(d))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",l),on[l]=!0,!0;var oe=Ie(l),Se=oe!==null&&oe.type===Pe;if(Dn.hasOwnProperty(x)){var He=Dn[x];if(He!==l)return i("Invalid DOM property `%s`. Did you mean `%s`?",l,He),on[l]=!0,!0}else if(!Se&&l!==x)return i("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",l,x),on[l]=!0,!0;return typeof d=="boolean"&&je(l,d,oe)?(d?i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',d,l,l,d,l):i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',d,l,l,d,l,l,l),on[l]=!0,!0):Se?!0:je(l,d,oe)?(on[l]=!0,!1):((d==="false"||d==="true")&&oe!==null&&oe.type===tt&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",d,l,d==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',l,d),on[l]=!0),!0)}}var Nn=function(v,l,d){{var g=[];for(var x in l){var O=ai(v,x,l[x],d);O||g.push(x)}var B=g.map(function(G){return"`"+G+"`"}).join(", ");g.length===1?i("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",B,v):g.length>1&&i("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",B,v)}};function Rr(v,l,d){vr(v,l)||Nn(v,l,d)}var yr=function(){};{var qr=/^(?:webkit|moz|o)[A-Z]/,Xr=/^-ms-/,Ao=/-(.)/g,Un=/;\s*$/,Kr={},Qn={},Wt=!1,li=!1,zi=function(v){return v.replace(Ao,function(l,d){return d.toUpperCase()})},_n=function(v){Kr.hasOwnProperty(v)&&Kr[v]||(Kr[v]=!0,i("Unsupported style property %s. Did you mean %s?",v,zi(v.replace(Xr,"ms-"))))},hn=function(v){Kr.hasOwnProperty(v)&&Kr[v]||(Kr[v]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",v,v.charAt(0).toUpperCase()+v.slice(1)))},ui=function(v,l){Qn.hasOwnProperty(l)&&Qn[l]||(Qn[l]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,v,l.replace(Un,"")))},ci=function(v,l){Wt||(Wt=!0,i("`NaN` is an invalid value for the `%s` css style property.",v))},Tn=function(v,l){li||(li=!0,i("`Infinity` is an invalid value for the `%s` css style property.",v))};yr=function(v,l){v.indexOf("-")>-1?_n(v):qr.test(v)?hn(v):Un.test(l)&&ui(v,l),typeof l=="number"&&(isNaN(l)?ci(v,l):isFinite(l)||Tn(v,l))}}var ao=yr,br=/["'&<>]/;function fi(v){re(v);var l=""+v,d=br.exec(l);if(!d)return l;var g,x="",O,B=0;for(O=d.index;O<l.length;O++){switch(l.charCodeAt(O)){case 34:g=""";break;case 38:g="&";break;case 39:g="'";break;case 60:g="<";break;case 62:g=">";break;default:continue}B!==O&&(x+=l.substring(B,O)),B=O+1,x+=g}return B!==O?x+l.substring(B,O):x}function an(v){return typeof v=="boolean"||typeof v=="number"?""+v:fi(v)}var _i=/([A-Z])/g,Ls=/^ms-/;function Fs(v){return v.replace(_i,"-$1").toLowerCase().replace(Ls,"-ms-")}var Zr=/^[\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,lo=!1;function uo(v){!lo&&Zr.test(v)&&(lo=!0,i("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(v)))}var Pi=Array.isArray;function er(v){return Pi(v)}var Ir=R("<script>"),Ar=R("<\/script>"),di=R('<script src="'),Jr=R('<script type="module" src="'),wr=R('" async=""><\/script>');function Mr(v){return re(v),(""+v).replace(tr,Yi)}var tr=/(<\/|<)(s)(cript)/gi,Yi=function(v,l,d,g){return""+l+(d==="s"?"\\u0073":"\\u0053")+g};function Oi(v,l,d,g,x){var O=v===void 0?"":v,B=l===void 0?Ir:R('<script nonce="'+an(l)+'">'),G=[];if(d!==void 0&&G.push(B,F(Mr(d)),Ar),g!==void 0)for(var oe=0;oe<g.length;oe++)G.push(di,F(an(g[oe])),wr);if(x!==void 0)for(var Se=0;Se<x.length;Se++)G.push(Jr,F(an(x[Se])),wr);return{bootstrapChunks:G,startInlineScript:B,placeholderPrefix:R(O+"P:"),segmentPrefix:R(O+"S:"),boundaryPrefix:O+"B:",idPrefix:O,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var ar=0,yn=1,Lr=2,Fr=3,hi=4,pi=5,xr=6,Qr=7;function Wn(v,l){return{insertionMode:v,selectedValue:l}}function gi(v){var l=v==="http://www.w3.org/2000/svg"?Lr:v==="http://www.w3.org/1998/Math/MathML"?Fr:ar;return Wn(l,null)}function mi(v,l,d){switch(l){case"select":return Wn(yn,d.value!=null?d.value:d.defaultValue);case"svg":return Wn(Lr,null);case"math":return Wn(Fr,null);case"foreignObject":return Wn(yn,null);case"table":return Wn(hi,null);case"thead":case"tbody":case"tfoot":return Wn(pi,null);case"colgroup":return Wn(Qr,null);case"tr":return Wn(xr,null)}return v.insertionMode>=hi||v.insertionMode===ar?Wn(yn,null):v}var Ri=null;function nn(v){var l=v.nextSuspenseID++;return R(v.boundaryPrefix+l.toString(16))}function jn(v,l,d){var g=v.idPrefix,x=":"+g+"R"+l;return d>0&&(x+="H"+d.toString(32)),x+":"}function Cn(v){return an(v)}var co=R("<!-- -->");function Pn(v,l,d,g){return l===""?g:(g&&v.push(co),v.push(F(Cn(l))),!0)}function On(v,l,d,g){d&&g&&v.push(co)}var k=new Map;function N(v){var l=k.get(v);if(l!==void 0)return l;var d=R(an(Fs(v)));return k.set(v,d),d}var q=R(' style="'),ee=R(":"),Ee=R(";");function ve(v,l,d){if(typeof d!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var g=!0;for(var x in d)if(ie.call(d,x)){var O=d[x];if(!(O==null||typeof O=="boolean"||O==="")){var B=void 0,G=void 0,oe=x.indexOf("--")===0;oe?(B=F(an(x)),S(O,x),G=F(an((""+O).trim()))):(ao(x,O),B=N(x),typeof O=="number"?O!==0&&!ie.call(ft,x)?G=F(O+"px"):G=F(""+O):(S(O,x),G=F(an((""+O).trim())))),g?(g=!1,v.push(q,B,ee,G)):v.push(Ee,B,ee,G)}}g||v.push(mt)}var Me=R(" "),Ze=R('="'),mt=R('"'),vt=R('=""');function pt(v,l,d,g){switch(d){case"style":{ve(v,l,g);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(d.length>2&&(d[0]==="o"||d[0]==="O")&&(d[1]==="n"||d[1]==="N"))){var x=Ie(d);if(x!==null){switch(typeof g){case"function":case"symbol":return;case"boolean":if(!x.acceptsBooleans)return}var O=x.attributeName,B=F(O);switch(x.type){case tt:g&&v.push(Me,B,vt);return;case nt:g===!0?v.push(Me,B,vt):g===!1||v.push(Me,B,Ze,F(an(g)),mt);return;case ge:isNaN(g)||v.push(Me,B,Ze,F(an(g)),mt);break;case _e:!isNaN(g)&&g>=1&&v.push(Me,B,Ze,F(an(g)),mt);break;default:x.sanitizeURL&&(ce(g,O),g=""+g,uo(g)),v.push(Me,B,Ze,F(an(g)),mt)}}else if(De(d)){switch(typeof g){case"function":case"symbol":return;case"boolean":{var G=d.toLowerCase().slice(0,5);if(G!=="data-"&&G!=="aria-")return}}v.push(Me,F(d),Ze,F(an(g)),mt)}}}var Ft=R(">"),Bn=R("/>");function zn(v,l,d){if(l!=null){if(d!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof l!="object"||!("__html"in l))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var g=l.__html;g!=null&&(re(g),v.push(F(""+g)))}}var En=!1,ei=!1,lr=!1,Gi=!1,vi=!1,qi=!1,Nr=!1;function Xi(v,l){{var d=v[l];if(d!=null){var g=er(d);v.multiple&&!g?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",l):!v.multiple&&g&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",l)}}}function Wa(v,l,d){Vn("select",l),Xi(l,"value"),Xi(l,"defaultValue"),l.value!==void 0&&l.defaultValue!==void 0&&!lr&&(i("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),lr=!0),v.push(ur("select"));var g=null,x=null;for(var O in l)if(ie.call(l,O)){var B=l[O];if(B==null)continue;switch(O){case"children":g=B;break;case"dangerouslySetInnerHTML":x=B;break;case"defaultValue":case"value":break;default:pt(v,d,O,B);break}}return v.push(Ft),zn(v,x,g),g}function Ns(v){var l="";return t.Children.forEach(v,function(d){d!=null&&(l+=d,!vi&&typeof d!="string"&&typeof d!="number"&&(vi=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),l}var is=R(' selected=""');function Sr(v,l,d,g){var x=g.selectedValue;v.push(ur("option"));var O=null,B=null,G=null,oe=null;for(var Se in l)if(ie.call(l,Se)){var He=l[Se];if(He==null)continue;switch(Se){case"children":O=He;break;case"selected":G=He,Nr||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Nr=!0);break;case"dangerouslySetInnerHTML":oe=He;break;case"value":B=He;default:pt(v,d,Se,He);break}}if(x!=null){var qe;if(B!==null?(ce(B,"value"),qe=""+B):(oe!==null&&(qi||(qi=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),qe=Ns(O)),er(x))for(var ot=0;ot<x.length;ot++){ce(x[ot],"value");var xt=""+x[ot];if(xt===qe){v.push(is);break}}else ce(x,"select.value"),""+x===qe&&v.push(is)}else G&&v.push(is);return v.push(Ft),zn(v,oe,O),O}function za(v,l,d){Vn("input",l),l.checked!==void 0&&l.defaultChecked!==void 0&&!ei&&(i("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",l.type),ei=!0),l.value!==void 0&&l.defaultValue!==void 0&&!En&&(i("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",l.type),En=!0),v.push(ur("input"));var g=null,x=null,O=null,B=null;for(var G in l)if(ie.call(l,G)){var oe=l[G];if(oe==null)continue;switch(G){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":B=oe;break;case"defaultValue":x=oe;break;case"checked":O=oe;break;case"value":g=oe;break;default:pt(v,d,G,oe);break}}return O!==null?pt(v,d,"checked",O):B!==null&&pt(v,d,"checked",B),g!==null?pt(v,d,"value",g):x!==null&&pt(v,d,"value",x),v.push(Bn),null}function yi(v,l,d){Vn("textarea",l),l.value!==void 0&&l.defaultValue!==void 0&&!Gi&&(i("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Gi=!0),v.push(ur("textarea"));var g=null,x=null,O=null;for(var B in l)if(ie.call(l,B)){var G=l[B];if(G==null)continue;switch(B){case"children":O=G;break;case"value":g=G;break;case"defaultValue":x=G;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:pt(v,d,B,G);break}}if(g===null&&x!==null&&(g=x),v.push(Ft),O!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),g!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(er(O)){if(O.length>1)throw new Error("<textarea> can only have at most one child.");re(O[0]),g=""+O[0]}re(O),g=""+O}return typeof g=="string"&&g[0]===`
|
|
105
|
+
`&&v.push(Ii),g!==null&&(ce(g,"value"),v.push(F(Cn(""+g)))),null}function js(v,l,d,g){v.push(ur(d));for(var x in l)if(ie.call(l,x)){var O=l[x];if(O==null)continue;switch(x){case"children":case"dangerouslySetInnerHTML":throw new Error(d+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:pt(v,g,x,O);break}}return v.push(Bn),null}function os(v,l,d){v.push(ur("menuitem"));for(var g in l)if(ie.call(l,g)){var x=l[g];if(x==null)continue;switch(g){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:pt(v,d,g,x);break}}return v.push(Ft),null}function rn(v,l,d){v.push(ur("title"));var g=null;for(var x in l)if(ie.call(l,x)){var O=l[x];if(O==null)continue;switch(x){case"children":g=O;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:pt(v,d,x,O);break}}v.push(Ft);{var B=Array.isArray(g)&&g.length<2?g[0]||null:g;Array.isArray(g)&&g.length>1?i("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):B!=null&&B.$$typeof!=null?i("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):B!=null&&typeof B!="string"&&typeof B!="number"&&i("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return g}function Gt(v,l,d,g){v.push(ur(d));var x=null,O=null;for(var B in l)if(ie.call(l,B)){var G=l[B];if(G==null)continue;switch(B){case"children":x=G;break;case"dangerouslySetInnerHTML":O=G;break;default:pt(v,g,B,G);break}}return v.push(Ft),zn(v,O,x),typeof x=="string"?(v.push(F(Cn(x))),null):x}function Kt(v,l,d,g){v.push(ur(d));var x=null,O=null;for(var B in l)if(ie.call(l,B)){var G=l[B];if(G==null)continue;switch(B){case"children":x=G;break;case"dangerouslySetInnerHTML":O=G;break;case"style":ve(v,g,G);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:De(B)&&typeof G!="function"&&typeof G!="symbol"&&v.push(Me,F(B),Ze,F(an(G)),mt);break}}return v.push(Ft),zn(v,O,x),x}var Ii=R(`
|
|
106
|
+
`);function ti(v,l,d,g){v.push(ur(d));var x=null,O=null;for(var B in l)if(ie.call(l,B)){var G=l[B];if(G==null)continue;switch(B){case"children":x=G;break;case"dangerouslySetInnerHTML":O=G;break;default:pt(v,g,B,G);break}}if(v.push(Ft),O!=null){if(x!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof O!="object"||!("__html"in O))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var oe=O.__html;oe!=null&&(typeof oe=="string"&&oe.length>0&&oe[0]===`
|
|
107
|
+
`?v.push(Ii,F(oe)):(re(oe),v.push(F(""+oe))))}return typeof x=="string"&&x[0]===`
|
|
108
|
+
`&&v.push(Ii),x}var Mo=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,bi=new Map;function ur(v){var l=bi.get(v);if(l===void 0){if(!Mo.test(v))throw new Error("Invalid tag: "+v);l=R("<"+v),bi.set(v,l)}return l}var Bs=R("<!DOCTYPE html>");function fo(v,l,d,g,x){switch(fn(l,d),ht(l,d),Rr(l,d,null),!d.suppressContentEditableWarning&&d.contentEditable&&d.children!=null&&i("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),x.insertionMode!==Lr&&x.insertionMode!==Fr&&l.indexOf("-")===-1&&typeof d.is!="string"&&l.toLowerCase()!==l&&i("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",l),l){case"select":return Wa(v,d,g);case"option":return Sr(v,d,g,x);case"textarea":return yi(v,d,g);case"input":return za(v,d,g);case"menuitem":return os(v,d,g);case"title":return rn(v,d,g);case"listing":case"pre":return ti(v,d,l,g);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return js(v,d,l,g);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 Gt(v,d,l,g);case"html":return x.insertionMode===ar&&v.push(Bs),Gt(v,d,l,g);default:return l.indexOf("-")===-1&&typeof d.is!="string"?Gt(v,d,l,g):Kt(v,d,l,g)}}var ua=R("</"),ln=R(">");function Lo(v,l,d){switch(l){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:v.push(ua,F(l),ln)}}function wi(v,l){for(var d=l.bootstrapChunks,g=0;g<d.length-1;g++)m(v,d[g]);return g<d.length?T(v,d[g]):!0}var ca=R('<template id="'),ho=R('"></template>');function cr(v,l,d){m(v,ca),m(v,l.placeholderPrefix);var g=F(d.toString(16));return m(v,g),T(v,ho)}var h=R("<!--$-->"),b=R('<!--$?--><template id="'),C=R('"></template>'),_=R("<!--$!-->"),L=R("<!--/$-->"),j=R("<template"),V=R('"'),ae=R(' data-dgst="'),te=R(' data-msg="'),me=R(' data-stck="'),Oe=R("></template>");function Le(v,l){return T(v,h)}function Te(v,l,d){if(m(v,b),d===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return m(v,d),T(v,C)}function We(v,l,d,g,x){var O;return O=T(v,_),m(v,j),d&&(m(v,ae),m(v,F(an(d))),m(v,V)),g&&(m(v,te),m(v,F(an(g))),m(v,V)),x&&(m(v,me),m(v,F(an(x))),m(v,V)),O=T(v,Oe),O}function lt(v,l){return T(v,L)}function Tt(v,l){return T(v,L)}function Et(v,l){return T(v,L)}var Rn=R('<div hidden id="'),un=R('">'),jr=R("</div>"),Br=R('<svg aria-hidden="true" style="display:none" id="'),Lt=R('">'),$r=R("</svg>"),jt=R('<math aria-hidden="true" style="display:none" id="'),Qt=R('">'),po=R("</math>"),go=R('<table hidden id="'),Tr=R('">'),D=R("</table>"),M=R('<table hidden><tbody id="'),W=R('">'),Q=R("</tbody></table>"),we=R('<table hidden><tr id="'),xe=R('">'),Ne=R("</tr></table>"),Ge=R('<table hidden><colgroup id="'),gt=R('">'),Ot=R("</colgroup></table>");function St(v,l,d,g){switch(d.insertionMode){case ar:case yn:return m(v,Rn),m(v,l.segmentPrefix),m(v,F(g.toString(16))),T(v,un);case Lr:return m(v,Br),m(v,l.segmentPrefix),m(v,F(g.toString(16))),T(v,Lt);case Fr:return m(v,jt),m(v,l.segmentPrefix),m(v,F(g.toString(16))),T(v,Qt);case hi:return m(v,go),m(v,l.segmentPrefix),m(v,F(g.toString(16))),T(v,Tr);case pi:return m(v,M),m(v,l.segmentPrefix),m(v,F(g.toString(16))),T(v,W);case xr:return m(v,we),m(v,l.segmentPrefix),m(v,F(g.toString(16))),T(v,xe);case Qr:return m(v,Ge),m(v,l.segmentPrefix),m(v,F(g.toString(16))),T(v,gt);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function yt(v,l){switch(l.insertionMode){case ar:case yn:return T(v,jr);case Lr:return T(v,$r);case Fr:return T(v,po);case hi:return T(v,D);case pi:return T(v,Q);case xr:return T(v,Ne);case Qr:return T(v,Ot);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var In="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",bn='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',$n='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',ss=R(In+';$RS("'),fa=R('$RS("'),mo=R('","'),ni=R('")<\/script>');function Ya(v,l,d){m(v,l.startInlineScript),l.sentCompleteSegmentFunction?m(v,fa):(l.sentCompleteSegmentFunction=!0,m(v,ss)),m(v,l.segmentPrefix);var g=F(d.toString(16));return m(v,g),m(v,mo),m(v,l.placeholderPrefix),m(v,g),T(v,ni)}var Ai=R(bn+';$RC("'),da=R('$RC("'),as=R('","'),ri=R('")<\/script>');function vo(v,l,d,g){if(m(v,l.startInlineScript),l.sentCompleteBoundaryFunction?m(v,da):(l.sentCompleteBoundaryFunction=!0,m(v,Ai)),d===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var x=F(g.toString(16));return m(v,d),m(v,as),m(v,l.segmentPrefix),m(v,x),T(v,ri)}var Ga=R($n+';$RX("'),Pu=R('$RX("'),ha=R('"'),yo=R(")<\/script>"),cn=R(",");function Il(v,l,d,g,x,O){if(m(v,l.startInlineScript),l.sentClientRenderFunction?m(v,Pu):(l.sentClientRenderFunction=!0,m(v,Ga)),d===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return m(v,d),m(v,ha),(g||x||O)&&(m(v,cn),m(v,F($s(g||"")))),(x||O)&&(m(v,cn),m(v,F($s(x||"")))),O&&(m(v,cn),m(v,F($s(O)))),T(v,yo)}var pa=/[<\u2028\u2029]/g;function $s(v){var l=JSON.stringify(v);return l.replace(pa,function(d){switch(d){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var J=Object.assign,he=Symbol.for("react.element"),Ce=Symbol.for("react.portal"),ke=Symbol.for("react.fragment"),K=Symbol.for("react.strict_mode"),fe=Symbol.for("react.profiler"),le=Symbol.for("react.provider"),Fe=Symbol.for("react.context"),Ve=Symbol.for("react.forward_ref"),ut=Symbol.for("react.suspense"),dt=Symbol.for("react.suspense_list"),at=Symbol.for("react.memo"),At=Symbol.for("react.lazy"),wt=Symbol.for("react.scope"),Vt=Symbol.for("react.debug_trace_mode"),Yn=Symbol.for("react.legacy_hidden"),nr=Symbol.for("react.default_value"),An=Symbol.iterator,zt="@@iterator";function Vr(v){if(v===null||typeof v!="object")return null;var l=An&&v[An]||v[zt];return typeof l=="function"?l:null}function kt(v,l,d){var g=v.displayName;if(g)return g;var x=l.displayName||l.name||"";return x!==""?d+"("+x+")":d}function Ou(v){return v.displayName||"Context"}function pn(v){if(v==null)return null;if(typeof v.tag=="number"&&i("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof v=="function")return v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case ke:return"Fragment";case Ce:return"Portal";case fe:return"Profiler";case K:return"StrictMode";case ut:return"Suspense";case dt:return"SuspenseList"}if(typeof v=="object")switch(v.$$typeof){case Fe:var l=v;return Ou(l)+".Consumer";case le:var d=v;return Ou(d._context)+".Provider";case Ve:return kt(v,v.render,"ForwardRef");case at:var g=v.displayName||null;return g!==null?g:pn(v.type)||"Memo";case At:{var x=v,O=x._payload,B=x._init;try{return pn(B(O))}catch{return null}}}return null}var Fo=0,Ru,Iu,Au,ga,No,qa,Xa;function Vs(){}Vs.__reactDisabledLog=!0;function ma(){{if(Fo===0){Ru=console.log,Iu=console.info,Au=console.warn,ga=console.error,No=console.group,qa=console.groupCollapsed,Xa=console.groupEnd;var v={configurable:!0,enumerable:!0,value:Vs,writable:!0};Object.defineProperties(console,{info:v,log:v,warn:v,error:v,group:v,groupCollapsed:v,groupEnd:v})}Fo++}}function Al(){{if(Fo--,Fo===0){var v={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:J({},v,{value:Ru}),info:J({},v,{value:Iu}),warn:J({},v,{value:Au}),error:J({},v,{value:ga}),group:J({},v,{value:No}),groupCollapsed:J({},v,{value:qa}),groupEnd:J({},v,{value:Xa})})}Fo<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var jo=n.ReactCurrentDispatcher,Ml;function Ki(v,l,d){{if(Ml===void 0)try{throw Error()}catch(x){var g=x.stack.trim().match(/\n( *(at )?)/);Ml=g&&g[1]||""}return`
|
|
109
|
+
`+Ml+v}}var Bo=!1,ls;{var Bf=typeof WeakMap=="function"?WeakMap:Map;ls=new Bf}function Ka(v,l){if(!v||Bo)return"";{var d=ls.get(v);if(d!==void 0)return d}var g;Bo=!0;var x=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var O;O=jo.current,jo.current=null,ma();try{if(l){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(en){g=en}Reflect.construct(v,[],B)}else{try{B.call()}catch(en){g=en}v.call(B.prototype)}}else{try{throw Error()}catch(en){g=en}v()}}catch(en){if(en&&g&&typeof en.stack=="string"){for(var G=en.stack.split(`
|
|
110
|
+
`),oe=g.stack.split(`
|
|
111
|
+
`),Se=G.length-1,He=oe.length-1;Se>=1&&He>=0&&G[Se]!==oe[He];)He--;for(;Se>=1&&He>=0;Se--,He--)if(G[Se]!==oe[He]){if(Se!==1||He!==1)do if(Se--,He--,He<0||G[Se]!==oe[He]){var qe=`
|
|
112
|
+
`+G[Se].replace(" at new "," at ");return v.displayName&&qe.includes("<anonymous>")&&(qe=qe.replace("<anonymous>",v.displayName)),typeof v=="function"&&ls.set(v,qe),qe}while(Se>=1&&He>=0);break}}}finally{Bo=!1,jo.current=O,Al(),Error.prepareStackTrace=x}var ot=v?v.displayName||v.name:"",xt=ot?Ki(ot):"";return typeof v=="function"&&ls.set(v,xt),xt}function Mc(v,l,d){return Ka(v,!0)}function va(v,l,d){return Ka(v,!1)}function Hs(v){var l=v.prototype;return!!(l&&l.isReactComponent)}function ya(v,l,d){if(v==null)return"";if(typeof v=="function")return Ka(v,Hs(v));if(typeof v=="string")return Ki(v);switch(v){case ut:return Ki("Suspense");case dt:return Ki("SuspenseList")}if(typeof v=="object")switch(v.$$typeof){case Ve:return va(v.render);case at:return ya(v.type,l,d);case At:{var g=v,x=g._payload,O=g._init;try{return ya(O(x),l,d)}catch{}}}return""}var Ll={},ba=n.ReactDebugCurrentFrame;function Za(v){if(v){var l=v._owner,d=ya(v.type,v._source,l?l.type:null);ba.setExtraStackFrame(d)}else ba.setExtraStackFrame(null)}function Lc(v,l,d,g,x){{var O=Function.call.bind(ie);for(var B in v)if(O(v,B)){var G=void 0;try{if(typeof v[B]!="function"){var oe=Error((g||"React class")+": "+d+" type `"+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof v[B]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw oe.name="Invariant Violation",oe}G=v[B](l,B,g,d,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Se){G=Se}G&&!(G instanceof Error)&&(Za(x),i("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",g||"React class",d,B,typeof G),Za(null)),G instanceof Error&&!(G.message in Ll)&&(Ll[G.message]=!0,Za(x),i("Failed %s type: %s",d,G.message),Za(null))}}}var wn;wn={};var Gn={};Object.freeze(Gn);function us(v,l){{var d=v.contextTypes;if(!d)return Gn;var g={};for(var x in d)g[x]=l[x];{var O=pn(v)||"Unknown";Lc(d,g,"context",O)}return g}}function Mu(v,l,d,g){{if(typeof v.getChildContext!="function"){{var x=pn(l)||"Unknown";wn[x]||(wn[x]=!0,i("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",x,x))}return d}var O=v.getChildContext();for(var B in O)if(!(B in g))throw new Error((pn(l)||"Unknown")+'.getChildContext(): key "'+B+'" is not defined in childContextTypes.');{var G=pn(l)||"Unknown";Lc(g,O,"child context",G)}return J({},d,O)}}var cs;cs={};var Fl=null,bo=null;function fs(v){v.context._currentValue=v.parentValue}function wa(v){v.context._currentValue=v.value}function wo(v,l){if(v!==l){fs(v);var d=v.parent,g=l.parent;if(d===null){if(g!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(g===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");wo(d,g)}wa(l)}}function $o(v){fs(v);var l=v.parent;l!==null&&$o(l)}function xa(v){var l=v.parent;l!==null&&xa(l),wa(v)}function Ja(v,l){fs(v);var d=v.parent;if(d===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");d.depth===l.depth?wo(d,l):Ja(d,l)}function Us(v,l){var d=l.parent;if(d===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");v.depth===d.depth?wo(v,d):Us(v,d),wa(l)}function ds(v){var l=bo,d=v;l!==d&&(l===null?xa(d):d===null?$o(l):l.depth===d.depth?wo(l,d):l.depth>d.depth?Ja(l,d):Us(l,d),bo=d)}function Lu(v,l){var d;d=v._currentValue,v._currentValue=l,v._currentRenderer!==void 0&&v._currentRenderer!==null&&v._currentRenderer!==cs&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),v._currentRenderer=cs;var g=bo,x={parent:g,depth:g===null?0:g.depth+1,context:v,parentValue:d,value:l};return bo=x,x}function $f(v){var l=bo;if(l===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");l.context!==v&&i("The parent context is not the expected context. This is probably a bug in React.");{var d=l.parentValue;d===nr?l.context._currentValue=l.context._defaultValue:l.context._currentValue=d,v._currentRenderer!==void 0&&v._currentRenderer!==null&&v._currentRenderer!==cs&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),v._currentRenderer=cs}return bo=l.parent}function Fc(){return bo}function Sa(v){var l=v._currentValue;return l}function hs(v){return v._reactInternals}function Ws(v,l){v._reactInternals=l}var Qa={},Y={},Vo,Ho,Cr,$t,Nl,el,jl,xo,Fu;{Vo=new Set,Ho=new Set,Cr=new Set,jl=new Set,$t=new Set,xo=new Set,Fu=new Set;var Nc=new Set;el=function(v,l){if(!(v===null||typeof v=="function")){var d=l+"_"+v;Nc.has(d)||(Nc.add(d),i("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",l,v))}},Nl=function(v,l){if(l===void 0){var d=pn(v)||"Component";$t.has(d)||($t.add(d),i("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",d))}}}function jc(v,l){{var d=v.constructor,g=d&&pn(d)||"ReactClass",x=g+"."+l;if(Qa[x])return;i(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
113
|
+
|
|
114
|
+
Please check the code for the %s component.`,l,l,g),Qa[x]=!0}}var Bc={isMounted:function(v){return!1},enqueueSetState:function(v,l,d){var g=hs(v);g.queue===null?jc(v,"setState"):(g.queue.push(l),d!=null&&el(d,"setState"))},enqueueReplaceState:function(v,l,d){var g=hs(v);g.replace=!0,g.queue=[l],d!=null&&el(d,"setState")},enqueueForceUpdate:function(v,l){var d=hs(v);d.queue===null?jc(v,"forceUpdate"):l!=null&&el(l,"setState")}};function Vf(v,l,d,g,x){var O=d(x,g);Nl(l,O);var B=O==null?g:J({},g,O);return B}function So(v,l,d){var g=Gn,x=v.contextType;if("contextType"in v){var O=x===null||x!==void 0&&x.$$typeof===Fe&&x._context===void 0;if(!O&&!Fu.has(v)){Fu.add(v);var B="";x===void 0?B=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof x!="object"?B=" However, it is set to a "+typeof x+".":x.$$typeof===le?B=" Did you accidentally pass the Context.Provider instead?":x._context!==void 0?B=" Did you accidentally pass the Context.Consumer instead?":B=" However, it is set to an object with keys {"+Object.keys(x).join(", ")+"}.",i("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",pn(v)||"Component",B)}}typeof x=="object"&&x!==null?g=Sa(x):g=d;var G=new v(l,g);{if(typeof v.getDerivedStateFromProps=="function"&&(G.state===null||G.state===void 0)){var oe=pn(v)||"Component";Vo.has(oe)||(Vo.add(oe),i("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",oe,G.state===null?"null":"undefined",oe))}if(typeof v.getDerivedStateFromProps=="function"||typeof G.getSnapshotBeforeUpdate=="function"){var Se=null,He=null,qe=null;if(typeof G.componentWillMount=="function"&&G.componentWillMount.__suppressDeprecationWarning!==!0?Se="componentWillMount":typeof G.UNSAFE_componentWillMount=="function"&&(Se="UNSAFE_componentWillMount"),typeof G.componentWillReceiveProps=="function"&&G.componentWillReceiveProps.__suppressDeprecationWarning!==!0?He="componentWillReceiveProps":typeof G.UNSAFE_componentWillReceiveProps=="function"&&(He="UNSAFE_componentWillReceiveProps"),typeof G.componentWillUpdate=="function"&&G.componentWillUpdate.__suppressDeprecationWarning!==!0?qe="componentWillUpdate":typeof G.UNSAFE_componentWillUpdate=="function"&&(qe="UNSAFE_componentWillUpdate"),Se!==null||He!==null||qe!==null){var ot=pn(v)||"Component",xt=typeof v.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Cr.has(ot)||(Cr.add(ot),i(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
115
|
+
|
|
116
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
117
|
+
|
|
118
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
119
|
+
https://reactjs.org/link/unsafe-component-lifecycles`,ot,xt,Se!==null?`
|
|
120
|
+
`+Se:"",He!==null?`
|
|
121
|
+
`+He:"",qe!==null?`
|
|
122
|
+
`+qe:""))}}}return G}function Hf(v,l,d){{var g=pn(l)||"Component",x=v.render;x||(l.prototype&&typeof l.prototype.render=="function"?i("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",g):i("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",g)),v.getInitialState&&!v.getInitialState.isReactClassApproved&&!v.state&&i("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",g),v.getDefaultProps&&!v.getDefaultProps.isReactClassApproved&&i("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",g),v.propTypes&&i("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",g),v.contextType&&i("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",g),v.contextTypes&&i("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",g),l.contextType&&l.contextTypes&&!xo.has(l)&&(xo.add(l),i("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",g)),typeof v.componentShouldUpdate=="function"&&i("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",g),l.prototype&&l.prototype.isPureReactComponent&&typeof v.shouldComponentUpdate<"u"&&i("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",pn(l)||"A pure component"),typeof v.componentDidUnmount=="function"&&i("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",g),typeof v.componentDidReceiveProps=="function"&&i("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",g),typeof v.componentWillRecieveProps=="function"&&i("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",g),typeof v.UNSAFE_componentWillRecieveProps=="function"&&i("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",g);var O=v.props!==d;v.props!==void 0&&O&&i("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",g,g),v.defaultProps&&i("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",g,g),typeof v.getSnapshotBeforeUpdate=="function"&&typeof v.componentDidUpdate!="function"&&!Ho.has(l)&&(Ho.add(l),i("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",pn(l))),typeof v.getDerivedStateFromProps=="function"&&i("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",g),typeof v.getDerivedStateFromError=="function"&&i("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",g),typeof l.getSnapshotBeforeUpdate=="function"&&i("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",g);var B=v.state;B&&(typeof B!="object"||er(B))&&i("%s.state: must be set to an object or null",g),typeof v.getChildContext=="function"&&typeof l.childContextTypes!="object"&&i("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",g)}}function Uf(v,l){var d=l.state;if(typeof l.componentWillMount=="function"){if(l.componentWillMount.__suppressDeprecationWarning!==!0){var g=pn(v)||"Unknown";Y[g]||(r(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
123
|
+
|
|
124
|
+
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
125
|
+
|
|
126
|
+
Please update the following components: %s`,g),Y[g]=!0)}l.componentWillMount()}typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),d!==l.state&&(i("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",pn(v)||"Component"),Bc.enqueueReplaceState(l,l.state,null))}function Nu(v,l,d,g){if(v.queue!==null&&v.queue.length>0){var x=v.queue,O=v.replace;if(v.queue=null,v.replace=!1,O&&x.length===1)l.state=x[0];else{for(var B=O?x[0]:l.state,G=!0,oe=O?1:0;oe<x.length;oe++){var Se=x[oe],He=typeof Se=="function"?Se.call(l,B,d,g):Se;He!=null&&(G?(G=!1,B=J({},B,He)):J(B,He))}l.state=B}}else v.queue=null}function tl(v,l,d,g){Hf(v,l,d);var x=v.state!==void 0?v.state:null;v.updater=Bc,v.props=d,v.state=x;var O={queue:[],replace:!1};Ws(v,O);var B=l.contextType;if(typeof B=="object"&&B!==null?v.context=Sa(B):v.context=g,v.state===d){var G=pn(l)||"Component";jl.has(G)||(jl.add(G),i("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",G))}var oe=l.getDerivedStateFromProps;typeof oe=="function"&&(v.state=Vf(v,l,oe,x,d)),typeof l.getDerivedStateFromProps!="function"&&typeof v.getSnapshotBeforeUpdate!="function"&&(typeof v.UNSAFE_componentWillMount=="function"||typeof v.componentWillMount=="function")&&(Uf(l,v),Nu(O,v,d,g))}var Wf={id:1,overflow:""};function Uo(v){var l=v.overflow,d=v.id,g=d&~zf(d);return g.toString(32)+l}function ju(v,l,d){var g=v.id,x=v.overflow,O=Bl(g)-1,B=g&~(1<<O),G=d+1,oe=Bl(l)+O;if(oe>30){var Se=O-O%5,He=(1<<Se)-1,qe=(B&He).toString(32),ot=B>>Se,xt=O-Se,en=Bl(l)+xt,ir=G<<xt,ko=ir|ot,xs=qe+x;return{id:1<<en|ko,overflow:xs}}else{var to=G<<O,Ia=to|B,rf=x;return{id:1<<oe|Ia,overflow:rf}}}function Bl(v){return 32-Yf(v)}function zf(v){return 1<<Bl(v)-1}var Yf=Math.clz32?Math.clz32:Bu,Gf=Math.log,Hr=Math.LN2;function Bu(v){var l=v>>>0;return l===0?32:31-(Gf(l)/Hr|0)|0}function $l(v,l){return v===l&&(v!==0||1/v===1/l)||v!==v&&l!==l}var qt=typeof Object.is=="function"?Object.is:$l,xi=null,Ta=null,zs=null,Zt=null,ps=!1,nl=!1,ii=0,Si=null,To=0,$u=25,Ur=!1,Zi;function Ys(){if(xi===null)throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
127
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
128
|
+
2. You might be breaking the Rules of Hooks
|
|
129
|
+
3. You might have more than one copy of React in the same app
|
|
130
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return Ur&&i("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"),xi}function $c(v,l){if(l===null)return i("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Zi),!1;v.length!==l.length&&i(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
131
|
+
|
|
132
|
+
Previous: %s
|
|
133
|
+
Incoming: %s`,Zi,"["+v.join(", ")+"]","["+l.join(", ")+"]");for(var d=0;d<l.length&&d<v.length;d++)if(!qt(v[d],l[d]))return!1;return!0}function Vu(){if(To>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function Ti(){return Zt===null?zs===null?(ps=!1,zs=Zt=Vu()):(ps=!0,Zt=zs):Zt.next===null?(ps=!1,Zt=Zt.next=Vu()):(ps=!0,Zt=Zt.next),Zt}function Hu(v,l){xi=l,Ta=v,Ur=!1,ii=0}function Gs(v,l,d,g){for(;nl;)nl=!1,ii=0,To+=1,Zt=null,d=v(l,g);return Uu(),d}function Wr(){var v=ii!==0;return v}function Uu(){Ur=!1,xi=null,Ta=null,nl=!1,zs=null,To=0,Si=null,Zt=null}function Wu(v){return Ur&&i("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Sa(v)}function zu(v){return Zi="useContext",Ys(),Sa(v)}function qs(v,l){return typeof l=="function"?l(v):l}function gs(v){return Zi="useState",Yu(qs,v)}function Yu(v,l,d){if(v!==qs&&(Zi="useReducer"),xi=Ys(),Zt=Ti(),ps){var g=Zt.queue,x=g.dispatch;if(Si!==null){var O=Si.get(g);if(O!==void 0){Si.delete(g);var B=Zt.memoizedState,G=O;do{var oe=G.action;Ur=!0,B=v(B,oe),Ur=!1,G=G.next}while(G!==null);return Zt.memoizedState=B,[B,x]}}return[Zt.memoizedState,x]}else{Ur=!0;var Se;v===qs?Se=typeof l=="function"?l():l:Se=d!==void 0?d(l):l,Ur=!1,Zt.memoizedState=Se;var He=Zt.queue={last:null,dispatch:null},qe=He.dispatch=Hc.bind(null,xi,He);return[Zt.memoizedState,qe]}}function Vc(v,l){xi=Ys(),Zt=Ti();var d=l===void 0?null:l;if(Zt!==null){var g=Zt.memoizedState;if(g!==null&&d!==null){var x=g[1];if($c(d,x))return g[0]}}Ur=!0;var O=v();return Ur=!1,Zt.memoizedState=[O,d],O}function Vl(v){xi=Ys(),Zt=Ti();var l=Zt.memoizedState;if(l===null){var d={current:v};return Object.seal(d),Zt.memoizedState=d,d}else return l}function qf(v,l){Zi="useLayoutEffect",i("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function Hc(v,l,d){if(To>=$u)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(v===xi){nl=!0;var g={action:d,next:null};Si===null&&(Si=new Map);var x=Si.get(l);if(x===void 0)Si.set(l,g);else{for(var O=x;O.next!==null;)O=O.next;O.next=g}}}function fr(v,l){return Vc(function(){return v},l)}function Gu(v,l,d){return Ys(),l(v._source)}function Uc(v,l,d){if(d===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return d()}function Ci(v){return Ys(),v}function Hl(){throw new Error("startTransition cannot be called during server rendering.")}function Ca(){return Ys(),[!1,Hl]}function ms(){var v=Ta,l=Uo(v.treeContext),d=Xs;if(d===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var g=ii++;return jn(d,l,g)}function rl(){}var rr={readContext:Wu,useContext:zu,useMemo:Vc,useReducer:Yu,useRef:Vl,useState:gs,useInsertionEffect:rl,useLayoutEffect:qf,useCallback:fr,useImperativeHandle:rl,useEffect:rl,useDebugValue:rl,useDeferredValue:Ci,useTransition:Ca,useId:ms,useMutableSource:Gu,useSyncExternalStore:Uc},Xs=null;function Ul(v){Xs=v}function Ea(v){try{var l="",d=v;do{switch(d.tag){case 0:l+=Ki(d.type,null,null);break;case 1:l+=va(d.type,null,null);break;case 2:l+=Mc(d.type,null,null);break}d=d.parent}while(d);return l}catch(g){return`
|
|
134
|
+
Error generating stack: `+g.message+`
|
|
135
|
+
`+g.stack}}var Wl=n.ReactCurrentDispatcher,ka=n.ReactDebugCurrentFrame,zl=0,Co=1,Yl=2,Ks=3,Wc=4,il=0,Da=1,_a=2,qu=12800;function zc(v){return console.error(v),null}function Zs(){}function Gl(v,l,d,g,x,O,B,G,oe){var Se=[],He=new Set,qe={destination:null,responseState:l,progressiveChunkSize:g===void 0?qu:g,status:il,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:He,pingedTasks:Se,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:x===void 0?zc:x,onAllReady:O===void 0?Zs:O,onShellReady:B===void 0?Zs:B,onShellError:G===void 0?Zs:G,onFatalError:oe===void 0?Zs:oe},ot=ol(qe,0,null,d,!1,!1);ot.parentFlushed=!0;var xt=zo(qe,v,null,ot,He,Gn,Fl,Wf);return Se.push(xt),qe}function Wo(v,l){var d=v.pingedTasks;d.push(l),d.length===1&&a(function(){return tc(v)})}function ql(v,l){return{id:Ri,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:l,errorDigest:null}}function zo(v,l,d,g,x,O,B,G){v.allPendingTasks++,d===null?v.pendingRootTasks++:d.pendingTasks++;var oe={node:l,ping:function(){return Wo(v,oe)},blockedBoundary:d,blockedSegment:g,abortSet:x,legacyContext:O,context:B,treeContext:G};return oe.componentStack=null,x.add(oe),oe}function ol(v,l,d,g,x,O){return{status:zl,id:-1,index:l,parentFlushed:!1,chunks:[],children:[],formatContext:g,boundary:d,lastPushedText:x,textEmbedded:O}}var Ji=null;function Qi(){return Ji===null||Ji.componentStack===null?"":Ea(Ji.componentStack)}function Eo(v,l){v.componentStack={tag:0,parent:v.componentStack,type:l}}function sl(v,l){v.componentStack={tag:1,parent:v.componentStack,type:l}}function vs(v,l){v.componentStack={tag:2,parent:v.componentStack,type:l}}function eo(v){v.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):v.componentStack=v.componentStack.parent}var Pa=null;function Xl(v,l){{var d;typeof l=="string"?d=l:l&&typeof l.message=="string"?d=l.message:d=String(l);var g=Pa||Qi();Pa=null,v.errorMessage=d,v.errorComponentStack=g}}function al(v,l){var d=v.onError(l);if(d!=null&&typeof d!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof d+'" instead');return d}function Oa(v,l){var d=v.onShellError;d(l);var g=v.onFatalError;g(l),v.destination!==null?(v.status=_a,U(v.destination,l)):(v.status=Da,v.fatalError=l)}function Yc(v,l,d){Eo(l,"Suspense");var g=l.blockedBoundary,x=l.blockedSegment,O=d.fallback,B=d.children,G=new Set,oe=ql(v,G),Se=x.chunks.length,He=ol(v,Se,oe,x.formatContext,!1,!1);x.children.push(He),x.lastPushedText=!1;var qe=ol(v,0,null,x.formatContext,!1,!1);qe.parentFlushed=!0,l.blockedBoundary=oe,l.blockedSegment=qe;try{if(Ei(v,l,B),On(qe.chunks,v.responseState,qe.lastPushedText,qe.textEmbedded),qe.status=Co,ws(oe,qe),oe.pendingTasks===0){eo(l);return}}catch(xt){qe.status=Wc,oe.forceClientRender=!0,oe.errorDigest=al(v,xt),Xl(oe,xt)}finally{l.blockedBoundary=g,l.blockedSegment=x}var ot=zo(v,O,g,He,G,l.legacyContext,l.context,l.treeContext);ot.componentStack=l.componentStack,v.pingedTasks.push(ot),eo(l)}function Xu(v,l,d,g){Eo(l,d);var x=l.blockedSegment,O=fo(x.chunks,d,g,v.responseState,x.formatContext);x.lastPushedText=!1;var B=x.formatContext;x.formatContext=mi(B,d,g),Ei(v,l,O),x.formatContext=B,Lo(x.chunks,d),x.lastPushedText=!1,eo(l)}function Ku(v){return v.prototype&&v.prototype.isReactComponent}function Js(v,l,d,g,x){var O={};Hu(l,O);var B=d(g,x);return Gs(d,g,B,x)}function Zu(v,l,d,g,x){var O=d.render();d.props!==x&&(Zl||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",pn(g)||"a component"),Zl=!0);{var B=g.childContextTypes;if(B!=null){var G=l.legacyContext,oe=Mu(d,g,G,B);l.legacyContext=oe,dr(v,l,O),l.legacyContext=G;return}}dr(v,l,O)}function Kl(v,l,d,g){vs(l,d);var x=us(d,l.legacyContext),O=So(d,g,x);tl(O,d,g,x),Zu(v,l,O,d,g),eo(l)}var Bt={},ll={},Ju={},Qs={},Zl=!1,Gc={},qc=!1,oi=!1,Xc=!1;function Jl(v,l,d,g){var x;if(x=us(d,l.legacyContext),sl(l,d),d.prototype&&typeof d.prototype.render=="function"){var O=pn(d)||"Unknown";Bt[O]||(i("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",O,O),Bt[O]=!0)}var B=Js(v,l,d,g,x),G=Wr();if(typeof B=="object"&&B!==null&&typeof B.render=="function"&&B.$$typeof===void 0){var oe=pn(d)||"Unknown";ll[oe]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",oe,oe,oe),ll[oe]=!0)}if(typeof B=="object"&&B!==null&&typeof B.render=="function"&&B.$$typeof===void 0){{var Se=pn(d)||"Unknown";ll[Se]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",Se,Se,Se),ll[Se]=!0)}tl(B,d,g,x),Zu(v,l,B,d,g)}else if(Qu(d),G){var He=l.treeContext,qe=1,ot=0;l.treeContext=ju(He,qe,ot);try{dr(v,l,B)}finally{l.treeContext=He}}else dr(v,l,B);eo(l)}function Qu(v){{if(v&&v.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",v.displayName||v.name||"Component"),v.defaultProps!==void 0){var l=pn(v)||"Unknown";Gc[l]||(i("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",l),Gc[l]=!0)}if(typeof v.getDerivedStateFromProps=="function"){var d=pn(v)||"Unknown";Qs[d]||(i("%s: Function components do not support getDerivedStateFromProps.",d),Qs[d]=!0)}if(typeof v.contextType=="object"&&v.contextType!==null){var g=pn(v)||"Unknown";Ju[g]||(i("%s: Function components do not support contextType.",g),Ju[g]=!0)}}}function ec(v,l){if(v&&v.defaultProps){var d=J({},l),g=v.defaultProps;for(var x in g)d[x]===void 0&&(d[x]=g[x]);return d}return l}function Kc(v,l,d,g,x){sl(l,d.render);var O=Js(v,l,d.render,g,x),B=Wr();if(B){var G=l.treeContext,oe=1,Se=0;l.treeContext=ju(G,oe,Se);try{dr(v,l,O)}finally{l.treeContext=G}}else dr(v,l,O);eo(l)}function zr(v,l,d,g,x){var O=d.type,B=ec(O,g);ea(v,l,O,B,x)}function ys(v,l,d,g){d._context===void 0?d!==d.Consumer&&(Xc||(Xc=!0,i("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):d=d._context;var x=g.children;typeof x!="function"&&i("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var O=Sa(d),B=x(O);dr(v,l,B)}function Yr(v,l,d,g){var x=d._context,O=g.value,B=g.children,G;G=l.context,l.context=Lu(x,O),dr(v,l,B),l.context=$f(x),G!==l.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Zc(v,l,d,g,x){Eo(l,"Lazy");var O=d._payload,B=d._init,G=B(O),oe=ec(G,g);ea(v,l,G,oe,x),eo(l)}function ea(v,l,d,g,x){if(typeof d=="function")if(Ku(d)){Kl(v,l,d,g);return}else{Jl(v,l,d,g);return}if(typeof d=="string"){Xu(v,l,d,g);return}switch(d){case Yn:case Vt:case K:case fe:case ke:{dr(v,l,g.children);return}case dt:{Eo(l,"SuspenseList"),dr(v,l,g.children),eo(l);return}case wt:throw new Error("ReactDOMServer does not yet support scope components.");case ut:{Yc(v,l,g);return}}if(typeof d=="object"&&d!==null)switch(d.$$typeof){case Ve:{Kc(v,l,d,g,x);return}case at:{zr(v,l,d,g,x);return}case le:{Yr(v,l,d,g);return}case Fe:{ys(v,l,d,g);return}case At:{Zc(v,l,d,g);return}}var O="";throw(d===void 0||typeof d=="object"&&d!==null&&Object.keys(d).length===0)&&(O+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(d==null?d:typeof d)+"."+O))}function Jc(v,l){typeof Symbol=="function"&&v[Symbol.toStringTag]==="Generator"&&(qc||i("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),qc=!0),v.entries===l&&(oi||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),oi=!0)}function dr(v,l,d){try{return Qc(v,l,d)}catch(g){throw typeof g=="object"&&g!==null&&typeof g.then=="function"||(Pa=Pa!==null?Pa:Qi()),g}}function Qc(v,l,d){if(l.node=d,typeof d=="object"&&d!==null){switch(d.$$typeof){case he:{var g=d,x=g.type,O=g.props,B=g.ref;ea(v,l,x,O,B);return}case Ce:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case At:{var G=d,oe=G._payload,Se=G._init,He;try{He=Se(oe)}catch(to){throw typeof to=="object"&&to!==null&&typeof to.then=="function"&&Eo(l,"Lazy"),to}dr(v,l,He);return}}if(er(d)){Ql(v,l,d);return}var qe=Vr(d);if(qe){Jc(d,qe);var ot=qe.call(d);if(ot){var xt=ot.next();if(!xt.done){var en=[];do en.push(xt.value),xt=ot.next();while(!xt.done);Ql(v,l,en);return}return}}var ir=Object.prototype.toString.call(d);throw new Error("Objects are not valid as a React child (found: "+(ir==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":ir)+"). If you meant to render a collection of children, use an array instead.")}if(typeof d=="string"){var ko=l.blockedSegment;ko.lastPushedText=Pn(l.blockedSegment.chunks,d,v.responseState,ko.lastPushedText);return}if(typeof d=="number"){var xs=l.blockedSegment;xs.lastPushedText=Pn(l.blockedSegment.chunks,""+d,v.responseState,xs.lastPushedText);return}typeof d=="function"&&i("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Ql(v,l,d){for(var g=d.length,x=0;x<g;x++){var O=l.treeContext;l.treeContext=ju(O,g,x);try{Ei(v,l,d[x])}finally{l.treeContext=O}}}function eu(v,l,d){var g=l.blockedSegment,x=g.chunks.length,O=ol(v,x,null,g.formatContext,g.lastPushedText,!0);g.children.push(O),g.lastPushedText=!1;var B=zo(v,l.node,l.blockedBoundary,O,l.abortSet,l.legacyContext,l.context,l.treeContext);l.componentStack!==null&&(B.componentStack=l.componentStack.parent);var G=B.ping;d.then(G,G)}function Ei(v,l,d){var g=l.blockedSegment.formatContext,x=l.legacyContext,O=l.context,B=null;B=l.componentStack;try{return dr(v,l,d)}catch(G){if(Uu(),typeof G=="object"&&G!==null&&typeof G.then=="function"){eu(v,l,G),l.blockedSegment.formatContext=g,l.legacyContext=x,l.context=O,ds(O),l.componentStack=B;return}else throw l.blockedSegment.formatContext=g,l.legacyContext=x,l.context=O,ds(O),l.componentStack=B,G}}function ef(v,l,d,g){var x=al(v,g);if(l===null?Oa(v,g):(l.pendingTasks--,l.forceClientRender||(l.forceClientRender=!0,l.errorDigest=x,Xl(l,g),l.parentFlushed&&v.clientRenderedBoundaries.push(l))),v.allPendingTasks--,v.allPendingTasks===0){var O=v.onAllReady;O()}}function bs(v){var l=this,d=v.blockedBoundary,g=v.blockedSegment;g.status=Ks,ta(l,d,g)}function tu(v,l,d){var g=v.blockedBoundary,x=v.blockedSegment;if(x.status=Ks,g===null)l.allPendingTasks--,l.status!==_a&&(l.status=_a,l.destination!==null&&I(l.destination));else{if(g.pendingTasks--,!g.forceClientRender){g.forceClientRender=!0;var O=d===void 0?new Error("The render was aborted by the server without a reason."):d;g.errorDigest=l.onError(O);{var B="The server did not finish this Suspense boundary: ";O&&typeof O.message=="string"?O=B+O.message:O=B+String(O);var G=Ji;Ji=v;try{Xl(g,O)}finally{Ji=G}}g.parentFlushed&&l.clientRenderedBoundaries.push(g)}if(g.fallbackAbortableTasks.forEach(function(Se){return tu(Se,l,d)}),g.fallbackAbortableTasks.clear(),l.allPendingTasks--,l.allPendingTasks===0){var oe=l.onAllReady;oe()}}}function ws(v,l){if(l.chunks.length===0&&l.children.length===1&&l.children[0].boundary===null){var d=l.children[0];d.id=l.id,d.parentFlushed=!0,d.status===Co&&ws(v,d)}else{var g=v.completedSegments;g.push(l)}}function ta(v,l,d){if(l===null){if(d.parentFlushed){if(v.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");v.completedRootSegment=d}if(v.pendingRootTasks--,v.pendingRootTasks===0){v.onShellError=Zs;var g=v.onShellReady;g()}}else if(l.pendingTasks--,!l.forceClientRender){if(l.pendingTasks===0)d.parentFlushed&&d.status===Co&&ws(l,d),l.parentFlushed&&v.completedBoundaries.push(l),l.fallbackAbortableTasks.forEach(bs,v),l.fallbackAbortableTasks.clear();else if(d.parentFlushed&&d.status===Co){ws(l,d);var x=l.completedSegments;x.length===1&&l.parentFlushed&&v.partialBoundaries.push(l)}}if(v.allPendingTasks--,v.allPendingTasks===0){var O=v.onAllReady;O()}}function Xf(v,l){var d=l.blockedSegment;if(d.status===zl){ds(l.context);var g=null;g=Ji,Ji=l;try{dr(v,l,l.node),On(d.chunks,v.responseState,d.lastPushedText,d.textEmbedded),l.abortSet.delete(l),d.status=Co,ta(v,l.blockedBoundary,d)}catch(O){if(Uu(),typeof O=="object"&&O!==null&&typeof O.then=="function"){var x=l.ping;O.then(x,x)}else l.abortSet.delete(l),d.status=Wc,ef(v,l.blockedBoundary,d,O)}finally{Ji=g}}}function tc(v){if(v.status!==_a){var l=Fc(),d=Wl.current;Wl.current=rr;var g;g=ka.getCurrentStack,ka.getCurrentStack=Qi;var x=Xs;Ul(v.responseState);try{var O=v.pingedTasks,B;for(B=0;B<O.length;B++){var G=O[B];Xf(v,G)}O.splice(0,B),v.destination!==null&&Mi(v,v.destination)}catch(oe){al(v,oe),Oa(v,oe)}finally{Ul(x),Wl.current=d,ka.getCurrentStack=g,d===rr&&ds(l)}}}function ul(v,l,d){switch(d.parentFlushed=!0,d.status){case zl:{var g=d.id=v.nextSegmentId++;return d.lastPushedText=!1,d.textEmbedded=!1,cr(l,v.responseState,g)}case Co:{d.status=Yl;for(var x=!0,O=d.chunks,B=0,G=d.children,oe=0;oe<G.length;oe++){for(var Se=G[oe];B<Se.index;B++)m(l,O[B]);x=cl(v,l,Se)}for(;B<O.length-1;B++)m(l,O[B]);return B<O.length&&(x=T(l,O[B])),x}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function cl(v,l,d){var g=d.boundary;if(g===null)return ul(v,l,d);if(g.parentFlushed=!0,g.forceClientRender)return We(l,v.responseState,g.errorDigest,g.errorMessage,g.errorComponentStack),ul(v,l,d),Et(l,v.responseState);if(g.pendingTasks>0){g.rootSegmentID=v.nextSegmentId++,g.completedSegments.length>0&&v.partialBoundaries.push(g);var x=g.id=nn(v.responseState);return Te(l,v.responseState,x),ul(v,l,d),Tt(l,v.responseState)}else{if(g.byteSize>v.progressiveChunkSize)return g.rootSegmentID=v.nextSegmentId++,v.completedBoundaries.push(g),Te(l,v.responseState,g.id),ul(v,l,d),Tt(l,v.responseState);Le(l,v.responseState);var O=g.completedSegments;if(O.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var B=O[0];return cl(v,l,B),lt(l,v.responseState)}}function nc(v,l,d){return Il(l,v.responseState,d.id,d.errorDigest,d.errorMessage,d.errorComponentStack)}function nu(v,l,d){return St(l,v.responseState,d.formatContext,d.id),cl(v,l,d),yt(l,d.formatContext)}function rc(v,l,d){for(var g=d.completedSegments,x=0;x<g.length;x++){var O=g[x];Gr(v,l,d,O)}return g.length=0,vo(l,v.responseState,d.id,d.rootSegmentID)}function tf(v,l,d){for(var g=d.completedSegments,x=0;x<g.length;x++){var O=g[x];if(!Gr(v,l,d,O))return x++,g.splice(0,x),!1}return g.splice(0,x),!0}function Gr(v,l,d,g){if(g.status===Yl)return!0;var x=g.id;if(x===-1){var O=g.id=d.rootSegmentID;if(O===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return nu(v,l,g)}else return nu(v,l,g),Ya(l,v.responseState,x)}function Mi(v,l){y();try{var d=v.completedRootSegment;d!==null&&v.pendingRootTasks===0&&(cl(v,l,d),v.completedRootSegment=null,wi(l,v.responseState));var g=v.clientRenderedBoundaries,x;for(x=0;x<g.length;x++){var O=g[x];nc(v,l,O)}g.splice(0,x);var B=v.completedBoundaries;for(x=0;x<B.length;x++){var G=B[x];rc(v,l,G)}B.splice(0,x),E(l),y(l);var oe=v.partialBoundaries;for(x=0;x<oe.length;x++){var Se=oe[x];if(!tf(v,l,Se)){v.destination=null,x++,oe.splice(0,x);return}}oe.splice(0,x);var He=v.completedBoundaries;for(x=0;x<He.length;x++){var qe=He[x];rc(v,l,qe)}He.splice(0,x)}finally{E(l),v.allPendingTasks===0&&v.pingedTasks.length===0&&v.clientRenderedBoundaries.length===0&&v.completedBoundaries.length===0&&(v.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),I(l))}}function nf(v){a(function(){return tc(v)})}function Kf(v,l){if(v.status===Da){v.status=_a,U(l,v.fatalError);return}if(v.status!==_a&&v.destination===null){v.destination=l;try{Mi(v,l)}catch(d){al(v,d),Oa(v,d)}}}function fl(v,l){try{var d=v.abortableTasks;d.forEach(function(g){return tu(g,v,l)}),d.clear(),v.destination!==null&&Mi(v,v.destination)}catch(g){al(v,g),Oa(v,g)}}function Ra(v,l){return new Promise(function(d,g){var x,O,B=new Promise(function(ot,xt){O=ot,x=xt});function G(){var ot=new ReadableStream({type:"bytes",pull:function(xt){Kf(Se,xt)},cancel:function(xt){fl(Se)}},{highWaterMark:0});ot.allReady=B,d(ot)}function oe(ot){B.catch(function(){}),g(ot)}var Se=Gl(v,Oi(l?l.identifierPrefix:void 0,l?l.nonce:void 0,l?l.bootstrapScriptContent:void 0,l?l.bootstrapScripts:void 0,l?l.bootstrapModules:void 0),gi(l?l.namespaceURI:void 0),l?l.progressiveChunkSize:void 0,l?l.onError:void 0,O,G,oe,x);if(l&&l.signal){var He=l.signal,qe=function(){fl(Se,He.reason),He.removeEventListener("abort",qe)};He.addEventListener("abort",qe)}nf(Se)})}jh.renderToReadableStream=Ra,jh.version=e}()),jh}var Dc,Mv;process.env.NODE_ENV==="production"?(Dc=Q4(),Mv=e6()):(Dc=t6(),Mv=n6());Dc.version;var r6=Dc.renderToString;Dc.renderToStaticMarkup;Dc.renderToNodeStream;Dc.renderToStaticNodeStream;Mv.renderToReadableStream;var i6=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function n_(t,e){return t(e={exports:{}},e.exports),e.exports}var o6=n_(function(t){(function(e){var n=function(F,R,U){if(!f(R)||y(R)||m(R)||T(R)||c(R))return R;var H,ne=0,Z=0;if(p(R))for(H=[],Z=R.length;ne<Z;ne++)H.push(n(F,R[ne],U));else for(var ce in H={},R)Object.prototype.hasOwnProperty.call(R,ce)&&(H[F(ce,U)]=n(F,R[ce],U));return H},r=function(F){return E(F)?F:(F=F.replace(/[\-_\s]+(.)?/g,function(R,U){return U?U.toUpperCase():""})).substr(0,1).toLowerCase()+F.substr(1)},i=function(F){var R=r(F);return R.substr(0,1).toUpperCase()+R.substr(1)},o=function(F,R){return function(U,H){var ne=(H=H||{}).separator||"_",Z=H.split||/(?=[A-Z])/;return U.split(Z).join(ne)}(F,R).toLowerCase()},a=Object.prototype.toString,c=function(F){return typeof F=="function"},f=function(F){return F===Object(F)},p=function(F){return a.call(F)=="[object Array]"},y=function(F){return a.call(F)=="[object Date]"},m=function(F){return a.call(F)=="[object RegExp]"},T=function(F){return a.call(F)=="[object Boolean]"},E=function(F){return(F-=0)==F},I=function(F,R){var U=R&&"process"in R?R.process:R;return typeof U!="function"?F:function(H,ne){return U(H,F,ne)}},A={camelize:r,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(F,R){return n(I(r,R),F)},decamelizeKeys:function(F,R){return n(I(o,R),F,R)},pascalizeKeys:function(F,R){return n(I(i,R),F)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=A:e.humps=A})(i6)}).decamelize,s6=function(t){if(Array.isArray(t))return t},a6=function(t,e){if(typeof Symbol<"u"&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(f){i=!0,o=f}finally{try{r||c.return==null||c.return()}finally{if(i)throw o}}return n}},I1=function(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},l6=function(t,e){if(t){if(typeof t=="string")return I1(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I1(t,e):void 0}},u6=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
136
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},c6=function(t,e){return s6(t)||a6(t,e)||l6(t,e)||u6()},r_=n_(function(t){function e(){return t.exports=e=Object.assign||function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},e.apply(this,arguments)}t.exports=e}),f6=function(t,e){if(t==null)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i},i_=function(t,e){if(t==null)return{};var n,r,i=f6(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i},d6=z.createContext(null);function o_(t){var e=t.children,n=e===void 0?"":e,r=i_(t,["children"]);return typeof n!="string"&&(n=r6(n)),z.createElement("template",r_({},r,{dangerouslySetInnerHTML:{__html:n}}))}function s_(t){var e=t.root,n=t.children;return zv.createPortal(n===void 0?null:n,e)}function h6(t){var e=z.forwardRef(function(n,r){var i,o,a=n.mode,c=a===void 0?"open":a,f=n.delegatesFocus,p=f!==void 0&&f,y=n.styleSheets,m=y===void 0?[]:y,T=n.ssr,E=T!==void 0&&T,I=n.children,A=i_(n,["mode","delegatesFocus","styleSheets","ssr","children"]),F=(o=z.useRef((i=r)&&i.current),z.useEffect(function(){i&&(i.current=o.current)},[i]),o),R=z.useState(null),U=c6(R,2),H=U[0],ne=U[1],Z="node_".concat(c).concat(p);return z.useLayoutEffect(function(){if(F.current)try{if(typeof r=="function"&&r(F.current),E){var ce=F.current.shadowRoot;return void ne(ce)}var S=F.current.attachShadow({mode:c,delegatesFocus:p});m.length>0&&(S.adoptedStyleSheets=m),ne(S)}catch(re){(function(ie){var Pe=ie.error,Ke=ie.styleSheets,$e=ie.root;switch(Pe.name){case"NotSupportedError":Ke.length>0&&($e.adoptedStyleSheets=Ke);break;default:throw Pe}})({error:re,styleSheets:m,root:H})}},[r,F,m]),z.createElement(z.Fragment,null,z.createElement(t.tag,r_({key:Z,ref:F},A),(H||E)&&z.createElement(d6.Provider,{value:H},E?z.createElement(o_,{shadowroot:c,shadowrootmode:c},t.render({root:H,ssr:E,children:I})):z.createElement(s_,{root:H},t.render({root:H,ssr:E,children:I})))))});return e.propTypes={mode:Rs.oneOf(["open","closed"]),delegatesFocus:Rs.bool,styleSheets:Rs.arrayOf(Rs.instanceOf(globalThis.CSSStyleSheet)),ssr:Rs.bool,children:Rs.node},e}o_.propTypes={children:Rs.oneOfType([Rs.string,Rs.node])},s_.propTypes={root:Rs.object.isRequired,children:Rs.node};var Tm=new Map;function p6(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(r){return r.children};return new Proxy(t,{get:function(r,i){var o=o6(i,{separator:"-"}),a="".concat(e,"-").concat(o);return Tm.has(a)||Tm.set(a,h6({tag:o,render:n})),Tm.get(a)}})}var g6=p6();const m6=".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}",v6=".favorite-bar{top:64px;z-index:var(--menu-z-index);border-bottom:1px solid #ddd}.favorite-bar--hidden{transform:translateY(-100%);opacity:0;height:0;z-index:-1}.favorite-bar--visible{transform:translateY(0);opacity:1}@media (min-width: 768px){.favorite-bar{position:sticky}}";var A1;(function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"})(A1||(A1={}));const y6=Object.freeze({x:0,y:0});var Cf;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(Cf||(Cf={}));var M1;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(M1||(M1={}));var Is;(function(t){t.Space="Space",t.Down="ArrowDown",t.Right="ArrowRight",t.Left="ArrowLeft",t.Up="ArrowUp",t.Esc="Escape",t.Enter="Enter",t.Tab="Tab"})(Is||(Is={}));Is.Space,Is.Enter,Is.Esc,Is.Space,Is.Enter,Is.Tab;var L1;(function(t){t[t.RightClick=2]="RightClick"})(L1||(L1={}));var F1;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(F1||(F1={}));var N1;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(N1||(N1={}));Cf.Backward+"",Cf.Forward+"",Cf.Backward+"",Cf.Forward+"";var Lv;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(Lv||(Lv={}));var Fv;(function(t){t.Optimized="optimized"})(Fv||(Fv={}));Lv.WhileDragging,Fv.Optimized;({...y6});var j1;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(j1||(j1={}));function b6(t,e,n){const r=t.slice();return r.splice(n<0?r.length+n:n,0,r.splice(e,1)[0]),r}Is.Down,Is.Right,Is.Up,Is.Left;function B1(t){const e=new CustomEvent("updateFavoriteMenu",{detail:{menuItem:t}});window.dispatchEvent(e)}const Cm="MENU_ITEM";function w6(t){const e=Pd.useLocation(),[n,r]=z.useState([]),[i,o]=z.useState([]),[a,c]=z.useState([]),[f,p]=z.useState(!1);console.log("isSubmit",f);const y=z.useRef(null),m=z.useRef(null),[T,E]=z.useState(window.location.href);z.useEffect(()=>{E(window.location.href)},[e]);const I=re=>`${re}`;function A(re,ie){for(const Pe of re){if(Pe.id===ie)return Pe;if(Pe.children){const Ke=A(Pe.children,ie);if(Ke)return Ke}}return null}function F(re,ie){if(ie){const Pe=A(n,re);Pe&&(Pe.isFavorite=ie,B1(Pe))}else{const Pe=tt=>tt.filter(nt=>nt.id!==re).map(nt=>({...nt,children:nt.children?Pe(nt.children):void 0})),Ke=Pe(n);r(Ke);const $e=A(n,re);$e&&($e.isFavorite=ie,B1($e))}ub(re,ie)}const R=re=>{console.log("Favorite menus changed",re);const ie=re.detail.favoriteMenus||[];r(ie)};z.useEffect(()=>{t.initialFavoriteItems&&t.initialFavoriteItems.length>0&&r(t.initialFavoriteItems)},[t.initialFavoriteItems]);const[U,H]=z.useState(!1);z.useEffect(()=>{const re=ie=>{H(ie.detail.isLoading)};return window.addEventListener("favoriteLoadingChange",re),()=>{window.removeEventListener("favoriteLoadingChange",re)}},[]),z.useEffect(()=>(window.addEventListener("favoriteMenusChange",R),()=>{window.removeEventListener("favoriteMenusChange",R)}),[]),z.useEffect(()=>{if(t.isTreeMode&&n.length>0){let re=0;const ie=new Map,Pe=($e,tt=0,nt=0)=>{const ge=`${$e.id}-${tt}`;if(ie.has(ge))return[];const _e=re++;ie.set(ge,_e);const Re={id:$e.id,parent:tt,text:$e.name,data:$e};let Ae=[];return $e.children&&$e.children.length>0&&(Ae=$e.children.flatMap(et=>Pe(et,$e.id,nt+1))),[Re,...Ae]},Ke=n.flatMap($e=>Pe($e));c(Ke)}},[n,t.isTreeMode]);const ne=(re,ie)=>{n[re];const Pe=b6(n,re,ie);r(Pe),p(!0);const Ke={menuItemIds:Pe.map($e=>$e.id)};As.post("global-menu-config/api/v1/menu-items/user/order-favorites",Ke,{baseURL:t.baseUrl}).then(()=>{window.dispatchEvent(new CustomEvent("favoriteOrderUpdated",{detail:{favoriteMenuId:Pe.map($e=>$e.id)}}))}).catch($e=>{console.error($e),r(n)}).finally(()=>{p(!1)})};console.log("favoriteItems",n);const Z=Object.entries(t.brandColors||{}).reduce((re,[ie,Pe])=>(Pe&&(re[`--${ie}`]=Pe),re),{}),ce=({item:re,index:ie})=>{const Pe=z.useRef(null),[{isDragging:Ke},$e]=ck({type:Cm,item:()=>({id:re.id,index:ie}),collect:Re=>({isDragging:Re.isDragging()})}),[{isOver:tt,isOverCurrent:nt},ge]=mp(()=>({accept:Cm,collect:Re=>({isOver:Re.isOver(),isOverCurrent:Re.isOver({shallow:!0})}),drop:Re=>{Re.index!==ie&&(Re.index<ie?(ne(Re.index,ie-1),Re.index=ie-1):(ne(Re.index,ie),Re.index=ie))}}),[]);let _e="hover-off";return(nt||tt)&&(_e="hover-on"),$e(ge(Pe)),de.jsx("div",{ref:Pe,style:{opacity:Ke?.7:1,boxShadow:Ke?"0 4px 8px rgba(0, 0, 0, 0.2)":"none",cursor:"move",display:"inline-block",marginRight:"8px",position:"relative",transition:"transform 0.3s ease-in-out",...Z},className:`item ${_e}`,children:de.jsx(t_,{replacePath:t.replacePath,ssr:t.ssr,brandColors:t.brandColors,baseUrl:t.baseUrl,item:re,level:1,onSetFavoriteSuccess:F,isDrop:f,onClickItem:Re=>{var Ae;(Ae=t.onClickItem)==null||Ae.call(t,Re),window.dispatchEvent(new CustomEvent("favoriteMenuPathChange",{detail:{path:Re.path,menuItemId:Re.id}}))}})})},S=()=>{const re=z.useRef(null),[{isOver:ie,canDrop:Pe},Ke]=mp(()=>({accept:Cm,drop:$e=>{ne($e.index,n.length-1),$e.index=n.length-1},collect:$e=>({isOver:$e.isOver(),canDrop:$e.canDrop()})}),[n]);return Ke(re),de.jsx("div",{ref:re,style:{height:48,width:150,display:"flex",alignItems:"center",justifyContent:"center",borderLeft:ie&&Pe?"2px solid var(--primary300)":"transparent",...Z}})};return console.log("isLoading fav",U),t.isTreeMode?de.jsx("div",{style:{height:"100%",overflow:"auto"},children:de.jsx(fv,{backend:(t.dndMode??"multi")==="multi"?pk:lp,...(t.dndMode??"multi")==="multi"?{options:xk()}:{},children:de.jsx(sp,{ref:y,className:I("wrap-section favorite-menu__menu"),style:{marginTop:4,flex:1,height:"100%"},children:de.jsx(Ek,{ref:m,tree:a,rootId:0,sort:!1,insertDroppableFirst:!1,enableAnimateExpand:!0,dropTargetOffset:10,onDrop:()=>{},render:(re,ie)=>{const Pe=re.data,Ke=()=>!1;return de.jsx(cb,{onClickItem:()=>{var $e;return($e=t.onClickItem)==null?void 0:$e.call(t,Pe)},isInternalApp:!1,isActive:Ke,isCollapsed:!1,replacePath:t.replacePath,ssr:t.ssr,brandColors:t.brandColors,baseUrl:t.baseUrl,node:re,params:ie,nodes:a,item:Pe,expanded:()=>!1,toggleExpand:$e=>{var tt;if($e.stopPropagation(),ie.isOpen)ie.onToggle();else{const nt=a.filter(ge=>ge.parent===re.parent&&ge.id!==re.id).map(ge=>ge.id);console.log(" closeIds:",nt),(tt=m.current)==null||tt.open(re.id),setTimeout(()=>{var ge;(ge=m.current)==null||ge.close(nt)},0)}},level:ie.depth,onSetFavoriteSuccess:F})},initialOpen:[]})})})}):de.jsx(de.Fragment,{children:de.jsx("div",{className:I(`favorite-menu${n.length===0?" favorite-menu--empty":""}`),style:{width:"100%",display:"flex"},children:n.length>0&&de.jsx(sp,{ref:y,className:I("wrap-section favorite-menu__menu"),style:{marginTop:4,flex:1,height:"100%"},children:de.jsx(fv,{backend:lp,children:de.jsxs("div",{style:{display:"inline-flex"},children:[n.map((re,ie)=>de.jsx(ce,{item:re,index:ie},re.id)),de.jsx(S,{})]})})})})})}function x6(t=32){const[e,n]=z.useState(!0),r=z.useRef(0),i=()=>{const o=document.getElementById("app-iframe");if(o&&o.contentWindow){const a=o.contentWindow.scrollY;a>r.current&&a>t?n(!1):a<r.current&&n(!0),r.current=a}};return z.useEffect(()=>{const o=document.getElementById("app-iframe");if(!o)return;const a=()=>{const c=o.contentWindow;c&&(c.addEventListener("scroll",i),n(!0),r.current=c.scrollY||0)};return o.addEventListener("load",a),()=>{o.removeEventListener("load",a);const c=o.contentWindow;c&&c.removeEventListener("scroll",i)}},[]),{isFavoriteBarVisible:e}}function S6(t){const{isFavoriteBarVisible:e}=x6();return de.jsxs(de.Fragment,{children:[de.jsx("style",{children:v6}),de.jsx("div",{className:`favorite-bar backdrop-delay-transition ${e?"favorite-bar--visible":"favorite-bar--hidden"}`,children:de.jsx(g6.div,{children:de.jsx(Ip,{styles:[iC,J4,m6],children:de.jsx(w6,{...t})})})})]})}function ub(t,e){const n=JSON.parse(localStorage.getItem("favoriteItems")||"[]");if(e)n.includes(t)||n.push(t);else{const r=n.indexOf(t);r>-1&&n.splice(r,1)}localStorage.setItem("favoriteItems",JSON.stringify(n))}function T6(t){if(t.redirectUrl)return t.redirectUrl;if(t.path&&t.path.includes("http")){const e=new URL(t.path);return e.href.replace(e.origin,"")}return t.path||"#"}function cb({...t}){var ue,De,je;const e=t.item,n=t.level||0,r=!!((ue=t.item.children)!=null&&ue.length),{isActive:i,isCollapsed:o}=t,a=`level-${n}`,c=o?"collapsed":"expanded",f=i(e.id)?"active":"",p=r?"parent":"child",y=t.params.isOpen?"isOpen":"isClose",m=t.isInternalApp?"isInternalApp":"",T=(Ie,Be=a)=>`${Ie} ${Be} ${c} ${f} ${p} ${y} ${m}`,[E,I]=z.useState(!1),[A,F]=z.useState(e.isFavorite||!1);z.useEffect(()=>{F(!!t.item.isFavorite)},[t.item.isFavorite]);const R=z.useRef(),U=z.useRef();U!=null&&U.current&&((De=U==null?void 0:U.current)==null?void 0:De.scrollWidth)>((je=U==null?void 0:U.current)==null?void 0:je.clientWidth);const H=window.location.origin,ne=e.path&&e.path.includes("http")?new URL(e.path):{origin:"",pathname:""},Z=window.location.pathname.split("/")[1],ce=ne.pathname.split("/")[1],S=t.item.redirectUrl||t.ssr||!H.includes("local")&&H!==ne.origin||ce!==Z,re=r?"div":!t.isInternalApp&&S?"a":Pd.Link,ie=T6(e),Pe=n+1,Ke=r&&o&&E,$e=o||n===0?void 0:`${n+.25}rem`,tt=()=>{I(!0)},nt=()=>{I(!1)},ge="/global-menu-config/api/v1/menu-items/user/set-favorite",_e=e.serviceKey==="mn_poms";t.params.depth*20,t.params.depth,ZH(e.id,t.params.isOpen,t.params.onToggle);const Ae=_e||o&&n===0?e.name==="POMs"?"Parking Operations Management":e.description||e.name:null,et=Object.entries(t.brandColors||{}).reduce((Ie,[Be,Ue])=>(Ue&&(Ie[`--${Be}`]=Ue),Ie),{}),ye=H!==ne.origin||t.item.redirectUrl?"_blank":"_self";return de.jsxs("div",{ref:R,className:T("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s",...et},onMouseOver:tt,onMouseOut:nt,onDragStart:Ie=>{o&&n>1&&Ie.preventDefault()},children:[de.jsx(aa.Tooltip,{placement:"top",title:Ae,disableInteractive:!0,children:de.jsxs(re,{target:ye,to:ie,draggable:"true",className:T("menu-item__link"),style:{paddingLeft:$e},onClick:Ie=>{var Be;re==="a"&&ye==="_blank"||(!r&&e.path&&(localStorage.setItem("latestClickMenuPath",(e.path||"").replace(window.location.origin,"")),(Be=t.onClickItem)==null||Be.call(t,ie)),!o&&t.toggleExpand(Ie))},children:[de.jsx(C6,{cls:T,item:e}),de.jsx("span",{className:T("menu-item__label"),ref:U,children:e.name}),de.jsx(E6,{tooltipPosition:Ae?"right":"top",menuLevel:n,hasChildren:r,isHovered:E,isFavorite:A,onClick:Ie=>{const Be={menuConfigId:e.id,isFavorite:Ie},Ue=t.baseUrl+ge;As.post(Ue,Be).then(it=>{var rt;F(Ie),Qv(Dr("components.menu.pushSuccess.menuSuccess",{defaultValue:"Set favorite menu item successful"})),(rt=t.onSetFavoriteSuccess)==null||rt.call(t,t.item.id,Ie),ub(t.item.id,Ie)}).catch(it=>{var rt,st;Gd(((st=(rt=it.response)==null?void 0:rt.data)==null?void 0:st.errorMessage)||Dr("components.menu.pushError.menuError",{defaultValue:"Have error when set favorite menu item"}))})}}),r&&de.jsx("div",{className:T("menu-item__icon-arrow__wrapper"),children:de.jsx(b4,{className:T(`menu-item__icon-arrow__icon ${t.params.isOpen?"open":"close"}`)})})]})}),Ke&&de.jsx(w4,{parentRef:R,onlyChild:!o,renderChildren:({maxHeight:Ie})=>{var Be;return de.jsx(GD.div,{className:T(`menu-item__dropdown ${t.params.isOpen?"menu-item__dropdown--open":"menu-item__dropdown--close"}`,`level-${Pe}`),style:ab({maxHeight:Ie,overflowY:"auto",paddingRight:3},Ie!=="auto"&&!!Pe),children:(Be=e.children)==null?void 0:Be.map(Ue=>z.createElement(cb,{...t,key:Ue.id,item:Ue,level:Pe}))})}})]})}function C6({item:t,cls:e}){return de.jsx("div",{className:e("menu-item__icon"),children:de.jsx(e_,{item:t})})}function E6(t){const[e,n]=z.useState(window.innerWidth<768);z.useEffect(()=>{const o=()=>{n(window.innerWidth<768)};return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[]);const r={marginRight:t.hasChildren?10:0,fontSize:18,fill:mr.warning},i=e||t.isHovered;return de.jsxs(de.Fragment,{children:[i&&!t.isFavorite&&de.jsx(aa.Tooltip,{placement:t.tooltipPosition||"top",title:"Add to favorites",disableInteractive:!0,children:de.jsx("div",{children:de.jsx(qD,{style:r,onClick:o=>{var a;o.preventDefault(),o.stopPropagation(),(a=t.onClick)==null||a.call(t,!0)}})})}),t.isFavorite&&de.jsx(aa.Tooltip,{placement:t.tooltipPosition||"top",title:"Remove from favorites",disableInteractive:!0,children:de.jsx("div",{children:de.jsx(XD,{style:r,onClick:o=>{var a;o.preventDefault(),o.stopPropagation(),(a=t.onClick)==null||a.call(t,!1)}})})})]})}function k6(){return de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:de.jsx("path",{d:"M21 18v2H3v-2h18zM6.596 3.903L8.01 5.318 4.828 8.5 8.01 11.68l-1.414 1.415L2 8.5l4.596-4.597zM21 11v2h-9v-2h9zm0-7v2h-9V4h9z"})})}function D6(){return de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:de.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}function _6(t){return de.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...t,children:de.jsx("path",{fill:"#E01B00",fillRule:"evenodd",d:"M.179 2.875A2.375 2.375 0 012.554.5h3.393a1.018 1.018 0 010 2.036H2.554a.34.34 0 00-.34.339v14.25c0 .187.152.34.34.34h3.393a1.018 1.018 0 110 2.035H2.554a2.375 2.375 0 01-2.375-2.375V2.875zm14.167 6.107h-7.72a1.018 1.018 0 000 2.036h7.72l-2.673 2.673a1.018 1.018 0 101.44 1.44l4.41-4.411a1.018 1.018 0 000-1.44l-4.41-4.41a1.018 1.018 0 10-1.44 1.439l2.673 2.673z",clipRule:"evenodd"})})}const P6=".flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{padding:0 8px;transition:all .3s}.wrap-section.collapsed{padding:0 4px}.side-bar.expanded{width:17rem}.side-bar.collapsed{width:64px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:5px 0}.side-bar__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:1}.side-bar__logout-btn__text.collapsed{opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;background-color:initial}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%;color:#292929}.menu-item__wrapper.collapsed.active,.menu-item__wrapper.expanded.active.parent.isClose,.menu-item__wrapper.expanded.active.child{color:var(--primary400);background-color:var(--primary200)}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer}.menu-item__link.expanded.level-0{padding:.5rem 10px}.isHome{position:sticky;top:0;background-color:#fafafa;z-index:10}.menu-item__link:hover{background-color:#919eab14;text-decoration:none!important;color:inherit!important}.menu-item__link.collapsed.level-0{padding-left:calc(.5rem + 7.665px)!important}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-0,.menu-item__link.active.level-1,.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9{background-color:inherit;color:inherit}.menu-item__link.active.level-1:hover,.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-0:hover{background-color:#919eab14}.menu-item__link.level-0{transition:padding .2s}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center;color:#85858a}.menu-item__icon.collapsed.active,.menu-item__icon.expanded.active.parent.isClose,.menu-item__icon.expanded.active.child{color:inherit}.menu-item__icon.collapsed.level-0>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;opacity:1}.menu-item__label.active{color:inherit}.menu-item__label.level-0{margin-left:8px;font-weight:500;font-size:.951rem}.menu-item__label.level-0.isInternalApp{font-weight:unset!important}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.expanded{right:4px}.menu-item__icon-arrow__icon{transition:transform .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown.expanded.menu-item__dropdown--close{margin-top:0;transition:margin-top .3s}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown.expanded{overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.backdrop{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;z-index:1299}@media (min-width: 768px){.side-bar{position:fixed;top:64px;left:0;height:calc(100vh - 64px);max-width:18rem;display:flex;flex-direction:column;border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s}.side-bar__menu.collapsed .simplebar-track.simplebar-vertical{display:none}.menu-item__label.level-0.collapsed{text-overflow:unset}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-0{font-size:.875rem;opacity:0;transition-delay:.15s}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:210px;max-width:210px;padding:4px;z-index:1200}.menu-item__link.menu-item__link.collapsed.level-0{padding:0}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-0{height:48px}.menu-item__dropdown.collapsed.level-0{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}}@media (max-width: 768px){.side-bar__wrap-btn-logout,.side-bar__btn-logout{position:fixed;bottom:0;width:89%;background:#fff}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}",O6=t=>{const e=t.isCollapsed?0:t.depth*16;return de.jsx("div",{style:{backgroundColor:t.color||"#93D500",height:"2px",position:"absolute",right:"0",top:"0",left:e}})},R6=".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}",I6=t=>{const[e,n]=z.useState(()=>{const r=localStorage.getItem("openingMenuIds");return r&&r!=="[]"?JSON.parse(r):(t==null?void 0:t.initOpenIds)||[]});return z.useEffect(()=>{localStorage.setItem("openingMenuIds",JSON.stringify(e))},[e]),[e,n]};function a_(t,e=!1){let n;e?n="0":n=!t||t==="true"?"17rem":"64px",document.documentElement.style.setProperty("--global-menu-width",n);const r=new CustomEvent("menuWidthChange",{detail:{menuWidth:n}});window.dispatchEvent(r)}const Jh=localStorage.getItem("isCollapsed");a_(Jh);function A6(t){const e=new CustomEvent("favoriteMenusChange",{detail:{favoriteMenus:t}});window.dispatchEvent(e)}function M6(t){const e=Pd.useLocation(),{user:n}=vT(),[r,i]=z.useState([]),o=r.map(ue=>ue.data),[a,c]=z.useState(!1),[f,p]=z.useState([]),[y,m]=z.useState(Jh===null?!0:Jh==="true"),[T,E]=z.useState(window.innerWidth<768),[I,A]=z.useState(!1),[F,R]=z.useState(window.location.href),U=z.useRef(null);z.useEffect(()=>{var ue;(ue=t.handleCallback)==null||ue.call(t,o)},[o,t.handleCallback]),z.useEffect(()=>{R(window.location.href),e.pathname+e.search+e.hash&&localStorage.setItem("latestClickMenuPath",(e.pathname+e.search+e.hash||"").replace(window.location.origin,""))},[e]),z.useEffect(()=>{const ue=()=>{E(window.innerWidth<768)};return window.addEventListener("resize",ue),()=>window.removeEventListener("resize",ue)},[]),z.useEffect(()=>{a_(y,T)},[y,T]);const H=V1(o,F),[ne,Z]=I6({initOpenIds:t.initOpenIds}),ce=()=>{var ue,De;if(m(!y),localStorage.setItem("isCollapsed",JSON.stringify(!y)),y)ne&&((ue=U.current)==null||ue.open(ne));else{const je=r.filter(Ie=>Ie.parent===0).map(Ie=>Ie.id);console.log("closeIds:",je),(De=U.current)==null||De.close(je)}},[S,re]=z.useState(!1),ie=y&&!T?"collapsed":"expanded",Pe=ue=>`${ue} ${ie}`,Ke=z.useRef(null);z.useLayoutEffect(()=>{(async()=>{var De,je,Ie;try{const Be=t.menuPath||"/global-menu-config/api/v1/menu-items/user",Ue=t.baseUrl+Be,{data:it}=await As.get(Ue);let rt=it.map(Qe=>({...Qe,parentKey:Qe.parentKey||0}));rt=u_(rt),t.replacePath&&(rt=l_(rt,t.replacePath));const st=rt.map(Qe=>({id:Qe.id,parent:Qe.parentKey,text:Qe.name,data:Qe}));i(st),(De=t.onDataLoaded)==null||De.call(t,st)}catch(Be){console.error("Global menu",Be),Gd(((Ie=(je=Be.response)==null?void 0:je.data)==null?void 0:Ie.errorMessage)||Be.message||Dr("components.menu.pushError.menuError",{defaultValue:"Have error when set favorite menu item"}))}})()},[t.baseUrl,t.menuPath,t.replacePath]);const[$e,tt]=z.useState(!1),nt=async()=>{tt(!0),window.dispatchEvent(new CustomEvent("favoriteLoadingChange",{detail:{isLoading:!0}}));try{const ue=await fetch(`${t.baseUrl}/global-menu-config/api/v1/menu-items/user/get-favorites`);if(!ue.ok)throw new Error("Failed to fetch favorite items");const De=await ue.json();p(De),document.documentElement.style.setProperty("--favorite-menu-height",`${De.length?57:0}px`)}catch(ue){document.documentElement.style.setProperty("--favorite-menu-height","0px"),console.error("Error fetching favorite items:",ue)}finally{tt(!1),window.dispatchEvent(new CustomEvent("favoriteLoadingChange",{detail:{isLoading:!1}}))}};z.useEffect(()=>{nt()},[t.baseUrl,e]),z.useEffect(()=>{const ue=De=>{p(De.detail.favoriteMenuId)};return window.addEventListener("favoriteOrderUpdated",ue),()=>{window.removeEventListener("favoriteOrderUpdated",ue)}},[]),z.useEffect(()=>{let ue=[];f.forEach(Ie=>{const Be=o.find(Ue=>Ue.id===Ie&&Ue.isFavorite===!0);Be&&(ue=[...ue,Be])});function De(Ie){return o.every(Be=>Be.parentKey!==Ie.id)?Ie:{...Ie,children:o.filter(Be=>Be.parentKey===Ie.id).map(Be=>De(Be))}}const je=ue.map(Ie=>De(Ie));A6(je)},[o]);const ge=(ue,De,je)=>{let Ie=ue.find(Be=>Be.id===je);for(;Ie;){if(Ie.parentKey===De)return!0;Ie=ue.find(Be=>Be.id===(Ie==null?void 0:Ie.parentKey))}return!1},_e=z.useRef(ne);z.useEffect(()=>{_e.current=ne},[ne]),z.useEffect(()=>{const ue=De=>{var st;const je=De,{path:Ie}=je.detail,Ue=V1(o,Ie).map(Qe=>Qe.id),rt=_e.current.filter(Qe=>Ue.includes(Qe)?!1:!Ue.some(ft=>ge(o,Qe,ft)));console.log("idsToClose:",rt),y||(st=U.current)==null||st.open(Ue),setTimeout(()=>{var Qe;(Qe=U.current)==null||Qe.close(rt)},0),Z(Ue)};return window.addEventListener("favoriteMenuPathChange",ue),()=>{window.removeEventListener("favoriteMenuPathChange",ue)}},[o]);function Re(ue){const De=ue.detail.menuItem;i(je=>je.map(Ie=>Ie.id!==De.id?Ie:{...Ie,data:De})),nt()}z.useEffect(()=>(window.addEventListener("updateFavoriteMenu",Re),()=>{window.removeEventListener("updateFavoriteMenu",Re)}),[]),z.useLayoutEffect(()=>{var Ie;const ue=localStorage.getItem("scrollPos");ue&&Ke.current&&setTimeout(()=>{const Be=Ke.current.getScrollElement();Be.scrollTop=parseInt(ue)},0);const De=()=>{if(Ke.current){const Be=Ke.current.getScrollElement();localStorage.setItem("scrollPos",Be.scrollTop.toString())}},je=(Ie=Ke.current)==null?void 0:Ie.getScrollElement();return je==null||je.addEventListener("scroll",De),()=>{je==null||je.removeEventListener("scroll",De)}},[o]);function Ae(ue){c(!0);const De=[...r],je=[...ue],Ie=je.filter(ft=>ft.parent===0),Be=je.filter(ft=>ft.parent!==0),Ue=Ie.find(ft=>{var Xe;return((Xe=ft.data)==null?void 0:Xe.name)==="Home"}),it=Ie.filter(ft=>{var Xe;return((Xe=ft.data)==null?void 0:Xe.name)!=="Home"}),st=[...Ue?[Ue,...it]:it,...Be];i(st);const Qe=st.map((ft,Xe)=>({menuItemId:ft.id,order:Xe}));As.post("/global-menu-config/api/v1/menu-items/user",Qe,{baseURL:t.baseUrl}).then(()=>{}).catch(ft=>{console.error(ft),i(De)}).finally(()=>{c(!1)})}const et=z.useMemo(()=>Jh==="false"?ne:[],[]);console.log("🚀 ~ GlobalMenuContent ~ initOpenIds:",et),console.log("🚀 ~ GlobalMenuContent ~ openingMenuIds:",ne),console.log("matchPath",H);const ye=document.getElementById("global-menu-container");return de.jsx(Ip,{styles:[Xv],style:{zIndex:"calc(var(--menu-z-index) + 1)"},children:de.jsxs("div",{className:Pe(`side-bar${T?" is-mobile":""}`),style:t.inlineMode?{position:"relative",top:"auto",left:"auto",height:"100%",maxWidth:"100%",width:"100%",border:"none",display:"flex",flexDirection:"column"}:void 0,children:[!T&&de.jsx("div",{className:Pe("wrap-section side-bar__wrapper-toggle-btn"),children:de.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:ce,children:y?de.jsx(D6,{}):de.jsx(k6,{})})}),de.jsx(fv,{backend:(t.dndMode??"multi")==="multi"?pk:lp,...(t.dndMode??"multi")==="multi"?{options:xk()}:{},children:de.jsx(sp,{ref:Ke,className:Pe("wrap-section side-bar__menu"),style:{marginTop:T?0:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:de.jsx(Ek,{ref:U,classes:{root:"treeRoot",draggingSource:"draggingSource",placeholder:"placeholderContainer",listItem:ue=>{var De;return((De=ue.data)==null?void 0:De.name)==="Home"?"isHome":""}},tree:r,rootId:0,sort:!1,insertDroppableFirst:!1,enableAnimateExpand:!0,dropTargetOffset:10,onDrop:Ae,render:(ue,De)=>{function je(it){return r.every(rt=>rt.parent!==it.id)?it:{...it,children:r.filter(rt=>rt.parent===it.id).map(rt=>je(rt.data))}}const Ie=je(ue.data),Be=it=>H.some(rt=>rt.id===it);function Ue(it,rt){i(st=>st.map(Qe=>Qe.id===it?{...Qe,data:{...Qe.data,isFavorite:rt}}:Qe)),nt()}return de.jsx(cb,{onClickItem:t.onClickItem,isInternalApp:t.isInternalApp,isActive:Be,isCollapsed:y,replacePath:t.replacePath,ssr:t.ssr,brandColors:t.brandColors,baseUrl:t.baseUrl,node:ue,params:De,nodes:r,item:Ie,expanded:()=>!1,toggleExpand:it=>{var rt;if(it.stopPropagation(),De.isOpen)De.onToggle();else{const st=r.filter(Qe=>Qe.parent===ue.parent&&Qe.id!==ue.id).map(Qe=>Qe.id);console.log(" closeIds:",st),(rt=U.current)==null||rt.open(ue.id),setTimeout(()=>{var Qe;(Qe=U.current)==null||Qe.close(st)},0)}},level:De.depth,onSetFavoriteSuccess:Ue})},placeholderRender:(ue,{depth:De})=>{var je;return de.jsx(O6,{node:ue,depth:De,color:(je=t.brandColors)==null?void 0:je.primary300,isCollapsed:y})},canDrag:ue=>{var De;return!a&&((De=ue==null?void 0:ue.data)==null?void 0:De.name)!=="Home"},canDrop:(ue,{dragSource:De,dropTargetId:je})=>(De==null?void 0:De.parent)===je,onDragStart:ue=>{console.log("onDragStart",ue)},onChangeOpen:ue=>{localStorage.getItem("isCollapsed")==="false"&&(console.log("onChangeOpen:",ue),Z(ue))},initialOpen:et})})}),de.jsxs("div",{className:Pe("wrap-section side-bar__wrap-btn-logout"),style:t.inlineMode?{flexShrink:0}:void 0,children:[de.jsxs("button",{className:Pe("side-bar__logout-btn"),onClick:()=>{ye.style.setProperty("z-index","1304"),ye.classList.remove("backdrop-delay-transition"),re(!0)},children:[de.jsx(_6,{className:Pe("side-bar__icon-logout")}),de.jsx("span",{className:Pe("side-bar__logout-btn__text"),children:"Logout"})]}),de.jsx(HT,{isOpen:S,onClose:()=>{ye.style.setProperty("z-index","var(--menu-z-index)"),ye.classList.add("backdrop-delay-transition"),re(!1)},onConfirm:()=>t.logout?t.logout():pT(t.baseUrl)})]})]})})}function L6(){var f;const t=[{value:Rd.en,element:de.jsx(zT,{})},{value:Rd.de,element:de.jsx(GT,{})}],[e,n]=z.useState(!1),[r,i]=z.useState(new Array(t.length).fill(!1)),{language:o,setLanguage:a}=LT();z.useEffect(()=>{YT({childrenClass:"languageDropdown",action(){n(!1)}})},[]);const c=(f=t.find(p=>p.value==o))==null?void 0:f.element;return de.jsxs(de.Fragment,{children:[de.jsx("style",{children:Xv}),de.jsx("div",{className:"languageDropdownContainer",style:{position:"relative"},children:de.jsx("div",{className:"languageDropdown",onClick:()=>{n(!e)},children:c})})]})}const $1={"/stella/page/SiteManagement/Company/List?tenantId=1":["/stella/page/SiteManagement/Company","/stella/page/SiteManagement/Region","/stella/page/SiteManagement/Location","/stella/page/SiteManagement/Zone","/stella/page/SiteManagement/Service","/stella/page/SiteManagement/Sign"],"/stella/page/SiteManagement/Portfolio/List":["/stella/page/SiteManagement/Portfolio"],"/stella/page/SiteManagement/CountryRegion/List":["/stella/page/SiteManagement/CountryRegion"],"/stella/page/SiteManagement/VehicleListController/List":["/stella/page/SiteManagement/VehicleListController"],"/stella/page/ContraventionManagement/CorrespondenceTemplate/List":["/stella/page/ContraventionManagement/CorrespondenceTemplate"],"/stella/page/ContraventionManagement/VerificationsAudit/List":["/stella/page/ContraventionManagement/VerificationsAudit"],"/stella/page/ContraventionManagement/PendingWardenVerification/List":["/stella/page/ContraventionManagement/PendingWardenVerification"],"/stella/page/ContraventionManagement/Appeal/Search":["/stella/page/ContraventionManagement/Appeal"],"/stella/page/ContraventionManagement/Contravention/Search":["/stella/page/ContraventionManagement/Contravention"],"/stella/page/ContraventionManagement/Tag/Search":["/stella/page/ContraventionManagement/Tag"],"/stella/page/ContraventionManagement/WorkflowMapping/List":["/stella/page/ContraventionManagement/WorkflowMapping"],"/stella/page/ContraventionManagement/WorkflowLetterTemplateMapping/List":["/stella/page/ContraventionManagement/WorkflowLetterTemplateMapping"],"/stella/page/ContraventionManagement/ScannedAppeal/Summary":["/stella/page/ContraventionManagement/ScannedAppeal"],"/stella/page/ContraventionManagement/PendingAppealWorkQueue/List":["/stella/page/ContraventionManagement/PendingAppeal"],"/stella/page/ContraventionManagement/NoDecisionAIAppeal/List":["/stella/page/ContraventionManagement/NoDecisionAIAppeal"],"/stella/page/ContraventionManagement/VerifyAIAppeal/List":["/stella/page/ContraventionManagement/VerifyAIAppeal"],"/anpr/page/LocationDisableReasons/Index":["/anpr/page/LocationDisableReasons"],"/anpr/page/Tags/Index":["/anpr/page/Tags"],"/anpr/page/VendorLocations/Index":["/anpr/page/VendorLocations"],"/anpr/page/Cameras/Index":["/anpr/page/Cameras"],"/anpr/page/Locations/Index":["/anpr/page/Locations"],"/anpr/page/Devices/Index":["/anpr/page/Devices","/anpr/page/Locations"],"/anpr/page/Technical/Overview":["/anpr/page/Technical"],"/anpr/page/Technical/Index":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P1":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P2":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P3":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P4":["/anpr/page/Technical"],"/anpr/page/CustomVerifications/Overview":["/anpr/page/CustomVerifications/Overview"],"/anpr/page/CustomVerifications/WipByLocation":["/anpr/page/CustomVerifications"],"/anpr/page/Issues/Create":["/anpr/page/Issues/Create"],"/anpr/page/Issues/ExportAsCsv":["/anpr/page/Issues/ExportAsCsv"],"/anpr/page/Issues/Overview":["/anpr/page/Issues/Overview"],"/anpr/page/Issues/Index?status=Closed":["/anpr/page/Issues"],"/anpr/page/Issues/Index":["/anpr/page/Issues"]};function F6(t,e){const r=t.replace(window.origin,"").replace("/app",""),i=new URL(r,window.location.origin),o=new URL(e.replace("/app",""),window.origin),a=(localStorage.getItem("latestClickMenuPath")||"").replace("/app","");return r&&$1[r]&&$1[r].some(c=>e.replace("/app","").includes(c))?a===r?5:4:i.pathname===o.pathname&&i.search===o.search?3:i.pathname===o.pathname?2:o.pathname.startsWith(i.pathname)?1:0}function V1(t,e){const n=t.map(a=>({item:a,priority:a.path?F6(a.path,e):0})).filter(a=>a.priority>0);console.log(" index.tsx ~ matchedItems:",n);const r=n.length>0?n.reduce((a,c)=>c.priority>a.priority?c:a).item:null,i=[];let o=r;for(;o;)i.unshift(o),o=t.find(a=>a.id===(o==null?void 0:o.parentKey))||null;return console.log("🚀 ~ _findItemAndParents ~ parents:",i),i}function l_(t,e){return t.map(n=>{var r;return(r=n.children)!=null&&r.length?(n.path="",n.children=l_(n.children,e)):n.path=e(n.path),n})}function u_(t){return t.map(n=>n.path&&!n.path.includes("http")&&n.path.includes("/")?{...n,path:window.location.origin+"/app"+n.path}:(n.children&&(n.children=u_(n.children)),n))}function N6(t){const[e,n]=z.useState(window.innerWidth<768);return z.useEffect(()=>{const r=()=>{n(window.innerWidth<768)};return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[]),de.jsx(Ip,{id:"global-menu-container",styles:[iC,P6,R6],style:{zIndex:e?"calc(var(--menu-z-index) + 1)":"var(--menu-z-index)",position:"relative"},className:"backdrop-delay-transition",children:de.jsx(M6,{...t})})}const Bh={"page-container":"_page-container_1pwo1_1","page-main-content":"_page-main-content_1pwo1_8","page-title":"_page-title_1pwo1_19","text-base":"_text-base_1pwo1_26","mt-4":"_mt-4_1pwo1_33"},j6=()=>{const{t}=ET();return de.jsx("div",{className:"unauth__container "+Bh["page-container"],children:de.jsxs("div",{className:"unauth__main-content "+Bh["page-main-content"],children:[de.jsx(B6,{}),de.jsxs("div",{className:"unauth__main-text",children:[de.jsx("h2",{className:"unauth__main-text__title "+Bh["page-title"],children:Dr("components.unauthorizedPage.title")}),de.jsxs("p",{className:"unauth__main-text__desc "+Bh["text-base"],children:[Dr("components.unauthorizedPage.description1")," ",de.jsx("br",{})," ",Dr("components.unauthorizedPage.description2")]})]})]})})},B6=()=>de.jsxs("svg",{width:"61",height:"60",viewBox:"0 0 61 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[de.jsxs("g",{filter:"url(#filter0_d_10800_50471)",children:[de.jsx("rect",{x:"2.5",y:"1",width:"56",height:"56",rx:"28",fill:"white"}),de.jsx("path",{d:"M24.6667 27.833V23.1663C24.6667 21.6192 25.2812 20.1355 26.3752 19.0416C27.4692 17.9476 28.9529 17.333 30.5 17.333C32.0471 17.333 33.5308 17.9476 34.6248 19.0416C35.7188 20.1355 36.3333 21.6192 36.3333 23.1663V27.833M22.3333 27.833H38.6667C39.9553 27.833 41 28.8777 41 30.1663V38.333C41 39.6217 39.9553 40.6663 38.6667 40.6663H22.3333C21.0447 40.6663 20 39.6217 20 38.333V30.1663C20 28.8777 21.0447 27.833 22.3333 27.833Z",stroke:"#292929","stroke-width":"2.33333","stroke-linecap":"round","stroke-linejoin":"round"})]}),de.jsx("defs",{children:de.jsxs("filter",{id:"filter0_d_10800_50471",x:"0.5",y:"0",width:"60",height:"60",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[de.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),de.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),de.jsx("feOffset",{dy:"1"}),de.jsx("feGaussianBlur",{stdDeviation:"1"}),de.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0"}),de.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_10800_50471"}),de.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_10800_50471",result:"shape"})]})})]});var kp={exports:{}};/**
|
|
137
|
+
* @license
|
|
138
|
+
* Lodash <https://lodash.com/>
|
|
139
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
140
|
+
* Released under MIT license <https://lodash.com/license>
|
|
141
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
142
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
143
|
+
*/kp.exports;(function(t,e){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",p=500,y="__lodash_placeholder__",m=1,T=2,E=4,I=1,A=2,F=1,R=2,U=4,H=8,ne=16,Z=32,ce=64,S=128,re=256,ie=512,Pe=30,Ke="...",$e=800,tt=16,nt=1,ge=2,_e=3,Re=1/0,Ae=9007199254740991,et=17976931348623157e292,ye=NaN,ue=4294967295,De=ue-1,je=ue>>>1,Ie=[["ary",S],["bind",F],["bindKey",R],["curry",H],["curryRight",ne],["flip",ie],["partial",Z],["partialRight",ce],["rearg",re]],Be="[object Arguments]",Ue="[object Array]",it="[object AsyncFunction]",rt="[object Boolean]",st="[object Date]",Qe="[object DOMException]",ft="[object Error]",Xe="[object Function]",It="[object GeneratorFunction]",Mt="[object Map]",Vn="[object Number]",vr="[object Null]",Hn="[object Object]",Sn="[object Promise]",Vi="[object Proxy]",Pr="[object RegExp]",Jn="[object Set]",sn="[object String]",fn="[object Symbol]",dn="[object Undefined]",ht="[object WeakMap]",Dn="[object WeakSet]",ai="[object ArrayBuffer]",on="[object DataView]",Hi="[object Float32Array]",Ui="[object Float64Array]",Wi="[object Int8Array]",Or="[object Int16Array]",Nn="[object Int32Array]",Rr="[object Uint8Array]",yr="[object Uint8ClampedArray]",qr="[object Uint16Array]",Xr="[object Uint32Array]",Ao=/\b__p \+= '';/g,Un=/\b(__p \+=) '' \+/g,Kr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Qn=/&(?:amp|lt|gt|quot|#39);/g,Wt=/[&<>"']/g,li=RegExp(Qn.source),zi=RegExp(Wt.source),_n=/<%-([\s\S]+?)%>/g,hn=/<%([\s\S]+?)%>/g,ui=/<%=([\s\S]+?)%>/g,ci=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tn=/^\w*$/,ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,br=/[\\^$.*+?()[\]{}|]/g,fi=RegExp(br.source),an=/^\s+/,_i=/\s/,Ls=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fs=/\{\n\/\* \[wrapped with (.+)\] \*/,Zr=/,? & /,lo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,uo=/[()=,{}\[\]\/\s]/,Pi=/\\(\\)?/g,er=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ir=/\w*$/,Ar=/^[-+]0x[0-9a-f]+$/i,di=/^0b[01]+$/i,Jr=/^\[object .+?Constructor\]$/,wr=/^0o[0-7]+$/i,Mr=/^(?:0|[1-9]\d*)$/,tr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Yi=/($^)/,Oi=/['\n\r\u2028\u2029\\]/g,ar="\\ud800-\\udfff",yn="\\u0300-\\u036f",Lr="\\ufe20-\\ufe2f",Fr="\\u20d0-\\u20ff",hi=yn+Lr+Fr,pi="\\u2700-\\u27bf",xr="a-z\\xdf-\\xf6\\xf8-\\xff",Qr="\\xac\\xb1\\xd7\\xf7",Wn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",gi="\\u2000-\\u206f",mi=" \\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",Ri="A-Z\\xc0-\\xd6\\xd8-\\xde",nn="\\ufe0e\\ufe0f",jn=Qr+Wn+gi+mi,Cn="['’]",co="["+ar+"]",Pn="["+jn+"]",On="["+hi+"]",k="\\d+",N="["+pi+"]",q="["+xr+"]",ee="[^"+ar+jn+k+pi+xr+Ri+"]",Ee="\\ud83c[\\udffb-\\udfff]",ve="(?:"+On+"|"+Ee+")",Me="[^"+ar+"]",Ze="(?:\\ud83c[\\udde6-\\uddff]){2}",mt="[\\ud800-\\udbff][\\udc00-\\udfff]",vt="["+Ri+"]",pt="\\u200d",Ft="(?:"+q+"|"+ee+")",Bn="(?:"+vt+"|"+ee+")",zn="(?:"+Cn+"(?:d|ll|m|re|s|t|ve))?",En="(?:"+Cn+"(?:D|LL|M|RE|S|T|VE))?",ei=ve+"?",lr="["+nn+"]?",Gi="(?:"+pt+"(?:"+[Me,Ze,mt].join("|")+")"+lr+ei+")*",vi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Nr=lr+ei+Gi,Xi="(?:"+[N,Ze,mt].join("|")+")"+Nr,Wa="(?:"+[Me+On+"?",On,Ze,mt,co].join("|")+")",Ns=RegExp(Cn,"g"),is=RegExp(On,"g"),Sr=RegExp(Ee+"(?="+Ee+")|"+Wa+Nr,"g"),za=RegExp([vt+"?"+q+"+"+zn+"(?="+[Pn,vt,"$"].join("|")+")",Bn+"+"+En+"(?="+[Pn,vt+Ft,"$"].join("|")+")",vt+"?"+Ft+"+"+zn,vt+"+"+En,qi,vi,k,Xi].join("|"),"g"),yi=RegExp("["+pt+ar+hi+nn+"]"),js=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,os=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rn=-1,Gt={};Gt[Hi]=Gt[Ui]=Gt[Wi]=Gt[Or]=Gt[Nn]=Gt[Rr]=Gt[yr]=Gt[qr]=Gt[Xr]=!0,Gt[Be]=Gt[Ue]=Gt[ai]=Gt[rt]=Gt[on]=Gt[st]=Gt[ft]=Gt[Xe]=Gt[Mt]=Gt[Vn]=Gt[Hn]=Gt[Pr]=Gt[Jn]=Gt[sn]=Gt[ht]=!1;var Kt={};Kt[Be]=Kt[Ue]=Kt[ai]=Kt[on]=Kt[rt]=Kt[st]=Kt[Hi]=Kt[Ui]=Kt[Wi]=Kt[Or]=Kt[Nn]=Kt[Mt]=Kt[Vn]=Kt[Hn]=Kt[Pr]=Kt[Jn]=Kt[sn]=Kt[fn]=Kt[Rr]=Kt[yr]=Kt[qr]=Kt[Xr]=!0,Kt[ft]=Kt[Xe]=Kt[ht]=!1;var Ii={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ti={"&":"&","<":"<",">":">",'"':""","'":"'"},Mo={"&":"&","<":"<",">":">",""":'"',"'":"'"},bi={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ur=parseFloat,Bs=parseInt,fo=typeof Di=="object"&&Di&&Di.Object===Object&&Di,ua=typeof self=="object"&&self&&self.Object===Object&&self,ln=fo||ua||Function("return this")(),Lo=e&&!e.nodeType&&e,wi=Lo&&!0&&t&&!t.nodeType&&t,ca=wi&&wi.exports===Lo,ho=ca&&fo.process,cr=function(){try{var K=wi&&wi.require&&wi.require("util").types;return K||ho&&ho.binding&&ho.binding("util")}catch{}}(),h=cr&&cr.isArrayBuffer,b=cr&&cr.isDate,C=cr&&cr.isMap,_=cr&&cr.isRegExp,L=cr&&cr.isSet,j=cr&&cr.isTypedArray;function V(K,fe,le){switch(le.length){case 0:return K.call(fe);case 1:return K.call(fe,le[0]);case 2:return K.call(fe,le[0],le[1]);case 3:return K.call(fe,le[0],le[1],le[2])}return K.apply(fe,le)}function ae(K,fe,le,Fe){for(var Ve=-1,ut=K==null?0:K.length;++Ve<ut;){var dt=K[Ve];fe(Fe,dt,le(dt),K)}return Fe}function te(K,fe){for(var le=-1,Fe=K==null?0:K.length;++le<Fe&&fe(K[le],le,K)!==!1;);return K}function me(K,fe){for(var le=K==null?0:K.length;le--&&fe(K[le],le,K)!==!1;);return K}function Oe(K,fe){for(var le=-1,Fe=K==null?0:K.length;++le<Fe;)if(!fe(K[le],le,K))return!1;return!0}function Le(K,fe){for(var le=-1,Fe=K==null?0:K.length,Ve=0,ut=[];++le<Fe;){var dt=K[le];fe(dt,le,K)&&(ut[Ve++]=dt)}return ut}function Te(K,fe){var le=K==null?0:K.length;return!!le&&Qt(K,fe,0)>-1}function We(K,fe,le){for(var Fe=-1,Ve=K==null?0:K.length;++Fe<Ve;)if(le(fe,K[Fe]))return!0;return!1}function lt(K,fe){for(var le=-1,Fe=K==null?0:K.length,Ve=Array(Fe);++le<Fe;)Ve[le]=fe(K[le],le,K);return Ve}function Tt(K,fe){for(var le=-1,Fe=fe.length,Ve=K.length;++le<Fe;)K[Ve+le]=fe[le];return K}function Et(K,fe,le,Fe){var Ve=-1,ut=K==null?0:K.length;for(Fe&&ut&&(le=K[++Ve]);++Ve<ut;)le=fe(le,K[Ve],Ve,K);return le}function Rn(K,fe,le,Fe){var Ve=K==null?0:K.length;for(Fe&&Ve&&(le=K[--Ve]);Ve--;)le=fe(le,K[Ve],Ve,K);return le}function un(K,fe){for(var le=-1,Fe=K==null?0:K.length;++le<Fe;)if(fe(K[le],le,K))return!0;return!1}var jr=D("length");function Br(K){return K.split("")}function Lt(K){return K.match(lo)||[]}function $r(K,fe,le){var Fe;return le(K,function(Ve,ut,dt){if(fe(Ve,ut,dt))return Fe=ut,!1}),Fe}function jt(K,fe,le,Fe){for(var Ve=K.length,ut=le+(Fe?1:-1);Fe?ut--:++ut<Ve;)if(fe(K[ut],ut,K))return ut;return-1}function Qt(K,fe,le){return fe===fe?Pu(K,fe,le):jt(K,go,le)}function po(K,fe,le,Fe){for(var Ve=le-1,ut=K.length;++Ve<ut;)if(Fe(K[Ve],fe))return Ve;return-1}function go(K){return K!==K}function Tr(K,fe){var le=K==null?0:K.length;return le?we(K,fe)/le:ye}function D(K){return function(fe){return fe==null?n:fe[K]}}function M(K){return function(fe){return K==null?n:K[fe]}}function W(K,fe,le,Fe,Ve){return Ve(K,function(ut,dt,at){le=Fe?(Fe=!1,ut):fe(le,ut,dt,at)}),le}function Q(K,fe){var le=K.length;for(K.sort(fe);le--;)K[le]=K[le].value;return K}function we(K,fe){for(var le,Fe=-1,Ve=K.length;++Fe<Ve;){var ut=fe(K[Fe]);ut!==n&&(le=le===n?ut:le+ut)}return le}function xe(K,fe){for(var le=-1,Fe=Array(K);++le<K;)Fe[le]=fe(le);return Fe}function Ne(K,fe){return lt(fe,function(le){return[le,K[le]]})}function Ge(K){return K&&K.slice(0,Il(K)+1).replace(an,"")}function gt(K){return function(fe){return K(fe)}}function Ot(K,fe){return lt(fe,function(le){return K[le]})}function St(K,fe){return K.has(fe)}function yt(K,fe){for(var le=-1,Fe=K.length;++le<Fe&&Qt(fe,K[le],0)>-1;);return le}function In(K,fe){for(var le=K.length;le--&&Qt(fe,K[le],0)>-1;);return le}function bn(K,fe){for(var le=K.length,Fe=0;le--;)K[le]===fe&&++Fe;return Fe}var $n=M(Ii),ss=M(ti);function fa(K){return"\\"+bi[K]}function mo(K,fe){return K==null?n:K[fe]}function ni(K){return yi.test(K)}function Ya(K){return js.test(K)}function Ai(K){for(var fe,le=[];!(fe=K.next()).done;)le.push(fe.value);return le}function da(K){var fe=-1,le=Array(K.size);return K.forEach(function(Fe,Ve){le[++fe]=[Ve,Fe]}),le}function as(K,fe){return function(le){return K(fe(le))}}function ri(K,fe){for(var le=-1,Fe=K.length,Ve=0,ut=[];++le<Fe;){var dt=K[le];(dt===fe||dt===y)&&(K[le]=y,ut[Ve++]=le)}return ut}function vo(K){var fe=-1,le=Array(K.size);return K.forEach(function(Fe){le[++fe]=Fe}),le}function Ga(K){var fe=-1,le=Array(K.size);return K.forEach(function(Fe){le[++fe]=[Fe,Fe]}),le}function Pu(K,fe,le){for(var Fe=le-1,Ve=K.length;++Fe<Ve;)if(K[Fe]===fe)return Fe;return-1}function ha(K,fe,le){for(var Fe=le+1;Fe--;)if(K[Fe]===fe)return Fe;return Fe}function yo(K){return ni(K)?$s(K):jr(K)}function cn(K){return ni(K)?J(K):Br(K)}function Il(K){for(var fe=K.length;fe--&&_i.test(K.charAt(fe)););return fe}var pa=M(Mo);function $s(K){for(var fe=Sr.lastIndex=0;Sr.test(K);)++fe;return fe}function J(K){return K.match(Sr)||[]}function he(K){return K.match(za)||[]}var Ce=function K(fe){fe=fe==null?ln:ke.defaults(ln.Object(),fe,ke.pick(ln,os));var le=fe.Array,Fe=fe.Date,Ve=fe.Error,ut=fe.Function,dt=fe.Math,at=fe.Object,At=fe.RegExp,wt=fe.String,Vt=fe.TypeError,Yn=le.prototype,nr=ut.prototype,An=at.prototype,zt=fe["__core-js_shared__"],Vr=nr.toString,kt=An.hasOwnProperty,Ou=0,pn=function(){var s=/[^.]+$/.exec(zt&&zt.keys&&zt.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Fo=An.toString,Ru=Vr.call(at),Iu=ln._,Au=At("^"+Vr.call(kt).replace(br,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ga=ca?fe.Buffer:n,No=fe.Symbol,qa=fe.Uint8Array,Xa=ga?ga.allocUnsafe:n,Vs=as(at.getPrototypeOf,at),ma=at.create,Al=An.propertyIsEnumerable,jo=Yn.splice,Ml=No?No.isConcatSpreadable:n,Ki=No?No.iterator:n,Bo=No?No.toStringTag:n,ls=function(){try{var s=ic(at,"defineProperty");return s({},"",{}),s}catch{}}(),Bf=fe.clearTimeout!==ln.clearTimeout&&fe.clearTimeout,Ka=Fe&&Fe.now!==ln.Date.now&&Fe.now,Mc=fe.setTimeout!==ln.setTimeout&&fe.setTimeout,va=dt.ceil,Hs=dt.floor,ya=at.getOwnPropertySymbols,Ll=ga?ga.isBuffer:n,ba=fe.isFinite,Za=Yn.join,Lc=as(at.keys,at),wn=dt.max,Gn=dt.min,us=Fe.now,Mu=fe.parseInt,cs=dt.random,Fl=Yn.reverse,bo=ic(fe,"DataView"),fs=ic(fe,"Map"),wa=ic(fe,"Promise"),wo=ic(fe,"Set"),$o=ic(fe,"WeakMap"),xa=ic(at,"create"),Ja=$o&&new $o,Us={},ds=oc(bo),Lu=oc(fs),$f=oc(wa),Fc=oc(wo),Sa=oc($o),hs=No?No.prototype:n,Ws=hs?hs.valueOf:n,Qa=hs?hs.toString:n;function Y(s){if(or(s)&&!Ht(s)&&!(s instanceof $t)){if(s instanceof Cr)return s;if(kt.call(s,"__wrapped__"))return Lb(s)}return new Cr(s)}var Vo=function(){function s(){}return function(u){if(!qn(u))return{};if(ma)return ma(u);s.prototype=u;var w=new s;return s.prototype=n,w}}();function Ho(){}function Cr(s,u){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=n}Y.templateSettings={escape:_n,evaluate:hn,interpolate:ui,variable:"",imports:{_:Y}},Y.prototype=Ho.prototype,Y.prototype.constructor=Y,Cr.prototype=Vo(Ho.prototype),Cr.prototype.constructor=Cr;function $t(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ue,this.__views__=[]}function Nl(){var s=new $t(this.__wrapped__);return s.__actions__=Gr(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Gr(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Gr(this.__views__),s}function el(){if(this.__filtered__){var s=new $t(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function jl(){var s=this.__wrapped__.value(),u=this.__dir__,w=Ht(s),P=u<0,$=w?s.length:0,X=J_(0,$,this.__views__),se=X.start,pe=X.end,be=pe-se,ze=P?pe:se-1,Ye=this.__iteratees__,Je=Ye.length,ct=0,bt=Gn(be,this.__takeCount__);if(!w||!P&&$==be&&bt==be)return Jc(s,this.__actions__);var Dt=[];e:for(;be--&&ct<bt;){ze+=u;for(var Xt=-1,_t=s[ze];++Xt<Je;){var Jt=Ye[Xt],tn=Jt.iteratee,Go=Jt.type,ro=tn(_t);if(Go==ge)_t=ro;else if(!ro){if(Go==nt)continue e;break e}}Dt[ct++]=_t}return Dt}$t.prototype=Vo(Ho.prototype),$t.prototype.constructor=$t;function xo(s){var u=-1,w=s==null?0:s.length;for(this.clear();++u<w;){var P=s[u];this.set(P[0],P[1])}}function Fu(){this.__data__=xa?xa(null):{},this.size=0}function Nc(s){var u=this.has(s)&&delete this.__data__[s];return this.size-=u?1:0,u}function jc(s){var u=this.__data__;if(xa){var w=u[s];return w===f?n:w}return kt.call(u,s)?u[s]:n}function Bc(s){var u=this.__data__;return xa?u[s]!==n:kt.call(u,s)}function Vf(s,u){var w=this.__data__;return this.size+=this.has(s)?0:1,w[s]=xa&&u===n?f:u,this}xo.prototype.clear=Fu,xo.prototype.delete=Nc,xo.prototype.get=jc,xo.prototype.has=Bc,xo.prototype.set=Vf;function So(s){var u=-1,w=s==null?0:s.length;for(this.clear();++u<w;){var P=s[u];this.set(P[0],P[1])}}function Hf(){this.__data__=[],this.size=0}function Uf(s){var u=this.__data__,w=Zi(u,s);if(w<0)return!1;var P=u.length-1;return w==P?u.pop():jo.call(u,w,1),--this.size,!0}function Nu(s){var u=this.__data__,w=Zi(u,s);return w<0?n:u[w][1]}function tl(s){return Zi(this.__data__,s)>-1}function Wf(s,u){var w=this.__data__,P=Zi(w,s);return P<0?(++this.size,w.push([s,u])):w[P][1]=u,this}So.prototype.clear=Hf,So.prototype.delete=Uf,So.prototype.get=Nu,So.prototype.has=tl,So.prototype.set=Wf;function Uo(s){var u=-1,w=s==null?0:s.length;for(this.clear();++u<w;){var P=s[u];this.set(P[0],P[1])}}function ju(){this.size=0,this.__data__={hash:new xo,map:new(fs||So),string:new xo}}function Bl(s){var u=oh(this,s).delete(s);return this.size-=u?1:0,u}function zf(s){return oh(this,s).get(s)}function Yf(s){return oh(this,s).has(s)}function Gf(s,u){var w=oh(this,s),P=w.size;return w.set(s,u),this.size+=w.size==P?0:1,this}Uo.prototype.clear=ju,Uo.prototype.delete=Bl,Uo.prototype.get=zf,Uo.prototype.has=Yf,Uo.prototype.set=Gf;function Hr(s){var u=-1,w=s==null?0:s.length;for(this.__data__=new Uo;++u<w;)this.add(s[u])}function Bu(s){return this.__data__.set(s,f),this}function $l(s){return this.__data__.has(s)}Hr.prototype.add=Hr.prototype.push=Bu,Hr.prototype.has=$l;function qt(s){var u=this.__data__=new So(s);this.size=u.size}function xi(){this.__data__=new So,this.size=0}function Ta(s){var u=this.__data__,w=u.delete(s);return this.size=u.size,w}function zs(s){return this.__data__.get(s)}function Zt(s){return this.__data__.has(s)}function ps(s,u){var w=this.__data__;if(w instanceof So){var P=w.__data__;if(!fs||P.length<i-1)return P.push([s,u]),this.size=++w.size,this;w=this.__data__=new Uo(P)}return w.set(s,u),this.size=w.size,this}qt.prototype.clear=xi,qt.prototype.delete=Ta,qt.prototype.get=zs,qt.prototype.has=Zt,qt.prototype.set=ps;function nl(s,u){var w=Ht(s),P=!w&&sc(s),$=!w&&!P&&ru(s),X=!w&&!P&&!$&&sf(s),se=w||P||$||X,pe=se?xe(s.length,wt):[],be=pe.length;for(var ze in s)(u||kt.call(s,ze))&&!(se&&(ze=="length"||$&&(ze=="offset"||ze=="parent")||X&&(ze=="buffer"||ze=="byteLength"||ze=="byteOffset")||hl(ze,be)))&&pe.push(ze);return pe}function ii(s){var u=s.length;return u?s[Js(0,u-1)]:n}function Si(s,u){return sh(Gr(s),Gs(u,0,s.length))}function To(s){return sh(Gr(s))}function $u(s,u,w){(w!==n&&!ra(s[u],w)||w===n&&!(u in s))&&Ti(s,u,w)}function Ur(s,u,w){var P=s[u];(!(kt.call(s,u)&&ra(P,w))||w===n&&!(u in s))&&Ti(s,u,w)}function Zi(s,u){for(var w=s.length;w--;)if(ra(s[w][0],u))return w;return-1}function Ys(s,u,w,P){return gs(s,function($,X,se){u(P,$,w($),se)}),P}function $c(s,u){return s&&Mi(u,si(u),s)}function Vu(s,u){return s&&Mi(u,_o(u),s)}function Ti(s,u,w){u=="__proto__"&&ls?ls(s,u,{configurable:!0,enumerable:!0,value:w,writable:!0}):s[u]=w}function Hu(s,u){for(var w=-1,P=u.length,$=le(P),X=s==null;++w<P;)$[w]=X?n:wg(s,u[w]);return $}function Gs(s,u,w){return s===s&&(w!==n&&(s=s<=w?s:w),u!==n&&(s=s>=u?s:u)),s}function Wr(s,u,w,P,$,X){var se,pe=u&m,be=u&T,ze=u&E;if(w&&(se=$?w(s,P,$,X):w(s)),se!==n)return se;if(!qn(s))return s;var Ye=Ht(s);if(Ye){if(se=eP(s),!pe)return Gr(s,se)}else{var Je=Li(s),ct=Je==Xe||Je==It;if(ru(s))return ws(s,pe);if(Je==Hn||Je==Be||ct&&!$){if(se=be||ct?{}:kb(s),!pe)return be?Kf(s,Vu(se,s)):nf(s,$c(se,s))}else{if(!Kt[Je])return $?s:{};se=tP(s,Je,pe)}}X||(X=new qt);var bt=X.get(s);if(bt)return bt;X.set(s,se),t0(s)?s.forEach(function(_t){se.add(Wr(_t,u,w,_t,s,X))}):Qb(s)&&s.forEach(function(_t,Jt){se.set(Jt,Wr(_t,u,w,Jt,s,X))});var Dt=ze?be?sg:og:be?_o:si,Xt=Ye?n:Dt(s);return te(Xt||s,function(_t,Jt){Xt&&(Jt=_t,_t=s[Jt]),Ur(se,Jt,Wr(_t,u,w,Jt,s,X))}),se}function Uu(s){var u=si(s);return function(w){return Wu(w,s,u)}}function Wu(s,u,w){var P=w.length;if(s==null)return!P;for(s=at(s);P--;){var $=w[P],X=u[$],se=s[$];if(se===n&&!($ in s)||!X(se))return!1}return!0}function zu(s,u,w){if(typeof s!="function")throw new Vt(a);return Jf(function(){s.apply(n,w)},u)}function qs(s,u,w,P){var $=-1,X=Te,se=!0,pe=s.length,be=[],ze=u.length;if(!pe)return be;w&&(u=lt(u,gt(w))),P?(X=We,se=!1):u.length>=i&&(X=St,se=!1,u=new Hr(u));e:for(;++$<pe;){var Ye=s[$],Je=w==null?Ye:w(Ye);if(Ye=P||Ye!==0?Ye:0,se&&Je===Je){for(var ct=ze;ct--;)if(u[ct]===Je)continue e;be.push(Ye)}else X(u,Je,P)||be.push(Ye)}return be}var gs=v(Ci),Yu=v(Hl,!0);function Vc(s,u){var w=!0;return gs(s,function(P,$,X){return w=!!u(P,$,X),w}),w}function Vl(s,u,w){for(var P=-1,$=s.length;++P<$;){var X=s[P],se=u(X);if(se!=null&&(pe===n?se===se&&!Yo(se):w(se,pe)))var pe=se,be=X}return be}function qf(s,u,w,P){var $=s.length;for(w=Yt(w),w<0&&(w=-w>$?0:$+w),P=P===n||P>$?$:Yt(P),P<0&&(P+=$),P=w>P?0:r0(P);w<P;)s[w++]=u;return s}function Hc(s,u){var w=[];return gs(s,function(P,$,X){u(P,$,X)&&w.push(P)}),w}function fr(s,u,w,P,$){var X=-1,se=s.length;for(w||(w=rP),$||($=[]);++X<se;){var pe=s[X];u>0&&w(pe)?u>1?fr(pe,u-1,w,P,$):Tt($,pe):P||($[$.length]=pe)}return $}var Gu=l(),Uc=l(!0);function Ci(s,u){return s&&Gu(s,u,si)}function Hl(s,u){return s&&Uc(s,u,si)}function Ca(s,u){return Le(u,function(w){return pl(s[w])})}function ms(s,u){u=Ei(u,s);for(var w=0,P=u.length;s!=null&&w<P;)s=s[Aa(u[w++])];return w&&w==P?s:n}function rl(s,u,w){var P=u(s);return Ht(s)?P:Tt(P,w(s))}function rr(s){return s==null?s===n?dn:vr:Bo&&Bo in at(s)?Z_(s):cP(s)}function Xs(s,u){return s>u}function Ul(s,u){return s!=null&&kt.call(s,u)}function Ea(s,u){return s!=null&&u in at(s)}function Wl(s,u,w){return s>=Gn(u,w)&&s<wn(u,w)}function ka(s,u,w){for(var P=w?We:Te,$=s[0].length,X=s.length,se=X,pe=le(X),be=1/0,ze=[];se--;){var Ye=s[se];se&&u&&(Ye=lt(Ye,gt(u))),be=Gn(Ye.length,be),pe[se]=!w&&(u||$>=120&&Ye.length>=120)?new Hr(se&&Ye):n}Ye=s[0];var Je=-1,ct=pe[0];e:for(;++Je<$&&ze.length<be;){var bt=Ye[Je],Dt=u?u(bt):bt;if(bt=w||bt!==0?bt:0,!(ct?St(ct,Dt):P(ze,Dt,w))){for(se=X;--se;){var Xt=pe[se];if(!(Xt?St(Xt,Dt):P(s[se],Dt,w)))continue e}ct&&ct.push(Dt),ze.push(bt)}}return ze}function zl(s,u,w,P){return Ci(s,function($,X,se){u(P,w($),X,se)}),P}function Co(s,u,w){u=Ei(u,s),s=Ob(s,u);var P=s==null?s:s[Aa(Ss(u))];return P==null?n:V(P,s,w)}function Yl(s){return or(s)&&rr(s)==Be}function Ks(s){return or(s)&&rr(s)==ai}function Wc(s){return or(s)&&rr(s)==st}function il(s,u,w,P,$){return s===u?!0:s==null||u==null||!or(s)&&!or(u)?s!==s&&u!==u:Da(s,u,w,P,il,$)}function Da(s,u,w,P,$,X){var se=Ht(s),pe=Ht(u),be=se?Ue:Li(s),ze=pe?Ue:Li(u);be=be==Be?Hn:be,ze=ze==Be?Hn:ze;var Ye=be==Hn,Je=ze==Hn,ct=be==ze;if(ct&&ru(s)){if(!ru(u))return!1;se=!0,Ye=!1}if(ct&&!Ye)return X||(X=new qt),se||sf(s)?Tb(s,u,w,P,$,X):X_(s,u,be,w,P,$,X);if(!(w&I)){var bt=Ye&&kt.call(s,"__wrapped__"),Dt=Je&&kt.call(u,"__wrapped__");if(bt||Dt){var Xt=bt?s.value():s,_t=Dt?u.value():u;return X||(X=new qt),$(Xt,_t,w,P,X)}}return ct?(X||(X=new qt),K_(s,u,w,P,$,X)):!1}function _a(s){return or(s)&&Li(s)==Mt}function qu(s,u,w,P){var $=w.length,X=$,se=!P;if(s==null)return!X;for(s=at(s);$--;){var pe=w[$];if(se&&pe[2]?pe[1]!==s[pe[0]]:!(pe[0]in s))return!1}for(;++$<X;){pe=w[$];var be=pe[0],ze=s[be],Ye=pe[1];if(se&&pe[2]){if(ze===n&&!(be in s))return!1}else{var Je=new qt;if(P)var ct=P(ze,Ye,be,s,u,Je);if(!(ct===n?il(Ye,ze,I|A,P,Je):ct))return!1}}return!0}function zc(s){if(!qn(s)||oP(s))return!1;var u=pl(s)?Au:Jr;return u.test(oc(s))}function Zs(s){return or(s)&&rr(s)==Pr}function Gl(s){return or(s)&&Li(s)==Jn}function Wo(s){return or(s)&&dh(s.length)&&!!Gt[rr(s)]}function ql(s){return typeof s=="function"?s:s==null?Po:typeof s=="object"?Ht(s)?sl(s[0],s[1]):Eo(s):p0(s)}function zo(s){if(!Zf(s))return Lc(s);var u=[];for(var w in at(s))kt.call(s,w)&&w!="constructor"&&u.push(w);return u}function ol(s){if(!qn(s))return uP(s);var u=Zf(s),w=[];for(var P in s)P=="constructor"&&(u||!kt.call(s,P))||w.push(P);return w}function Ji(s,u){return s<u}function Qi(s,u){var w=-1,P=Do(s)?le(s.length):[];return gs(s,function($,X,se){P[++w]=u($,X,se)}),P}function Eo(s){var u=lg(s);return u.length==1&&u[0][2]?_b(u[0][0],u[0][1]):function(w){return w===s||qu(w,s,u)}}function sl(s,u){return cg(s)&&Db(u)?_b(Aa(s),u):function(w){var P=wg(w,s);return P===n&&P===u?xg(w,s):il(u,P,I|A)}}function vs(s,u,w,P,$){s!==u&&Gu(u,function(X,se){if($||($=new qt),qn(X))eo(s,u,se,w,vs,P,$);else{var pe=P?P(dg(s,se),X,se+"",s,u,$):n;pe===n&&(pe=X),$u(s,se,pe)}},_o)}function eo(s,u,w,P,$,X,se){var pe=dg(s,w),be=dg(u,w),ze=se.get(be);if(ze){$u(s,w,ze);return}var Ye=X?X(pe,be,w+"",s,u,se):n,Je=Ye===n;if(Je){var ct=Ht(be),bt=!ct&&ru(be),Dt=!ct&&!bt&&sf(be);Ye=be,ct||bt||Dt?Ht(pe)?Ye=pe:hr(pe)?Ye=Gr(pe):bt?(Je=!1,Ye=ws(be,!0)):Dt?(Je=!1,Ye=cl(be,!0)):Ye=[]:Qf(be)||sc(be)?(Ye=pe,sc(pe)?Ye=i0(pe):(!qn(pe)||pl(pe))&&(Ye=kb(be))):Je=!1}Je&&(se.set(be,Ye),$(Ye,be,P,X,se),se.delete(be)),$u(s,w,Ye)}function Pa(s,u){var w=s.length;if(w)return u+=u<0?w:0,hl(u,w)?s[u]:n}function Xl(s,u,w){u.length?u=lt(u,function(X){return Ht(X)?function(se){return ms(se,X.length===1?X[0]:X)}:X}):u=[Po];var P=-1;u=lt(u,gt(Ct()));var $=Qi(s,function(X,se,pe){var be=lt(u,function(ze){return ze(X)});return{criteria:be,index:++P,value:X}});return Q($,function(X,se){return nu(X,se,w)})}function al(s,u){return Oa(s,u,function(w,P){return xg(s,P)})}function Oa(s,u,w){for(var P=-1,$=u.length,X={};++P<$;){var se=u[P],pe=ms(s,se);w(pe,se)&&Qs(X,Ei(se,s),pe)}return X}function Yc(s){return function(u){return ms(u,s)}}function Xu(s,u,w,P){var $=P?po:Qt,X=-1,se=u.length,pe=s;for(s===u&&(u=Gr(u)),w&&(pe=lt(s,gt(w)));++X<se;)for(var be=0,ze=u[X],Ye=w?w(ze):ze;(be=$(pe,Ye,be,P))>-1;)pe!==s&&jo.call(pe,be,1),jo.call(s,be,1);return s}function Ku(s,u){for(var w=s?u.length:0,P=w-1;w--;){var $=u[w];if(w==P||$!==X){var X=$;hl($)?jo.call(s,$,1):Yr(s,$)}}return s}function Js(s,u){return s+Hs(cs()*(u-s+1))}function Zu(s,u,w,P){for(var $=-1,X=wn(va((u-s)/(w||1)),0),se=le(X);X--;)se[P?X:++$]=s,s+=w;return se}function Kl(s,u){var w="";if(!s||u<1||u>Ae)return w;do u%2&&(w+=s),u=Hs(u/2),u&&(s+=s);while(u);return w}function Bt(s,u){return hg(Pb(s,u,Po),s+"")}function ll(s){return ii(af(s))}function Ju(s,u){var w=af(s);return sh(w,Gs(u,0,w.length))}function Qs(s,u,w,P){if(!qn(s))return s;u=Ei(u,s);for(var $=-1,X=u.length,se=X-1,pe=s;pe!=null&&++$<X;){var be=Aa(u[$]),ze=w;if(be==="__proto__"||be==="constructor"||be==="prototype")return s;if($!=se){var Ye=pe[be];ze=P?P(Ye,be,pe):n,ze===n&&(ze=qn(Ye)?Ye:hl(u[$+1])?[]:{})}Ur(pe,be,ze),pe=pe[be]}return s}var Zl=Ja?function(s,u){return Ja.set(s,u),s}:Po,Gc=ls?function(s,u){return ls(s,"toString",{configurable:!0,enumerable:!1,value:Tg(u),writable:!0})}:Po;function qc(s){return sh(af(s))}function oi(s,u,w){var P=-1,$=s.length;u<0&&(u=-u>$?0:$+u),w=w>$?$:w,w<0&&(w+=$),$=u>w?0:w-u>>>0,u>>>=0;for(var X=le($);++P<$;)X[P]=s[P+u];return X}function Xc(s,u){var w;return gs(s,function(P,$,X){return w=u(P,$,X),!w}),!!w}function Jl(s,u,w){var P=0,$=s==null?P:s.length;if(typeof u=="number"&&u===u&&$<=je){for(;P<$;){var X=P+$>>>1,se=s[X];se!==null&&!Yo(se)&&(w?se<=u:se<u)?P=X+1:$=X}return $}return Qu(s,u,Po,w)}function Qu(s,u,w,P){var $=0,X=s==null?0:s.length;if(X===0)return 0;u=w(u);for(var se=u!==u,pe=u===null,be=Yo(u),ze=u===n;$<X;){var Ye=Hs(($+X)/2),Je=w(s[Ye]),ct=Je!==n,bt=Je===null,Dt=Je===Je,Xt=Yo(Je);if(se)var _t=P||Dt;else ze?_t=Dt&&(P||ct):pe?_t=Dt&&ct&&(P||!bt):be?_t=Dt&&ct&&!bt&&(P||!Xt):bt||Xt?_t=!1:_t=P?Je<=u:Je<u;_t?$=Ye+1:X=Ye}return Gn(X,De)}function ec(s,u){for(var w=-1,P=s.length,$=0,X=[];++w<P;){var se=s[w],pe=u?u(se):se;if(!w||!ra(pe,be)){var be=pe;X[$++]=se===0?0:se}}return X}function Kc(s){return typeof s=="number"?s:Yo(s)?ye:+s}function zr(s){if(typeof s=="string")return s;if(Ht(s))return lt(s,zr)+"";if(Yo(s))return Qa?Qa.call(s):"";var u=s+"";return u=="0"&&1/s==-1/0?"-0":u}function ys(s,u,w){var P=-1,$=Te,X=s.length,se=!0,pe=[],be=pe;if(w)se=!1,$=We;else if(X>=i){var ze=u?null:Ia(s);if(ze)return vo(ze);se=!1,$=St,be=new Hr}else be=u?[]:pe;e:for(;++P<X;){var Ye=s[P],Je=u?u(Ye):Ye;if(Ye=w||Ye!==0?Ye:0,se&&Je===Je){for(var ct=be.length;ct--;)if(be[ct]===Je)continue e;u&&be.push(Je),pe.push(Ye)}else $(be,Je,w)||(be!==pe&&be.push(Je),pe.push(Ye))}return pe}function Yr(s,u){return u=Ei(u,s),s=Ob(s,u),s==null||delete s[Aa(Ss(u))]}function Zc(s,u,w,P){return Qs(s,u,w(ms(s,u)),P)}function ea(s,u,w,P){for(var $=s.length,X=P?$:-1;(P?X--:++X<$)&&u(s[X],X,s););return w?oi(s,P?0:X,P?X+1:$):oi(s,P?X+1:0,P?$:X)}function Jc(s,u){var w=s;return w instanceof $t&&(w=w.value()),Et(u,function(P,$){return $.func.apply($.thisArg,Tt([P],$.args))},w)}function dr(s,u,w){var P=s.length;if(P<2)return P?ys(s[0]):[];for(var $=-1,X=le(P);++$<P;)for(var se=s[$],pe=-1;++pe<P;)pe!=$&&(X[$]=qs(X[$]||se,s[pe],u,w));return ys(fr(X,1),u,w)}function Qc(s,u,w){for(var P=-1,$=s.length,X=u.length,se={};++P<$;){var pe=P<X?u[P]:n;w(se,s[P],pe)}return se}function Ql(s){return hr(s)?s:[]}function eu(s){return typeof s=="function"?s:Po}function Ei(s,u){return Ht(s)?s:cg(s,u)?[s]:Mb(gn(s))}var ef=Bt;function bs(s,u,w){var P=s.length;return w=w===n?P:w,!u&&w>=P?s:oi(s,u,w)}var tu=Bf||function(s){return ln.clearTimeout(s)};function ws(s,u){if(u)return s.slice();var w=s.length,P=Xa?Xa(w):new s.constructor(w);return s.copy(P),P}function ta(s){var u=new s.constructor(s.byteLength);return new qa(u).set(new qa(s)),u}function Xf(s,u){var w=u?ta(s.buffer):s.buffer;return new s.constructor(w,s.byteOffset,s.byteLength)}function tc(s){var u=new s.constructor(s.source,Ir.exec(s));return u.lastIndex=s.lastIndex,u}function ul(s){return Ws?at(Ws.call(s)):{}}function cl(s,u){var w=u?ta(s.buffer):s.buffer;return new s.constructor(w,s.byteOffset,s.length)}function nc(s,u){if(s!==u){var w=s!==n,P=s===null,$=s===s,X=Yo(s),se=u!==n,pe=u===null,be=u===u,ze=Yo(u);if(!pe&&!ze&&!X&&s>u||X&&se&&be&&!pe&&!ze||P&&se&&be||!w&&be||!$)return 1;if(!P&&!X&&!ze&&s<u||ze&&w&&$&&!P&&!X||pe&&w&&$||!se&&$||!be)return-1}return 0}function nu(s,u,w){for(var P=-1,$=s.criteria,X=u.criteria,se=$.length,pe=w.length;++P<se;){var be=nc($[P],X[P]);if(be){if(P>=pe)return be;var ze=w[P];return be*(ze=="desc"?-1:1)}}return s.index-u.index}function rc(s,u,w,P){for(var $=-1,X=s.length,se=w.length,pe=-1,be=u.length,ze=wn(X-se,0),Ye=le(be+ze),Je=!P;++pe<be;)Ye[pe]=u[pe];for(;++$<se;)(Je||$<X)&&(Ye[w[$]]=s[$]);for(;ze--;)Ye[pe++]=s[$++];return Ye}function tf(s,u,w,P){for(var $=-1,X=s.length,se=-1,pe=w.length,be=-1,ze=u.length,Ye=wn(X-pe,0),Je=le(Ye+ze),ct=!P;++$<Ye;)Je[$]=s[$];for(var bt=$;++be<ze;)Je[bt+be]=u[be];for(;++se<pe;)(ct||$<X)&&(Je[bt+w[se]]=s[$++]);return Je}function Gr(s,u){var w=-1,P=s.length;for(u||(u=le(P));++w<P;)u[w]=s[w];return u}function Mi(s,u,w,P){var $=!w;w||(w={});for(var X=-1,se=u.length;++X<se;){var pe=u[X],be=P?P(w[pe],s[pe],pe,w,s):n;be===n&&(be=s[pe]),$?Ti(w,pe,be):Ur(w,pe,be)}return w}function nf(s,u){return Mi(s,ug(s),u)}function Kf(s,u){return Mi(s,Cb(s),u)}function fl(s,u){return function(w,P){var $=Ht(w)?ae:Ys,X=u?u():{};return $(w,s,Ct(P,2),X)}}function Ra(s){return Bt(function(u,w){var P=-1,$=w.length,X=$>1?w[$-1]:n,se=$>2?w[2]:n;for(X=s.length>3&&typeof X=="function"?($--,X):n,se&&no(w[0],w[1],se)&&(X=$<3?n:X,$=1),u=at(u);++P<$;){var pe=w[P];pe&&s(u,pe,P,X)}return u})}function v(s,u){return function(w,P){if(w==null)return w;if(!Do(w))return s(w,P);for(var $=w.length,X=u?$:-1,se=at(w);(u?X--:++X<$)&&P(se[X],X,se)!==!1;);return w}}function l(s){return function(u,w,P){for(var $=-1,X=at(u),se=P(u),pe=se.length;pe--;){var be=se[s?pe:++$];if(w(X[be],be,X)===!1)break}return u}}function d(s,u,w){var P=u&F,$=O(s);function X(){var se=this&&this!==ln&&this instanceof X?$:s;return se.apply(P?w:this,arguments)}return X}function g(s){return function(u){u=gn(u);var w=ni(u)?cn(u):n,P=w?w[0]:u.charAt(0),$=w?bs(w,1).join(""):u.slice(1);return P[s]()+$}}function x(s){return function(u){return Et(d0(f0(u).replace(Ns,"")),s,"")}}function O(s){return function(){var u=arguments;switch(u.length){case 0:return new s;case 1:return new s(u[0]);case 2:return new s(u[0],u[1]);case 3:return new s(u[0],u[1],u[2]);case 4:return new s(u[0],u[1],u[2],u[3]);case 5:return new s(u[0],u[1],u[2],u[3],u[4]);case 6:return new s(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new s(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var w=Vo(s.prototype),P=s.apply(w,u);return qn(P)?P:w}}function B(s,u,w){var P=O(s);function $(){for(var X=arguments.length,se=le(X),pe=X,be=of($);pe--;)se[pe]=arguments[pe];var ze=X<3&&se[0]!==be&&se[X-1]!==be?[]:ri(se,be);if(X-=ze.length,X<w)return xs(s,u,Se,$.placeholder,n,se,ze,n,n,w-X);var Ye=this&&this!==ln&&this instanceof $?P:s;return V(Ye,this,se)}return $}function G(s){return function(u,w,P){var $=at(u);if(!Do(u)){var X=Ct(w,3);u=si(u),w=function(pe){return X($[pe],pe,$)}}var se=s(u,w,P);return se>-1?$[X?u[se]:se]:n}}function oe(s){return dl(function(u){var w=u.length,P=w,$=Cr.prototype.thru;for(s&&u.reverse();P--;){var X=u[P];if(typeof X!="function")throw new Vt(a);if($&&!se&&ih(X)=="wrapper")var se=new Cr([],!0)}for(P=se?P:w;++P<w;){X=u[P];var pe=ih(X),be=pe=="wrapper"?ag(X):n;be&&fg(be[0])&&be[1]==(S|H|Z|re)&&!be[4].length&&be[9]==1?se=se[ih(be[0])].apply(se,be[3]):se=X.length==1&&fg(X)?se[pe]():se.thru(X)}return function(){var ze=arguments,Ye=ze[0];if(se&&ze.length==1&&Ht(Ye))return se.plant(Ye).value();for(var Je=0,ct=w?u[Je].apply(this,ze):Ye;++Je<w;)ct=u[Je].call(this,ct);return ct}})}function Se(s,u,w,P,$,X,se,pe,be,ze){var Ye=u&S,Je=u&F,ct=u&R,bt=u&(H|ne),Dt=u&ie,Xt=ct?n:O(s);function _t(){for(var Jt=arguments.length,tn=le(Jt),Go=Jt;Go--;)tn[Go]=arguments[Go];if(bt)var ro=of(_t),qo=bn(tn,ro);if(P&&(tn=rc(tn,P,$,bt)),X&&(tn=tf(tn,X,se,bt)),Jt-=qo,bt&&Jt<ze){var pr=ri(tn,ro);return xs(s,u,Se,_t.placeholder,w,tn,pr,pe,be,ze-Jt)}var ia=Je?w:this,ml=ct?ia[s]:s;return Jt=tn.length,pe?tn=fP(tn,pe):Dt&&Jt>1&&tn.reverse(),Ye&&be<Jt&&(tn.length=be),this&&this!==ln&&this instanceof _t&&(ml=Xt||O(ml)),ml.apply(ia,tn)}return _t}function He(s,u){return function(w,P){return zl(w,s,u(P),{})}}function qe(s,u){return function(w,P){var $;if(w===n&&P===n)return u;if(w!==n&&($=w),P!==n){if($===n)return P;typeof w=="string"||typeof P=="string"?(w=zr(w),P=zr(P)):(w=Kc(w),P=Kc(P)),$=s(w,P)}return $}}function ot(s){return dl(function(u){return u=lt(u,gt(Ct())),Bt(function(w){var P=this;return s(u,function($){return V($,P,w)})})})}function xt(s,u){u=u===n?" ":zr(u);var w=u.length;if(w<2)return w?Kl(u,s):u;var P=Kl(u,va(s/yo(u)));return ni(u)?bs(cn(P),0,s).join(""):P.slice(0,s)}function en(s,u,w,P){var $=u&F,X=O(s);function se(){for(var pe=-1,be=arguments.length,ze=-1,Ye=P.length,Je=le(Ye+be),ct=this&&this!==ln&&this instanceof se?X:s;++ze<Ye;)Je[ze]=P[ze];for(;be--;)Je[ze++]=arguments[++pe];return V(ct,$?w:this,Je)}return se}function ir(s){return function(u,w,P){return P&&typeof P!="number"&&no(u,w,P)&&(w=P=n),u=gl(u),w===n?(w=u,u=0):w=gl(w),P=P===n?u<w?1:-1:gl(P),Zu(u,w,P,s)}}function ko(s){return function(u,w){return typeof u=="string"&&typeof w=="string"||(u=Ts(u),w=Ts(w)),s(u,w)}}function xs(s,u,w,P,$,X,se,pe,be,ze){var Ye=u&H,Je=Ye?se:n,ct=Ye?n:se,bt=Ye?X:n,Dt=Ye?n:X;u|=Ye?Z:ce,u&=~(Ye?ce:Z),u&U||(u&=-4);var Xt=[s,u,$,bt,Je,Dt,ct,pe,be,ze],_t=w.apply(n,Xt);return fg(s)&&Rb(_t,Xt),_t.placeholder=P,Ib(_t,s,u)}function to(s){var u=dt[s];return function(w,P){if(w=Ts(w),P=P==null?0:Gn(Yt(P),292),P&&ba(w)){var $=(gn(w)+"e").split("e"),X=u($[0]+"e"+(+$[1]+P));return $=(gn(X)+"e").split("e"),+($[0]+"e"+(+$[1]-P))}return u(w)}}var Ia=wo&&1/vo(new wo([,-0]))[1]==Re?function(s){return new wo(s)}:kg;function rf(s){return function(u){var w=Li(u);return w==Mt?da(u):w==Jn?Ga(u):Ne(u,s(u))}}function na(s,u,w,P,$,X,se,pe){var be=u&R;if(!be&&typeof s!="function")throw new Vt(a);var ze=P?P.length:0;if(ze||(u&=-97,P=$=n),se=se===n?se:wn(Yt(se),0),pe=pe===n?pe:Yt(pe),ze-=$?$.length:0,u&ce){var Ye=P,Je=$;P=$=n}var ct=be?n:ag(s),bt=[s,u,w,P,$,Ye,Je,X,se,pe];if(ct&&lP(bt,ct),s=bt[0],u=bt[1],w=bt[2],P=bt[3],$=bt[4],pe=bt[9]=bt[9]===n?be?0:s.length:wn(bt[9]-ze,0),!pe&&u&(H|ne)&&(u&=-25),!u||u==F)var Dt=d(s,u,w);else u==H||u==ne?Dt=B(s,u,pe):(u==Z||u==(F|Z))&&!$.length?Dt=en(s,u,w,P):Dt=Se.apply(n,bt);var Xt=ct?Zl:Rb;return Ib(Xt(Dt,bt),s,u)}function xb(s,u,w,P){return s===n||ra(s,An[w])&&!kt.call(P,w)?u:s}function Sb(s,u,w,P,$,X){return qn(s)&&qn(u)&&(X.set(u,s),vs(s,u,n,Sb,X),X.delete(u)),s}function q_(s){return Qf(s)?n:s}function Tb(s,u,w,P,$,X){var se=w&I,pe=s.length,be=u.length;if(pe!=be&&!(se&&be>pe))return!1;var ze=X.get(s),Ye=X.get(u);if(ze&&Ye)return ze==u&&Ye==s;var Je=-1,ct=!0,bt=w&A?new Hr:n;for(X.set(s,u),X.set(u,s);++Je<pe;){var Dt=s[Je],Xt=u[Je];if(P)var _t=se?P(Xt,Dt,Je,u,s,X):P(Dt,Xt,Je,s,u,X);if(_t!==n){if(_t)continue;ct=!1;break}if(bt){if(!un(u,function(Jt,tn){if(!St(bt,tn)&&(Dt===Jt||$(Dt,Jt,w,P,X)))return bt.push(tn)})){ct=!1;break}}else if(!(Dt===Xt||$(Dt,Xt,w,P,X))){ct=!1;break}}return X.delete(s),X.delete(u),ct}function X_(s,u,w,P,$,X,se){switch(w){case on:if(s.byteLength!=u.byteLength||s.byteOffset!=u.byteOffset)return!1;s=s.buffer,u=u.buffer;case ai:return!(s.byteLength!=u.byteLength||!X(new qa(s),new qa(u)));case rt:case st:case Vn:return ra(+s,+u);case ft:return s.name==u.name&&s.message==u.message;case Pr:case sn:return s==u+"";case Mt:var pe=da;case Jn:var be=P&I;if(pe||(pe=vo),s.size!=u.size&&!be)return!1;var ze=se.get(s);if(ze)return ze==u;P|=A,se.set(s,u);var Ye=Tb(pe(s),pe(u),P,$,X,se);return se.delete(s),Ye;case fn:if(Ws)return Ws.call(s)==Ws.call(u)}return!1}function K_(s,u,w,P,$,X){var se=w&I,pe=og(s),be=pe.length,ze=og(u),Ye=ze.length;if(be!=Ye&&!se)return!1;for(var Je=be;Je--;){var ct=pe[Je];if(!(se?ct in u:kt.call(u,ct)))return!1}var bt=X.get(s),Dt=X.get(u);if(bt&&Dt)return bt==u&&Dt==s;var Xt=!0;X.set(s,u),X.set(u,s);for(var _t=se;++Je<be;){ct=pe[Je];var Jt=s[ct],tn=u[ct];if(P)var Go=se?P(tn,Jt,ct,u,s,X):P(Jt,tn,ct,s,u,X);if(!(Go===n?Jt===tn||$(Jt,tn,w,P,X):Go)){Xt=!1;break}_t||(_t=ct=="constructor")}if(Xt&&!_t){var ro=s.constructor,qo=u.constructor;ro!=qo&&"constructor"in s&&"constructor"in u&&!(typeof ro=="function"&&ro instanceof ro&&typeof qo=="function"&&qo instanceof qo)&&(Xt=!1)}return X.delete(s),X.delete(u),Xt}function dl(s){return hg(Pb(s,n,jb),s+"")}function og(s){return rl(s,si,ug)}function sg(s){return rl(s,_o,Cb)}var ag=Ja?function(s){return Ja.get(s)}:kg;function ih(s){for(var u=s.name+"",w=Us[u],P=kt.call(Us,u)?w.length:0;P--;){var $=w[P],X=$.func;if(X==null||X==s)return $.name}return u}function of(s){var u=kt.call(Y,"placeholder")?Y:s;return u.placeholder}function Ct(){var s=Y.iteratee||Cg;return s=s===Cg?ql:s,arguments.length?s(arguments[0],arguments[1]):s}function oh(s,u){var w=s.__data__;return iP(u)?w[typeof u=="string"?"string":"hash"]:w.map}function lg(s){for(var u=si(s),w=u.length;w--;){var P=u[w],$=s[P];u[w]=[P,$,Db($)]}return u}function ic(s,u){var w=mo(s,u);return zc(w)?w:n}function Z_(s){var u=kt.call(s,Bo),w=s[Bo];try{s[Bo]=n;var P=!0}catch{}var $=Fo.call(s);return P&&(u?s[Bo]=w:delete s[Bo]),$}var ug=ya?function(s){return s==null?[]:(s=at(s),Le(ya(s),function(u){return Al.call(s,u)}))}:Dg,Cb=ya?function(s){for(var u=[];s;)Tt(u,ug(s)),s=Vs(s);return u}:Dg,Li=rr;(bo&&Li(new bo(new ArrayBuffer(1)))!=on||fs&&Li(new fs)!=Mt||wa&&Li(wa.resolve())!=Sn||wo&&Li(new wo)!=Jn||$o&&Li(new $o)!=ht)&&(Li=function(s){var u=rr(s),w=u==Hn?s.constructor:n,P=w?oc(w):"";if(P)switch(P){case ds:return on;case Lu:return Mt;case $f:return Sn;case Fc:return Jn;case Sa:return ht}return u});function J_(s,u,w){for(var P=-1,$=w.length;++P<$;){var X=w[P],se=X.size;switch(X.type){case"drop":s+=se;break;case"dropRight":u-=se;break;case"take":u=Gn(u,s+se);break;case"takeRight":s=wn(s,u-se);break}}return{start:s,end:u}}function Q_(s){var u=s.match(Fs);return u?u[1].split(Zr):[]}function Eb(s,u,w){u=Ei(u,s);for(var P=-1,$=u.length,X=!1;++P<$;){var se=Aa(u[P]);if(!(X=s!=null&&w(s,se)))break;s=s[se]}return X||++P!=$?X:($=s==null?0:s.length,!!$&&dh($)&&hl(se,$)&&(Ht(s)||sc(s)))}function eP(s){var u=s.length,w=new s.constructor(u);return u&&typeof s[0]=="string"&&kt.call(s,"index")&&(w.index=s.index,w.input=s.input),w}function kb(s){return typeof s.constructor=="function"&&!Zf(s)?Vo(Vs(s)):{}}function tP(s,u,w){var P=s.constructor;switch(u){case ai:return ta(s);case rt:case st:return new P(+s);case on:return Xf(s,w);case Hi:case Ui:case Wi:case Or:case Nn:case Rr:case yr:case qr:case Xr:return cl(s,w);case Mt:return new P;case Vn:case sn:return new P(s);case Pr:return tc(s);case Jn:return new P;case fn:return ul(s)}}function nP(s,u){var w=u.length;if(!w)return s;var P=w-1;return u[P]=(w>1?"& ":"")+u[P],u=u.join(w>2?", ":" "),s.replace(Ls,`{
|
|
144
|
+
/* [wrapped with `+u+`] */
|
|
145
|
+
`)}function rP(s){return Ht(s)||sc(s)||!!(Ml&&s&&s[Ml])}function hl(s,u){var w=typeof s;return u=u??Ae,!!u&&(w=="number"||w!="symbol"&&Mr.test(s))&&s>-1&&s%1==0&&s<u}function no(s,u,w){if(!qn(w))return!1;var P=typeof u;return(P=="number"?Do(w)&&hl(u,w.length):P=="string"&&u in w)?ra(w[u],s):!1}function cg(s,u){if(Ht(s))return!1;var w=typeof s;return w=="number"||w=="symbol"||w=="boolean"||s==null||Yo(s)?!0:Tn.test(s)||!ci.test(s)||u!=null&&s in at(u)}function iP(s){var u=typeof s;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?s!=="__proto__":s===null}function fg(s){var u=ih(s),w=Y[u];if(typeof w!="function"||!(u in $t.prototype))return!1;if(s===w)return!0;var P=ag(w);return!!P&&s===P[0]}function oP(s){return!!pn&&pn in s}var sP=zt?pl:_g;function Zf(s){var u=s&&s.constructor,w=typeof u=="function"&&u.prototype||An;return s===w}function Db(s){return s===s&&!qn(s)}function _b(s,u){return function(w){return w==null?!1:w[s]===u&&(u!==n||s in at(w))}}function aP(s){var u=ch(s,function(P){return w.size===p&&w.clear(),P}),w=u.cache;return u}function lP(s,u){var w=s[1],P=u[1],$=w|P,X=$<(F|R|S),se=P==S&&w==H||P==S&&w==re&&s[7].length<=u[8]||P==(S|re)&&u[7].length<=u[8]&&w==H;if(!(X||se))return s;P&F&&(s[2]=u[2],$|=w&F?0:U);var pe=u[3];if(pe){var be=s[3];s[3]=be?rc(be,pe,u[4]):pe,s[4]=be?ri(s[3],y):u[4]}return pe=u[5],pe&&(be=s[5],s[5]=be?tf(be,pe,u[6]):pe,s[6]=be?ri(s[5],y):u[6]),pe=u[7],pe&&(s[7]=pe),P&S&&(s[8]=s[8]==null?u[8]:Gn(s[8],u[8])),s[9]==null&&(s[9]=u[9]),s[0]=u[0],s[1]=$,s}function uP(s){var u=[];if(s!=null)for(var w in at(s))u.push(w);return u}function cP(s){return Fo.call(s)}function Pb(s,u,w){return u=wn(u===n?s.length-1:u,0),function(){for(var P=arguments,$=-1,X=wn(P.length-u,0),se=le(X);++$<X;)se[$]=P[u+$];$=-1;for(var pe=le(u+1);++$<u;)pe[$]=P[$];return pe[u]=w(se),V(s,this,pe)}}function Ob(s,u){return u.length<2?s:ms(s,oi(u,0,-1))}function fP(s,u){for(var w=s.length,P=Gn(u.length,w),$=Gr(s);P--;){var X=u[P];s[P]=hl(X,w)?$[X]:n}return s}function dg(s,u){if(!(u==="constructor"&&typeof s[u]=="function")&&u!="__proto__")return s[u]}var Rb=Ab(Zl),Jf=Mc||function(s,u){return ln.setTimeout(s,u)},hg=Ab(Gc);function Ib(s,u,w){var P=u+"";return hg(s,nP(P,dP(Q_(P),w)))}function Ab(s){var u=0,w=0;return function(){var P=us(),$=tt-(P-w);if(w=P,$>0){if(++u>=$e)return arguments[0]}else u=0;return s.apply(n,arguments)}}function sh(s,u){var w=-1,P=s.length,$=P-1;for(u=u===n?P:u;++w<u;){var X=Js(w,$),se=s[X];s[X]=s[w],s[w]=se}return s.length=u,s}var Mb=aP(function(s){var u=[];return s.charCodeAt(0)===46&&u.push(""),s.replace(ao,function(w,P,$,X){u.push($?X.replace(Pi,"$1"):P||w)}),u});function Aa(s){if(typeof s=="string"||Yo(s))return s;var u=s+"";return u=="0"&&1/s==-1/0?"-0":u}function oc(s){if(s!=null){try{return Vr.call(s)}catch{}try{return s+""}catch{}}return""}function dP(s,u){return te(Ie,function(w){var P="_."+w[0];u&w[1]&&!Te(s,P)&&s.push(P)}),s.sort()}function Lb(s){if(s instanceof $t)return s.clone();var u=new Cr(s.__wrapped__,s.__chain__);return u.__actions__=Gr(s.__actions__),u.__index__=s.__index__,u.__values__=s.__values__,u}function hP(s,u,w){(w?no(s,u,w):u===n)?u=1:u=wn(Yt(u),0);var P=s==null?0:s.length;if(!P||u<1)return[];for(var $=0,X=0,se=le(va(P/u));$<P;)se[X++]=oi(s,$,$+=u);return se}function pP(s){for(var u=-1,w=s==null?0:s.length,P=0,$=[];++u<w;){var X=s[u];X&&($[P++]=X)}return $}function gP(){var s=arguments.length;if(!s)return[];for(var u=le(s-1),w=arguments[0],P=s;P--;)u[P-1]=arguments[P];return Tt(Ht(w)?Gr(w):[w],fr(u,1))}var mP=Bt(function(s,u){return hr(s)?qs(s,fr(u,1,hr,!0)):[]}),vP=Bt(function(s,u){var w=Ss(u);return hr(w)&&(w=n),hr(s)?qs(s,fr(u,1,hr,!0),Ct(w,2)):[]}),yP=Bt(function(s,u){var w=Ss(u);return hr(w)&&(w=n),hr(s)?qs(s,fr(u,1,hr,!0),n,w):[]});function bP(s,u,w){var P=s==null?0:s.length;return P?(u=w||u===n?1:Yt(u),oi(s,u<0?0:u,P)):[]}function wP(s,u,w){var P=s==null?0:s.length;return P?(u=w||u===n?1:Yt(u),u=P-u,oi(s,0,u<0?0:u)):[]}function xP(s,u){return s&&s.length?ea(s,Ct(u,3),!0,!0):[]}function SP(s,u){return s&&s.length?ea(s,Ct(u,3),!0):[]}function TP(s,u,w,P){var $=s==null?0:s.length;return $?(w&&typeof w!="number"&&no(s,u,w)&&(w=0,P=$),qf(s,u,w,P)):[]}function Fb(s,u,w){var P=s==null?0:s.length;if(!P)return-1;var $=w==null?0:Yt(w);return $<0&&($=wn(P+$,0)),jt(s,Ct(u,3),$)}function Nb(s,u,w){var P=s==null?0:s.length;if(!P)return-1;var $=P-1;return w!==n&&($=Yt(w),$=w<0?wn(P+$,0):Gn($,P-1)),jt(s,Ct(u,3),$,!0)}function jb(s){var u=s==null?0:s.length;return u?fr(s,1):[]}function CP(s){var u=s==null?0:s.length;return u?fr(s,Re):[]}function EP(s,u){var w=s==null?0:s.length;return w?(u=u===n?1:Yt(u),fr(s,u)):[]}function kP(s){for(var u=-1,w=s==null?0:s.length,P={};++u<w;){var $=s[u];P[$[0]]=$[1]}return P}function Bb(s){return s&&s.length?s[0]:n}function DP(s,u,w){var P=s==null?0:s.length;if(!P)return-1;var $=w==null?0:Yt(w);return $<0&&($=wn(P+$,0)),Qt(s,u,$)}function _P(s){var u=s==null?0:s.length;return u?oi(s,0,-1):[]}var PP=Bt(function(s){var u=lt(s,Ql);return u.length&&u[0]===s[0]?ka(u):[]}),OP=Bt(function(s){var u=Ss(s),w=lt(s,Ql);return u===Ss(w)?u=n:w.pop(),w.length&&w[0]===s[0]?ka(w,Ct(u,2)):[]}),RP=Bt(function(s){var u=Ss(s),w=lt(s,Ql);return u=typeof u=="function"?u:n,u&&w.pop(),w.length&&w[0]===s[0]?ka(w,n,u):[]});function IP(s,u){return s==null?"":Za.call(s,u)}function Ss(s){var u=s==null?0:s.length;return u?s[u-1]:n}function AP(s,u,w){var P=s==null?0:s.length;if(!P)return-1;var $=P;return w!==n&&($=Yt(w),$=$<0?wn(P+$,0):Gn($,P-1)),u===u?ha(s,u,$):jt(s,go,$,!0)}function MP(s,u){return s&&s.length?Pa(s,Yt(u)):n}var LP=Bt($b);function $b(s,u){return s&&s.length&&u&&u.length?Xu(s,u):s}function FP(s,u,w){return s&&s.length&&u&&u.length?Xu(s,u,Ct(w,2)):s}function NP(s,u,w){return s&&s.length&&u&&u.length?Xu(s,u,n,w):s}var jP=dl(function(s,u){var w=s==null?0:s.length,P=Hu(s,u);return Ku(s,lt(u,function($){return hl($,w)?+$:$}).sort(nc)),P});function BP(s,u){var w=[];if(!(s&&s.length))return w;var P=-1,$=[],X=s.length;for(u=Ct(u,3);++P<X;){var se=s[P];u(se,P,s)&&(w.push(se),$.push(P))}return Ku(s,$),w}function pg(s){return s==null?s:Fl.call(s)}function $P(s,u,w){var P=s==null?0:s.length;return P?(w&&typeof w!="number"&&no(s,u,w)?(u=0,w=P):(u=u==null?0:Yt(u),w=w===n?P:Yt(w)),oi(s,u,w)):[]}function VP(s,u){return Jl(s,u)}function HP(s,u,w){return Qu(s,u,Ct(w,2))}function UP(s,u){var w=s==null?0:s.length;if(w){var P=Jl(s,u);if(P<w&&ra(s[P],u))return P}return-1}function WP(s,u){return Jl(s,u,!0)}function zP(s,u,w){return Qu(s,u,Ct(w,2),!0)}function YP(s,u){var w=s==null?0:s.length;if(w){var P=Jl(s,u,!0)-1;if(ra(s[P],u))return P}return-1}function GP(s){return s&&s.length?ec(s):[]}function qP(s,u){return s&&s.length?ec(s,Ct(u,2)):[]}function XP(s){var u=s==null?0:s.length;return u?oi(s,1,u):[]}function KP(s,u,w){return s&&s.length?(u=w||u===n?1:Yt(u),oi(s,0,u<0?0:u)):[]}function ZP(s,u,w){var P=s==null?0:s.length;return P?(u=w||u===n?1:Yt(u),u=P-u,oi(s,u<0?0:u,P)):[]}function JP(s,u){return s&&s.length?ea(s,Ct(u,3),!1,!0):[]}function QP(s,u){return s&&s.length?ea(s,Ct(u,3)):[]}var eO=Bt(function(s){return ys(fr(s,1,hr,!0))}),tO=Bt(function(s){var u=Ss(s);return hr(u)&&(u=n),ys(fr(s,1,hr,!0),Ct(u,2))}),nO=Bt(function(s){var u=Ss(s);return u=typeof u=="function"?u:n,ys(fr(s,1,hr,!0),n,u)});function rO(s){return s&&s.length?ys(s):[]}function iO(s,u){return s&&s.length?ys(s,Ct(u,2)):[]}function oO(s,u){return u=typeof u=="function"?u:n,s&&s.length?ys(s,n,u):[]}function gg(s){if(!(s&&s.length))return[];var u=0;return s=Le(s,function(w){if(hr(w))return u=wn(w.length,u),!0}),xe(u,function(w){return lt(s,D(w))})}function Vb(s,u){if(!(s&&s.length))return[];var w=gg(s);return u==null?w:lt(w,function(P){return V(u,n,P)})}var sO=Bt(function(s,u){return hr(s)?qs(s,u):[]}),aO=Bt(function(s){return dr(Le(s,hr))}),lO=Bt(function(s){var u=Ss(s);return hr(u)&&(u=n),dr(Le(s,hr),Ct(u,2))}),uO=Bt(function(s){var u=Ss(s);return u=typeof u=="function"?u:n,dr(Le(s,hr),n,u)}),cO=Bt(gg);function fO(s,u){return Qc(s||[],u||[],Ur)}function dO(s,u){return Qc(s||[],u||[],Qs)}var hO=Bt(function(s){var u=s.length,w=u>1?s[u-1]:n;return w=typeof w=="function"?(s.pop(),w):n,Vb(s,w)});function Hb(s){var u=Y(s);return u.__chain__=!0,u}function pO(s,u){return u(s),s}function ah(s,u){return u(s)}var gO=dl(function(s){var u=s.length,w=u?s[0]:0,P=this.__wrapped__,$=function(X){return Hu(X,s)};return u>1||this.__actions__.length||!(P instanceof $t)||!hl(w)?this.thru($):(P=P.slice(w,+w+(u?1:0)),P.__actions__.push({func:ah,args:[$],thisArg:n}),new Cr(P,this.__chain__).thru(function(X){return u&&!X.length&&X.push(n),X}))});function mO(){return Hb(this)}function vO(){return new Cr(this.value(),this.__chain__)}function yO(){this.__values__===n&&(this.__values__=n0(this.value()));var s=this.__index__>=this.__values__.length,u=s?n:this.__values__[this.__index__++];return{done:s,value:u}}function bO(){return this}function wO(s){for(var u,w=this;w instanceof Ho;){var P=Lb(w);P.__index__=0,P.__values__=n,u?$.__wrapped__=P:u=P;var $=P;w=w.__wrapped__}return $.__wrapped__=s,u}function xO(){var s=this.__wrapped__;if(s instanceof $t){var u=s;return this.__actions__.length&&(u=new $t(this)),u=u.reverse(),u.__actions__.push({func:ah,args:[pg],thisArg:n}),new Cr(u,this.__chain__)}return this.thru(pg)}function SO(){return Jc(this.__wrapped__,this.__actions__)}var TO=fl(function(s,u,w){kt.call(s,w)?++s[w]:Ti(s,w,1)});function CO(s,u,w){var P=Ht(s)?Oe:Vc;return w&&no(s,u,w)&&(u=n),P(s,Ct(u,3))}function EO(s,u){var w=Ht(s)?Le:Hc;return w(s,Ct(u,3))}var kO=G(Fb),DO=G(Nb);function _O(s,u){return fr(lh(s,u),1)}function PO(s,u){return fr(lh(s,u),Re)}function OO(s,u,w){return w=w===n?1:Yt(w),fr(lh(s,u),w)}function Ub(s,u){var w=Ht(s)?te:gs;return w(s,Ct(u,3))}function Wb(s,u){var w=Ht(s)?me:Yu;return w(s,Ct(u,3))}var RO=fl(function(s,u,w){kt.call(s,w)?s[w].push(u):Ti(s,w,[u])});function IO(s,u,w,P){s=Do(s)?s:af(s),w=w&&!P?Yt(w):0;var $=s.length;return w<0&&(w=wn($+w,0)),hh(s)?w<=$&&s.indexOf(u,w)>-1:!!$&&Qt(s,u,w)>-1}var AO=Bt(function(s,u,w){var P=-1,$=typeof u=="function",X=Do(s)?le(s.length):[];return gs(s,function(se){X[++P]=$?V(u,se,w):Co(se,u,w)}),X}),MO=fl(function(s,u,w){Ti(s,w,u)});function lh(s,u){var w=Ht(s)?lt:Qi;return w(s,Ct(u,3))}function LO(s,u,w,P){return s==null?[]:(Ht(u)||(u=u==null?[]:[u]),w=P?n:w,Ht(w)||(w=w==null?[]:[w]),Xl(s,u,w))}var FO=fl(function(s,u,w){s[w?0:1].push(u)},function(){return[[],[]]});function NO(s,u,w){var P=Ht(s)?Et:W,$=arguments.length<3;return P(s,Ct(u,4),w,$,gs)}function jO(s,u,w){var P=Ht(s)?Rn:W,$=arguments.length<3;return P(s,Ct(u,4),w,$,Yu)}function BO(s,u){var w=Ht(s)?Le:Hc;return w(s,fh(Ct(u,3)))}function $O(s){var u=Ht(s)?ii:ll;return u(s)}function VO(s,u,w){(w?no(s,u,w):u===n)?u=1:u=Yt(u);var P=Ht(s)?Si:Ju;return P(s,u)}function HO(s){var u=Ht(s)?To:qc;return u(s)}function UO(s){if(s==null)return 0;if(Do(s))return hh(s)?yo(s):s.length;var u=Li(s);return u==Mt||u==Jn?s.size:zo(s).length}function WO(s,u,w){var P=Ht(s)?un:Xc;return w&&no(s,u,w)&&(u=n),P(s,Ct(u,3))}var zO=Bt(function(s,u){if(s==null)return[];var w=u.length;return w>1&&no(s,u[0],u[1])?u=[]:w>2&&no(u[0],u[1],u[2])&&(u=[u[0]]),Xl(s,fr(u,1),[])}),uh=Ka||function(){return ln.Date.now()};function YO(s,u){if(typeof u!="function")throw new Vt(a);return s=Yt(s),function(){if(--s<1)return u.apply(this,arguments)}}function zb(s,u,w){return u=w?n:u,u=s&&u==null?s.length:u,na(s,S,n,n,n,n,u)}function Yb(s,u){var w;if(typeof u!="function")throw new Vt(a);return s=Yt(s),function(){return--s>0&&(w=u.apply(this,arguments)),s<=1&&(u=n),w}}var mg=Bt(function(s,u,w){var P=F;if(w.length){var $=ri(w,of(mg));P|=Z}return na(s,P,u,w,$)}),Gb=Bt(function(s,u,w){var P=F|R;if(w.length){var $=ri(w,of(Gb));P|=Z}return na(u,P,s,w,$)});function qb(s,u,w){u=w?n:u;var P=na(s,H,n,n,n,n,n,u);return P.placeholder=qb.placeholder,P}function Xb(s,u,w){u=w?n:u;var P=na(s,ne,n,n,n,n,n,u);return P.placeholder=Xb.placeholder,P}function Kb(s,u,w){var P,$,X,se,pe,be,ze=0,Ye=!1,Je=!1,ct=!0;if(typeof s!="function")throw new Vt(a);u=Ts(u)||0,qn(w)&&(Ye=!!w.leading,Je="maxWait"in w,X=Je?wn(Ts(w.maxWait)||0,u):X,ct="trailing"in w?!!w.trailing:ct);function bt(pr){var ia=P,ml=$;return P=$=n,ze=pr,se=s.apply(ml,ia),se}function Dt(pr){return ze=pr,pe=Jf(Jt,u),Ye?bt(pr):se}function Xt(pr){var ia=pr-be,ml=pr-ze,g0=u-ia;return Je?Gn(g0,X-ml):g0}function _t(pr){var ia=pr-be,ml=pr-ze;return be===n||ia>=u||ia<0||Je&&ml>=X}function Jt(){var pr=uh();if(_t(pr))return tn(pr);pe=Jf(Jt,Xt(pr))}function tn(pr){return pe=n,ct&&P?bt(pr):(P=$=n,se)}function Go(){pe!==n&&tu(pe),ze=0,P=be=$=pe=n}function ro(){return pe===n?se:tn(uh())}function qo(){var pr=uh(),ia=_t(pr);if(P=arguments,$=this,be=pr,ia){if(pe===n)return Dt(be);if(Je)return tu(pe),pe=Jf(Jt,u),bt(be)}return pe===n&&(pe=Jf(Jt,u)),se}return qo.cancel=Go,qo.flush=ro,qo}var GO=Bt(function(s,u){return zu(s,1,u)}),qO=Bt(function(s,u,w){return zu(s,Ts(u)||0,w)});function XO(s){return na(s,ie)}function ch(s,u){if(typeof s!="function"||u!=null&&typeof u!="function")throw new Vt(a);var w=function(){var P=arguments,$=u?u.apply(this,P):P[0],X=w.cache;if(X.has($))return X.get($);var se=s.apply(this,P);return w.cache=X.set($,se)||X,se};return w.cache=new(ch.Cache||Uo),w}ch.Cache=Uo;function fh(s){if(typeof s!="function")throw new Vt(a);return function(){var u=arguments;switch(u.length){case 0:return!s.call(this);case 1:return!s.call(this,u[0]);case 2:return!s.call(this,u[0],u[1]);case 3:return!s.call(this,u[0],u[1],u[2])}return!s.apply(this,u)}}function KO(s){return Yb(2,s)}var ZO=ef(function(s,u){u=u.length==1&&Ht(u[0])?lt(u[0],gt(Ct())):lt(fr(u,1),gt(Ct()));var w=u.length;return Bt(function(P){for(var $=-1,X=Gn(P.length,w);++$<X;)P[$]=u[$].call(this,P[$]);return V(s,this,P)})}),vg=Bt(function(s,u){var w=ri(u,of(vg));return na(s,Z,n,u,w)}),Zb=Bt(function(s,u){var w=ri(u,of(Zb));return na(s,ce,n,u,w)}),JO=dl(function(s,u){return na(s,re,n,n,n,u)});function QO(s,u){if(typeof s!="function")throw new Vt(a);return u=u===n?u:Yt(u),Bt(s,u)}function eR(s,u){if(typeof s!="function")throw new Vt(a);return u=u==null?0:wn(Yt(u),0),Bt(function(w){var P=w[u],$=bs(w,0,u);return P&&Tt($,P),V(s,this,$)})}function tR(s,u,w){var P=!0,$=!0;if(typeof s!="function")throw new Vt(a);return qn(w)&&(P="leading"in w?!!w.leading:P,$="trailing"in w?!!w.trailing:$),Kb(s,u,{leading:P,maxWait:u,trailing:$})}function nR(s){return zb(s,1)}function rR(s,u){return vg(eu(u),s)}function iR(){if(!arguments.length)return[];var s=arguments[0];return Ht(s)?s:[s]}function oR(s){return Wr(s,E)}function sR(s,u){return u=typeof u=="function"?u:n,Wr(s,E,u)}function aR(s){return Wr(s,m|E)}function lR(s,u){return u=typeof u=="function"?u:n,Wr(s,m|E,u)}function uR(s,u){return u==null||Wu(s,u,si(u))}function ra(s,u){return s===u||s!==s&&u!==u}var cR=ko(Xs),fR=ko(function(s,u){return s>=u}),sc=Yl(function(){return arguments}())?Yl:function(s){return or(s)&&kt.call(s,"callee")&&!Al.call(s,"callee")},Ht=le.isArray,dR=h?gt(h):Ks;function Do(s){return s!=null&&dh(s.length)&&!pl(s)}function hr(s){return or(s)&&Do(s)}function hR(s){return s===!0||s===!1||or(s)&&rr(s)==rt}var ru=Ll||_g,pR=b?gt(b):Wc;function gR(s){return or(s)&&s.nodeType===1&&!Qf(s)}function mR(s){if(s==null)return!0;if(Do(s)&&(Ht(s)||typeof s=="string"||typeof s.splice=="function"||ru(s)||sf(s)||sc(s)))return!s.length;var u=Li(s);if(u==Mt||u==Jn)return!s.size;if(Zf(s))return!zo(s).length;for(var w in s)if(kt.call(s,w))return!1;return!0}function vR(s,u){return il(s,u)}function yR(s,u,w){w=typeof w=="function"?w:n;var P=w?w(s,u):n;return P===n?il(s,u,n,w):!!P}function yg(s){if(!or(s))return!1;var u=rr(s);return u==ft||u==Qe||typeof s.message=="string"&&typeof s.name=="string"&&!Qf(s)}function bR(s){return typeof s=="number"&&ba(s)}function pl(s){if(!qn(s))return!1;var u=rr(s);return u==Xe||u==It||u==it||u==Vi}function Jb(s){return typeof s=="number"&&s==Yt(s)}function dh(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=Ae}function qn(s){var u=typeof s;return s!=null&&(u=="object"||u=="function")}function or(s){return s!=null&&typeof s=="object"}var Qb=C?gt(C):_a;function wR(s,u){return s===u||qu(s,u,lg(u))}function xR(s,u,w){return w=typeof w=="function"?w:n,qu(s,u,lg(u),w)}function SR(s){return e0(s)&&s!=+s}function TR(s){if(sP(s))throw new Ve(o);return zc(s)}function CR(s){return s===null}function ER(s){return s==null}function e0(s){return typeof s=="number"||or(s)&&rr(s)==Vn}function Qf(s){if(!or(s)||rr(s)!=Hn)return!1;var u=Vs(s);if(u===null)return!0;var w=kt.call(u,"constructor")&&u.constructor;return typeof w=="function"&&w instanceof w&&Vr.call(w)==Ru}var bg=_?gt(_):Zs;function kR(s){return Jb(s)&&s>=-9007199254740991&&s<=Ae}var t0=L?gt(L):Gl;function hh(s){return typeof s=="string"||!Ht(s)&&or(s)&&rr(s)==sn}function Yo(s){return typeof s=="symbol"||or(s)&&rr(s)==fn}var sf=j?gt(j):Wo;function DR(s){return s===n}function _R(s){return or(s)&&Li(s)==ht}function PR(s){return or(s)&&rr(s)==Dn}var OR=ko(Ji),RR=ko(function(s,u){return s<=u});function n0(s){if(!s)return[];if(Do(s))return hh(s)?cn(s):Gr(s);if(Ki&&s[Ki])return Ai(s[Ki]());var u=Li(s),w=u==Mt?da:u==Jn?vo:af;return w(s)}function gl(s){if(!s)return s===0?s:0;if(s=Ts(s),s===Re||s===-1/0){var u=s<0?-1:1;return u*et}return s===s?s:0}function Yt(s){var u=gl(s),w=u%1;return u===u?w?u-w:u:0}function r0(s){return s?Gs(Yt(s),0,ue):0}function Ts(s){if(typeof s=="number")return s;if(Yo(s))return ye;if(qn(s)){var u=typeof s.valueOf=="function"?s.valueOf():s;s=qn(u)?u+"":u}if(typeof s!="string")return s===0?s:+s;s=Ge(s);var w=di.test(s);return w||wr.test(s)?Bs(s.slice(2),w?2:8):Ar.test(s)?ye:+s}function i0(s){return Mi(s,_o(s))}function IR(s){return s?Gs(Yt(s),-9007199254740991,Ae):s===0?s:0}function gn(s){return s==null?"":zr(s)}var AR=Ra(function(s,u){if(Zf(u)||Do(u)){Mi(u,si(u),s);return}for(var w in u)kt.call(u,w)&&Ur(s,w,u[w])}),o0=Ra(function(s,u){Mi(u,_o(u),s)}),ph=Ra(function(s,u,w,P){Mi(u,_o(u),s,P)}),MR=Ra(function(s,u,w,P){Mi(u,si(u),s,P)}),LR=dl(Hu);function FR(s,u){var w=Vo(s);return u==null?w:$c(w,u)}var NR=Bt(function(s,u){s=at(s);var w=-1,P=u.length,$=P>2?u[2]:n;for($&&no(u[0],u[1],$)&&(P=1);++w<P;)for(var X=u[w],se=_o(X),pe=-1,be=se.length;++pe<be;){var ze=se[pe],Ye=s[ze];(Ye===n||ra(Ye,An[ze])&&!kt.call(s,ze))&&(s[ze]=X[ze])}return s}),jR=Bt(function(s){return s.push(n,Sb),V(s0,n,s)});function BR(s,u){return $r(s,Ct(u,3),Ci)}function $R(s,u){return $r(s,Ct(u,3),Hl)}function VR(s,u){return s==null?s:Gu(s,Ct(u,3),_o)}function HR(s,u){return s==null?s:Uc(s,Ct(u,3),_o)}function UR(s,u){return s&&Ci(s,Ct(u,3))}function WR(s,u){return s&&Hl(s,Ct(u,3))}function zR(s){return s==null?[]:Ca(s,si(s))}function YR(s){return s==null?[]:Ca(s,_o(s))}function wg(s,u,w){var P=s==null?n:ms(s,u);return P===n?w:P}function GR(s,u){return s!=null&&Eb(s,u,Ul)}function xg(s,u){return s!=null&&Eb(s,u,Ea)}var qR=He(function(s,u,w){u!=null&&typeof u.toString!="function"&&(u=Fo.call(u)),s[u]=w},Tg(Po)),XR=He(function(s,u,w){u!=null&&typeof u.toString!="function"&&(u=Fo.call(u)),kt.call(s,u)?s[u].push(w):s[u]=[w]},Ct),KR=Bt(Co);function si(s){return Do(s)?nl(s):zo(s)}function _o(s){return Do(s)?nl(s,!0):ol(s)}function ZR(s,u){var w={};return u=Ct(u,3),Ci(s,function(P,$,X){Ti(w,u(P,$,X),P)}),w}function JR(s,u){var w={};return u=Ct(u,3),Ci(s,function(P,$,X){Ti(w,$,u(P,$,X))}),w}var QR=Ra(function(s,u,w){vs(s,u,w)}),s0=Ra(function(s,u,w,P){vs(s,u,w,P)}),eI=dl(function(s,u){var w={};if(s==null)return w;var P=!1;u=lt(u,function(X){return X=Ei(X,s),P||(P=X.length>1),X}),Mi(s,sg(s),w),P&&(w=Wr(w,m|T|E,q_));for(var $=u.length;$--;)Yr(w,u[$]);return w});function tI(s,u){return a0(s,fh(Ct(u)))}var nI=dl(function(s,u){return s==null?{}:al(s,u)});function a0(s,u){if(s==null)return{};var w=lt(sg(s),function(P){return[P]});return u=Ct(u),Oa(s,w,function(P,$){return u(P,$[0])})}function rI(s,u,w){u=Ei(u,s);var P=-1,$=u.length;for($||($=1,s=n);++P<$;){var X=s==null?n:s[Aa(u[P])];X===n&&(P=$,X=w),s=pl(X)?X.call(s):X}return s}function iI(s,u,w){return s==null?s:Qs(s,u,w)}function oI(s,u,w,P){return P=typeof P=="function"?P:n,s==null?s:Qs(s,u,w,P)}var l0=rf(si),u0=rf(_o);function sI(s,u,w){var P=Ht(s),$=P||ru(s)||sf(s);if(u=Ct(u,4),w==null){var X=s&&s.constructor;$?w=P?new X:[]:qn(s)?w=pl(X)?Vo(Vs(s)):{}:w={}}return($?te:Ci)(s,function(se,pe,be){return u(w,se,pe,be)}),w}function aI(s,u){return s==null?!0:Yr(s,u)}function lI(s,u,w){return s==null?s:Zc(s,u,eu(w))}function uI(s,u,w,P){return P=typeof P=="function"?P:n,s==null?s:Zc(s,u,eu(w),P)}function af(s){return s==null?[]:Ot(s,si(s))}function cI(s){return s==null?[]:Ot(s,_o(s))}function fI(s,u,w){return w===n&&(w=u,u=n),w!==n&&(w=Ts(w),w=w===w?w:0),u!==n&&(u=Ts(u),u=u===u?u:0),Gs(Ts(s),u,w)}function dI(s,u,w){return u=gl(u),w===n?(w=u,u=0):w=gl(w),s=Ts(s),Wl(s,u,w)}function hI(s,u,w){if(w&&typeof w!="boolean"&&no(s,u,w)&&(u=w=n),w===n&&(typeof u=="boolean"?(w=u,u=n):typeof s=="boolean"&&(w=s,s=n)),s===n&&u===n?(s=0,u=1):(s=gl(s),u===n?(u=s,s=0):u=gl(u)),s>u){var P=s;s=u,u=P}if(w||s%1||u%1){var $=cs();return Gn(s+$*(u-s+ur("1e-"+(($+"").length-1))),u)}return Js(s,u)}var pI=x(function(s,u,w){return u=u.toLowerCase(),s+(w?c0(u):u)});function c0(s){return Sg(gn(s).toLowerCase())}function f0(s){return s=gn(s),s&&s.replace(tr,$n).replace(is,"")}function gI(s,u,w){s=gn(s),u=zr(u);var P=s.length;w=w===n?P:Gs(Yt(w),0,P);var $=w;return w-=u.length,w>=0&&s.slice(w,$)==u}function mI(s){return s=gn(s),s&&zi.test(s)?s.replace(Wt,ss):s}function vI(s){return s=gn(s),s&&fi.test(s)?s.replace(br,"\\$&"):s}var yI=x(function(s,u,w){return s+(w?"-":"")+u.toLowerCase()}),bI=x(function(s,u,w){return s+(w?" ":"")+u.toLowerCase()}),wI=g("toLowerCase");function xI(s,u,w){s=gn(s),u=Yt(u);var P=u?yo(s):0;if(!u||P>=u)return s;var $=(u-P)/2;return xt(Hs($),w)+s+xt(va($),w)}function SI(s,u,w){s=gn(s),u=Yt(u);var P=u?yo(s):0;return u&&P<u?s+xt(u-P,w):s}function TI(s,u,w){s=gn(s),u=Yt(u);var P=u?yo(s):0;return u&&P<u?xt(u-P,w)+s:s}function CI(s,u,w){return w||u==null?u=0:u&&(u=+u),Mu(gn(s).replace(an,""),u||0)}function EI(s,u,w){return(w?no(s,u,w):u===n)?u=1:u=Yt(u),Kl(gn(s),u)}function kI(){var s=arguments,u=gn(s[0]);return s.length<3?u:u.replace(s[1],s[2])}var DI=x(function(s,u,w){return s+(w?"_":"")+u.toLowerCase()});function _I(s,u,w){return w&&typeof w!="number"&&no(s,u,w)&&(u=w=n),w=w===n?ue:w>>>0,w?(s=gn(s),s&&(typeof u=="string"||u!=null&&!bg(u))&&(u=zr(u),!u&&ni(s))?bs(cn(s),0,w):s.split(u,w)):[]}var PI=x(function(s,u,w){return s+(w?" ":"")+Sg(u)});function OI(s,u,w){return s=gn(s),w=w==null?0:Gs(Yt(w),0,s.length),u=zr(u),s.slice(w,w+u.length)==u}function RI(s,u,w){var P=Y.templateSettings;w&&no(s,u,w)&&(u=n),s=gn(s),u=ph({},u,P,xb);var $=ph({},u.imports,P.imports,xb),X=si($),se=Ot($,X),pe,be,ze=0,Ye=u.interpolate||Yi,Je="__p += '",ct=At((u.escape||Yi).source+"|"+Ye.source+"|"+(Ye===ui?er:Yi).source+"|"+(u.evaluate||Yi).source+"|$","g"),bt="//# sourceURL="+(kt.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rn+"]")+`
|
|
146
|
+
`;s.replace(ct,function(_t,Jt,tn,Go,ro,qo){return tn||(tn=Go),Je+=s.slice(ze,qo).replace(Oi,fa),Jt&&(pe=!0,Je+=`' +
|
|
147
|
+
__e(`+Jt+`) +
|
|
148
|
+
'`),ro&&(be=!0,Je+=`';
|
|
149
|
+
`+ro+`;
|
|
150
|
+
__p += '`),tn&&(Je+=`' +
|
|
151
|
+
((__t = (`+tn+`)) == null ? '' : __t) +
|
|
152
|
+
'`),ze=qo+_t.length,_t}),Je+=`';
|
|
153
|
+
`;var Dt=kt.call(u,"variable")&&u.variable;if(!Dt)Je=`with (obj) {
|
|
154
|
+
`+Je+`
|
|
155
|
+
}
|
|
156
|
+
`;else if(uo.test(Dt))throw new Ve(c);Je=(be?Je.replace(Ao,""):Je).replace(Un,"$1").replace(Kr,"$1;"),Je="function("+(Dt||"obj")+`) {
|
|
157
|
+
`+(Dt?"":`obj || (obj = {});
|
|
158
|
+
`)+"var __t, __p = ''"+(pe?", __e = _.escape":"")+(be?`, __j = Array.prototype.join;
|
|
159
|
+
function print() { __p += __j.call(arguments, '') }
|
|
160
|
+
`:`;
|
|
161
|
+
`)+Je+`return __p
|
|
162
|
+
}`;var Xt=h0(function(){return ut(X,bt+"return "+Je).apply(n,se)});if(Xt.source=Je,yg(Xt))throw Xt;return Xt}function II(s){return gn(s).toLowerCase()}function AI(s){return gn(s).toUpperCase()}function MI(s,u,w){if(s=gn(s),s&&(w||u===n))return Ge(s);if(!s||!(u=zr(u)))return s;var P=cn(s),$=cn(u),X=yt(P,$),se=In(P,$)+1;return bs(P,X,se).join("")}function LI(s,u,w){if(s=gn(s),s&&(w||u===n))return s.slice(0,Il(s)+1);if(!s||!(u=zr(u)))return s;var P=cn(s),$=In(P,cn(u))+1;return bs(P,0,$).join("")}function FI(s,u,w){if(s=gn(s),s&&(w||u===n))return s.replace(an,"");if(!s||!(u=zr(u)))return s;var P=cn(s),$=yt(P,cn(u));return bs(P,$).join("")}function NI(s,u){var w=Pe,P=Ke;if(qn(u)){var $="separator"in u?u.separator:$;w="length"in u?Yt(u.length):w,P="omission"in u?zr(u.omission):P}s=gn(s);var X=s.length;if(ni(s)){var se=cn(s);X=se.length}if(w>=X)return s;var pe=w-yo(P);if(pe<1)return P;var be=se?bs(se,0,pe).join(""):s.slice(0,pe);if($===n)return be+P;if(se&&(pe+=be.length-pe),bg($)){if(s.slice(pe).search($)){var ze,Ye=be;for($.global||($=At($.source,gn(Ir.exec($))+"g")),$.lastIndex=0;ze=$.exec(Ye);)var Je=ze.index;be=be.slice(0,Je===n?pe:Je)}}else if(s.indexOf(zr($),pe)!=pe){var ct=be.lastIndexOf($);ct>-1&&(be=be.slice(0,ct))}return be+P}function jI(s){return s=gn(s),s&&li.test(s)?s.replace(Qn,pa):s}var BI=x(function(s,u,w){return s+(w?" ":"")+u.toUpperCase()}),Sg=g("toUpperCase");function d0(s,u,w){return s=gn(s),u=w?n:u,u===n?Ya(s)?he(s):Lt(s):s.match(u)||[]}var h0=Bt(function(s,u){try{return V(s,n,u)}catch(w){return yg(w)?w:new Ve(w)}}),$I=dl(function(s,u){return te(u,function(w){w=Aa(w),Ti(s,w,mg(s[w],s))}),s});function VI(s){var u=s==null?0:s.length,w=Ct();return s=u?lt(s,function(P){if(typeof P[1]!="function")throw new Vt(a);return[w(P[0]),P[1]]}):[],Bt(function(P){for(var $=-1;++$<u;){var X=s[$];if(V(X[0],this,P))return V(X[1],this,P)}})}function HI(s){return Uu(Wr(s,m))}function Tg(s){return function(){return s}}function UI(s,u){return s==null||s!==s?u:s}var WI=oe(),zI=oe(!0);function Po(s){return s}function Cg(s){return ql(typeof s=="function"?s:Wr(s,m))}function YI(s){return Eo(Wr(s,m))}function GI(s,u){return sl(s,Wr(u,m))}var qI=Bt(function(s,u){return function(w){return Co(w,s,u)}}),XI=Bt(function(s,u){return function(w){return Co(s,w,u)}});function Eg(s,u,w){var P=si(u),$=Ca(u,P);w==null&&!(qn(u)&&($.length||!P.length))&&(w=u,u=s,s=this,$=Ca(u,si(u)));var X=!(qn(w)&&"chain"in w)||!!w.chain,se=pl(s);return te($,function(pe){var be=u[pe];s[pe]=be,se&&(s.prototype[pe]=function(){var ze=this.__chain__;if(X||ze){var Ye=s(this.__wrapped__),Je=Ye.__actions__=Gr(this.__actions__);return Je.push({func:be,args:arguments,thisArg:s}),Ye.__chain__=ze,Ye}return be.apply(s,Tt([this.value()],arguments))})}),s}function KI(){return ln._===this&&(ln._=Iu),this}function kg(){}function ZI(s){return s=Yt(s),Bt(function(u){return Pa(u,s)})}var JI=ot(lt),QI=ot(Oe),eA=ot(un);function p0(s){return cg(s)?D(Aa(s)):Yc(s)}function tA(s){return function(u){return s==null?n:ms(s,u)}}var nA=ir(),rA=ir(!0);function Dg(){return[]}function _g(){return!1}function iA(){return{}}function oA(){return""}function sA(){return!0}function aA(s,u){if(s=Yt(s),s<1||s>Ae)return[];var w=ue,P=Gn(s,ue);u=Ct(u),s-=ue;for(var $=xe(P,u);++w<s;)u(w);return $}function lA(s){return Ht(s)?lt(s,Aa):Yo(s)?[s]:Gr(Mb(gn(s)))}function uA(s){var u=++Ou;return gn(s)+u}var cA=qe(function(s,u){return s+u},0),fA=to("ceil"),dA=qe(function(s,u){return s/u},1),hA=to("floor");function pA(s){return s&&s.length?Vl(s,Po,Xs):n}function gA(s,u){return s&&s.length?Vl(s,Ct(u,2),Xs):n}function mA(s){return Tr(s,Po)}function vA(s,u){return Tr(s,Ct(u,2))}function yA(s){return s&&s.length?Vl(s,Po,Ji):n}function bA(s,u){return s&&s.length?Vl(s,Ct(u,2),Ji):n}var wA=qe(function(s,u){return s*u},1),xA=to("round"),SA=qe(function(s,u){return s-u},0);function TA(s){return s&&s.length?we(s,Po):0}function CA(s,u){return s&&s.length?we(s,Ct(u,2)):0}return Y.after=YO,Y.ary=zb,Y.assign=AR,Y.assignIn=o0,Y.assignInWith=ph,Y.assignWith=MR,Y.at=LR,Y.before=Yb,Y.bind=mg,Y.bindAll=$I,Y.bindKey=Gb,Y.castArray=iR,Y.chain=Hb,Y.chunk=hP,Y.compact=pP,Y.concat=gP,Y.cond=VI,Y.conforms=HI,Y.constant=Tg,Y.countBy=TO,Y.create=FR,Y.curry=qb,Y.curryRight=Xb,Y.debounce=Kb,Y.defaults=NR,Y.defaultsDeep=jR,Y.defer=GO,Y.delay=qO,Y.difference=mP,Y.differenceBy=vP,Y.differenceWith=yP,Y.drop=bP,Y.dropRight=wP,Y.dropRightWhile=xP,Y.dropWhile=SP,Y.fill=TP,Y.filter=EO,Y.flatMap=_O,Y.flatMapDeep=PO,Y.flatMapDepth=OO,Y.flatten=jb,Y.flattenDeep=CP,Y.flattenDepth=EP,Y.flip=XO,Y.flow=WI,Y.flowRight=zI,Y.fromPairs=kP,Y.functions=zR,Y.functionsIn=YR,Y.groupBy=RO,Y.initial=_P,Y.intersection=PP,Y.intersectionBy=OP,Y.intersectionWith=RP,Y.invert=qR,Y.invertBy=XR,Y.invokeMap=AO,Y.iteratee=Cg,Y.keyBy=MO,Y.keys=si,Y.keysIn=_o,Y.map=lh,Y.mapKeys=ZR,Y.mapValues=JR,Y.matches=YI,Y.matchesProperty=GI,Y.memoize=ch,Y.merge=QR,Y.mergeWith=s0,Y.method=qI,Y.methodOf=XI,Y.mixin=Eg,Y.negate=fh,Y.nthArg=ZI,Y.omit=eI,Y.omitBy=tI,Y.once=KO,Y.orderBy=LO,Y.over=JI,Y.overArgs=ZO,Y.overEvery=QI,Y.overSome=eA,Y.partial=vg,Y.partialRight=Zb,Y.partition=FO,Y.pick=nI,Y.pickBy=a0,Y.property=p0,Y.propertyOf=tA,Y.pull=LP,Y.pullAll=$b,Y.pullAllBy=FP,Y.pullAllWith=NP,Y.pullAt=jP,Y.range=nA,Y.rangeRight=rA,Y.rearg=JO,Y.reject=BO,Y.remove=BP,Y.rest=QO,Y.reverse=pg,Y.sampleSize=VO,Y.set=iI,Y.setWith=oI,Y.shuffle=HO,Y.slice=$P,Y.sortBy=zO,Y.sortedUniq=GP,Y.sortedUniqBy=qP,Y.split=_I,Y.spread=eR,Y.tail=XP,Y.take=KP,Y.takeRight=ZP,Y.takeRightWhile=JP,Y.takeWhile=QP,Y.tap=pO,Y.throttle=tR,Y.thru=ah,Y.toArray=n0,Y.toPairs=l0,Y.toPairsIn=u0,Y.toPath=lA,Y.toPlainObject=i0,Y.transform=sI,Y.unary=nR,Y.union=eO,Y.unionBy=tO,Y.unionWith=nO,Y.uniq=rO,Y.uniqBy=iO,Y.uniqWith=oO,Y.unset=aI,Y.unzip=gg,Y.unzipWith=Vb,Y.update=lI,Y.updateWith=uI,Y.values=af,Y.valuesIn=cI,Y.without=sO,Y.words=d0,Y.wrap=rR,Y.xor=aO,Y.xorBy=lO,Y.xorWith=uO,Y.zip=cO,Y.zipObject=fO,Y.zipObjectDeep=dO,Y.zipWith=hO,Y.entries=l0,Y.entriesIn=u0,Y.extend=o0,Y.extendWith=ph,Eg(Y,Y),Y.add=cA,Y.attempt=h0,Y.camelCase=pI,Y.capitalize=c0,Y.ceil=fA,Y.clamp=fI,Y.clone=oR,Y.cloneDeep=aR,Y.cloneDeepWith=lR,Y.cloneWith=sR,Y.conformsTo=uR,Y.deburr=f0,Y.defaultTo=UI,Y.divide=dA,Y.endsWith=gI,Y.eq=ra,Y.escape=mI,Y.escapeRegExp=vI,Y.every=CO,Y.find=kO,Y.findIndex=Fb,Y.findKey=BR,Y.findLast=DO,Y.findLastIndex=Nb,Y.findLastKey=$R,Y.floor=hA,Y.forEach=Ub,Y.forEachRight=Wb,Y.forIn=VR,Y.forInRight=HR,Y.forOwn=UR,Y.forOwnRight=WR,Y.get=wg,Y.gt=cR,Y.gte=fR,Y.has=GR,Y.hasIn=xg,Y.head=Bb,Y.identity=Po,Y.includes=IO,Y.indexOf=DP,Y.inRange=dI,Y.invoke=KR,Y.isArguments=sc,Y.isArray=Ht,Y.isArrayBuffer=dR,Y.isArrayLike=Do,Y.isArrayLikeObject=hr,Y.isBoolean=hR,Y.isBuffer=ru,Y.isDate=pR,Y.isElement=gR,Y.isEmpty=mR,Y.isEqual=vR,Y.isEqualWith=yR,Y.isError=yg,Y.isFinite=bR,Y.isFunction=pl,Y.isInteger=Jb,Y.isLength=dh,Y.isMap=Qb,Y.isMatch=wR,Y.isMatchWith=xR,Y.isNaN=SR,Y.isNative=TR,Y.isNil=ER,Y.isNull=CR,Y.isNumber=e0,Y.isObject=qn,Y.isObjectLike=or,Y.isPlainObject=Qf,Y.isRegExp=bg,Y.isSafeInteger=kR,Y.isSet=t0,Y.isString=hh,Y.isSymbol=Yo,Y.isTypedArray=sf,Y.isUndefined=DR,Y.isWeakMap=_R,Y.isWeakSet=PR,Y.join=IP,Y.kebabCase=yI,Y.last=Ss,Y.lastIndexOf=AP,Y.lowerCase=bI,Y.lowerFirst=wI,Y.lt=OR,Y.lte=RR,Y.max=pA,Y.maxBy=gA,Y.mean=mA,Y.meanBy=vA,Y.min=yA,Y.minBy=bA,Y.stubArray=Dg,Y.stubFalse=_g,Y.stubObject=iA,Y.stubString=oA,Y.stubTrue=sA,Y.multiply=wA,Y.nth=MP,Y.noConflict=KI,Y.noop=kg,Y.now=uh,Y.pad=xI,Y.padEnd=SI,Y.padStart=TI,Y.parseInt=CI,Y.random=hI,Y.reduce=NO,Y.reduceRight=jO,Y.repeat=EI,Y.replace=kI,Y.result=rI,Y.round=xA,Y.runInContext=K,Y.sample=$O,Y.size=UO,Y.snakeCase=DI,Y.some=WO,Y.sortedIndex=VP,Y.sortedIndexBy=HP,Y.sortedIndexOf=UP,Y.sortedLastIndex=WP,Y.sortedLastIndexBy=zP,Y.sortedLastIndexOf=YP,Y.startCase=PI,Y.startsWith=OI,Y.subtract=SA,Y.sum=TA,Y.sumBy=CA,Y.template=RI,Y.times=aA,Y.toFinite=gl,Y.toInteger=Yt,Y.toLength=r0,Y.toLower=II,Y.toNumber=Ts,Y.toSafeInteger=IR,Y.toString=gn,Y.toUpper=AI,Y.trim=MI,Y.trimEnd=LI,Y.trimStart=FI,Y.truncate=NI,Y.unescape=jI,Y.uniqueId=uA,Y.upperCase=BI,Y.upperFirst=Sg,Y.each=Ub,Y.eachRight=Wb,Y.first=Bb,Eg(Y,function(){var s={};return Ci(Y,function(u,w){kt.call(Y.prototype,w)||(s[w]=u)}),s}(),{chain:!1}),Y.VERSION=r,te(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){Y[s].placeholder=Y}),te(["drop","take"],function(s,u){$t.prototype[s]=function(w){w=w===n?1:wn(Yt(w),0);var P=this.__filtered__&&!u?new $t(this):this.clone();return P.__filtered__?P.__takeCount__=Gn(w,P.__takeCount__):P.__views__.push({size:Gn(w,ue),type:s+(P.__dir__<0?"Right":"")}),P},$t.prototype[s+"Right"]=function(w){return this.reverse()[s](w).reverse()}}),te(["filter","map","takeWhile"],function(s,u){var w=u+1,P=w==nt||w==_e;$t.prototype[s]=function($){var X=this.clone();return X.__iteratees__.push({iteratee:Ct($,3),type:w}),X.__filtered__=X.__filtered__||P,X}}),te(["head","last"],function(s,u){var w="take"+(u?"Right":"");$t.prototype[s]=function(){return this[w](1).value()[0]}}),te(["initial","tail"],function(s,u){var w="drop"+(u?"":"Right");$t.prototype[s]=function(){return this.__filtered__?new $t(this):this[w](1)}}),$t.prototype.compact=function(){return this.filter(Po)},$t.prototype.find=function(s){return this.filter(s).head()},$t.prototype.findLast=function(s){return this.reverse().find(s)},$t.prototype.invokeMap=Bt(function(s,u){return typeof s=="function"?new $t(this):this.map(function(w){return Co(w,s,u)})}),$t.prototype.reject=function(s){return this.filter(fh(Ct(s)))},$t.prototype.slice=function(s,u){s=Yt(s);var w=this;return w.__filtered__&&(s>0||u<0)?new $t(w):(s<0?w=w.takeRight(-s):s&&(w=w.drop(s)),u!==n&&(u=Yt(u),w=u<0?w.dropRight(-u):w.take(u-s)),w)},$t.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},$t.prototype.toArray=function(){return this.take(ue)},Ci($t.prototype,function(s,u){var w=/^(?:filter|find|map|reject)|While$/.test(u),P=/^(?:head|last)$/.test(u),$=Y[P?"take"+(u=="last"?"Right":""):u],X=P||/^find/.test(u);$&&(Y.prototype[u]=function(){var se=this.__wrapped__,pe=P?[1]:arguments,be=se instanceof $t,ze=pe[0],Ye=be||Ht(se),Je=function(Jt){var tn=$.apply(Y,Tt([Jt],pe));return P&&ct?tn[0]:tn};Ye&&w&&typeof ze=="function"&&ze.length!=1&&(be=Ye=!1);var ct=this.__chain__,bt=!!this.__actions__.length,Dt=X&&!ct,Xt=be&&!bt;if(!X&&Ye){se=Xt?se:new $t(this);var _t=s.apply(se,pe);return _t.__actions__.push({func:ah,args:[Je],thisArg:n}),new Cr(_t,ct)}return Dt&&Xt?s.apply(this,pe):(_t=this.thru(Je),Dt?P?_t.value()[0]:_t.value():_t)})}),te(["pop","push","shift","sort","splice","unshift"],function(s){var u=Yn[s],w=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",P=/^(?:pop|shift)$/.test(s);Y.prototype[s]=function(){var $=arguments;if(P&&!this.__chain__){var X=this.value();return u.apply(Ht(X)?X:[],$)}return this[w](function(se){return u.apply(Ht(se)?se:[],$)})}}),Ci($t.prototype,function(s,u){var w=Y[u];if(w){var P=w.name+"";kt.call(Us,P)||(Us[P]=[]),Us[P].push({name:u,func:w})}}),Us[Se(n,R).name]=[{name:"wrapper",func:n}],$t.prototype.clone=Nl,$t.prototype.reverse=el,$t.prototype.value=jl,Y.prototype.at=gO,Y.prototype.chain=mO,Y.prototype.commit=vO,Y.prototype.next=yO,Y.prototype.plant=wO,Y.prototype.reverse=xO,Y.prototype.toJSON=Y.prototype.valueOf=Y.prototype.value=SO,Y.prototype.first=Y.prototype.head,Ki&&(Y.prototype[Ki]=bO),Y},ke=Ce();wi?((wi.exports=ke)._=ke,Lo._=ke):ln._=ke}).call(Di)})(kp,kp.exports);var c_=kp.exports;const $6=Eu(c_);var f_={exports:{}};/*!
|
|
163
|
+
* jQuery JavaScript Library v3.7.1
|
|
164
|
+
* https://jquery.com/
|
|
165
|
+
*
|
|
166
|
+
* Copyright OpenJS Foundation and other contributors
|
|
167
|
+
* Released under the MIT license
|
|
168
|
+
* https://jquery.org/license
|
|
169
|
+
*
|
|
170
|
+
* Date: 2023-08-28T13:37Z
|
|
171
|
+
*/(function(t){(function(e,n){t.exports=e.document?n(e,!0):function(r){if(!r.document)throw new Error("jQuery requires a window with a document");return n(r)}})(typeof window<"u"?window:Di,function(e,n){var r=[],i=Object.getPrototypeOf,o=r.slice,a=r.flat?function(h){return r.flat.call(h)}:function(h){return r.concat.apply([],h)},c=r.push,f=r.indexOf,p={},y=p.toString,m=p.hasOwnProperty,T=m.toString,E=T.call(Object),I={},A=function(b){return typeof b=="function"&&typeof b.nodeType!="number"&&typeof b.item!="function"},F=function(b){return b!=null&&b===b.window},R=e.document,U={type:!0,src:!0,nonce:!0,noModule:!0};function H(h,b,C){C=C||R;var _,L,j=C.createElement("script");if(j.text=h,b)for(_ in U)L=b[_]||b.getAttribute&&b.getAttribute(_),L&&j.setAttribute(_,L);C.head.appendChild(j).parentNode.removeChild(j)}function ne(h){return h==null?h+"":typeof h=="object"||typeof h=="function"?p[y.call(h)]||"object":typeof h}var Z="3.7.1",ce=/HTML$/i,S=function(h,b){return new S.fn.init(h,b)};S.fn=S.prototype={jquery:Z,constructor:S,length:0,toArray:function(){return o.call(this)},get:function(h){return h==null?o.call(this):h<0?this[h+this.length]:this[h]},pushStack:function(h){var b=S.merge(this.constructor(),h);return b.prevObject=this,b},each:function(h){return S.each(this,h)},map:function(h){return this.pushStack(S.map(this,function(b,C){return h.call(b,C,b)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(h,b){return(b+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(h,b){return b%2}))},eq:function(h){var b=this.length,C=+h+(h<0?b:0);return this.pushStack(C>=0&&C<b?[this[C]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:r.sort,splice:r.splice},S.extend=S.fn.extend=function(){var h,b,C,_,L,j,V=arguments[0]||{},ae=1,te=arguments.length,me=!1;for(typeof V=="boolean"&&(me=V,V=arguments[ae]||{},ae++),typeof V!="object"&&!A(V)&&(V={}),ae===te&&(V=this,ae--);ae<te;ae++)if((h=arguments[ae])!=null)for(b in h)_=h[b],!(b==="__proto__"||V===_)&&(me&&_&&(S.isPlainObject(_)||(L=Array.isArray(_)))?(C=V[b],L&&!Array.isArray(C)?j=[]:!L&&!S.isPlainObject(C)?j={}:j=C,L=!1,V[b]=S.extend(me,j,_)):_!==void 0&&(V[b]=_));return V},S.extend({expando:"jQuery"+(Z+Math.random()).replace(/\D/g,""),isReady:!0,error:function(h){throw new Error(h)},noop:function(){},isPlainObject:function(h){var b,C;return!h||y.call(h)!=="[object Object]"?!1:(b=i(h),b?(C=m.call(b,"constructor")&&b.constructor,typeof C=="function"&&T.call(C)===E):!0)},isEmptyObject:function(h){var b;for(b in h)return!1;return!0},globalEval:function(h,b,C){H(h,{nonce:b&&b.nonce},C)},each:function(h,b){var C,_=0;if(re(h))for(C=h.length;_<C&&b.call(h[_],_,h[_])!==!1;_++);else for(_ in h)if(b.call(h[_],_,h[_])===!1)break;return h},text:function(h){var b,C="",_=0,L=h.nodeType;if(!L)for(;b=h[_++];)C+=S.text(b);return L===1||L===11?h.textContent:L===9?h.documentElement.textContent:L===3||L===4?h.nodeValue:C},makeArray:function(h,b){var C=b||[];return h!=null&&(re(Object(h))?S.merge(C,typeof h=="string"?[h]:h):c.call(C,h)),C},inArray:function(h,b,C){return b==null?-1:f.call(b,h,C)},isXMLDoc:function(h){var b=h&&h.namespaceURI,C=h&&(h.ownerDocument||h).documentElement;return!ce.test(b||C&&C.nodeName||"HTML")},merge:function(h,b){for(var C=+b.length,_=0,L=h.length;_<C;_++)h[L++]=b[_];return h.length=L,h},grep:function(h,b,C){for(var _,L=[],j=0,V=h.length,ae=!C;j<V;j++)_=!b(h[j],j),_!==ae&&L.push(h[j]);return L},map:function(h,b,C){var _,L,j=0,V=[];if(re(h))for(_=h.length;j<_;j++)L=b(h[j],j,C),L!=null&&V.push(L);else for(j in h)L=b(h[j],j,C),L!=null&&V.push(L);return a(V)},guid:1,support:I}),typeof Symbol=="function"&&(S.fn[Symbol.iterator]=r[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(h,b){p["[object "+b+"]"]=b.toLowerCase()});function re(h){var b=!!h&&"length"in h&&h.length,C=ne(h);return A(h)||F(h)?!1:C==="array"||b===0||typeof b=="number"&&b>0&&b-1 in h}function ie(h,b){return h.nodeName&&h.nodeName.toLowerCase()===b.toLowerCase()}var Pe=r.pop,Ke=r.sort,$e=r.splice,tt="[\\x20\\t\\r\\n\\f]",nt=new RegExp("^"+tt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+tt+"+$","g");S.contains=function(h,b){var C=b&&b.parentNode;return h===C||!!(C&&C.nodeType===1&&(h.contains?h.contains(C):h.compareDocumentPosition&&h.compareDocumentPosition(C)&16))};var ge=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function _e(h,b){return b?h==="\0"?"�":h.slice(0,-1)+"\\"+h.charCodeAt(h.length-1).toString(16)+" ":"\\"+h}S.escapeSelector=function(h){return(h+"").replace(ge,_e)};var Re=R,Ae=c;(function(){var h,b,C,_,L,j=Ae,V,ae,te,me,Oe,Le=S.expando,Te=0,We=0,lt=In(),Tt=In(),Et=In(),Rn=In(),un=function(J,he){return J===he&&(L=!0),0},jr="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Br="(?:\\\\[\\da-fA-F]{1,6}"+tt+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Lt="\\["+tt+"*("+Br+")(?:"+tt+"*([*^$|!~]?=)"+tt+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Br+"))|)"+tt+"*\\]",$r=":("+Br+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Lt+")*)|.*)\\)|)",jt=new RegExp(tt+"+","g"),Qt=new RegExp("^"+tt+"*,"+tt+"*"),po=new RegExp("^"+tt+"*([>+~]|"+tt+")"+tt+"*"),go=new RegExp(tt+"|>"),Tr=new RegExp($r),D=new RegExp("^"+Br+"$"),M={ID:new RegExp("^#("+Br+")"),CLASS:new RegExp("^\\.("+Br+")"),TAG:new RegExp("^("+Br+"|[*])"),ATTR:new RegExp("^"+Lt),PSEUDO:new RegExp("^"+$r),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+tt+"*(even|odd|(([+-]|)(\\d*)n|)"+tt+"*(?:([+-]|)"+tt+"*(\\d+)|))"+tt+"*\\)|)","i"),bool:new RegExp("^(?:"+jr+")$","i"),needsContext:new RegExp("^"+tt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+tt+"*((?:-\\d)?\\d*)"+tt+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,we=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,xe=/[+~]/,Ne=new RegExp("\\\\[\\da-fA-F]{1,6}"+tt+"?|\\\\([^\\r\\n\\f])","g"),Ge=function(J,he){var Ce="0x"+J.slice(1)-65536;return he||(Ce<0?String.fromCharCode(Ce+65536):String.fromCharCode(Ce>>10|55296,Ce&1023|56320))},gt=function(){Ai()},Ot=vo(function(J){return J.disabled===!0&&ie(J,"fieldset")},{dir:"parentNode",next:"legend"});function St(){try{return V.activeElement}catch{}}try{j.apply(r=o.call(Re.childNodes),Re.childNodes),r[Re.childNodes.length].nodeType}catch{j={apply:function(he,Ce){Ae.apply(he,o.call(Ce))},call:function(he){Ae.apply(he,o.call(arguments,1))}}}function yt(J,he,Ce,ke){var K,fe,le,Fe,Ve,ut,dt,at=he&&he.ownerDocument,At=he?he.nodeType:9;if(Ce=Ce||[],typeof J!="string"||!J||At!==1&&At!==9&&At!==11)return Ce;if(!ke&&(Ai(he),he=he||V,te)){if(At!==11&&(Ve=we.exec(J)))if(K=Ve[1]){if(At===9)if(le=he.getElementById(K)){if(le.id===K)return j.call(Ce,le),Ce}else return Ce;else if(at&&(le=at.getElementById(K))&&yt.contains(he,le)&&le.id===K)return j.call(Ce,le),Ce}else{if(Ve[2])return j.apply(Ce,he.getElementsByTagName(J)),Ce;if((K=Ve[3])&&he.getElementsByClassName)return j.apply(Ce,he.getElementsByClassName(K)),Ce}if(!Rn[J+" "]&&(!me||!me.test(J))){if(dt=J,at=he,At===1&&(go.test(J)||po.test(J))){for(at=xe.test(J)&&Ya(he.parentNode)||he,(at!=he||!I.scope)&&((Fe=he.getAttribute("id"))?Fe=S.escapeSelector(Fe):he.setAttribute("id",Fe=Le)),ut=as(J),fe=ut.length;fe--;)ut[fe]=(Fe?"#"+Fe:":scope")+" "+ri(ut[fe]);dt=ut.join(",")}try{return j.apply(Ce,at.querySelectorAll(dt)),Ce}catch{Rn(J,!0)}finally{Fe===Le&&he.removeAttribute("id")}}}return $s(J.replace(nt,"$1"),he,Ce,ke)}function In(){var J=[];function he(Ce,ke){return J.push(Ce+" ")>b.cacheLength&&delete he[J.shift()],he[Ce+" "]=ke}return he}function bn(J){return J[Le]=!0,J}function $n(J){var he=V.createElement("fieldset");try{return!!J(he)}catch{return!1}finally{he.parentNode&&he.parentNode.removeChild(he),he=null}}function ss(J){return function(he){return ie(he,"input")&&he.type===J}}function fa(J){return function(he){return(ie(he,"input")||ie(he,"button"))&&he.type===J}}function mo(J){return function(he){return"form"in he?he.parentNode&&he.disabled===!1?"label"in he?"label"in he.parentNode?he.parentNode.disabled===J:he.disabled===J:he.isDisabled===J||he.isDisabled!==!J&&Ot(he)===J:he.disabled===J:"label"in he?he.disabled===J:!1}}function ni(J){return bn(function(he){return he=+he,bn(function(Ce,ke){for(var K,fe=J([],Ce.length,he),le=fe.length;le--;)Ce[K=fe[le]]&&(Ce[K]=!(ke[K]=Ce[K]))})})}function Ya(J){return J&&typeof J.getElementsByTagName<"u"&&J}function Ai(J){var he,Ce=J?J.ownerDocument||J:Re;return Ce==V||Ce.nodeType!==9||!Ce.documentElement||(V=Ce,ae=V.documentElement,te=!S.isXMLDoc(V),Oe=ae.matches||ae.webkitMatchesSelector||ae.msMatchesSelector,ae.msMatchesSelector&&Re!=V&&(he=V.defaultView)&&he.top!==he&&he.addEventListener("unload",gt),I.getById=$n(function(ke){return ae.appendChild(ke).id=S.expando,!V.getElementsByName||!V.getElementsByName(S.expando).length}),I.disconnectedMatch=$n(function(ke){return Oe.call(ke,"*")}),I.scope=$n(function(){return V.querySelectorAll(":scope")}),I.cssHas=$n(function(){try{return V.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),I.getById?(b.filter.ID=function(ke){var K=ke.replace(Ne,Ge);return function(fe){return fe.getAttribute("id")===K}},b.find.ID=function(ke,K){if(typeof K.getElementById<"u"&&te){var fe=K.getElementById(ke);return fe?[fe]:[]}}):(b.filter.ID=function(ke){var K=ke.replace(Ne,Ge);return function(fe){var le=typeof fe.getAttributeNode<"u"&&fe.getAttributeNode("id");return le&&le.value===K}},b.find.ID=function(ke,K){if(typeof K.getElementById<"u"&&te){var fe,le,Fe,Ve=K.getElementById(ke);if(Ve){if(fe=Ve.getAttributeNode("id"),fe&&fe.value===ke)return[Ve];for(Fe=K.getElementsByName(ke),le=0;Ve=Fe[le++];)if(fe=Ve.getAttributeNode("id"),fe&&fe.value===ke)return[Ve]}return[]}}),b.find.TAG=function(ke,K){return typeof K.getElementsByTagName<"u"?K.getElementsByTagName(ke):K.querySelectorAll(ke)},b.find.CLASS=function(ke,K){if(typeof K.getElementsByClassName<"u"&&te)return K.getElementsByClassName(ke)},me=[],$n(function(ke){var K;ae.appendChild(ke).innerHTML="<a id='"+Le+"' href='' disabled='disabled'></a><select id='"+Le+"-\r\\' disabled='disabled'><option selected=''></option></select>",ke.querySelectorAll("[selected]").length||me.push("\\["+tt+"*(?:value|"+jr+")"),ke.querySelectorAll("[id~="+Le+"-]").length||me.push("~="),ke.querySelectorAll("a#"+Le+"+*").length||me.push(".#.+[+~]"),ke.querySelectorAll(":checked").length||me.push(":checked"),K=V.createElement("input"),K.setAttribute("type","hidden"),ke.appendChild(K).setAttribute("name","D"),ae.appendChild(ke).disabled=!0,ke.querySelectorAll(":disabled").length!==2&&me.push(":enabled",":disabled"),K=V.createElement("input"),K.setAttribute("name",""),ke.appendChild(K),ke.querySelectorAll("[name='']").length||me.push("\\["+tt+"*name"+tt+"*="+tt+`*(?:''|"")`)}),I.cssHas||me.push(":has"),me=me.length&&new RegExp(me.join("|")),un=function(ke,K){if(ke===K)return L=!0,0;var fe=!ke.compareDocumentPosition-!K.compareDocumentPosition;return fe||(fe=(ke.ownerDocument||ke)==(K.ownerDocument||K)?ke.compareDocumentPosition(K):1,fe&1||!I.sortDetached&&K.compareDocumentPosition(ke)===fe?ke===V||ke.ownerDocument==Re&&yt.contains(Re,ke)?-1:K===V||K.ownerDocument==Re&&yt.contains(Re,K)?1:_?f.call(_,ke)-f.call(_,K):0:fe&4?-1:1)}),V}yt.matches=function(J,he){return yt(J,null,null,he)},yt.matchesSelector=function(J,he){if(Ai(J),te&&!Rn[he+" "]&&(!me||!me.test(he)))try{var Ce=Oe.call(J,he);if(Ce||I.disconnectedMatch||J.document&&J.document.nodeType!==11)return Ce}catch{Rn(he,!0)}return yt(he,V,null,[J]).length>0},yt.contains=function(J,he){return(J.ownerDocument||J)!=V&&Ai(J),S.contains(J,he)},yt.attr=function(J,he){(J.ownerDocument||J)!=V&&Ai(J);var Ce=b.attrHandle[he.toLowerCase()],ke=Ce&&m.call(b.attrHandle,he.toLowerCase())?Ce(J,he,!te):void 0;return ke!==void 0?ke:J.getAttribute(he)},yt.error=function(J){throw new Error("Syntax error, unrecognized expression: "+J)},S.uniqueSort=function(J){var he,Ce=[],ke=0,K=0;if(L=!I.sortStable,_=!I.sortStable&&o.call(J,0),Ke.call(J,un),L){for(;he=J[K++];)he===J[K]&&(ke=Ce.push(K));for(;ke--;)$e.call(J,Ce[ke],1)}return _=null,J},S.fn.uniqueSort=function(){return this.pushStack(S.uniqueSort(o.apply(this)))},b=S.expr={cacheLength:50,createPseudo:bn,match:M,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(J){return J[1]=J[1].replace(Ne,Ge),J[3]=(J[3]||J[4]||J[5]||"").replace(Ne,Ge),J[2]==="~="&&(J[3]=" "+J[3]+" "),J.slice(0,4)},CHILD:function(J){return J[1]=J[1].toLowerCase(),J[1].slice(0,3)==="nth"?(J[3]||yt.error(J[0]),J[4]=+(J[4]?J[5]+(J[6]||1):2*(J[3]==="even"||J[3]==="odd")),J[5]=+(J[7]+J[8]||J[3]==="odd")):J[3]&&yt.error(J[0]),J},PSEUDO:function(J){var he,Ce=!J[6]&&J[2];return M.CHILD.test(J[0])?null:(J[3]?J[2]=J[4]||J[5]||"":Ce&&Tr.test(Ce)&&(he=as(Ce,!0))&&(he=Ce.indexOf(")",Ce.length-he)-Ce.length)&&(J[0]=J[0].slice(0,he),J[2]=Ce.slice(0,he)),J.slice(0,3))}},filter:{TAG:function(J){var he=J.replace(Ne,Ge).toLowerCase();return J==="*"?function(){return!0}:function(Ce){return ie(Ce,he)}},CLASS:function(J){var he=lt[J+" "];return he||(he=new RegExp("(^|"+tt+")"+J+"("+tt+"|$)"))&<(J,function(Ce){return he.test(typeof Ce.className=="string"&&Ce.className||typeof Ce.getAttribute<"u"&&Ce.getAttribute("class")||"")})},ATTR:function(J,he,Ce){return function(ke){var K=yt.attr(ke,J);return K==null?he==="!=":he?(K+="",he==="="?K===Ce:he==="!="?K!==Ce:he==="^="?Ce&&K.indexOf(Ce)===0:he==="*="?Ce&&K.indexOf(Ce)>-1:he==="$="?Ce&&K.slice(-Ce.length)===Ce:he==="~="?(" "+K.replace(jt," ")+" ").indexOf(Ce)>-1:he==="|="?K===Ce||K.slice(0,Ce.length+1)===Ce+"-":!1):!0}},CHILD:function(J,he,Ce,ke,K){var fe=J.slice(0,3)!=="nth",le=J.slice(-4)!=="last",Fe=he==="of-type";return ke===1&&K===0?function(Ve){return!!Ve.parentNode}:function(Ve,ut,dt){var at,At,wt,Vt,Yn,nr=fe!==le?"nextSibling":"previousSibling",An=Ve.parentNode,zt=Fe&&Ve.nodeName.toLowerCase(),Vr=!dt&&!Fe,kt=!1;if(An){if(fe){for(;nr;){for(wt=Ve;wt=wt[nr];)if(Fe?ie(wt,zt):wt.nodeType===1)return!1;Yn=nr=J==="only"&&!Yn&&"nextSibling"}return!0}if(Yn=[le?An.firstChild:An.lastChild],le&&Vr){for(At=An[Le]||(An[Le]={}),at=At[J]||[],Vt=at[0]===Te&&at[1],kt=Vt&&at[2],wt=Vt&&An.childNodes[Vt];wt=++Vt&&wt&&wt[nr]||(kt=Vt=0)||Yn.pop();)if(wt.nodeType===1&&++kt&&wt===Ve){At[J]=[Te,Vt,kt];break}}else if(Vr&&(At=Ve[Le]||(Ve[Le]={}),at=At[J]||[],Vt=at[0]===Te&&at[1],kt=Vt),kt===!1)for(;(wt=++Vt&&wt&&wt[nr]||(kt=Vt=0)||Yn.pop())&&!((Fe?ie(wt,zt):wt.nodeType===1)&&++kt&&(Vr&&(At=wt[Le]||(wt[Le]={}),At[J]=[Te,kt]),wt===Ve)););return kt-=K,kt===ke||kt%ke===0&&kt/ke>=0}}},PSEUDO:function(J,he){var Ce,ke=b.pseudos[J]||b.setFilters[J.toLowerCase()]||yt.error("unsupported pseudo: "+J);return ke[Le]?ke(he):ke.length>1?(Ce=[J,J,"",he],b.setFilters.hasOwnProperty(J.toLowerCase())?bn(function(K,fe){for(var le,Fe=ke(K,he),Ve=Fe.length;Ve--;)le=f.call(K,Fe[Ve]),K[le]=!(fe[le]=Fe[Ve])}):function(K){return ke(K,0,Ce)}):ke}},pseudos:{not:bn(function(J){var he=[],Ce=[],ke=pa(J.replace(nt,"$1"));return ke[Le]?bn(function(K,fe,le,Fe){for(var Ve,ut=ke(K,null,Fe,[]),dt=K.length;dt--;)(Ve=ut[dt])&&(K[dt]=!(fe[dt]=Ve))}):function(K,fe,le){return he[0]=K,ke(he,null,le,Ce),he[0]=null,!Ce.pop()}}),has:bn(function(J){return function(he){return yt(J,he).length>0}}),contains:bn(function(J){return J=J.replace(Ne,Ge),function(he){return(he.textContent||S.text(he)).indexOf(J)>-1}}),lang:bn(function(J){return D.test(J||"")||yt.error("unsupported lang: "+J),J=J.replace(Ne,Ge).toLowerCase(),function(he){var Ce;do if(Ce=te?he.lang:he.getAttribute("xml:lang")||he.getAttribute("lang"))return Ce=Ce.toLowerCase(),Ce===J||Ce.indexOf(J+"-")===0;while((he=he.parentNode)&&he.nodeType===1);return!1}}),target:function(J){var he=e.location&&e.location.hash;return he&&he.slice(1)===J.id},root:function(J){return J===ae},focus:function(J){return J===St()&&V.hasFocus()&&!!(J.type||J.href||~J.tabIndex)},enabled:mo(!1),disabled:mo(!0),checked:function(J){return ie(J,"input")&&!!J.checked||ie(J,"option")&&!!J.selected},selected:function(J){return J.parentNode&&J.parentNode.selectedIndex,J.selected===!0},empty:function(J){for(J=J.firstChild;J;J=J.nextSibling)if(J.nodeType<6)return!1;return!0},parent:function(J){return!b.pseudos.empty(J)},header:function(J){return Q.test(J.nodeName)},input:function(J){return W.test(J.nodeName)},button:function(J){return ie(J,"input")&&J.type==="button"||ie(J,"button")},text:function(J){var he;return ie(J,"input")&&J.type==="text"&&((he=J.getAttribute("type"))==null||he.toLowerCase()==="text")},first:ni(function(){return[0]}),last:ni(function(J,he){return[he-1]}),eq:ni(function(J,he,Ce){return[Ce<0?Ce+he:Ce]}),even:ni(function(J,he){for(var Ce=0;Ce<he;Ce+=2)J.push(Ce);return J}),odd:ni(function(J,he){for(var Ce=1;Ce<he;Ce+=2)J.push(Ce);return J}),lt:ni(function(J,he,Ce){var ke;for(Ce<0?ke=Ce+he:Ce>he?ke=he:ke=Ce;--ke>=0;)J.push(ke);return J}),gt:ni(function(J,he,Ce){for(var ke=Ce<0?Ce+he:Ce;++ke<he;)J.push(ke);return J})}},b.pseudos.nth=b.pseudos.eq;for(h in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[h]=ss(h);for(h in{submit:!0,reset:!0})b.pseudos[h]=fa(h);function da(){}da.prototype=b.filters=b.pseudos,b.setFilters=new da;function as(J,he){var Ce,ke,K,fe,le,Fe,Ve,ut=Tt[J+" "];if(ut)return he?0:ut.slice(0);for(le=J,Fe=[],Ve=b.preFilter;le;){(!Ce||(ke=Qt.exec(le)))&&(ke&&(le=le.slice(ke[0].length)||le),Fe.push(K=[])),Ce=!1,(ke=po.exec(le))&&(Ce=ke.shift(),K.push({value:Ce,type:ke[0].replace(nt," ")}),le=le.slice(Ce.length));for(fe in b.filter)(ke=M[fe].exec(le))&&(!Ve[fe]||(ke=Ve[fe](ke)))&&(Ce=ke.shift(),K.push({value:Ce,type:fe,matches:ke}),le=le.slice(Ce.length));if(!Ce)break}return he?le.length:le?yt.error(J):Tt(J,Fe).slice(0)}function ri(J){for(var he=0,Ce=J.length,ke="";he<Ce;he++)ke+=J[he].value;return ke}function vo(J,he,Ce){var ke=he.dir,K=he.next,fe=K||ke,le=Ce&&fe==="parentNode",Fe=We++;return he.first?function(Ve,ut,dt){for(;Ve=Ve[ke];)if(Ve.nodeType===1||le)return J(Ve,ut,dt);return!1}:function(Ve,ut,dt){var at,At,wt=[Te,Fe];if(dt){for(;Ve=Ve[ke];)if((Ve.nodeType===1||le)&&J(Ve,ut,dt))return!0}else for(;Ve=Ve[ke];)if(Ve.nodeType===1||le)if(At=Ve[Le]||(Ve[Le]={}),K&&ie(Ve,K))Ve=Ve[ke]||Ve;else{if((at=At[fe])&&at[0]===Te&&at[1]===Fe)return wt[2]=at[2];if(At[fe]=wt,wt[2]=J(Ve,ut,dt))return!0}return!1}}function Ga(J){return J.length>1?function(he,Ce,ke){for(var K=J.length;K--;)if(!J[K](he,Ce,ke))return!1;return!0}:J[0]}function Pu(J,he,Ce){for(var ke=0,K=he.length;ke<K;ke++)yt(J,he[ke],Ce);return Ce}function ha(J,he,Ce,ke,K){for(var fe,le=[],Fe=0,Ve=J.length,ut=he!=null;Fe<Ve;Fe++)(fe=J[Fe])&&(!Ce||Ce(fe,ke,K))&&(le.push(fe),ut&&he.push(Fe));return le}function yo(J,he,Ce,ke,K,fe){return ke&&!ke[Le]&&(ke=yo(ke)),K&&!K[Le]&&(K=yo(K,fe)),bn(function(le,Fe,Ve,ut){var dt,at,At,wt,Vt=[],Yn=[],nr=Fe.length,An=le||Pu(he||"*",Ve.nodeType?[Ve]:Ve,[]),zt=J&&(le||!he)?ha(An,Vt,J,Ve,ut):An;if(Ce?(wt=K||(le?J:nr||ke)?[]:Fe,Ce(zt,wt,Ve,ut)):wt=zt,ke)for(dt=ha(wt,Yn),ke(dt,[],Ve,ut),at=dt.length;at--;)(At=dt[at])&&(wt[Yn[at]]=!(zt[Yn[at]]=At));if(le){if(K||J){if(K){for(dt=[],at=wt.length;at--;)(At=wt[at])&&dt.push(zt[at]=At);K(null,wt=[],dt,ut)}for(at=wt.length;at--;)(At=wt[at])&&(dt=K?f.call(le,At):Vt[at])>-1&&(le[dt]=!(Fe[dt]=At))}}else wt=ha(wt===Fe?wt.splice(nr,wt.length):wt),K?K(null,Fe,wt,ut):j.apply(Fe,wt)})}function cn(J){for(var he,Ce,ke,K=J.length,fe=b.relative[J[0].type],le=fe||b.relative[" "],Fe=fe?1:0,Ve=vo(function(at){return at===he},le,!0),ut=vo(function(at){return f.call(he,at)>-1},le,!0),dt=[function(at,At,wt){var Vt=!fe&&(wt||At!=C)||((he=At).nodeType?Ve(at,At,wt):ut(at,At,wt));return he=null,Vt}];Fe<K;Fe++)if(Ce=b.relative[J[Fe].type])dt=[vo(Ga(dt),Ce)];else{if(Ce=b.filter[J[Fe].type].apply(null,J[Fe].matches),Ce[Le]){for(ke=++Fe;ke<K&&!b.relative[J[ke].type];ke++);return yo(Fe>1&&Ga(dt),Fe>1&&ri(J.slice(0,Fe-1).concat({value:J[Fe-2].type===" "?"*":""})).replace(nt,"$1"),Ce,Fe<ke&&cn(J.slice(Fe,ke)),ke<K&&cn(J=J.slice(ke)),ke<K&&ri(J))}dt.push(Ce)}return Ga(dt)}function Il(J,he){var Ce=he.length>0,ke=J.length>0,K=function(fe,le,Fe,Ve,ut){var dt,at,At,wt=0,Vt="0",Yn=fe&&[],nr=[],An=C,zt=fe||ke&&b.find.TAG("*",ut),Vr=Te+=An==null?1:Math.random()||.1,kt=zt.length;for(ut&&(C=le==V||le||ut);Vt!==kt&&(dt=zt[Vt])!=null;Vt++){if(ke&&dt){for(at=0,!le&&dt.ownerDocument!=V&&(Ai(dt),Fe=!te);At=J[at++];)if(At(dt,le||V,Fe)){j.call(Ve,dt);break}ut&&(Te=Vr)}Ce&&((dt=!At&&dt)&&wt--,fe&&Yn.push(dt))}if(wt+=Vt,Ce&&Vt!==wt){for(at=0;At=he[at++];)At(Yn,nr,le,Fe);if(fe){if(wt>0)for(;Vt--;)Yn[Vt]||nr[Vt]||(nr[Vt]=Pe.call(Ve));nr=ha(nr)}j.apply(Ve,nr),ut&&!fe&&nr.length>0&&wt+he.length>1&&S.uniqueSort(Ve)}return ut&&(Te=Vr,C=An),Yn};return Ce?bn(K):K}function pa(J,he){var Ce,ke=[],K=[],fe=Et[J+" "];if(!fe){for(he||(he=as(J)),Ce=he.length;Ce--;)fe=cn(he[Ce]),fe[Le]?ke.push(fe):K.push(fe);fe=Et(J,Il(K,ke)),fe.selector=J}return fe}function $s(J,he,Ce,ke){var K,fe,le,Fe,Ve,ut=typeof J=="function"&&J,dt=!ke&&as(J=ut.selector||J);if(Ce=Ce||[],dt.length===1){if(fe=dt[0]=dt[0].slice(0),fe.length>2&&(le=fe[0]).type==="ID"&&he.nodeType===9&&te&&b.relative[fe[1].type]){if(he=(b.find.ID(le.matches[0].replace(Ne,Ge),he)||[])[0],he)ut&&(he=he.parentNode);else return Ce;J=J.slice(fe.shift().value.length)}for(K=M.needsContext.test(J)?0:fe.length;K--&&(le=fe[K],!b.relative[Fe=le.type]);)if((Ve=b.find[Fe])&&(ke=Ve(le.matches[0].replace(Ne,Ge),xe.test(fe[0].type)&&Ya(he.parentNode)||he))){if(fe.splice(K,1),J=ke.length&&ri(fe),!J)return j.apply(Ce,ke),Ce;break}}return(ut||pa(J,dt))(ke,he,!te,Ce,!he||xe.test(J)&&Ya(he.parentNode)||he),Ce}I.sortStable=Le.split("").sort(un).join("")===Le,Ai(),I.sortDetached=$n(function(J){return J.compareDocumentPosition(V.createElement("fieldset"))&1}),S.find=yt,S.expr[":"]=S.expr.pseudos,S.unique=S.uniqueSort,yt.compile=pa,yt.select=$s,yt.setDocument=Ai,yt.tokenize=as,yt.escape=S.escapeSelector,yt.getText=S.text,yt.isXML=S.isXMLDoc,yt.selectors=S.expr,yt.support=S.support,yt.uniqueSort=S.uniqueSort})();var et=function(h,b,C){for(var _=[],L=C!==void 0;(h=h[b])&&h.nodeType!==9;)if(h.nodeType===1){if(L&&S(h).is(C))break;_.push(h)}return _},ye=function(h,b){for(var C=[];h;h=h.nextSibling)h.nodeType===1&&h!==b&&C.push(h);return C},ue=S.expr.match.needsContext,De=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function je(h,b,C){return A(b)?S.grep(h,function(_,L){return!!b.call(_,L,_)!==C}):b.nodeType?S.grep(h,function(_){return _===b!==C}):typeof b!="string"?S.grep(h,function(_){return f.call(b,_)>-1!==C}):S.filter(b,h,C)}S.filter=function(h,b,C){var _=b[0];return C&&(h=":not("+h+")"),b.length===1&&_.nodeType===1?S.find.matchesSelector(_,h)?[_]:[]:S.find.matches(h,S.grep(b,function(L){return L.nodeType===1}))},S.fn.extend({find:function(h){var b,C,_=this.length,L=this;if(typeof h!="string")return this.pushStack(S(h).filter(function(){for(b=0;b<_;b++)if(S.contains(L[b],this))return!0}));for(C=this.pushStack([]),b=0;b<_;b++)S.find(h,L[b],C);return _>1?S.uniqueSort(C):C},filter:function(h){return this.pushStack(je(this,h||[],!1))},not:function(h){return this.pushStack(je(this,h||[],!0))},is:function(h){return!!je(this,typeof h=="string"&&ue.test(h)?S(h):h||[],!1).length}});var Ie,Be=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Ue=S.fn.init=function(h,b,C){var _,L;if(!h)return this;if(C=C||Ie,typeof h=="string")if(h[0]==="<"&&h[h.length-1]===">"&&h.length>=3?_=[null,h,null]:_=Be.exec(h),_&&(_[1]||!b))if(_[1]){if(b=b instanceof S?b[0]:b,S.merge(this,S.parseHTML(_[1],b&&b.nodeType?b.ownerDocument||b:R,!0)),De.test(_[1])&&S.isPlainObject(b))for(_ in b)A(this[_])?this[_](b[_]):this.attr(_,b[_]);return this}else return L=R.getElementById(_[2]),L&&(this[0]=L,this.length=1),this;else return!b||b.jquery?(b||C).find(h):this.constructor(b).find(h);else{if(h.nodeType)return this[0]=h,this.length=1,this;if(A(h))return C.ready!==void 0?C.ready(h):h(S)}return S.makeArray(h,this)};Ue.prototype=S.fn,Ie=S(R);var it=/^(?:parents|prev(?:Until|All))/,rt={children:!0,contents:!0,next:!0,prev:!0};S.fn.extend({has:function(h){var b=S(h,this),C=b.length;return this.filter(function(){for(var _=0;_<C;_++)if(S.contains(this,b[_]))return!0})},closest:function(h,b){var C,_=0,L=this.length,j=[],V=typeof h!="string"&&S(h);if(!ue.test(h)){for(;_<L;_++)for(C=this[_];C&&C!==b;C=C.parentNode)if(C.nodeType<11&&(V?V.index(C)>-1:C.nodeType===1&&S.find.matchesSelector(C,h))){j.push(C);break}}return this.pushStack(j.length>1?S.uniqueSort(j):j)},index:function(h){return h?typeof h=="string"?f.call(S(h),this[0]):f.call(this,h.jquery?h[0]:h):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(h,b){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(h,b))))},addBack:function(h){return this.add(h==null?this.prevObject:this.prevObject.filter(h))}});function st(h,b){for(;(h=h[b])&&h.nodeType!==1;);return h}S.each({parent:function(h){var b=h.parentNode;return b&&b.nodeType!==11?b:null},parents:function(h){return et(h,"parentNode")},parentsUntil:function(h,b,C){return et(h,"parentNode",C)},next:function(h){return st(h,"nextSibling")},prev:function(h){return st(h,"previousSibling")},nextAll:function(h){return et(h,"nextSibling")},prevAll:function(h){return et(h,"previousSibling")},nextUntil:function(h,b,C){return et(h,"nextSibling",C)},prevUntil:function(h,b,C){return et(h,"previousSibling",C)},siblings:function(h){return ye((h.parentNode||{}).firstChild,h)},children:function(h){return ye(h.firstChild)},contents:function(h){return h.contentDocument!=null&&i(h.contentDocument)?h.contentDocument:(ie(h,"template")&&(h=h.content||h),S.merge([],h.childNodes))}},function(h,b){S.fn[h]=function(C,_){var L=S.map(this,b,C);return h.slice(-5)!=="Until"&&(_=C),_&&typeof _=="string"&&(L=S.filter(_,L)),this.length>1&&(rt[h]||S.uniqueSort(L),it.test(h)&&L.reverse()),this.pushStack(L)}});var Qe=/[^\x20\t\r\n\f]+/g;function ft(h){var b={};return S.each(h.match(Qe)||[],function(C,_){b[_]=!0}),b}S.Callbacks=function(h){h=typeof h=="string"?ft(h):S.extend({},h);var b,C,_,L,j=[],V=[],ae=-1,te=function(){for(L=L||h.once,_=b=!0;V.length;ae=-1)for(C=V.shift();++ae<j.length;)j[ae].apply(C[0],C[1])===!1&&h.stopOnFalse&&(ae=j.length,C=!1);h.memory||(C=!1),b=!1,L&&(C?j=[]:j="")},me={add:function(){return j&&(C&&!b&&(ae=j.length-1,V.push(C)),function Oe(Le){S.each(Le,function(Te,We){A(We)?(!h.unique||!me.has(We))&&j.push(We):We&&We.length&&ne(We)!=="string"&&Oe(We)})}(arguments),C&&!b&&te()),this},remove:function(){return S.each(arguments,function(Oe,Le){for(var Te;(Te=S.inArray(Le,j,Te))>-1;)j.splice(Te,1),Te<=ae&&ae--}),this},has:function(Oe){return Oe?S.inArray(Oe,j)>-1:j.length>0},empty:function(){return j&&(j=[]),this},disable:function(){return L=V=[],j=C="",this},disabled:function(){return!j},lock:function(){return L=V=[],!C&&!b&&(j=C=""),this},locked:function(){return!!L},fireWith:function(Oe,Le){return L||(Le=Le||[],Le=[Oe,Le.slice?Le.slice():Le],V.push(Le),b||te()),this},fire:function(){return me.fireWith(this,arguments),this},fired:function(){return!!_}};return me};function Xe(h){return h}function It(h){throw h}function Mt(h,b,C,_){var L;try{h&&A(L=h.promise)?L.call(h).done(b).fail(C):h&&A(L=h.then)?L.call(h,b,C):b.apply(void 0,[h].slice(_))}catch(j){C.apply(void 0,[j])}}S.extend({Deferred:function(h){var b=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],C="pending",_={state:function(){return C},always:function(){return L.done(arguments).fail(arguments),this},catch:function(j){return _.then(null,j)},pipe:function(){var j=arguments;return S.Deferred(function(V){S.each(b,function(ae,te){var me=A(j[te[4]])&&j[te[4]];L[te[1]](function(){var Oe=me&&me.apply(this,arguments);Oe&&A(Oe.promise)?Oe.promise().progress(V.notify).done(V.resolve).fail(V.reject):V[te[0]+"With"](this,me?[Oe]:arguments)})}),j=null}).promise()},then:function(j,V,ae){var te=0;function me(Oe,Le,Te,We){return function(){var lt=this,Tt=arguments,Et=function(){var un,jr;if(!(Oe<te)){if(un=Te.apply(lt,Tt),un===Le.promise())throw new TypeError("Thenable self-resolution");jr=un&&(typeof un=="object"||typeof un=="function")&&un.then,A(jr)?We?jr.call(un,me(te,Le,Xe,We),me(te,Le,It,We)):(te++,jr.call(un,me(te,Le,Xe,We),me(te,Le,It,We),me(te,Le,Xe,Le.notifyWith))):(Te!==Xe&&(lt=void 0,Tt=[un]),(We||Le.resolveWith)(lt,Tt))}},Rn=We?Et:function(){try{Et()}catch(un){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(un,Rn.error),Oe+1>=te&&(Te!==It&&(lt=void 0,Tt=[un]),Le.rejectWith(lt,Tt))}};Oe?Rn():(S.Deferred.getErrorHook?Rn.error=S.Deferred.getErrorHook():S.Deferred.getStackHook&&(Rn.error=S.Deferred.getStackHook()),e.setTimeout(Rn))}}return S.Deferred(function(Oe){b[0][3].add(me(0,Oe,A(ae)?ae:Xe,Oe.notifyWith)),b[1][3].add(me(0,Oe,A(j)?j:Xe)),b[2][3].add(me(0,Oe,A(V)?V:It))}).promise()},promise:function(j){return j!=null?S.extend(j,_):_}},L={};return S.each(b,function(j,V){var ae=V[2],te=V[5];_[V[1]]=ae.add,te&&ae.add(function(){C=te},b[3-j][2].disable,b[3-j][3].disable,b[0][2].lock,b[0][3].lock),ae.add(V[3].fire),L[V[0]]=function(){return L[V[0]+"With"](this===L?void 0:this,arguments),this},L[V[0]+"With"]=ae.fireWith}),_.promise(L),h&&h.call(L,L),L},when:function(h){var b=arguments.length,C=b,_=Array(C),L=o.call(arguments),j=S.Deferred(),V=function(ae){return function(te){_[ae]=this,L[ae]=arguments.length>1?o.call(arguments):te,--b||j.resolveWith(_,L)}};if(b<=1&&(Mt(h,j.done(V(C)).resolve,j.reject,!b),j.state()==="pending"||A(L[C]&&L[C].then)))return j.then();for(;C--;)Mt(L[C],V(C),j.reject);return j.promise()}});var Vn=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(h,b){e.console&&e.console.warn&&h&&Vn.test(h.name)&&e.console.warn("jQuery.Deferred exception: "+h.message,h.stack,b)},S.readyException=function(h){e.setTimeout(function(){throw h})};var vr=S.Deferred();S.fn.ready=function(h){return vr.then(h).catch(function(b){S.readyException(b)}),this},S.extend({isReady:!1,readyWait:1,ready:function(h){(h===!0?--S.readyWait:S.isReady)||(S.isReady=!0,!(h!==!0&&--S.readyWait>0)&&vr.resolveWith(R,[S]))}}),S.ready.then=vr.then;function Hn(){R.removeEventListener("DOMContentLoaded",Hn),e.removeEventListener("load",Hn),S.ready()}R.readyState==="complete"||R.readyState!=="loading"&&!R.documentElement.doScroll?e.setTimeout(S.ready):(R.addEventListener("DOMContentLoaded",Hn),e.addEventListener("load",Hn));var Sn=function(h,b,C,_,L,j,V){var ae=0,te=h.length,me=C==null;if(ne(C)==="object"){L=!0;for(ae in C)Sn(h,b,ae,C[ae],!0,j,V)}else if(_!==void 0&&(L=!0,A(_)||(V=!0),me&&(V?(b.call(h,_),b=null):(me=b,b=function(Oe,Le,Te){return me.call(S(Oe),Te)})),b))for(;ae<te;ae++)b(h[ae],C,V?_:_.call(h[ae],ae,b(h[ae],C)));return L?h:me?b.call(h):te?b(h[0],C):j},Vi=/^-ms-/,Pr=/-([a-z])/g;function Jn(h,b){return b.toUpperCase()}function sn(h){return h.replace(Vi,"ms-").replace(Pr,Jn)}var fn=function(h){return h.nodeType===1||h.nodeType===9||!+h.nodeType};function dn(){this.expando=S.expando+dn.uid++}dn.uid=1,dn.prototype={cache:function(h){var b=h[this.expando];return b||(b={},fn(h)&&(h.nodeType?h[this.expando]=b:Object.defineProperty(h,this.expando,{value:b,configurable:!0}))),b},set:function(h,b,C){var _,L=this.cache(h);if(typeof b=="string")L[sn(b)]=C;else for(_ in b)L[sn(_)]=b[_];return L},get:function(h,b){return b===void 0?this.cache(h):h[this.expando]&&h[this.expando][sn(b)]},access:function(h,b,C){return b===void 0||b&&typeof b=="string"&&C===void 0?this.get(h,b):(this.set(h,b,C),C!==void 0?C:b)},remove:function(h,b){var C,_=h[this.expando];if(_!==void 0){if(b!==void 0)for(Array.isArray(b)?b=b.map(sn):(b=sn(b),b=b in _?[b]:b.match(Qe)||[]),C=b.length;C--;)delete _[b[C]];(b===void 0||S.isEmptyObject(_))&&(h.nodeType?h[this.expando]=void 0:delete h[this.expando])}},hasData:function(h){var b=h[this.expando];return b!==void 0&&!S.isEmptyObject(b)}};var ht=new dn,Dn=new dn,ai=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,on=/[A-Z]/g;function Hi(h){return h==="true"?!0:h==="false"?!1:h==="null"?null:h===+h+""?+h:ai.test(h)?JSON.parse(h):h}function Ui(h,b,C){var _;if(C===void 0&&h.nodeType===1)if(_="data-"+b.replace(on,"-$&").toLowerCase(),C=h.getAttribute(_),typeof C=="string"){try{C=Hi(C)}catch{}Dn.set(h,b,C)}else C=void 0;return C}S.extend({hasData:function(h){return Dn.hasData(h)||ht.hasData(h)},data:function(h,b,C){return Dn.access(h,b,C)},removeData:function(h,b){Dn.remove(h,b)},_data:function(h,b,C){return ht.access(h,b,C)},_removeData:function(h,b){ht.remove(h,b)}}),S.fn.extend({data:function(h,b){var C,_,L,j=this[0],V=j&&j.attributes;if(h===void 0){if(this.length&&(L=Dn.get(j),j.nodeType===1&&!ht.get(j,"hasDataAttrs"))){for(C=V.length;C--;)V[C]&&(_=V[C].name,_.indexOf("data-")===0&&(_=sn(_.slice(5)),Ui(j,_,L[_])));ht.set(j,"hasDataAttrs",!0)}return L}return typeof h=="object"?this.each(function(){Dn.set(this,h)}):Sn(this,function(ae){var te;if(j&&ae===void 0)return te=Dn.get(j,h),te!==void 0||(te=Ui(j,h),te!==void 0)?te:void 0;this.each(function(){Dn.set(this,h,ae)})},null,b,arguments.length>1,null,!0)},removeData:function(h){return this.each(function(){Dn.remove(this,h)})}}),S.extend({queue:function(h,b,C){var _;if(h)return b=(b||"fx")+"queue",_=ht.get(h,b),C&&(!_||Array.isArray(C)?_=ht.access(h,b,S.makeArray(C)):_.push(C)),_||[]},dequeue:function(h,b){b=b||"fx";var C=S.queue(h,b),_=C.length,L=C.shift(),j=S._queueHooks(h,b),V=function(){S.dequeue(h,b)};L==="inprogress"&&(L=C.shift(),_--),L&&(b==="fx"&&C.unshift("inprogress"),delete j.stop,L.call(h,V,j)),!_&&j&&j.empty.fire()},_queueHooks:function(h,b){var C=b+"queueHooks";return ht.get(h,C)||ht.access(h,C,{empty:S.Callbacks("once memory").add(function(){ht.remove(h,[b+"queue",C])})})}}),S.fn.extend({queue:function(h,b){var C=2;return typeof h!="string"&&(b=h,h="fx",C--),arguments.length<C?S.queue(this[0],h):b===void 0?this:this.each(function(){var _=S.queue(this,h,b);S._queueHooks(this,h),h==="fx"&&_[0]!=="inprogress"&&S.dequeue(this,h)})},dequeue:function(h){return this.each(function(){S.dequeue(this,h)})},clearQueue:function(h){return this.queue(h||"fx",[])},promise:function(h,b){var C,_=1,L=S.Deferred(),j=this,V=this.length,ae=function(){--_||L.resolveWith(j,[j])};for(typeof h!="string"&&(b=h,h=void 0),h=h||"fx";V--;)C=ht.get(j[V],h+"queueHooks"),C&&C.empty&&(_++,C.empty.add(ae));return ae(),L.promise(b)}});var Wi=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Or=new RegExp("^(?:([+-])=|)("+Wi+")([a-z%]*)$","i"),Nn=["Top","Right","Bottom","Left"],Rr=R.documentElement,yr=function(h){return S.contains(h.ownerDocument,h)},qr={composed:!0};Rr.getRootNode&&(yr=function(h){return S.contains(h.ownerDocument,h)||h.getRootNode(qr)===h.ownerDocument});var Xr=function(h,b){return h=b||h,h.style.display==="none"||h.style.display===""&&yr(h)&&S.css(h,"display")==="none"};function Ao(h,b,C,_){var L,j,V=20,ae=_?function(){return _.cur()}:function(){return S.css(h,b,"")},te=ae(),me=C&&C[3]||(S.cssNumber[b]?"":"px"),Oe=h.nodeType&&(S.cssNumber[b]||me!=="px"&&+te)&&Or.exec(S.css(h,b));if(Oe&&Oe[3]!==me){for(te=te/2,me=me||Oe[3],Oe=+te||1;V--;)S.style(h,b,Oe+me),(1-j)*(1-(j=ae()/te||.5))<=0&&(V=0),Oe=Oe/j;Oe=Oe*2,S.style(h,b,Oe+me),C=C||[]}return C&&(Oe=+Oe||+te||0,L=C[1]?Oe+(C[1]+1)*C[2]:+C[2],_&&(_.unit=me,_.start=Oe,_.end=L)),L}var Un={};function Kr(h){var b,C=h.ownerDocument,_=h.nodeName,L=Un[_];return L||(b=C.body.appendChild(C.createElement(_)),L=S.css(b,"display"),b.parentNode.removeChild(b),L==="none"&&(L="block"),Un[_]=L,L)}function Qn(h,b){for(var C,_,L=[],j=0,V=h.length;j<V;j++)_=h[j],_.style&&(C=_.style.display,b?(C==="none"&&(L[j]=ht.get(_,"display")||null,L[j]||(_.style.display="")),_.style.display===""&&Xr(_)&&(L[j]=Kr(_))):C!=="none"&&(L[j]="none",ht.set(_,"display",C)));for(j=0;j<V;j++)L[j]!=null&&(h[j].style.display=L[j]);return h}S.fn.extend({show:function(){return Qn(this,!0)},hide:function(){return Qn(this)},toggle:function(h){return typeof h=="boolean"?h?this.show():this.hide():this.each(function(){Xr(this)?S(this).show():S(this).hide()})}});var Wt=/^(?:checkbox|radio)$/i,li=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,zi=/^$|^module$|\/(?:java|ecma)script/i;(function(){var h=R.createDocumentFragment(),b=h.appendChild(R.createElement("div")),C=R.createElement("input");C.setAttribute("type","radio"),C.setAttribute("checked","checked"),C.setAttribute("name","t"),b.appendChild(C),I.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",I.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,b.innerHTML="<option></option>",I.option=!!b.lastChild})();var _n={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};_n.tbody=_n.tfoot=_n.colgroup=_n.caption=_n.thead,_n.th=_n.td,I.option||(_n.optgroup=_n.option=[1,"<select multiple='multiple'>","</select>"]);function hn(h,b){var C;return typeof h.getElementsByTagName<"u"?C=h.getElementsByTagName(b||"*"):typeof h.querySelectorAll<"u"?C=h.querySelectorAll(b||"*"):C=[],b===void 0||b&&ie(h,b)?S.merge([h],C):C}function ui(h,b){for(var C=0,_=h.length;C<_;C++)ht.set(h[C],"globalEval",!b||ht.get(b[C],"globalEval"))}var ci=/<|&#?\w+;/;function Tn(h,b,C,_,L){for(var j,V,ae,te,me,Oe,Le=b.createDocumentFragment(),Te=[],We=0,lt=h.length;We<lt;We++)if(j=h[We],j||j===0)if(ne(j)==="object")S.merge(Te,j.nodeType?[j]:j);else if(!ci.test(j))Te.push(b.createTextNode(j));else{for(V=V||Le.appendChild(b.createElement("div")),ae=(li.exec(j)||["",""])[1].toLowerCase(),te=_n[ae]||_n._default,V.innerHTML=te[1]+S.htmlPrefilter(j)+te[2],Oe=te[0];Oe--;)V=V.lastChild;S.merge(Te,V.childNodes),V=Le.firstChild,V.textContent=""}for(Le.textContent="",We=0;j=Te[We++];){if(_&&S.inArray(j,_)>-1){L&&L.push(j);continue}if(me=yr(j),V=hn(Le.appendChild(j),"script"),me&&ui(V),C)for(Oe=0;j=V[Oe++];)zi.test(j.type||"")&&C.push(j)}return Le}var ao=/^([^.]*)(?:\.(.+)|)/;function br(){return!0}function fi(){return!1}function an(h,b,C,_,L,j){var V,ae;if(typeof b=="object"){typeof C!="string"&&(_=_||C,C=void 0);for(ae in b)an(h,ae,C,_,b[ae],j);return h}if(_==null&&L==null?(L=C,_=C=void 0):L==null&&(typeof C=="string"?(L=_,_=void 0):(L=_,_=C,C=void 0)),L===!1)L=fi;else if(!L)return h;return j===1&&(V=L,L=function(te){return S().off(te),V.apply(this,arguments)},L.guid=V.guid||(V.guid=S.guid++)),h.each(function(){S.event.add(this,b,L,_,C)})}S.event={global:{},add:function(h,b,C,_,L){var j,V,ae,te,me,Oe,Le,Te,We,lt,Tt,Et=ht.get(h);if(fn(h))for(C.handler&&(j=C,C=j.handler,L=j.selector),L&&S.find.matchesSelector(Rr,L),C.guid||(C.guid=S.guid++),(te=Et.events)||(te=Et.events=Object.create(null)),(V=Et.handle)||(V=Et.handle=function(Rn){return typeof S<"u"&&S.event.triggered!==Rn.type?S.event.dispatch.apply(h,arguments):void 0}),b=(b||"").match(Qe)||[""],me=b.length;me--;)ae=ao.exec(b[me])||[],We=Tt=ae[1],lt=(ae[2]||"").split(".").sort(),We&&(Le=S.event.special[We]||{},We=(L?Le.delegateType:Le.bindType)||We,Le=S.event.special[We]||{},Oe=S.extend({type:We,origType:Tt,data:_,handler:C,guid:C.guid,selector:L,needsContext:L&&S.expr.match.needsContext.test(L),namespace:lt.join(".")},j),(Te=te[We])||(Te=te[We]=[],Te.delegateCount=0,(!Le.setup||Le.setup.call(h,_,lt,V)===!1)&&h.addEventListener&&h.addEventListener(We,V)),Le.add&&(Le.add.call(h,Oe),Oe.handler.guid||(Oe.handler.guid=C.guid)),L?Te.splice(Te.delegateCount++,0,Oe):Te.push(Oe),S.event.global[We]=!0)},remove:function(h,b,C,_,L){var j,V,ae,te,me,Oe,Le,Te,We,lt,Tt,Et=ht.hasData(h)&&ht.get(h);if(!(!Et||!(te=Et.events))){for(b=(b||"").match(Qe)||[""],me=b.length;me--;){if(ae=ao.exec(b[me])||[],We=Tt=ae[1],lt=(ae[2]||"").split(".").sort(),!We){for(We in te)S.event.remove(h,We+b[me],C,_,!0);continue}for(Le=S.event.special[We]||{},We=(_?Le.delegateType:Le.bindType)||We,Te=te[We]||[],ae=ae[2]&&new RegExp("(^|\\.)"+lt.join("\\.(?:.*\\.|)")+"(\\.|$)"),V=j=Te.length;j--;)Oe=Te[j],(L||Tt===Oe.origType)&&(!C||C.guid===Oe.guid)&&(!ae||ae.test(Oe.namespace))&&(!_||_===Oe.selector||_==="**"&&Oe.selector)&&(Te.splice(j,1),Oe.selector&&Te.delegateCount--,Le.remove&&Le.remove.call(h,Oe));V&&!Te.length&&((!Le.teardown||Le.teardown.call(h,lt,Et.handle)===!1)&&S.removeEvent(h,We,Et.handle),delete te[We])}S.isEmptyObject(te)&&ht.remove(h,"handle events")}},dispatch:function(h){var b,C,_,L,j,V,ae=new Array(arguments.length),te=S.event.fix(h),me=(ht.get(this,"events")||Object.create(null))[te.type]||[],Oe=S.event.special[te.type]||{};for(ae[0]=te,b=1;b<arguments.length;b++)ae[b]=arguments[b];if(te.delegateTarget=this,!(Oe.preDispatch&&Oe.preDispatch.call(this,te)===!1)){for(V=S.event.handlers.call(this,te,me),b=0;(L=V[b++])&&!te.isPropagationStopped();)for(te.currentTarget=L.elem,C=0;(j=L.handlers[C++])&&!te.isImmediatePropagationStopped();)(!te.rnamespace||j.namespace===!1||te.rnamespace.test(j.namespace))&&(te.handleObj=j,te.data=j.data,_=((S.event.special[j.origType]||{}).handle||j.handler).apply(L.elem,ae),_!==void 0&&(te.result=_)===!1&&(te.preventDefault(),te.stopPropagation()));return Oe.postDispatch&&Oe.postDispatch.call(this,te),te.result}},handlers:function(h,b){var C,_,L,j,V,ae=[],te=b.delegateCount,me=h.target;if(te&&me.nodeType&&!(h.type==="click"&&h.button>=1)){for(;me!==this;me=me.parentNode||this)if(me.nodeType===1&&!(h.type==="click"&&me.disabled===!0)){for(j=[],V={},C=0;C<te;C++)_=b[C],L=_.selector+" ",V[L]===void 0&&(V[L]=_.needsContext?S(L,this).index(me)>-1:S.find(L,this,null,[me]).length),V[L]&&j.push(_);j.length&&ae.push({elem:me,handlers:j})}}return me=this,te<b.length&&ae.push({elem:me,handlers:b.slice(te)}),ae},addProp:function(h,b){Object.defineProperty(S.Event.prototype,h,{enumerable:!0,configurable:!0,get:A(b)?function(){if(this.originalEvent)return b(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[h]},set:function(C){Object.defineProperty(this,h,{enumerable:!0,configurable:!0,writable:!0,value:C})}})},fix:function(h){return h[S.expando]?h:new S.Event(h)},special:{load:{noBubble:!0},click:{setup:function(h){var b=this||h;return Wt.test(b.type)&&b.click&&ie(b,"input")&&_i(b,"click",!0),!1},trigger:function(h){var b=this||h;return Wt.test(b.type)&&b.click&&ie(b,"input")&&_i(b,"click"),!0},_default:function(h){var b=h.target;return Wt.test(b.type)&&b.click&&ie(b,"input")&&ht.get(b,"click")||ie(b,"a")}},beforeunload:{postDispatch:function(h){h.result!==void 0&&h.originalEvent&&(h.originalEvent.returnValue=h.result)}}}};function _i(h,b,C){if(!C){ht.get(h,b)===void 0&&S.event.add(h,b,br);return}ht.set(h,b,!1),S.event.add(h,b,{namespace:!1,handler:function(_){var L,j=ht.get(this,b);if(_.isTrigger&1&&this[b]){if(j)(S.event.special[b]||{}).delegateType&&_.stopPropagation();else if(j=o.call(arguments),ht.set(this,b,j),this[b](),L=ht.get(this,b),ht.set(this,b,!1),j!==L)return _.stopImmediatePropagation(),_.preventDefault(),L}else j&&(ht.set(this,b,S.event.trigger(j[0],j.slice(1),this)),_.stopPropagation(),_.isImmediatePropagationStopped=br)}})}S.removeEvent=function(h,b,C){h.removeEventListener&&h.removeEventListener(b,C)},S.Event=function(h,b){if(!(this instanceof S.Event))return new S.Event(h,b);h&&h.type?(this.originalEvent=h,this.type=h.type,this.isDefaultPrevented=h.defaultPrevented||h.defaultPrevented===void 0&&h.returnValue===!1?br:fi,this.target=h.target&&h.target.nodeType===3?h.target.parentNode:h.target,this.currentTarget=h.currentTarget,this.relatedTarget=h.relatedTarget):this.type=h,b&&S.extend(this,b),this.timeStamp=h&&h.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:fi,isPropagationStopped:fi,isImmediatePropagationStopped:fi,isSimulated:!1,preventDefault:function(){var h=this.originalEvent;this.isDefaultPrevented=br,h&&!this.isSimulated&&h.preventDefault()},stopPropagation:function(){var h=this.originalEvent;this.isPropagationStopped=br,h&&!this.isSimulated&&h.stopPropagation()},stopImmediatePropagation:function(){var h=this.originalEvent;this.isImmediatePropagationStopped=br,h&&!this.isSimulated&&h.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},function(h,b){function C(_){if(R.documentMode){var L=ht.get(this,"handle"),j=S.event.fix(_);j.type=_.type==="focusin"?"focus":"blur",j.isSimulated=!0,L(_),j.target===j.currentTarget&&L(j)}else S.event.simulate(b,_.target,S.event.fix(_))}S.event.special[h]={setup:function(){var _;if(_i(this,h,!0),R.documentMode)_=ht.get(this,b),_||this.addEventListener(b,C),ht.set(this,b,(_||0)+1);else return!1},trigger:function(){return _i(this,h),!0},teardown:function(){var _;if(R.documentMode)_=ht.get(this,b)-1,_?ht.set(this,b,_):(this.removeEventListener(b,C),ht.remove(this,b));else return!1},_default:function(_){return ht.get(_.target,h)},delegateType:b},S.event.special[b]={setup:function(){var _=this.ownerDocument||this.document||this,L=R.documentMode?this:_,j=ht.get(L,b);j||(R.documentMode?this.addEventListener(b,C):_.addEventListener(h,C,!0)),ht.set(L,b,(j||0)+1)},teardown:function(){var _=this.ownerDocument||this.document||this,L=R.documentMode?this:_,j=ht.get(L,b)-1;j?ht.set(L,b,j):(R.documentMode?this.removeEventListener(b,C):_.removeEventListener(h,C,!0),ht.remove(L,b))}}}),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(h,b){S.event.special[h]={delegateType:b,bindType:b,handle:function(C){var _,L=this,j=C.relatedTarget,V=C.handleObj;return(!j||j!==L&&!S.contains(L,j))&&(C.type=V.origType,_=V.handler.apply(this,arguments),C.type=b),_}}}),S.fn.extend({on:function(h,b,C,_){return an(this,h,b,C,_)},one:function(h,b,C,_){return an(this,h,b,C,_,1)},off:function(h,b,C){var _,L;if(h&&h.preventDefault&&h.handleObj)return _=h.handleObj,S(h.delegateTarget).off(_.namespace?_.origType+"."+_.namespace:_.origType,_.selector,_.handler),this;if(typeof h=="object"){for(L in h)this.off(L,b,h[L]);return this}return(b===!1||typeof b=="function")&&(C=b,b=void 0),C===!1&&(C=fi),this.each(function(){S.event.remove(this,h,C,b)})}});var Ls=/<script|<style|<link/i,Fs=/checked\s*(?:[^=]|=\s*.checked.)/i,Zr=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function lo(h,b){return ie(h,"table")&&ie(b.nodeType!==11?b:b.firstChild,"tr")&&S(h).children("tbody")[0]||h}function uo(h){return h.type=(h.getAttribute("type")!==null)+"/"+h.type,h}function Pi(h){return(h.type||"").slice(0,5)==="true/"?h.type=h.type.slice(5):h.removeAttribute("type"),h}function er(h,b){var C,_,L,j,V,ae,te;if(b.nodeType===1){if(ht.hasData(h)&&(j=ht.get(h),te=j.events,te)){ht.remove(b,"handle events");for(L in te)for(C=0,_=te[L].length;C<_;C++)S.event.add(b,L,te[L][C])}Dn.hasData(h)&&(V=Dn.access(h),ae=S.extend({},V),Dn.set(b,ae))}}function Ir(h,b){var C=b.nodeName.toLowerCase();C==="input"&&Wt.test(h.type)?b.checked=h.checked:(C==="input"||C==="textarea")&&(b.defaultValue=h.defaultValue)}function Ar(h,b,C,_){b=a(b);var L,j,V,ae,te,me,Oe=0,Le=h.length,Te=Le-1,We=b[0],lt=A(We);if(lt||Le>1&&typeof We=="string"&&!I.checkClone&&Fs.test(We))return h.each(function(Tt){var Et=h.eq(Tt);lt&&(b[0]=We.call(this,Tt,Et.html())),Ar(Et,b,C,_)});if(Le&&(L=Tn(b,h[0].ownerDocument,!1,h,_),j=L.firstChild,L.childNodes.length===1&&(L=j),j||_)){for(V=S.map(hn(L,"script"),uo),ae=V.length;Oe<Le;Oe++)te=L,Oe!==Te&&(te=S.clone(te,!0,!0),ae&&S.merge(V,hn(te,"script"))),C.call(h[Oe],te,Oe);if(ae)for(me=V[V.length-1].ownerDocument,S.map(V,Pi),Oe=0;Oe<ae;Oe++)te=V[Oe],zi.test(te.type||"")&&!ht.access(te,"globalEval")&&S.contains(me,te)&&(te.src&&(te.type||"").toLowerCase()!=="module"?S._evalUrl&&!te.noModule&&S._evalUrl(te.src,{nonce:te.nonce||te.getAttribute("nonce")},me):H(te.textContent.replace(Zr,""),te,me))}return h}function di(h,b,C){for(var _,L=b?S.filter(b,h):h,j=0;(_=L[j])!=null;j++)!C&&_.nodeType===1&&S.cleanData(hn(_)),_.parentNode&&(C&&yr(_)&&ui(hn(_,"script")),_.parentNode.removeChild(_));return h}S.extend({htmlPrefilter:function(h){return h},clone:function(h,b,C){var _,L,j,V,ae=h.cloneNode(!0),te=yr(h);if(!I.noCloneChecked&&(h.nodeType===1||h.nodeType===11)&&!S.isXMLDoc(h))for(V=hn(ae),j=hn(h),_=0,L=j.length;_<L;_++)Ir(j[_],V[_]);if(b)if(C)for(j=j||hn(h),V=V||hn(ae),_=0,L=j.length;_<L;_++)er(j[_],V[_]);else er(h,ae);return V=hn(ae,"script"),V.length>0&&ui(V,!te&&hn(h,"script")),ae},cleanData:function(h){for(var b,C,_,L=S.event.special,j=0;(C=h[j])!==void 0;j++)if(fn(C)){if(b=C[ht.expando]){if(b.events)for(_ in b.events)L[_]?S.event.remove(C,_):S.removeEvent(C,_,b.handle);C[ht.expando]=void 0}C[Dn.expando]&&(C[Dn.expando]=void 0)}}}),S.fn.extend({detach:function(h){return di(this,h,!0)},remove:function(h){return di(this,h)},text:function(h){return Sn(this,function(b){return b===void 0?S.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=b)})},null,h,arguments.length)},append:function(){return Ar(this,arguments,function(h){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var b=lo(this,h);b.appendChild(h)}})},prepend:function(){return Ar(this,arguments,function(h){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var b=lo(this,h);b.insertBefore(h,b.firstChild)}})},before:function(){return Ar(this,arguments,function(h){this.parentNode&&this.parentNode.insertBefore(h,this)})},after:function(){return Ar(this,arguments,function(h){this.parentNode&&this.parentNode.insertBefore(h,this.nextSibling)})},empty:function(){for(var h,b=0;(h=this[b])!=null;b++)h.nodeType===1&&(S.cleanData(hn(h,!1)),h.textContent="");return this},clone:function(h,b){return h=h??!1,b=b??h,this.map(function(){return S.clone(this,h,b)})},html:function(h){return Sn(this,function(b){var C=this[0]||{},_=0,L=this.length;if(b===void 0&&C.nodeType===1)return C.innerHTML;if(typeof b=="string"&&!Ls.test(b)&&!_n[(li.exec(b)||["",""])[1].toLowerCase()]){b=S.htmlPrefilter(b);try{for(;_<L;_++)C=this[_]||{},C.nodeType===1&&(S.cleanData(hn(C,!1)),C.innerHTML=b);C=0}catch{}}C&&this.empty().append(b)},null,h,arguments.length)},replaceWith:function(){var h=[];return Ar(this,arguments,function(b){var C=this.parentNode;S.inArray(this,h)<0&&(S.cleanData(hn(this)),C&&C.replaceChild(b,this))},h)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(h,b){S.fn[h]=function(C){for(var _,L=[],j=S(C),V=j.length-1,ae=0;ae<=V;ae++)_=ae===V?this:this.clone(!0),S(j[ae])[b](_),c.apply(L,_.get());return this.pushStack(L)}});var Jr=new RegExp("^("+Wi+")(?!px)[a-z%]+$","i"),wr=/^--/,Mr=function(h){var b=h.ownerDocument.defaultView;return(!b||!b.opener)&&(b=e),b.getComputedStyle(h)},tr=function(h,b,C){var _,L,j={};for(L in b)j[L]=h.style[L],h.style[L]=b[L];_=C.call(h);for(L in b)h.style[L]=j[L];return _},Yi=new RegExp(Nn.join("|"),"i");(function(){function h(){if(me){te.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",me.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Rr.appendChild(te).appendChild(me);var Oe=e.getComputedStyle(me);C=Oe.top!=="1%",ae=b(Oe.marginLeft)===12,me.style.right="60%",j=b(Oe.right)===36,_=b(Oe.width)===36,me.style.position="absolute",L=b(me.offsetWidth/3)===12,Rr.removeChild(te),me=null}}function b(Oe){return Math.round(parseFloat(Oe))}var C,_,L,j,V,ae,te=R.createElement("div"),me=R.createElement("div");me.style&&(me.style.backgroundClip="content-box",me.cloneNode(!0).style.backgroundClip="",I.clearCloneStyle=me.style.backgroundClip==="content-box",S.extend(I,{boxSizingReliable:function(){return h(),_},pixelBoxStyles:function(){return h(),j},pixelPosition:function(){return h(),C},reliableMarginLeft:function(){return h(),ae},scrollboxSize:function(){return h(),L},reliableTrDimensions:function(){var Oe,Le,Te,We;return V==null&&(Oe=R.createElement("table"),Le=R.createElement("tr"),Te=R.createElement("div"),Oe.style.cssText="position:absolute;left:-11111px;border-collapse:separate",Le.style.cssText="box-sizing:content-box;border:1px solid",Le.style.height="1px",Te.style.height="9px",Te.style.display="block",Rr.appendChild(Oe).appendChild(Le).appendChild(Te),We=e.getComputedStyle(Le),V=parseInt(We.height,10)+parseInt(We.borderTopWidth,10)+parseInt(We.borderBottomWidth,10)===Le.offsetHeight,Rr.removeChild(Oe)),V}}))})();function Oi(h,b,C){var _,L,j,V,ae=wr.test(b),te=h.style;return C=C||Mr(h),C&&(V=C.getPropertyValue(b)||C[b],ae&&V&&(V=V.replace(nt,"$1")||void 0),V===""&&!yr(h)&&(V=S.style(h,b)),!I.pixelBoxStyles()&&Jr.test(V)&&Yi.test(b)&&(_=te.width,L=te.minWidth,j=te.maxWidth,te.minWidth=te.maxWidth=te.width=V,V=C.width,te.width=_,te.minWidth=L,te.maxWidth=j)),V!==void 0?V+"":V}function ar(h,b){return{get:function(){if(h()){delete this.get;return}return(this.get=b).apply(this,arguments)}}}var yn=["Webkit","Moz","ms"],Lr=R.createElement("div").style,Fr={};function hi(h){for(var b=h[0].toUpperCase()+h.slice(1),C=yn.length;C--;)if(h=yn[C]+b,h in Lr)return h}function pi(h){var b=S.cssProps[h]||Fr[h];return b||(h in Lr?h:Fr[h]=hi(h)||h)}var xr=/^(none|table(?!-c[ea]).+)/,Qr={position:"absolute",visibility:"hidden",display:"block"},Wn={letterSpacing:"0",fontWeight:"400"};function gi(h,b,C){var _=Or.exec(b);return _?Math.max(0,_[2]-(C||0))+(_[3]||"px"):b}function mi(h,b,C,_,L,j){var V=b==="width"?1:0,ae=0,te=0,me=0;if(C===(_?"border":"content"))return 0;for(;V<4;V+=2)C==="margin"&&(me+=S.css(h,C+Nn[V],!0,L)),_?(C==="content"&&(te-=S.css(h,"padding"+Nn[V],!0,L)),C!=="margin"&&(te-=S.css(h,"border"+Nn[V]+"Width",!0,L))):(te+=S.css(h,"padding"+Nn[V],!0,L),C!=="padding"?te+=S.css(h,"border"+Nn[V]+"Width",!0,L):ae+=S.css(h,"border"+Nn[V]+"Width",!0,L));return!_&&j>=0&&(te+=Math.max(0,Math.ceil(h["offset"+b[0].toUpperCase()+b.slice(1)]-j-te-ae-.5))||0),te+me}function Ri(h,b,C){var _=Mr(h),L=!I.boxSizingReliable()||C,j=L&&S.css(h,"boxSizing",!1,_)==="border-box",V=j,ae=Oi(h,b,_),te="offset"+b[0].toUpperCase()+b.slice(1);if(Jr.test(ae)){if(!C)return ae;ae="auto"}return(!I.boxSizingReliable()&&j||!I.reliableTrDimensions()&&ie(h,"tr")||ae==="auto"||!parseFloat(ae)&&S.css(h,"display",!1,_)==="inline")&&h.getClientRects().length&&(j=S.css(h,"boxSizing",!1,_)==="border-box",V=te in h,V&&(ae=h[te])),ae=parseFloat(ae)||0,ae+mi(h,b,C||(j?"border":"content"),V,_,ae)+"px"}S.extend({cssHooks:{opacity:{get:function(h,b){if(b){var C=Oi(h,"opacity");return C===""?"1":C}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(h,b,C,_){if(!(!h||h.nodeType===3||h.nodeType===8||!h.style)){var L,j,V,ae=sn(b),te=wr.test(b),me=h.style;if(te||(b=pi(ae)),V=S.cssHooks[b]||S.cssHooks[ae],C!==void 0){if(j=typeof C,j==="string"&&(L=Or.exec(C))&&L[1]&&(C=Ao(h,b,L),j="number"),C==null||C!==C)return;j==="number"&&!te&&(C+=L&&L[3]||(S.cssNumber[ae]?"":"px")),!I.clearCloneStyle&&C===""&&b.indexOf("background")===0&&(me[b]="inherit"),(!V||!("set"in V)||(C=V.set(h,C,_))!==void 0)&&(te?me.setProperty(b,C):me[b]=C)}else return V&&"get"in V&&(L=V.get(h,!1,_))!==void 0?L:me[b]}},css:function(h,b,C,_){var L,j,V,ae=sn(b),te=wr.test(b);return te||(b=pi(ae)),V=S.cssHooks[b]||S.cssHooks[ae],V&&"get"in V&&(L=V.get(h,!0,C)),L===void 0&&(L=Oi(h,b,_)),L==="normal"&&b in Wn&&(L=Wn[b]),C===""||C?(j=parseFloat(L),C===!0||isFinite(j)?j||0:L):L}}),S.each(["height","width"],function(h,b){S.cssHooks[b]={get:function(C,_,L){if(_)return xr.test(S.css(C,"display"))&&(!C.getClientRects().length||!C.getBoundingClientRect().width)?tr(C,Qr,function(){return Ri(C,b,L)}):Ri(C,b,L)},set:function(C,_,L){var j,V=Mr(C),ae=!I.scrollboxSize()&&V.position==="absolute",te=ae||L,me=te&&S.css(C,"boxSizing",!1,V)==="border-box",Oe=L?mi(C,b,L,me,V):0;return me&&ae&&(Oe-=Math.ceil(C["offset"+b[0].toUpperCase()+b.slice(1)]-parseFloat(V[b])-mi(C,b,"border",!1,V)-.5)),Oe&&(j=Or.exec(_))&&(j[3]||"px")!=="px"&&(C.style[b]=_,_=S.css(C,b)),gi(C,_,Oe)}}}),S.cssHooks.marginLeft=ar(I.reliableMarginLeft,function(h,b){if(b)return(parseFloat(Oi(h,"marginLeft"))||h.getBoundingClientRect().left-tr(h,{marginLeft:0},function(){return h.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(h,b){S.cssHooks[h+b]={expand:function(C){for(var _=0,L={},j=typeof C=="string"?C.split(" "):[C];_<4;_++)L[h+Nn[_]+b]=j[_]||j[_-2]||j[0];return L}},h!=="margin"&&(S.cssHooks[h+b].set=gi)}),S.fn.extend({css:function(h,b){return Sn(this,function(C,_,L){var j,V,ae={},te=0;if(Array.isArray(_)){for(j=Mr(C),V=_.length;te<V;te++)ae[_[te]]=S.css(C,_[te],!1,j);return ae}return L!==void 0?S.style(C,_,L):S.css(C,_)},h,b,arguments.length>1)}});function nn(h,b,C,_,L){return new nn.prototype.init(h,b,C,_,L)}S.Tween=nn,nn.prototype={constructor:nn,init:function(h,b,C,_,L,j){this.elem=h,this.prop=C,this.easing=L||S.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=_,this.unit=j||(S.cssNumber[C]?"":"px")},cur:function(){var h=nn.propHooks[this.prop];return h&&h.get?h.get(this):nn.propHooks._default.get(this)},run:function(h){var b,C=nn.propHooks[this.prop];return this.options.duration?this.pos=b=S.easing[this.easing](h,this.options.duration*h,0,1,this.options.duration):this.pos=b=h,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),C&&C.set?C.set(this):nn.propHooks._default.set(this),this}},nn.prototype.init.prototype=nn.prototype,nn.propHooks={_default:{get:function(h){var b;return h.elem.nodeType!==1||h.elem[h.prop]!=null&&h.elem.style[h.prop]==null?h.elem[h.prop]:(b=S.css(h.elem,h.prop,""),!b||b==="auto"?0:b)},set:function(h){S.fx.step[h.prop]?S.fx.step[h.prop](h):h.elem.nodeType===1&&(S.cssHooks[h.prop]||h.elem.style[pi(h.prop)]!=null)?S.style(h.elem,h.prop,h.now+h.unit):h.elem[h.prop]=h.now}}},nn.propHooks.scrollTop=nn.propHooks.scrollLeft={set:function(h){h.elem.nodeType&&h.elem.parentNode&&(h.elem[h.prop]=h.now)}},S.easing={linear:function(h){return h},swing:function(h){return .5-Math.cos(h*Math.PI)/2},_default:"swing"},S.fx=nn.prototype.init,S.fx.step={};var jn,Cn,co=/^(?:toggle|show|hide)$/,Pn=/queueHooks$/;function On(){Cn&&(R.hidden===!1&&e.requestAnimationFrame?e.requestAnimationFrame(On):e.setTimeout(On,S.fx.interval),S.fx.tick())}function k(){return e.setTimeout(function(){jn=void 0}),jn=Date.now()}function N(h,b){var C,_=0,L={height:h};for(b=b?1:0;_<4;_+=2-b)C=Nn[_],L["margin"+C]=L["padding"+C]=h;return b&&(L.opacity=L.width=h),L}function q(h,b,C){for(var _,L=(ve.tweeners[b]||[]).concat(ve.tweeners["*"]),j=0,V=L.length;j<V;j++)if(_=L[j].call(C,b,h))return _}function ee(h,b,C){var _,L,j,V,ae,te,me,Oe,Le="width"in b||"height"in b,Te=this,We={},lt=h.style,Tt=h.nodeType&&Xr(h),Et=ht.get(h,"fxshow");C.queue||(V=S._queueHooks(h,"fx"),V.unqueued==null&&(V.unqueued=0,ae=V.empty.fire,V.empty.fire=function(){V.unqueued||ae()}),V.unqueued++,Te.always(function(){Te.always(function(){V.unqueued--,S.queue(h,"fx").length||V.empty.fire()})}));for(_ in b)if(L=b[_],co.test(L)){if(delete b[_],j=j||L==="toggle",L===(Tt?"hide":"show"))if(L==="show"&&Et&&Et[_]!==void 0)Tt=!0;else continue;We[_]=Et&&Et[_]||S.style(h,_)}if(te=!S.isEmptyObject(b),!(!te&&S.isEmptyObject(We))){Le&&h.nodeType===1&&(C.overflow=[lt.overflow,lt.overflowX,lt.overflowY],me=Et&&Et.display,me==null&&(me=ht.get(h,"display")),Oe=S.css(h,"display"),Oe==="none"&&(me?Oe=me:(Qn([h],!0),me=h.style.display||me,Oe=S.css(h,"display"),Qn([h]))),(Oe==="inline"||Oe==="inline-block"&&me!=null)&&S.css(h,"float")==="none"&&(te||(Te.done(function(){lt.display=me}),me==null&&(Oe=lt.display,me=Oe==="none"?"":Oe)),lt.display="inline-block")),C.overflow&&(lt.overflow="hidden",Te.always(function(){lt.overflow=C.overflow[0],lt.overflowX=C.overflow[1],lt.overflowY=C.overflow[2]})),te=!1;for(_ in We)te||(Et?"hidden"in Et&&(Tt=Et.hidden):Et=ht.access(h,"fxshow",{display:me}),j&&(Et.hidden=!Tt),Tt&&Qn([h],!0),Te.done(function(){Tt||Qn([h]),ht.remove(h,"fxshow");for(_ in We)S.style(h,_,We[_])})),te=q(Tt?Et[_]:0,_,Te),_ in Et||(Et[_]=te.start,Tt&&(te.end=te.start,te.start=0))}}function Ee(h,b){var C,_,L,j,V;for(C in h)if(_=sn(C),L=b[_],j=h[C],Array.isArray(j)&&(L=j[1],j=h[C]=j[0]),C!==_&&(h[_]=j,delete h[C]),V=S.cssHooks[_],V&&"expand"in V){j=V.expand(j),delete h[_];for(C in j)C in h||(h[C]=j[C],b[C]=L)}else b[_]=L}function ve(h,b,C){var _,L,j=0,V=ve.prefilters.length,ae=S.Deferred().always(function(){delete te.elem}),te=function(){if(L)return!1;for(var Le=jn||k(),Te=Math.max(0,me.startTime+me.duration-Le),We=Te/me.duration||0,lt=1-We,Tt=0,Et=me.tweens.length;Tt<Et;Tt++)me.tweens[Tt].run(lt);return ae.notifyWith(h,[me,lt,Te]),lt<1&&Et?Te:(Et||ae.notifyWith(h,[me,1,0]),ae.resolveWith(h,[me]),!1)},me=ae.promise({elem:h,props:S.extend({},b),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},C),originalProperties:b,originalOptions:C,startTime:jn||k(),duration:C.duration,tweens:[],createTween:function(Le,Te){var We=S.Tween(h,me.opts,Le,Te,me.opts.specialEasing[Le]||me.opts.easing);return me.tweens.push(We),We},stop:function(Le){var Te=0,We=Le?me.tweens.length:0;if(L)return this;for(L=!0;Te<We;Te++)me.tweens[Te].run(1);return Le?(ae.notifyWith(h,[me,1,0]),ae.resolveWith(h,[me,Le])):ae.rejectWith(h,[me,Le]),this}}),Oe=me.props;for(Ee(Oe,me.opts.specialEasing);j<V;j++)if(_=ve.prefilters[j].call(me,h,Oe,me.opts),_)return A(_.stop)&&(S._queueHooks(me.elem,me.opts.queue).stop=_.stop.bind(_)),_;return S.map(Oe,q,me),A(me.opts.start)&&me.opts.start.call(h,me),me.progress(me.opts.progress).done(me.opts.done,me.opts.complete).fail(me.opts.fail).always(me.opts.always),S.fx.timer(S.extend(te,{elem:h,anim:me,queue:me.opts.queue})),me}S.Animation=S.extend(ve,{tweeners:{"*":[function(h,b){var C=this.createTween(h,b);return Ao(C.elem,h,Or.exec(b),C),C}]},tweener:function(h,b){A(h)?(b=h,h=["*"]):h=h.match(Qe);for(var C,_=0,L=h.length;_<L;_++)C=h[_],ve.tweeners[C]=ve.tweeners[C]||[],ve.tweeners[C].unshift(b)},prefilters:[ee],prefilter:function(h,b){b?ve.prefilters.unshift(h):ve.prefilters.push(h)}}),S.speed=function(h,b,C){var _=h&&typeof h=="object"?S.extend({},h):{complete:C||!C&&b||A(h)&&h,duration:h,easing:C&&b||b&&!A(b)&&b};return S.fx.off?_.duration=0:typeof _.duration!="number"&&(_.duration in S.fx.speeds?_.duration=S.fx.speeds[_.duration]:_.duration=S.fx.speeds._default),(_.queue==null||_.queue===!0)&&(_.queue="fx"),_.old=_.complete,_.complete=function(){A(_.old)&&_.old.call(this),_.queue&&S.dequeue(this,_.queue)},_},S.fn.extend({fadeTo:function(h,b,C,_){return this.filter(Xr).css("opacity",0).show().end().animate({opacity:b},h,C,_)},animate:function(h,b,C,_){var L=S.isEmptyObject(h),j=S.speed(b,C,_),V=function(){var ae=ve(this,S.extend({},h),j);(L||ht.get(this,"finish"))&&ae.stop(!0)};return V.finish=V,L||j.queue===!1?this.each(V):this.queue(j.queue,V)},stop:function(h,b,C){var _=function(L){var j=L.stop;delete L.stop,j(C)};return typeof h!="string"&&(C=b,b=h,h=void 0),b&&this.queue(h||"fx",[]),this.each(function(){var L=!0,j=h!=null&&h+"queueHooks",V=S.timers,ae=ht.get(this);if(j)ae[j]&&ae[j].stop&&_(ae[j]);else for(j in ae)ae[j]&&ae[j].stop&&Pn.test(j)&&_(ae[j]);for(j=V.length;j--;)V[j].elem===this&&(h==null||V[j].queue===h)&&(V[j].anim.stop(C),L=!1,V.splice(j,1));(L||!C)&&S.dequeue(this,h)})},finish:function(h){return h!==!1&&(h=h||"fx"),this.each(function(){var b,C=ht.get(this),_=C[h+"queue"],L=C[h+"queueHooks"],j=S.timers,V=_?_.length:0;for(C.finish=!0,S.queue(this,h,[]),L&&L.stop&&L.stop.call(this,!0),b=j.length;b--;)j[b].elem===this&&j[b].queue===h&&(j[b].anim.stop(!0),j.splice(b,1));for(b=0;b<V;b++)_[b]&&_[b].finish&&_[b].finish.call(this);delete C.finish})}}),S.each(["toggle","show","hide"],function(h,b){var C=S.fn[b];S.fn[b]=function(_,L,j){return _==null||typeof _=="boolean"?C.apply(this,arguments):this.animate(N(b,!0),_,L,j)}}),S.each({slideDown:N("show"),slideUp:N("hide"),slideToggle:N("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(h,b){S.fn[h]=function(C,_,L){return this.animate(b,C,_,L)}}),S.timers=[],S.fx.tick=function(){var h,b=0,C=S.timers;for(jn=Date.now();b<C.length;b++)h=C[b],!h()&&C[b]===h&&C.splice(b--,1);C.length||S.fx.stop(),jn=void 0},S.fx.timer=function(h){S.timers.push(h),S.fx.start()},S.fx.interval=13,S.fx.start=function(){Cn||(Cn=!0,On())},S.fx.stop=function(){Cn=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(h,b){return h=S.fx&&S.fx.speeds[h]||h,b=b||"fx",this.queue(b,function(C,_){var L=e.setTimeout(C,h);_.stop=function(){e.clearTimeout(L)}})},function(){var h=R.createElement("input"),b=R.createElement("select"),C=b.appendChild(R.createElement("option"));h.type="checkbox",I.checkOn=h.value!=="",I.optSelected=C.selected,h=R.createElement("input"),h.value="t",h.type="radio",I.radioValue=h.value==="t"}();var Me,Ze=S.expr.attrHandle;S.fn.extend({attr:function(h,b){return Sn(this,S.attr,h,b,arguments.length>1)},removeAttr:function(h){return this.each(function(){S.removeAttr(this,h)})}}),S.extend({attr:function(h,b,C){var _,L,j=h.nodeType;if(!(j===3||j===8||j===2)){if(typeof h.getAttribute>"u")return S.prop(h,b,C);if((j!==1||!S.isXMLDoc(h))&&(L=S.attrHooks[b.toLowerCase()]||(S.expr.match.bool.test(b)?Me:void 0)),C!==void 0){if(C===null){S.removeAttr(h,b);return}return L&&"set"in L&&(_=L.set(h,C,b))!==void 0?_:(h.setAttribute(b,C+""),C)}return L&&"get"in L&&(_=L.get(h,b))!==null?_:(_=S.find.attr(h,b),_??void 0)}},attrHooks:{type:{set:function(h,b){if(!I.radioValue&&b==="radio"&&ie(h,"input")){var C=h.value;return h.setAttribute("type",b),C&&(h.value=C),b}}}},removeAttr:function(h,b){var C,_=0,L=b&&b.match(Qe);if(L&&h.nodeType===1)for(;C=L[_++];)h.removeAttribute(C)}}),Me={set:function(h,b,C){return b===!1?S.removeAttr(h,C):h.setAttribute(C,C),C}},S.each(S.expr.match.bool.source.match(/\w+/g),function(h,b){var C=Ze[b]||S.find.attr;Ze[b]=function(_,L,j){var V,ae,te=L.toLowerCase();return j||(ae=Ze[te],Ze[te]=V,V=C(_,L,j)!=null?te:null,Ze[te]=ae),V}});var mt=/^(?:input|select|textarea|button)$/i,vt=/^(?:a|area)$/i;S.fn.extend({prop:function(h,b){return Sn(this,S.prop,h,b,arguments.length>1)},removeProp:function(h){return this.each(function(){delete this[S.propFix[h]||h]})}}),S.extend({prop:function(h,b,C){var _,L,j=h.nodeType;if(!(j===3||j===8||j===2))return(j!==1||!S.isXMLDoc(h))&&(b=S.propFix[b]||b,L=S.propHooks[b]),C!==void 0?L&&"set"in L&&(_=L.set(h,C,b))!==void 0?_:h[b]=C:L&&"get"in L&&(_=L.get(h,b))!==null?_:h[b]},propHooks:{tabIndex:{get:function(h){var b=S.find.attr(h,"tabindex");return b?parseInt(b,10):mt.test(h.nodeName)||vt.test(h.nodeName)&&h.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),I.optSelected||(S.propHooks.selected={get:function(h){var b=h.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null},set:function(h){var b=h.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this});function pt(h){var b=h.match(Qe)||[];return b.join(" ")}function Ft(h){return h.getAttribute&&h.getAttribute("class")||""}function Bn(h){return Array.isArray(h)?h:typeof h=="string"?h.match(Qe)||[]:[]}S.fn.extend({addClass:function(h){var b,C,_,L,j,V;return A(h)?this.each(function(ae){S(this).addClass(h.call(this,ae,Ft(this)))}):(b=Bn(h),b.length?this.each(function(){if(_=Ft(this),C=this.nodeType===1&&" "+pt(_)+" ",C){for(j=0;j<b.length;j++)L=b[j],C.indexOf(" "+L+" ")<0&&(C+=L+" ");V=pt(C),_!==V&&this.setAttribute("class",V)}}):this)},removeClass:function(h){var b,C,_,L,j,V;return A(h)?this.each(function(ae){S(this).removeClass(h.call(this,ae,Ft(this)))}):arguments.length?(b=Bn(h),b.length?this.each(function(){if(_=Ft(this),C=this.nodeType===1&&" "+pt(_)+" ",C){for(j=0;j<b.length;j++)for(L=b[j];C.indexOf(" "+L+" ")>-1;)C=C.replace(" "+L+" "," ");V=pt(C),_!==V&&this.setAttribute("class",V)}}):this):this.attr("class","")},toggleClass:function(h,b){var C,_,L,j,V=typeof h,ae=V==="string"||Array.isArray(h);return A(h)?this.each(function(te){S(this).toggleClass(h.call(this,te,Ft(this),b),b)}):typeof b=="boolean"&&ae?b?this.addClass(h):this.removeClass(h):(C=Bn(h),this.each(function(){if(ae)for(j=S(this),L=0;L<C.length;L++)_=C[L],j.hasClass(_)?j.removeClass(_):j.addClass(_);else(h===void 0||V==="boolean")&&(_=Ft(this),_&&ht.set(this,"__className__",_),this.setAttribute&&this.setAttribute("class",_||h===!1?"":ht.get(this,"__className__")||""))}))},hasClass:function(h){var b,C,_=0;for(b=" "+h+" ";C=this[_++];)if(C.nodeType===1&&(" "+pt(Ft(C))+" ").indexOf(b)>-1)return!0;return!1}});var zn=/\r/g;S.fn.extend({val:function(h){var b,C,_,L=this[0];return arguments.length?(_=A(h),this.each(function(j){var V;this.nodeType===1&&(_?V=h.call(this,j,S(this).val()):V=h,V==null?V="":typeof V=="number"?V+="":Array.isArray(V)&&(V=S.map(V,function(ae){return ae==null?"":ae+""})),b=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()],(!b||!("set"in b)||b.set(this,V,"value")===void 0)&&(this.value=V))})):L?(b=S.valHooks[L.type]||S.valHooks[L.nodeName.toLowerCase()],b&&"get"in b&&(C=b.get(L,"value"))!==void 0?C:(C=L.value,typeof C=="string"?C.replace(zn,""):C??"")):void 0}}),S.extend({valHooks:{option:{get:function(h){var b=S.find.attr(h,"value");return b??pt(S.text(h))}},select:{get:function(h){var b,C,_,L=h.options,j=h.selectedIndex,V=h.type==="select-one",ae=V?null:[],te=V?j+1:L.length;for(j<0?_=te:_=V?j:0;_<te;_++)if(C=L[_],(C.selected||_===j)&&!C.disabled&&(!C.parentNode.disabled||!ie(C.parentNode,"optgroup"))){if(b=S(C).val(),V)return b;ae.push(b)}return ae},set:function(h,b){for(var C,_,L=h.options,j=S.makeArray(b),V=L.length;V--;)_=L[V],(_.selected=S.inArray(S.valHooks.option.get(_),j)>-1)&&(C=!0);return C||(h.selectedIndex=-1),j}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(h,b){if(Array.isArray(b))return h.checked=S.inArray(S(h).val(),b)>-1}},I.checkOn||(S.valHooks[this].get=function(h){return h.getAttribute("value")===null?"on":h.value})});var En=e.location,ei={guid:Date.now()},lr=/\?/;S.parseXML=function(h){var b,C;if(!h||typeof h!="string")return null;try{b=new e.DOMParser().parseFromString(h,"text/xml")}catch{}return C=b&&b.getElementsByTagName("parsererror")[0],(!b||C)&&S.error("Invalid XML: "+(C?S.map(C.childNodes,function(_){return _.textContent}).join(`
|
|
172
|
+
`):h)),b};var Gi=/^(?:focusinfocus|focusoutblur)$/,vi=function(h){h.stopPropagation()};S.extend(S.event,{trigger:function(h,b,C,_){var L,j,V,ae,te,me,Oe,Le,Te=[C||R],We=m.call(h,"type")?h.type:h,lt=m.call(h,"namespace")?h.namespace.split("."):[];if(j=Le=V=C=C||R,!(C.nodeType===3||C.nodeType===8)&&!Gi.test(We+S.event.triggered)&&(We.indexOf(".")>-1&&(lt=We.split("."),We=lt.shift(),lt.sort()),te=We.indexOf(":")<0&&"on"+We,h=h[S.expando]?h:new S.Event(We,typeof h=="object"&&h),h.isTrigger=_?2:3,h.namespace=lt.join("."),h.rnamespace=h.namespace?new RegExp("(^|\\.)"+lt.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,h.result=void 0,h.target||(h.target=C),b=b==null?[h]:S.makeArray(b,[h]),Oe=S.event.special[We]||{},!(!_&&Oe.trigger&&Oe.trigger.apply(C,b)===!1))){if(!_&&!Oe.noBubble&&!F(C)){for(ae=Oe.delegateType||We,Gi.test(ae+We)||(j=j.parentNode);j;j=j.parentNode)Te.push(j),V=j;V===(C.ownerDocument||R)&&Te.push(V.defaultView||V.parentWindow||e)}for(L=0;(j=Te[L++])&&!h.isPropagationStopped();)Le=j,h.type=L>1?ae:Oe.bindType||We,me=(ht.get(j,"events")||Object.create(null))[h.type]&&ht.get(j,"handle"),me&&me.apply(j,b),me=te&&j[te],me&&me.apply&&fn(j)&&(h.result=me.apply(j,b),h.result===!1&&h.preventDefault());return h.type=We,!_&&!h.isDefaultPrevented()&&(!Oe._default||Oe._default.apply(Te.pop(),b)===!1)&&fn(C)&&te&&A(C[We])&&!F(C)&&(V=C[te],V&&(C[te]=null),S.event.triggered=We,h.isPropagationStopped()&&Le.addEventListener(We,vi),C[We](),h.isPropagationStopped()&&Le.removeEventListener(We,vi),S.event.triggered=void 0,V&&(C[te]=V)),h.result}},simulate:function(h,b,C){var _=S.extend(new S.Event,C,{type:h,isSimulated:!0});S.event.trigger(_,null,b)}}),S.fn.extend({trigger:function(h,b){return this.each(function(){S.event.trigger(h,b,this)})},triggerHandler:function(h,b){var C=this[0];if(C)return S.event.trigger(h,b,C,!0)}});var qi=/\[\]$/,Nr=/\r?\n/g,Xi=/^(?:submit|button|image|reset|file)$/i,Wa=/^(?:input|select|textarea|keygen)/i;function Ns(h,b,C,_){var L;if(Array.isArray(b))S.each(b,function(j,V){C||qi.test(h)?_(h,V):Ns(h+"["+(typeof V=="object"&&V!=null?j:"")+"]",V,C,_)});else if(!C&&ne(b)==="object")for(L in b)Ns(h+"["+L+"]",b[L],C,_);else _(h,b)}S.param=function(h,b){var C,_=[],L=function(j,V){var ae=A(V)?V():V;_[_.length]=encodeURIComponent(j)+"="+encodeURIComponent(ae??"")};if(h==null)return"";if(Array.isArray(h)||h.jquery&&!S.isPlainObject(h))S.each(h,function(){L(this.name,this.value)});else for(C in h)Ns(C,h[C],b,L);return _.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var h=S.prop(this,"elements");return h?S.makeArray(h):this}).filter(function(){var h=this.type;return this.name&&!S(this).is(":disabled")&&Wa.test(this.nodeName)&&!Xi.test(h)&&(this.checked||!Wt.test(h))}).map(function(h,b){var C=S(this).val();return C==null?null:Array.isArray(C)?S.map(C,function(_){return{name:b.name,value:_.replace(Nr,`\r
|
|
173
|
+
`)}}):{name:b.name,value:C.replace(Nr,`\r
|
|
174
|
+
`)}}).get()}});var is=/%20/g,Sr=/#.*$/,za=/([?&])_=[^&]*/,yi=/^(.*?):[ \t]*([^\r\n]*)$/mg,js=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,os=/^(?:GET|HEAD)$/,rn=/^\/\//,Gt={},Kt={},Ii="*/".concat("*"),ti=R.createElement("a");ti.href=En.href;function Mo(h){return function(b,C){typeof b!="string"&&(C=b,b="*");var _,L=0,j=b.toLowerCase().match(Qe)||[];if(A(C))for(;_=j[L++];)_[0]==="+"?(_=_.slice(1)||"*",(h[_]=h[_]||[]).unshift(C)):(h[_]=h[_]||[]).push(C)}}function bi(h,b,C,_){var L={},j=h===Kt;function V(ae){var te;return L[ae]=!0,S.each(h[ae]||[],function(me,Oe){var Le=Oe(b,C,_);if(typeof Le=="string"&&!j&&!L[Le])return b.dataTypes.unshift(Le),V(Le),!1;if(j)return!(te=Le)}),te}return V(b.dataTypes[0])||!L["*"]&&V("*")}function ur(h,b){var C,_,L=S.ajaxSettings.flatOptions||{};for(C in b)b[C]!==void 0&&((L[C]?h:_||(_={}))[C]=b[C]);return _&&S.extend(!0,h,_),h}function Bs(h,b,C){for(var _,L,j,V,ae=h.contents,te=h.dataTypes;te[0]==="*";)te.shift(),_===void 0&&(_=h.mimeType||b.getResponseHeader("Content-Type"));if(_){for(L in ae)if(ae[L]&&ae[L].test(_)){te.unshift(L);break}}if(te[0]in C)j=te[0];else{for(L in C){if(!te[0]||h.converters[L+" "+te[0]]){j=L;break}V||(V=L)}j=j||V}if(j)return j!==te[0]&&te.unshift(j),C[j]}function fo(h,b,C,_){var L,j,V,ae,te,me={},Oe=h.dataTypes.slice();if(Oe[1])for(V in h.converters)me[V.toLowerCase()]=h.converters[V];for(j=Oe.shift();j;)if(h.responseFields[j]&&(C[h.responseFields[j]]=b),!te&&_&&h.dataFilter&&(b=h.dataFilter(b,h.dataType)),te=j,j=Oe.shift(),j){if(j==="*")j=te;else if(te!=="*"&&te!==j){if(V=me[te+" "+j]||me["* "+j],!V){for(L in me)if(ae=L.split(" "),ae[1]===j&&(V=me[te+" "+ae[0]]||me["* "+ae[0]],V)){V===!0?V=me[L]:me[L]!==!0&&(j=ae[0],Oe.unshift(ae[1]));break}}if(V!==!0)if(V&&h.throws)b=V(b);else try{b=V(b)}catch(Le){return{state:"parsererror",error:V?Le:"No conversion from "+te+" to "+j}}}}return{state:"success",data:b}}S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:En.href,type:"GET",isLocal:js.test(En.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ii,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(h,b){return b?ur(ur(h,S.ajaxSettings),b):ur(S.ajaxSettings,h)},ajaxPrefilter:Mo(Gt),ajaxTransport:Mo(Kt),ajax:function(h,b){typeof h=="object"&&(b=h,h=void 0),b=b||{};var C,_,L,j,V,ae,te,me,Oe,Le,Te=S.ajaxSetup({},b),We=Te.context||Te,lt=Te.context&&(We.nodeType||We.jquery)?S(We):S.event,Tt=S.Deferred(),Et=S.Callbacks("once memory"),Rn=Te.statusCode||{},un={},jr={},Br="canceled",Lt={readyState:0,getResponseHeader:function(jt){var Qt;if(te){if(!j)for(j={};Qt=yi.exec(L);)j[Qt[1].toLowerCase()+" "]=(j[Qt[1].toLowerCase()+" "]||[]).concat(Qt[2]);Qt=j[jt.toLowerCase()+" "]}return Qt==null?null:Qt.join(", ")},getAllResponseHeaders:function(){return te?L:null},setRequestHeader:function(jt,Qt){return te==null&&(jt=jr[jt.toLowerCase()]=jr[jt.toLowerCase()]||jt,un[jt]=Qt),this},overrideMimeType:function(jt){return te==null&&(Te.mimeType=jt),this},statusCode:function(jt){var Qt;if(jt)if(te)Lt.always(jt[Lt.status]);else for(Qt in jt)Rn[Qt]=[Rn[Qt],jt[Qt]];return this},abort:function(jt){var Qt=jt||Br;return C&&C.abort(Qt),$r(0,Qt),this}};if(Tt.promise(Lt),Te.url=((h||Te.url||En.href)+"").replace(rn,En.protocol+"//"),Te.type=b.method||b.type||Te.method||Te.type,Te.dataTypes=(Te.dataType||"*").toLowerCase().match(Qe)||[""],Te.crossDomain==null){ae=R.createElement("a");try{ae.href=Te.url,ae.href=ae.href,Te.crossDomain=ti.protocol+"//"+ti.host!=ae.protocol+"//"+ae.host}catch{Te.crossDomain=!0}}if(Te.data&&Te.processData&&typeof Te.data!="string"&&(Te.data=S.param(Te.data,Te.traditional)),bi(Gt,Te,b,Lt),te)return Lt;me=S.event&&Te.global,me&&S.active++===0&&S.event.trigger("ajaxStart"),Te.type=Te.type.toUpperCase(),Te.hasContent=!os.test(Te.type),_=Te.url.replace(Sr,""),Te.hasContent?Te.data&&Te.processData&&(Te.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(Te.data=Te.data.replace(is,"+")):(Le=Te.url.slice(_.length),Te.data&&(Te.processData||typeof Te.data=="string")&&(_+=(lr.test(_)?"&":"?")+Te.data,delete Te.data),Te.cache===!1&&(_=_.replace(za,"$1"),Le=(lr.test(_)?"&":"?")+"_="+ei.guid+++Le),Te.url=_+Le),Te.ifModified&&(S.lastModified[_]&&Lt.setRequestHeader("If-Modified-Since",S.lastModified[_]),S.etag[_]&&Lt.setRequestHeader("If-None-Match",S.etag[_])),(Te.data&&Te.hasContent&&Te.contentType!==!1||b.contentType)&&Lt.setRequestHeader("Content-Type",Te.contentType),Lt.setRequestHeader("Accept",Te.dataTypes[0]&&Te.accepts[Te.dataTypes[0]]?Te.accepts[Te.dataTypes[0]]+(Te.dataTypes[0]!=="*"?", "+Ii+"; q=0.01":""):Te.accepts["*"]);for(Oe in Te.headers)Lt.setRequestHeader(Oe,Te.headers[Oe]);if(Te.beforeSend&&(Te.beforeSend.call(We,Lt,Te)===!1||te))return Lt.abort();if(Br="abort",Et.add(Te.complete),Lt.done(Te.success),Lt.fail(Te.error),C=bi(Kt,Te,b,Lt),!C)$r(-1,"No Transport");else{if(Lt.readyState=1,me&<.trigger("ajaxSend",[Lt,Te]),te)return Lt;Te.async&&Te.timeout>0&&(V=e.setTimeout(function(){Lt.abort("timeout")},Te.timeout));try{te=!1,C.send(un,$r)}catch(jt){if(te)throw jt;$r(-1,jt)}}function $r(jt,Qt,po,go){var Tr,D,M,W,Q,we=Qt;te||(te=!0,V&&e.clearTimeout(V),C=void 0,L=go||"",Lt.readyState=jt>0?4:0,Tr=jt>=200&&jt<300||jt===304,po&&(W=Bs(Te,Lt,po)),!Tr&&S.inArray("script",Te.dataTypes)>-1&&S.inArray("json",Te.dataTypes)<0&&(Te.converters["text script"]=function(){}),W=fo(Te,W,Lt,Tr),Tr?(Te.ifModified&&(Q=Lt.getResponseHeader("Last-Modified"),Q&&(S.lastModified[_]=Q),Q=Lt.getResponseHeader("etag"),Q&&(S.etag[_]=Q)),jt===204||Te.type==="HEAD"?we="nocontent":jt===304?we="notmodified":(we=W.state,D=W.data,M=W.error,Tr=!M)):(M=we,(jt||!we)&&(we="error",jt<0&&(jt=0))),Lt.status=jt,Lt.statusText=(Qt||we)+"",Tr?Tt.resolveWith(We,[D,we,Lt]):Tt.rejectWith(We,[Lt,we,M]),Lt.statusCode(Rn),Rn=void 0,me&<.trigger(Tr?"ajaxSuccess":"ajaxError",[Lt,Te,Tr?D:M]),Et.fireWith(We,[Lt,we]),me&&(lt.trigger("ajaxComplete",[Lt,Te]),--S.active||S.event.trigger("ajaxStop")))}return Lt},getJSON:function(h,b,C){return S.get(h,b,C,"json")},getScript:function(h,b){return S.get(h,void 0,b,"script")}}),S.each(["get","post"],function(h,b){S[b]=function(C,_,L,j){return A(_)&&(j=j||L,L=_,_=void 0),S.ajax(S.extend({url:C,type:b,dataType:j,data:_,success:L},S.isPlainObject(C)&&C))}}),S.ajaxPrefilter(function(h){var b;for(b in h.headers)b.toLowerCase()==="content-type"&&(h.contentType=h.headers[b]||"")}),S._evalUrl=function(h,b,C){return S.ajax({url:h,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(_){S.globalEval(_,b,C)}})},S.fn.extend({wrapAll:function(h){var b;return this[0]&&(A(h)&&(h=h.call(this[0])),b=S(h,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){for(var C=this;C.firstElementChild;)C=C.firstElementChild;return C}).append(this)),this},wrapInner:function(h){return A(h)?this.each(function(b){S(this).wrapInner(h.call(this,b))}):this.each(function(){var b=S(this),C=b.contents();C.length?C.wrapAll(h):b.append(h)})},wrap:function(h){var b=A(h);return this.each(function(C){S(this).wrapAll(b?h.call(this,C):h)})},unwrap:function(h){return this.parent(h).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(h){return!S.expr.pseudos.visible(h)},S.expr.pseudos.visible=function(h){return!!(h.offsetWidth||h.offsetHeight||h.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch{}};var ua={0:200,1223:204},ln=S.ajaxSettings.xhr();I.cors=!!ln&&"withCredentials"in ln,I.ajax=ln=!!ln,S.ajaxTransport(function(h){var b,C;if(I.cors||ln&&!h.crossDomain)return{send:function(_,L){var j,V=h.xhr();if(V.open(h.type,h.url,h.async,h.username,h.password),h.xhrFields)for(j in h.xhrFields)V[j]=h.xhrFields[j];h.mimeType&&V.overrideMimeType&&V.overrideMimeType(h.mimeType),!h.crossDomain&&!_["X-Requested-With"]&&(_["X-Requested-With"]="XMLHttpRequest");for(j in _)V.setRequestHeader(j,_[j]);b=function(ae){return function(){b&&(b=C=V.onload=V.onerror=V.onabort=V.ontimeout=V.onreadystatechange=null,ae==="abort"?V.abort():ae==="error"?typeof V.status!="number"?L(0,"error"):L(V.status,V.statusText):L(ua[V.status]||V.status,V.statusText,(V.responseType||"text")!=="text"||typeof V.responseText!="string"?{binary:V.response}:{text:V.responseText},V.getAllResponseHeaders()))}},V.onload=b(),C=V.onerror=V.ontimeout=b("error"),V.onabort!==void 0?V.onabort=C:V.onreadystatechange=function(){V.readyState===4&&e.setTimeout(function(){b&&C()})},b=b("abort");try{V.send(h.hasContent&&h.data||null)}catch(ae){if(b)throw ae}},abort:function(){b&&b()}}}),S.ajaxPrefilter(function(h){h.crossDomain&&(h.contents.script=!1)}),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(h){return S.globalEval(h),h}}}),S.ajaxPrefilter("script",function(h){h.cache===void 0&&(h.cache=!1),h.crossDomain&&(h.type="GET")}),S.ajaxTransport("script",function(h){if(h.crossDomain||h.scriptAttrs){var b,C;return{send:function(_,L){b=S("<script>").attr(h.scriptAttrs||{}).prop({charset:h.scriptCharset,src:h.url}).on("load error",C=function(j){b.remove(),C=null,j&&L(j.type==="error"?404:200,j.type)}),R.head.appendChild(b[0])},abort:function(){C&&C()}}}});var Lo=[],wi=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var h=Lo.pop()||S.expando+"_"+ei.guid++;return this[h]=!0,h}}),S.ajaxPrefilter("json jsonp",function(h,b,C){var _,L,j,V=h.jsonp!==!1&&(wi.test(h.url)?"url":typeof h.data=="string"&&(h.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&wi.test(h.data)&&"data");if(V||h.dataTypes[0]==="jsonp")return _=h.jsonpCallback=A(h.jsonpCallback)?h.jsonpCallback():h.jsonpCallback,V?h[V]=h[V].replace(wi,"$1"+_):h.jsonp!==!1&&(h.url+=(lr.test(h.url)?"&":"?")+h.jsonp+"="+_),h.converters["script json"]=function(){return j||S.error(_+" was not called"),j[0]},h.dataTypes[0]="json",L=e[_],e[_]=function(){j=arguments},C.always(function(){L===void 0?S(e).removeProp(_):e[_]=L,h[_]&&(h.jsonpCallback=b.jsonpCallback,Lo.push(_)),j&&A(L)&&L(j[0]),j=L=void 0}),"script"}),I.createHTMLDocument=function(){var h=R.implementation.createHTMLDocument("").body;return h.innerHTML="<form></form><form></form>",h.childNodes.length===2}(),S.parseHTML=function(h,b,C){if(typeof h!="string")return[];typeof b=="boolean"&&(C=b,b=!1);var _,L,j;return b||(I.createHTMLDocument?(b=R.implementation.createHTMLDocument(""),_=b.createElement("base"),_.href=R.location.href,b.head.appendChild(_)):b=R),L=De.exec(h),j=!C&&[],L?[b.createElement(L[1])]:(L=Tn([h],b,j),j&&j.length&&S(j).remove(),S.merge([],L.childNodes))},S.fn.load=function(h,b,C){var _,L,j,V=this,ae=h.indexOf(" ");return ae>-1&&(_=pt(h.slice(ae)),h=h.slice(0,ae)),A(b)?(C=b,b=void 0):b&&typeof b=="object"&&(L="POST"),V.length>0&&S.ajax({url:h,type:L||"GET",dataType:"html",data:b}).done(function(te){j=arguments,V.html(_?S("<div>").append(S.parseHTML(te)).find(_):te)}).always(C&&function(te,me){V.each(function(){C.apply(this,j||[te.responseText,me,te])})}),this},S.expr.pseudos.animated=function(h){return S.grep(S.timers,function(b){return h===b.elem}).length},S.offset={setOffset:function(h,b,C){var _,L,j,V,ae,te,me,Oe=S.css(h,"position"),Le=S(h),Te={};Oe==="static"&&(h.style.position="relative"),ae=Le.offset(),j=S.css(h,"top"),te=S.css(h,"left"),me=(Oe==="absolute"||Oe==="fixed")&&(j+te).indexOf("auto")>-1,me?(_=Le.position(),V=_.top,L=_.left):(V=parseFloat(j)||0,L=parseFloat(te)||0),A(b)&&(b=b.call(h,C,S.extend({},ae))),b.top!=null&&(Te.top=b.top-ae.top+V),b.left!=null&&(Te.left=b.left-ae.left+L),"using"in b?b.using.call(h,Te):Le.css(Te)}},S.fn.extend({offset:function(h){if(arguments.length)return h===void 0?this:this.each(function(L){S.offset.setOffset(this,h,L)});var b,C,_=this[0];if(_)return _.getClientRects().length?(b=_.getBoundingClientRect(),C=_.ownerDocument.defaultView,{top:b.top+C.pageYOffset,left:b.left+C.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var h,b,C,_=this[0],L={top:0,left:0};if(S.css(_,"position")==="fixed")b=_.getBoundingClientRect();else{for(b=this.offset(),C=_.ownerDocument,h=_.offsetParent||C.documentElement;h&&(h===C.body||h===C.documentElement)&&S.css(h,"position")==="static";)h=h.parentNode;h&&h!==_&&h.nodeType===1&&(L=S(h).offset(),L.top+=S.css(h,"borderTopWidth",!0),L.left+=S.css(h,"borderLeftWidth",!0))}return{top:b.top-L.top-S.css(_,"marginTop",!0),left:b.left-L.left-S.css(_,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var h=this.offsetParent;h&&S.css(h,"position")==="static";)h=h.offsetParent;return h||Rr})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(h,b){var C=b==="pageYOffset";S.fn[h]=function(_){return Sn(this,function(L,j,V){var ae;if(F(L)?ae=L:L.nodeType===9&&(ae=L.defaultView),V===void 0)return ae?ae[b]:L[j];ae?ae.scrollTo(C?ae.pageXOffset:V,C?V:ae.pageYOffset):L[j]=V},h,_,arguments.length)}}),S.each(["top","left"],function(h,b){S.cssHooks[b]=ar(I.pixelPosition,function(C,_){if(_)return _=Oi(C,b),Jr.test(_)?S(C).position()[b]+"px":_})}),S.each({Height:"height",Width:"width"},function(h,b){S.each({padding:"inner"+h,content:b,"":"outer"+h},function(C,_){S.fn[_]=function(L,j){var V=arguments.length&&(C||typeof L!="boolean"),ae=C||(L===!0||j===!0?"margin":"border");return Sn(this,function(te,me,Oe){var Le;return F(te)?_.indexOf("outer")===0?te["inner"+h]:te.document.documentElement["client"+h]:te.nodeType===9?(Le=te.documentElement,Math.max(te.body["scroll"+h],Le["scroll"+h],te.body["offset"+h],Le["offset"+h],Le["client"+h])):Oe===void 0?S.css(te,me,ae):S.style(te,me,Oe,ae)},b,V?L:void 0,V)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(h,b){S.fn[b]=function(C){return this.on(b,C)}}),S.fn.extend({bind:function(h,b,C){return this.on(h,null,b,C)},unbind:function(h,b){return this.off(h,null,b)},delegate:function(h,b,C,_){return this.on(b,h,C,_)},undelegate:function(h,b,C){return arguments.length===1?this.off(h,"**"):this.off(b,h||"**",C)},hover:function(h,b){return this.on("mouseenter",h).on("mouseleave",b||h)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(h,b){S.fn[b]=function(C,_){return arguments.length>0?this.on(b,null,C,_):this.trigger(b)}});var ca=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;S.proxy=function(h,b){var C,_,L;if(typeof b=="string"&&(C=h[b],b=h,h=C),!!A(h))return _=o.call(arguments,2),L=function(){return h.apply(b||this,_.concat(o.call(arguments)))},L.guid=h.guid=h.guid||S.guid++,L},S.holdReady=function(h){h?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=ie,S.isFunction=A,S.isWindow=F,S.camelCase=sn,S.type=ne,S.now=Date.now,S.isNumeric=function(h){var b=S.type(h);return(b==="number"||b==="string")&&!isNaN(h-parseFloat(h))},S.trim=function(h){return h==null?"":(h+"").replace(ca,"$1")};var ho=e.jQuery,cr=e.$;return S.noConflict=function(h){return e.$===S&&(e.$=cr),h&&e.jQuery===S&&(e.jQuery=ho),S},typeof n>"u"&&(e.jQuery=e.$=S),S})})(f_);var d_=f_.exports;const V6=Eu(d_);var H6={exports:{}};/**
|
|
175
|
+
* @version: 3.1
|
|
176
|
+
* @author: Dan Grossman http://www.dangrossman.info/
|
|
177
|
+
* @copyright: Copyright (c) 2012-2019 Dan Grossman. All rights reserved.
|
|
178
|
+
* @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php
|
|
179
|
+
* @website: http://www.daterangepicker.com/
|
|
180
|
+
*/(function(t){(function(e,n){if(t.exports){var r=typeof window<"u"?window.jQuery:void 0;r||(r=d_,r.fn||(r.fn={}));var i=typeof window<"u"&&typeof window.moment<"u"?window.moment:Lm;t.exports=n(i,r)}else e.daterangepicker=n(e.moment,e.jQuery)})(Di,function(e,n){var r=function(i,o,a){if(this.parentEl="body",this.element=n(i),this.startDate=e().startOf("day"),this.endDate=e().endOf("day"),this.minDate=!1,this.maxDate=!1,this.maxSpan=!1,this.autoApply=!1,this.singleDatePicker=!1,this.showDropdowns=!1,this.minYear=e().subtract(100,"year").format("YYYY"),this.maxYear=e().add(100,"year").format("YYYY"),this.showWeekNumbers=!1,this.showISOWeekNumbers=!1,this.showCustomRangeLabel=!0,this.timePicker=!1,this.timePicker24Hour=!1,this.timePickerIncrement=1,this.timePickerSeconds=!1,this.linkedCalendars=!0,this.autoUpdateInput=!0,this.alwaysShowCalendars=!1,this.ranges={},this.opens="right",this.element.hasClass("pull-right")&&(this.opens="left"),this.drops="down",this.element.hasClass("dropup")&&(this.drops="up"),this.buttonClasses="btn btn-sm",this.applyButtonClasses="btn-primary",this.cancelButtonClasses="btn-default",this.locale={direction:"ltr",format:e.localeData().longDateFormat("L"),separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:e.weekdaysMin(),monthNames:e.monthsShort(),firstDay:e.localeData().firstDayOfWeek()},this.callback=function(){},this.isShowing=!1,this.leftCalendar={},this.rightCalendar={},(typeof o!="object"||o===null)&&(o={}),o=n.extend(this.element.data(),o),typeof o.template!="string"&&!(o.template instanceof n)&&(o.template='<div class="daterangepicker"><div class="ranges"></div><div class="drp-calendar left"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-calendar right"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-buttons"><span class="drp-selected"></span><button class="cancelBtn" type="button"></button><button class="applyBtn" disabled="disabled" type="button"></button> </div></div>'),this.parentEl=o.parentEl&&n(o.parentEl).length?n(o.parentEl):n(this.parentEl),this.container=n(o.template).appendTo(this.parentEl),typeof o.locale=="object"&&(typeof o.locale.direction=="string"&&(this.locale.direction=o.locale.direction),typeof o.locale.format=="string"&&(this.locale.format=o.locale.format),typeof o.locale.separator=="string"&&(this.locale.separator=o.locale.separator),typeof o.locale.daysOfWeek=="object"&&(this.locale.daysOfWeek=o.locale.daysOfWeek.slice()),typeof o.locale.monthNames=="object"&&(this.locale.monthNames=o.locale.monthNames.slice()),typeof o.locale.firstDay=="number"&&(this.locale.firstDay=o.locale.firstDay),typeof o.locale.applyLabel=="string"&&(this.locale.applyLabel=o.locale.applyLabel),typeof o.locale.cancelLabel=="string"&&(this.locale.cancelLabel=o.locale.cancelLabel),typeof o.locale.weekLabel=="string"&&(this.locale.weekLabel=o.locale.weekLabel),typeof o.locale.customRangeLabel=="string")){var c=document.createElement("textarea");c.innerHTML=o.locale.customRangeLabel;var f=c.value;this.locale.customRangeLabel=f}if(this.container.addClass(this.locale.direction),typeof o.startDate=="string"&&(this.startDate=e(o.startDate,this.locale.format)),typeof o.endDate=="string"&&(this.endDate=e(o.endDate,this.locale.format)),typeof o.minDate=="string"&&(this.minDate=e(o.minDate,this.locale.format)),typeof o.maxDate=="string"&&(this.maxDate=e(o.maxDate,this.locale.format)),typeof o.startDate=="object"&&(this.startDate=e(o.startDate)),typeof o.endDate=="object"&&(this.endDate=e(o.endDate)),typeof o.minDate=="object"&&(this.minDate=e(o.minDate)),typeof o.maxDate=="object"&&(this.maxDate=e(o.maxDate)),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),typeof o.applyButtonClasses=="string"&&(this.applyButtonClasses=o.applyButtonClasses),typeof o.applyClass=="string"&&(this.applyButtonClasses=o.applyClass),typeof o.cancelButtonClasses=="string"&&(this.cancelButtonClasses=o.cancelButtonClasses),typeof o.cancelClass=="string"&&(this.cancelButtonClasses=o.cancelClass),typeof o.maxSpan=="object"&&(this.maxSpan=o.maxSpan),typeof o.dateLimit=="object"&&(this.maxSpan=o.dateLimit),typeof o.opens=="string"&&(this.opens=o.opens),typeof o.drops=="string"&&(this.drops=o.drops),typeof o.showWeekNumbers=="boolean"&&(this.showWeekNumbers=o.showWeekNumbers),typeof o.showISOWeekNumbers=="boolean"&&(this.showISOWeekNumbers=o.showISOWeekNumbers),typeof o.buttonClasses=="string"&&(this.buttonClasses=o.buttonClasses),typeof o.buttonClasses=="object"&&(this.buttonClasses=o.buttonClasses.join(" ")),typeof o.showDropdowns=="boolean"&&(this.showDropdowns=o.showDropdowns),typeof o.minYear=="number"&&(this.minYear=o.minYear),typeof o.maxYear=="number"&&(this.maxYear=o.maxYear),typeof o.showCustomRangeLabel=="boolean"&&(this.showCustomRangeLabel=o.showCustomRangeLabel),typeof o.singleDatePicker=="boolean"&&(this.singleDatePicker=o.singleDatePicker,this.singleDatePicker&&(this.endDate=this.startDate.clone())),typeof o.timePicker=="boolean"&&(this.timePicker=o.timePicker),typeof o.timePickerSeconds=="boolean"&&(this.timePickerSeconds=o.timePickerSeconds),typeof o.timePickerIncrement=="number"&&(this.timePickerIncrement=o.timePickerIncrement),typeof o.timePicker24Hour=="boolean"&&(this.timePicker24Hour=o.timePicker24Hour),typeof o.autoApply=="boolean"&&(this.autoApply=o.autoApply),typeof o.autoUpdateInput=="boolean"&&(this.autoUpdateInput=o.autoUpdateInput),typeof o.linkedCalendars=="boolean"&&(this.linkedCalendars=o.linkedCalendars),typeof o.isInvalidDate=="function"&&(this.isInvalidDate=o.isInvalidDate),typeof o.isCustomDate=="function"&&(this.isCustomDate=o.isCustomDate),typeof o.alwaysShowCalendars=="boolean"&&(this.alwaysShowCalendars=o.alwaysShowCalendars),this.locale.firstDay!=0)for(var p=this.locale.firstDay;p>0;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),p--;var y,m,T;if(typeof o.startDate>"u"&&typeof o.endDate>"u"&&n(this.element).is(":text")){var E=n(this.element).val(),I=E.split(this.locale.separator);y=m=null,I.length==2?(y=e(I[0],this.locale.format),m=e(I[1],this.locale.format)):this.singleDatePicker&&E!==""&&(y=e(E,this.locale.format),m=e(E,this.locale.format)),y!==null&&m!==null&&(this.setStartDate(y),this.setEndDate(m))}if(typeof o.ranges=="object"){for(T in o.ranges){typeof o.ranges[T][0]=="string"?y=e(o.ranges[T][0],this.locale.format):y=e(o.ranges[T][0]),typeof o.ranges[T][1]=="string"?m=e(o.ranges[T][1],this.locale.format):m=e(o.ranges[T][1]),this.minDate&&y.isBefore(this.minDate)&&(y=this.minDate.clone());var A=this.maxDate;if(this.maxSpan&&A&&y.clone().add(this.maxSpan).isAfter(A)&&(A=y.clone().add(this.maxSpan)),A&&m.isAfter(A)&&(m=A.clone()),!(this.minDate&&m.isBefore(this.minDate,this.timepicker?"minute":"day")||A&&y.isAfter(A,this.timepicker?"minute":"day"))){var c=document.createElement("textarea");c.innerHTML=T;var f=c.value;this.ranges[f]=[y,m]}}var F="<ul>";for(T in this.ranges)F+='<li data-range-key="'+T+'">'+T+"</li>";this.showCustomRangeLabel&&(F+='<li data-range-key="'+this.locale.customRangeLabel+'">'+this.locale.customRangeLabel+"</li>"),F+="</ul>",this.container.find(".ranges").prepend(F)}typeof a=="function"&&(this.callback=a),this.timePicker||(this.startDate=this.startDate.startOf("day"),this.endDate=this.endDate.endOf("day"),this.container.find(".calendar-time").hide()),this.timePicker&&this.autoApply&&(this.autoApply=!1),this.autoApply&&this.container.addClass("auto-apply"),typeof o.ranges=="object"&&this.container.addClass("show-ranges"),this.singleDatePicker&&(this.container.addClass("single"),this.container.find(".drp-calendar.left").addClass("single"),this.container.find(".drp-calendar.left").show(),this.container.find(".drp-calendar.right").hide(),!this.timePicker&&this.autoApply&&this.container.addClass("auto-apply")),(typeof o.ranges>"u"&&!this.singleDatePicker||this.alwaysShowCalendars)&&this.container.addClass("show-calendar"),this.container.addClass("opens"+this.opens),this.container.find(".applyBtn, .cancelBtn").addClass(this.buttonClasses),this.applyButtonClasses.length&&this.container.find(".applyBtn").addClass(this.applyButtonClasses),this.cancelButtonClasses.length&&this.container.find(".cancelBtn").addClass(this.cancelButtonClasses),this.container.find(".applyBtn").html(this.locale.applyLabel),this.container.find(".cancelBtn").html(this.locale.cancelLabel),this.container.find(".drp-calendar").on("click.daterangepicker",".prev",n.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",n.proxy(this.clickNext,this)).on("mousedown.daterangepicker","td.available",n.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",n.proxy(this.hoverDate,this)).on("change.daterangepicker","select.yearselect",n.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",n.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",n.proxy(this.timeChanged,this)),this.container.find(".ranges").on("click.daterangepicker","li",n.proxy(this.clickRange,this)),this.container.find(".drp-buttons").on("click.daterangepicker","button.applyBtn",n.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",n.proxy(this.clickCancel,this)),this.element.is("input")||this.element.is("button")?this.element.on({"click.daterangepicker":n.proxy(this.show,this),"focus.daterangepicker":n.proxy(this.show,this),"keyup.daterangepicker":n.proxy(this.elementChanged,this),"keydown.daterangepicker":n.proxy(this.keydown,this)}):(this.element.on("click.daterangepicker",n.proxy(this.toggle,this)),this.element.on("keydown.daterangepicker",n.proxy(this.toggle,this))),this.updateElement()};return r.prototype={constructor:r,setStartDate:function(i){typeof i=="string"&&(this.startDate=e(i,this.locale.format)),typeof i=="object"&&(this.startDate=e(i)),this.timePicker||(this.startDate=this.startDate.startOf("day")),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.maxDate&&this.startDate.isAfter(this.maxDate)&&(this.startDate=this.maxDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.floor(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.isShowing||this.updateElement(),this.updateMonthsInView()},setEndDate:function(i){typeof i=="string"&&(this.endDate=e(i,this.locale.format)),typeof i=="object"&&(this.endDate=e(i)),this.timePicker||(this.endDate=this.endDate.endOf("day")),this.timePicker&&this.timePickerIncrement&&this.endDate.minute(Math.round(this.endDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.endDate.isBefore(this.startDate)&&(this.endDate=this.startDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),this.maxSpan&&this.startDate.clone().add(this.maxSpan).isBefore(this.endDate)&&(this.endDate=this.startDate.clone().add(this.maxSpan)),this.previousRightTime=this.endDate.clone(),this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.isShowing||this.updateElement(),this.updateMonthsInView()},isInvalidDate:function(){return!1},isCustomDate:function(){return!1},updateView:function(){this.timePicker&&(this.renderTimePicker("left"),this.renderTimePicker("right"),this.endDate?this.container.find(".right .calendar-time select").prop("disabled",!1).removeClass("disabled"):this.container.find(".right .calendar-time select").prop("disabled",!0).addClass("disabled")),this.endDate&&this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.updateMonthsInView(),this.updateCalendars(),this.updateFormInputs()},updateMonthsInView:function(){if(this.endDate){if(!this.singleDatePicker&&this.leftCalendar.month&&this.rightCalendar.month&&(this.startDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.startDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM"))&&(this.endDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.endDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM")))return;this.leftCalendar.month=this.startDate.clone().date(2),!this.linkedCalendars&&(this.endDate.month()!=this.startDate.month()||this.endDate.year()!=this.startDate.year())?this.rightCalendar.month=this.endDate.clone().date(2):this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month")}else this.leftCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&this.rightCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&(this.leftCalendar.month=this.startDate.clone().date(2),this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"));this.maxDate&&this.linkedCalendars&&!this.singleDatePicker&&this.rightCalendar.month>this.maxDate&&(this.rightCalendar.month=this.maxDate.clone().date(2),this.leftCalendar.month=this.maxDate.clone().date(2).subtract(1,"month"))},updateCalendars:function(){if(this.timePicker){var i,o,a;if(this.endDate){if(i=parseInt(this.container.find(".left .hourselect").val(),10),o=parseInt(this.container.find(".left .minuteselect").val(),10),isNaN(o)&&(o=parseInt(this.container.find(".left .minuteselect option:last").val(),10)),a=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,!this.timePicker24Hour){var c=this.container.find(".left .ampmselect").val();c==="PM"&&i<12&&(i+=12),c==="AM"&&i===12&&(i=0)}}else if(i=parseInt(this.container.find(".right .hourselect").val(),10),o=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(o)&&(o=parseInt(this.container.find(".right .minuteselect option:last").val(),10)),a=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,!this.timePicker24Hour){var c=this.container.find(".right .ampmselect").val();c==="PM"&&i<12&&(i+=12),c==="AM"&&i===12&&(i=0)}this.leftCalendar.month.hour(i).minute(o).second(a),this.rightCalendar.month.hour(i).minute(o).second(a)}this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),this.endDate!=null&&this.calculateChosenLabel()},renderCalendar:function(i){var R=i=="left"?this.leftCalendar:this.rightCalendar,o=R.month.month(),a=R.month.year(),c=R.month.hour(),f=R.month.minute(),p=R.month.second(),y=e([a,o]).daysInMonth(),m=e([a,o,1]),T=e([a,o,y]),E=e(m).subtract(1,"month").month(),I=e(m).subtract(1,"month").year(),A=e([I,E]).daysInMonth(),F=m.day(),R=[];R.firstDay=m,R.lastDay=T;for(var U=0;U<6;U++)R[U]=[];var H=A-F+this.locale.firstDay+1;H>A&&(H-=7),F==this.locale.firstDay&&(H=A-6);for(var ne=e([I,E,H,12,f,p]),Z,ce,U=0,Z=0,ce=0;U<42;U++,Z++,ne=e(ne).add(24,"hour"))U>0&&Z%7===0&&(Z=0,ce++),R[ce][Z]=ne.clone().hour(c).minute(f).second(p),ne.hour(12),this.minDate&&R[ce][Z].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&R[ce][Z].isBefore(this.minDate)&&i=="left"&&(R[ce][Z]=this.minDate.clone()),this.maxDate&&R[ce][Z].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&R[ce][Z].isAfter(this.maxDate)&&i=="right"&&(R[ce][Z]=this.maxDate.clone());i=="left"?this.leftCalendar.calendar=R:this.rightCalendar.calendar=R;var S=i=="left"?this.minDate:this.startDate,re=this.maxDate;i=="left"?this.startDate:this.endDate,this.locale.direction=="ltr";var ie='<table class="table-condensed">';ie+="<thead>",ie+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(ie+="<th></th>"),(!S||S.isBefore(R.firstDay))&&(!this.linkedCalendars||i=="left")?ie+='<th class="prev available"><span></span></th>':ie+="<th></th>";var Pe=this.locale.monthNames[R[1][1].month()]+R[1][1].format(" YYYY");if(this.showDropdowns){for(var Ke=R[1][1].month(),$e=R[1][1].year(),tt=re&&re.year()||this.maxYear,nt=S&&S.year()||this.minYear,ge=$e==nt,_e=$e==tt,Re='<select class="monthselect">',Ae=0;Ae<12;Ae++)(!ge||S&&Ae>=S.month())&&(!_e||re&&Ae<=re.month())?Re+="<option value='"+Ae+"'"+(Ae===Ke?" selected='selected'":"")+">"+this.locale.monthNames[Ae]+"</option>":Re+="<option value='"+Ae+"'"+(Ae===Ke?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[Ae]+"</option>";Re+="</select>";for(var et='<select class="yearselect">',ye=nt;ye<=tt;ye++)et+='<option value="'+ye+'"'+(ye===$e?' selected="selected"':"")+">"+ye+"</option>";et+="</select>",Pe=Re+et}if(ie+='<th colspan="5" class="month">'+Pe+"</th>",(!re||re.isAfter(R.lastDay))&&(!this.linkedCalendars||i=="right"||this.singleDatePicker)?ie+='<th class="next available"><span></span></th>':ie+="<th></th>",ie+="</tr>",ie+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(ie+='<th class="week">'+this.locale.weekLabel+"</th>"),n.each(this.locale.daysOfWeek,function(Ue,it){ie+="<th>"+it+"</th>"}),ie+="</tr>",ie+="</thead>",ie+="<tbody>",this.endDate==null&&this.maxSpan){var ue=this.startDate.clone().add(this.maxSpan).endOf("day");(!re||ue.isBefore(re))&&(re=ue)}for(var ce=0;ce<6;ce++){ie+="<tr>",this.showWeekNumbers?ie+='<td class="week">'+R[ce][0].week()+"</td>":this.showISOWeekNumbers&&(ie+='<td class="week">'+R[ce][0].isoWeek()+"</td>");for(var Z=0;Z<7;Z++){var De=[];R[ce][Z].isSame(new Date,"day")&&De.push("today"),R[ce][Z].isoWeekday()>5&&De.push("weekend"),R[ce][Z].month()!=R[1][1].month()&&De.push("off","ends"),this.minDate&&R[ce][Z].isBefore(this.minDate,"day")&&De.push("off","disabled"),re&&R[ce][Z].isAfter(re,"day")&&De.push("off","disabled"),this.isInvalidDate(R[ce][Z])&&De.push("off","disabled"),R[ce][Z].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&De.push("active","start-date"),this.endDate!=null&&R[ce][Z].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&De.push("active","end-date"),this.endDate!=null&&R[ce][Z]>this.startDate&&R[ce][Z]<this.endDate&&De.push("in-range");var je=this.isCustomDate(R[ce][Z]);je!==!1&&(typeof je=="string"?De.push(je):Array.prototype.push.apply(De,je));for(var Ie="",Be=!1,U=0;U<De.length;U++)Ie+=De[U]+" ",De[U]=="disabled"&&(Be=!0);Be||(Ie+="available"),ie+='<td class="'+Ie.replace(/^\s+|\s+$/g,"")+'" data-title="r'+ce+"c"+Z+'">'+R[ce][Z].date()+"</td>"}ie+="</tr>"}ie+="</tbody>",ie+="</table>",this.container.find(".drp-calendar."+i+" .calendar-table").html(ie)},renderTimePicker:function(i){if(!(i=="right"&&!this.endDate)){var o,a,c,f=this.maxDate;if(this.maxSpan&&(!this.maxDate||this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate))&&(f=this.startDate.clone().add(this.maxSpan)),i=="left")a=this.startDate.clone(),c=this.minDate;else if(i=="right"){a=this.endDate.clone(),c=this.startDate;var p=this.container.find(".drp-calendar.right .calendar-time");if(p.html()!=""&&(a.hour(isNaN(a.hour())?p.find(".hourselect option:selected").val():a.hour()),a.minute(isNaN(a.minute())?p.find(".minuteselect option:selected").val():a.minute()),a.second(isNaN(a.second())?p.find(".secondselect option:selected").val():a.second()),!this.timePicker24Hour)){var y=p.find(".ampmselect option:selected").val();y==="PM"&&a.hour()<12&&a.hour(a.hour()+12),y==="AM"&&a.hour()===12&&a.hour(0)}a.isBefore(this.startDate)&&(a=this.startDate.clone()),f&&a.isAfter(f)&&(a=f.clone())}o='<select class="hourselect">';for(var m=this.timePicker24Hour?0:1,T=this.timePicker24Hour?23:12,E=m;E<=T;E++){var I=E;this.timePicker24Hour||(I=a.hour()>=12?E==12?12:E+12:E==12?0:E);var A=a.clone().hour(I),F=!1;c&&A.minute(59).isBefore(c)&&(F=!0),f&&A.minute(0).isAfter(f)&&(F=!0),I==a.hour()&&!F?o+='<option value="'+E+'" selected="selected">'+E+"</option>":F?o+='<option value="'+E+'" disabled="disabled" class="disabled">'+E+"</option>":o+='<option value="'+E+'">'+E+"</option>"}o+="</select> ",o+=': <select class="minuteselect">';for(var E=0;E<60;E+=this.timePickerIncrement){var R=E<10?"0"+E:E,A=a.clone().minute(E),F=!1;c&&A.second(59).isBefore(c)&&(F=!0),f&&A.second(0).isAfter(f)&&(F=!0),a.minute()==E&&!F?o+='<option value="'+E+'" selected="selected">'+R+"</option>":F?o+='<option value="'+E+'" disabled="disabled" class="disabled">'+R+"</option>":o+='<option value="'+E+'">'+R+"</option>"}if(o+="</select> ",this.timePickerSeconds){o+=': <select class="secondselect">';for(var E=0;E<60;E++){var R=E<10?"0"+E:E,A=a.clone().second(E),F=!1;c&&A.isBefore(c)&&(F=!0),f&&A.isAfter(f)&&(F=!0),a.second()==E&&!F?o+='<option value="'+E+'" selected="selected">'+R+"</option>":F?o+='<option value="'+E+'" disabled="disabled" class="disabled">'+R+"</option>":o+='<option value="'+E+'">'+R+"</option>"}o+="</select> "}if(!this.timePicker24Hour){o+='<select class="ampmselect">';var U="",H="";c&&a.clone().hour(12).minute(0).second(0).isBefore(c)&&(U=' disabled="disabled" class="disabled"'),f&&a.clone().hour(0).minute(0).second(0).isAfter(f)&&(H=' disabled="disabled" class="disabled"'),a.hour()>=12?o+='<option value="AM"'+U+'>AM</option><option value="PM" selected="selected"'+H+">PM</option>":o+='<option value="AM" selected="selected"'+U+'>AM</option><option value="PM"'+H+">PM</option>",o+="</select>"}this.container.find(".drp-calendar."+i+" .calendar-time").html(o)}},updateFormInputs:function(){this.singleDatePicker||this.endDate&&(this.startDate.isBefore(this.endDate)||this.startDate.isSame(this.endDate))?this.container.find("button.applyBtn").prop("disabled",!1):this.container.find("button.applyBtn").prop("disabled",!0)},move:function(){var i={top:0,left:0},o,a=this.drops,c=n(window).width();switch(this.parentEl.is("body")||(i={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},c=this.parentEl[0].clientWidth+this.parentEl.offset().left),a){case"auto":o=this.element.offset().top+this.element.outerHeight()-i.top,o+this.container.outerHeight()>=this.parentEl[0].scrollHeight&&(o=this.element.offset().top-this.container.outerHeight()-i.top,a="up");break;case"up":o=this.element.offset().top-this.container.outerHeight()-i.top;break;default:o=this.element.offset().top+this.element.outerHeight()-i.top;break}this.container.css({top:0,left:0,right:"auto"});var f=this.container.outerWidth();if(this.container.toggleClass("drop-up",a=="up"),this.opens=="left"){var p=c-this.element.offset().left-this.element.outerWidth();f+p>n(window).width()?this.container.css({top:o,right:"auto",left:9}):this.container.css({top:o,right:p,left:"auto"})}else if(this.opens=="center"){var y=this.element.offset().left-i.left+this.element.outerWidth()/2-f/2;y<0?this.container.css({top:o,right:"auto",left:9}):y+f>n(window).width()?this.container.css({top:o,left:"auto",right:0}):this.container.css({top:o,left:y,right:"auto"})}else{var y=this.element.offset().left-i.left;y+f>n(window).width()?this.container.css({top:o,left:"auto",right:0}):this.container.css({top:o,left:y,right:"auto"})}},show:function(i){this.isShowing||(this._outsideClickProxy=n.proxy(function(o){this.outsideClick(o)},this),n(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),n(window).on("resize.daterangepicker",n.proxy(function(o){this.move(o)},this)),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.previousRightTime=this.endDate.clone(),this.updateView(),this.container.show(),this.move(),this.element.trigger("show.daterangepicker",this),this.isShowing=!0)},hide:function(i){this.isShowing&&(this.endDate||(this.startDate=this.oldStartDate.clone(),this.endDate=this.oldEndDate.clone()),(!this.startDate.isSame(this.oldStartDate)||!this.endDate.isSame(this.oldEndDate))&&this.callback(this.startDate.clone(),this.endDate.clone(),this.chosenLabel),this.updateElement(),n(document).off(".daterangepicker"),n(window).off(".daterangepicker"),this.container.hide(),this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(i){this.isShowing?this.hide():this.show()},outsideClick:function(i){var o=n(i.target);i.type=="focusin"||o.closest(this.element).length||o.closest(this.container).length||o.closest(".calendar-table").length||(this.hide(),this.element.trigger("outsideClick.daterangepicker",this))},showCalendars:function(){this.container.addClass("show-calendar"),this.move(),this.element.trigger("showCalendar.daterangepicker",this)},hideCalendars:function(){this.container.removeClass("show-calendar"),this.element.trigger("hideCalendar.daterangepicker",this)},clickRange:function(i){var o=i.target.getAttribute("data-range-key");if(this.chosenLabel=o,o==this.locale.customRangeLabel)this.showCalendars();else{var a=this.ranges[o];this.startDate=a[0],this.endDate=a[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.alwaysShowCalendars||this.hideCalendars(),this.clickApply()}},clickPrev:function(i){var o=n(i.target).parents(".drp-calendar");o.hasClass("left")?(this.leftCalendar.month.subtract(1,"month"),this.linkedCalendars&&this.rightCalendar.month.subtract(1,"month")):this.rightCalendar.month.subtract(1,"month"),this.updateCalendars()},clickNext:function(i){var o=n(i.target).parents(".drp-calendar");o.hasClass("left")?this.leftCalendar.month.add(1,"month"):(this.rightCalendar.month.add(1,"month"),this.linkedCalendars&&this.leftCalendar.month.add(1,"month")),this.updateCalendars()},hoverDate:function(i){if(n(i.target).hasClass("available")){var o=n(i.target).attr("data-title"),a=o.substr(1,1),c=o.substr(3,1),f=n(i.target).parents(".drp-calendar"),p=f.hasClass("left")?this.leftCalendar.calendar[a][c]:this.rightCalendar.calendar[a][c],y=this.leftCalendar,m=this.rightCalendar,T=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each(function(E,I){if(!n(I).hasClass("week")){var A=n(I).attr("data-title"),F=A.substr(1,1),R=A.substr(3,1),U=n(I).parents(".drp-calendar"),H=U.hasClass("left")?y.calendar[F][R]:m.calendar[F][R];H.isAfter(T)&&H.isBefore(p)||H.isSame(p,"day")?n(I).addClass("in-range"):n(I).removeClass("in-range")}})}},clickDate:function(i){if(n(i.target).hasClass("available")){var o=n(i.target).attr("data-title"),a=o.substr(1,1),c=o.substr(3,1),f=n(i.target).parents(".drp-calendar"),p=f.hasClass("left")?this.leftCalendar.calendar[a][c]:this.rightCalendar.calendar[a][c];if(this.endDate||p.isBefore(this.startDate,"day")){if(this.timePicker){var y=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour){var m=this.container.find(".left .ampmselect").val();m==="PM"&&y<12&&(y+=12),m==="AM"&&y===12&&(y=0)}var T=parseInt(this.container.find(".left .minuteselect").val(),10);isNaN(T)&&(T=parseInt(this.container.find(".left .minuteselect option:last").val(),10));var E=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;p=p.clone().hour(y).minute(T).second(E)}this.endDate=null,this.setStartDate(p.clone())}else if(!this.endDate&&p.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var y=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour){var m=this.container.find(".right .ampmselect").val();m==="PM"&&y<12&&(y+=12),m==="AM"&&y===12&&(y=0)}var T=parseInt(this.container.find(".right .minuteselect").val(),10);isNaN(T)&&(T=parseInt(this.container.find(".right .minuteselect option:last").val(),10));var E=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;p=p.clone().hour(y).minute(T).second(E)}this.setEndDate(p.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&&(this.setEndDate(this.startDate),!this.timePicker&&this.autoApply&&this.clickApply()),this.updateView(),i.stopPropagation()}},calculateChosenLabel:function(){var i=!0,o=0;for(var a in this.ranges){if(this.timePicker){var c=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(c)==this.ranges[a][0].format(c)&&this.endDate.format(c)==this.ranges[a][1].format(c)){i=!1,this.chosenLabel=this.container.find(".ranges li:eq("+o+")").addClass("active").attr("data-range-key");break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[a][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[a][1].format("YYYY-MM-DD")){i=!1,this.chosenLabel=this.container.find(".ranges li:eq("+o+")").addClass("active").attr("data-range-key");break}o++}i&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").attr("data-range-key"):this.chosenLabel=null,this.showCalendars())},clickApply:function(i){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(i){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(i){var o=n(i.target).closest(".drp-calendar").hasClass("left"),a=o?"left":"right",c=this.container.find(".drp-calendar."+a),f=parseInt(c.find(".monthselect").val(),10),p=c.find(".yearselect").val();o||(p<this.startDate.year()||p==this.startDate.year()&&f<this.startDate.month())&&(f=this.startDate.month(),p=this.startDate.year()),this.minDate&&(p<this.minDate.year()||p==this.minDate.year()&&f<this.minDate.month())&&(f=this.minDate.month(),p=this.minDate.year()),this.maxDate&&(p>this.maxDate.year()||p==this.maxDate.year()&&f>this.maxDate.month())&&(f=this.maxDate.month(),p=this.maxDate.year()),o?(this.leftCalendar.month.month(f).year(p),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(f).year(p),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(i){var o=n(i.target).closest(".drp-calendar"),a=o.hasClass("left"),c=parseInt(o.find(".hourselect").val(),10),f=parseInt(o.find(".minuteselect").val(),10);isNaN(f)&&(f=parseInt(o.find(".minuteselect option:last").val(),10));var p=this.timePickerSeconds?parseInt(o.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var y=o.find(".ampmselect").val();y==="PM"&&c<12&&(c+=12),y==="AM"&&c===12&&(c=0)}if(a){var m=this.startDate.clone();m.hour(c),m.minute(f),m.second(p),this.setStartDate(m),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==m.format("YYYY-MM-DD")&&this.endDate.isBefore(m)&&this.setEndDate(m.clone())}else if(this.endDate){var T=this.endDate.clone();T.hour(c),T.minute(f),T.second(p),this.setEndDate(T)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var i=this.element.val().split(this.locale.separator),o=null,a=null;i.length===2&&(o=e(i[0],this.locale.format),a=e(i[1],this.locale.format)),(this.singleDatePicker||o===null||a===null)&&(o=e(this.element.val(),this.locale.format),a=o),!(!o.isValid()||!a.isValid())&&(this.setStartDate(o),this.setEndDate(a),this.updateView())}},keydown:function(i){(i.keyCode===9||i.keyCode===13)&&this.hide(),i.keyCode===27&&(i.preventDefault(),i.stopPropagation(),this.hide())},updateElement:function(){if(this.element.is("input")&&this.autoUpdateInput){var i=this.startDate.format(this.locale.format);this.singleDatePicker||(i+=this.locale.separator+this.endDate.format(this.locale.format)),i!==this.element.val()&&this.element.val(i).trigger("change")}},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},n.fn.daterangepicker=function(i,o){var a=n.extend(!0,{},n.fn.daterangepicker.defaultOptions,i);return this.each(function(){var c=n(this);c.data("daterangepicker")&&c.data("daterangepicker").remove(),c.data("daterangepicker",new r(c,a,o))}),this},r})})(H6);var Nv=function(t,e){return Nv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Nv(t,e)};function U6(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Nv(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var W6=function(t){U6(e,t);function e(n){var r=t.call(this,n)||this;return r.ref=null,r.$picker=null,r}return e.prototype.componentDidMount=function(){var n=this;this.$picker=V6(this.ref),this.$picker.daterangepicker(this.props.initialSettings,this.handleCallback.bind(this)),["Show","Hide","ShowCalendar","HideCalendar","Apply","Cancel"].forEach(function(r){var i,o=r.charAt(0).toLowerCase()+r.slice(1);(i=n.$picker)===null||i===void 0||i.on(o+".daterangepicker",n.makeEventHandler("on"+r))})},e.prototype.componentWillUnmount=function(){var n,r;(r=(n=this.$picker)===null||n===void 0?void 0:n.data("daterangepicker"))===null||r===void 0||r.remove()},e.prototype.handleCallback=function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];typeof this.props.onCallback=="function"&&(n=this.props).onCallback.apply(n,r)},e.prototype.makeEventHandler=function(n){var r=this,i=this.props.onEvent;return function(o,a){typeof i=="function"&&i(o,a),typeof r.props[n]=="function"&&r.props[n](o,a)}},e.prototype.setStartDate=function(n){var r,i;(i=(r=this.$picker)===null||r===void 0?void 0:r.data("daterangepicker"))===null||i===void 0||i.setStartDate(n)},e.prototype.setEndDate=function(n){var r,i;(i=(r=this.$picker)===null||r===void 0?void 0:r.data("daterangepicker"))===null||i===void 0||i.setEndDate(n)},e.prototype.render=function(){var n=this,r=kn.Children.only(this.props.children);return kn.cloneElement(r,{ref:function(i){return n.ref=i}})},e}(kn.Component);aa.styled(t=>de.jsx(aa.Switch,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...t}))(({theme:t})=>({width:42,height:26,padding:0,"&.MuiSwitch-root":{margin:0,marginRight:8},"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:mr.primary300,opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:t.palette.grey[100]},"&.Mui-disabled + .MuiSwitch-track":{opacity:.7}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:"#E9E9EA",opacity:1}}));/**
|
|
181
|
+
* @license
|
|
182
|
+
* Copyright 2017 Google LLC
|
|
183
|
+
*
|
|
184
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
185
|
+
* you may not use this file except in compliance with the License.
|
|
186
|
+
* You may obtain a copy of the License at
|
|
187
|
+
*
|
|
188
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
189
|
+
*
|
|
190
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
191
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
192
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
193
|
+
* See the License for the specific language governing permissions and
|
|
194
|
+
* limitations under the License.
|
|
195
|
+
*//**
|
|
196
|
+
* @license
|
|
197
|
+
* Copyright 2017 Google LLC
|
|
198
|
+
*
|
|
199
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
200
|
+
* you may not use this file except in compliance with the License.
|
|
201
|
+
* You may obtain a copy of the License at
|
|
202
|
+
*
|
|
203
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
204
|
+
*
|
|
205
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
206
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
207
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
208
|
+
* See the License for the specific language governing permissions and
|
|
209
|
+
* limitations under the License.
|
|
210
|
+
*/const h_=function(t){const e=[];let n=0;for(let r=0;r<t.length;r++){let i=t.charCodeAt(r);i<128?e[n++]=i:i<2048?(e[n++]=i>>6|192,e[n++]=i&63|128):(i&64512)===55296&&r+1<t.length&&(t.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(t.charCodeAt(++r)&1023),e[n++]=i>>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=i&63|128):(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=i&63|128)}return e},z6=function(t){const e=[];let n=0,r=0;for(;n<t.length;){const i=t[n++];if(i<128)e[r++]=String.fromCharCode(i);else if(i>191&&i<224){const o=t[n++];e[r++]=String.fromCharCode((i&31)<<6|o&63)}else if(i>239&&i<365){const o=t[n++],a=t[n++],c=t[n++],f=((i&7)<<18|(o&63)<<12|(a&63)<<6|c&63)-65536;e[r++]=String.fromCharCode(55296+(f>>10)),e[r++]=String.fromCharCode(56320+(f&1023))}else{const o=t[n++],a=t[n++];e[r++]=String.fromCharCode((i&15)<<12|(o&63)<<6|a&63)}}return e.join("")},p_={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<t.length;i+=3){const o=t[i],a=i+1<t.length,c=a?t[i+1]:0,f=i+2<t.length,p=f?t[i+2]:0,y=o>>2,m=(o&3)<<4|c>>4;let T=(c&15)<<2|p>>6,E=p&63;f||(E=64,a||(T=64)),r.push(n[y],n[m],n[T],n[E])}return r.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(h_(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):z6(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();const n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<t.length;){const o=n[t.charAt(i++)],c=i<t.length?n[t.charAt(i)]:0;++i;const p=i<t.length?n[t.charAt(i)]:64;++i;const m=i<t.length?n[t.charAt(i)]:64;if(++i,o==null||c==null||p==null||m==null)throw new Y6;const T=o<<2|c>>4;if(r.push(T),p!==64){const E=c<<4&240|p>>2;if(r.push(E),m!==64){const I=p<<6&192|m;r.push(I)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};class Y6 extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const G6=function(t){const e=h_(t);return p_.encodeByteArray(e,!0)},g_=function(t){return G6(t).replace(/\./g,"")},q6=function(t){try{return p_.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};/**
|
|
211
|
+
* @license
|
|
212
|
+
* Copyright 2022 Google LLC
|
|
213
|
+
*
|
|
214
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
215
|
+
* you may not use this file except in compliance with the License.
|
|
216
|
+
* You may obtain a copy of the License at
|
|
217
|
+
*
|
|
218
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
219
|
+
*
|
|
220
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
221
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
222
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
223
|
+
* See the License for the specific language governing permissions and
|
|
224
|
+
* limitations under the License.
|
|
225
|
+
*/function X6(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/**
|
|
226
|
+
* @license
|
|
227
|
+
* Copyright 2022 Google LLC
|
|
228
|
+
*
|
|
229
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
230
|
+
* you may not use this file except in compliance with the License.
|
|
231
|
+
* You may obtain a copy of the License at
|
|
232
|
+
*
|
|
233
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
234
|
+
*
|
|
235
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
236
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
237
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
238
|
+
* See the License for the specific language governing permissions and
|
|
239
|
+
* limitations under the License.
|
|
240
|
+
*/const K6=()=>X6().__FIREBASE_DEFAULTS__,Z6=()=>{if(typeof process>"u"||typeof process.env>"u")return;const t=process.env.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},J6=()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const e=t&&q6(t[1]);return e&&JSON.parse(e)},Q6=()=>{try{return K6()||Z6()||J6()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},m_=()=>{var t;return(t=Q6())===null||t===void 0?void 0:t.config};/**
|
|
241
|
+
* @license
|
|
242
|
+
* Copyright 2017 Google LLC
|
|
243
|
+
*
|
|
244
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
245
|
+
* you may not use this file except in compliance with the License.
|
|
246
|
+
* You may obtain a copy of the License at
|
|
247
|
+
*
|
|
248
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
249
|
+
*
|
|
250
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
251
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
252
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
253
|
+
* See the License for the specific language governing permissions and
|
|
254
|
+
* limitations under the License.
|
|
255
|
+
*/class e8{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}wrapCallback(e){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(n):e(n,r))}}}function v_(){try{return typeof indexedDB=="object"}catch{return!1}}function y_(){return new Promise((t,e)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),t(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var o;e(((o=i.error)===null||o===void 0?void 0:o.message)||"")}}catch(n){e(n)}})}function t8(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}/**
|
|
256
|
+
* @license
|
|
257
|
+
* Copyright 2017 Google LLC
|
|
258
|
+
*
|
|
259
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
260
|
+
* you may not use this file except in compliance with the License.
|
|
261
|
+
* You may obtain a copy of the License at
|
|
262
|
+
*
|
|
263
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
264
|
+
*
|
|
265
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
266
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
267
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
268
|
+
* See the License for the specific language governing permissions and
|
|
269
|
+
* limitations under the License.
|
|
270
|
+
*/const n8="FirebaseError";class jf extends Error{constructor(e,n,r){super(n),this.code=e,this.customData=r,this.name=n8,Object.setPrototypeOf(this,jf.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,tg.prototype.create)}}class tg{constructor(e,n,r){this.service=e,this.serviceName=n,this.errors=r}create(e,...n){const r=n[0]||{},i=`${this.service}/${e}`,o=this.errors[e],a=o?r8(o,r):"Error",c=`${this.serviceName}: ${a} (${i}).`;return new jf(i,c,r)}}function r8(t,e){return t.replace(i8,(n,r)=>{const i=e[r];return i!=null?String(i):`<${r}?>`})}const i8=/\{\$([^}]+)}/g;function jv(t,e){if(t===e)return!0;const n=Object.keys(t),r=Object.keys(e);for(const i of n){if(!r.includes(i))return!1;const o=t[i],a=e[i];if(H1(o)&&H1(a)){if(!jv(o,a))return!1}else if(o!==a)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function H1(t){return t!==null&&typeof t=="object"}/**
|
|
271
|
+
* @license
|
|
272
|
+
* Copyright 2021 Google LLC
|
|
273
|
+
*
|
|
274
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
275
|
+
* you may not use this file except in compliance with the License.
|
|
276
|
+
* You may obtain a copy of the License at
|
|
277
|
+
*
|
|
278
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
279
|
+
*
|
|
280
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
281
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
282
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
283
|
+
* See the License for the specific language governing permissions and
|
|
284
|
+
* limitations under the License.
|
|
285
|
+
*/function fb(t){return t&&t._delegate?t._delegate:t}class Cu{constructor(e,n,r){this.name=e,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}/**
|
|
286
|
+
* @license
|
|
287
|
+
* Copyright 2019 Google LLC
|
|
288
|
+
*
|
|
289
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
290
|
+
* you may not use this file except in compliance with the License.
|
|
291
|
+
* You may obtain a copy of the License at
|
|
292
|
+
*
|
|
293
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
294
|
+
*
|
|
295
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
296
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
297
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
298
|
+
* See the License for the specific language governing permissions and
|
|
299
|
+
* limitations under the License.
|
|
300
|
+
*/const vc="[DEFAULT]";/**
|
|
301
|
+
* @license
|
|
302
|
+
* Copyright 2019 Google LLC
|
|
303
|
+
*
|
|
304
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
305
|
+
* you may not use this file except in compliance with the License.
|
|
306
|
+
* You may obtain a copy of the License at
|
|
307
|
+
*
|
|
308
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
309
|
+
*
|
|
310
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
311
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
312
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
313
|
+
* See the License for the specific language governing permissions and
|
|
314
|
+
* limitations under the License.
|
|
315
|
+
*/class o8{constructor(e,n){this.name=e,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const n=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(n)){const r=new e8;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const i=this.getOrInitializeService({instanceIdentifier:n});i&&r.resolve(i)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(e){var n;const r=this.normalizeInstanceIdentifier(e==null?void 0:e.identifier),i=(n=e==null?void 0:e.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(o){if(i)return null;throw o}else{if(i)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(a8(e))try{this.getOrInitializeService({instanceIdentifier:vc})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const i=this.normalizeInstanceIdentifier(n);try{const o=this.getOrInitializeService({instanceIdentifier:i});r.resolve(o)}catch{}}}}clearInstance(e=vc){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...e.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(e=vc){return this.instances.has(e)}getOptions(e=vc){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:n={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const i=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[o,a]of this.instancesDeferred.entries()){const c=this.normalizeInstanceIdentifier(o);r===c&&a.resolve(i)}return i}onInit(e,n){var r;const i=this.normalizeInstanceIdentifier(n),o=(r=this.onInitCallbacks.get(i))!==null&&r!==void 0?r:new Set;o.add(e),this.onInitCallbacks.set(i,o);const a=this.instances.get(i);return a&&e(a,i),()=>{o.delete(e)}}invokeOnInitCallbacks(e,n){const r=this.onInitCallbacks.get(n);if(r)for(const i of r)try{i(e,n)}catch{}}getOrInitializeService({instanceIdentifier:e,options:n={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:s8(e),options:n}),this.instances.set(e,r),this.instancesOptions.set(e,n),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch{}return r||null}normalizeInstanceIdentifier(e=vc){return this.component?this.component.multipleInstances?e:vc:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function s8(t){return t===vc?void 0:t}function a8(t){return t.instantiationMode==="EAGER"}/**
|
|
316
|
+
* @license
|
|
317
|
+
* Copyright 2019 Google LLC
|
|
318
|
+
*
|
|
319
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
320
|
+
* you may not use this file except in compliance with the License.
|
|
321
|
+
* You may obtain a copy of the License at
|
|
322
|
+
*
|
|
323
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
324
|
+
*
|
|
325
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
326
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
327
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
328
|
+
* See the License for the specific language governing permissions and
|
|
329
|
+
* limitations under the License.
|
|
330
|
+
*/class l8{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const n=this.getProvider(e.name);if(n.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);n.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const n=new o8(e,this);return this.providers.set(e,n),n}getProviders(){return Array.from(this.providers.values())}}/**
|
|
331
|
+
* @license
|
|
332
|
+
* Copyright 2017 Google LLC
|
|
333
|
+
*
|
|
334
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
335
|
+
* you may not use this file except in compliance with the License.
|
|
336
|
+
* You may obtain a copy of the License at
|
|
337
|
+
*
|
|
338
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
339
|
+
*
|
|
340
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
341
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
342
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
343
|
+
* See the License for the specific language governing permissions and
|
|
344
|
+
* limitations under the License.
|
|
345
|
+
*/var Mn;(function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"})(Mn||(Mn={}));const u8={debug:Mn.DEBUG,verbose:Mn.VERBOSE,info:Mn.INFO,warn:Mn.WARN,error:Mn.ERROR,silent:Mn.SILENT},c8=Mn.INFO,f8={[Mn.DEBUG]:"log",[Mn.VERBOSE]:"log",[Mn.INFO]:"info",[Mn.WARN]:"warn",[Mn.ERROR]:"error"},d8=(t,e,...n)=>{if(e<t.logLevel)return;const r=new Date().toISOString(),i=f8[e];if(i)console[i](`[${r}] ${t.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)};class h8{constructor(e){this.name=e,this._logLevel=c8,this._logHandler=d8,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in Mn))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e=="string"?u8[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if(typeof e!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,Mn.DEBUG,...e),this._logHandler(this,Mn.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,Mn.VERBOSE,...e),this._logHandler(this,Mn.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,Mn.INFO,...e),this._logHandler(this,Mn.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,Mn.WARN,...e),this._logHandler(this,Mn.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,Mn.ERROR,...e),this._logHandler(this,Mn.ERROR,...e)}}const p8=(t,e)=>e.some(n=>t instanceof n);let U1,W1;function g8(){return U1||(U1=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function m8(){return W1||(W1=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const b_=new WeakMap,Bv=new WeakMap,w_=new WeakMap,Em=new WeakMap,db=new WeakMap;function v8(t){const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("success",o),t.removeEventListener("error",a)},o=()=>{n(Dl(t.result)),i()},a=()=>{r(t.error),i()};t.addEventListener("success",o),t.addEventListener("error",a)});return e.then(n=>{n instanceof IDBCursor&&b_.set(n,t)}).catch(()=>{}),db.set(e,t),e}function y8(t){if(Bv.has(t))return;const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("complete",o),t.removeEventListener("error",a),t.removeEventListener("abort",a)},o=()=>{n(),i()},a=()=>{r(t.error||new DOMException("AbortError","AbortError")),i()};t.addEventListener("complete",o),t.addEventListener("error",a),t.addEventListener("abort",a)});Bv.set(t,e)}let $v={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return Bv.get(t);if(e==="objectStoreNames")return t.objectStoreNames||w_.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Dl(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function b8(t){$v=t($v)}function w8(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){const r=t.call(km(this),e,...n);return w_.set(r,e.sort?e.sort():[e]),Dl(r)}:m8().includes(t)?function(...e){return t.apply(km(this),e),Dl(b_.get(this))}:function(...e){return Dl(t.apply(km(this),e))}}function x8(t){return typeof t=="function"?w8(t):(t instanceof IDBTransaction&&y8(t),p8(t,g8())?new Proxy(t,$v):t)}function Dl(t){if(t instanceof IDBRequest)return v8(t);if(Em.has(t))return Em.get(t);const e=x8(t);return e!==t&&(Em.set(t,e),db.set(e,t)),e}const km=t=>db.get(t);function ng(t,e,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const a=indexedDB.open(t,e),c=Dl(a);return r&&a.addEventListener("upgradeneeded",f=>{r(Dl(a.result),f.oldVersion,f.newVersion,Dl(a.transaction),f)}),n&&a.addEventListener("blocked",f=>n(f.oldVersion,f.newVersion,f)),c.then(f=>{o&&f.addEventListener("close",()=>o()),i&&f.addEventListener("versionchange",p=>i(p.oldVersion,p.newVersion,p))}).catch(()=>{}),c}function Dm(t,{blocked:e}={}){const n=indexedDB.deleteDatabase(t);return e&&n.addEventListener("blocked",r=>e(r.oldVersion,r)),Dl(n).then(()=>{})}const S8=["get","getKey","getAll","getAllKeys","count"],T8=["put","add","delete","clear"],_m=new Map;function z1(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(_m.get(e))return _m.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,i=T8.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||S8.includes(n)))return;const o=async function(a,...c){const f=this.transaction(a,i?"readwrite":"readonly");let p=f.store;return r&&(p=p.index(c.shift())),(await Promise.all([p[n](...c),i&&f.done]))[0]};return _m.set(e,o),o}b8(t=>({...t,get:(e,n,r)=>z1(e,n)||t.get(e,n,r),has:(e,n)=>!!z1(e,n)||t.has(e,n)}));/**
|
|
346
|
+
* @license
|
|
347
|
+
* Copyright 2019 Google LLC
|
|
348
|
+
*
|
|
349
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
350
|
+
* you may not use this file except in compliance with the License.
|
|
351
|
+
* You may obtain a copy of the License at
|
|
352
|
+
*
|
|
353
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
354
|
+
*
|
|
355
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
356
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
357
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
358
|
+
* See the License for the specific language governing permissions and
|
|
359
|
+
* limitations under the License.
|
|
360
|
+
*/class C8{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(E8(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function E8(t){const e=t.getComponent();return(e==null?void 0:e.type)==="VERSION"}const Vv="@firebase/app",Y1="0.10.13";/**
|
|
361
|
+
* @license
|
|
362
|
+
* Copyright 2019 Google LLC
|
|
363
|
+
*
|
|
364
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
365
|
+
* you may not use this file except in compliance with the License.
|
|
366
|
+
* You may obtain a copy of the License at
|
|
367
|
+
*
|
|
368
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
369
|
+
*
|
|
370
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
371
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
372
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
373
|
+
* See the License for the specific language governing permissions and
|
|
374
|
+
* limitations under the License.
|
|
375
|
+
*/const Ol=new h8("@firebase/app"),k8="@firebase/app-compat",D8="@firebase/analytics-compat",_8="@firebase/analytics",P8="@firebase/app-check-compat",O8="@firebase/app-check",R8="@firebase/auth",I8="@firebase/auth-compat",A8="@firebase/database",M8="@firebase/data-connect",L8="@firebase/database-compat",F8="@firebase/functions",N8="@firebase/functions-compat",j8="@firebase/installations",B8="@firebase/installations-compat",$8="@firebase/messaging",V8="@firebase/messaging-compat",H8="@firebase/performance",U8="@firebase/performance-compat",W8="@firebase/remote-config",z8="@firebase/remote-config-compat",Y8="@firebase/storage",G8="@firebase/storage-compat",q8="@firebase/firestore",X8="@firebase/vertexai-preview",K8="@firebase/firestore-compat",Z8="firebase";/**
|
|
376
|
+
* @license
|
|
377
|
+
* Copyright 2019 Google LLC
|
|
378
|
+
*
|
|
379
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
380
|
+
* you may not use this file except in compliance with the License.
|
|
381
|
+
* You may obtain a copy of the License at
|
|
382
|
+
*
|
|
383
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
384
|
+
*
|
|
385
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
386
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
387
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
388
|
+
* See the License for the specific language governing permissions and
|
|
389
|
+
* limitations under the License.
|
|
390
|
+
*/const Hv="[DEFAULT]",J8={[Vv]:"fire-core",[k8]:"fire-core-compat",[_8]:"fire-analytics",[D8]:"fire-analytics-compat",[O8]:"fire-app-check",[P8]:"fire-app-check-compat",[R8]:"fire-auth",[I8]:"fire-auth-compat",[A8]:"fire-rtdb",[M8]:"fire-data-connect",[L8]:"fire-rtdb-compat",[F8]:"fire-fn",[N8]:"fire-fn-compat",[j8]:"fire-iid",[B8]:"fire-iid-compat",[$8]:"fire-fcm",[V8]:"fire-fcm-compat",[H8]:"fire-perf",[U8]:"fire-perf-compat",[W8]:"fire-rc",[z8]:"fire-rc-compat",[Y8]:"fire-gcs",[G8]:"fire-gcs-compat",[q8]:"fire-fst",[K8]:"fire-fst-compat",[X8]:"fire-vertex","fire-js":"fire-js",[Z8]:"fire-js-all"};/**
|
|
391
|
+
* @license
|
|
392
|
+
* Copyright 2019 Google LLC
|
|
393
|
+
*
|
|
394
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
395
|
+
* you may not use this file except in compliance with the License.
|
|
396
|
+
* You may obtain a copy of the License at
|
|
397
|
+
*
|
|
398
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
399
|
+
*
|
|
400
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
401
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
402
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
403
|
+
* See the License for the specific language governing permissions and
|
|
404
|
+
* limitations under the License.
|
|
405
|
+
*/const Dp=new Map,Q8=new Map,Uv=new Map;function G1(t,e){try{t.container.addComponent(e)}catch(n){Ol.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,n)}}function _c(t){const e=t.name;if(Uv.has(e))return Ol.debug(`There were multiple attempts to register component ${e}.`),!1;Uv.set(e,t);for(const n of Dp.values())G1(n,t);for(const n of Q8.values())G1(n,t);return!0}function hb(t,e){const n=t.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),t.container.getProvider(e)}/**
|
|
406
|
+
* @license
|
|
407
|
+
* Copyright 2019 Google LLC
|
|
408
|
+
*
|
|
409
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
410
|
+
* you may not use this file except in compliance with the License.
|
|
411
|
+
* You may obtain a copy of the License at
|
|
412
|
+
*
|
|
413
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
414
|
+
*
|
|
415
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
416
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
417
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
418
|
+
* See the License for the specific language governing permissions and
|
|
419
|
+
* limitations under the License.
|
|
420
|
+
*/const e9={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},gu=new tg("app","Firebase",e9);/**
|
|
421
|
+
* @license
|
|
422
|
+
* Copyright 2019 Google LLC
|
|
423
|
+
*
|
|
424
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
425
|
+
* you may not use this file except in compliance with the License.
|
|
426
|
+
* You may obtain a copy of the License at
|
|
427
|
+
*
|
|
428
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
429
|
+
*
|
|
430
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
431
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
432
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
433
|
+
* See the License for the specific language governing permissions and
|
|
434
|
+
* limitations under the License.
|
|
435
|
+
*/class t9{constructor(e,n,r){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new Cu("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw gu.create("app-deleted",{appName:this._name})}}function x_(t,e={}){let n=t;typeof e!="object"&&(e={name:e});const r=Object.assign({name:Hv,automaticDataCollectionEnabled:!1},e),i=r.name;if(typeof i!="string"||!i)throw gu.create("bad-app-name",{appName:String(i)});if(n||(n=m_()),!n)throw gu.create("no-options");const o=Dp.get(i);if(o){if(jv(n,o.options)&&jv(r,o.config))return o;throw gu.create("duplicate-app",{appName:i})}const a=new l8(i);for(const f of Uv.values())a.addComponent(f);const c=new t9(n,r,a);return Dp.set(i,c),c}function n9(t=Hv){const e=Dp.get(t);if(!e&&t===Hv&&m_())return x_();if(!e)throw gu.create("no-app",{appName:t});return e}function mu(t,e,n){var r;let i=(r=J8[t])!==null&&r!==void 0?r:t;n&&(i+=`-${n}`);const o=i.match(/\s|\//),a=e.match(/\s|\//);if(o||a){const c=[`Unable to register library "${i}" with version "${e}":`];o&&c.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&a&&c.push("and"),a&&c.push(`version name "${e}" contains illegal characters (whitespace or "/")`),Ol.warn(c.join(" "));return}_c(new Cu(`${i}-version`,()=>({library:i,version:e}),"VERSION"))}/**
|
|
436
|
+
* @license
|
|
437
|
+
* Copyright 2021 Google LLC
|
|
438
|
+
*
|
|
439
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
440
|
+
* you may not use this file except in compliance with the License.
|
|
441
|
+
* You may obtain a copy of the License at
|
|
442
|
+
*
|
|
443
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
444
|
+
*
|
|
445
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
446
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
447
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
448
|
+
* See the License for the specific language governing permissions and
|
|
449
|
+
* limitations under the License.
|
|
450
|
+
*/const r9="firebase-heartbeat-database",i9=1,Ud="firebase-heartbeat-store";let Pm=null;function S_(){return Pm||(Pm=ng(r9,i9,{upgrade:(t,e)=>{switch(e){case 0:try{t.createObjectStore(Ud)}catch(n){console.warn(n)}}}}).catch(t=>{throw gu.create("idb-open",{originalErrorMessage:t.message})})),Pm}async function o9(t){try{const n=(await S_()).transaction(Ud),r=await n.objectStore(Ud).get(T_(t));return await n.done,r}catch(e){if(e instanceof jf)Ol.warn(e.message);else{const n=gu.create("idb-get",{originalErrorMessage:e==null?void 0:e.message});Ol.warn(n.message)}}}async function q1(t,e){try{const r=(await S_()).transaction(Ud,"readwrite");await r.objectStore(Ud).put(e,T_(t)),await r.done}catch(n){if(n instanceof jf)Ol.warn(n.message);else{const r=gu.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});Ol.warn(r.message)}}}function T_(t){return`${t.name}!${t.options.appId}`}/**
|
|
451
|
+
* @license
|
|
452
|
+
* Copyright 2021 Google LLC
|
|
453
|
+
*
|
|
454
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
455
|
+
* you may not use this file except in compliance with the License.
|
|
456
|
+
* You may obtain a copy of the License at
|
|
457
|
+
*
|
|
458
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
459
|
+
*
|
|
460
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
461
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
462
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
463
|
+
* See the License for the specific language governing permissions and
|
|
464
|
+
* limitations under the License.
|
|
465
|
+
*/const s9=1024,a9=30*24*60*60*1e3;class l9{constructor(e){this.container=e,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new c9(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var e,n;try{const i=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),o=X1();return((e=this._heartbeatsCache)===null||e===void 0?void 0:e.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===o||this._heartbeatsCache.heartbeats.some(a=>a.date===o)?void 0:(this._heartbeatsCache.heartbeats.push({date:o,agent:i}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(a=>{const c=new Date(a.date).valueOf();return Date.now()-c<=a9}),this._storage.overwrite(this._heartbeatsCache))}catch(r){Ol.warn(r)}}async getHeartbeatsHeader(){var e;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((e=this._heartbeatsCache)===null||e===void 0?void 0:e.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=X1(),{heartbeatsToSend:r,unsentEntries:i}=u9(this._heartbeatsCache.heartbeats),o=g_(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=n,i.length>0?(this._heartbeatsCache.heartbeats=i,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),o}catch(n){return Ol.warn(n),""}}}function X1(){return new Date().toISOString().substring(0,10)}function u9(t,e=s9){const n=[];let r=t.slice();for(const i of t){const o=n.find(a=>a.agent===i.agent);if(o){if(o.dates.push(i.date),K1(n)>e){o.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),K1(n)>e){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class c9{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return v_()?y_().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await o9(this.app);return n!=null&&n.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(e){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return q1(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return q1(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...e.heartbeats]})}else return}}function K1(t){return g_(JSON.stringify({version:2,heartbeats:t})).length}/**
|
|
466
|
+
* @license
|
|
467
|
+
* Copyright 2019 Google LLC
|
|
468
|
+
*
|
|
469
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
470
|
+
* you may not use this file except in compliance with the License.
|
|
471
|
+
* You may obtain a copy of the License at
|
|
472
|
+
*
|
|
473
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
474
|
+
*
|
|
475
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
476
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
477
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
478
|
+
* See the License for the specific language governing permissions and
|
|
479
|
+
* limitations under the License.
|
|
480
|
+
*/function f9(t){_c(new Cu("platform-logger",e=>new C8(e),"PRIVATE")),_c(new Cu("heartbeat",e=>new l9(e),"PRIVATE")),mu(Vv,Y1,t),mu(Vv,Y1,"esm2017"),mu("fire-js","")}f9("");var d9="firebase",h9="10.14.1";/**
|
|
481
|
+
* @license
|
|
482
|
+
* Copyright 2020 Google LLC
|
|
483
|
+
*
|
|
484
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
485
|
+
* you may not use this file except in compliance with the License.
|
|
486
|
+
* You may obtain a copy of the License at
|
|
487
|
+
*
|
|
488
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
489
|
+
*
|
|
490
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
491
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
492
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
493
|
+
* See the License for the specific language governing permissions and
|
|
494
|
+
* limitations under the License.
|
|
495
|
+
*/mu(d9,h9,"app");const C_="@firebase/installations",pb="0.6.9";/**
|
|
496
|
+
* @license
|
|
497
|
+
* Copyright 2019 Google LLC
|
|
498
|
+
*
|
|
499
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
500
|
+
* you may not use this file except in compliance with the License.
|
|
501
|
+
* You may obtain a copy of the License at
|
|
502
|
+
*
|
|
503
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
504
|
+
*
|
|
505
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
506
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
507
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
508
|
+
* See the License for the specific language governing permissions and
|
|
509
|
+
* limitations under the License.
|
|
510
|
+
*/const E_=1e4,k_=`w:${pb}`,D_="FIS_v2",p9="https://firebaseinstallations.googleapis.com/v1",g9=60*60*1e3,m9="installations",v9="Installations";/**
|
|
511
|
+
* @license
|
|
512
|
+
* Copyright 2019 Google LLC
|
|
513
|
+
*
|
|
514
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
515
|
+
* you may not use this file except in compliance with the License.
|
|
516
|
+
* You may obtain a copy of the License at
|
|
517
|
+
*
|
|
518
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
519
|
+
*
|
|
520
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
521
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
522
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
523
|
+
* See the License for the specific language governing permissions and
|
|
524
|
+
* limitations under the License.
|
|
525
|
+
*/const y9={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."},Pc=new tg(m9,v9,y9);function __(t){return t instanceof jf&&t.code.includes("request-failed")}/**
|
|
526
|
+
* @license
|
|
527
|
+
* Copyright 2019 Google LLC
|
|
528
|
+
*
|
|
529
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
530
|
+
* you may not use this file except in compliance with the License.
|
|
531
|
+
* You may obtain a copy of the License at
|
|
532
|
+
*
|
|
533
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
534
|
+
*
|
|
535
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
536
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
537
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
538
|
+
* See the License for the specific language governing permissions and
|
|
539
|
+
* limitations under the License.
|
|
540
|
+
*/function P_({projectId:t}){return`${p9}/projects/${t}/installations`}function O_(t){return{token:t.token,requestStatus:2,expiresIn:w9(t.expiresIn),creationTime:Date.now()}}async function R_(t,e){const r=(await e.json()).error;return Pc.create("request-failed",{requestName:t,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function I_({apiKey:t}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t})}function b9(t,{refreshToken:e}){const n=I_(t);return n.append("Authorization",x9(e)),n}async function A_(t){const e=await t();return e.status>=500&&e.status<600?t():e}function w9(t){return Number(t.replace("s","000"))}function x9(t){return`${D_} ${t}`}/**
|
|
541
|
+
* @license
|
|
542
|
+
* Copyright 2019 Google LLC
|
|
543
|
+
*
|
|
544
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
545
|
+
* you may not use this file except in compliance with the License.
|
|
546
|
+
* You may obtain a copy of the License at
|
|
547
|
+
*
|
|
548
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
549
|
+
*
|
|
550
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
551
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
552
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
553
|
+
* See the License for the specific language governing permissions and
|
|
554
|
+
* limitations under the License.
|
|
555
|
+
*/async function S9({appConfig:t,heartbeatServiceProvider:e},{fid:n}){const r=P_(t),i=I_(t),o=e.getImmediate({optional:!0});if(o){const p=await o.getHeartbeatsHeader();p&&i.append("x-firebase-client",p)}const a={fid:n,authVersion:D_,appId:t.appId,sdkVersion:k_},c={method:"POST",headers:i,body:JSON.stringify(a)},f=await A_(()=>fetch(r,c));if(f.ok){const p=await f.json();return{fid:p.fid||n,registrationStatus:2,refreshToken:p.refreshToken,authToken:O_(p.authToken)}}else throw await R_("Create Installation",f)}/**
|
|
556
|
+
* @license
|
|
557
|
+
* Copyright 2019 Google LLC
|
|
558
|
+
*
|
|
559
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
560
|
+
* you may not use this file except in compliance with the License.
|
|
561
|
+
* You may obtain a copy of the License at
|
|
562
|
+
*
|
|
563
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
564
|
+
*
|
|
565
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
566
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
567
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
568
|
+
* See the License for the specific language governing permissions and
|
|
569
|
+
* limitations under the License.
|
|
570
|
+
*/function M_(t){return new Promise(e=>{setTimeout(e,t)})}/**
|
|
571
|
+
* @license
|
|
572
|
+
* Copyright 2019 Google LLC
|
|
573
|
+
*
|
|
574
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
575
|
+
* you may not use this file except in compliance with the License.
|
|
576
|
+
* You may obtain a copy of the License at
|
|
577
|
+
*
|
|
578
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
579
|
+
*
|
|
580
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
581
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
582
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
583
|
+
* See the License for the specific language governing permissions and
|
|
584
|
+
* limitations under the License.
|
|
585
|
+
*/function T9(t){return btoa(String.fromCharCode(...t)).replace(/\+/g,"-").replace(/\//g,"_")}/**
|
|
586
|
+
* @license
|
|
587
|
+
* Copyright 2019 Google LLC
|
|
588
|
+
*
|
|
589
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
590
|
+
* you may not use this file except in compliance with the License.
|
|
591
|
+
* You may obtain a copy of the License at
|
|
592
|
+
*
|
|
593
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
594
|
+
*
|
|
595
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
596
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
597
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
598
|
+
* See the License for the specific language governing permissions and
|
|
599
|
+
* limitations under the License.
|
|
600
|
+
*/const C9=/^[cdef][\w-]{21}$/,Wv="";function E9(){try{const t=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(t),t[0]=112+t[0]%16;const n=k9(t);return C9.test(n)?n:Wv}catch{return Wv}}function k9(t){return T9(t).substr(0,22)}/**
|
|
601
|
+
* @license
|
|
602
|
+
* Copyright 2019 Google LLC
|
|
603
|
+
*
|
|
604
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
605
|
+
* you may not use this file except in compliance with the License.
|
|
606
|
+
* You may obtain a copy of the License at
|
|
607
|
+
*
|
|
608
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
609
|
+
*
|
|
610
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
611
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
612
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
613
|
+
* See the License for the specific language governing permissions and
|
|
614
|
+
* limitations under the License.
|
|
615
|
+
*/function rg(t){return`${t.appName}!${t.appId}`}/**
|
|
616
|
+
* @license
|
|
617
|
+
* Copyright 2019 Google LLC
|
|
618
|
+
*
|
|
619
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
620
|
+
* you may not use this file except in compliance with the License.
|
|
621
|
+
* You may obtain a copy of the License at
|
|
622
|
+
*
|
|
623
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
624
|
+
*
|
|
625
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
626
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
627
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
628
|
+
* See the License for the specific language governing permissions and
|
|
629
|
+
* limitations under the License.
|
|
630
|
+
*/const L_=new Map;function F_(t,e){const n=rg(t);N_(n,e),D9(n,e)}function N_(t,e){const n=L_.get(t);if(n)for(const r of n)r(e)}function D9(t,e){const n=_9();n&&n.postMessage({key:t,fid:e}),P9()}let wc=null;function _9(){return!wc&&"BroadcastChannel"in self&&(wc=new BroadcastChannel("[Firebase] FID Change"),wc.onmessage=t=>{N_(t.data.key,t.data.fid)}),wc}function P9(){L_.size===0&&wc&&(wc.close(),wc=null)}/**
|
|
631
|
+
* @license
|
|
632
|
+
* Copyright 2019 Google LLC
|
|
633
|
+
*
|
|
634
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
635
|
+
* you may not use this file except in compliance with the License.
|
|
636
|
+
* You may obtain a copy of the License at
|
|
637
|
+
*
|
|
638
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
639
|
+
*
|
|
640
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
641
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
642
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
643
|
+
* See the License for the specific language governing permissions and
|
|
644
|
+
* limitations under the License.
|
|
645
|
+
*/const O9="firebase-installations-database",R9=1,Oc="firebase-installations-store";let Om=null;function gb(){return Om||(Om=ng(O9,R9,{upgrade:(t,e)=>{switch(e){case 0:t.createObjectStore(Oc)}}})),Om}async function _p(t,e){const n=rg(t),i=(await gb()).transaction(Oc,"readwrite"),o=i.objectStore(Oc),a=await o.get(n);return await o.put(e,n),await i.done,(!a||a.fid!==e.fid)&&F_(t,e.fid),e}async function j_(t){const e=rg(t),r=(await gb()).transaction(Oc,"readwrite");await r.objectStore(Oc).delete(e),await r.done}async function ig(t,e){const n=rg(t),i=(await gb()).transaction(Oc,"readwrite"),o=i.objectStore(Oc),a=await o.get(n),c=e(a);return c===void 0?await o.delete(n):await o.put(c,n),await i.done,c&&(!a||a.fid!==c.fid)&&F_(t,c.fid),c}/**
|
|
646
|
+
* @license
|
|
647
|
+
* Copyright 2019 Google LLC
|
|
648
|
+
*
|
|
649
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
650
|
+
* you may not use this file except in compliance with the License.
|
|
651
|
+
* You may obtain a copy of the License at
|
|
652
|
+
*
|
|
653
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
654
|
+
*
|
|
655
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
656
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
657
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
658
|
+
* See the License for the specific language governing permissions and
|
|
659
|
+
* limitations under the License.
|
|
660
|
+
*/async function mb(t){let e;const n=await ig(t.appConfig,r=>{const i=I9(r),o=A9(t,i);return e=o.registrationPromise,o.installationEntry});return n.fid===Wv?{installationEntry:await e}:{installationEntry:n,registrationPromise:e}}function I9(t){const e=t||{fid:E9(),registrationStatus:0};return B_(e)}function A9(t,e){if(e.registrationStatus===0){if(!navigator.onLine){const i=Promise.reject(Pc.create("app-offline"));return{installationEntry:e,registrationPromise:i}}const n={fid:e.fid,registrationStatus:1,registrationTime:Date.now()},r=M9(t,n);return{installationEntry:n,registrationPromise:r}}else return e.registrationStatus===1?{installationEntry:e,registrationPromise:L9(t)}:{installationEntry:e}}async function M9(t,e){try{const n=await S9(t,e);return _p(t.appConfig,n)}catch(n){throw __(n)&&n.customData.serverCode===409?await j_(t.appConfig):await _p(t.appConfig,{fid:e.fid,registrationStatus:0}),n}}async function L9(t){let e=await Z1(t.appConfig);for(;e.registrationStatus===1;)await M_(100),e=await Z1(t.appConfig);if(e.registrationStatus===0){const{installationEntry:n,registrationPromise:r}=await mb(t);return r||n}return e}function Z1(t){return ig(t,e=>{if(!e)throw Pc.create("installation-not-found");return B_(e)})}function B_(t){return F9(t)?{fid:t.fid,registrationStatus:0}:t}function F9(t){return t.registrationStatus===1&&t.registrationTime+E_<Date.now()}/**
|
|
661
|
+
* @license
|
|
662
|
+
* Copyright 2019 Google LLC
|
|
663
|
+
*
|
|
664
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
665
|
+
* you may not use this file except in compliance with the License.
|
|
666
|
+
* You may obtain a copy of the License at
|
|
667
|
+
*
|
|
668
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
669
|
+
*
|
|
670
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
671
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
672
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
673
|
+
* See the License for the specific language governing permissions and
|
|
674
|
+
* limitations under the License.
|
|
675
|
+
*/async function N9({appConfig:t,heartbeatServiceProvider:e},n){const r=j9(t,n),i=b9(t,n),o=e.getImmediate({optional:!0});if(o){const p=await o.getHeartbeatsHeader();p&&i.append("x-firebase-client",p)}const a={installation:{sdkVersion:k_,appId:t.appId}},c={method:"POST",headers:i,body:JSON.stringify(a)},f=await A_(()=>fetch(r,c));if(f.ok){const p=await f.json();return O_(p)}else throw await R_("Generate Auth Token",f)}function j9(t,{fid:e}){return`${P_(t)}/${e}/authTokens:generate`}/**
|
|
676
|
+
* @license
|
|
677
|
+
* Copyright 2019 Google LLC
|
|
678
|
+
*
|
|
679
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
680
|
+
* you may not use this file except in compliance with the License.
|
|
681
|
+
* You may obtain a copy of the License at
|
|
682
|
+
*
|
|
683
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
684
|
+
*
|
|
685
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
686
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
687
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
688
|
+
* See the License for the specific language governing permissions and
|
|
689
|
+
* limitations under the License.
|
|
690
|
+
*/async function vb(t,e=!1){let n;const r=await ig(t.appConfig,o=>{if(!$_(o))throw Pc.create("not-registered");const a=o.authToken;if(!e&&V9(a))return o;if(a.requestStatus===1)return n=B9(t,e),o;{if(!navigator.onLine)throw Pc.create("app-offline");const c=U9(o);return n=$9(t,c),c}});return n?await n:r.authToken}async function B9(t,e){let n=await J1(t.appConfig);for(;n.authToken.requestStatus===1;)await M_(100),n=await J1(t.appConfig);const r=n.authToken;return r.requestStatus===0?vb(t,e):r}function J1(t){return ig(t,e=>{if(!$_(e))throw Pc.create("not-registered");const n=e.authToken;return W9(n)?Object.assign(Object.assign({},e),{authToken:{requestStatus:0}}):e})}async function $9(t,e){try{const n=await N9(t,e),r=Object.assign(Object.assign({},e),{authToken:n});return await _p(t.appConfig,r),n}catch(n){if(__(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await j_(t.appConfig);else{const r=Object.assign(Object.assign({},e),{authToken:{requestStatus:0}});await _p(t.appConfig,r)}throw n}}function $_(t){return t!==void 0&&t.registrationStatus===2}function V9(t){return t.requestStatus===2&&!H9(t)}function H9(t){const e=Date.now();return e<t.creationTime||t.creationTime+t.expiresIn<e+g9}function U9(t){const e={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},t),{authToken:e})}function W9(t){return t.requestStatus===1&&t.requestTime+E_<Date.now()}/**
|
|
691
|
+
* @license
|
|
692
|
+
* Copyright 2019 Google LLC
|
|
693
|
+
*
|
|
694
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
695
|
+
* you may not use this file except in compliance with the License.
|
|
696
|
+
* You may obtain a copy of the License at
|
|
697
|
+
*
|
|
698
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
699
|
+
*
|
|
700
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
701
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
702
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
703
|
+
* See the License for the specific language governing permissions and
|
|
704
|
+
* limitations under the License.
|
|
705
|
+
*/async function z9(t){const e=t,{installationEntry:n,registrationPromise:r}=await mb(e);return r?r.catch(console.error):vb(e).catch(console.error),n.fid}/**
|
|
706
|
+
* @license
|
|
707
|
+
* Copyright 2019 Google LLC
|
|
708
|
+
*
|
|
709
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
710
|
+
* you may not use this file except in compliance with the License.
|
|
711
|
+
* You may obtain a copy of the License at
|
|
712
|
+
*
|
|
713
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
714
|
+
*
|
|
715
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
716
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
717
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
718
|
+
* See the License for the specific language governing permissions and
|
|
719
|
+
* limitations under the License.
|
|
720
|
+
*/async function Y9(t,e=!1){const n=t;return await G9(n),(await vb(n,e)).token}async function G9(t){const{registrationPromise:e}=await mb(t);e&&await e}/**
|
|
721
|
+
* @license
|
|
722
|
+
* Copyright 2019 Google LLC
|
|
723
|
+
*
|
|
724
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
725
|
+
* you may not use this file except in compliance with the License.
|
|
726
|
+
* You may obtain a copy of the License at
|
|
727
|
+
*
|
|
728
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
729
|
+
*
|
|
730
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
731
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
732
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
733
|
+
* See the License for the specific language governing permissions and
|
|
734
|
+
* limitations under the License.
|
|
735
|
+
*/function q9(t){if(!t||!t.options)throw Rm("App Configuration");if(!t.name)throw Rm("App Name");const e=["projectId","apiKey","appId"];for(const n of e)if(!t.options[n])throw Rm(n);return{appName:t.name,projectId:t.options.projectId,apiKey:t.options.apiKey,appId:t.options.appId}}function Rm(t){return Pc.create("missing-app-config-values",{valueName:t})}/**
|
|
736
|
+
* @license
|
|
737
|
+
* Copyright 2020 Google LLC
|
|
738
|
+
*
|
|
739
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
740
|
+
* you may not use this file except in compliance with the License.
|
|
741
|
+
* You may obtain a copy of the License at
|
|
742
|
+
*
|
|
743
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
744
|
+
*
|
|
745
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
746
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
747
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
748
|
+
* See the License for the specific language governing permissions and
|
|
749
|
+
* limitations under the License.
|
|
750
|
+
*/const V_="installations",X9="installations-internal",K9=t=>{const e=t.getProvider("app").getImmediate(),n=q9(e),r=hb(e,"heartbeat");return{app:e,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},Z9=t=>{const e=t.getProvider("app").getImmediate(),n=hb(e,V_).getImmediate();return{getId:()=>z9(n),getToken:i=>Y9(n,i)}};function J9(){_c(new Cu(V_,K9,"PUBLIC")),_c(new Cu(X9,Z9,"PRIVATE"))}J9();mu(C_,pb);mu(C_,pb,"esm2017");/**
|
|
751
|
+
* @license
|
|
752
|
+
* Copyright 2019 Google LLC
|
|
753
|
+
*
|
|
754
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
755
|
+
* you may not use this file except in compliance with the License.
|
|
756
|
+
* You may obtain a copy of the License at
|
|
757
|
+
*
|
|
758
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
759
|
+
*
|
|
760
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
761
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
762
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
763
|
+
* See the License for the specific language governing permissions and
|
|
764
|
+
* limitations under the License.
|
|
765
|
+
*/const Q9="/firebase-messaging-sw.js",e7="/firebase-cloud-messaging-push-scope",H_="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",t7="https://fcmregistrations.googleapis.com/v1",U_="google.c.a.c_id",n7="google.c.a.c_l",r7="google.c.a.ts",i7="google.c.a.e";var Q1;(function(t){t[t.DATA_MESSAGE=1]="DATA_MESSAGE",t[t.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"})(Q1||(Q1={}));/**
|
|
766
|
+
* @license
|
|
767
|
+
* Copyright 2018 Google LLC
|
|
768
|
+
*
|
|
769
|
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
|
|
770
|
+
* in compliance with the License. You may obtain a copy of the License at
|
|
771
|
+
*
|
|
772
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
773
|
+
*
|
|
774
|
+
* Unless required by applicable law or agreed to in writing, software distributed under the License
|
|
775
|
+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
776
|
+
* or implied. See the License for the specific language governing permissions and limitations under
|
|
777
|
+
* the License.
|
|
778
|
+
*/var Wd;(function(t){t.PUSH_RECEIVED="push-received",t.NOTIFICATION_CLICKED="notification-clicked"})(Wd||(Wd={}));/**
|
|
779
|
+
* @license
|
|
780
|
+
* Copyright 2017 Google LLC
|
|
781
|
+
*
|
|
782
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
783
|
+
* you may not use this file except in compliance with the License.
|
|
784
|
+
* You may obtain a copy of the License at
|
|
785
|
+
*
|
|
786
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
787
|
+
*
|
|
788
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
789
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
790
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
791
|
+
* See the License for the specific language governing permissions and
|
|
792
|
+
* limitations under the License.
|
|
793
|
+
*/function bl(t){const e=new Uint8Array(t);return btoa(String.fromCharCode(...e)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function o7(t){const e="=".repeat((4-t.length%4)%4),n=(t+e).replace(/\-/g,"+").replace(/_/g,"/"),r=atob(n),i=new Uint8Array(r.length);for(let o=0;o<r.length;++o)i[o]=r.charCodeAt(o);return i}/**
|
|
794
|
+
* @license
|
|
795
|
+
* Copyright 2019 Google LLC
|
|
796
|
+
*
|
|
797
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
798
|
+
* you may not use this file except in compliance with the License.
|
|
799
|
+
* You may obtain a copy of the License at
|
|
800
|
+
*
|
|
801
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
802
|
+
*
|
|
803
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
804
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
805
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
806
|
+
* See the License for the specific language governing permissions and
|
|
807
|
+
* limitations under the License.
|
|
808
|
+
*/const Im="fcm_token_details_db",s7=5,eT="fcm_token_object_Store";async function a7(t){if("databases"in indexedDB&&!(await indexedDB.databases()).map(o=>o.name).includes(Im))return null;let e=null;return(await ng(Im,s7,{upgrade:async(r,i,o,a)=>{var c;if(i<2||!r.objectStoreNames.contains(eT))return;const f=a.objectStore(eT),p=await f.index("fcmSenderId").get(t);if(await f.clear(),!!p){if(i===2){const y=p;if(!y.auth||!y.p256dh||!y.endpoint)return;e={token:y.fcmToken,createTime:(c=y.createTime)!==null&&c!==void 0?c:Date.now(),subscriptionOptions:{auth:y.auth,p256dh:y.p256dh,endpoint:y.endpoint,swScope:y.swScope,vapidKey:typeof y.vapidKey=="string"?y.vapidKey:bl(y.vapidKey)}}}else if(i===3){const y=p;e={token:y.fcmToken,createTime:y.createTime,subscriptionOptions:{auth:bl(y.auth),p256dh:bl(y.p256dh),endpoint:y.endpoint,swScope:y.swScope,vapidKey:bl(y.vapidKey)}}}else if(i===4){const y=p;e={token:y.fcmToken,createTime:y.createTime,subscriptionOptions:{auth:bl(y.auth),p256dh:bl(y.p256dh),endpoint:y.endpoint,swScope:y.swScope,vapidKey:bl(y.vapidKey)}}}}}})).close(),await Dm(Im),await Dm("fcm_vapid_details_db"),await Dm("undefined"),l7(e)?e:null}function l7(t){if(!t||!t.subscriptionOptions)return!1;const{subscriptionOptions:e}=t;return typeof t.createTime=="number"&&t.createTime>0&&typeof t.token=="string"&&t.token.length>0&&typeof e.auth=="string"&&e.auth.length>0&&typeof e.p256dh=="string"&&e.p256dh.length>0&&typeof e.endpoint=="string"&&e.endpoint.length>0&&typeof e.swScope=="string"&&e.swScope.length>0&&typeof e.vapidKey=="string"&&e.vapidKey.length>0}/**
|
|
809
|
+
* @license
|
|
810
|
+
* Copyright 2019 Google LLC
|
|
811
|
+
*
|
|
812
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
813
|
+
* you may not use this file except in compliance with the License.
|
|
814
|
+
* You may obtain a copy of the License at
|
|
815
|
+
*
|
|
816
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
817
|
+
*
|
|
818
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
819
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
820
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
821
|
+
* See the License for the specific language governing permissions and
|
|
822
|
+
* limitations under the License.
|
|
823
|
+
*/const u7="firebase-messaging-database",c7=1,zd="firebase-messaging-store";let Am=null;function W_(){return Am||(Am=ng(u7,c7,{upgrade:(t,e)=>{switch(e){case 0:t.createObjectStore(zd)}}})),Am}async function f7(t){const e=z_(t),r=await(await W_()).transaction(zd).objectStore(zd).get(e);if(r)return r;{const i=await a7(t.appConfig.senderId);if(i)return await yb(t,i),i}}async function yb(t,e){const n=z_(t),i=(await W_()).transaction(zd,"readwrite");return await i.objectStore(zd).put(e,n),await i.done,e}function z_({appConfig:t}){return t.appId}/**
|
|
824
|
+
* @license
|
|
825
|
+
* Copyright 2017 Google LLC
|
|
826
|
+
*
|
|
827
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
828
|
+
* you may not use this file except in compliance with the License.
|
|
829
|
+
* You may obtain a copy of the License at
|
|
830
|
+
*
|
|
831
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
832
|
+
*
|
|
833
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
834
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
835
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
836
|
+
* See the License for the specific language governing permissions and
|
|
837
|
+
* limitations under the License.
|
|
838
|
+
*/const d7={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."},$i=new tg("messaging","Messaging",d7);/**
|
|
839
|
+
* @license
|
|
840
|
+
* Copyright 2019 Google LLC
|
|
841
|
+
*
|
|
842
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
843
|
+
* you may not use this file except in compliance with the License.
|
|
844
|
+
* You may obtain a copy of the License at
|
|
845
|
+
*
|
|
846
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
847
|
+
*
|
|
848
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
849
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
850
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
851
|
+
* See the License for the specific language governing permissions and
|
|
852
|
+
* limitations under the License.
|
|
853
|
+
*/async function h7(t,e){const n=await wb(t),r=Y_(e),i={method:"POST",headers:n,body:JSON.stringify(r)};let o;try{o=await(await fetch(bb(t.appConfig),i)).json()}catch(a){throw $i.create("token-subscribe-failed",{errorInfo:a==null?void 0:a.toString()})}if(o.error){const a=o.error.message;throw $i.create("token-subscribe-failed",{errorInfo:a})}if(!o.token)throw $i.create("token-subscribe-no-token");return o.token}async function p7(t,e){const n=await wb(t),r=Y_(e.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)};let o;try{o=await(await fetch(`${bb(t.appConfig)}/${e.token}`,i)).json()}catch(a){throw $i.create("token-update-failed",{errorInfo:a==null?void 0:a.toString()})}if(o.error){const a=o.error.message;throw $i.create("token-update-failed",{errorInfo:a})}if(!o.token)throw $i.create("token-update-no-token");return o.token}async function g7(t,e){const r={method:"DELETE",headers:await wb(t)};try{const o=await(await fetch(`${bb(t.appConfig)}/${e}`,r)).json();if(o.error){const a=o.error.message;throw $i.create("token-unsubscribe-failed",{errorInfo:a})}}catch(i){throw $i.create("token-unsubscribe-failed",{errorInfo:i==null?void 0:i.toString()})}}function bb({projectId:t}){return`${t7}/projects/${t}/registrations`}async function wb({appConfig:t,installations:e}){const n=await e.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t.apiKey,"x-goog-firebase-installations-auth":`FIS ${n}`})}function Y_({p256dh:t,auth:e,endpoint:n,vapidKey:r}){const i={web:{endpoint:n,auth:e,p256dh:t}};return r!==H_&&(i.web.applicationPubKey=r),i}/**
|
|
854
|
+
* @license
|
|
855
|
+
* Copyright 2019 Google LLC
|
|
856
|
+
*
|
|
857
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
858
|
+
* you may not use this file except in compliance with the License.
|
|
859
|
+
* You may obtain a copy of the License at
|
|
860
|
+
*
|
|
861
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
862
|
+
*
|
|
863
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
864
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
865
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
866
|
+
* See the License for the specific language governing permissions and
|
|
867
|
+
* limitations under the License.
|
|
868
|
+
*/const m7=7*24*60*60*1e3;async function v7(t){const e=await b7(t.swRegistration,t.vapidKey),n={vapidKey:t.vapidKey,swScope:t.swRegistration.scope,endpoint:e.endpoint,auth:bl(e.getKey("auth")),p256dh:bl(e.getKey("p256dh"))},r=await f7(t.firebaseDependencies);if(r){if(w7(r.subscriptionOptions,n))return Date.now()>=r.createTime+m7?y7(t,{token:r.token,createTime:Date.now(),subscriptionOptions:n}):r.token;try{await g7(t.firebaseDependencies,r.token)}catch(i){console.warn(i)}return tT(t.firebaseDependencies,n)}else return tT(t.firebaseDependencies,n)}async function y7(t,e){try{const n=await p7(t.firebaseDependencies,e),r=Object.assign(Object.assign({},e),{token:n,createTime:Date.now()});return await yb(t.firebaseDependencies,r),n}catch(n){throw n}}async function tT(t,e){const r={token:await h7(t,e),createTime:Date.now(),subscriptionOptions:e};return await yb(t,r),r.token}async function b7(t,e){const n=await t.pushManager.getSubscription();return n||t.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:o7(e)})}function w7(t,e){const n=e.vapidKey===t.vapidKey,r=e.endpoint===t.endpoint,i=e.auth===t.auth,o=e.p256dh===t.p256dh;return n&&r&&i&&o}/**
|
|
869
|
+
* @license
|
|
870
|
+
* Copyright 2020 Google LLC
|
|
871
|
+
*
|
|
872
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
873
|
+
* you may not use this file except in compliance with the License.
|
|
874
|
+
* You may obtain a copy of the License at
|
|
875
|
+
*
|
|
876
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
877
|
+
*
|
|
878
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
879
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
880
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
881
|
+
* See the License for the specific language governing permissions and
|
|
882
|
+
* limitations under the License.
|
|
883
|
+
*/function nT(t){const e={from:t.from,collapseKey:t.collapse_key,messageId:t.fcmMessageId};return x7(e,t),S7(e,t),T7(e,t),e}function x7(t,e){if(!e.notification)return;t.notification={};const n=e.notification.title;n&&(t.notification.title=n);const r=e.notification.body;r&&(t.notification.body=r);const i=e.notification.image;i&&(t.notification.image=i);const o=e.notification.icon;o&&(t.notification.icon=o)}function S7(t,e){e.data&&(t.data=e.data)}function T7(t,e){var n,r,i,o,a;if(!e.fcmOptions&&!(!((n=e.notification)===null||n===void 0)&&n.click_action))return;t.fcmOptions={};const c=(i=(r=e.fcmOptions)===null||r===void 0?void 0:r.link)!==null&&i!==void 0?i:(o=e.notification)===null||o===void 0?void 0:o.click_action;c&&(t.fcmOptions.link=c);const f=(a=e.fcmOptions)===null||a===void 0?void 0:a.analytics_label;f&&(t.fcmOptions.analyticsLabel=f)}/**
|
|
884
|
+
* @license
|
|
885
|
+
* Copyright 2019 Google LLC
|
|
886
|
+
*
|
|
887
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
888
|
+
* you may not use this file except in compliance with the License.
|
|
889
|
+
* You may obtain a copy of the License at
|
|
890
|
+
*
|
|
891
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
892
|
+
*
|
|
893
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
894
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
895
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
896
|
+
* See the License for the specific language governing permissions and
|
|
897
|
+
* limitations under the License.
|
|
898
|
+
*/function C7(t){return typeof t=="object"&&!!t&&U_ in t}/**
|
|
899
|
+
* @license
|
|
900
|
+
* Copyright 2019 Google LLC
|
|
901
|
+
*
|
|
902
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
903
|
+
* you may not use this file except in compliance with the License.
|
|
904
|
+
* You may obtain a copy of the License at
|
|
905
|
+
*
|
|
906
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
907
|
+
*
|
|
908
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
909
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
910
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
911
|
+
* See the License for the specific language governing permissions and
|
|
912
|
+
* limitations under the License.
|
|
913
|
+
*/function E7(t){if(!t||!t.options)throw Mm("App Configuration Object");if(!t.name)throw Mm("App Name");const e=["projectId","apiKey","appId","messagingSenderId"],{options:n}=t;for(const r of e)if(!n[r])throw Mm(r);return{appName:t.name,projectId:n.projectId,apiKey:n.apiKey,appId:n.appId,senderId:n.messagingSenderId}}function Mm(t){return $i.create("missing-app-config-values",{valueName:t})}/**
|
|
914
|
+
* @license
|
|
915
|
+
* Copyright 2020 Google LLC
|
|
916
|
+
*
|
|
917
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
918
|
+
* you may not use this file except in compliance with the License.
|
|
919
|
+
* You may obtain a copy of the License at
|
|
920
|
+
*
|
|
921
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
922
|
+
*
|
|
923
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
924
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
925
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
926
|
+
* See the License for the specific language governing permissions and
|
|
927
|
+
* limitations under the License.
|
|
928
|
+
*/class k7{constructor(e,n,r){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const i=E7(e);this.firebaseDependencies={app:e,appConfig:i,installations:n,analyticsProvider:r}}_delete(){return Promise.resolve()}}/**
|
|
929
|
+
* @license
|
|
930
|
+
* Copyright 2020 Google LLC
|
|
931
|
+
*
|
|
932
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
933
|
+
* you may not use this file except in compliance with the License.
|
|
934
|
+
* You may obtain a copy of the License at
|
|
935
|
+
*
|
|
936
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
937
|
+
*
|
|
938
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
939
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
940
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
941
|
+
* See the License for the specific language governing permissions and
|
|
942
|
+
* limitations under the License.
|
|
943
|
+
*/async function D7(t){try{t.swRegistration=await navigator.serviceWorker.register(Q9,{scope:e7}),t.swRegistration.update().catch(()=>{})}catch(e){throw $i.create("failed-service-worker-registration",{browserErrorMessage:e==null?void 0:e.message})}}/**
|
|
944
|
+
* @license
|
|
945
|
+
* Copyright 2020 Google LLC
|
|
946
|
+
*
|
|
947
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
948
|
+
* you may not use this file except in compliance with the License.
|
|
949
|
+
* You may obtain a copy of the License at
|
|
950
|
+
*
|
|
951
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
952
|
+
*
|
|
953
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
954
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
955
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
956
|
+
* See the License for the specific language governing permissions and
|
|
957
|
+
* limitations under the License.
|
|
958
|
+
*/async function _7(t,e){if(!e&&!t.swRegistration&&await D7(t),!(!e&&t.swRegistration)){if(!(e instanceof ServiceWorkerRegistration))throw $i.create("invalid-sw-registration");t.swRegistration=e}}/**
|
|
959
|
+
* @license
|
|
960
|
+
* Copyright 2020 Google LLC
|
|
961
|
+
*
|
|
962
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
963
|
+
* you may not use this file except in compliance with the License.
|
|
964
|
+
* You may obtain a copy of the License at
|
|
965
|
+
*
|
|
966
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
967
|
+
*
|
|
968
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
969
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
970
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
971
|
+
* See the License for the specific language governing permissions and
|
|
972
|
+
* limitations under the License.
|
|
973
|
+
*/async function P7(t,e){e?t.vapidKey=e:t.vapidKey||(t.vapidKey=H_)}/**
|
|
974
|
+
* @license
|
|
975
|
+
* Copyright 2020 Google LLC
|
|
976
|
+
*
|
|
977
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
978
|
+
* you may not use this file except in compliance with the License.
|
|
979
|
+
* You may obtain a copy of the License at
|
|
980
|
+
*
|
|
981
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
982
|
+
*
|
|
983
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
984
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
985
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
986
|
+
* See the License for the specific language governing permissions and
|
|
987
|
+
* limitations under the License.
|
|
988
|
+
*/async function G_(t,e){if(!navigator)throw $i.create("only-available-in-window");if(Notification.permission==="default"&&await Notification.requestPermission(),Notification.permission!=="granted")throw $i.create("permission-blocked");return await P7(t,e==null?void 0:e.vapidKey),await _7(t,e==null?void 0:e.serviceWorkerRegistration),v7(t)}/**
|
|
989
|
+
* @license
|
|
990
|
+
* Copyright 2019 Google LLC
|
|
991
|
+
*
|
|
992
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
993
|
+
* you may not use this file except in compliance with the License.
|
|
994
|
+
* You may obtain a copy of the License at
|
|
995
|
+
*
|
|
996
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
997
|
+
*
|
|
998
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
999
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1000
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1001
|
+
* See the License for the specific language governing permissions and
|
|
1002
|
+
* limitations under the License.
|
|
1003
|
+
*/async function O7(t,e,n){const r=R7(e);(await t.firebaseDependencies.analyticsProvider.get()).logEvent(r,{message_id:n[U_],message_name:n[n7],message_time:n[r7],message_device_time:Math.floor(Date.now()/1e3)})}function R7(t){switch(t){case Wd.NOTIFICATION_CLICKED:return"notification_open";case Wd.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}/**
|
|
1004
|
+
* @license
|
|
1005
|
+
* Copyright 2017 Google LLC
|
|
1006
|
+
*
|
|
1007
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1008
|
+
* you may not use this file except in compliance with the License.
|
|
1009
|
+
* You may obtain a copy of the License at
|
|
1010
|
+
*
|
|
1011
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1012
|
+
*
|
|
1013
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1014
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1015
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1016
|
+
* See the License for the specific language governing permissions and
|
|
1017
|
+
* limitations under the License.
|
|
1018
|
+
*/async function I7(t,e){const n=e.data;if(!n.isFirebaseMessaging)return;t.onMessageHandler&&n.messageType===Wd.PUSH_RECEIVED&&(typeof t.onMessageHandler=="function"?t.onMessageHandler(nT(n)):t.onMessageHandler.next(nT(n)));const r=n.data;C7(r)&&r[i7]==="1"&&await O7(t,n.messageType,r)}const rT="@firebase/messaging",iT="0.12.12";/**
|
|
1019
|
+
* @license
|
|
1020
|
+
* Copyright 2020 Google LLC
|
|
1021
|
+
*
|
|
1022
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1023
|
+
* you may not use this file except in compliance with the License.
|
|
1024
|
+
* You may obtain a copy of the License at
|
|
1025
|
+
*
|
|
1026
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1027
|
+
*
|
|
1028
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1029
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1030
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1031
|
+
* See the License for the specific language governing permissions and
|
|
1032
|
+
* limitations under the License.
|
|
1033
|
+
*/const A7=t=>{const e=new k7(t.getProvider("app").getImmediate(),t.getProvider("installations-internal").getImmediate(),t.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",n=>I7(e,n)),e},M7=t=>{const e=t.getProvider("messaging").getImmediate();return{getToken:r=>G_(e,r)}};function L7(){_c(new Cu("messaging",A7,"PUBLIC")),_c(new Cu("messaging-internal",M7,"PRIVATE")),mu(rT,iT),mu(rT,iT,"esm2017")}/**
|
|
1034
|
+
* @license
|
|
1035
|
+
* Copyright 2020 Google LLC
|
|
1036
|
+
*
|
|
1037
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1038
|
+
* you may not use this file except in compliance with the License.
|
|
1039
|
+
* You may obtain a copy of the License at
|
|
1040
|
+
*
|
|
1041
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1042
|
+
*
|
|
1043
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1044
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1045
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1046
|
+
* See the License for the specific language governing permissions and
|
|
1047
|
+
* limitations under the License.
|
|
1048
|
+
*/async function F7(){try{await y_()}catch{return!1}return typeof window<"u"&&v_()&&t8()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}/**
|
|
1049
|
+
* @license
|
|
1050
|
+
* Copyright 2020 Google LLC
|
|
1051
|
+
*
|
|
1052
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1053
|
+
* you may not use this file except in compliance with the License.
|
|
1054
|
+
* You may obtain a copy of the License at
|
|
1055
|
+
*
|
|
1056
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1057
|
+
*
|
|
1058
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1059
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1060
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1061
|
+
* See the License for the specific language governing permissions and
|
|
1062
|
+
* limitations under the License.
|
|
1063
|
+
*/function N7(t,e){if(!navigator)throw $i.create("only-available-in-window");return t.onMessageHandler=e,()=>{t.onMessageHandler=null}}/**
|
|
1064
|
+
* @license
|
|
1065
|
+
* Copyright 2017 Google LLC
|
|
1066
|
+
*
|
|
1067
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1068
|
+
* you may not use this file except in compliance with the License.
|
|
1069
|
+
* You may obtain a copy of the License at
|
|
1070
|
+
*
|
|
1071
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1072
|
+
*
|
|
1073
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1074
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1075
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1076
|
+
* See the License for the specific language governing permissions and
|
|
1077
|
+
* limitations under the License.
|
|
1078
|
+
*/function j7(t=n9()){return F7().then(e=>{if(!e)throw $i.create("unsupported-browser")},e=>{throw $i.create("indexed-db-unsupported")}),hb(fb(t),"messaging").getImmediate()}async function B7(t,e){return t=fb(t),G_(t,e)}function $7(t,e){return t=fb(t),N7(t,e)}L7();exports.AuthContext=Gv;exports.AuthProvider=dM;exports.CustomOpenList=UT;exports.CustomOpenListProvider=IL;exports.DateRangePicker=W6;exports.ERROR_MESSAGE=dT;exports.FavoriteMenu=S6;exports.GermanyIcon=GT;exports.GlobalMenu=N6;exports.IconComponent=e_;exports.InfiniteLoader=jL;exports.Language=Rd;exports.LanguageDropdown=L6;exports.LogoutConfirmModal=HT;exports.NotitficationItem=RL;exports.PropTypes=Rs;exports.Q=oF;exports.SaasThemeProvider=PL;exports.StyleWrapper=Ip;exports.TranslationProvider=vL;exports.UnauthorizedPage=j6;exports.UnitedKingdomIcon=zT;exports._=$6;exports._assertThisInitialized=Sl;exports._extends=Df;exports._extends$1=BL;exports._inheritsLoose=WT;exports._objectWithoutPropertiesLoose=qv;exports.activeStyles=ab;exports.axiosInstance=As;exports.clsx=wl;exports.color=mr;exports.commonjsGlobal=Di;exports.createCustomTheme=BT;exports.getAugmentedNamespace=PM;exports.getMessagingInWindow=j7;exports.getToken=B7;exports.handleClickOutside=YT;exports.handleErrorAxios=gT;exports.initializeApp=x_;exports.languageStyles=Xv;exports.lodashExports=c_;exports.login=hT;exports.logout=pT;exports.notify=fF;exports.objectWithoutPropertiesLoose=_M;exports.onMessage=$7;exports.pushError=Gd;exports.pushSuccess=Qv;exports.pushWarning=cF;exports.responseInterceptor=cM;exports.search=hM;exports.setFavicon=$T;exports.setShellBackdrop=pM;exports.translate=Dr;exports.translationConfig=gL;exports.updateFavoriteItems=ub;exports.useAuth=vT;exports.useCustomTranslation=LT;exports.useTheme=_L;exports.useTranslation=mL;exports.useUserPermissions=mT;
|