@ukpc-lib/react 0.10.31-dev.0 → 0.11.1-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/BaseBreadcrumb/BaseBreadcrumbs.d.ts +17 -0
- package/dist/components/FavoriteMenu/components/MenuItem.d.ts +4 -1
- package/dist/components/Notification/models/NotiticationDto.d.ts +3 -1
- package/dist/components/index.cjs +21 -25
- package/dist/components/index.js +2989 -2701
- package/dist/components/main.d.ts +1 -0
- package/dist/index.esm2017-BNG0gYFp.cjs +1078 -0
- package/dist/{index.esm2017-8114465d.js → index.esm2017-BpDo4Ydk.js} +19603 -19561
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +8 -8
- package/dist/theme/SaasThemeProvider.d.ts +0 -1
- package/package.json +2 -2
- package/web-components-bundle/BaseBreadcrumbs-CfBVFmQR.js +5407 -0
- package/web-components-bundle/access-denied/index.js +2 -3
- package/web-components-bundle/base-breadcrumbs/index.js +6 -0
- package/web-components-bundle/clsx-DB4S2d7J.js +22 -0
- package/web-components-bundle/favorite-menu/index.js +4 -7
- package/web-components-bundle/global-menu/index.js +4 -7
- package/web-components-bundle/global-topbar/index.js +7 -6
- package/web-components-bundle/has-permission/index.js +4 -7
- package/web-components-bundle/{index-7c8fbf6b.js → index-B4T2INnZ.js} +34971 -39761
- package/web-components-bundle/{index-c91ec106.js → index-B4uOLjGK.js} +361 -376
- package/web-components-bundle/react-to-web-component-CXwKHjZr.js +6388 -0
- package/web-components-bundle/react-toastify.esm-CrTD7cpE.js +320 -0
- package/web-components-bundle/setPrototypeOf-BVKdEITT.js +14 -0
- package/web-components-bundle/toast-config/index.js +2 -2
- package/web-components-bundle/toast-config-notification/index.js +3 -4
- package/dist/components/FavoriteMenu/data.json.d.ts +0 -2414
- package/dist/index.esm2017-14522630.cjs +0 -1101
- package/web-components-bundle/react-to-web-component-d5889290.js +0 -6388
- package/web-components-bundle/react-toastify.esm-d8df41b8.js +0 -339
|
@@ -0,0 +1,1078 @@
|
|
|
1
|
+
var pY=require("./index.css");const je=require("react/jsx-runtime"),q=require("react"),HI=require("axios"),UI=require("moment"),is=require("@mui/material"),xd=require("react-query");require("@r2wc/react-to-web-component");const Tp=require("react-router-dom"),Fm=require("react-dom");function WI(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}function zI(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const bn=WI(q),YI=".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 O1({isOpen:e,onClose:t,onConfirm:n}){if(!e)return null;function r(i){var o;((o=i.target)==null?void 0:o.id)==="modal-wrapper"&&t()}return je.jsxs(je.Fragment,{children:[je.jsx("style",{type:"text/css",children:YI}),je.jsx("div",{onClick:r,className:"modal-overlay",id:"modal-wrapper",children:je.jsxs("div",{className:"modal-container",children:[je.jsx("h3",{className:"modal-title",children:"Log out"}),je.jsx("p",{className:"text-sm",children:"Are you sure want to log out?"}),je.jsxs("div",{className:"modal-footer",children:[je.jsx("button",{className:"modal-button cancel-btn",onClick:t,children:"Cancel"}),je.jsx("button",{onClick:n,className:"text-white confirm-btn modal-button",children:"Confirm"})]})]})})]})}const Ei={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"};function qo(e){"@babel/helpers - typeof";return qo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qo(e)}function Zo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GI(e,t){if(qo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function D1(e){var t=GI(e,"string");return qo(t)=="symbol"?t:t+""}function Jb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,D1(r.key),r)}}function Jo(e,t,n){return t&&Jb(e.prototype,t),n&&Jb(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function wl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qh(e,t){return qh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},qh(e,t)}function Cp(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qh(e,t)}function jd(e,t){if(t&&(qo(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wl(e)}function $s(e){return $s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$s(e)}function Vs(e,t,n){return(t=D1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _1(e){if(Array.isArray(e))return e}function qI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Qb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function P1(e,t){if(e){if(typeof e=="string")return Qb(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qb(e,t):void 0}}function R1(){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 XI(e){return _1(e)||qI(e)||P1(e)||R1()}function e0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function t0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?e0(Object(n),!0).forEach(function(r){Vs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var KI={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,n){console&&console[t]&&console[t].apply(console,n)}},ZI=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Zo(this,e),this.init(t,n)}return Jo(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||KI,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 e(this.logger,t0(t0({},{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 e(this.logger,n)}}]),e}(),Fs=new ZI,wu=function(){function e(){Zo(this,e),this.observers={}}return Jo(e,[{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 s=[].concat(this.observers[n]);s.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))})}}}]),e}();function qf(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function n0(e){return e==null?"":""+e}function JI(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function Nm(e,t,n){function r(c){return c&&c.indexOf("###")>-1?c.replace(/###/g,"."):c}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var s=r(o.shift());!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={}}return i()?{}:{obj:e,k:r(o.shift())}}function r0(e,t,n){var r=Nm(e,t,Object),i=r.obj,o=r.k;i[o]=n}function QI(e,t,n,r){var i=Nm(e,t,Object),o=i.obj,s=i.k;o[s]=o[s]||[],o[s].push(n)}function Xh(e,t){var n=Nm(e,t),r=n.obj,i=n.k;if(r)return r[i]}function eA(e,t,n){var r=Xh(e,n);return r!==void 0?r:Xh(t,n)}function I1(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):I1(e[r],t[r],n):e[r]=t[r]);return e}function rf(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var tA={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function nA(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return tA[t]}):e}var Ep=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,rA=[" ",",","?","!",";"];function iA(e,t,n){t=t||"",n=n||"";var r=rA.filter(function(c){return t.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(e);if(!o){var s=e.indexOf(n);s>0&&!i.test(e.substring(0,s))&&(o=!0)}return o}function Kh(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,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 s=2,c=r.slice(o,o+s).join(n),f=i[c];f===void 0&&r.length>o+s;)s++,c=r.slice(o,o+s).join(n),f=i[c];if(f===void 0)return;if(f===null)return null;if(t.endsWith(c)){if(typeof f=="string")return f;if(c&&typeof f[c]=="string")return f[c]}var p=r.slice(o+s).join(n);return p?Kh(f,p,n):void 0}i=i[r[o]]}return i}}function i0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?i0(Object(n),!0).forEach(function(r){Vs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oA(e){var t=aA();return function(){var r=$s(e),i;if(t){var o=$s(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return jd(this,i)}}function aA(){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 sA=function(e){Cp(n,e);var t=oA(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Zo(this,n),i=t.call(this),Ep&&wu.call(wl(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 Jo(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,s){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];s&&typeof s!="string"&&(y=y.concat(s)),s&&typeof s=="string"&&(y=y.concat(f?s.split(f):s)),i.indexOf(".")>-1&&(y=i.split("."));var g=Xh(this.data,y);return g||!p||typeof s!="string"?g:Kh(this.data&&this.data[i]&&this.data[i][o],s,f)}},{key:"addResource",value:function(i,o,s,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];s&&(y=y.concat(p?s.split(p):s)),i.indexOf(".")>-1&&(y=i.split("."),c=o,o=y[1]),this.addNamespaces(o),r0(this.data,y,c),f.silent||this.emit("added",i,o,s,c)}},{key:"addResources",value:function(i,o,s){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var f in s)(typeof s[f]=="string"||Object.prototype.toString.apply(s[f])==="[object Array]")&&this.addResource(i,o,f,s[f],{silent:!0});c.silent||this.emit("added",i,o,s)}},{key:"addResourceBundle",value:function(i,o,s,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=s,s=o,o=y[1]),this.addNamespaces(o);var g=Xh(this.data,y)||{};c?I1(g,s,f):g=lh(lh({},g),s),r0(this.data,y,g),p.silent||this.emit("added",i,o,s)}},{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"?lh(lh({},{}),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),s=o&&Object.keys(o)||[];return!!s.find(function(c){return o[c]&&Object.keys(o[c]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(wu),A1={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,n,r,i,o){var s=this;return t.forEach(function(c){s.processors[c]&&(n=s.processors[c].process(n,r,i,o))}),n}};function o0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Mi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o0(Object(n),!0).forEach(function(r){Vs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lA(e){var t=uA();return function(){var r=$s(e),i;if(t){var o=$s(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return jd(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 a0={},s0=function(e){Cp(n,e);var t=lA(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Zo(this,n),i=t.call(this),Ep&&wu.call(wl(i)),JI(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,wl(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=Fs.create("translator"),i}return Jo(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 s=this.resolve(i,o);return s&&s.res!==void 0}},{key:"extractFromKey",value:function(i,o){var s=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");var c=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,f=o.ns||this.options.defaultNS||[],p=s&&i.indexOf(s)>-1,y=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!iA(i,s,c);if(p&&!y){var g=i.match(this.interpolator.nestingRegexp);if(g&&g.length>0)return{key:i,namespaces:f};var T=i.split(s);(s!==c||s===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,s){var c=this;if(qo(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),qo(o)==="object"&&(o=Mi({},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),g=y.key,T=y.namespaces,C=T[T.length-1],P=o.lng||this.language,I=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(P&&P.toLowerCase()==="cimode"){if(I){var M=o.nsSeparator||this.options.nsSeparator;return f?{res:"".concat(C).concat(M).concat(g),usedKey:g,exactUsedKey:g,usedLng:P,usedNS:C}:"".concat(C).concat(M).concat(g)}return f?{res:g,usedKey:g,exactUsedKey:g,usedLng:P,usedNS:C}:g}var R=this.resolve(i,o),V=R&&R.res,U=R&&R.usedKey||g,Q=R&&R.exactUsedKey||g,K=Object.prototype.toString.apply(V),ue=["[object Number]","[object Function]","[object RegExp]"],S=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,he=!this.i18nFormat||this.i18nFormat.handleAsObject,ae=typeof V!="string"&&typeof V!="boolean"&&typeof V!="number";if(he&&V&&ae&&ue.indexOf(K)<0&&!(typeof S=="string"&&K==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var Ge=this.options.returnedObjectHandler?this.options.returnedObjectHandler(U,V,Mi(Mi({},o),{},{ns:T})):"key '".concat(g," (").concat(this.language,")' returned an object instead of string.");return f?(R.res=Ge,R):Ge}if(p){var Re=K==="[object Array]",Me=Re?[]:{},$e=Re?Q:U;for(var Ue in V)if(Object.prototype.hasOwnProperty.call(V,Ue)){var ce="".concat($e).concat(p).concat(Ue);Me[Ue]=this.translate(ce,Mi(Mi({},o),{joinArrays:!1,ns:T})),Me[Ue]===ce&&(Me[Ue]=V[Ue])}V=Me}}else if(he&&typeof S=="string"&&K==="[object Array]")V=V.join(S),V&&(V=this.extendTranslation(V,i,o,s));else{var Te=!1,Ne=!1,We=o.count!==void 0&&typeof o.count!="string",tt=n.hasDefaultValue(o),we=We?this.pluralResolver.getSuffix(P,o.count,o):"",Ee=o["defaultValue".concat(we)]||o.defaultValue;!this.isValidLookup(V)&&tt&&(Te=!0,V=Ee),this.isValidLookup(V)||(Ne=!0,V=g);var Le=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Be=Le&&Ne?void 0:V,ke=tt&&Ee!==V&&this.options.updateMissing;if(Ne||Te||ke){if(this.logger.log(ke?"updateKey":"missingKey",P,C,g,ke?Ee:V),p){var _e=this.resolve(g,Mi(Mi({},o),{},{keySeparator:!1}));_e&&_e.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 ze=[],it=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&it&&it[0])for(var dt=0;dt<it.length;dt++)ze.push(it[dt]);else this.options.saveMissingTo==="all"?ze=this.languageUtils.toResolveHierarchy(o.lng||this.language):ze.push(o.lng||this.language);var ht=function(bt,et,At){var Lt=tt&&At!==V?At:Be;c.options.missingKeyHandler?c.options.missingKeyHandler(bt,C,et,Lt,ke,o):c.backendConnector&&c.backendConnector.saveMissing&&c.backendConnector.saveMissing(bt,C,et,Lt,ke,o),c.emit("missingKey",bt,C,et,V)};this.options.saveMissing&&(this.options.saveMissingPlurals&&We?ze.forEach(function(ft){c.pluralResolver.getSuffixes(ft,o).forEach(function(bt){ht([ft],g+bt,o["defaultValue".concat(bt)]||Ee)})}):ht(ze,g,Ee))}V=this.extendTranslation(V,i,o,R,s),Ne&&V===g&&this.options.appendNamespaceToMissingKey&&(V="".concat(C,":").concat(g)),(Ne||Te)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?V=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(C,":").concat(g):g,Te?V:void 0):V=this.options.parseMissingKeyHandler(V))}return f?(R.res=V,R):V}},{key:"extendTranslation",value:function(i,o,s,c,f){var p=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,Mi(Mi({},this.options.interpolation.defaultVariables),s),c.usedLng,c.usedNS,c.usedKey,{resolved:c});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init(Mi(Mi({},s),{interpolation:Mi(Mi({},this.options.interpolation),s.interpolation)}));var y=typeof i=="string"&&(s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),g;if(y){var T=i.match(this.interpolator.nestingRegexp);g=T&&T.length}var C=s.replace&&typeof s.replace!="string"?s.replace:s;if(this.options.interpolation.defaultVariables&&(C=Mi(Mi({},this.options.interpolation.defaultVariables),C)),i=this.interpolator.interpolate(i,C,s.lng||this.language,s),y){var P=i.match(this.interpolator.nestingRegexp),I=P&&P.length;g<I&&(s.nest=!1)}!s.lng&&this.options.compatibilityAPI!=="v1"&&c&&c.res&&(s.lng=c.usedLng),s.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var V=arguments.length,U=new Array(V),Q=0;Q<V;Q++)U[Q]=arguments[Q];return f&&f[0]===U[0]&&!s.context?(p.logger.warn("It seems you are nesting recursively key: ".concat(U[0]," in key: ").concat(o[0])),null):p.translate.apply(p,U.concat([o]))},s)),s.interpolation&&this.interpolator.reset()}var M=s.postProcess||this.options.postProcess,R=typeof M=="string"?[M]:M;return i!=null&&R&&R.length&&s.applyPostProcessor!==!1&&(i=A1.handle(R,i,o,this.options&&this.options.postProcessPassResolved?Mi({i18nResolved:c},s):s,this)),i}},{key:"resolve",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c,f,p,y,g;return typeof i=="string"&&(i=[i]),i.forEach(function(T){if(!o.isValidLookup(c)){var C=o.extractFromKey(T,s),P=C.key;f=P;var I=C.namespaces;o.options.fallbackNS&&(I=I.concat(o.options.fallbackNS));var M=s.count!==void 0&&typeof s.count!="string",R=M&&!s.ordinal&&s.count===0&&o.pluralResolver.shouldUseIntlApi(),V=s.context!==void 0&&(typeof s.context=="string"||typeof s.context=="number")&&s.context!=="",U=s.lngs?s.lngs:o.languageUtils.toResolveHierarchy(s.lng||o.language,s.fallbackLng);I.forEach(function(Q){o.isValidLookup(c)||(g=Q,!a0["".concat(U[0],"-").concat(Q)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(g)&&(a0["".concat(U[0],"-").concat(Q)]=!0,o.logger.warn('key "'.concat(f,'" for languages "').concat(U.join(", "),`" won't get resolved as namespace "`).concat(g,'" 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!!!")),U.forEach(function(K){if(!o.isValidLookup(c)){y=K;var ue=[P];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(ue,P,K,Q,s);else{var S;M&&(S=o.pluralResolver.getSuffix(K,s.count,s));var he="".concat(o.options.pluralSeparator,"zero");if(M&&(ue.push(P+S),R&&ue.push(P+he)),V){var ae="".concat(P).concat(o.options.contextSeparator).concat(s.context);ue.push(ae),M&&(ue.push(ae+S),R&&ue.push(ae+he))}}for(var Ge;Ge=ue.pop();)o.isValidLookup(c)||(p=Ge,c=o.getResource(K,Q,Ge,s))}}))})}}),{res:c,usedKey:f,exactUsedKey:p,usedLng:y,usedNS:g}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,s){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,s,c):this.resourceStore.getResource(i,o,s,c)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)&&o===s.substring(0,o.length)&&i[s]!==void 0)return!0;return!1}}]),n}(wu);function kg(e){return e.charAt(0).toUpperCase()+e.slice(1)}var l0=function(){function e(t){Zo(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Fs.create("languageUtils")}return Jo(e,[{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]=kg(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]=kg(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=kg(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 s=r.formatLanguageCode(o);(!r.options.supportedLngs||r.isSupportedCode(s))&&(i=s)}}),!i&&this.options.supportedLngs&&n.forEach(function(o){if(!i){var s=r.getLanguagePartFromCode(o);if(r.isSupportedCode(s))return i=s;i=r.options.supportedLngs.find(function(c){if(c===s)return c;if(!(c.indexOf("-")<0&&s.indexOf("-")<0)&&c.indexOf(s)===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),s=[],c=function(p){p&&(i.isSupportedCode(p)?s.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){s.indexOf(f)<0&&c(i.formatLanguageCode(f))}),s}}]),e}(),cA=[{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}],fA={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}},dA=["v1","v2","v3"],u0={zero:0,one:1,two:2,few:3,many:4,other:5};function hA(){var e={};return cA.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:fA[t.fc]}})}),e}var pA=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Zo(this,e),this.languageUtils=t,this.options=n,this.logger=Fs.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=hA()}return Jo(e,[{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(s,c){return u0[s]-u0[c]}).map(function(s){return"".concat(r.options.prepend).concat(s)}):o.numbers.map(function(s){return r.getSuffix(n,s,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)),s=n.numbers[o];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));var c=function(){return i.options.prepend&&s.toString()?i.options.prepend+s.toString():s.toString()};return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?"_plural_".concat(s.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!dA.includes(this.options.compatibilityJSON)}}]),e}();function c0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function es(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c0(Object(n),!0).forEach(function(r){Vs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function f0(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=eA(e,t,n);return!o&&i&&typeof n=="string"&&(o=Kh(e,n,r),o===void 0&&(o=Kh(t,n,r))),o}var gA=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Zo(this,e),this.logger=Fs.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return Jo(e,[{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:nA,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?rf(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?rf(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?rf(r.nestingPrefix):r.nestingPrefixEscaped||rf("$t("),this.nestingSuffix=r.nestingSuffix?rf(r.nestingSuffix):r.nestingSuffixEscaped||rf(")"),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 s=this,c,f,p,y=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function g(M){return M.replace(/\$/g,"$$$$")}var T=function(R){if(R.indexOf(s.formatSeparator)<0){var V=f0(r,y,R,s.options.keySeparator,s.options.ignoreJSONStructure);return s.alwaysFormat?s.format(V,void 0,i,es(es(es({},o),r),{},{interpolationkey:R})):V}var U=R.split(s.formatSeparator),Q=U.shift().trim(),K=U.join(s.formatSeparator).trim();return s.format(f0(r,y,Q,s.options.keySeparator,s.options.ignoreJSONStructure),K,i,es(es(es({},o),r),{},{interpolationkey:Q}))};this.resetRegExp();var C=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,P=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,I=[{regex:this.regexpUnescape,safeValue:function(R){return g(R)}},{regex:this.regexp,safeValue:function(R){return s.escapeValue?g(s.escape(R)):g(R)}}];return I.forEach(function(M){for(p=0;c=M.regex.exec(n);){var R=c[1].trim();if(f=T(R),f===void 0)if(typeof C=="function"){var V=C(n,c,o);f=typeof V=="string"?V:""}else if(o&&Object.prototype.hasOwnProperty.call(o,R))f="";else if(P){f=c[0];continue}else s.logger.warn("missed to pass in variable ".concat(R," for interpolating ").concat(n)),f="";else typeof f!="string"&&!s.useRawValueToEscape&&(f=n0(f));var U=M.safeValue(f);if(n=n.replace(c[0],U),P?(M.regex.lastIndex+=f.length,M.regex.lastIndex-=c[0].length):M.regex.lastIndex=0,p++,p>=s.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,c,f;function p(C,P){var I=this.nestingOptionsSeparator;if(C.indexOf(I)<0)return C;var M=C.split(new RegExp("".concat(I,"[ ]*{"))),R="{".concat(M[1]);C=M[0],R=this.interpolate(R,f);var V=R.match(/'/g),U=R.match(/"/g);(V&&V.length%2===0&&!U||U.length%2!==0)&&(R=R.replace(/'/g,'"'));try{f=JSON.parse(R),P&&(f=es(es({},P),f))}catch(Q){return this.logger.warn("failed parsing options string in nesting for key ".concat(C),Q),"".concat(C).concat(I).concat(R)}return delete f.defaultValue,C}for(;s=this.nestingRegexp.exec(n);){var y=[];f=es({},o),f=f.replace&&typeof f.replace!="string"?f.replace:f,f.applyPostProcessor=!1,delete f.defaultValue;var g=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){var T=s[1].split(this.formatSeparator).map(function(C){return C.trim()});s[1]=T.shift(),y=T,g=!0}if(c=r(p.call(this,s[1].trim(),f),f),c&&s[0]===n&&typeof c!="string")return c;typeof c!="string"&&(c=n0(c)),c||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(n)),c=""),g&&(c=y.reduce(function(C,P){return i.format(C,P,o.lng,es(es({},o),{},{interpolationkey:s[1].trim()}))},c.trim())),n=n.replace(s[0],c),this.regexp.lastIndex=0}return n}}]),e}();function d0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d0(Object(n),!0).forEach(function(r){Vs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vA(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);if(t==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var o=i.split(";");o.forEach(function(s){if(s){var c=s.split(":"),f=XI(c),p=f[0],y=f.slice(1),g=y.join(":").trim().replace(/^'+|'+$/g,"");n[p.trim()]||(n[p.trim()]=g),g==="false"&&(n[p.trim()]=!1),g==="true"&&(n[p.trim()]=!0),isNaN(g)||(n[p.trim()]=parseInt(g,10))}})}}return{formatName:t,formatOptions:n}}function of(e){var t={};return function(r,i,o){var s=i+JSON.stringify(o),c=t[s];return c||(c=e(i,o),t[s]=c),c(r)}}var mA=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Zo(this,e),this.logger=Fs.create("formatter"),this.options=t,this.formats={number:of(function(n,r){var i=new Intl.NumberFormat(n,gl({},r));return function(o){return i.format(o)}}),currency:of(function(n,r){var i=new Intl.NumberFormat(n,gl(gl({},r),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:of(function(n,r){var i=new Intl.DateTimeFormat(n,gl({},r));return function(o){return i.format(o)}}),relativetime:of(function(n,r){var i=new Intl.RelativeTimeFormat(n,gl({},r));return function(o){return i.format(o,r.range||"day")}}),list:of(function(n,r){var i=new Intl.ListFormat(n,gl({},r));return function(o){return i.format(o)}})},this.init(t)}return Jo(e,[{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()]=of(r)}},{key:"format",value:function(n,r,i){var o=this,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},c=r.split(this.formatSeparator),f=c.reduce(function(p,y){var g=vA(y),T=g.formatName,C=g.formatOptions;if(o.formats[T]){var P=p;try{var I=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},M=I.locale||I.lng||s.locale||s.lng||i;P=o.formats[T](p,M,gl(gl(gl({},C),s),I))}catch(R){o.logger.warn(R)}return P}else o.logger.warn("there was no format function for ".concat(T));return p},n);return f}}]),e}();function h0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function p0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h0(Object(n),!0).forEach(function(r){Vs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yA(e){var t=bA();return function(){var r=$s(e),i;if(t){var o=$s(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return jd(this,i)}}function bA(){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 wA(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var xA=function(e){Cp(n,e);var t=yA(n);function n(r,i,o){var s,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Zo(this,n),s=t.call(this),Ep&&wu.call(wl(s)),s.backend=r,s.store=i,s.services=o,s.languageUtils=o.languageUtils,s.options=c,s.logger=Fs.create("backendConnector"),s.waitingReads=[],s.maxParallelReads=c.maxParallelReads||10,s.readingCalls=0,s.maxRetries=c.maxRetries>=0?c.maxRetries:5,s.retryTimeout=c.retryTimeout>=1?c.retryTimeout:350,s.state={},s.queue=[],s.backend&&s.backend.init&&s.backend.init(o,c.backend,c),s}return Jo(n,[{key:"queueLoad",value:function(i,o,s,c){var f=this,p={},y={},g={},T={};return i.forEach(function(C){var P=!0;o.forEach(function(I){var M="".concat(C,"|").concat(I);!s.reload&&f.store.hasResourceBundle(C,I)?f.state[M]=2:f.state[M]<0||(f.state[M]===1?y[M]===void 0&&(y[M]=!0):(f.state[M]=1,P=!1,y[M]===void 0&&(y[M]=!0),p[M]===void 0&&(p[M]=!0),T[I]===void 0&&(T[I]=!0)))}),P||(g[C]=!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(g),toLoadNamespaces:Object.keys(T)}}},{key:"loaded",value:function(i,o,s){var c=i.split("|"),f=c[0],p=c[1];o&&this.emit("failedLoading",f,p,o),s&&this.store.addResourceBundle(f,p,s),this.state[i]=o?-1:2;var y={};this.queue.forEach(function(g){QI(g.loaded,[f],p),wA(g,i),o&&g.errors.push(o),g.pendingCount===0&&!g.done&&(Object.keys(g.loaded).forEach(function(T){y[T]||(y[T]={});var C=g.loaded[T];C.length&&C.forEach(function(P){y[T][P]===void 0&&(y[T][P]=!0)})}),g.done=!0,g.errors.length?g.callback(g.errors):g.callback())}),this.emit("loaded",y),this.queue=this.queue.filter(function(g){return!g.done})}},{key:"read",value:function(i,o,s){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:s,tried:f,wait:p,callback:y});return}this.readingCalls++;var g=function(I,M){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(I&&M&&f<c.maxRetries){setTimeout(function(){c.read.call(c,i,o,s,f+1,p*2,y)},p);return}y(I,M)},T=this.backend[s].bind(this.backend);if(T.length===2){try{var C=T(i,o);C&&typeof C.then=="function"?C.then(function(P){return g(null,P)}).catch(g):g(null,C)}catch(P){g(P)}return}return T(i,o,g)}},{key:"prepareLoading",value:function(i,o){var s=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){s.loadOne(y)})}},{key:"load",value:function(i,o,s){this.prepareLoading(i,o,{},s)}},{key:"reload",value:function(i,o,s){this.prepareLoading(i,o,{reload:!0},s)}},{key:"loadOne",value:function(i){var o=this,s=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,g){y&&o.logger.warn("".concat(s,"loading namespace ").concat(p," for language ").concat(f," failed"),y),!y&&g&&o.logger.log("".concat(s,"loaded namespace ").concat(p," for language ").concat(f),g),o.loaded(i,y,g)})}},{key:"saveMissing",value:function(i,o,s,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(s,'" 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(!(s==null||s==="")){if(this.backend&&this.backend.create){var g=p0(p0({},p),{},{isUpdate:f}),T=this.backend.create.bind(this.backend);if(T.length<6)try{var C;T.length===5?C=T(i,o,s,c,g):C=T(i,o,s,c),C&&typeof C.then=="function"?C.then(function(P){return y(null,P)}).catch(y):y(null,C)}catch(P){y(P)}else T(i,o,s,c,y,g)}!i||!i[0]||this.store.addResource(i[0],o,s,c)}}}]),n}(wu);function g0(){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(t){var n={};if(qo(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),qo(t[2])==="object"||qo(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach(function(i){n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:function(t,n,r,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function v0(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function m0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Rs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?m0(Object(n),!0).forEach(function(r){Vs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function SA(e){var t=TA();return function(){var r=$s(e),i;if(t){var o=$s(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return jd(this,i)}}function TA(){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 uh(){}function CA(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}var Zh=function(e){Cp(n,e);var t=SA(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Zo(this,n),r=t.call(this),Ep&&wu.call(wl(r)),r.options=v0(i),r.services={},r.logger=Fs,r.modules={external:[]},CA(wl(r)),o&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,o),jd(r,wl(r));setTimeout(function(){r.init(i,o)},0)}return r}return Jo(n,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(s=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=g0();this.options=Rs(Rs(Rs({},c),this.options),v0(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Rs(Rs({},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?Fs.init(f(this.modules.logger),this.options):Fs.init(null,this.options);var p;this.modules.formatter?p=this.modules.formatter:typeof Intl<"u"&&(p=mA);var y=new l0(this.options);this.store=new sA(this.options.resources,this.options);var g=this.services;g.logger=Fs,g.resourceStore=this.store,g.languageUtils=y,g.pluralResolver=new pA(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)&&(g.formatter=f(p),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new gA(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new xA(f(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(R){for(var V=arguments.length,U=new Array(V>1?V-1:0),Q=1;Q<V;Q++)U[Q-1]=arguments[Q];i.emit.apply(i,[R].concat(U))}),this.modules.languageDetector&&(g.languageDetector=f(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=f(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new s0(this.services,this.options),this.translator.on("*",function(R){for(var V=arguments.length,U=new Array(V>1?V-1:0),Q=1;Q<V;Q++)U[Q-1]=arguments[Q];i.emit.apply(i,[R].concat(U))}),this.modules.external.forEach(function(R){R.init&&R.init(i)})}if(this.format=this.options.interpolation.format,s||(s=uh),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 C=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];C.forEach(function(R){i[R]=function(){var V;return(V=i.store)[R].apply(V,arguments)}});var P=["addResource","addResources","addResourceBundle","removeResourceBundle"];P.forEach(function(R){i[R]=function(){var V;return(V=i.store)[R].apply(V,arguments),i}});var I=qf(),M=function(){var V=function(Q,K){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),I.resolve(K),s(Q,K)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return V(null,i.t.bind(i));i.changeLanguage(i.options.lng,V)};return this.options.resources||!this.options.initImmediate?M():setTimeout(M,0),I}},{key:"loadResources",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:uh,c=s,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(C){if(C){var P=o.services.languageUtils.toResolveHierarchy(C);P.forEach(function(I){p.indexOf(I)<0&&p.push(I)})}};if(f)y(f);else{var g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.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,s){var c=qf();return i||(i=this.languages),o||(o=this.options.ns),s||(s=uh),this.services.backendConnector.reload(i,o,function(f){c.resolve(),s(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"&&A1.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 s=this.languages[o];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}},{key:"changeLanguage",value:function(i,o){var s=this;this.isLanguageChangingTo=i;var c=qf();this.emit("languageChanging",i);var f=function(T){s.language=T,s.languages=s.services.languageUtils.toResolveHierarchy(T),s.resolvedLanguage=void 0,s.setResolvedLanguage(T)},p=function(T,C){C?(f(C),s.translator.changeLanguage(C),s.isLanguageChangingTo=void 0,s.emit("languageChanged",C),s.logger.log("languageChanged",C)):s.isLanguageChangingTo=void 0,c.resolve(function(){return s.t.apply(s,arguments)}),o&&o(T,function(){return s.t.apply(s,arguments)})},y=function(T){!i&&!T&&s.services.languageDetector&&(T=[]);var C=typeof T=="string"?T:s.services.languageUtils.getBestMatchFromCodes(T);C&&(s.language||f(C),s.translator.language||s.translator.changeLanguage(C),s.services.languageDetector&&s.services.languageDetector.cacheUserLanguage&&s.services.languageDetector.cacheUserLanguage(C)),s.loadResources(C,function(P){p(P,C)})};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,s){var c=this,f=function p(y,g){var T;if(qo(g)!=="object"){for(var C=arguments.length,P=new Array(C>2?C-2:0),I=2;I<C;I++)P[I-2]=arguments[I];T=c.options.overloadTranslationOptionHandler([y,g].concat(P))}else T=Rs({},g);T.lng=T.lng||p.lng,T.lngs=T.lngs||p.lngs,T.ns=T.ns||p.ns,T.keyPrefix=T.keyPrefix||s||p.keyPrefix;var M=c.options.keySeparator||".",R;return T.keyPrefix&&Array.isArray(y)?R=y.map(function(V){return"".concat(T.keyPrefix).concat(M).concat(V)}):R=T.keyPrefix?"".concat(T.keyPrefix).concat(M).concat(y):y,c.t(R,T)};return typeof i=="string"?f.lng=i:f.lngs=i,f.ns=o,f.keyPrefix=s,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,s=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=s.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(C,P){var I=o.services.backendConnector.state["".concat(C,"|").concat(P)];return I===-1||I===2};if(s.precheck){var g=s.precheck(this,y);if(g!==void 0)return g}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 s=this,c=qf();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(f){s.options.ns.indexOf(f)<0&&s.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 s=qf();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){s.resolve(),o&&o(p)}),s):(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"],s=this.services&&this.services.languageUtils||new l0(g0());return o.indexOf(s.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]:{},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:uh,c=Rs(Rs(Rs({},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=Rs({},this.services),f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f.translator=new s0(f.services,f.options),f.translator.on("*",function(y){for(var g=arguments.length,T=new Array(g>1?g-1:0),C=1;C<g;C++)T[C-1]=arguments[C];f.emit.apply(f,[y].concat(T))}),f.init(c,s),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}(wu);Vs(Zh,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Zh(e,t)});var ii=Zh.createInstance();ii.createInstance=Zh.createInstance;ii.createInstance;ii.dir;ii.init;ii.loadResources;ii.reloadResources;ii.use;ii.changeLanguage;ii.getFixedT;var M1=ii.t;ii.exists;ii.setDefaultNamespace;ii.hasLoadedNamespace;ii.loadNamespaces;ii.loadLanguages;const L1={TOKEN_MALFORMED:"token_malformed",TOKEN_EXPIRED:"token_expired"},F1=e=>{window.location.href=`${e}/authentication/login`},N1=e=>{window.location.href=`${e}/authentication/logout`},ka=HI.create({withCredentials:!0});let Og=!1,Rv=[];const y0=e=>{Rv.forEach(t=>{e?t.reject(e):t.resolve()}),Rv=[]};function j1(e,t){var o,s,c,f,p,y,g,T,C;const n=e.config,r=((s=(o=e.response)==null?void 0:o.data)==null?void 0:s.errorMessage)||((f=(c=e.response)==null?void 0:c.data)==null?void 0:f.message),i=r===L1.TOKEN_EXPIRED;return((p=e.response)==null?void 0:p.status)===401&&i&&!n._retry?Og?new Promise((P,I)=>{Rv.push({resolve:P,reject:I})}).then(()=>ka(n)).catch(P=>Promise.reject(P)):(n._retry=!0,Og=!0,ka.post("/authentication/api/v1/auth/refresh-token",void 0,{baseURL:window.env.AUTHEN_DOMAIN}).then(()=>(y0(null),ka(n))).catch(P=>(y0(P),Promise.reject(P))).finally(()=>{Og=!1})):((y=e.response)==null?void 0:y.status)===401&&!i?F1(window.env.AUTHEN_DOMAIN):(((g=e.response)==null?void 0:g.status)===403?(T=t==null?void 0:t.handle403)==null||T.call(t,e):(!(t!=null&&t.disabledPushNotify)&&Bd(M1(`${r||"Something went wrong!"}`)),(C=t==null?void 0:t.handleOtherError)==null||C.call(t,e)),r&&e.response&&e.response.data&&(e.response.data.message=r),Promise.reject(e))}const EA=ka.interceptors.response.use(e=>e,async e=>j1(e)),B1=q.createContext({}),kA=({children:e})=>{const[t,n]=q.useState(!1),[r,i]=q.useState({all:{rows:[],total:0},unread:{rows:[],total:0}}),o=()=>{n(!t)},s=()=>{n(!1)};return je.jsx(B1.Provider,{value:{isOpen:t,toggleOpen:o,setShowModalFalse:s,notidata:r,setNotiData:i},children:e})};var $1={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},b0=q.createContext&&q.createContext($1),OA=["attr","size","title"];function DA(e,t){if(e==null)return{};var n=_A(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _A(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Jh(){return Jh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jh.apply(this,arguments)}function w0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Qh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?w0(Object(n),!0).forEach(function(r){PA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function PA(e,t,n){return t=RA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RA(e){var t=IA(e,"string");return typeof t=="symbol"?t:t+""}function IA(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function V1(e){return e&&e.map((t,n)=>q.createElement(t.tag,Qh({key:n},t.attr),V1(t.child)))}function kp(e){return t=>q.createElement(AA,Jh({attr:Qh({},e.attr)},t),V1(e.child))}function AA(e){var t=n=>{var{attr:r,size:i,title:o}=e,s=DA(e,OA),c=i||n.size||"1em",f;return n.className&&(f=n.className),e.className&&(f=(f?f+" ":"")+e.className),q.createElement("svg",Jh({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:f,style:Qh(Qh({color:e.color||n.color},n.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),o&&q.createElement("title",null,o),e.children)};return b0!==void 0?q.createElement(b0.Consumer,null,n=>t(n)):t($1)}function MA(e){return kp({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:[]}]})(e)}function LA(e){return kp({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:[]}]})(e)}const FA={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 Dg(e){return e+" !important"}const H1=e=>{const t={...e.colors};return is.createTheme({palette:{primary:{main:t.primary300,contrastText:t.textPrimary},secondary:{main:t.secondary,contrastText:t.textPrimary},warning:{main:t.warning,contrastText:t.textPrimary},error:{main:t.danger,contrastText:t.textPrimary}},typography:FA,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:t.primary300,color:t.buttonText,"&:hover":{backgroundColor:t.buttonHover||t.primary300},"&.Mui-disabled":{backgroundColor:t.grey200}}},{props:{variant:"contained",color:"error"},style:{color:t.white}},{props:{variant:"confirm"},style:{backgroundColor:t.danger,color:t.white,"&:hover":{backgroundColor:t.dangerDark},"&.Mui-disabled":{backgroundColor:t.grey200}}},{props:{variant:"cancel"},style:{backgroundColor:t.grey300,color:t.textPrimary,"&:hover":{backgroundColor:t.grey400}}},{props:{variant:"outlinedPrimary"},style:{color:t.primary500,border:"1px solid",borderColor:t.primary500,"&:hover":{backgroundColor:"inherit"}}},{props:{variant:"outLinedDanger"},style:{color:t.danger,border:"1px solid",borderColor:t.danger,"&:hover":{backgroundColor:"inherit"}}},{props:{size:"small"},style:{fontSize:"12px",lineHeight:"normal",borderRadius:"3px",padding:"4px 16px"}}]},MuiAppBar:{styleOverrides:{root:{backgroundColor:t.appBarBgColor,color:t.appBarColor}}},MuiSelect:{defaultProps:{MenuProps:{PaperProps:{sx:{boxShadow:"none",border:1,borderStyle:"solid",borderColor:t.grey300,mt:"5px"}},MenuListProps:{sx:{padding:"5px","& .MuiMenuItem-root":{fontWeight:400,minHeight:0,borderRadius:"5px","&:hover":{backgroundColor:t.grey100},"&.Mui-selected":{backgroundColor:t.primary200}}}}}},styleOverrides:{select:{padding:"9.94px 5px 9.94px 15px"}}},MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Dg(t.primary200),"&:hover":{backgroundColor:Dg(t.primary200)}}}}},MuiPaginationItem:{defaultProps:{components:{previous:MA,next:LA}},styleOverrides:{root:{"& svg":{width:"10px"},border:"none",fontSize:"14px",lineHeight:"1.5rem",borderRadius:"7px","&.Mui-selected":{backgroundColor:Dg(t.primary300+"1a")},"&.MuiPaginationItem-previousNext":{backgroundColor:t.grey200}}}},MuiChip:{styleOverrides:{root:{borderRadius:"5px",fontSize:"14px","& .MuiChip-label":{lineHeight:"normal"}},avatar:{width:"10px"},colorSuccess:{color:t.success,backgroundColor:t.successLight},colorWarning:{color:t.warning,backgroundColor:t.warningLight},colorError:{color:t.danger,backgroundColor:t.dangerLight},colorSecondary:{color:t.linkPrimary,backgroundColor:t.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:t.grey600},"& .detail-icon":{stroke:t.grey600},color:t.grey400,"&.Mui-selected":{color:t.primary400}}}},MuiTabs:{styleOverrides:{indicator:{backgroundColor:t.primary400}}},MuiDrawer:{defaultProps:{},styleOverrides:{root:{"&.MuiDrawer-paper":{overflowY:"unset"},"& .MuiDrawer-paper":{zIndex:9},"&.MuiPaper-root":{border:"none",background:t.grey100,pt:12,zIndex:9}}}},MuiTextField:{defaultProps:{InputProps:{sx:{"& .Mui-disabled":{background:t.grey200}}},InputLabelProps:{shrink:!0}},styleOverrides:{root:{backgroundColor:t.white,"& .MuiOutlinedInput-input":{padding:"0px 16px 0px 12px",fontWeight:400,height:40,fontSize:"14px",border:1,borderRadius:4,"&::placeholder":{color:t.grey600}},"& .MuiFormLabel-asterisk":{color:t.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 ${t.grey300}`}}}},MuiRadio:{defaultProps:{sx:{"&.MuiButtonBase-root":{padding:"5px"}}},styleOverrides:{root:{"& .MuiSvgIcon-root":{fontSize:16},color:t.grey600,"&.Mui-checked":{color:t.success},"&.Mui-disabled":{color:t.grey600}}}},MuiTooltip:{defaultProps:{placement:"top"},styleOverrides:{tooltip:{fontSize:"10px",backgroundColor:t.grey600,color:t.white,"& .MuiTooltip-arrow":{color:t.grey600}}}}}})};function NA(e,t){const n={...e};return t==null||t.forEach(r=>{r.children&&r.children.forEach(({key:i,color:o})=>{n[i]=o.trim()||Ei[i]})}),n}function U1(e){if(!e)return;let t=document.querySelector("link[rel*='icon']");t||(t=document.createElement("link"),t.rel="icon",document.head.appendChild(t)),t.href=e}function jA(e){var c,f,p;const{data:t,isFetching:n}=xd.useQuery(["customTheme"],()=>e!=null&&e.url?fetch(e.url).then(y=>y.json()).then(y=>(["image","favicon","icon"].forEach(g=>{var T;(T=y==null?void 0:y.theme)!=null&&T[g]&&(y.theme[g]+=`?v=${Date.now()}`)}),y)):void 0,{enabled:!!(e!=null&&e.url)&&(e==null?void 0:e.enabled),refetchOnWindowFocus:!1,cacheTime:0,onSuccess(y){var g;U1((g=y==null?void 0:y.theme)==null?void 0:g.favicon)}}),r=NA(Ei,(c=t==null?void 0:t.theme)==null?void 0:c.keyColor),i=H1({colors:r}),o=(f=t==null?void 0:t.theme)==null?void 0:f.image,s=(p=t==null?void 0:t.theme)==null?void 0:p.icon;return{colors:r,theme:i,logo:o,icon:s,isFetching:n,themeDto:t==null?void 0:t.theme}}const W1=q.createContext({}),BA=()=>q.useContext(W1),$A=e=>{var o;const{children:t,brandTheme:n}=e,r=jA(n),i=((o=e.customTheme)==null?void 0:o.call(e,r.colors))||r.theme;return je.jsx(W1.Provider,{value:r,children:je.jsx(is.ThemeProvider,{theme:i,children:t})})},VA=e=>{const t=xd.useQueryClient(),n=q.useMemo(()=>e.axiosInstance||ka,[e.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(e.baseUrl).origin;const r=xd.useQuery({queryKey:["user"],refetchOnWindowFocus:!1,retry:!1,queryFn:()=>n.get(e.baseUrl+"/user-management/api/v1/users/my-account").then(i=>(window.user=i.data,i.data))});return q.useEffect(()=>{window.onpageshow=function(i){i.persisted&&t.invalidateQueries(["user"])}},[t]),r},HA=e=>{const t=xd.useQueryClient(),n=q.useMemo(()=>e.axiosInstance||ka,[e.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(e.baseUrl).origin;const r=xd.useQuery({queryKey:["user-permissions"],refetchOnWindowFocus:!1,retry:!1,queryFn:()=>n.get(e.baseUrl+"/user-management/api/v1/users/my-account/permissions").then(i=>i.data)});return q.useEffect(()=>{window.onpageshow=function(i){i.persisted&&t.invalidateQueries(["user-permissions"])}},[t]),r},jm=q.createContext({}),UA=e=>{const{children:t,baseUrl:n,axiosInstance:r}=e,i=new URL(n).origin,o=VA({axiosInstance:r,baseUrl:n}),s=HA({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?je.jsx(is.Grid,{container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:"100vh"},children:je.jsx(is.CircularProgress,{})}):je.jsx(jm.Provider,{value:{user:o==null?void 0:o.data,login:c,logout:f,isFetching:o.isFetching,permissions:s==null?void 0:s.data},children:t})},WA=()=>q.useContext(jm);function zA(e,t,n){return n.some(r=>{const i=e[r];return String(i).toLowerCase().includes(t.toLowerCase())})}var z1=[],YA=z1.forEach,GA=z1.slice;function qA(e){return YA.call(GA.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var x0=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,XA=function(t,n,r){var i=r||{};i.path=i.path||"/";var o=encodeURIComponent(n),s="".concat(t,"=").concat(o);if(i.maxAge>0){var c=i.maxAge-0;if(Number.isNaN(c))throw new Error("maxAge should be a Number");s+="; Max-Age=".concat(Math.floor(c))}if(i.domain){if(!x0.test(i.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(i.domain)}if(i.path){if(!x0.test(i.path))throw new TypeError("option path is invalid");s+="; Path=".concat(i.path)}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(s+="; HttpOnly"),i.secure&&(s+="; Secure"),i.sameSite){var f=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(f){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s},S0={create:function(t,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=XA(t,encodeURIComponent(n),o)},read:function(t){for(var n="".concat(t,"="),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(t){this.create(t,"",-1)}},KA={name:"cookie",lookup:function(t){var n;if(t.lookupCookie&&typeof document<"u"){var r=S0.read(t.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupCookie&&typeof document<"u"&&S0.create(n.lookupCookie,t,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},ZA={name:"querystring",lookup:function(t){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("&"),s=0;s<o.length;s++){var c=o[s].indexOf("=");if(c>0){var f=o[s].substring(0,c);f===t.lookupQuerystring&&(n=o[s].substring(c+1))}}}return n}},Xf=null,T0=function(){if(Xf!==null)return Xf;try{Xf=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Xf=!1}return Xf},JA={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&T0()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&T0()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},Kf=null,C0=function(){if(Kf!==null)return Kf;try{Kf=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Kf=!1}return Kf},QA={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&C0()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&C0()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},eM={name:"navigator",lookup:function(t){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}},tM={name:"htmlTag",lookup:function(t){var n,r=t.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},nM={name:"path",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof r[t.lookupFromPathIndex]!="string")return;n=r[t.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},rM={name:"subdomain",lookup:function(t){var n=typeof t.lookupFromSubdomainIndex=="number"?t.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]}},Y1=!1;try{document.cookie,Y1=!0}catch{}var G1=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Y1||G1.splice(1,1);function iM(){return{order:G1,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(t){return t}}}var q1=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Zo(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return Jo(e,[{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=qA(r,this.options||{},iM()),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(KA),this.addDetector(ZA),this.addDetector(JA),this.addDetector(QA),this.addDetector(eM),this.addDetector(tM),this.addDetector(nM),this.addDetector(rM)}},{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 s=r.detectors[o].lookup(r.options);s&&typeof s=="string"&&(s=[s]),s&&(i=i.concat(s))}}),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)}))}}])}();q1.type="languageDetector";function Bm(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}const oM=Object.freeze(Object.defineProperty({__proto__:null,default:Bm},Symbol.toStringTag,{value:"Module"}));var Ci=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Eu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function aM(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}function sM(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];typeof n[0]=="string"&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var E0={};function Iv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&E0[t[0]]||(typeof t[0]=="string"&&(E0[t[0]]=new Date),sM.apply(void 0,t))}var X1=function(t,n){return function(){if(t.isInitialized)n();else{var r=function i(){setTimeout(function(){t.off("initialized",i)},0),n()};t.on("initialized",r)}}};function k0(e,t,n){e.loadNamespaces(t,X1(e,n))}function O0(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(function(i){e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,X1(e,r))}function lM(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=t.languages[0],i=t.options?t.options.fallbackLng:!1,o=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;var s=function(f,p){var y=t.services.backendConnector.state["".concat(f,"|").concat(p)];return y===-1||y===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!s(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||s(r,e)&&(!i||s(o,e)))}function uM(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t.languages||!t.languages.length)return Iv("i18n.languages were undefined or empty",t.languages),!0;var r=t.options.ignoreJSONStructure!==void 0;return r?t.hasLoadedNamespace(e,{lng:n.lng,precheck:function(o,s){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!s(o.isLanguageChangingTo,e))return!1}}):lM(e,t,n)}var cM=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,fM={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},dM=function(t){return fM[t]},hM=function(t){return t.replace(cM,dM)};function D0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D0(Object(n),!0).forEach(function(r){Vs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Av={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:hM};function pM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Av=_0(_0({},Av),e)}function gM(){return Av}var K1;function vM(e){K1=e}function mM(){return K1}var yM={type:"3rdParty",init:function(t){pM(t.options.react),vM(t)}},Z1=q.createContext(),bM=function(){function e(){Zo(this,e),this.usedNamespaces={}}return Jo(e,[{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)}}]),e}();function wM(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,c=[],f=!0,p=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(y){p=!0,i=y}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(p)throw i}}return c}}function xM(e,t){return _1(e)||wM(e,t)||P1(e,t)||R1()}function P0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _g(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?P0(Object(n),!0).forEach(function(r){Vs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var SM=function(t,n){var r=q.useRef();return q.useEffect(function(){r.current=t},[t,n]),r.current};function J1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=q.useContext(Z1)||{},i=r.i18n,o=r.defaultNS,s=n||i||mM();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new bM),!s){Iv("You will need to pass in an i18next instance by using initReactI18next");var c=function(ae,Ge){return typeof Ge=="string"?Ge:Ge&&qo(Ge)==="object"&&typeof Ge.defaultValue=="string"?Ge.defaultValue:Array.isArray(ae)?ae[ae.length-1]:ae},f=[c,{},!1];return f.t=c,f.i18n={},f.ready=!1,f}s.options.react&&s.options.react.wait!==void 0&&Iv("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var p=_g(_g(_g({},gM()),s.options.react),t),y=p.useSuspense,g=p.keyPrefix,T=e||o||s.options&&s.options.defaultNS;T=typeof T=="string"?[T]:T||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(T);var C=(s.isInitialized||s.initializedStoreOnce)&&T.every(function(he){return uM(he,s,p)});function P(){return s.getFixedT(t.lng||null,p.nsMode==="fallback"?T:T[0],g)}var I=q.useState(P),M=xM(I,2),R=M[0],V=M[1],U=T.join();t.lng&&(U="".concat(t.lng).concat(U));var Q=SM(U),K=q.useRef(!0);q.useEffect(function(){var he=p.bindI18n,ae=p.bindI18nStore;K.current=!0,!C&&!y&&(t.lng?O0(s,t.lng,T,function(){K.current&&V(P)}):k0(s,T,function(){K.current&&V(P)})),C&&Q&&Q!==U&&K.current&&V(P);function Ge(){K.current&&V(P)}return he&&s&&s.on(he,Ge),ae&&s&&s.store.on(ae,Ge),function(){K.current=!1,he&&s&&he.split(" ").forEach(function(Re){return s.off(Re,Ge)}),ae&&s&&ae.split(" ").forEach(function(Re){return s.store.off(Re,Ge)})}},[s,U]);var ue=q.useRef(!0);q.useEffect(function(){K.current&&!ue.current&&V(P),ue.current=!1},[s,g]);var S=[R,s,C];if(S.t=R,S.i18n=s,S.ready=C,C||!C&&!y)return S;throw new Promise(function(he){t.lng?O0(s,t.lng,T,function(){return he()}):k0(s,T,function(){return he()})})}function TM(e){var t=e.i18n,n=e.defaultNS,r=e.children,i=q.useMemo(function(){return{i18n:t,defaultNS:n}},[t,n]);return q.createElement(Z1.Provider,{value:i},r)}var Q1=[],CM=Q1.forEach,EM=Q1.slice;function kM(e){return CM.call(EM.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function OM(e){return e?typeof e=="function"?new e:e:null}function DM(){return{handleEmptyResourcesAsFailed:!0,cacheHitMode:"none"}}function R0(e,t,n,r){var i=e.read.bind(e);if(i.length===2){try{var o=i(t,n);o&&typeof o.then=="function"?o.then(function(s){return r(null,s)}).catch(r):r(null,o)}catch(s){r(s)}return}i(t,n,r)}var eT=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Zo(this,e),this.backends=[],this.type="backend",this.allOptions=r,this.init(t,n)}return Jo(e,[{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=kM(i,this.options||{},DM()),this.allOptions=o,this.options.backends&&this.options.backends.forEach(function(s,c){r.backends[c]=r.backends[c]||OM(s),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,s=this.backends.length,c=function p(y){if(y>=s)return i(new Error("non of the backend loaded data",!0));var g=y===s-1,T=o.options.handleEmptyResourcesAsFailed&&!g?0:-1,C=o.backends[y];C.read?R0(C,n,r,function(P,I,M){if(!P&&I&&Object.keys(I).length>T){if(i(null,I,y),f(y-1,I),C.save&&o.options.cacheHitMode&&["refresh","refreshAndUpdateStore"].indexOf(o.options.cacheHitMode)>-1){if(M&&o.options.refreshExpirationTime&&M+o.options.refreshExpirationTime>Date.now())return;var R=o.backends[y+1];R&&R.read&&R0(R,n,r,function(V,U){V||U&&(Object.keys(U).length<=T||(f(y,U),o.options.cacheHitMode==="refreshAndUpdateStore"&&o.services&&o.services.resourceStore&&o.services.resourceStore.addResourceBundle(n,r,U)))})}}else p(y+1)}):p(y+1)},f=function p(y,g){if(!(y<0)){var T=o.backends[y];T.save&&T.save(n,r,g),p(y-1,g)}};c(0)}},{key:"create",value:function(n,r,i,o){var s=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(g){return s(null,g)}).catch(s):s(null,y)}catch(g){s(g)}return}p(n,r,i,o,s,c)}})}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,s=r.logger,c=i.language;if(!(c&&c.toLowerCase()==="cimode")){var f=[],p=function(g){var T=o.toResolveHierarchy(g);T.forEach(function(C){f.indexOf(C)<0&&f.push(C)})};p(c),this.allOptions.preload&&this.allOptions.preload.forEach(function(y){return p(y)}),f.forEach(function(y){n.allOptions.ns.forEach(function(g){i.read(y,g,"read",null,null,function(T,C){T&&s.warn("loading namespace ".concat(g," for language ").concat(y," failed"),T),!T&&C&&s.log("loaded namespace ".concat(g," for language ").concat(y),C),i.loaded("".concat(y,"|").concat(g),T,C)})})})}}}]),e}();eT.type="backend";function Mv(e){"@babel/helpers - typeof";return Mv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mv(e)}function tT(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Mv(XMLHttpRequest))==="object"}function _M(e){return!!e&&typeof e.then=="function"}function PM(e){return _M(e)?e:Promise.resolve(e)}function RM(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Lv={exports:{}},ch={exports:{}},I0;function IM(){return I0||(I0=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Ci<"u"&&Ci,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(s){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(ce){return ce&&DataView.prototype.isPrototypeOf(ce)}if(f.arrayBuffer)var y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],g=ArrayBuffer.isView||function(ce){return ce&&y.indexOf(Object.prototype.toString.call(ce))>-1};function T(ce){if(typeof ce!="string"&&(ce=String(ce)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(ce)||ce==="")throw new TypeError('Invalid character in header field name: "'+ce+'"');return ce.toLowerCase()}function C(ce){return typeof ce!="string"&&(ce=String(ce)),ce}function P(ce){var Te={next:function(){var Ne=ce.shift();return{done:Ne===void 0,value:Ne}}};return f.iterable&&(Te[Symbol.iterator]=function(){return Te}),Te}function I(ce){this.map={},ce instanceof I?ce.forEach(function(Te,Ne){this.append(Ne,Te)},this):Array.isArray(ce)?ce.forEach(function(Te){this.append(Te[0],Te[1])},this):ce&&Object.getOwnPropertyNames(ce).forEach(function(Te){this.append(Te,ce[Te])},this)}I.prototype.append=function(ce,Te){ce=T(ce),Te=C(Te);var Ne=this.map[ce];this.map[ce]=Ne?Ne+", "+Te:Te},I.prototype.delete=function(ce){delete this.map[T(ce)]},I.prototype.get=function(ce){return ce=T(ce),this.has(ce)?this.map[ce]:null},I.prototype.has=function(ce){return this.map.hasOwnProperty(T(ce))},I.prototype.set=function(ce,Te){this.map[T(ce)]=C(Te)},I.prototype.forEach=function(ce,Te){for(var Ne in this.map)this.map.hasOwnProperty(Ne)&&ce.call(Te,this.map[Ne],Ne,this)},I.prototype.keys=function(){var ce=[];return this.forEach(function(Te,Ne){ce.push(Ne)}),P(ce)},I.prototype.values=function(){var ce=[];return this.forEach(function(Te){ce.push(Te)}),P(ce)},I.prototype.entries=function(){var ce=[];return this.forEach(function(Te,Ne){ce.push([Ne,Te])}),P(ce)},f.iterable&&(I.prototype[Symbol.iterator]=I.prototype.entries);function M(ce){if(ce.bodyUsed)return Promise.reject(new TypeError("Already read"));ce.bodyUsed=!0}function R(ce){return new Promise(function(Te,Ne){ce.onload=function(){Te(ce.result)},ce.onerror=function(){Ne(ce.error)}})}function V(ce){var Te=new FileReader,Ne=R(Te);return Te.readAsArrayBuffer(ce),Ne}function U(ce){var Te=new FileReader,Ne=R(Te);return Te.readAsText(ce),Ne}function Q(ce){for(var Te=new Uint8Array(ce),Ne=new Array(Te.length),We=0;We<Te.length;We++)Ne[We]=String.fromCharCode(Te[We]);return Ne.join("")}function K(ce){if(ce.slice)return ce.slice(0);var Te=new Uint8Array(ce.byteLength);return Te.set(new Uint8Array(ce)),Te.buffer}function ue(){return this.bodyUsed=!1,this._initBody=function(ce){this.bodyUsed=this.bodyUsed,this._bodyInit=ce,ce?typeof ce=="string"?this._bodyText=ce:f.blob&&Blob.prototype.isPrototypeOf(ce)?this._bodyBlob=ce:f.formData&&FormData.prototype.isPrototypeOf(ce)?this._bodyFormData=ce:f.searchParams&&URLSearchParams.prototype.isPrototypeOf(ce)?this._bodyText=ce.toString():f.arrayBuffer&&f.blob&&p(ce)?(this._bodyArrayBuffer=K(ce.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):f.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(ce)||g(ce))?this._bodyArrayBuffer=K(ce):this._bodyText=ce=Object.prototype.toString.call(ce):this._bodyText="",this.headers.get("content-type")||(typeof ce=="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(ce)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},f.blob&&(this.blob=function(){var ce=M(this);if(ce)return ce;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 ce=M(this);return ce||(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(V)}),this.text=function(){var ce=M(this);if(ce)return ce;if(this._bodyBlob)return U(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(Q(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(Ge)}),this.json=function(){return this.text().then(JSON.parse)},this}var S=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function he(ce){var Te=ce.toUpperCase();return S.indexOf(Te)>-1?Te:ce}function ae(ce,Te){if(!(this instanceof ae))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Te=Te||{};var Ne=Te.body;if(ce instanceof ae){if(ce.bodyUsed)throw new TypeError("Already read");this.url=ce.url,this.credentials=ce.credentials,Te.headers||(this.headers=new I(ce.headers)),this.method=ce.method,this.mode=ce.mode,this.signal=ce.signal,!Ne&&ce._bodyInit!=null&&(Ne=ce._bodyInit,ce.bodyUsed=!0)}else this.url=String(ce);if(this.credentials=Te.credentials||this.credentials||"same-origin",(Te.headers||!this.headers)&&(this.headers=new I(Te.headers)),this.method=he(Te.method||this.method||"GET"),this.mode=Te.mode||this.mode||null,this.signal=Te.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Ne)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(Ne),(this.method==="GET"||this.method==="HEAD")&&(Te.cache==="no-store"||Te.cache==="no-cache")){var We=/([?&])_=[^&]*/;if(We.test(this.url))this.url=this.url.replace(We,"$1_="+new Date().getTime());else{var tt=/\?/;this.url+=(tt.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}ae.prototype.clone=function(){return new ae(this,{body:this._bodyInit})};function Ge(ce){var Te=new FormData;return ce.trim().split("&").forEach(function(Ne){if(Ne){var We=Ne.split("="),tt=We.shift().replace(/\+/g," "),we=We.join("=").replace(/\+/g," ");Te.append(decodeURIComponent(tt),decodeURIComponent(we))}}),Te}function Re(ce){var Te=new I,Ne=ce.replace(/\r?\n[\t ]+/g," ");return Ne.split("\r").map(function(We){return We.indexOf(`
|
|
3
|
+
`)===0?We.substr(1,We.length):We}).forEach(function(We){var tt=We.split(":"),we=tt.shift().trim();if(we){var Ee=tt.join(":").trim();Te.append(we,Ee)}}),Te}ue.call(ae.prototype);function Me(ce,Te){if(!(this instanceof Me))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Te||(Te={}),this.type="default",this.status=Te.status===void 0?200:Te.status,this.ok=this.status>=200&&this.status<300,this.statusText=Te.statusText===void 0?"":""+Te.statusText,this.headers=new I(Te.headers),this.url=Te.url||"",this._initBody(ce)}ue.call(Me.prototype),Me.prototype.clone=function(){return new Me(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new I(this.headers),url:this.url})},Me.error=function(){var ce=new Me(null,{status:0,statusText:""});return ce.type="error",ce};var $e=[301,302,303,307,308];Me.redirect=function(ce,Te){if($e.indexOf(Te)===-1)throw new RangeError("Invalid status code");return new Me(null,{status:Te,headers:{location:ce}})},s.DOMException=c.DOMException;try{new s.DOMException}catch{s.DOMException=function(Te,Ne){this.message=Te,this.name=Ne;var We=Error(Te);this.stack=We.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function Ue(ce,Te){return new Promise(function(Ne,We){var tt=new ae(ce,Te);if(tt.signal&&tt.signal.aborted)return We(new s.DOMException("Aborted","AbortError"));var we=new XMLHttpRequest;function Ee(){we.abort()}we.onload=function(){var Be={status:we.status,statusText:we.statusText,headers:Re(we.getAllResponseHeaders()||"")};Be.url="responseURL"in we?we.responseURL:Be.headers.get("X-Request-URL");var ke="response"in we?we.response:we.responseText;setTimeout(function(){Ne(new Me(ke,Be))},0)},we.onerror=function(){setTimeout(function(){We(new TypeError("Network request failed"))},0)},we.ontimeout=function(){setTimeout(function(){We(new TypeError("Network request failed"))},0)},we.onabort=function(){setTimeout(function(){We(new s.DOMException("Aborted","AbortError"))},0)};function Le(Be){try{return Be===""&&c.location.href?c.location.href:Be}catch{return Be}}we.open(tt.method,Le(tt.url),!0),tt.credentials==="include"?we.withCredentials=!0:tt.credentials==="omit"&&(we.withCredentials=!1),"responseType"in we&&(f.blob?we.responseType="blob":f.arrayBuffer&&tt.headers.get("Content-Type")&&tt.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(we.responseType="arraybuffer")),Te&&typeof Te.headers=="object"&&!(Te.headers instanceof I)?Object.getOwnPropertyNames(Te.headers).forEach(function(Be){we.setRequestHeader(Be,C(Te.headers[Be]))}):tt.headers.forEach(function(Be,ke){we.setRequestHeader(ke,Be)}),tt.signal&&(tt.signal.addEventListener("abort",Ee),we.onreadystatechange=function(){we.readyState===4&&tt.signal.removeEventListener("abort",Ee)}),we.send(typeof tt._bodyInit>"u"?null:tt._bodyInit)})}return Ue.polyfill=!0,c.fetch||(c.fetch=Ue,c.Headers=I,c.Request=ae,c.Response=Me),s.Headers=I,s.Request=ae,s.Response=Me,s.fetch=Ue,s})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}(ch,ch.exports)),ch.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof Ci<"u"&&Ci.fetch?n=Ci.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof RM<"u"&&typeof window>"u"){var r=n||IM();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(Lv,Lv.exports);var nT=Lv.exports;const rT=Eu(nT),A0=zI({__proto__:null,default:rT},[nT]);function M0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function L0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?M0(Object(n),!0).forEach(function(r){AM(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AM(e,t,n){return(t=MM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MM(e){var t=LM(e,"string");return xc(t)=="symbol"?t:t+""}function LM(e,t){if(xc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xc(e){"@babel/helpers - typeof";return xc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xc(e)}var xl;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?xl=global.fetch:typeof window<"u"&&window.fetch?xl=window.fetch:xl=fetch);var Sd;tT()&&(typeof global<"u"&&global.XMLHttpRequest?Sd=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Sd=window.XMLHttpRequest));var ep;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?ep=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(ep=window.ActiveXObject));!xl&&A0&&!Sd&&!ep&&(xl=rT||A0);typeof xl!="function"&&(xl=void 0);var Fv=function(t,n){if(n&&xc(n)==="object"){var r="";for(var i in n)r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},F0=function(t,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 s=i(t,n);if(s instanceof Promise){s.then(o).catch(r);return}}typeof fetch=="function"?fetch(t,n).then(o).catch(r):xl(t,n).then(o).catch(r)},N0=!1,FM=function(t,n,r,i){t.queryStringParams&&(n=Fv(n,t.queryStringParams));var o=L0({},typeof t.customHeaders=="function"?t.customHeaders():t.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 s=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,c=L0({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:o},N0?{}:s),f=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{F0(n,c,i,f)}catch(p){if(!s||Object.keys(s).length===0||!p.message||p.message.indexOf("not implemented")<0)return i(p);try{Object.keys(s).forEach(function(y){delete c[y]}),F0(n,c,i,f),N0=!0}catch(y){i(y)}}},NM=function(t,n,r,i){r&&xc(r)==="object"&&(r=Fv("",r).slice(1)),t.queryStringParams&&(n=Fv(n,t.queryStringParams));try{var o;Sd?o=new Sd:o=new ep("MSXML2.XMLHTTP.3.0"),o.open(r?"POST":"GET",n,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,r&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var s=t.customHeaders;if(s=typeof s=="function"?s():s,s)for(var c in s)o.setRequestHeader(c,s[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)}},jM=function(t,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},xl&&n.indexOf("file:")!==0)return FM(t,n,r,i);if(tT()||typeof ActiveXObject=="function")return NM(t,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function Tf(e){"@babel/helpers - typeof";return Tf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tf(e)}function j0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Pg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?j0(Object(n),!0).forEach(function(r){iT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function BM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $M(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oT(r.key),r)}}function VM(e,t,n){return t&&$M(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function iT(e,t,n){return(t=oT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oT(e){var t=HM(e,"string");return Tf(t)=="symbol"?t:t+""}function HM(e,t){if(Tf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var UM=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 iT({},r,i||"")},parseLoadPayload:function(n,r){},request:jM,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 e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};BM(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return VM(e,[{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=Pg(Pg(Pg({},UM()),this.options||{}),i),this.allOptions=o,this.services&&this.options.reloadInterval){var s=setInterval(function(){return r.reload()},this.options.reloadInterval);Tf(s)==="object"&&typeof s.unref=="function"&&s.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,s){var c=this,f=this.options.loadPath;typeof this.options.loadPath=="function"&&(f=this.options.loadPath(n,i)),f=PM(f),f.then(function(p){if(!p)return s(null,{});var y=c.services.interpolator.interpolate(p,{lng:n.join("+"),ns:i.join("+")});c.loadUrl(y,s,r,o)})}},{key:"loadUrl",value:function(n,r,i,o){var s=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,g){if(g&&(g.status>=500&&g.status<600||!g.status))return r("failed loading "+n+"; status code: "+g.status,!0);if(g&&g.status>=400&&g.status<500)return r("failed loading "+n+"; status code: "+g.status,!1);if(!g&&y&&y.message){var T=y.message.toLowerCase(),C=["failed","fetch","network","load"].find(function(M){return T.indexOf(M)>-1});if(C)return r("failed loading "+n+": "+y.message,!0)}if(y)return r(y,!1);var P,I;try{typeof g.data=="string"?P=s.options.parse(g.data,i,o):P=g.data}catch{I="failed parsing "+n+" to json"}if(I)return r(I,!1);r(null,P)})}},{key:"create",value:function(n,r,i,o,s){var c=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var f=this.options.parsePayload(r,i,o),p=0,y=[],g=[];n.forEach(function(T){var C=c.options.addPath;typeof c.options.addPath=="function"&&(C=c.options.addPath(T,r));var P=c.services.interpolator.interpolate(C,{lng:T,ns:r});c.options.request(c.options,P,f,function(I,M){p+=1,y.push(I),g.push(M),p===n.length&&typeof s=="function"&&s(y,g)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,s=r.logger,c=i.language;if(!(c&&c.toLowerCase()==="cimode")){var f=[],p=function(g){var T=o.toResolveHierarchy(g);T.forEach(function(C){f.indexOf(C)<0&&f.push(C)})};p(c),this.allOptions.preload&&this.allOptions.preload.forEach(function(y){return p(y)}),f.forEach(function(y){n.allOptions.ns.forEach(function(g){i.read(y,g,"read",null,null,function(T,C){T&&s.warn("loading namespace ".concat(g," for language ").concat(y," failed"),T),!T&&C&&s.log("loaded namespace ".concat(g," for language ").concat(y),C),i.loaded("".concat(y,"|").concat(g),T,C)})})})}}}])}();aT.type="backend";var $m=(e=>(e.en="en",e.de="de",e))($m||{});const WM={en:"English",de:"German"};ii.use(eT).use(yM).use(q1).init({initImmediate:!0,ns:["translation"],fallbackLng:Object.keys(WM),fallbackNS:"translation",partialBundledLanguages:!0,resources:{},interpolation:{escapeValue:!1},backend:{backends:[aT],backendOptions:[{loadPath:()=>{var t,n,r;if((t=window==null?void 0:window.env)!=null&&t.TRANSLATION_URL)return`${window.env.TRANSLATION_URL}/{{lng}}`;const e=((n=window==null?void 0:window.env)==null?void 0:n.VITE_BASE_URL)||((r=window==null?void 0:window.env)==null?void 0:r.REACT_APP_BASE_URL)||location.protocol+"//"+location.host;return console.log("url",e),`${e}/translations/{{lng}}`},crossDomain:!0,cacheHitMode:"refresh"}]}});function zM(){const[e,t]=q.useState();return q.useEffect(()=>{const n=localStorage.getItem("language");t(n||$m.en)},[]),{language:e,setLanguage:t}}const sT=q.createContext({}),YM=()=>q.useContext(sT),GM=ii,qM=M1,XM=()=>J1(),KM=({children:e})=>{const t=zM();return je.jsx(sT.Provider,{value:t,children:je.jsx(TM,{i18n:ii,children:e})})},ZM="*,: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 Vm({children:e,styles:t=[],...n}){return je.jsxs("div",{...n,children:[[ZM,...t].map((r,i)=>je.jsx("style",{type:"text/css",children:r},i)),e]})}function JM(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Hm=JM,QM=typeof Ci=="object"&&Ci&&Ci.Object===Object&&Ci,eL=QM,tL=eL,nL=typeof self=="object"&&self&&self.Object===Object&&self,rL=tL||nL||Function("return this")(),lT=rL,iL=lT,oL=function(){return iL.Date.now()},aL=oL,sL=/\s/;function lL(e){for(var t=e.length;t--&&sL.test(e.charAt(t)););return t}var uL=lL,cL=uL,fL=/^\s+/;function dL(e){return e&&e.slice(0,cL(e)+1).replace(fL,"")}var hL=dL,pL=lT,gL=pL.Symbol,uT=gL,B0=uT,cT=Object.prototype,vL=cT.hasOwnProperty,mL=cT.toString,Zf=B0?B0.toStringTag:void 0;function yL(e){var t=vL.call(e,Zf),n=e[Zf];try{e[Zf]=void 0;var r=!0}catch{}var i=mL.call(e);return r&&(t?e[Zf]=n:delete e[Zf]),i}var bL=yL,wL=Object.prototype,xL=wL.toString;function SL(e){return xL.call(e)}var TL=SL,$0=uT,CL=bL,EL=TL,kL="[object Null]",OL="[object Undefined]",V0=$0?$0.toStringTag:void 0;function DL(e){return e==null?e===void 0?OL:kL:V0&&V0 in Object(e)?CL(e):EL(e)}var _L=DL;function PL(e){return e!=null&&typeof e=="object"}var RL=PL,IL=_L,AL=RL,ML="[object Symbol]";function LL(e){return typeof e=="symbol"||AL(e)&&IL(e)==ML}var FL=LL,NL=hL,H0=Hm,jL=FL,U0=NaN,BL=/^[-+]0x[0-9a-f]+$/i,$L=/^0b[01]+$/i,VL=/^0o[0-7]+$/i,HL=parseInt;function UL(e){if(typeof e=="number")return e;if(jL(e))return U0;if(H0(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=H0(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=NL(e);var n=$L.test(e);return n||VL.test(e)?HL(e.slice(2),n?2:8):BL.test(e)?U0:+e}var WL=UL,zL=Hm,Rg=aL,W0=WL,YL="Expected a function",GL=Math.max,qL=Math.min;function XL(e,t,n){var r,i,o,s,c,f,p=0,y=!1,g=!1,T=!0;if(typeof e!="function")throw new TypeError(YL);t=W0(t)||0,zL(n)&&(y=!!n.leading,g="maxWait"in n,o=g?GL(W0(n.maxWait)||0,t):o,T="trailing"in n?!!n.trailing:T);function C(ue){var S=r,he=i;return r=i=void 0,p=ue,s=e.apply(he,S),s}function P(ue){return p=ue,c=setTimeout(R,t),y?C(ue):s}function I(ue){var S=ue-f,he=ue-p,ae=t-S;return g?qL(ae,o-he):ae}function M(ue){var S=ue-f,he=ue-p;return f===void 0||S>=t||S<0||g&&he>=o}function R(){var ue=Rg();if(M(ue))return V(ue);c=setTimeout(R,I(ue))}function V(ue){return c=void 0,T&&r?C(ue):(r=i=void 0,s)}function U(){c!==void 0&&clearTimeout(c),p=0,r=f=i=c=void 0}function Q(){return c===void 0?s:V(Rg())}function K(){var ue=Rg(),S=M(ue);if(r=arguments,i=this,f=ue,S){if(c===void 0)return P(f);if(g)return clearTimeout(c),c=setTimeout(R,t),C(f)}return c===void 0&&(c=setTimeout(R,t)),s}return K.cancel=U,K.flush=Q,K}var fT=XL;const Ig=Eu(fT);var KL=fT,ZL=Hm,JL="Expected a function";function QL(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(JL);return ZL(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),KL(e,t,{leading:r,maxWait:t,trailing:i})}var e2=QL;const t2=Eu(e2);var df=function(){return df=Object.assign||function(t){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)&&(t[o]=n[o])}return t},df.apply(this,arguments)};function dT(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function hT(e){return!e||!e.ownerDocument?document:e.ownerDocument}var pT=function(e){var t={},n=Array.prototype.reduce.call(e,function(r,i){var o=i.name.match(/data-simplebar-(.+)/);if(o){var s=o[1].replace(/\W+(.)/g,function(c,f){return f.toUpperCase()});switch(i.value){case"true":r[s]=!0;break;case"false":r[s]=!1;break;case void 0:r[s]=!0;break;default:r[s]=i.value}}return r},t);return n};function gT(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function vT(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function mT(e){return".".concat(e.split(" ").join("."))}var Um=!!(typeof window<"u"&&window.document&&window.document.createElement),n2=Object.freeze({__proto__:null,addClasses:gT,canUseDOM:Um,classNamesToQuery:mT,getElementDocument:hT,getElementWindow:dT,getOptions:pT,removeClasses:vT}),cf=null,z0=null;Um&&window.addEventListener("resize",function(){z0!==window.devicePixelRatio&&(z0=window.devicePixelRatio,cf=null)});function Y0(){if(cf===null){if(typeof document>"u")return cf=0,cf;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),cf=n}return cf}var ru=dT,Ag=hT,r2=pT,iu=gT,ou=vT,Do=mT,Jf=function(){function e(t,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=ru(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,iu(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(){ou(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(iu(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){ou(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,s;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)&&(s=r.isWithinBounds(r.axis.y.track.rect)),(o||s)&&(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")),s&&(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,s,c,f,p,y,g,T,C,P,I;if(!(!r.draggedAxis||!r.contentWrapperEl)){var M,R=r.axis[r.draggedAxis].track,V=(s=(o=R.rect)===null||o===void 0?void 0:o[r.axis[r.draggedAxis].sizeAttr])!==null&&s!==void 0?s:0,U=r.axis[r.draggedAxis].scrollbar,Q=(f=(c=r.contentWrapperEl)===null||c===void 0?void 0:c[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&f!==void 0?f:0,K=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"?M=i.pageY:M=i.pageX;var ue=M-((T=(g=R.rect)===null||g===void 0?void 0:g[r.axis[r.draggedAxis].offsetAttr])!==null&&T!==void 0?T:0)-r.axis[r.draggedAxis].dragOffset;ue=r.draggedAxis==="x"&&r.isRtl?((P=(C=R.rect)===null||C===void 0?void 0:C[r.axis[r.draggedAxis].sizeAttr])!==null&&P!==void 0?P:0)-U.size-ue:ue;var S=ue/(V-U.size),he=S*(Q-K);r.draggedAxis==="x"&&r.isRtl&&(he=!((I=e.getRtlHelpers())===null||I===void 0)&&I.isScrollingToNegative?-he:he),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=he}},this.onEndDrag=function(i){r.isDragging=!1;var o=Ag(r.el),s=ru(r.el);i.preventDefault(),i.stopPropagation(),ou(r.el,r.classNames.dragging),r.onStopScrolling(),o.removeEventListener("mousemove",r.drag,!0),o.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=s.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=t,this.options=df(df({},e.defaultOptions),n),this.classNames=df(df({},e.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=t2(this._onMouseMove,64),this.onWindowResize=Ig(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Ig(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Ig(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=t.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var i=e.getOffset(n),o=e.getOffset(r);n.scrollLeft=-999;var s=e.getOffset(r);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:i.left!==o.left,isScrollingToNegative:o.left!==s.left},e.rtlHelpers},e.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:Y0()}catch{return Y0()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),r=Ag(t),i=ru(t);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){Um&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,n;this.wrapperEl=this.el.querySelector(Do(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Do(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Do(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Do(this.classNames.offset)),this.maskEl=this.el.querySelector(Do(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Do(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Do(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Do(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Do(this.classNames.track)).concat(Do(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Do(this.classNames.track)).concat(Do(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(Do(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(Do(this.classNames.scrollbar)))||null,this.options.autoHide||(iu(this.axis.x.scrollbar.el,this.classNames.visible),iu(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,r=ru(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(){t.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(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=ru(this.el);this.elStyles=t.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,s=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=s==="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 g=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-g,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")}},e.prototype.getScrollbarSize=function(t){var n,r;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[t].scrollSizeAttr],o=(r=(n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])!==null&&r!==void 0?r:0,s=o/i,c;return c=Math.max(~~(s*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(c=Math.min(c,this.options.scrollbarMaxSize)),c},e.prototype.positionScrollbar=function(t){var n,r,i;t===void 0&&(t="y");var o=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var s=this.contentWrapperEl[this.axis[t].scrollSizeAttr],c=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])||0,f=parseInt(this.elStyles[this.axis[t].sizeAttr],10),p=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];p=t==="x"&&this.isRtl&&(!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-p:p,t==="x"&&this.isRtl&&(p=!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?p:-p);var y=p/(s-f),g=~~((c-o.size)*y);g=t==="x"&&this.isRtl?-g+(c-o.size):g,o.el.style.transform=t==="x"?"translate3d(".concat(g,"px, 0, 0)"):"translate3d(0, ".concat(g,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var n=this.axis[t].track.el,r=this.axis[t].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?r.style.display="block":r.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(iu(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),!this.isDragging&&this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(ou(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.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")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var n=this.axis[t];!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(t),iu(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?iu(n.scrollbar.el,this.classNames.hover):ou(n.scrollbar.el,this.classNames.hover)):(ou(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),ou(this.axis[t].track.el,this.classNames.hover),ou(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,n){var r;n===void 0&&(n="y"),this.isDragging=!0;var i=Ag(this.el),o=ru(this.el),s=this.axis[n].scrollbar,c=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=c-(((r=s.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,iu(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)},e.prototype.onTrackClick=function(t,n){var r=this,i,o,s,c;n===void 0&&(n="y");var f=this.axis[n];if(!(!this.options.clickOnTrack||!f.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var p=ru(this.el);this.axis[n].scrollbar.rect=f.scrollbar.el.getBoundingClientRect();var y=this.axis[n].scrollbar,g=(o=(i=y.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&o!==void 0?o:0,T=parseInt((c=(s=this.elStyles)===null||s===void 0?void 0:s[this.axis[n].sizeAttr])!==null&&c!==void 0?c:"0px",10),C=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],P=n==="y"?this.mouseY-g:this.mouseX-g,I=P<0?-1:1,M=I===-1?C-T:C+T,R=40,V=function(){r.contentWrapperEl&&(I===-1?C>M&&(C-=R,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=C,p.requestAnimationFrame(V)):C<M&&(C+=R,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=C,p.requestAnimationFrame(V)))};V()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=ru(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),t.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()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,n){var r=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(i){return r.call(i,n)})[0]},e.rtlHelpers=null,e.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},e.getOptions=r2,e.helpers=n2,e}(),Yo=function(){return Yo=Object.assign||function(t){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)&&(t[o]=n[o])}return t},Yo.apply(this,arguments)};function i2(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var Wm=bn.forwardRef(function(e,t){var n=e.children,r=e.scrollableNodeProps,i=r===void 0?{}:r,o=i2(e,["children","scrollableNodeProps"]),s=bn.useRef(),c=bn.useRef(),f=bn.useRef(),p={},y={};Object.keys(o).forEach(function(C){Object.prototype.hasOwnProperty.call(Jf.defaultOptions,C)?p[C]=o[C]:y[C]=o[C]});var g=Yo(Yo({},Jf.defaultOptions.classNames),p.classNames),T=Yo(Yo({},i),{className:"".concat(g.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:p.tabIndex||Jf.defaultOptions.tabIndex,role:"region","aria-label":p.ariaLabel||Jf.defaultOptions.ariaLabel});return bn.useEffect(function(){var C;return c.current=T.ref?T.ref.current:c.current,s.current&&(C=new Jf(s.current,Yo(Yo(Yo({},p),c.current&&{scrollableNode:c.current}),f.current&&{contentNode:f.current})),typeof t=="function"?t(C):t&&(t.current=C)),function(){C==null||C.unMount(),C=null,typeof t=="function"&&t(null)}},[]),bn.createElement("div",Yo({"data-simplebar":"init",ref:s},y),bn.createElement("div",{className:g.wrapper},bn.createElement("div",{className:g.heightAutoObserverWrapperEl},bn.createElement("div",{className:g.heightAutoObserverEl})),bn.createElement("div",{className:g.mask},bn.createElement("div",{className:g.offset},typeof n=="function"?n({scrollableNodeRef:c,scrollableNodeProps:Yo(Yo({},T),{ref:c}),contentNodeRef:f,contentNodeProps:{className:g.contentEl,ref:f}}):bn.createElement("div",Yo({},T),bn.createElement("div",{className:g.contentEl},n)))),bn.createElement("div",{className:g.placeholder})),bn.createElement("div",{className:"".concat(g.track," simplebar-horizontal")},bn.createElement("div",{className:g.scrollbar})),bn.createElement("div",{className:"".concat(g.track," simplebar-vertical")},bn.createElement("div",{className:g.scrollbar})))});Wm.displayName="SimpleBar";const yT='[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 bT(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=bT(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function yl(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=bT(e))&&(r&&(r+=" "),r+=t);return r}const Td=e=>typeof e=="number"&&!isNaN(e),yc=e=>typeof e=="string",Go=e=>typeof e=="function",jh=e=>yc(e)||Go(e)?e:null,Nv=e=>q.isValidElement(e)||yc(e)||Go(e)||Td(e);function o2(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Op(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=e;return function(s){let{children:c,position:f,preventExitTransition:p,done:y,nodeRef:g,isIn:T,playToast:C}=s;const P=r?`${t}--${f}`:t,I=r?`${n}--${f}`:n,M=q.useRef(0);return q.useLayoutEffect(()=>{const R=g.current,V=P.split(" "),U=Q=>{Q.target===g.current&&(C(),R.removeEventListener("animationend",U),R.removeEventListener("animationcancel",U),M.current===0&&Q.type!=="animationcancel"&&R.classList.remove(...V))};R.classList.add(...V),R.addEventListener("animationend",U),R.addEventListener("animationcancel",U)},[]),q.useEffect(()=>{const R=g.current,V=()=>{R.removeEventListener("animationend",V),i?o2(R,y,o):y()};T||(p?V():(M.current=1,R.className+=` ${I}`,R.addEventListener("animationend",V)))},[T]),q.createElement(q.Fragment,null,c)}}function G0(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const io=new Map;let Cd=[];const jv=new Set,a2=e=>jv.forEach(t=>t(e)),wT=()=>io.size>0;function xT(e,t){var n;if(t)return!((n=io.get(t))==null||!n.isToastActive(e));let r=!1;return io.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function ST(e,t){Nv(e)&&(wT()||Cd.push({content:e,options:t}),io.forEach(n=>{n.buildToast(e,t)}))}function q0(e,t){io.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function s2(e){const{subscribe:t,getSnapshot:n,setProps:r}=q.useRef(function(o){const s=o.containerId||1;return{subscribe(c){const f=function(y,g,T){let C=1,P=0,I=[],M=[],R=[],V=g;const U=new Map,Q=new Set,K=()=>{R=Array.from(U.values()),Q.forEach(he=>he())},ue=he=>{M=he==null?[]:M.filter(ae=>ae!==he),K()},S=he=>{const{toastId:ae,onOpen:Ge,updateId:Re,children:Me}=he.props,$e=Re==null;he.staleId&&U.delete(he.staleId),U.set(ae,he),M=[...M,he.props.toastId].filter(Ue=>Ue!==he.staleId),K(),T(G0(he,$e?"added":"updated")),$e&&Go(Ge)&&Ge(q.isValidElement(Me)&&Me.props)};return{id:y,props:V,observe:he=>(Q.add(he),()=>Q.delete(he)),toggle:(he,ae)=>{U.forEach(Ge=>{ae!=null&&ae!==Ge.props.toastId||Go(Ge.toggle)&&Ge.toggle(he)})},removeToast:ue,toasts:U,clearQueue:()=>{P-=I.length,I=[]},buildToast:(he,ae)=>{if((Le=>{let{containerId:Be,toastId:ke,updateId:_e}=Le;const ze=Be?Be!==y:y!==1,it=U.has(ke)&&_e==null;return ze||it})(ae))return;const{toastId:Ge,updateId:Re,data:Me,staleId:$e,delay:Ue}=ae,ce=()=>{ue(Ge)},Te=Re==null;Te&&P++;const Ne={...V,style:V.toastStyle,key:C++,...Object.fromEntries(Object.entries(ae).filter(Le=>{let[Be,ke]=Le;return ke!=null})),toastId:Ge,updateId:Re,data:Me,closeToast:ce,isIn:!1,className:jh(ae.className||V.toastClassName),bodyClassName:jh(ae.bodyClassName||V.bodyClassName),progressClassName:jh(ae.progressClassName||V.progressClassName),autoClose:!ae.isLoading&&(We=ae.autoClose,tt=V.autoClose,We===!1||Td(We)&&We>0?We:tt),deleteToast(){const Le=U.get(Ge),{onClose:Be,children:ke}=Le.props;Go(Be)&&Be(q.isValidElement(ke)&&ke.props),T(G0(Le,"removed")),U.delete(Ge),P--,P<0&&(P=0),I.length>0?S(I.shift()):K()}};var We,tt;Ne.closeButton=V.closeButton,ae.closeButton===!1||Nv(ae.closeButton)?Ne.closeButton=ae.closeButton:ae.closeButton===!0&&(Ne.closeButton=!Nv(V.closeButton)||V.closeButton);let we=he;q.isValidElement(he)&&!yc(he.type)?we=q.cloneElement(he,{closeToast:ce,toastProps:Ne,data:Me}):Go(he)&&(we=he({closeToast:ce,toastProps:Ne,data:Me}));const Ee={content:we,props:Ne,staleId:$e};V.limit&&V.limit>0&&P>V.limit&&Te?I.push(Ee):Td(Ue)?setTimeout(()=>{S(Ee)},Ue):S(Ee)},setProps(he){V=he},setToggle:(he,ae)=>{U.get(he).toggle=ae},isToastActive:he=>M.some(ae=>ae===he),getSnapshot:()=>R}}(s,o,a2);io.set(s,f);const p=f.observe(c);return Cd.forEach(y=>ST(y.content,y.options)),Cd=[],()=>{p(),io.delete(s)}},setProps(c){var f;(f=io.get(s))==null||f.setProps(c)},getSnapshot(){var c;return(c=io.get(s))==null?void 0:c.getSnapshot()}}}(e)).current;r(e);const i=q.useSyncExternalStore(t,n,n);return{getToastToRender:function(o){if(!i)return[];const s=new Map;return e.newestOnTop&&i.reverse(),i.forEach(c=>{const{position:f}=c.props;s.has(f)||s.set(f,[]),s.get(f).push(c)}),Array.from(s,c=>o(c[0],c[1]))},isToastActive:xT,count:i==null?void 0:i.length}}function l2(e){const[t,n]=q.useState(!1),[r,i]=q.useState(!1),o=q.useRef(null),s=q.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:c,pauseOnHover:f,closeToast:p,onClick:y,closeOnClick:g}=e;var T,C;function P(){n(!0)}function I(){n(!1)}function M(U){const Q=o.current;s.canDrag&&Q&&(s.didMove=!0,t&&I(),s.delta=e.draggableDirection==="x"?U.clientX-s.start:U.clientY-s.start,s.start!==U.clientX&&(s.canCloseOnClick=!1),Q.style.transform=`translate3d(${e.draggableDirection==="x"?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,Q.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function R(){document.removeEventListener("pointermove",M),document.removeEventListener("pointerup",R);const U=o.current;if(s.canDrag&&s.didMove&&U){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();U.style.transition="transform 0.2s, opacity 0.2s",U.style.removeProperty("transform"),U.style.removeProperty("opacity")}}(C=io.get((T={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||C.setToggle(T.id,T.fn),q.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||I(),window.addEventListener("focus",P),window.addEventListener("blur",I),()=>{window.removeEventListener("focus",P),window.removeEventListener("blur",I)}},[e.pauseOnFocusLoss]);const V={onPointerDown:function(U){if(e.draggable===!0||e.draggable===U.pointerType){s.didMove=!1,document.addEventListener("pointermove",M),document.addEventListener("pointerup",R);const Q=o.current;s.canCloseOnClick=!0,s.canDrag=!0,Q.style.transition="none",e.draggableDirection==="x"?(s.start=U.clientX,s.removalDistance=Q.offsetWidth*(e.draggablePercent/100)):(s.start=U.clientY,s.removalDistance=Q.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(U){const{top:Q,bottom:K,left:ue,right:S}=o.current.getBoundingClientRect();U.nativeEvent.type!=="touchend"&&e.pauseOnHover&&U.clientX>=ue&&U.clientX<=S&&U.clientY>=Q&&U.clientY<=K?I():P()}};return c&&f&&(V.onMouseEnter=I,e.stacked||(V.onMouseLeave=P)),g&&(V.onClick=U=>{y&&y(U),s.canCloseOnClick&&p()}),{playToast:P,pauseToast:I,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:V}}function u2(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:o,className:s,style:c,controlledProgress:f,progress:p,rtl:y,isIn:g,theme:T}=e;const C=o||f&&p===0,P={...c,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};f&&(P.transform=`scaleX(${p})`);const I=yl("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}),M=Go(s)?s({rtl:y,type:i,defaultClassName:I}):yl(I,s),R={[f&&p>=1?"onTransitionEnd":"onAnimationEnd"]:f&&p<1?null:()=>{g&&r()}};return q.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":C},q.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${T} Toastify__progress-bar--${i}`}),q.createElement("div",{role:"progressbar","aria-hidden":C?"true":"false","aria-label":"notification timer",className:M,style:P,...R}))}let c2=1;const TT=()=>""+c2++;function f2(e){return e&&(yc(e.toastId)||Td(e.toastId))?e.toastId:TT()}function ad(e,t){return ST(e,t),t.toastId}function tp(e,t){return{...t,type:t&&t.type||e,toastId:f2(t)}}function fh(e){return(t,n)=>ad(t,tp(e,n))}function Tn(e,t){return ad(e,tp("default",t))}Tn.loading=(e,t)=>ad(e,tp("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Tn.promise=function(e,t,n){let r,{pending:i,error:o,success:s}=t;i&&(r=yc(i)?Tn.loading(i,n):Tn.loading(i.render,{...n,...i}));const c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},f=(y,g,T)=>{if(g==null)return void Tn.dismiss(r);const C={type:y,...c,...n,data:T},P=yc(g)?{render:g}:g;return r?Tn.update(r,{...C,...P}):Tn(P.render,{...C,...P}),T},p=Go(e)?e():e;return p.then(y=>f("success",s,y)).catch(y=>f("error",o,y)),p},Tn.success=fh("success"),Tn.info=fh("info"),Tn.error=fh("error"),Tn.warning=fh("warning"),Tn.warn=Tn.warning,Tn.dark=(e,t)=>ad(e,tp("default",{theme:"dark",...t})),Tn.dismiss=function(e){(function(t){var n;if(wT()){if(t==null||yc(n=t)||Td(n))io.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=io.get(t.containerId);r?r.removeToast(t.id):io.forEach(i=>{i.removeToast(t.id)})}}else Cd=Cd.filter(r=>t!=null&&r.options.toastId!==t)})(e)},Tn.clearWaitingQueue=function(e){e===void 0&&(e={}),io.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},Tn.isActive=xT,Tn.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var o;let{containerId:s}=i;return(o=io.get(s||1))==null?void 0:o.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:TT()};o.toastId!==e&&(o.staleId=e);const s=o.render||i;delete o.render,ad(s,o)}},Tn.done=e=>{Tn.update(e,{progress:1})},Tn.onChange=function(e){return jv.add(e),()=>{jv.delete(e)}},Tn.play=e=>q0(!0,e),Tn.pause=e=>q0(!1,e);const d2=typeof window<"u"?q.useLayoutEffect:q.useEffect,dh=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return q.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},Mg={info:function(e){return q.createElement(dh,{...e},q.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(e){return q.createElement(dh,{...e},q.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(e){return q.createElement(dh,{...e},q.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(e){return q.createElement(dh,{...e},q.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 q.createElement("div",{className:"Toastify__spinner"})}},h2=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=l2(e),{closeButton:s,children:c,autoClose:f,onClick:p,type:y,hideProgressBar:g,closeToast:T,transition:C,position:P,className:I,style:M,bodyClassName:R,bodyStyle:V,progressClassName:U,progressStyle:Q,updateId:K,role:ue,progress:S,rtl:he,toastId:ae,deleteToast:Ge,isIn:Re,isLoading:Me,closeOnClick:$e,theme:Ue}=e,ce=yl("Toastify__toast",`Toastify__toast-theme--${Ue}`,`Toastify__toast--${y}`,{"Toastify__toast--rtl":he},{"Toastify__toast--close-on-click":$e}),Te=Go(I)?I({rtl:he,position:P,type:y,defaultClassName:ce}):yl(ce,I),Ne=function(Ee){let{theme:Le,type:Be,isLoading:ke,icon:_e}=Ee,ze=null;const it={theme:Le,type:Be};return _e===!1||(Go(_e)?ze=_e({...it,isLoading:ke}):q.isValidElement(_e)?ze=q.cloneElement(_e,it):ke?ze=Mg.spinner():(dt=>dt in Mg)(Be)&&(ze=Mg[Be](it))),ze}(e),We=!!S||!f,tt={closeToast:T,type:y,theme:Ue};let we=null;return s===!1||(we=Go(s)?s(tt):q.isValidElement(s)?q.cloneElement(s,tt):function(Ee){let{closeToast:Le,theme:Be,ariaLabel:ke="close"}=Ee;return q.createElement("button",{className:`Toastify__close-button Toastify__close-button--${Be}`,type:"button",onClick:_e=>{_e.stopPropagation(),Le(_e)},"aria-label":ke},q.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},q.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"})))}(tt)),q.createElement(C,{isIn:Re,done:Ge,position:P,preventExitTransition:n,nodeRef:r,playToast:o},q.createElement("div",{id:ae,onClick:p,"data-in":Re,className:Te,...i,style:M,ref:r},q.createElement("div",{...Re&&{role:ue},className:Go(R)?R({type:y}):yl("Toastify__toast-body",R),style:V},Ne!=null&&q.createElement("div",{className:yl("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Me})},Ne),q.createElement("div",null,c)),we,q.createElement(u2,{...K&&!We?{key:`pb-${K}`}:{},rtl:he,theme:Ue,delay:f,isRunning:t,isIn:Re,closeToast:T,hide:g,type:y,style:Q,className:U,controlledProgress:We,progress:S||0})))},Dp=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},p2=Op(Dp("bounce",!0));Op(Dp("slide",!0));Op(Dp("zoom"));Op(Dp("flip"));const g2={position:"top-right",transition:p2,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function v2(e){let t={...g2,...e};const n=e.stacked,[r,i]=q.useState(!0),o=q.useRef(null),{getToastToRender:s,isToastActive:c,count:f}=s2(t),{className:p,style:y,rtl:g,containerId:T}=t;function C(I){const M=yl("Toastify__toast-container",`Toastify__toast-container--${I}`,{"Toastify__toast-container--rtl":g});return Go(p)?p({position:I,rtl:g,defaultClassName:M}):yl(M,jh(p))}function P(){n&&(i(!0),Tn.play())}return d2(()=>{if(n){var I;const M=o.current.querySelectorAll('[data-in="true"]'),R=12,V=(I=t.position)==null?void 0:I.includes("top");let U=0,Q=0;Array.from(M).reverse().forEach((K,ue)=>{const S=K;S.classList.add("Toastify__toast--stacked"),ue>0&&(S.dataset.collapsed=`${r}`),S.dataset.pos||(S.dataset.pos=V?"top":"bot");const he=U*(r?.2:1)+(r?0:R*ue);S.style.setProperty("--y",`${V?he:-1*he}px`),S.style.setProperty("--g",`${R}`),S.style.setProperty("--s",""+(1-(r?Q:0))),U+=S.offsetHeight,Q+=.025})}},[r,f,n]),q.createElement("div",{ref:o,className:"Toastify",id:T,onMouseEnter:()=>{n&&(i(!1),Tn.pause())},onMouseLeave:P},s((I,M)=>{const R=M.length?{...y}:{...y,pointerEvents:"none"};return q.createElement("div",{className:C(I),style:R,key:`container-${I}`},M.map(V=>{let{content:U,props:Q}=V;return q.createElement(h2,{...Q,stacked:n,collapseAll:P,isIn:c(Q.toastId,Q.containerId),style:Q.style,key:`toast-${Q.key}`},U)}))}))}function m2(){return je.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[je.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"}),je.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),je.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function y2(){return je.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[je.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#009D4F"}),je.jsx("path",{d:"M7.25244 12L10.4174 15.165L16.7474 8.83496",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function b2(){return je.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[je.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"}),je.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 zm={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},w2=({closeToast:e})=>je.jsx("i",{className:"material-icons",onClick:e,style:{cursor:"pointer"},children:je.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:je.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"})})}),Ym=(e,t)=>{Tn.success(e,{icon:je.jsx(y2,{}),bodyStyle:{},position:"bottom-right",style:{...zm,background:Ei.successLight,borderColor:Ei.success,color:Ei.success},...t})},Bd=(e,t)=>{Tn.error(e,{icon:je.jsx(m2,{}),position:"bottom-right",style:{...zm,background:Ei.dangerLight,borderColor:Ei.danger,color:Ei.danger},...t})},x2=(e,t)=>{Tn.error(e,{icon:je.jsx(b2,{}),position:"bottom-right",style:{...zm,background:Ei.warningLight,borderColor:Ei.warning,color:Ei.warning},...t})},S2=e=>{Tn(e,{closeButton:w2,toastId:"notify",position:"top-right",hideProgressBar:!0,containerId:"toastifyNotification",style:{padding:"12px 24px 12px 0",paddingLeft:"16px",fontFamily:"inherit",width:"610px",minHeight:"72px",color:Ei.textPrimary}})};function CT(e){let t=null;return()=>(t==null&&(t=e()),t)}function T2(e,t){return e.filter(n=>n!==t)}function C2(e,t){const n=new Set,r=o=>n.add(o);e.forEach(r),t.forEach(r);const i=[];return n.forEach(o=>i.push(o)),i}class E2{enter(t){const n=this.entered.length,r=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(t));return this.entered=C2(this.entered.filter(r),[t]),n===0&&this.entered.length>0}leave(t){const n=this.entered.length;return this.entered=T2(this.entered.filter(this.isNodeInDocument),t),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class k2{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const i=this.config.exposeProperties[r];i!=null&&(n[r]={value:i(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,n){return n===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const ET="__NATIVE_FILE__",kT="__NATIVE_URL__",OT="__NATIVE_TEXT__",DT="__NATIVE_HTML__",X0=Object.freeze(Object.defineProperty({__proto__:null,FILE:ET,HTML:DT,TEXT:OT,URL:kT},Symbol.toStringTag,{value:"Module"}));function Lg(e,t,n){const r=t.reduce((i,o)=>i||e.getData(o),"");return r??n}const Bv={[ET]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[DT]:{exposeProperties:{html:(e,t)=>Lg(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[kT]:{exposeProperties:{urls:(e,t)=>Lg(e,t,"").split(`
|
|
4
|
+
`),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[OT]:{exposeProperties:{text:(e,t)=>Lg(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function O2(e,t){const n=Bv[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new k2(n);return r.loadDataTransfer(t),r}function Fg(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Bv).filter(n=>{const r=Bv[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(i=>t.indexOf(i)>-1):!1})[0]||null}const D2=CT(()=>/firefox/i.test(navigator.userAgent)),_T=CT(()=>!!window.safari);class K0{interpolate(t){const{xs:n,ys:r,c1s:i,c2s:o,c3s:s}=this;let c=n.length-1;if(t===n[c])return r[c];let f=0,p=s.length-1,y;for(;f<=p;){y=Math.floor(.5*(f+p));const C=n[y];if(C<t)f=y+1;else if(C>t)p=y-1;else return r[y]}c=Math.max(0,p);const g=t-n[c],T=g*g;return r[c]+i[c]*g+o[c]*T+s[c]*g*T}constructor(t,n){const{length:r}=t,i=[];for(let C=0;C<r;C++)i.push(C);i.sort((C,P)=>t[C]<t[P]?-1:1);const o=[],s=[];let c,f;for(let C=0;C<r-1;C++)c=t[C+1]-t[C],f=n[C+1]-n[C],o.push(c),s.push(f/c);const p=[s[0]];for(let C=0;C<o.length-1;C++){const P=s[C],I=s[C+1];if(P*I<=0)p.push(0);else{c=o[C];const M=o[C+1],R=c+M;p.push(3*R/((R+M)/P+(R+c)/I))}}p.push(s[s.length-1]);const y=[],g=[];let T;for(let C=0;C<p.length-1;C++){T=s[C];const P=p[C],I=1/o[C],M=P+p[C+1]-T-T;y.push((T-P-M)*I),g.push(M*I*I)}this.xs=t,this.ys=n,this.c1s=p,this.c2s=y,this.c3s=g}}const _2=1;function PT(e){const t=e.nodeType===_2?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function hh(e){return{x:e.clientX,y:e.clientY}}function P2(e){var t;return e.nodeName==="IMG"&&(D2()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function R2(e,t,n,r){let i=e?t.width:n,o=e?t.height:r;return _T()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function I2(e,t,n,r,i){const o=P2(t),c=PT(o?e:t),f={x:n.x-c.x,y:n.y-c.y},{offsetWidth:p,offsetHeight:y}=e,{anchorX:g,anchorY:T}=r,{dragPreviewWidth:C,dragPreviewHeight:P}=R2(o,t,p,y),I=()=>{let ue=new K0([0,.5,1],[f.y,f.y/y*P,f.y+P-y]).interpolate(T);return _T()&&o&&(ue+=(window.devicePixelRatio-1)*P),ue},M=()=>new K0([0,.5,1],[f.x,f.x/p*C,f.x+C-p]).interpolate(g),{offsetX:R,offsetY:V}=i,U=R===0||R,Q=V===0||V;return{x:U?R:M(),y:Q?V:I()}}let A2=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,n){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=n}};function M2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},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){M2(e,i,n[i])})}return e}class L2{profile(){var t,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((t=this.dragStartSourceIds)===null||t===void 0?void 0:t.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 t=this.rootElement;if(t!==void 0){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}teardown(){const t=this.rootElement;if(t!==void 0&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(t,n,r){return this.sourcePreviewNodeOptions.set(t,r),this.sourcePreviewNodes.set(t,n),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,n,r){this.sourceNodes.set(t,n),this.sourceNodeOptions.set(t,r);const i=s=>this.handleDragStart(s,t),o=s=>this.handleSelectStart(s);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",i),n.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),n.removeEventListener("dragstart",i),n.removeEventListener("selectstart",o),n.setAttribute("draggable","false")}}connectDropTarget(t,n){const r=s=>this.handleDragEnter(s,t),i=s=>this.handleDragOver(s,t),o=s=>this.handleDrop(s,t);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(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(t);return Z0({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(t);return Z0({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(X0).some(n=>X0[n]===t)}beginDragNativeItem(t,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=O2(t,n),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;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 t;(t=this.window)===null||t===void 0||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,n){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(t,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(t,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(t,n){this.dropTargetIds.unshift(n)}constructor(t,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&&PT(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 s=hh(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:s});const{dataTransfer:c}=i,f=Fg(c);if(this.monitor.isDragging()){if(c&&typeof c.setDragImage=="function"){const y=this.monitor.getSourceId(),g=this.sourceNodes.get(y),T=this.sourcePreviewNodes.get(y)||g;if(T){const{anchorX:C,anchorY:P,offsetX:I,offsetY:M}=this.getCurrentSourcePreviewNodeOptions(),U=I2(g,T,s,{anchorX:C,anchorY:P},{offsetX:I,offsetY:M});c.setDragImage(T,U.x,U.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=Fg(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:hh(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=hh(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 Fg(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:o}=this;this.dropTargetIds=[],this.actions.hover(o,{clientOffset:hh(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 A2(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new E2(this.isNodeInDocument)}}let ph;function F2(){return ph||(ph=new Image,ph.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),ph}const N2=function(t,n,r){return new L2(t,n,r)};var bc=[],j2=function(){return bc.some(function(e){return e.activeTargets.length>0})},B2=function(){return bc.some(function(e){return e.skippedTargets.length>0})},J0="ResizeObserver loop completed with undelivered notifications.",$2=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:J0}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=J0),window.dispatchEvent(e)},Ed;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Ed||(Ed={}));var wc=function(e){return Object.freeze(e)},V2=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,wc(this)}return e}(),RT=function(){function e(t,n,r,i){return this.x=t,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,wc(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,i=t.top,o=t.right,s=t.bottom,c=t.left,f=t.width,p=t.height;return{x:n,y:r,top:i,right:o,bottom:s,left:c,width:f,height:p}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Gm=function(e){return e instanceof SVGElement&&"getBBox"in e},IT=function(e){if(Gm(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,s=i.offsetHeight;return!(o||s||e.getClientRects().length)},Q0=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},H2=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},sd=typeof window<"u"?window:{},gh=new WeakMap,ew=/auto|scroll/,U2=/^tb|vertical/,W2=/msie|trident/i.test(sd.navigator&&sd.navigator.userAgent),Is=function(e){return parseFloat(e||"0")},bf=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new V2((n?t:e)||0,(n?e:t)||0)},tw=wc({devicePixelContentBoxSize:bf(),borderBoxSize:bf(),contentBoxSize:bf(),contentRect:new RT(0,0,0,0)}),AT=function(e,t){if(t===void 0&&(t=!1),gh.has(e)&&!t)return gh.get(e);if(IT(e))return gh.set(e,tw),tw;var n=getComputedStyle(e),r=Gm(e)&&e.ownerSVGElement&&e.getBBox(),i=!W2&&n.boxSizing==="border-box",o=U2.test(n.writingMode||""),s=!r&&ew.test(n.overflowY||""),c=!r&&ew.test(n.overflowX||""),f=r?0:Is(n.paddingTop),p=r?0:Is(n.paddingRight),y=r?0:Is(n.paddingBottom),g=r?0:Is(n.paddingLeft),T=r?0:Is(n.borderTopWidth),C=r?0:Is(n.borderRightWidth),P=r?0:Is(n.borderBottomWidth),I=r?0:Is(n.borderLeftWidth),M=g+p,R=f+y,V=I+C,U=T+P,Q=c?e.offsetHeight-U-e.clientHeight:0,K=s?e.offsetWidth-V-e.clientWidth:0,ue=i?M+V:0,S=i?R+U:0,he=r?r.width:Is(n.width)-ue-K,ae=r?r.height:Is(n.height)-S-Q,Ge=he+M+K+V,Re=ae+R+Q+U,Me=wc({devicePixelContentBoxSize:bf(Math.round(he*devicePixelRatio),Math.round(ae*devicePixelRatio),o),borderBoxSize:bf(Ge,Re,o),contentBoxSize:bf(he,ae,o),contentRect:new RT(g,f,he,ae)});return gh.set(e,Me),Me},MT=function(e,t,n){var r=AT(e,n),i=r.borderBoxSize,o=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case Ed.DEVICE_PIXEL_CONTENT_BOX:return s;case Ed.BORDER_BOX:return i;default:return o}},z2=function(){function e(t){var n=AT(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=wc([n.borderBoxSize]),this.contentBoxSize=wc([n.contentBoxSize]),this.devicePixelContentBoxSize=wc([n.devicePixelContentBoxSize])}return e}(),LT=function(e){if(IT(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Y2=function(){var e=1/0,t=[];bc.forEach(function(s){if(s.activeTargets.length!==0){var c=[];s.activeTargets.forEach(function(p){var y=new z2(p.target),g=LT(p.target);c.push(y),p.lastReportedSize=MT(p.target,p.observedBox),g<e&&(e=g)}),t.push(function(){s.callback.call(s.observer,c,s.observer)}),s.activeTargets.splice(0,s.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e},nw=function(e){bc.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(LT(i.target)>e?n.activeTargets.push(i):n.skippedTargets.push(i))})})},G2=function(){var e=0;for(nw(e);j2();)e=Y2(),nw(e);return B2()&&$2(),e>0},Ng,FT=[],q2=function(){return FT.splice(0).forEach(function(e){return e()})},X2=function(e){if(!Ng){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return q2()}).observe(n,r),Ng=function(){n.textContent="".concat(t?t--:t++)}}FT.push(e),Ng()},K2=function(e){X2(function(){requestAnimationFrame(e)})},Bh=0,Z2=function(){return!!Bh},J2=250,Q2={attributes:!0,characterData:!0,childList:!0,subtree:!0},rw=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],iw=function(e){return e===void 0&&(e=0),Date.now()+e},jg=!1,eF=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=J2),!jg){jg=!0;var r=iw(t);K2(function(){var i=!1;try{i=G2()}finally{if(jg=!1,t=r-iw(),!Z2())return;i?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,Q2)};document.body?n():sd.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),rw.forEach(function(n){return sd.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),rw.forEach(function(n){return sd.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),$v=new eF,ow=function(e){!Bh&&e>0&&$v.start(),Bh+=e,!Bh&&$v.stop()},tF=function(e){return!Gm(e)&&!H2(e)&&getComputedStyle(e).display==="inline"},nF=function(){function e(t,n){this.target=t,this.observedBox=n||Ed.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=MT(this.target,this.observedBox,!0);return tF(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),rF=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),vh=new WeakMap,aw=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},mh=function(){function e(){}return e.connect=function(t,n){var r=new rF(t,n);vh.set(t,r)},e.observe=function(t,n,r){var i=vh.get(t),o=i.observationTargets.length===0;aw(i.observationTargets,n)<0&&(o&&bc.push(i),i.observationTargets.push(new nF(n,r&&r.box)),ow(1),$v.schedule())},e.unobserve=function(t,n){var r=vh.get(t),i=aw(r.observationTargets,n),o=r.observationTargets.length===1;i>=0&&(o&&bc.splice(bc.indexOf(r),1),r.observationTargets.splice(i,1),ow(-1))},e.disconnect=function(t){var n=this,r=vh.get(t);r.observationTargets.slice().forEach(function(i){return n.unobserve(t,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),iF=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");mh.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Q0(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");mh.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Q0(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");mh.unobserve(this,t)},e.prototype.disconnect=function(){mh.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),Vv=function(e,t){return Vv=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])},Vv(e,t)};function NT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Vv(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var nt=function(){return nt=Object.assign||function(t){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)&&(t[o]=n[o])}return t},nt.apply(this,arguments)};function _a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Wr(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(c){s={error:c}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function Xo(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var sw="production",jT=typeof process>"u"||process.env===void 0?sw:process.env.NODE_ENV||sw,vl=function(e){return{isEnabled:function(t){return e.some(function(n){return!!t[n]})}}},kd={measureLayout:vl(["layout","layoutId","drag"]),animation:vl(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:vl(["exit"]),drag:vl(["drag","dragControls"]),focus:vl(["whileFocus"]),hover:vl(["whileHover","onHoverStart","onHoverEnd"]),tap:vl(["whileTap","onTap","onTapStart","onTapCancel"]),pan:vl(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:vl(["whileInView","onViewportEnter","onViewportLeave"])};function oF(e){for(var t in e)e[t]!==null&&(t==="projectionNodeConstructor"?kd.projectionNodeConstructor=e[t]:kd[t].Component=e[t])}var $d=function(){},Oa=function(){};process.env.NODE_ENV!=="production"&&($d=function(e,t){!e&&typeof console<"u"&&console.warn(t)},Oa=function(e,t){if(!e)throw new Error(t)});var BT=q.createContext({strict:!1}),$T=Object.keys(kd),aF=$T.length;function sF(e,t,n){var r=[],i=q.useContext(BT);if(!t)return null;jT!=="production"&&n&&i.strict&&Oa(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var o=0;o<aF;o++){var s=$T[o],c=kd[s],f=c.isEnabled,p=c.Component;f(e)&&p&&r.push(bn.createElement(p,nt({key:s},e,{visualElement:t})))}return r}var qm=q.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),_p=q.createContext({});function lF(){return q.useContext(_p).visualElement}var Pp=q.createContext(null),Rf=typeof document<"u",lw=Rf?q.useLayoutEffect:q.useEffect,Hv={current:null},VT=!1;function uF(){if(VT=!0,!!Rf)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Hv.current=e.matches};e.addListener(t),t()}else Hv.current=!1}function cF(){!VT&&uF();var e=Wr(q.useState(Hv.current),1),t=e[0];return t}function fF(){var e=cF(),t=q.useContext(qm).reducedMotion;return t==="never"?!1:t==="always"?!0:e}function dF(e,t,n,r){var i=q.useContext(BT),o=lF(),s=q.useContext(Pp),c=fF(),f=q.useRef(void 0);r||(r=i.renderer),!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceId:s==null?void 0:s.id,blockInitialAnimation:(s==null?void 0:s.initial)===!1,shouldReduceMotion:c}));var p=f.current;return lw(function(){p==null||p.syncRender()}),q.useEffect(function(){var y;(y=p==null?void 0:p.animationState)===null||y===void 0||y.animateChanges()}),lw(function(){return function(){return p==null?void 0:p.notifyUnmount()}},[]),p}function hf(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function hF(e,t,n){return q.useCallback(function(r){var i;r&&((i=e.mount)===null||i===void 0||i.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):hf(n)&&(n.current=r))},[t])}function HT(e){return Array.isArray(e)}function rs(e){return typeof e=="string"||HT(e)}function pF(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.get()}),t}function gF(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.getVelocity()}),t}function UT(e,t,n,r,i){var o;return r===void 0&&(r={}),i===void 0&&(i={}),typeof t=="function"&&(t=t(n??e.custom,r,i)),typeof t=="string"&&(t=(o=e.variants)===null||o===void 0?void 0:o[t]),typeof t=="function"&&(t=t(n??e.custom,r,i)),t}function Rp(e,t,n){var r=e.getProps();return UT(r,t,n??r.custom,pF(e),gF(e))}function Ip(e){var t;return typeof((t=e.animate)===null||t===void 0?void 0:t.start)=="function"||rs(e.initial)||rs(e.animate)||rs(e.whileHover)||rs(e.whileDrag)||rs(e.whileTap)||rs(e.whileFocus)||rs(e.exit)}function WT(e){return!!(Ip(e)||e.variants)}function vF(e,t){if(Ip(e)){var n=e.initial,r=e.animate;return{initial:n===!1||rs(n)?n:void 0,animate:rs(r)?r:void 0}}return e.inherit!==!1?t:{}}function mF(e){var t=vF(e,q.useContext(_p)),n=t.initial,r=t.animate;return q.useMemo(function(){return{initial:n,animate:r}},[uw(n),uw(r)])}function uw(e){return Array.isArray(e)?e.join(" "):e}function Ap(e){var t=q.useRef(null);return t.current===null&&(t.current=e()),t.current}var ld={hasAnimatedSinceResize:!0,hasEverUpdated:!1},yF=1;function bF(){return Ap(function(){if(ld.hasEverUpdated)return yF++})}var zT=q.createContext({}),YT=q.createContext({});function wF(e,t,n,r){var i,o=t.layoutId,s=t.layout,c=t.drag,f=t.dragConstraints,p=t.layoutScroll,y=q.useContext(YT);!r||!n||n!=null&&n.projection||(n.projection=new r(e,n.getLatestValues(),(i=n.parent)===null||i===void 0?void 0:i.projection),n.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!c||f&&hf(f),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:typeof s=="string"?s:"both",initialPromotionConfig:y,layoutScroll:p}))}var xF=function(e){NT(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var n=this.props,r=n.visualElement,i=n.props;r&&r.setProps(i)},t.prototype.render=function(){return this.props.children},t}(q.Component);function SF(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,i=e.useRender,o=e.useVisualState,s=e.Component;t&&oF(t);function c(f,p){var y=TF(f);f=nt(nt({},f),{layoutId:y});var g=q.useContext(qm),T=null,C=mF(f),P=g.isStatic?void 0:bF(),I=o(f,g.isStatic);return!g.isStatic&&Rf&&(C.visualElement=dF(s,I,nt(nt({},g),f),n),wF(P,f,C.visualElement,r||kd.projectionNodeConstructor),T=sF(f,C.visualElement,t)),bn.createElement(xF,{visualElement:C.visualElement,props:nt(nt({},g),f)},T,bn.createElement(_p.Provider,{value:C},i(s,f,P,hF(I,C.visualElement,p),I,g.isStatic,C.visualElement)))}return q.forwardRef(c)}function TF(e){var t,n=e.layoutId,r=(t=q.useContext(zT))===null||t===void 0?void 0:t.id;return r&&n!==void 0?r+"-"+n:n}function CF(e){function t(r,i){return i===void 0&&(i={}),SF(e(r,i))}if(typeof Proxy>"u")return t;var n=new Map;return new Proxy(t,{get:function(r,i){return n.has(i)||n.set(i,t(i)),n.get(i)}})}var EF=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Xm(e){return typeof e!="string"||e.includes("-")?!1:!!(EF.indexOf(e)>-1||/[A-Z]/.test(e))}var np={};function kF(e){Object.assign(np,e)}var Uv=["","X","Y","Z"],OF=["translate","scale","rotate","skew"],Od=["transformPerspective","x","y","z"];OF.forEach(function(e){return Uv.forEach(function(t){return Od.push(e+t)})});function DF(e,t){return Od.indexOf(e)-Od.indexOf(t)}var _F=new Set(Od);function Vd(e){return _F.has(e)}var PF=new Set(["originX","originY","originZ"]);function GT(e){return PF.has(e)}function qT(e,t){var n=t.layout,r=t.layoutId;return Vd(e)||GT(e)||(n||r!==void 0)&&(!!np[e]||e==="opacity")}var El=function(e){return!!(e!==null&&typeof e=="object"&&e.getVelocity)},RF={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function IF(e,t,n,r){var i=e.transform,o=e.transformKeys,s=t.enableHardwareAcceleration,c=s===void 0?!0:s,f=t.allowTransformNone,p=f===void 0?!0:f,y="";o.sort(DF);for(var g=!1,T=o.length,C=0;C<T;C++){var P=o[C];y+="".concat(RF[P]||P,"(").concat(i[P],") "),P==="z"&&(g=!0)}return!g&&c?y+="translateZ(0)":y=y.trim(),r?y=r(i,n?"":y):p&&n&&(y="none"),y}function AF(e){var t=e.originX,n=t===void 0?"50%":t,r=e.originY,i=r===void 0?"50%":r,o=e.originZ,s=o===void 0?0:o;return"".concat(n," ").concat(i," ").concat(s)}function XT(e){return e.startsWith("--")}var MF=function(e,t){return t&&typeof e=="number"?t.transform(e):e};const KT=(e,t)=>n=>Math.max(Math.min(n,t),e),ud=e=>e%1?Number(e.toFixed(5)):e,Dd=/(-)?([\d]*\.?[\d])+/g,Wv=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,LF=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Hd(e){return typeof e=="string"}const Oc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},cd=Object.assign(Object.assign({},Oc),{transform:KT(0,1)}),yh=Object.assign(Object.assign({},Oc),{default:1}),Ud=e=>({test:t=>Hd(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),su=Ud("deg"),Ns=Ud("%"),Rt=Ud("px"),FF=Ud("vh"),NF=Ud("vw"),cw=Object.assign(Object.assign({},Ns),{parse:e=>Ns.parse(e)/100,transform:e=>Ns.transform(e*100)}),Km=(e,t)=>n=>!!(Hd(n)&&LF.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),ZT=(e,t,n)=>r=>{if(!Hd(r))return r;const[i,o,s,c]=r.match(Dd);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:c!==void 0?parseFloat(c):1}},gc={test:Km("hsl","hue"),parse:ZT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ns.transform(ud(t))+", "+Ns.transform(ud(n))+", "+ud(cd.transform(r))+")"},jF=KT(0,255),Bg=Object.assign(Object.assign({},Oc),{transform:e=>Math.round(jF(e))}),hu={test:Km("rgb","red"),parse:ZT("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Bg.transform(e)+", "+Bg.transform(t)+", "+Bg.transform(n)+", "+ud(cd.transform(r))+")"};function BF(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const zv={test:Km("#"),parse:BF,transform:hu.transform},to={test:e=>hu.test(e)||zv.test(e)||gc.test(e),parse:e=>hu.test(e)?hu.parse(e):gc.test(e)?gc.parse(e):zv.parse(e),transform:e=>Hd(e)?e:e.hasOwnProperty("red")?hu.transform(e):gc.transform(e)},JT="${c}",QT="${n}";function $F(e){var t,n,r,i;return isNaN(e)&&Hd(e)&&((n=(t=e.match(Dd))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((i=(r=e.match(Wv))===null||r===void 0?void 0:r.length)!==null&&i!==void 0?i:0)>0}function eC(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const r=e.match(Wv);r&&(n=r.length,e=e.replace(Wv,JT),t.push(...r.map(to.parse)));const i=e.match(Dd);return i&&(e=e.replace(Dd,QT),t.push(...i.map(Oc.parse))),{values:t,numColors:n,tokenised:e}}function tC(e){return eC(e).values}function nC(e){const{values:t,numColors:n,tokenised:r}=eC(e),i=t.length;return o=>{let s=r;for(let c=0;c<i;c++)s=s.replace(c<n?JT:QT,c<n?to.transform(o[c]):ud(o[c]));return s}}const VF=e=>typeof e=="number"?0:e;function HF(e){const t=tC(e);return nC(e)(t.map(VF))}const kl={test:$F,parse:tC,createTransformer:nC,getAnimatableNone:HF},UF=new Set(["brightness","contrast","saturate","opacity"]);function WF(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Dd)||[];if(!r)return e;const i=n.replace(r,"");let o=UF.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const zF=/([a-z-]*)\(.*?\)/g,Yv=Object.assign(Object.assign({},kl),{getAnimatableNone:e=>{const t=e.match(zF);return t?t.map(WF).join(" "):e}});var fw=nt(nt({},Oc),{transform:Math.round}),rC={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:su,rotateX:su,rotateY:su,rotateZ:su,scale:yh,scaleX:yh,scaleY:yh,scaleZ:yh,skew:su,skewX:su,skewY:su,distance:Rt,translateX:Rt,translateY:Rt,translateZ:Rt,x:Rt,y:Rt,z:Rt,perspective:Rt,transformPerspective:Rt,opacity:cd,originX:cw,originY:cw,originZ:Rt,zIndex:fw,fillOpacity:cd,strokeOpacity:cd,numOctaves:fw};function Zm(e,t,n,r){var i,o=e.style,s=e.vars,c=e.transform,f=e.transformKeys,p=e.transformOrigin;f.length=0;var y=!1,g=!1,T=!0;for(var C in t){var P=t[C];if(XT(C)){s[C]=P;continue}var I=rC[C],M=MF(P,I);if(Vd(C)){if(y=!0,c[C]=M,f.push(C),!T)continue;P!==((i=I.default)!==null&&i!==void 0?i:0)&&(T=!1)}else GT(C)?(p[C]=M,g=!0):o[C]=M}y?o.transform=IF(e,n,T,r):r?o.transform=r({},""):!t.transform&&o.transform&&(o.transform="none"),g&&(o.transformOrigin=AF(p))}var Jm=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function iC(e,t,n){for(var r in t)!El(t[r])&&!qT(r,n)&&(e[r]=t[r])}function YF(e,t,n){var r=e.transformTemplate;return q.useMemo(function(){var i=Jm();Zm(i,t,{enableHardwareAcceleration:!n},r);var o=i.vars,s=i.style;return nt(nt({},o),s)},[t])}function GF(e,t,n){var r=e.style||{},i={};return iC(i,r,e),Object.assign(i,YF(e,t,n)),e.transformValues&&(i=e.transformValues(i)),i}function qF(e,t,n){var r={},i=GF(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":"pan-".concat(e.drag==="x"?"y":"x")),r.style=i,r}var XF=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function rp(e){return XF.has(e)}var oC=function(e){return!rp(e)};function KF(e){e&&(oC=function(t){return t.startsWith("on")?!rp(t):e(t)})}try{KF(require("@emotion/is-prop-valid").default)}catch{}function ZF(e,t,n){var r={};for(var i in e)(oC(i)||n===!0&&rp(i)||!t&&!rp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function dw(e,t,n){return typeof e=="string"?e:Rt.transform(t+n*e)}function JF(e,t,n){var r=dw(t,e.x,e.width),i=dw(n,e.y,e.height);return"".concat(r," ").concat(i)}var QF={offset:"strokeDashoffset",array:"strokeDasharray"};function eN(e,t,n,r,i){n===void 0&&(n=1),r===void 0&&(r=0),e.pathLength=1;var o=QF;e[o.offset]=Rt.transform(-r);var s=Rt.transform(t),c=Rt.transform(n);e[o.array]="".concat(s," ").concat(c)}function Qm(e,t,n,r){var i=t.attrX,o=t.attrY,s=t.originX,c=t.originY,f=t.pathLength,p=t.pathSpacing,y=p===void 0?1:p,g=t.pathOffset,T=g===void 0?0:g,C=_a(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);Zm(e,C,n,r),e.attrs=e.style,e.style={};var P=e.attrs,I=e.style,M=e.dimensions;P.transform&&(M&&(I.transform=P.transform),delete P.transform),M&&(s!==void 0||c!==void 0||I.transform)&&(I.transformOrigin=JF(M,s!==void 0?s:.5,c!==void 0?c:.5)),i!==void 0&&(P.x=i),o!==void 0&&(P.y=o),f!==void 0&&eN(P,f,y,T)}var aC=function(){return nt(nt({},Jm()),{attrs:{}})};function tN(e,t){var n=q.useMemo(function(){var i=aC();return Qm(i,t,{enableHardwareAcceleration:!1},e.transformTemplate),nt(nt({},i.attrs),{style:nt({},i.style)})},[t]);if(e.style){var r={};iC(r,e.style,e),n.style=nt(nt({},r),n.style)}return n}function nN(e){e===void 0&&(e=!1);var t=function(n,r,i,o,s,c){var f=s.latestValues,p=Xm(n)?tN:qF,y=p(r,f,c),g=ZF(r,typeof n=="string",e),T=nt(nt(nt({},g),y),{ref:o});return i&&(T["data-projection-id"]=i),q.createElement(n,T)};return t}var rN=/([a-z])([A-Z])/g,iN="$1-$2",sC=function(e){return e.replace(rN,iN).toLowerCase()};function lC(e,t,n,r){var i=t.style,o=t.vars;Object.assign(e.style,i,r&&r.getProjectionStyles(n));for(var s in o)e.style.setProperty(s,o[s])}var uC=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function cC(e,t,n,r){lC(e,t,void 0,r);for(var i in t.attrs)e.setAttribute(uC.has(i)?i:sC(i),t.attrs[i])}function ey(e){var t=e.style,n={};for(var r in t)(El(t[r])||qT(r,e))&&(n[r]=t[r]);return n}function fC(e){var t=ey(e);for(var n in e)if(El(e[n])){var r=n==="x"||n==="y"?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function ty(e){return typeof e=="object"&&typeof e.start=="function"}var _d=function(e){return Array.isArray(e)},oN=function(e){return!!(e&&typeof e=="object"&&e.mix&&e.toValue)},dC=function(e){return _d(e)?e[e.length-1]||0:e};function $h(e){var t=El(e)?e.get():e;return oN(t)?t.toValue():t}function hw(e,t,n,r){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,s=e.onMount,c={latestValues:aN(t,n,r,i),renderState:o()};return s&&(c.mount=function(f){return s(t,f,c)}),c}var hC=function(e){return function(t,n){var r=q.useContext(_p),i=q.useContext(Pp);return n?hw(e,t,r,i):Ap(function(){return hw(e,t,r,i)})}};function aN(e,t,n,r){var i={},o=(n==null?void 0:n.initial)===!1,s=r(e);for(var c in s)i[c]=$h(s[c]);var f=e.initial,p=e.animate,y=Ip(e),g=WT(e);t&&g&&!y&&e.inherit!==!1&&(f??(f=t.initial),p??(p=t.animate));var T=o||f===!1,C=T?p:f;if(C&&typeof C!="boolean"&&!ty(C)){var P=Array.isArray(C)?C:[C];P.forEach(function(I){var M=UT(e,I);if(M){var R=M.transitionEnd;M.transition;var V=_a(M,["transitionEnd","transition"]);for(var U in V){var Q=V[U];if(Array.isArray(Q)){var K=T?Q.length-1:0;Q=Q[K]}Q!==null&&(i[U]=Q)}for(var U in R)i[U]=R[U]}})}return i}var sN={useVisualState:hC({scrapeMotionValuesFromProps:fC,createRenderState:aC,onMount:function(e,t,n){var r=n.renderState,i=n.latestValues;try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}Qm(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),cC(t,r)}})},lN={useVisualState:hC({scrapeMotionValuesFromProps:ey,createRenderState:Jm})};function uN(e,t,n,r,i){var o=t.forwardMotionProps,s=o===void 0?!1:o,c=Xm(e)?sN:lN;return nt(nt({},c),{preloadedFeatures:n,useRender:nN(s),createVisualElement:r,projectionNodeConstructor:i,Component:e})}var An;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(An||(An={}));function Mp(e,t,n,r){return r===void 0&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Gv(e,t,n,r){q.useEffect(function(){var i=e.current;if(n&&i)return Mp(i,t,n,r)},[e,t,n,r])}function cN(e){var t=e.whileFocus,n=e.visualElement,r=function(){var o;(o=n.animationState)===null||o===void 0||o.setActive(An.Focus,!0)},i=function(){var o;(o=n.animationState)===null||o===void 0||o.setActive(An.Focus,!1)};Gv(n,"focus",t?r:void 0),Gv(n,"blur",t?i:void 0)}function pC(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function gC(e){var t=!!e.touches;return t}function fN(e){return function(t){var n=t instanceof MouseEvent,r=!n||n&&t.button===0;r&&e(t)}}var dN={pageX:0,pageY:0};function hN(e,t){t===void 0&&(t="page");var n=e.touches[0]||e.changedTouches[0],r=n||dN;return{x:r[t+"X"],y:r[t+"Y"]}}function pN(e,t){return t===void 0&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function ny(e,t){return t===void 0&&(t="page"),{point:gC(e)?hN(e,t):pN(e,t)}}var vC=function(e,t){t===void 0&&(t=!1);var n=function(r){return e(r,ny(r))};return t?fN(n):n},gN=function(){return Rf&&window.onpointerdown===null},vN=function(){return Rf&&window.ontouchstart===null},mN=function(){return Rf&&window.onmousedown===null},yN={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},bN={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function mC(e){return gN()?e:vN()?bN[e]:mN()?yN[e]:e}function wf(e,t,n,r){return Mp(e,mC(t),vC(n,t==="pointerdown"),r)}function ip(e,t,n,r){return Gv(e,mC(t),n&&vC(n,t==="pointerdown"),r)}function yC(e){var t=null;return function(){var n=function(){t=null};return t===null?(t=e,n):!1}}var pw=yC("dragHorizontal"),gw=yC("dragVertical");function bC(e){var t=!1;if(e==="y")t=gw();else if(e==="x")t=pw();else{var n=pw(),r=gw();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function wC(){var e=bC(!0);return e?(e(),!1):!0}function vw(e,t,n){return function(r,i){var o;!pC(r)||wC()||((o=e.animationState)===null||o===void 0||o.setActive(An.Hover,t),n==null||n(r,i))}}function wN(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;ip(i,"pointerenter",t||r?vw(i,!0,t):void 0,{passive:!t}),ip(i,"pointerleave",n||r?vw(i,!1,n):void 0,{passive:!n})}var xC=function(e,t){return t?e===t?!0:xC(e,t.parentElement):!1};function SC(e){return q.useEffect(function(){return function(){return e()}},[])}const op=(e,t,n)=>Math.min(Math.max(n,e),t),mw=.001,xN=.01,yw=10,SN=.05,TN=1;function CN({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;$d(e<=yw*1e3,"Spring duration must be 10 seconds or less");let s=1-t;s=op(SN,TN,s),e=op(xN,yw,e/1e3),s<1?(i=p=>{const y=p*s,g=y*e,T=y-n,C=qv(p,s),P=Math.exp(-g);return mw-T/C*P},o=p=>{const g=p*s*e,T=g*n+n,C=Math.pow(s,2)*Math.pow(p,2)*e,P=Math.exp(-g),I=qv(Math.pow(p,2),s);return(-i(p)+mw>0?-1:1)*((T-C)*P)/I}):(i=p=>{const y=Math.exp(-p*e),g=(p-n)*e+1;return-.001+y*g},o=p=>{const y=Math.exp(-p*e),g=(n-p)*(e*e);return y*g});const c=5/e,f=kN(i,o,c);if(e=e*1e3,isNaN(f))return{stiffness:100,damping:10,duration:e};{const p=Math.pow(f,2)*r;return{stiffness:p,damping:s*2*Math.sqrt(r*p),duration:e}}}const EN=12;function kN(e,t,n){let r=n;for(let i=1;i<EN;i++)r=r-e(r)/t(r);return r}function qv(e,t){return e*Math.sqrt(1-t*t)}const ON=["duration","bounce"],DN=["stiffness","damping","mass"];function bw(e,t){return t.some(n=>e[n]!==void 0)}function _N(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!bw(e,DN)&&bw(e,ON)){const n=CN(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function ry(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=_a(e,["from","to","restSpeed","restDelta"]);const s={done:!1,value:t};let{stiffness:c,damping:f,mass:p,velocity:y,duration:g,isResolvedFromDuration:T}=_N(o),C=ww,P=ww;function I(){const M=y?-(y/1e3):0,R=n-t,V=f/(2*Math.sqrt(c*p)),U=Math.sqrt(c/p)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-t)/100,.4)),V<1){const Q=qv(U,V);C=K=>{const ue=Math.exp(-V*U*K);return n-ue*((M+V*U*R)/Q*Math.sin(Q*K)+R*Math.cos(Q*K))},P=K=>{const ue=Math.exp(-V*U*K);return V*U*ue*(Math.sin(Q*K)*(M+V*U*R)/Q+R*Math.cos(Q*K))-ue*(Math.cos(Q*K)*(M+V*U*R)-Q*R*Math.sin(Q*K))}}else if(V===1)C=Q=>n-Math.exp(-U*Q)*(R+(M+U*R)*Q);else{const Q=U*Math.sqrt(V*V-1);C=K=>{const ue=Math.exp(-V*U*K),S=Math.min(Q*K,300);return n-ue*((M+V*U*R)*Math.sinh(S)+Q*R*Math.cosh(S))/Q}}}return I(),{next:M=>{const R=C(M);if(T)s.done=M>=g;else{const V=P(M)*1e3,U=Math.abs(V)<=r,Q=Math.abs(n-R)<=i;s.done=U&&Q}return s.value=s.done?n:R,s},flipTarget:()=>{y=-y,[t,n]=[n,t],I()}}}ry.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const ww=e=>0,Pd=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},or=(e,t,n)=>-n*e+n*t+e;function $g(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function xw({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const c=n<.5?n*(1+t):n+t-n*t,f=2*n-c;i=$g(f,c,e+1/3),o=$g(f,c,e),s=$g(f,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const PN=(e,t,n)=>{const r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},RN=[zv,hu,gc],Sw=e=>RN.find(t=>t.test(e)),Tw=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,TC=(e,t)=>{let n=Sw(e),r=Sw(t);Oa(!!n,Tw(e)),Oa(!!r,Tw(t));let i=n.parse(e),o=r.parse(t);n===gc&&(i=xw(i),n=hu),r===gc&&(o=xw(o),r=hu);const s=Object.assign({},i);return c=>{for(const f in s)f!=="alpha"&&(s[f]=PN(i[f],o[f],c));return s.alpha=or(i.alpha,o.alpha,c),n.transform(s)}},Xv=e=>typeof e=="number",IN=(e,t)=>n=>t(e(n)),Lp=(...e)=>e.reduce(IN);function CC(e,t){return Xv(e)?n=>or(e,t,n):to.test(e)?TC(e,t):kC(e,t)}const EC=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>CC(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},AN=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=CC(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}};function Cw(e){const t=kl.parse(e),n=t.length;let r=0,i=0,o=0;for(let s=0;s<n;s++)r||typeof t[s]=="number"?r++:t[s].hue!==void 0?o++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:o}}const kC=(e,t)=>{const n=kl.createTransformer(t),r=Cw(e),i=Cw(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?Lp(EC(r.parsed,i.parsed),n):($d(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),s=>`${s>0?t:e}`)},MN=(e,t)=>n=>or(e,t,n);function LN(e){if(typeof e=="number")return MN;if(typeof e=="string")return to.test(e)?TC:kC;if(Array.isArray(e))return EC;if(typeof e=="object")return AN}function FN(e,t,n){const r=[],i=n||LN(e[0]),o=e.length-1;for(let s=0;s<o;s++){let c=i(e[s],e[s+1]);if(t){const f=Array.isArray(t)?t[s]:t;c=Lp(f,c)}r.push(c)}return r}function NN([e,t],[n]){return r=>n(Pd(e,t,r))}function jN(e,t){const n=e.length,r=n-1;return i=>{let o=0,s=!1;if(i<=e[0]?s=!0:i>=e[r]&&(o=r-1,s=!0),!s){let f=1;for(;f<n&&!(e[f]>i||f===r);f++);o=f-1}const c=Pd(e[o],e[o+1],i);return t[o](c)}}function OC(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;Oa(o===t.length,"Both input and output ranges must be the same length"),Oa(!r||!Array.isArray(r)||r.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const s=FN(t,r,i),c=o===2?NN(e,s):jN(e,s);return n?f=>c(op(e[0],e[o-1],f)):c}const Fp=e=>t=>1-e(1-t),iy=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,BN=e=>t=>Math.pow(t,e),DC=e=>t=>t*t*((e+1)*t-e),$N=e=>{const t=DC(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},_C=1.525,VN=4/11,HN=8/11,UN=9/10,oy=e=>e,ay=BN(2),WN=Fp(ay),PC=iy(ay),RC=e=>1-Math.sin(Math.acos(e)),sy=Fp(RC),zN=iy(sy),ly=DC(_C),YN=Fp(ly),GN=iy(ly),qN=$N(_C),XN=4356/361,KN=35442/1805,ZN=16061/1805,ap=e=>{if(e===1||e===0)return e;const t=e*e;return e<VN?7.5625*t:e<HN?9.075*t-9.9*e+3.4:e<UN?XN*t-KN*e+ZN:10.8*e*e-20.52*e+10.72},JN=Fp(ap),QN=e=>e<.5?.5*(1-ap(1-e*2)):.5*ap(e*2-1)+.5;function ej(e,t){return e.map(()=>t||PC).splice(0,e.length-1)}function tj(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function nj(e,t){return e.map(n=>n*t)}function Vh({from:e=0,to:t=1,ease:n,offset:r,duration:i=300}){const o={done:!1,value:e},s=Array.isArray(t)?t:[e,t],c=nj(r&&r.length===s.length?r:tj(s),i);function f(){return OC(c,s,{ease:Array.isArray(n)?n:ej(s,n)})}let p=f();return{next:y=>(o.value=p(y),o.done=y>=i,o),flipTarget:()=>{s.reverse(),p=f()}}}function rj({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){const s={done:!1,value:t};let c=n*e;const f=t+c,p=o===void 0?f:o(f);return p!==f&&(c=p-t),{next:y=>{const g=-c*Math.exp(-y/r);return s.done=!(g>i||g<-i),s.value=s.done?p:p+g,s},flipTarget:()=>{}}}const Ew={keyframes:Vh,spring:ry,decay:rj};function ij(e){if(Array.isArray(e.to))return Vh;if(Ew[e.type])return Ew[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Vh:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?ry:Vh}const IC=1/60*1e3,oj=typeof performance<"u"?()=>performance.now():()=>Date.now(),AC=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(oj()),IC);function aj(e){let t=[],n=[],r=0,i=!1,o=!1;const s=new WeakSet,c={schedule:(f,p=!1,y=!1)=>{const g=y&&i,T=g?t:n;return p&&s.add(f),T.indexOf(f)===-1&&(T.push(f),g&&i&&(r=t.length)),f},cancel:f=>{const p=n.indexOf(f);p!==-1&&n.splice(p,1),s.delete(f)},process:f=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let p=0;p<r;p++){const y=t[p];y(f),s.has(y)&&(c.schedule(y),e())}i=!1,o&&(o=!1,c.process(f))}};return c}const sj=40;let Kv=!0,Rd=!1,Zv=!1;const xf={delta:0,timestamp:0},Wd=["read","update","preRender","render","postRender"],Np=Wd.reduce((e,t)=>(e[t]=aj(()=>Rd=!0),e),{}),js=Wd.reduce((e,t)=>{const n=Np[t];return e[t]=(r,i=!1,o=!1)=>(Rd||uj(),n.schedule(r,i,o)),e},{}),Cf=Wd.reduce((e,t)=>(e[t]=Np[t].cancel,e),{}),Vg=Wd.reduce((e,t)=>(e[t]=()=>Np[t].process(xf),e),{}),lj=e=>Np[e].process(xf),MC=e=>{Rd=!1,xf.delta=Kv?IC:Math.max(Math.min(e-xf.timestamp,sj),1),xf.timestamp=e,Zv=!0,Wd.forEach(lj),Zv=!1,Rd&&(Kv=!1,AC(MC))},uj=()=>{Rd=!0,Kv=!0,Zv||AC(MC)},sp=()=>xf;function LC(e,t,n=0){return e-t-n}function cj(e,t,n=0,r=!0){return r?LC(t+-e,t,n):t-(e-t)+n}function fj(e,t,n,r){return r?e>=t+n:e<=-n}const dj=e=>{const t=({delta:n})=>e(n);return{start:()=>js.update(t,!0),stop:()=>Cf.update(t)}};function FC(e){var t,n,{from:r,autoplay:i=!0,driver:o=dj,elapsed:s=0,repeat:c=0,repeatType:f="loop",repeatDelay:p=0,onPlay:y,onStop:g,onComplete:T,onRepeat:C,onUpdate:P}=e,I=_a(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:M}=I,R,V=0,U=I.duration,Q,K=!1,ue=!0,S;const he=ij(I);!((n=(t=he).needsInterpolation)===null||n===void 0)&&n.call(t,r,M)&&(S=OC([0,100],[r,M],{clamp:!1}),r=0,M=100);const ae=he(Object.assign(Object.assign({},I),{from:r,to:M}));function Ge(){V++,f==="reverse"?(ue=V%2===0,s=cj(s,U,p,ue)):(s=LC(s,U,p),f==="mirror"&&ae.flipTarget()),K=!1,C&&C()}function Re(){R.stop(),T&&T()}function Me(Ue){if(ue||(Ue=-Ue),s+=Ue,!K){const ce=ae.next(Math.max(0,s));Q=ce.value,S&&(Q=S(Q)),K=ue?ce.done:s<=0}P==null||P(Q),K&&(V===0&&(U??(U=s)),V<c?fj(s,U,p,ue)&&Ge():Re())}function $e(){y==null||y(),R=o(Me),R.start()}return i&&$e(),{stop:()=>{g==null||g(),R.stop()}}}function NC(e,t){return t?e*(1e3/t):0}function hj({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:s=500,bounceDamping:c=10,restDelta:f=1,modifyTarget:p,driver:y,onUpdate:g,onComplete:T,onStop:C}){let P;function I(U){return n!==void 0&&U<n||r!==void 0&&U>r}function M(U){return n===void 0?r:r===void 0||Math.abs(n-U)<Math.abs(r-U)?n:r}function R(U){P==null||P.stop(),P=FC(Object.assign(Object.assign({},U),{driver:y,onUpdate:Q=>{var K;g==null||g(Q),(K=U.onUpdate)===null||K===void 0||K.call(U,Q)},onComplete:T,onStop:C}))}function V(U){R(Object.assign({type:"spring",stiffness:s,damping:c,restDelta:f},U))}if(I(e))V({from:e,velocity:t,to:M(e)});else{let U=i*t+e;typeof p<"u"&&(U=p(U));const Q=M(U),K=Q===n?-1:1;let ue,S;const he=ae=>{ue=S,S=ae,t=NC(ae-ue,sp().delta),(K===1&&ae>Q||K===-1&&ae<Q)&&V({from:ae,to:Q,velocity:t})};R({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:f,modifyTarget:p,onUpdate:I(U)?he:void 0})}return{stop:()=>P==null?void 0:P.stop()}}const Jv=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),kw=e=>Jv(e)&&e.hasOwnProperty("z"),bh=(e,t)=>Math.abs(e-t);function jC(e,t){if(Xv(e)&&Xv(t))return bh(e,t);if(Jv(e)&&Jv(t)){const n=bh(e.x,t.x),r=bh(e.y,t.y),i=kw(e)&&kw(t)?bh(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}const BC=(e,t)=>1-3*t+3*e,$C=(e,t)=>3*t-6*e,VC=e=>3*e,lp=(e,t,n)=>((BC(t,n)*e+$C(t,n))*e+VC(t))*e,HC=(e,t,n)=>3*BC(t,n)*e*e+2*$C(t,n)*e+VC(t),pj=1e-7,gj=10;function vj(e,t,n,r,i){let o,s,c=0;do s=t+(n-t)/2,o=lp(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>pj&&++c<gj);return s}const mj=8,yj=.001;function bj(e,t,n,r){for(let i=0;i<mj;++i){const o=HC(t,n,r);if(o===0)return t;const s=lp(t,n,r)-e;t-=s/o}return t}const Hh=11,wh=1/(Hh-1);function wj(e,t,n,r){if(e===t&&n===r)return oy;const i=new Float32Array(Hh);for(let s=0;s<Hh;++s)i[s]=lp(s*wh,e,n);function o(s){let c=0,f=1;const p=Hh-1;for(;f!==p&&i[f]<=s;++f)c+=wh;--f;const y=(s-i[f])/(i[f+1]-i[f]),g=c+y*wh,T=HC(g,e,n);return T>=yj?bj(s,g,e,n):T===0?g:vj(s,c,c+wh,e,n)}return s=>s===0||s===1?s:lp(o(s),t,r)}function xj(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,i=e.whileTap,o=e.visualElement,s=t||n||r||i,c=q.useRef(!1),f=q.useRef(null),p={passive:!(n||t||r||P)};function y(){var I;(I=f.current)===null||I===void 0||I.call(f),f.current=null}function g(){var I;return y(),c.current=!1,(I=o.animationState)===null||I===void 0||I.setActive(An.Tap,!1),!wC()}function T(I,M){g()&&(xC(o.getInstance(),I.target)?t==null||t(I,M):r==null||r(I,M))}function C(I,M){g()&&(r==null||r(I,M))}function P(I,M){var R;y(),!c.current&&(c.current=!0,f.current=Lp(wf(window,"pointerup",T,p),wf(window,"pointercancel",C,p)),(R=o.animationState)===null||R===void 0||R.setActive(An.Tap,!0),n==null||n(I,M))}ip(o,"pointerdown",s?P:void 0,p),SC(y)}var Ow=new Set;function UC(e,t,n){e||Ow.has(t)||(console.warn(t),Ow.add(t))}var Qv=new WeakMap,Hg=new WeakMap,Sj=function(e){var t;(t=Qv.get(e.target))===null||t===void 0||t(e)},Tj=function(e){e.forEach(Sj)};function Cj(e){var t=e.root,n=_a(e,["root"]),r=t||document;Hg.has(r)||Hg.set(r,{});var i=Hg.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(Tj,nt({root:t},n))),i[o]}function Ej(e,t,n){var r=Cj(t);return Qv.set(e,n),r.observe(e),function(){Qv.delete(e),r.unobserve(e)}}function kj(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,s=o===void 0?{}:o,c=q.useRef({hasEnteredView:!1,isInView:!1}),f=!!(n||r||i);s.once&&c.current.hasEnteredView&&(f=!1);var p=typeof IntersectionObserver>"u"?_j:Dj;p(f,c.current,t,s)}var Oj={some:0,all:1};function Dj(e,t,n,r){var i=r.root,o=r.margin,s=r.amount,c=s===void 0?"some":s,f=r.once;q.useEffect(function(){if(e){var p={root:i==null?void 0:i.current,rootMargin:o,threshold:typeof c=="number"?c:Oj[c]},y=function(g){var T,C=g.isIntersecting;if(t.isInView!==C&&(t.isInView=C,!(f&&!C&&t.hasEnteredView))){C&&(t.hasEnteredView=!0),(T=n.animationState)===null||T===void 0||T.setActive(An.InView,C);var P=n.getProps(),I=C?P.onViewportEnter:P.onViewportLeave;I==null||I(g)}};return Ej(n.getInstance(),p,y)}},[e,i,o,c])}function _j(e,t,n,r){var i=r.fallback,o=i===void 0?!0:i;q.useEffect(function(){!e||!o||(jT!=="production"&&UC(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var s;t.hasEnteredView=!0;var c=n.getProps().onViewportEnter;c==null||c(null),(s=n.animationState)===null||s===void 0||s.setActive(An.InView,!0)}))},[e])}var pu=function(e){return function(t){return e(t),null}},Pj={inView:pu(kj),tap:pu(xj),focus:pu(cN),hover:pu(wN)},Rj=0,Ij=function(){return Rj++},Aj=function(){return Ap(Ij)};function WC(){var e=q.useContext(Pp);if(e===null)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,i=Aj();q.useEffect(function(){return r(i)},[]);var o=function(){return n==null?void 0:n(i)};return!t&&n?[!1,o]:[!0]}function zC(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var up=function(e){return e*1e3},Dw={linear:oy,easeIn:ay,easeInOut:PC,easeOut:WN,circIn:RC,circInOut:zN,circOut:sy,backIn:ly,backInOut:GN,backOut:YN,anticipate:qN,bounceIn:JN,bounceInOut:QN,bounceOut:ap},_w=function(e){if(Array.isArray(e)){Oa(e.length===4,"Cubic bezier arrays must contain four numerical values.");var t=Wr(e,4),n=t[0],r=t[1],i=t[2],o=t[3];return wj(n,r,i,o)}else if(typeof e=="string")return Oa(Dw[e]!==void 0,"Invalid easing type '".concat(e,"'")),Dw[e];return e},Mj=function(e){return Array.isArray(e)&&typeof e[0]!="number"},Pw=function(e,t){return e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&kl.test(t)&&!t.startsWith("url("))},ac=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},xh=function(e){return{type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}},Ug=function(){return{type:"keyframes",ease:"linear",duration:.3}},Lj=function(e){return{type:"keyframes",duration:.8,values:e}},Rw={x:ac,y:ac,z:ac,rotate:ac,rotateX:ac,rotateY:ac,rotateZ:ac,scaleX:xh,scaleY:xh,scale:xh,opacity:Ug,backgroundColor:Ug,color:Ug,default:xh},Fj=function(e,t){var n;return _d(t)?n=Lj:n=Rw[e]||Rw.default,nt({to:t},n(t))},Nj=nt(nt({},rC),{color:to,backgroundColor:to,outlineColor:to,fill:to,stroke:to,borderColor:to,borderTopColor:to,borderRightColor:to,borderBottomColor:to,borderLeftColor:to,filter:Yv,WebkitFilter:Yv}),uy=function(e){return Nj[e]};function cy(e,t){var n,r=uy(e);return r!==Yv&&(r=kl),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}function jj(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=_a(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}var Iw=!1;function Bj(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,o=e.loop,s=_a(e,["ease","times","yoyo","flip","loop"]),c=nt({},s);return n&&(c.offset=n),s.duration&&(c.duration=up(s.duration)),s.repeatDelay&&(c.repeatDelay=up(s.repeatDelay)),t&&(c.ease=Mj(t)?t.map(_w):_w(t)),s.type==="tween"&&(c.type="keyframes"),(r||o||i)&&($d(!Iw,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),Iw=!0,r?c.repeatType="reverse":o?c.repeatType="loop":i&&(c.repeatType="mirror"),c.repeat=o||r||i||s.repeat),s.type!=="spring"&&(c.type="keyframes"),c}function $j(e,t){var n,r,i=fy(e,t)||{};return(r=(n=i.delay)!==null&&n!==void 0?n:e.delay)!==null&&r!==void 0?r:0}function Vj(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=Xo([],Wr(e.to),!1),e.to[0]=e.from),e}function Hj(e,t,n){var r;return Array.isArray(t.to)&&((r=e.duration)!==null&&r!==void 0||(e.duration=.8)),Vj(t),jj(e)||(e=nt(nt({},e),Fj(n,t.to))),nt(nt({},t),Bj(e))}function Uj(e,t,n,r,i){var o,s=fy(r,e),c=(o=s.from)!==null&&o!==void 0?o:t.get(),f=Pw(e,n);c==="none"&&f&&typeof n=="string"?c=cy(e,n):Aw(c)&&typeof n=="string"?c=Mw(n):!Array.isArray(n)&&Aw(n)&&typeof c=="string"&&(n=Mw(c));var p=Pw(e,c);$d(p===f,"You are trying to animate ".concat(e,' from "').concat(c,'" to "').concat(n,'". ').concat(c," is not an animatable value - to enable this animation set ").concat(c," to a value animatable to ").concat(n," via the `style` property."));function y(){var T={from:c,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(C){return t.set(C)}};return s.type==="inertia"||s.type==="decay"?hj(nt(nt({},T),s)):FC(nt(nt({},Hj(s,T,e)),{onUpdate:function(C){var P;T.onUpdate(C),(P=s.onUpdate)===null||P===void 0||P.call(s,C)},onComplete:function(){var C;T.onComplete(),(C=s.onComplete)===null||C===void 0||C.call(s)}}))}function g(){var T,C,P=dC(n);return t.set(P),i(),(T=s==null?void 0:s.onUpdate)===null||T===void 0||T.call(s,P),(C=s==null?void 0:s.onComplete)===null||C===void 0||C.call(s),{stop:function(){}}}return!p||!f||s.type===!1?g:y}function Aw(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function Mw(e){return typeof e=="number"?0:cy("",e)}function fy(e,t){return e[t]||e.default||e}function dy(e,t,n,r){return r===void 0&&(r={}),t.start(function(i){var o,s,c=Uj(e,t,n,r,i),f=$j(r,e),p=function(){return s=c()};return f?o=window.setTimeout(p,up(f)):p(),function(){clearTimeout(o),s==null||s.stop()}})}var Wj=function(e){return/^\-?\d*\.?\d+$/.test(e)},zj=function(e){return/^0[^.\s]+$/.test(e)};function hy(e,t){e.indexOf(t)===-1&&e.push(t)}function py(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var fd=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(t){var n=this;return hy(this.subscriptions,t),function(){return py(n.subscriptions,t)}},e.prototype.notify=function(t,n,r){var i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(var o=0;o<i;o++){var s=this.subscriptions[o];s&&s(t,n,r)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),Yj=function(e){return!isNaN(parseFloat(e))},Gj=function(){function e(t){var n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new fd,this.velocityUpdateSubscribers=new fd,this.renderSubscribers=new fd,this.canTrackVelocity=!1,this.updateAndNotify=function(r,i){i===void 0&&(i=!0),n.prev=n.current,n.current=r;var o=sp(),s=o.delta,c=o.timestamp;n.lastUpdated!==c&&(n.timeDelta=s,n.lastUpdated=c,js.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),i&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return js.postRender(n.velocityCheck)},this.velocityCheck=function(r){var i=r.timestamp;i!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=Yj(this.current)}return e.prototype.onChange=function(t){return this.updateSubscribers.add(t)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},e.prototype.attach=function(t){this.passiveEffect=t},e.prototype.set=function(t,n){n===void 0&&(n=!0),!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?NC(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(t){var n=this;return this.stop(),new Promise(function(r){n.hasAnimated=!0,n.stopAnimation=t(r)}).then(function(){return n.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Ef(e){return new Gj(e)}var YC=function(e){return function(t){return t.test(e)}},qj={test:function(e){return e==="auto"},parse:function(e){return e}},GC=[Oc,Rt,Ns,su,NF,FF,qj],Qf=function(e){return GC.find(YC(e))},Xj=Xo(Xo([],Wr(GC),!1),[to,kl],!1),Kj=function(e){return Xj.find(YC(e))};function Zj(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ef(n))}function Jj(e,t){var n=Rp(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,o=i===void 0?{}:i;r.transition;var s=_a(r,["transitionEnd","transition"]);s=nt(nt({},s),o);for(var c in s){var f=dC(s[c]);Zj(e,c,f)}}function Qj(e,t,n){var r,i,o,s,c=Object.keys(t).filter(function(C){return!e.hasValue(C)}),f=c.length;if(f)for(var p=0;p<f;p++){var y=c[p],g=t[y],T=null;Array.isArray(g)&&(T=g[0]),T===null&&(T=(i=(r=n[y])!==null&&r!==void 0?r:e.readValue(y))!==null&&i!==void 0?i:t[y]),T!=null&&(typeof T=="string"&&(Wj(T)||zj(T))?T=parseFloat(T):!Kj(T)&&kl.test(g)&&(T=cy(y,g)),e.addValue(y,Ef(T)),(o=(s=n)[y])!==null&&o!==void 0||(s[y]=T),e.setBaseTarget(y,T))}}function eB(e,t){if(t){var n=t[e]||t.default||t;return n.from}}function tB(e,t,n){var r,i,o={};for(var s in e)o[s]=(r=eB(s,t))!==null&&r!==void 0?r:(i=n.getValue(s))===null||i===void 0?void 0:i.get();return o}function nB(e,t,n){n===void 0&&(n={}),e.notifyAnimationStart(t);var r;if(Array.isArray(t)){var i=t.map(function(s){return em(e,s,n)});r=Promise.all(i)}else if(typeof t=="string")r=em(e,t,n);else{var o=typeof t=="function"?Rp(e,t,n.custom):t;r=qC(e,o,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}function em(e,t,n){var r;n===void 0&&(n={});var i=Rp(e,t,n.custom),o=(i||{}).transition,s=o===void 0?e.getDefaultTransition()||{}:o;n.transitionOverride&&(s=n.transitionOverride);var c=i?function(){return qC(e,i,n)}:function(){return Promise.resolve()},f=!((r=e.variantChildren)===null||r===void 0)&&r.size?function(C){C===void 0&&(C=0);var P=s.delayChildren,I=P===void 0?0:P,M=s.staggerChildren,R=s.staggerDirection;return rB(e,t,I+C,M,R,n)}:function(){return Promise.resolve()},p=s.when;if(p){var y=Wr(p==="beforeChildren"?[c,f]:[f,c],2),g=y[0],T=y[1];return g().then(T)}else return Promise.all([c(),f(n.delay)])}function qC(e,t,n){var r,i=n===void 0?{}:n,o=i.delay,s=o===void 0?0:o,c=i.transitionOverride,f=i.type,p=e.makeTargetAnimatable(t),y=p.transition,g=y===void 0?e.getDefaultTransition():y,T=p.transitionEnd,C=_a(p,["transition","transitionEnd"]);c&&(g=c);var P=[],I=f&&((r=e.animationState)===null||r===void 0?void 0:r.getState()[f]);for(var M in C){var R=e.getValue(M),V=C[M];if(!(!R||V===void 0||I&&oB(I,M))){var U=nt({delay:s},g);e.shouldReduceMotion&&Vd(M)&&(U=nt(nt({},U),{type:!1,delay:0}));var Q=dy(M,R,V,U);P.push(Q)}}return Promise.all(P).then(function(){T&&Jj(e,T)})}function rB(e,t,n,r,i,o){n===void 0&&(n=0),r===void 0&&(r=0),i===void 0&&(i=1);var s=[],c=(e.variantChildren.size-1)*r,f=i===1?function(p){return p===void 0&&(p=0),p*r}:function(p){return p===void 0&&(p=0),c-p*r};return Array.from(e.variantChildren).sort(iB).forEach(function(p,y){s.push(em(p,t,nt(nt({},o),{delay:n+f(y)})).then(function(){return p.notifyAnimationComplete(t)}))}),Promise.all(s)}function iB(e,t){return e.sortNodePosition(t)}function oB(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&r[t]!==!0;return r[t]=!1,i}var gy=[An.Animate,An.InView,An.Focus,An.Hover,An.Tap,An.Drag,An.Exit],aB=Xo([],Wr(gy),!1).reverse(),sB=gy.length;function lB(e){return function(t){return Promise.all(t.map(function(n){var r=n.animation,i=n.options;return nB(e,r,i)}))}}function uB(e){var t=lB(e),n=fB(),r={},i=!0,o=function(y,g){var T=Rp(e,g);if(T){T.transition;var C=T.transitionEnd,P=_a(T,["transition","transitionEnd"]);y=nt(nt(nt({},y),P),C)}return y};function s(y){return r[y]!==void 0}function c(y){t=y(e)}function f(y,g){for(var T,C=e.getProps(),P=e.getVariantContext(!0)||{},I=[],M=new Set,R={},V=1/0,U=function(S){var he=aB[S],ae=n[he],Ge=(T=C[he])!==null&&T!==void 0?T:P[he],Re=rs(Ge),Me=he===g?ae.isActive:null;Me===!1&&(V=S);var $e=Ge===P[he]&&Ge!==C[he]&ℜif($e&&i&&e.manuallyAnimateOnMount&&($e=!1),ae.protectedKeys=nt({},R),!ae.isActive&&Me===null||!Ge&&!ae.prevProp||ty(Ge)||typeof Ge=="boolean")return"continue";var Ue=cB(ae.prevProp,Ge),ce=Ue||he===g&&ae.isActive&&!$e&&Re||S>V&&Re,Te=Array.isArray(Ge)?Ge:[Ge],Ne=Te.reduce(o,{});Me===!1&&(Ne={});var We=ae.prevResolvedValues,tt=We===void 0?{}:We,we=nt(nt({},tt),Ne),Ee=function(_e){ce=!0,M.delete(_e),ae.needsAnimating[_e]=!0};for(var Le in we){var Be=Ne[Le],ke=tt[Le];R.hasOwnProperty(Le)||(Be!==ke?_d(Be)&&_d(ke)?!zC(Be,ke)||Ue?Ee(Le):ae.protectedKeys[Le]=!0:Be!==void 0?Ee(Le):M.add(Le):Be!==void 0&&M.has(Le)?Ee(Le):ae.protectedKeys[Le]=!0)}ae.prevProp=Ge,ae.prevResolvedValues=Ne,ae.isActive&&(R=nt(nt({},R),Ne)),i&&e.blockInitialAnimation&&(ce=!1),ce&&!$e&&I.push.apply(I,Xo([],Wr(Te.map(function(_e){return{animation:_e,options:nt({type:he},y)}})),!1))},Q=0;Q<sB;Q++)U(Q);if(r=nt({},R),M.size){var K={};M.forEach(function(S){var he=e.getBaseTarget(S);he!==void 0&&(K[S]=he)}),I.push({animation:K})}var ue=!!I.length;return i&&C.initial===!1&&!e.manuallyAnimateOnMount&&(ue=!1),i=!1,ue?t(I):Promise.resolve()}function p(y,g,T){var C;if(n[y].isActive===g)return Promise.resolve();(C=e.variantChildren)===null||C===void 0||C.forEach(function(M){var R;return(R=M.animationState)===null||R===void 0?void 0:R.setActive(y,g)}),n[y].isActive=g;var P=f(T,y);for(var I in n)n[I].protectedKeys={};return P}return{isAnimated:s,animateChanges:f,setActive:p,setAnimateFunction:c,getState:function(){return n}}}function cB(e,t){return typeof t=="string"?t!==e:HT(t)?!zC(t,e):!1}function sc(e){return e===void 0&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function fB(){var e;return e={},e[An.Animate]=sc(!0),e[An.InView]=sc(),e[An.Hover]=sc(),e[An.Tap]=sc(),e[An.Drag]=sc(),e[An.Focus]=sc(),e[An.Exit]=sc(),e}var dB={animation:pu(function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=uB(t)),ty(n)&&q.useEffect(function(){return n.subscribe(t)},[n])}),exit:pu(function(e){var t=e.custom,n=e.visualElement,r=Wr(WC(),2),i=r[0],o=r[1],s=q.useContext(Pp);q.useEffect(function(){var c,f;n.isPresent=i;var p=(c=n.animationState)===null||c===void 0?void 0:c.setActive(An.Exit,!i,{custom:(f=s==null?void 0:s.custom)!==null&&f!==void 0?f:t});!i&&(p==null||p.then(o))},[i])})},XC=function(){function e(t,n,r){var i=this,o=r===void 0?{}:r,s=o.transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(i.lastMoveEvent&&i.lastMoveEventInfo){var T=zg(i.lastMoveEventInfo,i.history),C=i.startEvent!==null,P=jC(T.offset,{x:0,y:0})>=3;if(!(!C&&!P)){var I=T.point,M=sp().timestamp;i.history.push(nt(nt({},I),{timestamp:M}));var R=i.handlers,V=R.onStart,U=R.onMove;C||(V&&V(i.lastMoveEvent,T),i.startEvent=i.lastMoveEvent),U&&U(i.lastMoveEvent,T)}}},this.handlePointerMove=function(T,C){if(i.lastMoveEvent=T,i.lastMoveEventInfo=Wg(C,i.transformPagePoint),pC(T)&&T.buttons===0){i.handlePointerUp(T,C);return}js.update(i.updatePoint,!0)},this.handlePointerUp=function(T,C){i.end();var P=i.handlers,I=P.onEnd,M=P.onSessionEnd,R=zg(Wg(C,i.transformPagePoint),i.history);i.startEvent&&I&&I(T,R),M&&M(T,R)},!(gC(t)&&t.touches.length>1)){this.handlers=n,this.transformPagePoint=s;var c=ny(t),f=Wg(c,this.transformPagePoint),p=f.point,y=sp().timestamp;this.history=[nt(nt({},p),{timestamp:y})];var g=n.onSessionStart;g&&g(t,zg(f,this.history)),this.removeListeners=Lp(wf(window,"pointermove",this.handlePointerMove),wf(window,"pointerup",this.handlePointerUp),wf(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(t){this.handlers=t},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Cf.update(this.updatePoint)},e}();function Wg(e,t){return t?{point:t(e.point)}:e}function Lw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function zg(e,t){var n=e.point;return{point:n,delta:Lw(n,KC(t)),offset:Lw(n,hB(t)),velocity:pB(t,.1)}}function hB(e){return e[0]}function KC(e){return e[e.length-1]}function pB(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=KC(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>up(t)));)n--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(o===0)return{x:0,y:0};var s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Ol(e){return e.max-e.min}function Fw(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=.01),jC(e,t)<n}function Nw(e,t,n,r){r===void 0&&(r=.5),e.origin=r,e.originPoint=or(t.min,t.max,e.origin),e.scale=Ol(n)/Ol(t),(Fw(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=or(n.min,n.max,e.origin)-e.originPoint,(Fw(e.translate)||isNaN(e.translate))&&(e.translate=0)}function dd(e,t,n,r){Nw(e.x,t.x,n.x,r==null?void 0:r.originX),Nw(e.y,t.y,n.y,r==null?void 0:r.originY)}function jw(e,t,n){e.min=n.min+t.min,e.max=e.min+Ol(t)}function gB(e,t,n){jw(e.x,t.x,n.x),jw(e.y,t.y,n.y)}function Bw(e,t,n){e.min=t.min-n.min,e.max=e.min+Ol(t)}function hd(e,t,n){Bw(e.x,t.x,n.x),Bw(e.y,t.y,n.y)}function vB(e,t,n){var r=t.min,i=t.max;return r!==void 0&&e<r?e=n?or(r,e,n.min):Math.max(e,r):i!==void 0&&e>i&&(e=n?or(i,e,n.max):Math.min(e,i)),e}function $w(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function mB(e,t){var n=t.top,r=t.left,i=t.bottom,o=t.right;return{x:$w(e.x,r,o),y:$w(e.y,n,i)}}function Vw(e,t){var n,r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(n=Wr([i,r],2),r=n[0],i=n[1]),{min:r,max:i}}function yB(e,t){return{x:Vw(e.x,t.x),y:Vw(e.y,t.y)}}function bB(e,t){var n=.5,r=Ol(e),i=Ol(t);return i>r?n=Pd(t.min,t.max-r,e.min):r>i&&(n=Pd(e.min,e.max-i,t.min)),op(0,1,n)}function wB(e,t){var n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var tm=.35;function xB(e){return e===void 0&&(e=tm),e===!1?e=0:e===!0&&(e=tm),{x:Hw(e,"left","right"),y:Hw(e,"top","bottom")}}function Hw(e,t,n){return{min:Uw(e,t),max:Uw(e,n)}}function Uw(e,t){var n;return typeof e=="number"?e:(n=e[t])!==null&&n!==void 0?n:0}var Ww=function(){return{translate:0,scale:1,origin:0,originPoint:0}},pd=function(){return{x:Ww(),y:Ww()}},zw=function(){return{min:0,max:0}},Li=function(){return{x:zw(),y:zw()}};function Ls(e){return[e("x"),e("y")]}function ZC(e){var t=e.top,n=e.left,r=e.right,i=e.bottom;return{x:{min:n,max:r},y:{min:t,max:i}}}function SB(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}function TB(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Yg(e){return e===void 0||e===1}function JC(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!Yg(t)||!Yg(n)||!Yg(r)}function lu(e){return JC(e)||Yw(e.x)||Yw(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Yw(e){return e&&e!=="0%"}function cp(e,t,n){var r=e-n,i=t*r;return n+i}function Gw(e,t,n,r,i){return i!==void 0&&(e=cp(e,i,r)),cp(e,n,r)+t}function nm(e,t,n,r,i){t===void 0&&(t=0),n===void 0&&(n=1),e.min=Gw(e.min,t,n,r,i),e.max=Gw(e.max,t,n,r,i)}function QC(e,t){var n=t.x,r=t.y;nm(e.x,n.translate,n.scale,n.originPoint),nm(e.y,r.translate,r.scale,r.originPoint)}function CB(e,t,n,r){var i,o;r===void 0&&(r=!1);var s=n.length;if(s){t.x=t.y=1;for(var c,f,p=0;p<s;p++)c=n[p],f=c.projectionDelta,((o=(i=c.instance)===null||i===void 0?void 0:i.style)===null||o===void 0?void 0:o.display)!=="contents"&&(r&&c.options.layoutScroll&&c.scroll&&c!==c.root&&pf(e,{x:-c.scroll.x,y:-c.scroll.y}),f&&(t.x*=f.x.scale,t.y*=f.y.scale,QC(e,f)),r&&lu(c.latestValues)&&pf(e,c.latestValues))}}function cu(e,t){e.min=e.min+t,e.max=e.max+t}function qw(e,t,n){var r=Wr(n,3),i=r[0],o=r[1],s=r[2],c=t[s]!==void 0?t[s]:.5,f=or(e.min,e.max,c);nm(e,t[i],t[o],f,t.scale)}var EB=["x","scaleX","originX"],kB=["y","scaleY","originY"];function pf(e,t){qw(e.x,t,EB),qw(e.y,t,kB)}function eE(e,t){return ZC(TB(e.getBoundingClientRect(),t))}function OB(e,t,n){var r=eE(e,n),i=t.scroll;return i&&(cu(r.x,i.x),cu(r.y,i.y)),r}var DB=new WeakMap,_B=function(){function e(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Li(),this.visualElement=t}return e.prototype.start=function(t,n){var r=this,i=n===void 0?{}:n,o=i.snapToCursor,s=o===void 0?!1:o;if(this.visualElement.isPresent!==!1){var c=function(g){r.stopAnimation(),s&&r.snapToCursor(ny(g,"page").point)},f=function(g,T){var C,P=r.getProps(),I=P.drag,M=P.dragPropagation,R=P.onDragStart;I&&!M&&(r.openGlobalLock&&r.openGlobalLock(),r.openGlobalLock=bC(I),!r.openGlobalLock)||(r.isDragging=!0,r.currentDirection=null,r.resolveConstraints(),r.visualElement.projection&&(r.visualElement.projection.isAnimationBlocked=!0,r.visualElement.projection.target=void 0),Ls(function(V){var U,Q,K=r.getAxisMotionValue(V).get()||0;if(Ns.test(K)){var ue=(Q=(U=r.visualElement.projection)===null||U===void 0?void 0:U.layout)===null||Q===void 0?void 0:Q.actual[V];if(ue){var S=Ol(ue);K=S*(parseFloat(K)/100)}}r.originPoint[V]=K}),R==null||R(g,T),(C=r.visualElement.animationState)===null||C===void 0||C.setActive(An.Drag,!0))},p=function(g,T){var C=r.getProps(),P=C.dragPropagation,I=C.dragDirectionLock,M=C.onDirectionLock,R=C.onDrag;if(!(!P&&!r.openGlobalLock)){var V=T.offset;if(I&&r.currentDirection===null){r.currentDirection=PB(V),r.currentDirection!==null&&(M==null||M(r.currentDirection));return}r.updateAxis("x",T.point,V),r.updateAxis("y",T.point,V),r.visualElement.syncRender(),R==null||R(g,T)}},y=function(g,T){return r.stop(g,T)};this.panSession=new XC(t,{onSessionStart:c,onStart:f,onMove:p,onSessionEnd:y},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},e.prototype.stop=function(t,n){var r=this.isDragging;if(this.cancel(),!!r){var i=n.velocity;this.startAnimation(i);var o=this.getProps().onDragEnd;o==null||o(t,n)}},e.prototype.cancel=function(){var t,n;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;var r=this.getProps().dragPropagation;!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(n=this.visualElement.animationState)===null||n===void 0||n.setActive(An.Drag,!1)},e.prototype.updateAxis=function(t,n,r){var i=this.getProps().drag;if(!(!r||!Sh(t,i,this.currentDirection))){var o=this.getAxisMotionValue(t),s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=vB(s,this.constraints[t],this.elastic[t])),o.set(s)}},e.prototype.resolveConstraints=function(){var t=this,n=this.getProps(),r=n.dragConstraints,i=n.dragElastic,o=(this.visualElement.projection||{}).layout,s=this.constraints;r&&hf(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=mB(o.actual,r):this.constraints=!1,this.elastic=xB(i),s!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ls(function(c){t.getAxisMotionValue(c)&&(t.constraints[c]=wB(o.actual[c],t.constraints[c]))})},e.prototype.resolveRefConstraints=function(){var t=this.getProps(),n=t.dragConstraints,r=t.onMeasureDragConstraints;if(!n||!hf(n))return!1;var i=n.current;Oa(i!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var o=this.visualElement.projection;if(!o||!o.layout)return!1;var s=OB(i,o.root,this.visualElement.getTransformPagePoint()),c=yB(o.layout.actual,s);if(r){var f=r(SB(c));this.hasMutatedConstraints=!!f,f&&(c=ZC(f))}return c},e.prototype.startAnimation=function(t){var n=this,r=this.getProps(),i=r.drag,o=r.dragMomentum,s=r.dragElastic,c=r.dragTransition,f=r.dragSnapToOrigin,p=r.onDragTransitionEnd,y=this.constraints||{},g=Ls(function(T){var C;if(Sh(T,i,n.currentDirection)){var P=(C=y==null?void 0:y[T])!==null&&C!==void 0?C:{};f&&(P={min:0,max:0});var I=s?200:1e6,M=s?40:1e7,R=nt(nt({type:"inertia",velocity:o?t[T]:0,bounceStiffness:I,bounceDamping:M,timeConstant:750,restDelta:1,restSpeed:10},c),P);return n.startAxisValueAnimation(T,R)}});return Promise.all(g).then(p)},e.prototype.startAxisValueAnimation=function(t,n){var r=this.getAxisMotionValue(t);return dy(t,r,0,n)},e.prototype.stopAnimation=function(){var t=this;Ls(function(n){return t.getAxisMotionValue(n).stop()})},e.prototype.getAxisMotionValue=function(t){var n,r,i="_drag"+t.toUpperCase(),o=this.visualElement.getProps()[i];return o||this.visualElement.getValue(t,(r=(n=this.visualElement.getProps().initial)===null||n===void 0?void 0:n[t])!==null&&r!==void 0?r:0)},e.prototype.snapToCursor=function(t){var n=this;Ls(function(r){var i=n.getProps().drag;if(Sh(r,i,n.currentDirection)){var o=n.visualElement.projection,s=n.getAxisMotionValue(r);if(o&&o.layout){var c=o.layout.actual[r],f=c.min,p=c.max;s.set(t[r]-or(f,p,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var t=this,n,r=this.getProps(),i=r.drag,o=r.dragConstraints,s=this.visualElement.projection;if(!(!hf(o)||!s||!this.constraints)){this.stopAnimation();var c={x:0,y:0};Ls(function(p){var y=t.getAxisMotionValue(p);if(y){var g=y.get();c[p]=bB({min:g,max:g},t.constraints[p])}});var f=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=f?f({},""):"none",(n=s.root)===null||n===void 0||n.updateScroll(),s.updateLayout(),this.resolveConstraints(),Ls(function(p){if(Sh(p,i,null)){var y=t.getAxisMotionValue(p),g=t.constraints[p],T=g.min,C=g.max;y.set(or(T,C,c[p]))}})}},e.prototype.addListeners=function(){var t=this,n;DB.set(this.visualElement,this);var r=this.visualElement.getInstance(),i=wf(r,"pointerdown",function(p){var y=t.getProps(),g=y.drag,T=y.dragListener,C=T===void 0?!0:T;g&&C&&t.start(p)}),o=function(){var p=t.getProps().dragConstraints;hf(p)&&(t.constraints=t.resolveRefConstraints())},s=this.visualElement.projection,c=s.addEventListener("measure",o);s&&!s.layout&&((n=s.root)===null||n===void 0||n.updateScroll(),s.updateLayout()),o();var f=Mp(window,"resize",function(){return t.scalePositionWithinConstraints()});return s.addEventListener("didUpdate",function(p){var y=p.delta,g=p.hasLayoutChanged;t.isDragging&&g&&(Ls(function(T){var C=t.getAxisMotionValue(T);C&&(t.originPoint[T]+=y[T].translate,C.set(C.get()+y[T].translate))}),t.visualElement.syncRender())}),function(){f(),i(),c()}},e.prototype.getProps=function(){var t=this.visualElement.getProps(),n=t.drag,r=n===void 0?!1:n,i=t.dragDirectionLock,o=i===void 0?!1:i,s=t.dragPropagation,c=s===void 0?!1:s,f=t.dragConstraints,p=f===void 0?!1:f,y=t.dragElastic,g=y===void 0?tm:y,T=t.dragMomentum,C=T===void 0?!0:T;return nt(nt({},t),{drag:r,dragDirectionLock:o,dragPropagation:c,dragConstraints:p,dragElastic:g,dragMomentum:C})},e}();function Sh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function PB(e,t){t===void 0&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}function RB(e){var t=e.dragControls,n=e.visualElement,r=Ap(function(){return new _B(n)});q.useEffect(function(){return t&&t.subscribe(r)},[r,t]),q.useEffect(function(){return r.addListeners()},[r])}function IB(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,s=t||n||r||i,c=q.useRef(null),f=q.useContext(qm).transformPagePoint,p={onSessionStart:i,onStart:n,onMove:t,onEnd:function(g,T){c.current=null,r&&r(g,T)}};q.useEffect(function(){c.current!==null&&c.current.updateHandlers(p)});function y(g){c.current=new XC(g,p,{transformPagePoint:f})}ip(o,"pointerdown",s&&y),SC(function(){return c.current&&c.current.end()})}var AB={pan:pu(IB),drag:pu(RB)},Th=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function MB(){var e=Th.map(function(){return new fd}),t={},n={clearAllListeners:function(){return e.forEach(function(r){return r.clear()})},updatePropListeners:function(r){Th.forEach(function(i){var o,s="on"+i,c=r[s];(o=t[i])===null||o===void 0||o.call(t),c&&(t[i]=n[s](c))})}};return e.forEach(function(r,i){n["on"+Th[i]]=function(o){return r.add(o)},n["notify"+Th[i]]=function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return r.notify.apply(r,Xo([],Wr(o),!1))}}),n}function LB(e,t,n){var r;for(var i in t){var o=t[i],s=n[i];if(El(o))e.addValue(i,o),process.env.NODE_ENV==="development"&&UC(o.version==="6.5.1","Attempting to mix Framer Motion versions ".concat(o.version," with 6.5.1 may not work as expected."));else if(El(s))e.addValue(i,Ef(o));else if(s!==o)if(e.hasValue(i)){var c=e.getValue(i);!c.hasAnimated&&c.set(o)}else e.addValue(i,Ef((r=e.getStaticValue(i))!==null&&r!==void 0?r:o))}for(var i in n)t[i]===void 0&&e.removeValue(i);return t}var tE=function(e){var t=e.treeType,n=t===void 0?"":t,r=e.build,i=e.getBaseTarget,o=e.makeTargetAnimatable,s=e.measureViewportBox,c=e.render,f=e.readValueFromInstance,p=e.removeValueFromRenderState,y=e.sortNodePosition,g=e.scrapeMotionValuesFromProps;return function(T,C){var P=T.parent,I=T.props,M=T.presenceId,R=T.blockInitialAnimation,V=T.visualState,U=T.shouldReduceMotion;C===void 0&&(C={});var Q=!1,K=V.latestValues,ue=V.renderState,S,he=MB(),ae=new Map,Ge=new Map,Re={},Me=nt({},K),$e;function Ue(){!S||!Q||(ce(),c(S,ue,I.style,Be.projection))}function ce(){r(Be,ue,K,C,I)}function Te(){he.notifyUpdate(K)}function Ne(ke,_e){var ze=_e.onChange(function(dt){K[ke]=dt,I.onUpdate&&js.update(Te,!1,!0)}),it=_e.onRenderRequest(Be.scheduleRender);Ge.set(ke,function(){ze(),it()})}var We=g(I);for(var tt in We){var we=We[tt];K[tt]!==void 0&&El(we)&&we.set(K[tt],!1)}var Ee=Ip(I),Le=WT(I),Be=nt(nt({treeType:n,current:null,depth:P?P.depth+1:0,parent:P,children:new Set,presenceId:M,shouldReduceMotion:U,variantChildren:Le?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:!!(P!=null&&P.isMounted()),blockInitialAnimation:R,isMounted:function(){return!!S},mount:function(ke){Q=!0,S=Be.current=ke,Be.projection&&Be.projection.mount(ke),Le&&P&&!Ee&&($e=P==null?void 0:P.addVariantChild(Be)),ae.forEach(function(_e,ze){return Ne(ze,_e)}),P==null||P.children.add(Be),Be.setProps(I)},unmount:function(){var ke;(ke=Be.projection)===null||ke===void 0||ke.unmount(),Cf.update(Te),Cf.render(Ue),Ge.forEach(function(_e){return _e()}),$e==null||$e(),P==null||P.children.delete(Be),he.clearAllListeners(),S=void 0,Q=!1},addVariantChild:function(ke){var _e,ze=Be.getClosestVariantNode();if(ze)return(_e=ze.variantChildren)===null||_e===void 0||_e.add(ke),function(){return ze.variantChildren.delete(ke)}},sortNodePosition:function(ke){return!y||n!==ke.treeType?0:y(Be.getInstance(),ke.getInstance())},getClosestVariantNode:function(){return Le?Be:P==null?void 0:P.getClosestVariantNode()},getLayoutId:function(){return I.layoutId},getInstance:function(){return S},getStaticValue:function(ke){return K[ke]},setStaticValue:function(ke,_e){return K[ke]=_e},getLatestValues:function(){return K},setVisibility:function(ke){Be.isVisible!==ke&&(Be.isVisible=ke,Be.scheduleRender())},makeTargetAnimatable:function(ke,_e){return _e===void 0&&(_e=!0),o(Be,ke,I,_e)},measureViewportBox:function(){return s(S,I)},addValue:function(ke,_e){Be.hasValue(ke)&&Be.removeValue(ke),ae.set(ke,_e),K[ke]=_e.get(),Ne(ke,_e)},removeValue:function(ke){var _e;ae.delete(ke),(_e=Ge.get(ke))===null||_e===void 0||_e(),Ge.delete(ke),delete K[ke],p(ke,ue)},hasValue:function(ke){return ae.has(ke)},getValue:function(ke,_e){var ze=ae.get(ke);return ze===void 0&&_e!==void 0&&(ze=Ef(_e),Be.addValue(ke,ze)),ze},forEachValue:function(ke){return ae.forEach(ke)},readValue:function(ke){var _e;return(_e=K[ke])!==null&&_e!==void 0?_e:f(S,ke,C)},setBaseTarget:function(ke,_e){Me[ke]=_e},getBaseTarget:function(ke){if(i){var _e=i(I,ke);if(_e!==void 0&&!El(_e))return _e}return Me[ke]}},he),{build:function(){return ce(),ue},scheduleRender:function(){js.render(Ue,!1,!0)},syncRender:Ue,setProps:function(ke){(ke.transformTemplate||I.transformTemplate)&&Be.scheduleRender(),I=ke,he.updatePropListeners(ke),Re=LB(Be,g(I),Re)},getProps:function(){return I},getVariant:function(ke){var _e;return(_e=I.variants)===null||_e===void 0?void 0:_e[ke]},getDefaultTransition:function(){return I.transition},getTransformPagePoint:function(){return I.transformPagePoint},getVariantContext:function(ke){if(ke===void 0&&(ke=!1),ke)return P==null?void 0:P.getVariantContext();if(!Ee){var _e=(P==null?void 0:P.getVariantContext())||{};return I.initial!==void 0&&(_e.initial=I.initial),_e}for(var ze={},it=0;it<FB;it++){var dt=nE[it],ht=I[dt];(rs(ht)||ht===!1)&&(ze[dt]=ht)}return ze}});return Be}},nE=Xo(["initial"],Wr(gy),!1),FB=nE.length;function rm(e){return typeof e=="string"&&e.startsWith("var(--")}var rE=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function NB(e){var t=rE.exec(e);if(!t)return[,];var n=Wr(t,3),r=n[1],i=n[2];return[r,i]}var jB=4;function im(e,t,n){n===void 0&&(n=1),Oa(n<=jB,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var r=Wr(NB(e),2),i=r[0],o=r[1];if(i){var s=window.getComputedStyle(t).getPropertyValue(i);return s?s.trim():rm(o)?im(o,t,n+1):o}}function BB(e,t,n){var r,i=_a(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:n};n&&(n=nt({},n)),e.forEachValue(function(p){var y=p.get();if(rm(y)){var g=im(y,o);g&&p.set(g)}});for(var s in i){var c=i[s];if(rm(c)){var f=im(c,o);f&&(i[s]=f,n&&((r=n[s])!==null&&r!==void 0||(n[s]=c)))}}return{target:i,transitionEnd:n}}var $B=new Set(["width","height","top","left","right","bottom","x","y"]),iE=function(e){return $B.has(e)},VB=function(e){return Object.keys(e).some(iE)},oE=function(e,t){e.set(t,!1),e.set(t)},Ch=function(e){return e===Oc||e===Rt},Xw;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(Xw||(Xw={}));var Kw=function(e,t){return parseFloat(e.split(", ")[t])},Zw=function(e,t){return function(n,r){var i=r.transform;if(i==="none"||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return Kw(o[1],t);var s=i.match(/^matrix\((.+)\)$/);return s?Kw(s[1],e):0}},HB=new Set(["x","y","z"]),UB=Od.filter(function(e){return!HB.has(e)});function WB(e){var t=[];return UB.forEach(function(n){var r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}var Jw={width:function(e,t){var n=e.x,r=t.paddingLeft,i=r===void 0?"0":r,o=t.paddingRight,s=o===void 0?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(s)},height:function(e,t){var n=e.y,r=t.paddingTop,i=r===void 0?"0":r,o=t.paddingBottom,s=o===void 0?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(s)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:Zw(4,13),y:Zw(5,14)},zB=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),o=getComputedStyle(i),s=o.display,c={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(function(p){c[p]=Jw[p](r,o)}),t.syncRender();var f=t.measureViewportBox();return n.forEach(function(p){var y=t.getValue(p);oE(y,c[p]),e[p]=Jw[p](f,o)}),e},YB=function(e,t,n,r){n===void 0&&(n={}),r===void 0&&(r={}),t=nt({},t),r=nt({},r);var i=Object.keys(t).filter(iE),o=[],s=!1,c=[];if(i.forEach(function(y){var g=e.getValue(y);if(e.hasValue(y)){var T=n[y],C=Qf(T),P=t[y],I;if(_d(P)){var M=P.length,R=P[0]===null?1:0;T=P[R],C=Qf(T);for(var V=R;V<M;V++)I?Oa(Qf(P[V])===I,"All keyframes must be of the same type"):(I=Qf(P[V]),Oa(I===C||Ch(C)&&Ch(I),"Keyframes must be of the same dimension as the current value"))}else I=Qf(P);if(C!==I)if(Ch(C)&&Ch(I)){var U=g.get();typeof U=="string"&&g.set(parseFloat(U)),typeof P=="string"?t[y]=parseFloat(P):Array.isArray(P)&&I===Rt&&(t[y]=P.map(parseFloat))}else C!=null&&C.transform&&(I!=null&&I.transform)&&(T===0||P===0)?T===0?g.set(I.transform(T)):t[y]=C.transform(P):(s||(o=WB(e),s=!0),c.push(y),r[y]=r[y]!==void 0?r[y]:t[y],oE(g,P))}}),c.length){var f=c.indexOf("height")>=0?window.pageYOffset:null,p=zB(t,e,c);return o.length&&o.forEach(function(y){var g=Wr(y,2),T=g[0],C=g[1];e.getValue(T).set(C)}),e.syncRender(),f!==null&&window.scrollTo({top:f}),{target:p,transitionEnd:r}}else return{target:t,transitionEnd:r}};function GB(e,t,n,r){return VB(t)?YB(e,t,n,r):{target:t,transitionEnd:r}}var qB=function(e,t,n,r){var i=BB(e,t,r);return t=i.target,r=i.transitionEnd,GB(e,t,n,r)};function XB(e){return window.getComputedStyle(e)}var aE={treeType:"dom",readValueFromInstance:function(e,t){if(Vd(t)){var n=uy(t);return n&&n.default||0}else{var r=XB(e);return(XT(t)?r.getPropertyValue(t):r[t])||0}},sortNodePosition:function(e,t){return e.compareDocumentPosition(t)&2?1:-1},getBaseTarget:function(e,t){var n;return(n=e.style)===null||n===void 0?void 0:n[t]},measureViewportBox:function(e,t){var n=t.transformPagePoint;return eE(e,n)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var i=n.transformValues;r===void 0&&(r=!0);var o=t.transition,s=t.transitionEnd,c=_a(t,["transition","transitionEnd"]),f=tB(c,o||{},e);if(i&&(s&&(s=i(s)),c&&(c=i(c)),f&&(f=i(f))),r){Qj(e,c,f);var p=qB(e,c,f,s);s=p.transitionEnd,c=p.target}return nt({transition:o,transitionEnd:s},c)},scrapeMotionValuesFromProps:ey,build:function(e,t,n,r,i){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),Zm(t,n,r,i.transformTemplate)},render:lC},KB=tE(aE),ZB=tE(nt(nt({},aE),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Vd(t)?((n=uy(t))===null||n===void 0?void 0:n.default)||0:(t=uC.has(t)?t:sC(t),e.getAttribute(t))},scrapeMotionValuesFromProps:fC,build:function(e,t,n,r,i){Qm(t,n,r,i.transformTemplate)},render:cC})),JB=function(e,t){return Xm(e)?ZB(t,{enableHardwareAcceleration:!1}):KB(t,{enableHardwareAcceleration:!0})};function Qw(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ed={correct:function(e,t){if(!t.target)return e;if(typeof e=="string")if(Rt.test(e))e=parseFloat(e);else return e;var n=Qw(e,t.target.x),r=Qw(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},ex="_$css",QB={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,o=e.includes("var("),s=[];o&&(e=e.replace(rE,function(I){return s.push(I),ex}));var c=kl.parse(e);if(c.length>5)return i;var f=kl.createTransformer(e),p=typeof c[0]!="number"?1:0,y=r.x.scale*n.x,g=r.y.scale*n.y;c[0+p]/=y,c[1+p]/=g;var T=or(y,g,.5);typeof c[2+p]=="number"&&(c[2+p]/=T),typeof c[3+p]=="number"&&(c[3+p]/=T);var C=f(c);if(o){var P=0;C=C.replace(ex,function(){var I=s[P];return P++,I})}return C}},e$=function(e){NT(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidMount=function(){var n=this,r=this.props,i=r.visualElement,o=r.layoutGroup,s=r.switchLayoutGroup,c=r.layoutId,f=i.projection;kF(n$),f&&(o!=null&&o.group&&o.group.add(f),s!=null&&s.register&&c&&s.register(f),f.root.didUpdate(),f.addEventListener("animationComplete",function(){n.safeToRemove()}),f.setOptions(nt(nt({},f.options),{onExitComplete:function(){return n.safeToRemove()}}))),ld.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(n){var r=this,i=this.props,o=i.layoutDependency,s=i.visualElement,c=i.drag,f=i.isPresent,p=s.projection;return p&&(p.isPresent=f,c||n.layoutDependency!==o||o===void 0?p.willUpdate():this.safeToRemove(),n.isPresent!==f&&(f?p.promote():p.relegate()||js.postRender(function(){var y;!((y=p.getStack())===null||y===void 0)&&y.members.length||r.safeToRemove()}))),null},t.prototype.componentDidUpdate=function(){var n=this.props.visualElement.projection;n&&(n.root.didUpdate(),!n.currentAnimation&&n.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var n=this.props,r=n.visualElement,i=n.layoutGroup,o=n.switchLayoutGroup,s=r.projection;s&&(s.scheduleCheckAfterUnmount(),i!=null&&i.group&&i.group.remove(s),o!=null&&o.deregister&&o.deregister(s))},t.prototype.safeToRemove=function(){var n=this.props.safeToRemove;n==null||n()},t.prototype.render=function(){return null},t}(q.Component);function t$(e){var t=Wr(WC(),2),n=t[0],r=t[1],i=q.useContext(zT);return q.createElement(e$,nt({},e,{layoutGroup:i,switchLayoutGroup:q.useContext(YT),isPresent:n,safeToRemove:r}))}var n$={borderRadius:nt(nt({},ed),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:ed,borderTopRightRadius:ed,borderBottomLeftRadius:ed,borderBottomRightRadius:ed,boxShadow:QB},r$={measureLayout:t$};function i$(e,t,n){n===void 0&&(n={});var r=El(e)?e:Ef(e);return dy("",r,t,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}var sE=["TopLeft","TopRight","BottomLeft","BottomRight"],o$=sE.length,tx=function(e){return typeof e=="string"?parseFloat(e):e},nx=function(e){return typeof e=="number"||Rt.test(e)};function a$(e,t,n,r,i,o){var s,c,f,p;i?(e.opacity=or(0,(s=n.opacity)!==null&&s!==void 0?s:1,s$(r)),e.opacityExit=or((c=t.opacity)!==null&&c!==void 0?c:1,0,l$(r))):o&&(e.opacity=or((f=t.opacity)!==null&&f!==void 0?f:1,(p=n.opacity)!==null&&p!==void 0?p:1,r));for(var y=0;y<o$;y++){var g="border".concat(sE[y],"Radius"),T=rx(t,g),C=rx(n,g);if(!(T===void 0&&C===void 0)){T||(T=0),C||(C=0);var P=T===0||C===0||nx(T)===nx(C);P?(e[g]=Math.max(or(tx(T),tx(C),r),0),(Ns.test(C)||Ns.test(T))&&(e[g]+="%")):e[g]=C}}(t.rotate||n.rotate)&&(e.rotate=or(t.rotate||0,n.rotate||0,r))}function rx(e,t){var n;return(n=e[t])!==null&&n!==void 0?n:e.borderRadius}var s$=lE(0,.5,sy),l$=lE(.5,.95,oy);function lE(e,t,n){return function(r){return r<e?0:r>t?1:n(Pd(e,t,r))}}function ix(e,t){e.min=t.min,e.max=t.max}function ts(e,t){ix(e.x,t.x),ix(e.y,t.y)}function ox(e,t,n,r,i){return e-=t,e=cp(e,1/n,r),i!==void 0&&(e=cp(e,1/i,r)),e}function u$(e,t,n,r,i,o,s){if(t===void 0&&(t=0),n===void 0&&(n=1),r===void 0&&(r=.5),o===void 0&&(o=e),s===void 0&&(s=e),Ns.test(t)){t=parseFloat(t);var c=or(s.min,s.max,t/100);t=c-s.min}if(typeof t=="number"){var f=or(o.min,o.max,r);e===o&&(f-=t),e.min=ox(e.min,t,n,f,i),e.max=ox(e.max,t,n,f,i)}}function ax(e,t,n,r,i){var o=Wr(n,3),s=o[0],c=o[1],f=o[2];u$(e,t[s],t[c],t[f],t.scale,r,i)}var c$=["x","scaleX","originX"],f$=["y","scaleY","originY"];function sx(e,t,n,r){ax(e.x,t,c$,n==null?void 0:n.x,r==null?void 0:r.x),ax(e.y,t,f$,n==null?void 0:n.y,r==null?void 0:r.y)}function lx(e){return e.translate===0&&e.scale===1}function uE(e){return lx(e.x)&&lx(e.y)}function cE(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var d$=function(){function e(){this.members=[]}return e.prototype.add=function(t){hy(this.members,t),t.scheduleRender()},e.prototype.remove=function(t){if(py(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){var n=this.members[this.members.length-1];n&&this.promote(n)}},e.prototype.relegate=function(t){var n=this.members.findIndex(function(s){return t===s});if(n===0)return!1;for(var r,i=n;i>=0;i--){var o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1},e.prototype.promote=function(t,n){var r,i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues,t.snapshot.isShared=!0),!((r=t.root)===null||r===void 0)&&r.isUpdating&&(t.isLayoutDirty=!0);var o=t.options.crossfade;o===!1&&i.hide()}},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(t){var n,r,i,o,s;(r=(n=t.options).onExitComplete)===null||r===void 0||r.call(n),(s=(i=t.resumingFrom)===null||i===void 0?void 0:(o=i.options).onExitComplete)===null||s===void 0||s.call(o)})},e.prototype.scheduleRender=function(){this.members.forEach(function(t){t.instance&&t.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),h$="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function ux(e,t,n){var r=e.x.translate/t.x,i=e.y.translate/t.y,o="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var s=n.rotate,c=n.rotateX,f=n.rotateY;s&&(o+="rotate(".concat(s,"deg) ")),c&&(o+="rotateX(".concat(c,"deg) ")),f&&(o+="rotateY(".concat(f,"deg) "))}var p=e.x.scale*t.x,y=e.y.scale*t.y;return o+="scale(".concat(p,", ").concat(y,")"),o===h$?"none":o}var p$=function(e,t){return e.depth-t.depth},g$=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(t){hy(this.children,t),this.isDirty=!0},e.prototype.remove=function(t){py(this.children,t),this.isDirty=!0},e.prototype.forEach=function(t){this.isDirty&&this.children.sort(p$),this.isDirty=!1,this.children.forEach(t)},e}(),cx=1e3;function fE(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,i=e.checkIsScrollRoot,o=e.resetTransform;return function(){function s(c,f,p){var y=this;f===void 0&&(f={}),p===void 0&&(p=n==null?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!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.potentialNodes=new Map,this.checkUpdateFailed=function(){y.isUpdating&&(y.isUpdating=!1,y.clearAllSnapshots())},this.updateProjection=function(){y.nodes.forEach(x$),y.nodes.forEach(S$)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=c,this.latestValues=f,this.root=p?p.root||p:this,this.path=p?Xo(Xo([],Wr(p.path),!1),[p],!1):[],this.parent=p,this.depth=p?p.depth+1:0,c&&this.root.registerPotentialNode(c,this);for(var g=0;g<this.path.length;g++)this.path[g].shouldResetTransform=!0;this.root===this&&(this.nodes=new g$)}return s.prototype.addEventListener=function(c,f){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new fd),this.eventHandlers.get(c).add(f)},s.prototype.notifyListeners=function(c){for(var f=[],p=1;p<arguments.length;p++)f[p-1]=arguments[p];var y=this.eventHandlers.get(c);y==null||y.notify.apply(y,Xo([],Wr(f),!1))},s.prototype.hasListeners=function(c){return this.eventHandlers.has(c)},s.prototype.registerPotentialNode=function(c,f){this.potentialNodes.set(c,f)},s.prototype.mount=function(c,f){var p=this,y;if(f===void 0&&(f=!1),!this.instance){this.isSVG=c instanceof SVGElement&&c.tagName!=="svg",this.instance=c;var g=this.options,T=g.layoutId,C=g.layout,P=g.visualElement;if(P&&!P.getInstance()&&P.mount(c),this.root.nodes.add(this),(y=this.parent)===null||y===void 0||y.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),f&&(C||T)&&(this.isLayoutDirty=!0),t){var I,M=function(){return p.root.updateBlockedByResize=!1};t(c,function(){p.root.updateBlockedByResize=!0,clearTimeout(I),I=window.setTimeout(M,250),ld.hasAnimatedSinceResize&&(ld.hasAnimatedSinceResize=!1,p.nodes.forEach(w$))})}T&&this.root.registerSharedNode(T,this),this.options.animate!==!1&&P&&(T||C)&&this.addEventListener("didUpdate",function(R){var V,U,Q,K,ue,S=R.delta,he=R.hasLayoutChanged,ae=R.hasRelativeTargetChanged,Ge=R.layout;if(p.isTreeAnimationBlocked()){p.target=void 0,p.relativeTarget=void 0;return}var Re=(U=(V=p.options.transition)!==null&&V!==void 0?V:P.getDefaultTransition())!==null&&U!==void 0?U:O$,Me=P.getProps(),$e=Me.onLayoutAnimationStart,Ue=Me.onLayoutAnimationComplete,ce=!p.targetLayout||!cE(p.targetLayout,Ge)||ae,Te=!he&&ae;if(!((Q=p.resumeFrom)===null||Q===void 0)&&Q.instance||Te||he&&(ce||!p.currentAnimation)){p.resumeFrom&&(p.resumingFrom=p.resumeFrom,p.resumingFrom.resumingFrom=void 0),p.setAnimationOrigin(S,Te);var Ne=nt(nt({},fy(Re,"layout")),{onPlay:$e,onComplete:Ue});P.shouldReduceMotion&&(Ne.delay=0,Ne.type=!1),p.startAnimation(Ne)}else!he&&p.animationProgress===0&&p.finishAnimation(),p.isLead()&&((ue=(K=p.options).onExitComplete)===null||ue===void 0||ue.call(K));p.targetLayout=Ge})}},s.prototype.unmount=function(){var c,f;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(c=this.getStack())===null||c===void 0||c.remove(this),(f=this.parent)===null||f===void 0||f.children.delete(this),this.instance=void 0,Cf.preRender(this.updateProjection)},s.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},s.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},s.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},s.prototype.isTreeAnimationBlocked=function(){var c;return this.isAnimationBlocked||((c=this.parent)===null||c===void 0?void 0:c.isTreeAnimationBlocked())||!1},s.prototype.startUpdate=function(){var c;this.isUpdateBlocked()||(this.isUpdating=!0,(c=this.nodes)===null||c===void 0||c.forEach(T$))},s.prototype.willUpdate=function(c){var f,p,y;if(c===void 0&&(c=!0),this.root.isUpdateBlocked()){(p=(f=this.options).onExitComplete)===null||p===void 0||p.call(f);return}if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var g=0;g<this.path.length;g++){var T=this.path[g];T.shouldResetTransform=!0,T.updateScroll()}var C=this.options,P=C.layoutId,I=C.layout;if(!(P===void 0&&!I)){var M=(y=this.options.visualElement)===null||y===void 0?void 0:y.getProps().transformTemplate;this.prevTransformTemplateValue=M==null?void 0:M(this.latestValues,""),this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}}},s.prototype.didUpdate=function(){var c=this.isUpdateBlocked();if(c){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(fx);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(D$),this.potentialNodes.clear()),this.nodes.forEach(b$),this.nodes.forEach(v$),this.nodes.forEach(m$),this.clearAllSnapshots(),Vg.update(),Vg.preRender(),Vg.render())},s.prototype.clearAllSnapshots=function(){this.nodes.forEach(y$),this.sharedNodes.forEach(C$)},s.prototype.scheduleUpdateProjection=function(){js.preRender(this.updateProjection,!1,!0)},s.prototype.scheduleCheckAfterUnmount=function(){var c=this;js.postRender(function(){c.isLayoutDirty?c.root.didUpdate():c.root.checkUpdateFailed()})},s.prototype.updateSnapshot=function(){if(!(this.snapshot||!this.instance)){var c=this.measure(),f=this.removeTransform(this.removeElementScroll(c));gx(f),this.snapshot={measured:c,layout:f,latestValues:{}}}},s.prototype.updateLayout=function(){var c;if(this.instance&&(this.updateScroll(),!(!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))){if(this.resumeFrom&&!this.resumeFrom.instance)for(var f=0;f<this.path.length;f++){var p=this.path[f];p.updateScroll()}var y=this.measure();gx(y);var g=this.layout;this.layout={measured:y,actual:this.removeElementScroll(y)},this.layoutCorrected=Li(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),(c=this.options.visualElement)===null||c===void 0||c.notifyLayoutMeasure(this.layout.actual,g==null?void 0:g.actual)}},s.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=r(this.instance))},s.prototype.resetTransform=function(){var c;if(o){var f=this.isLayoutDirty||this.shouldResetTransform,p=this.projectionDelta&&!uE(this.projectionDelta),y=(c=this.options.visualElement)===null||c===void 0?void 0:c.getProps().transformTemplate,g=y==null?void 0:y(this.latestValues,""),T=g!==this.prevTransformTemplateValue;f&&(p||lu(this.latestValues)||T)&&(o(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}},s.prototype.measure=function(){var c=this.options.visualElement;if(!c)return Li();var f=c.measureViewportBox(),p=this.root.scroll;return p&&(cu(f.x,p.x),cu(f.y,p.y)),f},s.prototype.removeElementScroll=function(c){var f=Li();ts(f,c);for(var p=0;p<this.path.length;p++){var y=this.path[p],g=y.scroll,T=y.options,C=y.isScrollRoot;if(y!==this.root&&g&&T.layoutScroll){if(C){ts(f,c);var P=this.root.scroll;P&&(cu(f.x,-P.x),cu(f.y,-P.y))}cu(f.x,g.x),cu(f.y,g.y)}}return f},s.prototype.applyTransform=function(c,f){f===void 0&&(f=!1);var p=Li();ts(p,c);for(var y=0;y<this.path.length;y++){var g=this.path[y];!f&&g.options.layoutScroll&&g.scroll&&g!==g.root&&pf(p,{x:-g.scroll.x,y:-g.scroll.y}),lu(g.latestValues)&&pf(p,g.latestValues)}return lu(this.latestValues)&&pf(p,this.latestValues),p},s.prototype.removeTransform=function(c){var f,p=Li();ts(p,c);for(var y=0;y<this.path.length;y++){var g=this.path[y];if(g.instance&&lu(g.latestValues)){JC(g.latestValues)&&g.updateSnapshot();var T=Li(),C=g.measure();ts(T,C),sx(p,g.latestValues,(f=g.snapshot)===null||f===void 0?void 0:f.layout,T)}}return lu(this.latestValues)&&sx(p,this.latestValues),p},s.prototype.setTargetDelta=function(c){this.targetDelta=c,this.root.scheduleUpdateProjection()},s.prototype.setOptions=function(c){var f;this.options=nt(nt(nt({},this.options),c),{crossfade:(f=c.crossfade)!==null&&f!==void 0?f:!0})},s.prototype.clearMeasurements=function(){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},s.prototype.resolveTargetDelta=function(){var c,f=this.options,p=f.layout,y=f.layoutId;!this.layout||!(p||y)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=Li(),this.relativeTargetOrigin=Li(),hd(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),ts(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Li(),this.targetWithTransforms=Li()),this.relativeTarget&&this.relativeTargetOrigin&&(!((c=this.relativeParent)===null||c===void 0)&&c.target)?gB(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.actual):ts(this.target,this.layout.actual),QC(this.target,this.targetDelta)):ts(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&!!this.relativeParent.resumingFrom==!!this.resumingFrom&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=Li(),this.relativeTargetOrigin=Li(),hd(this.relativeTargetOrigin,this.target,this.relativeParent.target),ts(this.relativeTarget,this.relativeTargetOrigin)))))},s.prototype.getClosestProjectingParent=function(){if(!(!this.parent||lu(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},s.prototype.calcProjection=function(){var c,f=this.options,p=f.layout,y=f.layoutId;if(this.isTreeAnimating=!!(!((c=this.parent)===null||c===void 0)&&c.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!(!this.layout||!(p||y))){var g=this.getLead();ts(this.layoutCorrected,this.layout.actual),CB(this.layoutCorrected,this.treeScale,this.path,!!this.resumingFrom||this!==g);var T=g.target;if(T){this.projectionDelta||(this.projectionDelta=pd(),this.projectionDeltaWithTransform=pd());var C=this.treeScale.x,P=this.treeScale.y,I=this.projectionTransform;dd(this.projectionDelta,this.layoutCorrected,T,this.latestValues),this.projectionTransform=ux(this.projectionDelta,this.treeScale),(this.projectionTransform!==I||this.treeScale.x!==C||this.treeScale.y!==P)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",T))}}},s.prototype.hide=function(){this.isVisible=!1},s.prototype.show=function(){this.isVisible=!0},s.prototype.scheduleRender=function(c){var f,p,y;c===void 0&&(c=!0),(p=(f=this.options).scheduleRender)===null||p===void 0||p.call(f),c&&((y=this.getStack())===null||y===void 0||y.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},s.prototype.setAnimationOrigin=function(c,f){var p=this,y;f===void 0&&(f=!1);var g=this.snapshot,T=(g==null?void 0:g.latestValues)||{},C=nt({},this.latestValues),P=pd();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!f;var I=Li(),M=g==null?void 0:g.isShared,R=(((y=this.getStack())===null||y===void 0?void 0:y.members.length)||0)<=1,V=!!(M&&!R&&this.options.crossfade===!0&&!this.path.some(k$));this.animationProgress=0,this.mixTargetDelta=function(U){var Q,K=U/1e3;dx(P.x,c.x,K),dx(P.y,c.y,K),p.setTargetDelta(P),p.relativeTarget&&p.relativeTargetOrigin&&p.layout&&(!((Q=p.relativeParent)===null||Q===void 0)&&Q.layout)&&(hd(I,p.layout.actual,p.relativeParent.layout.actual),E$(p.relativeTarget,p.relativeTargetOrigin,I,K)),M&&(p.animationValues=C,a$(C,T,p.latestValues,K,V,R)),p.root.scheduleUpdateProjection(),p.scheduleRender(),p.animationProgress=K},this.mixTargetDelta(0)},s.prototype.startAnimation=function(c){var f=this,p,y;this.notifyListeners("animationStart"),(p=this.currentAnimation)===null||p===void 0||p.stop(),this.resumingFrom&&((y=this.resumingFrom.currentAnimation)===null||y===void 0||y.stop()),this.pendingAnimation&&(Cf.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=js.update(function(){ld.hasAnimatedSinceResize=!0,f.currentAnimation=i$(0,cx,nt(nt({},c),{onUpdate:function(g){var T;f.mixTargetDelta(g),(T=c.onUpdate)===null||T===void 0||T.call(c,g)},onComplete:function(){var g;(g=c.onComplete)===null||g===void 0||g.call(c),f.completeAnimation()}})),f.resumingFrom&&(f.resumingFrom.currentAnimation=f.currentAnimation),f.pendingAnimation=void 0})},s.prototype.completeAnimation=function(){var c;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(c=this.getStack())===null||c===void 0||c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},s.prototype.finishAnimation=function(){var c;this.currentAnimation&&((c=this.mixTargetDelta)===null||c===void 0||c.call(this,cx),this.currentAnimation.stop()),this.completeAnimation()},s.prototype.applyTransformsToTarget=function(){var c=this.getLead(),f=c.targetWithTransforms,p=c.target,y=c.layout,g=c.latestValues;!f||!p||!y||(ts(f,p),pf(f,g),dd(this.projectionDeltaWithTransform,this.layoutCorrected,f,g))},s.prototype.registerSharedNode=function(c,f){var p,y,g;this.sharedNodes.has(c)||this.sharedNodes.set(c,new d$);var T=this.sharedNodes.get(c);T.add(f),f.promote({transition:(p=f.options.initialPromotionConfig)===null||p===void 0?void 0:p.transition,preserveFollowOpacity:(g=(y=f.options.initialPromotionConfig)===null||y===void 0?void 0:y.shouldPreserveFollowOpacity)===null||g===void 0?void 0:g.call(y,f)})},s.prototype.isLead=function(){var c=this.getStack();return c?c.lead===this:!0},s.prototype.getLead=function(){var c,f=this.options.layoutId;return f?((c=this.getStack())===null||c===void 0?void 0:c.lead)||this:this},s.prototype.getPrevLead=function(){var c,f=this.options.layoutId;return f?(c=this.getStack())===null||c===void 0?void 0:c.prevLead:void 0},s.prototype.getStack=function(){var c=this.options.layoutId;if(c)return this.root.sharedNodes.get(c)},s.prototype.promote=function(c){var f=c===void 0?{}:c,p=f.needsReset,y=f.transition,g=f.preserveFollowOpacity,T=this.getStack();T&&T.promote(this,g),p&&(this.projectionDelta=void 0,this.needsReset=!0),y&&this.setOptions({transition:y})},s.prototype.relegate=function(){var c=this.getStack();return c?c.relegate(this):!1},s.prototype.resetRotation=function(){var c=this.options.visualElement;if(c){for(var f=!1,p={},y=0;y<Uv.length;y++){var g=Uv[y],T="rotate"+g;c.getStaticValue(T)&&(f=!0,p[T]=c.getStaticValue(T),c.setStaticValue(T,0))}if(f){c==null||c.syncRender();for(var T in p)c.setStaticValue(T,p[T]);c.scheduleRender()}}},s.prototype.getProjectionStyles=function(c){var f,p,y,g,T,C;c===void 0&&(c={});var P={};if(!this.instance||this.isSVG)return P;if(this.isVisible)P.visibility="";else return{visibility:"hidden"};var I=(f=this.options.visualElement)===null||f===void 0?void 0:f.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,P.opacity="",P.pointerEvents=$h(c.pointerEvents)||"",P.transform=I?I(this.latestValues,""):"none",P;var M=this.getLead();if(!this.projectionDelta||!this.layout||!M.target){var R={};return this.options.layoutId&&(R.opacity=(p=this.latestValues.opacity)!==null&&p!==void 0?p:1,R.pointerEvents=$h(c.pointerEvents)||""),this.hasProjected&&!lu(this.latestValues)&&(R.transform=I?I({},""):"none",this.hasProjected=!1),R}var V=M.animationValues||M.latestValues;this.applyTransformsToTarget(),P.transform=ux(this.projectionDeltaWithTransform,this.treeScale,V),I&&(P.transform=I(V,P.transform));var U=this.projectionDelta,Q=U.x,K=U.y;P.transformOrigin="".concat(Q.origin*100,"% ").concat(K.origin*100,"% 0"),M.animationValues?P.opacity=M===this?(g=(y=V.opacity)!==null&&y!==void 0?y:this.latestValues.opacity)!==null&&g!==void 0?g:1:this.preserveOpacity?this.latestValues.opacity:V.opacityExit:P.opacity=M===this?(T=V.opacity)!==null&&T!==void 0?T:"":(C=V.opacityExit)!==null&&C!==void 0?C:0;for(var ue in np)if(V[ue]!==void 0){var S=np[ue],he=S.correct,ae=S.applyTo,Ge=he(V[ue],M);if(ae)for(var Re=ae.length,Me=0;Me<Re;Me++)P[ae[Me]]=Ge;else P[ue]=Ge}return this.options.layoutId&&(P.pointerEvents=M===this?$h(c.pointerEvents)||"":"none"),P},s.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},s.prototype.resetTree=function(){this.root.nodes.forEach(function(c){var f;return(f=c.currentAnimation)===null||f===void 0?void 0:f.stop()}),this.root.nodes.forEach(fx),this.root.sharedNodes.clear()},s}()}function v$(e){e.updateLayout()}function m$(e){var t,n,r,i,o=(n=(t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)!==null&&n!==void 0?n:e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){var s=e.layout,c=s.actual,f=s.measured;e.options.animationType==="size"?Ls(function(V){var U=o.isShared?o.measured[V]:o.layout[V],Q=Ol(U);U.min=c[V].min,U.max=U.min+Q}):e.options.animationType==="position"&&Ls(function(V){var U=o.isShared?o.measured[V]:o.layout[V],Q=Ol(c[V]);U.max=U.min+Q});var p=pd();dd(p,c,o.layout);var y=pd();o.isShared?dd(y,e.applyTransform(f,!0),o.measured):dd(y,c,o.layout);var g=!uE(p),T=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var C=e.relativeParent,P=C.snapshot,I=C.layout;if(P&&I){var M=Li();hd(M,o.layout,P.layout);var R=Li();hd(R,c,I.actual),cE(M,R)||(T=!0)}}e.notifyListeners("didUpdate",{layout:c,snapshot:o,delta:y,layoutDelta:p,hasLayoutChanged:g,hasRelativeTargetChanged:T})}else e.isLead()&&((i=(r=e.options).onExitComplete)===null||i===void 0||i.call(r));e.options.transition=void 0}function y$(e){e.clearSnapshot()}function fx(e){e.clearMeasurements()}function b$(e){var t=e.options.visualElement;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function w$(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function x$(e){e.resolveTargetDelta()}function S$(e){e.calcProjection()}function T$(e){e.resetRotation()}function C$(e){e.removeLeadSnapshot()}function dx(e,t,n){e.translate=or(t.translate,0,n),e.scale=or(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function hx(e,t,n,r){e.min=or(t.min,n.min,r),e.max=or(t.max,n.max,r)}function E$(e,t,n,r){hx(e.x,t.x,n.x,r),hx(e.y,t.y,n.y,r)}function k$(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var O$={duration:.45,ease:[.4,0,.1,1]};function D$(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(e.path[r].instance){n=e.path[r];break}var i=n&&n!==e.root?n.instance:document,o=i.querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function px(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function gx(e){px(e.x),px(e.y)}var _$=fE({attachResizeListener:function(e,t){return Mp(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Gg={current:void 0},P$=fE({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Gg.current){var e=new _$(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Gg.current=e}return Gg.current},resetTransform:function(e,t){e.style.transform=t??"none"},checkIsScrollRoot:function(e){return window.getComputedStyle(e).position==="fixed"}}),R$=nt(nt(nt(nt({},dB),Pj),AB),r$),I$=CF(function(e,t){return uN(e,t,R$,JB,P$)});function om(e,t,n){var r,i,o,s,c;t==null&&(t=100);function f(){var y=Date.now()-s;y<t&&y>=0?r=setTimeout(f,t-y):(r=null,n||(c=e.apply(o,i),o=i=null))}var p=function(){o=this,i=arguments,s=Date.now();var y=n&&!r;return r||(r=setTimeout(f,t)),y&&(c=e.apply(o,i),o=i=null),c};return p.clear=function(){r&&(clearTimeout(r),r=null)},p.flush=function(){r&&(c=e.apply(o,i),o=i=null,clearTimeout(r),r=null)},p}om.debounce=om;var A$=om;const vx=Eu(A$);function M$(e){let{debounce:t,scroll:n,polyfill:r,offsetSize:i}=e===void 0?{debounce:0,scroll:!1,offsetSize:!1}:e;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[s,c]=q.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),f=q.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:s}),p=t?typeof t=="number"?t:t.scroll:null,y=t?typeof t=="number"?t:t.resize:null,g=q.useRef(!1);q.useEffect(()=>(g.current=!0,()=>void(g.current=!1)));const[T,C,P]=q.useMemo(()=>{const V=()=>{if(!f.current.element)return;const{left:U,top:Q,width:K,height:ue,bottom:S,right:he,x:ae,y:Ge}=f.current.element.getBoundingClientRect(),Re={left:U,top:Q,width:K,height:ue,bottom:S,right:he,x:ae,y:Ge};f.current.element instanceof HTMLElement&&i&&(Re.height=f.current.element.offsetHeight,Re.width=f.current.element.offsetWidth),Object.freeze(Re),g.current&&!j$(f.current.lastBounds,Re)&&c(f.current.lastBounds=Re)};return[V,y?vx(V,y):V,p?vx(V,p):V]},[c,i,p,y]);function I(){f.current.scrollContainers&&(f.current.scrollContainers.forEach(V=>V.removeEventListener("scroll",P,!0)),f.current.scrollContainers=null),f.current.resizeObserver&&(f.current.resizeObserver.disconnect(),f.current.resizeObserver=null)}function M(){f.current.element&&(f.current.resizeObserver=new o(P),f.current.resizeObserver.observe(f.current.element),n&&f.current.scrollContainers&&f.current.scrollContainers.forEach(V=>V.addEventListener("scroll",P,{capture:!0,passive:!0})))}const R=V=>{!V||V===f.current.element||(I(),f.current.element=V,f.current.scrollContainers=dE(V),M())};return F$(P,!!n),L$(C),q.useEffect(()=>{I(),M()},[n,P,C]),q.useEffect(()=>I,[]),[R,s,T]}function L$(e){q.useEffect(()=>{const t=e;return window.addEventListener("resize",t),()=>void window.removeEventListener("resize",t)},[e])}function F$(e,t){q.useEffect(()=>{if(t){const n=e;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[e,t])}function dE(e){const t=[];if(!e||e===document.body)return t;const{overflow:n,overflowX:r,overflowY:i}=window.getComputedStyle(e);return[n,r,i].some(o=>o==="auto"||o==="scroll")&&t.push(e),[...t,...dE(e.parentElement)]}const N$=["x","y","top","bottom","left","right","width","height"],j$=(e,t)=>N$.every(n=>e[n]===t[n]),hE=q.createContext({dragDropManager:void 0});function ba(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var mx=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),yx=function(){return Math.random().toString(36).substring(7).split("").join(".")},bx={INIT:"@@redux/INIT"+yx(),REPLACE:"@@redux/REPLACE"+yx()};function B$(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function $$(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(U$(e))return"date";if(H$(e))return"error";var n=V$(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function V$(e){return typeof e.constructor=="function"?e.constructor.name:null}function H$(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function U$(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function af(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=$$(e)),t}function pE(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?ba(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 t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?ba(1):"Expected the enhancer to be a function. Instead, received: '"+af(n)+"'");return n(pE)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?ba(2):"Expected the root reducer to be a function. Instead, received: '"+af(e)+"'");var i=e,o=t,s=[],c=s,f=!1;function p(){c===s&&(c=s.slice())}function y(){if(f)throw new Error(process.env.NODE_ENV==="production"?ba(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 g(I){if(typeof I!="function")throw new Error(process.env.NODE_ENV==="production"?ba(4):"Expected the listener to be a function. Instead, received: '"+af(I)+"'");if(f)throw new Error(process.env.NODE_ENV==="production"?ba(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 M=!0;return p(),c.push(I),function(){if(M){if(f)throw new Error(process.env.NODE_ENV==="production"?ba(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.");M=!1,p();var V=c.indexOf(I);c.splice(V,1),s=null}}}function T(I){if(!B$(I))throw new Error(process.env.NODE_ENV==="production"?ba(7):"Actions must be plain objects. Instead, the actual type was: '"+af(I)+"'. 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 I.type>"u")throw new Error(process.env.NODE_ENV==="production"?ba(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"?ba(9):"Reducers may not dispatch actions.");try{f=!0,o=i(o,I)}finally{f=!1}for(var M=s=c,R=0;R<M.length;R++){var V=M[R];V()}return I}function C(I){if(typeof I!="function")throw new Error(process.env.NODE_ENV==="production"?ba(10):"Expected the nextReducer to be a function. Instead, received: '"+af(I));i=I,T({type:bx.REPLACE})}function P(){var I,M=g;return I={subscribe:function(V){if(typeof V!="object"||V===null)throw new Error(process.env.NODE_ENV==="production"?ba(11):"Expected the observer to be an object. Instead, received: '"+af(V)+"'");function U(){V.next&&V.next(y())}U();var Q=M(U);return{unsubscribe:Q}}},I[mx]=function(){return this},I}return T({type:bx.INIT}),r={dispatch:T,subscribe:g,getState:y,replaceReducer:C},r[mx]=P,r}function Ut(e,t,...n){if(W$()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let r;if(t===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(t.replace(/%s/g,function(){return n[i++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function W$(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function z$(e,t,n){return t.split(".").reduce((r,i)=>r&&r[i]?r[i]:n||null,e)}function Y$(e,t){return e.filter(n=>n!==t)}function gE(e){return typeof e=="object"}function G$(e,t){const n=new Map,r=o=>{n.set(o,n.has(o)?n.get(o)+1:1)};e.forEach(r),t.forEach(r);const i=[];return n.forEach((o,s)=>{o===1&&i.push(s)}),i}function q$(e,t){return e.filter(n=>t.indexOf(n)>-1)}const vy="dnd-core/INIT_COORDS",jp="dnd-core/BEGIN_DRAG",my="dnd-core/PUBLISH_DRAG_SOURCE",Bp="dnd-core/HOVER",$p="dnd-core/DROP",Vp="dnd-core/END_DRAG";function wx(e,t){return{type:vy,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const X$={type:vy,payload:{clientOffset:null,sourceClientOffset:null}};function K$(e){return function(n=[],r={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:s}=r,c=e.getMonitor(),f=e.getRegistry();e.dispatch(wx(o)),Z$(n,c,f);const p=eV(n,c);if(p==null){e.dispatch(X$);return}let y=null;if(o){if(!s)throw new Error("getSourceClientOffset must be defined");J$(s),y=s(p)}e.dispatch(wx(o,y));const T=f.getSource(p).beginDrag(c,p);if(T==null)return;Q$(T),f.pinSource(p);const C=f.getSourceType(p);return{type:jp,payload:{itemType:C,item:T,sourceId:p,clientOffset:o||null,sourceClientOffset:y||null,isSourcePublic:!!i}}}}function Z$(e,t,n){Ut(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(r){Ut(n.getSource(r),"Expected sourceIds to be registered.")})}function J$(e){Ut(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function Q$(e){Ut(gE(e),"Item must be an object.")}function eV(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function tV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},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){tV(e,i,n[i])})}return e}function rV(e){return function(n={}){const r=e.getMonitor(),i=e.getRegistry();iV(r),sV(r).forEach((s,c)=>{const f=oV(s,c,i,r),p={type:$p,payload:{dropResult:nV({},n,f)}};e.dispatch(p)})}}function iV(e){Ut(e.isDragging(),"Cannot call drop while not dragging."),Ut(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function oV(e,t,n,r){const i=n.getTarget(e);let o=i?i.drop(r,e):void 0;return aV(o),typeof o>"u"&&(o=t===0?{}:r.getDropResult()),o}function aV(e){Ut(typeof e>"u"||gE(e),"Drop result must either be an object or undefined.")}function sV(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function lV(e){return function(){const n=e.getMonitor(),r=e.getRegistry();uV(n);const i=n.getSourceId();return i!=null&&(r.getSource(i,!0).endDrag(n,i),r.unpinSource()),{type:Vp}}}function uV(e){Ut(e.isDragging(),"Cannot call endDrag while not dragging.")}function am(e,t){return t===null?e===null:Array.isArray(e)?e.some(n=>n===t):e===t}function cV(e){return function(n,{clientOffset:r}={}){fV(n);const i=n.slice(0),o=e.getMonitor(),s=e.getRegistry(),c=o.getItemType();return hV(i,s,c),dV(i,o,s),pV(i,o,s),{type:Bp,payload:{targetIds:i,clientOffset:r||null}}}}function fV(e){Ut(Array.isArray(e),"Expected targetIds to be an array.")}function dV(e,t,n){Ut(t.isDragging(),"Cannot call hover while not dragging."),Ut(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r<e.length;r++){const i=e[r];Ut(e.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 hV(e,t,n){for(let r=e.length-1;r>=0;r--){const i=e[r],o=t.getTargetType(i);am(o,n)||e.splice(r,1)}}function pV(e,t,n){e.forEach(function(r){n.getTarget(r).hover(t,r)})}function gV(e){return function(){if(e.getMonitor().isDragging())return{type:my}}}function vV(e){return{beginDrag:K$(e),publishDragSource:gV(e),hover:cV(e),drop:rV(e),endDrag:lV(e)}}class mV{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:n}=this.store;function r(o){return(...s)=>{const c=o.apply(t,s);typeof c<"u"&&n(c)}}const i=vV(this);return Object.keys(i).reduce((o,s)=>{const c=i[s];return o[s]=r(c),o},{})}dispatch(t){this.store.dispatch(t)}constructor(t,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=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}}function yV(e,t){return{x:e.x+t.x,y:e.y+t.y}}function vE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function bV(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:vE(yV(t,r),n)}function wV(e){const{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:vE(t,n)}const gd=[],yy=[];gd.__IS_NONE__=!0;yy.__IS_ALL__=!0;function xV(e,t){return e===gd?!1:e===yy||typeof t>"u"?!0:q$(t,e).length>0}class SV{subscribeToStateChange(t,n={}){const{handlerIds:r}=n;Ut(typeof t=="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 s=this.store.getState(),c=s.stateId;try{c===i||c===i+1&&!xV(s.dirtyHandlerIds,r)||t()}finally{i=c}};return this.store.subscribe(o)}subscribeToOffsetChange(t){Ut(typeof t=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const i=this.store.getState().dragOffset;i!==n&&(n=i,t())};return this.store.subscribe(r)}canDragSource(t){if(!t)return!1;const n=this.registry.getSource(t);return Ut(n,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:n.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const n=this.registry.getTarget(t);if(Ut(n,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(t),i=this.getItemType();return am(r,i)&&n.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const n=this.registry.getSource(t,!0);if(Ut(n,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(t),i=this.getItemType();return r!==i?!1:n.isDragging(this,t)}isOverTarget(t,n={shallow:!1}){if(!t)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const i=this.registry.getTargetType(t),o=this.getItemType();if(o&&!am(i,o))return!1;const s=this.getTargetIds();if(!s.length)return!1;const c=s.indexOf(t);return r?c===s.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 bV(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return wV(this.store.getState().dragOffset)}constructor(t,n){this.store=t,this.registry=n}}const xx=typeof global<"u"?global:self,mE=xx.MutationObserver||xx.WebKitMutationObserver;function yE(e){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),e()}}}function TV(e){let t=1;const n=new mE(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}const CV=typeof mE=="function"?TV:yE;class EV{enqueueTask(t){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const n=this.index;if(this.index++,t[n].call(),this.index>this.capacity){for(let r=0,i=t.length-this.index;r<i;r++)t[r]=t[r+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=CV(this.flush),this.requestErrorThrow=yE(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class kV{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,n){this.onError=t,this.release=n,this.task=null}}class OV{create(t){const n=this.freeTasks,r=n.length?n.pop():new kV(this.onError,i=>n[n.length]=i);return r.task=t,r}constructor(t){this.onError=t,this.freeTasks=[]}}const bE=new EV,DV=new OV(bE.registerPendingError);function _V(e){bE.enqueueTask(DV.create(e))}const by="dnd-core/ADD_SOURCE",wy="dnd-core/ADD_TARGET",xy="dnd-core/REMOVE_SOURCE",Hp="dnd-core/REMOVE_TARGET";function PV(e){return{type:by,payload:{sourceId:e}}}function RV(e){return{type:wy,payload:{targetId:e}}}function IV(e){return{type:xy,payload:{sourceId:e}}}function AV(e){return{type:Hp,payload:{targetId:e}}}function MV(e){Ut(typeof e.canDrag=="function","Expected canDrag to be a function."),Ut(typeof e.beginDrag=="function","Expected beginDrag to be a function."),Ut(typeof e.endDrag=="function","Expected endDrag to be a function.")}function LV(e){Ut(typeof e.canDrop=="function","Expected canDrop to be a function."),Ut(typeof e.hover=="function","Expected hover to be a function."),Ut(typeof e.drop=="function","Expected beginDrag to be a function.")}function sm(e,t){if(t&&Array.isArray(e)){e.forEach(n=>sm(n,!1));return}Ut(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var Ca;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(Ca||(Ca={}));let FV=0;function NV(){return FV++}function jV(e){const t=NV().toString();switch(e){case Ca.SOURCE:return`S${t}`;case Ca.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function Sx(e){switch(e[0]){case"S":return Ca.SOURCE;case"T":return Ca.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function Tx(e,t){const n=e.entries();let r=!1;do{const{done:i,value:[,o]}=n.next();if(o===t)return!0;r=!!i}while(!r);return!1}class BV{addSource(t,n){sm(t),MV(n);const r=this.addHandler(Ca.SOURCE,t,n);return this.store.dispatch(PV(r)),r}addTarget(t,n){sm(t,!0),LV(n);const r=this.addHandler(Ca.TARGET,t,n);return this.store.dispatch(RV(r)),r}containsHandler(t){return Tx(this.dragSources,t)||Tx(this.dropTargets,t)}getSource(t,n=!1){return Ut(this.isSourceId(t),"Expected a valid source ID."),n&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return Ut(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return Ut(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return Ut(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return Sx(t)===Ca.SOURCE}isTargetId(t){return Sx(t)===Ca.TARGET}removeSource(t){Ut(this.getSource(t),"Expected an existing source."),this.store.dispatch(IV(t)),_V(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){Ut(this.getTarget(t),"Expected an existing target."),this.store.dispatch(AV(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const n=this.getSource(t);Ut(n,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=n}unpinSource(){Ut(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,n,r){const i=jV(t);return this.types.set(i,n),t===Ca.SOURCE?this.dragSources.set(i,r):t===Ca.TARGET&&this.dropTargets.set(i,r),i}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const $V=(e,t)=>e===t;function VV(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function HV(e,t,n=$V){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}function UV(e=gd,t){switch(t.type){case Bp:break;case by:case wy:case Hp:case xy:return gd;case jp:case my:case Vp:case $p:default:return yy}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=G$(n,r);if(!(i.length>0||!HV(n,r)))return gd;const s=r[r.length-1],c=n[n.length-1];return s!==c&&(s&&i.push(s),c&&i.push(c)),i}function WV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},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){WV(e,i,n[i])})}return e}const Cx={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function YV(e=Cx,t){const{payload:n}=t;switch(t.type){case vy:case jp:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Bp:return VV(e.clientOffset,n.clientOffset)?e:zV({},e,{clientOffset:n.clientOffset});case Vp:case $p:return Cx;default:return e}}function GV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},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){GV(e,i,n[i])})}return e}const qV={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function XV(e=qV,t){const{payload:n}=t;switch(t.type){case jp:return sf({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case my:return sf({},e,{isSourcePublic:!0});case Bp:return sf({},e,{targetIds:n.targetIds});case Hp:return e.targetIds.indexOf(n.targetId)===-1?e:sf({},e,{targetIds:Y$(e.targetIds,n.targetId)});case $p:return sf({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Vp:return sf({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function KV(e=0,t){switch(t.type){case by:case wy:return e+1;case xy:case Hp:return e-1;default:return e}}function ZV(e=0){return e+1}function JV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},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(e,i,n[i])})}return e}function e3(e={},t){return{dirtyHandlerIds:UV(e.dirtyHandlerIds,{type:t.type,payload:QV({},t.payload,{prevTargetIds:z$(e,"dragOperation.targetIds",[])})}),dragOffset:YV(e.dragOffset,t),refCount:KV(e.refCount,t),dragOperation:XV(e.dragOperation,t),stateId:ZV(e.stateId)}}function t3(e,t=void 0,n={},r=!1){const i=n3(r),o=new SV(i,new BV(i)),s=new mV(i,o),c=e(s,t,n);return s.receiveBackend(c),s}function n3(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return pE(e3,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function r3(e,t){if(e==null)return{};var n=i3(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function i3(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}let Ex=0;const Uh=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var wE=q.memo(function(t){var{children:n}=t,r=r3(t,["children"]);const[i,o]=o3(r);return q.useEffect(()=>{if(o){const s=xE();return++Ex,()=>{--Ex===0&&(s[Uh]=null)}}},[]),je.jsx(hE.Provider,{value:i,children:n})});function o3(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=a3(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}function a3(e,t=xE(),n,r){const i=t;return i[Uh]||(i[Uh]={dragDropManager:t3(e,t,n,r)}),i[Uh]}function xE(){return typeof global<"u"?global:window}var s3=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(o=Object.keys(t),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 s=o[i];if(!e(t[s],n[s]))return!1}return!0}return t!==t&&n!==n};const l3=Eu(s3),Sc=typeof window<"u"?q.useLayoutEffect:q.useEffect;function SE(e,t,n){const[r,i]=q.useState(()=>t(e)),o=q.useCallback(()=>{const s=t(e);l3(r,s)||(i(s),n&&n())},[r,e,n]);return Sc(o),[r,o]}function u3(e,t,n){const[r,i]=SE(e,t,n);return Sc(function(){const s=e.getHandlerId();if(s!=null)return e.subscribeToStateChange(i,{handlerIds:[s]})},[e,i]),r}function TE(e,t,n){return u3(t,e||(()=>({})),()=>n.reconnect())}function CE(e,t){const n=[];return typeof e!="function"&&n.push(e),q.useMemo(()=>typeof e=="function"?e():e,n)}function c3(e){return q.useMemo(()=>e.hooks.dragSource(),[e])}function f3(e){return q.useMemo(()=>e.hooks.dragPreview(),[e])}let qg=!1,Xg=!1;class d3{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){Ut(!qg,"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 qg=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{qg=!1}}isDragging(){if(!this.sourceId)return!1;Ut(!Xg,"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 Xg=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Xg=!1}}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,n){return this.internalMonitor.isOverTarget(t,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}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(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let Kg=!1;class h3{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}canDrop(){if(!this.targetId)return!1;Ut(!Kg,"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 Kg=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Kg=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!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(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function p3(e,t,n){const r=n.getRegistry(),i=r.addTarget(e,t);return[i,()=>r.removeTarget(i)]}function g3(e,t,n){const r=n.getRegistry(),i=r.addSource(e,t);return[i,()=>r.removeSource(i)]}function lm(e,t,n,r){let i;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;const c=Object.prototype.hasOwnProperty.bind(t);for(let f=0;f<o.length;f++){const p=o[f];if(!c(p))return!1;const y=e[p],g=t[p];if(i=void 0,i===!1||i===void 0&&y!==g)return!1}return!0}function um(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function v3(e){if(typeof e.type=="string")return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function m3(e){return(t=null,n=null)=>{if(!q.isValidElement(t)){const o=t;return e(o,n),o}const r=t;return v3(r),y3(r,n?o=>e(o,n):e)}}function EE(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const i=m3(r);t[n]=()=>i}}),t}function kx(e,t){typeof e=="function"?e(t):e.current=t}function y3(e,t){const n=e.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?q.cloneElement(e,{ref:r=>{kx(n,r),kx(t,r)}}):q.cloneElement(e,{ref:t})}class b3{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?t?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),n):(this.lastConnectedDragSource=t,n):n}reconnectDragPreview(t=!1){const n=this.dragPreview,r=t||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!lm(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!lm(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(t){this.hooks=EE({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,um(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,um(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=t}}class w3{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!lm(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(t){this.hooks=EE({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,um(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=t}}function Pl(){const{dragDropManager:e}=q.useContext(hE);return Ut(e!=null,"Expected drag drop context"),e}function x3(e,t){const n=Pl(),r=q.useMemo(()=>new b3(n.getBackend()),[n]);return Sc(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),Sc(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function S3(){const e=Pl();return q.useMemo(()=>new d3(e),[e])}class T3{beginDrag(){const t=this.spec,n=this.monitor;let r=null;return typeof t.item=="object"?r=t.item:typeof t.item=="function"?r=t.item(n):r={},r??null}canDrag(){const t=this.spec,n=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(n):!0}isDragging(t,n){const r=this.spec,i=this.monitor,{isDragging:o}=r;return o?o(i):n===t.getSourceId()}endDrag(){const t=this.spec,n=this.monitor,r=this.connector,{end:i}=t;i&&i(n.getItem(),n),r.reconnect()}constructor(t,n,r){this.spec=t,this.monitor=n,this.connector=r}}function C3(e,t,n){const r=q.useMemo(()=>new T3(e,t,n),[t,n]);return q.useEffect(()=>{r.spec=e},[e]),r}function E3(e){return q.useMemo(()=>{const t=e.type;return Ut(t!=null,"spec.type must be defined"),t},[e])}function k3(e,t,n){const r=Pl(),i=C3(e,t,n),o=E3(e);Sc(function(){if(o!=null){const[c,f]=g3(o,i,r);return t.receiveHandlerId(c),n.receiveHandlerId(c),f}},[r,t,n,i,o])}function O3(e,t){const n=CE(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=S3(),i=x3(n.options,n.previewOptions);return k3(n,r,i),[TE(n.collect,r,i),c3(i),f3(i)]}function D3(e){const n=Pl().getMonitor(),[r,i]=SE(n,e);return q.useEffect(()=>n.subscribeToOffsetChange(i)),q.useEffect(()=>n.subscribeToStateChange(i)),r}function _3(e){return q.useMemo(()=>e.hooks.dropTarget(),[e])}function P3(e){const t=Pl(),n=q.useMemo(()=>new w3(t.getBackend()),[t]);return Sc(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function R3(){const e=Pl();return q.useMemo(()=>new h3(e),[e])}function I3(e){const{accept:t}=e;return q.useMemo(()=>(Ut(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class A3{canDrop(){const t=this.spec,n=this.monitor;return t.canDrop?t.canDrop(n.getItem(),n):!0}hover(){const t=this.spec,n=this.monitor;t.hover&&t.hover(n.getItem(),n)}drop(){const t=this.spec,n=this.monitor;if(t.drop)return t.drop(n.getItem(),n)}constructor(t,n){this.spec=t,this.monitor=n}}function M3(e,t){const n=q.useMemo(()=>new A3(e,t),[t]);return q.useEffect(()=>{n.spec=e},[e]),n}function L3(e,t,n){const r=Pl(),i=M3(e,t),o=I3(e);Sc(function(){const[c,f]=p3(o,i,r);return t.receiveHandlerId(c),n.receiveHandlerId(c),f},[r,t,i,n,o.map(s=>s.toString()).join("|")])}function kE(e,t){const n=CE(e),r=R3(),i=P3(n.options);return L3(n,r,i),[TE(n.collect,r,i),_3(i)]}function Zg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F3(e,t,n){N3(e,t),t.set(e,n)}function N3(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Eh(e,t){var n=OE(e,t,"get");return j3(e,n)}function j3(e,t){return t.get?t.get.call(e):t.value}function B3(e,t,n){var r=OE(e,t,"set");return $3(e,r,n),n}function OE(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function $3(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}var lf=new WeakMap;class V3{constructor(){F3(this,lf,{writable:!0,value:void 0}),Zg(this,"register",t=>{Eh(this,lf).push(t)}),Zg(this,"unregister",t=>{let n;for(;(n=Eh(this,lf).indexOf(t))!==-1;)Eh(this,lf).splice(n,1)}),Zg(this,"backendChanged",t=>{for(const n of Eh(this,lf))n.backendChanged(t)}),B3(this,lf,[])}}function ns(e,t,n){H3(e,t),t.set(e,n)}function H3(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ms(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yt(e,t){var n=DE(e,t,"get");return U3(e,n)}function U3(e,t){return t.get?t.get.call(e):t.value}function uf(e,t,n){var r=DE(e,t,"set");return W3(e,r,n),n}function DE(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function W3(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}var wa=new WeakMap,kh=new WeakMap,xa=new WeakMap,au=new WeakMap,lc=new WeakMap,Ox=new WeakMap,Dx=new WeakMap,_x=new WeakMap,Jg=new WeakMap,Qg=new WeakMap,Oh=new WeakMap;class Sf{constructor(t,n,r){if(ns(this,wa,{writable:!0,value:void 0}),ns(this,kh,{writable:!0,value:void 0}),ns(this,xa,{writable:!0,value:void 0}),ns(this,au,{writable:!0,value:void 0}),ns(this,lc,{writable:!0,value:void 0}),ns(this,Ox,{writable:!0,value:(i,o,s)=>{var c,f;if(!s.backend)throw new Error("You must specify a 'backend' property in your Backend entry: ".concat(JSON.stringify(s)));const p=s.backend(i,o,s.options);let y=s.id;const g=!s.id&&p&&p.constructor;if(g&&(y=p.constructor.name),y)g&&console.warn(`Deprecation notice: You are using a pipeline which doesn't include backends' 'id'.
|
|
5
|
+
This might be unsupported in the future, please specify 'id' explicitely for every backend.`);else throw new Error("You must specify an 'id' property in your Backend entry: ".concat(JSON.stringify(s),`
|
|
6
|
+
see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`));if(Yt(this,xa)[y])throw new Error(`You must specify a unique 'id' property in your Backend entry:
|
|
7
|
+
`.concat(JSON.stringify(s)," (conflicts with: ").concat(JSON.stringify(Yt(this,xa)[y]),")"));return{id:y,instance:p,preview:(c=s.preview)!==null&&c!==void 0?c:!1,transition:s.transition,skipDispatchOnTransition:(f=s.skipDispatchOnTransition)!==null&&f!==void 0?f:!1}}}),Ms(this,"setup",()=>{if(!(typeof window>"u")){if(Sf.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");Sf.isSetUp=!0,Yt(this,Dx).call(this,window),Yt(this,xa)[Yt(this,wa)].instance.setup()}}),Ms(this,"teardown",()=>{typeof window>"u"||(Sf.isSetUp=!1,Yt(this,_x).call(this,window),Yt(this,xa)[Yt(this,wa)].instance.teardown())}),Ms(this,"connectDragSource",(i,o,s)=>Yt(this,Oh).call(this,"connectDragSource",i,o,s)),Ms(this,"connectDragPreview",(i,o,s)=>Yt(this,Oh).call(this,"connectDragPreview",i,o,s)),Ms(this,"connectDropTarget",(i,o,s)=>Yt(this,Oh).call(this,"connectDropTarget",i,o,s)),Ms(this,"profile",()=>Yt(this,xa)[Yt(this,wa)].instance.profile()),Ms(this,"previewEnabled",()=>Yt(this,xa)[Yt(this,wa)].preview),Ms(this,"previewsList",()=>Yt(this,kh)),Ms(this,"backendsList",()=>Yt(this,au)),ns(this,Dx,{writable:!0,value:i=>{Yt(this,au).forEach(o=>{o.transition&&i.addEventListener(o.transition.event,Yt(this,Jg))})}}),ns(this,_x,{writable:!0,value:i=>{Yt(this,au).forEach(o=>{o.transition&&i.removeEventListener(o.transition.event,Yt(this,Jg))})}}),ns(this,Jg,{writable:!0,value:i=>{const o=Yt(this,wa);if(Yt(this,au).some(c=>c.id!==Yt(this,wa)&&c.transition&&c.transition.check(i)?(uf(this,wa,c.id),!0):!1),Yt(this,wa)!==o){var s;Yt(this,xa)[o].instance.teardown(),Object.keys(Yt(this,lc)).forEach(y=>{const g=Yt(this,lc)[y];g.unsubscribe(),g.unsubscribe=Yt(this,Qg).call(this,g.func,...g.args)}),Yt(this,kh).backendChanged(this);const c=Yt(this,xa)[Yt(this,wa)];if(c.instance.setup(),c.skipDispatchOnTransition)return;const f=i.constructor,p=new f(i.type,i);(s=i.target)===null||s===void 0||s.dispatchEvent(p)}}}),ns(this,Qg,{writable:!0,value:(i,o,s,c)=>Yt(this,xa)[Yt(this,wa)].instance[i](o,s,c)}),ns(this,Oh,{writable:!0,value:(i,o,s,c)=>{const f="".concat(i,"_").concat(o),p=Yt(this,Qg).call(this,i,o,s,c);return Yt(this,lc)[f]={func:i,args:[o,s,c],unsubscribe:p},()=>{Yt(this,lc)[f].unsubscribe(),delete Yt(this,lc)[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`);uf(this,kh,new V3),uf(this,xa,{}),uf(this,au,[]),r.backends.forEach(i=>{const o=Yt(this,Ox).call(this,t,n,i);Yt(this,xa)[o.id]=o,Yt(this,au).push(o)}),uf(this,wa,Yt(this,au)[0].id),uf(this,lc,{})}}Ms(Sf,"isSetUp",!1);const _E=(e,t,n)=>new Sf(e,t,n),PE=(e,t)=>({event:e,check:t}),z3=PE("touchstart",e=>{const t=e;return t.touches!==null&&t.touches!==void 0}),Y3=PE("pointerdown",e=>e.pointerType=="mouse");var gu;(function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"})(gu||(gu={}));class G3{get delay(){var t;return(t=this.args.delay)!==null&&t!==void 0?t:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var t;return(t=this.args.ignoreContextMenu)!==null&&t!==void 0?t:!1}get enableHoverOutsideTarget(){var t;return(t=this.args.enableHoverOutsideTarget)!==null&&t!==void 0?t:!1}get enableKeyboardEvents(){var t;return(t=this.args.enableKeyboardEvents)!==null&&t!==void 0?t:!1}get enableMouseEvents(){var t;return(t=this.args.enableMouseEvents)!==null&&t!==void 0?t:!1}get enableTouchEvents(){var t;return(t=this.args.enableTouchEvents)!==null&&t!==void 0?t:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var t,n,r,i;return(i=(r=(t=this.args)===null||t===void 0?void 0:t.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 t,n,r,i;return(i=(r=(t=this.args)===null||t===void 0?void 0:t.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 t;if(!((t=this.context)===null||t===void 0)&&t.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var t;return((t=this.args)===null||t===void 0?void 0:t.rootElement)||this.document}constructor(t,n){this.args=t,this.context=n}}function q3(e,t,n,r){return Math.sqrt(Math.pow(Math.abs(n-e),2)+Math.pow(Math.abs(r-t),2))}function X3(e,t,n,r,i){if(!i)return!1;const o=Math.atan2(r-t,n-e)*180/Math.PI+180;for(let s=0;s<i.length;++s){const c=i[s];if(c&&(c.start==null||o>=c.start)&&(c.end==null||o<=c.end))return!0}return!1}const K3={Left:1},Z3={Left:0};function ev(e){return e.button===void 0||e.button===Z3.Left}function J3(e){return e.buttons===void 0||(e.buttons&K3.Left)===0}function RE(e){return!!e.targetTouches}const Q3=1;function eH(e){const t=e.nodeType===Q3?e:e.parentElement;if(!t)return;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function tH(e,t){if(e.targetTouches.length===1)return fp(e.targetTouches[0]);if(t&&e.touches.length===1&&e.touches[0].target===t.target)return fp(e.touches[0])}function fp(e,t){return RE(e)?tH(e,t):{x:e.clientX,y:e.clientY}}const Px=(()=>{let e=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return e=!0,!0}}))}catch{}return e})(),td={[gu.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[gu.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[gu.keyboard]:{keydown:"keydown"}};class vd{profile(){var t;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((t=this.dragOverTargetIds)===null||t===void 0?void 0:t.length)||0}}get document(){return this.options.document}setup(){const t=this.options.rootElement;t&&(Ut(!vd.isSetUp,"Cannot have two Touch backends at the same time."),vd.isSetUp=!0,this.addEventListener(t,"start",this.getTopMoveStartHandler()),this.addEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(t,"move",this.handleTopMove),this.addEventListener(t,"move",this.handleTopMoveCapture,!0),this.addEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(t,"keydown",this.handleCancelOnEscape,!0))}teardown(){const t=this.options.rootElement;t&&(vd.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(t,"start",this.handleTopMoveStart),this.removeEventListener(t,"move",this.handleTopMoveCapture,!0),this.removeEventListener(t,"move",this.handleTopMove),this.removeEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(t,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(t,n,r,i=!1){const o=Px?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(s){const c=td[s][n];c&&t.addEventListener(c,r,o)})}removeEventListener(t,n,r,i=!1){const o=Px?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(s){const c=td[s][n];c&&t.removeEventListener(c,r,o)})}connectDragSource(t,n){const r=this.handleMoveStart.bind(this,t);return this.sourceNodes.set(t,n),this.addEventListener(n,"start",r),()=>{this.sourceNodes.delete(t),this.removeEventListener(n,"start",r)}}connectDragPreview(t,n,r){return this.sourcePreviewNodeOptions.set(t,r),this.sourcePreviewNodes.set(t,n),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDropTarget(t,n){const r=this.options.rootElement;if(!this.document||!r)return()=>{};const i=o=>{if(!this.document||!r||!this.monitor.isDragging())return;let s;switch(o.type){case td.mouse.move:s={x:o.clientX,y:o.clientY};break;case td.touch.move:var c,f;s={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=s!=null?this.document.elementFromPoint(s.x,s.y):void 0,y=p&&n.contains(p);if(p===n||y)return this.handleMove(o,t)};return this.addEventListener(this.document.body,"move",i),this.targetNodes.set(t,n),()=>{this.document&&(this.targetNodes.delete(t),this.removeEventListener(this.document.body,"move",i))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(t){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=t,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{t&&!t.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!t||!t.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(t.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(t,n,r){this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&eH(o)},this.handleTopMoveStartCapture=i=>{ev(i)&&(this.moveStartSourceIds=[])},this.handleMoveStart=i=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(i)},this.handleTopMoveStart=i=>{if(!ev(i))return;const o=fp(i);o&&(RE(i)&&(this.lastTargetTouchFallback=i.targetTouches[0]),this._mouseClientOffset=o),this.waitingForDelay=!1},this.handleTopMoveStartDelay=i=>{if(!ev(i))return;const o=i.type===td.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:s}=this,c=this.options.enableHoverOutsideTarget,f=fp(i,this.lastTargetTouchFallback);if(!f)return;if(this._isScrolling||!this.monitor.isDragging()&&X3(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&&q3(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=(s||[]).map(P=>this.targetNodes.get(P)).filter(P=>!!P),g=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(f.x,f.y,y):this.document.elementsFromPoint(f.x,f.y),T=[];for(const P in g){if(!g.hasOwnProperty(P))continue;let I=g[P];for(I!=null&&T.push(I);I;)I=I.parentElement,I&&T.indexOf(I)===-1&&T.push(I)}const C=T.filter(P=>y.indexOf(P)>-1).map(P=>this._getDropTargetId(P)).filter(P=>!!P).filter((P,I,M)=>M.indexOf(P)===I);if(c)for(const P in this.targetNodes){const I=this.targetNodes.get(P);if(p&&I&&I.contains(p)&&C.indexOf(P)===-1){C.unshift(P);break}}C.reverse(),this.actions.hover(C,{clientOffset:f})},this._getDropTargetId=i=>{const o=this.targetNodes.keys();let s=o.next();for(;s.done===!1;){const c=s.value;if(i===this.targetNodes.get(c))return c;s=o.next()}},this.handleTopMoveEndCapture=i=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!J3(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 G3(r,n),this.actions=t.getActions(),this.monitor=t.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(gu.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(gu.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(gu.keyboard)}}const nH=function(t,n={},r={}){return new vd(t,n,r)};var Da=function(){return Da=Object.assign||function(t){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)&&(t[o]=n[o])}return t},Da.apply(this,arguments)};function ro(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function rH(e){var t=e.isVisible,n=e.ease,r=n===void 0?"easeIn":n,i=e.duration,o=e.variants,s=o===void 0?{open:{opacity:1,height:"auto"},close:{opacity:0,height:0}}:o,c=e.children,f=M$({polyfill:iF}),p=f[0],y=f[1].height,g=q.useState(t),T=g[0],C=g[1],P=q.useState(t),I=P[0],M=P[1],R=q.useState(!1),V=R[0],U=R[1],Q=function(){U(!1),t||C(!1)};return q.useEffect(function(){U(!0),t?C(!0):M(!1)},[t]),q.useEffect(function(){T&&M(!0)},[y]),q.createElement(I$.div,{style:V?{overflow:"hidden"}:void 0,onAnimationComplete:Q,initial:I?"open":"close",animate:I?"open":"close",inherit:!1,variants:s,transition:{ease:r,duration:iH(y,i)}},q.createElement("div",{ref:p},T&&c))}function iH(e,t){if(t)return t;if(!e)return 0;var n=e/36;return Math.round((4+10*Math.pow(n,.25)+n/5)*10)/1500}var oH=function(e,t){return e.text>t.text?1:e.text<t.text?-1:0},nd=function(e,t){return e.find(function(n){return n.id===t})},IE=function(e,t,n){if(n===0)return!1;var r=e.find(function(i){return i.id===n});return r===void 0?!1:r.parent===t?!0:IE(e,t,r.parent)},Sy=function(e){return e.id!==void 0&&e.parent!==void 0&&e.text!==void 0},xu=function(e,t,n){var r=n.tree,i=n.rootId,o=n.canDrop;if(e===null){if(t===i)return!0;var s=r.find(function(y){return y.id===t});return!!(s&&s.droppable)}else{var c=Sy(e)?e.id:null;if(o){var f=o(c,t);if(f!==void 0)return f}if(c===t)return!1;var p=r.find(function(g){return g.id===c}),s=r.find(function(g){return g.id===t});return p===void 0||c===null?t===i||!!(s!=null&&s.droppable):s===void 0?p.parent!==0:p.parent===t||!s.droppable?!1:!IE(r,c,t)}},aH=function(e,t,n){return e.map(function(r){return r.id===t?Da(Da({},r),{parent:n}):r})},AE=function(e,t,n){if(n===0)return 0;var r=e.filter(function(i){return i.parent===t});return r[n]?e.findIndex(function(i){return i.id===r[n].id}):e.findIndex(function(i){return i.id===r[n-1].id})+1},sH=function(e,t){return e.findIndex(function(n){return n.id===t})},ME=function(e,t,n,r){var i=sH(e,t),o=AE(e,n,r);return o=o>i?o-1:o,[i,o]},lH=function(e,t,n){var r=t<0?e.length+t:t;if(r>=0&&r<e.length){var i=n<0?e.length+n:n,o=e.splice(t,1)[0];e.splice(i,0,o)}},uH=function(e,t,n,r){var i=ME(e,t,n,r),o=i[0],s=i[1],c=ro([],e,!0);return lH(c,o,s),c.map(function(f){return f.id===t?Da(Da({},f),{parent:n}):f})},cH=function(e,t){var n=e.getBoundingClientRect(),r=n.top+n.height/2;return t>r?"down":"up"},cm=function(e,t){var n="",r=0;return e.forEach(function(i,o){var s,c=cH(i,((s=t.getClientOffset())===null||s===void 0?void 0:s.y)||0);n===""?n=c:n!==c&&(n=c,r=o),o===e.length-1&&c==="down"&&(r=o+1)}),r},Rx=function(e,t,n){var r=t.closest('[role="list"]'),i=r==null?void 0:r.querySelectorAll(':scope > [role="listitem"]');return i?cm(i,n):null},fH=function(e,t,n){var r=e.getBoundingClientRect(),i=n.dropTargetOffset,o=r.top+i,s=r.bottom-i;return t>s?"lower":t<o?"upper":"middle"},fm=function(e,t,n,r){var i;if(!t)return null;if(e===null){var o=t.querySelectorAll(':scope > [role="listitem"]');return{id:r.rootId,index:cm(o,n)}}var s=n.getItem(),c=t.querySelector('[role="list"]'),f=fH(t,((i=n.getClientOffset())===null||i===void 0?void 0:i.y)||0,r);if(c){if(f==="upper")if(xu(s,e.parent,r)){var p=Rx(e,t,n);return p===null?null:{id:e.parent,index:p}}else return{id:e.id,index:0};var o=c.querySelectorAll(':scope > [role="listitem"]');return{id:e.id,index:cm(o,n)}}else{if(f==="middle")return{id:e.id,index:0};if(xu(s,e.parent,r)){var p=Rx(e,t,n);return p===null?null:{id:e.parent,index:p}}return null}},LE=function(e){return e===void 0&&(e={}),{backends:[{id:"html5",backend:N2,options:e.html5,transition:Y3},{id:"touch",backend:nH,options:e.touch||{enableMouseEvents:!0},preview:!0,transition:z3}]}},Wh=function(e,t){return e.some(function(n){return n.parent===t})},FE=q.createContext({}),dH=function(e){var t=SH(e.tree,e.initialOpen),n=t[0],r=t[1],i=r.handleToggle,o=r.handleCloseAll,s=r.handleOpenAll,c=r.handleOpen,f=r.handleClose;q.useImperativeHandle(e.treeRef,function(){return{open:function(C){return c(C,e.onChangeOpen)},close:function(C){return f(C,e.onChangeOpen)},openAll:function(){return s(e.onChangeOpen)},closeAll:function(){return o(e.onChangeOpen)}}});var p=Pl().getMonitor(),y=e.canDrop,g=e.canDrag,T=Da(Da({extraAcceptTypes:[],listComponent:"ul",listItemComponent:"li",placeholderComponent:"li",sort:!0,insertDroppableFirst:!0,enableAnimateExpand:!1,dropTargetOffset:0,initialOpen:!1},e),{openIds:n,onDrop:function(C,P,I){if(C){var M={dragSourceId:C.id,dropTargetId:P,dragSource:C,dropTarget:nd(e.tree,P),monitor:p},R=e.tree;if(nd(R,C.id)||(R=ro(ro([],R,!0),[C],!1)),e.sort===!1){var V=ME(R,C.id,P,I),U=V[1];M.destinationIndex=U,M.relativeIndex=I,e.onDrop(uH(R,C.id,P,I),M);return}e.onDrop(aH(R,C.id,P),M)}else{var M={dropTargetId:P,dropTarget:nd(e.tree,P),monitor:p};e.sort===!1&&(M.destinationIndex=AE(e.tree,P,I),M.relativeIndex=I),e.onDrop(e.tree,M)}},canDrop:y?function(C,P){return y(e.tree,{dragSourceId:C??void 0,dropTargetId:P,dragSource:p.getItem(),dropTarget:nd(e.tree,P),monitor:p})}:void 0,canDrag:g?function(C){return g(nd(e.tree,C))}:void 0,onToggle:function(C){return i(C,e.onChangeOpen)}});return q.createElement(FE.Provider,{value:T},e.children)},NE=q.createContext({}),hH={isLock:!1},pH=function(e){var t=q.useState(hH.isLock),n=t[0],r=t[1];return q.createElement(NE.Provider,{value:{isLock:n,lock:function(){return r(!0)},unlock:function(){return r(!1)}}},e.children)},zd=q.createContext({}),Dh={dropTargetId:void 0,index:void 0},gH=function(e){var t=q.useState(Dh.dropTargetId),n=t[0],r=t[1],i=q.useState(Dh.index),o=i[0],s=i[1],c=function(p,y){r(p),s(y)},f=function(){r(Dh.dropTargetId),s(Dh.index)};return q.createElement(zd.Provider,{value:{dropTargetId:n,index:o,showPlaceholder:c,hidePlaceholder:f}},e.children)},vH=function(e){return q.createElement(dH,Da({},e),q.createElement(pH,null,q.createElement(gH,null,e.children)))},mH=function(e){var t=q.useContext(NE);q.useEffect(function(){if(e.current){var n=e.current,r=function(y){var g=y.target;(g instanceof HTMLInputElement||g instanceof HTMLTextAreaElement)&&t.lock()},i=function(y){var g=y.target;(g instanceof HTMLInputElement||g instanceof HTMLTextAreaElement)&&t.unlock()},o=function(y){return r(y)},s=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&&t.unlock()});return p.observe(n,{subtree:!0,childList:!0}),n.addEventListener("mouseover",o),n.addEventListener("mouseout",s),n.addEventListener("focusin",c),n.addEventListener("focusout",f),function(){p.disconnect(),n.removeEventListener("mouseover",o),n.removeEventListener("mouseout",s),n.removeEventListener("focusin",c),n.removeEventListener("focusout",f)}}},[e,t]),q.useEffect(function(){var n;(n=e.current)===null||n===void 0||n.setAttribute("draggable",t.isLock?"false":"true")},[e,t.isLock])},Up={TREE_ITEM:Symbol()},jE=null,BE=function(e){var t=e.target;if(t instanceof HTMLElement){var n=t.closest('[role="listitem"]');e.currentTarget===n&&(jE=n)}},Ix=function(e){return BE(e)},Ax=function(e){return BE(e)},yH=function(e,t){var n=ku();q.useEffect(function(){var c=t.current;return c==null||c.addEventListener("dragstart",Ix),c==null||c.addEventListener("touchstart",Ax,{passive:!0}),function(){c==null||c.removeEventListener("dragstart",Ix),c==null||c.removeEventListener("touchstart",Ax)}},[t]);var r=O3({type:Up.TREE_ITEM,item:function(c){var f=Da({ref:t},e);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 jE!==t.current?!1:c?c(e.id):!0},collect:function(c){return{isDragging:c.isDragging()}}}),i=r[0].isDragging,o=r[1],s=r[2];return[i,o,s]},bH=function(e,t,n){var r=q.useRef(0),i=q.useRef(0),o=function(){r.current+=1,r.current===1&&!t&&(i.current=window.setTimeout(function(){return n(e)},500))},s=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:s,onDrop:c}},wH=function(e){var t=ku(),n=q.useContext(zd),r=kE({accept:ro([Up.TREE_ITEM],t.extraAcceptTypes,!0),drop:function(f,p){var y=t.rootId,g=t.onDrop,T=n.dropTargetId,C=n.index;p.isOver({shallow:!0})&&T!==void 0&&C!==void 0&&g(Sy(f)?f:null,y,C),n.hidePlaceholder()},canDrop:function(f,p){var y=t.rootId;return p.isOver({shallow:!0})?f===void 0?!1:xu(f,y,t):!1},hover:function(f,p){if(p.isOver({shallow:!0})){var y=t.rootId,g=n.dropTargetId,T=n.index,C=n.showPlaceholder,P=n.hidePlaceholder,I=fm(null,e.current,p,t);if(I===null||!xu(f,y,t)){P();return}(I.id!==g||I.index!==T)&&C(I.id,I.index)}},collect:function(f){var p=f.getItem();return{isOver:f.isOver({shallow:!0})&&f.canDrop(),dragSource:p}}}),i=r[0],o=i.isOver,s=i.dragSource,c=r[1];return[o,s,c]},xH=function(e,t){var n=ku(),r=q.useContext(zd),i=kE({accept:ro([Up.TREE_ITEM],n.extraAcceptTypes,!0),drop:function(p,y){var g=r.dropTargetId,T=r.index;y.isOver({shallow:!0})&&g!==void 0&&T!==void 0&&n.onDrop(Sy(p)?p:null,g,T),r.hidePlaceholder()},canDrop:function(p,y){if(y.isOver({shallow:!0})){var g=fm(e,t.current,y,n);return g===null?!1:xu(p,g.id,n)}return!1},hover:function(p,y){if(y.isOver({shallow:!0})){var g=r.dropTargetId,T=r.index,C=r.showPlaceholder,P=r.hidePlaceholder,I=fm(e,t.current,y,n);if(I===null||!xu(p,I.id,n)){P();return}(I.id!==g||I.index!==T)&&C(I.id,I.index)}},collect:function(p){var y=p.getItem();return{isOver:p.isOver({shallow:!0})&&p.canDrop(),dragSource:y}}}),o=i[0],s=o.isOver,c=o.dragSource,f=i[1];return[s,c,f]},SH=function(e,t){var n=q.useMemo(function(){return t===!0?e.filter(function(g){return Wh(e,g.id)}).map(function(g){return g.id}):Array.isArray(t)?t:[]},[t]),r=q.useState(n),i=r[0],o=r[1];q.useEffect(function(){return o(n)},[t]);var s=function(g,T){var C=i.includes(g)?i.filter(function(P){return P!==g}):ro(ro([],i,!0),[g],!1);o(C),T&&T(C)},c=function(g){o([]),g&&g([])},f=function(g){var T=e.filter(function(C){return Wh(e,C.id)}).map(function(C){return C.id});o(T),g&&g(T)},p=function(g,T){var C=[];if(Array.isArray(g)){var P=e.filter(function(I){return g.includes(I.id)&&Wh(e,I.id)});C=ro(ro([],i,!0),P.map(function(I){return I.id}),!0).filter(function(I,M,R){return R.indexOf(I)===M})}else C=i.includes(g)?i:ro(ro([],i,!0),[g],!1);o(C),T&&T(C)},y=function(g,T){var C=i.filter(function(P){return Array.isArray(g)?!g.includes(P):P!==g});o(C),T&&T(C)};return[i,{handleToggle:s,handleCloseAll:c,handleOpenAll:f,handleOpen:p,handleClose:y}]},TH=function(){return D3(function(e){var t=e.getItemType();return{item:e.getItem(),clientOffset:e.getClientOffset(),isDragging:e.isDragging()&&t===Up.TREE_ITEM}})},ku=function(){var e=q.useContext(FE);if(!e)throw new Error("useTreeContext must be used under TreeProvider");return e},CH=function(e,t){var n=ku(),r=n.rootId,i=n.rootProps,o=n.classes,s=(o==null?void 0:o.container)||"";return t&&(o!=null&&o.dropTarget)&&(s="".concat(s," ").concat(o.dropTarget)),e===r&&(o!=null&&o.root)&&(s="".concat(s," ").concat(o.root)),e===r&&(i!=null&&i.className)&&(s="".concat(s," ").concat(i.className)),s=s.trim(),s},EH=function(e,t,n){t.current?n(t):n(e),q.useEffect(function(){t.current?n(t):n(e)},[t.current])},kH=function(e){var t=ku(),n=q.useContext(zd),r=q.useRef(null),i=q.useRef(null),o=t.tree.find(function(he){return he.id===e.id}),s=t.openIds,c=t.classes,f=t.enableAnimateExpand,p=s.includes(e.id),y=yH(o,r),g=y[0],T=y[1],C=y[2],P=xH(o,r),I=P[0],M=P[1],R=P[2];EH(r,i,T),xu(M,e.id,t)&&R(r),q.useEffect(function(){t.dragPreviewRender?C(F2(),{captureDraggingState:!0}):i.current&&C(r)},[C,t.dragPreviewRender]),mH(r);var V=function(){return t.onToggle(o.id)},U=t.listItemComponent,Q=(c==null?void 0:c.listItem)||"";I&&(c!=null&&c.dropTarget)&&(Q="".concat(Q," ").concat(c.dropTarget)),g&&(c!=null&&c.draggingSource)&&(Q="".concat(Q," ").concat(c.draggingSource));var K=t.canDrag?t.canDrag(e.id):!0,ue=n.dropTargetId===e.id,S={depth:e.depth,isOpen:p,isDragging:g,isDropTarget:ue,draggable:K,hasChild:Wh(t.tree,e.id),containerRef:r,handleRef:i,onToggle:V};return q.createElement(U,{ref:r,className:Q,role:"listitem"},t.render(o,S),f&&S.hasChild&&q.createElement(rH,{isVisible:p},q.createElement(dm,{parentId:e.id,depth:e.depth+1})),!f&&S.hasChild&&p&&q.createElement(dm,{parentId:e.id,depth:e.depth+1}))},Mx=function(e){var t=ku(),n=t.placeholderRender,r=t.placeholderComponent,i=t.classes,o=q.useContext(zd),s=Pl(),c=s.getMonitor(),f=c.getItem();if(!n||!f)return null;var p=e.dropTargetId===o.dropTargetId&&(e.index===o.index||e.index===void 0&&e.listCount===o.index);return p?q.createElement(r,{className:(i==null?void 0:i.placeholder)||""},n(f,{depth:e.depth})):null},dm=function(e){var t=ku(),n=q.useRef(null),r=t.tree.filter(function(I){return I.parent===e.parentId}),i=r,o=typeof t.sort=="function"?t.sort:oH;if(t.insertDroppableFirst){var s=r.filter(function(I){return I.droppable}),c=r.filter(function(I){return!I.droppable});t.sort===!1?i=ro(ro([],s,!0),c,!0):(s=s.sort(o),c=c.sort(o),i=ro(ro([],s,!0),c,!0))}else t.sort!==!1&&(i=r.sort(o));var f=wH(n),p=f[0],y=f[1],g=f[2];e.parentId===t.rootId&&xu(y,t.rootId,t)&&g(n);var T=CH(e.parentId,p),C=t.rootProps||{},P=t.listComponent;return q.createElement(P,Da({ref:n,role:"list"},C,{className:T}),i.map(function(I,M){return q.createElement(q.Fragment,{key:I.id},q.createElement(Mx,{depth:e.depth,listCount:i.length,dropTargetId:e.parentId,index:M}),q.createElement(kH,{id:I.id,depth:e.depth}))}),q.createElement(Mx,{depth:e.depth,listCount:i.length,dropTargetId:e.parentId}))},OH={height:"100%",left:0,pointerEvents:"none",position:"fixed",top:0,width:"100%",zIndex:100},DH=function(e){var t=e.clientOffset;if(!t)return{};var n=t.x,r=t.y,i="translate(".concat(n,"px, ").concat(r,"px)");return{pointerEvents:"none",transform:i}},_H=function(){var e=ku(),t=TH(),n=t.isDragging,r=t.clientOffset;return!n||!r?null:q.createElement("div",{style:OH},q.createElement("div",{style:DH(t)},e.dragPreviewRender&&e.dragPreviewRender(t)))};function PH(e,t){return q.createElement(vH,Da({},e,{treeRef:t}),e.dragPreviewRender&&q.createElement(_H,null),q.createElement(dm,{parentId:e.rootId,depth:0}))}var $E=q.forwardRef(PH);const VE=q.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Wp=q.createContext({}),Ty=q.createContext(null),zp=typeof document<"u",RH=zp?q.useLayoutEffect:q.useEffect,HE=q.createContext({strict:!1}),Cy=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),IH="framerAppearId",UE="data-"+Cy(IH);function AH(e,t,n,r){const{visualElement:i}=q.useContext(Wp),o=q.useContext(HE),s=q.useContext(Ty),c=q.useContext(VE).reducedMotion,f=q.useRef();r=r||o.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:c}));const p=f.current;q.useInsertionEffect(()=>{p&&p.update(n,s)});const y=q.useRef(!!(n[UE]&&!window.HandoffComplete));return RH(()=>{p&&(p.render(),y.current&&p.animationState&&p.animationState.animateChanges())}),q.useEffect(()=>{p&&(p.updateFeatures(),!y.current&&p.animationState&&p.animationState.animateChanges(),y.current&&(y.current=!1,window.HandoffComplete=!0))}),p}function gf(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function MH(e,t,n){return q.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):gf(n)&&(n.current=r))},[t])}function Id(e){return typeof e=="string"||Array.isArray(e)}function Yp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ey=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ky=["initial",...Ey];function Gp(e){return Yp(e.animate)||ky.some(t=>Id(e[t]))}function WE(e){return!!(Gp(e)||e.variants)}function LH(e,t){if(Gp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Id(n)?n:void 0,animate:Id(r)?r:void 0}}return e.inherit!==!1?t:{}}function FH(e){const{initial:t,animate:n}=LH(e,q.useContext(Wp));return q.useMemo(()=>({initial:t,animate:n}),[Lx(t),Lx(n)])}function Lx(e){return Array.isArray(e)?e.join(" "):e}const Fx={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"]},Ad={};for(const e in Fx)Ad[e]={isEnabled:t=>Fx[e].some(n=>!!t[n])};function NH(e){for(const t in e)Ad[t]={...Ad[t],...e[t]}}const zE=q.createContext({}),YE=q.createContext({}),jH=Symbol.for("motionComponentSymbol");function BH({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&NH(e);function o(c,f){let p;const y={...q.useContext(VE),...c,layoutId:$H(c)},{isStatic:g}=y,T=FH(c),C=r(c,g);if(!g&&zp){T.visualElement=AH(i,C,y,t);const P=q.useContext(YE),I=q.useContext(HE).strict;T.visualElement&&(p=T.visualElement.loadFeatures(y,I,e,P))}return bn.createElement(Wp.Provider,{value:T},p&&T.visualElement?bn.createElement(p,{visualElement:T.visualElement,...y}):null,n(i,c,MH(C,T.visualElement,f),C,g,T.visualElement))}const s=q.forwardRef(o);return s[jH]=i,s}function $H({layoutId:e}){const t=q.useContext(zE).id;return t&&e!==void 0?t+"-"+e:e}function VH(e){function t(r,i={}){return BH(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const HH=["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 Oy(e){return typeof e!="string"||e.includes("-")?!1:!!(HH.indexOf(e)>-1||/[A-Z]/.test(e))}const dp={};function UH(e){Object.assign(dp,e)}const Yd=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Dc=new Set(Yd);function GE(e,{layout:t,layoutId:n}){return Dc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!dp[e]||e==="opacity")}const _o=e=>!!(e&&e.getVelocity),WH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},zH=Yd.length;function YH(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<zH;s++){const c=Yd[s];if(e[c]!==void 0){const f=WH[c]||c;o+=`${f}(${e[c]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}const qE=e=>t=>typeof t=="string"&&t.startsWith(e),XE=qE("--"),hm=qE("var(--"),GH=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,qH=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Su=(e,t,n)=>Math.min(Math.max(n,e),t),_c={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},md={..._c,transform:e=>Su(0,1,e)},_h={..._c,default:1},yd=e=>Math.round(e*1e5)/1e5,qp=/(-)?([\d]*\.?[\d])+/g,KE=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,XH=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Gd(e){return typeof e=="string"}const qd=e=>({test:t=>Gd(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),uu=qd("deg"),Bs=qd("%"),It=qd("px"),KH=qd("vh"),ZH=qd("vw"),Nx={...Bs,parse:e=>Bs.parse(e)/100,transform:e=>Bs.transform(e*100)},jx={..._c,transform:Math.round},ZE={borderWidth:It,borderTopWidth:It,borderRightWidth:It,borderBottomWidth:It,borderLeftWidth:It,borderRadius:It,radius:It,borderTopLeftRadius:It,borderTopRightRadius:It,borderBottomRightRadius:It,borderBottomLeftRadius:It,width:It,maxWidth:It,height:It,maxHeight:It,size:It,top:It,right:It,bottom:It,left:It,padding:It,paddingTop:It,paddingRight:It,paddingBottom:It,paddingLeft:It,margin:It,marginTop:It,marginRight:It,marginBottom:It,marginLeft:It,rotate:uu,rotateX:uu,rotateY:uu,rotateZ:uu,scale:_h,scaleX:_h,scaleY:_h,scaleZ:_h,skew:uu,skewX:uu,skewY:uu,distance:It,translateX:It,translateY:It,translateZ:It,x:It,y:It,z:It,perspective:It,transformPerspective:It,opacity:md,originX:Nx,originY:Nx,originZ:It,zIndex:jx,fillOpacity:md,strokeOpacity:md,numOctaves:jx};function Dy(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:c}=e;let f=!1,p=!1,y=!0;for(const g in t){const T=t[g];if(XE(g)){o[g]=T;continue}const C=ZE[g],P=qH(T,C);if(Dc.has(g)){if(f=!0,s[g]=P,!y)continue;T!==(C.default||0)&&(y=!1)}else g.startsWith("origin")?(p=!0,c[g]=P):i[g]=P}if(t.transform||(f||r?i.transform=YH(e.transform,n,y,r):i.transform&&(i.transform="none")),p){const{originX:g="50%",originY:T="50%",originZ:C=0}=c;i.transformOrigin=`${g} ${T} ${C}`}}const _y=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function JE(e,t,n){for(const r in t)!_o(t[r])&&!GE(r,n)&&(e[r]=t[r])}function JH({transformTemplate:e},t,n){return q.useMemo(()=>{const r=_y();return Dy(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function QH(e,t,n){const r=e.style||{},i={};return JE(i,r,e),Object.assign(i,JH(e,t,n)),e.transformValues?e.transformValues(i):i}function eU(e,t,n){const r={},i=QH(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const tU=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 hp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||tU.has(e)}let QE=e=>!hp(e);function nU(e){e&&(QE=t=>t.startsWith("on")?!hp(t):e(t))}try{nU(require("@emotion/is-prop-valid").default)}catch{}function rU(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(QE(i)||n===!0&&hp(i)||!t&&!hp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Bx(e,t,n){return typeof e=="string"?e:It.transform(t+n*e)}function iU(e,t,n){const r=Bx(t,e.x,e.width),i=Bx(n,e.y,e.height);return`${r} ${i}`}const oU={offset:"stroke-dashoffset",array:"stroke-dasharray"},aU={offset:"strokeDashoffset",array:"strokeDasharray"};function sU(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?oU:aU;e[o.offset]=It.transform(-r);const s=It.transform(t),c=It.transform(n);e[o.array]=`${s} ${c}`}function Py(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:c=1,pathOffset:f=0,...p},y,g,T){if(Dy(e,p,y,T),g){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:C,style:P,dimensions:I}=e;C.transform&&(I&&(P.transform=C.transform),delete C.transform),I&&(i!==void 0||o!==void 0||P.transform)&&(P.transformOrigin=iU(I,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(C.x=t),n!==void 0&&(C.y=n),r!==void 0&&(C.scale=r),s!==void 0&&sU(C,s,c,f,!1)}const ek=()=>({..._y(),attrs:{}}),Ry=e=>typeof e=="string"&&e.toLowerCase()==="svg";function lU(e,t,n,r){const i=q.useMemo(()=>{const o=ek();return Py(o,t,{enableHardwareAcceleration:!1},Ry(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};JE(o,e.style,e),i.style={...o,...i.style}}return i}function uU(e=!1){return(n,r,i,{latestValues:o},s)=>{const f=(Oy(n)?lU:eU)(r,o,s,n),y={...rU(r,typeof n=="string",e),...f,ref:i},{children:g}=r,T=q.useMemo(()=>_o(g)?g.get():g,[g]);return q.createElement(n,{...y,children:T})}}function tk(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const nk=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 rk(e,t,n,r){tk(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(nk.has(i)?i:Cy(i),t.attrs[i])}function Iy(e,t){const{style:n}=e,r={};for(const i in n)(_o(n[i])||t.style&&_o(t.style[i])||GE(i,e))&&(r[i]=n[i]);return r}function ik(e,t){const n=Iy(e,t);for(const r in e)if(_o(e[r])||_o(t[r])){const i=Yd.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function Ay(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function cU(e){const t=q.useRef(null);return t.current===null&&(t.current=e()),t.current}const pp=e=>Array.isArray(e),fU=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),dU=e=>pp(e)?e[e.length-1]||0:e;function zh(e){const t=_o(e)?e.get():e;return fU(t)?t.toValue():t}function hU({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:pU(r,i,o,e),renderState:t()};return n&&(s.mount=c=>n(r,c,s)),s}const ok=e=>(t,n)=>{const r=q.useContext(Wp),i=q.useContext(Ty),o=()=>hU(e,t,r,i);return n?o():cU(o)};function pU(e,t,n,r){const i={},o=r(e,{});for(const T in o)i[T]=zh(o[T]);let{initial:s,animate:c}=e;const f=Gp(e),p=WE(e);t&&p&&!f&&e.inherit!==!1&&(s===void 0&&(s=t.initial),c===void 0&&(c=t.animate));let y=n?n.initial===!1:!1;y=y||s===!1;const g=y?c:s;return g&&typeof g!="boolean"&&!Yp(g)&&(Array.isArray(g)?g:[g]).forEach(C=>{const P=Ay(e,C);if(!P)return;const{transitionEnd:I,transition:M,...R}=P;for(const V in R){let U=R[V];if(Array.isArray(U)){const Q=y?U.length-1:0;U=U[Q]}U!==null&&(i[V]=U)}for(const V in I)i[V]=I[V]}),i}const ar=e=>e;class $x{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function gU(e){let t=new $x,n=new $x,r=0,i=!1,o=!1;const s=new WeakSet,c={schedule:(f,p=!1,y=!1)=>{const g=y&&i,T=g?t:n;return p&&s.add(f),T.add(f)&&g&&i&&(r=t.order.length),f},cancel:f=>{n.remove(f),s.delete(f)},process:f=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let p=0;p<r;p++){const y=t.order[p];y(f),s.has(y)&&(c.schedule(y),e())}i=!1,o&&(o=!1,c.process(f))}};return c}const Ph=["prepare","read","update","preRender","render","postRender"],vU=40;function mU(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Ph.reduce((g,T)=>(g[T]=gU(()=>n=!0),g),{}),s=g=>o[g].process(i),c=()=>{const g=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(g-i.timestamp,vU),1),i.timestamp=g,i.isProcessing=!0,Ph.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(c))},f=()=>{n=!0,r=!0,i.isProcessing||e(c)};return{schedule:Ph.reduce((g,T)=>{const C=o[T];return g[T]=(P,I=!1,M=!1)=>(n||f(),C.schedule(P,I,M)),g},{}),cancel:g=>Ph.forEach(T=>o[T].cancel(g)),state:i,steps:o}}const{schedule:Nn,cancel:Dl,state:Fi,steps:tv}=mU(typeof requestAnimationFrame<"u"?requestAnimationFrame:ar,!0),yU={useVisualState:ok({scrapeMotionValuesFromProps:ik,createRenderState:ek,onMount:(e,t,{renderState:n,latestValues:r})=>{Nn.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Nn.render(()=>{Py(n,r,{enableHardwareAcceleration:!1},Ry(t.tagName),e.transformTemplate),rk(t,n)})}})},bU={useVisualState:ok({scrapeMotionValuesFromProps:Iy,createRenderState:_y})};function wU(e,{forwardMotionProps:t=!1},n,r){return{...Oy(e)?yU:bU,preloadedFeatures:n,useRender:uU(t),createVisualElement:r,Component:e}}function bl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const ak=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Xp(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const xU=e=>t=>ak(t)&&e(t,Xp(t));function Sl(e,t,n,r){return bl(e,t,xU(n),r)}const SU=(e,t)=>n=>t(e(n)),vu=(...e)=>e.reduce(SU);function sk(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Vx=sk("dragHorizontal"),Hx=sk("dragVertical");function lk(e){let t=!1;if(e==="y")t=Hx();else if(e==="x")t=Vx();else{const n=Vx(),r=Hx();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function uk(){const e=lk(!0);return e?(e(),!1):!0}class Ou{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Ux(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||uk())return;const c=e.getProps();e.animationState&&c.whileHover&&e.animationState.setActive("whileHover",t),c[r]&&Nn.update(()=>c[r](o,s))};return Sl(e.current,n,i,{passive:!e.getProps()[r]})}class TU extends Ou{mount(){this.unmount=vu(Ux(this.node,!0),Ux(this.node,!1))}unmount(){}}class CU extends Ou{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=vu(bl(this.node.current,"focus",()=>this.onFocus()),bl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const ck=(e,t)=>t?e===t?!0:ck(e,t.parentElement):!1;function nv(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Xp(n))}class EU extends Ou{constructor(){super(...arguments),this.removeStartListeners=ar,this.removeEndListeners=ar,this.removeAccessibleListeners=ar,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=Sl(window,"pointerup",(c,f)=>{if(!this.checkPressEnd())return;const{onTap:p,onTapCancel:y,globalTapTarget:g}=this.node.getProps();Nn.update(()=>{!g&&!ck(this.node.current,c.target)?y&&y(c,f):p&&p(c,f)})},{passive:!(r.onTap||r.onPointerUp)}),s=Sl(window,"pointercancel",(c,f)=>this.cancelPress(c,f),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=vu(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=c=>{c.key!=="Enter"||!this.checkPressEnd()||nv("up",(f,p)=>{const{onTap:y}=this.node.getProps();y&&Nn.update(()=>y(f,p))})};this.removeEndListeners(),this.removeEndListeners=bl(this.node.current,"keyup",s),nv("down",(c,f)=>{this.startPress(c,f)})},n=bl(this.node.current,"keydown",t),r=()=>{this.isPressing&&nv("cancel",(o,s)=>this.cancelPress(o,s))},i=bl(this.node.current,"blur",r);this.removeAccessibleListeners=vu(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Nn.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!uk()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Nn.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Sl(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=bl(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=vu(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const pm=new WeakMap,rv=new WeakMap,kU=e=>{const t=pm.get(e.target);t&&t(e)},OU=e=>{e.forEach(kU)};function DU({root:e,...t}){const n=e||document;rv.has(n)||rv.set(n,{});const r=rv.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(OU,{root:e,...t})),r[i]}function _U(e,t,n){const r=DU(t);return pm.set(e,n),r.observe(e),()=>{pm.delete(e),r.unobserve(e)}}const PU={some:0,all:1};class RU extends Ou{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:PU[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:g}=this.node.getProps(),T=p?y:g;T&&T(f)};return _U(this.node.current,s,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(IU(t,n))&&this.startObserver()}unmount(){}}function IU({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const AU={inView:{Feature:RU},tap:{Feature:EU},focus:{Feature:CU},hover:{Feature:TU}};function fk(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function MU(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function LU(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Kp(e,t,n){const r=e.getProps();return Ay(r,t,n!==void 0?n:r.custom,MU(e),LU(e))}let Xd=ar,os=ar;process.env.NODE_ENV!=="production"&&(Xd=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},os=(e,t)=>{if(!e)throw new Error(t)});const mu=e=>e*1e3,Tl=e=>e/1e3,FU={current:!1},dk=e=>Array.isArray(e)&&typeof e[0]=="number";function hk(e){return!!(!e||typeof e=="string"&&pk[e]||dk(e)||Array.isArray(e)&&e.every(hk))}const od=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,pk={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:od([0,.65,.55,1]),circOut:od([.55,0,1,.45]),backIn:od([.31,.01,.66,-.59]),backOut:od([.33,1.53,.69,.99])};function gk(e){if(e)return dk(e)?od(e):Array.isArray(e)?e.map(gk):pk[e]}function NU(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:c,times:f}={}){const p={[t]:n};f&&(p.offset=f);const y=gk(c);return Array.isArray(y)&&(p.easing=y),e.animate(p,{delay:r,duration:i,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function jU(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const vk=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,BU=1e-7,$U=12;function VU(e,t,n,r,i){let o,s,c=0;do s=t+(n-t)/2,o=vk(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>BU&&++c<$U);return s}function Kd(e,t,n,r){if(e===t&&n===r)return ar;const i=o=>VU(o,0,1,e,n);return o=>o===0||o===1?o:vk(i(o),t,r)}const HU=Kd(.42,0,1,1),UU=Kd(0,0,.58,1),mk=Kd(.42,0,.58,1),WU=e=>Array.isArray(e)&&typeof e[0]!="number",yk=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,bk=e=>t=>1-e(1-t),My=e=>1-Math.sin(Math.acos(e)),wk=bk(My),zU=yk(My),xk=Kd(.33,1.53,.69,.99),Ly=bk(xk),YU=yk(Ly),GU=e=>(e*=2)<1?.5*Ly(e):.5*(2-Math.pow(2,-10*(e-1))),Wx={linear:ar,easeIn:HU,easeInOut:mk,easeOut:UU,circIn:My,circInOut:zU,circOut:wk,backIn:Ly,backInOut:YU,backOut:xk,anticipate:GU},zx=e=>{if(Array.isArray(e)){os(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Kd(t,n,r,i)}else if(typeof e=="string")return os(Wx[e]!==void 0,`Invalid easing type '${e}'`),Wx[e];return e},Fy=(e,t)=>n=>!!(Gd(n)&&XH.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Sk=(e,t,n)=>r=>{if(!Gd(r))return r;const[i,o,s,c]=r.match(qp);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:c!==void 0?parseFloat(c):1}},qU=e=>Su(0,255,e),iv={..._c,transform:e=>Math.round(qU(e))},vc={test:Fy("rgb","red"),parse:Sk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+iv.transform(e)+", "+iv.transform(t)+", "+iv.transform(n)+", "+yd(md.transform(r))+")"};function XU(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const gm={test:Fy("#"),parse:XU,transform:vc.transform},vf={test:Fy("hsl","hue"),parse:Sk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Bs.transform(yd(t))+", "+Bs.transform(yd(n))+", "+yd(md.transform(r))+")"},no={test:e=>vc.test(e)||gm.test(e)||vf.test(e),parse:e=>vc.test(e)?vc.parse(e):vf.test(e)?vf.parse(e):gm.parse(e),transform:e=>Gd(e)?e:e.hasOwnProperty("red")?vc.transform(e):vf.transform(e)},Kn=(e,t,n)=>-n*e+n*t+e;function ov(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function KU({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const c=n<.5?n*(1+t):n+t-n*t,f=2*n-c;i=ov(f,c,e+1/3),o=ov(f,c,e),s=ov(f,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const av=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},ZU=[gm,vc,vf],JU=e=>ZU.find(t=>t.test(e));function Yx(e){const t=JU(e);os(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===vf&&(n=KU(n)),n}const Tk=(e,t)=>{const n=Yx(e),r=Yx(t),i={...n};return o=>(i.red=av(n.red,r.red,o),i.green=av(n.green,r.green,o),i.blue=av(n.blue,r.blue,o),i.alpha=Kn(n.alpha,r.alpha,o),vc.transform(i))};function QU(e){var t,n;return isNaN(e)&&Gd(e)&&(((t=e.match(qp))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(KE))===null||n===void 0?void 0:n.length)||0)>0}const Ck={regex:GH,countKey:"Vars",token:"${v}",parse:ar},Ek={regex:KE,countKey:"Colors",token:"${c}",parse:no.parse},kk={regex:qp,countKey:"Numbers",token:"${n}",parse:_c.parse};function sv(e,{regex:t,countKey:n,token:r,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...o.map(i)))}function gp(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&sv(n,Ck),sv(n,Ek),sv(n,kk),n}function Ok(e){return gp(e).values}function Dk(e){const{values:t,numColors:n,numVars:r,tokenised:i}=gp(e),o=t.length;return s=>{let c=i;for(let f=0;f<o;f++)f<r?c=c.replace(Ck.token,s[f]):f<r+n?c=c.replace(Ek.token,no.transform(s[f])):c=c.replace(kk.token,yd(s[f]));return c}}const eW=e=>typeof e=="number"?0:e;function tW(e){const t=Ok(e);return Dk(e)(t.map(eW))}const Tu={test:QU,parse:Ok,createTransformer:Dk,getAnimatableNone:tW},_k=(e,t)=>n=>`${n>0?t:e}`;function Pk(e,t){return typeof e=="number"?n=>Kn(e,t,n):no.test(e)?Tk(e,t):e.startsWith("var(")?_k(e,t):Ik(e,t)}const Rk=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>Pk(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},nW=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Pk(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},Ik=(e,t)=>{const n=Tu.createTransformer(t),r=gp(e),i=gp(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?vu(Rk(r.values,i.values),n):(Xd(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),_k(e,t))},Md=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Gx=(e,t)=>n=>Kn(e,t,n);function rW(e){return typeof e=="number"?Gx:typeof e=="string"?no.test(e)?Tk:Ik:Array.isArray(e)?Rk:typeof e=="object"?nW:Gx}function iW(e,t,n){const r=[],i=n||rW(e[0]),o=e.length-1;for(let s=0;s<o;s++){let c=i(e[s],e[s+1]);if(t){const f=Array.isArray(t)?t[s]||ar:t;c=vu(f,c)}r.push(c)}return r}function Ak(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(os(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=iW(t,r,i),c=s.length,f=p=>{let y=0;if(c>1)for(;y<e.length-2&&!(p<e[y+1]);y++);const g=Md(e[y],e[y+1],p);return s[y](g)};return n?p=>f(Su(e[0],e[o-1],p)):f}function oW(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Md(0,t,r);e.push(Kn(n,1,i))}}function aW(e){const t=[0];return oW(t,e.length-1),t}function sW(e,t){return e.map(n=>n*t)}function lW(e,t){return e.map(()=>t||mk).splice(0,e.length-1)}function vp({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=WU(r)?r.map(zx):zx(r),o={done:!1,value:t[0]},s=sW(n&&n.length===t.length?n:aW(t),e),c=Ak(s,t,{ease:Array.isArray(i)?i:lW(t,i)});return{calculatedDuration:e,next:f=>(o.value=c(f),o.done=f>=e,o)}}function Mk(e,t){return t?e*(1e3/t):0}const uW=5;function Lk(e,t,n){const r=Math.max(t-uW,0);return Mk(n-e(r),t-r)}const qx=.001,cW=.01,Xx=10,fW=.05,dW=1;function hW({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;Xd(e<=mu(Xx),"Spring duration must be 10 seconds or less");let s=1-t;s=Su(fW,dW,s),e=Su(cW,Xx,Tl(e)),s<1?(i=p=>{const y=p*s,g=y*e,T=y-n,C=vm(p,s),P=Math.exp(-g);return qx-T/C*P},o=p=>{const g=p*s*e,T=g*n+n,C=Math.pow(s,2)*Math.pow(p,2)*e,P=Math.exp(-g),I=vm(Math.pow(p,2),s);return(-i(p)+qx>0?-1:1)*((T-C)*P)/I}):(i=p=>{const y=Math.exp(-p*e),g=(p-n)*e+1;return-.001+y*g},o=p=>{const y=Math.exp(-p*e),g=(n-p)*(e*e);return y*g});const c=5/e,f=gW(i,o,c);if(e=mu(e),isNaN(f))return{stiffness:100,damping:10,duration:e};{const p=Math.pow(f,2)*r;return{stiffness:p,damping:s*2*Math.sqrt(r*p),duration:e}}}const pW=12;function gW(e,t,n){let r=n;for(let i=1;i<pW;i++)r=r-e(r)/t(r);return r}function vm(e,t){return e*Math.sqrt(1-t*t)}const vW=["duration","bounce"],mW=["stiffness","damping","mass"];function Kx(e,t){return t.some(n=>e[n]!==void 0)}function yW(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Kx(e,mW)&&Kx(e,vW)){const n=hW(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Fk({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:c,damping:f,mass:p,duration:y,velocity:g,isResolvedFromDuration:T}=yW({...r,velocity:-Tl(r.velocity||0)}),C=g||0,P=f/(2*Math.sqrt(c*p)),I=o-i,M=Tl(Math.sqrt(c/p)),R=Math.abs(I)<5;n||(n=R?.01:2),t||(t=R?.005:.5);let V;if(P<1){const U=vm(M,P);V=Q=>{const K=Math.exp(-P*M*Q);return o-K*((C+P*M*I)/U*Math.sin(U*Q)+I*Math.cos(U*Q))}}else if(P===1)V=U=>o-Math.exp(-M*U)*(I+(C+M*I)*U);else{const U=M*Math.sqrt(P*P-1);V=Q=>{const K=Math.exp(-P*M*Q),ue=Math.min(U*Q,300);return o-K*((C+P*M*I)*Math.sinh(ue)+U*I*Math.cosh(ue))/U}}return{calculatedDuration:T&&y||null,next:U=>{const Q=V(U);if(T)s.done=U>=y;else{let K=C;U!==0&&(P<1?K=Lk(V,U,Q):K=0);const ue=Math.abs(K)<=n,S=Math.abs(o-Q)<=t;s.done=ue&&S}return s.value=s.done?o:Q,s}}}function Zx({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:c,max:f,restDelta:p=.5,restSpeed:y}){const g=e[0],T={done:!1,value:g},C=he=>c!==void 0&&he<c||f!==void 0&&he>f,P=he=>c===void 0?f:f===void 0||Math.abs(c-he)<Math.abs(f-he)?c:f;let I=n*t;const M=g+I,R=s===void 0?M:s(M);R!==M&&(I=R-g);const V=he=>-I*Math.exp(-he/r),U=he=>R+V(he),Q=he=>{const ae=V(he),Ge=U(he);T.done=Math.abs(ae)<=p,T.value=T.done?R:Ge};let K,ue;const S=he=>{C(T.value)&&(K=he,ue=Fk({keyframes:[T.value,P(T.value)],velocity:Lk(U,he,T.value),damping:i,stiffness:o,restDelta:p,restSpeed:y}))};return S(0),{calculatedDuration:null,next:he=>{let ae=!1;return!ue&&K===void 0&&(ae=!0,Q(he),S(he)),K!==void 0&&he>K?ue.next(he-K):(!ae&&Q(he),T)}}}const bW=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Nn.update(t,!0),stop:()=>Dl(t),now:()=>Fi.isProcessing?Fi.timestamp:performance.now()}},Jx=2e4;function Qx(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Jx;)t+=n,r=e.next(t);return t>=Jx?1/0:t}const wW={decay:Zx,inertia:Zx,tween:vp,keyframes:vp,spring:Fk};function mp({autoplay:e=!0,delay:t=0,driver:n=bW,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:c="loop",onPlay:f,onStop:p,onComplete:y,onUpdate:g,...T}){let C=1,P=!1,I,M;const R=()=>{M=new Promise(Ee=>{I=Ee})};R();let V;const U=wW[i]||vp;let Q;U!==vp&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&os(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),Q=Ak([0,100],r,{clamp:!1}),r=[0,100]);const K=U({...T,keyframes:r});let ue;c==="mirror"&&(ue=U({...T,keyframes:[...r].reverse(),velocity:-(T.velocity||0)}));let S="idle",he=null,ae=null,Ge=null;K.calculatedDuration===null&&o&&(K.calculatedDuration=Qx(K));const{calculatedDuration:Re}=K;let Me=1/0,$e=1/0;Re!==null&&(Me=Re+s,$e=Me*(o+1)-s);let Ue=0;const ce=Ee=>{if(ae===null)return;C>0&&(ae=Math.min(ae,Ee)),C<0&&(ae=Math.min(Ee-$e/C,ae)),he!==null?Ue=he:Ue=Math.round(Ee-ae)*C;const Le=Ue-t*(C>=0?1:-1),Be=C>=0?Le<0:Le>$e;Ue=Math.max(Le,0),S==="finished"&&he===null&&(Ue=$e);let ke=Ue,_e=K;if(o){const ht=Math.min(Ue,$e)/Me;let ft=Math.floor(ht),bt=ht%1;!bt&&ht>=1&&(bt=1),bt===1&&ft--,ft=Math.min(ft,o+1),!!(ft%2)&&(c==="reverse"?(bt=1-bt,s&&(bt-=s/Me)):c==="mirror"&&(_e=ue)),ke=Su(0,1,bt)*Me}const ze=Be?{done:!1,value:r[0]}:_e.next(ke);Q&&(ze.value=Q(ze.value));let{done:it}=ze;!Be&&Re!==null&&(it=C>=0?Ue>=$e:Ue<=0);const dt=he===null&&(S==="finished"||S==="running"&&it);return g&&g(ze.value),dt&&We(),ze},Te=()=>{V&&V.stop(),V=void 0},Ne=()=>{S="idle",Te(),I(),R(),ae=Ge=null},We=()=>{S="finished",y&&y(),Te(),I()},tt=()=>{if(P)return;V||(V=n(ce));const Ee=V.now();f&&f(),he!==null?ae=Ee-he:(!ae||S==="finished")&&(ae=Ee),S==="finished"&&R(),Ge=ae,he=null,S="running",V.start()};e&&tt();const we={then(Ee,Le){return M.then(Ee,Le)},get time(){return Tl(Ue)},set time(Ee){Ee=mu(Ee),Ue=Ee,he!==null||!V||C===0?he=Ee:ae=V.now()-Ee/C},get duration(){const Ee=K.calculatedDuration===null?Qx(K):K.calculatedDuration;return Tl(Ee)},get speed(){return C},set speed(Ee){Ee===C||!V||(C=Ee,we.time=Tl(Ue))},get state(){return S},play:tt,pause:()=>{S="paused",he=Ue},stop:()=>{P=!0,S!=="idle"&&(S="idle",p&&p(),Ne())},cancel:()=>{Ge!==null&&ce(Ge),Ne()},complete:()=>{S="finished"},sample:Ee=>(ae=0,ce(Ee))};return we}function xW(e){let t;return()=>(t===void 0&&(t=e()),t)}const SW=xW(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),TW=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Rh=10,CW=2e4,EW=(e,t)=>t.type==="spring"||e==="backgroundColor"||!hk(t.ease);function kW(e,t,{onUpdate:n,onComplete:r,...i}){if(!(SW()&&TW.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,c,f,p=!1;const y=()=>{f=new Promise(U=>{c=U})};y();let{keyframes:g,duration:T=300,ease:C,times:P}=i;if(EW(t,i)){const U=mp({...i,repeat:0,delay:0});let Q={done:!1,value:g[0]};const K=[];let ue=0;for(;!Q.done&&ue<CW;)Q=U.sample(ue),K.push(Q.value),ue+=Rh;P=void 0,g=K,T=ue-Rh,C="linear"}const I=NU(e.owner.current,t,g,{...i,duration:T,ease:C,times:P}),M=()=>{p=!1,I.cancel()},R=()=>{p=!0,Nn.update(M),c(),y()};return I.onfinish=()=>{p||(e.set(jU(g,i)),r&&r(),R())},{then(U,Q){return f.then(U,Q)},attachTimeline(U){return I.timeline=U,I.onfinish=null,ar},get time(){return Tl(I.currentTime||0)},set time(U){I.currentTime=mu(U)},get speed(){return I.playbackRate},set speed(U){I.playbackRate=U},get duration(){return Tl(T)},play:()=>{s||(I.play(),Dl(M))},pause:()=>I.pause(),stop:()=>{if(s=!0,I.playState==="idle")return;const{currentTime:U}=I;if(U){const Q=mp({...i,autoplay:!1});e.setWithVelocity(Q.sample(U-Rh).value,Q.sample(U).value,Rh)}R()},complete:()=>{p||I.finish()},cancel:R}}function OW({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:ar,pause:ar,stop:ar,then:o=>(o(),Promise.resolve()),cancel:ar,complete:ar});return t?mp({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const DW={type:"spring",stiffness:500,damping:25,restSpeed:10},_W=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),PW={type:"keyframes",duration:.8},RW={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},IW=(e,{keyframes:t})=>t.length>2?PW:Dc.has(e)?e.startsWith("scale")?_W(t[1]):DW:RW,mm=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Tu.test(t)||t==="0")&&!t.startsWith("url(")),AW=new Set(["brightness","contrast","saturate","opacity"]);function MW(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(qp)||[];if(!r)return e;const i=n.replace(r,"");let o=AW.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const LW=/([a-z-]*)\(.*?\)/g,ym={...Tu,getAnimatableNone:e=>{const t=e.match(LW);return t?t.map(MW).join(" "):e}},FW={...ZE,color:no,backgroundColor:no,outlineColor:no,fill:no,stroke:no,borderColor:no,borderTopColor:no,borderRightColor:no,borderBottomColor:no,borderLeftColor:no,filter:ym,WebkitFilter:ym},Ny=e=>FW[e];function Nk(e,t){let n=Ny(e);return n!==ym&&(n=Tu),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const jk=e=>/^0[^.\s]+$/.test(e);function NW(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||jk(e)}function jW(e,t,n,r){const i=mm(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let c;const f=[];for(let p=0;p<o.length;p++)o[p]===null&&(o[p]=p===0?s:o[p-1]),NW(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]=Nk(t,c)}return o}function BW({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:c,from:f,elapsed:p,...y}){return!!Object.keys(y).length}function jy(e,t){return e[t]||e.default||e}const $W={skipAnimations:!1},By=(e,t,n,r={})=>i=>{const o=jy(r,e)||{},s=o.delay||r.delay||0;let{elapsed:c=0}=r;c=c-mu(s);const f=jW(t,e,n,o),p=f[0],y=f[f.length-1],g=mm(e,p),T=mm(e,y);Xd(g===T,`You are trying to animate ${e} 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 C={keyframes:f,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-c,onUpdate:P=>{t.set(P),o.onUpdate&&o.onUpdate(P)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(BW(o)||(C={...C,...IW(e,C)}),C.duration&&(C.duration=mu(C.duration)),C.repeatDelay&&(C.repeatDelay=mu(C.repeatDelay)),!g||!T||FU.current||o.type===!1||$W.skipAnimations)return OW(C);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const P=kW(t,e,C);if(P)return P}return mp(C)};function yp(e){return!!(_o(e)&&e.add)}const Bk=e=>/^\-?\d*\.?\d+$/.test(e);function $y(e,t){e.indexOf(t)===-1&&e.push(t)}function Vy(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Hy{constructor(){this.subscriptions=[]}add(t){return $y(this.subscriptions,t),()=>Vy(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const eS=new Set;function Uy(e,t,n){e||eS.has(t)||(console.warn(t),eS.add(t))}const VW=e=>!isNaN(parseFloat(e));class HW{constructor(t,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:s}=Fi;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,Nn.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=()=>Nn.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=t,this.canTrackVelocity=VW(this.current),this.owner=n.owner}onChange(t){return process.env.NODE_ENV!=="production"&&Uy(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Hy);const r=this.events[t].add(n);return t==="change"?()=>{r(),Nn.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Mk(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(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 kf(e,t){return new HW(e,t)}const $k=e=>t=>t.test(e),UW={test:e=>e==="auto",parse:e=>e},Vk=[_c,It,Bs,uu,ZH,KH,UW],rd=e=>Vk.find($k(e)),WW=[...Vk,no,Tu],zW=e=>WW.find($k(e));function YW(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,kf(n))}function GW(e,t){const n=Kp(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const c=dU(o[s]);YW(e,s,c)}}function qW(e,t,n){var r,i;const o=Object.keys(t).filter(c=>!e.hasValue(c)),s=o.length;if(s)for(let c=0;c<s;c++){const f=o[c],p=t[f];let y=null;Array.isArray(p)&&(y=p[0]),y===null&&(y=(i=(r=n[f])!==null&&r!==void 0?r:e.readValue(f))!==null&&i!==void 0?i:t[f]),y!=null&&(typeof y=="string"&&(Bk(y)||jk(y))?y=parseFloat(y):!zW(y)&&Tu.test(p)&&(y=Nk(f,p)),e.addValue(f,kf(y,{owner:e})),n[f]===void 0&&(n[f]=y),y!==null&&e.setBaseTarget(f,y))}}function XW(e,t){return t?(t[e]||t.default||t).from:void 0}function KW(e,t,n){const r={};for(const i in e){const o=XW(i,t);if(o!==void 0)r[i]=o;else{const s=n.getValue(i);s&&(r[i]=s.get())}}return r}function ZW({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function JW(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function Hk(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...c}=e.makeTargetAnimatable(t);const f=e.getValue("willChange");r&&(o=r);const p=[],y=i&&e.animationState&&e.animationState.getState()[i];for(const g in c){const T=e.getValue(g),C=c[g];if(!T||C===void 0||y&&ZW(y,g))continue;const P={delay:n,elapsed:0,...jy(o||{},g)};if(window.HandoffAppearAnimations){const R=e.getProps()[UE];if(R){const V=window.HandoffAppearAnimations(R,g,T,Nn);V!==null&&(P.elapsed=V,P.isHandoff=!0)}}let I=!P.isHandoff&&!JW(T,C);if(P.type==="spring"&&(T.getVelocity()||P.velocity)&&(I=!1),T.animation&&(I=!1),I)continue;T.start(By(g,T,C,e.shouldReduceMotion&&Dc.has(g)?{type:!1}:P));const M=T.animation;yp(f)&&(f.add(g),M.then(()=>f.remove(g))),p.push(M)}return s&&Promise.all(p).then(()=>{s&&GW(e,s)}),p}function bm(e,t,n={}){const r=Kp(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Hk(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:p=0,staggerChildren:y,staggerDirection:g}=i;return QW(e,t,p+f,y,g,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[f,p]=c==="beforeChildren"?[o,s]:[s,o];return f().then(()=>p())}else return Promise.all([o(),s(n.delay)])}function QW(e,t,n=0,r=0,i=1,o){const s=[],c=(e.variantChildren.size-1)*r,f=i===1?(p=0)=>p*r:(p=0)=>c-p*r;return Array.from(e.variantChildren).sort(ez).forEach((p,y)=>{p.notify("AnimationStart",t),s.push(bm(p,t,{...o,delay:n+f(y)}).then(()=>p.notify("AnimationComplete",t)))}),Promise.all(s)}function ez(e,t){return e.sortNodePosition(t)}function tz(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>bm(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=bm(e,t,n);else{const i=typeof t=="function"?Kp(e,t,n.custom):t;r=Promise.all(Hk(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const nz=[...Ey].reverse(),rz=Ey.length;function iz(e){return t=>Promise.all(t.map(({animation:n,options:r})=>tz(e,n,r)))}function oz(e){let t=iz(e);const n=sz();let r=!0;const i=(f,p)=>{const y=Kp(e,p);if(y){const{transition:g,transitionEnd:T,...C}=y;f={...f,...C,...T}}return f};function o(f){t=f(e)}function s(f,p){const y=e.getProps(),g=e.getVariantContext(!0)||{},T=[],C=new Set;let P={},I=1/0;for(let R=0;R<rz;R++){const V=nz[R],U=n[V],Q=y[V]!==void 0?y[V]:g[V],K=Id(Q),ue=V===p?U.isActive:null;ue===!1&&(I=R);let S=Q===g[V]&&Q!==y[V]&&K;if(S&&r&&e.manuallyAnimateOnMount&&(S=!1),U.protectedKeys={...P},!U.isActive&&ue===null||!Q&&!U.prevProp||Yp(Q)||typeof Q=="boolean")continue;let ae=az(U.prevProp,Q)||V===p&&U.isActive&&!S&&K||R>I&&K,Ge=!1;const Re=Array.isArray(Q)?Q:[Q];let Me=Re.reduce(i,{});ue===!1&&(Me={});const{prevResolvedValues:$e={}}=U,Ue={...$e,...Me},ce=Te=>{ae=!0,C.has(Te)&&(Ge=!0,C.delete(Te)),U.needsAnimating[Te]=!0};for(const Te in Ue){const Ne=Me[Te],We=$e[Te];if(P.hasOwnProperty(Te))continue;let tt=!1;pp(Ne)&&pp(We)?tt=!fk(Ne,We):tt=Ne!==We,tt?Ne!==void 0?ce(Te):C.add(Te):Ne!==void 0&&C.has(Te)?ce(Te):U.protectedKeys[Te]=!0}U.prevProp=Q,U.prevResolvedValues=Me,U.isActive&&(P={...P,...Me}),r&&e.blockInitialAnimation&&(ae=!1),ae&&(!S||Ge)&&T.push(...Re.map(Te=>({animation:Te,options:{type:V,...f}})))}if(C.size){const R={};C.forEach(V=>{const U=e.getBaseTarget(V);U!==void 0&&(R[V]=U)}),T.push({animation:R})}let M=!!T.length;return r&&(y.initial===!1||y.initial===y.animate)&&!e.manuallyAnimateOnMount&&(M=!1),r=!1,M?t(T):Promise.resolve()}function c(f,p,y){var g;if(n[f].isActive===p)return Promise.resolve();(g=e.variantChildren)===null||g===void 0||g.forEach(C=>{var P;return(P=C.animationState)===null||P===void 0?void 0:P.setActive(f,p)}),n[f].isActive=p;const T=s(y,f);for(const C in n)n[C].protectedKeys={};return T}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n}}function az(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!fk(t,e):!1}function uc(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function sz(){return{animate:uc(!0),whileInView:uc(),whileHover:uc(),whileTap:uc(),whileDrag:uc(),whileFocus:uc(),exit:uc()}}class lz extends Ou{constructor(t){super(t),t.animationState||(t.animationState=oz(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Yp(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let uz=0;class cz extends Ou{constructor(){super(...arguments),this.id=uz++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const fz={animation:{Feature:lz},exit:{Feature:cz}},tS=(e,t)=>Math.abs(e-t);function dz(e,t){const n=tS(e.x,t.x),r=tS(e.y,t.y);return Math.sqrt(n**2+r**2)}class Uk{constructor(t,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 g=uv(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,C=dz(g.offset,{x:0,y:0})>=3;if(!T&&!C)return;const{point:P}=g,{timestamp:I}=Fi;this.history.push({...P,timestamp:I});const{onStart:M,onMove:R}=this.handlers;T||(M&&M(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,g)},this.handlePointerMove=(g,T)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=lv(T,this.transformPagePoint),Nn.update(this.updatePoint,!0)},this.handlePointerUp=(g,T)=>{this.end();const{onEnd:C,onSessionEnd:P,resumeAnimation:I}=this.handlers;if(this.dragSnapToOrigin&&I&&I(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const M=uv(g.type==="pointercancel"?this.lastMoveEventInfo:lv(T,this.transformPagePoint),this.history);this.startEvent&&C&&C(g,M),P&&P(g,M)},!ak(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=Xp(t),c=lv(s,this.transformPagePoint),{point:f}=c,{timestamp:p}=Fi;this.history=[{...f,timestamp:p}];const{onSessionStart:y}=n;y&&y(t,uv(c,this.history)),this.removeListeners=vu(Sl(this.contextWindow,"pointermove",this.handlePointerMove),Sl(this.contextWindow,"pointerup",this.handlePointerUp),Sl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Dl(this.updatePoint)}}function lv(e,t){return t?{point:t(e.point)}:e}function nS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function uv({point:e},t){return{point:e,delta:nS(e,Wk(t)),offset:nS(e,hz(t)),velocity:pz(t,.1)}}function hz(e){return e[0]}function Wk(e){return e[e.length-1]}function pz(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Wk(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>mu(t)));)n--;if(!r)return{x:0,y:0};const o=Tl(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Ko(e){return e.max-e.min}function wm(e,t=0,n=.01){return Math.abs(e-t)<=n}function rS(e,t,n,r=.5){e.origin=r,e.originPoint=Kn(t.min,t.max,e.origin),e.scale=Ko(n)/Ko(t),(wm(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Kn(n.min,n.max,e.origin)-e.originPoint,(wm(e.translate)||isNaN(e.translate))&&(e.translate=0)}function bd(e,t,n,r){rS(e.x,t.x,n.x,r?r.originX:void 0),rS(e.y,t.y,n.y,r?r.originY:void 0)}function iS(e,t,n){e.min=n.min+t.min,e.max=e.min+Ko(t)}function gz(e,t,n){iS(e.x,t.x,n.x),iS(e.y,t.y,n.y)}function oS(e,t,n){e.min=t.min-n.min,e.max=e.min+Ko(t)}function wd(e,t,n){oS(e.x,t.x,n.x),oS(e.y,t.y,n.y)}function vz(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Kn(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Kn(n,e,r.max):Math.min(e,n)),e}function aS(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function mz(e,{top:t,left:n,bottom:r,right:i}){return{x:aS(e.x,n,i),y:aS(e.y,t,r)}}function sS(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function yz(e,t){return{x:sS(e.x,t.x),y:sS(e.y,t.y)}}function bz(e,t){let n=.5;const r=Ko(e),i=Ko(t);return i>r?n=Md(t.min,t.max-r,e.min):r>i&&(n=Md(e.min,e.max-i,t.min)),Su(0,1,n)}function wz(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const xm=.35;function xz(e=xm){return e===!1?e=0:e===!0&&(e=xm),{x:lS(e,"left","right"),y:lS(e,"top","bottom")}}function lS(e,t,n){return{min:uS(e,t),max:uS(e,n)}}function uS(e,t){return typeof e=="number"?e:e[t]||0}const cS=()=>({translate:0,scale:1,origin:0,originPoint:0}),mf=()=>({x:cS(),y:cS()}),fS=()=>({min:0,max:0}),Cr=()=>({x:fS(),y:fS()});function Ta(e){return[e("x"),e("y")]}function zk({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Sz({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Tz(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function cv(e){return e===void 0||e===1}function Sm({scale:e,scaleX:t,scaleY:n}){return!cv(e)||!cv(t)||!cv(n)}function dc(e){return Sm(e)||Yk(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Yk(e){return dS(e.x)||dS(e.y)}function dS(e){return e&&e!=="0%"}function bp(e,t,n){const r=e-n,i=t*r;return n+i}function hS(e,t,n,r,i){return i!==void 0&&(e=bp(e,i,r)),bp(e,n,r)+t}function Tm(e,t=0,n=1,r,i){e.min=hS(e.min,t,n,r,i),e.max=hS(e.max,t,n,r,i)}function Gk(e,{x:t,y:n}){Tm(e.x,t.translate,t.scale,t.originPoint),Tm(e.y,n.translate,n.scale,n.originPoint)}function Cz(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let c=0;c<i;c++){o=n[c],s=o.projectionDelta;const f=o.instance;f&&f.style&&f.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&yf(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Gk(e,s)),r&&dc(o.latestValues)&&yf(e,o.latestValues))}t.x=pS(t.x),t.y=pS(t.y)}function pS(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function fu(e,t){e.min=e.min+t,e.max=e.max+t}function gS(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=Kn(e.min,e.max,o);Tm(e,t[n],t[r],s,t.scale)}const Ez=["x","scaleX","originX"],kz=["y","scaleY","originY"];function yf(e,t){gS(e.x,t,Ez),gS(e.y,t,kz)}function qk(e,t){return zk(Tz(e.getBoundingClientRect(),t))}function Oz(e,t,n){const r=qk(e,n),{scroll:i}=t;return i&&(fu(r.x,i.offset.x),fu(r.y,i.offset.y)),r}const Xk=({current:e})=>e?e.ownerDocument.defaultView:null,Dz=new WeakMap;class _z{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Cr(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=y=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Xp(y,"page").point)},o=(y,g)=>{const{drag:T,dragPropagation:C,onDragStart:P}=this.getProps();if(T&&!C&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=lk(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),Ta(M=>{let R=this.getAxisMotionValue(M).get()||0;if(Bs.test(R)){const{projection:V}=this.visualElement;if(V&&V.layout){const U=V.layout.layoutBox[M];U&&(R=Ko(U)*(parseFloat(R)/100))}}this.originPoint[M]=R}),P&&Nn.update(()=>P(y,g),!1,!0);const{animationState:I}=this.visualElement;I&&I.setActive("whileDrag",!0)},s=(y,g)=>{const{dragPropagation:T,dragDirectionLock:C,onDirectionLock:P,onDrag:I}=this.getProps();if(!T&&!this.openGlobalLock)return;const{offset:M}=g;if(C&&this.currentDirection===null){this.currentDirection=Pz(M),this.currentDirection!==null&&P&&P(this.currentDirection);return}this.updateAxis("x",g.point,M),this.updateAxis("y",g.point,M),this.visualElement.render(),I&&I(y,g)},c=(y,g)=>this.stop(y,g),f=()=>Ta(y=>{var g;return this.getAnimationState(y)==="paused"&&((g=this.getAxisMotionValue(y).animation)===null||g===void 0?void 0:g.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new Uk(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:c,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:Xk(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Nn.update(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.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(t,n,r){const{drag:i}=this.getProps();if(!r||!Ih(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=vz(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&gf(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=mz(i.layoutBox,n):this.constraints=!1,this.elastic=xz(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ta(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=wz(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!gf(t))return!1;const r=t.current;os(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 s=yz(i.layout.layoutBox,o);if(n){const c=n(Sz(s));this.hasMutatedConstraints=!!c,c&&(s=zk(c))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},p=Ta(y=>{if(!Ih(y,n,this.currentDirection))return;let g=f&&f[y]||{};s&&(g={min:0,max:0});const T=i?200:1e6,C=i?40:1e7,P={type:"inertia",velocity:r?t[y]:0,bounceStiffness:T,bounceDamping:C,timeConstant:750,restDelta:1,restSpeed:10,...o,...g};return this.startAxisValueAnimation(y,P)});return Promise.all(p).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(By(t,r,0,n))}stopAnimation(){Ta(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ta(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ta(n=>{const{drag:r}=this.getProps();if(!Ih(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:c}=i.layout.layoutBox[n];o.set(t[n]-Kn(s,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!gf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ta(s=>{const c=this.getAxisMotionValue(s);if(c){const f=c.get();i[s]=bz({min:f,max:f},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ta(s=>{if(!Ih(s,t,null))return;const c=this.getAxisMotionValue(s),{min:f,max:p}=this.constraints[s];c.set(Kn(f,p,i[s]))})}addListeners(){if(!this.visualElement.current)return;Dz.set(this.visualElement,this);const t=this.visualElement.current,n=Sl(t,"pointerdown",f=>{const{drag:p,dragListener:y=!0}=this.getProps();p&&y&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();gf(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 s=bl(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p})=>{this.isDragging&&p&&(Ta(y=>{const g=this.getAxisMotionValue(y);g&&(this.originPoint[y]+=f[y].translate,g.set(g.get()+f[y].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=xm,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:c}}}function Ih(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Pz(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Rz extends Ou{constructor(t){super(t),this.removeGroupControls=ar,this.removeListeners=ar,this.controls=new _z(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ar}unmount(){this.removeGroupControls(),this.removeListeners()}}const vS=e=>(t,n)=>{e&&Nn.update(()=>e(t,n))};class Iz extends Ou{constructor(){super(...arguments),this.removePointerDownListener=ar}onPointerDown(t){this.session=new Uk(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Xk(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:vS(t),onStart:vS(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&Nn.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=Sl(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Az(){const e=q.useContext(Ty);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=q.useId();return q.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const Yh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function mS(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const id={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(It.test(e))e=parseFloat(e);else return e;const n=mS(e,t.target.x),r=mS(e,t.target.y);return`${n}% ${r}%`}},Mz={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Tu.parse(e);if(i.length>5)return r;const o=Tu.createTransformer(e),s=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,f=n.y.scale*t.y;i[0+s]/=c,i[1+s]/=f;const p=Kn(c,f,.5);return typeof i[2+s]=="number"&&(i[2+s]/=p),typeof i[3+s]=="number"&&(i[3+s]/=p),o(i)}};class Lz extends q.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;UH(Fz),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()})),Yh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Nn.postRender(()=>{const c=s.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Kk(e){const[t,n]=Az(),r=q.useContext(zE);return q.createElement(Lz,{...e,layoutGroup:r,switchLayoutGroup:q.useContext(YE),isPresent:t,safeToRemove:n})}const Fz={borderRadius:{...id,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:id,borderTopRightRadius:id,borderBottomLeftRadius:id,borderBottomRightRadius:id,boxShadow:Mz},Zk=["TopLeft","TopRight","BottomLeft","BottomRight"],Nz=Zk.length,yS=e=>typeof e=="string"?parseFloat(e):e,bS=e=>typeof e=="number"||It.test(e);function jz(e,t,n,r,i,o){i?(e.opacity=Kn(0,n.opacity!==void 0?n.opacity:1,Bz(r)),e.opacityExit=Kn(t.opacity!==void 0?t.opacity:1,0,$z(r))):o&&(e.opacity=Kn(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<Nz;s++){const c=`border${Zk[s]}Radius`;let f=wS(t,c),p=wS(n,c);if(f===void 0&&p===void 0)continue;f||(f=0),p||(p=0),f===0||p===0||bS(f)===bS(p)?(e[c]=Math.max(Kn(yS(f),yS(p),r),0),(Bs.test(p)||Bs.test(f))&&(e[c]+="%")):e[c]=p}(t.rotate||n.rotate)&&(e.rotate=Kn(t.rotate||0,n.rotate||0,r))}function wS(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Bz=Jk(0,.5,wk),$z=Jk(.5,.95,ar);function Jk(e,t,n){return r=>r<e?0:r>t?1:n(Md(e,t,r))}function xS(e,t){e.min=t.min,e.max=t.max}function Sa(e,t){xS(e.x,t.x),xS(e.y,t.y)}function SS(e,t,n,r,i){return e-=t,e=bp(e,1/n,r),i!==void 0&&(e=bp(e,1/i,r)),e}function Vz(e,t=0,n=1,r=.5,i,o=e,s=e){if(Bs.test(t)&&(t=parseFloat(t),t=Kn(s.min,s.max,t/100)-s.min),typeof t!="number")return;let c=Kn(o.min,o.max,r);e===o&&(c-=t),e.min=SS(e.min,t,n,c,i),e.max=SS(e.max,t,n,c,i)}function TS(e,t,[n,r,i],o,s){Vz(e,t[n],t[r],t[i],t.scale,o,s)}const Hz=["x","scaleX","originX"],Uz=["y","scaleY","originY"];function CS(e,t,n,r){TS(e.x,t,Hz,n?n.x:void 0,r?r.x:void 0),TS(e.y,t,Uz,n?n.y:void 0,r?r.y:void 0)}function ES(e){return e.translate===0&&e.scale===1}function Qk(e){return ES(e.x)&&ES(e.y)}function Wz(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function eO(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function kS(e){return Ko(e.x)/Ko(e.y)}class zz{constructor(){this.members=[]}add(t){$y(this.members,t),t.scheduleRender()}remove(t){if(Vy(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===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(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function OS(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.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 s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||"none"}const Yz=(e,t)=>e.depth-t.depth;class Gz{constructor(){this.children=[],this.isDirty=!1}add(t){$y(this.children,t),this.isDirty=!0}remove(t){Vy(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Yz),this.isDirty=!1,this.children.forEach(t)}}function qz(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Dl(r),e(o-t))};return Nn.read(r,!0),()=>Dl(r)}function Xz(e){window.MotionDebug&&window.MotionDebug.record(e)}function Kz(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Zz(e,t,n){const r=_o(e)?e:kf(e);return r.start(By("",r,t,n)),r.animation}const DS=["","X","Y","Z"],Jz={visibility:"hidden"},_S=1e3;let Qz=0;const hc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function tO({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},c=t==null?void 0:t()){this.id=Qz++,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,hc.totalNodes=hc.resolvedTargetDeltas=hc.recalculatedProjection=0,this.nodes.forEach(n5),this.nodes.forEach(s5),this.nodes.forEach(l5),this.nodes.forEach(r5),Xz(hc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,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 Gz)}addEventListener(s,c){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Hy),this.eventHandlers.get(s).add(c)}notifyListeners(s,...c){const f=this.eventHandlers.get(s);f&&f.notify(...c)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Kz(s),this.instance=s;const{layoutId:f,layout:p,visualElement:y}=this.options;if(y&&!y.current&&y.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(p||f)&&(this.isLayoutDirty=!0),e){let g;const T=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=qz(T,250),Yh.hasAnimatedSinceResize&&(Yh.hasAnimatedSinceResize=!1,this.nodes.forEach(RS))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&y&&(f||p)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:T,hasRelativeTargetChanged:C,layout:P})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const I=this.options.transition||y.getDefaultTransition()||h5,{onLayoutAnimationStart:M,onLayoutAnimationComplete:R}=y.getProps(),V=!this.targetLayout||!eO(this.targetLayout,P)||C,U=!T&&C;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||U||T&&(V||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,U);const Q={...jy(I,"layout"),onPlay:M,onComplete:R};(y.shouldReduceMotion||this.options.layoutRoot)&&(Q.delay=0,Q.type=!1),this.startAnimation(Q)}else T||RS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=P})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Dl(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(u5),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!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 g=this.path[y];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.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(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(PS);return}this.isUpdating||this.nodes.forEach(o5),this.isUpdating=!1,this.nodes.forEach(a5),this.nodes.forEach(e5),this.nodes.forEach(t5),this.clearAllSnapshots();const c=performance.now();Fi.delta=Su(0,1e3/60,c-Fi.timestamp),Fi.timestamp=c,Fi.isProcessing=!0,tv.update.process(Fi),tv.preRender.process(Fi),tv.render.process(Fi),Fi.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(i5),this.sharedNodes.forEach(c5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Nn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Nn.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 s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Cr(),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,s?s.layoutBox:void 0)}updateScroll(s="measure"){let c=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(c=!1),c&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform,c=this.projectionDelta&&!Qk(this.projectionDelta),f=this.getTransformTemplate(),p=f?f(this.latestValues,""):void 0,y=p!==this.prevTransformTemplateValue;s&&(c||dc(this.latestValues)||y)&&(i(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const c=this.measurePageBox();let f=this.removeElementScroll(c);return s&&(f=this.removeTransform(f)),p5(f),{animationId:this.root.animationId,measuredBox:c,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return Cr();const c=s.measureViewportBox(),{scroll:f}=this.root;return f&&(fu(c.x,f.offset.x),fu(c.y,f.offset.y)),c}removeElementScroll(s){const c=Cr();Sa(c,s);for(let f=0;f<this.path.length;f++){const p=this.path[f],{scroll:y,options:g}=p;if(p!==this.root&&y&&g.layoutScroll){if(y.isRoot){Sa(c,s);const{scroll:T}=this.root;T&&(fu(c.x,-T.offset.x),fu(c.y,-T.offset.y))}fu(c.x,y.offset.x),fu(c.y,y.offset.y)}}return c}applyTransform(s,c=!1){const f=Cr();Sa(f,s);for(let p=0;p<this.path.length;p++){const y=this.path[p];!c&&y.options.layoutScroll&&y.scroll&&y!==y.root&&yf(f,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),dc(y.latestValues)&&yf(f,y.latestValues)}return dc(this.latestValues)&&yf(f,this.latestValues),f}removeTransform(s){const c=Cr();Sa(c,s);for(let f=0;f<this.path.length;f++){const p=this.path[f];if(!p.instance||!dc(p.latestValues))continue;Sm(p.latestValues)&&p.updateSnapshot();const y=Cr(),g=p.measurePageBox();Sa(y,g),CS(c,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,y)}return dc(this.latestValues)&&CS(c,this.latestValues),c}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==Fi.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!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(!(s||p&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:g,layoutId:T}=this.options;if(!(!this.layout||!(g||T))){if(this.resolvedRelativeTargetAt=Fi.timestamp,!this.targetDelta&&!this.relativeTarget){const C=this.getClosestProjectingParent();C&&C.layout&&this.animationProgress!==1?(this.relativeParent=C,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Cr(),this.relativeTargetOrigin=Cr(),wd(this.relativeTargetOrigin,this.layout.layoutBox,C.layout.layoutBox),Sa(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Cr(),this.targetWithTransforms=Cr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),gz(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Sa(this.target,this.layout.layoutBox),Gk(this.target,this.targetDelta)):Sa(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const C=this.getClosestProjectingParent();C&&!!C.resumingFrom==!!this.resumingFrom&&!C.options.layoutScroll&&C.target&&this.animationProgress!==1?(this.relativeParent=C,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Cr(),this.relativeTargetOrigin=Cr(),wd(this.relativeTargetOrigin,this.target,C.target),Sa(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}hc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Sm(this.parent.latestValues)||Yk(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 s;const c=this.getLead(),f=!!this.resumingFrom||this!==c;let p=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(p=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===Fi.timestamp&&(p=!1),p)return;const{layout:y,layoutId:g}=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||g))return;Sa(this.layoutCorrected,this.layout.layoutBox);const T=this.treeScale.x,C=this.treeScale.y;Cz(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:P}=c;if(!P){this.projectionTransform&&(this.projectionDelta=mf(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=mf(),this.projectionDeltaWithTransform=mf());const I=this.projectionTransform;bd(this.projectionDelta,this.layoutCorrected,P,this.latestValues),this.projectionTransform=OS(this.projectionDelta,this.treeScale),(this.projectionTransform!==I||this.treeScale.x!==T||this.treeScale.y!==C)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",P)),hc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,c=!1){const f=this.snapshot,p=f?f.latestValues:{},y={...this.latestValues},g=mf();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const T=Cr(),C=f?f.source:void 0,P=this.layout?this.layout.source:void 0,I=C!==P,M=this.getStack(),R=!M||M.members.length<=1,V=!!(I&&!R&&this.options.crossfade===!0&&!this.path.some(d5));this.animationProgress=0;let U;this.mixTargetDelta=Q=>{const K=Q/1e3;IS(g.x,s.x,K),IS(g.y,s.y,K),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(wd(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f5(this.relativeTarget,this.relativeTargetOrigin,T,K),U&&Wz(this.relativeTarget,U)&&(this.isProjectionDirty=!1),U||(U=Cr()),Sa(U,this.relativeTarget)),I&&(this.animationValues=y,jz(y,p,this.latestValues,K,V,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=K},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Dl(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Nn.update(()=>{Yh.hasAnimatedSinceResize=!0,this.currentAnimation=Zz(0,_S,{...s,onUpdate:c=>{this.mixTargetDelta(c),s.onUpdate&&s.onUpdate(c)},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(_S),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:c,target:f,layout:p,latestValues:y}=s;if(!(!c||!f||!p)){if(this!==s&&this.layout&&p&&nO(this.options.animationType,this.layout.layoutBox,p.layoutBox)){f=this.target||Cr();const g=Ko(this.layout.layoutBox.x);f.x.min=s.target.x.min,f.x.max=f.x.min+g;const T=Ko(this.layout.layoutBox.y);f.y.min=s.target.y.min,f.y.max=f.y.min+T}Sa(c,f),yf(c,y),bd(this.projectionDeltaWithTransform,this.layoutCorrected,c,y)}}registerSharedNode(s,c){this.sharedNodes.has(s)||this.sharedNodes.set(s,new zz),this.sharedNodes.get(s).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 s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:c}=this.options;return c?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:c}=this.options;return c?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:c,preserveFollowOpacity:f}={}){const p=this.getStack();p&&p.promote(this,f),s&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let c=!1;const{latestValues:f}=s;if((f.rotate||f.rotateX||f.rotateY||f.rotateZ)&&(c=!0),!c)return;const p={};for(let y=0;y<DS.length;y++){const g="rotate"+DS[y];f[g]&&(p[g]=f[g],s.setStaticValue(g,0))}s.render();for(const y in p)s.setStaticValue(y,p[y]);s.scheduleRender()}getProjectionStyles(s){var c,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Jz;const p={visibility:""},y=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=zh(s==null?void 0:s.pointerEvents)||"",p.transform=y?y(this.latestValues,""):"none",p;const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){const I={};return this.options.layoutId&&(I.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,I.pointerEvents=zh(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!dc(this.latestValues)&&(I.transform=y?y({},""):"none",this.hasProjected=!1),I}const T=g.animationValues||g.latestValues;this.applyTransformsToTarget(),p.transform=OS(this.projectionDeltaWithTransform,this.treeScale,T),y&&(p.transform=y(T,p.transform));const{x:C,y:P}=this.projectionDelta;p.transformOrigin=`${C.origin*100}% ${P.origin*100}% 0`,g.animationValues?p.opacity=g===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=g===this?T.opacity!==void 0?T.opacity:"":T.opacityExit!==void 0?T.opacityExit:0;for(const I in dp){if(T[I]===void 0)continue;const{correct:M,applyTo:R}=dp[I],V=p.transform==="none"?T[I]:M(T[I],g);if(R){const U=R.length;for(let Q=0;Q<U;Q++)p[R[Q]]=V}else p[I]=V}return this.options.layoutId&&(p.pointerEvents=g===this?zh(s==null?void 0:s.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var c;return(c=s.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(PS),this.root.sharedNodes.clear()}}}function e5(e){e.updateLayout()}function t5(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?Ta(g=>{const T=s?n.measuredBox[g]:n.layoutBox[g],C=Ko(T);T.min=r[g].min,T.max=T.min+C}):nO(o,n.layoutBox,r)&&Ta(g=>{const T=s?n.measuredBox[g]:n.layoutBox[g],C=Ko(r[g]);T.max=T.min+C,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+C)});const c=mf();bd(c,r,n.layoutBox);const f=mf();s?bd(f,e.applyTransform(i,!0),n.measuredBox):bd(f,r,n.layoutBox);const p=!Qk(c);let y=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:T,layout:C}=g;if(T&&C){const P=Cr();wd(P,n.layoutBox,T.layoutBox);const I=Cr();wd(I,r,C.layoutBox),eO(P,I)||(y=!0),g.options.layoutRoot&&(e.relativeTarget=I,e.relativeTargetOrigin=P,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:f,layoutDelta:c,hasLayoutChanged:p,hasRelativeTargetChanged:y})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function n5(e){hc.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function r5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function i5(e){e.clearSnapshot()}function PS(e){e.clearMeasurements()}function o5(e){e.isLayoutDirty=!1}function a5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function RS(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function s5(e){e.resolveTargetDelta()}function l5(e){e.calcProjection()}function u5(e){e.resetRotation()}function c5(e){e.removeLeadSnapshot()}function IS(e,t,n){e.translate=Kn(t.translate,0,n),e.scale=Kn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function AS(e,t,n,r){e.min=Kn(t.min,n.min,r),e.max=Kn(t.max,n.max,r)}function f5(e,t,n,r){AS(e.x,t.x,n.x,r),AS(e.y,t.y,n.y,r)}function d5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const h5={duration:.45,ease:[.4,0,.1,1]},MS=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),LS=MS("applewebkit/")&&!MS("chrome/")?Math.round:ar;function FS(e){e.min=LS(e.min),e.max=LS(e.max)}function p5(e){FS(e.x),FS(e.y)}function nO(e,t,n){return e==="position"||e==="preserve-aspect"&&!wm(kS(t),kS(n),.2)}const g5=tO({attachResizeListener:(e,t)=>bl(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),fv={current:void 0},rO=tO({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!fv.current){const e=new g5({});e.mount(window),e.setOptions({layoutScroll:!0}),fv.current=e}return fv.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),v5={pan:{Feature:Iz},drag:{Feature:Rz,ProjectionNode:rO,MeasureLayout:Kk}},m5=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function y5(e){const t=m5.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}const b5=4;function Cm(e,t,n=1){os(n<=b5,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=y5(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return Bk(s)?parseFloat(s):s}else return hm(i)?Cm(i,t,n+1):i}function w5(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const o=i.get();if(!hm(o))return;const s=Cm(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!hm(o))continue;const s=Cm(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const x5=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),iO=e=>x5.has(e),S5=e=>Object.keys(e).some(iO),Ah=e=>e===_c||e===It,NS=(e,t)=>parseFloat(e.split(", ")[t]),jS=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return NS(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?NS(o[1],e):0}},T5=new Set(["x","y","z"]),C5=Yd.filter(e=>!T5.has(e));function E5(e){const t=[];return C5.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Of={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:jS(4,13),y:jS(5,14)};Of.translateX=Of.x;Of.translateY=Of.y;const k5=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,c={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(p=>{c[p]=Of[p](r,o)}),t.render();const f=t.measureViewportBox();return n.forEach(p=>{const y=t.getValue(p);y&&y.jump(c[p]),e[p]=Of[p](f,o)}),e},O5=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(iO);let o=[],s=!1;const c=[];if(i.forEach(f=>{const p=e.getValue(f);if(!e.hasValue(f))return;let y=n[f],g=rd(y);const T=t[f];let C;if(pp(T)){const P=T.length,I=T[0]===null?1:0;y=T[I],g=rd(y);for(let M=I;M<P&&T[M]!==null;M++)C?os(rd(T[M])===C,"All keyframes must be of the same type"):(C=rd(T[M]),os(C===g||Ah(g)&&Ah(C),"Keyframes must be of the same dimension as the current value"))}else C=rd(T);if(g!==C)if(Ah(g)&&Ah(C)){const P=p.get();typeof P=="string"&&p.set(parseFloat(P)),typeof T=="string"?t[f]=parseFloat(T):Array.isArray(T)&&C===It&&(t[f]=T.map(parseFloat))}else g!=null&&g.transform&&(C!=null&&C.transform)&&(y===0||T===0)?y===0?p.set(C.transform(y)):t[f]=g.transform(T):(s||(o=E5(e),s=!0),c.push(f),r[f]=r[f]!==void 0?r[f]:t[f],p.jump(T))}),c.length){const f=c.indexOf("height")>=0?window.pageYOffset:null,p=k5(t,e,c);return o.length&&o.forEach(([y,g])=>{e.getValue(y).set(g)}),e.render(),zp&&f!==null&&window.scrollTo({top:f}),{target:p,transitionEnd:r}}else return{target:t,transitionEnd:r}};function D5(e,t,n,r){return S5(t)?O5(e,t,n,r):{target:t,transitionEnd:r}}const _5=(e,t,n,r)=>{const i=w5(e,t,r);return t=i.target,r=i.transitionEnd,D5(e,t,n,r)},Em={current:null},oO={current:!1};function P5(){if(oO.current=!0,!!zp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Em.current=e.matches;e.addListener(t),t()}else Em.current=!1}function R5(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(_o(o))e.addValue(i,o),yp(r)&&r.add(i),process.env.NODE_ENV==="development"&&Uy(o.version==="10.18.0",`Attempting to mix Framer Motion versions ${o.version} with 10.18.0 may not work as expected.`);else if(_o(s))e.addValue(i,kf(o,{owner:e})),yp(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const c=e.getValue(i);!c.hasAnimated&&c.set(o)}else{const c=e.getStaticValue(i);e.addValue(i,kf(c!==void 0?c:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const BS=new WeakMap,aO=Object.keys(Ad),I5=aO.length,$S=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],A5=ky.length;class M5{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){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=()=>Nn.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=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=Gp(n),this.isVariantNode=WE(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...y}=this.scrapeMotionValuesFromProps(n,{});for(const g in y){const T=y[g];c[g]!==void 0&&_o(T)&&(T.set(c[g],!1),yp(p)&&p.add(g))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,BS.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),oO.current||P5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Em.current,process.env.NODE_ENV!=="production"&&Uy(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(){BS.delete(this.current),this.projection&&this.projection.unmount(),Dl(this.notifyUpdate),Dl(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Dc.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Nn.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let s,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?Xd(!1,f):os(!1,f)}for(let f=0;f<I5;f++){const p=aO[f],{isEnabled:y,Feature:g,ProjectionNode:T,MeasureLayout:C}=Ad[p];T&&(s=T),y(n)&&(!this.features[p]&&g&&(this.features[p]=new g(this)),C&&(c=C))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:f,layout:p,drag:y,dragConstraints:g,layoutScroll:T,layoutRoot:C}=n;this.projection.setOptions({layoutId:f,layout:p,alwaysMeasureLayout:!!y||g&&gf(g),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof p=="string"?p:"both",initialPromotionConfig:o,layoutScroll:T,layoutRoot:C})}return c}updateFeatures(){for(const t in this.features){const n=this.features[t];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):Cr()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<$S.length;r++){const i=$S[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=t["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=R5(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)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<A5;r++){const i=ky[r],o=this.props[i];(Id(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=kf(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=Ay(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!_o(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Hy),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class sO extends M5{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},o){let s=KW(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){qW(this,r,s);const c=_5(this,r,s,n);n=c.transitionEnd,r=c.target}return{transition:t,transitionEnd:n,...r}}}function L5(e){return window.getComputedStyle(e)}class F5 extends sO{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Dc.has(n)){const r=Ny(n);return r&&r.default||0}else{const r=L5(t),i=(XE(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return qk(t,n)}build(t,n,r,i){Dy(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Iy(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;_o(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){tk(t,n,r,i)}}class N5 extends sO{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Dc.has(n)){const r=Ny(n);return r&&r.default||0}return n=nk.has(n)?n:Cy(n),t.getAttribute(n)}measureInstanceViewportBox(){return Cr()}scrapeMotionValuesFromProps(t,n){return ik(t,n)}build(t,n,r,i){Py(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){rk(t,n,r,i)}mount(t){this.isSVGTag=Ry(t.tagName),super.mount(t)}}const j5=(e,t)=>Oy(e)?new N5(t,{enableHardwareAcceleration:!1}):new F5(t,{enableHardwareAcceleration:!0}),B5={layout:{ProjectionNode:rO,MeasureLayout:Kk}},$5={...fz,...AU,...v5,...B5},lO=VH((e,t)=>wU(e,t,$5,j5));function uO(e){return kp({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:[]}]})(e)}function cO(e){return kp({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:[]}]})(e)}function Wy(e,t){return t?e:void 0}function V5(e){return je.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...e,children:je.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 H5(e){const{renderChildren:t,parentRef:n,onlyChild:r}=e,[i,o]=q.useState({top:0,left:0}),s=q.useRef(null),[c,f]=q.useState("auto");return q.useLayoutEffect(()=>{if(n.current&&s.current){const p=n.current.getBoundingClientRect(),y=s.current.getBoundingClientRect();let g=p.top;const T=p.left+p.width,C=y.height+(window.innerHeight-p.top)>window.innerHeight;C&&(console.log("overtop"),f(window.innerHeight-p.top-50)),p.top+y.height>window.innerHeight&&!C&&(g=p.top-y.height+p.height),o({top:g,left:T})}},[n,s]),r?t({maxHeight:c}):Fm.createPortal(je.jsx("div",{ref:s,style:{position:"fixed",top:i.top,left:i.left,zIndex:1200},onDragStart:p=>{console.log("onDragStart Dropdown",p.target)},children:t({maxHeight:c})}),n.current)}function Df(){return Df=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Df.apply(null,arguments)}const U5=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Df}},Symbol.toStringTag,{value:"Module"}));function fO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,qh(e,t)}/*!
|
|
9
|
+
* content-type
|
|
10
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
11
|
+
* MIT Licensed
|
|
12
|
+
*/var VS=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,W5=/\\([\u000b\u0020-\u00ff])/g,z5=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,Y5=G5;function G5(e){if(!e)throw new TypeError("argument string is required");var t=typeof e=="object"?q5(e):e;if(typeof t!="string")throw new TypeError("argument string is required to be a string");var n=t.indexOf(";"),r=n!==-1?t.slice(0,n).trim():t.trim();if(!z5.test(r))throw new TypeError("invalid media type");var i=new X5(r.toLowerCase());if(n!==-1){var o,s,c;for(VS.lastIndex=n;s=VS.exec(t);){if(s.index!==n)throw new TypeError("invalid parameter format");n+=s[0].length,o=s[1].toLowerCase(),c=s[2],c.charCodeAt(0)===34&&(c=c.slice(1,-1),c.indexOf("\\")!==-1&&(c=c.replace(W5,"$1"))),i.parameters[o]=c}if(n!==t.length)throw new TypeError("invalid parameter format")}return i}function q5(e){var t;if(typeof e.getHeader=="function"?t=e.getHeader("content-type"):typeof e.headers=="object"&&(t=e.headers&&e.headers["content-type"]),typeof t!="string")throw new TypeError("content-type header is missing from object");return t}function X5(e){this.parameters=Object.create(null),this.type=e}var ff=new Map,dO=function(t){return t.cloneNode(!0)},HS=function(){return window.location.protocol==="file:"},hO=function(t,n,r){var i=new XMLHttpRequest;i.onreadystatechange=function(){try{if(!/\.svg/i.test(t)&&i.readyState===2){var o=i.getResponseHeader("Content-Type");if(!o)throw new Error("Content type not found");var s=Y5(o).type;if(!(s==="image/svg+xml"||s==="text/plain"))throw new Error("Invalid content type: ".concat(s))}if(i.readyState===4){if(i.status===404||i.responseXML===null)throw new Error(HS()?"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: "+t);if(i.status===200||HS()&&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",t),i.withCredentials=n,i.overrideMimeType&&i.overrideMimeType("text/xml"),i.send()},du={},US=function(t,n){du[t]=du[t]||[],du[t].push(n)},K5=function(t){for(var n=function(s,c){setTimeout(function(){if(Array.isArray(du[t])){var f=ff.get(t),p=du[t][s];f instanceof SVGSVGElement&&p(null,dO(f)),f instanceof Error&&p(f),s===du[t].length-1&&delete du[t]}},0)},r=0,i=du[t].length;r<i;r++)n(r)},Z5=function(t,n,r){if(ff.has(t)){var i=ff.get(t);if(i===void 0){US(t,r);return}if(i instanceof SVGSVGElement){r(null,dO(i));return}}ff.set(t,void 0),US(t,r),hO(t,n,function(o,s){var c;o?ff.set(t,o):((c=s.responseXML)===null||c===void 0?void 0:c.documentElement)instanceof SVGSVGElement&&ff.set(t,s.responseXML.documentElement),K5(t)})},J5=function(t,n,r){hO(t,n,function(i,o){var s;i?r(i):((s=o.responseXML)===null||s===void 0?void 0:s.documentElement)instanceof SVGSVGElement&&r(null,o.responseXML.documentElement)})},Q5=0,e4=function(){return++Q5},As=[],WS={},t4="http://www.w3.org/2000/svg",dv="http://www.w3.org/1999/xlink",zS=function(t,n,r,i,o,s,c){var f=t.getAttribute("data-src")||t.getAttribute("src");if(!f){c(new Error("Invalid data-src or src attribute"));return}if(As.indexOf(t)!==-1){As.splice(As.indexOf(t),1),t=null;return}As.push(t),t.setAttribute("src","");var p=i?Z5:J5;p(f,o,function(y,g){if(!g){As.splice(As.indexOf(t),1),t=null,c(y);return}var T=t.getAttribute("id");T&&g.setAttribute("id",T);var C=t.getAttribute("title");C&&g.setAttribute("title",C);var P=t.getAttribute("width");P&&g.setAttribute("width",P);var I=t.getAttribute("height");I&&g.setAttribute("height",I);var M=Array.from(new Set(Xo(Xo(Xo([],(g.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(t.getAttribute("class")||"").split(" "),!0))).join(" ").trim();g.setAttribute("class",M);var R=t.getAttribute("style");R&&g.setAttribute("style",R),g.setAttribute("data-src",f);var V=[].filter.call(t.attributes,function(We){return/^data-\w[\w-]*$/.test(We.name)});if(Array.prototype.forEach.call(V,function(We){We.name&&We.value&&g.setAttribute(We.name,We.value)}),r){var U={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"]},Q,K,ue,S,he;Object.keys(U).forEach(function(We){Q=We,ue=U[We],K=g.querySelectorAll(Q+"[id]");for(var tt=function(Be,ke){S=K[Be].id,he=S+"-"+e4();var _e;Array.prototype.forEach.call(ue,function(At){_e=g.querySelectorAll("["+At+'*="'+S+'"]');for(var Lt=0,Hn=_e.length;Lt<Hn;Lt++){var gr=_e[Lt].getAttribute(At);gr&&!gr.match(new RegExp('url\\("?#'+S+'"?\\)'))||_e[Lt].setAttribute(At,"url(#"+he+")")}});for(var ze=g.querySelectorAll("[*|href]"),it=[],dt=0,ht=ze.length;dt<ht;dt++){var ft=ze[dt].getAttributeNS(dv,"href");ft&&ft.toString()==="#"+K[Be].id&&it.push(ze[dt])}for(var bt=0,et=it.length;bt<et;bt++)it[bt].setAttributeNS(dv,"href","#"+he);K[Be].id=he},we=0,Ee=K.length;we<Ee;we++)tt(we)})}g.removeAttribute("xmlns:a");for(var ae=g.querySelectorAll("script"),Ge=[],Re,Me,$e=0,Ue=ae.length;$e<Ue;$e++)Me=ae[$e].getAttribute("type"),(!Me||Me==="application/ecmascript"||Me==="application/javascript"||Me==="text/javascript")&&(Re=ae[$e].innerText||ae[$e].textContent,Re&&Ge.push(Re),g.removeChild(ae[$e]));if(Ge.length>0&&(n==="always"||n==="once"&&!WS[f])){for(var ce=0,Te=Ge.length;ce<Te;ce++)new Function(Ge[ce])(window);WS[f]=!0}var Ne=g.querySelectorAll("style");if(Array.prototype.forEach.call(Ne,function(We){We.textContent+=""}),g.setAttribute("xmlns",t4),g.setAttribute("xmlns:xlink",dv),s(g),!t.parentNode){As.splice(As.indexOf(t),1),t=null,c(new Error("Parent node is null"));return}t.parentNode.replaceChild(g,t),As.splice(As.indexOf(t),1),t=null,c(null,g)})},n4=function(t,n){var r=n===void 0?{}:n,i=r.afterAll,o=i===void 0?function(){}:i,s=r.afterEach,c=s===void 0?function(){}:s,f=r.beforeEach,p=f===void 0?function(){}:f,y=r.cacheRequests,g=y===void 0?!0:y,T=r.evalScripts,C=T===void 0?"never":T,P=r.httpRequestWithCredentials,I=P===void 0?!1:P,M=r.renumerateIRIElements,R=M===void 0?!0:M;if(t&&"length"in t)for(var V=0,U=0,Q=t.length;U<Q;U++)zS(t[U],C,R,g,I,p,function(K,ue){c(K,ue),t&&"length"in t&&t.length===++V&&o(V)});else t?zS(t,C,R,g,I,p,function(K,ue){c(K,ue),o(1),t=null}):o(0)},km={exports:{}},Mh={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 YS;function r4(){if(YS)return mn;YS=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,C=e?Symbol.for("react.memo"):60115,P=e?Symbol.for("react.lazy"):60116,I=e?Symbol.for("react.block"):60121,M=e?Symbol.for("react.fundamental"):60117,R=e?Symbol.for("react.responder"):60118,V=e?Symbol.for("react.scope"):60119;function U(K){if(typeof K=="object"&&K!==null){var ue=K.$$typeof;switch(ue){case t:switch(K=K.type,K){case f:case p:case r:case o:case i:case g:return K;default:switch(K=K&&K.$$typeof,K){case c:case y:case P:case C:case s:return K;default:return ue}}case n:return ue}}}function Q(K){return U(K)===p}return mn.AsyncMode=f,mn.ConcurrentMode=p,mn.ContextConsumer=c,mn.ContextProvider=s,mn.Element=t,mn.ForwardRef=y,mn.Fragment=r,mn.Lazy=P,mn.Memo=C,mn.Portal=n,mn.Profiler=o,mn.StrictMode=i,mn.Suspense=g,mn.isAsyncMode=function(K){return Q(K)||U(K)===f},mn.isConcurrentMode=Q,mn.isContextConsumer=function(K){return U(K)===c},mn.isContextProvider=function(K){return U(K)===s},mn.isElement=function(K){return typeof K=="object"&&K!==null&&K.$$typeof===t},mn.isForwardRef=function(K){return U(K)===y},mn.isFragment=function(K){return U(K)===r},mn.isLazy=function(K){return U(K)===P},mn.isMemo=function(K){return U(K)===C},mn.isPortal=function(K){return U(K)===n},mn.isProfiler=function(K){return U(K)===o},mn.isStrictMode=function(K){return U(K)===i},mn.isSuspense=function(K){return U(K)===g},mn.isValidElementType=function(K){return typeof K=="string"||typeof K=="function"||K===r||K===p||K===o||K===i||K===g||K===T||typeof K=="object"&&K!==null&&(K.$$typeof===P||K.$$typeof===C||K.$$typeof===s||K.$$typeof===c||K.$$typeof===y||K.$$typeof===M||K.$$typeof===R||K.$$typeof===V||K.$$typeof===I)},mn.typeOf=U,mn}var yn={};/** @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 GS;function i4(){return GS||(GS=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,C=e?Symbol.for("react.memo"):60115,P=e?Symbol.for("react.lazy"):60116,I=e?Symbol.for("react.block"):60121,M=e?Symbol.for("react.fundamental"):60117,R=e?Symbol.for("react.responder"):60118,V=e?Symbol.for("react.scope"):60119;function U(et){return typeof et=="string"||typeof et=="function"||et===r||et===p||et===o||et===i||et===g||et===T||typeof et=="object"&&et!==null&&(et.$$typeof===P||et.$$typeof===C||et.$$typeof===s||et.$$typeof===c||et.$$typeof===y||et.$$typeof===M||et.$$typeof===R||et.$$typeof===V||et.$$typeof===I)}function Q(et){if(typeof et=="object"&&et!==null){var At=et.$$typeof;switch(At){case t:var Lt=et.type;switch(Lt){case f:case p:case r:case o:case i:case g:return Lt;default:var Hn=Lt&&Lt.$$typeof;switch(Hn){case c:case y:case P:case C:case s:return Hn;default:return At}}case n:return At}}}var K=f,ue=p,S=c,he=s,ae=t,Ge=y,Re=r,Me=P,$e=C,Ue=n,ce=o,Te=i,Ne=g,We=!1;function tt(et){return We||(We=!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.")),we(et)||Q(et)===f}function we(et){return Q(et)===p}function Ee(et){return Q(et)===c}function Le(et){return Q(et)===s}function Be(et){return typeof et=="object"&&et!==null&&et.$$typeof===t}function ke(et){return Q(et)===y}function _e(et){return Q(et)===r}function ze(et){return Q(et)===P}function it(et){return Q(et)===C}function dt(et){return Q(et)===n}function ht(et){return Q(et)===o}function ft(et){return Q(et)===i}function bt(et){return Q(et)===g}yn.AsyncMode=K,yn.ConcurrentMode=ue,yn.ContextConsumer=S,yn.ContextProvider=he,yn.Element=ae,yn.ForwardRef=Ge,yn.Fragment=Re,yn.Lazy=Me,yn.Memo=$e,yn.Portal=Ue,yn.Profiler=ce,yn.StrictMode=Te,yn.Suspense=Ne,yn.isAsyncMode=tt,yn.isConcurrentMode=we,yn.isContextConsumer=Ee,yn.isContextProvider=Le,yn.isElement=Be,yn.isForwardRef=ke,yn.isFragment=_e,yn.isLazy=ze,yn.isMemo=it,yn.isPortal=dt,yn.isProfiler=ht,yn.isStrictMode=ft,yn.isSuspense=bt,yn.isValidElementType=U,yn.typeOf=Q}()),yn}var qS;function pO(){return qS||(qS=1,process.env.NODE_ENV==="production"?Mh.exports=r4():Mh.exports=i4()),Mh.exports}/*
|
|
27
|
+
object-assign
|
|
28
|
+
(c) Sindre Sorhus
|
|
29
|
+
@license MIT
|
|
30
|
+
*/var hv,XS;function o4(){if(XS)return hv;XS=1;var e=Object.getOwnPropertySymbols,t=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 s={},c=0;c<10;c++)s["_"+String.fromCharCode(c)]=c;var f=Object.getOwnPropertyNames(s).map(function(y){return s[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 hv=i()?Object.assign:function(o,s){for(var c,f=r(o),p,y=1;y<arguments.length;y++){c=Object(arguments[y]);for(var g in c)t.call(c,g)&&(f[g]=c[g]);if(e){p=e(c);for(var T=0;T<p.length;T++)n.call(c,p[T])&&(f[p[T]]=c[p[T]])}}return f},hv}var pv,KS;function zy(){if(KS)return pv;KS=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return pv=e,pv}var gv,ZS;function gO(){return ZS||(ZS=1,gv=Function.call.bind(Object.prototype.hasOwnProperty)),gv}var vv,JS;function a4(){if(JS)return vv;JS=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=zy(),n={},r=gO();e=function(o){var s="Warning: "+o;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function i(o,s,c,f,p){if(process.env.NODE_ENV!=="production"){for(var y in o)if(r(o,y)){var g;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}g=o[y](s,y,f,c,null,t)}catch(P){g=P}if(g&&!(g instanceof Error)&&e((f||"React class")+": type specification of "+c+" `"+y+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". 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 instanceof Error&&!(g.message in n)){n[g.message]=!0;var C=p?p():"";e("Failed "+c+" type: "+g.message+(C??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},vv=i,vv}var mv,QS;function s4(){if(QS)return mv;QS=1;var e=pO(),t=o4(),n=zy(),r=gO(),i=a4(),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 s(){return null}return mv=function(c,f){var p=typeof Symbol=="function"&&Symbol.iterator,y="@@iterator";function g(we){var Ee=we&&(p&&we[p]||we[y]);if(typeof Ee=="function")return Ee}var T="<<anonymous>>",C={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:V(),arrayOf:U,element:Q(),elementType:K(),instanceOf:ue,node:Ge(),objectOf:he,oneOf:S,oneOfType:ae,shape:Me,exact:$e};function P(we,Ee){return we===Ee?we!==0||1/we===1/Ee:we!==we&&Ee!==Ee}function I(we,Ee){this.message=we,this.data=Ee&&typeof Ee=="object"?Ee:{},this.stack=""}I.prototype=Error.prototype;function M(we){if(process.env.NODE_ENV!=="production")var Ee={},Le=0;function Be(_e,ze,it,dt,ht,ft,bt){if(dt=dt||T,ft=ft||it,bt!==n){if(f){var et=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 et.name="Invariant Violation",et}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var At=dt+":"+it;!Ee[At]&&Le<3&&(o("You are manually calling a React.PropTypes validation function for the `"+ft+"` prop on `"+dt+"`. 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."),Ee[At]=!0,Le++)}}return ze[it]==null?_e?ze[it]===null?new I("The "+ht+" `"+ft+"` is marked as required "+("in `"+dt+"`, but its value is `null`.")):new I("The "+ht+" `"+ft+"` is marked as required in "+("`"+dt+"`, but its value is `undefined`.")):null:we(ze,it,dt,ht,ft)}var ke=Be.bind(null,!1);return ke.isRequired=Be.bind(null,!0),ke}function R(we){function Ee(Le,Be,ke,_e,ze,it){var dt=Le[Be],ht=Te(dt);if(ht!==we){var ft=Ne(dt);return new I("Invalid "+_e+" `"+ze+"` of type "+("`"+ft+"` supplied to `"+ke+"`, expected ")+("`"+we+"`."),{expectedType:we})}return null}return M(Ee)}function V(){return M(s)}function U(we){function Ee(Le,Be,ke,_e,ze){if(typeof we!="function")return new I("Property `"+ze+"` of component `"+ke+"` has invalid PropType notation inside arrayOf.");var it=Le[Be];if(!Array.isArray(it)){var dt=Te(it);return new I("Invalid "+_e+" `"+ze+"` of type "+("`"+dt+"` supplied to `"+ke+"`, expected an array."))}for(var ht=0;ht<it.length;ht++){var ft=we(it,ht,ke,_e,ze+"["+ht+"]",n);if(ft instanceof Error)return ft}return null}return M(Ee)}function Q(){function we(Ee,Le,Be,ke,_e){var ze=Ee[Le];if(!c(ze)){var it=Te(ze);return new I("Invalid "+ke+" `"+_e+"` of type "+("`"+it+"` supplied to `"+Be+"`, expected a single ReactElement."))}return null}return M(we)}function K(){function we(Ee,Le,Be,ke,_e){var ze=Ee[Le];if(!e.isValidElementType(ze)){var it=Te(ze);return new I("Invalid "+ke+" `"+_e+"` of type "+("`"+it+"` supplied to `"+Be+"`, expected a single ReactElement type."))}return null}return M(we)}function ue(we){function Ee(Le,Be,ke,_e,ze){if(!(Le[Be]instanceof we)){var it=we.name||T,dt=tt(Le[Be]);return new I("Invalid "+_e+" `"+ze+"` of type "+("`"+dt+"` supplied to `"+ke+"`, expected ")+("instance of `"+it+"`."))}return null}return M(Ee)}function S(we){if(!Array.isArray(we))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.")),s;function Ee(Le,Be,ke,_e,ze){for(var it=Le[Be],dt=0;dt<we.length;dt++)if(P(it,we[dt]))return null;var ht=JSON.stringify(we,function(bt,et){var At=Ne(et);return At==="symbol"?String(et):et});return new I("Invalid "+_e+" `"+ze+"` of value `"+String(it)+"` "+("supplied to `"+ke+"`, expected one of "+ht+"."))}return M(Ee)}function he(we){function Ee(Le,Be,ke,_e,ze){if(typeof we!="function")return new I("Property `"+ze+"` of component `"+ke+"` has invalid PropType notation inside objectOf.");var it=Le[Be],dt=Te(it);if(dt!=="object")return new I("Invalid "+_e+" `"+ze+"` of type "+("`"+dt+"` supplied to `"+ke+"`, expected an object."));for(var ht in it)if(r(it,ht)){var ft=we(it,ht,ke,_e,ze+"."+ht,n);if(ft instanceof Error)return ft}return null}return M(Ee)}function ae(we){if(!Array.isArray(we))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var Ee=0;Ee<we.length;Ee++){var Le=we[Ee];if(typeof Le!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+We(Le)+" at index "+Ee+"."),s}function Be(ke,_e,ze,it,dt){for(var ht=[],ft=0;ft<we.length;ft++){var bt=we[ft],et=bt(ke,_e,ze,it,dt,n);if(et==null)return null;et.data&&r(et.data,"expectedType")&&ht.push(et.data.expectedType)}var At=ht.length>0?", expected one of type ["+ht.join(", ")+"]":"";return new I("Invalid "+it+" `"+dt+"` supplied to "+("`"+ze+"`"+At+"."))}return M(Be)}function Ge(){function we(Ee,Le,Be,ke,_e){return Ue(Ee[Le])?null:new I("Invalid "+ke+" `"+_e+"` supplied to "+("`"+Be+"`, expected a ReactNode."))}return M(we)}function Re(we,Ee,Le,Be,ke){return new I((we||"React class")+": "+Ee+" type `"+Le+"."+Be+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ke+"`.")}function Me(we){function Ee(Le,Be,ke,_e,ze){var it=Le[Be],dt=Te(it);if(dt!=="object")return new I("Invalid "+_e+" `"+ze+"` of type `"+dt+"` "+("supplied to `"+ke+"`, expected `object`."));for(var ht in we){var ft=we[ht];if(typeof ft!="function")return Re(ke,_e,ze,ht,Ne(ft));var bt=ft(it,ht,ke,_e,ze+"."+ht,n);if(bt)return bt}return null}return M(Ee)}function $e(we){function Ee(Le,Be,ke,_e,ze){var it=Le[Be],dt=Te(it);if(dt!=="object")return new I("Invalid "+_e+" `"+ze+"` of type `"+dt+"` "+("supplied to `"+ke+"`, expected `object`."));var ht=t({},Le[Be],we);for(var ft in ht){var bt=we[ft];if(r(we,ft)&&typeof bt!="function")return Re(ke,_e,ze,ft,Ne(bt));if(!bt)return new I("Invalid "+_e+" `"+ze+"` key `"+ft+"` supplied to `"+ke+"`.\nBad object: "+JSON.stringify(Le[Be],null," ")+`
|
|
31
|
+
Valid keys: `+JSON.stringify(Object.keys(we),null," "));var et=bt(it,ft,ke,_e,ze+"."+ft,n);if(et)return et}return null}return M(Ee)}function Ue(we){switch(typeof we){case"number":case"string":case"undefined":return!0;case"boolean":return!we;case"object":if(Array.isArray(we))return we.every(Ue);if(we===null||c(we))return!0;var Ee=g(we);if(Ee){var Le=Ee.call(we),Be;if(Ee!==we.entries){for(;!(Be=Le.next()).done;)if(!Ue(Be.value))return!1}else for(;!(Be=Le.next()).done;){var ke=Be.value;if(ke&&!Ue(ke[1]))return!1}}else return!1;return!0;default:return!1}}function ce(we,Ee){return we==="symbol"?!0:Ee?Ee["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Ee instanceof Symbol:!1}function Te(we){var Ee=typeof we;return Array.isArray(we)?"array":we instanceof RegExp?"object":ce(Ee,we)?"symbol":Ee}function Ne(we){if(typeof we>"u"||we===null)return""+we;var Ee=Te(we);if(Ee==="object"){if(we instanceof Date)return"date";if(we instanceof RegExp)return"regexp"}return Ee}function We(we){var Ee=Ne(we);switch(Ee){case"array":case"object":return"an "+Ee;case"boolean":case"date":case"regexp":return"a "+Ee;default:return Ee}}function tt(we){return!we.constructor||!we.constructor.name?T:we.constructor.name}return C.checkPropTypes=i,C.resetWarningCache=i.resetWarningCache,C.PropTypes=C,C},mv}var yv,e1;function l4(){if(e1)return yv;e1=1;var e=zy();function t(){}function n(){}return n.resetWarningCache=t,yv=function(){function r(s,c,f,p,y,g){if(g!==e){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:t};return o.PropTypes=o,o},yv}if(process.env.NODE_ENV!=="production"){var u4=pO(),c4=!0;km.exports=s4()(u4.isElement,c4)}else km.exports=l4()();var Tr=km.exports;const Ea=Eu(Tr);var f4=function(t){var n=(t==null?void 0:t.ownerDocument)||document;return n.defaultView||window},d4=function(t,n){for(var r in t)if(!(r in n))return!0;for(var i in n)if(t[i]!==n[i])return!0;return!1},h4=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Lh="http://www.w3.org/2000/svg",t1="http://www.w3.org/1999/xlink",Zp=function(e){function t(){for(var r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=e.call.apply(e,[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}fO(t,e);var n=t.prototype;return n.renderSVG=function(){var i=this;if(this.reactWrapper instanceof f4(this.reactWrapper).Node){var o=this.props,s=o.desc,c=o.evalScripts,f=o.httpRequestWithCredentials,p=o.renumerateIRIElements,y=o.src,g=o.title,T=o.useRequestCache,C=this.props.onError,P=this.props.beforeInjection,I=this.props.afterInjection,M=this.props.wrapper,R,V;M==="svg"?(R=document.createElementNS(Lh,M),R.setAttribute("xmlns",Lh),R.setAttribute("xmlns:xlink",t1),V=document.createElementNS(Lh,M)):(R=document.createElement(M),V=document.createElement(M)),R.appendChild(V),V.dataset.src=y,this.nonReactWrapper=this.reactWrapper.appendChild(R);var U=function(S){if(i.removeSVG(),!i._isMounted){C(S);return}i.setState(function(){return{hasError:!0,isLoading:!1}},function(){C(S)})},Q=function(S,he){if(S){U(S);return}i._isMounted&&i.setState(function(){return{isLoading:!1}},function(){try{I(he)}catch(ae){U(ae)}})},K=function(S){if(S.setAttribute("role","img"),s){var he=S.querySelector(":scope > desc");he&&S.removeChild(he);var ae=document.createElement("desc");ae.innerHTML=s,S.prepend(ae)}if(g){var Ge=S.querySelector(":scope > title");Ge&&S.removeChild(Ge);var Re=document.createElement("title");Re.innerHTML=g,S.prepend(Re)}try{P(S)}catch(Me){U(Me)}};n4(V,{afterEach:Q,beforeEach:K,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;d4(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 s=i.loading;i.renumerateIRIElements,i.src,i.title,i.useRequestCache;var c=i.wrapper,f=Bm(i,h4),p=c;return bn.createElement(p,Df({},f,{ref:this.refCallback},c==="svg"?{xmlns:Lh,xmlnsXlink:t1}:{}),this.state.isLoading&&s&&bn.createElement(s,null),this.state.hasError&&o&&bn.createElement(o,null))},t}(bn.Component);Zp.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};Zp.propTypes={afterInjection:Tr.func,beforeInjection:Tr.func,desc:Tr.string,evalScripts:Tr.oneOf(["always","once","never"]),fallback:Tr.oneOfType([Tr.func,Tr.object,Tr.string]),httpRequestWithCredentials:Tr.bool,loading:Tr.oneOfType([Tr.func,Tr.object,Tr.string]),onError:Tr.func,renumerateIRIElements:Tr.bool,src:Tr.string.isRequired,title:Tr.string,useRequestCache:Tr.bool,wrapper:Tr.oneOf(["div","span","svg"])};const _f=new Map;_f.set("text",e=>{var t,n;return je.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(n=(t=e==null?void 0:e.name)==null?void 0:t.trim().at(0))==null?void 0:n.toUpperCase()})});_f.set("svgHtml",e=>{function t(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 je.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return je.jsx(t,{svgString:e.icon})});_f.set("svgHttp",e=>je.jsx(Zp,{src:e.icon,beforeInjection:t=>{t.setAttribute("style","margin: 0 auto;"),t.querySelectorAll("path").forEach(r=>{r.hasAttribute("fill")&&r.setAttribute("fill","currentColor"),r.hasAttribute("stroke")&&r.setAttribute("stroke","currentColor")})}}));_f.set("img",e=>je.jsx("img",{src:e.icon||"/",alt:e.name,style:{height:24,maxHeight:24,maxWidth:24}}));function p4(e){return e.icon=(e.icon||"").trim(),e.icon?e.icon.startsWith("<svg")?"svgHtml":e.icon.endsWith(".svg")?"svgHttp":"img":"text"}function vO({item:e}){return(_f.get(p4(e))||_f.get("text"))(e)}function g4(e){return je.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...e,children:je.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 v4(e){const{renderChildren:t,parentRef:n,onlyChild:r,dropdownLevel:i}=e,[o,s]=q.useState({top:0,left:0}),c=q.useRef(null),[f,p]=q.useState("auto");return q.useLayoutEffect(()=>{if(n.current&&c.current){const y=n.current.getBoundingClientRect(),g=c.current.getBoundingClientRect();let T,C;if(i===1)T=y.bottom,C=y.left,g.height+T>window.innerHeight?(p(window.innerHeight-T-50),T=y.bottom-g.height):T=y.bottom;else if(i>1){T=y.top,C=y.left+y.width;const P=g.height+(window.innerHeight-y.top)>window.innerHeight;P&&(console.log("DropDown-fav overtop"),p(window.innerHeight-y.top-50)),y.top+g.height>window.innerHeight&&!P&&(T=y.top-g.height+y.height)}s({top:T-64,left:C})}},[n,c,i]),r?t({maxHeight:f}):Fm.createPortal(je.jsx("div",{ref:c,style:{position:"fixed",top:o.top,left:`calc(${o.left}px - var(--global-menu-width))`,zIndex:1200},children:t({maxHeight:f})}),n.current)}const Pf=new Map;Pf.set("text",e=>{var t,n;return je.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(n=(t=e==null?void 0:e.name)==null?void 0:t.trim().at(0))==null?void 0:n.toUpperCase()})});Pf.set("svgHtml",e=>{function t(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 je.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return je.jsx(t,{svgString:e.icon})});Pf.set("svgHttp",e=>je.jsx(Zp,{src:e.icon,beforeInjection:t=>{t.setAttribute("style","margin: 0 auto;"),t.querySelectorAll("path").forEach(r=>{r.hasAttribute("fill")&&r.setAttribute("fill","currentColor"),r.hasAttribute("stroke")&&r.setAttribute("stroke","currentColor")})}}));Pf.set("img",e=>je.jsx("img",{src:e.icon||"/",alt:e.name,style:{height:24,maxHeight:24,maxWidth:24}}));function m4(e){return e.icon=(e.icon||"").trim(),e.icon?e.icon.startsWith("<svg")?"svgHtml":e.icon.endsWith(".svg")?"svgHttp":"img":"text"}function y4({item:e}){return(Pf.get(m4(e))||Pf.get("text"))(e)}function mO({...e}){var he,ae,Ge;const t=e.item,n=e.level||0,r=!!((he=e.item.children)!=null&&he.length),i=`level-${n}`,o=(Re,Me=i)=>`${Re} ${Me} `,[s,c]=q.useState(!1),[f,p]=q.useState(t.isFavorite||!1),y=q.useRef(),g=q.useRef();g!=null&&g.current&&((ae=g==null?void 0:g.current)==null?void 0:ae.scrollWidth)>((Ge=g==null?void 0:g.current)==null?void 0:Ge.clientWidth);const T=window.location.origin,C=t.path&&t.path.includes("http")?new URL(t.path):{origin:"",pathname:""},P=window.location.pathname.split("/")[1],I=C.pathname.split("/")[1],M=e.ssr||!T.includes("local")&&T!==C.origin||I!==P,R=r||n===0?"div":M?"a":Tp.Link,V=t.path||"#",U=n+1,Q=r&&s&&n>0,K=()=>{c(!0)},ue=()=>{c(!1)},S="/global-menu-config/api/v1/menu-items/user/set-favorite";return je.jsxs("div",{ref:y,className:o("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s"},onMouseOver:K,onMouseOut:ue,onDragStart:Re=>{n>1&&Re.preventDefault()},children:[je.jsxs(R,{to:V,href:V,draggable:"true",className:o("menu-item__link"),style:{width:"100%",transition:"all 0.3s"},onDragStart:Re=>{console.log("onDragStart component",Re.target)},children:[je.jsx(b4,{cls:o,item:t}),je.jsx("span",{className:o("menu-item__label"),ref:g,children:t.name}),je.jsx(w4,{menuLevel:n,hasChildren:r,isHovered:s,isFavorite:f,onClick:Re=>{const Me={menuConfigId:t.id,isFavorite:Re},$e=e.baseUrl+S;ka.post($e,Me).then(Ue=>{var ce;p(Re),Ym("Set favorite menu item successfully"),(ce=e.onSetFavoriteSuccess)==null||ce.call(e,e.item.id,Re)}).catch(Ue=>{var ce,Te;Bd(((Te=(ce=Ue.response)==null?void 0:ce.data)==null?void 0:Te.errorMessage)||"Have error when set favorite menu item")})}}),r&&je.jsx("div",{className:o("menu-item__icon-arrow__wrapper"),children:je.jsx(g4,{className:o("menu-item__icon-arrow__icon")})})]}),Q&&je.jsx(v4,{parentRef:y,onlyChild:U<2,dropdownLevel:n,renderChildren:({maxHeight:Re})=>{var Me;return je.jsx(lO.div,{className:o("menu-item__dropdown dropdown-favorite ? 'menu-item__dropdown--open' : 'menu-item__dropdown--close'}",`level-${U}`),style:Wy({maxHeight:Re,overflowY:"auto",paddingRight:3},Re!=="auto"&&!!U),children:(Me=t.children)==null?void 0:Me.map($e=>q.createElement(mO,{...e,key:$e.id,item:$e,level:U}))})}})]})}function b4({item:e,cls:t}){return je.jsx("div",{className:t("menu-item__icon"),children:je.jsx(y4,{item:e})})}function w4(e){const t={marginRight:e.hasChildren?10:0,fontSize:22,fill:Ei.warning,minWidth:16};if(e.menuLevel!==0)return je.jsxs(je.Fragment,{children:[e.isHovered&&!e.isFavorite&&je.jsx(is.Tooltip,{title:"Add to favorites",children:je.jsx(uO,{style:t,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,!0)}})}),e.isFavorite&&je.jsx(is.Tooltip,{title:"Remove from favorites",children:je.jsx(cO,{style:t,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,!1)}})})]})}const x4=".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:all .3s;width:100%}.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;color:#85858a}.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{color:#85858a;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__wrapper.level-0{display:none}.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}";var cc={};/**
|
|
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 n1;function S4(){if(n1)return cc;n1=1;var e=q;function t(k){for(var N="https://reactjs.org/docs/error-decoder.html?invariant="+k,G=1;G<arguments.length;G++)N+="&args[]="+encodeURIComponent(arguments[G]);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 s(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,G,te,Ce,ge,Pe){this.acceptsBooleans=N===2||N===3||N===4,this.attributeName=te,this.attributeNamespace=Ce,this.mustUseProperty=G,this.propertyName=k,this.type=N,this.sanitizeURL=ge,this.removeEmptyString=Pe}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 g={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(g).forEach(function(k){T.forEach(function(N){N=N+k.charAt(0).toUpperCase()+k.substring(1),g[N]=g[k]})});var C=/["'&<>]/;function P(k){if(typeof k=="boolean"||typeof k=="number")return""+k;k=""+k;var N=C.exec(k);if(N){var G="",te,Ce=0;for(te=N.index;te<k.length;te++){switch(k.charCodeAt(te)){case 34:N=""";break;case 38:N="&";break;case 39:N="'";break;case 60:N="<";break;case 62:N=">";break;default:continue}Ce!==te&&(G+=k.substring(Ce,te)),Ce=te+1,G+=N}k=Ce!==te?G+k.substring(Ce,te):G}return k}var I=/([A-Z])/g,M=/^ms-/,R=Array.isArray;function V(k,N){return{insertionMode:k,selectedValue:N}}function U(k,N,G){switch(N){case"select":return V(1,G.value!=null?G.value:G.defaultValue);case"svg":return V(2,null);case"math":return V(3,null);case"foreignObject":return V(1,null);case"table":return V(4,null);case"thead":case"tbody":case"tfoot":return V(5,null);case"colgroup":return V(7,null);case"tr":return V(6,null)}return 4<=k.insertionMode||k.insertionMode===0?V(1,null):k}var Q=new Map;function K(k,N,G){if(typeof G!="object")throw Error(t(62));N=!0;for(var te in G)if(n.call(G,te)){var Ce=G[te];if(Ce!=null&&typeof Ce!="boolean"&&Ce!==""){if(te.indexOf("--")===0){var ge=P(te);Ce=P((""+Ce).trim())}else{ge=te;var Pe=Q.get(ge);Pe!==void 0||(Pe=P(ge.replace(I,"-$1").toLowerCase().replace(M,"-ms-")),Q.set(ge,Pe)),ge=Pe,Ce=typeof Ce=="number"?Ce===0||n.call(g,te)?""+Ce:Ce+"px":P((""+Ce).trim())}N?(N=!1,k.push(' style="',ge,":",Ce)):k.push(";",ge,":",Ce)}}N||k.push('"')}function ue(k,N,G,te){switch(G){case"style":K(k,N,te);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<G.length)||G[0]!=="o"&&G[0]!=="O"||G[1]!=="n"&&G[1]!=="N"){if(N=f.hasOwnProperty(G)?f[G]:null,N!==null){switch(typeof te){case"function":case"symbol":return;case"boolean":if(!N.acceptsBooleans)return}switch(G=N.attributeName,N.type){case 3:te&&k.push(" ",G,'=""');break;case 4:te===!0?k.push(" ",G,'=""'):te!==!1&&k.push(" ",G,'="',P(te),'"');break;case 5:isNaN(te)||k.push(" ",G,'="',P(te),'"');break;case 6:!isNaN(te)&&1<=te&&k.push(" ",G,'="',P(te),'"');break;default:N.sanitizeURL&&(te=""+te),k.push(" ",G,'="',P(te),'"')}}else if(s(G)){switch(typeof te){case"function":case"symbol":return;case"boolean":if(N=G.toLowerCase().slice(0,5),N!=="data-"&&N!=="aria-")return}k.push(" ",G,'="',P(te),'"')}}}function S(k,N,G){if(N!=null){if(G!=null)throw Error(t(60));if(typeof N!="object"||!("__html"in N))throw Error(t(61));N=N.__html,N!=null&&k.push(""+N)}}function he(k){var N="";return e.Children.forEach(k,function(G){G!=null&&(N+=G)}),N}function ae(k,N,G,te){k.push(Me(G));var Ce=G=null,ge;for(ge in N)if(n.call(N,ge)){var Pe=N[ge];if(Pe!=null)switch(ge){case"children":G=Pe;break;case"dangerouslySetInnerHTML":Ce=Pe;break;default:ue(k,te,ge,Pe)}}return k.push(">"),S(k,Ce,G),typeof G=="string"?(k.push(P(G)),null):G}var Ge=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Re=new Map;function Me(k){var N=Re.get(k);if(N===void 0){if(!Ge.test(k))throw Error(t(65,k));N="<"+k,Re.set(k,N)}return N}function $e(k,N,G,te,Ce){switch(N){case"select":k.push(Me("select"));var ge=null,Pe=null;for(pt in G)if(n.call(G,pt)){var Je=G[pt];if(Je!=null)switch(pt){case"children":ge=Je;break;case"dangerouslySetInnerHTML":Pe=Je;break;case"defaultValue":case"value":break;default:ue(k,te,pt,Je)}}return k.push(">"),S(k,Pe,ge),ge;case"option":Pe=Ce.selectedValue,k.push(Me("option"));var vt=Je=null,mt=null,pt=null;for(ge in G)if(n.call(G,ge)){var Nt=G[ge];if(Nt!=null)switch(ge){case"children":Je=Nt;break;case"selected":mt=Nt;break;case"dangerouslySetInnerHTML":pt=Nt;break;case"value":vt=Nt;default:ue(k,te,ge,Nt)}}if(Pe!=null)if(G=vt!==null?""+vt:he(Je),R(Pe)){for(te=0;te<Pe.length;te++)if(""+Pe[te]===G){k.push(' selected=""');break}}else""+Pe===G&&k.push(' selected=""');else mt&&k.push(' selected=""');return k.push(">"),S(k,pt,Je),Je;case"textarea":k.push(Me("textarea")),pt=Pe=ge=null;for(Je in G)if(n.call(G,Je)&&(vt=G[Je],vt!=null))switch(Je){case"children":pt=vt;break;case"value":ge=vt;break;case"defaultValue":Pe=vt;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:ue(k,te,Je,vt)}if(ge===null&&Pe!==null&&(ge=Pe),k.push(">"),pt!=null){if(ge!=null)throw Error(t(92));if(R(pt)&&1<pt.length)throw Error(t(93));ge=""+pt}return typeof ge=="string"&&ge[0]===`
|
|
40
|
+
`&&k.push(`
|
|
41
|
+
`),ge!==null&&k.push(P(""+ge)),null;case"input":k.push(Me("input")),vt=pt=Je=ge=null;for(Pe in G)if(n.call(G,Pe)&&(mt=G[Pe],mt!=null))switch(Pe){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"input"));case"defaultChecked":vt=mt;break;case"defaultValue":Je=mt;break;case"checked":pt=mt;break;case"value":ge=mt;break;default:ue(k,te,Pe,mt)}return pt!==null?ue(k,te,"checked",pt):vt!==null&&ue(k,te,"checked",vt),ge!==null?ue(k,te,"value",ge):Je!==null&&ue(k,te,"value",Je),k.push("/>"),null;case"menuitem":k.push(Me("menuitem"));for(var $n in G)if(n.call(G,$n)&&(ge=G[$n],ge!=null))switch($n){case"children":case"dangerouslySetInnerHTML":throw Error(t(400));default:ue(k,te,$n,ge)}return k.push(">"),null;case"title":k.push(Me("title")),ge=null;for(Nt in G)if(n.call(G,Nt)&&(Pe=G[Nt],Pe!=null))switch(Nt){case"children":ge=Pe;break;case"dangerouslySetInnerHTML":throw Error(t(434));default:ue(k,te,Nt,Pe)}return k.push(">"),ge;case"listing":case"pre":k.push(Me(N)),Pe=ge=null;for(vt in G)if(n.call(G,vt)&&(Je=G[vt],Je!=null))switch(vt){case"children":ge=Je;break;case"dangerouslySetInnerHTML":Pe=Je;break;default:ue(k,te,vt,Je)}if(k.push(">"),Pe!=null){if(ge!=null)throw Error(t(60));if(typeof Pe!="object"||!("__html"in Pe))throw Error(t(61));G=Pe.__html,G!=null&&(typeof G=="string"&&0<G.length&&G[0]===`
|
|
42
|
+
`?k.push(`
|
|
43
|
+
`,G):k.push(""+G))}return typeof ge=="string"&&ge[0]===`
|
|
44
|
+
`&&k.push(`
|
|
45
|
+
`),ge;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(Me(N));for(var Yn in G)if(n.call(G,Yn)&&(ge=G[Yn],ge!=null))switch(Yn){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,N));default:ue(k,te,Yn,ge)}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 ae(k,G,N,te);case"html":return Ce.insertionMode===0&&k.push("<!DOCTYPE html>"),ae(k,G,N,te);default:if(N.indexOf("-")===-1&&typeof G.is!="string")return ae(k,G,N,te);k.push(Me(N)),Pe=ge=null;for(mt in G)if(n.call(G,mt)&&(Je=G[mt],Je!=null))switch(mt){case"children":ge=Je;break;case"dangerouslySetInnerHTML":Pe=Je;break;case"style":K(k,te,Je);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:s(mt)&&typeof Je!="function"&&typeof Je!="symbol"&&k.push(" ",mt,'="',P(Je),'"')}return k.push(">"),S(k,Pe,ge),ge}}function Ue(k,N,G){if(k.push('<!--$?--><template id="'),G===null)throw Error(t(395));return k.push(G),k.push('"></template>')}function ce(k,N,G,te){switch(G.insertionMode){case 0:case 1:return k.push('<div hidden id="'),k.push(N.segmentPrefix),N=te.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=te.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=te.toString(16),k.push(N),k.push('">');case 4:return k.push('<table hidden id="'),k.push(N.segmentPrefix),N=te.toString(16),k.push(N),k.push('">');case 5:return k.push('<table hidden><tbody id="'),k.push(N.segmentPrefix),N=te.toString(16),k.push(N),k.push('">');case 6:return k.push('<table hidden><tr id="'),k.push(N.segmentPrefix),N=te.toString(16),k.push(N),k.push('">');case 7:return k.push('<table hidden><colgroup id="'),k.push(N.segmentPrefix),N=te.toString(16),k.push(N),k.push('">');default:throw Error(t(397))}}function Te(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(t(397))}}var Ne=/[<\u2028\u2029]/g;function We(k){return JSON.stringify(k).replace(Ne,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 tt(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 we(k,N,G,te){return G.generateStaticMarkup?(k.push(P(N)),!1):(N===""?k=te:(te&&k.push("<!-- -->"),k.push(P(N)),k=!0),k)}var Ee=Object.assign,Le=Symbol.for("react.element"),Be=Symbol.for("react.portal"),ke=Symbol.for("react.fragment"),_e=Symbol.for("react.strict_mode"),ze=Symbol.for("react.profiler"),it=Symbol.for("react.provider"),dt=Symbol.for("react.context"),ht=Symbol.for("react.forward_ref"),ft=Symbol.for("react.suspense"),bt=Symbol.for("react.suspense_list"),et=Symbol.for("react.memo"),At=Symbol.for("react.lazy"),Lt=Symbol.for("react.scope"),Hn=Symbol.for("react.debug_trace_mode"),gr=Symbol.for("react.legacy_hidden"),Un=Symbol.for("react.default_value"),Cn=Symbol.iterator;function ji(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 ke:return"Fragment";case Be:return"Portal";case ze:return"Profiler";case _e:return"StrictMode";case ft:return"Suspense";case bt:return"SuspenseList"}if(typeof k=="object")switch(k.$$typeof){case dt:return(k.displayName||"Context")+".Consumer";case it:return(k._context.displayName||"Context")+".Provider";case ht:var N=k.render;return k=k.displayName,k||(k=N.displayName||N.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case et:return N=k.displayName||null,N!==null?N:ji(k.type)||"Memo";case At:N=k._payload,k=k._init;try{return ji(k(N))}catch{}}return null}var Er={};function Zn(k,N){if(k=k.contextTypes,!k)return Er;var G={},te;for(te in k)G[te]=N[te];return G}var sn=null;function dn(k,N){if(k!==N){k.context._currentValue2=k.parentValue,k=k.parent;var G=N.parent;if(k===null){if(G!==null)throw Error(t(401))}else{if(G===null)throw Error(t(401));dn(k,G)}N.context._currentValue2=N.value}}function hn(k){k.context._currentValue2=k.parentValue,k=k.parent,k!==null&&hn(k)}function ct(k){var N=k.parent;N!==null&&ct(N),k.context._currentValue2=k.value}function Dn(k,N){if(k.context._currentValue2=k.parentValue,k=k.parent,k===null)throw Error(t(402));k.depth===N.depth?dn(k,N):Dn(k,N)}function oi(k,N){var G=N.parent;if(G===null)throw Error(t(402));k.depth===G.depth?dn(k,G):oi(k,G),N.context._currentValue2=N.value}function an(k){var N=sn;N!==k&&(N===null?ct(k):k===null?hn(N):N.depth===k.depth?dn(N,k):N.depth>k.depth?Dn(N,k):oi(N,k),sn=k)}var Bi={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 $i(k,N,G,te){var Ce=k.state!==void 0?k.state:null;k.updater=Bi,k.props=G,k.state=Ce;var ge={queue:[],replace:!1};k._reactInternals=ge;var Pe=N.contextType;if(k.context=typeof Pe=="object"&&Pe!==null?Pe._currentValue2:te,Pe=N.getDerivedStateFromProps,typeof Pe=="function"&&(Pe=Pe(G,Ce),Ce=Pe==null?Ce:Ee({},Ce,Pe),k.state=Ce),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&&Bi.enqueueReplaceState(k,k.state,null),ge.queue!==null&&0<ge.queue.length)if(N=ge.queue,Pe=ge.replace,ge.queue=null,ge.replace=!1,Pe&&N.length===1)k.state=N[0];else{for(ge=Pe?N[0]:k.state,Ce=!0,Pe=Pe?1:0;Pe<N.length;Pe++){var Je=N[Pe];Je=typeof Je=="function"?Je.call(k,ge,G,te):Je,Je!=null&&(Ce?(Ce=!1,ge=Ee({},ge,Je)):Ee(ge,Je))}k.state=ge}else ge.queue=null}var Vi={id:1,overflow:""};function kr(k,N,G){var te=k.id;k=k.overflow;var Ce=32-jn(te)-1;te&=~(1<<Ce),G+=1;var ge=32-jn(N)+Ce;if(30<ge){var Pe=Ce-Ce%5;return ge=(te&(1<<Pe)-1).toString(32),te>>=Pe,Ce-=Pe,{id:1<<32-jn(N)+Ce|G<<Ce|te,overflow:ge+k}}return{id:1<<ge|G<<Ce|te,overflow:k}}var jn=Math.clz32?Math.clz32:zr,Or=Math.log,vr=Math.LN2;function zr(k){return k>>>=0,k===0?32:31-(Or(k)/vr|0)|0}function Yr(k,N){return k===N&&(k!==0||1/k===1/N)||k!==k&&N!==N}var Po=typeof Object.is=="function"?Object.is:Yr,Wn=null,Gr=null,Jn=null,Wt=null,ai=!1,Hi=!1,_n=0,pn=null,si=0;function li(){if(Wn===null)throw Error(t(321));return Wn}function En(){if(0<si)throw Error(t(312));return{memoizedState:null,queue:null,next:null}}function oo(){return Wt===null?Jn===null?(ai=!1,Jn=Wt=En()):(ai=!0,Wt=Jn):Wt.next===null?(ai=!1,Wt=Wt.next=En()):(ai=!0,Wt=Wt.next),Wt}function mr(){Gr=Wn=null,Hi=!1,Jn=null,si=0,Wt=pn=null}function ui(k,N){return typeof N=="function"?N(k):N}function ln(k,N,G){if(Wn=li(),Wt=oo(),ai){var te=Wt.queue;if(N=te.dispatch,pn!==null&&(G=pn.get(te),G!==void 0)){pn.delete(te),te=Wt.memoizedState;do te=k(te,G.action),G=G.next;while(G!==null);return Wt.memoizedState=te,[te,N]}return[Wt.memoizedState,N]}return k=k===ui?typeof N=="function"?N():N:G!==void 0?G(N):N,Wt.memoizedState=k,k=Wt.queue={last:null,dispatch:null},k=k.dispatch=Pa.bind(null,Wn,k),[Wt.memoizedState,k]}function ki(k,N){if(Wn=li(),Wt=oo(),N=N===void 0?null:N,Wt!==null){var G=Wt.memoizedState;if(G!==null&&N!==null){var te=G[1];e:if(te===null)te=!1;else{for(var Ce=0;Ce<te.length&&Ce<N.length;Ce++)if(!Po(N[Ce],te[Ce])){te=!1;break e}te=!0}if(te)return G[0]}}return k=k(),Wt.memoizedState=[k,N],k}function Pa(k,N,G){if(25<=si)throw Error(t(301));if(k===Wn)if(Hi=!0,k={action:G,next:null},pn===null&&(pn=new Map),G=pn.get(N),G===void 0)pn.set(N,k);else{for(N=G;N.next!==null;)N=N.next;N.next=k}}function Ra(){throw Error(t(394))}function qr(){}var ao={readContext:function(k){return k._currentValue2},useContext:function(k){return li(),k._currentValue2},useMemo:ki,useReducer:ln,useRef:function(k){Wn=li(),Wt=oo();var N=Wt.memoizedState;return N===null?(k={current:k},Wt.memoizedState=k):N},useState:function(k){return ln(ui,k)},useInsertionEffect:qr,useLayoutEffect:function(){},useCallback:function(k,N){return ki(function(){return k},N)},useImperativeHandle:qr,useEffect:qr,useDebugValue:qr,useDeferredValue:function(k){return li(),k},useTransition:function(){return li(),[!1,Ra]},useId:function(){var k=Gr.treeContext,N=k.overflow;k=k.id,k=(k&~(1<<32-jn(k)-1)).toString(32)+N;var G=so;if(G===null)throw Error(t(404));return N=_n++,k=":"+G.idPrefix+"R"+k,0<N&&(k+="H"+N.toString(32)),k+":"},useMutableSource:function(k,N){return li(),N(k._source)},useSyncExternalStore:function(k,N,G){if(G===void 0)throw Error(t(407));return G()}},so=null,Oi=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Qn(k){return console.error(k),null}function Dr(){}function _r(k,N,G,te,Ce,ge,Pe,Je,vt){var mt=[],pt=new Set;return N={destination:null,responseState:N,progressiveChunkSize:te===void 0?12800:te,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:pt,pingedTasks:mt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Ce===void 0?Qn:Ce,onAllReady:Dr,onShellReady:Pe===void 0?Dr:Pe,onShellError:Dr,onFatalError:Dr},G=Xr(N,0,null,G,!1,!1),G.parentFlushed=!0,k=ci(N,k,null,G,pt,Er,null,Vi),mt.push(k),N}function ci(k,N,G,te,Ce,ge,Pe,Je){k.allPendingTasks++,G===null?k.pendingRootTasks++:G.pendingTasks++;var vt={node:N,ping:function(){var mt=k.pingedTasks;mt.push(vt),mt.length===1&&zn(k)},blockedBoundary:G,blockedSegment:te,abortSet:Ce,legacyContext:ge,context:Pe,treeContext:Je};return Ce.add(vt),vt}function Xr(k,N,G,te,Ce,ge){return{status:0,id:-1,index:N,parentFlushed:!1,chunks:[],children:[],formatContext:te,boundary:G,lastPushedText:Ce,textEmbedded:ge}}function yr(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 Pr(k,N){var G=k.onShellError;G(N),G=k.onFatalError,G(N),k.destination!==null?(k.status=2,k.destination.destroy(N)):(k.status=1,k.fatalError=N)}function er(k,N,G,te,Ce){for(Wn={},Gr=N,_n=0,k=G(te,Ce);Hi;)Hi=!1,_n=0,si+=1,Wt=null,k=G(te,Ce);return mr(),k}function Ui(k,N,G,te){var Ce=G.render(),ge=te.childContextTypes;if(ge!=null){var Pe=N.legacyContext;if(typeof G.getChildContext!="function")te=Pe;else{G=G.getChildContext();for(var Je in G)if(!(Je in ge))throw Error(t(108,ji(te)||"Unknown",Je));te=Ee({},Pe,G)}N.legacyContext=te,wn(k,N,Ce),N.legacyContext=Pe}else wn(k,N,Ce)}function Di(k,N){if(k&&k.defaultProps){N=Ee({},N),k=k.defaultProps;for(var G in k)N[G]===void 0&&(N[G]=k[G]);return N}return N}function sr(k,N,G,te,Ce){if(typeof G=="function")if(G.prototype&&G.prototype.isReactComponent){Ce=Zn(G,N.legacyContext);var ge=G.contextType;ge=new G(te,typeof ge=="object"&&ge!==null?ge._currentValue2:Ce),$i(ge,G,te,Ce),Ui(k,N,ge,G)}else{ge=Zn(G,N.legacyContext),Ce=er(k,N,G,te,ge);var Pe=_n!==0;if(typeof Ce=="object"&&Ce!==null&&typeof Ce.render=="function"&&Ce.$$typeof===void 0)$i(Ce,G,te,ge),Ui(k,N,Ce,G);else if(Pe){te=N.treeContext,N.treeContext=kr(te,1,0);try{wn(k,N,Ce)}finally{N.treeContext=te}}else wn(k,N,Ce)}else if(typeof G=="string"){switch(Ce=N.blockedSegment,ge=$e(Ce.chunks,G,te,k.responseState,Ce.formatContext),Ce.lastPushedText=!1,Pe=Ce.formatContext,Ce.formatContext=U(Pe,G,te),Ir(k,N,ge),Ce.formatContext=Pe,G){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:Ce.chunks.push("</",G,">")}Ce.lastPushedText=!1}else{switch(G){case gr:case Hn:case _e:case ze:case ke:wn(k,N,te.children);return;case bt:wn(k,N,te.children);return;case Lt:throw Error(t(343));case ft:e:{G=N.blockedBoundary,Ce=N.blockedSegment,ge=te.fallback,te=te.children,Pe=new Set;var Je={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Pe,errorDigest:null},vt=Xr(k,Ce.chunks.length,Je,Ce.formatContext,!1,!1);Ce.children.push(vt),Ce.lastPushedText=!1;var mt=Xr(k,0,null,Ce.formatContext,!1,!1);mt.parentFlushed=!0,N.blockedBoundary=Je,N.blockedSegment=mt;try{if(Ir(k,N,te),k.responseState.generateStaticMarkup||mt.lastPushedText&&mt.textEmbedded&&mt.chunks.push("<!-- -->"),mt.status=1,br(Je,mt),Je.pendingTasks===0)break e}catch(pt){mt.status=4,Je.forceClientRender=!0,Je.errorDigest=yr(k,pt)}finally{N.blockedBoundary=G,N.blockedSegment=Ce}N=ci(k,ge,G,vt,Pe,N.legacyContext,N.context,N.treeContext),k.pingedTasks.push(N)}return}if(typeof G=="object"&&G!==null)switch(G.$$typeof){case ht:if(te=er(k,N,G.render,te,Ce),_n!==0){G=N.treeContext,N.treeContext=kr(G,1,0);try{wn(k,N,te)}finally{N.treeContext=G}}else wn(k,N,te);return;case et:G=G.type,te=Di(G,te),sr(k,N,G,te,Ce);return;case it:if(Ce=te.children,G=G._context,te=te.value,ge=G._currentValue2,G._currentValue2=te,Pe=sn,sn=te={parent:Pe,depth:Pe===null?0:Pe.depth+1,context:G,parentValue:ge,value:te},N.context=te,wn(k,N,Ce),k=sn,k===null)throw Error(t(403));te=k.parentValue,k.context._currentValue2=te===Un?k.context._defaultValue:te,k=sn=k.parent,N.context=k;return;case dt:te=te.children,te=te(G._currentValue2),wn(k,N,te);return;case At:Ce=G._init,G=Ce(G._payload),te=Di(G,te),sr(k,N,G,te,void 0);return}throw Error(t(130,G==null?G:typeof G,""))}}function wn(k,N,G){if(N.node=G,typeof G=="object"&&G!==null){switch(G.$$typeof){case Le:sr(k,N,G.type,G.props,G.ref);return;case Be:throw Error(t(257));case At:var te=G._init;G=te(G._payload),wn(k,N,G);return}if(R(G)){Rr(k,N,G);return}if(G===null||typeof G!="object"?te=null:(te=Cn&&G[Cn]||G["@@iterator"],te=typeof te=="function"?te:null),te&&(te=te.call(G))){if(G=te.next(),!G.done){var Ce=[];do Ce.push(G.value),G=te.next();while(!G.done);Rr(k,N,Ce)}return}throw k=Object.prototype.toString.call(G),Error(t(31,k==="[object Object]"?"object with keys {"+Object.keys(G).join(", ")+"}":k))}typeof G=="string"?(te=N.blockedSegment,te.lastPushedText=we(N.blockedSegment.chunks,G,k.responseState,te.lastPushedText)):typeof G=="number"&&(te=N.blockedSegment,te.lastPushedText=we(N.blockedSegment.chunks,""+G,k.responseState,te.lastPushedText))}function Rr(k,N,G){for(var te=G.length,Ce=0;Ce<te;Ce++){var ge=N.treeContext;N.treeContext=kr(ge,te,Ce);try{Ir(k,N,G[Ce])}finally{N.treeContext=ge}}}function Ir(k,N,G){var te=N.blockedSegment.formatContext,Ce=N.legacyContext,ge=N.context;try{return wn(k,N,G)}catch(vt){if(mr(),typeof vt=="object"&&vt!==null&&typeof vt.then=="function"){G=vt;var Pe=N.blockedSegment,Je=Xr(k,Pe.chunks.length,null,Pe.formatContext,Pe.lastPushedText,!0);Pe.children.push(Je),Pe.lastPushedText=!1,k=ci(k,N.node,N.blockedBoundary,Je,N.abortSet,N.legacyContext,N.context,N.treeContext).ping,G.then(k,k),N.blockedSegment.formatContext=te,N.legacyContext=Ce,N.context=ge,an(ge)}else throw N.blockedSegment.formatContext=te,N.legacyContext=Ce,N.context=ge,an(ge),vt}}function fi(k){var N=k.blockedBoundary;k=k.blockedSegment,k.status=3,Kr(this,N,k)}function di(k,N,G){var te=k.blockedBoundary;k.blockedSegment.status=3,te===null?(N.allPendingTasks--,N.status!==2&&(N.status=2,N.destination!==null&&N.destination.push(null))):(te.pendingTasks--,te.forceClientRender||(te.forceClientRender=!0,k=G===void 0?Error(t(432)):G,te.errorDigest=N.onError(k),te.parentFlushed&&N.clientRenderedBoundaries.push(te)),te.fallbackAbortableTasks.forEach(function(Ce){return di(Ce,N,G)}),te.fallbackAbortableTasks.clear(),N.allPendingTasks--,N.allPendingTasks===0&&(te=N.onAllReady,te()))}function br(k,N){if(N.chunks.length===0&&N.children.length===1&&N.children[0].boundary===null){var G=N.children[0];G.id=N.id,G.parentFlushed=!0,G.status===1&&br(k,G)}else k.completedSegments.push(N)}function Kr(k,N,G){if(N===null){if(G.parentFlushed){if(k.completedRootSegment!==null)throw Error(t(389));k.completedRootSegment=G}k.pendingRootTasks--,k.pendingRootTasks===0&&(k.onShellError=Dr,N=k.onShellReady,N())}else N.pendingTasks--,N.forceClientRender||(N.pendingTasks===0?(G.parentFlushed&&G.status===1&&br(N,G),N.parentFlushed&&k.completedBoundaries.push(N),N.fallbackAbortableTasks.forEach(fi,k),N.fallbackAbortableTasks.clear()):G.parentFlushed&&G.status===1&&(br(N,G),N.completedSegments.length===1&&N.parentFlushed&&k.partialBoundaries.push(N)));k.allPendingTasks--,k.allPendingTasks===0&&(k=k.onAllReady,k())}function zn(k){if(k.status!==2){var N=sn,G=Oi.current;Oi.current=ao;var te=so;so=k.responseState;try{var Ce=k.pingedTasks,ge;for(ge=0;ge<Ce.length;ge++){var Pe=Ce[ge],Je=k,vt=Pe.blockedSegment;if(vt.status===0){an(Pe.context);try{wn(Je,Pe,Pe.node),Je.responseState.generateStaticMarkup||vt.lastPushedText&&vt.textEmbedded&&vt.chunks.push("<!-- -->"),Pe.abortSet.delete(Pe),vt.status=1,Kr(Je,Pe.blockedBoundary,vt)}catch(On){if(mr(),typeof On=="object"&&On!==null&&typeof On.then=="function"){var mt=Pe.ping;On.then(mt,mt)}else{Pe.abortSet.delete(Pe),vt.status=4;var pt=Pe.blockedBoundary,Nt=On,$n=yr(Je,Nt);if(pt===null?Pr(Je,Nt):(pt.pendingTasks--,pt.forceClientRender||(pt.forceClientRender=!0,pt.errorDigest=$n,pt.parentFlushed&&Je.clientRenderedBoundaries.push(pt))),Je.allPendingTasks--,Je.allPendingTasks===0){var Yn=Je.onAllReady;Yn()}}}finally{}}}Ce.splice(0,ge),k.destination!==null&&kn(k,k.destination)}catch(On){yr(k,On),Pr(k,On)}finally{so=te,Oi.current=G,G===ao&&an(N)}}}function hi(k,N,G){switch(G.parentFlushed=!0,G.status){case 0:var te=G.id=k.nextSegmentId++;return G.lastPushedText=!1,G.textEmbedded=!1,k=k.responseState,N.push('<template id="'),N.push(k.placeholderPrefix),k=te.toString(16),N.push(k),N.push('"></template>');case 1:G.status=2;var Ce=!0;te=G.chunks;var ge=0;G=G.children;for(var Pe=0;Pe<G.length;Pe++){for(Ce=G[Pe];ge<Ce.index;ge++)N.push(te[ge]);Ce=pi(k,N,Ce)}for(;ge<te.length-1;ge++)N.push(te[ge]);return ge<te.length&&(Ce=N.push(te[ge])),Ce;default:throw Error(t(390))}}function pi(k,N,G){var te=G.boundary;if(te===null)return hi(k,N,G);if(te.parentFlushed=!0,te.forceClientRender)return k.responseState.generateStaticMarkup||(te=te.errorDigest,N.push("<!--$!-->"),N.push("<template"),te&&(N.push(' data-dgst="'),te=P(te),N.push(te),N.push('"')),N.push("></template>")),hi(k,N,G),k=k.responseState.generateStaticMarkup?!0:N.push("<!--/$-->"),k;if(0<te.pendingTasks){te.rootSegmentID=k.nextSegmentId++,0<te.completedSegments.length&&k.partialBoundaries.push(te);var Ce=k.responseState,ge=Ce.nextSuspenseID++;return Ce=Ce.boundaryPrefix+ge.toString(16),te=te.id=Ce,Ue(N,k.responseState,te),hi(k,N,G),N.push("<!--/$-->")}if(te.byteSize>k.progressiveChunkSize)return te.rootSegmentID=k.nextSegmentId++,k.completedBoundaries.push(te),Ue(N,k.responseState,te.id),hi(k,N,G),N.push("<!--/$-->");if(k.responseState.generateStaticMarkup||N.push("<!--$-->"),G=te.completedSegments,G.length!==1)throw Error(t(391));return pi(k,N,G[0]),k=k.responseState.generateStaticMarkup?!0:N.push("<!--/$-->"),k}function _i(k,N,G){return ce(N,k.responseState,G.formatContext,G.id),pi(k,N,G),Te(N,G.formatContext)}function rn(k,N,G){for(var te=G.completedSegments,Ce=0;Ce<te.length;Ce++)Bn(k,N,G,te[Ce]);if(te.length=0,k=k.responseState,te=G.id,G=G.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("')),te===null)throw Error(t(395));return G=G.toString(16),N.push(te),N.push('","'),N.push(k.segmentPrefix),N.push(G),N.push('")<\/script>')}function Bn(k,N,G,te){if(te.status===2)return!0;var Ce=te.id;if(Ce===-1){if((te.id=G.rootSegmentID)===-1)throw Error(t(392));return _i(k,N,te)}return _i(k,N,te),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),Ce=Ce.toString(16),N.push(Ce),N.push('","'),N.push(k.placeholderPrefix),N.push(Ce),N.push('")<\/script>')}function kn(k,N){try{var G=k.completedRootSegment;if(G!==null&&k.pendingRootTasks===0){pi(k,N,G),k.completedRootSegment=null;var te=k.responseState.bootstrapChunks;for(G=0;G<te.length-1;G++)N.push(te[G]);G<te.length&&N.push(te[G])}var Ce=k.clientRenderedBoundaries,ge;for(ge=0;ge<Ce.length;ge++){var Pe=Ce[ge];te=N;var Je=k.responseState,vt=Pe.id,mt=Pe.errorDigest,pt=Pe.errorMessage,Nt=Pe.errorComponentStack;if(te.push(Je.startInlineScript),Je.sentClientRenderFunction?te.push('$RX("'):(Je.sentClientRenderFunction=!0,te.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("')),vt===null)throw Error(t(395));if(te.push(vt),te.push('"'),mt||pt||Nt){te.push(",");var $n=We(mt||"");te.push($n)}if(pt||Nt){te.push(",");var Yn=We(pt||"");te.push(Yn)}if(Nt){te.push(",");var On=We(Nt);te.push(On)}if(!te.push(")<\/script>")){k.destination=null,ge++,Ce.splice(0,ge);return}}Ce.splice(0,ge);var Zr=k.completedBoundaries;for(ge=0;ge<Zr.length;ge++)if(!rn(k,N,Zr[ge])){k.destination=null,ge++,Zr.splice(0,ge);return}Zr.splice(0,ge);var lr=k.partialBoundaries;for(ge=0;ge<lr.length;ge++){var Wi=lr[ge];e:{Ce=k,Pe=N;var gi=Wi.completedSegments;for(Je=0;Je<gi.length;Je++)if(!Bn(Ce,Pe,Wi,gi[Je])){Je++,gi.splice(0,Je);var zi=!1;break e}gi.splice(0,Je),zi=!0}if(!zi){k.destination=null,ge++,lr.splice(0,ge);return}}lr.splice(0,ge);var Ar=k.completedBoundaries;for(ge=0;ge<Ar.length;ge++)if(!rn(k,N,Ar[ge])){k.destination=null,ge++,Ar.splice(0,ge);return}Ar.splice(0,ge)}finally{k.allPendingTasks===0&&k.pingedTasks.length===0&&k.clientRenderedBoundaries.length===0&&k.completedBoundaries.length===0&&N.push(null)}}function lo(k,N){try{var G=k.abortableTasks;G.forEach(function(te){return di(te,k,N)}),G.clear(),k.destination!==null&&kn(k,k.destination)}catch(te){yr(k,te),Pr(k,te)}}function Pn(){}function Rn(k,N,G,te){var Ce=!1,ge=null,Pe="",Je={push:function(mt){return mt!==null&&(Pe+=mt),!0},destroy:function(mt){Ce=!0,ge=mt}},vt=!1;if(k=_r(k,tt(G,N?N.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,Pn,void 0,function(){vt=!0}),zn(k),lo(k,te),k.status===1)k.status=2,Je.destroy(k.fatalError);else if(k.status!==2&&k.destination===null){k.destination=Je;try{kn(k,Je)}catch(mt){yr(k,mt),Pr(k,mt)}}if(Ce)throw ge;if(!vt)throw Error(t(426));return Pe}return cc.renderToNodeStream=function(){throw Error(t(207))},cc.renderToStaticMarkup=function(k,N){return Rn(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')},cc.renderToStaticNodeStream=function(){throw Error(t(208))},cc.renderToString=function(k,N){return Rn(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')},cc.version="18.3.1",cc}var Fh={};/**
|
|
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 r1;function T4(){if(r1)return Fh;r1=1;var e=q;function t(O){for(var L="https://reactjs.org/docs/error-decoder.html?invariant="+O,W=1;W<arguments.length;W++)L+="&args[]="+encodeURIComponent(arguments[W]);return"Minified React error #"+O+"; visit "+L+" 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(O,L){if(L.length!==0)if(512<L.length)0<r&&(O.enqueue(new Uint8Array(n.buffer,0,r)),n=new Uint8Array(512),r=0),O.enqueue(L);else{var W=n.length-r;W<L.length&&(W===0?O.enqueue(n):(n.set(L.subarray(0,W),r),O.enqueue(n),L=L.subarray(W)),n=new Uint8Array(512),r=0),n.set(L,r),r+=L.length}}function o(O,L){return i(O,L),!0}function s(O){n&&0<r&&(O.enqueue(new Uint8Array(n.buffer,0,r)),n=null,r=0)}var c=new TextEncoder;function f(O){return c.encode(O)}function p(O){return c.encode(O)}function y(O,L){typeof O.error=="function"?O.error(L):O.close()}var g=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]*$/,C={},P={};function I(O){return g.call(P,O)?!0:g.call(C,O)?!1:T.test(O)?P[O]=!0:(C[O]=!0,!1)}function M(O,L,W,ee,me,ye,Fe){this.acceptsBooleans=L===2||L===3||L===4,this.attributeName=ee,this.attributeNamespace=me,this.mustUseProperty=W,this.propertyName=O,this.type=L,this.sanitizeURL=ye,this.removeEmptyString=Fe}var R={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(O){R[O]=new M(O,0,!1,O,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(O){var L=O[0];R[L]=new M(L,1,!1,O[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(O){R[O]=new M(O,2,!1,O.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(O){R[O]=new M(O,2,!1,O,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(O){R[O]=new M(O,3,!1,O.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(O){R[O]=new M(O,3,!0,O,null,!1,!1)}),["capture","download"].forEach(function(O){R[O]=new M(O,4,!1,O,null,!1,!1)}),["cols","rows","size","span"].forEach(function(O){R[O]=new M(O,6,!1,O,null,!1,!1)}),["rowSpan","start"].forEach(function(O){R[O]=new M(O,5,!1,O.toLowerCase(),null,!1,!1)});var V=/[\-:]([a-z])/g;function U(O){return O[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(O){var L=O.replace(V,U);R[L]=new M(L,1,!1,O,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(O){var L=O.replace(V,U);R[L]=new M(L,1,!1,O,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(O){var L=O.replace(V,U);R[L]=new M(L,1,!1,O,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(O){R[O]=new M(O,1,!1,O.toLowerCase(),null,!1,!1)}),R.xlinkHref=new M("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(O){R[O]=new M(O,1,!1,O.toLowerCase(),null,!0,!0)});var Q={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},K=["Webkit","ms","Moz","O"];Object.keys(Q).forEach(function(O){K.forEach(function(L){L=L+O.charAt(0).toUpperCase()+O.substring(1),Q[L]=Q[O]})});var ue=/["'&<>]/;function S(O){if(typeof O=="boolean"||typeof O=="number")return""+O;O=""+O;var L=ue.exec(O);if(L){var W="",ee,me=0;for(ee=L.index;ee<O.length;ee++){switch(O.charCodeAt(ee)){case 34:L=""";break;case 38:L="&";break;case 39:L="'";break;case 60:L="<";break;case 62:L=">";break;default:continue}me!==ee&&(W+=O.substring(me,ee)),me=ee+1,W+=L}O=me!==ee?W+O.substring(me,ee):W}return O}var he=/([A-Z])/g,ae=/^ms-/,Ge=Array.isArray,Re=p("<script>"),Me=p("<\/script>"),$e=p('<script src="'),Ue=p('<script type="module" src="'),ce=p('" async=""><\/script>'),Te=/(<\/|<)(s)(cript)/gi;function Ne(O,L,W,ee){return""+L+(W==="s"?"\\u0073":"\\u0053")+ee}function We(O,L,W,ee,me){O=O===void 0?"":O,L=L===void 0?Re:p('<script nonce="'+S(L)+'">');var ye=[];if(W!==void 0&&ye.push(L,f((""+W).replace(Te,Ne)),Me),ee!==void 0)for(W=0;W<ee.length;W++)ye.push($e,f(S(ee[W])),ce);if(me!==void 0)for(ee=0;ee<me.length;ee++)ye.push(Ue,f(S(me[ee])),ce);return{bootstrapChunks:ye,startInlineScript:L,placeholderPrefix:p(O+"P:"),segmentPrefix:p(O+"S:"),boundaryPrefix:O+"B:",idPrefix:O,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function tt(O,L){return{insertionMode:O,selectedValue:L}}function we(O){return tt(O==="http://www.w3.org/2000/svg"?2:O==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function Ee(O,L,W){switch(L){case"select":return tt(1,W.value!=null?W.value:W.defaultValue);case"svg":return tt(2,null);case"math":return tt(3,null);case"foreignObject":return tt(1,null);case"table":return tt(4,null);case"thead":case"tbody":case"tfoot":return tt(5,null);case"colgroup":return tt(7,null);case"tr":return tt(6,null)}return 4<=O.insertionMode||O.insertionMode===0?tt(1,null):O}var Le=p("<!-- -->");function Be(O,L,W,ee){return L===""?ee:(ee&&O.push(Le),O.push(f(S(L))),!0)}var ke=new Map,_e=p(' style="'),ze=p(":"),it=p(";");function dt(O,L,W){if(typeof W!="object")throw Error(t(62));L=!0;for(var ee in W)if(g.call(W,ee)){var me=W[ee];if(me!=null&&typeof me!="boolean"&&me!==""){if(ee.indexOf("--")===0){var ye=f(S(ee));me=f(S((""+me).trim()))}else{ye=ee;var Fe=ke.get(ye);Fe!==void 0||(Fe=p(S(ye.replace(he,"-$1").toLowerCase().replace(ae,"-ms-"))),ke.set(ye,Fe)),ye=Fe,me=typeof me=="number"?me===0||g.call(Q,ee)?f(""+me):f(me+"px"):f(S((""+me).trim()))}L?(L=!1,O.push(_e,ye,ze,me)):O.push(it,ye,ze,me)}}L||O.push(bt)}var ht=p(" "),ft=p('="'),bt=p('"'),et=p('=""');function At(O,L,W,ee){switch(W){case"style":dt(O,L,ee);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(L=R.hasOwnProperty(W)?R[W]:null,L!==null){switch(typeof ee){case"function":case"symbol":return;case"boolean":if(!L.acceptsBooleans)return}switch(W=f(L.attributeName),L.type){case 3:ee&&O.push(ht,W,et);break;case 4:ee===!0?O.push(ht,W,et):ee!==!1&&O.push(ht,W,ft,f(S(ee)),bt);break;case 5:isNaN(ee)||O.push(ht,W,ft,f(S(ee)),bt);break;case 6:!isNaN(ee)&&1<=ee&&O.push(ht,W,ft,f(S(ee)),bt);break;default:L.sanitizeURL&&(ee=""+ee),O.push(ht,W,ft,f(S(ee)),bt)}}else if(I(W)){switch(typeof ee){case"function":case"symbol":return;case"boolean":if(L=W.toLowerCase().slice(0,5),L!=="data-"&&L!=="aria-")return}O.push(ht,f(W),ft,f(S(ee)),bt)}}}var Lt=p(">"),Hn=p("/>");function gr(O,L,W){if(L!=null){if(W!=null)throw Error(t(60));if(typeof L!="object"||!("__html"in L))throw Error(t(61));L=L.__html,L!=null&&O.push(f(""+L))}}function Un(O){var L="";return e.Children.forEach(O,function(W){W!=null&&(L+=W)}),L}var Cn=p(' selected=""');function ji(O,L,W,ee){O.push(dn(W));var me=W=null,ye;for(ye in L)if(g.call(L,ye)){var Fe=L[ye];if(Fe!=null)switch(ye){case"children":W=Fe;break;case"dangerouslySetInnerHTML":me=Fe;break;default:At(O,ee,ye,Fe)}}return O.push(Lt),gr(O,me,W),typeof W=="string"?(O.push(f(S(W))),null):W}var Er=p(`
|
|
54
|
+
`),Zn=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,sn=new Map;function dn(O){var L=sn.get(O);if(L===void 0){if(!Zn.test(O))throw Error(t(65,O));L=p("<"+O),sn.set(O,L)}return L}var hn=p("<!DOCTYPE html>");function ct(O,L,W,ee,me){switch(L){case"select":O.push(dn("select"));var ye=null,Fe=null;for(Tt in W)if(g.call(W,Tt)){var Ke=W[Tt];if(Ke!=null)switch(Tt){case"children":ye=Ke;break;case"dangerouslySetInnerHTML":Fe=Ke;break;case"defaultValue":case"value":break;default:At(O,ee,Tt,Ke)}}return O.push(Lt),gr(O,Fe,ye),ye;case"option":Fe=me.selectedValue,O.push(dn("option"));var gt=Ke=null,Pt=null,Tt=null;for(ye in W)if(g.call(W,ye)){var yt=W[ye];if(yt!=null)switch(ye){case"children":Ke=yt;break;case"selected":Pt=yt;break;case"dangerouslySetInnerHTML":Tt=yt;break;case"value":gt=yt;default:At(O,ee,ye,yt)}}if(Fe!=null)if(W=gt!==null?""+gt:Un(Ke),Ge(Fe)){for(ee=0;ee<Fe.length;ee++)if(""+Fe[ee]===W){O.push(Cn);break}}else""+Fe===W&&O.push(Cn);else Pt&&O.push(Cn);return O.push(Lt),gr(O,Tt,Ke),Ke;case"textarea":O.push(dn("textarea")),Tt=Fe=ye=null;for(Ke in W)if(g.call(W,Ke)&&(gt=W[Ke],gt!=null))switch(Ke){case"children":Tt=gt;break;case"value":ye=gt;break;case"defaultValue":Fe=gt;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:At(O,ee,Ke,gt)}if(ye===null&&Fe!==null&&(ye=Fe),O.push(Lt),Tt!=null){if(ye!=null)throw Error(t(92));if(Ge(Tt)&&1<Tt.length)throw Error(t(93));ye=""+Tt}return typeof ye=="string"&&ye[0]===`
|
|
55
|
+
`&&O.push(Er),ye!==null&&O.push(f(S(""+ye))),null;case"input":O.push(dn("input")),gt=Tt=Ke=ye=null;for(Fe in W)if(g.call(W,Fe)&&(Pt=W[Fe],Pt!=null))switch(Fe){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"input"));case"defaultChecked":gt=Pt;break;case"defaultValue":Ke=Pt;break;case"checked":Tt=Pt;break;case"value":ye=Pt;break;default:At(O,ee,Fe,Pt)}return Tt!==null?At(O,ee,"checked",Tt):gt!==null&&At(O,ee,"checked",gt),ye!==null?At(O,ee,"value",ye):Ke!==null&&At(O,ee,"value",Ke),O.push(Hn),null;case"menuitem":O.push(dn("menuitem"));for(var Mn in W)if(g.call(W,Mn)&&(ye=W[Mn],ye!=null))switch(Mn){case"children":case"dangerouslySetInnerHTML":throw Error(t(400));default:At(O,ee,Mn,ye)}return O.push(Lt),null;case"title":O.push(dn("title")),ye=null;for(yt in W)if(g.call(W,yt)&&(Fe=W[yt],Fe!=null))switch(yt){case"children":ye=Fe;break;case"dangerouslySetInnerHTML":throw Error(t(434));default:At(O,ee,yt,Fe)}return O.push(Lt),ye;case"listing":case"pre":O.push(dn(L)),Fe=ye=null;for(gt in W)if(g.call(W,gt)&&(Ke=W[gt],Ke!=null))switch(gt){case"children":ye=Ke;break;case"dangerouslySetInnerHTML":Fe=Ke;break;default:At(O,ee,gt,Ke)}if(O.push(Lt),Fe!=null){if(ye!=null)throw Error(t(60));if(typeof Fe!="object"||!("__html"in Fe))throw Error(t(61));W=Fe.__html,W!=null&&(typeof W=="string"&&0<W.length&&W[0]===`
|
|
56
|
+
`?O.push(Er,f(W)):O.push(f(""+W)))}return typeof ye=="string"&&ye[0]===`
|
|
57
|
+
`&&O.push(Er),ye;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":O.push(dn(L));for(var xn in W)if(g.call(W,xn)&&(ye=W[xn],ye!=null))switch(xn){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,L));default:At(O,ee,xn,ye)}return O.push(Hn),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 ji(O,W,L,ee);case"html":return me.insertionMode===0&&O.push(hn),ji(O,W,L,ee);default:if(L.indexOf("-")===-1&&typeof W.is!="string")return ji(O,W,L,ee);O.push(dn(L)),Fe=ye=null;for(Pt in W)if(g.call(W,Pt)&&(Ke=W[Pt],Ke!=null))switch(Pt){case"children":ye=Ke;break;case"dangerouslySetInnerHTML":Fe=Ke;break;case"style":dt(O,ee,Ke);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:I(Pt)&&typeof Ke!="function"&&typeof Ke!="symbol"&&O.push(ht,f(Pt),ft,f(S(Ke)),bt)}return O.push(Lt),gr(O,Fe,ye),ye}}var Dn=p("</"),oi=p(">"),an=p('<template id="'),Bi=p('"></template>'),$i=p("<!--$-->"),Vi=p('<!--$?--><template id="'),kr=p('"></template>'),jn=p("<!--$!-->"),Or=p("<!--/$-->"),vr=p("<template"),zr=p('"'),Yr=p(' data-dgst="');p(' data-msg="'),p(' data-stck="');var Po=p("></template>");function Wn(O,L,W){if(i(O,Vi),W===null)throw Error(t(395));return i(O,W),o(O,kr)}var Gr=p('<div hidden id="'),Jn=p('">'),Wt=p("</div>"),ai=p('<svg aria-hidden="true" style="display:none" id="'),Hi=p('">'),_n=p("</svg>"),pn=p('<math aria-hidden="true" style="display:none" id="'),si=p('">'),li=p("</math>"),En=p('<table hidden id="'),oo=p('">'),mr=p("</table>"),ui=p('<table hidden><tbody id="'),ln=p('">'),ki=p("</tbody></table>"),Pa=p('<table hidden><tr id="'),Ra=p('">'),qr=p("</tr></table>"),ao=p('<table hidden><colgroup id="'),so=p('">'),Oi=p("</colgroup></table>");function Qn(O,L,W,ee){switch(W.insertionMode){case 0:case 1:return i(O,Gr),i(O,L.segmentPrefix),i(O,f(ee.toString(16))),o(O,Jn);case 2:return i(O,ai),i(O,L.segmentPrefix),i(O,f(ee.toString(16))),o(O,Hi);case 3:return i(O,pn),i(O,L.segmentPrefix),i(O,f(ee.toString(16))),o(O,si);case 4:return i(O,En),i(O,L.segmentPrefix),i(O,f(ee.toString(16))),o(O,oo);case 5:return i(O,ui),i(O,L.segmentPrefix),i(O,f(ee.toString(16))),o(O,ln);case 6:return i(O,Pa),i(O,L.segmentPrefix),i(O,f(ee.toString(16))),o(O,Ra);case 7:return i(O,ao),i(O,L.segmentPrefix),i(O,f(ee.toString(16))),o(O,so);default:throw Error(t(397))}}function Dr(O,L){switch(L.insertionMode){case 0:case 1:return o(O,Wt);case 2:return o(O,_n);case 3:return o(O,li);case 4:return o(O,mr);case 5:return o(O,ki);case 6:return o(O,qr);case 7:return o(O,Oi);default:throw Error(t(397))}}var _r=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("'),ci=p('$RS("'),Xr=p('","'),yr=p('")<\/script>'),Pr=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("'),er=p('$RC("'),Ui=p('","'),Di=p('")<\/script>'),sr=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("'),wn=p('$RX("'),Rr=p('"'),Ir=p(")<\/script>"),fi=p(","),di=/[<\u2028\u2029]/g;function br(O){return JSON.stringify(O).replace(di,function(L){switch(L){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 Kr=Object.assign,zn=Symbol.for("react.element"),hi=Symbol.for("react.portal"),pi=Symbol.for("react.fragment"),_i=Symbol.for("react.strict_mode"),rn=Symbol.for("react.profiler"),Bn=Symbol.for("react.provider"),kn=Symbol.for("react.context"),lo=Symbol.for("react.forward_ref"),Pn=Symbol.for("react.suspense"),Rn=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),G=Symbol.for("react.scope"),te=Symbol.for("react.debug_trace_mode"),Ce=Symbol.for("react.legacy_hidden"),ge=Symbol.for("react.default_value"),Pe=Symbol.iterator;function Je(O){if(O==null)return null;if(typeof O=="function")return O.displayName||O.name||null;if(typeof O=="string")return O;switch(O){case pi:return"Fragment";case hi:return"Portal";case rn:return"Profiler";case _i:return"StrictMode";case Pn:return"Suspense";case Rn:return"SuspenseList"}if(typeof O=="object")switch(O.$$typeof){case kn:return(O.displayName||"Context")+".Consumer";case Bn:return(O._context.displayName||"Context")+".Provider";case lo:var L=O.render;return O=O.displayName,O||(O=L.displayName||L.name||"",O=O!==""?"ForwardRef("+O+")":"ForwardRef"),O;case k:return L=O.displayName||null,L!==null?L:Je(O.type)||"Memo";case N:L=O._payload,O=O._init;try{return Je(O(L))}catch{}}return null}var vt={};function mt(O,L){if(O=O.contextTypes,!O)return vt;var W={},ee;for(ee in O)W[ee]=L[ee];return W}var pt=null;function Nt(O,L){if(O!==L){O.context._currentValue=O.parentValue,O=O.parent;var W=L.parent;if(O===null){if(W!==null)throw Error(t(401))}else{if(W===null)throw Error(t(401));Nt(O,W)}L.context._currentValue=L.value}}function $n(O){O.context._currentValue=O.parentValue,O=O.parent,O!==null&&$n(O)}function Yn(O){var L=O.parent;L!==null&&Yn(L),O.context._currentValue=O.value}function On(O,L){if(O.context._currentValue=O.parentValue,O=O.parent,O===null)throw Error(t(402));O.depth===L.depth?Nt(O,L):On(O,L)}function Zr(O,L){var W=L.parent;if(W===null)throw Error(t(402));O.depth===W.depth?Nt(O,W):Zr(O,W),L.context._currentValue=L.value}function lr(O){var L=pt;L!==O&&(L===null?Yn(O):O===null?$n(L):L.depth===O.depth?Nt(L,O):L.depth>O.depth?On(L,O):Zr(L,O),pt=O)}var Wi={isMounted:function(){return!1},enqueueSetState:function(O,L){O=O._reactInternals,O.queue!==null&&O.queue.push(L)},enqueueReplaceState:function(O,L){O=O._reactInternals,O.replace=!0,O.queue=[L]},enqueueForceUpdate:function(){}};function gi(O,L,W,ee){var me=O.state!==void 0?O.state:null;O.updater=Wi,O.props=W,O.state=me;var ye={queue:[],replace:!1};O._reactInternals=ye;var Fe=L.contextType;if(O.context=typeof Fe=="object"&&Fe!==null?Fe._currentValue:ee,Fe=L.getDerivedStateFromProps,typeof Fe=="function"&&(Fe=Fe(W,me),me=Fe==null?me:Kr({},me,Fe),O.state=me),typeof L.getDerivedStateFromProps!="function"&&typeof O.getSnapshotBeforeUpdate!="function"&&(typeof O.UNSAFE_componentWillMount=="function"||typeof O.componentWillMount=="function"))if(L=O.state,typeof O.componentWillMount=="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount=="function"&&O.UNSAFE_componentWillMount(),L!==O.state&&Wi.enqueueReplaceState(O,O.state,null),ye.queue!==null&&0<ye.queue.length)if(L=ye.queue,Fe=ye.replace,ye.queue=null,ye.replace=!1,Fe&&L.length===1)O.state=L[0];else{for(ye=Fe?L[0]:O.state,me=!0,Fe=Fe?1:0;Fe<L.length;Fe++){var Ke=L[Fe];Ke=typeof Ke=="function"?Ke.call(O,ye,W,ee):Ke,Ke!=null&&(me?(me=!1,ye=Kr({},ye,Ke)):Kr(ye,Ke))}O.state=ye}else ye.queue=null}var zi={id:1,overflow:""};function Ar(O,L,W){var ee=O.id;O=O.overflow;var me=32-Yi(ee)-1;ee&=~(1<<me),W+=1;var ye=32-Yi(L)+me;if(30<ye){var Fe=me-me%5;return ye=(ee&(1<<Fe)-1).toString(32),ee>>=Fe,me-=Fe,{id:1<<32-Yi(L)+me|W<<me|ee,overflow:ye+O}}return{id:1<<ye|W<<me|ee,overflow:O}}var Yi=Math.clz32?Math.clz32:Qo,Hs=Math.log,Ia=Math.LN2;function Qo(O){return O>>>=0,O===0?32:31-(Hs(O)/Ia|0)|0}function wr(O,L){return O===L&&(O!==0||1/O===1/L)||O!==O&&L!==L}var Us=typeof Object.is=="function"?Object.is:wr,vi=null,Aa=null,ea=null,on=null,qt=!1,Zt=!1,Pi=0,Jr=null,Ro=0;function mi(){if(vi===null)throw Error(t(321));return vi}function ur(){if(0<Ro)throw Error(t(312));return{memoizedState:null,queue:null,next:null}}function Ma(){return on===null?ea===null?(qt=!1,ea=on=ur()):(qt=!0,on=ea):on.next===null?(qt=!1,on=on.next=ur()):(qt=!0,on=on.next),on}function uo(){Aa=vi=null,Zt=!1,ea=null,Ro=0,on=Jr=null}function as(O,L){return typeof L=="function"?L(O):L}function un(O,L,W){if(vi=mi(),on=Ma(),qt){var ee=on.queue;if(L=ee.dispatch,Jr!==null&&(W=Jr.get(ee),W!==void 0)){Jr.delete(ee),ee=on.memoizedState;do ee=O(ee,W.action),W=W.next;while(W!==null);return on.memoizedState=ee,[ee,L]}return[on.memoizedState,L]}return O=O===as?typeof L=="function"?L():L:W!==void 0?W(L):L,on.memoizedState=O,O=on.queue={last:null,dispatch:null},O=O.dispatch=yi.bind(null,vi,O),[on.memoizedState,O]}function Io(O,L){if(vi=mi(),on=Ma(),L=L===void 0?null:L,on!==null){var W=on.memoizedState;if(W!==null&&L!==null){var ee=W[1];e:if(ee===null)ee=!1;else{for(var me=0;me<ee.length&&me<L.length;me++)if(!Us(L[me],ee[me])){ee=!1;break e}ee=!0}if(ee)return W[0]}}return O=O(),on.memoizedState=[O,L],O}function yi(O,L,W){if(25<=Ro)throw Error(t(301));if(O===vi)if(Zt=!0,O={action:W,next:null},Jr===null&&(Jr=new Map),W=Jr.get(L),W===void 0)Jr.set(L,O);else{for(L=W;L.next!==null;)L=L.next;L.next=O}}function ss(){throw Error(t(394))}function co(){}var cr={readContext:function(O){return O._currentValue},useContext:function(O){return mi(),O._currentValue},useMemo:Io,useReducer:un,useRef:function(O){vi=mi(),on=Ma();var L=on.memoizedState;return L===null?(O={current:O},on.memoizedState=O):L},useState:function(O){return un(as,O)},useInsertionEffect:co,useLayoutEffect:function(){},useCallback:function(O,L){return Io(function(){return O},L)},useImperativeHandle:co,useEffect:co,useDebugValue:co,useDeferredValue:function(O){return mi(),O},useTransition:function(){return mi(),[!1,ss]},useId:function(){var O=Aa.treeContext,L=O.overflow;O=O.id,O=(O&~(1<<32-Yi(O)-1)).toString(32)+L;var W=h;if(W===null)throw Error(t(404));return L=Pi++,O=":"+W.idPrefix+"R"+O,0<L&&(O+="H"+L.toString(32)),O+":"},useMutableSource:function(O,L){return mi(),L(O._source)},useSyncExternalStore:function(O,L,W){if(W===void 0)throw Error(t(407));return W()}},h=null,b=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function E(O){return console.error(O),null}function D(){}function F(O,L,W,ee,me,ye,Fe,Ke,gt){var Pt=[],Tt=new Set;return L={destination:null,responseState:L,progressiveChunkSize:ee===void 0?12800:ee,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Tt,pingedTasks:Pt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:me===void 0?E:me,onAllReady:ye===void 0?D:ye,onShellReady:Fe===void 0?D:Fe,onShellError:Ke===void 0?D:Ke,onFatalError:gt===void 0?D:gt},W=H(L,0,null,W,!1,!1),W.parentFlushed=!0,O=j(L,O,null,W,Tt,vt,null,zi),Pt.push(O),L}function j(O,L,W,ee,me,ye,Fe,Ke){O.allPendingTasks++,W===null?O.pendingRootTasks++:W.pendingTasks++;var gt={node:L,ping:function(){var Pt=O.pingedTasks;Pt.push(gt),Pt.length===1&&Lr(O)},blockedBoundary:W,blockedSegment:ee,abortSet:me,legacyContext:ye,context:Fe,treeContext:Ke};return me.add(gt),gt}function H(O,L,W,ee,me,ye){return{status:0,id:-1,index:L,parentFlushed:!1,chunks:[],children:[],formatContext:ee,boundary:W,lastPushedText:me,textEmbedded:ye}}function oe(O,L){if(O=O.onError(L),O!=null&&typeof O!="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 O+'" instead');return O}function ne(O,L){var W=O.onShellError;W(L),W=O.onFatalError,W(L),O.destination!==null?(O.status=2,y(O.destination,L)):(O.status=1,O.fatalError=L)}function pe(O,L,W,ee,me){for(vi={},Aa=L,Pi=0,O=W(ee,me);Zt;)Zt=!1,Pi=0,Ro+=1,on=null,O=W(ee,me);return uo(),O}function De(O,L,W,ee){var me=W.render(),ye=ee.childContextTypes;if(ye!=null){var Fe=L.legacyContext;if(typeof W.getChildContext!="function")ee=Fe;else{W=W.getChildContext();for(var Ke in W)if(!(Ke in ye))throw Error(t(108,Je(ee)||"Unknown",Ke));ee=Kr({},Fe,W)}L.legacyContext=ee,Ye(O,L,me),L.legacyContext=Fe}else Ye(O,L,me)}function Ie(O,L){if(O&&O.defaultProps){L=Kr({},L),O=O.defaultProps;for(var W in O)L[W]===void 0&&(L[W]=O[W]);return L}return L}function xe(O,L,W,ee,me){if(typeof W=="function")if(W.prototype&&W.prototype.isReactComponent){me=mt(W,L.legacyContext);var ye=W.contextType;ye=new W(ee,typeof ye=="object"&&ye!==null?ye._currentValue:me),gi(ye,W,ee,me),De(O,L,ye,W)}else{ye=mt(W,L.legacyContext),me=pe(O,L,W,ee,ye);var Fe=Pi!==0;if(typeof me=="object"&&me!==null&&typeof me.render=="function"&&me.$$typeof===void 0)gi(me,W,ee,ye),De(O,L,me,W);else if(Fe){ee=L.treeContext,L.treeContext=Ar(ee,1,0);try{Ye(O,L,me)}finally{L.treeContext=ee}}else Ye(O,L,me)}else if(typeof W=="string"){switch(me=L.blockedSegment,ye=ct(me.chunks,W,ee,O.responseState,me.formatContext),me.lastPushedText=!1,Fe=me.formatContext,me.formatContext=Ee(Fe,W,ee),Ct(O,L,ye),me.formatContext=Fe,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:me.chunks.push(Dn,f(W),oi)}me.lastPushedText=!1}else{switch(W){case Ce:case te:case _i:case rn:case pi:Ye(O,L,ee.children);return;case Rn:Ye(O,L,ee.children);return;case G:throw Error(t(343));case Pn:e:{W=L.blockedBoundary,me=L.blockedSegment,ye=ee.fallback,ee=ee.children,Fe=new Set;var Ke={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Fe,errorDigest:null},gt=H(O,me.chunks.length,Ke,me.formatContext,!1,!1);me.children.push(gt),me.lastPushedText=!1;var Pt=H(O,0,null,me.formatContext,!1,!1);Pt.parentFlushed=!0,L.blockedBoundary=Ke,L.blockedSegment=Pt;try{if(Ct(O,L,ee),Pt.lastPushedText&&Pt.textEmbedded&&Pt.chunks.push(Le),Pt.status=1,cn(Ke,Pt),Ke.pendingTasks===0)break e}catch(Tt){Pt.status=4,Ke.forceClientRender=!0,Ke.errorDigest=oe(O,Tt)}finally{L.blockedBoundary=W,L.blockedSegment=me}L=j(O,ye,W,gt,Fe,L.legacyContext,L.context,L.treeContext),O.pingedTasks.push(L)}return}if(typeof W=="object"&&W!==null)switch(W.$$typeof){case lo:if(ee=pe(O,L,W.render,ee,me),Pi!==0){W=L.treeContext,L.treeContext=Ar(W,1,0);try{Ye(O,L,ee)}finally{L.treeContext=W}}else Ye(O,L,ee);return;case k:W=W.type,ee=Ie(W,ee),xe(O,L,W,ee,me);return;case Bn:if(me=ee.children,W=W._context,ee=ee.value,ye=W._currentValue,W._currentValue=ee,Fe=pt,pt=ee={parent:Fe,depth:Fe===null?0:Fe.depth+1,context:W,parentValue:ye,value:ee},L.context=ee,Ye(O,L,me),O=pt,O===null)throw Error(t(403));ee=O.parentValue,O.context._currentValue=ee===ge?O.context._defaultValue:ee,O=pt=O.parent,L.context=O;return;case kn:ee=ee.children,ee=ee(W._currentValue),Ye(O,L,ee);return;case N:me=W._init,W=me(W._payload),ee=Ie(W,ee),xe(O,L,W,ee,void 0);return}throw Error(t(130,W==null?W:typeof W,""))}}function Ye(O,L,W){if(L.node=W,typeof W=="object"&&W!==null){switch(W.$$typeof){case zn:xe(O,L,W.type,W.props,W.ref);return;case hi:throw Error(t(257));case N:var ee=W._init;W=ee(W._payload),Ye(O,L,W);return}if(Ge(W)){at(O,L,W);return}if(W===null||typeof W!="object"?ee=null:(ee=Pe&&W[Pe]||W["@@iterator"],ee=typeof ee=="function"?ee:null),ee&&(ee=ee.call(W))){if(W=ee.next(),!W.done){var me=[];do me.push(W.value),W=ee.next();while(!W.done);at(O,L,me)}return}throw O=Object.prototype.toString.call(W),Error(t(31,O==="[object Object]"?"object with keys {"+Object.keys(W).join(", ")+"}":O))}typeof W=="string"?(ee=L.blockedSegment,ee.lastPushedText=Be(L.blockedSegment.chunks,W,O.responseState,ee.lastPushedText)):typeof W=="number"&&(ee=L.blockedSegment,ee.lastPushedText=Be(L.blockedSegment.chunks,""+W,O.responseState,ee.lastPushedText))}function at(O,L,W){for(var ee=W.length,me=0;me<ee;me++){var ye=L.treeContext;L.treeContext=Ar(ye,ee,me);try{Ct(O,L,W[me])}finally{L.treeContext=ye}}}function Ct(O,L,W){var ee=L.blockedSegment.formatContext,me=L.legacyContext,ye=L.context;try{return Ye(O,L,W)}catch(gt){if(uo(),typeof gt=="object"&>!==null&&typeof gt.then=="function"){W=gt;var Fe=L.blockedSegment,Ke=H(O,Fe.chunks.length,null,Fe.formatContext,Fe.lastPushedText,!0);Fe.children.push(Ke),Fe.lastPushedText=!1,O=j(O,L.node,L.blockedBoundary,Ke,L.abortSet,L.legacyContext,L.context,L.treeContext).ping,W.then(O,O),L.blockedSegment.formatContext=ee,L.legacyContext=me,L.context=ye,lr(ye)}else throw L.blockedSegment.formatContext=ee,L.legacyContext=me,L.context=ye,lr(ye),gt}}function kt(O){var L=O.blockedBoundary;O=O.blockedSegment,O.status=3,Mr(this,L,O)}function In(O,L,W){var ee=O.blockedBoundary;O.blockedSegment.status=3,ee===null?(L.allPendingTasks--,L.status!==2&&(L.status=2,L.destination!==null&&L.destination.close())):(ee.pendingTasks--,ee.forceClientRender||(ee.forceClientRender=!0,O=W===void 0?Error(t(432)):W,ee.errorDigest=L.onError(O),ee.parentFlushed&&L.clientRenderedBoundaries.push(ee)),ee.fallbackAbortableTasks.forEach(function(me){return In(me,L,W)}),ee.fallbackAbortableTasks.clear(),L.allPendingTasks--,L.allPendingTasks===0&&(ee=L.onAllReady,ee()))}function cn(O,L){if(L.chunks.length===0&&L.children.length===1&&L.children[0].boundary===null){var W=L.children[0];W.id=L.id,W.parentFlushed=!0,W.status===1&&cn(O,W)}else O.completedSegments.push(L)}function Mr(O,L,W){if(L===null){if(W.parentFlushed){if(O.completedRootSegment!==null)throw Error(t(389));O.completedRootSegment=W}O.pendingRootTasks--,O.pendingRootTasks===0&&(O.onShellError=D,L=O.onShellReady,L())}else L.pendingTasks--,L.forceClientRender||(L.pendingTasks===0?(W.parentFlushed&&W.status===1&&cn(L,W),L.parentFlushed&&O.completedBoundaries.push(L),L.fallbackAbortableTasks.forEach(kt,O),L.fallbackAbortableTasks.clear()):W.parentFlushed&&W.status===1&&(cn(L,W),L.completedSegments.length===1&&L.parentFlushed&&O.partialBoundaries.push(L)));O.allPendingTasks--,O.allPendingTasks===0&&(O=O.onAllReady,O())}function Lr(O){if(O.status!==2){var L=pt,W=b.current;b.current=cr;var ee=h;h=O.responseState;try{var me=O.pingedTasks,ye;for(ye=0;ye<me.length;ye++){var Fe=me[ye],Ke=O,gt=Fe.blockedSegment;if(gt.status===0){lr(Fe.context);try{Ye(Ke,Fe,Fe.node),gt.lastPushedText&>.textEmbedded&>.chunks.push(Le),Fe.abortSet.delete(Fe),gt.status=1,Mr(Ke,Fe.blockedBoundary,gt)}catch(Vn){if(uo(),typeof Vn=="object"&&Vn!==null&&typeof Vn.then=="function"){var Pt=Fe.ping;Vn.then(Pt,Pt)}else{Fe.abortSet.delete(Fe),gt.status=4;var Tt=Fe.blockedBoundary,yt=Vn,Mn=oe(Ke,yt);if(Tt===null?ne(Ke,yt):(Tt.pendingTasks--,Tt.forceClientRender||(Tt.forceClientRender=!0,Tt.errorDigest=Mn,Tt.parentFlushed&&Ke.clientRenderedBoundaries.push(Tt))),Ke.allPendingTasks--,Ke.allPendingTasks===0){var xn=Ke.onAllReady;xn()}}}finally{}}}me.splice(0,ye),O.destination!==null&&ho(O,O.destination)}catch(Vn){oe(O,Vn),ne(O,Vn)}finally{h=ee,b.current=W,W===cr&&lr(L)}}}function Ft(O,L,W){switch(W.parentFlushed=!0,W.status){case 0:var ee=W.id=O.nextSegmentId++;return W.lastPushedText=!1,W.textEmbedded=!1,O=O.responseState,i(L,an),i(L,O.placeholderPrefix),O=f(ee.toString(16)),i(L,O),o(L,Bi);case 1:W.status=2;var me=!0;ee=W.chunks;var ye=0;W=W.children;for(var Fe=0;Fe<W.length;Fe++){for(me=W[Fe];ye<me.index;ye++)i(L,ee[ye]);me=Fr(O,L,me)}for(;ye<ee.length-1;ye++)i(L,ee[ye]);return ye<ee.length&&(me=o(L,ee[ye])),me;default:throw Error(t(390))}}function Fr(O,L,W){var ee=W.boundary;if(ee===null)return Ft(O,L,W);if(ee.parentFlushed=!0,ee.forceClientRender)ee=ee.errorDigest,o(L,jn),i(L,vr),ee&&(i(L,Yr),i(L,f(S(ee))),i(L,zr)),o(L,Po),Ft(O,L,W);else if(0<ee.pendingTasks){ee.rootSegmentID=O.nextSegmentId++,0<ee.completedSegments.length&&O.partialBoundaries.push(ee);var me=O.responseState,ye=me.nextSuspenseID++;me=p(me.boundaryPrefix+ye.toString(16)),ee=ee.id=me,Wn(L,O.responseState,ee),Ft(O,L,W)}else if(ee.byteSize>O.progressiveChunkSize)ee.rootSegmentID=O.nextSegmentId++,O.completedBoundaries.push(ee),Wn(L,O.responseState,ee.id),Ft(O,L,W);else{if(o(L,$i),W=ee.completedSegments,W.length!==1)throw Error(t(391));Fr(O,L,W[0])}return o(L,Or)}function jt(O,L,W){return Qn(L,O.responseState,W.formatContext,W.id),Fr(O,L,W),Dr(L,W.formatContext)}function en(O,L,W){for(var ee=W.completedSegments,me=0;me<ee.length;me++)fo(O,L,W,ee[me]);if(ee.length=0,O=O.responseState,ee=W.id,W=W.rootSegmentID,i(L,O.startInlineScript),O.sentCompleteBoundaryFunction?i(L,er):(O.sentCompleteBoundaryFunction=!0,i(L,Pr)),ee===null)throw Error(t(395));return W=f(W.toString(16)),i(L,ee),i(L,Ui),i(L,O.segmentPrefix),i(L,W),o(L,Di)}function fo(O,L,W,ee){if(ee.status===2)return!0;var me=ee.id;if(me===-1){if((ee.id=W.rootSegmentID)===-1)throw Error(t(392));return jt(O,L,ee)}return jt(O,L,ee),O=O.responseState,i(L,O.startInlineScript),O.sentCompleteSegmentFunction?i(L,ci):(O.sentCompleteSegmentFunction=!0,i(L,_r)),i(L,O.segmentPrefix),me=f(me.toString(16)),i(L,me),i(L,Xr),i(L,O.placeholderPrefix),i(L,me),o(L,yr)}function ho(O,L){n=new Uint8Array(512),r=0;try{var W=O.completedRootSegment;if(W!==null&&O.pendingRootTasks===0){Fr(O,L,W),O.completedRootSegment=null;var ee=O.responseState.bootstrapChunks;for(W=0;W<ee.length-1;W++)i(L,ee[W]);W<ee.length&&o(L,ee[W])}var me=O.clientRenderedBoundaries,ye;for(ye=0;ye<me.length;ye++){var Fe=me[ye];ee=L;var Ke=O.responseState,gt=Fe.id,Pt=Fe.errorDigest,Tt=Fe.errorMessage,yt=Fe.errorComponentStack;if(i(ee,Ke.startInlineScript),Ke.sentClientRenderFunction?i(ee,wn):(Ke.sentClientRenderFunction=!0,i(ee,sr)),gt===null)throw Error(t(395));i(ee,gt),i(ee,Rr),(Pt||Tt||yt)&&(i(ee,fi),i(ee,f(br(Pt||"")))),(Tt||yt)&&(i(ee,fi),i(ee,f(br(Tt||"")))),yt&&(i(ee,fi),i(ee,f(br(yt)))),o(ee,Ir)}me.splice(0,ye);var Mn=O.completedBoundaries;for(ye=0;ye<Mn.length;ye++)en(O,L,Mn[ye]);Mn.splice(0,ye),s(L),n=new Uint8Array(512),r=0;var xn=O.partialBoundaries;for(ye=0;ye<xn.length;ye++){var Vn=xn[ye];e:{me=O,Fe=L;var ta=Vn.completedSegments;for(Ke=0;Ke<ta.length;Ke++)if(!fo(me,Fe,Vn,ta[Ke])){Ke++,ta.splice(0,Ke);var ls=!1;break e}ta.splice(0,Ke),ls=!0}if(!ls){O.destination=null,ye++,xn.splice(0,ye);return}}xn.splice(0,ye);var po=O.completedBoundaries;for(ye=0;ye<po.length;ye++)en(O,L,po[ye]);po.splice(0,ye)}finally{s(L),O.allPendingTasks===0&&O.pingedTasks.length===0&&O.clientRenderedBoundaries.length===0&&O.completedBoundaries.length===0&&L.close()}}function xr(O,L){try{var W=O.abortableTasks;W.forEach(function(ee){return In(ee,O,L)}),W.clear(),O.destination!==null&&ho(O,O.destination)}catch(ee){oe(O,ee),ne(O,ee)}}return Fh.renderToReadableStream=function(O,L){return new Promise(function(W,ee){var me,ye,Fe=new Promise(function(Tt,yt){ye=Tt,me=yt}),Ke=F(O,We(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),we(L?L.namespaceURI:void 0),L?L.progressiveChunkSize:void 0,L?L.onError:void 0,ye,function(){var Tt=new ReadableStream({type:"bytes",pull:function(yt){if(Ke.status===1)Ke.status=2,y(yt,Ke.fatalError);else if(Ke.status!==2&&Ke.destination===null){Ke.destination=yt;try{ho(Ke,yt)}catch(Mn){oe(Ke,Mn),ne(Ke,Mn)}}},cancel:function(){xr(Ke)}},{highWaterMark:0});Tt.allReady=Fe,W(Tt)},function(Tt){Fe.catch(function(){}),ee(Tt)},me);if(L&&L.signal){var gt=L.signal,Pt=function(){xr(Ke,gt.reason),gt.removeEventListener("abort",Pt)};gt.addEventListener("abort",Pt)}Lr(Ke)})},Fh.version="18.3.1",Fh}var fc={};/**
|
|
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 i1;function C4(){return i1||(i1=1,process.env.NODE_ENV!=="production"&&function(){var e=q,t="18.3.1",n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(l){{for(var d=arguments.length,v=new Array(d>1?d-1:0),x=1;x<d;x++)v[x-1]=arguments[x];o("warn",l,v)}}function i(l){{for(var d=arguments.length,v=new Array(d>1?d-1:0),x=1;x<d;x++)v[x-1]=arguments[x];o("error",l,v)}}function o(l,d,v){{var x=n.ReactDebugCurrentFrame,A=x.getStackAddendum();A!==""&&(d+="%s",v=v.concat([A]));var B=v.map(function(Y){return String(Y)});B.unshift("Warning: "+d),Function.prototype.apply.call(console[l],console,B)}}function s(l){l()}function c(l){}function f(l,d){p(l,d)}function p(l,d){return l.push(d)}function y(l){}function g(l){l.push(null)}function T(l){return l}function C(l){return l}function P(l,d){l.destroy(d)}function I(l){{var d=typeof Symbol=="function"&&Symbol.toStringTag,v=d&&l[Symbol.toStringTag]||l.constructor.name||"Object";return v}}function M(l){try{return R(l),!1}catch{return!0}}function R(l){return""+l}function V(l,d){if(M(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,I(l)),R(l)}function U(l,d){if(M(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,I(l)),R(l)}function Q(l){if(M(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.",I(l)),R(l)}var K=Object.prototype.hasOwnProperty,ue=0,S=1,he=2,ae=3,Ge=4,Re=5,Me=6,$e=":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",Ue=$e+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ce=new RegExp("^["+$e+"]["+Ue+"]*$"),Te={},Ne={};function We(l){return K.call(Ne,l)?!0:K.call(Te,l)?!1:ce.test(l)?(Ne[l]=!0,!0):(Te[l]=!0,i("Invalid attribute name: `%s`",l),!1)}function tt(l,d,v,x){if(v!==null&&v.type===ue)return!1;switch(typeof d){case"function":case"symbol":return!0;case"boolean":{if(v!==null)return!v.acceptsBooleans;var A=l.toLowerCase().slice(0,5);return A!=="data-"&&A!=="aria-"}default:return!1}}function we(l){return Le.hasOwnProperty(l)?Le[l]:null}function Ee(l,d,v,x,A,B,Y){this.acceptsBooleans=d===he||d===ae||d===Ge,this.attributeName=x,this.attributeNamespace=A,this.mustUseProperty=v,this.propertyName=l,this.type=d,this.sanitizeURL=B,this.removeEmptyString=Y}var Le={},Be=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Be.forEach(function(l){Le[l]=new Ee(l,ue,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var d=l[0],v=l[1];Le[d]=new Ee(d,S,!1,v,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){Le[l]=new Ee(l,he,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){Le[l]=new Ee(l,he,!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){Le[l]=new Ee(l,ae,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){Le[l]=new Ee(l,ae,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){Le[l]=new Ee(l,Ge,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){Le[l]=new Ee(l,Me,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){Le[l]=new Ee(l,Re,!1,l.toLowerCase(),null,!1,!1)});var ke=/[\-\:]([a-z])/g,_e=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(ke,_e);Le[d]=new Ee(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(ke,_e);Le[d]=new Ee(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(ke,_e);Le[d]=new Ee(d,S,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){Le[l]=new Ee(l,S,!1,l.toLowerCase(),null,!1,!1)});var ze="xlinkHref";Le[ze]=new Ee("xlinkHref",S,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){Le[l]=new Ee(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 dt(l,d){return l+d.charAt(0).toUpperCase()+d.substring(1)}var ht=["Webkit","ms","Moz","O"];Object.keys(it).forEach(function(l){ht.forEach(function(d){it[dt(d,l)]=it[l]})});var ft={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function bt(l,d){ft[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 et(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 At={"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},Lt={},Hn=new RegExp("^(aria)-["+Ue+"]*$"),gr=new RegExp("^(aria)[A-Z]["+Ue+"]*$");function Un(l,d){{if(K.call(Lt,d)&&Lt[d])return!0;if(gr.test(d)){var v="aria-"+d.slice(4).toLowerCase(),x=At.hasOwnProperty(v)?v:null;if(x==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",d),Lt[d]=!0,!0;if(d!==x)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",d,x),Lt[d]=!0,!0}if(Hn.test(d)){var A=d.toLowerCase(),B=At.hasOwnProperty(A)?A:null;if(B==null)return Lt[d]=!0,!1;if(d!==B)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",d,B),Lt[d]=!0,!0}}return!0}function Cn(l,d){{var v=[];for(var x in d){var A=Un(l,x);A||v.push(x)}var B=v.map(function(Y){return"`"+Y+"`"}).join(", ");v.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",B,l):v.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",B,l)}}function ji(l,d){et(l,d)||Cn(l,d)}var Er=!1;function Zn(l,d){{if(l!=="input"&&l!=="textarea"&&l!=="select")return;d!=null&&d.value===null&&!Er&&(Er=!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"},dn=function(){};{var hn={},ct=/^on./,Dn=/^on[^A-Z]/,oi=new RegExp("^(aria)-["+Ue+"]*$"),an=new RegExp("^(aria)[A-Z]["+Ue+"]*$");dn=function(l,d,v,x){if(K.call(hn,d)&&hn[d])return!0;var A=d.toLowerCase();if(A==="onfocusin"||A==="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."),hn[d]=!0,!0;if(x!=null){var B=x.registrationNameDependencies,Y=x.possibleRegistrationNames;if(B.hasOwnProperty(d))return!0;var re=Y.hasOwnProperty(A)?Y[A]:null;if(re!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",d,re),hn[d]=!0,!0;if(ct.test(d))return i("Unknown event handler property `%s`. It will be ignored.",d),hn[d]=!0,!0}else if(ct.test(d))return Dn.test(d)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",d),hn[d]=!0,!0;if(oi.test(d)||an.test(d))return!0;if(A==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),hn[d]=!0,!0;if(A==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),hn[d]=!0,!0;if(A==="is"&&v!==null&&v!==void 0&&typeof v!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof v),hn[d]=!0,!0;if(typeof v=="number"&&isNaN(v))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",d),hn[d]=!0,!0;var be=we(d),He=be!==null&&be.type===ue;if(sn.hasOwnProperty(A)){var Ze=sn[A];if(Ze!==d)return i("Invalid DOM property `%s`. Did you mean `%s`?",d,Ze),hn[d]=!0,!0}else if(!He&&d!==A)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,A),hn[d]=!0,!0;return typeof v=="boolean"&&tt(d,v,be)?(v?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()}.',v,d,d,v,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.',v,d,d,v,d,d,d),hn[d]=!0,!0):He?!0:tt(d,v,be)?(hn[d]=!0,!1):((v==="false"||v==="true")&&be!==null&&be.type===ae&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",v,d,v==="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,v),hn[d]=!0),!0)}}var Bi=function(l,d,v){{var x=[];for(var A in d){var B=dn(l,A,d[A],v);B||x.push(A)}var Y=x.map(function(re){return"`"+re+"`"}).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 ",Y,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 ",Y,l)}};function $i(l,d,v){et(l,d)||Bi(l,d,v)}var Vi=function(){};{var kr=/^(?:webkit|moz|o)[A-Z]/,jn=/^-ms-/,Or=/-(.)/g,vr=/;\s*$/,zr={},Yr={},Po=!1,Wn=!1,Gr=function(l){return l.replace(Or,function(d,v){return v.toUpperCase()})},Jn=function(l){zr.hasOwnProperty(l)&&zr[l]||(zr[l]=!0,i("Unsupported style property %s. Did you mean %s?",l,Gr(l.replace(jn,"ms-"))))},Wt=function(l){zr.hasOwnProperty(l)&&zr[l]||(zr[l]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",l,l.charAt(0).toUpperCase()+l.slice(1)))},ai=function(l,d){Yr.hasOwnProperty(d)&&Yr[d]||(Yr[d]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,l,d.replace(vr,"")))},Hi=function(l,d){Po||(Po=!0,i("`NaN` is an invalid value for the `%s` css style property.",l))},_n=function(l,d){Wn||(Wn=!0,i("`Infinity` is an invalid value for the `%s` css style property.",l))};Vi=function(l,d){l.indexOf("-")>-1?Jn(l):kr.test(l)?Wt(l):vr.test(d)&&ai(l,d),typeof d=="number"&&(isNaN(d)?Hi(l,d):isFinite(d)||_n(l,d))}}var pn=Vi,si=/["'&<>]/;function li(l){Q(l);var d=""+l,v=si.exec(d);if(!v)return d;var x,A="",B,Y=0;for(B=v.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}Y!==B&&(A+=d.substring(Y,B)),Y=B+1,A+=x}return Y!==B?A+d.substring(Y,B):A}function En(l){return typeof l=="boolean"||typeof l=="number"?""+l:li(l)}var oo=/([A-Z])/g,mr=/^ms-/;function ui(l){return l.replace(oo,"-$1").toLowerCase().replace(mr,"-ms-")}var ln=/^[\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,ki=!1;function Pa(l){!ki&&ln.test(l)&&(ki=!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 Ra=Array.isArray;function qr(l){return Ra(l)}var ao="<script>";function so(l,d,v,x,A){var B=l===void 0?"":l,Y=ao,re=[];return{bootstrapChunks:re,startInlineScript:Y,placeholderPrefix:B+"P:",segmentPrefix:B+"S:",boundaryPrefix:B+"B:",idPrefix:B,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Oi=0,Qn=1,Dr=2,_r=3,ci=4,Xr=5,yr=6,Pr=7;function er(l,d){return{insertionMode:l,selectedValue:d}}function Ui(l,d,v){switch(d){case"select":return er(Qn,v.value!=null?v.value:v.defaultValue);case"svg":return er(Dr,null);case"math":return er(_r,null);case"foreignObject":return er(Qn,null);case"table":return er(ci,null);case"thead":case"tbody":case"tfoot":return er(Xr,null);case"colgroup":return er(Pr,null);case"tr":return er(yr,null)}return l.insertionMode>=ci||l.insertionMode===Oi?er(Qn,null):l}var Di=null;function sr(l){var d=l.nextSuspenseID++;return l.boundaryPrefix+d.toString(16)}function wn(l,d,v){var x=l.idPrefix,A=":"+x+"R"+d;return v>0&&(A+="H"+v.toString(32)),A+":"}function Rr(l){return En(l)}var Ir="<!-- -->";function fi(l,d,v,x){return d===""?x:(x&&l.push(Ir),l.push(Rr(d)),!0)}function di(l,d,v,x){v&&x&&l.push(Ir)}var br=new Map;function Kr(l){var d=br.get(l);if(d!==void 0)return d;var v=En(ui(l));return br.set(l,v),v}var zn=' style="',hi=":",pi=";";function _i(l,d,v){if(typeof v!="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 A in v)if(K.call(v,A)){var B=v[A];if(!(B==null||typeof B=="boolean"||B==="")){var Y=void 0,re=void 0,be=A.indexOf("--")===0;be?(Y=En(A),U(B,A),re=En((""+B).trim())):(pn(A,B),Y=Kr(A),typeof B=="number"?B!==0&&!K.call(it,A)?re=B+"px":re=""+B:(U(B,A),re=En((""+B).trim()))),x?(x=!1,l.push(zn,Y,hi,re)):l.push(pi,Y,hi,re)}}x||l.push(kn)}var rn=" ",Bn='="',kn='"',lo='=""';function Pn(l,d,v,x){switch(v){case"style":{_i(l,d,x);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(v.length>2&&(v[0]==="o"||v[0]==="O")&&(v[1]==="n"||v[1]==="N"))){var A=we(v);if(A!==null){switch(typeof x){case"function":case"symbol":return;case"boolean":if(!A.acceptsBooleans)return}var B=A.attributeName,Y=B;switch(A.type){case ae:x&&l.push(rn,Y,lo);return;case Ge:x===!0?l.push(rn,Y,lo):x===!1||l.push(rn,Y,Bn,En(x),kn);return;case Re:isNaN(x)||l.push(rn,Y,Bn,En(x),kn);break;case Me:!isNaN(x)&&x>=1&&l.push(rn,Y,Bn,En(x),kn);break;default:A.sanitizeURL&&(V(x,B),x=""+x,Pa(x)),l.push(rn,Y,Bn,En(x),kn)}}else if(We(v)){switch(typeof x){case"function":case"symbol":return;case"boolean":{var re=v.toLowerCase().slice(0,5);if(re!=="data-"&&re!=="aria-")return}}l.push(rn,v,Bn,En(x),kn)}}}var Rn=">",k="/>";function N(l,d,v){if(d!=null){if(v!=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&&(Q(x),l.push(""+x))}}var G=!1,te=!1,Ce=!1,ge=!1,Pe=!1,Je=!1,vt=!1;function mt(l,d){{var v=l[d];if(v!=null){var x=qr(v);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,v){bt("select",d),mt(d,"value"),mt(d,"defaultValue"),d.value!==void 0&&d.defaultValue!==void 0&&!Ce&&(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"),Ce=!0),l.push(wr("select"));var x=null,A=null;for(var B in d)if(K.call(d,B)){var Y=d[B];if(Y==null)continue;switch(B){case"children":x=Y;break;case"dangerouslySetInnerHTML":A=Y;break;case"defaultValue":case"value":break;default:Pn(l,v,B,Y);break}}return l.push(Rn),N(l,A,x),x}function Nt(l){var d="";return e.Children.forEach(l,function(v){v!=null&&(d+=v,!Pe&&typeof v!="string"&&typeof v!="number"&&(Pe=!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 $n=' selected=""';function Yn(l,d,v,x){var A=x.selectedValue;l.push(wr("option"));var B=null,Y=null,re=null,be=null;for(var He in d)if(K.call(d,He)){var Ze=d[He];if(Ze==null)continue;switch(He){case"children":B=Ze;break;case"selected":re=Ze,vt||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),vt=!0);break;case"dangerouslySetInnerHTML":be=Ze;break;case"value":Y=Ze;default:Pn(l,v,He,Ze);break}}if(A!=null){var rt;if(Y!==null?(V(Y,"value"),rt=""+Y):(be!==null&&(Je||(Je=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),rt=Nt(B)),qr(A))for(var St=0;St<A.length;St++){V(A[St],"value");var tn=""+A[St];if(tn===rt){l.push($n);break}}else V(A,"select.value"),""+A===rt&&l.push($n)}else re&&l.push($n);return l.push(Rn),N(l,be,B),B}function On(l,d,v){bt("input",d),d.checked!==void 0&&d.defaultChecked!==void 0&&!te&&(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),te=!0),d.value!==void 0&&d.defaultValue!==void 0&&!G&&(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),G=!0),l.push(wr("input"));var x=null,A=null,B=null,Y=null;for(var re in d)if(K.call(d,re)){var be=d[re];if(be==null)continue;switch(re){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":Y=be;break;case"defaultValue":A=be;break;case"checked":B=be;break;case"value":x=be;break;default:Pn(l,v,re,be);break}}return B!==null?Pn(l,v,"checked",B):Y!==null&&Pn(l,v,"checked",Y),x!==null?Pn(l,v,"value",x):A!==null&&Pn(l,v,"value",A),l.push(k),null}function Zr(l,d,v){bt("textarea",d),d.value!==void 0&&d.defaultValue!==void 0&&!ge&&(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"),ge=!0),l.push(wr("textarea"));var x=null,A=null,B=null;for(var Y in d)if(K.call(d,Y)){var re=d[Y];if(re==null)continue;switch(Y){case"children":B=re;break;case"value":x=re;break;case"defaultValue":A=re;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:Pn(l,v,Y,re);break}}if(x===null&&A!==null&&(x=A),l.push(Rn),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(qr(B)){if(B.length>1)throw new Error("<textarea> can only have at most one child.");Q(B[0]),x=""+B[0]}Q(B),x=""+B}return typeof x=="string"&&x[0]===`
|
|
66
|
+
`&&l.push(Yi),x!==null&&(V(x,"value"),l.push(Rr(""+x))),null}function lr(l,d,v,x){l.push(wr(v));for(var A in d)if(K.call(d,A)){var B=d[A];if(B==null)continue;switch(A){case"children":case"dangerouslySetInnerHTML":throw new Error(v+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Pn(l,x,A,B);break}}return l.push(k),null}function Wi(l,d,v){l.push(wr("menuitem"));for(var x in d)if(K.call(d,x)){var A=d[x];if(A==null)continue;switch(x){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:Pn(l,v,x,A);break}}return l.push(Rn),null}function gi(l,d,v){l.push(wr("title"));var x=null;for(var A in d)if(K.call(d,A)){var B=d[A];if(B==null)continue;switch(A){case"children":x=B;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:Pn(l,v,A,B);break}}l.push(Rn);{var Y=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"):Y!=null&&Y.$$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"):Y!=null&&typeof Y!="string"&&typeof Y!="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 zi(l,d,v,x){l.push(wr(v));var A=null,B=null;for(var Y in d)if(K.call(d,Y)){var re=d[Y];if(re==null)continue;switch(Y){case"children":A=re;break;case"dangerouslySetInnerHTML":B=re;break;default:Pn(l,x,Y,re);break}}return l.push(Rn),N(l,B,A),typeof A=="string"?(l.push(Rr(A)),null):A}function Ar(l,d,v,x){l.push(wr(v));var A=null,B=null;for(var Y in d)if(K.call(d,Y)){var re=d[Y];if(re==null)continue;switch(Y){case"children":A=re;break;case"dangerouslySetInnerHTML":B=re;break;case"style":_i(l,x,re);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:We(Y)&&typeof re!="function"&&typeof re!="symbol"&&l.push(rn,Y,Bn,En(re),kn);break}}return l.push(Rn),N(l,B,A),A}var Yi=`
|
|
67
|
+
`;function Hs(l,d,v,x){l.push(wr(v));var A=null,B=null;for(var Y in d)if(K.call(d,Y)){var re=d[Y];if(re==null)continue;switch(Y){case"children":A=re;break;case"dangerouslySetInnerHTML":B=re;break;default:Pn(l,x,Y,re);break}}if(l.push(Rn),B!=null){if(A!=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 be=B.__html;be!=null&&(typeof be=="string"&&be.length>0&&be[0]===`
|
|
68
|
+
`?l.push(Yi,be):(Q(be),l.push(""+be)))}return typeof A=="string"&&A[0]===`
|
|
69
|
+
`&&l.push(Yi),A}var Ia=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Qo=new Map;function wr(l){var d=Qo.get(l);if(d===void 0){if(!Ia.test(l))throw new Error("Invalid tag: "+l);d="<"+l,Qo.set(l,d)}return d}var Us="<!DOCTYPE html>";function vi(l,d,v,x,A){switch(ji(d,v),Zn(d,v),$i(d,v,null),!v.suppressContentEditableWarning&&v.contentEditable&&v.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."),A.insertionMode!==Dr&&A.insertionMode!==_r&&d.indexOf("-")===-1&&typeof v.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,v,x);case"option":return Yn(l,v,x,A);case"textarea":return Zr(l,v,x);case"input":return On(l,v,x);case"menuitem":return Wi(l,v,x);case"title":return gi(l,v,x);case"listing":case"pre":return Hs(l,v,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,v,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 zi(l,v,d,x);case"html":return A.insertionMode===Oi&&l.push(Us),zi(l,v,d,x);default:return d.indexOf("-")===-1&&typeof v.is!="string"?zi(l,v,d,x):Ar(l,v,d,x)}}var Aa="</",ea=">";function on(l,d,v){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(Aa,d,ea)}}function qt(l,d){for(var v=d.bootstrapChunks,x=0;x<v.length-1;x++)f(l,v[x]);return x<v.length?p(l,v[x]):!0}var Zt='<template id="',Pi='"></template>';function Jr(l,d,v){f(l,Zt),f(l,d.placeholderPrefix);var x=v.toString(16);return f(l,x),p(l,Pi)}var Ro="<!--$-->",mi='<!--$?--><template id="',ur='"></template>',Ma="<!--$!-->",uo="<!--/$-->",as="<template",un='"',Io=' data-dgst="',yi=' data-msg="',ss=' data-stck="',co="></template>";function cr(l,d){return p(l,Ro)}function h(l,d,v){if(f(l,mi),v===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return f(l,v),p(l,ur)}function b(l,d,v,x,A){var B;return B=p(l,Ma),f(l,as),v&&(f(l,Io),f(l,En(v)),f(l,un)),x&&(f(l,yi),f(l,En(x)),f(l,un)),A&&(f(l,ss),f(l,En(A)),f(l,un)),B=p(l,co),B}function E(l,d){return p(l,uo)}function D(l,d){return p(l,uo)}function F(l,d){return p(l,uo)}var j='<div hidden id="',H='">',oe="</div>",ne='<svg aria-hidden="true" style="display:none" id="',pe='">',De="</svg>",Ie='<math aria-hidden="true" style="display:none" id="',xe='">',Ye="</math>",at='<table hidden id="',Ct='">',kt="</table>",In='<table hidden><tbody id="',cn='">',Mr="</tbody></table>",Lr='<table hidden><tr id="',Ft='">',Fr="</tr></table>",jt='<table hidden><colgroup id="',en='">',fo="</colgroup></table>";function ho(l,d,v,x){switch(v.insertionMode){case Oi:case Qn:return f(l,j),f(l,d.segmentPrefix),f(l,x.toString(16)),p(l,H);case Dr:return f(l,ne),f(l,d.segmentPrefix),f(l,x.toString(16)),p(l,pe);case _r:return f(l,Ie),f(l,d.segmentPrefix),f(l,x.toString(16)),p(l,xe);case ci:return f(l,at),f(l,d.segmentPrefix),f(l,x.toString(16)),p(l,Ct);case Xr:return f(l,In),f(l,d.segmentPrefix),f(l,x.toString(16)),p(l,cn);case yr:return f(l,Lr),f(l,d.segmentPrefix),f(l,x.toString(16)),p(l,Ft);case Pr:return f(l,jt),f(l,d.segmentPrefix),f(l,x.toString(16)),p(l,en);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function xr(l,d){switch(d.insertionMode){case Oi:case Qn:return p(l,oe);case Dr:return p(l,De);case _r:return p(l,Ye);case ci:return p(l,kt);case Xr:return p(l,Mr);case yr:return p(l,Fr);case Pr:return p(l,fo);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var O="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)}",L='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())}',ee=O+';$RS("',me='$RS("',ye='","',Fe='")<\/script>';function Ke(l,d,v){f(l,d.startInlineScript),d.sentCompleteSegmentFunction?f(l,me):(d.sentCompleteSegmentFunction=!0,f(l,ee)),f(l,d.segmentPrefix);var x=v.toString(16);return f(l,x),f(l,ye),f(l,d.placeholderPrefix),f(l,x),p(l,Fe)}var gt=L+';$RC("',Pt='$RC("',Tt='","',yt='")<\/script>';function Mn(l,d,v,x){if(f(l,d.startInlineScript),d.sentCompleteBoundaryFunction?f(l,Pt):(d.sentCompleteBoundaryFunction=!0,f(l,gt)),v===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var A=x.toString(16);return f(l,v),f(l,Tt),f(l,d.segmentPrefix),f(l,A),p(l,yt)}var xn=W+';$RX("',Vn='$RX("',ta='"',ls=")<\/script>",po=",";function Qr(l,d,v,x,A,B){if(f(l,d.startInlineScript),d.sentClientRenderFunction?f(l,Vn):(d.sentClientRenderFunction=!0,f(l,xn)),v===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return f(l,v),f(l,ta),(x||A||B)&&(f(l,po),f(l,Ri(x||""))),(A||B)&&(f(l,po),f(l,Ri(A||""))),B&&(f(l,po),f(l,Ri(B))),p(l,ls)}var Ws=/[<\u2028\u2029]/g;function Ri(l){var d=JSON.stringify(l);return d.replace(Ws,function(v){switch(v){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 us(l,d){var v=so(d);return{bootstrapChunks:v.bootstrapChunks,startInlineScript:v.startInlineScript,placeholderPrefix:v.placeholderPrefix,segmentPrefix:v.segmentPrefix,boundaryPrefix:v.boundaryPrefix,idPrefix:v.idPrefix,nextSuspenseID:v.nextSuspenseID,sentCompleteSegmentFunction:v.sentCompleteSegmentFunction,sentCompleteBoundaryFunction:v.sentCompleteBoundaryFunction,sentClientRenderFunction:v.sentClientRenderFunction,generateStaticMarkup:l}}function na(){return{insertionMode:Qn,selectedValue:null}}function ei(l,d,v,x){return v.generateStaticMarkup?(l.push(En(d)),!1):fi(l,d,v,x)}function go(l,d,v,x){if(!d.generateStaticMarkup)return di(l,d,v,x)}function zs(l,d){return d.generateStaticMarkup?!0:cr(l)}function Du(l,d,v,x,A){return d.generateStaticMarkup?!0:b(l,d,v,x,A)}function cs(l,d){return d.generateStaticMarkup?!0:E(l)}function vo(l,d){return d.generateStaticMarkup?!0:F(l)}var fn=Object.assign,Rl=Symbol.for("react.element"),fs=Symbol.for("react.portal"),La=Symbol.for("react.fragment"),J=Symbol.for("react.strict_mode"),fe=Symbol.for("react.profiler"),Se=Symbol.for("react.provider"),Oe=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),le=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),Ae=Symbol.for("react.memo"),Ve=Symbol.for("react.lazy"),st=Symbol.for("react.scope"),ut=Symbol.for("react.debug_trace_mode"),ot=Symbol.for("react.legacy_hidden"),Mt=Symbol.for("react.default_value"),xt=Symbol.iterator,Vt="@@iterator";function Gn(l){if(l===null||typeof l!="object")return null;var d=xt&&l[xt]||l[Vt];return typeof d=="function"?d:null}function tr(l,d,v){var x=l.displayName;if(x)return x;var A=d.displayName||d.name||"";return A!==""?v+"("+A+")":v}function Ln(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 La:return"Fragment";case fs:return"Portal";case fe:return"Profiler";case J:return"StrictMode";case le:return"Suspense";case se:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case Oe:var d=l;return Ln(d)+".Consumer";case Se:var v=l;return Ln(v._context)+".Provider";case Z:return tr(l,l.render,"ForwardRef");case Ae:var x=l.displayName||null;return x!==null?x:zt(l.type)||"Memo";case Ve:{var A=l,B=A._payload,Y=A._init;try{return zt(Y(B))}catch{return null}}}return null}var Nr=0,Ot,_u,gn,Ao,Pu,Ru,Iu;function ds(){}ds.__reactDisabledLog=!0;function Mo(){{if(Nr===0){Ot=console.log,_u=console.info,gn=console.warn,Ao=console.error,Pu=console.group,Ru=console.groupCollapsed,Iu=console.groupEnd;var l={configurable:!0,enumerable:!0,value:ds,writable:!0};Object.defineProperties(console,{info:l,log:l,warn:l,error:l,group:l,groupCollapsed:l,groupEnd:l})}Nr++}}function Ys(){{if(Nr--,Nr===0){var l={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:fn({},l,{value:Ot}),info:fn({},l,{value:_u}),warn:fn({},l,{value:gn}),error:fn({},l,{value:Ao}),group:fn({},l,{value:Pu}),groupCollapsed:fn({},l,{value:Ru}),groupEnd:fn({},l,{value:Iu})})}Nr<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Gs=n.ReactCurrentDispatcher,Fa;function hs(l,d,v){{if(Fa===void 0)try{throw Error()}catch(A){var x=A.stack.trim().match(/\n( *(at )?)/);Fa=x&&x[1]||""}return`
|
|
70
|
+
`+Fa+l}}var Il=!1,Lo;{var Al=typeof WeakMap=="function"?WeakMap:Map;Lo=new Al}function Gi(l,d){if(!l||Il)return"";{var v=Lo.get(l);if(v!==void 0)return v}var x;Il=!0;var A=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var B;B=Gs.current,Gs.current=null,Mo();try{if(d){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(rr){x=rr}Reflect.construct(l,[],Y)}else{try{Y.call()}catch(rr){x=rr}l.call(Y.prototype)}}else{try{throw Error()}catch(rr){x=rr}l()}}catch(rr){if(rr&&x&&typeof rr.stack=="string"){for(var re=rr.stack.split(`
|
|
71
|
+
`),be=x.stack.split(`
|
|
72
|
+
`),He=re.length-1,Ze=be.length-1;He>=1&&Ze>=0&&re[He]!==be[Ze];)Ze--;for(;He>=1&&Ze>=0;He--,Ze--)if(re[He]!==be[Ze]){if(He!==1||Ze!==1)do if(He--,Ze--,Ze<0||re[He]!==be[Ze]){var rt=`
|
|
73
|
+
`+re[He].replace(" at new "," at ");return l.displayName&&rt.includes("<anonymous>")&&(rt=rt.replace("<anonymous>",l.displayName)),typeof l=="function"&&Lo.set(l,rt),rt}while(He>=1&&Ze>=0);break}}}finally{Il=!1,Gs.current=B,Ys(),Error.prepareStackTrace=A}var St=l?l.displayName||l.name:"",tn=St?hs(St):"";return typeof l=="function"&&Lo.set(l,tn),tn}function Fo(l,d,v){return Gi(l,!0)}function ra(l,d,v){return Gi(l,!1)}function Af(l){var d=l.prototype;return!!(d&&d.isReactComponent)}function qs(l,d,v){if(l==null)return"";if(typeof l=="function")return Gi(l,Af(l));if(typeof l=="string")return hs(l);switch(l){case le:return hs("Suspense");case se:return hs("SuspenseList")}if(typeof l=="object")switch(l.$$typeof){case Z:return ra(l.render);case Ae:return qs(l.type,d,v);case Ve:{var x=l,A=x._payload,B=x._init;try{return qs(B(A),d,v)}catch{}}}return""}var Pc={},ps=n.ReactDebugCurrentFrame;function Na(l){if(l){var d=l._owner,v=qs(l.type,l._source,d?d.type:null);ps.setExtraStackFrame(v)}else ps.setExtraStackFrame(null)}function gs(l,d,v,x,A){{var B=Function.call.bind(K);for(var Y in l)if(B(l,Y)){var re=void 0;try{if(typeof l[Y]!="function"){var be=Error((x||"React class")+": "+v+" type `"+Y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[Y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw be.name="Invariant Violation",be}re=l[Y](d,Y,x,v,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(He){re=He}re&&!(re instanceof Error)&&(Na(A),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",v,Y,typeof re),Na(null)),re instanceof Error&&!(re.message in Pc)&&(Pc[re.message]=!0,Na(A),i("Failed %s type: %s",v,re.message),Na(null))}}}var Ml;Ml={};var vs={};Object.freeze(vs);function Xs(l,d){{var v=l.contextTypes;if(!v)return vs;var x={};for(var A in v)x[A]=d[A];{var B=zt(l)||"Unknown";gs(v,x,"context",B)}return x}}function Rc(l,d,v,x){{if(typeof l.getChildContext!="function"){{var A=zt(d)||"Unknown";Ml[A]||(Ml[A]=!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.",A,A))}return v}var B=l.getChildContext();for(var Y in B)if(!(Y in x))throw new Error((zt(d)||"Unknown")+'.getChildContext(): key "'+Y+'" is not defined in childContextTypes.');{var re=zt(d)||"Unknown";gs(x,B,"child context",re)}return fn({},v,B)}}var Sn;Sn={};var qn=null,ia=null;function Au(l){l.context._currentValue2=l.parentValue}function oa(l){l.context._currentValue2=l.value}function Ll(l,d){if(l!==d){Au(l);var v=l.parent,x=d.parent;if(v===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.");Ll(v,x)}oa(d)}}function mo(l){Au(l);var d=l.parent;d!==null&&mo(d)}function aa(l){var d=l.parent;d!==null&&aa(d),oa(l)}function ms(l,d){Au(l);var v=l.parent;if(v===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?Ll(v,d):ms(v,d)}function yo(l,d){var v=d.parent;if(v===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");l.depth===v.depth?Ll(l,v):yo(l,v),oa(d)}function No(l){var d=ia,v=l;d!==v&&(d===null?aa(v):v===null?mo(d):d.depth===v.depth?Ll(d,v):d.depth>v.depth?ms(d,v):yo(d,v),ia=v)}function ys(l,d){var v;v=l._currentValue2,l._currentValue2=d,l._currentRenderer2!==void 0&&l._currentRenderer2!==null&&l._currentRenderer2!==Sn&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),l._currentRenderer2=Sn;var x=ia,A={parent:x,depth:x===null?0:x.depth+1,context:l,parentValue:v,value:d};return ia=A,A}function Ks(l){var d=ia;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 v=d.parentValue;v===Mt?d.context._currentValue2=d.context._defaultValue:d.context._currentValue2=v,l._currentRenderer2!==void 0&&l._currentRenderer2!==null&&l._currentRenderer2!==Sn&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),l._currentRenderer2=Sn}return ia=d.parent}function ja(){return ia}function sa(l){var d=l._currentValue2;return d}function Mu(l){return l._reactInternals}function Mf(l,d){l._reactInternals=d}var Ic={},bs={},la,Ba,Zs,z,jo,Bo,Sr,$t,Fl;{la=new Set,Ba=new Set,Zs=new Set,Sr=new Set,z=new Set,$t=new Set,Fl=new Set;var Js=new Set;Bo=function(l,d){if(!(l===null||typeof l=="function")){var v=d+"_"+l;Js.has(v)||(Js.add(v),i("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",d,l))}},jo=function(l,d){if(d===void 0){var v=zt(l)||"Component";z.has(v)||(z.add(v),i("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",v))}}}function Nl(l,d){{var v=l.constructor,x=v&&zt(v)||"ReactClass",A=x+"."+d;if(Ic[A])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),Ic[A]=!0}}var bo={isMounted:function(l){return!1},enqueueSetState:function(l,d,v){var x=Mu(l);x.queue===null?Nl(l,"setState"):(x.queue.push(d),v!=null&&Bo(v,"setState"))},enqueueReplaceState:function(l,d,v){var x=Mu(l);x.replace=!0,x.queue=[d],v!=null&&Bo(v,"setState")},enqueueForceUpdate:function(l,d){var v=Mu(l);v.queue===null?Nl(l,"forceUpdate"):d!=null&&Bo(d,"setState")}};function Lu(l,d,v,x,A){var B=v(A,x);jo(d,B);var Y=B==null?x:fn({},x,B);return Y}function Ac(l,d,v){var x=vs,A=l.contextType;if("contextType"in l){var B=A===null||A!==void 0&&A.$$typeof===Oe&&A._context===void 0;if(!B&&!Fl.has(l)){Fl.add(l);var Y="";A===void 0?Y=" 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 A!="object"?Y=" However, it is set to a "+typeof A+".":A.$$typeof===Se?Y=" Did you accidentally pass the Context.Provider instead?":A._context!==void 0?Y=" Did you accidentally pass the Context.Consumer instead?":Y=" However, it is set to an object with keys {"+Object.keys(A).join(", ")+"}.",i("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",zt(l)||"Component",Y)}}typeof A=="object"&&A!==null?x=sa(A):x=v;var re=new l(d,x);{if(typeof l.getDerivedStateFromProps=="function"&&(re.state===null||re.state===void 0)){var be=zt(l)||"Component";la.has(be)||(la.add(be),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.",be,re.state===null?"null":"undefined",be))}if(typeof l.getDerivedStateFromProps=="function"||typeof re.getSnapshotBeforeUpdate=="function"){var He=null,Ze=null,rt=null;if(typeof re.componentWillMount=="function"&&re.componentWillMount.__suppressDeprecationWarning!==!0?He="componentWillMount":typeof re.UNSAFE_componentWillMount=="function"&&(He="UNSAFE_componentWillMount"),typeof re.componentWillReceiveProps=="function"&&re.componentWillReceiveProps.__suppressDeprecationWarning!==!0?Ze="componentWillReceiveProps":typeof re.UNSAFE_componentWillReceiveProps=="function"&&(Ze="UNSAFE_componentWillReceiveProps"),typeof re.componentWillUpdate=="function"&&re.componentWillUpdate.__suppressDeprecationWarning!==!0?rt="componentWillUpdate":typeof re.UNSAFE_componentWillUpdate=="function"&&(rt="UNSAFE_componentWillUpdate"),He!==null||Ze!==null||rt!==null){var St=zt(l)||"Component",tn=typeof l.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Zs.has(St)||(Zs.add(St),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`,St,tn,He!==null?`
|
|
81
|
+
`+He:"",Ze!==null?`
|
|
82
|
+
`+Ze:"",rt!==null?`
|
|
83
|
+
`+rt:""))}}}return re}function Mc(l,d,v){{var x=zt(d)||"Component",A=l.render;A||(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!==v;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"&&!Ba.has(d)&&(Ba.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 Y=l.state;Y&&(typeof Y!="object"||qr(Y))&&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 Lc(l,d){var v=d.state;if(typeof d.componentWillMount=="function"){if(d.componentWillMount.__suppressDeprecationWarning!==!0){var x=zt(l)||"Unknown";bs[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),bs[x]=!0)}d.componentWillMount()}typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),v!==d.state&&(i("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",zt(l)||"Component"),bo.enqueueReplaceState(d,d.state,null))}function Lf(l,d,v,x){if(l.queue!==null&&l.queue.length>0){var A=l.queue,B=l.replace;if(l.queue=null,l.replace=!1,B&&A.length===1)d.state=A[0];else{for(var Y=B?A[0]:d.state,re=!0,be=B?1:0;be<A.length;be++){var He=A[be],Ze=typeof He=="function"?He.call(d,Y,v,x):He;Ze!=null&&(re?(re=!1,Y=fn({},Y,Ze)):fn(Y,Ze))}d.state=Y}}else l.queue=null}function wo(l,d,v,x){Mc(l,d,v);var A=l.state!==void 0?l.state:null;l.updater=bo,l.props=v,l.state=A;var B={queue:[],replace:!1};Mf(l,B);var Y=d.contextType;if(typeof Y=="object"&&Y!==null?l.context=sa(Y):l.context=x,l.state===v){var re=zt(d)||"Component";Sr.has(re)||(Sr.add(re),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.",re))}var be=d.getDerivedStateFromProps;typeof be=="function"&&(l.state=Lu(l,d,be,A,v)),typeof d.getDerivedStateFromProps!="function"&&typeof l.getSnapshotBeforeUpdate!="function"&&(typeof l.UNSAFE_componentWillMount=="function"||typeof l.componentWillMount=="function")&&(Lc(d,l),Lf(B,l,v,x))}var Ff={id:1,overflow:""};function Nf(l){var d=l.overflow,v=l.id,x=v&~jf(v);return x.toString(32)+d}function Fu(l,d,v){var x=l.id,A=l.overflow,B=Qs(x)-1,Y=x&~(1<<B),re=v+1,be=Qs(d)+B;if(be>30){var He=B-B%5,Ze=(1<<He)-1,rt=(Y&Ze).toString(32),St=Y>>He,tn=B-He,rr=Qs(d)+tn,Co=re<<tn,va=Co|St,Ji=rt+A;return{id:1<<rr|va,overflow:Ji}}else{var _s=re<<B,Qc=_s|Y,Za=A;return{id:1<<be|Qc,overflow:Za}}}function Qs(l){return 32-$o(l)}function jf(l){return 1<<Qs(l)-1}var $o=Math.clz32?Math.clz32:Bf,Nu=Math.log,jl=Math.LN2;function Bf(l){var d=l>>>0;return d===0?32:31-(Nu(d)/jl|0)|0}function $f(l,d){return l===d&&(l!==0||1/l===1/d)||l!==l&&d!==d}var Vf=typeof Object.is=="function"?Object.is:$f,jr=null,ju=null,Bl=null,Xt=null,bi=!1,ws=!1,$a=0,Jt=null,ua=0,el=25,ti=!1,wi;function xo(){if(jr===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 ti&&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"),jr}function Bu(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.",wi),!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`,wi,"["+l.join(", ")+"]","["+d.join(", ")+"]");for(var v=0;v<d.length&&v<l.length;v++)if(!Vf(l[v],d[v]))return!1;return!0}function Br(){if(ua>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function qi(){return Xt===null?Bl===null?(bi=!1,Bl=Xt=Br()):(bi=!0,Xt=Bl):Xt.next===null?(bi=!1,Xt=Xt.next=Br()):(bi=!0,Xt=Xt.next),Xt}function Va(l,d){jr=d,ju=l,ti=!1,$a=0}function Fc(l,d,v,x){for(;ws;)ws=!1,$a=0,ua+=1,Xt=null,v=l(d,x);return xi(),v}function $u(){var l=$a!==0;return l}function xi(){ti=!1,jr=null,ju=null,ws=!1,Bl=null,ua=0,Jt=null,Xt=null}function Vu(l){return ti&&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(l)}function Ha(l){return wi="useContext",xo(),sa(l)}function $r(l,d){return typeof d=="function"?d(l):d}function Hu(l){return wi="useState",Uu($r,l)}function Uu(l,d,v){if(l!==$r&&(wi="useReducer"),jr=xo(),Xt=qi(),bi){var x=Xt.queue,A=x.dispatch;if(Jt!==null){var B=Jt.get(x);if(B!==void 0){Jt.delete(x);var Y=Xt.memoizedState,re=B;do{var be=re.action;ti=!0,Y=l(Y,be),ti=!1,re=re.next}while(re!==null);return Xt.memoizedState=Y,[Y,A]}}return[Xt.memoizedState,A]}else{ti=!0;var He;l===$r?He=typeof d=="function"?d():d:He=v!==void 0?v(d):d,ti=!1,Xt.memoizedState=He;var Ze=Xt.queue={last:null,dispatch:null},rt=Ze.dispatch=zu.bind(null,jr,Ze);return[Xt.memoizedState,rt]}}function Wu(l,d){jr=xo(),Xt=qi();var v=d===void 0?null:d;if(Xt!==null){var x=Xt.memoizedState;if(x!==null&&v!==null){var A=x[1];if(Bu(v,A))return x[0]}}ti=!0;var B=l();return ti=!1,Xt.memoizedState=[B,v],B}function Ua(l){jr=xo(),Xt=qi();var d=Xt.memoizedState;if(d===null){var v={current:l};return Object.seal(v),Xt.memoizedState=v,v}else return d}function ca(l,d){wi="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 zu(l,d,v){if(ua>=el)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(l===jr){ws=!0;var x={action:v,next:null};Jt===null&&(Jt=new Map);var A=Jt.get(d);if(A===void 0)Jt.set(d,x);else{for(var B=A;B.next!==null;)B=B.next;B.next=x}}}function Nc(l,d){return Wu(function(){return l},d)}function $l(l,d,v){return xo(),d(l._source)}function Hf(l,d,v){if(v===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return v()}function jc(l){return xo(),l}function fr(){throw new Error("startTransition cannot be called during server rendering.")}function Yu(){return xo(),[!1,fr]}function Bc(){var l=ju,d=Nf(l.treeContext),v=xs;if(v===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var x=$a++;return wn(v,d,x)}function Si(){}var Vl={readContext:Vu,useContext:Ha,useMemo:Wu,useReducer:Uu,useRef:Ua,useState:Hu,useInsertionEffect:Si,useLayoutEffect:ca,useCallback:Nc,useImperativeHandle:Si,useEffect:Si,useDebugValue:Si,useDeferredValue:jc,useTransition:Yu,useId:Bc,useMutableSource:$l,useSyncExternalStore:Hf},xs=null;function fa(l){xs=l}function tl(l){try{var d="",v=l;do{switch(v.tag){case 0:d+=hs(v.type,null,null);break;case 1:d+=ra(v.type,null,null);break;case 2:d+=Fo(v.type,null,null);break}v=v.parent}while(v);return d}catch(x){return`
|
|
95
|
+
Error generating stack: `+x.message+`
|
|
96
|
+
`+x.stack}}var nr=n.ReactCurrentDispatcher,Wa=n.ReactDebugCurrentFrame,Hl=0,Ss=1,Ul=2,Ts=3,Wl=4,So=0,zl=1,za=2,$c=12800;function nl(l){return console.error(l),null}function Cs(){}function Es(l,d,v,x,A,B,Y,re,be){var He=[],Ze=new Set,rt={destination:null,responseState:d,progressiveChunkSize:x===void 0?$c:x,status:So,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Ze,pingedTasks:He,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:A===void 0?nl:A,onAllReady:Cs,onShellReady:Y===void 0?Cs:Y,onShellError:Cs,onFatalError:Cs},St=Yl(rt,0,null,v,!1,!1);St.parentFlushed=!0;var tn=Ya(rt,l,null,St,Ze,vs,qn,Ff);return He.push(tn),rt}function Gu(l,d){var v=l.pingedTasks;v.push(d),v.length===1&&s(function(){return eu(l)})}function Vc(l,d){return{id:Di,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:d,errorDigest:null}}function Ya(l,d,v,x,A,B,Y,re){l.allPendingTasks++,v===null?l.pendingRootTasks++:v.pendingTasks++;var be={node:d,ping:function(){return Gu(l,be)},blockedBoundary:v,blockedSegment:x,abortSet:A,legacyContext:B,context:Y,treeContext:re};return be.componentStack=null,A.add(be),be}function Yl(l,d,v,x,A,B){return{status:Hl,id:-1,index:d,parentFlushed:!1,chunks:[],children:[],formatContext:x,boundary:v,lastPushedText:A,textEmbedded:B}}var Vo=null;function Gl(){return Vo===null||Vo.componentStack===null?"":tl(Vo.componentStack)}function Ho(l,d){l.componentStack={tag:0,parent:l.componentStack,type:d}}function rl(l,d){l.componentStack={tag:1,parent:l.componentStack,type:d}}function Xi(l,d){l.componentStack={tag:2,parent:l.componentStack,type:d}}function Ki(l){l.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):l.componentStack=l.componentStack.parent}var To=null;function il(l,d){{var v;typeof d=="string"?v=d:d&&typeof d.message=="string"?v=d.message:v=String(d);var x=To||Gl();To=null,l.errorMessage=v,l.errorComponentStack=x}}function da(l,d){var v=l.onError(d);if(v!=null&&typeof v!="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 v+'" instead');return v}function Zi(l,d){var v=l.onShellError;v(d);var x=l.onFatalError;x(d),l.destination!==null?(l.status=za,P(l.destination,d)):(l.status=zl,l.fatalError=d)}function ks(l,d,v){Ho(d,"Suspense");var x=d.blockedBoundary,A=d.blockedSegment,B=v.fallback,Y=v.children,re=new Set,be=Vc(l,re),He=A.chunks.length,Ze=Yl(l,He,be,A.formatContext,!1,!1);A.children.push(Ze),A.lastPushedText=!1;var rt=Yl(l,0,null,A.formatContext,!1,!1);rt.parentFlushed=!0,d.blockedBoundary=be,d.blockedSegment=rt;try{if(dr(l,d,Y),go(rt.chunks,l.responseState,rt.lastPushedText,rt.textEmbedded),rt.status=Ss,Ti(be,rt),be.pendingTasks===0){Ki(d);return}}catch(tn){rt.status=Wl,be.forceClientRender=!0,be.errorDigest=da(l,tn),il(be,tn)}finally{d.blockedBoundary=x,d.blockedSegment=A}var St=Ya(l,B,x,Ze,re,d.legacyContext,d.context,d.treeContext);St.componentStack=d.componentStack,l.pingedTasks.push(St),Ki(d)}function ql(l,d,v,x){Ho(d,v);var A=d.blockedSegment,B=vi(A.chunks,v,x,l.responseState,A.formatContext);A.lastPushedText=!1;var Y=A.formatContext;A.formatContext=Ui(Y,v,x),dr(l,d,B),A.formatContext=Y,on(A.chunks,v),A.lastPushedText=!1,Ki(d)}function ol(l){return l.prototype&&l.prototype.isReactComponent}function Os(l,d,v,x,A){var B={};Va(d,B);var Y=v(x,A);return Fc(v,x,Y,A)}function Hc(l,d,v,x,A){var B=v.render();v.props!==A&&(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 Y=x.childContextTypes;if(Y!=null){var re=d.legacyContext,be=Rc(v,x,re,Y);d.legacyContext=be,Hr(l,d,B),d.legacyContext=re;return}}Hr(l,d,B)}function qu(l,d,v,x){Xi(d,v);var A=Xs(v,d.legacyContext),B=Ac(v,x,A);wo(B,v,x,A),Hc(l,d,B,v,x),Ki(d)}var Xu={},Ga={},Ku={},Xl={},Bt=!1,al={},Zu=!1,qa=!1,Kl=!1;function Uc(l,d,v,x){var A;if(A=Xs(v,d.legacyContext),rl(d,v),v.prototype&&typeof v.prototype.render=="function"){var B=zt(v)||"Unknown";Xu[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),Xu[B]=!0)}var Y=Os(l,d,v,x,A),re=$u();if(typeof Y=="object"&&Y!==null&&typeof Y.render=="function"&&Y.$$typeof===void 0){var be=zt(v)||"Unknown";Ga[be]||(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.",be,be,be),Ga[be]=!0)}if(typeof Y=="object"&&Y!==null&&typeof Y.render=="function"&&Y.$$typeof===void 0){{var He=zt(v)||"Unknown";Ga[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),Ga[He]=!0)}wo(Y,v,x,A),Hc(l,d,Y,v,x)}else if(Wc(v),re){var Ze=d.treeContext,rt=1,St=0;d.treeContext=Fu(Ze,rt,St);try{Hr(l,d,Y)}finally{d.treeContext=Ze}}else Hr(l,d,Y);Ki(d)}function Wc(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";al[d]||(i("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",d),al[d]=!0)}if(typeof l.getDerivedStateFromProps=="function"){var v=zt(l)||"Unknown";Xl[v]||(i("%s: Function components do not support getDerivedStateFromProps.",v),Xl[v]=!0)}if(typeof l.contextType=="object"&&l.contextType!==null){var x=zt(l)||"Unknown";Ku[x]||(i("%s: Function components do not support contextType.",x),Ku[x]=!0)}}}function ni(l,d){if(l&&l.defaultProps){var v=fn({},d),x=l.defaultProps;for(var A in x)v[A]===void 0&&(v[A]=x[A]);return v}return d}function zc(l,d,v,x,A){rl(d,v.render);var B=Os(l,d,v.render,x,A),Y=$u();if(Y){var re=d.treeContext,be=1,He=0;d.treeContext=Fu(re,be,He);try{Hr(l,d,B)}finally{d.treeContext=re}}else Hr(l,d,B);Ki(d)}function Zl(l,d,v,x,A){var B=v.type,Y=ni(B,x);Vr(l,d,B,Y,A)}function Ju(l,d,v,x){v._context===void 0?v!==v.Consumer&&(Kl||(Kl=!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?"))):v=v._context;var A=x.children;typeof A!="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=sa(v),Y=A(B);Hr(l,d,Y)}function Qu(l,d,v,x){var A=v._context,B=x.value,Y=x.children,re;re=d.context,d.context=ys(A,B),Hr(l,d,Y),d.context=Ks(A),re!==d.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Yc(l,d,v,x,A){Ho(d,"Lazy");var B=v._payload,Y=v._init,re=Y(B),be=ni(re,x);Vr(l,d,re,be,A),Ki(d)}function Vr(l,d,v,x,A){if(typeof v=="function")if(ol(v)){qu(l,d,v,x);return}else{Uc(l,d,v,x);return}if(typeof v=="string"){ql(l,d,v,x);return}switch(v){case ot:case ut:case J:case fe:case La:{Hr(l,d,x.children);return}case se:{Ho(d,"SuspenseList"),Hr(l,d,x.children),Ki(d);return}case st:throw new Error("ReactDOMServer does not yet support scope components.");case le:{ks(l,d,x);return}}if(typeof v=="object"&&v!==null)switch(v.$$typeof){case Z:{zc(l,d,v,x,A);return}case Ae:{Zl(l,d,v,x,A);return}case Se:{Qu(l,d,v,x);return}case Oe:{Ju(l,d,v,x);return}case Ve:{Yc(l,d,v,x);return}}var B="";throw(v===void 0||typeof v=="object"&&v!==null&&Object.keys(v).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: "+(v==null?v:typeof v)+"."+B))}function ha(l,d){typeof Symbol=="function"&&l[Symbol.toStringTag]==="Generator"&&(Zu||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."),Zu=!0),l.entries===d&&(qa||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),qa=!0)}function Hr(l,d,v){try{return Gc(l,d,v)}catch(x){throw typeof x=="object"&&x!==null&&typeof x.then=="function"||(To=To!==null?To:Gl()),x}}function Gc(l,d,v){if(d.node=v,typeof v=="object"&&v!==null){switch(v.$$typeof){case Rl:{var x=v,A=x.type,B=x.props,Y=x.ref;Vr(l,d,A,B,Y);return}case fs: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 re=v,be=re._payload,He=re._init,Ze;try{Ze=He(be)}catch(_s){throw typeof _s=="object"&&_s!==null&&typeof _s.then=="function"&&Ho(d,"Lazy"),_s}Hr(l,d,Ze);return}}if(qr(v)){Xa(l,d,v);return}var rt=Gn(v);if(rt){ha(v,rt);var St=rt.call(v);if(St){var tn=St.next();if(!tn.done){var rr=[];do rr.push(tn.value),tn=St.next();while(!tn.done);Xa(l,d,rr);return}return}}var Co=Object.prototype.toString.call(v);throw new Error("Objects are not valid as a React child (found: "+(Co==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":Co)+"). If you meant to render a collection of children, use an array instead.")}if(typeof v=="string"){var va=d.blockedSegment;va.lastPushedText=ei(d.blockedSegment.chunks,v,l.responseState,va.lastPushedText);return}if(typeof v=="number"){var Ji=d.blockedSegment;Ji.lastPushedText=ei(d.blockedSegment.chunks,""+v,l.responseState,Ji.lastPushedText);return}typeof v=="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 Xa(l,d,v){for(var x=v.length,A=0;A<x;A++){var B=d.treeContext;d.treeContext=Fu(B,x,A);try{dr(l,d,v[A])}finally{d.treeContext=B}}}function qc(l,d,v){var x=d.blockedSegment,A=x.chunks.length,B=Yl(l,A,null,x.formatContext,x.lastPushedText,!0);x.children.push(B),x.lastPushedText=!1;var Y=Ya(l,d.node,d.blockedBoundary,B,d.abortSet,d.legacyContext,d.context,d.treeContext);d.componentStack!==null&&(Y.componentStack=d.componentStack.parent);var re=Y.ping;v.then(re,re)}function dr(l,d,v){var x=d.blockedSegment.formatContext,A=d.legacyContext,B=d.context,Y=null;Y=d.componentStack;try{return Hr(l,d,v)}catch(re){if(xi(),typeof re=="object"&&re!==null&&typeof re.then=="function"){qc(l,d,re),d.blockedSegment.formatContext=x,d.legacyContext=A,d.context=B,No(B),d.componentStack=Y;return}else throw d.blockedSegment.formatContext=x,d.legacyContext=A,d.context=B,No(B),d.componentStack=Y,re}}function Xc(l,d,v,x){var A=da(l,x);if(d===null?Zi(l,x):(d.pendingTasks--,d.forceClientRender||(d.forceClientRender=!0,d.errorDigest=A,il(d,x),d.parentFlushed&&l.clientRenderedBoundaries.push(d))),l.allPendingTasks--,l.allPendingTasks===0){var B=l.onAllReady;B()}}function Jl(l){var d=this,v=l.blockedBoundary,x=l.blockedSegment;x.status=Ts,Kc(d,v,x)}function Ql(l,d,v){var x=l.blockedBoundary,A=l.blockedSegment;if(A.status=Ts,x===null)d.allPendingTasks--,d.status!==za&&(d.status=za,d.destination!==null&&g(d.destination));else{if(x.pendingTasks--,!x.forceClientRender){x.forceClientRender=!0;var B=v===void 0?new Error("The render was aborted by the server without a reason."):v;x.errorDigest=d.onError(B);{var Y="The server did not finish this Suspense boundary: ";B&&typeof B.message=="string"?B=Y+B.message:B=Y+String(B);var re=Vo;Vo=l;try{il(x,B)}finally{Vo=re}}x.parentFlushed&&d.clientRenderedBoundaries.push(x)}if(x.fallbackAbortableTasks.forEach(function(He){return Ql(He,d,v)}),x.fallbackAbortableTasks.clear(),d.allPendingTasks--,d.allPendingTasks===0){var be=d.onAllReady;be()}}}function Ti(l,d){if(d.chunks.length===0&&d.children.length===1&&d.children[0].boundary===null){var v=d.children[0];v.id=d.id,v.parentFlushed=!0,v.status===Ss&&Ti(l,v)}else{var x=l.completedSegments;x.push(d)}}function Kc(l,d,v){if(d===null){if(v.parentFlushed){if(l.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");l.completedRootSegment=v}if(l.pendingRootTasks--,l.pendingRootTasks===0){l.onShellError=Cs;var x=l.onShellReady;x()}}else if(d.pendingTasks--,!d.forceClientRender){if(d.pendingTasks===0)v.parentFlushed&&v.status===Ss&&Ti(d,v),d.parentFlushed&&l.completedBoundaries.push(d),d.fallbackAbortableTasks.forEach(Jl,l),d.fallbackAbortableTasks.clear();else if(v.parentFlushed&&v.status===Ss){Ti(d,v);var A=d.completedSegments;A.length===1&&d.parentFlushed&&l.partialBoundaries.push(d)}}if(l.allPendingTasks--,l.allPendingTasks===0){var B=l.onAllReady;B()}}function pa(l,d){var v=d.blockedSegment;if(v.status===Hl){No(d.context);var x=null;x=Vo,Vo=d;try{Hr(l,d,d.node),go(v.chunks,l.responseState,v.lastPushedText,v.textEmbedded),d.abortSet.delete(d),v.status=Ss,Kc(l,d.blockedBoundary,v)}catch(B){if(xi(),typeof B=="object"&&B!==null&&typeof B.then=="function"){var A=d.ping;B.then(A,A)}else d.abortSet.delete(d),v.status=Wl,Xc(l,d.blockedBoundary,v,B)}finally{Vo=x}}}function eu(l){if(l.status!==za){var d=ja(),v=nr.current;nr.current=Vl;var x;x=Wa.getCurrentStack,Wa.getCurrentStack=Gl;var A=xs;fa(l.responseState);try{var B=l.pingedTasks,Y;for(Y=0;Y<B.length;Y++){var re=B[Y];pa(l,re)}B.splice(0,Y),l.destination!==null&&tu(l,l.destination)}catch(be){da(l,be),Zi(l,be)}finally{fa(A),nr.current=v,Wa.getCurrentStack=x,v===Vl&&No(d)}}}function ga(l,d,v){switch(v.parentFlushed=!0,v.status){case Hl:{var x=v.id=l.nextSegmentId++;return v.lastPushedText=!1,v.textEmbedded=!1,Jr(d,l.responseState,x)}case Ss:{v.status=Ul;for(var A=!0,B=v.chunks,Y=0,re=v.children,be=0;be<re.length;be++){for(var He=re[be];Y<He.index;Y++)f(d,B[Y]);A=Ka(l,d,He)}for(;Y<B.length-1;Y++)f(d,B[Y]);return Y<B.length&&(A=p(d,B[Y])),A}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function Ka(l,d,v){var x=v.boundary;if(x===null)return ga(l,d,v);if(x.parentFlushed=!0,x.forceClientRender)return Du(d,l.responseState,x.errorDigest,x.errorMessage,x.errorComponentStack),ga(l,d,v),vo(d,l.responseState);if(x.pendingTasks>0){x.rootSegmentID=l.nextSegmentId++,x.completedSegments.length>0&&l.partialBoundaries.push(x);var A=x.id=sr(l.responseState);return h(d,l.responseState,A),ga(l,d,v),D(d,l.responseState)}else{if(x.byteSize>l.progressiveChunkSize)return x.rootSegmentID=l.nextSegmentId++,l.completedBoundaries.push(x),h(d,l.responseState,x.id),ga(l,d,v),D(d,l.responseState);zs(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 Y=B[0];return Ka(l,d,Y),cs(d,l.responseState)}}function Uf(l,d,v){return Qr(d,l.responseState,v.id,v.errorDigest,v.errorMessage,v.errorComponentStack)}function ec(l,d,v){return ho(d,l.responseState,v.formatContext,v.id),Ka(l,d,v),xr(d,v.formatContext)}function sl(l,d,v){for(var x=v.completedSegments,A=0;A<x.length;A++){var B=x[A];tc(l,d,v,B)}return x.length=0,Mn(d,l.responseState,v.id,v.rootSegmentID)}function ll(l,d,v){for(var x=v.completedSegments,A=0;A<x.length;A++){var B=x[A];if(!tc(l,d,v,B))return A++,x.splice(0,A),!1}return x.splice(0,A),!0}function tc(l,d,v,x){if(x.status===Ul)return!0;var A=x.id;if(A===-1){var B=x.id=v.rootSegmentID;if(B===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return ec(l,d,x)}else return ec(l,d,x),Ke(d,l.responseState,A)}function tu(l,d){try{var v=l.completedRootSegment;v!==null&&l.pendingRootTasks===0&&(Ka(l,d,v),l.completedRootSegment=null,qt(d,l.responseState));var x=l.clientRenderedBoundaries,A;for(A=0;A<x.length;A++){var B=x[A];if(!Uf(l,d,B)){l.destination=null,A++,x.splice(0,A);return}}x.splice(0,A);var Y=l.completedBoundaries;for(A=0;A<Y.length;A++){var re=Y[A];if(!sl(l,d,re)){l.destination=null,A++,Y.splice(0,A);return}}Y.splice(0,A);var be=l.partialBoundaries;for(A=0;A<be.length;A++){var He=be[A];if(!ll(l,d,He)){l.destination=null,A++,be.splice(0,A);return}}be.splice(0,A);var Ze=l.completedBoundaries;for(A=0;A<Ze.length;A++){var rt=Ze[A];if(!sl(l,d,rt)){l.destination=null,A++,Ze.splice(0,A);return}}Ze.splice(0,A)}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."),g(d))}}function nc(l){s(function(){return eu(l)})}function Zc(l,d){if(l.status===zl){l.status=za,P(d,l.fatalError);return}if(l.status!==za&&l.destination===null){l.destination=d;try{tu(l,d)}catch(v){da(l,v),Zi(l,v)}}}function Ur(l,d){try{var v=l.abortableTasks;v.forEach(function(x){return Ql(x,l,d)}),v.clear(),l.destination!==null&&tu(l,l.destination)}catch(x){da(l,x),Zi(l,x)}}function Ii(){}function Jc(l,d,v,x){var A=!1,B=null,Y="",re={push:function(rt){return rt!==null&&(Y+=rt),!0},destroy:function(rt){A=!0,B=rt}},be=!1;function He(){be=!0}var Ze=Es(l,us(v,d?d.identifierPrefix:void 0),na(),1/0,Ii,void 0,He);if(nc(Ze),Ur(Ze,x),Zc(Ze,re),A)throw B;if(!be)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 Y}function Wf(l,d){return Jc(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 ul(l,d){return Jc(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 Ds(){throw new Error("ReactDOMServer.renderToNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToString() instead.")}function m(){throw new Error("ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToStaticMarkup() instead.")}fc.renderToNodeStream=Ds,fc.renderToStaticMarkup=ul,fc.renderToStaticNodeStream=m,fc.renderToString=Wf,fc.version=t}()),fc}var Nh={};/**
|
|
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 o1;function E4(){return o1||(o1=1,process.env.NODE_ENV!=="production"&&function(){var e=q,t="18.3.1",n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(m){{for(var l=arguments.length,d=new Array(l>1?l-1:0),v=1;v<l;v++)d[v-1]=arguments[v];o("warn",m,d)}}function i(m){{for(var l=arguments.length,d=new Array(l>1?l-1:0),v=1;v<l;v++)d[v-1]=arguments[v];o("error",m,d)}}function o(m,l,d){{var v=n.ReactDebugCurrentFrame,x=v.getStackAddendum();x!==""&&(l+="%s",d=d.concat([x]));var A=d.map(function(B){return String(B)});A.unshift("Warning: "+l),Function.prototype.apply.call(console[m],console,A)}}function s(m){m()}var c=512,f=null,p=0;function y(m){f=new Uint8Array(c),p=0}function g(m,l){if(l.length!==0){if(l.length>c){p>0&&(m.enqueue(new Uint8Array(f.buffer,0,p)),f=new Uint8Array(c),p=0),m.enqueue(l);return}var d=l,v=f.length-p;v<d.length&&(v===0?m.enqueue(f):(f.set(d.subarray(0,v),p),m.enqueue(f),d=d.subarray(v)),f=new Uint8Array(c),p=0),f.set(d,p),p+=d.length}}function T(m,l){return g(m,l),!0}function C(m){f&&p>0&&(m.enqueue(new Uint8Array(f.buffer,0,p)),f=null,p=0)}function P(m){m.close()}var I=new TextEncoder;function M(m){return I.encode(m)}function R(m){return I.encode(m)}function V(m,l){typeof m.error=="function"?m.error(l):m.close()}function U(m){{var l=typeof Symbol=="function"&&Symbol.toStringTag,d=l&&m[Symbol.toStringTag]||m.constructor.name||"Object";return d}}function Q(m){try{return K(m),!1}catch{return!0}}function K(m){return""+m}function ue(m,l){if(Q(m))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,U(m)),K(m)}function S(m,l){if(Q(m))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,U(m)),K(m)}function he(m){if(Q(m))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.",U(m)),K(m)}var ae=Object.prototype.hasOwnProperty,Ge=0,Re=1,Me=2,$e=3,Ue=4,ce=5,Te=6,Ne=":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",We=Ne+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",tt=new RegExp("^["+Ne+"]["+We+"]*$"),we={},Ee={};function Le(m){return ae.call(Ee,m)?!0:ae.call(we,m)?!1:tt.test(m)?(Ee[m]=!0,!0):(we[m]=!0,i("Invalid attribute name: `%s`",m),!1)}function Be(m,l,d,v){if(d!==null&&d.type===Ge)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":{if(d!==null)return!d.acceptsBooleans;var x=m.toLowerCase().slice(0,5);return x!=="data-"&&x!=="aria-"}default:return!1}}function ke(m){return ze.hasOwnProperty(m)?ze[m]:null}function _e(m,l,d,v,x,A,B){this.acceptsBooleans=l===Me||l===$e||l===Ue,this.attributeName=v,this.attributeNamespace=x,this.mustUseProperty=d,this.propertyName=m,this.type=l,this.sanitizeURL=A,this.removeEmptyString=B}var ze={},it=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];it.forEach(function(m){ze[m]=new _e(m,Ge,!1,m,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(m){var l=m[0],d=m[1];ze[l]=new _e(l,Re,!1,d,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(m){ze[m]=new _e(m,Me,!1,m.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(m){ze[m]=new _e(m,Me,!1,m,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(m){ze[m]=new _e(m,$e,!1,m.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(m){ze[m]=new _e(m,$e,!0,m,null,!1,!1)}),["capture","download"].forEach(function(m){ze[m]=new _e(m,Ue,!1,m,null,!1,!1)}),["cols","rows","size","span"].forEach(function(m){ze[m]=new _e(m,Te,!1,m,null,!1,!1)}),["rowSpan","start"].forEach(function(m){ze[m]=new _e(m,ce,!1,m.toLowerCase(),null,!1,!1)});var dt=/[\-\:]([a-z])/g,ht=function(m){return m[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(m){var l=m.replace(dt,ht);ze[l]=new _e(l,Re,!1,m,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(m){var l=m.replace(dt,ht);ze[l]=new _e(l,Re,!1,m,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(m){var l=m.replace(dt,ht);ze[l]=new _e(l,Re,!1,m,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(m){ze[m]=new _e(m,Re,!1,m.toLowerCase(),null,!1,!1)});var ft="xlinkHref";ze[ft]=new _e("xlinkHref",Re,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(m){ze[m]=new _e(m,Re,!1,m.toLowerCase(),null,!0,!0)});var bt={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 et(m,l){return m+l.charAt(0).toUpperCase()+l.substring(1)}var At=["Webkit","ms","Moz","O"];Object.keys(bt).forEach(function(m){At.forEach(function(l){bt[et(l,m)]=bt[m]})});var Lt={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Hn(m,l){Lt[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 gr(m,l){if(m.indexOf("-")===-1)return typeof l.is=="string";switch(m){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 Un={"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},Cn={},ji=new RegExp("^(aria)-["+We+"]*$"),Er=new RegExp("^(aria)[A-Z]["+We+"]*$");function Zn(m,l){{if(ae.call(Cn,l)&&Cn[l])return!0;if(Er.test(l)){var d="aria-"+l.slice(4).toLowerCase(),v=Un.hasOwnProperty(d)?d:null;if(v==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",l),Cn[l]=!0,!0;if(l!==v)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",l,v),Cn[l]=!0,!0}if(ji.test(l)){var x=l.toLowerCase(),A=Un.hasOwnProperty(x)?x:null;if(A==null)return Cn[l]=!0,!1;if(l!==A)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",l,A),Cn[l]=!0,!0}}return!0}function sn(m,l){{var d=[];for(var v in l){var x=Zn(m,v);x||d.push(v)}var A=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",A,m):d.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",A,m)}}function dn(m,l){gr(m,l)||sn(m,l)}var hn=!1;function ct(m,l){{if(m!=="input"&&m!=="textarea"&&m!=="select")return;l!=null&&l.value===null&&!hn&&(hn=!0,m==="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.",m):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",m))}}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"},oi=function(){};{var an={},Bi=/^on./,$i=/^on[^A-Z]/,Vi=new RegExp("^(aria)-["+We+"]*$"),kr=new RegExp("^(aria)[A-Z]["+We+"]*$");oi=function(m,l,d,v){if(ae.call(an,l)&&an[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."),an[l]=!0,!0;if(v!=null){var A=v.registrationNameDependencies,B=v.possibleRegistrationNames;if(A.hasOwnProperty(l))return!0;var Y=B.hasOwnProperty(x)?B[x]:null;if(Y!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",l,Y),an[l]=!0,!0;if(Bi.test(l))return i("Unknown event handler property `%s`. It will be ignored.",l),an[l]=!0,!0}else if(Bi.test(l))return $i.test(l)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",l),an[l]=!0,!0;if(Vi.test(l)||kr.test(l))return!0;if(x==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),an[l]=!0,!0;if(x==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),an[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),an[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),an[l]=!0,!0;var re=ke(l),be=re!==null&&re.type===Ge;if(Dn.hasOwnProperty(x)){var He=Dn[x];if(He!==l)return i("Invalid DOM property `%s`. Did you mean `%s`?",l,He),an[l]=!0,!0}else if(!be&&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),an[l]=!0,!0;return typeof d=="boolean"&&Be(l,d,re)?(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),an[l]=!0,!0):be?!0:Be(l,d,re)?(an[l]=!0,!1):((d==="false"||d==="true")&&re!==null&&re.type===$e&&(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),an[l]=!0),!0)}}var jn=function(m,l,d){{var v=[];for(var x in l){var A=oi(m,x,l[x],d);A||v.push(x)}var B=v.map(function(Y){return"`"+Y+"`"}).join(", ");v.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,m):v.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,m)}};function Or(m,l,d){gr(m,l)||jn(m,l,d)}var vr=function(){};{var zr=/^(?:webkit|moz|o)[A-Z]/,Yr=/^-ms-/,Po=/-(.)/g,Wn=/;\s*$/,Gr={},Jn={},Wt=!1,ai=!1,Hi=function(m){return m.replace(Po,function(l,d){return d.toUpperCase()})},_n=function(m){Gr.hasOwnProperty(m)&&Gr[m]||(Gr[m]=!0,i("Unsupported style property %s. Did you mean %s?",m,Hi(m.replace(Yr,"ms-"))))},pn=function(m){Gr.hasOwnProperty(m)&&Gr[m]||(Gr[m]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",m,m.charAt(0).toUpperCase()+m.slice(1)))},si=function(m,l){Jn.hasOwnProperty(l)&&Jn[l]||(Jn[l]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,m,l.replace(Wn,"")))},li=function(m,l){Wt||(Wt=!0,i("`NaN` is an invalid value for the `%s` css style property.",m))},En=function(m,l){ai||(ai=!0,i("`Infinity` is an invalid value for the `%s` css style property.",m))};vr=function(m,l){m.indexOf("-")>-1?_n(m):zr.test(m)?pn(m):Wn.test(l)&&si(m,l),typeof l=="number"&&(isNaN(l)?li(m,l):isFinite(l)||En(m,l))}}var oo=vr,mr=/["'&<>]/;function ui(m){he(m);var l=""+m,d=mr.exec(l);if(!d)return l;var v,x="",A,B=0;for(A=d.index;A<l.length;A++){switch(l.charCodeAt(A)){case 34:v=""";break;case 38:v="&";break;case 39:v="'";break;case 60:v="<";break;case 62:v=">";break;default:continue}B!==A&&(x+=l.substring(B,A)),B=A+1,x+=v}return B!==A?x+l.substring(B,A):x}function ln(m){return typeof m=="boolean"||typeof m=="number"?""+m:ui(m)}var ki=/([A-Z])/g,Pa=/^ms-/;function Ra(m){return m.replace(ki,"-$1").toLowerCase().replace(Pa,"-ms-")}var qr=/^[\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,ao=!1;function so(m){!ao&&qr.test(m)&&(ao=!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(m)))}var Oi=Array.isArray;function Qn(m){return Oi(m)}var Dr=R("<script>"),_r=R("<\/script>"),ci=R('<script src="'),Xr=R('<script type="module" src="'),yr=R('" async=""><\/script>');function Pr(m){return he(m),(""+m).replace(er,Ui)}var er=/(<\/|<)(s)(cript)/gi,Ui=function(m,l,d,v){return""+l+(d==="s"?"\\u0073":"\\u0053")+v};function Di(m,l,d,v,x){var A=m===void 0?"":m,B=l===void 0?Dr:R('<script nonce="'+ln(l)+'">'),Y=[];if(d!==void 0&&Y.push(B,M(Pr(d)),_r),v!==void 0)for(var re=0;re<v.length;re++)Y.push(ci,M(ln(v[re])),yr);if(x!==void 0)for(var be=0;be<x.length;be++)Y.push(Xr,M(ln(x[be])),yr);return{bootstrapChunks:Y,startInlineScript:B,placeholderPrefix:R(A+"P:"),segmentPrefix:R(A+"S:"),boundaryPrefix:A+"B:",idPrefix:A,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var sr=0,wn=1,Rr=2,Ir=3,fi=4,di=5,br=6,Kr=7;function zn(m,l){return{insertionMode:m,selectedValue:l}}function hi(m){var l=m==="http://www.w3.org/2000/svg"?Rr:m==="http://www.w3.org/1998/Math/MathML"?Ir:sr;return zn(l,null)}function pi(m,l,d){switch(l){case"select":return zn(wn,d.value!=null?d.value:d.defaultValue);case"svg":return zn(Rr,null);case"math":return zn(Ir,null);case"foreignObject":return zn(wn,null);case"table":return zn(fi,null);case"thead":case"tbody":case"tfoot":return zn(di,null);case"colgroup":return zn(Kr,null);case"tr":return zn(br,null)}return m.insertionMode>=fi||m.insertionMode===sr?zn(wn,null):m}var _i=null;function rn(m){var l=m.nextSuspenseID++;return R(m.boundaryPrefix+l.toString(16))}function Bn(m,l,d){var v=m.idPrefix,x=":"+v+"R"+l;return d>0&&(x+="H"+d.toString(32)),x+":"}function kn(m){return ln(m)}var lo=R("<!-- -->");function Pn(m,l,d,v){return l===""?v:(v&&m.push(lo),m.push(M(kn(l))),!0)}function Rn(m,l,d,v){d&&v&&m.push(lo)}var k=new Map;function N(m){var l=k.get(m);if(l!==void 0)return l;var d=R(ln(Ra(m)));return k.set(m,d),d}var G=R(' style="'),te=R(":"),Ce=R(";");function ge(m,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 v=!0;for(var x in d)if(ae.call(d,x)){var A=d[x];if(!(A==null||typeof A=="boolean"||A==="")){var B=void 0,Y=void 0,re=x.indexOf("--")===0;re?(B=M(ln(x)),S(A,x),Y=M(ln((""+A).trim()))):(oo(x,A),B=N(x),typeof A=="number"?A!==0&&!ae.call(bt,x)?Y=M(A+"px"):Y=M(""+A):(S(A,x),Y=M(ln((""+A).trim())))),v?(v=!1,m.push(G,B,te,Y)):m.push(Ce,B,te,Y)}}v||m.push(vt)}var Pe=R(" "),Je=R('="'),vt=R('"'),mt=R('=""');function pt(m,l,d,v){switch(d){case"style":{ge(m,l,v);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=ke(d);if(x!==null){switch(typeof v){case"function":case"symbol":return;case"boolean":if(!x.acceptsBooleans)return}var A=x.attributeName,B=M(A);switch(x.type){case $e:v&&m.push(Pe,B,mt);return;case Ue:v===!0?m.push(Pe,B,mt):v===!1||m.push(Pe,B,Je,M(ln(v)),vt);return;case ce:isNaN(v)||m.push(Pe,B,Je,M(ln(v)),vt);break;case Te:!isNaN(v)&&v>=1&&m.push(Pe,B,Je,M(ln(v)),vt);break;default:x.sanitizeURL&&(ue(v,A),v=""+v,so(v)),m.push(Pe,B,Je,M(ln(v)),vt)}}else if(Le(d)){switch(typeof v){case"function":case"symbol":return;case"boolean":{var Y=d.toLowerCase().slice(0,5);if(Y!=="data-"&&Y!=="aria-")return}}m.push(Pe,M(d),Je,M(ln(v)),vt)}}}var Nt=R(">"),$n=R("/>");function Yn(m,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 v=l.__html;v!=null&&(he(v),m.push(M(""+v)))}}var On=!1,Zr=!1,lr=!1,Wi=!1,gi=!1,zi=!1,Ar=!1;function Yi(m,l){{var d=m[l];if(d!=null){var v=Qn(d);m.multiple&&!v?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",l):!m.multiple&&v&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",l)}}}function Hs(m,l,d){Hn("select",l),Yi(l,"value"),Yi(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),m.push(ur("select"));var v=null,x=null;for(var A in l)if(ae.call(l,A)){var B=l[A];if(B==null)continue;switch(A){case"children":v=B;break;case"dangerouslySetInnerHTML":x=B;break;case"defaultValue":case"value":break;default:pt(m,d,A,B);break}}return m.push(Nt),Yn(m,x,v),v}function Ia(m){var l="";return e.Children.forEach(m,function(d){d!=null&&(l+=d,!gi&&typeof d!="string"&&typeof d!="number"&&(gi=!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 Qo=R(' selected=""');function wr(m,l,d,v){var x=v.selectedValue;m.push(ur("option"));var A=null,B=null,Y=null,re=null;for(var be in l)if(ae.call(l,be)){var He=l[be];if(He==null)continue;switch(be){case"children":A=He;break;case"selected":Y=He,Ar||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Ar=!0);break;case"dangerouslySetInnerHTML":re=He;break;case"value":B=He;default:pt(m,d,be,He);break}}if(x!=null){var Ze;if(B!==null?(ue(B,"value"),Ze=""+B):(re!==null&&(zi||(zi=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Ze=Ia(A)),Qn(x))for(var rt=0;rt<x.length;rt++){ue(x[rt],"value");var St=""+x[rt];if(St===Ze){m.push(Qo);break}}else ue(x,"select.value"),""+x===Ze&&m.push(Qo)}else Y&&m.push(Qo);return m.push(Nt),Yn(m,re,A),A}function Us(m,l,d){Hn("input",l),l.checked!==void 0&&l.defaultChecked!==void 0&&!Zr&&(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),Zr=!0),l.value!==void 0&&l.defaultValue!==void 0&&!On&&(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),On=!0),m.push(ur("input"));var v=null,x=null,A=null,B=null;for(var Y in l)if(ae.call(l,Y)){var re=l[Y];if(re==null)continue;switch(Y){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":B=re;break;case"defaultValue":x=re;break;case"checked":A=re;break;case"value":v=re;break;default:pt(m,d,Y,re);break}}return A!==null?pt(m,d,"checked",A):B!==null&&pt(m,d,"checked",B),v!==null?pt(m,d,"value",v):x!==null&&pt(m,d,"value",x),m.push($n),null}function vi(m,l,d){Hn("textarea",l),l.value!==void 0&&l.defaultValue!==void 0&&!Wi&&(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"),Wi=!0),m.push(ur("textarea"));var v=null,x=null,A=null;for(var B in l)if(ae.call(l,B)){var Y=l[B];if(Y==null)continue;switch(B){case"children":A=Y;break;case"value":v=Y;break;case"defaultValue":x=Y;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:pt(m,d,B,Y);break}}if(v===null&&x!==null&&(v=x),m.push(Nt),A!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),v!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Qn(A)){if(A.length>1)throw new Error("<textarea> can only have at most one child.");he(A[0]),v=""+A[0]}he(A),v=""+A}return typeof v=="string"&&v[0]===`
|
|
105
|
+
`&&m.push(Pi),v!==null&&(ue(v,"value"),m.push(M(kn(""+v)))),null}function Aa(m,l,d,v){m.push(ur(d));for(var x in l)if(ae.call(l,x)){var A=l[x];if(A==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(m,v,x,A);break}}return m.push($n),null}function ea(m,l,d){m.push(ur("menuitem"));for(var v in l)if(ae.call(l,v)){var x=l[v];if(x==null)continue;switch(v){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:pt(m,d,v,x);break}}return m.push(Nt),null}function on(m,l,d){m.push(ur("title"));var v=null;for(var x in l)if(ae.call(l,x)){var A=l[x];if(A==null)continue;switch(x){case"children":v=A;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:pt(m,d,x,A);break}}m.push(Nt);{var B=Array.isArray(v)&&v.length<2?v[0]||null:v;Array.isArray(v)&&v.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 v}function qt(m,l,d,v){m.push(ur(d));var x=null,A=null;for(var B in l)if(ae.call(l,B)){var Y=l[B];if(Y==null)continue;switch(B){case"children":x=Y;break;case"dangerouslySetInnerHTML":A=Y;break;default:pt(m,v,B,Y);break}}return m.push(Nt),Yn(m,A,x),typeof x=="string"?(m.push(M(kn(x))),null):x}function Zt(m,l,d,v){m.push(ur(d));var x=null,A=null;for(var B in l)if(ae.call(l,B)){var Y=l[B];if(Y==null)continue;switch(B){case"children":x=Y;break;case"dangerouslySetInnerHTML":A=Y;break;case"style":ge(m,v,Y);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Le(B)&&typeof Y!="function"&&typeof Y!="symbol"&&m.push(Pe,M(B),Je,M(ln(Y)),vt);break}}return m.push(Nt),Yn(m,A,x),x}var Pi=R(`
|
|
106
|
+
`);function Jr(m,l,d,v){m.push(ur(d));var x=null,A=null;for(var B in l)if(ae.call(l,B)){var Y=l[B];if(Y==null)continue;switch(B){case"children":x=Y;break;case"dangerouslySetInnerHTML":A=Y;break;default:pt(m,v,B,Y);break}}if(m.push(Nt),A!=null){if(x!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof A!="object"||!("__html"in A))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 re=A.__html;re!=null&&(typeof re=="string"&&re.length>0&&re[0]===`
|
|
107
|
+
`?m.push(Pi,M(re)):(he(re),m.push(M(""+re))))}return typeof x=="string"&&x[0]===`
|
|
108
|
+
`&&m.push(Pi),x}var Ro=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,mi=new Map;function ur(m){var l=mi.get(m);if(l===void 0){if(!Ro.test(m))throw new Error("Invalid tag: "+m);l=R("<"+m),mi.set(m,l)}return l}var Ma=R("<!DOCTYPE html>");function uo(m,l,d,v,x){switch(dn(l,d),ct(l,d),Or(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!==Rr&&x.insertionMode!==Ir&&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 Hs(m,d,v);case"option":return wr(m,d,v,x);case"textarea":return vi(m,d,v);case"input":return Us(m,d,v);case"menuitem":return ea(m,d,v);case"title":return on(m,d,v);case"listing":case"pre":return Jr(m,d,l,v);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 Aa(m,d,l,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 qt(m,d,l,v);case"html":return x.insertionMode===sr&&m.push(Ma),qt(m,d,l,v);default:return l.indexOf("-")===-1&&typeof d.is!="string"?qt(m,d,l,v):Zt(m,d,l,v)}}var as=R("</"),un=R(">");function Io(m,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:m.push(as,M(l),un)}}function yi(m,l){for(var d=l.bootstrapChunks,v=0;v<d.length-1;v++)g(m,d[v]);return v<d.length?T(m,d[v]):!0}var ss=R('<template id="'),co=R('"></template>');function cr(m,l,d){g(m,ss),g(m,l.placeholderPrefix);var v=M(d.toString(16));return g(m,v),T(m,co)}var h=R("<!--$-->"),b=R('<!--$?--><template id="'),E=R('"></template>'),D=R("<!--$!-->"),F=R("<!--/$-->"),j=R("<template"),H=R('"'),oe=R(' data-dgst="'),ne=R(' data-msg="'),pe=R(' data-stck="'),De=R("></template>");function Ie(m,l){return T(m,h)}function xe(m,l,d){if(g(m,b),d===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return g(m,d),T(m,E)}function Ye(m,l,d,v,x){var A;return A=T(m,D),g(m,j),d&&(g(m,oe),g(m,M(ln(d))),g(m,H)),v&&(g(m,ne),g(m,M(ln(v))),g(m,H)),x&&(g(m,pe),g(m,M(ln(x))),g(m,H)),A=T(m,De),A}function at(m,l){return T(m,F)}function Ct(m,l){return T(m,F)}function kt(m,l){return T(m,F)}var In=R('<div hidden id="'),cn=R('">'),Mr=R("</div>"),Lr=R('<svg aria-hidden="true" style="display:none" id="'),Ft=R('">'),Fr=R("</svg>"),jt=R('<math aria-hidden="true" style="display:none" id="'),en=R('">'),fo=R("</math>"),ho=R('<table hidden id="'),xr=R('">'),O=R("</table>"),L=R('<table hidden><tbody id="'),W=R('">'),ee=R("</tbody></table>"),me=R('<table hidden><tr id="'),ye=R('">'),Fe=R("</tr></table>"),Ke=R('<table hidden><colgroup id="'),gt=R('">'),Pt=R("</colgroup></table>");function Tt(m,l,d,v){switch(d.insertionMode){case sr:case wn:return g(m,In),g(m,l.segmentPrefix),g(m,M(v.toString(16))),T(m,cn);case Rr:return g(m,Lr),g(m,l.segmentPrefix),g(m,M(v.toString(16))),T(m,Ft);case Ir:return g(m,jt),g(m,l.segmentPrefix),g(m,M(v.toString(16))),T(m,en);case fi:return g(m,ho),g(m,l.segmentPrefix),g(m,M(v.toString(16))),T(m,xr);case di:return g(m,L),g(m,l.segmentPrefix),g(m,M(v.toString(16))),T(m,W);case br:return g(m,me),g(m,l.segmentPrefix),g(m,M(v.toString(16))),T(m,ye);case Kr:return g(m,Ke),g(m,l.segmentPrefix),g(m,M(v.toString(16))),T(m,gt);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function yt(m,l){switch(l.insertionMode){case sr:case wn:return T(m,Mr);case Rr:return T(m,Fr);case Ir:return T(m,fo);case fi:return T(m,O);case di:return T(m,ee);case br:return T(m,Fe);case Kr:return T(m,Pt);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var Mn="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)}",xn='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()}}',Vn='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())}',ta=R(Mn+';$RS("'),ls=R('$RS("'),po=R('","'),Qr=R('")<\/script>');function Ws(m,l,d){g(m,l.startInlineScript),l.sentCompleteSegmentFunction?g(m,ls):(l.sentCompleteSegmentFunction=!0,g(m,ta)),g(m,l.segmentPrefix);var v=M(d.toString(16));return g(m,v),g(m,po),g(m,l.placeholderPrefix),g(m,v),T(m,Qr)}var Ri=R(xn+';$RC("'),us=R('$RC("'),na=R('","'),ei=R('")<\/script>');function go(m,l,d,v){if(g(m,l.startInlineScript),l.sentCompleteBoundaryFunction?g(m,us):(l.sentCompleteBoundaryFunction=!0,g(m,Ri)),d===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var x=M(v.toString(16));return g(m,d),g(m,na),g(m,l.segmentPrefix),g(m,x),T(m,ei)}var zs=R(Vn+';$RX("'),Du=R('$RX("'),cs=R('"'),vo=R(")<\/script>"),fn=R(",");function Rl(m,l,d,v,x,A){if(g(m,l.startInlineScript),l.sentClientRenderFunction?g(m,Du):(l.sentClientRenderFunction=!0,g(m,zs)),d===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return g(m,d),g(m,cs),(v||x||A)&&(g(m,fn),g(m,M(La(v||"")))),(x||A)&&(g(m,fn),g(m,M(La(x||"")))),A&&(g(m,fn),g(m,M(La(A)))),T(m,vo)}var fs=/[<\u2028\u2029]/g;function La(m){var l=JSON.stringify(m);return l.replace(fs,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,fe=Symbol.for("react.element"),Se=Symbol.for("react.portal"),Oe=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),le=Symbol.for("react.profiler"),se=Symbol.for("react.provider"),Ae=Symbol.for("react.context"),Ve=Symbol.for("react.forward_ref"),st=Symbol.for("react.suspense"),ut=Symbol.for("react.suspense_list"),ot=Symbol.for("react.memo"),Mt=Symbol.for("react.lazy"),xt=Symbol.for("react.scope"),Vt=Symbol.for("react.debug_trace_mode"),Gn=Symbol.for("react.legacy_hidden"),tr=Symbol.for("react.default_value"),Ln=Symbol.iterator,zt="@@iterator";function Nr(m){if(m===null||typeof m!="object")return null;var l=Ln&&m[Ln]||m[zt];return typeof l=="function"?l:null}function Ot(m,l,d){var v=m.displayName;if(v)return v;var x=l.displayName||l.name||"";return x!==""?d+"("+x+")":d}function _u(m){return m.displayName||"Context"}function gn(m){if(m==null)return null;if(typeof m.tag=="number"&&i("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case Oe:return"Fragment";case Se:return"Portal";case le:return"Profiler";case Z:return"StrictMode";case st:return"Suspense";case ut:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case Ae:var l=m;return _u(l)+".Consumer";case se:var d=m;return _u(d._context)+".Provider";case Ve:return Ot(m,m.render,"ForwardRef");case ot:var v=m.displayName||null;return v!==null?v:gn(m.type)||"Memo";case Mt:{var x=m,A=x._payload,B=x._init;try{return gn(B(A))}catch{return null}}}return null}var Ao=0,Pu,Ru,Iu,ds,Mo,Ys,Gs;function Fa(){}Fa.__reactDisabledLog=!0;function hs(){{if(Ao===0){Pu=console.log,Ru=console.info,Iu=console.warn,ds=console.error,Mo=console.group,Ys=console.groupCollapsed,Gs=console.groupEnd;var m={configurable:!0,enumerable:!0,value:Fa,writable:!0};Object.defineProperties(console,{info:m,log:m,warn:m,error:m,group:m,groupCollapsed:m,groupEnd:m})}Ao++}}function Il(){{if(Ao--,Ao===0){var m={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:J({},m,{value:Pu}),info:J({},m,{value:Ru}),warn:J({},m,{value:Iu}),error:J({},m,{value:ds}),group:J({},m,{value:Mo}),groupCollapsed:J({},m,{value:Ys}),groupEnd:J({},m,{value:Gs})})}Ao<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Lo=n.ReactCurrentDispatcher,Al;function Gi(m,l,d){{if(Al===void 0)try{throw Error()}catch(x){var v=x.stack.trim().match(/\n( *(at )?)/);Al=v&&v[1]||""}return`
|
|
109
|
+
`+Al+m}}var Fo=!1,ra;{var Af=typeof WeakMap=="function"?WeakMap:Map;ra=new Af}function qs(m,l){if(!m||Fo)return"";{var d=ra.get(m);if(d!==void 0)return d}var v;Fo=!0;var x=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var A;A=Lo.current,Lo.current=null,hs();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(tn){v=tn}Reflect.construct(m,[],B)}else{try{B.call()}catch(tn){v=tn}m.call(B.prototype)}}else{try{throw Error()}catch(tn){v=tn}m()}}catch(tn){if(tn&&v&&typeof tn.stack=="string"){for(var Y=tn.stack.split(`
|
|
110
|
+
`),re=v.stack.split(`
|
|
111
|
+
`),be=Y.length-1,He=re.length-1;be>=1&&He>=0&&Y[be]!==re[He];)He--;for(;be>=1&&He>=0;be--,He--)if(Y[be]!==re[He]){if(be!==1||He!==1)do if(be--,He--,He<0||Y[be]!==re[He]){var Ze=`
|
|
112
|
+
`+Y[be].replace(" at new "," at ");return m.displayName&&Ze.includes("<anonymous>")&&(Ze=Ze.replace("<anonymous>",m.displayName)),typeof m=="function"&&ra.set(m,Ze),Ze}while(be>=1&&He>=0);break}}}finally{Fo=!1,Lo.current=A,Il(),Error.prepareStackTrace=x}var rt=m?m.displayName||m.name:"",St=rt?Gi(rt):"";return typeof m=="function"&&ra.set(m,St),St}function Pc(m,l,d){return qs(m,!0)}function ps(m,l,d){return qs(m,!1)}function Na(m){var l=m.prototype;return!!(l&&l.isReactComponent)}function gs(m,l,d){if(m==null)return"";if(typeof m=="function")return qs(m,Na(m));if(typeof m=="string")return Gi(m);switch(m){case st:return Gi("Suspense");case ut:return Gi("SuspenseList")}if(typeof m=="object")switch(m.$$typeof){case Ve:return ps(m.render);case ot:return gs(m.type,l,d);case Mt:{var v=m,x=v._payload,A=v._init;try{return gs(A(x),l,d)}catch{}}}return""}var Ml={},vs=n.ReactDebugCurrentFrame;function Xs(m){if(m){var l=m._owner,d=gs(m.type,m._source,l?l.type:null);vs.setExtraStackFrame(d)}else vs.setExtraStackFrame(null)}function Rc(m,l,d,v,x){{var A=Function.call.bind(ae);for(var B in m)if(A(m,B)){var Y=void 0;try{if(typeof m[B]!="function"){var re=Error((v||"React class")+": "+d+" type `"+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof m[B]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw re.name="Invariant Violation",re}Y=m[B](l,B,v,d,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(be){Y=be}Y&&!(Y instanceof Error)&&(Xs(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).",v||"React class",d,B,typeof Y),Xs(null)),Y instanceof Error&&!(Y.message in Ml)&&(Ml[Y.message]=!0,Xs(x),i("Failed %s type: %s",d,Y.message),Xs(null))}}}var Sn;Sn={};var qn={};Object.freeze(qn);function ia(m,l){{var d=m.contextTypes;if(!d)return qn;var v={};for(var x in d)v[x]=l[x];{var A=gn(m)||"Unknown";Rc(d,v,"context",A)}return v}}function Au(m,l,d,v){{if(typeof m.getChildContext!="function"){{var x=gn(l)||"Unknown";Sn[x]||(Sn[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 A=m.getChildContext();for(var B in A)if(!(B in v))throw new Error((gn(l)||"Unknown")+'.getChildContext(): key "'+B+'" is not defined in childContextTypes.');{var Y=gn(l)||"Unknown";Rc(v,A,"child context",Y)}return J({},d,A)}}var oa;oa={};var Ll=null,mo=null;function aa(m){m.context._currentValue=m.parentValue}function ms(m){m.context._currentValue=m.value}function yo(m,l){if(m!==l){aa(m);var d=m.parent,v=l.parent;if(d===null){if(v!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(v===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");yo(d,v)}ms(l)}}function No(m){aa(m);var l=m.parent;l!==null&&No(l)}function ys(m){var l=m.parent;l!==null&&ys(l),ms(m)}function Ks(m,l){aa(m);var d=m.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?yo(d,l):Ks(d,l)}function ja(m,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.");m.depth===d.depth?yo(m,d):ja(m,d),ms(l)}function sa(m){var l=mo,d=m;l!==d&&(l===null?ys(d):d===null?No(l):l.depth===d.depth?yo(l,d):l.depth>d.depth?Ks(l,d):ja(l,d),mo=d)}function Mu(m,l){var d;d=m._currentValue,m._currentValue=l,m._currentRenderer!==void 0&&m._currentRenderer!==null&&m._currentRenderer!==oa&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),m._currentRenderer=oa;var v=mo,x={parent:v,depth:v===null?0:v.depth+1,context:m,parentValue:d,value:l};return mo=x,x}function Mf(m){var l=mo;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!==m&&i("The parent context is not the expected context. This is probably a bug in React.");{var d=l.parentValue;d===tr?l.context._currentValue=l.context._defaultValue:l.context._currentValue=d,m._currentRenderer!==void 0&&m._currentRenderer!==null&&m._currentRenderer!==oa&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),m._currentRenderer=oa}return mo=l.parent}function Ic(){return mo}function bs(m){var l=m._currentValue;return l}function la(m){return m._reactInternals}function Ba(m,l){m._reactInternals=l}var Zs={},z={},jo,Bo,Sr,$t,Fl,Js,Nl,bo,Lu;{jo=new Set,Bo=new Set,Sr=new Set,Nl=new Set,$t=new Set,bo=new Set,Lu=new Set;var Ac=new Set;Js=function(m,l){if(!(m===null||typeof m=="function")){var d=l+"_"+m;Ac.has(d)||(Ac.add(d),i("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",l,m))}},Fl=function(m,l){if(l===void 0){var d=gn(m)||"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 Mc(m,l){{var d=m.constructor,v=d&&gn(d)||"ReactClass",x=v+"."+l;if(Zs[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,v),Zs[x]=!0}}var Lc={isMounted:function(m){return!1},enqueueSetState:function(m,l,d){var v=la(m);v.queue===null?Mc(m,"setState"):(v.queue.push(l),d!=null&&Js(d,"setState"))},enqueueReplaceState:function(m,l,d){var v=la(m);v.replace=!0,v.queue=[l],d!=null&&Js(d,"setState")},enqueueForceUpdate:function(m,l){var d=la(m);d.queue===null?Mc(m,"forceUpdate"):l!=null&&Js(l,"setState")}};function Lf(m,l,d,v,x){var A=d(x,v);Fl(l,A);var B=A==null?v:J({},v,A);return B}function wo(m,l,d){var v=qn,x=m.contextType;if("contextType"in m){var A=x===null||x!==void 0&&x.$$typeof===Ae&&x._context===void 0;if(!A&&!Lu.has(m)){Lu.add(m);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===se?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",gn(m)||"Component",B)}}typeof x=="object"&&x!==null?v=bs(x):v=d;var Y=new m(l,v);{if(typeof m.getDerivedStateFromProps=="function"&&(Y.state===null||Y.state===void 0)){var re=gn(m)||"Component";jo.has(re)||(jo.add(re),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.",re,Y.state===null?"null":"undefined",re))}if(typeof m.getDerivedStateFromProps=="function"||typeof Y.getSnapshotBeforeUpdate=="function"){var be=null,He=null,Ze=null;if(typeof Y.componentWillMount=="function"&&Y.componentWillMount.__suppressDeprecationWarning!==!0?be="componentWillMount":typeof Y.UNSAFE_componentWillMount=="function"&&(be="UNSAFE_componentWillMount"),typeof Y.componentWillReceiveProps=="function"&&Y.componentWillReceiveProps.__suppressDeprecationWarning!==!0?He="componentWillReceiveProps":typeof Y.UNSAFE_componentWillReceiveProps=="function"&&(He="UNSAFE_componentWillReceiveProps"),typeof Y.componentWillUpdate=="function"&&Y.componentWillUpdate.__suppressDeprecationWarning!==!0?Ze="componentWillUpdate":typeof Y.UNSAFE_componentWillUpdate=="function"&&(Ze="UNSAFE_componentWillUpdate"),be!==null||He!==null||Ze!==null){var rt=gn(m)||"Component",St=typeof m.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Sr.has(rt)||(Sr.add(rt),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`,rt,St,be!==null?`
|
|
120
|
+
`+be:"",He!==null?`
|
|
121
|
+
`+He:"",Ze!==null?`
|
|
122
|
+
`+Ze:""))}}}return Y}function Ff(m,l,d){{var v=gn(l)||"Component",x=m.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?",v):i("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",v)),m.getInitialState&&!m.getInitialState.isReactClassApproved&&!m.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?",v),m.getDefaultProps&&!m.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.",v),m.propTypes&&i("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",v),m.contextType&&i("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",v),m.contextTypes&&i("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",v),l.contextType&&l.contextTypes&&!bo.has(l)&&(bo.add(l),i("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",v)),typeof m.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.",v),l.prototype&&l.prototype.isPureReactComponent&&typeof m.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.",gn(l)||"A pure component"),typeof m.componentDidUnmount=="function"&&i("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",v),typeof m.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().",v),typeof m.componentWillRecieveProps=="function"&&i("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",v),typeof m.UNSAFE_componentWillRecieveProps=="function"&&i("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",v);var A=m.props!==d;m.props!==void 0&&A&&i("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",v,v),m.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.",v,v),typeof m.getSnapshotBeforeUpdate=="function"&&typeof m.componentDidUpdate!="function"&&!Bo.has(l)&&(Bo.add(l),i("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",gn(l))),typeof m.getDerivedStateFromProps=="function"&&i("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",v),typeof m.getDerivedStateFromError=="function"&&i("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",v),typeof l.getSnapshotBeforeUpdate=="function"&&i("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",v);var B=m.state;B&&(typeof B!="object"||Qn(B))&&i("%s.state: must be set to an object or null",v),typeof m.getChildContext=="function"&&typeof l.childContextTypes!="object"&&i("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",v)}}function Nf(m,l){var d=l.state;if(typeof l.componentWillMount=="function"){if(l.componentWillMount.__suppressDeprecationWarning!==!0){var v=gn(m)||"Unknown";z[v]||(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`,v),z[v]=!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.",gn(m)||"Component"),Lc.enqueueReplaceState(l,l.state,null))}function Fu(m,l,d,v){if(m.queue!==null&&m.queue.length>0){var x=m.queue,A=m.replace;if(m.queue=null,m.replace=!1,A&&x.length===1)l.state=x[0];else{for(var B=A?x[0]:l.state,Y=!0,re=A?1:0;re<x.length;re++){var be=x[re],He=typeof be=="function"?be.call(l,B,d,v):be;He!=null&&(Y?(Y=!1,B=J({},B,He)):J(B,He))}l.state=B}}else m.queue=null}function Qs(m,l,d,v){Ff(m,l,d);var x=m.state!==void 0?m.state:null;m.updater=Lc,m.props=d,m.state=x;var A={queue:[],replace:!1};Ba(m,A);var B=l.contextType;if(typeof B=="object"&&B!==null?m.context=bs(B):m.context=v,m.state===d){var Y=gn(l)||"Component";Nl.has(Y)||(Nl.add(Y),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.",Y))}var re=l.getDerivedStateFromProps;typeof re=="function"&&(m.state=Lf(m,l,re,x,d)),typeof l.getDerivedStateFromProps!="function"&&typeof m.getSnapshotBeforeUpdate!="function"&&(typeof m.UNSAFE_componentWillMount=="function"||typeof m.componentWillMount=="function")&&(Nf(l,m),Fu(A,m,d,v))}var jf={id:1,overflow:""};function $o(m){var l=m.overflow,d=m.id,v=d&~Bf(d);return v.toString(32)+l}function Nu(m,l,d){var v=m.id,x=m.overflow,A=jl(v)-1,B=v&~(1<<A),Y=d+1,re=jl(l)+A;if(re>30){var be=A-A%5,He=(1<<be)-1,Ze=(B&He).toString(32),rt=B>>be,St=A-be,tn=jl(l)+St,rr=Y<<St,Co=rr|rt,va=Ze+x;return{id:1<<tn|Co,overflow:va}}else{var Ji=Y<<A,_s=Ji|B,Qc=x;return{id:1<<re|_s,overflow:Qc}}}function jl(m){return 32-$f(m)}function Bf(m){return 1<<jl(m)-1}var $f=Math.clz32?Math.clz32:ju,Vf=Math.log,jr=Math.LN2;function ju(m){var l=m>>>0;return l===0?32:31-(Vf(l)/jr|0)|0}function Bl(m,l){return m===l&&(m!==0||1/m===1/l)||m!==m&&l!==l}var Xt=typeof Object.is=="function"?Object.is:Bl,bi=null,ws=null,$a=null,Jt=null,ua=!1,el=!1,ti=0,wi=null,xo=0,Bu=25,Br=!1,qi;function Va(){if(bi===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 Br&&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"),bi}function Fc(m,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.",qi),!1;m.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`,qi,"["+m.join(", ")+"]","["+l.join(", ")+"]");for(var d=0;d<l.length&&d<m.length;d++)if(!Xt(m[d],l[d]))return!1;return!0}function $u(){if(xo>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function xi(){return Jt===null?$a===null?(ua=!1,$a=Jt=$u()):(ua=!0,Jt=$a):Jt.next===null?(ua=!1,Jt=Jt.next=$u()):(ua=!0,Jt=Jt.next),Jt}function Vu(m,l){bi=l,ws=m,Br=!1,ti=0}function Ha(m,l,d,v){for(;el;)el=!1,ti=0,xo+=1,Jt=null,d=m(l,v);return Hu(),d}function $r(){var m=ti!==0;return m}function Hu(){Br=!1,bi=null,ws=null,el=!1,$a=null,xo=0,wi=null,Jt=null}function Uu(m){return Br&&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()."),bs(m)}function Wu(m){return qi="useContext",Va(),bs(m)}function Ua(m,l){return typeof l=="function"?l(m):l}function ca(m){return qi="useState",zu(Ua,m)}function zu(m,l,d){if(m!==Ua&&(qi="useReducer"),bi=Va(),Jt=xi(),ua){var v=Jt.queue,x=v.dispatch;if(wi!==null){var A=wi.get(v);if(A!==void 0){wi.delete(v);var B=Jt.memoizedState,Y=A;do{var re=Y.action;Br=!0,B=m(B,re),Br=!1,Y=Y.next}while(Y!==null);return Jt.memoizedState=B,[B,x]}}return[Jt.memoizedState,x]}else{Br=!0;var be;m===Ua?be=typeof l=="function"?l():l:be=d!==void 0?d(l):l,Br=!1,Jt.memoizedState=be;var He=Jt.queue={last:null,dispatch:null},Ze=He.dispatch=jc.bind(null,bi,He);return[Jt.memoizedState,Ze]}}function Nc(m,l){bi=Va(),Jt=xi();var d=l===void 0?null:l;if(Jt!==null){var v=Jt.memoizedState;if(v!==null&&d!==null){var x=v[1];if(Fc(d,x))return v[0]}}Br=!0;var A=m();return Br=!1,Jt.memoizedState=[A,d],A}function $l(m){bi=Va(),Jt=xi();var l=Jt.memoizedState;if(l===null){var d={current:m};return Object.seal(d),Jt.memoizedState=d,d}else return l}function Hf(m,l){qi="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 jc(m,l,d){if(xo>=Bu)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(m===bi){el=!0;var v={action:d,next:null};wi===null&&(wi=new Map);var x=wi.get(l);if(x===void 0)wi.set(l,v);else{for(var A=x;A.next!==null;)A=A.next;A.next=v}}}function fr(m,l){return Nc(function(){return m},l)}function Yu(m,l,d){return Va(),l(m._source)}function Bc(m,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 Si(m){return Va(),m}function Vl(){throw new Error("startTransition cannot be called during server rendering.")}function xs(){return Va(),[!1,Vl]}function fa(){var m=ws,l=$o(m.treeContext),d=Wa;if(d===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var v=ti++;return Bn(d,l,v)}function tl(){}var nr={readContext:Uu,useContext:Wu,useMemo:Nc,useReducer:zu,useRef:$l,useState:ca,useInsertionEffect:tl,useLayoutEffect:Hf,useCallback:fr,useImperativeHandle:tl,useEffect:tl,useDebugValue:tl,useDeferredValue:Si,useTransition:xs,useId:fa,useMutableSource:Yu,useSyncExternalStore:Bc},Wa=null;function Hl(m){Wa=m}function Ss(m){try{var l="",d=m;do{switch(d.tag){case 0:l+=Gi(d.type,null,null);break;case 1:l+=ps(d.type,null,null);break;case 2:l+=Pc(d.type,null,null);break}d=d.parent}while(d);return l}catch(v){return`
|
|
134
|
+
Error generating stack: `+v.message+`
|
|
135
|
+
`+v.stack}}var Ul=n.ReactCurrentDispatcher,Ts=n.ReactDebugCurrentFrame,Wl=0,So=1,zl=2,za=3,$c=4,nl=0,Cs=1,Es=2,Gu=12800;function Vc(m){return console.error(m),null}function Ya(){}function Yl(m,l,d,v,x,A,B,Y,re){var be=[],He=new Set,Ze={destination:null,responseState:l,progressiveChunkSize:v===void 0?Gu:v,status:nl,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:He,pingedTasks:be,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:x===void 0?Vc:x,onAllReady:A===void 0?Ya:A,onShellReady:B===void 0?Ya:B,onShellError:Y===void 0?Ya:Y,onFatalError:re===void 0?Ya:re},rt=rl(Ze,0,null,d,!1,!1);rt.parentFlushed=!0;var St=Ho(Ze,m,null,rt,He,qn,Ll,jf);return be.push(St),Ze}function Vo(m,l){var d=m.pingedTasks;d.push(l),d.length===1&&s(function(){return ec(m)})}function Gl(m,l){return{id:_i,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:l,errorDigest:null}}function Ho(m,l,d,v,x,A,B,Y){m.allPendingTasks++,d===null?m.pendingRootTasks++:d.pendingTasks++;var re={node:l,ping:function(){return Vo(m,re)},blockedBoundary:d,blockedSegment:v,abortSet:x,legacyContext:A,context:B,treeContext:Y};return re.componentStack=null,x.add(re),re}function rl(m,l,d,v,x,A){return{status:Wl,id:-1,index:l,parentFlushed:!1,chunks:[],children:[],formatContext:v,boundary:d,lastPushedText:x,textEmbedded:A}}var Xi=null;function Ki(){return Xi===null||Xi.componentStack===null?"":Ss(Xi.componentStack)}function To(m,l){m.componentStack={tag:0,parent:m.componentStack,type:l}}function il(m,l){m.componentStack={tag:1,parent:m.componentStack,type:l}}function da(m,l){m.componentStack={tag:2,parent:m.componentStack,type:l}}function Zi(m){m.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):m.componentStack=m.componentStack.parent}var ks=null;function ql(m,l){{var d;typeof l=="string"?d=l:l&&typeof l.message=="string"?d=l.message:d=String(l);var v=ks||Ki();ks=null,m.errorMessage=d,m.errorComponentStack=v}}function ol(m,l){var d=m.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 Os(m,l){var d=m.onShellError;d(l);var v=m.onFatalError;v(l),m.destination!==null?(m.status=Es,V(m.destination,l)):(m.status=Cs,m.fatalError=l)}function Hc(m,l,d){To(l,"Suspense");var v=l.blockedBoundary,x=l.blockedSegment,A=d.fallback,B=d.children,Y=new Set,re=Gl(m,Y),be=x.chunks.length,He=rl(m,be,re,x.formatContext,!1,!1);x.children.push(He),x.lastPushedText=!1;var Ze=rl(m,0,null,x.formatContext,!1,!1);Ze.parentFlushed=!0,l.blockedBoundary=re,l.blockedSegment=Ze;try{if(Ti(m,l,B),Rn(Ze.chunks,m.responseState,Ze.lastPushedText,Ze.textEmbedded),Ze.status=So,ga(re,Ze),re.pendingTasks===0){Zi(l);return}}catch(St){Ze.status=$c,re.forceClientRender=!0,re.errorDigest=ol(m,St),ql(re,St)}finally{l.blockedBoundary=v,l.blockedSegment=x}var rt=Ho(m,A,v,He,Y,l.legacyContext,l.context,l.treeContext);rt.componentStack=l.componentStack,m.pingedTasks.push(rt),Zi(l)}function qu(m,l,d,v){To(l,d);var x=l.blockedSegment,A=uo(x.chunks,d,v,m.responseState,x.formatContext);x.lastPushedText=!1;var B=x.formatContext;x.formatContext=pi(B,d,v),Ti(m,l,A),x.formatContext=B,Io(x.chunks,d),x.lastPushedText=!1,Zi(l)}function Xu(m){return m.prototype&&m.prototype.isReactComponent}function Ga(m,l,d,v,x){var A={};Vu(l,A);var B=d(v,x);return Ha(d,v,B,x)}function Ku(m,l,d,v,x){var A=d.render();d.props!==x&&(Kl||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",gn(v)||"a component"),Kl=!0);{var B=v.childContextTypes;if(B!=null){var Y=l.legacyContext,re=Au(d,v,Y,B);l.legacyContext=re,dr(m,l,A),l.legacyContext=Y;return}}dr(m,l,A)}function Xl(m,l,d,v){da(l,d);var x=ia(d,l.legacyContext),A=wo(d,v,x);Qs(A,d,v,x),Ku(m,l,A,d,v),Zi(l)}var Bt={},al={},Zu={},qa={},Kl=!1,Uc={},Wc=!1,ni=!1,zc=!1;function Zl(m,l,d,v){var x;if(x=ia(d,l.legacyContext),il(l,d),d.prototype&&typeof d.prototype.render=="function"){var A=gn(d)||"Unknown";Bt[A]||(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.",A,A),Bt[A]=!0)}var B=Ga(m,l,d,v,x),Y=$r();if(typeof B=="object"&&B!==null&&typeof B.render=="function"&&B.$$typeof===void 0){var re=gn(d)||"Unknown";al[re]||(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.",re,re,re),al[re]=!0)}if(typeof B=="object"&&B!==null&&typeof B.render=="function"&&B.$$typeof===void 0){{var be=gn(d)||"Unknown";al[be]||(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.",be,be,be),al[be]=!0)}Qs(B,d,v,x),Ku(m,l,B,d,v)}else if(Ju(d),Y){var He=l.treeContext,Ze=1,rt=0;l.treeContext=Nu(He,Ze,rt);try{dr(m,l,B)}finally{l.treeContext=He}}else dr(m,l,B);Zi(l)}function Ju(m){{if(m&&m.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",m.displayName||m.name||"Component"),m.defaultProps!==void 0){var l=gn(m)||"Unknown";Uc[l]||(i("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",l),Uc[l]=!0)}if(typeof m.getDerivedStateFromProps=="function"){var d=gn(m)||"Unknown";qa[d]||(i("%s: Function components do not support getDerivedStateFromProps.",d),qa[d]=!0)}if(typeof m.contextType=="object"&&m.contextType!==null){var v=gn(m)||"Unknown";Zu[v]||(i("%s: Function components do not support contextType.",v),Zu[v]=!0)}}}function Qu(m,l){if(m&&m.defaultProps){var d=J({},l),v=m.defaultProps;for(var x in v)d[x]===void 0&&(d[x]=v[x]);return d}return l}function Yc(m,l,d,v,x){il(l,d.render);var A=Ga(m,l,d.render,v,x),B=$r();if(B){var Y=l.treeContext,re=1,be=0;l.treeContext=Nu(Y,re,be);try{dr(m,l,A)}finally{l.treeContext=Y}}else dr(m,l,A);Zi(l)}function Vr(m,l,d,v,x){var A=d.type,B=Qu(A,v);Xa(m,l,A,B,x)}function ha(m,l,d,v){d._context===void 0?d!==d.Consumer&&(zc||(zc=!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=v.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 A=bs(d),B=x(A);dr(m,l,B)}function Hr(m,l,d,v){var x=d._context,A=v.value,B=v.children,Y;Y=l.context,l.context=Mu(x,A),dr(m,l,B),l.context=Mf(x),Y!==l.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Gc(m,l,d,v,x){To(l,"Lazy");var A=d._payload,B=d._init,Y=B(A),re=Qu(Y,v);Xa(m,l,Y,re,x),Zi(l)}function Xa(m,l,d,v,x){if(typeof d=="function")if(Xu(d)){Xl(m,l,d,v);return}else{Zl(m,l,d,v);return}if(typeof d=="string"){qu(m,l,d,v);return}switch(d){case Gn:case Vt:case Z:case le:case Oe:{dr(m,l,v.children);return}case ut:{To(l,"SuspenseList"),dr(m,l,v.children),Zi(l);return}case xt:throw new Error("ReactDOMServer does not yet support scope components.");case st:{Hc(m,l,v);return}}if(typeof d=="object"&&d!==null)switch(d.$$typeof){case Ve:{Yc(m,l,d,v,x);return}case ot:{Vr(m,l,d,v,x);return}case se:{Hr(m,l,d,v);return}case Ae:{ha(m,l,d,v);return}case Mt:{Gc(m,l,d,v);return}}var A="";throw(d===void 0||typeof d=="object"&&d!==null&&Object.keys(d).length===0)&&(A+=" 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)+"."+A))}function qc(m,l){typeof Symbol=="function"&&m[Symbol.toStringTag]==="Generator"&&(Wc||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."),Wc=!0),m.entries===l&&(ni||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ni=!0)}function dr(m,l,d){try{return Xc(m,l,d)}catch(v){throw typeof v=="object"&&v!==null&&typeof v.then=="function"||(ks=ks!==null?ks:Ki()),v}}function Xc(m,l,d){if(l.node=d,typeof d=="object"&&d!==null){switch(d.$$typeof){case fe:{var v=d,x=v.type,A=v.props,B=v.ref;Xa(m,l,x,A,B);return}case Se: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 Mt:{var Y=d,re=Y._payload,be=Y._init,He;try{He=be(re)}catch(Ji){throw typeof Ji=="object"&&Ji!==null&&typeof Ji.then=="function"&&To(l,"Lazy"),Ji}dr(m,l,He);return}}if(Qn(d)){Jl(m,l,d);return}var Ze=Nr(d);if(Ze){qc(d,Ze);var rt=Ze.call(d);if(rt){var St=rt.next();if(!St.done){var tn=[];do tn.push(St.value),St=rt.next();while(!St.done);Jl(m,l,tn);return}return}}var rr=Object.prototype.toString.call(d);throw new Error("Objects are not valid as a React child (found: "+(rr==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":rr)+"). If you meant to render a collection of children, use an array instead.")}if(typeof d=="string"){var Co=l.blockedSegment;Co.lastPushedText=Pn(l.blockedSegment.chunks,d,m.responseState,Co.lastPushedText);return}if(typeof d=="number"){var va=l.blockedSegment;va.lastPushedText=Pn(l.blockedSegment.chunks,""+d,m.responseState,va.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 Jl(m,l,d){for(var v=d.length,x=0;x<v;x++){var A=l.treeContext;l.treeContext=Nu(A,v,x);try{Ti(m,l,d[x])}finally{l.treeContext=A}}}function Ql(m,l,d){var v=l.blockedSegment,x=v.chunks.length,A=rl(m,x,null,v.formatContext,v.lastPushedText,!0);v.children.push(A),v.lastPushedText=!1;var B=Ho(m,l.node,l.blockedBoundary,A,l.abortSet,l.legacyContext,l.context,l.treeContext);l.componentStack!==null&&(B.componentStack=l.componentStack.parent);var Y=B.ping;d.then(Y,Y)}function Ti(m,l,d){var v=l.blockedSegment.formatContext,x=l.legacyContext,A=l.context,B=null;B=l.componentStack;try{return dr(m,l,d)}catch(Y){if(Hu(),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"){Ql(m,l,Y),l.blockedSegment.formatContext=v,l.legacyContext=x,l.context=A,sa(A),l.componentStack=B;return}else throw l.blockedSegment.formatContext=v,l.legacyContext=x,l.context=A,sa(A),l.componentStack=B,Y}}function Kc(m,l,d,v){var x=ol(m,v);if(l===null?Os(m,v):(l.pendingTasks--,l.forceClientRender||(l.forceClientRender=!0,l.errorDigest=x,ql(l,v),l.parentFlushed&&m.clientRenderedBoundaries.push(l))),m.allPendingTasks--,m.allPendingTasks===0){var A=m.onAllReady;A()}}function pa(m){var l=this,d=m.blockedBoundary,v=m.blockedSegment;v.status=za,Ka(l,d,v)}function eu(m,l,d){var v=m.blockedBoundary,x=m.blockedSegment;if(x.status=za,v===null)l.allPendingTasks--,l.status!==Es&&(l.status=Es,l.destination!==null&&P(l.destination));else{if(v.pendingTasks--,!v.forceClientRender){v.forceClientRender=!0;var A=d===void 0?new Error("The render was aborted by the server without a reason."):d;v.errorDigest=l.onError(A);{var B="The server did not finish this Suspense boundary: ";A&&typeof A.message=="string"?A=B+A.message:A=B+String(A);var Y=Xi;Xi=m;try{ql(v,A)}finally{Xi=Y}}v.parentFlushed&&l.clientRenderedBoundaries.push(v)}if(v.fallbackAbortableTasks.forEach(function(be){return eu(be,l,d)}),v.fallbackAbortableTasks.clear(),l.allPendingTasks--,l.allPendingTasks===0){var re=l.onAllReady;re()}}}function ga(m,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===So&&ga(m,d)}else{var v=m.completedSegments;v.push(l)}}function Ka(m,l,d){if(l===null){if(d.parentFlushed){if(m.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");m.completedRootSegment=d}if(m.pendingRootTasks--,m.pendingRootTasks===0){m.onShellError=Ya;var v=m.onShellReady;v()}}else if(l.pendingTasks--,!l.forceClientRender){if(l.pendingTasks===0)d.parentFlushed&&d.status===So&&ga(l,d),l.parentFlushed&&m.completedBoundaries.push(l),l.fallbackAbortableTasks.forEach(pa,m),l.fallbackAbortableTasks.clear();else if(d.parentFlushed&&d.status===So){ga(l,d);var x=l.completedSegments;x.length===1&&l.parentFlushed&&m.partialBoundaries.push(l)}}if(m.allPendingTasks--,m.allPendingTasks===0){var A=m.onAllReady;A()}}function Uf(m,l){var d=l.blockedSegment;if(d.status===Wl){sa(l.context);var v=null;v=Xi,Xi=l;try{dr(m,l,l.node),Rn(d.chunks,m.responseState,d.lastPushedText,d.textEmbedded),l.abortSet.delete(l),d.status=So,Ka(m,l.blockedBoundary,d)}catch(A){if(Hu(),typeof A=="object"&&A!==null&&typeof A.then=="function"){var x=l.ping;A.then(x,x)}else l.abortSet.delete(l),d.status=$c,Kc(m,l.blockedBoundary,d,A)}finally{Xi=v}}}function ec(m){if(m.status!==Es){var l=Ic(),d=Ul.current;Ul.current=nr;var v;v=Ts.getCurrentStack,Ts.getCurrentStack=Ki;var x=Wa;Hl(m.responseState);try{var A=m.pingedTasks,B;for(B=0;B<A.length;B++){var Y=A[B];Uf(m,Y)}A.splice(0,B),m.destination!==null&&Ii(m,m.destination)}catch(re){ol(m,re),Os(m,re)}finally{Hl(x),Ul.current=d,Ts.getCurrentStack=v,d===nr&&sa(l)}}}function sl(m,l,d){switch(d.parentFlushed=!0,d.status){case Wl:{var v=d.id=m.nextSegmentId++;return d.lastPushedText=!1,d.textEmbedded=!1,cr(l,m.responseState,v)}case So:{d.status=zl;for(var x=!0,A=d.chunks,B=0,Y=d.children,re=0;re<Y.length;re++){for(var be=Y[re];B<be.index;B++)g(l,A[B]);x=ll(m,l,be)}for(;B<A.length-1;B++)g(l,A[B]);return B<A.length&&(x=T(l,A[B])),x}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function ll(m,l,d){var v=d.boundary;if(v===null)return sl(m,l,d);if(v.parentFlushed=!0,v.forceClientRender)return Ye(l,m.responseState,v.errorDigest,v.errorMessage,v.errorComponentStack),sl(m,l,d),kt(l,m.responseState);if(v.pendingTasks>0){v.rootSegmentID=m.nextSegmentId++,v.completedSegments.length>0&&m.partialBoundaries.push(v);var x=v.id=rn(m.responseState);return xe(l,m.responseState,x),sl(m,l,d),Ct(l,m.responseState)}else{if(v.byteSize>m.progressiveChunkSize)return v.rootSegmentID=m.nextSegmentId++,m.completedBoundaries.push(v),xe(l,m.responseState,v.id),sl(m,l,d),Ct(l,m.responseState);Ie(l,m.responseState);var A=v.completedSegments;if(A.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var B=A[0];return ll(m,l,B),at(l,m.responseState)}}function tc(m,l,d){return Rl(l,m.responseState,d.id,d.errorDigest,d.errorMessage,d.errorComponentStack)}function tu(m,l,d){return Tt(l,m.responseState,d.formatContext,d.id),ll(m,l,d),yt(l,d.formatContext)}function nc(m,l,d){for(var v=d.completedSegments,x=0;x<v.length;x++){var A=v[x];Ur(m,l,d,A)}return v.length=0,go(l,m.responseState,d.id,d.rootSegmentID)}function Zc(m,l,d){for(var v=d.completedSegments,x=0;x<v.length;x++){var A=v[x];if(!Ur(m,l,d,A))return x++,v.splice(0,x),!1}return v.splice(0,x),!0}function Ur(m,l,d,v){if(v.status===zl)return!0;var x=v.id;if(x===-1){var A=v.id=d.rootSegmentID;if(A===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return tu(m,l,v)}else return tu(m,l,v),Ws(l,m.responseState,x)}function Ii(m,l){y();try{var d=m.completedRootSegment;d!==null&&m.pendingRootTasks===0&&(ll(m,l,d),m.completedRootSegment=null,yi(l,m.responseState));var v=m.clientRenderedBoundaries,x;for(x=0;x<v.length;x++){var A=v[x];tc(m,l,A)}v.splice(0,x);var B=m.completedBoundaries;for(x=0;x<B.length;x++){var Y=B[x];nc(m,l,Y)}B.splice(0,x),C(l),y(l);var re=m.partialBoundaries;for(x=0;x<re.length;x++){var be=re[x];if(!Zc(m,l,be)){m.destination=null,x++,re.splice(0,x);return}}re.splice(0,x);var He=m.completedBoundaries;for(x=0;x<He.length;x++){var Ze=He[x];nc(m,l,Ze)}He.splice(0,x)}finally{C(l),m.allPendingTasks===0&&m.pingedTasks.length===0&&m.clientRenderedBoundaries.length===0&&m.completedBoundaries.length===0&&(m.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),P(l))}}function Jc(m){s(function(){return ec(m)})}function Wf(m,l){if(m.status===Cs){m.status=Es,V(l,m.fatalError);return}if(m.status!==Es&&m.destination===null){m.destination=l;try{Ii(m,l)}catch(d){ol(m,d),Os(m,d)}}}function ul(m,l){try{var d=m.abortableTasks;d.forEach(function(v){return eu(v,m,l)}),d.clear(),m.destination!==null&&Ii(m,m.destination)}catch(v){ol(m,v),Os(m,v)}}function Ds(m,l){return new Promise(function(d,v){var x,A,B=new Promise(function(rt,St){A=rt,x=St});function Y(){var rt=new ReadableStream({type:"bytes",pull:function(St){Wf(be,St)},cancel:function(St){ul(be)}},{highWaterMark:0});rt.allReady=B,d(rt)}function re(rt){B.catch(function(){}),v(rt)}var be=Yl(m,Di(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),hi(l?l.namespaceURI:void 0),l?l.progressiveChunkSize:void 0,l?l.onError:void 0,A,Y,re,x);if(l&&l.signal){var He=l.signal,Ze=function(){ul(be,He.reason),He.removeEventListener("abort",Ze)};He.addEventListener("abort",Ze)}Jc(be)})}Nh.renderToReadableStream=Ds,Nh.version=t}()),Nh}var Tc,Om;process.env.NODE_ENV==="production"?(Tc=S4(),Om=T4()):(Tc=C4(),Om=E4());Tc.version;var k4=Tc.renderToString;Tc.renderToStaticMarkup;Tc.renderToNodeStream;Tc.renderToStaticNodeStream;Om.renderToReadableStream;var O4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yO(e,t){return e(t={exports:{}},t.exports),t.exports}var D4=yO(function(e){(function(t){var n=function(M,R,V){if(!f(R)||y(R)||g(R)||T(R)||c(R))return R;var U,Q=0,K=0;if(p(R))for(U=[],K=R.length;Q<K;Q++)U.push(n(M,R[Q],V));else for(var ue in U={},R)Object.prototype.hasOwnProperty.call(R,ue)&&(U[M(ue,V)]=n(M,R[ue],V));return U},r=function(M){return C(M)?M:(M=M.replace(/[\-_\s]+(.)?/g,function(R,V){return V?V.toUpperCase():""})).substr(0,1).toLowerCase()+M.substr(1)},i=function(M){var R=r(M);return R.substr(0,1).toUpperCase()+R.substr(1)},o=function(M,R){return function(V,U){var Q=(U=U||{}).separator||"_",K=U.split||/(?=[A-Z])/;return V.split(K).join(Q)}(M,R).toLowerCase()},s=Object.prototype.toString,c=function(M){return typeof M=="function"},f=function(M){return M===Object(M)},p=function(M){return s.call(M)=="[object Array]"},y=function(M){return s.call(M)=="[object Date]"},g=function(M){return s.call(M)=="[object RegExp]"},T=function(M){return s.call(M)=="[object Boolean]"},C=function(M){return(M-=0)==M},P=function(M,R){var V=R&&"process"in R?R.process:R;return typeof V!="function"?M:function(U,Q){return V(U,M,Q)}},I={camelize:r,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(M,R){return n(P(r,R),M)},decamelizeKeys:function(M,R){return n(P(o,R),M,R)},pascalizeKeys:function(M,R){return n(P(i,R),M)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=I:t.humps=I})(O4)}).decamelize,_4=function(e){if(Array.isArray(e))return e},P4=function(e,t){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,c=e[Symbol.iterator]();!(r=(s=c.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(f){i=!0,o=f}finally{try{r||c.return==null||c.return()}finally{if(i)throw o}}return n}},a1=function(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},R4=function(e,t){if(e){if(typeof e=="string")return a1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a1(e,t):void 0}},I4=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.`)},A4=function(e,t){return _4(e)||P4(e,t)||R4(e,t)||I4()},bO=yO(function(e){function t(){return e.exports=t=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},t.apply(this,arguments)}e.exports=t}),M4=function(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i},wO=function(e,t){if(e==null)return{};var n,r,i=M4(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},L4=q.createContext(null);function xO(e){var t=e.children,n=t===void 0?"":t,r=wO(e,["children"]);return typeof n!="string"&&(n=k4(n)),q.createElement("template",bO({},r,{dangerouslySetInnerHTML:{__html:n}}))}function SO(e){var t=e.root,n=e.children;return Fm.createPortal(n===void 0?null:n,t)}function F4(e){var t=q.forwardRef(function(n,r){var i,o,s=n.mode,c=s===void 0?"open":s,f=n.delegatesFocus,p=f!==void 0&&f,y=n.styleSheets,g=y===void 0?[]:y,T=n.ssr,C=T!==void 0&&T,P=n.children,I=wO(n,["mode","delegatesFocus","styleSheets","ssr","children"]),M=(o=q.useRef((i=r)&&i.current),q.useEffect(function(){i&&(i.current=o.current)},[i]),o),R=q.useState(null),V=A4(R,2),U=V[0],Q=V[1],K="node_".concat(c).concat(p);return q.useLayoutEffect(function(){if(M.current)try{if(typeof r=="function"&&r(M.current),C){var ue=M.current.shadowRoot;return void Q(ue)}var S=M.current.attachShadow({mode:c,delegatesFocus:p});g.length>0&&(S.adoptedStyleSheets=g),Q(S)}catch(he){(function(ae){var Ge=ae.error,Re=ae.styleSheets,Me=ae.root;switch(Ge.name){case"NotSupportedError":Re.length>0&&(Me.adoptedStyleSheets=Re);break;default:throw Ge}})({error:he,styleSheets:g,root:U})}},[r,M,g]),q.createElement(q.Fragment,null,q.createElement(e.tag,bO({key:K,ref:M},I),(U||C)&&q.createElement(L4.Provider,{value:U},C?q.createElement(xO,{shadowroot:c,shadowrootmode:c},e.render({root:U,ssr:C,children:P})):q.createElement(SO,{root:U},e.render({root:U,ssr:C,children:P})))))});return t.propTypes={mode:Ea.oneOf(["open","closed"]),delegatesFocus:Ea.bool,styleSheets:Ea.arrayOf(Ea.instanceOf(globalThis.CSSStyleSheet)),ssr:Ea.bool,children:Ea.node},t}xO.propTypes={children:Ea.oneOfType([Ea.string,Ea.node])},SO.propTypes={root:Ea.object.isRequired,children:Ea.node};var bv=new Map;function N4(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=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(e,{get:function(r,i){var o=D4(i,{separator:"-"}),s="".concat(t,"-").concat(o);return bv.has(s)||bv.set(s,F4({tag:o,render:n})),bv.get(s)}})}var TO=N4();const j4=".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}",B4=".favorite-bar{position:sticky;top:64px;z-index:900;transition:transform .3s ease,opacity .3s ease;border-bottom:1px solid #ddd}.favorite-bar--hidden{transform:translateY(-100%);opacity:0}.favorite-bar--visible{transform:translateY(0);opacity:1}",$4=e=>{const t=e.depth*16;return je.jsx("div",{style:{backgroundColor:e.color||"#93D500",height:"2px",position:"absolute",right:"0",top:"0",left:t}})};function V4(e){const t=new CustomEvent("updateFavoriteMenu",{detail:{menuItem:e}});window.dispatchEvent(t)}function H4(e){const t=Tp.useLocation(),n=q.useRef(null),[r,i]=q.useState([]),[o,s]=q.useState(!1);console.log("isSubmit",o);const[c,f]=q.useState([]),p=q.useRef(null),[y,g]=q.useState(window.location.href);q.useEffect(()=>{g(window.location.href)},[t]);const T=R=>`${R}`;function C(R,V){for(const U of R){if(U.id===V)return U;if(U.children){const Q=C(U.children,V);if(Q)return Q}}return null}function P(R,V){const U=C(r,R);U?(U.isFavorite=V,V4(U),Yy(R,V)):console.error(`Item with id ${R} not found`)}const I=R=>{console.log("Favorite menus changed",R);const V=R.detail.favoriteMenus||[];i(V)};q.useEffect(()=>(window.addEventListener("favoriteMenusChange",I),()=>{window.removeEventListener("favoriteMenusChange",I)}),[]);function M(R){s(!0);const V=[...c];f(R),console.log("tree",R),console.log("prev",V);const U={menuItemIds:R.map(Q=>Q.id)};console.log(U),ka.post("global-menu-config/api/v1/menu-items/user/order-favorites",U,{baseURL:e.baseUrl}).then(()=>{}).catch(Q=>{console.error(Q),f(V)}).finally(()=>{s(!1)})}return q.useEffect(()=>{const R=r.map(V=>({id:V.id,parent:0,text:V.name,data:V}));f(R),console.log("nodes",R)},[r]),je.jsx(je.Fragment,{children:r.length?je.jsx("div",{className:T("favorite-menu"),children:je.jsx(Wm,{ref:p,className:T("wrap-section favorite-menu__menu"),style:{marginTop:4,flex:1,overflow:"auto",height:"100%",overflowY:"hidden"},children:je.jsx(wE,{backend:_E,options:LE(),children:je.jsx($E,{ref:n,classes:{root:"treeFavorited"},tree:c,rootId:0,sort:!1,insertDroppableFirst:!1,enableAnimateExpand:!0,dropTargetOffset:10,onDrop:M,render:(R,V)=>{console.log("1111111111111");const U=R.data;return console.log("item favorite",U),console.log("params",V),je.jsx(mO,{replacePath:e.replacePath,ssr:e.ssr,brandColors:e.brandColors,baseUrl:e.baseUrl,node:R,params:V,nodes:c,item:U,level:V.depth+1,onSetFavoriteSuccess:P})},placeholderRender:(R,{depth:V})=>{var U;return console.log("aaaa"),je.jsx($4,{node:R,depth:V,color:(U=e.brandColors)==null?void 0:U.primary300})},canDrag:()=>!o,canDrop:(R,{dragSource:V,dropTargetId:U})=>(V==null?void 0:V.parent)===U,onDragStart:R=>{console.log("onDragStart",R)}})})})}):""})}function U4(e=32){const[t,n]=q.useState(!0),[r,i]=q.useState(0),o=()=>{const s=window.scrollY;s>r&&s>e?n(!1):s<r&&n(!0),i(s)};return q.useEffect(()=>(window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)),[r]),{isFavoriteBarVisible:t}}function W4(e){const{isFavoriteBarVisible:t}=U4();return je.jsxs(je.Fragment,{children:[je.jsx("style",{children:B4}),je.jsx("div",{className:`favorite-bar ${t?"favorite-bar--visible":"favorite-bar--hidden"}`,children:je.jsx(TO.div,{children:je.jsx(Vm,{styles:[yT,x4,j4],children:je.jsx(H4,{...e})})})})]})}function Yy(e,t){const n=JSON.parse(localStorage.getItem("favoriteItems")||"[]");if(t)n.includes(e)||n.push(e);else{const r=n.indexOf(e);r>-1&&n.splice(r,1)}localStorage.setItem("favoriteItems",JSON.stringify(n))}function CO({...e}){var Ne,We,tt,we,Ee;const t=e.item,n=e.level||0,r=!!((Ne=e.item.children)!=null&&Ne.length),{isActive:i,isCollapsed:o}=e,s=`level-${n}`,c=o?"collapsed":"expanded",f=i(t.id)?"active":"",p=(Le,Be=s)=>`${Le} ${Be} ${c} ${f}`,[y,g]=q.useState(!1),[T,C]=q.useState(t.isFavorite||!1);q.useEffect(()=>{C(!!e.item.isFavorite)},[e.item.isFavorite]);const P=q.useRef(),I=q.useRef();I!=null&&I.current&&((We=I==null?void 0:I.current)==null?void 0:We.scrollWidth)>((tt=I==null?void 0:I.current)==null?void 0:tt.clientWidth);const M=window.location.origin,R=t.path&&t.path.includes("http")?new URL(t.path):{origin:"",pathname:""},V=window.location.pathname.split("/")[1],U=R.pathname.split("/")[1],Q=e.ssr||!M.includes("local")&&M!==R.origin||U!==V,K=r||n===0?"div":Q?"a":Tp.Link,ue=t.path||"#",S=n+1,he=r&&o&&y,ae=o||n===0?void 0:`${n+.25}rem`,Ge=()=>{g(!0)},Re=()=>{g(!1)},Me="/global-menu-config/api/v1/menu-items/user/set-favorite",$e=t.serviceKey==="mn_poms";e.params.depth*20,e.params.depth,bH(t.id,e.params.isOpen,e.params.onToggle);const Ue=Le=>{Le.stopPropagation(),e.params.onToggle()},Te=$e||o&&n===0?t.name==="POMs"?"Parking Operations Management":t.description||t.name:null;return je.jsxs("div",{ref:P,className:p("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s"},onMouseOver:Ge,onMouseOut:Re,onDragStart:Le=>{o&&n>1&&Le.preventDefault()},children:[je.jsx(is.Tooltip,{placement:"top",title:Te,disableInteractive:!0,children:je.jsxs(K,{to:ue,href:ue,draggable:"true",className:p("menu-item__link"),style:{paddingLeft:ae,transition:"all 0.3s",color:i(t.id)?((we=e.brandColors)==null?void 0:we.primary400)||Ei.primary400:void 0,backgroundColor:i(t.id)&&n===0?(Ee=e.brandColors)==null?void 0:Ee.primary200:void 0},onClick:Le=>{o||Ue(Le)},children:[je.jsx(z4,{cls:p,item:t}),je.jsx("span",{className:p("menu-item__label"),ref:I,children:t.name}),je.jsx(Y4,{tooltipPosition:Te?"right":"top",menuLevel:n,hasChildren:r,isHovered:y,isFavorite:T,onClick:Le=>{const Be={menuConfigId:t.id,isFavorite:Le},ke=e.baseUrl+Me;ka.post(ke,Be).then(_e=>{var ze;C(Le),Ym("Set favorite menu item successfully"),(ze=e.onSetFavoriteSuccess)==null||ze.call(e,e.item.id,Le),Yy(e.item.id,Le)}).catch(_e=>{var ze,it;Bd(((it=(ze=_e.response)==null?void 0:ze.data)==null?void 0:it.errorMessage)||"Have error when set favorite menu item")})}}),r&&je.jsx("div",{className:p("menu-item__icon-arrow__wrapper"),children:je.jsx(V5,{className:p(`menu-item__icon-arrow__icon ${e.params.isOpen?"open":"close"}`)})})]})}),he&&je.jsx(H5,{parentRef:P,onlyChild:!o,renderChildren:({maxHeight:Le})=>{var Be;return je.jsx(lO.div,{className:p(`menu-item__dropdown ${e.params.isOpen?"menu-item__dropdown--open":"menu-item__dropdown--close"}`,`level-${S}`),style:Wy({maxHeight:Le,overflowY:"auto",paddingRight:3},Le!=="auto"&&!!S),children:(Be=t.children)==null?void 0:Be.map(ke=>q.createElement(CO,{...e,key:ke.id,item:ke,level:S}))})}})]})}function z4({item:e,cls:t}){return je.jsx("div",{className:t("menu-item__icon"),children:je.jsx(vO,{item:e})})}function Y4(e){const t={marginRight:e.hasChildren?10:0,fontSize:18,fill:Ei.warning};return je.jsxs(je.Fragment,{children:[e.isHovered&&!e.isFavorite&&je.jsx(is.Tooltip,{placement:e.tooltipPosition||"top",title:"Add to favorites",disableInteractive:!0,children:je.jsx("div",{children:je.jsx(uO,{style:t,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,!0)}})})}),e.isFavorite&&je.jsx(is.Tooltip,{placement:e.tooltipPosition||"top",title:"Remove from favorites",disableInteractive:!0,children:je.jsx("div",{children:je.jsx(cO,{style:t,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,!1)}})})})]})}function G4(){return je.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:je.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 q4(){return je.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:je.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}function X4(e){return je.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...e,children:je.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 K4=".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{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.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%}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link.expanded.level-0{padding:.5rem 10px}.menu-item__link:hover{background-color:#919eab14}.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.menu-item__link.collapsed.level-0{padding:0;transition:all .15s}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center}.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;color:#292929;opacity:1}.menu-item__label.level-0.collapsed{text-overflow:unset}.menu-item__label.active{color:inherit}.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__label.level-0{margin-left:8px;font-weight:500;font-size:.951rem}.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:all .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.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__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.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}.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}.side-bar__menu.collapsed .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}",Z4=e=>{const t=e.isCollapsed?0:e.depth*16;return je.jsx("div",{style:{backgroundColor:e.color||"#93D500",height:"2px",position:"absolute",right:"0",top:"0",left:t}})},J4=".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}",Q4=e=>{const[t,n]=q.useState(()=>{const r=localStorage.getItem("openingMenuIds");return r&&r!=="[]"?JSON.parse(r):(e==null?void 0:e.initOpenIds)||[]});return q.useEffect(()=>{localStorage.setItem("openingMenuIds",JSON.stringify(t))},[t]),[t,n]};function EO(e){document.documentElement.style.setProperty("--global-menu-width",!e||e==="true"?"64px":"17rem")}const Gh=localStorage.getItem("isCollapsed");EO(Gh);function e6(e){const t=new CustomEvent("favoriteMenusChange",{detail:{favoriteMenus:e}});window.dispatchEvent(t)}function t6(e){const t=Tp.useLocation(),[n,r]=q.useState([]),i=n.map(Re=>Re.data),[o,s]=q.useState(!1),[c,f]=q.useState([]),[p,y]=q.useState(Gh===null?!0:Gh==="true"),[g,T]=q.useState(window.location.href),C=q.useRef(null);q.useEffect(()=>{var Re;(Re=e.handleCallback)==null||Re.call(e,i)},[i,e.handleCallback]),q.useEffect(()=>{T(window.location.href)},[t]);const P=r6(i,g),[I,M]=Q4({initOpenIds:e.initOpenIds}),R=()=>{var Re,Me;if(y(!p),localStorage.setItem("isCollapsed",JSON.stringify(!p)),EO(p),p)I&&((Re=C.current)==null||Re.open(I));else{const $e=n.filter(Ue=>Ue.parent===0).map(Ue=>Ue.id);console.log("closeIds:",$e),(Me=C.current)==null||Me.close($e)}},[V,U]=q.useState(!1),Q=p?"collapsed":"expanded",K=Re=>`${Re} ${Q}`,ue=q.useRef(null);q.useLayoutEffect(()=>{(async()=>{var Me,$e;try{const Ue=e.menuPath||"/global-menu-config/api/v1/menu-items/user",ce=e.baseUrl+Ue,{data:Te}=await ka.get(ce);let Ne=Te.map(tt=>({...tt,parentKey:tt.parentKey||0}));Ne=OO(Ne),e.replacePath&&(Ne=kO(Ne,e.replacePath));const We=Ne.map(tt=>({id:tt.id,parent:tt.parentKey,text:tt.name,data:tt}));r(We)}catch(Ue){console.error("Global menu",Ue),Bd((($e=(Me=Ue.response)==null?void 0:Me.data)==null?void 0:$e.errorMessage)||"Have error when get menu items")}})()},[e.baseUrl,e.menuPath,e.replacePath]);const S=async()=>{try{const Re=await fetch(`${e.baseUrl}/global-menu-config/api/v1/menu-items/user/get-favorites`);if(!Re.ok)throw new Error("Failed to fetch favorite items");const Me=await Re.json();f(Me)}catch(Re){console.error("Error fetching favorite items:",Re)}};q.useEffect(()=>{S()},[e.baseUrl]),q.useEffect(()=>{let Re=[];c.forEach(Ue=>{const ce=i.find(Te=>Te.id===Ue&&Te.isFavorite===!0);ce&&(Re=[...Re,ce])}),console.log(Re);function Me(Ue){return i.every(ce=>ce.parentKey!==Ue.id)?Ue:{...Ue,children:i.filter(ce=>ce.parentKey===Ue.id).map(ce=>Me(ce))}}const $e=Re.map(Ue=>Me(Ue));e6($e)},[i]);function he(Re){const Me=Re.detail.menuItem;r($e=>$e.map(Ue=>Ue.id!==Me.id?Ue:{...Ue,data:Me}))}q.useEffect(()=>(window.addEventListener("updateFavoriteMenu",he),()=>{window.removeEventListener("updateFavoriteMenu",he)}),[]),q.useLayoutEffect(()=>{var Ue;const Re=localStorage.getItem("scrollPos");Re&&ue.current&&setTimeout(()=>{const ce=ue.current.getScrollElement();ce.scrollTop=parseInt(Re)},0);const Me=()=>{if(ue.current){const ce=ue.current.getScrollElement();localStorage.setItem("scrollPos",ce.scrollTop.toString())}},$e=(Ue=ue.current)==null?void 0:Ue.getScrollElement();return $e==null||$e.addEventListener("scroll",Me),()=>{$e==null||$e.removeEventListener("scroll",Me)}},[i]);function ae(Re){s(!0);const Me=[...n];r(Re);const $e=Re.map((Ue,ce)=>({menuItemId:Ue.id,order:ce}));ka.post("/global-menu-config/api/v1/menu-items/user",$e,{baseURL:e.baseUrl}).then(()=>{}).catch(Ue=>{console.error(Ue),r(Me)}).finally(()=>{s(!1)})}const Ge=q.useMemo(()=>Gh==="false"?I:[],[]);return console.log("nodesglobal menu",n),je.jsxs("div",{className:K("side-bar"),children:[je.jsx("div",{className:K("wrap-section side-bar__wrapper-toggle-btn"),children:je.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:R,children:p?je.jsx(q4,{}):je.jsx(G4,{})})}),je.jsx(Wm,{ref:ue,className:K("wrap-section side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:je.jsx(wE,{backend:_E,options:LE(),children:je.jsx($E,{ref:C,classes:{root:"treeRoot",draggingSource:"draggingSource",placeholder:"placeholderContainer"},tree:n,rootId:0,sort:!1,insertDroppableFirst:!1,enableAnimateExpand:!0,dropTargetOffset:10,onDrop:ae,render:(Re,Me)=>{function $e(Ne){return n.every(We=>We.parent!==Ne.id)?Ne:{...Ne,children:n.filter(We=>We.parent===Ne.id).map(We=>$e(We.data))}}const Ue=$e(Re.data),ce=Ne=>P.some(We=>We.id===Ne);function Te(Ne,We){r(tt=>tt.map(we=>we.id===Ne?{...we,data:{...we.data,isFavorite:We}}:we)),S()}return je.jsx(CO,{isActive:ce,isCollapsed:p,replacePath:e.replacePath,ssr:e.ssr,brandColors:e.brandColors,baseUrl:e.baseUrl,node:Re,params:Me,nodes:n,item:Ue,expanded:()=>!1,toggleExpand:()=>{},level:Me.depth,onSetFavoriteSuccess:Te})},placeholderRender:(Re,{depth:Me})=>{var $e;return je.jsx(Z4,{node:Re,depth:Me,color:($e=e.brandColors)==null?void 0:$e.primary300,isCollapsed:p})},canDrag:()=>!o,canDrop:(Re,{dragSource:Me,dropTargetId:$e})=>(Me==null?void 0:Me.parent)===$e,onDragStart:Re=>{console.log("onDragStart",Re)},onChangeOpen:Re=>{localStorage.getItem("isCollapsed")==="false"&&(console.log("onChangeOpen:",Re),M(Re))},initialOpen:Ge})})}),je.jsxs("div",{className:K("wrap-section side-bar__wrap-btn-logout"),children:[je.jsxs("button",{className:K("side-bar__logout-btn"),onClick:()=>U(!0),children:[je.jsx(X4,{className:K("side-bar__icon-logout")}),je.jsx("span",{className:K("side-bar__logout-btn__text"),children:"Logout"})]}),je.jsx(O1,{isOpen:V,onClose:()=>U(!1),onConfirm:()=>e.logout?e.logout():N1(e.baseUrl)})]})]})}function n6(e,t){const n=new URL(e).searchParams,r=new URL(t).searchParams;return Array.from(r).filter(([i,o])=>o===n.get(i)).length}function r6(e,t){var f;console.log("menuItems:",e);const n=new URL(t);let r=e.filter(p=>p.path&&p.path.includes("http")).map(p=>({item:p,itemUrl:new URL(p.path),matchingParamsCount:n6(t,p.path)})).sort((p,y)=>{const g=new URL(p.itemUrl).searchParams,T=new URL(y.itemUrl).searchParams;return Array.from(g).length-Array.from(T).length}).filter(({itemUrl:p})=>n.origin===p.origin);const i=r.filter(({itemUrl:p})=>n.pathname===p.pathname),o=r.filter(({itemUrl:p})=>n.pathname.includes(p.pathname));r=i.length>0?i:o,r=r.sort((p,y)=>y.matchingParamsCount-p.matchingParamsCount);let s=r.length>0?(f=r.find(p=>p.item.parentKey))==null?void 0:f.item:null;console.log("matchingItems:",r);let c=[];for(;s;)c=[s,...c],s=e.find(p=>p.id===(s==null?void 0:s.parentKey))||null;return console.log("parents:",c),c}function kO(e,t){return e.map(n=>{var r;return(r=n.children)!=null&&r.length?(n.path="",n.children=kO(n.children,t)):n.path=t(n.path),n})}function OO(e){return e.map(n=>n.path&&!n.path.includes("http")&&n.path.includes("/")?{...n,path:window.location.origin+n.path}:(n.children&&(n.children=OO(n.children)),n))}function i6(e){return je.jsx(TO.div,{children:je.jsx(Vm,{styles:[yT,K4,J4],style:{position:"sticky",zIndex:1300},children:je.jsx(t6,{...e})})})}const o6={"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"};var wp={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
|
+
*/wp.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",c="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",p=500,y="__lodash_placeholder__",g=1,T=2,C=4,P=1,I=2,M=1,R=2,V=4,U=8,Q=16,K=32,ue=64,S=128,he=256,ae=512,Ge=30,Re="...",Me=800,$e=16,Ue=1,ce=2,Te=3,Ne=1/0,We=9007199254740991,tt=17976931348623157e292,we=NaN,Ee=4294967295,Le=Ee-1,Be=Ee>>>1,ke=[["ary",S],["bind",M],["bindKey",R],["curry",U],["curryRight",Q],["flip",ae],["partial",K],["partialRight",ue],["rearg",he]],_e="[object Arguments]",ze="[object Array]",it="[object AsyncFunction]",dt="[object Boolean]",ht="[object Date]",ft="[object DOMException]",bt="[object Error]",et="[object Function]",At="[object GeneratorFunction]",Lt="[object Map]",Hn="[object Number]",gr="[object Null]",Un="[object Object]",Cn="[object Promise]",ji="[object Proxy]",Er="[object RegExp]",Zn="[object Set]",sn="[object String]",dn="[object Symbol]",hn="[object Undefined]",ct="[object WeakMap]",Dn="[object WeakSet]",oi="[object ArrayBuffer]",an="[object DataView]",Bi="[object Float32Array]",$i="[object Float64Array]",Vi="[object Int8Array]",kr="[object Int16Array]",jn="[object Int32Array]",Or="[object Uint8Array]",vr="[object Uint8ClampedArray]",zr="[object Uint16Array]",Yr="[object Uint32Array]",Po=/\b__p \+= '';/g,Wn=/\b(__p \+=) '' \+/g,Gr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Jn=/&(?:amp|lt|gt|quot|#39);/g,Wt=/[&<>"']/g,ai=RegExp(Jn.source),Hi=RegExp(Wt.source),_n=/<%-([\s\S]+?)%>/g,pn=/<%([\s\S]+?)%>/g,si=/<%=([\s\S]+?)%>/g,li=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,En=/^\w*$/,oo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mr=/[\\^$.*+?()[\]{}|]/g,ui=RegExp(mr.source),ln=/^\s+/,ki=/\s/,Pa=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ra=/\{\n\/\* \[wrapped with (.+)\] \*/,qr=/,? & /,ao=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,so=/[()=,{}\[\]\/\s]/,Oi=/\\(\\)?/g,Qn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Dr=/\w*$/,_r=/^[-+]0x[0-9a-f]+$/i,ci=/^0b[01]+$/i,Xr=/^\[object .+?Constructor\]$/,yr=/^0o[0-7]+$/i,Pr=/^(?:0|[1-9]\d*)$/,er=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ui=/($^)/,Di=/['\n\r\u2028\u2029\\]/g,sr="\\ud800-\\udfff",wn="\\u0300-\\u036f",Rr="\\ufe20-\\ufe2f",Ir="\\u20d0-\\u20ff",fi=wn+Rr+Ir,di="\\u2700-\\u27bf",br="a-z\\xdf-\\xf6\\xf8-\\xff",Kr="\\xac\\xb1\\xd7\\xf7",zn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",hi="\\u2000-\\u206f",pi=" \\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",_i="A-Z\\xc0-\\xd6\\xd8-\\xde",rn="\\ufe0e\\ufe0f",Bn=Kr+zn+hi+pi,kn="['’]",lo="["+sr+"]",Pn="["+Bn+"]",Rn="["+fi+"]",k="\\d+",N="["+di+"]",G="["+br+"]",te="[^"+sr+Bn+k+di+br+_i+"]",Ce="\\ud83c[\\udffb-\\udfff]",ge="(?:"+Rn+"|"+Ce+")",Pe="[^"+sr+"]",Je="(?:\\ud83c[\\udde6-\\uddff]){2}",vt="[\\ud800-\\udbff][\\udc00-\\udfff]",mt="["+_i+"]",pt="\\u200d",Nt="(?:"+G+"|"+te+")",$n="(?:"+mt+"|"+te+")",Yn="(?:"+kn+"(?:d|ll|m|re|s|t|ve))?",On="(?:"+kn+"(?:D|LL|M|RE|S|T|VE))?",Zr=ge+"?",lr="["+rn+"]?",Wi="(?:"+pt+"(?:"+[Pe,Je,vt].join("|")+")"+lr+Zr+")*",gi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",zi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ar=lr+Zr+Wi,Yi="(?:"+[N,Je,vt].join("|")+")"+Ar,Hs="(?:"+[Pe+Rn+"?",Rn,Je,vt,lo].join("|")+")",Ia=RegExp(kn,"g"),Qo=RegExp(Rn,"g"),wr=RegExp(Ce+"(?="+Ce+")|"+Hs+Ar,"g"),Us=RegExp([mt+"?"+G+"+"+Yn+"(?="+[Pn,mt,"$"].join("|")+")",$n+"+"+On+"(?="+[Pn,mt+Nt,"$"].join("|")+")",mt+"?"+Nt+"+"+Yn,mt+"+"+On,zi,gi,k,Yi].join("|"),"g"),vi=RegExp("["+pt+sr+fi+rn+"]"),Aa=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ea=["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"],on=-1,qt={};qt[Bi]=qt[$i]=qt[Vi]=qt[kr]=qt[jn]=qt[Or]=qt[vr]=qt[zr]=qt[Yr]=!0,qt[_e]=qt[ze]=qt[oi]=qt[dt]=qt[an]=qt[ht]=qt[bt]=qt[et]=qt[Lt]=qt[Hn]=qt[Un]=qt[Er]=qt[Zn]=qt[sn]=qt[ct]=!1;var Zt={};Zt[_e]=Zt[ze]=Zt[oi]=Zt[an]=Zt[dt]=Zt[ht]=Zt[Bi]=Zt[$i]=Zt[Vi]=Zt[kr]=Zt[jn]=Zt[Lt]=Zt[Hn]=Zt[Un]=Zt[Er]=Zt[Zn]=Zt[sn]=Zt[dn]=Zt[Or]=Zt[vr]=Zt[zr]=Zt[Yr]=!0,Zt[bt]=Zt[et]=Zt[ct]=!1;var Pi={À:"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"},Jr={"&":"&","<":"<",">":">",'"':""","'":"'"},Ro={"&":"&","<":"<",">":">",""":'"',"'":"'"},mi={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ur=parseFloat,Ma=parseInt,uo=typeof Ci=="object"&&Ci&&Ci.Object===Object&&Ci,as=typeof self=="object"&&self&&self.Object===Object&&self,un=uo||as||Function("return this")(),Io=t&&!t.nodeType&&t,yi=Io&&!0&&e&&!e.nodeType&&e,ss=yi&&yi.exports===Io,co=ss&&uo.process,cr=function(){try{var Z=yi&&yi.require&&yi.require("util").types;return Z||co&&co.binding&&co.binding("util")}catch{}}(),h=cr&&cr.isArrayBuffer,b=cr&&cr.isDate,E=cr&&cr.isMap,D=cr&&cr.isRegExp,F=cr&&cr.isSet,j=cr&&cr.isTypedArray;function H(Z,le,se){switch(se.length){case 0:return Z.call(le);case 1:return Z.call(le,se[0]);case 2:return Z.call(le,se[0],se[1]);case 3:return Z.call(le,se[0],se[1],se[2])}return Z.apply(le,se)}function oe(Z,le,se,Ae){for(var Ve=-1,st=Z==null?0:Z.length;++Ve<st;){var ut=Z[Ve];le(Ae,ut,se(ut),Z)}return Ae}function ne(Z,le){for(var se=-1,Ae=Z==null?0:Z.length;++se<Ae&&le(Z[se],se,Z)!==!1;);return Z}function pe(Z,le){for(var se=Z==null?0:Z.length;se--&&le(Z[se],se,Z)!==!1;);return Z}function De(Z,le){for(var se=-1,Ae=Z==null?0:Z.length;++se<Ae;)if(!le(Z[se],se,Z))return!1;return!0}function Ie(Z,le){for(var se=-1,Ae=Z==null?0:Z.length,Ve=0,st=[];++se<Ae;){var ut=Z[se];le(ut,se,Z)&&(st[Ve++]=ut)}return st}function xe(Z,le){var se=Z==null?0:Z.length;return!!se&&en(Z,le,0)>-1}function Ye(Z,le,se){for(var Ae=-1,Ve=Z==null?0:Z.length;++Ae<Ve;)if(se(le,Z[Ae]))return!0;return!1}function at(Z,le){for(var se=-1,Ae=Z==null?0:Z.length,Ve=Array(Ae);++se<Ae;)Ve[se]=le(Z[se],se,Z);return Ve}function Ct(Z,le){for(var se=-1,Ae=le.length,Ve=Z.length;++se<Ae;)Z[Ve+se]=le[se];return Z}function kt(Z,le,se,Ae){var Ve=-1,st=Z==null?0:Z.length;for(Ae&&st&&(se=Z[++Ve]);++Ve<st;)se=le(se,Z[Ve],Ve,Z);return se}function In(Z,le,se,Ae){var Ve=Z==null?0:Z.length;for(Ae&&Ve&&(se=Z[--Ve]);Ve--;)se=le(se,Z[Ve],Ve,Z);return se}function cn(Z,le){for(var se=-1,Ae=Z==null?0:Z.length;++se<Ae;)if(le(Z[se],se,Z))return!0;return!1}var Mr=O("length");function Lr(Z){return Z.split("")}function Ft(Z){return Z.match(ao)||[]}function Fr(Z,le,se){var Ae;return se(Z,function(Ve,st,ut){if(le(Ve,st,ut))return Ae=st,!1}),Ae}function jt(Z,le,se,Ae){for(var Ve=Z.length,st=se+(Ae?1:-1);Ae?st--:++st<Ve;)if(le(Z[st],st,Z))return st;return-1}function en(Z,le,se){return le===le?Du(Z,le,se):jt(Z,ho,se)}function fo(Z,le,se,Ae){for(var Ve=se-1,st=Z.length;++Ve<st;)if(Ae(Z[Ve],le))return Ve;return-1}function ho(Z){return Z!==Z}function xr(Z,le){var se=Z==null?0:Z.length;return se?me(Z,le)/se:we}function O(Z){return function(le){return le==null?n:le[Z]}}function L(Z){return function(le){return Z==null?n:Z[le]}}function W(Z,le,se,Ae,Ve){return Ve(Z,function(st,ut,ot){se=Ae?(Ae=!1,st):le(se,st,ut,ot)}),se}function ee(Z,le){var se=Z.length;for(Z.sort(le);se--;)Z[se]=Z[se].value;return Z}function me(Z,le){for(var se,Ae=-1,Ve=Z.length;++Ae<Ve;){var st=le(Z[Ae]);st!==n&&(se=se===n?st:se+st)}return se}function ye(Z,le){for(var se=-1,Ae=Array(Z);++se<Z;)Ae[se]=le(se);return Ae}function Fe(Z,le){return at(le,function(se){return[se,Z[se]]})}function Ke(Z){return Z&&Z.slice(0,Rl(Z)+1).replace(ln,"")}function gt(Z){return function(le){return Z(le)}}function Pt(Z,le){return at(le,function(se){return Z[se]})}function Tt(Z,le){return Z.has(le)}function yt(Z,le){for(var se=-1,Ae=Z.length;++se<Ae&&en(le,Z[se],0)>-1;);return se}function Mn(Z,le){for(var se=Z.length;se--&&en(le,Z[se],0)>-1;);return se}function xn(Z,le){for(var se=Z.length,Ae=0;se--;)Z[se]===le&&++Ae;return Ae}var Vn=L(Pi),ta=L(Jr);function ls(Z){return"\\"+mi[Z]}function po(Z,le){return Z==null?n:Z[le]}function Qr(Z){return vi.test(Z)}function Ws(Z){return Aa.test(Z)}function Ri(Z){for(var le,se=[];!(le=Z.next()).done;)se.push(le.value);return se}function us(Z){var le=-1,se=Array(Z.size);return Z.forEach(function(Ae,Ve){se[++le]=[Ve,Ae]}),se}function na(Z,le){return function(se){return Z(le(se))}}function ei(Z,le){for(var se=-1,Ae=Z.length,Ve=0,st=[];++se<Ae;){var ut=Z[se];(ut===le||ut===y)&&(Z[se]=y,st[Ve++]=se)}return st}function go(Z){var le=-1,se=Array(Z.size);return Z.forEach(function(Ae){se[++le]=Ae}),se}function zs(Z){var le=-1,se=Array(Z.size);return Z.forEach(function(Ae){se[++le]=[Ae,Ae]}),se}function Du(Z,le,se){for(var Ae=se-1,Ve=Z.length;++Ae<Ve;)if(Z[Ae]===le)return Ae;return-1}function cs(Z,le,se){for(var Ae=se+1;Ae--;)if(Z[Ae]===le)return Ae;return Ae}function vo(Z){return Qr(Z)?La(Z):Mr(Z)}function fn(Z){return Qr(Z)?J(Z):Lr(Z)}function Rl(Z){for(var le=Z.length;le--&&ki.test(Z.charAt(le)););return le}var fs=L(Ro);function La(Z){for(var le=wr.lastIndex=0;wr.test(Z);)++le;return le}function J(Z){return Z.match(wr)||[]}function fe(Z){return Z.match(Us)||[]}var Se=function Z(le){le=le==null?un:Oe.defaults(un.Object(),le,Oe.pick(un,ea));var se=le.Array,Ae=le.Date,Ve=le.Error,st=le.Function,ut=le.Math,ot=le.Object,Mt=le.RegExp,xt=le.String,Vt=le.TypeError,Gn=se.prototype,tr=st.prototype,Ln=ot.prototype,zt=le["__core-js_shared__"],Nr=tr.toString,Ot=Ln.hasOwnProperty,_u=0,gn=function(){var a=/[^.]+$/.exec(zt&&zt.keys&&zt.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),Ao=Ln.toString,Pu=Nr.call(ot),Ru=un._,Iu=Mt("^"+Nr.call(Ot).replace(mr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ds=ss?le.Buffer:n,Mo=le.Symbol,Ys=le.Uint8Array,Gs=ds?ds.allocUnsafe:n,Fa=na(ot.getPrototypeOf,ot),hs=ot.create,Il=Ln.propertyIsEnumerable,Lo=Gn.splice,Al=Mo?Mo.isConcatSpreadable:n,Gi=Mo?Mo.iterator:n,Fo=Mo?Mo.toStringTag:n,ra=function(){try{var a=rc(ot,"defineProperty");return a({},"",{}),a}catch{}}(),Af=le.clearTimeout!==un.clearTimeout&&le.clearTimeout,qs=Ae&&Ae.now!==un.Date.now&&Ae.now,Pc=le.setTimeout!==un.setTimeout&&le.setTimeout,ps=ut.ceil,Na=ut.floor,gs=ot.getOwnPropertySymbols,Ml=ds?ds.isBuffer:n,vs=le.isFinite,Xs=Gn.join,Rc=na(ot.keys,ot),Sn=ut.max,qn=ut.min,ia=Ae.now,Au=le.parseInt,oa=ut.random,Ll=Gn.reverse,mo=rc(le,"DataView"),aa=rc(le,"Map"),ms=rc(le,"Promise"),yo=rc(le,"Set"),No=rc(le,"WeakMap"),ys=rc(ot,"create"),Ks=No&&new No,ja={},sa=ic(mo),Mu=ic(aa),Mf=ic(ms),Ic=ic(yo),bs=ic(No),la=Mo?Mo.prototype:n,Ba=la?la.valueOf:n,Zs=la?la.toString:n;function z(a){if(ir(a)&&!Ht(a)&&!(a instanceof $t)){if(a instanceof Sr)return a;if(Ot.call(a,"__wrapped__"))return mb(a)}return new Sr(a)}var jo=function(){function a(){}return function(u){if(!Xn(u))return{};if(hs)return hs(u);a.prototype=u;var w=new a;return a.prototype=n,w}}();function Bo(){}function Sr(a,u){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=n}z.templateSettings={escape:_n,evaluate:pn,interpolate:si,variable:"",imports:{_:z}},z.prototype=Bo.prototype,z.prototype.constructor=z,Sr.prototype=jo(Bo.prototype),Sr.prototype.constructor=Sr;function $t(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ee,this.__views__=[]}function Fl(){var a=new $t(this.__wrapped__);return a.__actions__=Ur(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=Ur(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=Ur(this.__views__),a}function Js(){if(this.__filtered__){var a=new $t(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function Nl(){var a=this.__wrapped__.value(),u=this.__dir__,w=Ht(a),_=u<0,$=w?a.length:0,X=gD(0,$,this.__views__),ie=X.start,de=X.end,ve=de-ie,qe=_?de:ie-1,Xe=this.__iteratees__,Qe=Xe.length,lt=0,wt=qn(ve,this.__takeCount__);if(!w||!_&&$==ve&&wt==ve)return qc(a,this.__actions__);var Dt=[];e:for(;ve--&<<wt;){qe+=u;for(var Kt=-1,_t=a[qe];++Kt<Qe;){var Qt=Xe[Kt],nn=Qt.iteratee,Wo=Qt.type,eo=nn(_t);if(Wo==ce)_t=eo;else if(!eo){if(Wo==Ue)continue e;break e}}Dt[lt++]=_t}return Dt}$t.prototype=jo(Bo.prototype),$t.prototype.constructor=$t;function bo(a){var u=-1,w=a==null?0:a.length;for(this.clear();++u<w;){var _=a[u];this.set(_[0],_[1])}}function Lu(){this.__data__=ys?ys(null):{},this.size=0}function Ac(a){var u=this.has(a)&&delete this.__data__[a];return this.size-=u?1:0,u}function Mc(a){var u=this.__data__;if(ys){var w=u[a];return w===f?n:w}return Ot.call(u,a)?u[a]:n}function Lc(a){var u=this.__data__;return ys?u[a]!==n:Ot.call(u,a)}function Lf(a,u){var w=this.__data__;return this.size+=this.has(a)?0:1,w[a]=ys&&u===n?f:u,this}bo.prototype.clear=Lu,bo.prototype.delete=Ac,bo.prototype.get=Mc,bo.prototype.has=Lc,bo.prototype.set=Lf;function wo(a){var u=-1,w=a==null?0:a.length;for(this.clear();++u<w;){var _=a[u];this.set(_[0],_[1])}}function Ff(){this.__data__=[],this.size=0}function Nf(a){var u=this.__data__,w=qi(u,a);if(w<0)return!1;var _=u.length-1;return w==_?u.pop():Lo.call(u,w,1),--this.size,!0}function Fu(a){var u=this.__data__,w=qi(u,a);return w<0?n:u[w][1]}function Qs(a){return qi(this.__data__,a)>-1}function jf(a,u){var w=this.__data__,_=qi(w,a);return _<0?(++this.size,w.push([a,u])):w[_][1]=u,this}wo.prototype.clear=Ff,wo.prototype.delete=Nf,wo.prototype.get=Fu,wo.prototype.has=Qs,wo.prototype.set=jf;function $o(a){var u=-1,w=a==null?0:a.length;for(this.clear();++u<w;){var _=a[u];this.set(_[0],_[1])}}function Nu(){this.size=0,this.__data__={hash:new bo,map:new(aa||wo),string:new bo}}function jl(a){var u=Jd(this,a).delete(a);return this.size-=u?1:0,u}function Bf(a){return Jd(this,a).get(a)}function $f(a){return Jd(this,a).has(a)}function Vf(a,u){var w=Jd(this,a),_=w.size;return w.set(a,u),this.size+=w.size==_?0:1,this}$o.prototype.clear=Nu,$o.prototype.delete=jl,$o.prototype.get=Bf,$o.prototype.has=$f,$o.prototype.set=Vf;function jr(a){var u=-1,w=a==null?0:a.length;for(this.__data__=new $o;++u<w;)this.add(a[u])}function ju(a){return this.__data__.set(a,f),this}function Bl(a){return this.__data__.has(a)}jr.prototype.add=jr.prototype.push=ju,jr.prototype.has=Bl;function Xt(a){var u=this.__data__=new wo(a);this.size=u.size}function bi(){this.__data__=new wo,this.size=0}function ws(a){var u=this.__data__,w=u.delete(a);return this.size=u.size,w}function $a(a){return this.__data__.get(a)}function Jt(a){return this.__data__.has(a)}function ua(a,u){var w=this.__data__;if(w instanceof wo){var _=w.__data__;if(!aa||_.length<i-1)return _.push([a,u]),this.size=++w.size,this;w=this.__data__=new $o(_)}return w.set(a,u),this.size=w.size,this}Xt.prototype.clear=bi,Xt.prototype.delete=ws,Xt.prototype.get=$a,Xt.prototype.has=Jt,Xt.prototype.set=ua;function el(a,u){var w=Ht(a),_=!w&&oc(a),$=!w&&!_&&nu(a),X=!w&&!_&&!$&&tf(a),ie=w||_||$||X,de=ie?ye(a.length,xt):[],ve=de.length;for(var qe in a)(u||Ot.call(a,qe))&&!(ie&&(qe=="length"||$&&(qe=="offset"||qe=="parent")||X&&(qe=="buffer"||qe=="byteLength"||qe=="byteOffset")||fl(qe,ve)))&&de.push(qe);return de}function ti(a){var u=a.length;return u?a[Ga(0,u-1)]:n}function wi(a,u){return Qd(Ur(a),Ha(u,0,a.length))}function xo(a){return Qd(Ur(a))}function Bu(a,u,w){(w!==n&&!Ja(a[u],w)||w===n&&!(u in a))&&xi(a,u,w)}function Br(a,u,w){var _=a[u];(!(Ot.call(a,u)&&Ja(_,w))||w===n&&!(u in a))&&xi(a,u,w)}function qi(a,u){for(var w=a.length;w--;)if(Ja(a[w][0],u))return w;return-1}function Va(a,u,w,_){return ca(a,function($,X,ie){u(_,$,w($),ie)}),_}function Fc(a,u){return a&&Ii(u,ri(u),a)}function $u(a,u){return a&&Ii(u,ko(u),a)}function xi(a,u,w){u=="__proto__"&&ra?ra(a,u,{configurable:!0,enumerable:!0,value:w,writable:!0}):a[u]=w}function Vu(a,u){for(var w=-1,_=u.length,$=se(_),X=a==null;++w<_;)$[w]=X?n:mg(a,u[w]);return $}function Ha(a,u,w){return a===a&&(w!==n&&(a=a<=w?a:w),u!==n&&(a=a>=u?a:u)),a}function $r(a,u,w,_,$,X){var ie,de=u&g,ve=u&T,qe=u&C;if(w&&(ie=$?w(a,_,$,X):w(a)),ie!==n)return ie;if(!Xn(a))return a;var Xe=Ht(a);if(Xe){if(ie=mD(a),!de)return Ur(a,ie)}else{var Qe=Ai(a),lt=Qe==et||Qe==At;if(nu(a))return ga(a,de);if(Qe==Un||Qe==_e||lt&&!$){if(ie=ve||lt?{}:lb(a),!de)return ve?Wf(a,$u(ie,a)):Jc(a,Fc(ie,a))}else{if(!Zt[Qe])return $?a:{};ie=yD(a,Qe,de)}}X||(X=new Xt);var wt=X.get(a);if(wt)return wt;X.set(a,ie),Nb(a)?a.forEach(function(_t){ie.add($r(_t,u,w,_t,a,X))}):Lb(a)&&a.forEach(function(_t,Qt){ie.set(Qt,$r(_t,u,w,Qt,a,X))});var Dt=qe?ve?rg:ng:ve?ko:ri,Kt=Xe?n:Dt(a);return ne(Kt||a,function(_t,Qt){Kt&&(Qt=_t,_t=a[Qt]),Br(ie,Qt,$r(_t,u,w,Qt,a,X))}),ie}function Hu(a){var u=ri(a);return function(w){return Uu(w,a,u)}}function Uu(a,u,w){var _=w.length;if(a==null)return!_;for(a=ot(a);_--;){var $=w[_],X=u[$],ie=a[$];if(ie===n&&!($ in a)||!X(ie))return!1}return!0}function Wu(a,u,w){if(typeof a!="function")throw new Vt(s);return Yf(function(){a.apply(n,w)},u)}function Ua(a,u,w,_){var $=-1,X=xe,ie=!0,de=a.length,ve=[],qe=u.length;if(!de)return ve;w&&(u=at(u,gt(w))),_?(X=Ye,ie=!1):u.length>=i&&(X=Tt,ie=!1,u=new jr(u));e:for(;++$<de;){var Xe=a[$],Qe=w==null?Xe:w(Xe);if(Xe=_||Xe!==0?Xe:0,ie&&Qe===Qe){for(var lt=qe;lt--;)if(u[lt]===Qe)continue e;ve.push(Xe)}else X(u,Qe,_)||ve.push(Xe)}return ve}var ca=m(Si),zu=m(Vl,!0);function Nc(a,u){var w=!0;return ca(a,function(_,$,X){return w=!!u(_,$,X),w}),w}function $l(a,u,w){for(var _=-1,$=a.length;++_<$;){var X=a[_],ie=u(X);if(ie!=null&&(de===n?ie===ie&&!Uo(ie):w(ie,de)))var de=ie,ve=X}return ve}function Hf(a,u,w,_){var $=a.length;for(w=Gt(w),w<0&&(w=-w>$?0:$+w),_=_===n||_>$?$:Gt(_),_<0&&(_+=$),_=w>_?0:Bb(_);w<_;)a[w++]=u;return a}function jc(a,u){var w=[];return ca(a,function(_,$,X){u(_,$,X)&&w.push(_)}),w}function fr(a,u,w,_,$){var X=-1,ie=a.length;for(w||(w=wD),$||($=[]);++X<ie;){var de=a[X];u>0&&w(de)?u>1?fr(de,u-1,w,_,$):Ct($,de):_||($[$.length]=de)}return $}var Yu=l(),Bc=l(!0);function Si(a,u){return a&&Yu(a,u,ri)}function Vl(a,u){return a&&Bc(a,u,ri)}function xs(a,u){return Ie(u,function(w){return dl(a[w])})}function fa(a,u){u=Ti(u,a);for(var w=0,_=u.length;a!=null&&w<_;)a=a[Ps(u[w++])];return w&&w==_?a:n}function tl(a,u,w){var _=u(a);return Ht(a)?_:Ct(_,w(a))}function nr(a){return a==null?a===n?hn:gr:Fo&&Fo in ot(a)?pD(a):OD(a)}function Wa(a,u){return a>u}function Hl(a,u){return a!=null&&Ot.call(a,u)}function Ss(a,u){return a!=null&&u in ot(a)}function Ul(a,u,w){return a>=qn(u,w)&&a<Sn(u,w)}function Ts(a,u,w){for(var _=w?Ye:xe,$=a[0].length,X=a.length,ie=X,de=se(X),ve=1/0,qe=[];ie--;){var Xe=a[ie];ie&&u&&(Xe=at(Xe,gt(u))),ve=qn(Xe.length,ve),de[ie]=!w&&(u||$>=120&&Xe.length>=120)?new jr(ie&&Xe):n}Xe=a[0];var Qe=-1,lt=de[0];e:for(;++Qe<$&&qe.length<ve;){var wt=Xe[Qe],Dt=u?u(wt):wt;if(wt=w||wt!==0?wt:0,!(lt?Tt(lt,Dt):_(qe,Dt,w))){for(ie=X;--ie;){var Kt=de[ie];if(!(Kt?Tt(Kt,Dt):_(a[ie],Dt,w)))continue e}lt&<.push(Dt),qe.push(wt)}}return qe}function Wl(a,u,w,_){return Si(a,function($,X,ie){u(_,w($),X,ie)}),_}function So(a,u,w){u=Ti(u,a),a=db(a,u);var _=a==null?a:a[Ps(ma(u))];return _==null?n:H(_,a,w)}function zl(a){return ir(a)&&nr(a)==_e}function za(a){return ir(a)&&nr(a)==oi}function $c(a){return ir(a)&&nr(a)==ht}function nl(a,u,w,_,$){return a===u?!0:a==null||u==null||!ir(a)&&!ir(u)?a!==a&&u!==u:Cs(a,u,w,_,nl,$)}function Cs(a,u,w,_,$,X){var ie=Ht(a),de=Ht(u),ve=ie?ze:Ai(a),qe=de?ze:Ai(u);ve=ve==_e?Un:ve,qe=qe==_e?Un:qe;var Xe=ve==Un,Qe=qe==Un,lt=ve==qe;if(lt&&nu(a)){if(!nu(u))return!1;ie=!0,Xe=!1}if(lt&&!Xe)return X||(X=new Xt),ie||tf(a)?ob(a,u,w,_,$,X):dD(a,u,ve,w,_,$,X);if(!(w&P)){var wt=Xe&&Ot.call(a,"__wrapped__"),Dt=Qe&&Ot.call(u,"__wrapped__");if(wt||Dt){var Kt=wt?a.value():a,_t=Dt?u.value():u;return X||(X=new Xt),$(Kt,_t,w,_,X)}}return lt?(X||(X=new Xt),hD(a,u,w,_,$,X)):!1}function Es(a){return ir(a)&&Ai(a)==Lt}function Gu(a,u,w,_){var $=w.length,X=$,ie=!_;if(a==null)return!X;for(a=ot(a);$--;){var de=w[$];if(ie&&de[2]?de[1]!==a[de[0]]:!(de[0]in a))return!1}for(;++$<X;){de=w[$];var ve=de[0],qe=a[ve],Xe=de[1];if(ie&&de[2]){if(qe===n&&!(ve in a))return!1}else{var Qe=new Xt;if(_)var lt=_(qe,Xe,ve,a,u,Qe);if(!(lt===n?nl(Xe,qe,P|I,_,Qe):lt))return!1}}return!0}function Vc(a){if(!Xn(a)||SD(a))return!1;var u=dl(a)?Iu:Xr;return u.test(ic(a))}function Ya(a){return ir(a)&&nr(a)==Er}function Yl(a){return ir(a)&&Ai(a)==Zn}function Vo(a){return ir(a)&&oh(a.length)&&!!qt[nr(a)]}function Gl(a){return typeof a=="function"?a:a==null?Oo:typeof a=="object"?Ht(a)?il(a[0],a[1]):To(a):Kb(a)}function Ho(a){if(!zf(a))return Rc(a);var u=[];for(var w in ot(a))Ot.call(a,w)&&w!="constructor"&&u.push(w);return u}function rl(a){if(!Xn(a))return kD(a);var u=zf(a),w=[];for(var _ in a)_=="constructor"&&(u||!Ot.call(a,_))||w.push(_);return w}function Xi(a,u){return a<u}function Ki(a,u){var w=-1,_=Eo(a)?se(a.length):[];return ca(a,function($,X,ie){_[++w]=u($,X,ie)}),_}function To(a){var u=og(a);return u.length==1&&u[0][2]?cb(u[0][0],u[0][1]):function(w){return w===a||Gu(w,a,u)}}function il(a,u){return sg(a)&&ub(u)?cb(Ps(a),u):function(w){var _=mg(w,a);return _===n&&_===u?yg(w,a):nl(u,_,P|I)}}function da(a,u,w,_,$){a!==u&&Yu(u,function(X,ie){if($||($=new Xt),Xn(X))Zi(a,u,ie,w,da,_,$);else{var de=_?_(ug(a,ie),X,ie+"",a,u,$):n;de===n&&(de=X),Bu(a,ie,de)}},ko)}function Zi(a,u,w,_,$,X,ie){var de=ug(a,w),ve=ug(u,w),qe=ie.get(ve);if(qe){Bu(a,w,qe);return}var Xe=X?X(de,ve,w+"",a,u,ie):n,Qe=Xe===n;if(Qe){var lt=Ht(ve),wt=!lt&&nu(ve),Dt=!lt&&!wt&&tf(ve);Xe=ve,lt||wt||Dt?Ht(de)?Xe=de:hr(de)?Xe=Ur(de):wt?(Qe=!1,Xe=ga(ve,!0)):Dt?(Qe=!1,Xe=ll(ve,!0)):Xe=[]:Gf(ve)||oc(ve)?(Xe=de,oc(de)?Xe=$b(de):(!Xn(de)||dl(de))&&(Xe=lb(ve))):Qe=!1}Qe&&(ie.set(ve,Xe),$(Xe,ve,_,X,ie),ie.delete(ve)),Bu(a,w,Xe)}function ks(a,u){var w=a.length;if(w)return u+=u<0?w:0,fl(u,w)?a[u]:n}function ql(a,u,w){u.length?u=at(u,function(X){return Ht(X)?function(ie){return fa(ie,X.length===1?X[0]:X)}:X}):u=[Oo];var _=-1;u=at(u,gt(Et()));var $=Ki(a,function(X,ie,de){var ve=at(u,function(qe){return qe(X)});return{criteria:ve,index:++_,value:X}});return ee($,function(X,ie){return tu(X,ie,w)})}function ol(a,u){return Os(a,u,function(w,_){return yg(a,_)})}function Os(a,u,w){for(var _=-1,$=u.length,X={};++_<$;){var ie=u[_],de=fa(a,ie);w(de,ie)&&qa(X,Ti(ie,a),de)}return X}function Hc(a){return function(u){return fa(u,a)}}function qu(a,u,w,_){var $=_?fo:en,X=-1,ie=u.length,de=a;for(a===u&&(u=Ur(u)),w&&(de=at(a,gt(w)));++X<ie;)for(var ve=0,qe=u[X],Xe=w?w(qe):qe;(ve=$(de,Xe,ve,_))>-1;)de!==a&&Lo.call(de,ve,1),Lo.call(a,ve,1);return a}function Xu(a,u){for(var w=a?u.length:0,_=w-1;w--;){var $=u[w];if(w==_||$!==X){var X=$;fl($)?Lo.call(a,$,1):Hr(a,$)}}return a}function Ga(a,u){return a+Na(oa()*(u-a+1))}function Ku(a,u,w,_){for(var $=-1,X=Sn(ps((u-a)/(w||1)),0),ie=se(X);X--;)ie[_?X:++$]=a,a+=w;return ie}function Xl(a,u){var w="";if(!a||u<1||u>We)return w;do u%2&&(w+=a),u=Na(u/2),u&&(a+=a);while(u);return w}function Bt(a,u){return cg(fb(a,u,Oo),a+"")}function al(a){return ti(nf(a))}function Zu(a,u){var w=nf(a);return Qd(w,Ha(u,0,w.length))}function qa(a,u,w,_){if(!Xn(a))return a;u=Ti(u,a);for(var $=-1,X=u.length,ie=X-1,de=a;de!=null&&++$<X;){var ve=Ps(u[$]),qe=w;if(ve==="__proto__"||ve==="constructor"||ve==="prototype")return a;if($!=ie){var Xe=de[ve];qe=_?_(Xe,ve,de):n,qe===n&&(qe=Xn(Xe)?Xe:fl(u[$+1])?[]:{})}Br(de,ve,qe),de=de[ve]}return a}var Kl=Ks?function(a,u){return Ks.set(a,u),a}:Oo,Uc=ra?function(a,u){return ra(a,"toString",{configurable:!0,enumerable:!1,value:wg(u),writable:!0})}:Oo;function Wc(a){return Qd(nf(a))}function ni(a,u,w){var _=-1,$=a.length;u<0&&(u=-u>$?0:$+u),w=w>$?$:w,w<0&&(w+=$),$=u>w?0:w-u>>>0,u>>>=0;for(var X=se($);++_<$;)X[_]=a[_+u];return X}function zc(a,u){var w;return ca(a,function(_,$,X){return w=u(_,$,X),!w}),!!w}function Zl(a,u,w){var _=0,$=a==null?_:a.length;if(typeof u=="number"&&u===u&&$<=Be){for(;_<$;){var X=_+$>>>1,ie=a[X];ie!==null&&!Uo(ie)&&(w?ie<=u:ie<u)?_=X+1:$=X}return $}return Ju(a,u,Oo,w)}function Ju(a,u,w,_){var $=0,X=a==null?0:a.length;if(X===0)return 0;u=w(u);for(var ie=u!==u,de=u===null,ve=Uo(u),qe=u===n;$<X;){var Xe=Na(($+X)/2),Qe=w(a[Xe]),lt=Qe!==n,wt=Qe===null,Dt=Qe===Qe,Kt=Uo(Qe);if(ie)var _t=_||Dt;else qe?_t=Dt&&(_||lt):de?_t=Dt&<&&(_||!wt):ve?_t=Dt&<&&!wt&&(_||!Kt):wt||Kt?_t=!1:_t=_?Qe<=u:Qe<u;_t?$=Xe+1:X=Xe}return qn(X,Le)}function Qu(a,u){for(var w=-1,_=a.length,$=0,X=[];++w<_;){var ie=a[w],de=u?u(ie):ie;if(!w||!Ja(de,ve)){var ve=de;X[$++]=ie===0?0:ie}}return X}function Yc(a){return typeof a=="number"?a:Uo(a)?we:+a}function Vr(a){if(typeof a=="string")return a;if(Ht(a))return at(a,Vr)+"";if(Uo(a))return Zs?Zs.call(a):"";var u=a+"";return u=="0"&&1/a==-1/0?"-0":u}function ha(a,u,w){var _=-1,$=xe,X=a.length,ie=!0,de=[],ve=de;if(w)ie=!1,$=Ye;else if(X>=i){var qe=u?null:_s(a);if(qe)return go(qe);ie=!1,$=Tt,ve=new jr}else ve=u?[]:de;e:for(;++_<X;){var Xe=a[_],Qe=u?u(Xe):Xe;if(Xe=w||Xe!==0?Xe:0,ie&&Qe===Qe){for(var lt=ve.length;lt--;)if(ve[lt]===Qe)continue e;u&&ve.push(Qe),de.push(Xe)}else $(ve,Qe,w)||(ve!==de&&ve.push(Qe),de.push(Xe))}return de}function Hr(a,u){return u=Ti(u,a),a=db(a,u),a==null||delete a[Ps(ma(u))]}function Gc(a,u,w,_){return qa(a,u,w(fa(a,u)),_)}function Xa(a,u,w,_){for(var $=a.length,X=_?$:-1;(_?X--:++X<$)&&u(a[X],X,a););return w?ni(a,_?0:X,_?X+1:$):ni(a,_?X+1:0,_?$:X)}function qc(a,u){var w=a;return w instanceof $t&&(w=w.value()),kt(u,function(_,$){return $.func.apply($.thisArg,Ct([_],$.args))},w)}function dr(a,u,w){var _=a.length;if(_<2)return _?ha(a[0]):[];for(var $=-1,X=se(_);++$<_;)for(var ie=a[$],de=-1;++de<_;)de!=$&&(X[$]=Ua(X[$]||ie,a[de],u,w));return ha(fr(X,1),u,w)}function Xc(a,u,w){for(var _=-1,$=a.length,X=u.length,ie={};++_<$;){var de=_<X?u[_]:n;w(ie,a[_],de)}return ie}function Jl(a){return hr(a)?a:[]}function Ql(a){return typeof a=="function"?a:Oo}function Ti(a,u){return Ht(a)?a:sg(a,u)?[a]:vb(vn(a))}var Kc=Bt;function pa(a,u,w){var _=a.length;return w=w===n?_:w,!u&&w>=_?a:ni(a,u,w)}var eu=Af||function(a){return un.clearTimeout(a)};function ga(a,u){if(u)return a.slice();var w=a.length,_=Gs?Gs(w):new a.constructor(w);return a.copy(_),_}function Ka(a){var u=new a.constructor(a.byteLength);return new Ys(u).set(new Ys(a)),u}function Uf(a,u){var w=u?Ka(a.buffer):a.buffer;return new a.constructor(w,a.byteOffset,a.byteLength)}function ec(a){var u=new a.constructor(a.source,Dr.exec(a));return u.lastIndex=a.lastIndex,u}function sl(a){return Ba?ot(Ba.call(a)):{}}function ll(a,u){var w=u?Ka(a.buffer):a.buffer;return new a.constructor(w,a.byteOffset,a.length)}function tc(a,u){if(a!==u){var w=a!==n,_=a===null,$=a===a,X=Uo(a),ie=u!==n,de=u===null,ve=u===u,qe=Uo(u);if(!de&&!qe&&!X&&a>u||X&&ie&&ve&&!de&&!qe||_&&ie&&ve||!w&&ve||!$)return 1;if(!_&&!X&&!qe&&a<u||qe&&w&&$&&!_&&!X||de&&w&&$||!ie&&$||!ve)return-1}return 0}function tu(a,u,w){for(var _=-1,$=a.criteria,X=u.criteria,ie=$.length,de=w.length;++_<ie;){var ve=tc($[_],X[_]);if(ve){if(_>=de)return ve;var qe=w[_];return ve*(qe=="desc"?-1:1)}}return a.index-u.index}function nc(a,u,w,_){for(var $=-1,X=a.length,ie=w.length,de=-1,ve=u.length,qe=Sn(X-ie,0),Xe=se(ve+qe),Qe=!_;++de<ve;)Xe[de]=u[de];for(;++$<ie;)(Qe||$<X)&&(Xe[w[$]]=a[$]);for(;qe--;)Xe[de++]=a[$++];return Xe}function Zc(a,u,w,_){for(var $=-1,X=a.length,ie=-1,de=w.length,ve=-1,qe=u.length,Xe=Sn(X-de,0),Qe=se(Xe+qe),lt=!_;++$<Xe;)Qe[$]=a[$];for(var wt=$;++ve<qe;)Qe[wt+ve]=u[ve];for(;++ie<de;)(lt||$<X)&&(Qe[wt+w[ie]]=a[$++]);return Qe}function Ur(a,u){var w=-1,_=a.length;for(u||(u=se(_));++w<_;)u[w]=a[w];return u}function Ii(a,u,w,_){var $=!w;w||(w={});for(var X=-1,ie=u.length;++X<ie;){var de=u[X],ve=_?_(w[de],a[de],de,w,a):n;ve===n&&(ve=a[de]),$?xi(w,de,ve):Br(w,de,ve)}return w}function Jc(a,u){return Ii(a,ag(a),u)}function Wf(a,u){return Ii(a,ab(a),u)}function ul(a,u){return function(w,_){var $=Ht(w)?oe:Va,X=u?u():{};return $(w,a,Et(_,2),X)}}function Ds(a){return Bt(function(u,w){var _=-1,$=w.length,X=$>1?w[$-1]:n,ie=$>2?w[2]:n;for(X=a.length>3&&typeof X=="function"?($--,X):n,ie&&Qi(w[0],w[1],ie)&&(X=$<3?n:X,$=1),u=ot(u);++_<$;){var de=w[_];de&&a(u,de,_,X)}return u})}function m(a,u){return function(w,_){if(w==null)return w;if(!Eo(w))return a(w,_);for(var $=w.length,X=u?$:-1,ie=ot(w);(u?X--:++X<$)&&_(ie[X],X,ie)!==!1;);return w}}function l(a){return function(u,w,_){for(var $=-1,X=ot(u),ie=_(u),de=ie.length;de--;){var ve=ie[a?de:++$];if(w(X[ve],ve,X)===!1)break}return u}}function d(a,u,w){var _=u&M,$=A(a);function X(){var ie=this&&this!==un&&this instanceof X?$:a;return ie.apply(_?w:this,arguments)}return X}function v(a){return function(u){u=vn(u);var w=Qr(u)?fn(u):n,_=w?w[0]:u.charAt(0),$=w?pa(w,1).join(""):u.slice(1);return _[a]()+$}}function x(a){return function(u){return kt(qb(Gb(u).replace(Ia,"")),a,"")}}function A(a){return function(){var u=arguments;switch(u.length){case 0:return new a;case 1:return new a(u[0]);case 2:return new a(u[0],u[1]);case 3:return new a(u[0],u[1],u[2]);case 4:return new a(u[0],u[1],u[2],u[3]);case 5:return new a(u[0],u[1],u[2],u[3],u[4]);case 6:return new a(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new a(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var w=jo(a.prototype),_=a.apply(w,u);return Xn(_)?_:w}}function B(a,u,w){var _=A(a);function $(){for(var X=arguments.length,ie=se(X),de=X,ve=ef($);de--;)ie[de]=arguments[de];var qe=X<3&&ie[0]!==ve&&ie[X-1]!==ve?[]:ei(ie,ve);if(X-=qe.length,X<w)return va(a,u,be,$.placeholder,n,ie,qe,n,n,w-X);var Xe=this&&this!==un&&this instanceof $?_:a;return H(Xe,this,ie)}return $}function Y(a){return function(u,w,_){var $=ot(u);if(!Eo(u)){var X=Et(w,3);u=ri(u),w=function(de){return X($[de],de,$)}}var ie=a(u,w,_);return ie>-1?$[X?u[ie]:ie]:n}}function re(a){return cl(function(u){var w=u.length,_=w,$=Sr.prototype.thru;for(a&&u.reverse();_--;){var X=u[_];if(typeof X!="function")throw new Vt(s);if($&&!ie&&Zd(X)=="wrapper")var ie=new Sr([],!0)}for(_=ie?_:w;++_<w;){X=u[_];var de=Zd(X),ve=de=="wrapper"?ig(X):n;ve&&lg(ve[0])&&ve[1]==(S|U|K|he)&&!ve[4].length&&ve[9]==1?ie=ie[Zd(ve[0])].apply(ie,ve[3]):ie=X.length==1&&lg(X)?ie[de]():ie.thru(X)}return function(){var qe=arguments,Xe=qe[0];if(ie&&qe.length==1&&Ht(Xe))return ie.plant(Xe).value();for(var Qe=0,lt=w?u[Qe].apply(this,qe):Xe;++Qe<w;)lt=u[Qe].call(this,lt);return lt}})}function be(a,u,w,_,$,X,ie,de,ve,qe){var Xe=u&S,Qe=u&M,lt=u&R,wt=u&(U|Q),Dt=u&ae,Kt=lt?n:A(a);function _t(){for(var Qt=arguments.length,nn=se(Qt),Wo=Qt;Wo--;)nn[Wo]=arguments[Wo];if(wt)var eo=ef(_t),zo=xn(nn,eo);if(_&&(nn=nc(nn,_,$,wt)),X&&(nn=Zc(nn,X,ie,wt)),Qt-=zo,wt&&Qt<qe){var pr=ei(nn,eo);return va(a,u,be,_t.placeholder,w,nn,pr,de,ve,qe-Qt)}var Qa=Qe?w:this,pl=lt?Qa[a]:a;return Qt=nn.length,de?nn=DD(nn,de):Dt&&Qt>1&&nn.reverse(),Xe&&ve<Qt&&(nn.length=ve),this&&this!==un&&this instanceof _t&&(pl=Kt||A(pl)),pl.apply(Qa,nn)}return _t}function He(a,u){return function(w,_){return Wl(w,a,u(_),{})}}function Ze(a,u){return function(w,_){var $;if(w===n&&_===n)return u;if(w!==n&&($=w),_!==n){if($===n)return _;typeof w=="string"||typeof _=="string"?(w=Vr(w),_=Vr(_)):(w=Yc(w),_=Yc(_)),$=a(w,_)}return $}}function rt(a){return cl(function(u){return u=at(u,gt(Et())),Bt(function(w){var _=this;return a(u,function($){return H($,_,w)})})})}function St(a,u){u=u===n?" ":Vr(u);var w=u.length;if(w<2)return w?Xl(u,a):u;var _=Xl(u,ps(a/vo(u)));return Qr(u)?pa(fn(_),0,a).join(""):_.slice(0,a)}function tn(a,u,w,_){var $=u&M,X=A(a);function ie(){for(var de=-1,ve=arguments.length,qe=-1,Xe=_.length,Qe=se(Xe+ve),lt=this&&this!==un&&this instanceof ie?X:a;++qe<Xe;)Qe[qe]=_[qe];for(;ve--;)Qe[qe++]=arguments[++de];return H(lt,$?w:this,Qe)}return ie}function rr(a){return function(u,w,_){return _&&typeof _!="number"&&Qi(u,w,_)&&(w=_=n),u=hl(u),w===n?(w=u,u=0):w=hl(w),_=_===n?u<w?1:-1:hl(_),Ku(u,w,_,a)}}function Co(a){return function(u,w){return typeof u=="string"&&typeof w=="string"||(u=ya(u),w=ya(w)),a(u,w)}}function va(a,u,w,_,$,X,ie,de,ve,qe){var Xe=u&U,Qe=Xe?ie:n,lt=Xe?n:ie,wt=Xe?X:n,Dt=Xe?n:X;u|=Xe?K:ue,u&=~(Xe?ue:K),u&V||(u&=-4);var Kt=[a,u,$,wt,Qe,Dt,lt,de,ve,qe],_t=w.apply(n,Kt);return lg(a)&&hb(_t,Kt),_t.placeholder=_,pb(_t,a,u)}function Ji(a){var u=ut[a];return function(w,_){if(w=ya(w),_=_==null?0:qn(Gt(_),292),_&&vs(w)){var $=(vn(w)+"e").split("e"),X=u($[0]+"e"+(+$[1]+_));return $=(vn(X)+"e").split("e"),+($[0]+"e"+(+$[1]-_))}return u(w)}}var _s=yo&&1/go(new yo([,-0]))[1]==Ne?function(a){return new yo(a)}:Tg;function Qc(a){return function(u){var w=Ai(u);return w==Lt?us(u):w==Zn?zs(u):Fe(u,a(u))}}function Za(a,u,w,_,$,X,ie,de){var ve=u&R;if(!ve&&typeof a!="function")throw new Vt(s);var qe=_?_.length:0;if(qe||(u&=-97,_=$=n),ie=ie===n?ie:Sn(Gt(ie),0),de=de===n?de:Gt(de),qe-=$?$.length:0,u&ue){var Xe=_,Qe=$;_=$=n}var lt=ve?n:ig(a),wt=[a,u,w,_,$,Xe,Qe,X,ie,de];if(lt&&ED(wt,lt),a=wt[0],u=wt[1],w=wt[2],_=wt[3],$=wt[4],de=wt[9]=wt[9]===n?ve?0:a.length:Sn(wt[9]-qe,0),!de&&u&(U|Q)&&(u&=-25),!u||u==M)var Dt=d(a,u,w);else u==U||u==Q?Dt=B(a,u,de):(u==K||u==(M|K))&&!$.length?Dt=tn(a,u,w,_):Dt=be.apply(n,wt);var Kt=lt?Kl:hb;return pb(Kt(Dt,wt),a,u)}function rb(a,u,w,_){return a===n||Ja(a,Ln[w])&&!Ot.call(_,w)?u:a}function ib(a,u,w,_,$,X){return Xn(a)&&Xn(u)&&(X.set(u,a),da(a,u,n,ib,X),X.delete(u)),a}function fD(a){return Gf(a)?n:a}function ob(a,u,w,_,$,X){var ie=w&P,de=a.length,ve=u.length;if(de!=ve&&!(ie&&ve>de))return!1;var qe=X.get(a),Xe=X.get(u);if(qe&&Xe)return qe==u&&Xe==a;var Qe=-1,lt=!0,wt=w&I?new jr:n;for(X.set(a,u),X.set(u,a);++Qe<de;){var Dt=a[Qe],Kt=u[Qe];if(_)var _t=ie?_(Kt,Dt,Qe,u,a,X):_(Dt,Kt,Qe,a,u,X);if(_t!==n){if(_t)continue;lt=!1;break}if(wt){if(!cn(u,function(Qt,nn){if(!Tt(wt,nn)&&(Dt===Qt||$(Dt,Qt,w,_,X)))return wt.push(nn)})){lt=!1;break}}else if(!(Dt===Kt||$(Dt,Kt,w,_,X))){lt=!1;break}}return X.delete(a),X.delete(u),lt}function dD(a,u,w,_,$,X,ie){switch(w){case an:if(a.byteLength!=u.byteLength||a.byteOffset!=u.byteOffset)return!1;a=a.buffer,u=u.buffer;case oi:return!(a.byteLength!=u.byteLength||!X(new Ys(a),new Ys(u)));case dt:case ht:case Hn:return Ja(+a,+u);case bt:return a.name==u.name&&a.message==u.message;case Er:case sn:return a==u+"";case Lt:var de=us;case Zn:var ve=_&P;if(de||(de=go),a.size!=u.size&&!ve)return!1;var qe=ie.get(a);if(qe)return qe==u;_|=I,ie.set(a,u);var Xe=ob(de(a),de(u),_,$,X,ie);return ie.delete(a),Xe;case dn:if(Ba)return Ba.call(a)==Ba.call(u)}return!1}function hD(a,u,w,_,$,X){var ie=w&P,de=ng(a),ve=de.length,qe=ng(u),Xe=qe.length;if(ve!=Xe&&!ie)return!1;for(var Qe=ve;Qe--;){var lt=de[Qe];if(!(ie?lt in u:Ot.call(u,lt)))return!1}var wt=X.get(a),Dt=X.get(u);if(wt&&Dt)return wt==u&&Dt==a;var Kt=!0;X.set(a,u),X.set(u,a);for(var _t=ie;++Qe<ve;){lt=de[Qe];var Qt=a[lt],nn=u[lt];if(_)var Wo=ie?_(nn,Qt,lt,u,a,X):_(Qt,nn,lt,a,u,X);if(!(Wo===n?Qt===nn||$(Qt,nn,w,_,X):Wo)){Kt=!1;break}_t||(_t=lt=="constructor")}if(Kt&&!_t){var eo=a.constructor,zo=u.constructor;eo!=zo&&"constructor"in a&&"constructor"in u&&!(typeof eo=="function"&&eo instanceof eo&&typeof zo=="function"&&zo instanceof zo)&&(Kt=!1)}return X.delete(a),X.delete(u),Kt}function cl(a){return cg(fb(a,n,wb),a+"")}function ng(a){return tl(a,ri,ag)}function rg(a){return tl(a,ko,ab)}var ig=Ks?function(a){return Ks.get(a)}:Tg;function Zd(a){for(var u=a.name+"",w=ja[u],_=Ot.call(ja,u)?w.length:0;_--;){var $=w[_],X=$.func;if(X==null||X==a)return $.name}return u}function ef(a){var u=Ot.call(z,"placeholder")?z:a;return u.placeholder}function Et(){var a=z.iteratee||xg;return a=a===xg?Gl:a,arguments.length?a(arguments[0],arguments[1]):a}function Jd(a,u){var w=a.__data__;return xD(u)?w[typeof u=="string"?"string":"hash"]:w.map}function og(a){for(var u=ri(a),w=u.length;w--;){var _=u[w],$=a[_];u[w]=[_,$,ub($)]}return u}function rc(a,u){var w=po(a,u);return Vc(w)?w:n}function pD(a){var u=Ot.call(a,Fo),w=a[Fo];try{a[Fo]=n;var _=!0}catch{}var $=Ao.call(a);return _&&(u?a[Fo]=w:delete a[Fo]),$}var ag=gs?function(a){return a==null?[]:(a=ot(a),Ie(gs(a),function(u){return Il.call(a,u)}))}:Cg,ab=gs?function(a){for(var u=[];a;)Ct(u,ag(a)),a=Fa(a);return u}:Cg,Ai=nr;(mo&&Ai(new mo(new ArrayBuffer(1)))!=an||aa&&Ai(new aa)!=Lt||ms&&Ai(ms.resolve())!=Cn||yo&&Ai(new yo)!=Zn||No&&Ai(new No)!=ct)&&(Ai=function(a){var u=nr(a),w=u==Un?a.constructor:n,_=w?ic(w):"";if(_)switch(_){case sa:return an;case Mu:return Lt;case Mf:return Cn;case Ic:return Zn;case bs:return ct}return u});function gD(a,u,w){for(var _=-1,$=w.length;++_<$;){var X=w[_],ie=X.size;switch(X.type){case"drop":a+=ie;break;case"dropRight":u-=ie;break;case"take":u=qn(u,a+ie);break;case"takeRight":a=Sn(a,u-ie);break}}return{start:a,end:u}}function vD(a){var u=a.match(Ra);return u?u[1].split(qr):[]}function sb(a,u,w){u=Ti(u,a);for(var _=-1,$=u.length,X=!1;++_<$;){var ie=Ps(u[_]);if(!(X=a!=null&&w(a,ie)))break;a=a[ie]}return X||++_!=$?X:($=a==null?0:a.length,!!$&&oh($)&&fl(ie,$)&&(Ht(a)||oc(a)))}function mD(a){var u=a.length,w=new a.constructor(u);return u&&typeof a[0]=="string"&&Ot.call(a,"index")&&(w.index=a.index,w.input=a.input),w}function lb(a){return typeof a.constructor=="function"&&!zf(a)?jo(Fa(a)):{}}function yD(a,u,w){var _=a.constructor;switch(u){case oi:return Ka(a);case dt:case ht:return new _(+a);case an:return Uf(a,w);case Bi:case $i:case Vi:case kr:case jn:case Or:case vr:case zr:case Yr:return ll(a,w);case Lt:return new _;case Hn:case sn:return new _(a);case Er:return ec(a);case Zn:return new _;case dn:return sl(a)}}function bD(a,u){var w=u.length;if(!w)return a;var _=w-1;return u[_]=(w>1?"& ":"")+u[_],u=u.join(w>2?", ":" "),a.replace(Pa,`{
|
|
144
|
+
/* [wrapped with `+u+`] */
|
|
145
|
+
`)}function wD(a){return Ht(a)||oc(a)||!!(Al&&a&&a[Al])}function fl(a,u){var w=typeof a;return u=u??We,!!u&&(w=="number"||w!="symbol"&&Pr.test(a))&&a>-1&&a%1==0&&a<u}function Qi(a,u,w){if(!Xn(w))return!1;var _=typeof u;return(_=="number"?Eo(w)&&fl(u,w.length):_=="string"&&u in w)?Ja(w[u],a):!1}function sg(a,u){if(Ht(a))return!1;var w=typeof a;return w=="number"||w=="symbol"||w=="boolean"||a==null||Uo(a)?!0:En.test(a)||!li.test(a)||u!=null&&a in ot(u)}function xD(a){var u=typeof a;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?a!=="__proto__":a===null}function lg(a){var u=Zd(a),w=z[u];if(typeof w!="function"||!(u in $t.prototype))return!1;if(a===w)return!0;var _=ig(w);return!!_&&a===_[0]}function SD(a){return!!gn&&gn in a}var TD=zt?dl:Eg;function zf(a){var u=a&&a.constructor,w=typeof u=="function"&&u.prototype||Ln;return a===w}function ub(a){return a===a&&!Xn(a)}function cb(a,u){return function(w){return w==null?!1:w[a]===u&&(u!==n||a in ot(w))}}function CD(a){var u=rh(a,function(_){return w.size===p&&w.clear(),_}),w=u.cache;return u}function ED(a,u){var w=a[1],_=u[1],$=w|_,X=$<(M|R|S),ie=_==S&&w==U||_==S&&w==he&&a[7].length<=u[8]||_==(S|he)&&u[7].length<=u[8]&&w==U;if(!(X||ie))return a;_&M&&(a[2]=u[2],$|=w&M?0:V);var de=u[3];if(de){var ve=a[3];a[3]=ve?nc(ve,de,u[4]):de,a[4]=ve?ei(a[3],y):u[4]}return de=u[5],de&&(ve=a[5],a[5]=ve?Zc(ve,de,u[6]):de,a[6]=ve?ei(a[5],y):u[6]),de=u[7],de&&(a[7]=de),_&S&&(a[8]=a[8]==null?u[8]:qn(a[8],u[8])),a[9]==null&&(a[9]=u[9]),a[0]=u[0],a[1]=$,a}function kD(a){var u=[];if(a!=null)for(var w in ot(a))u.push(w);return u}function OD(a){return Ao.call(a)}function fb(a,u,w){return u=Sn(u===n?a.length-1:u,0),function(){for(var _=arguments,$=-1,X=Sn(_.length-u,0),ie=se(X);++$<X;)ie[$]=_[u+$];$=-1;for(var de=se(u+1);++$<u;)de[$]=_[$];return de[u]=w(ie),H(a,this,de)}}function db(a,u){return u.length<2?a:fa(a,ni(u,0,-1))}function DD(a,u){for(var w=a.length,_=qn(u.length,w),$=Ur(a);_--;){var X=u[_];a[_]=fl(X,w)?$[X]:n}return a}function ug(a,u){if(!(u==="constructor"&&typeof a[u]=="function")&&u!="__proto__")return a[u]}var hb=gb(Kl),Yf=Pc||function(a,u){return un.setTimeout(a,u)},cg=gb(Uc);function pb(a,u,w){var _=u+"";return cg(a,bD(_,_D(vD(_),w)))}function gb(a){var u=0,w=0;return function(){var _=ia(),$=$e-(_-w);if(w=_,$>0){if(++u>=Me)return arguments[0]}else u=0;return a.apply(n,arguments)}}function Qd(a,u){var w=-1,_=a.length,$=_-1;for(u=u===n?_:u;++w<u;){var X=Ga(w,$),ie=a[X];a[X]=a[w],a[w]=ie}return a.length=u,a}var vb=CD(function(a){var u=[];return a.charCodeAt(0)===46&&u.push(""),a.replace(oo,function(w,_,$,X){u.push($?X.replace(Oi,"$1"):_||w)}),u});function Ps(a){if(typeof a=="string"||Uo(a))return a;var u=a+"";return u=="0"&&1/a==-1/0?"-0":u}function ic(a){if(a!=null){try{return Nr.call(a)}catch{}try{return a+""}catch{}}return""}function _D(a,u){return ne(ke,function(w){var _="_."+w[0];u&w[1]&&!xe(a,_)&&a.push(_)}),a.sort()}function mb(a){if(a instanceof $t)return a.clone();var u=new Sr(a.__wrapped__,a.__chain__);return u.__actions__=Ur(a.__actions__),u.__index__=a.__index__,u.__values__=a.__values__,u}function PD(a,u,w){(w?Qi(a,u,w):u===n)?u=1:u=Sn(Gt(u),0);var _=a==null?0:a.length;if(!_||u<1)return[];for(var $=0,X=0,ie=se(ps(_/u));$<_;)ie[X++]=ni(a,$,$+=u);return ie}function RD(a){for(var u=-1,w=a==null?0:a.length,_=0,$=[];++u<w;){var X=a[u];X&&($[_++]=X)}return $}function ID(){var a=arguments.length;if(!a)return[];for(var u=se(a-1),w=arguments[0],_=a;_--;)u[_-1]=arguments[_];return Ct(Ht(w)?Ur(w):[w],fr(u,1))}var AD=Bt(function(a,u){return hr(a)?Ua(a,fr(u,1,hr,!0)):[]}),MD=Bt(function(a,u){var w=ma(u);return hr(w)&&(w=n),hr(a)?Ua(a,fr(u,1,hr,!0),Et(w,2)):[]}),LD=Bt(function(a,u){var w=ma(u);return hr(w)&&(w=n),hr(a)?Ua(a,fr(u,1,hr,!0),n,w):[]});function FD(a,u,w){var _=a==null?0:a.length;return _?(u=w||u===n?1:Gt(u),ni(a,u<0?0:u,_)):[]}function ND(a,u,w){var _=a==null?0:a.length;return _?(u=w||u===n?1:Gt(u),u=_-u,ni(a,0,u<0?0:u)):[]}function jD(a,u){return a&&a.length?Xa(a,Et(u,3),!0,!0):[]}function BD(a,u){return a&&a.length?Xa(a,Et(u,3),!0):[]}function $D(a,u,w,_){var $=a==null?0:a.length;return $?(w&&typeof w!="number"&&Qi(a,u,w)&&(w=0,_=$),Hf(a,u,w,_)):[]}function yb(a,u,w){var _=a==null?0:a.length;if(!_)return-1;var $=w==null?0:Gt(w);return $<0&&($=Sn(_+$,0)),jt(a,Et(u,3),$)}function bb(a,u,w){var _=a==null?0:a.length;if(!_)return-1;var $=_-1;return w!==n&&($=Gt(w),$=w<0?Sn(_+$,0):qn($,_-1)),jt(a,Et(u,3),$,!0)}function wb(a){var u=a==null?0:a.length;return u?fr(a,1):[]}function VD(a){var u=a==null?0:a.length;return u?fr(a,Ne):[]}function HD(a,u){var w=a==null?0:a.length;return w?(u=u===n?1:Gt(u),fr(a,u)):[]}function UD(a){for(var u=-1,w=a==null?0:a.length,_={};++u<w;){var $=a[u];_[$[0]]=$[1]}return _}function xb(a){return a&&a.length?a[0]:n}function WD(a,u,w){var _=a==null?0:a.length;if(!_)return-1;var $=w==null?0:Gt(w);return $<0&&($=Sn(_+$,0)),en(a,u,$)}function zD(a){var u=a==null?0:a.length;return u?ni(a,0,-1):[]}var YD=Bt(function(a){var u=at(a,Jl);return u.length&&u[0]===a[0]?Ts(u):[]}),GD=Bt(function(a){var u=ma(a),w=at(a,Jl);return u===ma(w)?u=n:w.pop(),w.length&&w[0]===a[0]?Ts(w,Et(u,2)):[]}),qD=Bt(function(a){var u=ma(a),w=at(a,Jl);return u=typeof u=="function"?u:n,u&&w.pop(),w.length&&w[0]===a[0]?Ts(w,n,u):[]});function XD(a,u){return a==null?"":Xs.call(a,u)}function ma(a){var u=a==null?0:a.length;return u?a[u-1]:n}function KD(a,u,w){var _=a==null?0:a.length;if(!_)return-1;var $=_;return w!==n&&($=Gt(w),$=$<0?Sn(_+$,0):qn($,_-1)),u===u?cs(a,u,$):jt(a,ho,$,!0)}function ZD(a,u){return a&&a.length?ks(a,Gt(u)):n}var JD=Bt(Sb);function Sb(a,u){return a&&a.length&&u&&u.length?qu(a,u):a}function QD(a,u,w){return a&&a.length&&u&&u.length?qu(a,u,Et(w,2)):a}function e_(a,u,w){return a&&a.length&&u&&u.length?qu(a,u,n,w):a}var t_=cl(function(a,u){var w=a==null?0:a.length,_=Vu(a,u);return Xu(a,at(u,function($){return fl($,w)?+$:$}).sort(tc)),_});function n_(a,u){var w=[];if(!(a&&a.length))return w;var _=-1,$=[],X=a.length;for(u=Et(u,3);++_<X;){var ie=a[_];u(ie,_,a)&&(w.push(ie),$.push(_))}return Xu(a,$),w}function fg(a){return a==null?a:Ll.call(a)}function r_(a,u,w){var _=a==null?0:a.length;return _?(w&&typeof w!="number"&&Qi(a,u,w)?(u=0,w=_):(u=u==null?0:Gt(u),w=w===n?_:Gt(w)),ni(a,u,w)):[]}function i_(a,u){return Zl(a,u)}function o_(a,u,w){return Ju(a,u,Et(w,2))}function a_(a,u){var w=a==null?0:a.length;if(w){var _=Zl(a,u);if(_<w&&Ja(a[_],u))return _}return-1}function s_(a,u){return Zl(a,u,!0)}function l_(a,u,w){return Ju(a,u,Et(w,2),!0)}function u_(a,u){var w=a==null?0:a.length;if(w){var _=Zl(a,u,!0)-1;if(Ja(a[_],u))return _}return-1}function c_(a){return a&&a.length?Qu(a):[]}function f_(a,u){return a&&a.length?Qu(a,Et(u,2)):[]}function d_(a){var u=a==null?0:a.length;return u?ni(a,1,u):[]}function h_(a,u,w){return a&&a.length?(u=w||u===n?1:Gt(u),ni(a,0,u<0?0:u)):[]}function p_(a,u,w){var _=a==null?0:a.length;return _?(u=w||u===n?1:Gt(u),u=_-u,ni(a,u<0?0:u,_)):[]}function g_(a,u){return a&&a.length?Xa(a,Et(u,3),!1,!0):[]}function v_(a,u){return a&&a.length?Xa(a,Et(u,3)):[]}var m_=Bt(function(a){return ha(fr(a,1,hr,!0))}),y_=Bt(function(a){var u=ma(a);return hr(u)&&(u=n),ha(fr(a,1,hr,!0),Et(u,2))}),b_=Bt(function(a){var u=ma(a);return u=typeof u=="function"?u:n,ha(fr(a,1,hr,!0),n,u)});function w_(a){return a&&a.length?ha(a):[]}function x_(a,u){return a&&a.length?ha(a,Et(u,2)):[]}function S_(a,u){return u=typeof u=="function"?u:n,a&&a.length?ha(a,n,u):[]}function dg(a){if(!(a&&a.length))return[];var u=0;return a=Ie(a,function(w){if(hr(w))return u=Sn(w.length,u),!0}),ye(u,function(w){return at(a,O(w))})}function Tb(a,u){if(!(a&&a.length))return[];var w=dg(a);return u==null?w:at(w,function(_){return H(u,n,_)})}var T_=Bt(function(a,u){return hr(a)?Ua(a,u):[]}),C_=Bt(function(a){return dr(Ie(a,hr))}),E_=Bt(function(a){var u=ma(a);return hr(u)&&(u=n),dr(Ie(a,hr),Et(u,2))}),k_=Bt(function(a){var u=ma(a);return u=typeof u=="function"?u:n,dr(Ie(a,hr),n,u)}),O_=Bt(dg);function D_(a,u){return Xc(a||[],u||[],Br)}function __(a,u){return Xc(a||[],u||[],qa)}var P_=Bt(function(a){var u=a.length,w=u>1?a[u-1]:n;return w=typeof w=="function"?(a.pop(),w):n,Tb(a,w)});function Cb(a){var u=z(a);return u.__chain__=!0,u}function R_(a,u){return u(a),a}function eh(a,u){return u(a)}var I_=cl(function(a){var u=a.length,w=u?a[0]:0,_=this.__wrapped__,$=function(X){return Vu(X,a)};return u>1||this.__actions__.length||!(_ instanceof $t)||!fl(w)?this.thru($):(_=_.slice(w,+w+(u?1:0)),_.__actions__.push({func:eh,args:[$],thisArg:n}),new Sr(_,this.__chain__).thru(function(X){return u&&!X.length&&X.push(n),X}))});function A_(){return Cb(this)}function M_(){return new Sr(this.value(),this.__chain__)}function L_(){this.__values__===n&&(this.__values__=jb(this.value()));var a=this.__index__>=this.__values__.length,u=a?n:this.__values__[this.__index__++];return{done:a,value:u}}function F_(){return this}function N_(a){for(var u,w=this;w instanceof Bo;){var _=mb(w);_.__index__=0,_.__values__=n,u?$.__wrapped__=_:u=_;var $=_;w=w.__wrapped__}return $.__wrapped__=a,u}function j_(){var a=this.__wrapped__;if(a instanceof $t){var u=a;return this.__actions__.length&&(u=new $t(this)),u=u.reverse(),u.__actions__.push({func:eh,args:[fg],thisArg:n}),new Sr(u,this.__chain__)}return this.thru(fg)}function B_(){return qc(this.__wrapped__,this.__actions__)}var $_=ul(function(a,u,w){Ot.call(a,w)?++a[w]:xi(a,w,1)});function V_(a,u,w){var _=Ht(a)?De:Nc;return w&&Qi(a,u,w)&&(u=n),_(a,Et(u,3))}function H_(a,u){var w=Ht(a)?Ie:jc;return w(a,Et(u,3))}var U_=Y(yb),W_=Y(bb);function z_(a,u){return fr(th(a,u),1)}function Y_(a,u){return fr(th(a,u),Ne)}function G_(a,u,w){return w=w===n?1:Gt(w),fr(th(a,u),w)}function Eb(a,u){var w=Ht(a)?ne:ca;return w(a,Et(u,3))}function kb(a,u){var w=Ht(a)?pe:zu;return w(a,Et(u,3))}var q_=ul(function(a,u,w){Ot.call(a,w)?a[w].push(u):xi(a,w,[u])});function X_(a,u,w,_){a=Eo(a)?a:nf(a),w=w&&!_?Gt(w):0;var $=a.length;return w<0&&(w=Sn($+w,0)),ah(a)?w<=$&&a.indexOf(u,w)>-1:!!$&&en(a,u,w)>-1}var K_=Bt(function(a,u,w){var _=-1,$=typeof u=="function",X=Eo(a)?se(a.length):[];return ca(a,function(ie){X[++_]=$?H(u,ie,w):So(ie,u,w)}),X}),Z_=ul(function(a,u,w){xi(a,w,u)});function th(a,u){var w=Ht(a)?at:Ki;return w(a,Et(u,3))}function J_(a,u,w,_){return a==null?[]:(Ht(u)||(u=u==null?[]:[u]),w=_?n:w,Ht(w)||(w=w==null?[]:[w]),ql(a,u,w))}var Q_=ul(function(a,u,w){a[w?0:1].push(u)},function(){return[[],[]]});function eP(a,u,w){var _=Ht(a)?kt:W,$=arguments.length<3;return _(a,Et(u,4),w,$,ca)}function tP(a,u,w){var _=Ht(a)?In:W,$=arguments.length<3;return _(a,Et(u,4),w,$,zu)}function nP(a,u){var w=Ht(a)?Ie:jc;return w(a,ih(Et(u,3)))}function rP(a){var u=Ht(a)?ti:al;return u(a)}function iP(a,u,w){(w?Qi(a,u,w):u===n)?u=1:u=Gt(u);var _=Ht(a)?wi:Zu;return _(a,u)}function oP(a){var u=Ht(a)?xo:Wc;return u(a)}function aP(a){if(a==null)return 0;if(Eo(a))return ah(a)?vo(a):a.length;var u=Ai(a);return u==Lt||u==Zn?a.size:Ho(a).length}function sP(a,u,w){var _=Ht(a)?cn:zc;return w&&Qi(a,u,w)&&(u=n),_(a,Et(u,3))}var lP=Bt(function(a,u){if(a==null)return[];var w=u.length;return w>1&&Qi(a,u[0],u[1])?u=[]:w>2&&Qi(u[0],u[1],u[2])&&(u=[u[0]]),ql(a,fr(u,1),[])}),nh=qs||function(){return un.Date.now()};function uP(a,u){if(typeof u!="function")throw new Vt(s);return a=Gt(a),function(){if(--a<1)return u.apply(this,arguments)}}function Ob(a,u,w){return u=w?n:u,u=a&&u==null?a.length:u,Za(a,S,n,n,n,n,u)}function Db(a,u){var w;if(typeof u!="function")throw new Vt(s);return a=Gt(a),function(){return--a>0&&(w=u.apply(this,arguments)),a<=1&&(u=n),w}}var hg=Bt(function(a,u,w){var _=M;if(w.length){var $=ei(w,ef(hg));_|=K}return Za(a,_,u,w,$)}),_b=Bt(function(a,u,w){var _=M|R;if(w.length){var $=ei(w,ef(_b));_|=K}return Za(u,_,a,w,$)});function Pb(a,u,w){u=w?n:u;var _=Za(a,U,n,n,n,n,n,u);return _.placeholder=Pb.placeholder,_}function Rb(a,u,w){u=w?n:u;var _=Za(a,Q,n,n,n,n,n,u);return _.placeholder=Rb.placeholder,_}function Ib(a,u,w){var _,$,X,ie,de,ve,qe=0,Xe=!1,Qe=!1,lt=!0;if(typeof a!="function")throw new Vt(s);u=ya(u)||0,Xn(w)&&(Xe=!!w.leading,Qe="maxWait"in w,X=Qe?Sn(ya(w.maxWait)||0,u):X,lt="trailing"in w?!!w.trailing:lt);function wt(pr){var Qa=_,pl=$;return _=$=n,qe=pr,ie=a.apply(pl,Qa),ie}function Dt(pr){return qe=pr,de=Yf(Qt,u),Xe?wt(pr):ie}function Kt(pr){var Qa=pr-ve,pl=pr-qe,Zb=u-Qa;return Qe?qn(Zb,X-pl):Zb}function _t(pr){var Qa=pr-ve,pl=pr-qe;return ve===n||Qa>=u||Qa<0||Qe&&pl>=X}function Qt(){var pr=nh();if(_t(pr))return nn(pr);de=Yf(Qt,Kt(pr))}function nn(pr){return de=n,lt&&_?wt(pr):(_=$=n,ie)}function Wo(){de!==n&&eu(de),qe=0,_=ve=$=de=n}function eo(){return de===n?ie:nn(nh())}function zo(){var pr=nh(),Qa=_t(pr);if(_=arguments,$=this,ve=pr,Qa){if(de===n)return Dt(ve);if(Qe)return eu(de),de=Yf(Qt,u),wt(ve)}return de===n&&(de=Yf(Qt,u)),ie}return zo.cancel=Wo,zo.flush=eo,zo}var cP=Bt(function(a,u){return Wu(a,1,u)}),fP=Bt(function(a,u,w){return Wu(a,ya(u)||0,w)});function dP(a){return Za(a,ae)}function rh(a,u){if(typeof a!="function"||u!=null&&typeof u!="function")throw new Vt(s);var w=function(){var _=arguments,$=u?u.apply(this,_):_[0],X=w.cache;if(X.has($))return X.get($);var ie=a.apply(this,_);return w.cache=X.set($,ie)||X,ie};return w.cache=new(rh.Cache||$o),w}rh.Cache=$o;function ih(a){if(typeof a!="function")throw new Vt(s);return function(){var u=arguments;switch(u.length){case 0:return!a.call(this);case 1:return!a.call(this,u[0]);case 2:return!a.call(this,u[0],u[1]);case 3:return!a.call(this,u[0],u[1],u[2])}return!a.apply(this,u)}}function hP(a){return Db(2,a)}var pP=Kc(function(a,u){u=u.length==1&&Ht(u[0])?at(u[0],gt(Et())):at(fr(u,1),gt(Et()));var w=u.length;return Bt(function(_){for(var $=-1,X=qn(_.length,w);++$<X;)_[$]=u[$].call(this,_[$]);return H(a,this,_)})}),pg=Bt(function(a,u){var w=ei(u,ef(pg));return Za(a,K,n,u,w)}),Ab=Bt(function(a,u){var w=ei(u,ef(Ab));return Za(a,ue,n,u,w)}),gP=cl(function(a,u){return Za(a,he,n,n,n,u)});function vP(a,u){if(typeof a!="function")throw new Vt(s);return u=u===n?u:Gt(u),Bt(a,u)}function mP(a,u){if(typeof a!="function")throw new Vt(s);return u=u==null?0:Sn(Gt(u),0),Bt(function(w){var _=w[u],$=pa(w,0,u);return _&&Ct($,_),H(a,this,$)})}function yP(a,u,w){var _=!0,$=!0;if(typeof a!="function")throw new Vt(s);return Xn(w)&&(_="leading"in w?!!w.leading:_,$="trailing"in w?!!w.trailing:$),Ib(a,u,{leading:_,maxWait:u,trailing:$})}function bP(a){return Ob(a,1)}function wP(a,u){return pg(Ql(u),a)}function xP(){if(!arguments.length)return[];var a=arguments[0];return Ht(a)?a:[a]}function SP(a){return $r(a,C)}function TP(a,u){return u=typeof u=="function"?u:n,$r(a,C,u)}function CP(a){return $r(a,g|C)}function EP(a,u){return u=typeof u=="function"?u:n,$r(a,g|C,u)}function kP(a,u){return u==null||Uu(a,u,ri(u))}function Ja(a,u){return a===u||a!==a&&u!==u}var OP=Co(Wa),DP=Co(function(a,u){return a>=u}),oc=zl(function(){return arguments}())?zl:function(a){return ir(a)&&Ot.call(a,"callee")&&!Il.call(a,"callee")},Ht=se.isArray,_P=h?gt(h):za;function Eo(a){return a!=null&&oh(a.length)&&!dl(a)}function hr(a){return ir(a)&&Eo(a)}function PP(a){return a===!0||a===!1||ir(a)&&nr(a)==dt}var nu=Ml||Eg,RP=b?gt(b):$c;function IP(a){return ir(a)&&a.nodeType===1&&!Gf(a)}function AP(a){if(a==null)return!0;if(Eo(a)&&(Ht(a)||typeof a=="string"||typeof a.splice=="function"||nu(a)||tf(a)||oc(a)))return!a.length;var u=Ai(a);if(u==Lt||u==Zn)return!a.size;if(zf(a))return!Ho(a).length;for(var w in a)if(Ot.call(a,w))return!1;return!0}function MP(a,u){return nl(a,u)}function LP(a,u,w){w=typeof w=="function"?w:n;var _=w?w(a,u):n;return _===n?nl(a,u,n,w):!!_}function gg(a){if(!ir(a))return!1;var u=nr(a);return u==bt||u==ft||typeof a.message=="string"&&typeof a.name=="string"&&!Gf(a)}function FP(a){return typeof a=="number"&&vs(a)}function dl(a){if(!Xn(a))return!1;var u=nr(a);return u==et||u==At||u==it||u==ji}function Mb(a){return typeof a=="number"&&a==Gt(a)}function oh(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=We}function Xn(a){var u=typeof a;return a!=null&&(u=="object"||u=="function")}function ir(a){return a!=null&&typeof a=="object"}var Lb=E?gt(E):Es;function NP(a,u){return a===u||Gu(a,u,og(u))}function jP(a,u,w){return w=typeof w=="function"?w:n,Gu(a,u,og(u),w)}function BP(a){return Fb(a)&&a!=+a}function $P(a){if(TD(a))throw new Ve(o);return Vc(a)}function VP(a){return a===null}function HP(a){return a==null}function Fb(a){return typeof a=="number"||ir(a)&&nr(a)==Hn}function Gf(a){if(!ir(a)||nr(a)!=Un)return!1;var u=Fa(a);if(u===null)return!0;var w=Ot.call(u,"constructor")&&u.constructor;return typeof w=="function"&&w instanceof w&&Nr.call(w)==Pu}var vg=D?gt(D):Ya;function UP(a){return Mb(a)&&a>=-9007199254740991&&a<=We}var Nb=F?gt(F):Yl;function ah(a){return typeof a=="string"||!Ht(a)&&ir(a)&&nr(a)==sn}function Uo(a){return typeof a=="symbol"||ir(a)&&nr(a)==dn}var tf=j?gt(j):Vo;function WP(a){return a===n}function zP(a){return ir(a)&&Ai(a)==ct}function YP(a){return ir(a)&&nr(a)==Dn}var GP=Co(Xi),qP=Co(function(a,u){return a<=u});function jb(a){if(!a)return[];if(Eo(a))return ah(a)?fn(a):Ur(a);if(Gi&&a[Gi])return Ri(a[Gi]());var u=Ai(a),w=u==Lt?us:u==Zn?go:nf;return w(a)}function hl(a){if(!a)return a===0?a:0;if(a=ya(a),a===Ne||a===-1/0){var u=a<0?-1:1;return u*tt}return a===a?a:0}function Gt(a){var u=hl(a),w=u%1;return u===u?w?u-w:u:0}function Bb(a){return a?Ha(Gt(a),0,Ee):0}function ya(a){if(typeof a=="number")return a;if(Uo(a))return we;if(Xn(a)){var u=typeof a.valueOf=="function"?a.valueOf():a;a=Xn(u)?u+"":u}if(typeof a!="string")return a===0?a:+a;a=Ke(a);var w=ci.test(a);return w||yr.test(a)?Ma(a.slice(2),w?2:8):_r.test(a)?we:+a}function $b(a){return Ii(a,ko(a))}function XP(a){return a?Ha(Gt(a),-9007199254740991,We):a===0?a:0}function vn(a){return a==null?"":Vr(a)}var KP=Ds(function(a,u){if(zf(u)||Eo(u)){Ii(u,ri(u),a);return}for(var w in u)Ot.call(u,w)&&Br(a,w,u[w])}),Vb=Ds(function(a,u){Ii(u,ko(u),a)}),sh=Ds(function(a,u,w,_){Ii(u,ko(u),a,_)}),ZP=Ds(function(a,u,w,_){Ii(u,ri(u),a,_)}),JP=cl(Vu);function QP(a,u){var w=jo(a);return u==null?w:Fc(w,u)}var eR=Bt(function(a,u){a=ot(a);var w=-1,_=u.length,$=_>2?u[2]:n;for($&&Qi(u[0],u[1],$)&&(_=1);++w<_;)for(var X=u[w],ie=ko(X),de=-1,ve=ie.length;++de<ve;){var qe=ie[de],Xe=a[qe];(Xe===n||Ja(Xe,Ln[qe])&&!Ot.call(a,qe))&&(a[qe]=X[qe])}return a}),tR=Bt(function(a){return a.push(n,ib),H(Hb,n,a)});function nR(a,u){return Fr(a,Et(u,3),Si)}function rR(a,u){return Fr(a,Et(u,3),Vl)}function iR(a,u){return a==null?a:Yu(a,Et(u,3),ko)}function oR(a,u){return a==null?a:Bc(a,Et(u,3),ko)}function aR(a,u){return a&&Si(a,Et(u,3))}function sR(a,u){return a&&Vl(a,Et(u,3))}function lR(a){return a==null?[]:xs(a,ri(a))}function uR(a){return a==null?[]:xs(a,ko(a))}function mg(a,u,w){var _=a==null?n:fa(a,u);return _===n?w:_}function cR(a,u){return a!=null&&sb(a,u,Hl)}function yg(a,u){return a!=null&&sb(a,u,Ss)}var fR=He(function(a,u,w){u!=null&&typeof u.toString!="function"&&(u=Ao.call(u)),a[u]=w},wg(Oo)),dR=He(function(a,u,w){u!=null&&typeof u.toString!="function"&&(u=Ao.call(u)),Ot.call(a,u)?a[u].push(w):a[u]=[w]},Et),hR=Bt(So);function ri(a){return Eo(a)?el(a):Ho(a)}function ko(a){return Eo(a)?el(a,!0):rl(a)}function pR(a,u){var w={};return u=Et(u,3),Si(a,function(_,$,X){xi(w,u(_,$,X),_)}),w}function gR(a,u){var w={};return u=Et(u,3),Si(a,function(_,$,X){xi(w,$,u(_,$,X))}),w}var vR=Ds(function(a,u,w){da(a,u,w)}),Hb=Ds(function(a,u,w,_){da(a,u,w,_)}),mR=cl(function(a,u){var w={};if(a==null)return w;var _=!1;u=at(u,function(X){return X=Ti(X,a),_||(_=X.length>1),X}),Ii(a,rg(a),w),_&&(w=$r(w,g|T|C,fD));for(var $=u.length;$--;)Hr(w,u[$]);return w});function yR(a,u){return Ub(a,ih(Et(u)))}var bR=cl(function(a,u){return a==null?{}:ol(a,u)});function Ub(a,u){if(a==null)return{};var w=at(rg(a),function(_){return[_]});return u=Et(u),Os(a,w,function(_,$){return u(_,$[0])})}function wR(a,u,w){u=Ti(u,a);var _=-1,$=u.length;for($||($=1,a=n);++_<$;){var X=a==null?n:a[Ps(u[_])];X===n&&(_=$,X=w),a=dl(X)?X.call(a):X}return a}function xR(a,u,w){return a==null?a:qa(a,u,w)}function SR(a,u,w,_){return _=typeof _=="function"?_:n,a==null?a:qa(a,u,w,_)}var Wb=Qc(ri),zb=Qc(ko);function TR(a,u,w){var _=Ht(a),$=_||nu(a)||tf(a);if(u=Et(u,4),w==null){var X=a&&a.constructor;$?w=_?new X:[]:Xn(a)?w=dl(X)?jo(Fa(a)):{}:w={}}return($?ne:Si)(a,function(ie,de,ve){return u(w,ie,de,ve)}),w}function CR(a,u){return a==null?!0:Hr(a,u)}function ER(a,u,w){return a==null?a:Gc(a,u,Ql(w))}function kR(a,u,w,_){return _=typeof _=="function"?_:n,a==null?a:Gc(a,u,Ql(w),_)}function nf(a){return a==null?[]:Pt(a,ri(a))}function OR(a){return a==null?[]:Pt(a,ko(a))}function DR(a,u,w){return w===n&&(w=u,u=n),w!==n&&(w=ya(w),w=w===w?w:0),u!==n&&(u=ya(u),u=u===u?u:0),Ha(ya(a),u,w)}function _R(a,u,w){return u=hl(u),w===n?(w=u,u=0):w=hl(w),a=ya(a),Ul(a,u,w)}function PR(a,u,w){if(w&&typeof w!="boolean"&&Qi(a,u,w)&&(u=w=n),w===n&&(typeof u=="boolean"?(w=u,u=n):typeof a=="boolean"&&(w=a,a=n)),a===n&&u===n?(a=0,u=1):(a=hl(a),u===n?(u=a,a=0):u=hl(u)),a>u){var _=a;a=u,u=_}if(w||a%1||u%1){var $=oa();return qn(a+$*(u-a+ur("1e-"+(($+"").length-1))),u)}return Ga(a,u)}var RR=x(function(a,u,w){return u=u.toLowerCase(),a+(w?Yb(u):u)});function Yb(a){return bg(vn(a).toLowerCase())}function Gb(a){return a=vn(a),a&&a.replace(er,Vn).replace(Qo,"")}function IR(a,u,w){a=vn(a),u=Vr(u);var _=a.length;w=w===n?_:Ha(Gt(w),0,_);var $=w;return w-=u.length,w>=0&&a.slice(w,$)==u}function AR(a){return a=vn(a),a&&Hi.test(a)?a.replace(Wt,ta):a}function MR(a){return a=vn(a),a&&ui.test(a)?a.replace(mr,"\\$&"):a}var LR=x(function(a,u,w){return a+(w?"-":"")+u.toLowerCase()}),FR=x(function(a,u,w){return a+(w?" ":"")+u.toLowerCase()}),NR=v("toLowerCase");function jR(a,u,w){a=vn(a),u=Gt(u);var _=u?vo(a):0;if(!u||_>=u)return a;var $=(u-_)/2;return St(Na($),w)+a+St(ps($),w)}function BR(a,u,w){a=vn(a),u=Gt(u);var _=u?vo(a):0;return u&&_<u?a+St(u-_,w):a}function $R(a,u,w){a=vn(a),u=Gt(u);var _=u?vo(a):0;return u&&_<u?St(u-_,w)+a:a}function VR(a,u,w){return w||u==null?u=0:u&&(u=+u),Au(vn(a).replace(ln,""),u||0)}function HR(a,u,w){return(w?Qi(a,u,w):u===n)?u=1:u=Gt(u),Xl(vn(a),u)}function UR(){var a=arguments,u=vn(a[0]);return a.length<3?u:u.replace(a[1],a[2])}var WR=x(function(a,u,w){return a+(w?"_":"")+u.toLowerCase()});function zR(a,u,w){return w&&typeof w!="number"&&Qi(a,u,w)&&(u=w=n),w=w===n?Ee:w>>>0,w?(a=vn(a),a&&(typeof u=="string"||u!=null&&!vg(u))&&(u=Vr(u),!u&&Qr(a))?pa(fn(a),0,w):a.split(u,w)):[]}var YR=x(function(a,u,w){return a+(w?" ":"")+bg(u)});function GR(a,u,w){return a=vn(a),w=w==null?0:Ha(Gt(w),0,a.length),u=Vr(u),a.slice(w,w+u.length)==u}function qR(a,u,w){var _=z.templateSettings;w&&Qi(a,u,w)&&(u=n),a=vn(a),u=sh({},u,_,rb);var $=sh({},u.imports,_.imports,rb),X=ri($),ie=Pt($,X),de,ve,qe=0,Xe=u.interpolate||Ui,Qe="__p += '",lt=Mt((u.escape||Ui).source+"|"+Xe.source+"|"+(Xe===si?Qn:Ui).source+"|"+(u.evaluate||Ui).source+"|$","g"),wt="//# sourceURL="+(Ot.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++on+"]")+`
|
|
146
|
+
`;a.replace(lt,function(_t,Qt,nn,Wo,eo,zo){return nn||(nn=Wo),Qe+=a.slice(qe,zo).replace(Di,ls),Qt&&(de=!0,Qe+=`' +
|
|
147
|
+
__e(`+Qt+`) +
|
|
148
|
+
'`),eo&&(ve=!0,Qe+=`';
|
|
149
|
+
`+eo+`;
|
|
150
|
+
__p += '`),nn&&(Qe+=`' +
|
|
151
|
+
((__t = (`+nn+`)) == null ? '' : __t) +
|
|
152
|
+
'`),qe=zo+_t.length,_t}),Qe+=`';
|
|
153
|
+
`;var Dt=Ot.call(u,"variable")&&u.variable;if(!Dt)Qe=`with (obj) {
|
|
154
|
+
`+Qe+`
|
|
155
|
+
}
|
|
156
|
+
`;else if(so.test(Dt))throw new Ve(c);Qe=(ve?Qe.replace(Po,""):Qe).replace(Wn,"$1").replace(Gr,"$1;"),Qe="function("+(Dt||"obj")+`) {
|
|
157
|
+
`+(Dt?"":`obj || (obj = {});
|
|
158
|
+
`)+"var __t, __p = ''"+(de?", __e = _.escape":"")+(ve?`, __j = Array.prototype.join;
|
|
159
|
+
function print() { __p += __j.call(arguments, '') }
|
|
160
|
+
`:`;
|
|
161
|
+
`)+Qe+`return __p
|
|
162
|
+
}`;var Kt=Xb(function(){return st(X,wt+"return "+Qe).apply(n,ie)});if(Kt.source=Qe,gg(Kt))throw Kt;return Kt}function XR(a){return vn(a).toLowerCase()}function KR(a){return vn(a).toUpperCase()}function ZR(a,u,w){if(a=vn(a),a&&(w||u===n))return Ke(a);if(!a||!(u=Vr(u)))return a;var _=fn(a),$=fn(u),X=yt(_,$),ie=Mn(_,$)+1;return pa(_,X,ie).join("")}function JR(a,u,w){if(a=vn(a),a&&(w||u===n))return a.slice(0,Rl(a)+1);if(!a||!(u=Vr(u)))return a;var _=fn(a),$=Mn(_,fn(u))+1;return pa(_,0,$).join("")}function QR(a,u,w){if(a=vn(a),a&&(w||u===n))return a.replace(ln,"");if(!a||!(u=Vr(u)))return a;var _=fn(a),$=yt(_,fn(u));return pa(_,$).join("")}function eI(a,u){var w=Ge,_=Re;if(Xn(u)){var $="separator"in u?u.separator:$;w="length"in u?Gt(u.length):w,_="omission"in u?Vr(u.omission):_}a=vn(a);var X=a.length;if(Qr(a)){var ie=fn(a);X=ie.length}if(w>=X)return a;var de=w-vo(_);if(de<1)return _;var ve=ie?pa(ie,0,de).join(""):a.slice(0,de);if($===n)return ve+_;if(ie&&(de+=ve.length-de),vg($)){if(a.slice(de).search($)){var qe,Xe=ve;for($.global||($=Mt($.source,vn(Dr.exec($))+"g")),$.lastIndex=0;qe=$.exec(Xe);)var Qe=qe.index;ve=ve.slice(0,Qe===n?de:Qe)}}else if(a.indexOf(Vr($),de)!=de){var lt=ve.lastIndexOf($);lt>-1&&(ve=ve.slice(0,lt))}return ve+_}function tI(a){return a=vn(a),a&&ai.test(a)?a.replace(Jn,fs):a}var nI=x(function(a,u,w){return a+(w?" ":"")+u.toUpperCase()}),bg=v("toUpperCase");function qb(a,u,w){return a=vn(a),u=w?n:u,u===n?Ws(a)?fe(a):Ft(a):a.match(u)||[]}var Xb=Bt(function(a,u){try{return H(a,n,u)}catch(w){return gg(w)?w:new Ve(w)}}),rI=cl(function(a,u){return ne(u,function(w){w=Ps(w),xi(a,w,hg(a[w],a))}),a});function iI(a){var u=a==null?0:a.length,w=Et();return a=u?at(a,function(_){if(typeof _[1]!="function")throw new Vt(s);return[w(_[0]),_[1]]}):[],Bt(function(_){for(var $=-1;++$<u;){var X=a[$];if(H(X[0],this,_))return H(X[1],this,_)}})}function oI(a){return Hu($r(a,g))}function wg(a){return function(){return a}}function aI(a,u){return a==null||a!==a?u:a}var sI=re(),lI=re(!0);function Oo(a){return a}function xg(a){return Gl(typeof a=="function"?a:$r(a,g))}function uI(a){return To($r(a,g))}function cI(a,u){return il(a,$r(u,g))}var fI=Bt(function(a,u){return function(w){return So(w,a,u)}}),dI=Bt(function(a,u){return function(w){return So(a,w,u)}});function Sg(a,u,w){var _=ri(u),$=xs(u,_);w==null&&!(Xn(u)&&($.length||!_.length))&&(w=u,u=a,a=this,$=xs(u,ri(u)));var X=!(Xn(w)&&"chain"in w)||!!w.chain,ie=dl(a);return ne($,function(de){var ve=u[de];a[de]=ve,ie&&(a.prototype[de]=function(){var qe=this.__chain__;if(X||qe){var Xe=a(this.__wrapped__),Qe=Xe.__actions__=Ur(this.__actions__);return Qe.push({func:ve,args:arguments,thisArg:a}),Xe.__chain__=qe,Xe}return ve.apply(a,Ct([this.value()],arguments))})}),a}function hI(){return un._===this&&(un._=Ru),this}function Tg(){}function pI(a){return a=Gt(a),Bt(function(u){return ks(u,a)})}var gI=rt(at),vI=rt(De),mI=rt(cn);function Kb(a){return sg(a)?O(Ps(a)):Hc(a)}function yI(a){return function(u){return a==null?n:fa(a,u)}}var bI=rr(),wI=rr(!0);function Cg(){return[]}function Eg(){return!1}function xI(){return{}}function SI(){return""}function TI(){return!0}function CI(a,u){if(a=Gt(a),a<1||a>We)return[];var w=Ee,_=qn(a,Ee);u=Et(u),a-=Ee;for(var $=ye(_,u);++w<a;)u(w);return $}function EI(a){return Ht(a)?at(a,Ps):Uo(a)?[a]:Ur(vb(vn(a)))}function kI(a){var u=++_u;return vn(a)+u}var OI=Ze(function(a,u){return a+u},0),DI=Ji("ceil"),_I=Ze(function(a,u){return a/u},1),PI=Ji("floor");function RI(a){return a&&a.length?$l(a,Oo,Wa):n}function II(a,u){return a&&a.length?$l(a,Et(u,2),Wa):n}function AI(a){return xr(a,Oo)}function MI(a,u){return xr(a,Et(u,2))}function LI(a){return a&&a.length?$l(a,Oo,Xi):n}function FI(a,u){return a&&a.length?$l(a,Et(u,2),Xi):n}var NI=Ze(function(a,u){return a*u},1),jI=Ji("round"),BI=Ze(function(a,u){return a-u},0);function $I(a){return a&&a.length?me(a,Oo):0}function VI(a,u){return a&&a.length?me(a,Et(u,2)):0}return z.after=uP,z.ary=Ob,z.assign=KP,z.assignIn=Vb,z.assignInWith=sh,z.assignWith=ZP,z.at=JP,z.before=Db,z.bind=hg,z.bindAll=rI,z.bindKey=_b,z.castArray=xP,z.chain=Cb,z.chunk=PD,z.compact=RD,z.concat=ID,z.cond=iI,z.conforms=oI,z.constant=wg,z.countBy=$_,z.create=QP,z.curry=Pb,z.curryRight=Rb,z.debounce=Ib,z.defaults=eR,z.defaultsDeep=tR,z.defer=cP,z.delay=fP,z.difference=AD,z.differenceBy=MD,z.differenceWith=LD,z.drop=FD,z.dropRight=ND,z.dropRightWhile=jD,z.dropWhile=BD,z.fill=$D,z.filter=H_,z.flatMap=z_,z.flatMapDeep=Y_,z.flatMapDepth=G_,z.flatten=wb,z.flattenDeep=VD,z.flattenDepth=HD,z.flip=dP,z.flow=sI,z.flowRight=lI,z.fromPairs=UD,z.functions=lR,z.functionsIn=uR,z.groupBy=q_,z.initial=zD,z.intersection=YD,z.intersectionBy=GD,z.intersectionWith=qD,z.invert=fR,z.invertBy=dR,z.invokeMap=K_,z.iteratee=xg,z.keyBy=Z_,z.keys=ri,z.keysIn=ko,z.map=th,z.mapKeys=pR,z.mapValues=gR,z.matches=uI,z.matchesProperty=cI,z.memoize=rh,z.merge=vR,z.mergeWith=Hb,z.method=fI,z.methodOf=dI,z.mixin=Sg,z.negate=ih,z.nthArg=pI,z.omit=mR,z.omitBy=yR,z.once=hP,z.orderBy=J_,z.over=gI,z.overArgs=pP,z.overEvery=vI,z.overSome=mI,z.partial=pg,z.partialRight=Ab,z.partition=Q_,z.pick=bR,z.pickBy=Ub,z.property=Kb,z.propertyOf=yI,z.pull=JD,z.pullAll=Sb,z.pullAllBy=QD,z.pullAllWith=e_,z.pullAt=t_,z.range=bI,z.rangeRight=wI,z.rearg=gP,z.reject=nP,z.remove=n_,z.rest=vP,z.reverse=fg,z.sampleSize=iP,z.set=xR,z.setWith=SR,z.shuffle=oP,z.slice=r_,z.sortBy=lP,z.sortedUniq=c_,z.sortedUniqBy=f_,z.split=zR,z.spread=mP,z.tail=d_,z.take=h_,z.takeRight=p_,z.takeRightWhile=g_,z.takeWhile=v_,z.tap=R_,z.throttle=yP,z.thru=eh,z.toArray=jb,z.toPairs=Wb,z.toPairsIn=zb,z.toPath=EI,z.toPlainObject=$b,z.transform=TR,z.unary=bP,z.union=m_,z.unionBy=y_,z.unionWith=b_,z.uniq=w_,z.uniqBy=x_,z.uniqWith=S_,z.unset=CR,z.unzip=dg,z.unzipWith=Tb,z.update=ER,z.updateWith=kR,z.values=nf,z.valuesIn=OR,z.without=T_,z.words=qb,z.wrap=wP,z.xor=C_,z.xorBy=E_,z.xorWith=k_,z.zip=O_,z.zipObject=D_,z.zipObjectDeep=__,z.zipWith=P_,z.entries=Wb,z.entriesIn=zb,z.extend=Vb,z.extendWith=sh,Sg(z,z),z.add=OI,z.attempt=Xb,z.camelCase=RR,z.capitalize=Yb,z.ceil=DI,z.clamp=DR,z.clone=SP,z.cloneDeep=CP,z.cloneDeepWith=EP,z.cloneWith=TP,z.conformsTo=kP,z.deburr=Gb,z.defaultTo=aI,z.divide=_I,z.endsWith=IR,z.eq=Ja,z.escape=AR,z.escapeRegExp=MR,z.every=V_,z.find=U_,z.findIndex=yb,z.findKey=nR,z.findLast=W_,z.findLastIndex=bb,z.findLastKey=rR,z.floor=PI,z.forEach=Eb,z.forEachRight=kb,z.forIn=iR,z.forInRight=oR,z.forOwn=aR,z.forOwnRight=sR,z.get=mg,z.gt=OP,z.gte=DP,z.has=cR,z.hasIn=yg,z.head=xb,z.identity=Oo,z.includes=X_,z.indexOf=WD,z.inRange=_R,z.invoke=hR,z.isArguments=oc,z.isArray=Ht,z.isArrayBuffer=_P,z.isArrayLike=Eo,z.isArrayLikeObject=hr,z.isBoolean=PP,z.isBuffer=nu,z.isDate=RP,z.isElement=IP,z.isEmpty=AP,z.isEqual=MP,z.isEqualWith=LP,z.isError=gg,z.isFinite=FP,z.isFunction=dl,z.isInteger=Mb,z.isLength=oh,z.isMap=Lb,z.isMatch=NP,z.isMatchWith=jP,z.isNaN=BP,z.isNative=$P,z.isNil=HP,z.isNull=VP,z.isNumber=Fb,z.isObject=Xn,z.isObjectLike=ir,z.isPlainObject=Gf,z.isRegExp=vg,z.isSafeInteger=UP,z.isSet=Nb,z.isString=ah,z.isSymbol=Uo,z.isTypedArray=tf,z.isUndefined=WP,z.isWeakMap=zP,z.isWeakSet=YP,z.join=XD,z.kebabCase=LR,z.last=ma,z.lastIndexOf=KD,z.lowerCase=FR,z.lowerFirst=NR,z.lt=GP,z.lte=qP,z.max=RI,z.maxBy=II,z.mean=AI,z.meanBy=MI,z.min=LI,z.minBy=FI,z.stubArray=Cg,z.stubFalse=Eg,z.stubObject=xI,z.stubString=SI,z.stubTrue=TI,z.multiply=NI,z.nth=ZD,z.noConflict=hI,z.noop=Tg,z.now=nh,z.pad=jR,z.padEnd=BR,z.padStart=$R,z.parseInt=VR,z.random=PR,z.reduce=eP,z.reduceRight=tP,z.repeat=HR,z.replace=UR,z.result=wR,z.round=jI,z.runInContext=Z,z.sample=rP,z.size=aP,z.snakeCase=WR,z.some=sP,z.sortedIndex=i_,z.sortedIndexBy=o_,z.sortedIndexOf=a_,z.sortedLastIndex=s_,z.sortedLastIndexBy=l_,z.sortedLastIndexOf=u_,z.startCase=YR,z.startsWith=GR,z.subtract=BI,z.sum=$I,z.sumBy=VI,z.template=qR,z.times=CI,z.toFinite=hl,z.toInteger=Gt,z.toLength=Bb,z.toLower=XR,z.toNumber=ya,z.toSafeInteger=XP,z.toString=vn,z.toUpper=KR,z.trim=ZR,z.trimEnd=JR,z.trimStart=QR,z.truncate=eI,z.unescape=tI,z.uniqueId=kI,z.upperCase=nI,z.upperFirst=bg,z.each=Eb,z.eachRight=kb,z.first=xb,Sg(z,function(){var a={};return Si(z,function(u,w){Ot.call(z.prototype,w)||(a[w]=u)}),a}(),{chain:!1}),z.VERSION=r,ne(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){z[a].placeholder=z}),ne(["drop","take"],function(a,u){$t.prototype[a]=function(w){w=w===n?1:Sn(Gt(w),0);var _=this.__filtered__&&!u?new $t(this):this.clone();return _.__filtered__?_.__takeCount__=qn(w,_.__takeCount__):_.__views__.push({size:qn(w,Ee),type:a+(_.__dir__<0?"Right":"")}),_},$t.prototype[a+"Right"]=function(w){return this.reverse()[a](w).reverse()}}),ne(["filter","map","takeWhile"],function(a,u){var w=u+1,_=w==Ue||w==Te;$t.prototype[a]=function($){var X=this.clone();return X.__iteratees__.push({iteratee:Et($,3),type:w}),X.__filtered__=X.__filtered__||_,X}}),ne(["head","last"],function(a,u){var w="take"+(u?"Right":"");$t.prototype[a]=function(){return this[w](1).value()[0]}}),ne(["initial","tail"],function(a,u){var w="drop"+(u?"":"Right");$t.prototype[a]=function(){return this.__filtered__?new $t(this):this[w](1)}}),$t.prototype.compact=function(){return this.filter(Oo)},$t.prototype.find=function(a){return this.filter(a).head()},$t.prototype.findLast=function(a){return this.reverse().find(a)},$t.prototype.invokeMap=Bt(function(a,u){return typeof a=="function"?new $t(this):this.map(function(w){return So(w,a,u)})}),$t.prototype.reject=function(a){return this.filter(ih(Et(a)))},$t.prototype.slice=function(a,u){a=Gt(a);var w=this;return w.__filtered__&&(a>0||u<0)?new $t(w):(a<0?w=w.takeRight(-a):a&&(w=w.drop(a)),u!==n&&(u=Gt(u),w=u<0?w.dropRight(-u):w.take(u-a)),w)},$t.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},$t.prototype.toArray=function(){return this.take(Ee)},Si($t.prototype,function(a,u){var w=/^(?:filter|find|map|reject)|While$/.test(u),_=/^(?:head|last)$/.test(u),$=z[_?"take"+(u=="last"?"Right":""):u],X=_||/^find/.test(u);$&&(z.prototype[u]=function(){var ie=this.__wrapped__,de=_?[1]:arguments,ve=ie instanceof $t,qe=de[0],Xe=ve||Ht(ie),Qe=function(Qt){var nn=$.apply(z,Ct([Qt],de));return _&<?nn[0]:nn};Xe&&w&&typeof qe=="function"&&qe.length!=1&&(ve=Xe=!1);var lt=this.__chain__,wt=!!this.__actions__.length,Dt=X&&!lt,Kt=ve&&!wt;if(!X&&Xe){ie=Kt?ie:new $t(this);var _t=a.apply(ie,de);return _t.__actions__.push({func:eh,args:[Qe],thisArg:n}),new Sr(_t,lt)}return Dt&&Kt?a.apply(this,de):(_t=this.thru(Qe),Dt?_?_t.value()[0]:_t.value():_t)})}),ne(["pop","push","shift","sort","splice","unshift"],function(a){var u=Gn[a],w=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",_=/^(?:pop|shift)$/.test(a);z.prototype[a]=function(){var $=arguments;if(_&&!this.__chain__){var X=this.value();return u.apply(Ht(X)?X:[],$)}return this[w](function(ie){return u.apply(Ht(ie)?ie:[],$)})}}),Si($t.prototype,function(a,u){var w=z[u];if(w){var _=w.name+"";Ot.call(ja,_)||(ja[_]=[]),ja[_].push({name:u,func:w})}}),ja[be(n,R).name]=[{name:"wrapper",func:n}],$t.prototype.clone=Fl,$t.prototype.reverse=Js,$t.prototype.value=Nl,z.prototype.at=I_,z.prototype.chain=A_,z.prototype.commit=M_,z.prototype.next=L_,z.prototype.plant=N_,z.prototype.reverse=j_,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=B_,z.prototype.first=z.prototype.head,Gi&&(z.prototype[Gi]=F_),z},Oe=Se();yi?((yi.exports=Oe)._=Oe,Io._=Oe):un._=Oe}).call(Ci)})(wp,wp.exports);var DO=wp.exports;const a6=Eu(DO);function s1(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function s6(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,i=e.stopIndex;return!(r>n||i<t)}function l6(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,i=e.startIndex,o=e.stopIndex,s=[],c=null,f=null,p=i;p<=o;p++){var y=t(p);y?f!==null&&(s.push(c,f),c=f=null):(f=p,c===null&&(c=p))}if(f!==null){for(var g=Math.min(Math.max(f,c+r-1),n-1),T=f+1;T<=g&&!t(T);T++)f=T;s.push(c,f)}if(s.length)for(;s[1]-s[0]+1<r&&s[0]>0;){var C=s[0]-1;if(!t(C))s[0]=C;else break}return s}var u6=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},c6=function(){function e(t,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(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f6=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},l1=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},d6=function(e){f6(t,e);function t(){var n,r,i,o;u6(this,t);for(var s=arguments.length,c=Array(s),f=0;f<s;f++)c[f]=arguments[f];return o=(r=(i=l1(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(c))),i),i._lastRenderedStartIndex=-1,i._lastRenderedStopIndex=-1,i._memoizedUnloadedRanges=[],i._onItemsRendered=function(p){var y=p.visibleStartIndex,g=p.visibleStopIndex;process.env.NODE_ENV!=="production"&&((!s1(y)||!s1(g))&&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=g,i._ensureRowsLoaded(y,g)},i._setRef=function(p){i._listRef=p},r),l1(i,o)}return c6(t,[{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,s=o.isItemLoaded,c=o.itemCount,f=o.minimumBatchSize,p=f===void 0?10:f,y=o.threshold,g=y===void 0?15:y,T=l6({isItemLoaded:s,itemCount:c,minimumBatchSize:p,startIndex:Math.max(0,r-g),stopIndex:Math.min(c-1,i+g)});(this._memoizedUnloadedRanges.length!==T.length||this._memoizedUnloadedRanges.some(function(C,P){return T[P]!==C}))&&(this._memoizedUnloadedRanges=T,this._loadUnloadedRanges(T))}},{key:"_loadUnloadedRanges",value:function(r){for(var i=this,o=this.props.loadMoreItems||this.props.loadMoreRows,s=function(p){var y=r[p],g=r[p+1],T=o(y,g);T!=null&&T.then(function(){if(s6({lastRenderedStartIndex:i._lastRenderedStartIndex,lastRenderedStopIndex:i._lastRenderedStopIndex,startIndex:y,stopIndex:g})){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)s(c)}}]),t}(q.PureComponent),wv={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
|
+
*/var u1;function _O(){return u1||(u1=1,function(e){(function(t,n){e.exports=t.document?n(t,!0):function(r){if(!r.document)throw new Error("jQuery requires a window with a document");return n(r)}})(typeof window<"u"?window:Ci,function(t,n){var r=[],i=Object.getPrototypeOf,o=r.slice,s=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,g=p.hasOwnProperty,T=g.toString,C=T.call(Object),P={},I=function(b){return typeof b=="function"&&typeof b.nodeType!="number"&&typeof b.item!="function"},M=function(b){return b!=null&&b===b.window},R=t.document,V={type:!0,src:!0,nonce:!0,noModule:!0};function U(h,b,E){E=E||R;var D,F,j=E.createElement("script");if(j.text=h,b)for(D in V)F=b[D]||b.getAttribute&&b.getAttribute(D),F&&j.setAttribute(D,F);E.head.appendChild(j).parentNode.removeChild(j)}function Q(h){return h==null?h+"":typeof h=="object"||typeof h=="function"?p[y.call(h)]||"object":typeof h}var K="3.7.1",ue=/HTML$/i,S=function(h,b){return new S.fn.init(h,b)};S.fn=S.prototype={jquery:K,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,E){return h.call(b,E,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,E=+h+(h<0?b:0);return this.pushStack(E>=0&&E<b?[this[E]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:r.sort,splice:r.splice},S.extend=S.fn.extend=function(){var h,b,E,D,F,j,H=arguments[0]||{},oe=1,ne=arguments.length,pe=!1;for(typeof H=="boolean"&&(pe=H,H=arguments[oe]||{},oe++),typeof H!="object"&&!I(H)&&(H={}),oe===ne&&(H=this,oe--);oe<ne;oe++)if((h=arguments[oe])!=null)for(b in h)D=h[b],!(b==="__proto__"||H===D)&&(pe&&D&&(S.isPlainObject(D)||(F=Array.isArray(D)))?(E=H[b],F&&!Array.isArray(E)?j=[]:!F&&!S.isPlainObject(E)?j={}:j=E,F=!1,H[b]=S.extend(pe,j,D)):D!==void 0&&(H[b]=D));return H},S.extend({expando:"jQuery"+(K+Math.random()).replace(/\D/g,""),isReady:!0,error:function(h){throw new Error(h)},noop:function(){},isPlainObject:function(h){var b,E;return!h||y.call(h)!=="[object Object]"?!1:(b=i(h),b?(E=g.call(b,"constructor")&&b.constructor,typeof E=="function"&&T.call(E)===C):!0)},isEmptyObject:function(h){var b;for(b in h)return!1;return!0},globalEval:function(h,b,E){U(h,{nonce:b&&b.nonce},E)},each:function(h,b){var E,D=0;if(he(h))for(E=h.length;D<E&&b.call(h[D],D,h[D])!==!1;D++);else for(D in h)if(b.call(h[D],D,h[D])===!1)break;return h},text:function(h){var b,E="",D=0,F=h.nodeType;if(!F)for(;b=h[D++];)E+=S.text(b);return F===1||F===11?h.textContent:F===9?h.documentElement.textContent:F===3||F===4?h.nodeValue:E},makeArray:function(h,b){var E=b||[];return h!=null&&(he(Object(h))?S.merge(E,typeof h=="string"?[h]:h):c.call(E,h)),E},inArray:function(h,b,E){return b==null?-1:f.call(b,h,E)},isXMLDoc:function(h){var b=h&&h.namespaceURI,E=h&&(h.ownerDocument||h).documentElement;return!ue.test(b||E&&E.nodeName||"HTML")},merge:function(h,b){for(var E=+b.length,D=0,F=h.length;D<E;D++)h[F++]=b[D];return h.length=F,h},grep:function(h,b,E){for(var D,F=[],j=0,H=h.length,oe=!E;j<H;j++)D=!b(h[j],j),D!==oe&&F.push(h[j]);return F},map:function(h,b,E){var D,F,j=0,H=[];if(he(h))for(D=h.length;j<D;j++)F=b(h[j],j,E),F!=null&&H.push(F);else for(j in h)F=b(h[j],j,E),F!=null&&H.push(F);return s(H)},guid:1,support:P}),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 he(h){var b=!!h&&"length"in h&&h.length,E=Q(h);return I(h)||M(h)?!1:E==="array"||b===0||typeof b=="number"&&b>0&&b-1 in h}function ae(h,b){return h.nodeName&&h.nodeName.toLowerCase()===b.toLowerCase()}var Ge=r.pop,Re=r.sort,Me=r.splice,$e="[\\x20\\t\\r\\n\\f]",Ue=new RegExp("^"+$e+"+|((?:^|[^\\\\])(?:\\\\.)*)"+$e+"+$","g");S.contains=function(h,b){var E=b&&b.parentNode;return h===E||!!(E&&E.nodeType===1&&(h.contains?h.contains(E):h.compareDocumentPosition&&h.compareDocumentPosition(E)&16))};var ce=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function Te(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(ce,Te)};var Ne=R,We=c;(function(){var h,b,E,D,F,j=We,H,oe,ne,pe,De,Ie=S.expando,xe=0,Ye=0,at=Mn(),Ct=Mn(),kt=Mn(),In=Mn(),cn=function(J,fe){return J===fe&&(F=!0),0},Mr="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Lr="(?:\\\\[\\da-fA-F]{1,6}"+$e+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Ft="\\["+$e+"*("+Lr+")(?:"+$e+"*([*^$|!~]?=)"+$e+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Lr+"))|)"+$e+"*\\]",Fr=":("+Lr+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Ft+")*)|.*)\\)|)",jt=new RegExp($e+"+","g"),en=new RegExp("^"+$e+"*,"+$e+"*"),fo=new RegExp("^"+$e+"*([>+~]|"+$e+")"+$e+"*"),ho=new RegExp($e+"|>"),xr=new RegExp(Fr),O=new RegExp("^"+Lr+"$"),L={ID:new RegExp("^#("+Lr+")"),CLASS:new RegExp("^\\.("+Lr+")"),TAG:new RegExp("^("+Lr+"|[*])"),ATTR:new RegExp("^"+Ft),PSEUDO:new RegExp("^"+Fr),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+$e+"*(even|odd|(([+-]|)(\\d*)n|)"+$e+"*(?:([+-]|)"+$e+"*(\\d+)|))"+$e+"*\\)|)","i"),bool:new RegExp("^(?:"+Mr+")$","i"),needsContext:new RegExp("^"+$e+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+$e+"*((?:-\\d)?\\d*)"+$e+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,ee=/^h\d$/i,me=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ye=/[+~]/,Fe=new RegExp("\\\\[\\da-fA-F]{1,6}"+$e+"?|\\\\([^\\r\\n\\f])","g"),Ke=function(J,fe){var Se="0x"+J.slice(1)-65536;return fe||(Se<0?String.fromCharCode(Se+65536):String.fromCharCode(Se>>10|55296,Se&1023|56320))},gt=function(){Ri()},Pt=go(function(J){return J.disabled===!0&&ae(J,"fieldset")},{dir:"parentNode",next:"legend"});function Tt(){try{return H.activeElement}catch{}}try{j.apply(r=o.call(Ne.childNodes),Ne.childNodes),r[Ne.childNodes.length].nodeType}catch{j={apply:function(fe,Se){We.apply(fe,o.call(Se))},call:function(fe){We.apply(fe,o.call(arguments,1))}}}function yt(J,fe,Se,Oe){var Z,le,se,Ae,Ve,st,ut,ot=fe&&fe.ownerDocument,Mt=fe?fe.nodeType:9;if(Se=Se||[],typeof J!="string"||!J||Mt!==1&&Mt!==9&&Mt!==11)return Se;if(!Oe&&(Ri(fe),fe=fe||H,ne)){if(Mt!==11&&(Ve=me.exec(J)))if(Z=Ve[1]){if(Mt===9)if(se=fe.getElementById(Z)){if(se.id===Z)return j.call(Se,se),Se}else return Se;else if(ot&&(se=ot.getElementById(Z))&&yt.contains(fe,se)&&se.id===Z)return j.call(Se,se),Se}else{if(Ve[2])return j.apply(Se,fe.getElementsByTagName(J)),Se;if((Z=Ve[3])&&fe.getElementsByClassName)return j.apply(Se,fe.getElementsByClassName(Z)),Se}if(!In[J+" "]&&(!pe||!pe.test(J))){if(ut=J,ot=fe,Mt===1&&(ho.test(J)||fo.test(J))){for(ot=ye.test(J)&&Ws(fe.parentNode)||fe,(ot!=fe||!P.scope)&&((Ae=fe.getAttribute("id"))?Ae=S.escapeSelector(Ae):fe.setAttribute("id",Ae=Ie)),st=na(J),le=st.length;le--;)st[le]=(Ae?"#"+Ae:":scope")+" "+ei(st[le]);ut=st.join(",")}try{return j.apply(Se,ot.querySelectorAll(ut)),Se}catch{In(J,!0)}finally{Ae===Ie&&fe.removeAttribute("id")}}}return La(J.replace(Ue,"$1"),fe,Se,Oe)}function Mn(){var J=[];function fe(Se,Oe){return J.push(Se+" ")>b.cacheLength&&delete fe[J.shift()],fe[Se+" "]=Oe}return fe}function xn(J){return J[Ie]=!0,J}function Vn(J){var fe=H.createElement("fieldset");try{return!!J(fe)}catch{return!1}finally{fe.parentNode&&fe.parentNode.removeChild(fe),fe=null}}function ta(J){return function(fe){return ae(fe,"input")&&fe.type===J}}function ls(J){return function(fe){return(ae(fe,"input")||ae(fe,"button"))&&fe.type===J}}function po(J){return function(fe){return"form"in fe?fe.parentNode&&fe.disabled===!1?"label"in fe?"label"in fe.parentNode?fe.parentNode.disabled===J:fe.disabled===J:fe.isDisabled===J||fe.isDisabled!==!J&&Pt(fe)===J:fe.disabled===J:"label"in fe?fe.disabled===J:!1}}function Qr(J){return xn(function(fe){return fe=+fe,xn(function(Se,Oe){for(var Z,le=J([],Se.length,fe),se=le.length;se--;)Se[Z=le[se]]&&(Se[Z]=!(Oe[Z]=Se[Z]))})})}function Ws(J){return J&&typeof J.getElementsByTagName<"u"&&J}function Ri(J){var fe,Se=J?J.ownerDocument||J:Ne;return Se==H||Se.nodeType!==9||!Se.documentElement||(H=Se,oe=H.documentElement,ne=!S.isXMLDoc(H),De=oe.matches||oe.webkitMatchesSelector||oe.msMatchesSelector,oe.msMatchesSelector&&Ne!=H&&(fe=H.defaultView)&&fe.top!==fe&&fe.addEventListener("unload",gt),P.getById=Vn(function(Oe){return oe.appendChild(Oe).id=S.expando,!H.getElementsByName||!H.getElementsByName(S.expando).length}),P.disconnectedMatch=Vn(function(Oe){return De.call(Oe,"*")}),P.scope=Vn(function(){return H.querySelectorAll(":scope")}),P.cssHas=Vn(function(){try{return H.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),P.getById?(b.filter.ID=function(Oe){var Z=Oe.replace(Fe,Ke);return function(le){return le.getAttribute("id")===Z}},b.find.ID=function(Oe,Z){if(typeof Z.getElementById<"u"&&ne){var le=Z.getElementById(Oe);return le?[le]:[]}}):(b.filter.ID=function(Oe){var Z=Oe.replace(Fe,Ke);return function(le){var se=typeof le.getAttributeNode<"u"&&le.getAttributeNode("id");return se&&se.value===Z}},b.find.ID=function(Oe,Z){if(typeof Z.getElementById<"u"&&ne){var le,se,Ae,Ve=Z.getElementById(Oe);if(Ve){if(le=Ve.getAttributeNode("id"),le&&le.value===Oe)return[Ve];for(Ae=Z.getElementsByName(Oe),se=0;Ve=Ae[se++];)if(le=Ve.getAttributeNode("id"),le&&le.value===Oe)return[Ve]}return[]}}),b.find.TAG=function(Oe,Z){return typeof Z.getElementsByTagName<"u"?Z.getElementsByTagName(Oe):Z.querySelectorAll(Oe)},b.find.CLASS=function(Oe,Z){if(typeof Z.getElementsByClassName<"u"&&ne)return Z.getElementsByClassName(Oe)},pe=[],Vn(function(Oe){var Z;oe.appendChild(Oe).innerHTML="<a id='"+Ie+"' href='' disabled='disabled'></a><select id='"+Ie+"-\r\\' disabled='disabled'><option selected=''></option></select>",Oe.querySelectorAll("[selected]").length||pe.push("\\["+$e+"*(?:value|"+Mr+")"),Oe.querySelectorAll("[id~="+Ie+"-]").length||pe.push("~="),Oe.querySelectorAll("a#"+Ie+"+*").length||pe.push(".#.+[+~]"),Oe.querySelectorAll(":checked").length||pe.push(":checked"),Z=H.createElement("input"),Z.setAttribute("type","hidden"),Oe.appendChild(Z).setAttribute("name","D"),oe.appendChild(Oe).disabled=!0,Oe.querySelectorAll(":disabled").length!==2&&pe.push(":enabled",":disabled"),Z=H.createElement("input"),Z.setAttribute("name",""),Oe.appendChild(Z),Oe.querySelectorAll("[name='']").length||pe.push("\\["+$e+"*name"+$e+"*="+$e+`*(?:''|"")`)}),P.cssHas||pe.push(":has"),pe=pe.length&&new RegExp(pe.join("|")),cn=function(Oe,Z){if(Oe===Z)return F=!0,0;var le=!Oe.compareDocumentPosition-!Z.compareDocumentPosition;return le||(le=(Oe.ownerDocument||Oe)==(Z.ownerDocument||Z)?Oe.compareDocumentPosition(Z):1,le&1||!P.sortDetached&&Z.compareDocumentPosition(Oe)===le?Oe===H||Oe.ownerDocument==Ne&&yt.contains(Ne,Oe)?-1:Z===H||Z.ownerDocument==Ne&&yt.contains(Ne,Z)?1:D?f.call(D,Oe)-f.call(D,Z):0:le&4?-1:1)}),H}yt.matches=function(J,fe){return yt(J,null,null,fe)},yt.matchesSelector=function(J,fe){if(Ri(J),ne&&!In[fe+" "]&&(!pe||!pe.test(fe)))try{var Se=De.call(J,fe);if(Se||P.disconnectedMatch||J.document&&J.document.nodeType!==11)return Se}catch{In(fe,!0)}return yt(fe,H,null,[J]).length>0},yt.contains=function(J,fe){return(J.ownerDocument||J)!=H&&Ri(J),S.contains(J,fe)},yt.attr=function(J,fe){(J.ownerDocument||J)!=H&&Ri(J);var Se=b.attrHandle[fe.toLowerCase()],Oe=Se&&g.call(b.attrHandle,fe.toLowerCase())?Se(J,fe,!ne):void 0;return Oe!==void 0?Oe:J.getAttribute(fe)},yt.error=function(J){throw new Error("Syntax error, unrecognized expression: "+J)},S.uniqueSort=function(J){var fe,Se=[],Oe=0,Z=0;if(F=!P.sortStable,D=!P.sortStable&&o.call(J,0),Re.call(J,cn),F){for(;fe=J[Z++];)fe===J[Z]&&(Oe=Se.push(Z));for(;Oe--;)Me.call(J,Se[Oe],1)}return D=null,J},S.fn.uniqueSort=function(){return this.pushStack(S.uniqueSort(o.apply(this)))},b=S.expr={cacheLength:50,createPseudo:xn,match:L,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(Fe,Ke),J[3]=(J[3]||J[4]||J[5]||"").replace(Fe,Ke),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 fe,Se=!J[6]&&J[2];return L.CHILD.test(J[0])?null:(J[3]?J[2]=J[4]||J[5]||"":Se&&xr.test(Se)&&(fe=na(Se,!0))&&(fe=Se.indexOf(")",Se.length-fe)-Se.length)&&(J[0]=J[0].slice(0,fe),J[2]=Se.slice(0,fe)),J.slice(0,3))}},filter:{TAG:function(J){var fe=J.replace(Fe,Ke).toLowerCase();return J==="*"?function(){return!0}:function(Se){return ae(Se,fe)}},CLASS:function(J){var fe=at[J+" "];return fe||(fe=new RegExp("(^|"+$e+")"+J+"("+$e+"|$)"))&&at(J,function(Se){return fe.test(typeof Se.className=="string"&&Se.className||typeof Se.getAttribute<"u"&&Se.getAttribute("class")||"")})},ATTR:function(J,fe,Se){return function(Oe){var Z=yt.attr(Oe,J);return Z==null?fe==="!=":fe?(Z+="",fe==="="?Z===Se:fe==="!="?Z!==Se:fe==="^="?Se&&Z.indexOf(Se)===0:fe==="*="?Se&&Z.indexOf(Se)>-1:fe==="$="?Se&&Z.slice(-Se.length)===Se:fe==="~="?(" "+Z.replace(jt," ")+" ").indexOf(Se)>-1:fe==="|="?Z===Se||Z.slice(0,Se.length+1)===Se+"-":!1):!0}},CHILD:function(J,fe,Se,Oe,Z){var le=J.slice(0,3)!=="nth",se=J.slice(-4)!=="last",Ae=fe==="of-type";return Oe===1&&Z===0?function(Ve){return!!Ve.parentNode}:function(Ve,st,ut){var ot,Mt,xt,Vt,Gn,tr=le!==se?"nextSibling":"previousSibling",Ln=Ve.parentNode,zt=Ae&&Ve.nodeName.toLowerCase(),Nr=!ut&&!Ae,Ot=!1;if(Ln){if(le){for(;tr;){for(xt=Ve;xt=xt[tr];)if(Ae?ae(xt,zt):xt.nodeType===1)return!1;Gn=tr=J==="only"&&!Gn&&"nextSibling"}return!0}if(Gn=[se?Ln.firstChild:Ln.lastChild],se&&Nr){for(Mt=Ln[Ie]||(Ln[Ie]={}),ot=Mt[J]||[],Vt=ot[0]===xe&&ot[1],Ot=Vt&&ot[2],xt=Vt&&Ln.childNodes[Vt];xt=++Vt&&xt&&xt[tr]||(Ot=Vt=0)||Gn.pop();)if(xt.nodeType===1&&++Ot&&xt===Ve){Mt[J]=[xe,Vt,Ot];break}}else if(Nr&&(Mt=Ve[Ie]||(Ve[Ie]={}),ot=Mt[J]||[],Vt=ot[0]===xe&&ot[1],Ot=Vt),Ot===!1)for(;(xt=++Vt&&xt&&xt[tr]||(Ot=Vt=0)||Gn.pop())&&!((Ae?ae(xt,zt):xt.nodeType===1)&&++Ot&&(Nr&&(Mt=xt[Ie]||(xt[Ie]={}),Mt[J]=[xe,Ot]),xt===Ve)););return Ot-=Z,Ot===Oe||Ot%Oe===0&&Ot/Oe>=0}}},PSEUDO:function(J,fe){var Se,Oe=b.pseudos[J]||b.setFilters[J.toLowerCase()]||yt.error("unsupported pseudo: "+J);return Oe[Ie]?Oe(fe):Oe.length>1?(Se=[J,J,"",fe],b.setFilters.hasOwnProperty(J.toLowerCase())?xn(function(Z,le){for(var se,Ae=Oe(Z,fe),Ve=Ae.length;Ve--;)se=f.call(Z,Ae[Ve]),Z[se]=!(le[se]=Ae[Ve])}):function(Z){return Oe(Z,0,Se)}):Oe}},pseudos:{not:xn(function(J){var fe=[],Se=[],Oe=fs(J.replace(Ue,"$1"));return Oe[Ie]?xn(function(Z,le,se,Ae){for(var Ve,st=Oe(Z,null,Ae,[]),ut=Z.length;ut--;)(Ve=st[ut])&&(Z[ut]=!(le[ut]=Ve))}):function(Z,le,se){return fe[0]=Z,Oe(fe,null,se,Se),fe[0]=null,!Se.pop()}}),has:xn(function(J){return function(fe){return yt(J,fe).length>0}}),contains:xn(function(J){return J=J.replace(Fe,Ke),function(fe){return(fe.textContent||S.text(fe)).indexOf(J)>-1}}),lang:xn(function(J){return O.test(J||"")||yt.error("unsupported lang: "+J),J=J.replace(Fe,Ke).toLowerCase(),function(fe){var Se;do if(Se=ne?fe.lang:fe.getAttribute("xml:lang")||fe.getAttribute("lang"))return Se=Se.toLowerCase(),Se===J||Se.indexOf(J+"-")===0;while((fe=fe.parentNode)&&fe.nodeType===1);return!1}}),target:function(J){var fe=t.location&&t.location.hash;return fe&&fe.slice(1)===J.id},root:function(J){return J===oe},focus:function(J){return J===Tt()&&H.hasFocus()&&!!(J.type||J.href||~J.tabIndex)},enabled:po(!1),disabled:po(!0),checked:function(J){return ae(J,"input")&&!!J.checked||ae(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 ee.test(J.nodeName)},input:function(J){return W.test(J.nodeName)},button:function(J){return ae(J,"input")&&J.type==="button"||ae(J,"button")},text:function(J){var fe;return ae(J,"input")&&J.type==="text"&&((fe=J.getAttribute("type"))==null||fe.toLowerCase()==="text")},first:Qr(function(){return[0]}),last:Qr(function(J,fe){return[fe-1]}),eq:Qr(function(J,fe,Se){return[Se<0?Se+fe:Se]}),even:Qr(function(J,fe){for(var Se=0;Se<fe;Se+=2)J.push(Se);return J}),odd:Qr(function(J,fe){for(var Se=1;Se<fe;Se+=2)J.push(Se);return J}),lt:Qr(function(J,fe,Se){var Oe;for(Se<0?Oe=Se+fe:Se>fe?Oe=fe:Oe=Se;--Oe>=0;)J.push(Oe);return J}),gt:Qr(function(J,fe,Se){for(var Oe=Se<0?Se+fe:Se;++Oe<fe;)J.push(Oe);return J})}},b.pseudos.nth=b.pseudos.eq;for(h in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[h]=ta(h);for(h in{submit:!0,reset:!0})b.pseudos[h]=ls(h);function us(){}us.prototype=b.filters=b.pseudos,b.setFilters=new us;function na(J,fe){var Se,Oe,Z,le,se,Ae,Ve,st=Ct[J+" "];if(st)return fe?0:st.slice(0);for(se=J,Ae=[],Ve=b.preFilter;se;){(!Se||(Oe=en.exec(se)))&&(Oe&&(se=se.slice(Oe[0].length)||se),Ae.push(Z=[])),Se=!1,(Oe=fo.exec(se))&&(Se=Oe.shift(),Z.push({value:Se,type:Oe[0].replace(Ue," ")}),se=se.slice(Se.length));for(le in b.filter)(Oe=L[le].exec(se))&&(!Ve[le]||(Oe=Ve[le](Oe)))&&(Se=Oe.shift(),Z.push({value:Se,type:le,matches:Oe}),se=se.slice(Se.length));if(!Se)break}return fe?se.length:se?yt.error(J):Ct(J,Ae).slice(0)}function ei(J){for(var fe=0,Se=J.length,Oe="";fe<Se;fe++)Oe+=J[fe].value;return Oe}function go(J,fe,Se){var Oe=fe.dir,Z=fe.next,le=Z||Oe,se=Se&&le==="parentNode",Ae=Ye++;return fe.first?function(Ve,st,ut){for(;Ve=Ve[Oe];)if(Ve.nodeType===1||se)return J(Ve,st,ut);return!1}:function(Ve,st,ut){var ot,Mt,xt=[xe,Ae];if(ut){for(;Ve=Ve[Oe];)if((Ve.nodeType===1||se)&&J(Ve,st,ut))return!0}else for(;Ve=Ve[Oe];)if(Ve.nodeType===1||se)if(Mt=Ve[Ie]||(Ve[Ie]={}),Z&&ae(Ve,Z))Ve=Ve[Oe]||Ve;else{if((ot=Mt[le])&&ot[0]===xe&&ot[1]===Ae)return xt[2]=ot[2];if(Mt[le]=xt,xt[2]=J(Ve,st,ut))return!0}return!1}}function zs(J){return J.length>1?function(fe,Se,Oe){for(var Z=J.length;Z--;)if(!J[Z](fe,Se,Oe))return!1;return!0}:J[0]}function Du(J,fe,Se){for(var Oe=0,Z=fe.length;Oe<Z;Oe++)yt(J,fe[Oe],Se);return Se}function cs(J,fe,Se,Oe,Z){for(var le,se=[],Ae=0,Ve=J.length,st=fe!=null;Ae<Ve;Ae++)(le=J[Ae])&&(!Se||Se(le,Oe,Z))&&(se.push(le),st&&fe.push(Ae));return se}function vo(J,fe,Se,Oe,Z,le){return Oe&&!Oe[Ie]&&(Oe=vo(Oe)),Z&&!Z[Ie]&&(Z=vo(Z,le)),xn(function(se,Ae,Ve,st){var ut,ot,Mt,xt,Vt=[],Gn=[],tr=Ae.length,Ln=se||Du(fe||"*",Ve.nodeType?[Ve]:Ve,[]),zt=J&&(se||!fe)?cs(Ln,Vt,J,Ve,st):Ln;if(Se?(xt=Z||(se?J:tr||Oe)?[]:Ae,Se(zt,xt,Ve,st)):xt=zt,Oe)for(ut=cs(xt,Gn),Oe(ut,[],Ve,st),ot=ut.length;ot--;)(Mt=ut[ot])&&(xt[Gn[ot]]=!(zt[Gn[ot]]=Mt));if(se){if(Z||J){if(Z){for(ut=[],ot=xt.length;ot--;)(Mt=xt[ot])&&ut.push(zt[ot]=Mt);Z(null,xt=[],ut,st)}for(ot=xt.length;ot--;)(Mt=xt[ot])&&(ut=Z?f.call(se,Mt):Vt[ot])>-1&&(se[ut]=!(Ae[ut]=Mt))}}else xt=cs(xt===Ae?xt.splice(tr,xt.length):xt),Z?Z(null,Ae,xt,st):j.apply(Ae,xt)})}function fn(J){for(var fe,Se,Oe,Z=J.length,le=b.relative[J[0].type],se=le||b.relative[" "],Ae=le?1:0,Ve=go(function(ot){return ot===fe},se,!0),st=go(function(ot){return f.call(fe,ot)>-1},se,!0),ut=[function(ot,Mt,xt){var Vt=!le&&(xt||Mt!=E)||((fe=Mt).nodeType?Ve(ot,Mt,xt):st(ot,Mt,xt));return fe=null,Vt}];Ae<Z;Ae++)if(Se=b.relative[J[Ae].type])ut=[go(zs(ut),Se)];else{if(Se=b.filter[J[Ae].type].apply(null,J[Ae].matches),Se[Ie]){for(Oe=++Ae;Oe<Z&&!b.relative[J[Oe].type];Oe++);return vo(Ae>1&&zs(ut),Ae>1&&ei(J.slice(0,Ae-1).concat({value:J[Ae-2].type===" "?"*":""})).replace(Ue,"$1"),Se,Ae<Oe&&fn(J.slice(Ae,Oe)),Oe<Z&&fn(J=J.slice(Oe)),Oe<Z&&ei(J))}ut.push(Se)}return zs(ut)}function Rl(J,fe){var Se=fe.length>0,Oe=J.length>0,Z=function(le,se,Ae,Ve,st){var ut,ot,Mt,xt=0,Vt="0",Gn=le&&[],tr=[],Ln=E,zt=le||Oe&&b.find.TAG("*",st),Nr=xe+=Ln==null?1:Math.random()||.1,Ot=zt.length;for(st&&(E=se==H||se||st);Vt!==Ot&&(ut=zt[Vt])!=null;Vt++){if(Oe&&ut){for(ot=0,!se&&ut.ownerDocument!=H&&(Ri(ut),Ae=!ne);Mt=J[ot++];)if(Mt(ut,se||H,Ae)){j.call(Ve,ut);break}st&&(xe=Nr)}Se&&((ut=!Mt&&ut)&&xt--,le&&Gn.push(ut))}if(xt+=Vt,Se&&Vt!==xt){for(ot=0;Mt=fe[ot++];)Mt(Gn,tr,se,Ae);if(le){if(xt>0)for(;Vt--;)Gn[Vt]||tr[Vt]||(tr[Vt]=Ge.call(Ve));tr=cs(tr)}j.apply(Ve,tr),st&&!le&&tr.length>0&&xt+fe.length>1&&S.uniqueSort(Ve)}return st&&(xe=Nr,E=Ln),Gn};return Se?xn(Z):Z}function fs(J,fe){var Se,Oe=[],Z=[],le=kt[J+" "];if(!le){for(fe||(fe=na(J)),Se=fe.length;Se--;)le=fn(fe[Se]),le[Ie]?Oe.push(le):Z.push(le);le=kt(J,Rl(Z,Oe)),le.selector=J}return le}function La(J,fe,Se,Oe){var Z,le,se,Ae,Ve,st=typeof J=="function"&&J,ut=!Oe&&na(J=st.selector||J);if(Se=Se||[],ut.length===1){if(le=ut[0]=ut[0].slice(0),le.length>2&&(se=le[0]).type==="ID"&&fe.nodeType===9&&ne&&b.relative[le[1].type]){if(fe=(b.find.ID(se.matches[0].replace(Fe,Ke),fe)||[])[0],fe)st&&(fe=fe.parentNode);else return Se;J=J.slice(le.shift().value.length)}for(Z=L.needsContext.test(J)?0:le.length;Z--&&(se=le[Z],!b.relative[Ae=se.type]);)if((Ve=b.find[Ae])&&(Oe=Ve(se.matches[0].replace(Fe,Ke),ye.test(le[0].type)&&Ws(fe.parentNode)||fe))){if(le.splice(Z,1),J=Oe.length&&ei(le),!J)return j.apply(Se,Oe),Se;break}}return(st||fs(J,ut))(Oe,fe,!ne,Se,!fe||ye.test(J)&&Ws(fe.parentNode)||fe),Se}P.sortStable=Ie.split("").sort(cn).join("")===Ie,Ri(),P.sortDetached=Vn(function(J){return J.compareDocumentPosition(H.createElement("fieldset"))&1}),S.find=yt,S.expr[":"]=S.expr.pseudos,S.unique=S.uniqueSort,yt.compile=fs,yt.select=La,yt.setDocument=Ri,yt.tokenize=na,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 tt=function(h,b,E){for(var D=[],F=E!==void 0;(h=h[b])&&h.nodeType!==9;)if(h.nodeType===1){if(F&&S(h).is(E))break;D.push(h)}return D},we=function(h,b){for(var E=[];h;h=h.nextSibling)h.nodeType===1&&h!==b&&E.push(h);return E},Ee=S.expr.match.needsContext,Le=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Be(h,b,E){return I(b)?S.grep(h,function(D,F){return!!b.call(D,F,D)!==E}):b.nodeType?S.grep(h,function(D){return D===b!==E}):typeof b!="string"?S.grep(h,function(D){return f.call(b,D)>-1!==E}):S.filter(b,h,E)}S.filter=function(h,b,E){var D=b[0];return E&&(h=":not("+h+")"),b.length===1&&D.nodeType===1?S.find.matchesSelector(D,h)?[D]:[]:S.find.matches(h,S.grep(b,function(F){return F.nodeType===1}))},S.fn.extend({find:function(h){var b,E,D=this.length,F=this;if(typeof h!="string")return this.pushStack(S(h).filter(function(){for(b=0;b<D;b++)if(S.contains(F[b],this))return!0}));for(E=this.pushStack([]),b=0;b<D;b++)S.find(h,F[b],E);return D>1?S.uniqueSort(E):E},filter:function(h){return this.pushStack(Be(this,h||[],!1))},not:function(h){return this.pushStack(Be(this,h||[],!0))},is:function(h){return!!Be(this,typeof h=="string"&&Ee.test(h)?S(h):h||[],!1).length}});var ke,_e=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,ze=S.fn.init=function(h,b,E){var D,F;if(!h)return this;if(E=E||ke,typeof h=="string")if(h[0]==="<"&&h[h.length-1]===">"&&h.length>=3?D=[null,h,null]:D=_e.exec(h),D&&(D[1]||!b))if(D[1]){if(b=b instanceof S?b[0]:b,S.merge(this,S.parseHTML(D[1],b&&b.nodeType?b.ownerDocument||b:R,!0)),Le.test(D[1])&&S.isPlainObject(b))for(D in b)I(this[D])?this[D](b[D]):this.attr(D,b[D]);return this}else return F=R.getElementById(D[2]),F&&(this[0]=F,this.length=1),this;else return!b||b.jquery?(b||E).find(h):this.constructor(b).find(h);else{if(h.nodeType)return this[0]=h,this.length=1,this;if(I(h))return E.ready!==void 0?E.ready(h):h(S)}return S.makeArray(h,this)};ze.prototype=S.fn,ke=S(R);var it=/^(?:parents|prev(?:Until|All))/,dt={children:!0,contents:!0,next:!0,prev:!0};S.fn.extend({has:function(h){var b=S(h,this),E=b.length;return this.filter(function(){for(var D=0;D<E;D++)if(S.contains(this,b[D]))return!0})},closest:function(h,b){var E,D=0,F=this.length,j=[],H=typeof h!="string"&&S(h);if(!Ee.test(h)){for(;D<F;D++)for(E=this[D];E&&E!==b;E=E.parentNode)if(E.nodeType<11&&(H?H.index(E)>-1:E.nodeType===1&&S.find.matchesSelector(E,h))){j.push(E);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 ht(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 tt(h,"parentNode")},parentsUntil:function(h,b,E){return tt(h,"parentNode",E)},next:function(h){return ht(h,"nextSibling")},prev:function(h){return ht(h,"previousSibling")},nextAll:function(h){return tt(h,"nextSibling")},prevAll:function(h){return tt(h,"previousSibling")},nextUntil:function(h,b,E){return tt(h,"nextSibling",E)},prevUntil:function(h,b,E){return tt(h,"previousSibling",E)},siblings:function(h){return we((h.parentNode||{}).firstChild,h)},children:function(h){return we(h.firstChild)},contents:function(h){return h.contentDocument!=null&&i(h.contentDocument)?h.contentDocument:(ae(h,"template")&&(h=h.content||h),S.merge([],h.childNodes))}},function(h,b){S.fn[h]=function(E,D){var F=S.map(this,b,E);return h.slice(-5)!=="Until"&&(D=E),D&&typeof D=="string"&&(F=S.filter(D,F)),this.length>1&&(dt[h]||S.uniqueSort(F),it.test(h)&&F.reverse()),this.pushStack(F)}});var ft=/[^\x20\t\r\n\f]+/g;function bt(h){var b={};return S.each(h.match(ft)||[],function(E,D){b[D]=!0}),b}S.Callbacks=function(h){h=typeof h=="string"?bt(h):S.extend({},h);var b,E,D,F,j=[],H=[],oe=-1,ne=function(){for(F=F||h.once,D=b=!0;H.length;oe=-1)for(E=H.shift();++oe<j.length;)j[oe].apply(E[0],E[1])===!1&&h.stopOnFalse&&(oe=j.length,E=!1);h.memory||(E=!1),b=!1,F&&(E?j=[]:j="")},pe={add:function(){return j&&(E&&!b&&(oe=j.length-1,H.push(E)),function De(Ie){S.each(Ie,function(xe,Ye){I(Ye)?(!h.unique||!pe.has(Ye))&&j.push(Ye):Ye&&Ye.length&&Q(Ye)!=="string"&&De(Ye)})}(arguments),E&&!b&&ne()),this},remove:function(){return S.each(arguments,function(De,Ie){for(var xe;(xe=S.inArray(Ie,j,xe))>-1;)j.splice(xe,1),xe<=oe&&oe--}),this},has:function(De){return De?S.inArray(De,j)>-1:j.length>0},empty:function(){return j&&(j=[]),this},disable:function(){return F=H=[],j=E="",this},disabled:function(){return!j},lock:function(){return F=H=[],!E&&!b&&(j=E=""),this},locked:function(){return!!F},fireWith:function(De,Ie){return F||(Ie=Ie||[],Ie=[De,Ie.slice?Ie.slice():Ie],H.push(Ie),b||ne()),this},fire:function(){return pe.fireWith(this,arguments),this},fired:function(){return!!D}};return pe};function et(h){return h}function At(h){throw h}function Lt(h,b,E,D){var F;try{h&&I(F=h.promise)?F.call(h).done(b).fail(E):h&&I(F=h.then)?F.call(h,b,E):b.apply(void 0,[h].slice(D))}catch(j){E.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"]],E="pending",D={state:function(){return E},always:function(){return F.done(arguments).fail(arguments),this},catch:function(j){return D.then(null,j)},pipe:function(){var j=arguments;return S.Deferred(function(H){S.each(b,function(oe,ne){var pe=I(j[ne[4]])&&j[ne[4]];F[ne[1]](function(){var De=pe&&pe.apply(this,arguments);De&&I(De.promise)?De.promise().progress(H.notify).done(H.resolve).fail(H.reject):H[ne[0]+"With"](this,pe?[De]:arguments)})}),j=null}).promise()},then:function(j,H,oe){var ne=0;function pe(De,Ie,xe,Ye){return function(){var at=this,Ct=arguments,kt=function(){var cn,Mr;if(!(De<ne)){if(cn=xe.apply(at,Ct),cn===Ie.promise())throw new TypeError("Thenable self-resolution");Mr=cn&&(typeof cn=="object"||typeof cn=="function")&&cn.then,I(Mr)?Ye?Mr.call(cn,pe(ne,Ie,et,Ye),pe(ne,Ie,At,Ye)):(ne++,Mr.call(cn,pe(ne,Ie,et,Ye),pe(ne,Ie,At,Ye),pe(ne,Ie,et,Ie.notifyWith))):(xe!==et&&(at=void 0,Ct=[cn]),(Ye||Ie.resolveWith)(at,Ct))}},In=Ye?kt:function(){try{kt()}catch(cn){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(cn,In.error),De+1>=ne&&(xe!==At&&(at=void 0,Ct=[cn]),Ie.rejectWith(at,Ct))}};De?In():(S.Deferred.getErrorHook?In.error=S.Deferred.getErrorHook():S.Deferred.getStackHook&&(In.error=S.Deferred.getStackHook()),t.setTimeout(In))}}return S.Deferred(function(De){b[0][3].add(pe(0,De,I(oe)?oe:et,De.notifyWith)),b[1][3].add(pe(0,De,I(j)?j:et)),b[2][3].add(pe(0,De,I(H)?H:At))}).promise()},promise:function(j){return j!=null?S.extend(j,D):D}},F={};return S.each(b,function(j,H){var oe=H[2],ne=H[5];D[H[1]]=oe.add,ne&&oe.add(function(){E=ne},b[3-j][2].disable,b[3-j][3].disable,b[0][2].lock,b[0][3].lock),oe.add(H[3].fire),F[H[0]]=function(){return F[H[0]+"With"](this===F?void 0:this,arguments),this},F[H[0]+"With"]=oe.fireWith}),D.promise(F),h&&h.call(F,F),F},when:function(h){var b=arguments.length,E=b,D=Array(E),F=o.call(arguments),j=S.Deferred(),H=function(oe){return function(ne){D[oe]=this,F[oe]=arguments.length>1?o.call(arguments):ne,--b||j.resolveWith(D,F)}};if(b<=1&&(Lt(h,j.done(H(E)).resolve,j.reject,!b),j.state()==="pending"||I(F[E]&&F[E].then)))return j.then();for(;E--;)Lt(F[E],H(E),j.reject);return j.promise()}});var Hn=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(h,b){t.console&&t.console.warn&&h&&Hn.test(h.name)&&t.console.warn("jQuery.Deferred exception: "+h.message,h.stack,b)},S.readyException=function(h){t.setTimeout(function(){throw h})};var gr=S.Deferred();S.fn.ready=function(h){return gr.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)&&gr.resolveWith(R,[S]))}}),S.ready.then=gr.then;function Un(){R.removeEventListener("DOMContentLoaded",Un),t.removeEventListener("load",Un),S.ready()}R.readyState==="complete"||R.readyState!=="loading"&&!R.documentElement.doScroll?t.setTimeout(S.ready):(R.addEventListener("DOMContentLoaded",Un),t.addEventListener("load",Un));var Cn=function(h,b,E,D,F,j,H){var oe=0,ne=h.length,pe=E==null;if(Q(E)==="object"){F=!0;for(oe in E)Cn(h,b,oe,E[oe],!0,j,H)}else if(D!==void 0&&(F=!0,I(D)||(H=!0),pe&&(H?(b.call(h,D),b=null):(pe=b,b=function(De,Ie,xe){return pe.call(S(De),xe)})),b))for(;oe<ne;oe++)b(h[oe],E,H?D:D.call(h[oe],oe,b(h[oe],E)));return F?h:pe?b.call(h):ne?b(h[0],E):j},ji=/^-ms-/,Er=/-([a-z])/g;function Zn(h,b){return b.toUpperCase()}function sn(h){return h.replace(ji,"ms-").replace(Er,Zn)}var dn=function(h){return h.nodeType===1||h.nodeType===9||!+h.nodeType};function hn(){this.expando=S.expando+hn.uid++}hn.uid=1,hn.prototype={cache:function(h){var b=h[this.expando];return b||(b={},dn(h)&&(h.nodeType?h[this.expando]=b:Object.defineProperty(h,this.expando,{value:b,configurable:!0}))),b},set:function(h,b,E){var D,F=this.cache(h);if(typeof b=="string")F[sn(b)]=E;else for(D in b)F[sn(D)]=b[D];return F},get:function(h,b){return b===void 0?this.cache(h):h[this.expando]&&h[this.expando][sn(b)]},access:function(h,b,E){return b===void 0||b&&typeof b=="string"&&E===void 0?this.get(h,b):(this.set(h,b,E),E!==void 0?E:b)},remove:function(h,b){var E,D=h[this.expando];if(D!==void 0){if(b!==void 0)for(Array.isArray(b)?b=b.map(sn):(b=sn(b),b=b in D?[b]:b.match(ft)||[]),E=b.length;E--;)delete D[b[E]];(b===void 0||S.isEmptyObject(D))&&(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 ct=new hn,Dn=new hn,oi=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,an=/[A-Z]/g;function Bi(h){return h==="true"?!0:h==="false"?!1:h==="null"?null:h===+h+""?+h:oi.test(h)?JSON.parse(h):h}function $i(h,b,E){var D;if(E===void 0&&h.nodeType===1)if(D="data-"+b.replace(an,"-$&").toLowerCase(),E=h.getAttribute(D),typeof E=="string"){try{E=Bi(E)}catch{}Dn.set(h,b,E)}else E=void 0;return E}S.extend({hasData:function(h){return Dn.hasData(h)||ct.hasData(h)},data:function(h,b,E){return Dn.access(h,b,E)},removeData:function(h,b){Dn.remove(h,b)},_data:function(h,b,E){return ct.access(h,b,E)},_removeData:function(h,b){ct.remove(h,b)}}),S.fn.extend({data:function(h,b){var E,D,F,j=this[0],H=j&&j.attributes;if(h===void 0){if(this.length&&(F=Dn.get(j),j.nodeType===1&&!ct.get(j,"hasDataAttrs"))){for(E=H.length;E--;)H[E]&&(D=H[E].name,D.indexOf("data-")===0&&(D=sn(D.slice(5)),$i(j,D,F[D])));ct.set(j,"hasDataAttrs",!0)}return F}return typeof h=="object"?this.each(function(){Dn.set(this,h)}):Cn(this,function(oe){var ne;if(j&&oe===void 0)return ne=Dn.get(j,h),ne!==void 0||(ne=$i(j,h),ne!==void 0)?ne:void 0;this.each(function(){Dn.set(this,h,oe)})},null,b,arguments.length>1,null,!0)},removeData:function(h){return this.each(function(){Dn.remove(this,h)})}}),S.extend({queue:function(h,b,E){var D;if(h)return b=(b||"fx")+"queue",D=ct.get(h,b),E&&(!D||Array.isArray(E)?D=ct.access(h,b,S.makeArray(E)):D.push(E)),D||[]},dequeue:function(h,b){b=b||"fx";var E=S.queue(h,b),D=E.length,F=E.shift(),j=S._queueHooks(h,b),H=function(){S.dequeue(h,b)};F==="inprogress"&&(F=E.shift(),D--),F&&(b==="fx"&&E.unshift("inprogress"),delete j.stop,F.call(h,H,j)),!D&&j&&j.empty.fire()},_queueHooks:function(h,b){var E=b+"queueHooks";return ct.get(h,E)||ct.access(h,E,{empty:S.Callbacks("once memory").add(function(){ct.remove(h,[b+"queue",E])})})}}),S.fn.extend({queue:function(h,b){var E=2;return typeof h!="string"&&(b=h,h="fx",E--),arguments.length<E?S.queue(this[0],h):b===void 0?this:this.each(function(){var D=S.queue(this,h,b);S._queueHooks(this,h),h==="fx"&&D[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 E,D=1,F=S.Deferred(),j=this,H=this.length,oe=function(){--D||F.resolveWith(j,[j])};for(typeof h!="string"&&(b=h,h=void 0),h=h||"fx";H--;)E=ct.get(j[H],h+"queueHooks"),E&&E.empty&&(D++,E.empty.add(oe));return oe(),F.promise(b)}});var Vi=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,kr=new RegExp("^(?:([+-])=|)("+Vi+")([a-z%]*)$","i"),jn=["Top","Right","Bottom","Left"],Or=R.documentElement,vr=function(h){return S.contains(h.ownerDocument,h)},zr={composed:!0};Or.getRootNode&&(vr=function(h){return S.contains(h.ownerDocument,h)||h.getRootNode(zr)===h.ownerDocument});var Yr=function(h,b){return h=b||h,h.style.display==="none"||h.style.display===""&&vr(h)&&S.css(h,"display")==="none"};function Po(h,b,E,D){var F,j,H=20,oe=D?function(){return D.cur()}:function(){return S.css(h,b,"")},ne=oe(),pe=E&&E[3]||(S.cssNumber[b]?"":"px"),De=h.nodeType&&(S.cssNumber[b]||pe!=="px"&&+ne)&&kr.exec(S.css(h,b));if(De&&De[3]!==pe){for(ne=ne/2,pe=pe||De[3],De=+ne||1;H--;)S.style(h,b,De+pe),(1-j)*(1-(j=oe()/ne||.5))<=0&&(H=0),De=De/j;De=De*2,S.style(h,b,De+pe),E=E||[]}return E&&(De=+De||+ne||0,F=E[1]?De+(E[1]+1)*E[2]:+E[2],D&&(D.unit=pe,D.start=De,D.end=F)),F}var Wn={};function Gr(h){var b,E=h.ownerDocument,D=h.nodeName,F=Wn[D];return F||(b=E.body.appendChild(E.createElement(D)),F=S.css(b,"display"),b.parentNode.removeChild(b),F==="none"&&(F="block"),Wn[D]=F,F)}function Jn(h,b){for(var E,D,F=[],j=0,H=h.length;j<H;j++)D=h[j],D.style&&(E=D.style.display,b?(E==="none"&&(F[j]=ct.get(D,"display")||null,F[j]||(D.style.display="")),D.style.display===""&&Yr(D)&&(F[j]=Gr(D))):E!=="none"&&(F[j]="none",ct.set(D,"display",E)));for(j=0;j<H;j++)F[j]!=null&&(h[j].style.display=F[j]);return h}S.fn.extend({show:function(){return Jn(this,!0)},hide:function(){return Jn(this)},toggle:function(h){return typeof h=="boolean"?h?this.show():this.hide():this.each(function(){Yr(this)?S(this).show():S(this).hide()})}});var Wt=/^(?:checkbox|radio)$/i,ai=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Hi=/^$|^module$|\/(?:java|ecma)script/i;(function(){var h=R.createDocumentFragment(),b=h.appendChild(R.createElement("div")),E=R.createElement("input");E.setAttribute("type","radio"),E.setAttribute("checked","checked"),E.setAttribute("name","t"),b.appendChild(E),P.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",P.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,b.innerHTML="<option></option>",P.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,P.option||(_n.optgroup=_n.option=[1,"<select multiple='multiple'>","</select>"]);function pn(h,b){var E;return typeof h.getElementsByTagName<"u"?E=h.getElementsByTagName(b||"*"):typeof h.querySelectorAll<"u"?E=h.querySelectorAll(b||"*"):E=[],b===void 0||b&&ae(h,b)?S.merge([h],E):E}function si(h,b){for(var E=0,D=h.length;E<D;E++)ct.set(h[E],"globalEval",!b||ct.get(b[E],"globalEval"))}var li=/<|&#?\w+;/;function En(h,b,E,D,F){for(var j,H,oe,ne,pe,De,Ie=b.createDocumentFragment(),xe=[],Ye=0,at=h.length;Ye<at;Ye++)if(j=h[Ye],j||j===0)if(Q(j)==="object")S.merge(xe,j.nodeType?[j]:j);else if(!li.test(j))xe.push(b.createTextNode(j));else{for(H=H||Ie.appendChild(b.createElement("div")),oe=(ai.exec(j)||["",""])[1].toLowerCase(),ne=_n[oe]||_n._default,H.innerHTML=ne[1]+S.htmlPrefilter(j)+ne[2],De=ne[0];De--;)H=H.lastChild;S.merge(xe,H.childNodes),H=Ie.firstChild,H.textContent=""}for(Ie.textContent="",Ye=0;j=xe[Ye++];){if(D&&S.inArray(j,D)>-1){F&&F.push(j);continue}if(pe=vr(j),H=pn(Ie.appendChild(j),"script"),pe&&si(H),E)for(De=0;j=H[De++];)Hi.test(j.type||"")&&E.push(j)}return Ie}var oo=/^([^.]*)(?:\.(.+)|)/;function mr(){return!0}function ui(){return!1}function ln(h,b,E,D,F,j){var H,oe;if(typeof b=="object"){typeof E!="string"&&(D=D||E,E=void 0);for(oe in b)ln(h,oe,E,D,b[oe],j);return h}if(D==null&&F==null?(F=E,D=E=void 0):F==null&&(typeof E=="string"?(F=D,D=void 0):(F=D,D=E,E=void 0)),F===!1)F=ui;else if(!F)return h;return j===1&&(H=F,F=function(ne){return S().off(ne),H.apply(this,arguments)},F.guid=H.guid||(H.guid=S.guid++)),h.each(function(){S.event.add(this,b,F,D,E)})}S.event={global:{},add:function(h,b,E,D,F){var j,H,oe,ne,pe,De,Ie,xe,Ye,at,Ct,kt=ct.get(h);if(dn(h))for(E.handler&&(j=E,E=j.handler,F=j.selector),F&&S.find.matchesSelector(Or,F),E.guid||(E.guid=S.guid++),(ne=kt.events)||(ne=kt.events=Object.create(null)),(H=kt.handle)||(H=kt.handle=function(In){return typeof S<"u"&&S.event.triggered!==In.type?S.event.dispatch.apply(h,arguments):void 0}),b=(b||"").match(ft)||[""],pe=b.length;pe--;)oe=oo.exec(b[pe])||[],Ye=Ct=oe[1],at=(oe[2]||"").split(".").sort(),Ye&&(Ie=S.event.special[Ye]||{},Ye=(F?Ie.delegateType:Ie.bindType)||Ye,Ie=S.event.special[Ye]||{},De=S.extend({type:Ye,origType:Ct,data:D,handler:E,guid:E.guid,selector:F,needsContext:F&&S.expr.match.needsContext.test(F),namespace:at.join(".")},j),(xe=ne[Ye])||(xe=ne[Ye]=[],xe.delegateCount=0,(!Ie.setup||Ie.setup.call(h,D,at,H)===!1)&&h.addEventListener&&h.addEventListener(Ye,H)),Ie.add&&(Ie.add.call(h,De),De.handler.guid||(De.handler.guid=E.guid)),F?xe.splice(xe.delegateCount++,0,De):xe.push(De),S.event.global[Ye]=!0)},remove:function(h,b,E,D,F){var j,H,oe,ne,pe,De,Ie,xe,Ye,at,Ct,kt=ct.hasData(h)&&ct.get(h);if(!(!kt||!(ne=kt.events))){for(b=(b||"").match(ft)||[""],pe=b.length;pe--;){if(oe=oo.exec(b[pe])||[],Ye=Ct=oe[1],at=(oe[2]||"").split(".").sort(),!Ye){for(Ye in ne)S.event.remove(h,Ye+b[pe],E,D,!0);continue}for(Ie=S.event.special[Ye]||{},Ye=(D?Ie.delegateType:Ie.bindType)||Ye,xe=ne[Ye]||[],oe=oe[2]&&new RegExp("(^|\\.)"+at.join("\\.(?:.*\\.|)")+"(\\.|$)"),H=j=xe.length;j--;)De=xe[j],(F||Ct===De.origType)&&(!E||E.guid===De.guid)&&(!oe||oe.test(De.namespace))&&(!D||D===De.selector||D==="**"&&De.selector)&&(xe.splice(j,1),De.selector&&xe.delegateCount--,Ie.remove&&Ie.remove.call(h,De));H&&!xe.length&&((!Ie.teardown||Ie.teardown.call(h,at,kt.handle)===!1)&&S.removeEvent(h,Ye,kt.handle),delete ne[Ye])}S.isEmptyObject(ne)&&ct.remove(h,"handle events")}},dispatch:function(h){var b,E,D,F,j,H,oe=new Array(arguments.length),ne=S.event.fix(h),pe=(ct.get(this,"events")||Object.create(null))[ne.type]||[],De=S.event.special[ne.type]||{};for(oe[0]=ne,b=1;b<arguments.length;b++)oe[b]=arguments[b];if(ne.delegateTarget=this,!(De.preDispatch&&De.preDispatch.call(this,ne)===!1)){for(H=S.event.handlers.call(this,ne,pe),b=0;(F=H[b++])&&!ne.isPropagationStopped();)for(ne.currentTarget=F.elem,E=0;(j=F.handlers[E++])&&!ne.isImmediatePropagationStopped();)(!ne.rnamespace||j.namespace===!1||ne.rnamespace.test(j.namespace))&&(ne.handleObj=j,ne.data=j.data,D=((S.event.special[j.origType]||{}).handle||j.handler).apply(F.elem,oe),D!==void 0&&(ne.result=D)===!1&&(ne.preventDefault(),ne.stopPropagation()));return De.postDispatch&&De.postDispatch.call(this,ne),ne.result}},handlers:function(h,b){var E,D,F,j,H,oe=[],ne=b.delegateCount,pe=h.target;if(ne&&pe.nodeType&&!(h.type==="click"&&h.button>=1)){for(;pe!==this;pe=pe.parentNode||this)if(pe.nodeType===1&&!(h.type==="click"&&pe.disabled===!0)){for(j=[],H={},E=0;E<ne;E++)D=b[E],F=D.selector+" ",H[F]===void 0&&(H[F]=D.needsContext?S(F,this).index(pe)>-1:S.find(F,this,null,[pe]).length),H[F]&&j.push(D);j.length&&oe.push({elem:pe,handlers:j})}}return pe=this,ne<b.length&&oe.push({elem:pe,handlers:b.slice(ne)}),oe},addProp:function(h,b){Object.defineProperty(S.Event.prototype,h,{enumerable:!0,configurable:!0,get:I(b)?function(){if(this.originalEvent)return b(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[h]},set:function(E){Object.defineProperty(this,h,{enumerable:!0,configurable:!0,writable:!0,value:E})}})},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&&ae(b,"input")&&ki(b,"click",!0),!1},trigger:function(h){var b=this||h;return Wt.test(b.type)&&b.click&&ae(b,"input")&&ki(b,"click"),!0},_default:function(h){var b=h.target;return Wt.test(b.type)&&b.click&&ae(b,"input")&&ct.get(b,"click")||ae(b,"a")}},beforeunload:{postDispatch:function(h){h.result!==void 0&&h.originalEvent&&(h.originalEvent.returnValue=h.result)}}}};function ki(h,b,E){if(!E){ct.get(h,b)===void 0&&S.event.add(h,b,mr);return}ct.set(h,b,!1),S.event.add(h,b,{namespace:!1,handler:function(D){var F,j=ct.get(this,b);if(D.isTrigger&1&&this[b]){if(j)(S.event.special[b]||{}).delegateType&&D.stopPropagation();else if(j=o.call(arguments),ct.set(this,b,j),this[b](),F=ct.get(this,b),ct.set(this,b,!1),j!==F)return D.stopImmediatePropagation(),D.preventDefault(),F}else j&&(ct.set(this,b,S.event.trigger(j[0],j.slice(1),this)),D.stopPropagation(),D.isImmediatePropagationStopped=mr)}})}S.removeEvent=function(h,b,E){h.removeEventListener&&h.removeEventListener(b,E)},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?mr:ui,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:ui,isPropagationStopped:ui,isImmediatePropagationStopped:ui,isSimulated:!1,preventDefault:function(){var h=this.originalEvent;this.isDefaultPrevented=mr,h&&!this.isSimulated&&h.preventDefault()},stopPropagation:function(){var h=this.originalEvent;this.isPropagationStopped=mr,h&&!this.isSimulated&&h.stopPropagation()},stopImmediatePropagation:function(){var h=this.originalEvent;this.isImmediatePropagationStopped=mr,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 E(D){if(R.documentMode){var F=ct.get(this,"handle"),j=S.event.fix(D);j.type=D.type==="focusin"?"focus":"blur",j.isSimulated=!0,F(D),j.target===j.currentTarget&&F(j)}else S.event.simulate(b,D.target,S.event.fix(D))}S.event.special[h]={setup:function(){var D;if(ki(this,h,!0),R.documentMode)D=ct.get(this,b),D||this.addEventListener(b,E),ct.set(this,b,(D||0)+1);else return!1},trigger:function(){return ki(this,h),!0},teardown:function(){var D;if(R.documentMode)D=ct.get(this,b)-1,D?ct.set(this,b,D):(this.removeEventListener(b,E),ct.remove(this,b));else return!1},_default:function(D){return ct.get(D.target,h)},delegateType:b},S.event.special[b]={setup:function(){var D=this.ownerDocument||this.document||this,F=R.documentMode?this:D,j=ct.get(F,b);j||(R.documentMode?this.addEventListener(b,E):D.addEventListener(h,E,!0)),ct.set(F,b,(j||0)+1)},teardown:function(){var D=this.ownerDocument||this.document||this,F=R.documentMode?this:D,j=ct.get(F,b)-1;j?ct.set(F,b,j):(R.documentMode?this.removeEventListener(b,E):D.removeEventListener(h,E,!0),ct.remove(F,b))}}}),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(h,b){S.event.special[h]={delegateType:b,bindType:b,handle:function(E){var D,F=this,j=E.relatedTarget,H=E.handleObj;return(!j||j!==F&&!S.contains(F,j))&&(E.type=H.origType,D=H.handler.apply(this,arguments),E.type=b),D}}}),S.fn.extend({on:function(h,b,E,D){return ln(this,h,b,E,D)},one:function(h,b,E,D){return ln(this,h,b,E,D,1)},off:function(h,b,E){var D,F;if(h&&h.preventDefault&&h.handleObj)return D=h.handleObj,S(h.delegateTarget).off(D.namespace?D.origType+"."+D.namespace:D.origType,D.selector,D.handler),this;if(typeof h=="object"){for(F in h)this.off(F,b,h[F]);return this}return(b===!1||typeof b=="function")&&(E=b,b=void 0),E===!1&&(E=ui),this.each(function(){S.event.remove(this,h,E,b)})}});var Pa=/<script|<style|<link/i,Ra=/checked\s*(?:[^=]|=\s*.checked.)/i,qr=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function ao(h,b){return ae(h,"table")&&ae(b.nodeType!==11?b:b.firstChild,"tr")&&S(h).children("tbody")[0]||h}function so(h){return h.type=(h.getAttribute("type")!==null)+"/"+h.type,h}function Oi(h){return(h.type||"").slice(0,5)==="true/"?h.type=h.type.slice(5):h.removeAttribute("type"),h}function Qn(h,b){var E,D,F,j,H,oe,ne;if(b.nodeType===1){if(ct.hasData(h)&&(j=ct.get(h),ne=j.events,ne)){ct.remove(b,"handle events");for(F in ne)for(E=0,D=ne[F].length;E<D;E++)S.event.add(b,F,ne[F][E])}Dn.hasData(h)&&(H=Dn.access(h),oe=S.extend({},H),Dn.set(b,oe))}}function Dr(h,b){var E=b.nodeName.toLowerCase();E==="input"&&Wt.test(h.type)?b.checked=h.checked:(E==="input"||E==="textarea")&&(b.defaultValue=h.defaultValue)}function _r(h,b,E,D){b=s(b);var F,j,H,oe,ne,pe,De=0,Ie=h.length,xe=Ie-1,Ye=b[0],at=I(Ye);if(at||Ie>1&&typeof Ye=="string"&&!P.checkClone&&Ra.test(Ye))return h.each(function(Ct){var kt=h.eq(Ct);at&&(b[0]=Ye.call(this,Ct,kt.html())),_r(kt,b,E,D)});if(Ie&&(F=En(b,h[0].ownerDocument,!1,h,D),j=F.firstChild,F.childNodes.length===1&&(F=j),j||D)){for(H=S.map(pn(F,"script"),so),oe=H.length;De<Ie;De++)ne=F,De!==xe&&(ne=S.clone(ne,!0,!0),oe&&S.merge(H,pn(ne,"script"))),E.call(h[De],ne,De);if(oe)for(pe=H[H.length-1].ownerDocument,S.map(H,Oi),De=0;De<oe;De++)ne=H[De],Hi.test(ne.type||"")&&!ct.access(ne,"globalEval")&&S.contains(pe,ne)&&(ne.src&&(ne.type||"").toLowerCase()!=="module"?S._evalUrl&&!ne.noModule&&S._evalUrl(ne.src,{nonce:ne.nonce||ne.getAttribute("nonce")},pe):U(ne.textContent.replace(qr,""),ne,pe))}return h}function ci(h,b,E){for(var D,F=b?S.filter(b,h):h,j=0;(D=F[j])!=null;j++)!E&&D.nodeType===1&&S.cleanData(pn(D)),D.parentNode&&(E&&vr(D)&&si(pn(D,"script")),D.parentNode.removeChild(D));return h}S.extend({htmlPrefilter:function(h){return h},clone:function(h,b,E){var D,F,j,H,oe=h.cloneNode(!0),ne=vr(h);if(!P.noCloneChecked&&(h.nodeType===1||h.nodeType===11)&&!S.isXMLDoc(h))for(H=pn(oe),j=pn(h),D=0,F=j.length;D<F;D++)Dr(j[D],H[D]);if(b)if(E)for(j=j||pn(h),H=H||pn(oe),D=0,F=j.length;D<F;D++)Qn(j[D],H[D]);else Qn(h,oe);return H=pn(oe,"script"),H.length>0&&si(H,!ne&&pn(h,"script")),oe},cleanData:function(h){for(var b,E,D,F=S.event.special,j=0;(E=h[j])!==void 0;j++)if(dn(E)){if(b=E[ct.expando]){if(b.events)for(D in b.events)F[D]?S.event.remove(E,D):S.removeEvent(E,D,b.handle);E[ct.expando]=void 0}E[Dn.expando]&&(E[Dn.expando]=void 0)}}}),S.fn.extend({detach:function(h){return ci(this,h,!0)},remove:function(h){return ci(this,h)},text:function(h){return Cn(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 _r(this,arguments,function(h){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var b=ao(this,h);b.appendChild(h)}})},prepend:function(){return _r(this,arguments,function(h){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var b=ao(this,h);b.insertBefore(h,b.firstChild)}})},before:function(){return _r(this,arguments,function(h){this.parentNode&&this.parentNode.insertBefore(h,this)})},after:function(){return _r(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(pn(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 Cn(this,function(b){var E=this[0]||{},D=0,F=this.length;if(b===void 0&&E.nodeType===1)return E.innerHTML;if(typeof b=="string"&&!Pa.test(b)&&!_n[(ai.exec(b)||["",""])[1].toLowerCase()]){b=S.htmlPrefilter(b);try{for(;D<F;D++)E=this[D]||{},E.nodeType===1&&(S.cleanData(pn(E,!1)),E.innerHTML=b);E=0}catch{}}E&&this.empty().append(b)},null,h,arguments.length)},replaceWith:function(){var h=[];return _r(this,arguments,function(b){var E=this.parentNode;S.inArray(this,h)<0&&(S.cleanData(pn(this)),E&&E.replaceChild(b,this))},h)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(h,b){S.fn[h]=function(E){for(var D,F=[],j=S(E),H=j.length-1,oe=0;oe<=H;oe++)D=oe===H?this:this.clone(!0),S(j[oe])[b](D),c.apply(F,D.get());return this.pushStack(F)}});var Xr=new RegExp("^("+Vi+")(?!px)[a-z%]+$","i"),yr=/^--/,Pr=function(h){var b=h.ownerDocument.defaultView;return(!b||!b.opener)&&(b=t),b.getComputedStyle(h)},er=function(h,b,E){var D,F,j={};for(F in b)j[F]=h.style[F],h.style[F]=b[F];D=E.call(h);for(F in b)h.style[F]=j[F];return D},Ui=new RegExp(jn.join("|"),"i");(function(){function h(){if(pe){ne.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",pe.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Or.appendChild(ne).appendChild(pe);var De=t.getComputedStyle(pe);E=De.top!=="1%",oe=b(De.marginLeft)===12,pe.style.right="60%",j=b(De.right)===36,D=b(De.width)===36,pe.style.position="absolute",F=b(pe.offsetWidth/3)===12,Or.removeChild(ne),pe=null}}function b(De){return Math.round(parseFloat(De))}var E,D,F,j,H,oe,ne=R.createElement("div"),pe=R.createElement("div");pe.style&&(pe.style.backgroundClip="content-box",pe.cloneNode(!0).style.backgroundClip="",P.clearCloneStyle=pe.style.backgroundClip==="content-box",S.extend(P,{boxSizingReliable:function(){return h(),D},pixelBoxStyles:function(){return h(),j},pixelPosition:function(){return h(),E},reliableMarginLeft:function(){return h(),oe},scrollboxSize:function(){return h(),F},reliableTrDimensions:function(){var De,Ie,xe,Ye;return H==null&&(De=R.createElement("table"),Ie=R.createElement("tr"),xe=R.createElement("div"),De.style.cssText="position:absolute;left:-11111px;border-collapse:separate",Ie.style.cssText="box-sizing:content-box;border:1px solid",Ie.style.height="1px",xe.style.height="9px",xe.style.display="block",Or.appendChild(De).appendChild(Ie).appendChild(xe),Ye=t.getComputedStyle(Ie),H=parseInt(Ye.height,10)+parseInt(Ye.borderTopWidth,10)+parseInt(Ye.borderBottomWidth,10)===Ie.offsetHeight,Or.removeChild(De)),H}}))})();function Di(h,b,E){var D,F,j,H,oe=yr.test(b),ne=h.style;return E=E||Pr(h),E&&(H=E.getPropertyValue(b)||E[b],oe&&H&&(H=H.replace(Ue,"$1")||void 0),H===""&&!vr(h)&&(H=S.style(h,b)),!P.pixelBoxStyles()&&Xr.test(H)&&Ui.test(b)&&(D=ne.width,F=ne.minWidth,j=ne.maxWidth,ne.minWidth=ne.maxWidth=ne.width=H,H=E.width,ne.width=D,ne.minWidth=F,ne.maxWidth=j)),H!==void 0?H+"":H}function sr(h,b){return{get:function(){if(h()){delete this.get;return}return(this.get=b).apply(this,arguments)}}}var wn=["Webkit","Moz","ms"],Rr=R.createElement("div").style,Ir={};function fi(h){for(var b=h[0].toUpperCase()+h.slice(1),E=wn.length;E--;)if(h=wn[E]+b,h in Rr)return h}function di(h){var b=S.cssProps[h]||Ir[h];return b||(h in Rr?h:Ir[h]=fi(h)||h)}var br=/^(none|table(?!-c[ea]).+)/,Kr={position:"absolute",visibility:"hidden",display:"block"},zn={letterSpacing:"0",fontWeight:"400"};function hi(h,b,E){var D=kr.exec(b);return D?Math.max(0,D[2]-(E||0))+(D[3]||"px"):b}function pi(h,b,E,D,F,j){var H=b==="width"?1:0,oe=0,ne=0,pe=0;if(E===(D?"border":"content"))return 0;for(;H<4;H+=2)E==="margin"&&(pe+=S.css(h,E+jn[H],!0,F)),D?(E==="content"&&(ne-=S.css(h,"padding"+jn[H],!0,F)),E!=="margin"&&(ne-=S.css(h,"border"+jn[H]+"Width",!0,F))):(ne+=S.css(h,"padding"+jn[H],!0,F),E!=="padding"?ne+=S.css(h,"border"+jn[H]+"Width",!0,F):oe+=S.css(h,"border"+jn[H]+"Width",!0,F));return!D&&j>=0&&(ne+=Math.max(0,Math.ceil(h["offset"+b[0].toUpperCase()+b.slice(1)]-j-ne-oe-.5))||0),ne+pe}function _i(h,b,E){var D=Pr(h),F=!P.boxSizingReliable()||E,j=F&&S.css(h,"boxSizing",!1,D)==="border-box",H=j,oe=Di(h,b,D),ne="offset"+b[0].toUpperCase()+b.slice(1);if(Xr.test(oe)){if(!E)return oe;oe="auto"}return(!P.boxSizingReliable()&&j||!P.reliableTrDimensions()&&ae(h,"tr")||oe==="auto"||!parseFloat(oe)&&S.css(h,"display",!1,D)==="inline")&&h.getClientRects().length&&(j=S.css(h,"boxSizing",!1,D)==="border-box",H=ne in h,H&&(oe=h[ne])),oe=parseFloat(oe)||0,oe+pi(h,b,E||(j?"border":"content"),H,D,oe)+"px"}S.extend({cssHooks:{opacity:{get:function(h,b){if(b){var E=Di(h,"opacity");return E===""?"1":E}}}},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,E,D){if(!(!h||h.nodeType===3||h.nodeType===8||!h.style)){var F,j,H,oe=sn(b),ne=yr.test(b),pe=h.style;if(ne||(b=di(oe)),H=S.cssHooks[b]||S.cssHooks[oe],E!==void 0){if(j=typeof E,j==="string"&&(F=kr.exec(E))&&F[1]&&(E=Po(h,b,F),j="number"),E==null||E!==E)return;j==="number"&&!ne&&(E+=F&&F[3]||(S.cssNumber[oe]?"":"px")),!P.clearCloneStyle&&E===""&&b.indexOf("background")===0&&(pe[b]="inherit"),(!H||!("set"in H)||(E=H.set(h,E,D))!==void 0)&&(ne?pe.setProperty(b,E):pe[b]=E)}else return H&&"get"in H&&(F=H.get(h,!1,D))!==void 0?F:pe[b]}},css:function(h,b,E,D){var F,j,H,oe=sn(b),ne=yr.test(b);return ne||(b=di(oe)),H=S.cssHooks[b]||S.cssHooks[oe],H&&"get"in H&&(F=H.get(h,!0,E)),F===void 0&&(F=Di(h,b,D)),F==="normal"&&b in zn&&(F=zn[b]),E===""||E?(j=parseFloat(F),E===!0||isFinite(j)?j||0:F):F}}),S.each(["height","width"],function(h,b){S.cssHooks[b]={get:function(E,D,F){if(D)return br.test(S.css(E,"display"))&&(!E.getClientRects().length||!E.getBoundingClientRect().width)?er(E,Kr,function(){return _i(E,b,F)}):_i(E,b,F)},set:function(E,D,F){var j,H=Pr(E),oe=!P.scrollboxSize()&&H.position==="absolute",ne=oe||F,pe=ne&&S.css(E,"boxSizing",!1,H)==="border-box",De=F?pi(E,b,F,pe,H):0;return pe&&oe&&(De-=Math.ceil(E["offset"+b[0].toUpperCase()+b.slice(1)]-parseFloat(H[b])-pi(E,b,"border",!1,H)-.5)),De&&(j=kr.exec(D))&&(j[3]||"px")!=="px"&&(E.style[b]=D,D=S.css(E,b)),hi(E,D,De)}}}),S.cssHooks.marginLeft=sr(P.reliableMarginLeft,function(h,b){if(b)return(parseFloat(Di(h,"marginLeft"))||h.getBoundingClientRect().left-er(h,{marginLeft:0},function(){return h.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(h,b){S.cssHooks[h+b]={expand:function(E){for(var D=0,F={},j=typeof E=="string"?E.split(" "):[E];D<4;D++)F[h+jn[D]+b]=j[D]||j[D-2]||j[0];return F}},h!=="margin"&&(S.cssHooks[h+b].set=hi)}),S.fn.extend({css:function(h,b){return Cn(this,function(E,D,F){var j,H,oe={},ne=0;if(Array.isArray(D)){for(j=Pr(E),H=D.length;ne<H;ne++)oe[D[ne]]=S.css(E,D[ne],!1,j);return oe}return F!==void 0?S.style(E,D,F):S.css(E,D)},h,b,arguments.length>1)}});function rn(h,b,E,D,F){return new rn.prototype.init(h,b,E,D,F)}S.Tween=rn,rn.prototype={constructor:rn,init:function(h,b,E,D,F,j){this.elem=h,this.prop=E,this.easing=F||S.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=D,this.unit=j||(S.cssNumber[E]?"":"px")},cur:function(){var h=rn.propHooks[this.prop];return h&&h.get?h.get(this):rn.propHooks._default.get(this)},run:function(h){var b,E=rn.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),E&&E.set?E.set(this):rn.propHooks._default.set(this),this}},rn.prototype.init.prototype=rn.prototype,rn.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[di(h.prop)]!=null)?S.style(h.elem,h.prop,h.now+h.unit):h.elem[h.prop]=h.now}}},rn.propHooks.scrollTop=rn.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=rn.prototype.init,S.fx.step={};var Bn,kn,lo=/^(?:toggle|show|hide)$/,Pn=/queueHooks$/;function Rn(){kn&&(R.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(Rn):t.setTimeout(Rn,S.fx.interval),S.fx.tick())}function k(){return t.setTimeout(function(){Bn=void 0}),Bn=Date.now()}function N(h,b){var E,D=0,F={height:h};for(b=b?1:0;D<4;D+=2-b)E=jn[D],F["margin"+E]=F["padding"+E]=h;return b&&(F.opacity=F.width=h),F}function G(h,b,E){for(var D,F=(ge.tweeners[b]||[]).concat(ge.tweeners["*"]),j=0,H=F.length;j<H;j++)if(D=F[j].call(E,b,h))return D}function te(h,b,E){var D,F,j,H,oe,ne,pe,De,Ie="width"in b||"height"in b,xe=this,Ye={},at=h.style,Ct=h.nodeType&&Yr(h),kt=ct.get(h,"fxshow");E.queue||(H=S._queueHooks(h,"fx"),H.unqueued==null&&(H.unqueued=0,oe=H.empty.fire,H.empty.fire=function(){H.unqueued||oe()}),H.unqueued++,xe.always(function(){xe.always(function(){H.unqueued--,S.queue(h,"fx").length||H.empty.fire()})}));for(D in b)if(F=b[D],lo.test(F)){if(delete b[D],j=j||F==="toggle",F===(Ct?"hide":"show"))if(F==="show"&&kt&&kt[D]!==void 0)Ct=!0;else continue;Ye[D]=kt&&kt[D]||S.style(h,D)}if(ne=!S.isEmptyObject(b),!(!ne&&S.isEmptyObject(Ye))){Ie&&h.nodeType===1&&(E.overflow=[at.overflow,at.overflowX,at.overflowY],pe=kt&&kt.display,pe==null&&(pe=ct.get(h,"display")),De=S.css(h,"display"),De==="none"&&(pe?De=pe:(Jn([h],!0),pe=h.style.display||pe,De=S.css(h,"display"),Jn([h]))),(De==="inline"||De==="inline-block"&&pe!=null)&&S.css(h,"float")==="none"&&(ne||(xe.done(function(){at.display=pe}),pe==null&&(De=at.display,pe=De==="none"?"":De)),at.display="inline-block")),E.overflow&&(at.overflow="hidden",xe.always(function(){at.overflow=E.overflow[0],at.overflowX=E.overflow[1],at.overflowY=E.overflow[2]})),ne=!1;for(D in Ye)ne||(kt?"hidden"in kt&&(Ct=kt.hidden):kt=ct.access(h,"fxshow",{display:pe}),j&&(kt.hidden=!Ct),Ct&&Jn([h],!0),xe.done(function(){Ct||Jn([h]),ct.remove(h,"fxshow");for(D in Ye)S.style(h,D,Ye[D])})),ne=G(Ct?kt[D]:0,D,xe),D in kt||(kt[D]=ne.start,Ct&&(ne.end=ne.start,ne.start=0))}}function Ce(h,b){var E,D,F,j,H;for(E in h)if(D=sn(E),F=b[D],j=h[E],Array.isArray(j)&&(F=j[1],j=h[E]=j[0]),E!==D&&(h[D]=j,delete h[E]),H=S.cssHooks[D],H&&"expand"in H){j=H.expand(j),delete h[D];for(E in j)E in h||(h[E]=j[E],b[E]=F)}else b[D]=F}function ge(h,b,E){var D,F,j=0,H=ge.prefilters.length,oe=S.Deferred().always(function(){delete ne.elem}),ne=function(){if(F)return!1;for(var Ie=Bn||k(),xe=Math.max(0,pe.startTime+pe.duration-Ie),Ye=xe/pe.duration||0,at=1-Ye,Ct=0,kt=pe.tweens.length;Ct<kt;Ct++)pe.tweens[Ct].run(at);return oe.notifyWith(h,[pe,at,xe]),at<1&&kt?xe:(kt||oe.notifyWith(h,[pe,1,0]),oe.resolveWith(h,[pe]),!1)},pe=oe.promise({elem:h,props:S.extend({},b),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},E),originalProperties:b,originalOptions:E,startTime:Bn||k(),duration:E.duration,tweens:[],createTween:function(Ie,xe){var Ye=S.Tween(h,pe.opts,Ie,xe,pe.opts.specialEasing[Ie]||pe.opts.easing);return pe.tweens.push(Ye),Ye},stop:function(Ie){var xe=0,Ye=Ie?pe.tweens.length:0;if(F)return this;for(F=!0;xe<Ye;xe++)pe.tweens[xe].run(1);return Ie?(oe.notifyWith(h,[pe,1,0]),oe.resolveWith(h,[pe,Ie])):oe.rejectWith(h,[pe,Ie]),this}}),De=pe.props;for(Ce(De,pe.opts.specialEasing);j<H;j++)if(D=ge.prefilters[j].call(pe,h,De,pe.opts),D)return I(D.stop)&&(S._queueHooks(pe.elem,pe.opts.queue).stop=D.stop.bind(D)),D;return S.map(De,G,pe),I(pe.opts.start)&&pe.opts.start.call(h,pe),pe.progress(pe.opts.progress).done(pe.opts.done,pe.opts.complete).fail(pe.opts.fail).always(pe.opts.always),S.fx.timer(S.extend(ne,{elem:h,anim:pe,queue:pe.opts.queue})),pe}S.Animation=S.extend(ge,{tweeners:{"*":[function(h,b){var E=this.createTween(h,b);return Po(E.elem,h,kr.exec(b),E),E}]},tweener:function(h,b){I(h)?(b=h,h=["*"]):h=h.match(ft);for(var E,D=0,F=h.length;D<F;D++)E=h[D],ge.tweeners[E]=ge.tweeners[E]||[],ge.tweeners[E].unshift(b)},prefilters:[te],prefilter:function(h,b){b?ge.prefilters.unshift(h):ge.prefilters.push(h)}}),S.speed=function(h,b,E){var D=h&&typeof h=="object"?S.extend({},h):{complete:E||!E&&b||I(h)&&h,duration:h,easing:E&&b||b&&!I(b)&&b};return S.fx.off?D.duration=0:typeof D.duration!="number"&&(D.duration in S.fx.speeds?D.duration=S.fx.speeds[D.duration]:D.duration=S.fx.speeds._default),(D.queue==null||D.queue===!0)&&(D.queue="fx"),D.old=D.complete,D.complete=function(){I(D.old)&&D.old.call(this),D.queue&&S.dequeue(this,D.queue)},D},S.fn.extend({fadeTo:function(h,b,E,D){return this.filter(Yr).css("opacity",0).show().end().animate({opacity:b},h,E,D)},animate:function(h,b,E,D){var F=S.isEmptyObject(h),j=S.speed(b,E,D),H=function(){var oe=ge(this,S.extend({},h),j);(F||ct.get(this,"finish"))&&oe.stop(!0)};return H.finish=H,F||j.queue===!1?this.each(H):this.queue(j.queue,H)},stop:function(h,b,E){var D=function(F){var j=F.stop;delete F.stop,j(E)};return typeof h!="string"&&(E=b,b=h,h=void 0),b&&this.queue(h||"fx",[]),this.each(function(){var F=!0,j=h!=null&&h+"queueHooks",H=S.timers,oe=ct.get(this);if(j)oe[j]&&oe[j].stop&&D(oe[j]);else for(j in oe)oe[j]&&oe[j].stop&&Pn.test(j)&&D(oe[j]);for(j=H.length;j--;)H[j].elem===this&&(h==null||H[j].queue===h)&&(H[j].anim.stop(E),F=!1,H.splice(j,1));(F||!E)&&S.dequeue(this,h)})},finish:function(h){return h!==!1&&(h=h||"fx"),this.each(function(){var b,E=ct.get(this),D=E[h+"queue"],F=E[h+"queueHooks"],j=S.timers,H=D?D.length:0;for(E.finish=!0,S.queue(this,h,[]),F&&F.stop&&F.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<H;b++)D[b]&&D[b].finish&&D[b].finish.call(this);delete E.finish})}}),S.each(["toggle","show","hide"],function(h,b){var E=S.fn[b];S.fn[b]=function(D,F,j){return D==null||typeof D=="boolean"?E.apply(this,arguments):this.animate(N(b,!0),D,F,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(E,D,F){return this.animate(b,E,D,F)}}),S.timers=[],S.fx.tick=function(){var h,b=0,E=S.timers;for(Bn=Date.now();b<E.length;b++)h=E[b],!h()&&E[b]===h&&E.splice(b--,1);E.length||S.fx.stop(),Bn=void 0},S.fx.timer=function(h){S.timers.push(h),S.fx.start()},S.fx.interval=13,S.fx.start=function(){kn||(kn=!0,Rn())},S.fx.stop=function(){kn=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(E,D){var F=t.setTimeout(E,h);D.stop=function(){t.clearTimeout(F)}})},function(){var h=R.createElement("input"),b=R.createElement("select"),E=b.appendChild(R.createElement("option"));h.type="checkbox",P.checkOn=h.value!=="",P.optSelected=E.selected,h=R.createElement("input"),h.value="t",h.type="radio",P.radioValue=h.value==="t"}();var Pe,Je=S.expr.attrHandle;S.fn.extend({attr:function(h,b){return Cn(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,E){var D,F,j=h.nodeType;if(!(j===3||j===8||j===2)){if(typeof h.getAttribute>"u")return S.prop(h,b,E);if((j!==1||!S.isXMLDoc(h))&&(F=S.attrHooks[b.toLowerCase()]||(S.expr.match.bool.test(b)?Pe:void 0)),E!==void 0){if(E===null){S.removeAttr(h,b);return}return F&&"set"in F&&(D=F.set(h,E,b))!==void 0?D:(h.setAttribute(b,E+""),E)}return F&&"get"in F&&(D=F.get(h,b))!==null?D:(D=S.find.attr(h,b),D??void 0)}},attrHooks:{type:{set:function(h,b){if(!P.radioValue&&b==="radio"&&ae(h,"input")){var E=h.value;return h.setAttribute("type",b),E&&(h.value=E),b}}}},removeAttr:function(h,b){var E,D=0,F=b&&b.match(ft);if(F&&h.nodeType===1)for(;E=F[D++];)h.removeAttribute(E)}}),Pe={set:function(h,b,E){return b===!1?S.removeAttr(h,E):h.setAttribute(E,E),E}},S.each(S.expr.match.bool.source.match(/\w+/g),function(h,b){var E=Je[b]||S.find.attr;Je[b]=function(D,F,j){var H,oe,ne=F.toLowerCase();return j||(oe=Je[ne],Je[ne]=H,H=E(D,F,j)!=null?ne:null,Je[ne]=oe),H}});var vt=/^(?:input|select|textarea|button)$/i,mt=/^(?:a|area)$/i;S.fn.extend({prop:function(h,b){return Cn(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,E){var D,F,j=h.nodeType;if(!(j===3||j===8||j===2))return(j!==1||!S.isXMLDoc(h))&&(b=S.propFix[b]||b,F=S.propHooks[b]),E!==void 0?F&&"set"in F&&(D=F.set(h,E,b))!==void 0?D:h[b]=E:F&&"get"in F&&(D=F.get(h,b))!==null?D:h[b]},propHooks:{tabIndex:{get:function(h){var b=S.find.attr(h,"tabindex");return b?parseInt(b,10):vt.test(h.nodeName)||mt.test(h.nodeName)&&h.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),P.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(ft)||[];return b.join(" ")}function Nt(h){return h.getAttribute&&h.getAttribute("class")||""}function $n(h){return Array.isArray(h)?h:typeof h=="string"?h.match(ft)||[]:[]}S.fn.extend({addClass:function(h){var b,E,D,F,j,H;return I(h)?this.each(function(oe){S(this).addClass(h.call(this,oe,Nt(this)))}):(b=$n(h),b.length?this.each(function(){if(D=Nt(this),E=this.nodeType===1&&" "+pt(D)+" ",E){for(j=0;j<b.length;j++)F=b[j],E.indexOf(" "+F+" ")<0&&(E+=F+" ");H=pt(E),D!==H&&this.setAttribute("class",H)}}):this)},removeClass:function(h){var b,E,D,F,j,H;return I(h)?this.each(function(oe){S(this).removeClass(h.call(this,oe,Nt(this)))}):arguments.length?(b=$n(h),b.length?this.each(function(){if(D=Nt(this),E=this.nodeType===1&&" "+pt(D)+" ",E){for(j=0;j<b.length;j++)for(F=b[j];E.indexOf(" "+F+" ")>-1;)E=E.replace(" "+F+" "," ");H=pt(E),D!==H&&this.setAttribute("class",H)}}):this):this.attr("class","")},toggleClass:function(h,b){var E,D,F,j,H=typeof h,oe=H==="string"||Array.isArray(h);return I(h)?this.each(function(ne){S(this).toggleClass(h.call(this,ne,Nt(this),b),b)}):typeof b=="boolean"&&oe?b?this.addClass(h):this.removeClass(h):(E=$n(h),this.each(function(){if(oe)for(j=S(this),F=0;F<E.length;F++)D=E[F],j.hasClass(D)?j.removeClass(D):j.addClass(D);else(h===void 0||H==="boolean")&&(D=Nt(this),D&&ct.set(this,"__className__",D),this.setAttribute&&this.setAttribute("class",D||h===!1?"":ct.get(this,"__className__")||""))}))},hasClass:function(h){var b,E,D=0;for(b=" "+h+" ";E=this[D++];)if(E.nodeType===1&&(" "+pt(Nt(E))+" ").indexOf(b)>-1)return!0;return!1}});var Yn=/\r/g;S.fn.extend({val:function(h){var b,E,D,F=this[0];return arguments.length?(D=I(h),this.each(function(j){var H;this.nodeType===1&&(D?H=h.call(this,j,S(this).val()):H=h,H==null?H="":typeof H=="number"?H+="":Array.isArray(H)&&(H=S.map(H,function(oe){return oe==null?"":oe+""})),b=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()],(!b||!("set"in b)||b.set(this,H,"value")===void 0)&&(this.value=H))})):F?(b=S.valHooks[F.type]||S.valHooks[F.nodeName.toLowerCase()],b&&"get"in b&&(E=b.get(F,"value"))!==void 0?E:(E=F.value,typeof E=="string"?E.replace(Yn,""):E??"")):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,E,D,F=h.options,j=h.selectedIndex,H=h.type==="select-one",oe=H?null:[],ne=H?j+1:F.length;for(j<0?D=ne:D=H?j:0;D<ne;D++)if(E=F[D],(E.selected||D===j)&&!E.disabled&&(!E.parentNode.disabled||!ae(E.parentNode,"optgroup"))){if(b=S(E).val(),H)return b;oe.push(b)}return oe},set:function(h,b){for(var E,D,F=h.options,j=S.makeArray(b),H=F.length;H--;)D=F[H],(D.selected=S.inArray(S.valHooks.option.get(D),j)>-1)&&(E=!0);return E||(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}},P.checkOn||(S.valHooks[this].get=function(h){return h.getAttribute("value")===null?"on":h.value})});var On=t.location,Zr={guid:Date.now()},lr=/\?/;S.parseXML=function(h){var b,E;if(!h||typeof h!="string")return null;try{b=new t.DOMParser().parseFromString(h,"text/xml")}catch{}return E=b&&b.getElementsByTagName("parsererror")[0],(!b||E)&&S.error("Invalid XML: "+(E?S.map(E.childNodes,function(D){return D.textContent}).join(`
|
|
172
|
+
`):h)),b};var Wi=/^(?:focusinfocus|focusoutblur)$/,gi=function(h){h.stopPropagation()};S.extend(S.event,{trigger:function(h,b,E,D){var F,j,H,oe,ne,pe,De,Ie,xe=[E||R],Ye=g.call(h,"type")?h.type:h,at=g.call(h,"namespace")?h.namespace.split("."):[];if(j=Ie=H=E=E||R,!(E.nodeType===3||E.nodeType===8)&&!Wi.test(Ye+S.event.triggered)&&(Ye.indexOf(".")>-1&&(at=Ye.split("."),Ye=at.shift(),at.sort()),ne=Ye.indexOf(":")<0&&"on"+Ye,h=h[S.expando]?h:new S.Event(Ye,typeof h=="object"&&h),h.isTrigger=D?2:3,h.namespace=at.join("."),h.rnamespace=h.namespace?new RegExp("(^|\\.)"+at.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,h.result=void 0,h.target||(h.target=E),b=b==null?[h]:S.makeArray(b,[h]),De=S.event.special[Ye]||{},!(!D&&De.trigger&&De.trigger.apply(E,b)===!1))){if(!D&&!De.noBubble&&!M(E)){for(oe=De.delegateType||Ye,Wi.test(oe+Ye)||(j=j.parentNode);j;j=j.parentNode)xe.push(j),H=j;H===(E.ownerDocument||R)&&xe.push(H.defaultView||H.parentWindow||t)}for(F=0;(j=xe[F++])&&!h.isPropagationStopped();)Ie=j,h.type=F>1?oe:De.bindType||Ye,pe=(ct.get(j,"events")||Object.create(null))[h.type]&&ct.get(j,"handle"),pe&&pe.apply(j,b),pe=ne&&j[ne],pe&&pe.apply&&dn(j)&&(h.result=pe.apply(j,b),h.result===!1&&h.preventDefault());return h.type=Ye,!D&&!h.isDefaultPrevented()&&(!De._default||De._default.apply(xe.pop(),b)===!1)&&dn(E)&&ne&&I(E[Ye])&&!M(E)&&(H=E[ne],H&&(E[ne]=null),S.event.triggered=Ye,h.isPropagationStopped()&&Ie.addEventListener(Ye,gi),E[Ye](),h.isPropagationStopped()&&Ie.removeEventListener(Ye,gi),S.event.triggered=void 0,H&&(E[ne]=H)),h.result}},simulate:function(h,b,E){var D=S.extend(new S.Event,E,{type:h,isSimulated:!0});S.event.trigger(D,null,b)}}),S.fn.extend({trigger:function(h,b){return this.each(function(){S.event.trigger(h,b,this)})},triggerHandler:function(h,b){var E=this[0];if(E)return S.event.trigger(h,b,E,!0)}});var zi=/\[\]$/,Ar=/\r?\n/g,Yi=/^(?:submit|button|image|reset|file)$/i,Hs=/^(?:input|select|textarea|keygen)/i;function Ia(h,b,E,D){var F;if(Array.isArray(b))S.each(b,function(j,H){E||zi.test(h)?D(h,H):Ia(h+"["+(typeof H=="object"&&H!=null?j:"")+"]",H,E,D)});else if(!E&&Q(b)==="object")for(F in b)Ia(h+"["+F+"]",b[F],E,D);else D(h,b)}S.param=function(h,b){var E,D=[],F=function(j,H){var oe=I(H)?H():H;D[D.length]=encodeURIComponent(j)+"="+encodeURIComponent(oe??"")};if(h==null)return"";if(Array.isArray(h)||h.jquery&&!S.isPlainObject(h))S.each(h,function(){F(this.name,this.value)});else for(E in h)Ia(E,h[E],b,F);return D.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")&&Hs.test(this.nodeName)&&!Yi.test(h)&&(this.checked||!Wt.test(h))}).map(function(h,b){var E=S(this).val();return E==null?null:Array.isArray(E)?S.map(E,function(D){return{name:b.name,value:D.replace(Ar,`\r
|
|
173
|
+
`)}}):{name:b.name,value:E.replace(Ar,`\r
|
|
174
|
+
`)}}).get()}});var Qo=/%20/g,wr=/#.*$/,Us=/([?&])_=[^&]*/,vi=/^(.*?):[ \t]*([^\r\n]*)$/mg,Aa=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ea=/^(?:GET|HEAD)$/,on=/^\/\//,qt={},Zt={},Pi="*/".concat("*"),Jr=R.createElement("a");Jr.href=On.href;function Ro(h){return function(b,E){typeof b!="string"&&(E=b,b="*");var D,F=0,j=b.toLowerCase().match(ft)||[];if(I(E))for(;D=j[F++];)D[0]==="+"?(D=D.slice(1)||"*",(h[D]=h[D]||[]).unshift(E)):(h[D]=h[D]||[]).push(E)}}function mi(h,b,E,D){var F={},j=h===Zt;function H(oe){var ne;return F[oe]=!0,S.each(h[oe]||[],function(pe,De){var Ie=De(b,E,D);if(typeof Ie=="string"&&!j&&!F[Ie])return b.dataTypes.unshift(Ie),H(Ie),!1;if(j)return!(ne=Ie)}),ne}return H(b.dataTypes[0])||!F["*"]&&H("*")}function ur(h,b){var E,D,F=S.ajaxSettings.flatOptions||{};for(E in b)b[E]!==void 0&&((F[E]?h:D||(D={}))[E]=b[E]);return D&&S.extend(!0,h,D),h}function Ma(h,b,E){for(var D,F,j,H,oe=h.contents,ne=h.dataTypes;ne[0]==="*";)ne.shift(),D===void 0&&(D=h.mimeType||b.getResponseHeader("Content-Type"));if(D){for(F in oe)if(oe[F]&&oe[F].test(D)){ne.unshift(F);break}}if(ne[0]in E)j=ne[0];else{for(F in E){if(!ne[0]||h.converters[F+" "+ne[0]]){j=F;break}H||(H=F)}j=j||H}if(j)return j!==ne[0]&&ne.unshift(j),E[j]}function uo(h,b,E,D){var F,j,H,oe,ne,pe={},De=h.dataTypes.slice();if(De[1])for(H in h.converters)pe[H.toLowerCase()]=h.converters[H];for(j=De.shift();j;)if(h.responseFields[j]&&(E[h.responseFields[j]]=b),!ne&&D&&h.dataFilter&&(b=h.dataFilter(b,h.dataType)),ne=j,j=De.shift(),j){if(j==="*")j=ne;else if(ne!=="*"&&ne!==j){if(H=pe[ne+" "+j]||pe["* "+j],!H){for(F in pe)if(oe=F.split(" "),oe[1]===j&&(H=pe[ne+" "+oe[0]]||pe["* "+oe[0]],H)){H===!0?H=pe[F]:pe[F]!==!0&&(j=oe[0],De.unshift(oe[1]));break}}if(H!==!0)if(H&&h.throws)b=H(b);else try{b=H(b)}catch(Ie){return{state:"parsererror",error:H?Ie:"No conversion from "+ne+" to "+j}}}}return{state:"success",data:b}}S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:On.href,type:"GET",isLocal:Aa.test(On.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Pi,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:Ro(qt),ajaxTransport:Ro(Zt),ajax:function(h,b){typeof h=="object"&&(b=h,h=void 0),b=b||{};var E,D,F,j,H,oe,ne,pe,De,Ie,xe=S.ajaxSetup({},b),Ye=xe.context||xe,at=xe.context&&(Ye.nodeType||Ye.jquery)?S(Ye):S.event,Ct=S.Deferred(),kt=S.Callbacks("once memory"),In=xe.statusCode||{},cn={},Mr={},Lr="canceled",Ft={readyState:0,getResponseHeader:function(jt){var en;if(ne){if(!j)for(j={};en=vi.exec(F);)j[en[1].toLowerCase()+" "]=(j[en[1].toLowerCase()+" "]||[]).concat(en[2]);en=j[jt.toLowerCase()+" "]}return en==null?null:en.join(", ")},getAllResponseHeaders:function(){return ne?F:null},setRequestHeader:function(jt,en){return ne==null&&(jt=Mr[jt.toLowerCase()]=Mr[jt.toLowerCase()]||jt,cn[jt]=en),this},overrideMimeType:function(jt){return ne==null&&(xe.mimeType=jt),this},statusCode:function(jt){var en;if(jt)if(ne)Ft.always(jt[Ft.status]);else for(en in jt)In[en]=[In[en],jt[en]];return this},abort:function(jt){var en=jt||Lr;return E&&E.abort(en),Fr(0,en),this}};if(Ct.promise(Ft),xe.url=((h||xe.url||On.href)+"").replace(on,On.protocol+"//"),xe.type=b.method||b.type||xe.method||xe.type,xe.dataTypes=(xe.dataType||"*").toLowerCase().match(ft)||[""],xe.crossDomain==null){oe=R.createElement("a");try{oe.href=xe.url,oe.href=oe.href,xe.crossDomain=Jr.protocol+"//"+Jr.host!=oe.protocol+"//"+oe.host}catch{xe.crossDomain=!0}}if(xe.data&&xe.processData&&typeof xe.data!="string"&&(xe.data=S.param(xe.data,xe.traditional)),mi(qt,xe,b,Ft),ne)return Ft;pe=S.event&&xe.global,pe&&S.active++===0&&S.event.trigger("ajaxStart"),xe.type=xe.type.toUpperCase(),xe.hasContent=!ea.test(xe.type),D=xe.url.replace(wr,""),xe.hasContent?xe.data&&xe.processData&&(xe.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(xe.data=xe.data.replace(Qo,"+")):(Ie=xe.url.slice(D.length),xe.data&&(xe.processData||typeof xe.data=="string")&&(D+=(lr.test(D)?"&":"?")+xe.data,delete xe.data),xe.cache===!1&&(D=D.replace(Us,"$1"),Ie=(lr.test(D)?"&":"?")+"_="+Zr.guid+++Ie),xe.url=D+Ie),xe.ifModified&&(S.lastModified[D]&&Ft.setRequestHeader("If-Modified-Since",S.lastModified[D]),S.etag[D]&&Ft.setRequestHeader("If-None-Match",S.etag[D])),(xe.data&&xe.hasContent&&xe.contentType!==!1||b.contentType)&&Ft.setRequestHeader("Content-Type",xe.contentType),Ft.setRequestHeader("Accept",xe.dataTypes[0]&&xe.accepts[xe.dataTypes[0]]?xe.accepts[xe.dataTypes[0]]+(xe.dataTypes[0]!=="*"?", "+Pi+"; q=0.01":""):xe.accepts["*"]);for(De in xe.headers)Ft.setRequestHeader(De,xe.headers[De]);if(xe.beforeSend&&(xe.beforeSend.call(Ye,Ft,xe)===!1||ne))return Ft.abort();if(Lr="abort",kt.add(xe.complete),Ft.done(xe.success),Ft.fail(xe.error),E=mi(Zt,xe,b,Ft),!E)Fr(-1,"No Transport");else{if(Ft.readyState=1,pe&&at.trigger("ajaxSend",[Ft,xe]),ne)return Ft;xe.async&&xe.timeout>0&&(H=t.setTimeout(function(){Ft.abort("timeout")},xe.timeout));try{ne=!1,E.send(cn,Fr)}catch(jt){if(ne)throw jt;Fr(-1,jt)}}function Fr(jt,en,fo,ho){var xr,O,L,W,ee,me=en;ne||(ne=!0,H&&t.clearTimeout(H),E=void 0,F=ho||"",Ft.readyState=jt>0?4:0,xr=jt>=200&&jt<300||jt===304,fo&&(W=Ma(xe,Ft,fo)),!xr&&S.inArray("script",xe.dataTypes)>-1&&S.inArray("json",xe.dataTypes)<0&&(xe.converters["text script"]=function(){}),W=uo(xe,W,Ft,xr),xr?(xe.ifModified&&(ee=Ft.getResponseHeader("Last-Modified"),ee&&(S.lastModified[D]=ee),ee=Ft.getResponseHeader("etag"),ee&&(S.etag[D]=ee)),jt===204||xe.type==="HEAD"?me="nocontent":jt===304?me="notmodified":(me=W.state,O=W.data,L=W.error,xr=!L)):(L=me,(jt||!me)&&(me="error",jt<0&&(jt=0))),Ft.status=jt,Ft.statusText=(en||me)+"",xr?Ct.resolveWith(Ye,[O,me,Ft]):Ct.rejectWith(Ye,[Ft,me,L]),Ft.statusCode(In),In=void 0,pe&&at.trigger(xr?"ajaxSuccess":"ajaxError",[Ft,xe,xr?O:L]),kt.fireWith(Ye,[Ft,me]),pe&&(at.trigger("ajaxComplete",[Ft,xe]),--S.active||S.event.trigger("ajaxStop")))}return Ft},getJSON:function(h,b,E){return S.get(h,b,E,"json")},getScript:function(h,b){return S.get(h,void 0,b,"script")}}),S.each(["get","post"],function(h,b){S[b]=function(E,D,F,j){return I(D)&&(j=j||F,F=D,D=void 0),S.ajax(S.extend({url:E,type:b,dataType:j,data:D,success:F},S.isPlainObject(E)&&E))}}),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,E){return S.ajax({url:h,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(D){S.globalEval(D,b,E)}})},S.fn.extend({wrapAll:function(h){var b;return this[0]&&(I(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 E=this;E.firstElementChild;)E=E.firstElementChild;return E}).append(this)),this},wrapInner:function(h){return I(h)?this.each(function(b){S(this).wrapInner(h.call(this,b))}):this.each(function(){var b=S(this),E=b.contents();E.length?E.wrapAll(h):b.append(h)})},wrap:function(h){var b=I(h);return this.each(function(E){S(this).wrapAll(b?h.call(this,E):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 t.XMLHttpRequest}catch{}};var as={0:200,1223:204},un=S.ajaxSettings.xhr();P.cors=!!un&&"withCredentials"in un,P.ajax=un=!!un,S.ajaxTransport(function(h){var b,E;if(P.cors||un&&!h.crossDomain)return{send:function(D,F){var j,H=h.xhr();if(H.open(h.type,h.url,h.async,h.username,h.password),h.xhrFields)for(j in h.xhrFields)H[j]=h.xhrFields[j];h.mimeType&&H.overrideMimeType&&H.overrideMimeType(h.mimeType),!h.crossDomain&&!D["X-Requested-With"]&&(D["X-Requested-With"]="XMLHttpRequest");for(j in D)H.setRequestHeader(j,D[j]);b=function(oe){return function(){b&&(b=E=H.onload=H.onerror=H.onabort=H.ontimeout=H.onreadystatechange=null,oe==="abort"?H.abort():oe==="error"?typeof H.status!="number"?F(0,"error"):F(H.status,H.statusText):F(as[H.status]||H.status,H.statusText,(H.responseType||"text")!=="text"||typeof H.responseText!="string"?{binary:H.response}:{text:H.responseText},H.getAllResponseHeaders()))}},H.onload=b(),E=H.onerror=H.ontimeout=b("error"),H.onabort!==void 0?H.onabort=E:H.onreadystatechange=function(){H.readyState===4&&t.setTimeout(function(){b&&E()})},b=b("abort");try{H.send(h.hasContent&&h.data||null)}catch(oe){if(b)throw oe}},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,E;return{send:function(D,F){b=S("<script>").attr(h.scriptAttrs||{}).prop({charset:h.scriptCharset,src:h.url}).on("load error",E=function(j){b.remove(),E=null,j&&F(j.type==="error"?404:200,j.type)}),R.head.appendChild(b[0])},abort:function(){E&&E()}}}});var Io=[],yi=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var h=Io.pop()||S.expando+"_"+Zr.guid++;return this[h]=!0,h}}),S.ajaxPrefilter("json jsonp",function(h,b,E){var D,F,j,H=h.jsonp!==!1&&(yi.test(h.url)?"url":typeof h.data=="string"&&(h.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&yi.test(h.data)&&"data");if(H||h.dataTypes[0]==="jsonp")return D=h.jsonpCallback=I(h.jsonpCallback)?h.jsonpCallback():h.jsonpCallback,H?h[H]=h[H].replace(yi,"$1"+D):h.jsonp!==!1&&(h.url+=(lr.test(h.url)?"&":"?")+h.jsonp+"="+D),h.converters["script json"]=function(){return j||S.error(D+" was not called"),j[0]},h.dataTypes[0]="json",F=t[D],t[D]=function(){j=arguments},E.always(function(){F===void 0?S(t).removeProp(D):t[D]=F,h[D]&&(h.jsonpCallback=b.jsonpCallback,Io.push(D)),j&&I(F)&&F(j[0]),j=F=void 0}),"script"}),P.createHTMLDocument=function(){var h=R.implementation.createHTMLDocument("").body;return h.innerHTML="<form></form><form></form>",h.childNodes.length===2}(),S.parseHTML=function(h,b,E){if(typeof h!="string")return[];typeof b=="boolean"&&(E=b,b=!1);var D,F,j;return b||(P.createHTMLDocument?(b=R.implementation.createHTMLDocument(""),D=b.createElement("base"),D.href=R.location.href,b.head.appendChild(D)):b=R),F=Le.exec(h),j=!E&&[],F?[b.createElement(F[1])]:(F=En([h],b,j),j&&j.length&&S(j).remove(),S.merge([],F.childNodes))},S.fn.load=function(h,b,E){var D,F,j,H=this,oe=h.indexOf(" ");return oe>-1&&(D=pt(h.slice(oe)),h=h.slice(0,oe)),I(b)?(E=b,b=void 0):b&&typeof b=="object"&&(F="POST"),H.length>0&&S.ajax({url:h,type:F||"GET",dataType:"html",data:b}).done(function(ne){j=arguments,H.html(D?S("<div>").append(S.parseHTML(ne)).find(D):ne)}).always(E&&function(ne,pe){H.each(function(){E.apply(this,j||[ne.responseText,pe,ne])})}),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,E){var D,F,j,H,oe,ne,pe,De=S.css(h,"position"),Ie=S(h),xe={};De==="static"&&(h.style.position="relative"),oe=Ie.offset(),j=S.css(h,"top"),ne=S.css(h,"left"),pe=(De==="absolute"||De==="fixed")&&(j+ne).indexOf("auto")>-1,pe?(D=Ie.position(),H=D.top,F=D.left):(H=parseFloat(j)||0,F=parseFloat(ne)||0),I(b)&&(b=b.call(h,E,S.extend({},oe))),b.top!=null&&(xe.top=b.top-oe.top+H),b.left!=null&&(xe.left=b.left-oe.left+F),"using"in b?b.using.call(h,xe):Ie.css(xe)}},S.fn.extend({offset:function(h){if(arguments.length)return h===void 0?this:this.each(function(F){S.offset.setOffset(this,h,F)});var b,E,D=this[0];if(D)return D.getClientRects().length?(b=D.getBoundingClientRect(),E=D.ownerDocument.defaultView,{top:b.top+E.pageYOffset,left:b.left+E.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var h,b,E,D=this[0],F={top:0,left:0};if(S.css(D,"position")==="fixed")b=D.getBoundingClientRect();else{for(b=this.offset(),E=D.ownerDocument,h=D.offsetParent||E.documentElement;h&&(h===E.body||h===E.documentElement)&&S.css(h,"position")==="static";)h=h.parentNode;h&&h!==D&&h.nodeType===1&&(F=S(h).offset(),F.top+=S.css(h,"borderTopWidth",!0),F.left+=S.css(h,"borderLeftWidth",!0))}return{top:b.top-F.top-S.css(D,"marginTop",!0),left:b.left-F.left-S.css(D,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var h=this.offsetParent;h&&S.css(h,"position")==="static";)h=h.offsetParent;return h||Or})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(h,b){var E=b==="pageYOffset";S.fn[h]=function(D){return Cn(this,function(F,j,H){var oe;if(M(F)?oe=F:F.nodeType===9&&(oe=F.defaultView),H===void 0)return oe?oe[b]:F[j];oe?oe.scrollTo(E?oe.pageXOffset:H,E?H:oe.pageYOffset):F[j]=H},h,D,arguments.length)}}),S.each(["top","left"],function(h,b){S.cssHooks[b]=sr(P.pixelPosition,function(E,D){if(D)return D=Di(E,b),Xr.test(D)?S(E).position()[b]+"px":D})}),S.each({Height:"height",Width:"width"},function(h,b){S.each({padding:"inner"+h,content:b,"":"outer"+h},function(E,D){S.fn[D]=function(F,j){var H=arguments.length&&(E||typeof F!="boolean"),oe=E||(F===!0||j===!0?"margin":"border");return Cn(this,function(ne,pe,De){var Ie;return M(ne)?D.indexOf("outer")===0?ne["inner"+h]:ne.document.documentElement["client"+h]:ne.nodeType===9?(Ie=ne.documentElement,Math.max(ne.body["scroll"+h],Ie["scroll"+h],ne.body["offset"+h],Ie["offset"+h],Ie["client"+h])):De===void 0?S.css(ne,pe,oe):S.style(ne,pe,De,oe)},b,H?F:void 0,H)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(h,b){S.fn[b]=function(E){return this.on(b,E)}}),S.fn.extend({bind:function(h,b,E){return this.on(h,null,b,E)},unbind:function(h,b){return this.off(h,null,b)},delegate:function(h,b,E,D){return this.on(b,h,E,D)},undelegate:function(h,b,E){return arguments.length===1?this.off(h,"**"):this.off(b,h||"**",E)},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(E,D){return arguments.length>0?this.on(b,null,E,D):this.trigger(b)}});var ss=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;S.proxy=function(h,b){var E,D,F;if(typeof b=="string"&&(E=h[b],b=h,h=E),!!I(h))return D=o.call(arguments,2),F=function(){return h.apply(b||this,D.concat(o.call(arguments)))},F.guid=h.guid=h.guid||S.guid++,F},S.holdReady=function(h){h?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=ae,S.isFunction=I,S.isWindow=M,S.camelCase=sn,S.type=Q,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(ss,"$1")};var co=t.jQuery,cr=t.$;return S.noConflict=function(h){return t.$===S&&(t.$=cr),h&&t.jQuery===S&&(t.jQuery=co),S},typeof n>"u"&&(t.jQuery=t.$=S),S})}(wv)),wv.exports}var h6=_O();const p6=Eu(h6);var g6={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(e){(function(t,n){if(e.exports){var r=typeof window<"u"?window.jQuery:void 0;r||(r=_O(),r.fn||(r.fn={}));var i=typeof window<"u"&&typeof window.moment<"u"?window.moment:UI;e.exports=n(i,r)}else t.daterangepicker=n(t.moment,t.jQuery)})(Ci,function(t,n){var r=function(i,o,s){if(this.parentEl="body",this.element=n(i),this.startDate=t().startOf("day"),this.endDate=t().endOf("day"),this.minDate=!1,this.maxDate=!1,this.maxSpan=!1,this.autoApply=!1,this.singleDatePicker=!1,this.showDropdowns=!1,this.minYear=t().subtract(100,"year").format("YYYY"),this.maxYear=t().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:t.localeData().longDateFormat("L"),separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:t.weekdaysMin(),monthNames:t.monthsShort(),firstDay:t.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=t(o.startDate,this.locale.format)),typeof o.endDate=="string"&&(this.endDate=t(o.endDate,this.locale.format)),typeof o.minDate=="string"&&(this.minDate=t(o.minDate,this.locale.format)),typeof o.maxDate=="string"&&(this.maxDate=t(o.maxDate,this.locale.format)),typeof o.startDate=="object"&&(this.startDate=t(o.startDate)),typeof o.endDate=="object"&&(this.endDate=t(o.endDate)),typeof o.minDate=="object"&&(this.minDate=t(o.minDate)),typeof o.maxDate=="object"&&(this.maxDate=t(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,g,T;if(typeof o.startDate>"u"&&typeof o.endDate>"u"&&n(this.element).is(":text")){var C=n(this.element).val(),P=C.split(this.locale.separator);y=g=null,P.length==2?(y=t(P[0],this.locale.format),g=t(P[1],this.locale.format)):this.singleDatePicker&&C!==""&&(y=t(C,this.locale.format),g=t(C,this.locale.format)),y!==null&&g!==null&&(this.setStartDate(y),this.setEndDate(g))}if(typeof o.ranges=="object"){for(T in o.ranges){typeof o.ranges[T][0]=="string"?y=t(o.ranges[T][0],this.locale.format):y=t(o.ranges[T][0]),typeof o.ranges[T][1]=="string"?g=t(o.ranges[T][1],this.locale.format):g=t(o.ranges[T][1]),this.minDate&&y.isBefore(this.minDate)&&(y=this.minDate.clone());var I=this.maxDate;if(this.maxSpan&&I&&y.clone().add(this.maxSpan).isAfter(I)&&(I=y.clone().add(this.maxSpan)),I&&g.isAfter(I)&&(g=I.clone()),!(this.minDate&&g.isBefore(this.minDate,this.timepicker?"minute":"day")||I&&y.isAfter(I,this.timepicker?"minute":"day"))){var c=document.createElement("textarea");c.innerHTML=T;var f=c.value;this.ranges[f]=[y,g]}}var M="<ul>";for(T in this.ranges)M+='<li data-range-key="'+T+'">'+T+"</li>";this.showCustomRangeLabel&&(M+='<li data-range-key="'+this.locale.customRangeLabel+'">'+this.locale.customRangeLabel+"</li>"),M+="</ul>",this.container.find(".ranges").prepend(M)}typeof s=="function"&&(this.callback=s),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=t(i,this.locale.format)),typeof i=="object"&&(this.startDate=t(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=t(i,this.locale.format)),typeof i=="object"&&(this.endDate=t(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,s;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)),s=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)),s=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(s),this.rightCalendar.month.hour(i).minute(o).second(s)}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(),s=R.month.year(),c=R.month.hour(),f=R.month.minute(),p=R.month.second(),y=t([s,o]).daysInMonth(),g=t([s,o,1]),T=t([s,o,y]),C=t(g).subtract(1,"month").month(),P=t(g).subtract(1,"month").year(),I=t([P,C]).daysInMonth(),M=g.day(),R=[];R.firstDay=g,R.lastDay=T;for(var V=0;V<6;V++)R[V]=[];var U=I-M+this.locale.firstDay+1;U>I&&(U-=7),M==this.locale.firstDay&&(U=I-6);for(var Q=t([P,C,U,12,f,p]),K,ue,V=0,K=0,ue=0;V<42;V++,K++,Q=t(Q).add(24,"hour"))V>0&&K%7===0&&(K=0,ue++),R[ue][K]=Q.clone().hour(c).minute(f).second(p),Q.hour(12),this.minDate&&R[ue][K].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&R[ue][K].isBefore(this.minDate)&&i=="left"&&(R[ue][K]=this.minDate.clone()),this.maxDate&&R[ue][K].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&R[ue][K].isAfter(this.maxDate)&&i=="right"&&(R[ue][K]=this.maxDate.clone());i=="left"?this.leftCalendar.calendar=R:this.rightCalendar.calendar=R;var S=i=="left"?this.minDate:this.startDate,he=this.maxDate;i=="left"?this.startDate:this.endDate,this.locale.direction=="ltr";var ae='<table class="table-condensed">';ae+="<thead>",ae+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(ae+="<th></th>"),(!S||S.isBefore(R.firstDay))&&(!this.linkedCalendars||i=="left")?ae+='<th class="prev available"><span></span></th>':ae+="<th></th>";var Ge=this.locale.monthNames[R[1][1].month()]+R[1][1].format(" YYYY");if(this.showDropdowns){for(var Re=R[1][1].month(),Me=R[1][1].year(),$e=he&&he.year()||this.maxYear,Ue=S&&S.year()||this.minYear,ce=Me==Ue,Te=Me==$e,Ne='<select class="monthselect">',We=0;We<12;We++)(!ce||S&&We>=S.month())&&(!Te||he&&We<=he.month())?Ne+="<option value='"+We+"'"+(We===Re?" selected='selected'":"")+">"+this.locale.monthNames[We]+"</option>":Ne+="<option value='"+We+"'"+(We===Re?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[We]+"</option>";Ne+="</select>";for(var tt='<select class="yearselect">',we=Ue;we<=$e;we++)tt+='<option value="'+we+'"'+(we===Me?' selected="selected"':"")+">"+we+"</option>";tt+="</select>",Ge=Ne+tt}if(ae+='<th colspan="5" class="month">'+Ge+"</th>",(!he||he.isAfter(R.lastDay))&&(!this.linkedCalendars||i=="right"||this.singleDatePicker)?ae+='<th class="next available"><span></span></th>':ae+="<th></th>",ae+="</tr>",ae+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(ae+='<th class="week">'+this.locale.weekLabel+"</th>"),n.each(this.locale.daysOfWeek,function(ze,it){ae+="<th>"+it+"</th>"}),ae+="</tr>",ae+="</thead>",ae+="<tbody>",this.endDate==null&&this.maxSpan){var Ee=this.startDate.clone().add(this.maxSpan).endOf("day");(!he||Ee.isBefore(he))&&(he=Ee)}for(var ue=0;ue<6;ue++){ae+="<tr>",this.showWeekNumbers?ae+='<td class="week">'+R[ue][0].week()+"</td>":this.showISOWeekNumbers&&(ae+='<td class="week">'+R[ue][0].isoWeek()+"</td>");for(var K=0;K<7;K++){var Le=[];R[ue][K].isSame(new Date,"day")&&Le.push("today"),R[ue][K].isoWeekday()>5&&Le.push("weekend"),R[ue][K].month()!=R[1][1].month()&&Le.push("off","ends"),this.minDate&&R[ue][K].isBefore(this.minDate,"day")&&Le.push("off","disabled"),he&&R[ue][K].isAfter(he,"day")&&Le.push("off","disabled"),this.isInvalidDate(R[ue][K])&&Le.push("off","disabled"),R[ue][K].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&Le.push("active","start-date"),this.endDate!=null&&R[ue][K].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&Le.push("active","end-date"),this.endDate!=null&&R[ue][K]>this.startDate&&R[ue][K]<this.endDate&&Le.push("in-range");var Be=this.isCustomDate(R[ue][K]);Be!==!1&&(typeof Be=="string"?Le.push(Be):Array.prototype.push.apply(Le,Be));for(var ke="",_e=!1,V=0;V<Le.length;V++)ke+=Le[V]+" ",Le[V]=="disabled"&&(_e=!0);_e||(ke+="available"),ae+='<td class="'+ke.replace(/^\s+|\s+$/g,"")+'" data-title="r'+ue+"c"+K+'">'+R[ue][K].date()+"</td>"}ae+="</tr>"}ae+="</tbody>",ae+="</table>",this.container.find(".drp-calendar."+i+" .calendar-table").html(ae)},renderTimePicker:function(i){if(!(i=="right"&&!this.endDate)){var o,s,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")s=this.startDate.clone(),c=this.minDate;else if(i=="right"){s=this.endDate.clone(),c=this.startDate;var p=this.container.find(".drp-calendar.right .calendar-time");if(p.html()!=""&&(s.hour(isNaN(s.hour())?p.find(".hourselect option:selected").val():s.hour()),s.minute(isNaN(s.minute())?p.find(".minuteselect option:selected").val():s.minute()),s.second(isNaN(s.second())?p.find(".secondselect option:selected").val():s.second()),!this.timePicker24Hour)){var y=p.find(".ampmselect option:selected").val();y==="PM"&&s.hour()<12&&s.hour(s.hour()+12),y==="AM"&&s.hour()===12&&s.hour(0)}s.isBefore(this.startDate)&&(s=this.startDate.clone()),f&&s.isAfter(f)&&(s=f.clone())}o='<select class="hourselect">';for(var g=this.timePicker24Hour?0:1,T=this.timePicker24Hour?23:12,C=g;C<=T;C++){var P=C;this.timePicker24Hour||(P=s.hour()>=12?C==12?12:C+12:C==12?0:C);var I=s.clone().hour(P),M=!1;c&&I.minute(59).isBefore(c)&&(M=!0),f&&I.minute(0).isAfter(f)&&(M=!0),P==s.hour()&&!M?o+='<option value="'+C+'" selected="selected">'+C+"</option>":M?o+='<option value="'+C+'" disabled="disabled" class="disabled">'+C+"</option>":o+='<option value="'+C+'">'+C+"</option>"}o+="</select> ",o+=': <select class="minuteselect">';for(var C=0;C<60;C+=this.timePickerIncrement){var R=C<10?"0"+C:C,I=s.clone().minute(C),M=!1;c&&I.second(59).isBefore(c)&&(M=!0),f&&I.second(0).isAfter(f)&&(M=!0),s.minute()==C&&!M?o+='<option value="'+C+'" selected="selected">'+R+"</option>":M?o+='<option value="'+C+'" disabled="disabled" class="disabled">'+R+"</option>":o+='<option value="'+C+'">'+R+"</option>"}if(o+="</select> ",this.timePickerSeconds){o+=': <select class="secondselect">';for(var C=0;C<60;C++){var R=C<10?"0"+C:C,I=s.clone().second(C),M=!1;c&&I.isBefore(c)&&(M=!0),f&&I.isAfter(f)&&(M=!0),s.second()==C&&!M?o+='<option value="'+C+'" selected="selected">'+R+"</option>":M?o+='<option value="'+C+'" disabled="disabled" class="disabled">'+R+"</option>":o+='<option value="'+C+'">'+R+"</option>"}o+="</select> "}if(!this.timePicker24Hour){o+='<select class="ampmselect">';var V="",U="";c&&s.clone().hour(12).minute(0).second(0).isBefore(c)&&(V=' disabled="disabled" class="disabled"'),f&&s.clone().hour(0).minute(0).second(0).isAfter(f)&&(U=' disabled="disabled" class="disabled"'),s.hour()>=12?o+='<option value="AM"'+V+'>AM</option><option value="PM" selected="selected"'+U+">PM</option>":o+='<option value="AM" selected="selected"'+V+'>AM</option><option value="PM"'+U+">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,s=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),s){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,s="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",s=="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 s=this.ranges[o];this.startDate=s[0],this.endDate=s[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"),s=o.substr(1,1),c=o.substr(3,1),f=n(i.target).parents(".drp-calendar"),p=f.hasClass("left")?this.leftCalendar.calendar[s][c]:this.rightCalendar.calendar[s][c],y=this.leftCalendar,g=this.rightCalendar,T=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each(function(C,P){if(!n(P).hasClass("week")){var I=n(P).attr("data-title"),M=I.substr(1,1),R=I.substr(3,1),V=n(P).parents(".drp-calendar"),U=V.hasClass("left")?y.calendar[M][R]:g.calendar[M][R];U.isAfter(T)&&U.isBefore(p)||U.isSame(p,"day")?n(P).addClass("in-range"):n(P).removeClass("in-range")}})}},clickDate:function(i){if(n(i.target).hasClass("available")){var o=n(i.target).attr("data-title"),s=o.substr(1,1),c=o.substr(3,1),f=n(i.target).parents(".drp-calendar"),p=f.hasClass("left")?this.leftCalendar.calendar[s][c]:this.rightCalendar.calendar[s][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 g=this.container.find(".left .ampmselect").val();g==="PM"&&y<12&&(y+=12),g==="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 C=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;p=p.clone().hour(y).minute(T).second(C)}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 g=this.container.find(".right .ampmselect").val();g==="PM"&&y<12&&(y+=12),g==="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 C=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;p=p.clone().hour(y).minute(T).second(C)}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 s 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[s][0].format(c)&&this.endDate.format(c)==this.ranges[s][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[s][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[s][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"),s=o?"left":"right",c=this.container.find(".drp-calendar."+s),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"),s=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(s){var g=this.startDate.clone();g.hour(c),g.minute(f),g.second(p),this.setStartDate(g),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==g.format("YYYY-MM-DD")&&this.endDate.isBefore(g)&&this.setEndDate(g.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,s=null;i.length===2&&(o=t(i[0],this.locale.format),s=t(i[1],this.locale.format)),(this.singleDatePicker||o===null||s===null)&&(o=t(this.element.val(),this.locale.format),s=o),!(!o.isValid()||!s.isValid())&&(this.setStartDate(o),this.setEndDate(s),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 s=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,s,o))}),this},r})})(g6);var Dm=function(e,t){return Dm=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])},Dm(e,t)};function v6(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Dm(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var m6=function(e){v6(t,e);function t(n){var r=e.call(this,n)||this;return r.ref=null,r.$picker=null,r}return t.prototype.componentDidMount=function(){var n=this;this.$picker=p6(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))})},t.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()},t.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)},t.prototype.makeEventHandler=function(n){var r=this,i=this.props.onEvent;return function(o,s){typeof i=="function"&&i(o,s),typeof r.props[n]=="function"&&r.props[n](o,s)}},t.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)},t.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)},t.prototype.render=function(){var n=this,r=bn.Children.only(this.props.children);return bn.cloneElement(r,{ref:function(i){return n.ref=i}})},t}(bn.Component);is.styled(e=>je.jsx(is.Switch,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...e}))(({theme:e})=>({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:Ei.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:e.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 PO=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=i&63|128):(i&64512)===55296&&r+1<e.length&&(e.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(e.charCodeAt(++r)&1023),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128)}return t},y6=function(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){const o=e[n++];t[r++]=String.fromCharCode((i&31)<<6|o&63)}else if(i>239&&i<365){const o=e[n++],s=e[n++],c=e[n++],f=((i&7)<<18|(o&63)<<12|(s&63)<<6|c&63)-65536;t[r++]=String.fromCharCode(55296+(f>>10)),t[r++]=String.fromCharCode(56320+(f&1023))}else{const o=e[n++],s=e[n++];t[r++]=String.fromCharCode((i&15)<<12|(o&63)<<6|s&63)}}return t.join("")},RO={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(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<e.length;i+=3){const o=e[i],s=i+1<e.length,c=s?e[i+1]:0,f=i+2<e.length,p=f?e[i+2]:0,y=o>>2,g=(o&3)<<4|c>>4;let T=(c&15)<<2|p>>6,C=p&63;f||(C=64,s||(T=64)),r.push(n[y],n[g],n[T],n[C])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(PO(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):y6(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<e.length;){const o=n[e.charAt(i++)],c=i<e.length?n[e.charAt(i)]:0;++i;const p=i<e.length?n[e.charAt(i)]:64;++i;const g=i<e.length?n[e.charAt(i)]:64;if(++i,o==null||c==null||p==null||g==null)throw new b6;const T=o<<2|c>>4;if(r.push(T),p!==64){const C=c<<4&240|p>>2;if(r.push(C),g!==64){const P=p<<6&192|g;r.push(P)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class b6 extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const w6=function(e){const t=PO(e);return RO.encodeByteArray(t,!0)},IO=function(e){return w6(e).replace(/\./g,"")},x6=function(e){try{return RO.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}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 S6(){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 T6=()=>S6().__FIREBASE_DEFAULTS__,C6=()=>{if(typeof process>"u"||typeof process.env>"u")return;const e=process.env.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},E6=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&x6(e[1]);return t&&JSON.parse(t)},k6=()=>{try{return T6()||C6()||E6()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},AO=()=>{var e;return(e=k6())===null||e===void 0?void 0:e.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 O6{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}wrapCallback(t){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(n):t(n,r))}}}function MO(){try{return typeof indexedDB=="object"}catch{return!1}}function LO(){return new Promise((e,t)=>{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),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var o;t(((o=i.error)===null||o===void 0?void 0:o.message)||"")}}catch(n){t(n)}})}function D6(){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 _6="FirebaseError";class If extends Error{constructor(t,n,r){super(n),this.code=t,this.customData=r,this.name=_6,Object.setPrototypeOf(this,If.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Jp.prototype.create)}}class Jp{constructor(t,n,r){this.service=t,this.serviceName=n,this.errors=r}create(t,...n){const r=n[0]||{},i=`${this.service}/${t}`,o=this.errors[t],s=o?P6(o,r):"Error",c=`${this.serviceName}: ${s} (${i}).`;return new If(i,c,r)}}function P6(e,t){return e.replace(R6,(n,r)=>{const i=t[r];return i!=null?String(i):`<${r}?>`})}const R6=/\{\$([^}]+)}/g;function _m(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const i of n){if(!r.includes(i))return!1;const o=e[i],s=t[i];if(c1(o)&&c1(s)){if(!_m(o,s))return!1}else if(o!==s)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function c1(e){return e!==null&&typeof e=="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 Gy(e){return e&&e._delegate?e._delegate:e}class Cu{constructor(t,n,r){this.name=t,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,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 pc="[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 I6{constructor(t,n){this.name=t,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){const n=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(n)){const r=new O6;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(t){var n;const r=this.normalizeInstanceIdentifier(t==null?void 0:t.identifier),i=(n=t==null?void 0:t.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(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,!!this.shouldAutoInitialize()){if(M6(t))try{this.getOrInitializeService({instanceIdentifier:pc})}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(t=pc){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){const t=Array.from(this.instances.values());await Promise.all([...t.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...t.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(t=pc){return this.instances.has(t)}getOptions(t=pc){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:n={}}=t,r=this.normalizeInstanceIdentifier(t.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,s]of this.instancesDeferred.entries()){const c=this.normalizeInstanceIdentifier(o);r===c&&s.resolve(i)}return i}onInit(t,n){var r;const i=this.normalizeInstanceIdentifier(n),o=(r=this.onInitCallbacks.get(i))!==null&&r!==void 0?r:new Set;o.add(t),this.onInitCallbacks.set(i,o);const s=this.instances.get(i);return s&&t(s,i),()=>{o.delete(t)}}invokeOnInitCallbacks(t,n){const r=this.onInitCallbacks.get(n);if(r)for(const i of r)try{i(t,n)}catch{}}getOrInitializeService({instanceIdentifier:t,options:n={}}){let r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:A6(t),options:n}),this.instances.set(t,r),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch{}return r||null}normalizeInstanceIdentifier(t=pc){return this.component?this.component.multipleInstances?t:pc:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function A6(e){return e===pc?void 0:e}function M6(e){return e.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 L6{constructor(t){this.name=t,this.providers=new Map}addComponent(t){const n=this.getProvider(t.name);if(n.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);n.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);const n=new I6(t,this);return this.providers.set(t,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 Fn;(function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"})(Fn||(Fn={}));const F6={debug:Fn.DEBUG,verbose:Fn.VERBOSE,info:Fn.INFO,warn:Fn.WARN,error:Fn.ERROR,silent:Fn.SILENT},N6=Fn.INFO,j6={[Fn.DEBUG]:"log",[Fn.VERBOSE]:"log",[Fn.INFO]:"info",[Fn.WARN]:"warn",[Fn.ERROR]:"error"},B6=(e,t,...n)=>{if(t<e.logLevel)return;const r=new Date().toISOString(),i=j6[t];if(i)console[i](`[${r}] ${e.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class $6{constructor(t){this.name=t,this._logLevel=N6,this._logHandler=B6,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in Fn))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?F6[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if(typeof t!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&&this._userLogHandler(this,Fn.DEBUG,...t),this._logHandler(this,Fn.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,Fn.VERBOSE,...t),this._logHandler(this,Fn.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,Fn.INFO,...t),this._logHandler(this,Fn.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,Fn.WARN,...t),this._logHandler(this,Fn.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,Fn.ERROR,...t),this._logHandler(this,Fn.ERROR,...t)}}const V6=(e,t)=>t.some(n=>e instanceof n);let f1,d1;function H6(){return f1||(f1=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function U6(){return d1||(d1=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const FO=new WeakMap,Pm=new WeakMap,NO=new WeakMap,xv=new WeakMap,qy=new WeakMap;function W6(e){const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("success",o),e.removeEventListener("error",s)},o=()=>{n(Cl(e.result)),i()},s=()=>{r(e.error),i()};e.addEventListener("success",o),e.addEventListener("error",s)});return t.then(n=>{n instanceof IDBCursor&&FO.set(n,e)}).catch(()=>{}),qy.set(t,e),t}function z6(e){if(Pm.has(e))return;const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",s),e.removeEventListener("abort",s)},o=()=>{n(),i()},s=()=>{r(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",o),e.addEventListener("error",s),e.addEventListener("abort",s)});Pm.set(e,t)}let Rm={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return Pm.get(e);if(t==="objectStoreNames")return e.objectStoreNames||NO.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Cl(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function Y6(e){Rm=e(Rm)}function G6(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const r=e.call(Sv(this),t,...n);return NO.set(r,t.sort?t.sort():[t]),Cl(r)}:U6().includes(e)?function(...t){return e.apply(Sv(this),t),Cl(FO.get(this))}:function(...t){return Cl(e.apply(Sv(this),t))}}function q6(e){return typeof e=="function"?G6(e):(e instanceof IDBTransaction&&z6(e),V6(e,H6())?new Proxy(e,Rm):e)}function Cl(e){if(e instanceof IDBRequest)return W6(e);if(xv.has(e))return xv.get(e);const t=q6(e);return t!==e&&(xv.set(e,t),qy.set(t,e)),t}const Sv=e=>qy.get(e);function Qp(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const s=indexedDB.open(e,t),c=Cl(s);return r&&s.addEventListener("upgradeneeded",f=>{r(Cl(s.result),f.oldVersion,f.newVersion,Cl(s.transaction),f)}),n&&s.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 Tv(e,{blocked:t}={}){const n=indexedDB.deleteDatabase(e);return t&&n.addEventListener("blocked",r=>t(r.oldVersion,r)),Cl(n).then(()=>{})}const X6=["get","getKey","getAll","getAllKeys","count"],K6=["put","add","delete","clear"],Cv=new Map;function h1(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Cv.get(t))return Cv.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=K6.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||X6.includes(n)))return;const o=async function(s,...c){const f=this.transaction(s,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 Cv.set(t,o),o}Y6(e=>({...e,get:(t,n,r)=>h1(t,n)||e.get(t,n,r),has:(t,n)=>!!h1(t,n)||e.has(t,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 Z6{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(J6(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function J6(e){const t=e.getComponent();return(t==null?void 0:t.type)==="VERSION"}const Im="@firebase/app",p1="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 _l=new $6("@firebase/app"),Q6="@firebase/app-compat",e8="@firebase/analytics-compat",t8="@firebase/analytics",n8="@firebase/app-check-compat",r8="@firebase/app-check",i8="@firebase/auth",o8="@firebase/auth-compat",a8="@firebase/database",s8="@firebase/data-connect",l8="@firebase/database-compat",u8="@firebase/functions",c8="@firebase/functions-compat",f8="@firebase/installations",d8="@firebase/installations-compat",h8="@firebase/messaging",p8="@firebase/messaging-compat",g8="@firebase/performance",v8="@firebase/performance-compat",m8="@firebase/remote-config",y8="@firebase/remote-config-compat",b8="@firebase/storage",w8="@firebase/storage-compat",x8="@firebase/firestore",S8="@firebase/vertexai-preview",T8="@firebase/firestore-compat",C8="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 Am="[DEFAULT]",E8={[Im]:"fire-core",[Q6]:"fire-core-compat",[t8]:"fire-analytics",[e8]:"fire-analytics-compat",[r8]:"fire-app-check",[n8]:"fire-app-check-compat",[i8]:"fire-auth",[o8]:"fire-auth-compat",[a8]:"fire-rtdb",[s8]:"fire-data-connect",[l8]:"fire-rtdb-compat",[u8]:"fire-fn",[c8]:"fire-fn-compat",[f8]:"fire-iid",[d8]:"fire-iid-compat",[h8]:"fire-fcm",[p8]:"fire-fcm-compat",[g8]:"fire-perf",[v8]:"fire-perf-compat",[m8]:"fire-rc",[y8]:"fire-rc-compat",[b8]:"fire-gcs",[w8]:"fire-gcs-compat",[x8]:"fire-fst",[T8]:"fire-fst-compat",[S8]:"fire-vertex","fire-js":"fire-js",[C8]:"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 xp=new Map,k8=new Map,Mm=new Map;function g1(e,t){try{e.container.addComponent(t)}catch(n){_l.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function Cc(e){const t=e.name;if(Mm.has(t))return _l.debug(`There were multiple attempts to register component ${t}.`),!1;Mm.set(t,e);for(const n of xp.values())g1(n,e);for(const n of k8.values())g1(n,e);return!0}function Xy(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}/**
|
|
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 O8={"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."},yu=new Jp("app","Firebase",O8);/**
|
|
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 D8{constructor(t,n,r){this._isDeleted=!1,this._options=Object.assign({},t),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(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}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(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw yu.create("app-deleted",{appName:this._name})}}function jO(e,t={}){let n=e;typeof t!="object"&&(t={name:t});const r=Object.assign({name:Am,automaticDataCollectionEnabled:!1},t),i=r.name;if(typeof i!="string"||!i)throw yu.create("bad-app-name",{appName:String(i)});if(n||(n=AO()),!n)throw yu.create("no-options");const o=xp.get(i);if(o){if(_m(n,o.options)&&_m(r,o.config))return o;throw yu.create("duplicate-app",{appName:i})}const s=new L6(i);for(const f of Mm.values())s.addComponent(f);const c=new D8(n,r,s);return xp.set(i,c),c}function _8(e=Am){const t=xp.get(e);if(!t&&e===Am&&AO())return jO();if(!t)throw yu.create("no-app",{appName:e});return t}function bu(e,t,n){var r;let i=(r=E8[e])!==null&&r!==void 0?r:e;n&&(i+=`-${n}`);const o=i.match(/\s|\//),s=t.match(/\s|\//);if(o||s){const c=[`Unable to register library "${i}" with version "${t}":`];o&&c.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&s&&c.push("and"),s&&c.push(`version name "${t}" contains illegal characters (whitespace or "/")`),_l.warn(c.join(" "));return}Cc(new Cu(`${i}-version`,()=>({library:i,version:t}),"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 P8="firebase-heartbeat-database",R8=1,Ld="firebase-heartbeat-store";let Ev=null;function BO(){return Ev||(Ev=Qp(P8,R8,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(Ld)}catch(n){console.warn(n)}}}}).catch(e=>{throw yu.create("idb-open",{originalErrorMessage:e.message})})),Ev}async function I8(e){try{const n=(await BO()).transaction(Ld),r=await n.objectStore(Ld).get($O(e));return await n.done,r}catch(t){if(t instanceof If)_l.warn(t.message);else{const n=yu.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});_l.warn(n.message)}}}async function v1(e,t){try{const r=(await BO()).transaction(Ld,"readwrite");await r.objectStore(Ld).put(t,$O(e)),await r.done}catch(n){if(n instanceof If)_l.warn(n.message);else{const r=yu.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});_l.warn(r.message)}}}function $O(e){return`${e.name}!${e.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 A8=1024,M8=30*24*60*60*1e3;class L8{constructor(t){this.container=t,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new N8(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var t,n;try{const i=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),o=m1();return((t=this._heartbeatsCache)===null||t===void 0?void 0:t.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(s=>s.date===o)?void 0:(this._heartbeatsCache.heartbeats.push({date:o,agent:i}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(s=>{const c=new Date(s.date).valueOf();return Date.now()-c<=M8}),this._storage.overwrite(this._heartbeatsCache))}catch(r){_l.warn(r)}}async getHeartbeatsHeader(){var t;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=m1(),{heartbeatsToSend:r,unsentEntries:i}=F8(this._heartbeatsCache.heartbeats),o=IO(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 _l.warn(n),""}}}function m1(){return new Date().toISOString().substring(0,10)}function F8(e,t=A8){const n=[];let r=e.slice();for(const i of e){const o=n.find(s=>s.agent===i.agent);if(o){if(o.dates.push(i.date),y1(n)>t){o.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),y1(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class N8{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return MO()?LO().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await I8(this.app);return n!=null&&n.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(t){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return v1(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return v1(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...t.heartbeats]})}else return}}function y1(e){return IO(JSON.stringify({version:2,heartbeats:e})).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 j8(e){Cc(new Cu("platform-logger",t=>new Z6(t),"PRIVATE")),Cc(new Cu("heartbeat",t=>new L8(t),"PRIVATE")),bu(Im,p1,e),bu(Im,p1,"esm2017"),bu("fire-js","")}j8("");var B8="firebase",$8="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
|
+
*/bu(B8,$8,"app");const VO="@firebase/installations",Ky="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 HO=1e4,UO=`w:${Ky}`,WO="FIS_v2",V8="https://firebaseinstallations.googleapis.com/v1",H8=60*60*1e3,U8="installations",W8="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 z8={"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."},Ec=new Jp(U8,W8,z8);function zO(e){return e instanceof If&&e.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 YO({projectId:e}){return`${V8}/projects/${e}/installations`}function GO(e){return{token:e.token,requestStatus:2,expiresIn:G8(e.expiresIn),creationTime:Date.now()}}async function qO(e,t){const r=(await t.json()).error;return Ec.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function XO({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function Y8(e,{refreshToken:t}){const n=XO(e);return n.append("Authorization",q8(t)),n}async function KO(e){const t=await e();return t.status>=500&&t.status<600?e():t}function G8(e){return Number(e.replace("s","000"))}function q8(e){return`${WO} ${e}`}/**
|
|
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 X8({appConfig:e,heartbeatServiceProvider:t},{fid:n}){const r=YO(e),i=XO(e),o=t.getImmediate({optional:!0});if(o){const p=await o.getHeartbeatsHeader();p&&i.append("x-firebase-client",p)}const s={fid:n,authVersion:WO,appId:e.appId,sdkVersion:UO},c={method:"POST",headers:i,body:JSON.stringify(s)},f=await KO(()=>fetch(r,c));if(f.ok){const p=await f.json();return{fid:p.fid||n,registrationStatus:2,refreshToken:p.refreshToken,authToken:GO(p.authToken)}}else throw await qO("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 ZO(e){return new Promise(t=>{setTimeout(t,e)})}/**
|
|
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 K8(e){return btoa(String.fromCharCode(...e)).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 Z8=/^[cdef][\w-]{21}$/,Lm="";function J8(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const n=Q8(e);return Z8.test(n)?n:Lm}catch{return Lm}}function Q8(e){return K8(e).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 eg(e){return`${e.appName}!${e.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 JO=new Map;function QO(e,t){const n=eg(e);eD(n,t),e9(n,t)}function eD(e,t){const n=JO.get(e);if(n)for(const r of n)r(t)}function e9(e,t){const n=t9();n&&n.postMessage({key:e,fid:t}),n9()}let mc=null;function t9(){return!mc&&"BroadcastChannel"in self&&(mc=new BroadcastChannel("[Firebase] FID Change"),mc.onmessage=e=>{eD(e.data.key,e.data.fid)}),mc}function n9(){JO.size===0&&mc&&(mc.close(),mc=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 r9="firebase-installations-database",i9=1,kc="firebase-installations-store";let kv=null;function Zy(){return kv||(kv=Qp(r9,i9,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(kc)}}})),kv}async function Sp(e,t){const n=eg(e),i=(await Zy()).transaction(kc,"readwrite"),o=i.objectStore(kc),s=await o.get(n);return await o.put(t,n),await i.done,(!s||s.fid!==t.fid)&&QO(e,t.fid),t}async function tD(e){const t=eg(e),r=(await Zy()).transaction(kc,"readwrite");await r.objectStore(kc).delete(t),await r.done}async function tg(e,t){const n=eg(e),i=(await Zy()).transaction(kc,"readwrite"),o=i.objectStore(kc),s=await o.get(n),c=t(s);return c===void 0?await o.delete(n):await o.put(c,n),await i.done,c&&(!s||s.fid!==c.fid)&&QO(e,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 Jy(e){let t;const n=await tg(e.appConfig,r=>{const i=o9(r),o=a9(e,i);return t=o.registrationPromise,o.installationEntry});return n.fid===Lm?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}function o9(e){const t=e||{fid:J8(),registrationStatus:0};return nD(t)}function a9(e,t){if(t.registrationStatus===0){if(!navigator.onLine){const i=Promise.reject(Ec.create("app-offline"));return{installationEntry:t,registrationPromise:i}}const n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=s9(e,n);return{installationEntry:n,registrationPromise:r}}else return t.registrationStatus===1?{installationEntry:t,registrationPromise:l9(e)}:{installationEntry:t}}async function s9(e,t){try{const n=await X8(e,t);return Sp(e.appConfig,n)}catch(n){throw zO(n)&&n.customData.serverCode===409?await tD(e.appConfig):await Sp(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}async function l9(e){let t=await b1(e.appConfig);for(;t.registrationStatus===1;)await ZO(100),t=await b1(e.appConfig);if(t.registrationStatus===0){const{installationEntry:n,registrationPromise:r}=await Jy(e);return r||n}return t}function b1(e){return tg(e,t=>{if(!t)throw Ec.create("installation-not-found");return nD(t)})}function nD(e){return u9(e)?{fid:e.fid,registrationStatus:0}:e}function u9(e){return e.registrationStatus===1&&e.registrationTime+HO<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 c9({appConfig:e,heartbeatServiceProvider:t},n){const r=f9(e,n),i=Y8(e,n),o=t.getImmediate({optional:!0});if(o){const p=await o.getHeartbeatsHeader();p&&i.append("x-firebase-client",p)}const s={installation:{sdkVersion:UO,appId:e.appId}},c={method:"POST",headers:i,body:JSON.stringify(s)},f=await KO(()=>fetch(r,c));if(f.ok){const p=await f.json();return GO(p)}else throw await qO("Generate Auth Token",f)}function f9(e,{fid:t}){return`${YO(e)}/${t}/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 Qy(e,t=!1){let n;const r=await tg(e.appConfig,o=>{if(!rD(o))throw Ec.create("not-registered");const s=o.authToken;if(!t&&p9(s))return o;if(s.requestStatus===1)return n=d9(e,t),o;{if(!navigator.onLine)throw Ec.create("app-offline");const c=v9(o);return n=h9(e,c),c}});return n?await n:r.authToken}async function d9(e,t){let n=await w1(e.appConfig);for(;n.authToken.requestStatus===1;)await ZO(100),n=await w1(e.appConfig);const r=n.authToken;return r.requestStatus===0?Qy(e,t):r}function w1(e){return tg(e,t=>{if(!rD(t))throw Ec.create("not-registered");const n=t.authToken;return m9(n)?Object.assign(Object.assign({},t),{authToken:{requestStatus:0}}):t})}async function h9(e,t){try{const n=await c9(e,t),r=Object.assign(Object.assign({},t),{authToken:n});return await Sp(e.appConfig,r),n}catch(n){if(zO(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await tD(e.appConfig);else{const r=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await Sp(e.appConfig,r)}throw n}}function rD(e){return e!==void 0&&e.registrationStatus===2}function p9(e){return e.requestStatus===2&&!g9(e)}function g9(e){const t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+H8}function v9(e){const t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}function m9(e){return e.requestStatus===1&&e.requestTime+HO<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 y9(e){const t=e,{installationEntry:n,registrationPromise:r}=await Jy(t);return r?r.catch(console.error):Qy(t).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 b9(e,t=!1){const n=e;return await w9(n),(await Qy(n,t)).token}async function w9(e){const{registrationPromise:t}=await Jy(e);t&&await t}/**
|
|
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 x9(e){if(!e||!e.options)throw Ov("App Configuration");if(!e.name)throw Ov("App Name");const t=["projectId","apiKey","appId"];for(const n of t)if(!e.options[n])throw Ov(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}function Ov(e){return Ec.create("missing-app-config-values",{valueName:e})}/**
|
|
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 iD="installations",S9="installations-internal",T9=e=>{const t=e.getProvider("app").getImmediate(),n=x9(t),r=Xy(t,"heartbeat");return{app:t,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},C9=e=>{const t=e.getProvider("app").getImmediate(),n=Xy(t,iD).getImmediate();return{getId:()=>y9(n),getToken:i=>b9(n,i)}};function E9(){Cc(new Cu(iD,T9,"PUBLIC")),Cc(new Cu(S9,C9,"PRIVATE"))}E9();bu(VO,Ky);bu(VO,Ky,"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 k9="/firebase-messaging-sw.js",O9="/firebase-cloud-messaging-push-scope",oD="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",D9="https://fcmregistrations.googleapis.com/v1",aD="google.c.a.c_id",_9="google.c.a.c_l",P9="google.c.a.ts",R9="google.c.a.e";var x1;(function(e){e[e.DATA_MESSAGE=1]="DATA_MESSAGE",e[e.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"})(x1||(x1={}));/**
|
|
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 Fd;(function(e){e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked"})(Fd||(Fd={}));/**
|
|
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 ml(e){const t=new Uint8Array(e);return btoa(String.fromCharCode(...t)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function I9(e){const t="=".repeat((4-e.length%4)%4),n=(e+t).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 Dv="fcm_token_details_db",A9=5,S1="fcm_token_object_Store";async function M9(e){if("databases"in indexedDB&&!(await indexedDB.databases()).map(o=>o.name).includes(Dv))return null;let t=null;return(await Qp(Dv,A9,{upgrade:async(r,i,o,s)=>{var c;if(i<2||!r.objectStoreNames.contains(S1))return;const f=s.objectStore(S1),p=await f.index("fcmSenderId").get(e);if(await f.clear(),!!p){if(i===2){const y=p;if(!y.auth||!y.p256dh||!y.endpoint)return;t={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:ml(y.vapidKey)}}}else if(i===3){const y=p;t={token:y.fcmToken,createTime:y.createTime,subscriptionOptions:{auth:ml(y.auth),p256dh:ml(y.p256dh),endpoint:y.endpoint,swScope:y.swScope,vapidKey:ml(y.vapidKey)}}}else if(i===4){const y=p;t={token:y.fcmToken,createTime:y.createTime,subscriptionOptions:{auth:ml(y.auth),p256dh:ml(y.p256dh),endpoint:y.endpoint,swScope:y.swScope,vapidKey:ml(y.vapidKey)}}}}}})).close(),await Tv(Dv),await Tv("fcm_vapid_details_db"),await Tv("undefined"),L9(t)?t:null}function L9(e){if(!e||!e.subscriptionOptions)return!1;const{subscriptionOptions:t}=e;return typeof e.createTime=="number"&&e.createTime>0&&typeof e.token=="string"&&e.token.length>0&&typeof t.auth=="string"&&t.auth.length>0&&typeof t.p256dh=="string"&&t.p256dh.length>0&&typeof t.endpoint=="string"&&t.endpoint.length>0&&typeof t.swScope=="string"&&t.swScope.length>0&&typeof t.vapidKey=="string"&&t.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 F9="firebase-messaging-database",N9=1,Nd="firebase-messaging-store";let _v=null;function sD(){return _v||(_v=Qp(F9,N9,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(Nd)}}})),_v}async function j9(e){const t=lD(e),r=await(await sD()).transaction(Nd).objectStore(Nd).get(t);if(r)return r;{const i=await M9(e.appConfig.senderId);if(i)return await eb(e,i),i}}async function eb(e,t){const n=lD(e),i=(await sD()).transaction(Nd,"readwrite");return await i.objectStore(Nd).put(t,n),await i.done,t}function lD({appConfig:e}){return e.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 B9={"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."},Ni=new Jp("messaging","Messaging",B9);/**
|
|
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 $9(e,t){const n=await nb(e),r=uD(t),i={method:"POST",headers:n,body:JSON.stringify(r)};let o;try{o=await(await fetch(tb(e.appConfig),i)).json()}catch(s){throw Ni.create("token-subscribe-failed",{errorInfo:s==null?void 0:s.toString()})}if(o.error){const s=o.error.message;throw Ni.create("token-subscribe-failed",{errorInfo:s})}if(!o.token)throw Ni.create("token-subscribe-no-token");return o.token}async function V9(e,t){const n=await nb(e),r=uD(t.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)};let o;try{o=await(await fetch(`${tb(e.appConfig)}/${t.token}`,i)).json()}catch(s){throw Ni.create("token-update-failed",{errorInfo:s==null?void 0:s.toString()})}if(o.error){const s=o.error.message;throw Ni.create("token-update-failed",{errorInfo:s})}if(!o.token)throw Ni.create("token-update-no-token");return o.token}async function H9(e,t){const r={method:"DELETE",headers:await nb(e)};try{const o=await(await fetch(`${tb(e.appConfig)}/${t}`,r)).json();if(o.error){const s=o.error.message;throw Ni.create("token-unsubscribe-failed",{errorInfo:s})}}catch(i){throw Ni.create("token-unsubscribe-failed",{errorInfo:i==null?void 0:i.toString()})}}function tb({projectId:e}){return`${D9}/projects/${e}/registrations`}async function nb({appConfig:e,installations:t}){const n=await t.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":`FIS ${n}`})}function uD({p256dh:e,auth:t,endpoint:n,vapidKey:r}){const i={web:{endpoint:n,auth:t,p256dh:e}};return r!==oD&&(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 U9=7*24*60*60*1e3;async function W9(e){const t=await Y9(e.swRegistration,e.vapidKey),n={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:t.endpoint,auth:ml(t.getKey("auth")),p256dh:ml(t.getKey("p256dh"))},r=await j9(e.firebaseDependencies);if(r){if(G9(r.subscriptionOptions,n))return Date.now()>=r.createTime+U9?z9(e,{token:r.token,createTime:Date.now(),subscriptionOptions:n}):r.token;try{await H9(e.firebaseDependencies,r.token)}catch(i){console.warn(i)}return T1(e.firebaseDependencies,n)}else return T1(e.firebaseDependencies,n)}async function z9(e,t){try{const n=await V9(e.firebaseDependencies,t),r=Object.assign(Object.assign({},t),{token:n,createTime:Date.now()});return await eb(e.firebaseDependencies,r),n}catch(n){throw n}}async function T1(e,t){const r={token:await $9(e,t),createTime:Date.now(),subscriptionOptions:t};return await eb(e,r),r.token}async function Y9(e,t){const n=await e.pushManager.getSubscription();return n||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:I9(t)})}function G9(e,t){const n=t.vapidKey===e.vapidKey,r=t.endpoint===e.endpoint,i=t.auth===e.auth,o=t.p256dh===e.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 C1(e){const t={from:e.from,collapseKey:e.collapse_key,messageId:e.fcmMessageId};return q9(t,e),X9(t,e),K9(t,e),t}function q9(e,t){if(!t.notification)return;e.notification={};const n=t.notification.title;n&&(e.notification.title=n);const r=t.notification.body;r&&(e.notification.body=r);const i=t.notification.image;i&&(e.notification.image=i);const o=t.notification.icon;o&&(e.notification.icon=o)}function X9(e,t){t.data&&(e.data=t.data)}function K9(e,t){var n,r,i,o,s;if(!t.fcmOptions&&!(!((n=t.notification)===null||n===void 0)&&n.click_action))return;e.fcmOptions={};const c=(i=(r=t.fcmOptions)===null||r===void 0?void 0:r.link)!==null&&i!==void 0?i:(o=t.notification)===null||o===void 0?void 0:o.click_action;c&&(e.fcmOptions.link=c);const f=(s=t.fcmOptions)===null||s===void 0?void 0:s.analytics_label;f&&(e.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 Z9(e){return typeof e=="object"&&!!e&&aD in e}/**
|
|
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 J9(e){if(!e||!e.options)throw Pv("App Configuration Object");if(!e.name)throw Pv("App Name");const t=["projectId","apiKey","appId","messagingSenderId"],{options:n}=e;for(const r of t)if(!n[r])throw Pv(r);return{appName:e.name,projectId:n.projectId,apiKey:n.apiKey,appId:n.appId,senderId:n.messagingSenderId}}function Pv(e){return Ni.create("missing-app-config-values",{valueName:e})}/**
|
|
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 Q9{constructor(t,n,r){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const i=J9(t);this.firebaseDependencies={app:t,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 eY(e){try{e.swRegistration=await navigator.serviceWorker.register(k9,{scope:O9}),e.swRegistration.update().catch(()=>{})}catch(t){throw Ni.create("failed-service-worker-registration",{browserErrorMessage:t==null?void 0:t.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 tY(e,t){if(!t&&!e.swRegistration&&await eY(e),!(!t&&e.swRegistration)){if(!(t instanceof ServiceWorkerRegistration))throw Ni.create("invalid-sw-registration");e.swRegistration=t}}/**
|
|
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 nY(e,t){t?e.vapidKey=t:e.vapidKey||(e.vapidKey=oD)}/**
|
|
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 cD(e,t){if(!navigator)throw Ni.create("only-available-in-window");if(Notification.permission==="default"&&await Notification.requestPermission(),Notification.permission!=="granted")throw Ni.create("permission-blocked");return await nY(e,t==null?void 0:t.vapidKey),await tY(e,t==null?void 0:t.serviceWorkerRegistration),W9(e)}/**
|
|
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 rY(e,t,n){const r=iY(t);(await e.firebaseDependencies.analyticsProvider.get()).logEvent(r,{message_id:n[aD],message_name:n[_9],message_time:n[P9],message_device_time:Math.floor(Date.now()/1e3)})}function iY(e){switch(e){case Fd.NOTIFICATION_CLICKED:return"notification_open";case Fd.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 oY(e,t){const n=t.data;if(!n.isFirebaseMessaging)return;e.onMessageHandler&&n.messageType===Fd.PUSH_RECEIVED&&(typeof e.onMessageHandler=="function"?e.onMessageHandler(C1(n)):e.onMessageHandler.next(C1(n)));const r=n.data;Z9(r)&&r[R9]==="1"&&await rY(e,n.messageType,r)}const E1="@firebase/messaging",k1="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 aY=e=>{const t=new Q9(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",n=>oY(t,n)),t},sY=e=>{const t=e.getProvider("messaging").getImmediate();return{getToken:r=>cD(t,r)}};function lY(){Cc(new Cu("messaging",aY,"PUBLIC")),Cc(new Cu("messaging-internal",sY,"PRIVATE")),bu(E1,k1),bu(E1,k1,"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 uY(){try{await LO()}catch{return!1}return typeof window<"u"&&MO()&&D6()&&"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 cY(e,t){if(!navigator)throw Ni.create("only-available-in-window");return e.onMessageHandler=t,()=>{e.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 fY(e=_8()){return uY().then(t=>{if(!t)throw Ni.create("unsupported-browser")},t=>{throw Ni.create("indexed-db-unsupported")}),Xy(Gy(e),"messaging").getImmediate()}async function dY(e,t){return e=Gy(e),cD(e,t)}function hY(e,t){return e=Gy(e),cY(e,t)}lY();exports.AuthContext=jm;exports.AuthProvider=UA;exports.CustomOpenList=B1;exports.CustomOpenListProvider=kA;exports.DateRangePicker=m6;exports.ERROR_MESSAGE=L1;exports.FavoriteMenu=W4;exports.GlobalMenu=i6;exports.IconComponent=vO;exports.InfiniteLoader=d6;exports.Language=$m;exports.LogoutConfirmModal=O1;exports.PropTypes=Ea;exports.Q=v2;exports.SaasThemeProvider=$A;exports.StyleWrapper=Vm;exports.TranslationProvider=KM;exports._=a6;exports._assertThisInitialized=wl;exports._extends=Df;exports._extends$1=U5;exports._inheritsLoose=fO;exports._objectWithoutPropertiesLoose=Bm;exports.activeStyles=Wy;exports.axiosInstance=ka;exports.clsx=yl;exports.color=Ei;exports.commonjsGlobal=Ci;exports.createCustomTheme=H1;exports.getAugmentedNamespace=aM;exports.getMessagingInWindow=fY;exports.getToken=dY;exports.handleErrorAxios=j1;exports.initializeApp=jO;exports.lodashExports=DO;exports.login=F1;exports.logout=N1;exports.notify=S2;exports.objectWithoutPropertiesLoose=oM;exports.onMessage=hY;exports.pushError=Bd;exports.pushSuccess=Ym;exports.pushWarning=x2;exports.responseInterceptor=EA;exports.search=zA;exports.setFavicon=U1;exports.styles=o6;exports.translate=qM;exports.translationConfig=GM;exports.updateFavoriteItems=Yy;exports.useAuth=WA;exports.useCustomTranslation=YM;exports.useTheme=BA;exports.useTranslation=J1;exports.useTranslation$1=XM;
|